/* =========================================================================
   The Christianity Project — Design System
   Pure CSS, no build. Mobile-first, responsive, AdSense-safe.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — warm parchment, deep ink, sacred gold */
  --parchment:      #faf7f0;
  --parchment-2:    #f3ede0;
  --surface:        #ffffff;
  --surface-2:      #fbf8f2;
  --ink:            #24211c;
  --ink-soft:       #55504733;
  --muted:          #6b655a;
  --line:           #e7dfce;

  --navy:           #22354e;   /* primary */
  --navy-700:       #1a2a3f;
  --navy-800:       #142132;
  --gold:           #b98a34;   /* accent */
  --gold-soft:      #d8b877;
  --gold-tint:      #f6edd8;
  --sky:            #4a6b8a;

  /* Semantic */
  --bg:             var(--parchment);
  --fg:             var(--ink);
  --brand:          var(--navy);
  --accent:         var(--gold);
  --card:           var(--surface);
  --border:         var(--line);

  /* Typography */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-read:    "Lora", "Georgia", serif;

  /* Fluid type scale */
  --fs-hero:  clamp(2.2rem, 1.4rem + 3.6vw, 4rem);
  --fs-h1:    clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --fs-h2:    clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  --fs-h3:    clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-body:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --fs-small: 0.875rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  --container: 1200px;
  --container-narrow: 760px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(30,25,15,.07), 0 1px 2px rgba(30,25,15,.05);
  --shadow: 0 10px 30px -12px rgba(30,25,15,.22), 0 2px 8px rgba(30,25,15,.06);
  --shadow-lg: 0 24px 60px -20px rgba(20,25,40,.35);
  --ring: 0 0 0 3px rgba(185,138,52,.35);
  --header-h: 118px;
  --tr: 220ms cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f;
    --parchment: #14181f;
    --parchment-2: #1a1f27;
    --surface: #1b212b;
    --surface-2: #20272f;
    --card: #1b212b;
    --fg: #e9e4d8;
    --ink: #e9e4d8;
    --muted: #a49f92;
    --line: #2c333e;
    --border: #2c333e;
    --navy: #9db8d6;
    --navy-700: #b7cbe2;
    --navy-800: #cdddf0;
    --gold: #d8b877;
    --gold-tint: #2a2a20;
    --shadow: 0 12px 34px -14px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.7);
  }
}
/* Manual theme override */
:root[data-theme="dark"] {
  --bg:#14181f;--parchment:#14181f;--parchment-2:#1a1f27;--surface:#1b212b;--surface-2:#20272f;--card:#1b212b;
  --fg:#e9e4d8;--ink:#e9e4d8;--muted:#a49f92;--line:#2c333e;--border:#2c333e;--navy:#9db8d6;--navy-700:#b7cbe2;
  --navy-800:#cdddf0;--gold:#d8b877;--gold-tint:#2a2a20;
  --shadow:0 12px 34px -14px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.4);
  --shadow-sm:0 1px 3px rgba(0,0,0,.5);--shadow-lg:0 24px 60px -18px rgba(0,0,0,.7);
}
:root[data-theme="light"] {
  --bg:#faf7f0;--parchment:#faf7f0;--parchment-2:#f3ede0;--surface:#fff;--surface-2:#fbf8f2;--card:#fff;
  --fg:#24211c;--ink:#24211c;--muted:#6b655a;--line:#e7dfce;--border:#e7dfce;--navy:#22354e;--navy-700:#1a2a3f;
  --navy-800:#142132;--gold:#b98a34;--gold-tint:#f6edd8;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; color: var(--fg); font-weight: 600; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--gold-soft); color: #1a1200; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 480px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
/* Fixed 2-column grid (always 2 per row, never 3-over-1) — used for the
   "Latest articles" strip on jesus.html so 4 cards stay a symmetric 2x2. */
.cols-fixed-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px){ .cols-fixed-2 { grid-template-columns: 1fr; } }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
}
.eyebrow::before { content:""; width:1.6rem; height:2px; background: var(--gold); display:inline-block; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .75rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform var(--tr), background var(--tr), color var(--tr), box-shadow var(--tr);
  text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .btn-primary, .btn-primary { }
.btn-primary:hover { background: var(--navy-700); color:#fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #241701; }
.btn-gold:hover { background: var(--gold-soft); color:#241701; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; background: var(--gold-tint); color: var(--gold);
}
.badge.soon { background: var(--parchment-2); color: var(--muted); }
.badge.ot { background:#eef3f0; color:#3f6b57; }
.badge.nt { background:#f6edd8; color:#9a6b1f; }
:root[data-theme="dark"] .badge.ot{background:#22302a;color:#8fc7a9;}
:root[data-theme="dark"] .badge.nt{background:#2f2a1c;color:#e0bd7a;}

/* ---------- Header / nav (two-row, editorial style) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-top { padding-block: .7rem; }
.header-top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { grid-column: 2; display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); color: var(--fg); white-space: nowrap; justify-self: center; }
.brand:hover { color: var(--fg); }
.brand .mark { width: 50px; height: 50px; flex: none; }
.brand-text b { font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: -.01em; display: block; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 3px; }
.nav-tools { grid-column: 3; display: flex; align-items: center; gap: .25rem; justify-self: end; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--fg); cursor: pointer;
}
.icon-btn:hover { background: var(--gold-tint); color: var(--gold); }
.nav-toggle { display: none; grid-column: 1; justify-self: start; }

/* Second row — the menu */
.header-nav { border-top: 1px solid var(--border); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: .2rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--fg); font-weight: 500; font-size: 1rem; padding: .85rem .9rem; border-radius: 8px 8px 0 0;
  position: relative; white-space: nowrap; transition: color var(--tr), background var(--tr);
}
.nav-links a:hover { color: var(--gold); background: var(--gold-tint); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content:""; position:absolute; left:.9rem; right:.9rem; bottom:0; height:3px; background: var(--gold); border-radius:2px 2px 0 0; }
/* Desktop: the menu always stays on ONE line. It uses the full width of the
   header and its spacing/size shrink smoothly with the window; below 981px the
   hamburger menu takes over (see "Mobile nav"). */
@media (min-width: 981px) {
  .header-nav > .container { max-width: none; }
  .nav-links { flex-wrap: nowrap; gap: 0; --nav-px: clamp(.36rem, .05rem + .72vw, .9rem); }
  .nav-links a { font-size: clamp(.86rem, .62rem + .38vw, 1rem); padding-left: var(--nav-px); padding-right: var(--nav-px); }
  .nav-item > a { padding-right: .2rem; }
  .nav-links a.active::after { left: var(--nav-px); right: var(--nav-px); }
}
/* Nav submenu (Read the Bible ▾) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding-right: .3rem; }
.submenu-toggle { background: none; border: 0; color: var(--fg); cursor: pointer; padding: .5rem .3rem; display: inline-flex; align-items: center; border-radius: 6px; }
.submenu-toggle:hover { color: var(--gold); }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, -6px); min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .4rem; z-index: 120;
  opacity: 0; visibility: hidden; transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { display: block; padding: .55rem .7rem; border-radius: 7px; color: var(--fg); font-size: .92rem; }
.submenu a:hover { background: var(--gold-tint); color: var(--gold); }

/* Mobile nav */
@media (max-width: 980px) {
  :root { --header-h: 62px; }
  .header-top { padding-block: .45rem; }
  .header-top-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem; }
  .brand { grid-column: 2; justify-self: start; min-width: 0; gap: .55rem; }
  .brand .mark { width: 38px; height: 38px; }
  .nav-tools { grid-column: 3; gap: .1rem; }
  .nav-toggle { display: inline-flex; }
  .header-nav { border-top: 0; }
  /* Menu panel: fades/slides under the header; hidden links are not focusable */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .25rem clamp(1rem,4vw,2rem) 1rem;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain; z-index: 90;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links a {
    display: flex; align-items: center; min-height: 48px; padding: .6rem .4rem; border-radius: 0;
    border-bottom: 1px solid var(--border); font-size: 1.05rem; white-space: normal;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--gold-tint); padding-left: .8rem; }
  /* "Read the Bible" row: link + chevron; the tools list folds open beneath it */
  .nav-item { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--border); }
  .nav-item > a { flex: 1 1 0; border-bottom: 0; padding-right: .4rem; }
  .nav-item .submenu-toggle {
    display: inline-flex; flex: 0 0 52px; align-items: center; justify-content: center;
    min-height: 48px; padding: 0; border-left: 1px solid var(--border); border-radius: 0;
  }
  .submenu-toggle svg { width: 18px; height: 18px; transition: transform 200ms ease; }
  .nav-item.open .submenu-toggle svg { transform: rotate(180deg); }
  .submenu {
    display: none; flex: 1 0 100%; position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: 0; border: 0; border-radius: 0; padding: 0 0 .4rem; background: var(--surface-2);
  }
  .nav-item:hover .submenu, .nav-item:focus-within .submenu { transform: none; }
  .nav-item.open .submenu { display: block; transform: none; left: auto; }
  .submenu a { min-height: 44px; padding: .55rem .4rem .55rem 1.2rem; font-size: 1rem; border-bottom: 0; }
  /* Hamburger turns into an X while the menu is open (where the browser supports CSS `d`) */
  .nav-toggle[aria-expanded="true"] svg path { d: path("M5 5l14 14M19 5L5 19"); }
}
@media (max-width: 640px) { .nav-search { display: none; } }
@media (max-width: 560px) {
  .brand-text small { display: none; }
  .brand { white-space: normal; }
  .brand-text b { font-size: 1.05rem; line-height: 1.1; }
  .nav-lang { min-width: 38px; height: 38px; padding: 0 .45rem !important; }
  .nav-tools .icon-btn, .nav-toggle { width: 40px; height: 40px; }
  .nav-tools .nav-lang { width: auto; }
}
@media (max-width: 360px) {
  .brand .mark { width: 32px; height: 32px; }
  .brand-text b { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(120% 90% at 80% -10%, var(--gold-tint), transparent 55%),
    linear-gradient(180deg, var(--parchment-2), var(--bg)); }
.hero-inner { display: grid; gap: clamp(1.5rem,4vw,3rem); align-items: center; padding-block: clamp(3rem,7vw,6rem); }
@media (min-width: 900px){ .hero-inner { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 1rem; }
.hero p.lead { max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art { position: relative; }
.hero-verse-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-lg);
}

/* ---------- Cards ---------- */
.card {
  --card-pad: clamp(1.2rem, 2.4vw, 1.6rem);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--card-pad); box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex; flex-direction: column; height: 100%;
}

/* ---------- Art thumbnails (16:9 banner on cards) ---------- */
.tcp-thumb {
  display: block; width: calc(100% + 2 * var(--card-pad)); max-width: none;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--card-pad);
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--parchment-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card.has-thumb.tile::before { display: none; }
.card.has-thumb .card-ico { margin-top: 0; }

/* ---------- Hero banner art (page-level) ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero.has-hero-art {
  background-size: cover; background-position: center 30%; background-image: var(--hero-img);
  /* Height grows with viewport WIDTH so the banner keeps a steady ~2.7:1 shape
     from laptops through large monitors — otherwise a capped height makes wide
     screens crop far more of the photo (bottom gets cut off). */
  min-height: clamp(440px, 36vw, 820px); display: flex; align-items: center; text-align: left;
}
.page-hero.has-hero-art > .container { padding-block: clamp(2rem, 4vw, 3.5rem); width: 100%; }
/* No overlay "fog" over the photo — legibility comes from text shadows only */
.page-hero.has-hero-art .breadcrumb, .page-hero.has-hero-art .breadcrumb a { color: rgba(255,255,255,.88); }
.page-hero.has-hero-art .eyebrow { color: #f4dca2; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.page-hero.has-hero-art h1 { color: #fff; font-size: var(--fs-hero); max-width: 22ch; text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.7); }
.page-hero.has-hero-art p { color: rgba(255,255,255,.95); font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); max-width: 40rem; margin-inline: 0; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
/* Directional shade only behind the (left-aligned) text — the right side of
   the photo stays fully clear. Dark regardless of theme so white/gold text reads. */
.page-hero.has-hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(16,20,30,.74) 0%, rgba(16,20,30,.52) 26%, rgba(16,20,30,.2) 52%, rgba(16,20,30,0) 72%);
}
.page-hero > .container { position: relative; z-index: 1; }
.hero.has-hero-art { background-image: var(--hero-img); background-size: cover; background-position: center right; }
.hero.has-hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 74%, transparent) 48%, color-mix(in srgb, var(--bg) 16%, transparent) 100%);
}
.hero.has-hero-art .hero-inner { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .page-hero.has-hero-art { min-height: clamp(360px, 78vw, 460px); background-position: center 28%; }
  .page-hero.has-hero-art::before { background: linear-gradient(90deg, rgba(16,20,30,.78) 0%, rgba(16,20,30,.6) 45%, rgba(16,20,30,.32) 80%, rgba(16,20,30,.18) 100%); }
  .page-hero.has-hero-art[data-hero="games"],
  .page-hero.has-hero-art[data-hero="bible-word"],
  .page-hero.has-hero-art[data-hero="bible-connections"],
  .page-hero.has-hero-art[data-hero="bible-quiz"],
  .page-hero.has-hero-art[data-hero="bible-memory"],
  .page-hero.has-hero-art[data-hero="bible-timeline"],
  .page-hero.has-hero-art[data-hero="whoswho"],
  .page-hero.has-hero-art[data-hero="family-tree"],
  .page-hero.has-hero-art[data-hero="gospel-harmony"] { background-position: 66% center; }
  .hero.has-hero-art { background-position: 66% center; }
  .hero.has-hero-art::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, transparent), var(--bg)); }
}
a.card, .card-link { color: inherit; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card h3 { margin-bottom: .5rem; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.card p { color: var(--muted); margin-bottom: 1rem; font-size: 1.02rem; }
.card.has-thumb h3 { margin-top: .2rem; }
.card .card-foot { margin-top: auto; display:flex; align-items:center; gap:.4rem; color: var(--gold); font-weight:600; font-size:.9rem; }
.card .card-foot .arrow { transition: transform var(--tr); }
a.card:hover .arrow { transform: translateX(4px); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display:grid; place-items:center;
  background: var(--gold-tint); color: var(--gold); margin-bottom: 1rem;
}
.card-ico svg { width: 26px; height: 26px; }

/* Feature tile with accent top */
.tile { position: relative; overflow: hidden; }
.tile::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); opacity:.9; }

