/* Word and Faith Network — App 2.0
   Design system v5: near-neutral soft white, warm charcoal ink,
   spruce / amber / slate pillars, paper grain, soft diffuse cards. */

:root {
  --bg: #F6F5F2;
  --card: #FFFFFF;
  --sunk: #ECEAE5;
  --band: #E8E6E1;
  --ink: #1F1D1B;
  --ink-2: #55514B;
  --ink-3: #6E6A63;
  --line: rgba(31,29,27,0.08);
  --hair: rgba(31,29,27,0.05);
  --track: #D8D3CB;
  --spruce: #2A6766;
  --spruce-ink: #1E4E4D;
  --spruce-soft: #DFEAE6;
  --amber: #985F1E;
  --amber-soft: #F5EAD9;
  --slate: #435C82;
  --slate-soft: #E4E8F0;
  --hero: radial-gradient(130% 95% at 88% -10%, #2B5C5A 0%, #17403F 48%, #10302F 100%);
  --hero-ink: #F6F3EC;
  --hero-2: #B9CFCD;
  --hero-accent: #E9B872;
  --shadow: 0 1px 2px rgba(31,29,27,0.04), 0 14px 34px -18px rgba(31,29,27,0.16);
  --float: 0 12px 34px rgba(31,29,27,0.16);
  --nav: rgba(255,255,255,0.92);
  --grain-op: 0.05;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --read-font: var(--serif);
  --read-size: 19px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 28px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141312;
  --card: #1C1A18;
  --sunk: #262420;
  --band: #23211E;
  --ink: #EFEBE4;
  --ink-2: #B3ADA3;
  --ink-3: #8F897F;
  --line: rgba(239,235,228,0.09);
  --hair: rgba(239,235,228,0.06);
  --track: #3A3631;
  --spruce: #7CC4C0;
  --spruce-ink: #9AD6D2;
  --spruce-soft: #1A2E2C;
  --amber: #E2A85A;
  --amber-soft: #2D2316;
  --slate: #9DB3D9;
  --slate-soft: #1B2536;
  --hero: radial-gradient(130% 95% at 88% -10%, #234A49 0%, #15302F 50%, #0E1E1E 100%);
  --shadow: 0 1px 2px rgba(0,0,0,0.25), 0 14px 34px -18px rgba(0,0,0,0.5);
  --float: 0 12px 34px rgba(0,0,0,0.5);
  --nav: rgba(28,26,24,0.94);
  --grain-op: 0.035;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.22 0 0 0 0 0.18 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
a { color: var(--spruce); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--spruce); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- shell ---------- */
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(88px + var(--safe-b)); }
#app.no-nav { padding-bottom: 0; }
.view { animation: rise 0.28s ease both; }
/* Opacity only: a transform here would trap position:fixed controls (chapter arrows) inside the page. */
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } * { scroll-behavior: auto !important; } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px 4px calc(10px + var(--safe-b)); background: var(--nav);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav-inner { display: contents; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0;
  text-decoration: none; color: var(--ink-3); font: 500 10.5px/13px var(--sans);
}
.nav a .pill { width: 42px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.nav a[aria-current="page"] { color: var(--spruce); font-weight: 600; }
.nav a[aria-current="page"] .pill { background: var(--spruce-soft); }
@media (min-width: 600px) { .nav { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-radius: 22px 22px 0 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

.topbar { display: flex; align-items: center; gap: 4px; padding: calc(10px + var(--safe-t)) 8px 6px; min-height: 60px; }
.topbar h1, .topbar .t { margin: 0; flex-grow: 1; font: 600 16px/22px var(--sans); text-align: center; }
.topbar.left h1 { text-align: left; padding-left: 4px; }
.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; text-decoration: none;
}
.icon-btn:active { background: var(--sunk); }
.icon-btn.on-hero { color: var(--hero-ink); }
.icon-btn.on-hero:active { background: rgba(255,255,255,0.1); }
.spacer44 { width: 44px; flex-shrink: 0; }

.page { display: flex; flex-direction: column; gap: 28px; padding: 14px 16px 32px; }
.page.tight { gap: 18px; }
.page-head { padding: calc(20px + var(--safe-t)) 20px 4px; display: flex; flex-direction: column; gap: 6px; }
.page-head .row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.page-head h1 { margin: 0; font: 400 32px/38px var(--serif); letter-spacing: -0.01em; }
.eyebrow { margin: 0; font: 600 11px/14px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow.amber { color: var(--amber); } .eyebrow.spruce { color: var(--spruce); } .eyebrow.slate { color: var(--slate); }
.h2 { margin: 0; font: 400 21px/28px var(--serif); }
.section { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
.section-head .h2, .section-head .eyebrow { flex-grow: 1; }
.section-head a { font: 600 13.5px/18px var(--sans); text-decoration: none; }
.muted { color: var(--ink-3); } .ink2 { color: var(--ink-2); }
.serif { font-family: var(--serif); }
.small { font-size: 13px; line-height: 19px; }
p { margin: 0; }

/* ---------- cards & lists ---------- */
.card { background: var(--card); border: 1px solid var(--hair); box-shadow: var(--shadow); border-radius: var(--r-lg); }
.card.pad { padding: 20px; }
.card.pad-s { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.band { background: var(--band); border-radius: var(--r-lg); padding: 20px; }
.list { display: flex; flex-direction: column; }
.row-link {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 18px;
  text-decoration: none; color: var(--ink); background: transparent; border: 0; width: 100%; text-align: left;
}
.list > * + * { border-top: 1px solid var(--line); }
.row-link .grow { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-link .label { font: 500 15.5px/21px var(--sans); }
.row-link .hint { font: 400 12.5px/17px var(--sans); color: var(--ink-3); }
.row-link .chev { color: var(--ink-3); }
.tile-ic { width: 40px; height: 40px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-ic.lg { width: 44px; height: 44px; }
.c-spruce { background: var(--spruce-soft); color: var(--spruce); }
.c-amber { background: var(--amber-soft); color: var(--amber); }
.c-slate { background: var(--slate-soft); color: var(--slate); }
.c-ink { background: var(--ink); color: var(--bg); }

.btn {
  height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/20px var(--sans); text-decoration: none; background: var(--spruce); color: #fff;
}
:root[data-theme="dark"] .btn:not(.ghost):not(.soft):not(.dark):not(.light):not(.outline-light) { color: #0E1E1E; }
.btn.lg { height: 54px; border-radius: 18px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft { background: var(--sunk); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.light { background: var(--hero-ink); color: #10302F; }
.btn.outline-light { background: transparent; color: var(--hero-ink); box-shadow: inset 0 0 0 1px rgba(246,243,236,0.3); }
.btn:active { transform: translateY(1px); }
.chip {
  height: 34px; padding: 0 13px; border-radius: 999px; border: 0; background: var(--sunk); color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; font: 600 13px/18px var(--sans); text-decoration: none; white-space: nowrap;
}
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.spruce { background: var(--spruce-soft); color: var(--spruce); }
.chip[aria-pressed="true"], .chip.on { background: var(--spruce); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"], :root[data-theme="dark"] .chip.on { color: #0E1E1E; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* toggles & radios */
.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--track); transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(31,29,27,0.25); transition: transform 0.2s; }
.switch input:checked + span { background: var(--spruce); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--spruce); outline-offset: 2px; }
.radio-dot { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid #CFC9C0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[aria-checked="true"] > .radio-dot, .radio-dot.on { border: 2px solid var(--spruce); }
[aria-checked="true"] > .radio-dot::after, .radio-dot.on::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--spruce); }
input[type="range"] { accent-color: var(--spruce); width: 100%; }

.field { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--sunk); color: var(--ink); font: 400 16px/22px var(--sans); }
textarea.field { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 24px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-md); background: var(--sunk); color: var(--ink-3); text-decoration: none; }
.search-field input { flex-grow: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/22px var(--sans); outline: none; }

/* ---------- hero / verse ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--hero); color: var(--hero-ink); padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 50px -30px rgba(16,48,47,0.7); }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 999px; background: radial-gradient(closest-side, rgba(233,184,114,0.22), transparent); pointer-events: none; }
.hero .eyebrow { color: var(--hero-accent); }
.hero .verse { font: 400 24px/35px var(--serif); margin: 0; }
.hero .ref { font: 600 13.5px/18px var(--sans); color: var(--hero-accent); }
.hero .actions { display: flex; gap: 6px; margin: 0 -8px -6px; }
.hero .summary { font: 400 14.5px/22px var(--sans); color: var(--hero-2); }
.hero-head { background: var(--hero); color: var(--hero-ink); padding: calc(14px + var(--safe-t)) 20px 26px; display: flex; flex-direction: column; gap: 14px; }
.hero-head h1 { margin: 0; font: 400 32px/38px var(--serif); }
.hero-head p { color: var(--hero-2); font-size: 15px; line-height: 23px; }

/* ---------- media cards ---------- */
.poster { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); display: block; background: var(--sunk); }
.feature { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.feature .meta { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.feature h3 { margin: 0; font: 400 24px/31px var(--serif); }
.feature p { font-size: 15px; line-height: 23px; color: var(--ink-2); }
.thumb-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.thumb-row img, .thumb-row .ph { width: 56px; height: 70px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--sunk); }
.thumb-row .ph { display: flex; align-items: center; justify-content: center; font: 500 22px var(--serif); }
.thumb-row .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.thumb-row .title { font: 500 16.5px/22px var(--serif); }
.thumb-row .sub { font-size: 12.5px; line-height: 17px; color: var(--ink-3); }
.book-cover { width: 132px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.book-cover img { width: 132px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 16px 30px -18px rgba(0,0,0,0.6); }
.book-cover span { font: 500 14px/19px var(--serif); }

.explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.explore a { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); }
.explore a .t { font: 600 15.5px/20px var(--sans); }
.explore a .s { font: 400 12.5px/17px var(--sans); color: var(--ink-3); }

/* ---------- reading ---------- */
.prose { font-family: var(--read-font); font-size: calc(var(--read-size) - 0.5px); line-height: 1.68; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin: 12px 0 0; font: 600 22px/29px var(--read-font); }
.prose .pull { padding-left: 18px; border-left: 3px solid var(--spruce); font-size: calc(var(--read-size) + 2px); font-weight: 500; }
.prose .pull cite { display: block; font: 600 13px/18px var(--sans); color: var(--amber); font-style: normal; margin-top: 8px; }
.scripture-box { padding: 20px 20px 18px; border-radius: 20px; background: var(--amber-soft); display: flex; flex-direction: column; gap: 10px; margin: 0; }
.scripture-box p { font: 400 18px/29px var(--serif); }
.scripture-box cite { font: 600 13px/18px var(--sans); color: var(--amber); font-style: normal; }
.progress { position: sticky; top: 0; height: 2px; background: var(--sunk); z-index: 5; }
.progress span { display: block; height: 2px; width: 0; background: var(--spruce); }

/* reader */
.reader { --rbg: #FFFFFF; --rink: #1F1D1B; --rink3: #6E6A63; --rhl: #F7E3B5; background: var(--rbg); color: var(--rink); min-height: 100vh; }
.reader[data-read="linen"] { --rbg: #F0ECE4; --rink: #2A2622; --rink3: #6A645A; --rhl: #F0D9A2; }
.reader[data-read="mint"] { --rbg: #EAF1EC; --rink: #1A2022; --rink3: #5F696B; --rhl: #C0DDD8; }
.reader[data-read="dark"] { --rbg: #141312; --rink: #EFEBE4; --rink3: #8F897F; --rhl: #4A3A16; }
.reader .topbar { position: sticky; top: 0; z-index: 10; background: var(--rbg); color: var(--rink); }
.reader .topbar .icon-btn { color: var(--rink3); }
.reader .topbar .book-btn { flex-grow: 1; height: 40px; border: 0; background: transparent; color: var(--rink); font: 600 16px/22px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.reader-text { padding: 12px 24px 40px; font-family: var(--read-font); font-size: var(--read-size); line-height: 1.75; }
.reader-text h2 { margin: 6px 0 16px; font: 400 30px/36px var(--serif); }
.reader-text .summary-btn { margin: 0 0 18px; }
.v { cursor: pointer; border-radius: 4px; transition: background 0.15s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.v sup { font: 600 11px/1 var(--sans); color: var(--rink3); margin-right: 3px; vertical-align: 0.5em; }
.reader.no-nums .v sup { display: none; }
.v.sel { text-decoration: underline; text-decoration-color: var(--spruce); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.v.hl-gold { background: #F7E3B5; } .v.hl-green, .v.hl-mint { background: #CDE8E4; } .v.hl-pink, .v.hl-rose { background: #F3D6D6; } .v.hl-blue, .v.hl-sky { background: #D6E2F2; }
.reader .v[class*="hl-"] { color: #1F1D1B; }
.reader[data-read="dark"] .v.hl-gold { background: #4A3A16; } .reader[data-read="dark"] .v.hl-green, .reader[data-read="dark"] .v.hl-mint { background: #1E3F3C; }
.reader[data-read="dark"] .v.hl-pink, .reader[data-read="dark"] .v.hl-rose { background: #472628; } .reader[data-read="dark"] .v.hl-blue, .reader[data-read="dark"] .v.hl-sky { background: #22324A; }
.reader[data-read="dark"] .v[class*="hl-"] { color: #EFEBE4; }
.v.noted sup::after { content: "•"; color: var(--spruce); margin-left: 2px; }
.reader.red .v .wj { color: #A33A2E; }
.reader[data-read="dark"].red .v .wj { color: #E59384; }
.chapter-nav { display: flex; justify-content: space-between; gap: 10px; padding: 8px 20px 40px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(20,19,18,0.42); animation: fade 0.2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow-y: auto;
  background: var(--card); color: var(--ink); border-radius: 26px 26px 0 0; box-shadow: var(--float);
  padding: 10px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; animation: up 0.26s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { align-self: center; width: 38px; height: 5px; border-radius: 12px; background: var(--sunk); flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; flex-grow: 1; font: 400 22px/28px var(--serif); }
.swatches { display: flex; gap: 12px; }
.swatch { width: 34px; height: 34px; border-radius: 999px; border: 2px solid transparent; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--spruce); }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.theme-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid rgba(31,29,27,0.12); font: 600 13px/18px var(--sans); }
.theme-grid button span { font: 500 22px/1 var(--serif); }
.theme-grid button[aria-checked="true"] { border: 2px solid var(--spruce); padding: 11px; }
.font-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.font-row button { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.font-row button[aria-checked="true"] { border: 2px solid var(--spruce); padding: 9px 11px; }
.font-row b { font-weight: 400; font-size: 22px; line-height: 26px; }
.font-row small { font: 500 11.5px/14px var(--sans); color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font: 600 14px/20px var(--sans); box-shadow: var(--float); animation: up 0.2s ease both; max-width: calc(100% - 32px); }

/* grids */
.grid-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid-books a { min-height: 48px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); text-decoration: none; color: var(--ink); font: 500 15px/20px var(--sans); display: flex; align-items: center; }
.grid-ch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.grid-ch a { aspect-ratio: 1; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font: 600 16px var(--sans); font-variant-numeric: tabular-nums; }
.grid-ch a.read { background: var(--spruce-soft); color: var(--spruce); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.seg button, .seg a { flex: 1; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 14px/20px var(--sans); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.seg [aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(31,29,27,0.12); }

/* numbered points */
.points { counter-reset: p; display: flex; flex-direction: column; }
.points li { list-style: none; display: flex; gap: 14px; padding: 16px 18px; }
.points li + li { border-top: 1px solid var(--line); }
.points .n { width: 28px; height: 28px; border-radius: 999px; background: var(--spruce-soft); color: var(--spruce); display: flex; align-items: center; justify-content: center; font: 600 13px var(--sans); flex-shrink: 0; margin-top: 2px; }
.points p { font: 400 16.5px/27px var(--serif); }
.points ol, ol.points { margin: 0; padding: 0; }

/* rhythm grid */
.days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.days span { aspect-ratio: 1; border-radius: 6px; background: var(--sunk); }
.days span.past { background: var(--spruce-soft); }
.days span.on { background: var(--spruce); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats b { display: block; font: 600 22px/28px var(--sans); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; line-height: 17px; color: var(--ink-2); }

.avatar { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; background: linear-gradient(145deg, var(--band), #DCD6CC); display: flex; align-items: center; justify-content: center; font: 500 28px var(--serif); color: var(--ink); box-shadow: 0 0 0 4px var(--card), 0 10px 26px -12px rgba(31,29,27,0.35); }
.avatar.sm { width: 36px; height: 36px; font: 600 14px var(--sans); box-shadow: none; }

/* dark full-bleed screens */
.dark-screen { min-height: 100vh; background: var(--hero); color: var(--hero-ink); display: flex; flex-direction: column; gap: 22px; padding-bottom: calc(30px + var(--safe-b)); }
.dark-screen .seg { background: rgba(246,243,236,0.12); margin: 0 20px; }
.dark-screen .seg a { color: #DCE7E4; }
.dark-screen .seg [aria-selected="true"] { background: var(--hero-ink); color: #10302F; }
.qr-card { position: relative; margin: 36px 24px 0; padding: 58px 24px 24px; border-radius: 28px; background: #fff; color: #1F1D1B; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55); }
.qr-card .avatar { position: absolute; top: -38px; left: 50%; margin-left: -38px; width: 76px; height: 76px; box-shadow: 0 0 0 5px #fff; }
.qr-box { position: relative; width: 216px; height: 216px; padding: 12px; border-radius: 20px; border: 1px solid rgba(31,29,27,0.08); background: #fff; }
.qr-box svg { width: 190px; height: 190px; display: block; }
.qr-box .mark { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.scan-wrap { position: relative; align-self: center; width: min(260px, 72vw); aspect-ratio: 1; margin-top: 30px; border-radius: 26px; overflow: hidden; background: #0C1514; }
.scan-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-wrap .c { position: absolute; width: 44px; height: 44px; border: 0 solid var(--hero-ink); }
.scan-wrap .c.tl { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 22px; }
.scan-wrap .c.tr { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 22px; }
.scan-wrap .c.bl { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 22px; }
.scan-wrap .c.br { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 22px; }
.scan-wrap .beam { position: absolute; left: 22px; right: 22px; top: 46%; height: 2px; background: linear-gradient(90deg, transparent, #7CC4C0, transparent); box-shadow: 0 0 18px 2px rgba(124,196,192,0.55); animation: beam 2.4s ease-in-out infinite alternate; }
@keyframes beam { from { top: 18%; } to { top: 80%; } }

/* give */
.amount { font: 400 64px/70px var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; border: 0; background: transparent; color: var(--ink); width: 100%; text-align: center; padding: 0; }
.amount-wrap { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.amount-wrap .cur-sym { font: 400 40px/70px var(--serif); color: var(--ink-2); }
.pay-mark { outline: 1px solid var(--line); width: 46px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font: 700 11px/1 var(--sans); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(31,29,27,0.12); }

/* museum */
.gallery-list li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.gallery-list { margin: 0; padding: 0; }
.gallery-list .rail { display: flex; flex-direction: column; align-items: center; }
.gallery-list .rail i { width: 2px; flex-grow: 1; background: var(--track); }
.gallery-list .rail i.done { background: var(--spruce); }
.gallery-list .dot { width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid #CFC9C0; background: var(--card); display: flex; align-items: center; justify-content: center; font: 600 11.5px var(--sans); color: var(--ink-2); flex-shrink: 0; }
.gallery-list .dot.done { background: var(--spruce-soft); color: var(--spruce); border: 0; }
.gallery-list a { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 18px; text-decoration: none; color: var(--ink); }
.gallery-list .place { font: 600 11px/14px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.gallery-list .title { font: 400 19px/25px var(--serif); }
.gallery-list .meta { font-size: 12.5px; color: var(--ink-3); }
.art { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; padding: 18px; color: #F6F3EC; }
.art .cap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.art .cap b { font: 400 22px/28px var(--serif); }
.art .cap span { font-size: 12.5px; color: rgba(246,243,236,0.8); }
.film { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--r-lg); background: #000; }

/* misc */
.empty { padding: 28px 20px; text-align: center; color: var(--ink-3); font-size: 14.5px; line-height: 22px; }
.kbd-hint { font-size: 12px; color: var(--ink-3); }
.sticky-cta { position: sticky; bottom: calc(96px + var(--safe-b)); z-index: 5; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.fab-row { display: flex; gap: 8px; }
.selbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--safe-b)); z-index: 60; max-width: 536px; margin: 0 auto;
  background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: var(--float); padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: up 0.2s ease both;
}
.selbar .acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.selbar .acts button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ink-2); font: 500 11.5px/14px var(--sans); padding: 6px 0; border-radius: 12px; }
.selbar .acts button:active { background: var(--sunk); }

/* Shared Look Up / Translate / Share sheets (wfn-tts.js, wfn-lookup.js) in App 2.0 colours */
html:root { --wfn-glass-bg: rgba(255,255,255,0.88); --wfn-glass-border: rgba(255,255,255,0.7); --wfn-glass-ink: #1F1D1B; --wfn-glass-ink-2: #55514B; --wfn-glass-ink-3: #6E6A63; --wfn-glass-accent: #2A6766; --wfn-glass-line: rgba(31,29,27,0.08); }
html[data-theme="dark"]:root { --wfn-glass-bg: rgba(28,26,24,0.9); --wfn-glass-border: rgba(239,235,228,0.12); --wfn-glass-ink: #EFEBE4; --wfn-glass-ink-2: #B3ADA3; --wfn-glass-ink-3: #8F897F; --wfn-glass-accent: #7CC4C0; --wfn-glass-line: rgba(239,235,228,0.1); }
html #wfnGlass { font-family: var(--sans); }

/* Listen & Tolu */
.voice-stack { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(92px + var(--safe-b)); z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#app.no-nav ~ .voice-stack, body.no-nav .voice-stack { bottom: calc(20px + var(--safe-b)); }
.voice-tray { display: none; flex-direction: column; align-items: flex-end; gap: 8px; }
.voice-stack.open .voice-tray { display: flex; animation: up 0.2s ease both; }
.voice-pill { height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: var(--float); display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); }
.voice-pill .i { color: var(--spruce); }
.voice-fab { width: 50px; height: 50px; border: 0; border-radius: 999px; background: var(--spruce); color: #fff; box-shadow: 0 10px 26px -10px rgba(16,48,47,0.6); display: flex; align-items: center; justify-content: center; }
:root[data-theme="dark"] .voice-fab { color: #0E1E1E; }
.voice-stack.playing .voice-fab { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(42,103,102,0.18), 0 10px 26px -10px rgba(16,48,47,0.6); } }
@media (prefers-reduced-motion: reduce) { .voice-stack.playing .voice-fab { animation: none; } }
body:has(.selbar) .voice-stack, body:has(.sheet) .voice-stack, body:has(#wfnGlass.open) .voice-stack { display: none; }
.tolu-mic { width: 84px; height: 84px; border-radius: 999px; border: 0; background: var(--spruce-soft); color: var(--spruce); display: flex; align-items: center; justify-content: center; }
.tolu-mic .i { width: 34px; height: 34px; }
.tolu-mic.on { background: var(--spruce); color: #fff; animation: pulse 1.4s ease-in-out infinite; }
select.field { appearance: auto; }
.chip.hero-chip { background: rgba(246,243,236,0.14); color: var(--hero-ink); height: 36px; }
.chip.hero-chip[data-lang]:not([data-lang="en"]) { background: var(--hero-ink); color: #10302F; }
.chip[data-translate][data-lang]:not([data-lang="en"]):not(.hero-chip) { background: var(--spruce-soft); color: var(--spruce); }

/* Bible reader tools */
.reader-tools { position: sticky; top: calc(60px + var(--safe-t)); z-index: 9; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 10px; background: var(--rbg); }
.reader-tools::-webkit-scrollbar { display: none; }
.reader-tools .chip { background: rgba(127,127,127,0.12); color: var(--rink); flex-shrink: 0; }
.reader .w { cursor: pointer; border-radius: 3px; }
.reader .w:hover { background: rgba(127,127,127,0.14); }
.reader .w:active { background: rgba(42,103,102,0.22); }
.v sup { cursor: pointer; padding: 2px 3px; border-radius: 5px; }
.v sup:hover { background: rgba(42,103,102,0.14); color: var(--spruce); }
.v.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 60% { background: rgba(233,184,114,0.45); } 100% { background: transparent; } }
.compare-block { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(127,127,127,0.25); display: flex; flex-direction: column; gap: 8px; }
.compare-block .icon-btn { color: var(--rink3); }

/* Intro cards (the classic welcome pages) */
.intro-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: var(--band); }
.intro-card h2 { margin: 0; font: 400 22px/28px var(--serif); text-wrap: balance; }
.intro-card p { font-size: 14.5px; line-height: 22px; color: var(--ink-2); }
.intro-card .intro-verse { font-family: var(--serif); font-size: 16px; line-height: 25px; color: var(--ink); }
.intro-card .intro-verse span { font: 600 12.5px var(--sans); color: var(--amber); }
.intro-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.intro-list b { color: var(--ink); font-weight: 600; }
.intro-card .btn { align-self: flex-start; }
/* Make the selected option obvious in both themes */
.seg [aria-selected="true"] { background: var(--card); color: var(--spruce); box-shadow: inset 0 0 0 1.5px var(--spruce), 0 1px 3px rgba(31,29,27,0.12); }
.explore button.card { color: var(--ink); border: 1px solid var(--hair); }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.dark-screen .seg [aria-selected="true"] { box-shadow: none; }

/* Now reading: always-visible Pause / Stop while anything is read aloud */
.now-playing { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: calc(76px + env(safe-area-inset-right, 0px)); bottom: calc(92px + var(--safe-b)); z-index: 56; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--float); animation: up 0.2s ease both; }
body.no-nav .now-playing { bottom: calc(18px + var(--safe-b)); }
.now-playing .np-t { flex-grow: 1; font: 600 13.5px/1.2 var(--sans); }
.now-playing .np-b { height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,0.12); color: inherit; display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px var(--sans); }
:root[data-theme="dark"] .now-playing .np-b { background: rgba(0,0,0,0.08); }
.now-playing .np-stop { background: #C2412D; color: #fff; }
.np-wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.np-wave i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; animation: npw 0.9s ease-in-out infinite; }
.np-wave i:nth-child(2) { animation-delay: .15s; } .np-wave i:nth-child(3) { animation-delay: .3s; }
.now-playing.paused .np-wave i { animation: none; }
@keyframes npw { 50% { height: 16px; } }
body:has(.selbar) .now-playing { display: none; }

/* Tab bar and chapter arrows slide away while reading */
.nav { transition: transform .3s ease, opacity .3s ease; }
body.chrome-hidden .nav { transform: translateY(110%); opacity: 0; }
@media (min-width: 600px) { body.chrome-hidden .nav { transform: translateX(-50%) translateY(110%); } }
.ch-fab { position: fixed; top: 46%; z-index: 50; transform: translateY(-50%); transition: opacity .3s ease, transform .3s ease, top .5s cubic-bezier(.22,.8,.3,1); }
.ch-fab.prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.ch-fab.next { right: max(10px, env(safe-area-inset-right, 0px)); }
body.chrome-hidden .ch-fab.prev { opacity: 0; transform: translateY(-50%) translateX(-64px); pointer-events: none; }
body.chrome-hidden .ch-fab.next { opacity: 0; transform: translateY(-50%) translateX(64px); pointer-events: none; }
.ch-fab a, .ch-fab span { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--rbg, #fff) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--spruce); box-shadow: 0 8px 20px rgba(31,29,27,0.16); border: 1px solid rgba(127,127,127,0.18); }
.ch-fab span { opacity: .3; }
.ch-fab a:active { transform: scale(.92); }
.to-top { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(96px + var(--safe-b)); z-index: 54; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
body.no-nav .to-top { bottom: calc(20px + var(--safe-b)); }
body:has(.now-playing) .to-top { bottom: calc(152px + var(--safe-b)); }
body.chrome-hidden .voice-stack { bottom: calc(20px + var(--safe-b)); }
.voice-stack { transition: bottom .3s ease; }

/* Verse-by-verse layout (classic), with related-verses icon */
.reader.by-verse #verses { display: flex; flex-direction: column; gap: 10px; }
.reader.by-verse .v { display: block; padding: 2px 6px; margin: 0 -6px; border-radius: 8px; }
.v .xr { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; margin-left: 2px; padding: 0; border: 0; background: none; color: var(--rink3); opacity: .8; vertical-align: -3px; border-radius: 6px; cursor: pointer; }
.v .xr svg { width: 16px; height: 16px; }
.v .xr:active { background: rgba(127,127,127,0.18); }

/* Your day in the Word: tick a step, or open it */
.day-tick { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.day-tick:active { background: var(--sunk); }
.day-list .row-link { cursor: default; }
.pulse-once { animation: pulseOnce 1.4s ease; }
@keyframes pulseOnce { 30% { box-shadow: 0 0 0 6px rgba(233,184,114,0.45), 0 24px 50px -30px rgba(16,48,47,0.7); } }

.tolu-timer { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(150px + var(--safe-b)); z-index: 70; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--sans); font-variant-numeric: tabular-nums; box-shadow: var(--float); }
.voice-pill[hidden] { display: none !important; }

/* ---------- Nov 9 evening: calmer Today, glass, hide-on-read ---------- */
/* Icon-only chips (Translate is a globe everywhere) */
.chip.icon-chip { width: 36px; padding: 0; justify-content: center; }
.chip.icon-chip svg { width: 17px; height: 17px; }

/* Reveal panels (Verse of the Day and Declaration open on demand) */
.reveal { display: flex; flex-direction: column; gap: 14px; animation: revealIn .28s ease both; }
.reveal[hidden] { display: none !important; }
@keyframes revealIn { from { opacity: 0; transform: translateY(-4px); } }

/* Small glass icon buttons and the tiny Amen pill */
.mini-actions { display: flex; align-items: center; gap: 8px; }
.glass-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  color: var(--hero-ink); background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.glass-ic:active { transform: scale(.94); }
.glass-ic[aria-pressed="true"] { background: rgba(233,184,114,0.28); border-color: rgba(233,184,114,0.5); }
.mini-actions.light .glass-ic { color: var(--spruce); background: color-mix(in srgb, var(--spruce-soft) 70%, transparent); border-color: color-mix(in srgb, var(--spruce) 18%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.amen-pill {
  height: 30px; padding: 0 11px 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .02em; color: var(--hero-ink);
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
}
.amen-pill svg { width: 13px; height: 13px; opacity: .55; }
.amen-pill.on { background: var(--hero-accent); border-color: var(--hero-accent); color: #2B1E0C; }
.amen-pill.on svg { opacity: 1; }
.mini-actions.light .amen-pill { color: var(--spruce); background: var(--card); border-color: color-mix(in srgb, var(--spruce) 28%, transparent); }
.mini-actions.light .amen-pill.on { background: var(--spruce); border-color: var(--spruce); color: #fff; }
:root[data-theme="dark"] .mini-actions.light .amen-pill.on { color: #0E1E1E; }
.amen-dot { display: inline-flex; width: 18px; height: 18px; border-radius: 999px; background: var(--hero-accent); color: #2B1E0C; align-items: center; justify-content: center; vertical-align: -3px; margin-left: 4px; }
.amen-dot svg { width: 11px; height: 11px; stroke-width: 2.6; }

/* Declare it all: a liquid-glass button */
.glass-btn {
  position: relative; overflow: hidden; align-self: flex-start; height: 46px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
  display: inline-flex; align-items: center; gap: 9px; color: #fff; font: 600 15px/1 var(--sans); letter-spacing: .01em;
  background: linear-gradient(135deg, rgba(58,128,126,0.92) 0%, rgba(42,103,102,0.9) 45%, rgba(23,64,63,0.92) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 6px rgba(0,0,0,0.18), 0 12px 26px -12px rgba(42,103,102,0.75);
  transition: transform .15s ease, box-shadow .2s ease;
}
.glass-btn svg { color: #F3C98A; }
.glass-btn .glass-sheen { position: absolute; inset: 0 0 50% 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.02)); pointer-events: none; }
.glass-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent); transform: skewX(-18deg); animation: glassShine 5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes glassShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.glass-btn:active { transform: scale(.97); }
.glass-btn[aria-expanded="true"] { align-self: stretch; justify-content: center; background: linear-gradient(135deg, rgba(42,103,102,0.14), rgba(42,103,102,0.06)); color: var(--spruce); border-color: color-mix(in srgb, var(--spruce) 25%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.glass-btn[aria-expanded="true"]::after { display: none; }
.glass-btn[aria-expanded="true"] svg { color: var(--spruce); }
:root[data-theme="dark"] .glass-btn:not([aria-expanded="true"]) { color: #0E1E1E; background: linear-gradient(135deg, rgba(154,214,210,0.95), rgba(124,196,192,0.9) 50%, rgba(86,160,156,0.92)); }
:root[data-theme="dark"] .glass-btn:not([aria-expanded="true"]) svg { color: #6B3E0E; }

/* Liquid-glass tab bar: a floating capsule that slides away while you read */
.nav {
  left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + var(--safe-b));
  padding: 6px 4px; border-radius: 28px; border: 1px solid rgba(255,255,255,0.55); border-top: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.38));
  -webkit-backdrop-filter: blur(22px) saturate(185%); backdrop-filter: blur(22px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 40px -16px rgba(31,29,27,0.35), 0 2px 8px rgba(31,29,27,0.06);
}
:root[data-theme="dark"] .nav { border-color: rgba(255,255,255,0.12); background: linear-gradient(180deg, rgba(44,41,38,0.66), rgba(28,26,24,0.5)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 40px -16px rgba(0,0,0,0.6); }
.nav a { padding: 4px 0; }
.nav a[aria-current="page"] .pill { background: color-mix(in srgb, var(--spruce-soft) 85%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
body.chrome-hidden .nav { transform: translateY(calc(100% + 24px)); }
@media (min-width: 600px) { .nav { left: 50%; right: auto; width: 540px; border-radius: 28px; } body.chrome-hidden .nav { transform: translateX(-50%) translateY(calc(100% + 24px)); } }
#app { padding-bottom: calc(104px + var(--safe-b)); }

/* Reader tool row (version, jump, summary, translate) hides while you read */
.reader-tools { transition: transform .3s ease, opacity .25s ease; }
body.chrome-hidden .reader-tools { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.reader .topbar { position: sticky; z-index: 11; }

/* Books of the Bible: testament tabs, then book -> chapter -> verse */
.book-nav { padding: 4px 0; overflow: hidden; }
.bn-book + .bn-book { border-top: 1px solid var(--line); }
.bn-row { width: 100%; min-height: 54px; padding: 0 16px 0 18px; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); scroll-margin-top: 12px; }
.bn-name { flex-grow: 1; font: 500 16.5px/22px var(--serif); }
.bn-count { font: 500 12.5px var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bn-chev { color: var(--ink-3); display: flex; transition: transform .2s ease; }
.bn-book.open .bn-row { color: var(--spruce); }
.bn-book.open .bn-name { font-weight: 600; }
.bn-book.open .bn-chev { transform: rotate(180deg); color: var(--spruce); }
.bn-ch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 2px 14px 14px; }
.bn-ch button { height: 46px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font: 600 15.5px var(--sans); font-variant-numeric: tabular-nums; }
.bn-ch button.on { background: var(--spruce); color: #fff; }
:root[data-theme="dark"] .bn-ch button.on { color: #0E1E1E; }
.bn-verses { grid-column: 1 / -1; margin: 2px 0 6px; padding: 14px; border-radius: 18px; background: var(--sunk); animation: revealIn .25s ease both; }
.bn-vhead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 600 13.5px var(--sans); color: var(--ink-2); }
.bn-vhead span { flex-grow: 1; }
.bn-vhead a { font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.bn-vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bn-vgrid a { height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); background: var(--card); font: 600 15px var(--sans); font-variant-numeric: tabular-nums; }
.bn-vgrid a:active { background: var(--spruce); color: #fff; }

/* ---------- The Word Climb (App 2.0) ---------- */
.wc2 { --wc2-sky1: #DCE7F3; --wc2-sky2: #F6E3C4; --wc2-far1: #AEBDD2; --wc2-far2: #8FA2BE; --wc2-near1: #7F93B0; --wc2-near2: #5D7396; min-height: 100vh; }
:root[data-theme="dark"] .wc2 { --wc2-sky1: #1B2536; --wc2-sky2: #3A2E22; --wc2-far1: #3E4C66; --wc2-far2: #2F3B52; --wc2-near1: #26324A; --wc2-near2: #1A2335; }
.wc2-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 4px 12px 0; }
.wc2-hero h1 { margin: 0; font: 400 34px/40px var(--serif); }
.wc2-hero p { color: var(--ink-2); font-size: 15px; line-height: 23px; max-width: 30ch; }
.wc2-streak { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font: 600 12.5px var(--sans); }
.wc2-map { overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 0 0 16px; border-radius: 28px; }
.wc2-map .btn { margin: 0 16px; width: auto; }
.wc2-map-art { position: relative; }
.wc2-map-svg { display: block; width: 100%; height: auto; }
.wc2-camp .ring { fill: #fff; stroke: #CFC9C0; stroke-width: 1.5; }
.wc2-camp text { font: 700 13px var(--sans); fill: #1F1D1B; }
.wc2-camp.done .ring { fill: var(--spruce); stroke: none; } .wc2-camp.done text { fill: #fff; }
.wc2-camp.here .ring { fill: #E2A85A; stroke: #fff; stroke-width: 2.5; }
.wc2-camp .pulse { fill: none; stroke: #E2A85A; stroke-width: 2; opacity: .6; transform-box: fill-box; transform-origin: center; animation: wc2Pulse 2s ease-out infinite; }
@keyframes wc2Pulse { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wc2-camp .pulse { animation: none; } }
.wc2-labels span { position: absolute; transform: translate(24px, -50%); font: 600 11.5px var(--sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); white-space: nowrap; pointer-events: none; }
.wc2-labels span.here { color: #FFF2D9; font-size: 12.5px; }
.wc2-labels span.top { transform: translate(calc(-100% - 22px), -50%); }
.wc2-map-foot { display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.wc2-map-foot .grow { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.wc2-bar { display: block; height: 6px; border-radius: 9px; background: var(--sunk); overflow: hidden; }
.wc2-bar span { display: block; height: 6px; background: linear-gradient(90deg, var(--spruce), #E2A85A); border-radius: 9px; }
.wc2-daily { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, var(--card), var(--amber-soft)); }
.wc2-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wc2-mode { display: flex; flex-direction: column; gap: 12px; padding: 16px; text-decoration: none; color: var(--ink); }
.wc2-mode .t { display: block; font: 600 15.5px/20px var(--sans); }
.wc2-mode .m { display: block; margin-top: 3px; font: 400 12.5px/17px var(--sans); color: var(--ink-3); }
.wc2-help { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.wc2-help b { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); margin-right: 4px; }
.wc2-badges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.wc2-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wc2-badge .medal { width: 52px; height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 700 16px var(--sans); color: #B3ADA3; background: var(--card); border: 1.5px dashed #CFC9C0; }
.wc2-badge.got .medal { color: #985F1E; background: radial-gradient(circle at 35% 30%, #FFF4DF, #F5EAD9 60%, #EBD3AE); border: 2px solid #E2A85A; box-shadow: 0 6px 14px -8px rgba(152,95,30,.6); }
.wc2-badge.got .medal svg { width: 20px; height: 20px; stroke-width: 2.4; }
.wc2-badge .nm { font: 600 11.5px var(--sans); color: var(--ink-2); }
.wc2-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wc2-books a { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); text-decoration: none; color: var(--ink); font: 500 15px var(--sans); }
.wc2-books a span:first-child { flex-grow: 1; }
.wc2-books .n { font: 600 12px var(--sans); color: var(--spruce); background: var(--spruce-soft); border-radius: 999px; padding: 3px 8px; }
/* game */
.wc2-game .topbar h1 { color: var(--ink-2); }
.wc2-count { min-width: 44px; padding-right: 8px; text-align: right; font: 600 13px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wc2-track { height: 4px; margin: 0 16px; border-radius: 9px; background: var(--sunk); overflow: hidden; }
.wc2-track span { display: block; height: 4px; width: 0; background: linear-gradient(90deg, var(--spruce), #E2A85A); border-radius: 9px; transition: width .4s ease; }
.wc2-q { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px 2px; }
.wc2-q h2 { margin: 0; font: 400 25px/34px var(--serif); text-wrap: balance; }
.wc2-opts { display: flex; flex-direction: column; gap: 10px; }
.wc2-opt { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px 10px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); text-align: left; color: var(--ink); font: 500 16px/22px var(--sans); transition: transform .12s ease, background .2s, border-color .2s, opacity .2s; }
.wc2-opt:not(:disabled):active { transform: scale(.985); }
.wc2-opt .key { width: 32px; height: 32px; flex-shrink: 0; border-radius: 11px; background: var(--sunk); display: flex; align-items: center; justify-content: center; font: 700 13px var(--sans); color: var(--ink-2); }
.wc2-opt.right { background: var(--spruce-soft); border-color: var(--spruce); }
.wc2-opt.right .key { background: var(--spruce); color: #fff; }
.wc2-opt.wrong { background: #F7E1DE; border-color: #C6574A; }
.wc2-opt.wrong .key { background: #C6574A; color: #fff; }
:root[data-theme="dark"] .wc2-opt.wrong { background: #3A1E1B; }
.wc2-opt.gone { opacity: .28; }
.wc2-opt:disabled { cursor: default; }
.wc2-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.wc2-tools .chip:disabled { opacity: .45; }
.wc2-hint { animation: revealIn .25s ease both; }
.wc2-why { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: revealIn .25s ease both; }
.wc2-why p { font-size: 17px; line-height: 27px; }
.wc2-why a { font-weight: 600; text-decoration: none; }
.wc2-verdict { display: inline-flex; align-items: center; gap: 8px; font: 600 16px var(--sans); }
.wc2-verdict svg { width: 22px; height: 22px; padding: 4px; border-radius: 999px; stroke-width: 2.6; }
.wc2-why.ok .wc2-verdict { color: var(--spruce); } .wc2-why.ok .wc2-verdict svg { background: var(--spruce); color: #fff; }
.wc2-why.no .wc2-verdict { color: #B04A3E; } .wc2-why.no .wc2-verdict svg { background: #C6574A; color: #fff; }
.wc2-why .btn { margin-top: 6px; }
.wc2-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 10px; }
.wc2-done h2 { margin: 0; font: 400 28px/34px var(--serif); text-wrap: balance; }
.wc2-done p { font-size: 15.5px; line-height: 24px; max-width: 34ch; }
.wc2-done .scripture-box, .wc2-done p.serif { text-align: left; align-self: stretch; max-width: none; }
.wc2-ring { --p: 0; width: 132px; height: 132px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--spruce) calc(var(--p) * 1%), var(--sunk) 0); }
.wc2-ring span { width: 108px; height: 108px; border-radius: 999px; background: var(--bg); display: flex; align-items: baseline; justify-content: center; padding-top: 34px; box-sizing: border-box; font: 600 36px var(--sans); font-variant-numeric: tabular-nums; }
.wc2-ring small { font-size: 16px; color: var(--ink-3); }
.wc2-cert { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }

/* The Story of Jesus: paintings */
.museum-hero, .museum-art { background-size: cover; background-position: center; }
.museum-art { aspect-ratio: 3 / 2.15; min-height: 300px; justify-content: flex-end; padding-bottom: 22px; }
.museum-art h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.museum-plaque { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; margin: -4px 0 0; border-left: 3px solid var(--amber); background: var(--card); border-radius: 0 14px 14px 0; box-shadow: var(--shadow); }
.museum-plaque b { font: 500 17px/22px var(--serif); }
.museum-plaque span { font-size: 12px; line-height: 17px; color: var(--ink-3); }
.gl-item { flex-direction: row !important; align-items: center; gap: 12px !important; }
.gl-thumb { width: 74px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 14px -8px rgba(0,0,0,0.5); }
.gl-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.bn-vhead .bn-close { width: 30px; height: 30px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.bn-read { height: 44px; margin-bottom: 12px; }
.bn-vlabel { display: block; margin-bottom: 8px; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/* Day list: steps you haven't opened yet can't be ticked */
.radio-dot.locked { border-style: dashed; opacity: .5; }
