/* Compact is an arrangement, independent of the selected color theme.
   Keep natural page scrolling for longer quotations, added cards and large text. */
body[data-page=shelf][data-shelf-layout=compact] {
 --compact-gap:8px;
}
body[data-page=shelf][data-shelf-layout=compact] .app-header {
 padding:12px 12px 5px;
}
body[data-page=shelf][data-shelf-layout=compact] .header-intro {
 padding-right:102px;
}
body[data-page=shelf][data-shelf-layout=compact] .brand {
 gap:4px;
}
body[data-page=shelf][data-shelf-layout=compact] .brand strong {
 font-size:12px;
}
body[data-page=shelf][data-shelf-layout=compact] .brand span {
 font-size:8px;
 letter-spacing:.08em;
}
body[data-page=shelf][data-shelf-layout=compact] .header-scripture {
 max-width:none;
 margin-top:5px;
 font-size:12px;
 line-height:1.35;
}
body[data-page=shelf][data-shelf-layout=compact] .header-scripture cite {
 font-size:11px;
}
body[data-page=shelf][data-shelf-layout=compact] .global-waymark-slot>.waymark-button {
 top:14px;
 right:12px;
 min-height:44px;
 padding:7px 10px;
 font-size:15px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-heading {
 padding:4px 10px 8px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-heading h1 {
 font-size:clamp(20px,5.4cqw,25px);
 margin-bottom:4px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-heading .week {
 font-size:.76em;
}
body[data-page=shelf][data-shelf-layout=compact] .date-line {
 font-size:9px;
 letter-spacing:.08em;
}
body[data-page=shelf][data-shelf-layout=compact] .reference-home .shelf-wrap {
 margin:0;
 background:var(--bg);
}
body[data-page=shelf][data-shelf-layout=compact] .reference-home .shelf-frame {
 display:block;
 width:100%;
 max-width:100%;
 height:auto;
 aspect-ratio:1448 / 1086;
 margin:0;
 transform:none;
 background:var(--bg);
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-settings {
 margin:0 10px 6px;
 border-top:0;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-settings summary {
 min-height:44px;
 font-size:11px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards {
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:var(--compact-gap);
 align-items:stretch;
 padding:0 10px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards>[data-shelf-shortcut] {
 grid-column:span 2;
 margin:0;
 min-width:0;
 min-height:44px;
 height:auto;
 border-radius:9px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards>[data-shelf-shortcut]:nth-child(n+4) {
 grid-column:span 3;
}
/* Native text remains readable and can expand its card instead of clipping. */
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .shelf-daily-wisdom {
 padding:8px 5px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-daily-wisdom h2 {
 font-size:15px;
 line-height:1.15;
 margin:0 0 6px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-daily-wisdom .wisdom-day-label,
body[data-page=shelf][data-shelf-layout=compact] .shelf-daily-wisdom .wisdom-open {
 display:none;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-daily-wisdom .daily-wisdom-frame {
 margin:0;
 min-height:0;
 padding:6px 3px;
 border-width:5px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-daily-wisdom blockquote {
 font-size:12px;
 line-height:1.3;
 margin:0 0 7px;
 overflow-wrap:anywhere;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-daily-wisdom figcaption {
 font-size:9px;
 letter-spacing:0;
 line-height:1.25;
 overflow-wrap:anywhere;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .waymark-card {
 display:flex;
 flex-direction:column;
 justify-content:center;
}
body[data-page=shelf][data-shelf-layout=compact] .waymark-card>.reference-art {
 width:100%;
 height:auto;
 aspect-ratio:424 / 415;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .compact-waymark-card {
 justify-content:space-between;
 background:var(--surface);
 color:var(--ink);
 --light-text:var(--ink);
}
body[data-page=shelf][data-shelf-layout=compact] .compact-waymark-card h2 {
 font:400 15px/1.2 Georgia,serif;
 text-align:center;
 margin:9px 6px 4px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-waymark-card p {
 font:italic 12px/1.3 Georgia,serif;
 text-align:center;
 margin:0 6px 4px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-waymark-card>.reference-art {
 aspect-ratio:424 / 250;
 margin-top:auto;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-card-action {
 display:flex;
 align-items:center;
 justify-content:center;
 min-height:44px;
 padding:5px;
 font:12px/1.2 Georgia,serif;
 text-align:center;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards :is(.chart-card,.secret-card,.shelf-keepsake-card) {
 display:flex;
 flex-direction:column;
 justify-content:flex-end;
 aspect-ratio:auto;
 background:var(--surface);
 --light-text:var(--ink);
 --light-muted:var(--muted);
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards :is(.chart-card,.secret-card)>.reference-art {
 position:static;
 width:100%;
 height:auto;
 mask-image:none;
 flex:none;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .wide-card-copy {
 position:relative;
 inset:auto;
 width:100%;
 padding:8px;
 background:var(--surface);
 color:var(--ink);
 --light-text:var(--ink);
 --light-muted:var(--muted);
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .wide-card-copy h2 {
 font-size:15px;
 line-height:1.2;
 white-space:normal;
 margin:0 0 4px;
 color:var(--ink);
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .wide-card-copy h2 span {
 padding-left:0;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .wide-card-copy p {
 font-size:12px;
 line-height:1.3;
 color:var(--muted);
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .shelf-keepsake-art {
 position:static;
 width:100%;
 height:auto;
 mask-image:none;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-card {
 min-height:124px;
 height:auto;
 padding:10px;
}
.shelf-layout-setting {
 padding:16px 0 4px;
 margin-top:12px;
 border-top:1px solid var(--soft-line);
}
.shelf-layout-setting label {
 display:block;
 margin-bottom:8px;
 font:17px/1.3 Georgia,serif;
 color:var(--ink);
}
.shelf-layout-setting select {
 display:block;
 width:100%;
 min-height:44px;
 padding:9px 12px;
 border:1px solid var(--line);
 border-radius:7px;
 background:var(--surface);
 color:var(--ink);
 font:15px/1.3 Georgia,serif;
}
.shelf-layout-setting p {
 margin:9px 0 0;
 color:var(--muted);
 font:12px/1.5 system-ui,sans-serif;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-card-copy {
 width:100%;
 padding-top:42px;
 text-shadow:none;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-card-art {
 height:52px;
 object-fit:contain;
 object-position:center top;
 mask-image:none;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-title {
 font-size:16px;
 line-height:1.2;
 margin-bottom:4px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-subtitle {
 font-size:12px;
 line-height:1.3;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-destinations {
 position:relative;
 width:100%;
 padding:5px;
}
body[data-page=shelf][data-shelf-layout=compact] .family-destinations a {
 gap:6px;
 font-size:14px;
 overflow-wrap:anywhere;
}
body[data-page=shelf][data-shelf-layout=compact] .family-destinations .shortcut-card-icon {
 width:25px;
 height:36px;
}
body[data-page=shelf][data-shelf-layout=compact] .family-destinations .shortcut-card-icon svg {
 width:20px;
 height:25px;
}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .shortcut-card {
 padding:10px;
 gap:6px;
}
body[data-page=shelf][data-shelf-layout=compact] .shortcut-card h2 {
 font-size:16px;
}
body[data-page=shelf][data-shelf-layout=compact] .shortcut-card p {
 font-size:12px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-shortcut-links {
 margin:3px 10px 0;
 gap:4px 8px;
}
body[data-page=shelf][data-shelf-layout=compact] .shelf-shortcut-links a {
 font-size:11px;
}
body[data-page=shelf][data-shelf-layout=compact] .home-note {
 margin:4px 0 0;
 font-size:10px;
}
body[data-page=shelf][data-shelf-layout=compact] .family-resources-footer {
 padding:6px 10px 8px;
}
body[data-page=shelf][data-shelf-layout=compact] #content {
 min-height:0;
 padding-bottom:calc(80px + env(safe-area-inset-bottom));
}
body[data-page=shelf][data-shelf-layout=compact][data-bottom-menu=hidden] #content {
 padding-bottom:16px;
}
/* The bottom menu uses the shared app-wide sizing in light-menu.css. */
@media(max-width:359px) {
 body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards {
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards>[data-shelf-shortcut],
 body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards>[data-shelf-shortcut]:nth-child(n+4) {
  grid-column:span 1;
 }
 body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards>[data-shelf-shortcut]:last-child:nth-child(odd) {
  grid-column:1 / -1;
 }
 body[data-page=shelf][data-shelf-layout=compact] .header-intro {padding-right:95px}
 body[data-page=shelf][data-shelf-layout=compact] .brand span {font-size:7px;letter-spacing:0}
 body[data-page=shelf][data-shelf-layout=compact] .header-scripture {font-size:11px}
}

/* Full original scene in either arrangement; only shortcut placement changes. */
body[data-page=shelf] .reference-home .shelf-wrap[data-shelf-scene=approved-light-mantle-12] .shelf-frame{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:1448/1086;margin:0;transform:none}
.light-scene-options{display:grid;gap:8px;padding:4px 12px 12px;color:var(--ink);font:13px/1.4 system-ui,sans-serif}
.light-scene-options label{display:flex;justify-content:space-between;gap:12px}
.light-scene-options select{min-height:44px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);padding:8px;font:inherit}
.light-scene-options input[type=range]{width:100%;min-height:44px;accent-color:var(--gold)}

body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .compact-chart-card{justify-content:space-between;overflow:hidden}
body[data-page=shelf][data-shelf-layout=compact] .compact-chart-card .wide-card-copy{padding:10px 7px;text-align:center}
body[data-page=shelf][data-shelf-layout=compact] .compact-chart-art{display:block;width:100%;height:90px;object-fit:cover;object-position:right bottom;flex:1;min-height:70px;max-height:120px}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-card{background:var(--surface)}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-title{color:var(--ink)}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-subtitle{color:var(--muted)}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-caret{color:var(--gold)}

body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards .family-card{--light-text:var(--ink);--light-muted:var(--muted)}
body[data-page=shelf][data-shelf-layout=compact] .compact-shelf-cards{margin-top:6px}
body[data-page=shelf][data-shelf-layout=compact] .shelf-settings{margin-top:6px}