/* ---------- Verse of the day widget ---------- */
.verse-widget { text-align: center; }
.verse-widget .ref { font-family: var(--font-body); font-weight: 700; letter-spacing:.08em; text-transform: uppercase; color: var(--gold); font-size: .8rem; }
.verse-widget blockquote {
  font-family: var(--font-read); font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  line-height: 1.4; margin: .8rem 0 1rem; color: var(--fg); font-style: italic;
}
.verse-widget .version { color: var(--muted); font-size: .85rem; }
.verse-actions { display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap; margin-top:1.1rem; }

/* ---------- Article / prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--fg); }
.prose blockquote {
  border-left: 3px solid var(--gold); margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem;
  font-family: var(--font-read); font-style: italic; color: var(--muted);
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background:
    radial-gradient(90% 120% at 100% 0, var(--gold-tint), transparent 45%),
    var(--parchment-2); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--muted); max-width: 44rem; font-size: 1.1rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; display:flex; gap:.4rem; flex-wrap:wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Ad slots (AdSense-safe, no layout shift) ---------- */
.ad-slot {
  --ad-h: 100px;
  display: block; width: 100%; margin-inline: auto;
  background: var(--surface-2);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  overflow: hidden; position: relative; text-align: center;
  min-height: var(--ad-h);
}
.ad-slot::before {
  content: "Advertisement"; position: absolute; top: 6px; left: 0; right: 0;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: .6;
}
.ad-slot .adsbygoogle { display: block; }
.ad-slot .ad-ph { /* placeholder shown until a real ad fills the slot */
  position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); opacity:.4;
  font-size:.8rem; pointer-events:none;
}
.ad-wrap { padding-block: clamp(1rem, 3vw, 2rem); }
.ad-leaderboard { --ad-h: 90px; max-width: 970px; }
.ad-billboard   { --ad-h: 250px; max-width: 970px; }
.ad-rect        { --ad-h: 280px; max-width: 336px; }
.ad-inline      { --ad-h: 120px; max-width: 728px; }
@media (max-width: 520px){
  .ad-leaderboard, .ad-billboard { --ad-h: 100px; }
}
/* Sidebar sticky ad */
.ad-sticky { position: sticky; top: calc(var(--header-h) + 1rem); }

/* ---------- Content + sidebar layout ---------- */
.with-aside { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 1000px){ .with-aside { grid-template-columns: minmax(0,1fr) 300px; } }
.aside .card { margin-bottom: 1.25rem; }

