/* Compact phone composition with the original desktop walnut/brass palette.
 * Artwork is displayed from unchanged source files; no image recoloring. */
:root{--bg:#100a04;--surface:#21170d;--ink:#f1e5cf;--muted:#c2ad8c;--gold:#dfbb7e;--line:#705029;--soft-line:#49331d}
body{background:radial-gradient(ellipse at 50% 0,#372616,transparent 65%),#0c0804}
.phone-shell{container-type:inline-size;container-name:phone;max-width:430px;background:linear-gradient(#171006,#100a04 420px,#0c0805);border-color:#705029}
.preview-strip{min-height:21px;background:#171209;color:#c8b997;border-color:#3e2e1b;font-size:9px;letter-spacing:.015em}
.header-scripture{display:none}
body[data-page=shelf] .app-header{position:relative;display:block;padding:17px 19px 8px;background:radial-gradient(ellipse at 70% 0,#4b2e1233,transparent 85%)}
body[data-page=shelf] .brand{display:inline-flex;min-height:18px;gap:7px;color:#e7c58e}
body[data-page=shelf] .brand strong{font-size:13px;letter-spacing:.08em}
body[data-page=shelf] .brand span{max-width:none;font:9px Georgia,serif;letter-spacing:.12em}
body[data-page=shelf] .brand span::before{content:'· ';padding-right:3px}
.waymark-button{position:absolute;right:18px;top:20px;min-height:40px;padding:7px 12px;font-size:15px;background:linear-gradient(115deg,#f3cc8a,#b47b35);border-color:#e2b776;color:#2b1b0b}
body[data-page=shelf] .header-scripture{display:block;max-width:77%;margin:7px 0 0;font-size:12.5px;line-height:1.4;font-weight:400;font-style:italic;color:#eee0c9}
.header-scripture cite{display:block;font-style:normal;margin-top:2px;font-size:11.5px}
.reference-home .shelf-heading{margin:0;padding:7px 10px 15px;background:linear-gradient(#171006,#180f07)}
.reference-home .shelf-heading h1{font-size:clamp(22px,5.9cqw,29px);line-height:1.18;letter-spacing:-.035em;font-weight:400;margin:0 0 8px;color:#f6ead6}
.reference-home .shelf-heading .week{font-size:.78em;color:#eddfc4}
.reference-home .date-line{font:9px Georgia,serif;color:#d1b26f;letter-spacing:.14em}
.reference-home .shelf-wrap{border:0;background:#160d06;overflow:hidden}
.reference-home .shelf-frame{width:140%;max-width:none;margin-left:-20%;aspect-ratio:2715/1086;background:#160d06}
.reference-home .full-shelf .shelf-frame{width:100%;margin-left:0}
.reference-home .shelf-wrap[data-shelf-scene^="approved"] .shelf-frame{width:100%;margin-left:0;aspect-ratio:1448/1086}
.shelf-scene-settings{display:grid;gap:8px;padding:14px 0;text-align:left}
.shelf-scene-settings label{font:14px Georgia,serif;color:#e6cd9f}
.shelf-scene-settings select{width:100%;min-height:44px;border:1px solid #987343;border-radius:8px;padding:8px;background:#21180f;color:#efdbb7;font:12px system-ui,sans-serif}
.shelf-scene-settings p,.shelf-scene-settings a{margin:0;font:11px/1.5 system-ui,sans-serif;color:#c5b292}
.shelf-scene-settings a{text-decoration:underline;text-underline-offset:3px;min-height:30px}
.reference-home .shelf-actions{padding:13px 15px 12px;gap:7px;grid-template-columns:1.28fr 1fr 1fr;background:linear-gradient(#130c05,#100a04)}
.reference-home .pill{padding:7px 4px;font-size:13px;min-height:44px;border-color:#ad8040;color:#eed9b2;background:linear-gradient(#38230e70,#100a04);box-shadow:inset 0 1px 0 #e3bb6f12}
.reference-home .pill.featured{
  --lantern-glow:1;
  position:relative;isolation:isolate;border:1.5px solid transparent;color:#ffe7b8;
  background:linear-gradient(#1c1209,#110b05) padding-box,linear-gradient(125deg,#9a6426 0%,#f4cf83 16%,#fff1bd 29%,#ae772e 44%,#e5b45d 60%,#fff0b0 74%,#9b6428 88%,#e8c17a 100%) border-box;
  box-shadow:0 0 3px rgb(255 207 117 / calc(.5 * var(--lantern-glow))),0 0 6px rgb(238 163 51 / calc(.22 * var(--lantern-glow)));
  text-shadow:none;
}
.reference-home .pill.featured::after{
  content:"";position:absolute;inset:-1.5px;padding:1.5px;border-radius:inherit;pointer-events:none;
  background:conic-gradient(from var(--border-angle,0deg),transparent 0deg 245deg,#eab75c80 280deg,#ffe4a8 310deg,#fff9df 325deg,#f5c674a0 342deg,transparent 360deg);
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
  opacity:clamp(.65,var(--lantern-glow),1);
}
.reference-home .pill.featured .salvation-cross{
  width:20px;height:29px;fill:#ffe7a1;stroke:#fff3c4;stroke-width:.4;stroke-linejoin:miter;
  /* Equal light across both arms; only the close halo follows the lantern. */
  filter:drop-shadow(0 0 1px #ffedb1a6) drop-shadow(0 0 2.8px rgb(255 180 60 / calc(.12 + .45 * var(--lantern-glow))));
}
.reference-cards{padding:0 15px;gap:9px}
.illustrated-card{position:relative;display:block;min-width:0;overflow:hidden;border:1px solid #b08a47;border-radius:9px;background:#160d06;box-shadow:0 4px 14px #0005}
.reference-art{display:block;width:100%;height:auto;fill:none;stroke:none;overflow:hidden}
.illustrated-card>.reference-art{aspect-ratio:425/415}
.illustrated-card:hover,.illustrated-wide:hover{border-color:#f0c474;box-shadow:0 0 15px #bc77212c}
.illustrated-wide{position:relative;display:block;margin:10px 15px 0;border:1px solid #a37a3a;border-radius:9px;overflow:hidden;min-height:58px;background:#170e06}
.chart-card{height:65px}
.chart-card>.reference-art{position:absolute;right:0;top:0;width:52%;height:100%}
.wide-card-copy{position:absolute;inset:0 auto 0 0;width:74%;padding:8px 11px;background:linear-gradient(90deg,#1b1007 0,#1b1007f5 65%,#1b100700);display:flex;justify-content:center;flex-direction:column}
.wide-card-copy h2{font-size:21px;font-weight:400;line-height:1.1;margin:0 0 5px;letter-spacing:-.025em;color:#f2e2c9}
.wide-card-copy h2 span{padding-left:9px;color:#d1ab6b}
.wide-card-copy p{font-size:10.5px;line-height:1.2;color:#d0bfa0;font-style:italic;margin:0}
.secret-card{height:auto;aspect-ratio:631/134;background:#080b06}
.secret-card>.reference-art{position:absolute;right:0;top:0;width:64%;height:100%;mask-image:linear-gradient(90deg,transparent,#000 28%)}
.reference-home .secret-card .wide-card-copy{width:60%;padding-inline:11px 0;background:linear-gradient(90deg,#080b06 0%,#080b06b0 58%,#080b0600);justify-content:center}
/* Match the light, ivory serif lettering embedded in the two approved cards. */
.reference-home :is(.chart-card,.secret-card,.family-card) h2{font-family:'Times New Roman',Times,serif;font-size:clamp(14px,4.2cqw,18px);font-weight:400;font-style:normal;line-height:1.15;letter-spacing:0;color:#f4eee2;margin:0 0 5px}
.reference-home :is(.chart-card,.secret-card,.family-card) p{font-family:'Times New Roman',Times,serif;font-weight:400;font-size:clamp(10px,2.9cqw,12px);line-height:1.2;font-style:italic;color:#d9d0c4}
.reference-home .secret-card h2{white-space:nowrap}
.reference-home .secret-card h2 span{padding-left:4px}
.reference-home .shelf-settings{margin:13px 15px 6px;border-top:1px solid #4c361e;border-bottom:1px solid #4c361e}
.reference-home .shelf-settings summary{color:#c8af87;font-size:11px}
.reference-home .shelf-totals{gap:17px;padding-top:7px}
.reference-home .scene-state{background:transparent;font-size:10px;min-height:26px}
.room-light-switch{display:inline-flex;align-items:center;gap:8px}
.switch-plate{display:grid;place-items:center;width:22px;height:28px;border:1px solid #c69a58;border-radius:4px;background:linear-gradient(130deg,#d3b77d,#614221 45%,#ab8147);box-shadow:inset 0 0 0 2px #382613}
.switch-rocker{width:10px;height:18px;border:1px solid #35220f;border-radius:2px;background:linear-gradient(#4b341d 45%,#c49c5d 50%,#e9cc8e);box-shadow:0 -1px 2px #0008}
.room-light-switch[aria-checked=true] .switch-rocker{background:linear-gradient(#ffe2a6,#c49c5d 50%,#594020 55%);box-shadow:0 1px 2px #0008}
.reference-home .wide-card{background:linear-gradient(110deg,#26180c,#120b05);border-color:#705029}
/* One crisp, polished gold rim across shelf cards and their action buttons. */
.reference-home,.waymark-button,.wisdom-room,.shelf-daily-wisdom{--shelf-rim:linear-gradient(118deg,#785024 0%,#d7a553 9%,#fff2c5 17%,#b5833a 29%,#f5d58f 43%,#865724 56%,#fff0bc 72%,#c58e3c 84%,#f2cf83 94%,#805323 100%)}
.reference-home :is(.illustrated-card,.illustrated-wide,.wide-card,.pill,.small-button),.wisdom-room,.shelf-daily-wisdom{position:relative;border-color:transparent}
.reference-home :is(.illustrated-card,.illustrated-wide,.wide-card,.pill:not(.featured),.small-button)::before,.waymark-button::before,.wisdom-room::before,.shelf-daily-wisdom::before{content:"";position:absolute;inset:0;z-index:2;padding:1.3px;border-radius:inherit;pointer-events:none;background:var(--shelf-rim);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}
.reference-home .pill.featured{background:linear-gradient(#1c1209,#110b05) padding-box,var(--shelf-rim) border-box}
.family-disclosure{margin:10px 15px 0;scroll-margin-bottom:110px}
.reference-home .family-card{display:block;width:100%;min-height:100px;margin:0;padding:15px 11px;text-align:left;background:#120e08}
.family-card-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent,#000 15%);pointer-events:none}
.family-card-copy{position:relative;z-index:1;display:block;width:55%;text-shadow:0 1px 3px #000}
.family-title{display:block;font:400 clamp(14px,4.2cqw,18px)/1.15 'Times New Roman',Times,serif;color:#f4eee2;margin-bottom:6px}
.family-subtitle{display:block;font:italic 400 clamp(10px,2.9cqw,12px)/1.3 'Times New Roman',Times,serif;color:#e4d8c4}
.family-caret{display:inline-block;margin-left:5px;color:#edca86}
.family-card[aria-expanded=true] .family-caret{transform:rotate(180deg)}
.family-destinations{padding:6px 10px;margin-top:4px;border:1px solid #af8544;border-radius:9px;background:linear-gradient(115deg,#241a0f,#110c07);box-shadow:0 7px 20px #0006}
.family-destinations a{display:flex;align-items:center;gap:11px;min-height:48px;padding:9px 6px;border-bottom:1px solid #694c2c66;color:#e6d5b7;font:16px/1.2 'Times New Roman',Times,serif;border-radius:4px}
.family-destinations a:last-child{border-bottom:0}
.family-destinations a>svg{width:21px;height:21px;color:#c9a463}
.family-destinations a>span:last-child{margin-left:auto;color:#c9a463}
.family-destinations .family-shelf-link{color:#ffe3a6;border-bottom-color:#af8544;margin-bottom:3px}
.family-destinations a:is(:hover,:focus-visible){background:#b5802830;color:#fff0ca}
.bottom-menu-setting{padding:15px 0;border-top:1px solid #70502966;margin:12px 0 18px}
.bottom-menu-setting label{display:block;margin-bottom:8px;color:#efddb8;font-size:17px}
.bottom-menu-setting select{width:100%;min-height:44px;padding:9px 12px;border:1px solid #b58b4b;border-radius:7px;background:#21170d;color:#f3dfb8;font:15px Georgia,serif}
.bottom-menu-setting p{font:12px/1.5 system-ui,sans-serif;color:#c2ad8c;margin:9px 0 0}
.bottom-menu-setting [role=status]{font-size:11px;color:#d4bf9a}
body[data-bottom-menu=hidden] #content{padding-bottom:24px}
.shelf-shortcuts>.reference-cards{margin-top:10px}
.reference-home .shortcut-card{min-height:85px;margin:10px 15px 0;padding:12px 11px}
.shortcut-card>div{flex:1;min-width:0}
.reference-home .shortcut-card h2{font:400 clamp(14px,4.2cqw,18px)/1.15 'Times New Roman',Times,serif;letter-spacing:0;color:#f4eee2}
.reference-home .shortcut-card p{font:italic clamp(10px,2.9cqw,12px)/1.3 'Times New Roman',Times,serif;color:#d9d0c4}
.reference-home .shortcut-card>.shortcut-thumbnail{width:80px;height:65px;opacity:1;stroke:none;fill:none;border-radius:5px;overflow:hidden}
.shelf-shortcut-links{display:flex;justify-content:space-between;gap:10px;margin:12px 15px 0}
.shelf-shortcut-links a{display:flex;align-items:center;min-height:44px;font:12px/1.4 system-ui,sans-serif;color:#d9bb83;text-decoration:underline;text-underline-offset:3px}
.shelf-customizer{margin:22px 0;padding-top:16px;border-top:1px solid #70502966}
.shelf-customizer h2{font:400 23px/1.2 'Times New Roman',Times,serif;color:#f0dfbf;margin:0 0 10px}
.shelf-customizer p{font:12px/1.5 system-ui,sans-serif;color:#c2ad8c}
.shelf-customizer fieldset{border:0;padding:0;margin:0;min-width:0}
.shortcut-order{padding:0;list-style:none;margin:15px 0}
.shortcut-order li{padding:10px 0;border-bottom:1px solid #70502966}
.shortcut-order-title{display:block;font:17px/1.3 'Times New Roman',Times,serif;color:#f0dfbf}
.shortcut-order-actions{display:flex;gap:7px;margin-top:6px}
.shortcut-order-actions button,.shortcut-add button{min-width:44px;min-height:44px;padding:6px 12px;background:#251a0e;border:1px solid #a67b3d;border-radius:7px;color:#e6c793;font:13px system-ui,sans-serif}
.shortcut-add{display:grid;grid-template-columns:1fr auto;gap:8px}
.shortcut-add label{grid-column:1/-1;color:#e8cfa8;font-size:16px}
.shortcut-add select{min-width:0;min-height:44px;padding:8px;background:#21170d;color:#efddb8;border:1px solid #a67b3d;border-radius:7px;font:14px Georgia,serif}
.shortcut-save-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}
.shelf-customizer .subtle-button{display:inline-flex;align-items:center;min-height:44px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.bottom-nav{width:min(100%,430px);background:linear-gradient(#1c140bfa,#0c0805fc);border-top:1px solid #705029;box-shadow:0 -7px 21px #0008;padding-top:10px}
.bottom-nav a{font-size:15px;gap:6px;min-height:58px;color:#b8a689}
/* The approved five-icon set shares one baseline and matching optical sizes. */
.bottom-nav.coordinated-nav{background:linear-gradient(110deg,#1c1208,#100b05 55%,#1b1107);border-top:2px solid #b8873e;border-bottom:1px solid #89602f;box-shadow:0 -5px 18px #0008,inset 0 1px #f3d08a55;padding-top:9px}
.bottom-nav.coordinated-nav a{gap:5px;min-height:62px;color:#bba582;font-weight:600;line-height:1.15;transition:color 140ms ease}
.coordinated-nav .nav-art-slot{position:relative;display:flex;align-items:flex-end;justify-content:center;width:52px;height:38px}
.bottom-nav .coordinated-art{display:block;stroke:none;overflow:hidden;filter:brightness(.8) drop-shadow(0 1px 1px #0007);transition:filter 140ms ease}
.bottom-nav .shelf-set-art{width:42px;height:36px}
.bottom-nav .family-set-art{width:46px;height:38px}
.bottom-nav .letters-set-art{width:44px;height:34px}
.bottom-nav .wisdom-set-art{width:50px;height:34px}
.bottom-nav .doors-set-art{width:33px;height:38px}
.bottom-nav .unread-badge{position:absolute;right:0;bottom:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border-radius:50%;background:#db1426;color:#fff;font:600 11px/1 system-ui,sans-serif;box-shadow:0 1px 3px #0006}
.bottom-nav.coordinated-nav a[aria-current=page]{color:#d2b583;background:radial-gradient(ellipse at bottom,#a56b2828,transparent 85%)}
.bottom-nav.coordinated-nav a[aria-current=page] .coordinated-art{filter:brightness(.88) drop-shadow(0 0 3px #e7ad4b33)}
/* Hovering either the picture or its label lights the whole navigation item. */
@media(hover:hover) and (pointer:fine){
  .bottom-nav.coordinated-nav a:hover{color:#ffe1a0}
  .bottom-nav.coordinated-nav a:hover .coordinated-art{filter:brightness(1.08) drop-shadow(0 0 3px #e7ad4b55)}
}
.bottom-nav.coordinated-nav a:is(:focus-visible,:active){color:#ffe1a0}
.bottom-nav.coordinated-nav a:is(:focus-visible,:active) .coordinated-art{filter:brightness(1.08) drop-shadow(0 0 3px #e7ad4b55)}
.bottom-nav.coordinated-nav{transition:transform 280ms ease;will-change:transform}
.bottom-nav.coordinated-nav[data-idle-hidden=true]{transform:translate(-50%,calc(100% + 28px));pointer-events:none}
@media(prefers-reduced-motion:reduce){.bottom-nav.coordinated-nav{transition:none}}
.sample-inbox .entry-card{border-color:#967144}
.sample-inbox .sample-unread{color:#f4cf88}
.bottom-nav a[aria-current=page]{color:#f1ca83;background:radial-gradient(ellipse at bottom,#ad7a2729,transparent 80%)}
.bottom-nav a[aria-current=page] .desktop-nav-art{opacity:1;filter:drop-shadow(0 0 5px #f8ad422a)}
@media(max-width:355px){body[data-page=shelf] .app-header{padding-inline:14px}body[data-page=shelf] .brand strong{font-size:12px}body[data-page=shelf] .brand span{font-size:8px;letter-spacing:.06em}.waymark-button{right:13px;font-size:13px;padding-inline:8px;top:18px}body[data-page=shelf] .header-scripture{font-size:11.5px;max-width:78%}.reference-home .shelf-heading h1{font-size:22px}.reference-home .pill{font-size:11px}.reference-home .shelf-actions{padding-inline:10px;gap:6px}.reference-cards{padding-inline:10px}.illustrated-wide{margin-inline:10px}.wide-card-copy h2{font-size:18px}.wide-card-copy p{font-size:9px}.bottom-nav a{font-size:13px}.card-action{font-size:10px}}

.workbench-label{max-width:430px}

/* Settings stays reachable from the shelf even when the bottom menu is hidden. */
.shelf-shortcut-links{flex-wrap:wrap}
.shelf-shortcut-links a{gap:5px}
.shelf-shortcut-links svg{width:18px;height:18px;flex:none}

.family-resources-footer{display:flex;justify-content:center;padding:0 15px 26px}
.family-resources-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:8px 18px;border:1px solid #a17a43;border-radius:26px;background:linear-gradient(120deg,#39261266,#140e08);color:#ebce96;font:15px/1.3 Georgia,serif;box-shadow:inset 0 1px #e2bc7522}
.family-resources-button svg{width:20px;height:20px;flex:none}
.family-resources-button:hover{background:#3b2916;border-color:#ebc578}
.family-resources-button:focus-visible{outline:2px solid #f4d492;outline-offset:4px}
.family-books-intro{padding:26px 20px;text-align:center;border:1px solid #896234;border-radius:12px;background:radial-gradient(ellipse at top,#57391d55,transparent 70%),#191108}
.family-books-intro>svg{width:48px;height:48px;color:#e0b779}
.family-books-intro h2{font:25px/1.2 Georgia,serif;color:#edd6ad;margin:16px 0 12px}
.family-books-intro p{font:15px/1.6 Georgia,serif;color:#c8b69a}
.family-books-intro .family-books-pending{font:12px/1.6 system-ui,sans-serif;color:#b39b78;margin-top:20px}

/* The family dropdown uses the same framed gold emblems as Customize your Shelf. */
.family-destinations a{gap:13px}
.family-destinations .shortcut-card-icon{width:36px;height:46px;flex:none}
.family-destinations .shortcut-card-icon svg{width:27px;height:30px}
@media(min-width:1000px){.family-destinations .shortcut-card-icon{width:44px;height:54px}.family-destinations .shortcut-card-icon svg{width:32px;height:36px}}

/* The two optional keepsake cards share the existing illustrated Shelf rim. */
.reference-home .shelf-keepsake-card{aspect-ratio:631/134;background:#100c07}
.shelf-keepsake-art{position:absolute;right:0;top:0;height:100%;width:auto;max-width:none;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 22%)}
.reference-home .shelf-keepsake-card .wide-card-copy{width:73%;padding:8px 11px;background:linear-gradient(90deg,#100c07 0%,#100c07b0 55%,transparent);}
.reference-home .shelf-keepsake-card h2{font-family:'Times New Roman',Times,serif;font-size:clamp(14px,4.2cqw,18px);font-weight:400;line-height:1.15;letter-spacing:0;color:#f4eee2;margin:0 0 5px}
.reference-home .shelf-keepsake-card p{font-family:'Times New Roman',Times,serif;font-weight:400;font-size:clamp(10px,2.9cqw,12px);line-height:1.2;font-style:italic;color:#d9d0c4}
.reference-home .shelf-approved-card{aspect-ratio:auto;min-height:0;padding:0;border:0;background:transparent;border-radius:0}
.reference-home .shelf-approved-card::before{display:none}
.reference-home .shelf-approved-card .reference-art{display:block;width:100%;height:auto;pointer-events:none}

/* Keep the room dimmer directly beneath its switch, with a full touch-width track. */
.reference-home .room-brightness-controls{display:grid;gap:8px;padding:4px 12px 12px;color:#d8c39c;font:13px/1.4 system-ui,sans-serif}
.reference-home .room-brightness-controls label{display:flex;justify-content:space-between;gap:12px}
.reference-home .room-brightness-controls input[type=range]{width:100%;min-height:44px;accent-color:#d5b16f}

/* Church Family is an optional Shelf disclosure, with the same menu behavior as My Family. */
.church-shelf-disclosure .church-shelf-art::after {
 content:'';position:absolute;inset:0;
 mask-image:linear-gradient(90deg,transparent 55%,#000 83%);
 background:url('/assets/images/8af04cbea686ab5d/church-home-dark.png') right center / auto 100% no-repeat;
}
:root[data-theme=heirloom_light] .church-shelf-disclosure .church-shelf-art::after {
 background-image:url('/assets/images/5bd7bd1d83cc24ba/church-home-light.png');
}