/* ---------- CTA band ---------- */
.band { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #f4efe4; border-radius: var(--radius-lg); padding: clamp(1.8rem,4vw,3rem); }
:root[data-theme="dark"] .band { background: linear-gradient(135deg,#0f1620,#182536); border:1px solid var(--border);}
.band h2 { color: #fff; }
.band p { color: #d8d2c4; }
.band .btn-ghost { color:#fff; border-color: rgba(255,255,255,.35); }
.band .btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #cdd5df; margin-top: clamp(3rem,7vw,5rem); }
:root[data-theme="dark"] .site-footer{ background:#0f141b; border-top:1px solid var(--border); }
.site-footer a { color: #cdd5df; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem,5vw,3.5rem); grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.footer-grid .brand { color:#fff; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; font-size: .95rem; }
.footer-about p { color:#9aa6b4; font-size:.92rem; max-width: 26rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem; display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; justify-content: space-between; align-items:center; font-size:.82rem; color:#8b97a6; }
.footer-bottom nav { display:flex; gap:1.2rem; flex-wrap:wrap; }

/* ---------- Misc ---------- */
.divider { height:1px; background: var(--border); border:0; margin-block: var(--sp-6); }
.tag-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.chip { font-size:.8rem; padding:.35rem .8rem; border-radius:999px; background:var(--parchment-2); color:var(--muted); border:1px solid var(--border); }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.skip-link { position:absolute; left:-9999px; top:0; background:var(--navy); color:#fff; padding:.6rem 1rem; z-index:1000; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; color:#fff; }
.visually-hidden { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }

/* ---------- Topic taxonomy groups ---------- */
.topic-group h3 { margin-bottom: .6rem; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { border-top: 1px solid var(--border); }
.topic-list li:first-child { border-top: 0; }
.topic-list a { display: block; padding: .55rem .2rem; color: var(--fg); font-weight: 500; font-size: .96rem; transition: color var(--tr), padding var(--tr); }
.topic-list a:hover { color: var(--gold); padding-left: .6rem; }
.aside .topic-list a { font-size: .95rem; }

/* ---------- Lists with check ticks ---------- */
.ticks { list-style: none; padding-left: 0; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.ticks li::before { content:"✓"; position:absolute; left:0; top:0; color: var(--gold); font-weight:700; }

/* ---------- Story index ---------- */
.story-cat + .story-cat { margin-top: .5rem; }
.story-cat h2 { border-bottom: 2px solid var(--border); padding-bottom: .5rem; }
.story-meta { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom: 1rem; }
.card.is-soon { opacity: .82; }
.card.is-soon .card-ico { background: var(--parchment-2); color: var(--muted); }

/* ---------- Bible Memory Match game ---------- */
.mm { max-width: 40rem; margin-inline: auto; }
.mm-decks { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: .9rem; }
.mm-deck { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; transition: all .15s; }
.mm-deck:hover { border-color: var(--gold); }
.mm-deck.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme="dark"] .mm-deck.is-active { color: #14181f; }
.mm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.mm-note { color: var(--muted); font-style: italic; font-size: .9rem; }
.mm-opts { display: flex; align-items: center; gap: .4rem; }
.mm-opts-label { color: var(--muted); font-size: .85rem; }
.mm-size { border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; width: 2.2rem; height: 2.2rem; border-radius: 8px; cursor: pointer; }
.mm-size.is-active { background: var(--gold); color: #fff; border-color: var(--gold); }
.mm-status { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1rem; color: var(--muted); }
.mm-stat b { color: var(--fg); font-family: var(--font-display); font-size: 1.15rem; }

.mm-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.mm-card { position: relative; aspect-ratio: 1 / 1; border: 0; background: transparent; padding: 0; cursor: pointer; perspective: 700px; font: inherit; }
.mm-inner { position: absolute; inset: 0; transition: transform .4s; transform-style: preserve-3d; }
.mm-card.is-up .mm-inner, .mm-card.is-matched .mm-inner { transform: rotateY(180deg); }
.mm-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: .3rem; overflow: hidden; }
.mm-back-face { background: linear-gradient(150deg, var(--navy), var(--navy-800)); box-shadow: var(--shadow-sm); }
.mm-back-face::after { content: "✦"; color: var(--gold-soft); font-size: 1.6rem; opacity: .8; }
.mm-front-face { transform: rotateY(180deg); background: var(--surface); border: 2px solid var(--gold); color: var(--fg); font-weight: 700; font-size: clamp(.72rem, 2.4vw, .95rem); line-height: 1.12; word-break: break-word; hyphens: auto; }
.mm-card.mm-long .mm-front-face { font-size: clamp(.6rem, 2vw, .8rem); }
.mm-card.is-matched .mm-front-face { background: var(--gold-tint); border-color: var(--gold); animation: mm-pop .35s ease; }
.mm-card.is-matched { cursor: default; }
@keyframes mm-pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.mm-card:not(.is-matched):not(.is-up):hover .mm-back-face { filter: brightness(1.12); }

.mm-toast { text-align: center; background: var(--cn-d1, #6aa06a); color: #fff; font-weight: 700; padding: .55rem 1.2rem; border-radius: 10px; width: max-content; max-width: 92%; margin: 1rem auto 0; box-shadow: var(--shadow); }
.mm-toast.ok { background: #4f9d5b; }

.mm-panel { margin-top: 1.6rem; text-align: center; animation: cn-fade .4s ease; }
.mm-panel h3 { margin: 0 0 .3rem; }
.mm-win { color: #4f9d5b; }
.mm-best { color: var(--gold); font-weight: 700; margin: .2rem 0 1rem; }
.mm-learned { text-align: left; background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 auto 1.2rem; max-width: 30rem; }
.mm-learned h4 { text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; }
.mm-learned ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.mm-learned li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; font-size: .92rem; }
.mm-learned li span:first-child { text-align: right; font-weight: 600; }
.mm-arrow { color: var(--gold); }
.mm-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

@media (max-width: 460px) { .mm-board { gap: .4rem; } .mm-back-face::after { font-size: 1.2rem; } }

/* ---------- Bible Timeline game ---------- */
.tl { max-width: 34rem; margin-inline: auto; }
.tl-modes { display: flex; gap: .4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; margin: 0 auto 1rem; width: max-content; }
.tl-mode { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; }
.tl-mode.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .tl-mode.is-active { color: #14181f; }
.tl-sub { text-align: center; margin-bottom: .8rem; display: flex; flex-direction: column; gap: .35rem; align-items: center; }
.tl-badge { display: inline-block; background: var(--gold-tint); color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.tl-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.tl-hint { color: var(--muted); font-size: .88rem; }
.tl-edge { text-align: center; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: .3rem 0; }

.tl-list { display: grid; gap: .5rem; }
.tl-row { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--border); border-radius: 12px; padding: .7rem .9rem; font: inherit; color: var(--fg); transition: transform .16s ease, border-color .12s, background .12s, box-shadow .12s; touch-action: none; -webkit-user-select: none; user-select: none; }
.tl-row:not(.is-done) { cursor: grab; }
.tl-row:hover:not(.is-done) { border-color: var(--gold-soft); }
.tl-row.is-dragging { cursor: grabbing; transition: none; z-index: 5; box-shadow: var(--shadow-lg); border-color: var(--navy); background: var(--gold-tint); }
.tl-row.is-correct { border-color: #4f9d5b; background: color-mix(in srgb, #4f9d5b 12%, var(--surface)); }
.tl-grip { flex: 0 0 auto; color: var(--muted); font-size: 1.1rem; letter-spacing: -1px; opacity: .6; }
.tl-num { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-weight: 700; border-radius: 50%; font-size: .9rem; }
.tl-row.is-correct .tl-num { background: #4f9d5b; color: #fff; }
.tl-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.tl-label { font-weight: 600; line-height: 1.2; }
.tl-ref { color: var(--muted); font-size: .8rem; }
.tl-mark { flex: 0 0 auto; color: #4f9d5b; font-weight: 800; font-size: 1.1rem; width: 1.1rem; text-align: center; }

.tl-status { text-align: center; color: var(--muted); margin: 1rem 0 0; font-size: .95rem; }
.tl-status b { color: var(--fg); font-family: var(--font-display); font-size: 1.1rem; }
.tl-status.is-close b { color: var(--gold); }
.tl-status-win { color: #4f9d5b; font-weight: 700; }
.tl-row.is-correct .tl-grip { color: #4f9d5b; opacity: 1; }
.tl-controls { display: flex; gap: .6rem; justify-content: center; margin-top: 1.1rem; }

.tl-panel { margin-top: 1.6rem; text-align: center; animation: cn-fade .4s ease; }
.tl-panel h3 { margin: 0 0 .3rem; }
.tl-win { color: #4f9d5b; }
.tl-best { color: var(--gold); font-weight: 700; margin: .2rem 0 1rem; }
.tl-answer-head { text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .6rem; }
.tl-answer { text-align: left; max-width: 26rem; margin: 0 auto 1.2rem; padding-left: 1.4rem; display: grid; gap: .3rem; }
.tl-answer li { line-height: 1.3; }
.tl-answer .tl-ref { margin-left: .5rem; }
.tl-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- Home: games "see all" CTA card ---------- */
.is-cta-card { background: var(--gold-tint); display: flex; flex-direction: column; justify-content: center; }
.is-cta-card h3 { color: var(--gold); }

/* ---------- Home: Study tools feature ---------- */
.study-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; max-width: 62rem; margin-inline: auto; }
.study-media { margin: 0; }
.study-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--parchment-2); }
.study-tools { display: grid; gap: .8rem; }
.study-tool { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--fg); transition: transform .15s, box-shadow .15s, border-color .15s; }
.study-tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--gold-soft); }
.study-ico { flex: 0 0 auto; width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--gold-tint); border-radius: 50%; }
.study-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.study-copy b { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.study-copy small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.study-tool .arrow { margin-left: auto; color: var(--gold); font-weight: 700; transition: transform .15s; flex: 0 0 auto; }
.study-tool:hover .arrow { transform: translateX(4px); }
@media (max-width: 760px) { .study-feature { grid-template-columns: 1fr; } .study-media { order: -1; max-width: 32rem; margin-inline: auto; } }

/* ---------- Home: Kids promo section ---------- */
.kids-promo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; background: linear-gradient(135deg, var(--gold-tint), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.6rem); }
:root[data-theme="dark"] .kids-promo { background: linear-gradient(135deg, #241f14, #1a1f27); }
.kids-promo-media { position: relative; }
.kids-promo-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--parchment-2); }
.kids-promo-badge { position: absolute; left: -.6rem; top: -.6rem; background: var(--gold); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.kids-promo-copy h2 { margin: .3rem 0 .6rem; }
.kids-promo-feats { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .55rem; }
.kids-promo-feats li { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--fg); }
.kids-promo-feats .ic { flex: 0 0 auto; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 50%; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .kids-promo { grid-template-columns: 1fr; } .kids-promo-media { order: -1; } }

/* ---------- Kids section hub cards ---------- */
.kids-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.kids-hub-card {
  --ac: var(--gold);
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem 1.4rem; text-decoration: none; color: var(--fg); overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.kids-hub-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--ac), color-mix(in srgb, var(--ac) 40%, #fff));
}
.kids-hub-card::after {
  content: ""; position: absolute; right: -45px; top: -45px; width: 155px; height: 155px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ac) 20%, transparent), transparent 68%);
  opacity: .75; pointer-events: none; transition: transform var(--tr), opacity var(--tr);
}
.kids-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px -22px color-mix(in srgb, var(--ac) 60%, transparent), var(--shadow);
  border-color: color-mix(in srgb, var(--ac) 45%, var(--border));
}
.kids-hub-card:hover::after { transform: scale(1.25); opacity: 1; }
.kids-hub-ico {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  font-size: 2.1rem; line-height: 1; margin-bottom: .35rem; position: relative; z-index: 1;
  background: linear-gradient(150deg, color-mix(in srgb, var(--ac) 30%, var(--surface)), color-mix(in srgb, var(--ac) 9%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent), var(--shadow-sm);
  transition: transform var(--tr);
}
.kids-hub-card:hover .kids-hub-ico { transform: scale(1.08) rotate(-3deg); }
.kids-hub-tag { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ac); }
.kids-hub-card h3 { margin: 0; font-size: clamp(1.15rem, 1.03rem + .5vw, 1.4rem); }
.kids-hub-card p { color: var(--muted); margin: 0; font-size: 1rem; flex: 1 1 auto; }
.kids-hub-foot { margin-top: .8rem; display: flex; align-items: center; gap: .4rem; color: var(--ac); font-weight: 700; font-size: .9rem; }
.kids-hub-foot .arrow { transition: transform var(--tr); }
.kids-hub-card:hover .kids-hub-foot .arrow { transform: translateX(5px); }
/* Featured (flagship) card */
.kids-hub-card.featured {
  grid-column: span 2; flex-direction: row; align-items: center; gap: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 15%, var(--surface)), var(--surface) 70%);
}
.kids-hub-card.featured .kids-hub-ico { width: 104px; height: 104px; font-size: 3rem; border-radius: 26px; flex: 0 0 auto; margin: 0; }
.kids-hub-card.featured .kids-hub-body { display: flex; flex-direction: column; gap: .5rem; }
.kids-hub-card.featured h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.kids-hub-card.featured p { font-size: 1.05rem; }
@media (max-width: 860px) {
  .kids-hub { grid-template-columns: repeat(2, 1fr); }
  .kids-hub-card.featured { grid-column: span 2; }
}
@media (max-width: 560px) {
  .kids-hub { grid-template-columns: 1fr; }
  .kids-hub-card.featured { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .kids-hub-card.featured .kids-hub-ico { width: 76px; height: 76px; font-size: 2.2rem; }
}

/* ---------- Bible Words for Kids (interactive flip cards) ---------- */
.wc-toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.wc-search { flex: 1 1 220px; max-width: 360px; padding: .6rem .95rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 1rem; }
.wc-search:focus { outline: none; box-shadow: var(--ring); border-color: var(--gold-soft); }
.wc-surprise { flex: 0 0 auto; }
.wc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.wc-chip { --ac: var(--gold); border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 999px; padding: .42rem .95rem; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background var(--tr), color var(--tr), border-color var(--tr); }
.wc-chip:hover { border-color: color-mix(in srgb, var(--ac) 55%, var(--border)); }
.wc-chip.is-active { background: var(--ac); border-color: var(--ac); color: #fff; }
.wc-count { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.wc-card { --ac: var(--gold); position: relative; min-height: 230px; cursor: pointer; }
.wc-inner { position: relative; width: 100%; min-height: 230px; display: grid; transition: transform .55s cubic-bezier(.4,0,.2,1); transform-style: preserve-3d; }
.wc-card.is-flipped .wc-inner { transform: rotateY(180deg); }
.wc-front, .wc-back { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; display: flex; flex-direction: column; overflow: hidden; }
.wc-front { background: linear-gradient(155deg, color-mix(in srgb, var(--ac) 16%, var(--surface)), var(--surface)); align-items: center; text-align: center; justify-content: center; gap: .4rem; }
.wc-front::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--ac), color-mix(in srgb, var(--ac) 40%, #fff)); }
.wc-emoji { font-size: 2.5rem; line-height: 1; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ac) 18%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent), var(--shadow-sm); }
.wc-front h3 { margin: .35rem 0 0; font-size: 1.25rem; }
.wc-short { color: var(--muted); font-size: .92rem; margin: 0; }
.wc-hint { margin-top: auto; padding-top: .5rem; color: var(--ac); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.wc-back { background: var(--surface); transform: rotateY(180deg); text-align: left; gap: .55rem; overflow-y: auto; }
.wc-back::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--ac); }
.wc-meaning { margin: .2rem 0 0; font-size: .96rem; color: var(--fg); }
.wc-verse { margin: 0; padding: .5rem .8rem; border-left: 3px solid var(--ac); background: color-mix(in srgb, var(--ac) 8%, var(--surface)); border-radius: 0 8px 8px 0; font-family: var(--font-read); font-size: .88rem; color: var(--fg); }
.wc-verse cite { display: block; margin-top: .3rem; color: var(--muted); font-style: normal; font-size: .78rem; }
.wc-read { margin-top: auto; color: var(--ac); font-weight: 700; font-size: .85rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.wc-read .arrow { transition: transform var(--tr); }
.wc-read:hover .arrow { transform: translateX(4px); }
.wc-flipback { color: var(--muted); font-size: .72rem; }
.wc-card:hover .wc-front, .wc-card:hover .wc-back { box-shadow: var(--shadow); }
.wc-card:focus-visible { outline: none; }
.wc-card:focus-visible .wc-front, .wc-card:focus-visible .wc-back { box-shadow: var(--ring); }
.wc-card.wc-pop { animation: wcpop .5s ease; }
@keyframes wcpop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wc-inner { transition: none; } .wc-card.wc-pop { animation: none; } }

/* ---------- Kids' Prayers (filterable cards) ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.pr-card { --ac: var(--gold); position: relative; display: flex; flex-direction: column; gap: .7rem; background: linear-gradient(160deg, color-mix(in srgb, var(--ac) 9%, var(--surface)), var(--surface) 60%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem 1.4rem; overflow: hidden; }
.pr-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--ac), color-mix(in srgb, var(--ac) 40%, #fff)); }
.pr-head { display: flex; align-items: center; gap: .8rem; }
.pr-emoji { flex: 0 0 auto; font-size: 1.7rem; line-height: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ac) 18%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent); }
.pr-titles { min-width: 0; }
.pr-when { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ac); }
.pr-card h3 { margin: .1rem 0 0; font-size: 1.15rem; }
.pr-text { margin: 0; padding: 0; border: 0; font-family: var(--font-read); font-size: 1rem; line-height: 1.6; color: var(--fg); }
.pr-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .5rem; border-top: 1px dashed var(--border); }
.pr-source { color: var(--muted); font-size: .8rem; font-style: italic; }
.pr-read { color: var(--ac); font-weight: 700; font-size: .82rem; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.pr-read .arrow { transition: transform var(--tr); }
.pr-read:hover .arrow { transform: translateX(4px); }
.pr-card.pr-hi { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 55%, transparent), var(--shadow); }

/* ---------- Family Bible Time ---------- */
.ft-head { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; margin-bottom: 1.4rem; }
.ft-head-media { margin: 0; }
.ft-head-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--parchment-2); }
.ft-head-copy h2 { margin: .3rem 0 .5rem; }
.ft-head-copy p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .ft-head { grid-template-columns: 1fr; } .ft-head-media { max-width: 420px; } }
.fd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9rem; align-items: start; }
.fd { --ac: var(--gold); border: 1px solid var(--border); border-top: 4px solid var(--ac); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.fd > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; }
.fd > summary::-webkit-details-marker { display: none; }
.fd-emoji { flex: 0 0 auto; font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ac) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 32%, transparent); }
.fd-sum { display: flex; flex-direction: column; min-width: 0; }
.fd-ref { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ac); }
.fd-sum b { font-family: var(--font-display); font-size: 1.1rem; }
.fd > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--ac); transition: transform var(--tr); }
.fd[open] > summary::after { transform: rotate(45deg); }
.fd-body { padding: 0 1.15rem 1.15rem; }
.fd-idea { margin: 0 0 .8rem; font-family: var(--font-read); font-size: 1rem; line-height: 1.6; }
.fd-read { display: inline-flex; align-items: center; gap: .3rem; color: var(--ac); font-weight: 700; font-size: .85rem; text-decoration: none; margin-bottom: .8rem; }
.fd-read .arrow { transition: transform var(--tr); }
.fd-read:hover .arrow { transform: translateX(4px); }
.fd-block { margin-top: .8rem; }
.fd-block h4 { margin: 0 0 .35rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fd-block ol { margin: 0; padding-left: 1.2rem; }
.fd-block ol li { margin-bottom: .3rem; }
.fd-block p { margin: 0; }
.fd-pray { background: color-mix(in srgb, var(--ac) 8%, var(--surface)); border-left: 3px solid var(--ac); border-radius: 0 8px 8px 0; padding: .6rem .8rem; }
.fd-pray p { font-family: var(--font-read); font-style: italic; }

.fp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; align-items: start; }
.fp { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.fp > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; }
.fp > summary::-webkit-details-marker { display: none; }
.fp-emoji { flex: 0 0 auto; font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-tint); }
.fp-sum { display: flex; flex-direction: column; min-width: 0; }
.fp-sum b { font-family: var(--font-display); font-size: 1.1rem; }
.fp-sum small { color: var(--muted); font-size: .8rem; }
.fp > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--gold); transition: transform var(--tr); }
.fp[open] > summary::after { transform: rotate(45deg); }
.fp-days { margin: 0; padding: 0 1.15rem 1rem; list-style: none; }
.fp-days li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-top: 1px dashed var(--border); }
.fp-day { flex: 0 0 auto; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); width: 3.4rem; }
.fp-days a { color: var(--fg); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.fp-days a:hover { color: var(--gold); }
.fp-days a .arrow { color: var(--gold); transition: transform var(--tr); }
.fp-days a:hover .arrow { transform: translateX(4px); }

.ftq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ftq { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: 1.02rem; color: var(--fg); }
.ftq.ftq-hi { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,138,52,.28), var(--shadow); background: var(--gold-tint); }

/* ---------- Printable Activities gallery ---------- */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; align-items: start; }
.pg-card { --ac: var(--gold); margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.pg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ac) 45%, var(--border)); }
.pg-thumb { position: relative; background: #fff; }
.pg-thumb img { display: block; width: 100%; aspect-ratio: 17 / 22; object-fit: cover; object-position: top center; }
.pg-badge { position: absolute; left: .5rem; top: .5rem; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--ac) 88%, #000 4%); padding: .22rem .5rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pg-cap { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem .8rem; }
.pg-cap b { font-size: .95rem; line-height: 1.25; }
.pg-cap small { color: var(--muted); font-size: .78rem; }
.pg-actions { margin-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem .7rem; flex-wrap: wrap; }
.pg-story { color: var(--ac); font-weight: 700; font-size: .8rem; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.pg-story .arrow { transition: transform var(--tr); }
.pg-story:hover .arrow { transform: translateX(3px); }

/* ---------- Games hub ---------- */
.games-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; max-width: 46rem; margin-inline: auto; }
.game-tile { flex: 1 1 260px; max-width: calc(50% - .6rem); }
@media (max-width: 560px) { .game-tile { max-width: 100%; flex-basis: 100%; } }
.game-tile { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; text-decoration: none; color: var(--fg); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.game-emblem { display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; font-size: 1.7rem; background: var(--gold-tint); border-radius: 50%; margin-bottom: 1rem; line-height: 1; }
.game-tile h2 { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--navy); }
.game-tile p { margin: 0 0 1rem; color: var(--muted); line-height: 1.55; font-size: .96rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.game-tags .chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .76rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.game-cta { margin-top: auto; color: var(--gold); font-weight: 700; }
.game-tile:hover .game-cta .arrow { margin-left: .3rem; }
.game-cta .arrow { transition: margin-left .15s; }

/* ---------- Gospel Harmony ---------- */
.gh { max-width: 62rem; margin-inline: auto; }
.gh-controls { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; position: sticky; top: .5rem; z-index: 20; }
.gh-toggles { display: flex; flex-wrap: wrap; gap: .4rem; }
.gh-toggle { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-weight: 600; font-size: .85rem; padding: .35rem .7rem; border-radius: 999px; cursor: pointer; }
.gh-toggle .gh-tick { width: 12px; height: 12px; border-radius: 3px; background: var(--border); }
.gh-toggle.is-on { color: var(--gc); border-color: var(--gc); background: color-mix(in srgb, var(--gc) 10%, var(--surface)); }
.gh-toggle.is-on .gh-tick { background: var(--gc); }
.gh-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.gh-search { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .7rem; color: var(--muted); }
.gh-search input { border: 0; background: transparent; font: inherit; color: var(--fg); outline: none; width: 9rem; }
.gh-filters select { font: inherit; font-size: .85rem; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg); }
.gh-count { color: var(--muted); margin: .8rem 0; }
.gh-count b { color: var(--fg); font-family: var(--font-display); }

.gh-section { margin-bottom: 1.6rem; }
.gh-sec-title { font-size: 1.15rem; color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: .35rem; margin: 0 0 .3rem; }
.gh-head { display: flex; gap: .5rem; padding: .3rem .6rem; }
.gh-col-event { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.gh-head .gh-cells { display: flex; gap: .5rem; flex: 1 1 auto; }
.gh-col { flex: 1 1 0; min-width: 0; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gc); text-align: left; }

.gh-row { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .4rem; background: var(--surface); overflow: hidden; }
.gh-main { display: flex; gap: .5rem; align-items: center; padding: .55rem .6rem; cursor: pointer; }
.gh-main:hover { background: var(--surface-2); }
.gh-event { flex: 0 0 40%; max-width: 40%; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.gh-caret { color: var(--muted); transition: transform .15s; flex: 0 0 auto; }
.gh-row.is-open .gh-caret { transform: rotate(90deg); }
.gh-title { font-weight: 600; color: var(--fg); line-height: 1.2; min-width: 0; }
.gh-dots { display: inline-flex; gap: 2px; flex: 0 0 auto; margin-left: auto; }
.gh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.gh-dot.on { background: var(--gc); }
.gh-cells { display: flex; gap: .5rem; flex: 1 1 auto; min-width: 0; }
.gh-cell { flex: 1 1 0; min-width: 0; font-size: .82rem; padding: .2rem .4rem; border-radius: 6px; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-ref { color: var(--gc); font-weight: 600; text-decoration: none; border-left-color: var(--gc); background: color-mix(in srgb, var(--gc) 8%, transparent); }
.gh-ref:hover { background: color-mix(in srgb, var(--gc) 20%, transparent); }
.gh-empty { color: var(--muted); opacity: .5; text-align: center; }

.gh-refcell { color: var(--gc); font-weight: 600; border-left-color: var(--gc); background: color-mix(in srgb, var(--gc) 8%, transparent); }
.gh-detail { display: none; padding: 0 .8rem .9rem; }
.gh-row.is-open .gh-detail { display: block; }
.gh-desc { font-family: var(--font-read); color: var(--fg); margin: .2rem 0 .8rem; font-style: italic; }
.gh-readbar { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.gh-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.gh-textcol { border: 1px solid var(--border); border-top: 3px solid var(--gc); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.gh-textcol-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .5rem .7rem; background: color-mix(in srgb, var(--gc) 8%, var(--surface)); border-bottom: 1px solid var(--border); }
.gh-textcol-head b { color: var(--gc); font-size: .95rem; }
.gh-open { font-size: .78rem; color: var(--muted); white-space: nowrap; text-decoration: none; }
.gh-open:hover { color: var(--gc); }
.gh-verses { padding: .7rem .8rem; font-family: var(--font-read); line-height: 1.7; color: var(--fg); font-size: .95rem; max-height: 60vh; overflow-y: auto; }
.gh-verses sup { color: var(--gc); font-weight: 700; font-size: .7em; margin-right: .15em; }
.gh-chmark { font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin: .6rem 0 .3rem; }
.gh-chmark:first-child { margin-top: 0; }
.gh-loading, .gh-none { color: var(--muted); font-style: italic; font-size: .88rem; }

@media (max-width: 640px) {
  .gh-controls { position: static; }
  .gh-head { display: none; }
  .gh-main { flex-direction: column; align-items: stretch; gap: .5rem; }
  .gh-event { flex-basis: auto; max-width: none; }
  .gh-cells { flex-wrap: wrap; }
  .gh-cell { flex: 1 1 45%; white-space: normal; }
  .gh-cell.gh-empty { display: none; }
}

/* ---------- Reader: People in this chapter ---------- */
.people-panel { max-width: 46rem; margin: 1rem auto 0; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; }
.people-head { display: flex; align-items: center; gap: .5rem; color: var(--navy); margin-bottom: .7rem; }
.people-head h3 { margin: 0; font-size: 1.05rem; }
.people-count { margin-left: auto; background: var(--gold-tint); color: var(--gold); font-weight: 700; font-size: .78rem; padding: .1rem .55rem; border-radius: 999px; }
.people-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.person-chip { display: inline-block; background: var(--surface); border: 1px solid var(--border); color: var(--fg); font-size: .88rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; text-decoration: none; transition: all .12s; }
.person-chip:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.person-more { background: transparent; border: 1px dashed var(--border); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; cursor: pointer; }
.person-more:hover { border-color: var(--gold); color: var(--gold); }
.people-note { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }

/* ---------- Bible Family Tree ---------- */
.ft { max-width: 68rem; margin-inline: auto; }
.ft-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.ft-search { display: flex; align-items: center; gap: .5rem; flex: 1 1 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .5rem .9rem; color: var(--muted); }
.ft-search input { flex: 1 1 auto; border: 0; background: transparent; font: inherit; color: var(--fg); outline: none; }
#ftLine { white-space: nowrap; }

.ft-trail { min-height: 1.2rem; margin-bottom: .5rem; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.ft-trail-label { font-weight: 600; margin-right: .2rem; }
.ft-crumb { border: 0; background: transparent; color: var(--gold); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .1rem .2rem; }
.ft-crumb.is-here { color: var(--fg); }
.ft-crumb-sep { color: var(--muted); opacity: .6; }

.ft-stage { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1rem 2rem; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--gold) 8%, var(--surface)) 0%, var(--surface) 60%),
    var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.ft-links { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.ft-link { fill: none; stroke: var(--gold-soft); stroke-width: 2; opacity: .55; }
.ft-link-partner { stroke: var(--gold); stroke-dasharray: 3 4; opacity: .8; }
.ft-layers { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2rem; transition: opacity .28s ease; }
.ft-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1rem 1.4rem; }
.ft-center { align-items: center; gap: 1rem 2.4rem; }
.ft-empty { min-height: .5rem; }
.ft-origin { color: var(--muted); font-style: italic; font-family: var(--font-read); }

.ft-node { display: flex; flex-direction: column; align-items: center; width: 5.2rem; }
.ft-medal { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--era) 55%, #fff) 0%, var(--era) 60%, color-mix(in srgb, var(--era) 60%, #000) 100%);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--era), var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.ft-medal:hover { transform: translateY(-3px) scale(1.05); }
.ft-mono { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ft-node.sm .ft-medal { width: 44px; height: 44px; } .ft-node.sm { width: 4.2rem; } .ft-node.sm .ft-mono { font-size: 1.1rem; }
.ft-node.md .ft-medal { width: 64px; height: 64px; }
.ft-node.lg .ft-medal { width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--gold), 0 0 26px -4px var(--gold), var(--shadow); }
.ft-node.lg .ft-mono { font-size: 2.4rem; }
.ft-node.lg { width: 8rem; }
.ft-node.is-focus .ft-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.ft-node.is-partner .ft-medal { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--era), var(--shadow-sm); opacity: .96; }
.ft-name { margin-top: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--fg); text-align: center; line-height: 1.1; }
.ft-node.sm .ft-name { font-size: .78rem; }
.ft-era { font-size: .66rem; color: var(--muted); text-align: center; margin-top: .1rem; min-height: .8rem; }
.ft-profile { display: inline-block; margin-top: .35rem; font-size: .72rem; font-weight: 700; color: var(--gold); }
.ft-leaf { gap: .4rem; }
.ft-unres { display: inline-block; background: var(--surface-2); border: 1px dashed var(--border); color: var(--muted); font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; }

.ft-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; margin-top: 1rem; font-size: .78rem; color: var(--muted); }
.ft-leg { display: inline-flex; align-items: center; gap: .35rem; }
.ft-leg-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

@media (max-width: 600px) {
  .ft-layers { gap: 1.5rem; }
  .ft-node { width: 4.4rem; } .ft-node.lg { width: 6rem; }
  .ft-node.md .ft-medal { width: 54px; height: 54px; } .ft-node.lg .ft-medal { width: 76px; height: 76px; }
  .ft-row { gap: .8rem; }
}

/* ---------- Who's Who in the Bible ---------- */
.ww-controls { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; position: sticky; top: .5rem; z-index: 20; }
.ww-search { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1rem; color: var(--muted); }
.ww-search input { flex: 1 1 auto; border: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--fg); outline: none; }
.ww-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ww-filters select { font: inherit; font-size: .88rem; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg); max-width: 100%; }
.ww-count { color: var(--muted); margin: .2rem 0 1rem; }
.ww-count b { color: var(--fg); font-family: var(--font-display); font-size: 1.15rem; }

.ww-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.ww-card { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; text-align: left; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold-soft); border-radius: var(--radius-sm); padding: .9rem 1rem; cursor: pointer; font: inherit; color: var(--fg); transition: transform .1s, box-shadow .1s, border-color .1s; }
.ww-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--gold); }
.ww-card-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ww-card-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.ww-card-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.ww-card-meta { font-size: .78rem; color: var(--muted); margin-top: auto; }
.ww-chip { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; }
.ww-chip-role { background: var(--gold-tint); color: var(--gold); border-color: transparent; }
.ww-chip-tribe { background: color-mix(in srgb, var(--navy) 12%, var(--surface)); color: var(--navy); border-color: transparent; }
/* category accent on the little label */
.ww-cat-divine, .ww-cat-supernatural { color: var(--gold); }
.ww-more { text-align: center; margin-top: 1.4rem; }

/* Modal */
.ww-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: clamp(.5rem, 3vw, 3rem) 1rem; }
.ww-modal[hidden] { display: none; }
.ww-modal-backdrop { position: absolute; inset: 0; background: rgba(12,16,24,.6); backdrop-filter: blur(2px); }
.ww-modal-card { position: relative; z-index: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 46rem; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.ww-modal-x { position: sticky; top: 0; float: right; margin: .5rem .5rem -2.5rem 0; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--fg); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.ww-modal-body { padding: clamp(1.2rem, 3vw, 2rem); }

.ww-detail-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.ww-detail h2 { margin: .2rem 0 .3rem; font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem); }
.ww-aliases { color: var(--muted); font-style: italic; margin: 0 0 .6rem; }
.ww-detail-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.ww-ftlink { margin: 0 0 .8rem; }
.ww-ftlink a { color: var(--gold); font-weight: 700; }
.ww-classification { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.ww-detail-sec { margin: 1.2rem 0; }
.ww-detail-sec h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ww-desc p { font-family: var(--font-read); line-height: 1.7; color: var(--fg); margin: 0 0 .8rem; }
.ww-rels { display: grid; gap: .4rem; }
.ww-rel-row { display: grid; grid-template-columns: 8rem 1fr; gap: .6rem; font-size: .95rem; }
.ww-rel-k { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; padding-top: .1rem; }
.ww-rel-v { color: var(--fg); }
.ww-rel-link { color: var(--gold); font-weight: 600; }
.ww-rel-link:hover { text-decoration: underline; }
.ww-ref-total { color: var(--gold); font-weight: 700; text-transform: none; letter-spacing: 0; }
.ww-ref-hint { font-size: .85rem; color: var(--muted); margin: -.2rem 0 .8rem; }
.ww-refs { display: grid; gap: .55rem; }
.ww-ref-group { display: grid; grid-template-columns: 9rem 1fr; gap: .6rem; align-items: start; }
.ww-ref-book { font-weight: 700; color: var(--navy); font-size: .9rem; padding-top: .25rem; }
.ww-ref-chaps { display: flex; flex-wrap: wrap; gap: .3rem; }
.ww-ch { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .35rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; color: var(--fg); font-size: .82rem; font-weight: 600; text-decoration: none; }
.ww-ch:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.ww-attrib { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .ww-rel-row, .ww-ref-group { grid-template-columns: 1fr; gap: .2rem; } .ww-ref-book { padding-top: 0; } .ww-controls { position: static; } }

/* ---------- Shared: How-to-play card ---------- */
.game-help { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 auto 1.4rem; max-width: 40rem; }
.game-help > h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin: 0 0 .6rem; color: var(--navy); }
.game-help > h2::before { content: "💡"; font-size: 1.1rem; }
.game-help ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.game-help li { color: var(--fg); line-height: 1.45; font-size: .95rem; }
.game-help .gh-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .7rem; font-size: .85rem; color: var(--muted); }
.game-help .gh-chip { display: inline-flex; align-items: center; gap: .35rem; }
.game-help .gh-sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ---------- Bible Connections game ---------- */
.cn { --cn-d0: #d8b24a; --cn-d1: #6aa06a; --cn-d2: #5a89c2; --cn-d3: #9877c2; max-width: 34rem; margin-inline: auto; }
.cn-modes { display: flex; gap: .4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; margin: 0 auto 1rem; width: max-content; }
.cn-mode { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; }
.cn-mode.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .cn-mode.is-active { color: #14181f; }
.cn-sub { text-align: center; margin-bottom: .6rem; }
.cn-badge { display: inline-block; background: var(--gold-tint); color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.cn-subnote { display: block; color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.cn-instruct { text-align: center; color: var(--fg); font-weight: 600; margin: .2rem 0 1rem; }

.cn-solved { display: grid; gap: .5rem; margin-bottom: .5rem; }
.cn-band { border-radius: 10px; padding: .7rem; text-align: center; color: #2a2410; animation: cn-reveal .45s ease; }
@keyframes cn-reveal { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.03); } 100% { transform: scale(1); opacity: 1; } }
.cn-band-cat { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; }
.cn-band-words { font-size: .9rem; margin-top: .1rem; }
.cn-d0 { background: var(--cn-d0); } .cn-d1 { background: var(--cn-d1); } .cn-d2 { background: var(--cn-d2); } .cn-d3 { background: var(--cn-d3); }
.cn-d1, .cn-d2, .cn-d3 { color: #fff; }

.cn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cn-grid.shake { animation: cn-shake .4s; }
@keyframes cn-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.cn-tile { aspect-ratio: 1.35 / 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: .2rem; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--fg); font: inherit; font-weight: 700; font-size: clamp(.7rem, 2.6vw, .98rem); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; cursor: pointer; user-select: none; transition: transform .08s, background .12s; word-break: break-word; hyphens: auto; }
.cn-tile.cn-sm { font-size: clamp(.6rem, 2.2vw, .82rem); }
.cn-tile.cn-xs { font-size: clamp(.52rem, 1.9vw, .72rem); }
.cn-tile:hover { background: var(--parchment-2); }
.cn-tile.is-selected { background: var(--navy); color: #fff; transform: scale(.95); }
:root[data-theme="dark"] .cn-tile.is-selected { color: #14181f; }

.cn-toast { text-align: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.05rem; padding: .6rem 1.3rem; border-radius: 10px; width: max-content; max-width: 92%; margin: 1rem auto 0; box-shadow: var(--shadow); animation: cn-fade .25s ease; }
:root[data-theme="dark"] .cn-toast { color: #14181f; }
.cn-toast.ok { background: var(--cn-d1); color: #fff; }
.cn-toast.bad { background: #c0533f; color: #fff; }
.cn-selcount { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.cn-mistakes { text-align: center; margin: 1rem 0 .3rem; color: var(--muted); font-size: .9rem; }
.cn-mist-label { vertical-align: middle; }
.cn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); margin-left: .3rem; vertical-align: middle; }
.cn-dot.spent { background: var(--border); }
.cn-controls { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

.cn-panel { margin-top: 1.6rem; animation: cn-fade .4s ease; }
@keyframes cn-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cn-panel h3 { text-align: center; margin: 0 0 .3rem; }
.cn-panel > p { text-align: center; color: var(--muted); }
.cn-win { color: var(--cn-d1); } .cn-lose { color: var(--navy); }
.cn-groups { display: grid; gap: .6rem; margin: 1.2rem 0; }
.cn-gsum { border-radius: 10px; padding: .8rem 1rem; border-left: 6px solid var(--border); background: var(--surface-2); }
.cn-gsum.cn-d0 { border-color: var(--cn-d0); } .cn-gsum.cn-d1 { border-color: var(--cn-d1); } .cn-gsum.cn-d2 { border-color: var(--cn-d2); } .cn-gsum.cn-d3 { border-color: var(--cn-d3); }
.cn-gsum { background: var(--surface-2); color: var(--fg); }
.cn-gsum-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.cn-gsum-words { font-size: .9rem; color: var(--muted); margin-top: .15rem; }
.cn-gsum-note { font-size: .92rem; margin: .5rem 0 0; }
.cn-read { color: var(--gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.cn-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.cn-share-hint { text-align: center; color: var(--cn-d1); font-weight: 600; margin-top: .7rem; white-space: pre-wrap; }
.cn-stats { margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.cn-stats h4 { text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .7rem; }
.cn-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cn-stat-grid div { display: flex; flex-direction: column; text-align: center; }
.cn-stat-grid b { font-size: 1.7rem; font-family: var(--font-display); color: var(--fg); line-height: 1; }
.cn-stat-grid span { font-size: .72rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Word of the Day game ---------- */
.wg { --wg-correct: #4f9d5b; --wg-present: var(--gold); --wg-absent: #8a8478; max-width: 30rem; margin-inline: auto; }
:root[data-theme="dark"] .wg, .wg { }
@media (prefers-color-scheme: dark) { .wg { --wg-correct: #4a8f56; --wg-absent: #565f6b; } }
:root[data-theme="dark"] .wg { --wg-correct: #4a8f56; --wg-absent: #565f6b; }
:root[data-theme="light"] .wg { --wg-correct: #4f9d5b; --wg-absent: #8a8478; }

.wg-modes { display: flex; gap: .4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; margin: 0 auto 1rem; width: max-content; }
.wg-mode { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; transition: all .15s; }
.wg-mode.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .wg-mode.is-active { color: #14181f; }

.wg-sub { text-align: center; margin-bottom: 1rem; }
.wg-badge { display: inline-block; background: var(--gold-tint); color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.wg-subnote { display: block; color: var(--muted); font-size: .85rem; margin-top: .45rem; }

.wg-board { display: grid; grid-template-rows: repeat(6, 1fr); gap: .35rem; width: 100%; max-width: 20rem; margin: 0 auto 1rem; }
.wg-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.wg-tile { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 6vw, 2rem); text-transform: uppercase; color: var(--fg); border: 2px solid var(--border); border-radius: 8px; background: var(--surface); user-select: none; transition: border-color .1s, transform .1s; }
.wg-tile.filled { border-color: var(--navy); background: var(--surface-2); animation: wg-pop .12s ease; }
@keyframes wg-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.wg-tile.reveal { animation: wg-flip .5s ease forwards; color: #fff; border: 0; }
.wg-tile.correct { background: var(--wg-correct); }
.wg-tile.present { background: var(--wg-present); }
.wg-tile.absent  { background: var(--wg-absent); }
@keyframes wg-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.wg-row.shake { animation: wg-shake .4s; }
@keyframes wg-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.wg-toast { text-align: center; background: var(--navy); color: #fff; font-weight: 600; padding: .5rem 1rem; border-radius: 8px; width: max-content; max-width: 90%; margin: 0 auto .8rem; }
:root[data-theme="dark"] .wg-toast { color: #14181f; }

.wg-hintbar { text-align: center; margin: .2rem 0 1rem; }
.wg-clue { display: block; margin-top: .5rem; color: var(--fg); font-style: italic; background: var(--gold-tint); border-radius: var(--radius-sm); padding: .6rem .9rem; }

.wg-keys { display: grid; gap: .4rem; margin-top: .3rem; }
.wg-krow { display: flex; justify-content: center; gap: .35rem; }
.wg-key { flex: 1 1 auto; min-width: 0; max-width: 2.7rem; height: 3.4rem; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--fg); font: inherit; font-weight: 700; font-size: 1rem; text-transform: uppercase; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .1s, transform .05s; }
.wg-key:active { transform: translateY(1px); }
.wg-key-lg { flex: 1.5 1 auto; max-width: 4.2rem; font-size: .8rem; }
.wg-key.correct { background: var(--wg-correct); color: #fff; }
.wg-key.present { background: var(--wg-present); color: #fff; }
.wg-key.absent  { background: var(--wg-absent); color: #fff; }

.wg-panel { margin-top: 1.4rem; text-align: center; animation: wg-fade .4s ease; }
@keyframes wg-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wg-panel h3 { margin: 0 0 .3rem; }
.wg-win { color: var(--wg-correct); }
.wg-lose { color: var(--navy); }
.wg-verse { margin: 1.2rem 0; background: var(--surface-2); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.3rem; text-align: left; }
.wg-verse blockquote { font-family: var(--font-read); font-size: 1.15rem; line-height: 1.6; margin: 0 0 .5rem; color: var(--fg); }
.wg-verse figcaption { font-weight: 700; color: var(--gold); margin-bottom: .9rem; }
.wg-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.wg-share-hint { color: var(--wg-correct); font-weight: 600; margin-top: .7rem; white-space: pre-wrap; }

.wg-stats { margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.wg-stats h4 { text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .7rem; }
.wg-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.4rem; }
.wg-stat-grid div { display: flex; flex-direction: column; }
.wg-stat-grid b { font-size: 1.7rem; font-family: var(--font-display); color: var(--fg); line-height: 1; }
.wg-stat-grid span { font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.wg-dist { display: grid; gap: .3rem; max-width: 18rem; margin: 0 auto; }
.wg-dist-row { display: flex; align-items: center; gap: .5rem; }
.wg-dist-n { width: .9rem; font-weight: 700; color: var(--muted); font-size: .85rem; }
.wg-dist-bar { background: var(--wg-absent); color: #fff; font-weight: 700; font-size: .8rem; text-align: right; padding: .15rem .5rem; border-radius: 5px; min-width: 1.6rem; }
.wg-dist-bar.is-current { background: var(--wg-correct); }

@media (max-width: 380px) { .wg-key { height: 3rem; } .wg-tile { border-radius: 6px; } }

/* ---------- Rich kids story page ---------- */
.kids-story { max-width: 760px; margin-inline: auto; }
.ks-header { margin-bottom: 1.4rem; }
.ks-header h1 { margin: .2rem 0 .3rem; }
.ks-subtitle { font-family: var(--font-read); font-style: italic; font-size: 1.25rem; color: var(--muted); margin: 0 0 1.2rem; }
.ks-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem 1.4rem; margin: 0 0 1rem; padding: 1rem 1.2rem; background: var(--surface-2); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ks-meta div { margin: 0; }
.ks-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.ks-meta dd { margin: .1rem 0 0; font-weight: 600; color: var(--fg); }
.ks-retelling { font-size: .85rem; color: var(--muted); font-style: italic; }
.ks-hero { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0 0 1.8rem; background: var(--parchment-2); }
.ks-sec { margin: 1.8rem 0; }
.ks-sec h2 { border-bottom: 2px solid var(--border); padding-bottom: .4rem; }
.ks-narrative p { font-family: var(--font-read); font-size: 1.12rem; line-height: 1.75; color: var(--fg); margin: 0 0 1rem; }
.ks-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); color: var(--gold); text-align: center; border: 0; margin: 1.2rem 0; font-style: normal; }
.ks-fig { margin: 1.6rem 0; }
.ks-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--parchment-2); }
.ks-teach { margin-bottom: 1.1rem; }
.ks-teach h3 { color: var(--navy); margin-bottom: .3rem; }
.ks-teach p, .ks-bigger p, .ks-parents p, .ks-intro p { color: var(--fg); line-height: 1.7; }
.ks-parents { background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.ks-parents h3 { margin-top: 1.1rem; font-size: 1.1rem; }
.ks-memory blockquote { font-family: var(--font-read); font-style: italic; font-size: 1.3rem; text-align: center; background: var(--gold-tint); border-radius: var(--radius); padding: 1.4rem; margin: 0; color: var(--fg); }
.ks-memory cite { display: block; font-style: normal; font-size: .9rem; color: var(--gold); font-weight: 700; margin-top: .5rem; }
.ks-dur { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ks-example { color: var(--muted); }
.ks-safety { font-size: .92rem; }
.ks-printables { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.2rem; }
.ks-print { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem; text-align: center; }
.ks-print img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); background: #fff; margin-bottom: .6rem; }
.ks-print figcaption { display: flex; flex-direction: column; gap: .5rem; align-items: center; font-weight: 600; font-size: .95rem; }
.ks-related { list-style: none; padding: 0; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ks-related a { display: block; padding: .6rem .8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--fg); font-weight: 500; font-size: .95rem; }
.ks-related a:hover { border-color: var(--gold); color: var(--gold); }
.ks-next { background: var(--gold-tint); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.ks-next h2 { border: 0; margin-top: 0; color: var(--gold); font-size: 1.1rem; }
.ks-next p { color: var(--fg); margin: 0 0 .5rem; }

/* ---------- Single story ---------- */
.story-hero { display:block; width:100%; aspect-ratio: 24 / 9; object-fit: cover; border-radius: var(--radius-lg); margin: .8rem 0 1.6rem; box-shadow: var(--shadow); background: var(--parchment-2); }
.story-header { margin-bottom: 1.5rem; }
.story-header h1 { margin-bottom: .3rem; }
.glance { background: var(--surface-2); border-left: 4px solid var(--gold); margin: 0 0 2rem; }
.glance-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.glance-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .5rem; align-items: baseline; }
.glance-list .g-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.glance-list .g-val { font-family: var(--font-read); font-size: 1.05rem; color: var(--fg); }
@media (max-width: 480px){ .glance-list li { grid-template-columns: 1fr; gap: .1rem; } }

.callout { border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.8rem 0; border: 1px solid var(--border); }
.callout h2 { margin-top: 0; font-size: 1.25rem; }
.callout.talk { background: #eef4f8; border-color:#d6e4ee; }
.callout.talk ol { margin-bottom: 0; }
.callout.prayer { background: var(--gold-tint); border-color: var(--gold-soft); }
.callout.prayer p { font-family: var(--font-read); font-style: italic; margin-bottom: 0; }
.callout.activity { background: #eef7f0; border-color:#d5eadd; }
.callout.parents { background: var(--surface-2); }
.callout.parents p { color: var(--muted); margin-bottom: 0; }
:root[data-theme="dark"] .callout.talk { background:#16232c; border-color:#22323d; }
:root[data-theme="dark"] .callout.activity { background:#15241b; border-color:#22342a; }
.story-nav { margin-top: 2rem; }

/* ---------- Bible words ---------- */
.word-card h3 { color: var(--navy); }
.word-short { font-weight: 600; color: var(--fg); margin-bottom: .5rem; }
.word-verse { border-left: 3px solid var(--gold); padding: .3rem 0 .3rem .9rem; margin: 1rem 0 0; font-family: var(--font-read); font-style: italic; color: var(--muted); font-size: .95rem; }
.word-verse cite { display:block; font-style: normal; font-size: .8rem; color: var(--gold); margin-top: .3rem; }

/* ---------- Kids' prayers ---------- */
.prayer-card .kid-prayer { font-family: var(--font-read); font-size: 1.05rem; line-height: 1.7; margin: .6rem 0 0; padding-left: 1rem; border-left: 3px solid var(--gold-soft); color: var(--fg); font-style: normal; }

/* ---------- Q&A accordion ---------- */
.qa { --ac: var(--gold); border: 1px solid var(--border); border-left: 4px solid var(--ac); border-radius: var(--radius); margin-bottom: .8rem; background: var(--card); overflow: hidden; }
.qa summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--fg); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; color: var(--ac); font-weight: 400; transition: transform var(--tr); flex: none; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--ac); }
.qa-tag { margin-left: auto; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }
.qa summary::after { margin-left: .6rem; }
@media (max-width: 560px) { .qa-tag { display: none; } }
.qa-body { padding: 0 1.3rem 1.2rem; color: var(--fg); }
.qa-body p { margin-bottom: .8rem; }

/* ---------- Verse tiles (daily verse archive) ---------- */
.verse-tile blockquote { font-family: var(--font-read); font-style: italic; font-size: 1.05rem; line-height: 1.5; margin: .3rem 0 1rem; color: var(--fg); }
.verse-date { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }

/* ---------- Books of the Bible / Translations lists ---------- */
.testament-h { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); margin: 1.5rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border); }
.book-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.book-chip { display: block; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--fg); font-weight: 500; font-size: .95rem; transition: border-color var(--tr), color var(--tr), background var(--tr), transform var(--tr); }
.book-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); transform: translateY(-2px); }
.trans-card h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: .2rem; letter-spacing: .02em; }

/* ---------- Book & Translation info pages ---------- */
.book-hero {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: center;
  margin: .8rem 0 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.book-head { margin-bottom: 1.6rem; }
.book-head h1 { margin: .1rem 0 .4rem; }
.book-chapters { margin-bottom: 2rem; }
.book-chapters h2, .book-sec h2 { border-bottom: 2px solid var(--border); padding-bottom: .4rem; }
.chap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .45rem; margin-top: 1rem; }
.chap-chip { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--fg); font-weight: 600; font-family: var(--font-read); transition: border-color var(--tr), color var(--tr), background var(--tr); }
.chap-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); }
.book-sec { margin-top: 1.8rem; }
.book-sec.prose { max-width: none; }
.fav-verses { display: grid; gap: 1rem; margin-top: 1rem; }
.fav-verse { margin: 0; background: var(--surface-2); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; }
.fav-verse blockquote { font-family: var(--font-read); font-style: italic; font-size: 1.1rem; line-height: 1.55; margin: 0 0 .5rem; color: var(--fg); }
.fav-verse figcaption a { font-family: var(--font-body); font-weight: 700; color: var(--gold); }
.trans-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .3rem; }
.book-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
@media (max-width: 600px) {
  .book-hero { aspect-ratio: 16 / 9; object-position: 58% center; }
}

/* ---------- Daily Verse page ---------- */
.dv-layout { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 1000px) { .dv-layout { grid-template-columns: minmax(0,1fr) 320px; } }
.dv-card { padding: clamp(1.4rem, 3vw, 2.2rem); }
.dv-date { font-size: .85rem; color: var(--muted); letter-spacing: .02em; margin-bottom: .5rem; }
.dv-ref-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.dv-ref { color: var(--gold); margin: 0; }
.dv-ver { display: flex; align-items: center; gap: .5rem; }
.dv-ver label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.dv-ver select { font-family: var(--font-body); font-size: .9rem; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .45rem .8rem; max-width: 55vw; }
.dv-text { font-family: var(--font-read); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.45; color: var(--fg); margin: 1.1rem 0 1.3rem; }
.dv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dv-reflection { max-width: none; margin-top: 2rem; }
.dv-reflection h2 { border-bottom: 2px solid var(--border); padding-bottom: .4rem; }
.dv-reflection h3 { margin-top: 1rem; color: var(--navy); }

.dv-week { margin-top: 2rem; }
.dv-week h2 { border-bottom: 2px solid var(--border); padding-bottom: .4rem; }
.dv-week-list { display: grid; gap: .5rem; margin-top: 1rem; }
.dv-week-row { display: grid; grid-template-columns: 3.2rem 8rem 1fr; gap: .8rem; align-items: baseline; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; cursor: pointer; transition: border-color var(--tr), background var(--tr); }
.dv-week-row:hover { border-color: var(--gold-soft); background: var(--surface-2); }
.dv-week-row.is-current { border-color: var(--gold); background: var(--gold-tint); }
.dv-week-day { font-weight: 700; color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.dv-week-ref { font-weight: 600; color: var(--fg); }
.dv-week-txt { color: var(--muted); font-family: var(--font-read); font-style: italic; font-size: .92rem; }
@media (max-width: 560px) { .dv-week-row { grid-template-columns: 3rem 1fr; } .dv-week-txt { display: none; } }

/* Calendar */
.dv-cal { padding: 1.1rem 1.2rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.dv-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.dv-cal-title { font-family: var(--font-display); font-weight: 600; }
.dv-cal-nav { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.dv-cal-nav:hover:not([disabled]) { border-color: var(--gold); color: var(--gold); }
.dv-cal-nav[disabled] { opacity: .3; cursor: default; }
.dv-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dv-cal-dow span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); }
.dv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dv-cal-day, .dv-cal-empty { aspect-ratio: 1; display: grid; place-items: center; font-size: .85rem; border-radius: 8px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.dv-cal-day:hover { background: var(--gold-tint); color: var(--gold); }
.dv-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold-soft); }
.dv-cal-day.is-sel { background: var(--navy); color: #fff; }
.dv-cal-day.is-future { color: var(--muted); opacity: .35; cursor: default; }
.dv-about { margin-top: 1rem; }
.dv-archive-sec { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Bible Quiz ---------- */
.quiz-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 1.2rem; }
.quiz-modes .qmode {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  transition: color var(--tr), background var(--tr), border-color var(--tr);
}
.quiz-modes .qmode:hover { color: var(--gold); border-color: var(--gold-soft); }
.quiz-modes .qmode.active { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme="dark"] .quiz-modes .qmode.active { background: var(--gold); color: #241701; border-color: var(--gold); }
.quiz-setup { max-width: 720px; margin-inline: auto; padding: clamp(1.4rem, 3vw, 2.2rem); text-align: center; }
.quiz-setup h2 { margin-bottom: .4rem; }
.quiz-sub { color: var(--muted); max-width: 40rem; margin-inline: auto; }
.quiz-fields { display: grid; gap: 1rem; margin: 1.4rem 0 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: left; }
.quiz-field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
.quiz-field select { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.quiz-best { min-height: 1.6rem; margin-bottom: .8rem; }
.quiz-topic { text-align: left; cursor: pointer; }

/* Play */
.quiz-play, .quiz-result { max-width: 720px; margin-inline: auto; padding: clamp(1.4rem, 3vw, 2.2rem); }
.quiz-progress { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-weight: 600; }
.quiz-score { color: var(--gold); }
.quiz-bar { height: 6px; background: var(--parchment-2); border-radius: 999px; overflow: hidden; margin: .6rem 0 1.4rem; }
.quiz-bar span { display: block; height: 100%; background: var(--gold); transition: width var(--tr); }
.quiz-q { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); margin-bottom: 1.2rem; }
.quiz-opts { display: grid; gap: .6rem; }
.quiz-opt {
  text-align: left; font-family: var(--font-body); font-size: 1.02rem; color: var(--fg);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1.1rem; cursor: pointer; transition: border-color var(--tr), background var(--tr), transform var(--tr);
}
.quiz-opt:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-tint); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-correct { border-color: #3f8a5a; background: #e9f6ee; color: #1f5236; font-weight: 600; }
.quiz-opt.is-wrong { border-color: #c0533f; background: #fbeae6; color: #7a2f22; }
:root[data-theme="dark"] .quiz-opt.is-correct { background: #15281d; color: #9fe0b8; }
:root[data-theme="dark"] .quiz-opt.is-wrong { background: #2a1714; color: #e2a597; }
.quiz-feedback { margin-top: 1.1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .98rem; line-height: 1.55; border-left: 4px solid var(--border); background: var(--surface-2); }
.quiz-feedback.ok { border-left-color: #3f8a5a; }
.quiz-feedback.no { border-left-color: #c0533f; }
.quiz-ref { display: inline-block; margin-top: .3rem; font-weight: 600; color: var(--gold); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }

/* Result */
.quiz-result { text-align: center; }
.quiz-score-ring {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--parchment-2) 0);
}
.quiz-score-ring span { width: 108px; height: 108px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--fg); }
.quiz-result h2 { color: var(--gold); }
.quiz-result-note { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.quiz-result .quiz-actions { justify-content: center; }
.quiz-share-hint { color: #3f8a5a; font-weight: 600; margin-top: .6rem; }

/* ---------- Topical verses ---------- */
.verse-stack { display: grid; gap: 1rem; max-width: 800px; }
.topical-verse { margin: 0; }
.topical-verse blockquote { font-family: var(--font-read); font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); line-height: 1.6; margin: 0 0 1rem; color: var(--fg); }
.topical-verse figcaption { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-top: .8rem; border-top: 1px solid var(--border); }
.topical-verse .tv-ref { font-family: var(--font-body); font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.topical-verse .tv-ver { font-size: .78rem; color: var(--muted); background: var(--parchment-2); padding: .15rem .5rem; border-radius: 999px; }
.topical-verse .tv-copy { margin-left: auto; }

/* ---------- Contact form ---------- */
.contact-form .form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.contact-form label { font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--fg); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); outline: none; box-shadow: var(--ring); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===================== Articles (Jesus section) ===================== */
.article{max-width:768px;margin-inline:auto}
.article .breadcrumb{margin-bottom:.6rem}
.article h1{margin:.2rem 0 .5rem;font-size:clamp(1.9rem,4.2vw,2.9rem);line-height:1.12}
.article-subtitle{font-size:clamp(1.05rem,2.2vw,1.3rem);color:var(--muted);font-weight:500;margin:.2rem 0 1rem;line-height:1.4}
.article-meta{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;align-items:center;font-size:.9rem;color:var(--muted);border-block:1px solid var(--line);padding:.7rem 0;margin-bottom:1.4rem}
.article-meta .art-byline{font-weight:600;color:var(--ink)}
.article-meta .art-passage b{color:var(--ink)}
.article-hero{margin:0 0 1.6rem;border-radius:var(--radius);overflow:hidden;background:var(--surface-2)}
.article-hero img{width:100%;height:auto;display:block}
.article-hero figcaption{font-size:.85rem;color:var(--muted);padding:.6rem .9rem;background:var(--surface);line-height:1.4}
.article-hero .art-credit{opacity:.7}
.article-dek{font-size:1.15rem;line-height:1.6;color:var(--ink);font-weight:500;margin-bottom:1.2rem}
.article-body h2{font-size:clamp(1.25rem,2.6vw,1.6rem);margin:2rem 0 .7rem;line-height:1.25}
.article-body p{margin:0 0 1rem;line-height:1.75}
.article-refs{max-width:768px;margin:1.8rem auto 0;padding:1rem 1.2rem;background:var(--surface-2);border-radius:var(--radius);border:1px solid var(--line)}
.article-refs h3{margin:0 0 .3rem;font-size:1rem}
.article-refs p{margin:0;font-size:.92rem;color:var(--muted)}
.article-related{max-width:1100px;margin:2.6rem auto 0}
.article-related h3{margin:0 0 1rem;font-size:1.3rem}
.article-back{margin-top:1.4rem}

/* ---------- Prayer text (individual prayer pages) ---------- */
.prayer-text{background:var(--gold-tint);border-radius:var(--radius);padding:1.6rem 1.8rem;margin:1.6rem 0}
.prayer-text p{font-family:var(--font-read);font-style:italic;font-size:1.15rem;line-height:1.75;color:var(--fg);margin:0 0 .9rem}
.prayer-text p:last-child{margin-bottom:0}
.prayer-closing{color:var(--muted);line-height:1.7}

/* ---------- Prayer topic collections: card grid + one page per prayer ---------- */
.pt-topic .article-related{max-width:none}
/* hero banner on topic pages: phones get the 960px picture via --hero-img-sm (falls back to --hero-img everywhere else) */
@media (max-width:700px){.page-hero.has-hero-art{background-image:var(--hero-img-sm,var(--hero-img))}}
.pt-card{display:flex;flex-direction:column;gap:.15rem}
.pt-card h3{margin:.35rem 0 .3rem}
.pt-card p{color:var(--muted);line-height:1.6;margin:0 0 .6rem}
.pt-card .card-foot{margin-top:auto}
.pt-num{flex:none;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--gold-tint);color:var(--gold);font-weight:700;font-size:.9rem}
.pt-topic .article-related{margin-top:3rem}
.pt-topic .article-back{margin-top:2rem}
.prayer-text .pt-ending{font-style:normal;font-weight:600;font-size:1rem;color:var(--muted)}
.pt-refs{font-size:.92rem;color:var(--muted);margin:0 0 1rem;display:flex;flex-wrap:wrap;gap:.35rem .5rem;align-items:center}
.pt-refs b{color:var(--ink);margin-right:.15rem}
.pt-ref{display:inline-block;padding:.12rem .6rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);font-size:.88rem;white-space:nowrap}
a.pt-ref:hover{border-color:var(--gold);color:var(--gold)}
.pt-pager{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;margin:1.8rem 0 0}
.pt-pager-link{display:flex;flex-direction:column;gap:.25rem;padding:.9rem 1.1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--fg);text-decoration:none;transition:border-color var(--tr),transform var(--tr)}
.pt-pager-link span{font-size:.82rem;color:var(--muted)}
.pt-pager-link b{font-family:var(--font-display);font-weight:500;font-size:1.02rem;line-height:1.3}
.pt-pager-link:hover{border-color:var(--gold);transform:translateY(-1px)}
.pt-pager-link.next{grid-column:2;text-align:right}
@media (max-width:640px){
  .pt-pager{grid-template-columns:1fr}
  .pt-pager-link.next{grid-column:auto}
  .prayer-topic-item .prayer-text{padding:1.25rem 1.2rem}
  /* a prayer page should show the prayer itself on the first screen of a phone */
  .prayer-topic-item .breadcrumb{font-size:.8rem;flex-wrap:nowrap}
  .prayer-topic-item .breadcrumb > *{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .prayer-topic-item .breadcrumb > a{flex:none}
  .prayer-topic-item .breadcrumb > a:nth-of-type(3){flex:0 1 auto;max-width:42%}
  .prayer-topic-item .breadcrumb > span{flex:1 1 2rem}
  .prayer-topic-item h1{font-size:clamp(1.55rem,7vw,1.9rem);line-height:1.15}
  .prayer-topic-item .article-subtitle{font-size:1rem;font-weight:400;line-height:1.55;margin-bottom:.4rem}
  .prayer-topic-item .prayer-text{margin:1.1rem 0}
  .pt-ref{padding:.3rem .75rem}
}
/* ===================== Article ROW list (topic listing) ===================== */
.article-list-wrap{max-width:900px;margin-inline:auto}
.article-list-wrap > .section-head{max-width:none;margin-bottom:1.6rem}
.article-list{display:flex;flex-direction:column;gap:1.4rem}
.article-row{
  display:grid; grid-template-columns:1fr; overflow:hidden; text-decoration:none; color:inherit;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); transition:box-shadow var(--tr), border-color var(--tr);
}
.article-row:hover{box-shadow:var(--shadow); border-color:var(--gold-soft)}
.article-row-media{position:relative; overflow:hidden; aspect-ratio:16/9; background:var(--surface-2)}
.article-row-media img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease}
.article-row:hover .article-row-media img{transform:scale(1.04)}
.article-row-body{padding:clamp(1.2rem,3vw,1.9rem); display:flex; flex-direction:column; gap:.55rem; min-width:0}
.article-row-eyebrow{font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold)}
.article-row-body h3{margin:0; font-size:clamp(1.25rem,1.05rem + 1vw,1.65rem); line-height:1.28; color:var(--ink)}
.article-row-excerpt{margin:0; color:var(--muted); font-size:1.04rem; line-height:1.65;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.article-row-meta{font-size:.85rem; color:var(--muted)}
.article-row-cta{margin-top:.3rem; display:inline-flex; align-items:center; gap:.4rem; color:var(--gold); font-weight:600; font-size:.92rem}
.article-row-cta .arrow{transition:transform var(--tr)}
.article-row:hover .article-row-cta .arrow{transform:translateX(4px)}

@media (min-width: 680px){
  .article-row{grid-template-columns:minmax(240px,38%) 1fr}
  .article-row-media{aspect-ratio:auto; height:100%}
}

/* topic banners: per-picture focal point (--hero-pos, see prayer-topics/config.json "heroFocus") */
.page-hero.has-hero-art[style*="--hero-pos"]{background-position:var(--hero-pos)}

/* ---------- Prayers from the Bible: study pages ---------- */
.bible-study .article-dek{margin-top:.2rem}
.bs-sec{margin-top:2.6rem}
.bs-sec h2{font-size:clamp(1.3rem,2.8vw,1.7rem);margin:0 0 .8rem;line-height:1.25}
.bs-sec p{line-height:1.75;margin:0 0 1rem}
.bs-trans{font-size:.85rem;color:var(--muted);margin-left:.4rem}
.bs-callout{background:var(--surface-2);border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:var(--radius);padding:1rem 1.2rem;margin:1.1rem 0}
.bs-callout b{display:block;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin-bottom:.3rem}
.bs-callout p{margin:0}
.bs-list{margin:0 0 1rem;padding-left:1.2rem;line-height:1.7}
.bs-list li{margin:.4rem 0}
.bs-item{padding:1.2rem 0;border-top:1px solid var(--line)}
.bs-item:first-of-type{border-top:0;padding-top:.2rem}
.bs-item h3{font-size:1.15rem;margin:0 0 .2rem}
.bs-focus{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin:0 0 .5rem}
.bs-pray{background:var(--gold-tint);border-radius:var(--radius);padding:.8rem 1rem;margin:.6rem 0 0}
.bs-pray b{color:var(--ink)}
.bs-sec ul,.bs-sec ol{padding-left:1.3rem;line-height:1.75;margin:0 0 1rem}
.bs-sec li{margin:.45rem 0}
.bs-prayer{margin:0 0 1.4rem}
.bs-prayer h3{font-size:1.1rem;margin:0 0 .2rem}
.bs-note{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.4rem}
.bs-note h2{font-size:1.15rem}
.bs-note p{margin:0}
.bs-callout ul{margin:.2rem 0 0;padding-left:1.2rem}
.bs-callout li{margin:.25rem 0}

/* ===================== Sunday sermons ===================== */
.sermon-kicker{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin:0 0 .5rem;line-height:1.5}
.sermon-kicker span{color:var(--muted)}
.sermon-meta{font-size:.9rem;color:var(--muted);margin:.2rem 0 1.4rem}
.sermon-label{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin:0 0 .6rem}
.sermon-reading{margin:1.6rem 0 2.2rem}
.sermon-reading .prayer-text{margin:.4rem 0 .8rem}
.sermon-reading .vn{font-family:var(--font-body);font-style:normal;font-size:.7em;font-weight:700;color:var(--gold);margin-right:.2em;vertical-align:super;line-height:0}
.sermon-body p{font-family:var(--font-read);font-size:1.14rem;line-height:1.85;color:var(--fg);margin:0 0 1.2rem}
.sermon-body > p:first-child::first-letter{float:left;font-family:var(--font-display);font-size:3.4em;line-height:.85;padding:.08em .12em 0 0;color:var(--gold)}
.sermon-prayer{background:var(--gold-tint);border-radius:var(--radius);padding:1.4rem 1.6rem;margin:2.2rem 0 1.4rem}
.sermon-prayer p:last-child{font-family:var(--font-read);font-style:italic;font-size:1.08rem;line-height:1.8;margin:0}
.sermon-benediction{text-align:center;font-family:var(--font-read);font-style:italic;font-size:1.1rem;line-height:1.7;color:var(--ink);max-width:36rem;margin:2rem auto 2.4rem;padding-top:1.4rem;border-top:1px solid var(--line)}
.sermon-questions{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem 1.4rem;margin:0 0 2rem}
.sermon-questions ol{margin:0;padding-left:1.3rem;line-height:1.7}
.sermon-questions li{margin:.35rem 0}
.sermon-series{margin:0 0 1.6rem}
.sermon-series ol{margin:0;padding-left:1.3rem;line-height:1.7}
.sermon-series li span{color:var(--muted);font-size:.85rem;margin-left:.4rem}
.sermon-series li.is-current{font-weight:700}
/* hub */
.sermon-feature{display:grid;grid-template-columns:1.1fr 1fr;gap:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);color:inherit;text-decoration:none;box-shadow:var(--shadow-sm);transition:transform var(--tr),box-shadow var(--tr)}
.sermon-feature:hover{transform:translateY(-2px)}
.sermon-feature-media img{width:100%;height:100%;object-fit:cover;display:block}
.sermon-feature-body{padding:clamp(1.3rem,3vw,2.2rem);display:flex;flex-direction:column;justify-content:center}
.sermon-feature-body h2{font-size:clamp(1.6rem,3.2vw,2.3rem);margin:.1rem 0 .4rem;line-height:1.15}
.sermon-feature-sub{color:var(--muted);font-weight:500;margin:0 0 .8rem}
.sermon-feature-body > p:not(.sermon-label):not(.sermon-kicker):not(.sermon-feature-sub){line-height:1.65;margin:0 0 1.2rem}
.sermon-feature-body .btn{align-self:flex-start}
.sermon-archive-head{margin-top:3rem}
.sermon-card-date{font-size:.82rem;color:var(--muted);margin:.2rem 0 .2rem}
.sermon-card-kicker{font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--gold);margin:0 0 .4rem}
@media (max-width:860px){ .sermon-feature{grid-template-columns:1fr} .sermon-feature-media img{aspect-ratio:16/9;height:auto} }
@media (max-width:640px){
  .sermon-page .breadcrumb{font-size:.8rem;flex-wrap:nowrap}
  .sermon-page .breadcrumb > *{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sermon-page .breadcrumb > a{flex:none}
  .sermon-page .breadcrumb > span{flex:1 1 2rem}
  .sermon-page h1{font-size:clamp(1.7rem,7.5vw,2.1rem)}
  .sermon-body p{font-size:1.06rem;line-height:1.8}
  .sermon-prayer{padding:1.2rem 1.2rem}
}
/* sermons: find by date (calendar) */
.sermon-cal .section-head p{color:var(--muted);margin:.3rem 0 0}
.sc-wrap{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:clamp(1.2rem,3vw,2.4rem);align-items:start}
.sc-box{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem 1rem 1.1rem;box-shadow:var(--shadow-sm)}
.sc-nav{display:flex;align-items:center;justify-content:space-between;margin:0 0 .6rem}
.sc-month{font-family:var(--font-display);font-size:1.15rem;font-weight:600}
.sc-nav button{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--fg);font-size:1.3rem;line-height:1;cursor:pointer}
.sc-nav button:hover:not(:disabled){border-color:var(--gold);color:var(--gold)}
.sc-nav button:disabled{opacity:.35;cursor:default}
.sc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem;text-align:center}
.sc-wd{font-size:.72rem;font-weight:700;color:var(--muted);text-transform:uppercase;padding:.2rem 0}
.sc-day{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-radius:50%;font-size:.92rem;color:var(--muted)}
.sc-day.sc-empty{visibility:hidden}
.sc-day.sc-today{box-shadow:inset 0 0 0 1px var(--line)}
a.sc-day.sc-has{background:var(--gold);color:#fff;font-weight:700;text-decoration:none;transition:transform var(--tr),box-shadow var(--tr)}
a.sc-day.sc-has:hover,a.sc-day.sc-has:focus-visible{transform:scale(1.08);box-shadow:0 4px 12px rgba(0,0,0,.18)}
.sc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}
.sc-list a{display:block;padding:.9rem 1.1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--fg);text-decoration:none;transition:border-color var(--tr)}
.sc-list a:hover{border-color:var(--gold)}
.sc-li-date{display:block;font-size:.8rem;color:var(--muted);margin-bottom:.15rem}
.sc-list b{display:block;font-family:var(--font-display);font-weight:600;font-size:1.08rem}
.sc-li-k{display:block;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--gold);margin-top:.25rem}
@media (max-width:760px){ .sc-wrap{grid-template-columns:1fr} .sc-box{max-width:380px;width:100%;margin-inline:auto} }

/* ===================== Christian Living ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cl-preview-ribbon { margin: 1rem 0 1.4rem; padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--gold-tint); border: 1px solid var(--gold); color: var(--ink); font-size: .85rem; font-weight: 600; }
/* hero */
.cl-hero { padding-block: clamp(2.5rem,6vw,4.6rem) clamp(2.4rem,5vw,4rem); border-bottom: 1px solid var(--line); }
.cl-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(1.8rem,4.5vw,3.6rem); align-items: center; }
.cl-hero-copy .breadcrumb { margin-bottom: 1rem; }
.cl-hero h1 { font-size: clamp(2.6rem,6vw,4.6rem); line-height: 1.02; letter-spacing: -.03em; margin: .6rem 0 .3rem; }
.cl-tagline { font-family: var(--font-read); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.75rem); color: var(--muted); margin: 0; }
.cl-lead { font-size: clamp(1.02rem,1.2vw,1.12rem); line-height: 1.65; color: var(--fg); max-width: 36rem; margin: 1.1rem 0 0; }
.cl-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.6rem; }
.cl-search { display: flex; align-items: center; gap: .6rem; max-width: 38rem; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: .45rem .45rem .45rem 1rem; box-shadow: var(--shadow-sm); }
.cl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1rem; padding: .65rem .1rem; }
.cl-search input:focus-visible { box-shadow: none; }
.cl-search:focus-within { border-color: var(--gold); box-shadow: var(--ring); }
.cl-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.cl-chip { cursor: pointer; font: inherit; font-size: .8rem; }
.cl-results { max-width: 38rem; margin-top: 1rem; }
.cl-res-msg { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; }
.cl-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cl-res-list a { display: block; padding: .75rem .95rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--fg); text-decoration: none; }
.cl-res-list a:hover { border-color: var(--gold); }
.cl-res-list b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: .1rem 0; color: var(--ink); }
.cl-res-list span:not(.cl-kicker) { display: block; font-size: .88rem; color: var(--muted); }
.cl-help { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.cl-help[hidden] { display: none; }
.cl-help a { font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--fg); }
.cl-help a:hover { border-color: var(--gold); color: var(--gold); }
.cl-hero-art { position: relative; border-radius: 28px; overflow: hidden; min-height: clamp(300px,36vw,470px); background: var(--surface-2); box-shadow: var(--shadow); }
.cl-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(0,0,0,0) 40%, rgba(14,22,32,.45)); pointer-events: none; }
.cl-hero-panel { position: absolute; left: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); bottom: clamp(1rem,3vw,2rem); z-index: 1; max-width: 21rem; background: var(--card); border: 1px solid var(--border); border-radius: 17px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.cl-hero-panel .eyebrow { font-size: .68rem; }
.cl-hero-panel b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin: .45rem 0 .35rem; color: var(--ink); }
.cl-hero-panel p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
/* shared section bits */
.cl-sec + .cl-sec { border-top: 1px solid var(--line); }
.cl-band { background: var(--surface-2); }
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.cl-head h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin: .5rem 0 .3rem; }
.cl-head p { margin: 0; color: var(--muted); max-width: 38rem; }
.cl-arrow { font-weight: 700; font-size: .9rem; color: var(--gold); white-space: nowrap; }
.cl-h2 { font-size: clamp(1.3rem,2.6vw,1.6rem); margin: 0 0 1rem; }
.cl-kicker { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.cl-readmore { display: inline-block; margin-top: auto; padding-top: .8rem; font-size: .85rem; font-weight: 700; color: var(--ink); }
.cl-grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.cl-grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.cl-ph { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.cl-ph svg { width: 34px; height: 34px; opacity: .6; }
/* cards */
.cl-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; color: var(--fg); text-decoration: none; transition: transform var(--tr), box-shadow var(--tr); }
.cl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cl-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.cl-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.cl-card-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: .5rem 0 .4rem; color: var(--ink); }
.cl-card-feature .cl-card-title { font-size: clamp(1.4rem,2.4vw,1.8rem); }
.cl-card-small .cl-card-title { font-size: 1.1rem; }
.cl-card-text { display: block; font-size: .92rem; line-height: 1.55; color: var(--muted); }
/* topic tiles */
.cl-topics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .9rem; }
.cl-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; min-height: 150px; padding: 1.2rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 16px; color: var(--fg); text-decoration: none; transition: transform var(--tr), border-color var(--tr); }
a.cl-tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.cl-tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--gold-tint); color: var(--gold); }
.cl-tile-icon svg { width: 20px; height: 20px; }
.cl-tile b { display: block; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.cl-tile small { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.cl-tile.is-soon { opacity: .82; }
.cl-tile.is-soon .cl-tile-icon { background: var(--surface-2); color: var(--muted); }
.cl-soon { position: absolute; top: 1rem; right: 1rem; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .5rem; background: var(--surface-2); }
/* journey promo */
.cl-journey { display: grid; grid-template-columns: .85fr 1.15fr; background: var(--surface-2); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; min-height: 380px; }
.cl-journey-media { position: relative; min-height: 260px; }
.cl-journey-media > img, .cl-journey-media > .cl-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-journey-body { padding: clamp(1.6rem,4vw,3.2rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cl-journey-body h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: .6rem 0 .5rem; }
.cl-journey-body p { color: var(--muted); margin: 0 0 .6rem; max-width: 30rem; }
.cl-journey-meta { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.2rem !important; }
/* question band: stays dark in both themes */
.cl-question { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: #1e3048; color: #fff; border-radius: 24px; padding: clamp(1.6rem,4vw,2.8rem) clamp(1.4rem,4vw,3rem); }
.cl-question .eyebrow { color: #e9c98d; }
.cl-question h2 { color: #fff; font-size: clamp(1.5rem,3vw,2.2rem); margin: .6rem 0 .5rem; max-width: 44rem; }
.cl-question p { color: #d3dbe6; margin: 0; max-width: 44rem; }
.cl-btn-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
.cl-btn-light:hover { background: rgba(255,255,255,.1); color: #fff; }
/* guides */
.cl-guide { display: flex; flex-direction: column; gap: .9rem; min-height: 180px; padding: 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: 18px; color: var(--fg); text-decoration: none; transition: border-color var(--tr); }
.cl-guide:hover { border-color: var(--gold); }
.cl-guide-n { font-family: var(--font-read); font-style: italic; color: var(--gold); }
.cl-guide b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.cl-guide-meta { margin-top: auto; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
/* latest + reading paths */
.cl-two { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: start; }
.cl-rows { display: flex; flex-direction: column; }
.cl-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.cl-row:first-child { padding-top: 0; }
.cl-row-media { flex: 0 0 120px; width: 120px; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cl-row-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-row b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: .25rem 0; color: var(--ink); }
.cl-row:hover b { color: var(--gold); }
.cl-row small { font-size: .8rem; color: var(--muted); }
.cl-paths { background: var(--surface-2); border: 1px solid var(--border); border-radius: 22px; padding: 1.5rem; }
.cl-paths p { color: var(--muted); font-size: .92rem; margin: .6rem 0 1rem; }
.cl-pathlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.cl-path-btn { width: 100%; font: inherit; text-align: left; font-size: .9rem; font-weight: 700; padding: .75rem .9rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); cursor: pointer; }
.cl-path-btn:hover { border-color: var(--gold); }
/* dilemma, stories, library, newsletter */
.cl-dilemma { display: flex; flex-direction: column; gap: .5rem; padding: clamp(1.4rem,4vw,2.4rem); background: var(--gold-tint); border-radius: 22px; color: var(--fg); text-decoration: none; }
.cl-dilemma b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem,2.6vw,1.9rem); color: var(--ink); }
.cl-lib { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 16px; color: var(--fg); text-decoration: none; transition: border-color var(--tr); }
.cl-lib:hover { border-color: var(--gold); }
.cl-lib b { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.cl-lib span { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cl-news { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: #1e3048; color: #fff; border-radius: 24px; padding: clamp(1.6rem,4vw,2.8rem); }
.cl-news h2 { color: #fff; } .cl-news p { color: #d3dbe6; } .cl-news .eyebrow { color: #e9c98d; }
.cl-news-soon { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .5rem 1rem; }
/* reading-path modal */
.cl-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(10,18,28,.62); }
.cl-modal[hidden] { display: none; }
.cl-modal-box { position: relative; width: 100%; max-width: 36rem; max-height: 85vh; overflow: auto; background: var(--card); color: var(--fg); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.cl-modal-box h2 { margin: .5rem 2.5rem .5rem 0; }
.cl-modal-x { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cl-modal-intro { color: var(--muted); }
.cl-modal-list { padding-left: 1.2rem; line-height: 1.9; }
.cl-modal-list:has(.cl-path-btn) { list-style: none; padding: 0; display: grid; gap: .5rem; }
/* category + content pages */
.cl-cat-head { padding-block: clamp(2rem,5vw,3.4rem) clamp(1.4rem,3vw,2rem); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cl-cat-head h1 { font-size: clamp(2rem,4.4vw,3rem); margin: .8rem 0 .4rem; }
.cl-cat-head p { color: var(--muted); max-width: 42rem; margin: 0; }
.cl-cat-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--gold-tint); color: var(--gold); margin-top: .6rem; }
.cl-cat-icon svg { width: 24px; height: 24px; }
.cl-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.cl-related-cats { margin-top: 2.4rem; }
.cl-chiprow { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-link { font-size: .88rem; font-weight: 600; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--fg); background: var(--card); }
.chip-link:hover { border-color: var(--gold); color: var(--gold); }
.cl-meta { font-size: .9rem; color: var(--muted); margin: .2rem 0 1.4rem; }
.cl-body p, .cl-body li { font-size: 1.06rem; line-height: 1.8; }
.cl-body p { margin: 0 0 1.15rem; }
.cl-body h2 { font-size: clamp(1.3rem,2.6vw,1.65rem); margin: 2rem 0 .7rem; }
.cl-body h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.cl-body ul, .cl-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.cl-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cl-quote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--gold); }
.cl-quote p { font-family: var(--font-read); font-style: italic; font-size: 1.15rem; margin: 0; }
.cl-quote cite { display: block; margin-top: .4rem; font-size: .85rem; color: var(--muted); font-style: normal; }
.cl-scripture { margin: 1.6rem 0; padding: 1.2rem 1.4rem; background: var(--gold-tint); border-radius: var(--radius); }
.cl-scripture blockquote { margin: 0; }
.cl-scripture p { font-family: var(--font-read); font-style: italic; font-size: 1.1rem; margin: 0; }
.cl-scripture figcaption { margin-top: .6rem; }
.cl-callout { margin: 1.6rem 0; padding: 1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); }
.cl-callout b { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.cl-callout p { margin: 0; }
.cl-safety { border-left-color: #b4534a; }
.cl-scene-break { border: 0; text-align: center; margin: 2rem 0; }
.cl-scene-break::before { content: "\2022  \2022  \2022"; color: var(--gold); letter-spacing: .4em; }
.cl-story-body p { font-family: var(--font-read); font-size: 1.16rem; line-height: 1.9; }
.cl-story-hero { aspect-ratio: 16/9; }
.cl-daylist { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .5rem; }
.cl-daylist a { display: flex; gap: 1rem; align-items: baseline; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--fg); text-decoration: none; }
.cl-daylist a:hover { border-color: var(--gold); }
.cl-daylist span { font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); min-width: 4.5rem; }
.cl-qlist { padding-left: 1.2rem; line-height: 1.9; }
.cl-options { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.cl-option { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: .8rem 1rem; }
.cl-option summary { cursor: pointer; font-weight: 700; }
.cl-option p { margin: .7rem 0 0; color: var(--fg); }
.cl-scenario { font-size: 1.12rem; }
/* responsive */
@media (max-width: 1050px) { .cl-topics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 860px) {
  .cl-hero-grid, .cl-grid-2, .cl-two, .cl-journey, .cl-question, .cl-news { grid-template-columns: 1fr; }
  .cl-hero-art { min-height: 260px; }
  .cl-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cl-question .btn, .cl-news-soon { justify-self: start; }
}
@media (max-width: 640px) {
  .cl-topics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .cl-tile { min-height: 132px; padding: 1rem; gap: .8rem; }
  .cl-tile b { font-size: .86rem; }
  .cl-soon { position: static; align-self: flex-start; order: 3; }
  .cl-grid-3 { grid-template-columns: 1fr; }
  .cl-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .cl-search { flex-wrap: wrap; padding: .5rem; }
  .cl-search input { flex: 1 1 100%; padding: .6rem .4rem; }
  .cl-search .btn { width: 100%; justify-content: center; }
  .cl-row-media { flex-basis: 96px; width: 96px; }
  .cl-hero-panel { max-width: none; }
}
@media (max-width: 380px) { .cl-topics { grid-template-columns: 1fr; } }
/* Christian Living: search band under the page hero */
.cl-searchbar { padding-block: 1.6rem 1.5rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cl-searchbar .cl-search, .cl-searchbar .cl-results { max-width: 46rem; }
.cl-searchbar .cl-actions { margin: 1rem 0 0; }
/* Christian Living content pages: breathing room under the nav */
.cl-article, .cl-story, .cl-question-page, .cl-journey-page, .cl-day-page, .cl-dilemma-page { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.5rem, 6vw, 4rem); }
