/* ---------------------------------------------------------------
   LOGICAL PROPERTIES ONLY.
   Never write margin-left, margin-right, padding-left, padding-right,
   text-align: left/right, border-left, border-right, or left:/right:
   for layout. Use the -inline-start / -inline-end forms.
   This file must work unchanged when dir="rtl".
   --------------------------------------------------------------- */

/* =============================================================
   styles.css  --  MERGED 2026-08-28
   Was: styles.css + v35.css + v36.css + v37.css, four <link> tags.
   Concatenated in the exact order the HTML loaded them, so the
   cascade is unchanged: later rules still override earlier ones.
   No @charset, @import or @layer existed in any source file.
   ============================================================= */


/* ==================== BEGIN styles.css ==================== */

  /* ---- WCAG 2.2 AA additions (v30) ------------------------------------
     Contrast values below were measured, not estimated. See build_v30.py. */

  /* 2.4.7 / 2.4.11 Focus visible. A ring that survives on every background. */
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #2A6FDB;
    outline-offset: 2px;
    border-radius: 4px;
  }
  /* Keep the old behaviour for mouse users, who did not ask for a ring. */
  a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

  /* 2.4.1 Bypass blocks. Visible only when focused. */
  .skip-link {
    position: absolute; inset-inline-start: -9999px; top: 0; z-index: 9999;
    background: #2D3250; color: #fff; padding: 12px 20px;
    text-decoration: none; font-weight: 700; border-radius: 0 0 8px 0;
  }
  .skip-link:focus { inset-inline-start: 0; }

  /* 2.3.3 / 2.2.2 Respect the system setting for reduced motion. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
  /* 2.2.2 Manual pause, for people whose OS setting is not set. */
  body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after {
    animation-play-state: paused !important;
  }
  .motion-toggle {
    background: rgba(255,255,255,0.14); color: #fff; border: none;
    border-radius: 999px; cursor: pointer; font-family: inherit;
    font-size: 0.72rem; padding: 0 12px; height: 32px; min-height: 32px;
    display: inline-flex; align-items: center; box-sizing: border-box;
  }

  /* 2.5.8 Target size. 24px was the bare floor; 34px is comfortable. */
  .info-icon { min-width: 24px; min-height: 24px; }

  :root {
    --primary: #2D3250;
    --secondary: #5A4C8C;
    --accent: #FFD700;
    --bg: #F5F5F5;
    --text: #333333;
    --card-bg: #ffffff;
    --border: #8A8A9A;
  }
  /* Dark mode is manual-only now (via .force-dark) -- no automatic system-preference switch,
     since auto-dark made the page unreadable for the founder on load. */
  body.force-light {
    --primary: #2D3250; --secondary: #5A4C8C; --accent: #FFD700;
    --bg: #F5F5F5; --text: #333333; --card-bg: #ffffff; --border: #8A8A9A;
  }
  /* Dark mode, WCAG 2.2 AA. Values measured against #121212 and #1c1c1c.
     --primary and --secondary are read as TEXT far more often than they are
     painted as backgrounds, so they go light here. --brand-solid carries the
     handful of solid navy surfaces that still need white text on them. */
  body.force-dark,
  html[data-theme="dark"] body {
    --primary: #B8C2EA;      /* 10.65:1 on bg, 9.69:1 on card */
    --secondary: #C3B8ED;    /* 10.17:1 on bg, 9.25:1 on card */
    --accent: #FFD700;       /* 13.36:1 -- already passing */
    --bg: #121212;
    --text: #E0E0E0;         /* 14.19:1 -- already passing */
    --card-bg: #1c1c1c;
    --border: #666675;       /* was #333 at 1.48:1, now 3.32:1 */
    --brand-solid: #3A4270;  /* white on this = 9.58:1 */
    --on-brand:    #ffffff;  /* 9.58:1 on --brand-solid */
    --on-accent:   #2D3250;  /* 8.89:1 on gold -- deliberately unchanged */
  }
  html[data-theme="dark"] body.reading-comfort {
    --bg: #121212; --card-bg: #1c1c1c; --text: #E0E0E0; --border: #666675;
  }
  /* ---- ROLE-BASED TOKENS (v32) ---------------------------------------
     --primary was carrying three incompatible jobs at once:
       1. a navy SURFACE for buttons      -> must stay dark in both themes
       2. HEADING TEXT on the page        -> must go light in dark theme
       3. the glyph ON the gold button    -> must stay dark in both themes
     One variable cannot flip for job 2 and hold still for jobs 1 and 3.
     That is why the pill toggle vanished in dark mode: gold does not change
     between themes, but its foreground did, landing at 1.25:1.

     Each job now has its own token. The theme flip is declared ONCE here
     instead of being patched per rule. -------------------------------- */
  :root, body.force-light {
    --brand-solid: #2D3250;   /* navy surface. Never flips. */
    --on-brand:    #ffffff;   /* text on that surface. Never flips. */
    --on-accent:   #2D3250;   /* glyph on gold. Never flips, gold never flips. */
  }

  /* The 16 places --primary was painted as a surface. In dark mode they take
     --brand-solid instead, so white text on them still measures 9.58:1. */
  body.force-dark header.topbar,
  html[data-theme="dark"] body header.topbar,
  body.force-dark .progress-fill,
  html[data-theme="dark"] body .progress-fill,
  body.force-dark .cta-btn,
  html[data-theme="dark"] body .cta-btn,
  body.force-dark .cta-pill,
  html[data-theme="dark"] body .cta-pill,
  body.force-dark .signup-btn,
  html[data-theme="dark"] body .signup-btn,
  body.force-dark .modal-x,
  html[data-theme="dark"] body .modal-x,
  body.force-dark #action-pill,
  html[data-theme="dark"] body #action-pill,
  body.force-dark .info-modal button:not(.modal-x):not(.modal-back),
  html[data-theme="dark"] body .info-modal button:not(.modal-x):not(.modal-back),
  body.force-dark .opt-row button.active,
  html[data-theme="dark"] body .opt-row button.active,
  body.force-dark .freq-row button.active,
  html[data-theme="dark"] body .freq-row button.active,
  body.force-dark .amount-row button.active,
  html[data-theme="dark"] body .amount-row button.active,
  body.force-dark .team-buttons button.active,
  html[data-theme="dark"] body .team-buttons button.active {
    background: var(--brand-solid);
    color: var(--on-brand);
  }
  /* Focus ring needs to be visible on dark too. */
  body.force-dark a:focus-visible, body.force-dark button:focus-visible,
  body.force-dark input:focus-visible, body.force-dark [tabindex]:focus-visible,
  html[data-theme="dark"] body a:focus-visible,
  html[data-theme="dark"] body button:focus-visible,
  html[data-theme="dark"] body input:focus-visible,
  html[data-theme="dark"] body [tabindex]:focus-visible {
    outline-color: #8FB8FF;
  }
  * { box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    margin: 0;
  }
  /* v40: per-language mechanism, English as its first entry (not the
     default). Not other languages yet. */
  :lang(en) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
  }
  header.topbar {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
  }
  header.topbar #bookshelf-btn { justify-self: start; }
  header.topbar .home-block { justify-self: center; }
  header.topbar .header-right { justify-self: end; }
  .logo-slot {
    width: 40px; height: 40px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
  }
  /* --- Haymonutho.x mark, v5.1, transparent. Inherits colour from its container
         via currentColor, so it is white on the dark header and navy elsewhere. --- */
  .hx-logo { width: 100%; height: 100%; display: block; overflow: visible; }
  .hx-logo rect { fill: currentColor; }
  .hx-logo .hx-left  { animation: hxLeft  8s cubic-bezier(0.618,0,0.382,1) infinite; }
  .hx-logo .hx-right { animation: hxRight 8s cubic-bezier(0.618,0,0.382,1) infinite; }
  @keyframes hxLeft {
    0%, 37.5% { transform: translateX(0px); }
    50%, 87.5% { transform: translateX(474.87px); }
    100% { transform: translateX(0px); }
  }
  @keyframes hxRight {
    0%, 37.5% { transform: translateX(0px); }
    50%, 87.5% { transform: translateX(-474.87px); }
    100% { transform: translateX(0px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hx-logo .hx-left, .hx-logo .hx-right { animation: none; }
  }
  .brand-mark { font-weight: 700; letter-spacing: 0.02em; font-size: 0.95rem; }
  .brand-mark .fa8th { color: var(--accent); }
  .hashtags .fa8th { color: #6B5300; font-weight: 700; }
  .mode-toggle {
    position: relative;
    width: 56px; height: 28px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
  }
  .mode-toggle .track-icon {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 0.7rem; line-height: 1;
  }
  .mode-toggle .track-icon.sun { inset-inline-start: 6px; }
  .mode-toggle .track-icon.moon { inset-inline-end: 6px; }
  .mode-toggle .thumb {
    position: absolute; top: 2px; inset-inline-start: 2px;
    width: 22px; height: 22px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    transition: inset-inline-start 0.2s ease;
  }
  body.force-dark .mode-toggle .thumb { inset-inline-start: 32px; }
  main { max-width: 680px; margin: 0 auto; padding: 32px 20px 80px; }
  /* v39 RHYTHM, section 4: line length 60-70ch, 1.6 body line-height, 18px
     minimum body text on a phone, 1.2em between paragraphs, heading top-space
     three times its bottom-space. Applied to the running prose containers
     (founder-story, milestone text, glossary) rather than every element on
     the page, since controls, labels and status lines are not "reading". */
  .founder-story p, .milestone p, .milestone li, details p, details li,
  .glossary-list dd, .info-modal p {
    max-width: 65ch;
  }
  .founder-story p, .milestone p, details p, .glossary-list dd {
    line-height: 1.6;
    margin: 0 0 1.2em;
  }
  main h2, main h3 { line-height: 1.2; margin-top: 2.4em; margin-bottom: 0.8em; }
  main section:first-of-type h2, .founder-story h2 { margin-top: 0; }
  @media (max-width: 480px) {
    .founder-story p, .milestone p, details p, .lede, .subhead { font-size: 1.125rem; } /* 16px root * 1.125 = 18px */
  }
  h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 6px; color: var(--primary); }
  .hashtags { font-size: 0.85rem; color: var(--secondary); margin: 0 0 18px; }
  /* v40, item 5.3: footer's own hashtags line sits under a shorter blessing
     line, not a full section, so it needs a tighter top margin than the
     header/hero usage of the same class -- was inline style="" on both
     pages. */
  .hashtags.hashtags-footer { margin: 6px 0 0; }
  .bless-type-line { font-weight: 700; color: var(--primary); min-height: 1.5em; }
  /* v40, item 5.3: was inline style="" -- the typewriter line above the h1. */
  .hero-type-line { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; color: var(--secondary); min-height: 1.5em; }
  .subhead { font-size: 1.05rem; margin: 0 0 20px; max-width: 65ch; }
  .lede { margin: 0 0 16px; max-width: 65ch; }
  .countdown-label { font-size: 0.8rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.03em; margin: 0; }
  /* v40, item 5.3: default hidden -- appears once the countdown reaches
     zero, via paintCountdown() setting .style.display directly in app.js,
     which still overrides this default exactly as it overrode the
     equivalent inline style="display:none" before. */
  #event-countdown-block { display: none; }
  /* Nanne's artwork -- see the HTML comment above this element for why it
     must never be resized/cropped/rotated. Was inline style="". */
  .helmet-art { display: block; margin: 24px auto; }
  /* v39 RHYTHM, item e: two lines -- the live counter, then a fixed line
     naming the event and date. display:block on both spans stacks them
     without relying on a <br> inside script-written text. */
  .countdown { margin: 2px 0 20px; }
  .countdown-count { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
  .countdown-sub { display: block; font-size: 0.95rem; font-weight: 600; color: var(--secondary); margin-top: 2px; }
  /* Same gold used by the Back Mission Faith pill, applied statically here --
     no breathing, no blinking, just the matching brand colour on the event name. */
  .countdown-gold { color: var(--accent); }
  /* SUPERSEDED 261015 (A44 step 5b): the progress bar is gone from the page (the goal came off;
     tools/build_fund.py writes two counts instead). These .progress-* rules match nothing now. */
  .progress-wrap { margin: 0 0 28px; }
  .progress-track { background: var(--border); border-radius: 6px; height: 28px; width: 100%; overflow: hidden; position: relative; }
  /* v40, item 5.3: 0% default -- JS (updateProgress-style code in app.js)
     sets .style.width directly once the real figure loads, which still
     overrides this default exactly as it overrode the equivalent inline
     style="width:0%" before. */
  .progress-fill { background: var(--primary); height: 100%; transition: width 0.4s ease; width: 0%; }
  /* Backer count sits centred ON the bar. mix-blend-mode flips its colour automatically
     wherever the filled section passes underneath it -- always readable, both sides. */
  .progress-backers {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: #fff; mix-blend-mode: difference;
    pointer-events: none; letter-spacing: 0.02em;
  }
  .progress-label { font-size: 0.9rem; margin-top: 6px; text-align: center; }
  .cta-center { text-align: center; margin: 28px 0 40px; }
  /* v40, item 5.3: the single "The story" pill (STRUCTURE item 2's
     reverted one-button state) sits tighter than a normal milestone CTA --
     was inline style="". */
  .cta-center.cta-center-tight { margin: 18px 0 4px; }
  /* v40, item 5.3: small supporting text scattered through the milestone
     cards -- was inline style="" throughout. Named for size/weight, not
     content, since several unrelated paragraphs share the same look. */
  .note-90 { font-size: 0.9rem; }
  .note-85-muted { font-size: 0.85rem; color: var(--secondary); }
  .note-85-muted.center { text-align: center; }
  .note-85-muted.spaced-top { margin-top: 12px; }
  .funds-list { font-size: 0.9rem; margin: 0 0 10px 0; padding-inline-start: 20px; }
  /* Matches the floating Back Mission Faith pill: navy body, gold ring, pill radius.
     Deliberately STATIC -- no breathing, no blinking, per instruction. */
  .cta-pill {
    display: inline-block; background: var(--primary); color: #fff;
    border: 2px solid var(--accent); border-radius: 999px;
    padding: 12px 26px; font-weight: 700; font-size: 0.95rem;
    letter-spacing: 0.01em; cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .cta-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.24); }
  .cta-pill .cta-gold { color: var(--accent); }
  .cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    font-size: 1.05rem;
  }
  .campaign-name { font-style: italic; color: var(--secondary); }
  section.milestone {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin: 18px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
  .status { font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--secondary); margin: 0 0 2px; }
  .timeframe { font-size: 0.85rem; color: #6B6B6B; margin: 0 0 10px; font-style: italic; }
  .milestone h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--primary); }
  .milestone p { margin: 0 0 10px; }
  details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; color: var(--primary); }
  details[open] > summary { margin-bottom: 10px; }
  .info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid var(--secondary); color: var(--secondary);
    font-size: 0.7rem; font-style: italic; font-weight: 700;
    margin-inline-start: 6px; cursor: pointer; vertical-align: middle;
    background: none;
  }
  .info-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center; justify-content: center;
    z-index: 100; padding: 20px;
  }
  .info-modal-overlay.open { display: flex; }
  .info-modal {
    background: var(--card-bg); color: var(--text);
    border-radius: 10px; padding: 58px 24px 24px;
    max-width: 380px; width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    max-height: 82vh; overflow-y: auto;           /* scrollable on short screens (fix 20260729) */
    -webkit-overflow-scrolling: touch;
  }
  /* Close control: a cross, top-centre of every pop-up.
     "Take up your cross daily, deny yourself, and follow me." (Luke 9:23) */
  .modal-x {
    position: absolute; top: 10px; inset-inline-start: 50%; transform: translateX(-50%);
    width: 40px; min-width: 40px; height: 40px; min-height: 40px;
    flex: 0 0 40px; border-radius: 999px; padding: 0; overflow: hidden;
    background: var(--primary); color: #fff; border: none;
    font-size: 1rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 2;
    aspect-ratio: 1 / 1; box-sizing: border-box;
  }
  .info-modal p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.5; }
  .info-modal button:not(.modal-x):not(.modal-back) {
    background: var(--primary); color: #fff; border: none;
    border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer;
  }
  /* Belt and braces: nothing may un-round these two controls. */
  .info-modal .modal-x, .info-modal .modal-back,
  .side-panel .modal-x { border-radius: 999px !important; padding: 0 !important; }
  /* v40, item 5.3: was a per-instance inline style on both pages' "close
     menu" button. .modal-x's own centred inset-inline-start: 50% is for the
     info-modal's cross; this corner variant sits top-end of the side panel
     instead, so it must cancel that centring, not just move it. */
  .side-panel .modal-x {
    position: absolute; top: 10px; inset-inline-end: 14px;
    inset-inline-start: auto; transform: none;
  }
  .signup-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
    margin: 16px 0 8px;
  }
  /* Compact button row -- replaces the tall stacked cards (redesign 20260729) */
  .connect-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
  .connect-grid button {
    flex: 1 1 30%; min-height: 46px; padding: 10px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--card-bg); color: var(--primary); font-weight: 600;
    font-size: 0.88rem; cursor: pointer;
  }
  .signup-option {
    border: 1px solid var(--border); border-radius: 8px; padding: 14px;
    background: var(--card-bg);
  }
  .signup-option h3 { margin: 0 0 4px; font-size: 1rem; color: var(--primary); }
  .signup-option p { margin: 0 0 10px; font-size: 0.9rem; }
  .signup-form { display: flex; gap: 8px; margin-bottom: 8px; }
  .signup-input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 0.95rem; font-family: inherit;
  }
  .signup-btn {
    padding: 10px 16px; background: var(--primary); color: #fff; border: none;
    border-radius: 6px; font-weight: 600; font-size: 0.9rem; cursor: not-allowed; opacity: 0.85;
  }
  .signup-btn.wide { width: 100%; cursor: pointer; opacity: 1; }
  .howto { font-size: 0.8rem; color: #6B6B6B; font-style: italic; margin: 0; }
  .founder-story { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin: 20px 0; }
  /* v39 RHYTHM, section 4: trust and disclaimer text set apart as an indented
     block instead of running on as ordinary body text. .trust-note existed in
     the markup already (the "cannot accept money yet" paragraph) with no rule
     defining it at all -- it was rendering as plain, unstyled body text. */
  .trust-block, .trust-note {
    margin: 1.4em 0; padding: 12px 16px;
    border-inline-start: 3px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-radius: 0 8px 8px 0;
  }
  /* v40, item 5.3: the second trust-block on each page (the "check me, do
     not simply believe me" paragraph) reads smaller and muted -- was
     inline style="" on both pages. */
  .trust-block.trust-block-small { font-size: 0.86rem; color: var(--secondary); }
  .media-slot {
    border: 1px dashed var(--border); border-radius: 8px;
    padding: 24px; text-align: center; font-size: 0.85rem; color: var(--secondary);
    margin: 16px 0;
  }
  .social-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
  .social-pill {
    border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px;
    font-size: 0.85rem; text-decoration: none; color: var(--text); background: var(--card-bg);
  }
  .social-pill.active { border-color: var(--primary); color: var(--primary); font-weight: 600; }
  .social-pill.coming { color: #6B6B6B; }
  .action-bar .social-pill { flex: 1 1 44%; text-align: center; cursor: pointer; }
  /* Owner feedback 20260913: the footer QR is 56px, too small to scan on a
     phone. Rather than enlarge it in the footer (it sits next to the small
     logo mark there, by design), the Share panel now carries a second,
     properly-scannable copy -- roughly 3x, 168px -- alongside the three
     share actions instead of stacked above them. */
  .share-modal-row { display: flex; gap: 16px; align-items: flex-start; }
  .share-modal-list { display: flex; flex-direction: column; gap: 10px; flex: 1 1 50%; min-width: 0; }
  .share-modal-list button {
    text-align: start; background: var(--bg) !important; color: var(--text) !important;
    border: 1px solid var(--border); padding: 12px; border-radius: 6px; font-size: 0.95rem;
  }
  .share-modal-qr {
    flex: 1 1 50%; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px; text-align: center;
  }
  .share-modal-qr img { width: 100%; max-width: 168px; height: auto; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--border); }
  .share-modal-qr span { font-size: 0.72rem; color: var(--secondary); }
  @media (max-width: 380px) {
    .share-modal-row { flex-direction: column; align-items: stretch; }
    .share-modal-qr img { max-width: 140px; margin: 0 auto; }
  }
  footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--secondary); }
  a { color: var(--primary); }

  /* --- Sticky shrinking header (SES-20260727 spec item 2, refined 20260728) --- */
  header.topbar { transition: padding 0.25s ease, box-shadow 0.25s ease; position: sticky; top: 0; z-index: 40; }
  /* v39 RHYTHM, item b: "position: relative" here dropped the header out of
     its own sticky positioning the instant it shrank, so scrolling back up
     did not bring it back until you reached the literal top of the document.
     Sticky must stay sticky in every state. */
  header.topbar.shrunk { padding: 6px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
  header.topbar.shrunk .logo-slot { width: 30px; height: 30px; font-size: 0.5rem; }
  header.topbar.shrunk .header-left > div:last-child { display: none; } /* hides brand text + tagline, leaves only the logo, centered */
  /* v40, owner feedback 20260914: menu moved out of .header-right into its
     own grid column on the left, so the old "pin header-right with
     position: absolute once the logo shrinks" hack (needed when a flex
     home-block collapsing would otherwise drag header-right along with it)
     no longer applies -- the grid's auto/1fr/auto columns keep header-right
     flush right regardless of what the centre column is doing. */
  /* while the menu is open the header mark is pinned top-right, above the panel,
     so the X-to-books animation is fully visible as the panel slides shut */
  /* At the top of the page the pinned icon sits over the WHITE panel, so white books were
     invisible. It now carries the same dark circular backing as the corner control. */
  #bookshelf-btn.open {
    position: fixed; top: 12px; inset-inline-end: 14px; z-index: 96;
    width: 42px; min-width: 42px; height: 42px; border-radius: 999px;
    background: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    align-items: center; justify-content: center;
  }
  /* --- Bookshelf menu icon (spec item 7, simplified 20260728 per the founder's reference image:
       plain outlined rectangles, no cutouts/circles, equal thickness, book3 height between book1 and book2) --- */
  .bookshelf-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: flex-end; gap: 3px; height: 28px; padding: 0;
    position: relative; width: 30px;
  }
  .bookshelf-btn .book { background: #fff; border-radius: 1px; transition: all 0.2s ease; }
  .bookshelf-btn .book1 { width: 6px; height: 20px; transform: rotate(15deg); transform-origin: bottom left; margin-inline-end: 2px; } /* leaning, tallest-ish, tilted against book2 */
  .bookshelf-btn .book2 { width: 6px; height: 26px; } /* upright, tallest */
  .bookshelf-btn .book3 { width: 6px; height: 23px; } /* upright, height between book1 and book2 */
  /* Open state: the three books become an animated X -- the cross / three nails (Matthew 16:24) */
  .bookshelf-btn.open .book {
    position: absolute; top: 50%; inset-inline-start: 50%; margin: 0; border-radius: 2px;
    transform-origin: center center;   /* book1 keeps 'bottom left' otherwise, which threw the X off-centre */
  }
  .bookshelf-btn.open .book1 {
    width: 26px; height: 3px; transform: translate(-50%,-50%) rotate(45deg);
  }
  .bookshelf-btn.open .book2 {
    width: 26px; height: 3px; transform: translate(-50%,-50%) rotate(-45deg);
  }
  /* third book drops to become the underline: X_ */
  .bookshelf-btn.open .book3 {
    width: 26px; height: 3px; transform: translate(-50%, 12px);
  } /* third book folds into the X, echoing the third nail */

  /* --- Side menu panel (opened by bookshelf icon) --- */
  .side-panel-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90;
  }
  .side-panel-overlay.open { display: block; }
  .side-panel {
    position: fixed; top: 0; inset-inline-start: -320px; width: 300px; max-width: 85vw; height: 100%;
    background: var(--card-bg); color: var(--text); z-index: 91;
    transition: inset-inline-start 0.25s ease; padding: 62px 20px 20px; overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }
  .side-panel.open { inset-inline-start: 0; }
  .side-panel h3 { margin: 0 0 10px; color: var(--primary); font-size: 1rem; }

  /* Accordion sections (Language / Cookies / Settings), styled after the reference screenshots 20260728 */
  /* --- Menu rows drawn as books on a shelf (20260729) ---
     Each row gets a coloured spine on the left, a highlight edge on the right for page-block
     thickness, and a small alternating horizontal offset so the stack reads like real books
     rather than a flat list. Offsets stay small so the labels remain aligned and readable. */
  .panel-section, .signin-btn-wrap { border: none; margin: 0 0 9px; }
  .panel-section summary, .signin-btn {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(90deg,
        var(--primary) 0px, var(--primary) 7px,
        rgba(0,0,0,0.10) 7px, rgba(0,0,0,0.10) 9px,
        var(--bg) 9px, var(--bg) calc(100% - 5px),
        rgba(0,0,0,0.13) calc(100% - 5px));
    border-radius: 3px 9px 9px 3px;
    padding: 14px 14px 14px 20px;
    font-weight: 600; color: var(--text);
    box-shadow: 0 2px 3px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  /* --- Two-tone bookshelf: most spines navy (as before), a few gold,
     the way a real shelf has a couple of different-coloured covers.
     3 gold out of 9 rows total, spaced out rather than clustered. --- */
  .spine-gold summary, .signin-btn.spine-gold {
    background: linear-gradient(90deg,
        var(--accent) 0px, var(--accent) 7px,
        rgba(0,0,0,0.10) 7px, rgba(0,0,0,0.10) 9px,
        var(--bg) 9px, var(--bg) calc(100% - 5px),
        rgba(0,0,0,0.13) calc(100% - 5px));
  }
  /* When a section is OPEN, its spine inverts to the opposite colour --
     gold rows turn navy while open, navy rows turn gold while open --
     so the active section always stands out clearly from the rest. */
  .shelf-row.panel-section[open] > summary {
    background: linear-gradient(90deg,
        var(--accent) 0px, var(--accent) 7px,
        rgba(0,0,0,0.10) 7px, rgba(0,0,0,0.10) 9px,
        var(--bg) 9px, var(--bg) calc(100% - 5px),
        rgba(0,0,0,0.13) calc(100% - 5px));
  }
  .spine-gold.shelf-row.panel-section[open] > summary {
    background: linear-gradient(90deg,
        var(--primary) 0px, var(--primary) 7px,
        rgba(0,0,0,0.10) 7px, rgba(0,0,0,0.10) 9px,
        var(--bg) 9px, var(--bg) calc(100% - 5px),
        rgba(0,0,0,0.13) calc(100% - 5px));
  }
  .signin-btn { margin-inline-start: 0; }
  /* --- Bookshelf spine lengths ---------------------------------------
     Every row on the shelf gets its own width and its own small left offset,
     so the right-hand edge is ragged the way a real shelf is. Prayer Request
     is the longest book, Share the shortest, and nothing drops so short that
     it looks broken. Widths are set on the row itself, so the fold-down
     behaviour of every <details> is untouched. */
  /* v40, item 7: excludes .signin-btn. This rule's own specificity (two
     classes) beat .signin-btn's display: flex (one class) from earlier in
     the file, regardless of source order, so every signin-btn shelf-row --
     Home/About/Team/Partners and Search -- was rendering as a block box
     instead of a row. Invisible for the nav links (their text and chevron
     are both inline <span>s, which sit on one line under display: block
     anyway), but the Search row's magnifier is an <svg> with its own
     display: block, which forced a hard line break under the label with
     nothing to countermand it. Restoring the intended flex row fixes both:
     the label and icon share a line, and the icon gets its display: flex
     right-aligned position via the existing justify-content: space-between. */
  .side-panel .shelf-row:not(.signin-btn) { display: block; }
  /* Nested sections keep the plain navy spine -- only top-level books change
     colour when opened, so opening Language no longer turns its child gold. */
  .side-panel .sub-section > summary { background: var(--bg); }
  .side-panel .shelf-row > summary,
  .side-panel button.shelf-row { width: 100%; box-sizing: border-box; }
  .side-panel .bk1 { width: 94%; margin-inline-start: 4px; }
  .side-panel .bk2 { width: 99%; margin-inline-start: 0px; }
  .side-panel .bk3 { width: 91%; margin-inline-start: 7px; }
  .side-panel .bk4 { width: 97%; margin-inline-start: 2px; }
  .side-panel .bk5 { width: 93%; margin-inline-start: 6px; }
  .side-panel .bk6 { width: 90%; margin-inline-start: 3px; }
  .side-panel .bk7 { width: 100%; margin-inline-start: 0px; }
  .side-panel .bk8 { width: 95%; margin-inline-start: 5px; }
  .side-panel .bk9 { width: 88%; margin-inline-start: 8px; }
  .panel-section summary:hover, .signin-btn:hover { transform: translateX(3px); box-shadow: 0 3px 6px rgba(0,0,0,0.22); }
  .panel-section[open] summary { border-radius: 3px 9px 0 0; }
  /* the shelf the books stand on */
  .shelf-board { height: 7px; border-radius: 2px; background: linear-gradient(180deg, var(--secondary), var(--primary)); box-shadow: 0 2px 5px rgba(0,0,0,0.25); margin: 2px 0 18px; }
  .panel-section summary::-webkit-details-marker { display: none; }
  .panel-section > summary .chevron { transition: transform 0.2s ease; display: inline-block; }
  .panel-section[open] > summary .chevron { transform: rotate(180deg); }
  .panel-section .section-body { padding: 10px 2px 4px; }

  .lang-option-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
    border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 0.95rem;
  }
  .lang-option-row.active { border-color: var(--primary); background: rgba(45,50,80,0.06); }
  .lang-flag { font-size: 1.3rem; line-height: 1; }
  .lang-option-row .lang-name { flex: 1; }
  .lang-option-row .lang-check { color: #2A7049; font-weight: 700; }
  .lang-option-row .lang-progress { font-size: 0.75rem; color: var(--secondary); font-style: italic; }
  .lang-option-row[aria-disabled="true"] { opacity: 0.6; cursor: default; }

  .cookie-row { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; margin: 4px 0 10px; }

  /* Panel close: the same books-to-X mark, circular, top-right of the menu */
  /* Same X-with-underline mark as the menu, static (no animation), used by every pop-up */
  .x-mark { position: relative; display: block; width: 24px; height: 24px; }
  .x-mark .xbar { position: absolute; top: 50%; inset-inline-start: 50%; background: #fff; border-radius: 2px; height: 3px; width: 22px; }
  .x-mark .xbar1 { transform: translate(-50%,-50%) rotate(45deg); }
  .x-mark .xbar2 { transform: translate(-50%,-50%) rotate(-45deg); }
  .x-mark .xbar3 { transform: translate(-50%, 9px); }

  /* Back control: same circle, three bars with the middle one arrowed left */
  .modal-back {
    position: absolute; top: 10px; inset-inline-start: 50%; transform: translateX(calc(-50% - 52px));
    width: 40px; min-width: 40px; height: 40px; border-radius: 999px; padding: 0;
    min-height: 40px; flex: 0 0 40px; overflow: hidden;
    aspect-ratio: 1 / 1; box-sizing: border-box;
    background: var(--secondary); color: #fff; border: none; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 2;
  }
  /* v40, item 5.3: hidden by default (was an inline style="display:none" on
     both pages). app.js's modalBack()/showConnect() etc. set .style.display
     to "flex" directly when a modal has a back target, which still wins
     over this default exactly as it won over the inline attribute before. */
  .back-mark { position: relative; display: block; width: 24px; height: 24px; }
  .back-mark .bbar { position: absolute; inset-inline-start: 50%; background: currentColor; border-radius: 2px; height: 3px; width: 18px; }
  /* Reused on the scroll-nav bubbles: same arrow mark, rotated to point up/down instead of left. */
  .nav-arrow-up { transform: rotate(90deg); }
  .nav-arrow-down { transform: rotate(-90deg); }
  .back-mark .bbar1 { top: 6px;  transform: translateX(-50%) rotate(-38deg) translateX(-4px); width: 12px; }
  .back-mark .bbar2 { top: 50%;  transform: translate(-50%,-50%); }
  .back-mark .bbar3 { top: 15px; transform: translateX(-50%) rotate(38deg) translateX(-4px); width: 12px; }

  /* Theme choice as three explicit options rather than a hidden toggle */
  .opt-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
  /* Owner feedback 20260914: inline consent prompt, shown only when a
     theme choice was just made without Functional storage already on. */
  .theme-persist-note {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 0.8rem; color: var(--secondary);
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 10px; margin: 0 0 14px;
  }
  .theme-persist-note button {
    font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--primary); background: var(--card-bg, #fff); color: var(--primary);
    cursor: pointer;
  }
  /* Font-style row specifically: 4 buttons, forced into an even 2x2 grid,
     all the same size (rather than flex-wrap, which could leave the last
     button sitting alone at a different width). */
  #font-style-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #font-style-row button { width: 100%; }

  /* v40, item 5.3 continued: settings-panel text, identical on both pages,
     previously inline style="" on every line. Named for what they are
     (label/note/intro), not their pixel values, so a future rewrite of one
     doesn't silently drift from the others sharing a class. */
  .settings-intro { font-size: 0.85rem; margin-top: 0; }
  .settings-subnote { font-size: 0.82rem; margin: 8px 0 0; }
  .settings-note { font-size: 0.78rem; color: var(--secondary); margin: 2px 0 14px; }
  .settings-note-top { font-size: 0.78rem; color: var(--secondary); margin: 10px 0 0; }
  .settings-note-tight { font-size: 0.78rem; color: var(--secondary); margin: 6px 0 0; }
  .settings-theme-note { font-size: 0.8rem; color: var(--secondary); margin: 6px 0 14px; }
  .settings-label { font-size: 0.9rem; display: block; margin: 0 0 4px; }
  .settings-label-spaced { font-size: 0.9rem; display: block; margin: 16px 0 4px; }
  .settings-label-tight { font-size: 0.9rem; display: block; margin-bottom: 6px; }
  .fontsize-a-small { font-size: 0.8rem; }
  .fontsize-a-large { font-size: 1.4rem; }
  .signup-btn.enabled { cursor: pointer; opacity: 1; }
  .read-aloud-btn { width: 100%; min-height: 44px; }
  .opt-row button {
    flex: 1 1 30%; min-height: 44px; padding: 9px 6px;
    border: 1px solid var(--border); border-radius: 9px;
    background: var(--bg); color: var(--text); cursor: pointer; font-size: 0.84rem;
  }
  .opt-row button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* Reading-comfort palette: warm off-white, easier for dyslexic readers than pure white */
  body.reading-comfort {
    --bg: #FBF6EC; --card-bg: #FFFDF7; --text: #2B2B28; --border: #E2D9C6;
  }
  /* v34: warm paper is a layer, not a third theme. On the night theme it warms
     the darks instead of forcing them light, which is what it did before and
     which made the setting look broken. */
  body.force-dark.reading-comfort {
    --bg: #201C17; --card-bg: #2A251E; --text: #F0E7D8; --border: #453D31;
  }
  body.font-dyslexia, body.font-dyslexia * {
    font-family: Verdana, Tahoma, "Trebuchet MS", sans-serif !important;
    letter-spacing: 0.045em; word-spacing: 0.12em; line-height: 1.85;
  }
  body.font-system, body.font-system * { font-family: system-ui, -apple-system, "Roboto", sans-serif !important; }
  body.font-serif, body.font-serif * { font-family: Georgia, "Times New Roman", "Noto Serif", serif !important; }

  .lang-search {
    width: 100%; padding: 10px 12px; margin-bottom: 10px;
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 0.9rem; font-family: inherit; background: var(--bg); color: var(--text);
  }
  .sub-section { margin-top: 4px; }
  .sub-section > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border: 1px solid var(--secondary); border-radius: 12px;
    background: rgba(90,76,140,0.10);
    font-size: 0.88rem; color: var(--secondary); font-weight: 600;
    min-height: 44px; box-sizing: border-box; width: 100%;
  }
  .sub-section[open] > summary { background: rgba(90,76,140,0.18); }
  .sub-section .lang-option-row { background: rgba(90,76,140,0.05); border-style: dashed; }
  .sub-section summary::-webkit-details-marker { display: none; }
  .sub-section > summary .chevron { transition: transform 0.2s ease; display: inline-block; }
  .sub-section[open] > summary .chevron { transform: rotate(180deg); }
  /* the live language reads differently from the pending ones */
  #lang-list .lang-option-row.active {
    border-color: var(--primary); background: rgba(45,50,80,0.10); font-weight: 600;
  }
  .sub-section .lang-option-row { margin-top: 8px; }
  .lang-none { font-size: 0.82rem; color: var(--secondary); font-style: italic; display: none; }

  .fontsize-row { display: flex; align-items: center; gap: 10px; }
  .fontsize-row input[type="range"] { flex: 1; accent-color: var(--primary); height: 28px; }
  .fontsize-readout-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 6px; font-size: 0.85rem; color: var(--secondary);
  }
  .fontsize-reset {
    border: 1px solid var(--border); background: var(--card-bg); color: var(--primary);
    border-radius: 14px; padding: 5px 14px; font-size: 0.8rem; cursor: pointer;
  }

  .settings-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; }
  .settings-row .mode-toggle { position: relative; width: 56px; height: 28px; background: var(--border); border: 1px solid var(--secondary); border-radius: 999px; cursor: pointer; padding: 0; flex-shrink: 0; }


  /* All side-menu buttons the same size (20260729) */
  .panel-section summary, .signin-btn {
    min-height: 52px; width: 100%; max-width: 100%;
    box-sizing: border-box; gap: 14px;
  }
  .signin-btn { border: none; font-size: 1rem; text-align: start; margin: 0 0 9px 0; }

  /* Back Us modal (20260729) */
  .backus-modal { max-width: 380px; }
  .backus-modal h3 { margin: 0 0 4px; color: var(--primary); font-size: 1.1rem; }
  .backus-modal .backer-count { font-size: 0.85rem; color: var(--secondary); margin: 0 0 14px; }
  .freq-row { display: flex; gap: 8px; margin-bottom: 14px; }
  .freq-row button {
    flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); cursor: pointer; font-size: 0.9rem;
  }
  .freq-row button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
  .amount-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .amount-row button {
    flex: 1 1 28%; padding: 12px 4px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); cursor: pointer; font-weight: 600;
  }
  .amount-row button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
  .custom-amount {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 1rem; font-family: inherit; margin-bottom: 12px;
  }
  .custom-amount::placeholder { color: #6B6B6B; }
  textarea.custom-amount { resize: vertical; font-family: inherit; }
  .pay-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .pay-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pay-methods button {
    padding: 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--card-bg); color: var(--text); cursor: pointer; text-align: start; font-size: 0.95rem;
  }

  /* --- Side scroll nav bubbles (spec item 3, moved to LEFT side + hide/unhide fixed 20260728) --- */
  /* v39 RHYTHM, item c: bottom raised from 90px to 150px to clear the motion
     button, which now sits on the same line as the Back Mission Faith pillar
     button (both at bottom: 96px) instead of stacking underneath this bubble
     stack. nav-handle below is recentred on the new span. */
  /* SUPERSEDED 261015 (A44 step 5f): the scroll bubbles (.scroll-nav) replaced by the design handoff's .hm-arrows; its markup is gone from every page, so these rules match nothing. Kept, not deleted. */
  .scroll-nav { position: fixed; inset-inline-start: 14px; bottom: 150px; z-index: 50; display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s ease; }
  .scroll-nav.tucked { transform: translateX(-64px); }
  .scroll-nav button {
    width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--card-bg); color: var(--primary); font-size: 1.7rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0;
  }
  /* Persistent handle: stays visible at the edge even when the bubbles are tucked away, so they can always be brought back */
  /* SUPERSEDED 261015 (A44 step 5f): the « handle (.nav-handle) replaced by the design handoff's « edge tab (.hm-edge-tab); its markup is gone from every page, so these rules match nothing. Kept, not deleted. */
  .nav-handle {
    position: fixed; inset-inline-start: 0; bottom: 189px; z-index: 51;   /* exact centre of the two arrow bubbles */
    width: 22px; height: 40px; border: none; border-radius: 0 20px 20px 0;
    background: var(--primary); color: #fff; font-size: 0.8rem; cursor: pointer;
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center; padding: 0;
  }

  /* --- Team / Partners section (spec item 12) --- */
  .team-buttons { display: flex; gap: 12px; margin: 20px 0; }
  .team-buttons button {
    flex: 1; padding: 12px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--card-bg); color: var(--primary); font-weight: 700; cursor: pointer; font-size: 0.95rem;
  }
  .team-buttons button.active { background: var(--primary); color: #fff; }
  .team-panel { display: none; }
  .team-panel.open { display: block; }
  .person-bubble { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; background: var(--card-bg); }
  /* v41, item 1: was h4 with no font-size of its own (browser default 1em).
     Promoted to h3 for a valid outline (these cards now sit under a real h2
     -- "Meet the Team" / "Back This Mission"); font-size pinned at the old
     1em so the level change doesn't also change how it looks. */
  .person-bubble h3 { margin: 0 0 4px; color: var(--primary); font-size: 1em; }
  .person-bubble p { margin: 0; font-size: 0.9rem; }

  /* Alternating photo layout -- every second entry mirrors, so the column isn't one flat stack */
  .person-bubble { display: flex; gap: 14px; align-items: flex-start; }
  .person-bubble:nth-child(even) { flex-direction: row-reverse; text-align: end; }
  .person-photo {
    width: 62px; height: 62px; flex-shrink: 0; border-radius: 8px;
    border: 1px dashed var(--border); background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; color: var(--secondary); text-align: center; line-height: 1.2;
  }
  .person-photo.logo-slot-org { border-radius: 8px; }
  /* v40, item 5.3: index.html's Haymonutho.x team card has no real photo,
     so it carries the inline SVG mark instead of an <img> -- needs its own
     colour/padding/border-style override on top of .person-photo's dashed
     placeholder look. Was inline style="". */
  .person-photo.logo-slot-svg { color: var(--primary); padding: 8px; border-style: solid; }
  /* Real photographs: fill the slot, crop rather than squash, keep the round frame. */
  img.person-photo { object-fit: cover; display: block; }
  img.person-photo.logo-slot-org { object-fit: contain; background: #fff; }
  .person-body { flex: 1; }
  .person-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .person-bubble:nth-child(even) .person-links { justify-content: flex-end; }
  .person-links a, .person-links button {
    font-size: 0.78rem; padding: 5px 12px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--card-bg); color: var(--primary);
    text-decoration: none; cursor: pointer;
  }
  /* v40, item 5.3: the two God's Way Cyprus links sit as a plain inline
     link inside person-body text, not inside .person-links, so they need
     their own pill styling rather than reusing the rule above -- was
     inline style="" (identical on both occurrences) in about.html. */
  .partner-link-pill {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 7px 15px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--card-bg); color: var(--primary);
    font-weight: 600; font-size: 0.85rem; text-decoration: none;
  }

  /* v42 TOOLS: personal-support disclosure panel (Options modal on the
     "Žiga Grohar (personal)" bubble). Deliberately not gold and not
     .info-modal's usual button fill -- this is not a giving flow, and the
     design brief says so must not look like one: dashed edge, no fill. */
  .personal-options-box {
    border: 1px dashed var(--secondary); border-radius: 8px; padding: 16px; margin-top: 4px;
  }
  .personal-options-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--secondary); margin: 0 0 8px;
  }
  .personal-options-note {
    font-size: 0.9rem; line-height: 1.55; color: var(--text); max-width: 65ch; margin: 0;
  }
  .personal-options-item {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  }
  .personal-options-item-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--secondary); margin: 0 0 4px;
  }
  .personal-options-item-note {
    font-size: 0.85rem; line-height: 1.5; color: var(--text); margin: 0 0 8px;
  }

  /* --- Footer personal section (spec item 4) --- */
  /* v39 RHYTHM, item f: two columns on a phone instead of one long stack, so
     the footer stops stretching the page. Three or four column-groups wrap
     into pairs; a lone last group simply sits alone in the final row rather
     than spanning both, which costs nothing visually. Side-by-side single row
     from 720px, unchanged. */
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 18px; }
  /* No flex `gap` here: the pills already carry their own margin-right (see
     ITEM 8 and JOB 6 below), and a gap on top of that margin was just wide
     enough to push the two-per-row width: calc(50% - 6px) pills into wrap. */
  .footer-col { border-top: 1px solid var(--border); padding: 12px 0 4px; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; min-width: 0; }
  /* v41, item 2: was h5 (skipped h2-h4 from whatever preceded it in main).
     Footer is its own landmark, so it resets to h2 rather than nesting
     deeper -- not a skip, since going shallower never is. Same declarations,
     just retagged. */
  .footer-col h2 { width: 100%; margin: 0 0 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); }
  .footer-line { margin: 0; font-size: 0.85rem; width: 100%; }
  @media (min-width: 720px) {
    .footer-cols { flex-direction: row; align-items: flex-start; gap: 24px; }
    .footer-col { flex: 1; border-top: none; border-inline-start: 1px solid var(--border); padding: 4px 0 4px 16px; flex-direction: column; align-items: flex-start; }
    .footer-col:first-child { border-inline-start: none; padding-inline-start: 0; }
  }
  /* ---------- Loading screen ---------- */
  #preloader {
    position: fixed; inset: 0; z-index: 200; background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 22px; transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  #preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
  /* A45 A6 (261018): from another page of the site, no opening animation at all (not even the fade). */
  .hx-skip-intro #preloader { display: none; }
  #preloader .logo-slot { width: 132px; height: 132px; color: var(--primary); }
  /* The loader plays the mark ONCE and fast: the two uprights slide through each
     other and land as the cross. It holds there, then the page fades in behind it. */
  #preloader .hx-logo .hx-left {
    animation: hxLeftOnce 1.15s cubic-bezier(0.618,0,0.382,1) 0.15s forwards;
  }
  #preloader .hx-logo .hx-right {
    animation: hxRightOnce 1.15s cubic-bezier(0.618,0,0.382,1) 0.15s forwards;
  }
  @keyframes hxLeftOnce  { from { transform: translateX(0px); } to { transform: translateX(474.87px); } }
  @keyframes hxRightOnce { from { transform: translateX(0px); } to { transform: translateX(-474.87px); } }
  @media (prefers-reduced-motion: reduce) {
    #preloader .hx-logo .hx-left  { animation: none; transform: translateX(474.87px); }
    #preloader .hx-logo .hx-right { animation: none; transform: translateX(-474.87px); }
  }
  #preload-type {
    font-family: "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    font-size: 1.05rem; color: var(--primary); min-height: 1.6em; text-align: center; padding: 0 20px;
  }
  /* terminal caret, used by the loader and by both looping lines */
  /* A thin line, not a filled block -- the block read as a flashing empty letter space. */
  .caret {
    display: inline-block; width: 2px; height: 1.05em; vertical-align: -0.16em;
    background: currentColor; margin-inline-start: 3px; animation: blink 1.06s steps(1) infinite;
  }
  @keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

  /* ---------- Floating logo that follows the scroll ---------- */
  #float-logo {
    position: fixed; z-index: 55; width: 40px; height: 40px; border-radius: 8px;
    background: var(--card-bg); color: var(--primary); padding: 4px;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: top 0.3s ease, bottom 0.3s ease, inset-inline-start 0.3s ease, opacity 0.3s ease;
  }
  #float-logo.at-top    { display: flex; top: 8px; inset-inline-start: 50%; margin-inline-start: -20px; bottom: auto; opacity: 1; }
  /* v34: the logo no longer travels. It stays in the header and the footer
     carries its own static copy, which leaves the bottom-left corner free. */
  #float-logo.at-bottom { display: flex; top: 8px; inset-inline-start: 50%; margin-inline-start: -20px; bottom: auto; opacity: 1; }

  /* ---------- Status ticker ----------
     Honest, unhurried news-crawl telling visitors what stage the PAGE itself is in.
     Not a sales countdown -- a build-status strip. Pre-launch only; can be removed
     once the site is out of Alpha/Beta. */
  #status-ticker {
    position: fixed; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 95;
    background: var(--primary); color: #fff; border-bottom: 2px solid var(--accent);
    overflow: hidden; white-space: nowrap; height: 30px; display: flex; align-items: center;
    font-size: 0.82rem; letter-spacing: 0.01em;
  }
  /* v40, owner feedback 20260914: both this and the bottom bar are fixed to
     bottom: 0, and this sits at a higher z-index, so it was rendering on
     top of (covering) the bottom 30px of the 58px bar -- the bar's own
     button labels were hidden underneath the ticker whenever both were
     visible together. Lifted clear above the bar by exactly the bar's
     height, same mechanism already used elsewhere in this file for other
     floating elements against --bottombar-h. */
  body.has-bottombar #status-ticker {
    transform: translateY(calc(-1 * (var(--bottombar-h) + env(safe-area-inset-bottom, 0px))));
    transition: transform .26s cubic-bezier(0.618, 0, 0.382, 1);
  }
  #status-ticker .ticker-track {
    display: inline-block; padding-left: 100%;
    animation: tickerScroll 45s linear infinite;
  }
  #status-ticker .ticker-track span { color: var(--accent); font-weight: 700; margin: 0 0.35em; }
  @keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
  @media (prefers-reduced-motion: reduce) {
    #status-ticker .ticker-track { animation: none; padding-left: 1rem; }
  }
  body { padding-bottom: 30px; }

  /* ---------- Breathing action pill ----------
     A draggable call to action. Breathes in and out rather than flashing, because a
     hard blink is hostile on a page people are meant to read. Drag it anywhere; let
     go and it snaps to the nearest side, the way a floating control does on Android.
     The minus collapses it to a circle carrying a plus, and it keeps breathing while
     collapsed so it is never lost. Colours: gold, page navy, white. */
  /* SUPERSEDED 261015 (A44 step 5f): the Back Mission Faith pill with its + (#action-pill) replaced by the design handoff's Back MF8 pill (.hm-pill); its markup is gone from every page, so these rules match nothing. Kept, not deleted. */
  #action-pill {
    position: fixed; z-index: 90; inset-inline-end: 14px; bottom: 96px;
    display: flex; align-items: center; gap: 8px;
    padding: 11px 8px 11px 18px;
    background: var(--primary); color: #fff;
    border: 2px solid var(--accent); border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    cursor: grab; user-select: none; touch-action: none;
    animation: pillBreath 4.2s ease-in-out infinite;
    transition: border-radius 0.25s ease, padding 0.25s ease;
  }
  #action-pill.dragging { cursor: grabbing; animation: none; transition: none; }
  #action-pill .pill-label {
    font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; white-space: nowrap;
  }
  #action-pill .pill-label .pill-gold { color: var(--accent); }
  #action-pill .pill-toggle {
    width: 26px; height: 26px; flex: 0 0 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: none; cursor: pointer;
    /* --on-accent, NOT --primary. Gold is identical in both themes, so its
       foreground must be too. --primary here measured 1.25:1 in dark mode,
       which is why the minus/plus glyph disappeared. */
    background: var(--accent); color: var(--on-accent);
    font-size: 1.15rem; font-weight: 700; line-height: 1; padding: 0;
  }
  #action-pill .pill-main {
    background: none; border: none; color: inherit; font: inherit;
    cursor: pointer; padding: 0; display: flex; align-items: center;
  }
  /* Collapsed: a circle carrying a plus. Still breathing. */
  #action-pill.mini { padding: 6px; gap: 0; }
  #action-pill.mini .pill-label, #action-pill.mini .pill-main { display: none; }
  #action-pill.mini .pill-toggle { width: 34px; height: 34px; flex: 0 0 34px; font-size: 1.35rem; }

  @keyframes pillBreath {
    0%, 100% { transform: scale(1);    box-shadow: 0 4px 14px rgba(0,0,0,0.20), 0 0 0 0 rgba(212,175,55,0.55); }
    50%      { transform: scale(1.05); box-shadow: 0 6px 22px rgba(0,0,0,0.26), 0 0 0 10px rgba(212,175,55,0); }
  }
  @media (prefers-reduced-motion: reduce) { #action-pill { animation: none; } }

  /* ---------- Search ---------- */
  /* v39 RHYTHM: STORY, one word, matching the bottom bar's STORY destination.
     Logical properties per item 6.8 -- new CSS only, nothing existing touched. */
  .header-story-link {
    color: #fff; text-decoration: none; font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.04em; padding-inline: 4px; opacity: 0.92;
  }
  .header-story-link:hover, .header-story-link:focus-visible { opacity: 1; text-decoration: underline; }
  header.topbar.shrunk .header-story-link { display: none; } /* shrunk header keeps only the logo and menu, per item b */
  /* Owner feedback 20260914: header search icon/field removed on every
     screen size (.search-wrap, .search-toggle, .search-field are gone with
     it). .search-mark stays -- the side menu's own Search row still uses
     it, sized via .signin-btn .search-mark below. */
  .search-mark {
    width: 21px; height: 21px; display: block;
    fill: none; stroke: currentColor; stroke-width: 2.1;
    stroke-linecap: round;
  }
  .signin-btn .search-mark { width: 19px; height: 19px; color: var(--primary); }
  .term-input:focus { caret-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 1px; }

  .footer-personal { margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .footer-personal p { margin: 0 0 10px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Glossary (v33) -------------------------------------------------------
   Terms in the body text get a dotted gold underline, never a blue link, so
   they do not compete with real navigation. Tap opens a small panel. The full
   list below stays readable with JavaScript switched off. */
.gt { border-bottom: 1px dotted var(--gold); cursor: help; background: none;
      border-top: 0; border-inline-start: 0; border-inline-end: 0; padding: 0; font: inherit;
      color: inherit; }
.gt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#glossary-pop { position: fixed; inset-inline-start: 50%; transform: translateX(-50%);
      bottom: 16px; max-width: 420px; width: calc(100% - 28px); z-index: 200;
      background: #fff; border: 1px solid var(--border); border-radius: 12px;
      padding: 14px 16px; box-shadow: 0 8px 28px rgba(0,0,0,0.18); display: none; }
#glossary-pop.open { display: block; }
#glossary-pop h4 { margin: 0 0 6px; font-size: 1rem; color: var(--primary); }
#glossary-pop p { margin: 0 0 10px; font-size: 0.92rem; }
#glossary-pop .gp-links { display: flex; gap: 10px; flex-wrap: wrap; }
.glossary-list { margin: 16px 0 0; }
.glossary-list dt { font-weight: 700; color: var(--primary); margin-top: 14px; }
.glossary-list dd { margin: 4px 0 0; }

/* --- v34 --------------------------------------------------------------- */
/* v40, golden ratio: the only text+image split common to both pages. Text
   takes the major column (0.618), the logo/QR mark the minor (0.382). Both
   marks keep their own fixed 56px size (set below), so the ratio governs
   how the row's width is divided, not the rendered size of the icons. */
.footer-identity { display: grid; grid-template-columns: 1fr calc(var(--ratio-minor) * 100%);
  align-items: center; gap: 18px; }
.footer-identity-text { min-width: 0; }
.footer-logo { width: 56px; height: 56px; color: var(--primary);
  display: flex; align-items: center; justify-content: center; }
.footer-logo .hx-logo { width: 100%; height: 100%; }
.footer-marks { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.footer-domains { margin-top: 18px; font-size: 0.84rem; line-height: 1.6;
  color: var(--text); border-top: 1px solid var(--border); padding-top: 14px; }
/* v40, item 5.3: the "we will never ask for money" line, bolded for
   emphasis -- was inline style="" on both pages. */
.footer-domains.footer-domains-strong { font-weight: 600; }
.footer-meta { margin-top: 6px; font-size: 0.8rem; color: #6B6B6B; }

/* Legal and Follow columns mix <a> and <button>. Without this they render at
   different weights and widths, which is what looked wrong. */
.footer-col a.social-pill, .footer-col button.social-pill {
  display: block; width: 100%; box-sizing: border-box; text-align: start;
  font: inherit; font-size: 0.84rem; font-weight: 600; min-height: 40px;
  text-decoration: none;
}

.side-pages { display: flex; gap: 8px; margin: 0 0 12px; }
.side-page-link { flex: 1 1 0; text-align: center; padding: 11px 8px;
  border: 1px solid var(--primary); border-radius: 10px; color: var(--primary);
  text-decoration: none; font-size: 0.86rem; font-weight: 600; min-height: 44px;
  display: flex; align-items: center; justify-content: center; }
.side-page-link:hover, .side-page-link:focus-visible { background: var(--primary); color: #fff; }

#home-link { position: fixed; top: 10px; inset-inline-start: 14px; z-index: 90;
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
  text-decoration: none; padding: 6px 10px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--border); }
#home-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Glossary back-links: a term can be found from the text and the text can be
   found from the term. Like a concordance. */
.g-refs { margin: 6px 0 0; font-size: 0.82rem; color: var(--secondary); }
.g-refs a { color: var(--secondary); }

/* ===================== END styles.css ===================== */

/* ==================== BEGIN v35.css ==================== */
/* =========================================================================
   v35.css  --  HAYMONUTHO  --  v35 TRUTH RELEASE
   build 20260805.35.0   public 0.0.35   updated 2026-08-05

   Loaded AFTER styles.css. Adds only what v35 introduces.
   Nothing here overrides the colour system. If a token is missing this
   file falls back to a literal value rather than breaking.

   CONTENTS
     1. Share strip
     2. QR size switching
     3. Motion control, play and pause
     4. Ticker, static on desktop, moving on mobile
     5. Alpha notice
     6. Reduced motion
   ========================================================================= */

/* ---------- 1. SHARE STRIP ---------------------------------------------- */

.share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px auto;
  padding: 16px 18px;
  max-width: 640px;
  border: 1px solid var(--border, #d8d8d8);
  border-radius: 10px;
  background: var(--surface, #fbfbfb);
}

.share-strip__text {
  flex: 1 1 auto;
  min-width: 0;
}

.share-strip__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary, #666);
  margin-bottom: 4px;
}

.share-strip__url {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.35;
}

.share-strip__note {
  display: block;
  font-size: 0.8rem;
  color: var(--secondary, #666);
  margin-top: 6px;
}

.share-strip__qr {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  display: block;
}

.share-strip__qr img,
.share-strip__qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- 2. QR SIZE SWITCHING ----------------------------------------
   Two assets, one shown at a time, chosen by CSS only. No JavaScript, so
   it works with scripts disabled.
     above 200px   logo version
     120 to 200px  plain version, logo would block too much of the code
     below 120px   no QR at all, the address in text is more reliable
   ------------------------------------------------------------------------ */

.qr--logo  { display: block; }
.qr--plain { display: none; }

@media (max-width: 560px) {
  .share-strip { flex-direction: column; align-items: flex-start; }
  .share-strip__qr { width: 160px; height: 160px; align-self: center; }
}

@media (max-width: 420px) {
  .share-strip__qr { width: 140px; height: 140px; }
  .qr--logo  { display: none; }
  .qr--plain { display: block; }
}

@media (max-width: 320px) {
  .share-strip__qr { display: none; }
  .share-strip__note::after {
    content: " Screen too small for a scannable code, so the address is shown instead.";
  }
}

/* ---------- 3. MOTION CONTROL -------------------------------------------
   Sits in the bottom left slot. The floating logo occupies that slot while
   scrolling. When the footer logo comes into view the floating logo hides
   and this control takes its place.
   ------------------------------------------------------------------------ */

.motion-toggle {
  position: fixed;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border, #d8d8d8);
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

/* 44px is the minimum reliable touch target. Do not shrink it. */

.motion-toggle:focus-visible {
  outline: 3px solid var(--accent, #0a7d7d);
  outline-offset: 2px;
}

body.footer-logo-visible .motion-toggle { display: flex; }
body.footer-logo-visible #float-logo    { opacity: 0; pointer-events: none; }

#float-logo { transition: opacity 0.25s ease; }

/* ---------- 4. TICKER ----------------------------------------------------
   The ticker scrolls at every width (v42.1, owner decision 260928: the static
   desktop version is removed). The scroll itself is defined with the ticker
   above; Pause motion and reduced motion (rules below) still stop it.
   ------------------------------------------------------------------------ */

body.motion-paused .ticker-track {
  animation-play-state: paused !important;
}

/* ---------- 5. ALPHA NOTICE ---------------------------------------------- */

.alpha-notice {
  display: block;
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--secondary, #666);
  border-top: 1px solid var(--border, #e2e2e2);
  padding-top: 12px;
  margin-top: 18px;
}

.alpha-notice strong { letter-spacing: 0.06em; }

/* ---------- 6. REDUCED MOTION -------------------------------------------
   If the device asks for less motion, everything starts still. Same
   principle as light mode being the default: the page never overrides
   what the reader has already chosen.
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
    transform: none !important;
    white-space: normal;
    text-align: center;
  }
  #float-logo { transition: none; }
}

/* ===================== END v35.css ===================== */

/* ==================== BEGIN v36.css ==================== */
/* ============================================================================
   v36.css   --   STRUCTURE
   Version: 20260813.36.0
   Loads AFTER styles.css and v35.css. Additive only. Nothing in the earlier
   files is edited, so nothing in them can be broken by this file.
   ========================================================================= */


/* ---------------------------------------------------------------- ITEM 1
   The whole identity block is one Home link. It must not look like a link,
   because it is the masthead, but it must behave like one. */

.home-block {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 2px 4px;
  transition: background-color .18s ease;
}
.home-block:hover,
.home-block:focus-visible {
  background: color-mix(in srgb, currentColor 8%, transparent);
  text-decoration: none;
}
.home-block:focus-visible {
  outline: 3px solid var(--accent, #c8a44a);
  outline-offset: 2px;
}
.home-block .brand-mark { text-decoration: none; }

.brand-bless {
  font-size: 0.62rem;
  font-style: italic;
  opacity: 0.8;
}


/* ---------------------------------------------------------------- ITEM 11
   SUPERSEDED at v39 RHYTHM, item b -- kept here with a pointer rather than
   deleted, per the standing rule that nothing is removed outright.

   Original v36 reasoning: "The header no longer floats. The side panel
   carries Home, About, Team and Partners, and the bookshelf button relocates
   to a corner on scroll, so a sticky header was buying nothing and costing
   vertical space on a phone." That set position: static here, which -- since
   this selector has the same specificity as, and loads after, the
   `position: sticky` declared above for header.topbar -- silently overrode
   it. The practical effect named in the v39 brief: scrolling back up did not
   bring the header back at all, only reaching it by returning to the literal
   top of the document. v39 restores sticky: the header, and the left-side
   floating controls that were effectively orphaned along with it, now stay
   reachable while scrolling up. */

header.topbar {
  position: sticky;
  top: 0;
}


/* ---------------------------------------------------------------- ITEM 2
   One button became two. Side by side on a wide screen, stacked on a phone,
   with the left one first in both cases. */

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.cta-pair .cta-pill {
  margin: 0;
}
@media (max-width: 480px) {
  .cta-pair { flex-direction: column; }
  .cta-pair .cta-pill { width: 100%; text-align: center; }
}


/* ---------------------------------------------------------------- ITEM 7
   Page links join the shelf. They are anchors rather than buttons, so they
   need the flex layout the .signin-btn buttons get for free. */

.side-pages {
  display: block;
  margin: 0;
  padding: 0;
}
a.side-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
a.side-page-link:hover,
a.side-page-link:focus-visible {
  text-decoration: none;
}

/* Chevrons in the accordion summaries are gold, matching the shelf. */
.panel-section > summary .chevron,
.sub-section > summary .chevron {
  color: var(--accent, #c8a44a);
}


/* ---------------------------------------------------------------- ITEM 8
   Footer pills were oversized. Halved, and three now fit on one line.
   Overflow wraps under the leftmost pill rather than centring.

   v39 RHYTHM, items f/6.1/6.2: this set flex-direction: column, which put
   every pill on its own row regardless of the width: calc(50% - 6px) rule
   below asking for two per row -- column direction wraps into new COLUMNS,
   not rows, so "wrap" never had anything to do here. Harmless while every
   footer-col ran full-width in a single stacked column; visible as soon as
   the footer itself went two-up and each footer-col got narrower. Row +
   wrap is what the width rule below was already written for. */

.footer-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-col .social-pill {
  font-size: 0.78rem;
  padding: 5px 11px;
  min-height: 32px;
  line-height: 1.2;
  margin: 0 6px 6px 0;
}
.footer-col > h2 + .social-pill,
.footer-col > .social-pill {
  align-self: flex-start;
}

@media (min-width: 700px) {
  .footer-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .footer-col h2 {
    flex: 0 0 100%;
    margin-bottom: 6px;
  }
}

/* Touch target: the visual pill is smaller, so restore 44px of hit area
   without making the pill look big again. WCAG 2.2 target size. */
.footer-col .social-pill {
  position: relative;
}
.footer-col .social-pill::after {
  content: "";
  position: absolute;
  inset: -6px;
}


/* ---------------------------------------------------------------- ITEM 9
   Footer identity block moved after Legal in the markup. The floating logo was
   removed entirely at v36: the bottom bar below does its job better, and the
   mark now appears exactly once on the page, at the true bottom. */

.footer-identity {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 18px;
}
@media (max-width: 480px) {
  .footer-identity { grid-template-columns: 1fr; }
  .footer-marks { justify-content: flex-start; }
}


/* ---------------------------------------------------------------- BOTTOM BAR
   A page read on a phone is read with thumbs, and thumbs reach the bottom.
   Appears once the header has scrolled out of view, set by v36.js.

   Height is published as a custom property so every other floating element can
   lift by exactly the right amount instead of guessing.

   env(safe-area-inset-bottom) keeps it clear of the iPhone home indicator. On
   every other device that value is zero, so it costs nothing. */

:root {
  --bottombar-h: 58px;
  --ratio-minor: 0.382;
  --ratio-major: 0.618;
}

/* SUPERSEDED 261015 (A44 step 5e): the bottom bar with four divided links (.bottom-bar, .bb-item dividers) replaced by the design handoff's Menu + section switch (.hm-bottombar, .hm-seg); its markup is gone from every page, so these rules match nothing. Kept, not deleted. */
.bottom-bar {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 70;

  display: flex;
  align-items: stretch;

  min-height: var(--bottombar-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  background: var(--bg, #fff);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.10);

  transform: translateY(105%);
  transition: transform .26s cubic-bezier(0.618, 0, 0.382, 1);
}
.bottom-bar.is-visible {
  transform: translateY(0);
}

.bb-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  min-height: var(--bottombar-h);
  padding: 6px 4px;

  text-decoration: none;
  color: var(--primary, #14213d);
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.01em;

  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .16s ease;
}
.bb-item + .bb-item {
  border-inline-start: 1px solid var(--border);
}
.bb-item:hover,
.bb-item:focus-visible {
  background: color-mix(in srgb, currentColor 8%, transparent);
  text-decoration: none;
}
.bb-item:focus-visible {
  outline: 3px solid var(--accent, #c8a44a);
  outline-offset: -3px;
}
.bb-item:active {
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.bb-label {
  white-space: nowrap;
}

/* v40, owner feedback 20260914: the bottom bar's Menu item reuses the
   header's own books icon (.bookshelf-btn), drawn at 30x28 for that
   context. .bb-menu-mark carries the standard 17x17 .bb-mark box so this
   item's layout footprint matches its Home/Story siblings exactly --
   without it, the bar itself grew ~4-5px taller than --bottombar-h to fit
   the icon's native size, which reopened the ticker-overlap bug the lift
   rule above this was meant to close. The 30x28 icon is scaled down to fit
   inside that fixed box, rather than resized, so the book spans' own
   pixel proportions stay correct instead of being stretched. */
.bb-menu-mark {
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.bb-menu-mark .bookshelf-btn { transform: scale(0.58); color: var(--primary); }
.bb-menu-mark .book { background: currentColor; }

/* Marks drawn in CSS. No glyphs, no SVG, nothing that can fail to render on a
   platform missing a character. Same reasoning as the flag emoji removal. */
.bb-mark {
  display: block;
  width: 17px;
  height: 17px;
  color: inherit;
}

/* Home: a roof over a doorway. */
.bb-home {
  position: relative;
}
.bb-home::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 50%;
  width: 12px; height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 2px solid currentColor;
  border-inline-start: 2px solid currentColor;
  border-radius: 2px;
}
.bb-home::after {
  content: "";
  position: absolute;
  bottom: 1px; inset-inline-start: 50%;
  width: 13px; height: 8px;
  transform: translateX(-50%);
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

/* The story: an open book. */
.bb-story {
  position: relative;
}
.bb-story::before,
.bb-story::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 7px;
  height: 12px;
  border: 2px solid currentColor;
}
.bb-story::before { inset-inline-start: 0;  border-inline-end: 0; border-radius: 3px 0 0 3px; }
.bb-story::after  { inset-inline-end: 0; border-inline-start: 0;  border-radius: 0 3px 3px 0; }

/* The people: two heads. */
.bb-people {
  position: relative;
}
.bb-people::before {
  content: "";
  position: absolute;
  top: 1px; inset-inline-start: 3px;
  width: 7px; height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.bb-people::after {
  content: "";
  position: absolute;
  bottom: 2px; inset-inline-start: 0;
  width: 13px; height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

/* v40, owner feedback 20260914: the floating bookshelf-fab this section
   used to lift above the bottom bar is gone -- the bar's own Menu item
   replaces it, so nothing here still needs the lift. .motion-btn,
   .nav-handle, .scroll-nav and #action-pill never needed it either (see
   the v39 RHYTHM note this replaced: at bottom: 96px/150px/189px/96px they
   already clear the 58px/46px bar with room to spare). */

/* The last thing on the page must not sit under the bar. */
body.has-bottombar main {
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px) + 8px);
}

/* Wide screens: the header is always reachable, so the bar is unnecessary. */
@media (min-width: 900px) {
  .bottom-bar { display: none; }
  body.has-bottombar main { padding-bottom: 0; }
  body.has-bottombar #status-ticker { transform: none; }
}

/* Very short screens: shrink the bar rather than eat the page. */
@media (max-height: 520px) {
  :root { --bottombar-h: 46px; }
  .bb-item { font-size: 0.66rem; }
  .bb-mark { width: 14px; height: 14px; }
}

/* Motion off means the bar appears without sliding. */
@media (prefers-reduced-motion: reduce) {
  .bottom-bar,
  body.has-bottombar #status-ticker { transition: none; }
}


/* ---------------------------------------------------------------- ITEM 3
   Motion control. Bottom-left, directly under the down arrow.

   Three states:
     default          triangle, page is moving, tap to pause
     .is-paused       two bars, page is still, tap to resume
     .is-hidden       faded to a dot, set by press-and-hold

   No message is left behind when hidden. */

/* SUPERSEDED 261015 (A44 step 5f): the old motion button (.motion-btn) replaced by the design handoff's .hm-motion; its markup is gone from every page, so these rules match nothing. Kept, not deleted. */
.motion-btn {
  position: fixed;
  inset-inline-start: 12px;
  /* v39 RHYTHM, item c: same line as the Back Mission Faith pillar button
     (#action-pill, bottom: 96px), rather than stacked separately at the
     bottom of the left-side cluster. */
  bottom: 96px;
  z-index: 60;

  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg, #fff);
  color: var(--primary, #14213d);
  cursor: pointer;

  transition: opacity .2s ease, transform .12s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.motion-btn:hover { transform: scale(1.06); }
.motion-btn:active { transform: scale(0.94); }
.motion-btn:focus-visible {
  outline: 3px solid var(--accent, #c8a44a);
  outline-offset: 2px;
}

/* Playing: a triangle, drawn in CSS. */
.motion-mark {
  display: block;
  width: 0;
  height: 0;
  margin-inline-start: 3px;
  border-inline-start: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* Paused: two bars. */
.motion-btn.is-paused .motion-mark {
  width: 12px;
  height: 14px;
  margin-inline-start: 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left / 4px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right / 4px 100% no-repeat;
}

/* Hidden by press-and-hold: shrinks to a faint dot. Still reachable by
   keyboard and still 40px of hit area, so nothing becomes unusable. */
.motion-btn.is-hidden {
  opacity: 0.28;
}
.motion-btn.is-hidden .motion-mark {
  width: 5px;
  height: 5px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
}
.motion-btn.is-hidden:hover,
.motion-btn.is-hidden:focus-visible {
  opacity: 1;
}

/* When motion is paused, everything that moves stops. */
body.motion-paused #status-ticker .ticker-track,
body.motion-paused .hx-logo .hx-left,
body.motion-paused .hx-logo .hx-right,
body.motion-paused .caret {
  animation-play-state: paused !important;
}
body.motion-paused .caret { opacity: 1; }

/* Respect the operating system setting from the first frame, before any
   script runs. */
@media (prefers-reduced-motion: reduce) {
  #status-ticker .ticker-track,
  .hx-logo .hx-left,
  .hx-logo .hx-right,
  .caret {
    animation-play-state: paused !important;
  }
}

@media (max-height: 520px) {
  .motion-btn { bottom: 80px; width: 34px; height: 34px; }
}


/* ---------------------------------------------------------------- ITEM 5
   Milestones 4 and 5 read as one day with two moments. */

.milestone-pair {
  border: 1px solid var(--accent, #c8a44a);
  border-radius: 14px;
  padding: 4px 14px 10px;
  margin: 26px 0;
}
.milestone-pair .pair-heading {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 14px 0 4px;
}
.milestone-pair .pair-heading strong { color: var(--primary); }
.milestone-pair > .milestone {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
}
.milestone-pair > .milestone:first-of-type { border-top: 0; }
@media (max-width: 480px) {
  .milestone-pair { padding-inline-start: 8px; padding-inline-end: 8px; }
}


/* ---------------------------------------------------------------- LANGUAGE
   Flag emoji were removed from the markup, so the row no longer needs a
   column for them. Names carry their own script. */

.lang-option-row .lang-name {
  flex: 1 1 auto;
}


/* ---------------------------------------------------------------- PRINT */

@media print {
  .motion-btn,
  .bottom-bar,
  #footer-logo { display: none !important; }
  body.has-bottombar main { padding-bottom: 0; }
}

/* END v36.css */

/* ===================== END v36.css ===================== */

/* ==================== BEGIN v37.css ==================== */
/* =============================================================================
   v37.css   --   FREEDOM
   Version: 20260823.37.0

   Loads last, after styles.css, v35.css and v36.css. Adds and corrects only.
   Nothing here removes an existing rule.

   Five jobs:
     1  LAYERING. The scroll bubbles and the minimise handle stop being covered
     3  FLOATING ELEMENTS hold position instead of drifting
     4  SEARCH BOX hides itself when scripts are off, so it claims nothing
     5  PRINT produces a document instead of five empty sheets
     6  BUTTONS one size, one shape, two per line, gold only where money is
   ========================================================================== */


/* ------------------------------------------------------------------- JOB 2
   The scroll bubbles and the minimise handle worked at the top of the page and
   stopped once the page was scrolled. The bottom bar arrives at exactly that
   moment and sits on top of them, so the taps were landing on the bar.

   Fixed by order, not by moving anything. The controls a person presses sit
   above the bar that appears underneath them.
*/
#bottom-bar        { z-index: 60; }
.scroll-nav,
#scroll-nav        { z-index: 80; pointer-events: auto; }
#nav-handle        { z-index: 81; pointer-events: auto; }
#motion-btn        { z-index: 82; pointer-events: auto; }
#glossary-pop      { z-index: 90; }
#info-modal-overlay,
#side-panel,
#side-panel-overlay { z-index: 100; }

/* The bubbles must respond at every scroll position, not only where the header
   still happens to be on screen. */
#scroll-nav button { pointer-events: auto; }

/* The minimise handle is the control that hides and shows the bubbles. It has
   to stay reachable after they are hidden, or nothing can bring them back. */
#scroll-nav.tucked            { transform: translateX(calc(100% - 2.2rem)); }
#scroll-nav.tucked #nav-up,
#scroll-nav.tucked #nav-down  { opacity: 0; pointer-events: none; }
#scroll-nav.tucked #nav-handle{ opacity: 1; pointer-events: auto; }
#scroll-nav                   { transition: transform 0.25s ease; }


/* ------------------------------------------------------------------- JOB 3
   Floating elements drifted because a fixed position was competing with a
   transform applied elsewhere. They stay draggable. They stop wandering when
   nobody is dragging them.
*/
#action-pill,
#float-logo,
#motion-btn {
  position: fixed;
  will-change: auto;
}

/* v39 RHYTHM, item a: this margin-bottom duplicated the transform-based lift
   already applied by "Everything that floats lifts above the bar" earlier in
   this file (search --bottombar-h). Both rules fired on the same elements at
   the same moment: the transform slides smoothly over .26s, this margin
   changed with no transition at all, so the buttons jumped an extra,
   unanimated step on top of the intended slide the instant has-bottombar
   toggled. The transform rule is the correct, sole mechanism -- it already
   lifts by exactly the bar height, and it already animates. Disabled here
   rather than deleted, per the standing rule that nothing is removed outright. */


/* JOB 4 (with scripts off, the header search box could not work, so it was
   hidden via .no-js) removed 20260914 along with the header search field
   itself -- the side menu's Search entry has its own no-js handling need,
   since it is a <button onclick>, already inert with scripts off. */


/* ------------------------------------------------------------------- JOB 5
   Print used to produce five empty sheets, because the page had no print
   stylesheet at all and the browser was printing animation layers.

   This produces a plain document. Save as PDF in the browser then gives a real
   file that can be kept, sent, or read on paper.
*/
@media print {

  /* Everything that is furniture rather than content. */
  header.topbar,
  #bottom-bar,
  #scroll-nav,
  #nav-handle,
  #motion-btn,
  #action-pill,
  #float-logo,
  #side-panel,
  #side-panel-overlay,
  #info-modal-overlay,
  #glossary-pop,
  #preloader,
  #status-ticker,
  .ticker,
  .marquee,
  nav,
  video,
  iframe { display: none !important; }

  /* Paper is white and ink is black, whatever was chosen on screen. */
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  body.force-dark,
  body.force-dark *,
  body.reading-comfort,
  body.reading-comfort * {
    background: #fff !important;
    color: #000 !important;
  }

  main { max-width: 100%; margin: 0; padding: 0; }

  /* Collapsed sections hold most of the text on these pages. On paper they are
     all open, or the document prints almost empty. */
  details { display: block !important; }
  details > *  { display: block !important; }
  summary { font-weight: 700; list-style: none; }

  /* A heading at the foot of a page with its text overleaf is unreadable. */
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  p, li, dd { orphans: 3; widows: 3; }
  section, .card, .person-bubble { break-inside: avoid; page-break-inside: avoid; }

  /* A printed link is useless unless the address is on the paper. */
  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }
  main a[href^="#"]::after { content: ""; }

  img { max-width: 100%; }
}


/* ------------------------------------------------------------------- JOB 6
   Faults 10, 14, 17 and 23.

   Every pill in the footer was a different size, and some were gold. Gold is
   reserved for giving. Anything else wearing it makes the giving button
   ordinary, which is the opposite of what gold is for.
*/

/* Fault 10 and 23. One size, one shape, two per line, whether the element is
   a link or a button. They were inconsistent because half are <a> and half are
   <button>, and only the <a> rules had been written. */
.footer-col { min-width: 0; }

.footer-col .social-pill,
.footer-col a.social-pill,
.footer-col button.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(50% - 6px);
  min-height: 2.1rem;
  padding: 0.35rem 0.6rem;
  margin: 0 3px 6px 0;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}

.footer-col .social-pill:hover,
.footer-col .social-pill:focus-visible {
  border-color: var(--accent);
}

@media (max-width: 380px) {
  /* v40, item 6: this used to lose the cascade to the tag-qualified
     ".footer-col a.social-pill, .footer-col button.social-pill" rule above
     (higher specificity, 0,2,1 vs 0,2,0), which kept every pill at
     calc(50% - 6px) regardless of this media query -- so "RSS feed",
     "Prayer Request", "Contact - FAQ" and "Privacy Policy" wrapped their own
     text in half. Matching the same tag-qualified selectors here restores
     the intended full-width-under-380px behaviour. */
  .footer-col .social-pill,
  .footer-col a.social-pill,
  .footer-col button.social-pill { width: 100%; margin-inline-end: 0; }
}

/* Fault 14. Gold belongs to giving and to nothing else. The donation pill and
   the give button keep it. Everything that had picked it up loses it. */
.footer-col .social-pill,
.footer-col .social-pill.active,
.social-pill.active:not(.give):not(.donate) {
  background: var(--card-bg);
  color: var(--text);
}

/* Fault 17. Mission Faith, The Story and The People read as one grey wall
   because their headings were the same weight as the text under them. A rule
   above each one, and a heavier heading, separates them without adding colour. */
main section > h2,
main section > h3.section-lead {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
  margin-top: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

main section:first-of-type > h2 { border-top: none; margin-top: 0; }


/* Fault 11. The postal address moves under Get in touch, which had no address
   at all. It is a line of text, not a button, so it must not inherit the pill
   width rule above it. */
.footer-col .footer-postal {
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--secondary);
}

/* END v37.css */

/* ===================== END v37.css ===================== */

/* v40, item 5.3: tools/build_feed.py's PAGE_TEMPLATE and youtube_embed()
   wrote these as inline style="" on every generated permalink page (9
   pages, 1-2 occurrences each). Fixed in the generator, not per page --
   the pages are output, not source; re-running the generator regenerates
   them from here. */
.permalink-article { max-width: 65ch; }
.video-embed-wrap {
  position: relative; max-width: 360px; aspect-ratio: 9/16; margin: 16px 0;
}
.video-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

/* v41.2: click-to-load video. Nothing is requested from YouTube until the
   visitor presses play (see tools/build_feed.py youtube_embed() and
   video-facade.js). The thumbnail is our own copy in assets/video/. */
.video-facade-link {
  display: block; position: relative; width: 100%; height: 100%;
  background: #000; overflow: hidden; border-radius: 8px;
}
.video-facade-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  background: #ffffff; color: #1a1a1a; border: 2px solid #1a1a1a;
}
.video-facade-link:hover .video-facade-play,
.video-facade-link:focus-visible .video-facade-play { background: #FFD700; }
.video-facade-link:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 3px; }
.video-consent-note { max-width: 360px; }

/* v41.2: front-page video gallery (tools/build_gallery.py writes the markup, video-gallery.js adds the buttons).
   Desktop: a slider, three cards visible, scrolls sideways. Phone: cards stack; the script shows three
   and adds "Load more videos". Without JavaScript the row simply scrolls and everything is visible. */
.video-gallery { margin: 32px 0; }
.video-gallery [hidden] { display: none !important; }
.video-slider { position: relative; }
.video-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; scrollbar-width: thin;
}
.video-track:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.video-card { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; margin: 0; }
.video-card .video-embed-wrap { margin: 0 0 8px; max-width: none; }
.video-card figcaption { font-weight: 600; }
.video-card-summary {
  margin: 4px 0 0; font-size: 0.88rem; font-weight: 400; color: var(--text, #333); opacity: 0.85;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; padding: 0; line-height: 1;
  border: 2px solid #1a1a1a; background: #ffffff; color: #1a1a1a;
  font-size: 1.8rem; cursor: pointer;
}
.video-prev { left: -16px; }
.video-next { right: -16px; }
.video-nav:hover:not([disabled]), .video-nav:focus-visible { background: #FFD700; }
.video-nav[disabled] { opacity: 0.35; cursor: default; }
.video-more-wrap { text-align: center; margin: 12px 0 0; }
.video-more {
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer;
  background: #ffffff; color: #1a1a1a; border: 2px solid #1a1a1a;
}
.video-more:hover, .video-more:focus-visible { background: #FFD700; }
.video-gallery-more { margin-top: 16px; }
.video-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.video-filter {
  padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  background: #ffffff; color: #1a1a1a; border: 2px solid #1a1a1a;
}
.video-filter span { opacity: 0.7; font-weight: 400; }
.video-filter.active { background: #1a1a1a; color: #ffffff; }
.video-filter:hover:not(.active), .video-filter:focus-visible { background: #FFD700; color: #1a1a1a; }
@media (max-width: 719px) {
  .video-track { flex-direction: column; align-items: center; overflow: visible; scroll-snap-type: none; }
  .video-card { flex: 0 0 auto; width: 100%; max-width: 360px; }
  .video-nav { display: none !important; }
}


/* ===== A44 step 2 (261014) ==================================================================
   1. Register 261006 item 1: on phones the header hides while the bottom bar shows. The bar only
      exists under 900px and shows when app.js marks the header .shrunk, so the two switch together.
      Keyboard focus inside the header brings it back.
   2. Register item 2: the round three-bar back mark (P8, the live .back-mark) on video and letter
      pages, in the purple circle the pop-ups use. ========================================= */
@media (max-width: 899px) {
  header.topbar { transition: transform 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease; }
  body.has-bottombar header.topbar { transform: translateY(-100%); }
  body.has-bottombar header.topbar:focus-within { transform: none; }
}
@media (prefers-reduced-motion: reduce) { header.topbar { transition: none; } }
body.motion-paused header.topbar { transition: none; }

.permalink-back-row { margin: 12px 0 4px; }
.permalink-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--secondary); color: #fff; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.permalink-back:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }


/* ===== A44 step 4 (261015): LANGUAGE readiness (plan 261012 §2 points 5-7) =================
   Nothing above is changed. The few rules that still said left/right get a logical twin here;
   right-to-left pages (dir="rtl": Arabic, Persian, Hebrew) mirror what points a direction;
   Chinese, Japanese and Korean get line breaking that needs no spaces and no letter-spacing;
   every script falls back to fonts already on the reader's device (nothing is downloaded). */

/* 5. Right-to-left. Logical twins of the last physical rules (the first rule wins in LTR, the
      second keeps LTR identical and turns the right way in RTL). */
.video-prev { left: auto; inset-inline-start: -16px; }
.video-next { right: auto; inset-inline-end: -16px; }
html[dir="rtl"] .video-nav { transform: translateY(-50%) scaleX(-1); }           /* ‹ › point the way of reading */
#status-ticker .ticker-track { padding-left: 0; padding-inline-start: 100%; }
html[dir="rtl"] #status-ticker .ticker-track { animation-name: tickerScrollRtl; }
@keyframes tickerScrollRtl { 0% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  #status-ticker .ticker-track { padding-left: 0; padding-inline-start: 1rem; }
}
html[dir="rtl"] .scroll-nav.tucked { transform: translateX(64px); }
html[dir="rtl"] .panel-section summary:hover, html[dir="rtl"] .signin-btn:hover { transform: translateX(-3px); }
/* The back mark points back: to the right in a right-to-left page. The up/down arrows are the
   same mark turned, and stay as they are. */
html[dir="rtl"] .back-mark:not(.nav-arrow-up):not(.nav-arrow-down) { transform: scaleX(-1); }
/* Numbers, dates, addresses and Latin names keep their own direction inside right-to-left text. */
html[dir="rtl"] time, html[dir="rtl"] bdi, html[dir="rtl"] [dir="ltr"], html[dir="rtl"] .brand-mark,
html[dir="rtl"] code, html[dir="rtl"] .ltr { unicode-bidi: isolate; }

/* 6. Chinese, Japanese, Korean: no letter-spacing (it breaks the characters apart), line breaks
      without spaces, a little more line height for the taller characters. */
:lang(zh), :lang(ja), :lang(ko) { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:lang(zh) *, :lang(ja) *, :lang(ko) * { letter-spacing: normal !important; }
/* Arabic and Persian letters join; letter-spacing pulls them apart too. */
:lang(ar) *, :lang(fa) *, :lang(ur) * { letter-spacing: normal !important; }
:lang(zh) body, :lang(ja) body, :lang(ko) body { line-height: 1.75; }
:lang(zh) p, :lang(ja) p, :lang(ko) p, :lang(zh) li, :lang(ja) li, :lang(ko) li { text-align: start; }

/* 7. Fonts: the reader's own system fonts for each script, a tested fallback list, nothing from
      another server. (Self-hosting Noto is a later option; the files are large.) */
:lang(ar) body, :lang(fa) body, :lang(ur) body {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, "DejaVu Sans", sans-serif;
  letter-spacing: normal;
}
:lang(he) body { font-family: "Noto Sans Hebrew", "Arial Hebrew", "Segoe UI", Arial, "DejaVu Sans", sans-serif; }
:lang(zh) body { font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; }
:lang(ja) body { font-family: "Hiragino Sans", "Noto Sans CJK JP", "Source Han Sans JP", "Yu Gothic", "Meiryo", sans-serif; }
:lang(ko) body { font-family: "Apple SD Gothic Neo", "Noto Sans CJK KR", "Source Han Sans KR", "Malgun Gothic", sans-serif; }
/* On body, because the site sets its font on body (an inherited font would lose). The reader's
   own font choices in Settings (Easy read, System, Serif) still win: they use !important. */

/* 9. The banner on the two hidden test pages (laptop only, never deployed). */
.lang-test-banner { margin: 0; padding: 8px 16px; background: #FFD700; color: #14213d; font-weight: 700; text-align: center; }


/* ===== A44 step 5a (261015): Claude Design handoff 261014_HAY_handoff_a44-css-markup.md,
   file a44-floating-controls.css appended UNCHANGED below (sha256 1a6b6b2f194d897e...).
   Superseded live rules are disabled, with a dated comment, in the step that replaces their
   markup, never before (so the live controls keep working in between). ===================== */
/* =====================================================================
   Haymonutho.x · A44 · Floating controls, pop-ups, bottom bar, pages
   Append to live/styles.css AFTER the existing token blocks.
   Built on the live tokens: --primary --secondary --accent --bg --text
   --card-bg --border --brand-solid --on-accent (light + dark already exist).
   Logical properties throughout, so RTL needs no extra rules except where
   marked "no-mirror".
   ===================================================================== */

:root {
  --fa8th: #6B5300;              /* dark gold for text on white (7.4:1) */
  --tap: 44px;                   /* minimum touch target (our rule) */
  --fab: 54px;                   /* arrows, page map, pill height */
  --motion: 40px;                /* motion button, live size */
  --gesture: 24px;               /* phone gesture area kept clear */
  --bar-h: 52px;                 /* bottom bar buttons */
  --edge: 12px;                  /* distance from screen edge (14px desktop) */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --elev-1: 0 1px 2px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.18);
  --elev-2: 0 1px 2px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.22);
  --elev-3: 0 8px 18px rgba(0,0,0,.22), 0 24px 60px rgba(0,0,0,.40);
  --ribbon-here: #B3261E;        /* bookmark: page you are on */
}
html[data-theme="dark"], body.force-dark { --fa8th: #FFD700; }
@media (min-width: 1024px) { :root { --edge: 14px; } }

/* ---------- ALPHA line: under the header, pinned when it scrolls away */
.hm-ticker {
  position: sticky; inset-block-start: 0; z-index: 70;
  block-size: 30px; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  padding-inline-start: 14px; font-size: .82rem;
  background: var(--brand-solid); color: #fff; border-bottom: 2px solid var(--accent);
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
}
.hm-ticker b { color: var(--accent); margin-inline: .35em; }
@media (min-width: 1024px) {               /* desktop keeps it at the bottom */
  .hm-ticker { position: fixed; inset-block: auto 0; inset-inline: 0; box-shadow: none; }
}

/* ---------- Shared round buttons */
.hm-fab, .hm-motion {
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--card-bg); color: var(--primary); box-shadow: var(--elev-1);
}
.hm-fab { inline-size: var(--fab); block-size: var(--fab); }
.hm-motion { inline-size: var(--motion); block-size: var(--motion); }
.hm-fab:hover, .hm-motion:hover { background: color-mix(in oklab, var(--accent) 18%, var(--card-bg)); }
.hm-fab:focus-visible, .hm-motion:focus-visible, .hm-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ▶ never mirrors (media controls keep direction in every language) */
.hm-motion .play { inline-size: 0; block-size: 0; margin-left: 3px;
  border-left: 11px solid currentColor; border-block: 7px solid transparent; }
.hm-motion[aria-pressed="true"] .play { inline-size: 12px; block-size: 14px; margin: 0;
  border: 0; border-inline: 4px solid currentColor; }

/* ---------- Positions. JS sets on <body>:
   data-fc-layout="each" (default) | "group"
   data-fc-side="start" (default) | "end"     (group only)
   data-fc-vert="bottom" (default) | "top"    (group only)               */
.hm-float { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.hm-float.start { inset-inline-start: var(--edge); align-items: flex-start; }
.hm-float.end   { inset-inline-end: var(--edge);   align-items: flex-end; }
:root { --float-bottom: calc(var(--gesture) + 6px + var(--bar-h) + 14px); } /* 96px phone */
@media (min-width: 1024px) { :root { --float-bottom: 46px; } }

/* Each on its own (default) */
body[data-fc-layout="each"] .hm-motion-slot   { position: fixed; z-index: 60; inset-inline-start: var(--edge); inset-block-start: calc(var(--header-h, 0px) + 30px + 10px); }
body[data-fc-layout="each"] .hm-arrows-slot   { inset-block-end: var(--float-bottom); }
body[data-fc-layout="each"] .hm-map-slot      { inset-block-end: calc(var(--float-bottom) + var(--fab) + 10px); }
body[data-fc-layout="each"] .hm-pill-slot     { inset-block-end: var(--float-bottom); }
@media (min-width: 1024px) {
  /* desktop: motion sits on the pill's line, opposite it */
  body[data-fc-layout="each"] .hm-motion-slot { inset-block: auto calc(var(--float-bottom) + 7px); }
  body[data-fc-layout="each"] .hm-arrows-slot { inset-block-end: calc(var(--float-bottom) + 57px); }
}

/* ---------- Arrows + « edge tab: always one unit */
.hm-arrows { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hm-edge-tab {
  position: absolute; z-index: 2; inset-block-start: 50%; transform: translateY(-50%);
  inset-inline-start: calc(-1 * var(--edge));
  inline-size: 24px; block-size: 48px; padding: 0; border: 0; cursor: pointer;
  border-start-start-radius: 0; border-end-start-radius: 0;
  border-start-end-radius: 24px; border-end-end-radius: 24px;
  background: var(--brand-solid); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18);
  font-weight: 700; display: grid; place-items: center;
}
.hm-float.end .hm-edge-tab { inset-inline: auto calc(-1 * var(--edge));
  border-radius: 24px 0 0 24px; }
[dir="rtl"] .hm-float.end .hm-edge-tab { border-radius: 0 24px 24px 0; }
.hm-edge-tab .glyph { display: block; }
[dir="rtl"] .hm-edge-tab .glyph, .hm-float.end .hm-edge-tab .glyph { transform: scaleX(-1); }
[dir="rtl"] .hm-float.end .hm-edge-tab .glyph { transform: none; }
body[data-fc-tab="between"] .hm-edge-tab { position: static; transform: none; inline-size: var(--tap); block-size: var(--tap); border-radius: 50%; order: 1; }
body[data-fc-tab="off"] .hm-edge-tab { display: none; }
/* tucked: arrows + page map slide out, motion and pill stay */
body[data-fc-tucked] .hm-arrows-slot, body[data-fc-tucked] .hm-map-slot {
  transform: translateX(calc(-100% - var(--edge) * 2)); transition: transform .26s ease; }
[dir="rtl"] body[data-fc-tucked] .hm-arrows-slot { transform: translateX(calc(100% + var(--edge) * 2)); }
.hm-untuck { position: fixed; z-index: 61; inset-inline-start: 0; display: none;
  inline-size: 24px; block-size: 48px; border: 0; border-radius: 0 24px 24px 0;
  background: var(--brand-solid); color: #fff; }
body[data-fc-tucked] .hm-untuck { display: grid; place-items: center; }

/* ---------- Back MF8 pill (− inside it; collapsed = gold + circle) */
@keyframes pillBreath {
  0%,100% { transform: scale(1); box-shadow: 0 4px 14px rgba(0,0,0,.20), 0 0 0 0 rgba(212,175,55,.55); }
  50%     { transform: scale(1.05); box-shadow: 0 6px 22px rgba(0,0,0,.26), 0 0 0 10px rgba(212,175,55,0); }
}
.hm-pill {
  display: inline-flex; align-items: center; gap: 10px; block-size: var(--fab);
  padding-inline: 20px 3px; border-radius: 999px;
  background: var(--brand-solid); color: #fff; border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.22); animation: pillBreath 4.2s ease-in-out infinite;
}
.hm-pill a { color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.hm-pill a b { color: var(--accent); }
.hm-pill-toggle { inline-size: var(--tap); block-size: var(--tap); flex: none; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.hm-pill[data-collapsed] { inline-size: var(--fab); padding: 0; justify-content: center; }
.hm-pill[data-collapsed] a { display: none; }

/* ---------- Bottom bar (phone): Menu + MF8 · STORY · JOURNEY toggle */
.hm-bottombar { position: fixed; z-index: 55; inset-inline: 0; inset-block-end: calc(var(--gesture) + 6px);
  display: flex; align-items: center; gap: 8px; padding-inline: 12px; }
.hm-bb-menu { flex: none; inline-size: var(--bar-h); block-size: var(--bar-h); border-radius: 50%;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--primary);
  box-shadow: var(--elev-2), inset 0 1px 0 rgba(255,255,255,.6); display: grid; place-items: center; }
.hm-seg { position: relative; flex: 1; min-inline-size: 0; display: flex; block-size: var(--bar-h); padding: 3px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card-bg);
  box-shadow: var(--elev-2), inset 0 2px 5px rgba(0,0,0,.10); }
.hm-seg-thumb { position: absolute; inset-block: 3px; inline-size: calc((100% - 6px) / 3);
  inset-inline-start: calc(3px + (100% - 6px) / 3 * var(--seg, 0));
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 8px 18px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.14);
  transition: inset-inline-start 320ms cubic-bezier(.3,.7,.2,1); }
.hm-seg a { position: relative; z-index: 1; flex: 1; min-inline-size: 0; display: flex; align-items: center; justify-content: center; gap: 5px;
  border-radius: 999px; color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: color 320ms; }
.hm-seg a[aria-current="page"] { color: var(--on-accent); }
@media (min-width: 1024px) { .hm-bottombar { display: none; } }

/* ---------- Bar: ← at start, X̲ in the centre (top and bottom of every sheet/panel) */
.hm-bar { position: relative; flex: none; display: flex; align-items: center; block-size: 64px; padding-inline: 12px; background: var(--card-bg); }
.hm-bar .modal-x { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hm-bar .modal-back { position: static; transform: none; display: flex; inline-size: var(--tap); block-size: var(--tap); }
[dir="rtl"] .hm-bar .back-mark { transform: scaleX(-1); }

/* ---------- Sheet (full pop-up): Settings, Language, Cookies, Accessibility, Prayer, Contact
   JS writes --t (0..1) on .hm-sheet from the body's scrollTop / 80.            */
.hm-sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); }
.hm-sheet { position: fixed; z-index: 91; inset: 10px 10px calc(var(--gesture) + 10px); display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; background: var(--card-bg); color: var(--text); box-shadow: var(--elev-3); --t: 0; }
@media (min-width: 1024px) { .hm-sheet { inset: 80px calc(50% - 310px) 60px; } }
.hm-sheet-head { flex: none; position: relative; z-index: 1; background: var(--card-bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,calc(.12 * var(--t))); }
.hm-sheet-head .hm-bar { block-size: calc(64px * (1 - var(--t))); opacity: calc(1 - var(--t)); overflow: hidden; }
.hm-sheet-title { margin: 0; display: flex; align-items: center; justify-content: center; gap: 2px;
  font-size: calc(1.4rem - .4rem * var(--t)); font-weight: 800; color: var(--primary);
  padding-block: calc(4px + 8px * (1 - var(--t))) calc(10px + 6px * (1 - var(--t))); }
.hm-sheet-body { flex: 1; min-block-size: 0; overflow: auto; padding: 4px 16px 76px; overscroll-behavior: contain; }
.hm-sheet-foot { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.10); transform: translateY(calc(100% * (1 - var(--t)))); opacity: var(--t);
  pointer-events: none; }
.hm-sheet[data-scrolled] .hm-sheet-foot { pointer-events: auto; }
/* A45 E3 (261018): the same foot bar on Žiga's personal sheet (an info pop-up, which scrolls as a whole). */
/* A45 K1-small (scope v6 §7): margin-top 44px leaves a clear gap above the bar at the very end (the sticky bar stands 24px
   above its own place there). Was: margin: 20px -24px -24px (the last line sat about 4px under the bar). */
.info-modal .im-foot.hm-bar { position: sticky; inset-block-end: 0; margin: 44px -24px -24px; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.10); visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.info-modal[data-scrolled] .im-foot.hm-bar { visibility: visible; opacity: 1; }
/* A45 (261018, Christian's yes): a very long web address in a video or letter text may break onto the next line,
   so the page is never wider than a phone (what-is-lifemotions was 30px too wide). Was: no rule. */
.permalink-article p a { overflow-wrap: anywhere; }
.hm-sheet-search { position: absolute; inset-inline: 0; z-index: 3; inset-block-end: calc(64px * var(--t));
  padding: 10px 12px; background: var(--card-bg); border-top: 1px solid var(--border); }
.hm-sheet:has(.hm-sheet-search) .hm-sheet-body { padding-block-end: 150px; }

/* ---------- Side panels (menu bookshelf, page contents) reuse sheet head/foot */
.hm-panel { position: fixed; z-index: 91; inset-block: 0; inset-inline-start: 0; inline-size: min(306px, 86vw);
  display: flex; flex-direction: column; background: var(--card-bg); box-shadow: 4px 0 20px rgba(0,0,0,.3); --t: 0; }
@media (min-width: 1024px) { .hm-panel { inline-size: 360px; } }
.hm-panel.from-end { inset-inline: auto 0; }   /* contents opens from the page-map side */

/* ---------- Bookshelf bookmark ribbons (add inside the .shelf-row) */
.side-panel .shelf-row { position: relative; }
.shelf-ribbon { position: absolute; z-index: 2; inset-block-start: -3px; inset-inline-end: 34px;
  inline-size: 9px; block-size: calc(100% + 18px); pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 40%, rgba(255,255,255,.25) 60%, rgba(0,0,0,.10)), var(--ribbon-here);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 5px), 0 100%); box-shadow: 0 1px 1px rgba(0,0,0,.2); }
.shelf-ribbon.stopped { background-color: var(--accent); background-image: linear-gradient(90deg, rgba(0,0,0,.12), transparent 40%, rgba(255,255,255,.25) 60%, rgba(0,0,0,.10)); }

/* ---------- Theme: Day | Auto (default, outline gear) | Night */
.hm-theme { display: flex; gap: 4px; padding: 3px; block-size: 56px; border-radius: 999px;
  background: var(--brand-solid); border: 2px solid var(--accent); }
.hm-theme button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px;
  background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hm-theme button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* ---------- Forms (Prayer, Contact) */
.hm-field { display: block; inline-size: 100%; min-block-size: 48px; padding: 12px 14px; margin: 4px 0 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.hm-label { display: block; font-size: .82rem; font-weight: 700; color: var(--primary); }
select.hm-field { appearance: none; padding-inline-end: 40px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A4C8C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
[dir="rtl"] select.hm-field { background-position: left 16px center; }
select.hm-field:invalid { color: var(--secondary); }     /* "Choose a topic" placeholder */
select.hm-field option { color: var(--text); }
.hm-send { inline-size: 100%; min-block-size: 50px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--brand-solid); color: #fff; font: inherit; font-weight: 700; box-shadow: var(--elev-1); cursor: pointer; }

/* ---------- Page depth + Bible-chapter milestones */
.hm-sheet-page { border: 1px solid var(--accent); border-radius: 16px; padding: 4px 8px 2px;
  background: color-mix(in oklab, var(--bg) 92%, var(--primary)); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.10); }
.hm-chapter { background: var(--card-bg); padding: 16px 14px; margin: 0 0 10px; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 3px 10px rgba(0,0,0,.08); }
.hm-chapter-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 8px; }
.hm-chapter-num { flex: none; font-family: var(--serif); font-size: 3.4rem; line-height: .82; font-weight: 700; color: var(--fa8th); }
.hm-chapter-kicker { margin: 0 0 2px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); }
.hm-chapter-title { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; font-weight: 700;
  color: var(--primary); font-variant: small-caps; letter-spacing: .02em; }
.hm-verse { font-style: normal; font-weight: 700; color: var(--fa8th); margin-inline-end: 4px; }

/* ---------- Milestone 1: two trackers replace the goal line (needs a43-pass2.css .jr-stats) [amount removed from this comment, A44 261015] */
.ms-stats { margin: 12px -20px 14px; padding: 22px 20px;
  background: color-mix(in srgb, var(--secondary) 7%, var(--card-bg)); }
@media (max-width: 480px) { .jr-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Video / post page: same shell, new middle */
/* motion moves to the end side and rides up with the header, then pins under the ALPHA line */
.hm-detail-page .hm-motion-slot { position: sticky; inset-block-start: 40px; block-size: 0; z-index: 61; }
.hm-detail-page .hm-motion-slot .hm-motion { position: absolute; inset-inline-end: var(--edge); }
.hm-detail { max-inline-size: 760px; margin-inline: auto; padding: 16px 20px 0; }
.hm-crumb { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .85rem; color: var(--secondary); }
.hm-crumb .modal-back { position: static; transform: none; display: flex; }
.hm-detail-media { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--elev-2); }
.hm-detail-media > * { grid-area: 1 / 1; }
.hm-detail h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.25; color: var(--primary); text-wrap: pretty; }
.hm-detail.post h1 { font-family: var(--serif); }

/* ---------- Desktop header: Search word → magnifier */
.topbar .search-btn { inline-size: var(--tap); block-size: var(--tap); border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.topbar .search-btn:hover { background: rgba(255,255,255,.12); }

/* ---------- About page fix: "Support this work personally" = Andrew's pill */
.person-links a, .person-links button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 7px 15px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--primary);
  font-weight: 600; font-size: .85rem; text-decoration: none; cursor: pointer;
}

/* ---------- No-mirror icons in RTL: ▶ motion, menu book mark (logo), JOURNEY signpost */
.bb-menu-mark, .bookshelf-btn, .hm-journey-icon { direction: ltr; }
.bookshelf-btn .book1 { transform: rotate(15deg); transform-origin: bottom left; }

/* ---------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hm-pill, [data-breath] { animation: none !important; }
  .hm-seg-thumb, .hm-seg a, body[data-fc-tucked] .hm-arrows-slot { transition: none !important; }
}
/* ===== end of the A44 design handoff CSS ===== */

/* ===== A44 step 5 (261015): adjustments to the handoff CSS above ============================ */
/* 5c: the page back mark keeps our 44px rule (the live .modal-back fixes 40px with flex-basis). */
.hm-crumb .permalink-back { flex: 0 0 44px; inline-size: 44px; min-inline-size: 44px; block-size: 44px; min-block-size: 44px; }
/* 5d: gallery option (c) (plan 261012 §1 item 9, chosen 261014). Desktop: a Short takes one slot
   (upright 9:16); a long video takes THREE slots (the whole row) at the SAME height, full 16:9.
   The height comes from the row's own width (container units), so it matches at every size. */
@media (min-width: 720px) {
  .video-gallery .video-track { container-type: inline-size; }
  .video-gallery .video-card[data-kind="long"] { flex: 0 0 100%; }
  .video-gallery .video-card[data-kind="long"] .video-embed-wrap {
    aspect-ratio: auto; max-inline-size: none; block-size: calc((100cqi - 40px) / 3 * 16 / 9);
  }
}
/* Phone: long videos nearly full width at 16:9 (the next card peeks in), Shorts upright, two per screen. */
@media (max-width: 719px) {
  .video-gallery .video-track .video-card { flex: 0 0 calc((100% - 20px) / 2); }   /* beats a43-pass2.css 78% */
  .video-gallery .video-card[data-kind="long"] { flex: 0 0 88%; }
  .video-gallery .video-card[data-kind="long"] .video-embed-wrap { aspect-ratio: 16 / 9; max-inline-size: none; }
}
/* 5e: bottom bar and ALPHA line ------------------------------------------------------------ */
/* The bar still appears when the header shrinks and the header hides while it shows (step 2);
   the design's bar is shown up to 1023px, so the header rule covers 900-1023 too. */
.hm-bottombar { transform: translateY(calc(100% + 40px)); transition: transform .26s cubic-bezier(0.618, 0, 0.382, 1); }
.hm-bottombar.is-visible { transform: none; }
@media (min-width: 900px) and (max-width: 1023px) {
  body.has-bottombar header.topbar { transform: translateY(-100%); }
  body.has-bottombar header.topbar:focus-within { transform: none; }
}
@media (max-width: 1023px) {
  body.has-bottombar main { padding-bottom: calc(var(--gesture) + 6px + var(--bar-h) + 16px); }
  /* ALPHA line: under the header, pinned at the top once the header has gone (beats the old #status-ticker). */
  #status-ticker.hm-ticker, body.has-bottombar #status-ticker.hm-ticker {
    position: sticky; inset-block: var(--header-h, 0px) auto; inset-inline: auto; transform: none; z-index: 39;
  }
}
.hm-seg a svg { inline-size: 17px; block-size: 17px; flex: none; }
.hm-seg a svg.hx-logo { fill: currentColor; }
.hm-seg a b { color: inherit; }
.hm-seg.no-current .hm-seg-thumb { opacity: 0; }       /* a video or letter page is none of the three */
.hm-bb-menu .bb-menu-mark { inline-size: 22px; block-size: 22px; }
@media (prefers-reduced-motion: reduce) { .hm-bottombar { transition: none; } }
body.motion-paused .hm-bottombar, body.motion-paused .hm-seg-thumb { transition: none; }

/* 5f: floating controls -------------------------------------------------------------------- */
.hm-motion-slot #motion-btn { position: static; }       /* the old #motion-btn rule pinned it on its own */
body[data-fc-layout="each"] .hm-motion-slot { inset-block-start: calc(var(--header-h, 0px) + 30px + 10px); }
@media (min-width: 1024px) { body[data-fc-layout="each"] .hm-motion-slot { inset-block-start: auto; } }
/* Video and letter pages: the round back mark owns the top start, so motion goes to the top end. */
@media (max-width: 1023px) {
  body.hm-detail-page[data-fc-layout="each"] .hm-motion-slot { inset-inline: auto var(--edge); }
}
.map-lines { display: grid; gap: 4px; }
.map-lines i { display: block; inline-size: 20px; block-size: 3px; border-radius: 2px; background: currentColor; }
.map-lines i:nth-child(2) { inline-size: 14px; }
.hm-pill-toggle .minus { position: relative; display: block; inline-size: 14px; block-size: 3px; border-radius: 2px; background: currentColor; }
.hm-pill[data-collapsed] .hm-pill-toggle .minus::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: currentColor; transform: rotate(90deg); }
.hm-float.is-folded, .hm-float.is-empty { display: none; }
.hm-untuck { inset-block-end: calc(var(--float-bottom) + var(--fab) / 2); }
.hm-fab .back-mark { inline-size: 24px; block-size: 24px; }
body.motion-paused .hm-pill { animation: none; }

/* 5g: sheets and side panel ---------------------------------------------------------------- */
.hm-sheet[hidden], .hm-sheet-backdrop[hidden] { display: none; }
.hm-sheet-backdrop { z-index: 101; }
.hm-sheet { z-index: 102; }                             /* above the open menu and its overlay (#side-panel z 100) */
.hm-sheet-body > .section-body { padding: 0; }
.hm-sheet-arrow { font-weight: 700; }
/* (i) on the title line: 44px to tap, a 26px circle to see */
.hm-info { inline-size: 44px; block-size: 44px; display: inline-grid; place-items: center; padding: 0; border: 0;
  background: transparent; color: var(--primary); cursor: pointer; }
.hm-info span { display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%;
  border: 2px solid currentColor; font: italic 700 .9rem/1 Georgia, serif; }
.hm-info:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.hm-info-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: .9rem;
  background: color-mix(in srgb, var(--accent) 16%, var(--card-bg)); }
.hm-link-btn { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-block-size: 44px; }
.lang-option-row .lang-who { flex-basis: 100%; font-size: .75rem; color: var(--secondary); }
.lang-option-row:has(.lang-who) { flex-wrap: wrap; }
/* Theme: the live buttons (.active) in the design's three-way switch */
.hm-theme button.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hm-theme button span { font-size: 1.1rem; line-height: 1; }
.hm-tab-choice { margin-block-start: 16px; }
.hm-tab-choice .opt-row button.active { background: var(--brand-solid); color: #fff; }
/* "You are here" ribbon: the contrast colour of the row's spine (Christian 261014):
   gold on a navy spine, navy on a gold spine. (The design's red #B3261E is not used.) */
.side-panel .shelf-ribbon { --ribbon-here: var(--accent); }
.side-panel .shelf-ribbon.on-gold { --ribbon-here: var(--brand-solid); }
/* The menu's own top bar: ← (closes the menu) at the start, X̲ in the centre */
.side-panel.hm-has-bar { padding-top: 0; }
.side-panel .hm-panel-bar { position: sticky; inset-block-start: 0; z-index: 3; margin: 0 -20px 12px; border-bottom: 1px solid var(--border); }
.side-panel .hm-panel-bar .modal-x { position: absolute; }
/* 5i: desktop header search: the magnifier inside the 44px button */
.topbar .search-btn .search-mark { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.topbar .search-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 5j: RTL pass, and one fix that applies in both directions --------------------------------- */
/* Tucking: the page map sits at the END side, so it leaves past the end edge (the handoff moved it
   toward the start, into the page). */
body[data-fc-tucked] .hm-map-slot { transform: translateX(calc(100% + var(--edge) * 2)); }
[dir="rtl"] body[data-fc-tucked] .hm-map-slot { transform: translateX(calc(-100% - var(--edge) * 2)); }
/* » (bring the buttons back) hugs the start edge: round on its inner side, glyph pointing inward. */
[dir="rtl"] .hm-untuck { border-radius: 24px 0 0 24px; }
[dir="rtl"] .hm-untuck .glyph { transform: scaleX(-1); }
/* No-mirror marks (handoff): the motion triangle, the menu's book mark and the JOURNEY signpost keep
   their drawing in every direction. The motion ▶ is drawn with physical sides on purpose. */
[dir="rtl"] .hm-journey-icon, [dir="rtl"] .bb-menu-mark, [dir="rtl"] .hm-motion .play { transform: none; }
/* X̲ in the centre of every sheet and panel bar, in both directions: the live .modal-x places itself
   from the START side, which in right-to-left is the right and fought the handoff's left: 50%. */
.hm-bar .modal-x { inset-inline: auto; left: 50%; right: auto; }
/* Step 7 finding (261015): the ALPHA line used --primary as its background, which is pale lavender in
   dark mode: white text 1.76:1, gold 1.25:1 (fails WCAG AA). The design gives it --brand-solid (navy
   in both themes). Since Auto is now the default, many more readers would have seen it. */
#status-ticker.hm-ticker { background: var(--brand-solid); color: #fff; }


/* ===== A44.1 (261015) ======================================================================= */
/* 1. Button positions: Together. The group is one fixed column in the chosen corner; its members
      (page map, arrows, pill) stop positioning themselves. Bottom: the first item sits nearest the
      bottom (column-reverse); top: the first item sits at the top. */
.hm-group { display: none; }
body[data-fc-layout="group"] .hm-group {
  position: fixed; z-index: 60; display: flex; gap: 10px; flex-direction: column-reverse; align-items: flex-start;
  inset-block-end: var(--float-bottom); inset-inline-start: var(--edge);
}
body[data-fc-layout="group"][data-fc-side="end"] .hm-group { inset-inline: auto var(--edge); align-items: flex-end; }
body[data-fc-layout="group"][data-fc-vert="top"] .hm-group {
  inset-block: calc(var(--header-h, 0px) + 30px + 10px) auto; flex-direction: column;
}
body[data-fc-layout="group"] .hm-group > .hm-float { position: static; inset: auto; }
/* the motion button stays on its own; it leaves the group's corner */
body[data-fc-layout="group"] .hm-motion-slot { position: fixed; z-index: 60; inset-block-start: calc(var(--header-h, 0px) + 30px + 10px); inset-inline-start: var(--edge); }
body[data-fc-layout="group"][data-fc-motion="end"] .hm-motion-slot { inset-inline: auto var(--edge); }
@media (min-width: 1024px) {
  /* desktop: motion opposite the group, on the pill's line */
  body[data-fc-layout="group"] .hm-motion-slot { inset-block: auto calc(var(--float-bottom) + 7px); inset-inline: auto var(--edge); }
  body[data-fc-layout="group"][data-fc-side="end"] .hm-motion-slot { inset-inline: var(--edge) auto; }
  body[data-fc-layout="group"][data-fc-vert="top"] .hm-motion-slot { inset-block: calc(var(--header-h, 0px) + 10px + 7px) auto; }
}
/* tucking in a group: the members slide out past the group's own edge */
body[data-fc-layout="group"][data-fc-tucked] .hm-group .hm-arrows-slot,
body[data-fc-layout="group"][data-fc-tucked] .hm-group .hm-map-slot { transform: translateX(calc(-100% - var(--edge) * 2)); }
body[data-fc-layout="group"][data-fc-side="end"][data-fc-tucked] .hm-group .hm-arrows-slot,
body[data-fc-layout="group"][data-fc-side="end"][data-fc-tucked] .hm-group .hm-map-slot { transform: translateX(calc(100% + var(--edge) * 2)); }
[dir="rtl"] body[data-fc-layout="group"][data-fc-tucked] .hm-group .hm-arrows-slot,
[dir="rtl"] body[data-fc-layout="group"][data-fc-tucked] .hm-group .hm-map-slot { transform: translateX(calc(100% + var(--edge) * 2)); }
[dir="rtl"] body[data-fc-layout="group"][data-fc-side="end"][data-fc-tucked] .hm-group .hm-arrows-slot,
[dir="rtl"] body[data-fc-layout="group"][data-fc-side="end"][data-fc-tucked] .hm-group .hm-map-slot { transform: translateX(calc(-100% - var(--edge) * 2)); }
body[data-fc-layout="group"][data-fc-side="end"] .hm-untuck { inset-inline: auto 0; border-radius: 24px 0 0 24px; }
[dir="rtl"] body[data-fc-layout="group"][data-fc-side="end"] .hm-untuck { border-radius: 0 24px 24px 0; }
/* Settings */
.hm-positions { margin-block-start: 16px; }
.hm-positions .opt-row button.active { background: var(--brand-solid); color: #fff; }
.hm-order { list-style: decimal; margin: 4px 0 8px; padding-inline-start: 22px; }
.hm-order li { display: flex; align-items: center; gap: 6px; min-block-size: 44px; }
.hm-order-name { flex: 1; }
.hm-order-move { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-bg); color: var(--primary); font-size: 1.1rem; cursor: pointer; }
.hm-order-move[disabled] { opacity: .35; cursor: default; }
.hm-order-move:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 2. The menu's ← / X̲ fold away at the top and rise at the bottom as it scrolls (like the sheets). */
.side-panel { --t: 0; }
.side-panel .hm-panel-bar { block-size: calc(64px * (1 - var(--t))); opacity: calc(1 - var(--t)); overflow: hidden; }
.side-panel .hm-panel-foot { position: sticky; inset-block-end: -20px; z-index: 3; margin: 12px -20px -20px;
  border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0,0,0,.10);
  transform: translateY(calc(100% * (1 - var(--t)))); opacity: var(--t); }
.side-panel .hm-panel-foot .modal-x { position: absolute; }
/* 3. "You stopped reading here": gold with a navy middle stripe, so it never looks like the plain
      gold "you are here" ribbon on a navy-spined row. */
.side-panel .shelf-ribbon.stopped { background: linear-gradient(90deg, var(--accent) 0 30%, var(--brand-solid) 30% 70%, var(--accent) 70% 100%); }
.hm-resume { margin-block-start: 16px; }
.hm-resume .opt-row button.active { background: var(--brand-solid); color: #fff; }
/* 4. The tinted page sheet behind the milestones (handoff "Depth"); the chapters sit on it as raised cards. */
.hm-sheet-page { margin: 24px -8px; }
.hm-sheet-page > .milestone:not(.hm-chapter) { background: transparent; }
/* 5. Phone: two rows (long videos, then Shorts), each scrolling sideways with its own small label. */
.video-row-label { margin: 10px 0 4px; font-size: .9rem; font-weight: 700; color: var(--secondary); }
.video-row-label[hidden], .video-track[hidden] { display: none !important; }
.video-gallery .video-slider.two-rows .video-nav:not([hidden]) { display: none !important; }
/* 6. Page slide between Mission Faith, STORY and JOURNEY (book order), cross-document View Transitions.
      Forward slides toward the start side, back toward the end side; right-to-left mirrors it. Only
      these three pages slide (data-slide is set by the small script in <head>); every other change of
      page is plain. None with "reduce motion". Firefox has no View Transitions and simply loads. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html:not([data-slide])::view-transition-old(root),
html:not([data-slide])::view-transition-new(root) { animation: none; }
@keyframes hm-out-start { to { transform: translateX(-100%); } }
@keyframes hm-in-end    { from { transform: translateX(100%); } }
@keyframes hm-out-end   { to { transform: translateX(100%); } }
@keyframes hm-in-start  { from { transform: translateX(-100%); } }
/* option B for the two-page jump: the new page stops a moment at its edge, then settles */
@keyframes hm-in-end-edge   { 0% { transform: translateX(100%); } 35%, 55% { transform: translateX(86%); } 100% { transform: translateX(0); } }
@keyframes hm-in-start-edge { 0% { transform: translateX(-100%); } 35%, 55% { transform: translateX(-86%); } 100% { transform: translateX(0); } }
html[data-slide="forward"]::view-transition-old(root) { animation: hm-out-start .34s cubic-bezier(.3,.7,.2,1) both; }
html[data-slide="forward"]::view-transition-new(root) { animation: hm-in-end .34s cubic-bezier(.3,.7,.2,1) both; }
html[data-slide="back"]::view-transition-old(root)    { animation: hm-out-end .34s cubic-bezier(.3,.7,.2,1) both; }
html[data-slide="back"]::view-transition-new(root)    { animation: hm-in-start .34s cubic-bezier(.3,.7,.2,1) both; }
/* option A: one longer, faster sweep */
html[data-slide="forward-two"][data-slide-two="long"]::view-transition-old(root) { animation: hm-out-start .5s cubic-bezier(.6,0,.2,1) both; }
html[data-slide="forward-two"][data-slide-two="long"]::view-transition-new(root) { animation: hm-in-end .5s cubic-bezier(.6,0,.2,1) both; }
html[data-slide="back-two"][data-slide-two="long"]::view-transition-old(root)    { animation: hm-out-end .5s cubic-bezier(.6,0,.2,1) both; }
html[data-slide="back-two"][data-slide-two="long"]::view-transition-new(root)    { animation: hm-in-start .5s cubic-bezier(.6,0,.2,1) both; }
/* option B: the double page-edge */
html[data-slide="forward-two"][data-slide-two="edge"]::view-transition-old(root) { animation: hm-out-start .3s ease-in both; }
html[data-slide="forward-two"][data-slide-two="edge"]::view-transition-new(root) { animation: hm-in-end-edge .6s ease-out both; }
html[data-slide="back-two"][data-slide-two="edge"]::view-transition-old(root)    { animation: hm-out-end .3s ease-in both; }
html[data-slide="back-two"][data-slide-two="edge"]::view-transition-new(root)    { animation: hm-in-start-edge .6s ease-out both; }
/* right to left: a book opens the other way */
html[dir="rtl"][data-slide^="forward"]::view-transition-old(root) { animation-name: hm-out-end; }
html[dir="rtl"][data-slide^="forward"]::view-transition-new(root) { animation-name: hm-in-start; }
html[dir="rtl"][data-slide^="back"]::view-transition-old(root)    { animation-name: hm-out-start; }
html[dir="rtl"][data-slide^="back"]::view-transition-new(root)    { animation-name: hm-in-end; }
html[dir="rtl"][data-slide="forward-two"][data-slide-two="edge"]::view-transition-new(root) { animation-name: hm-in-start-edge; }
html[dir="rtl"][data-slide="back-two"][data-slide-two="edge"]::view-transition-new(root)    { animation-name: hm-in-end-edge; }


/* A46 (N-A): text for screen readers only, same recipe as .jr-sr in a43-pass2.css */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* A46 N-B (261025): Believe / Hear / Act under the tagline. Small and calm; one verse per block on a phone. */
.footer-verses { margin: .5rem 0 .6rem; font-size: .8125rem; line-height: 1.45; color: var(--secondary); }
.footer-verses p { margin: 0 0 .35rem; }
.footer-verses .fv-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-inline-end: .35em; }
.footer-verses .fv-text { font-style: italic; }
.footer-verses .fv-ref { white-space: nowrap; }
.footer-verses .fv-note { font-size: .72rem; margin-top: .1rem; }
@media (max-width: 600px) { .footer-verses p { display: block; } }

/* A46 N-C (261025): "More about me" list in the pop-up */
.more-about-list { list-style: none; margin: 0; padding: 0; }
.more-about-list li { margin: 0 0 10px; font-size: .92rem; }

/* ===== A46 (261025): switches (navy #2D3250 both themes, On/Off word inside the 32px knob), purpose rows, Licences & credits panel ===== */
.hm-prow { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line, #C9CAD6); }
.hm-prow:last-of-type { border-bottom: 0; }
.hm-prow-text { min-width: 0; flex: 1 1 auto; }
.hm-prow-name { margin: 0; font-size: 1rem; font-weight: 600; }
.hm-prow-desc { margin: 2px 0 0; font-size: .875rem; line-height: 1.43; }
.hm-prow-warn { margin: 6px 0 0; font-size: .875rem; line-height: 1.43; font-weight: 600; }
.hm-switch { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 68px; min-height: 44px; cursor: pointer; }
.hm-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hm-switch-track { box-sizing: border-box; display: flex; align-items: center; justify-content: flex-start; width: 68px; height: 40px; padding: 2px; border: 2px solid #2D3250; border-radius: 20px; background: #FFFFFF; transition: background-color .18s; }
.hm-switch-knob { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #2D3250; color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1; }
.hm-switch-knob::after { content: attr(data-off); }
.hm-switch input:checked + .hm-switch-track { background: #2D3250; justify-content: flex-end; }
.hm-switch input:checked + .hm-switch-track .hm-switch-knob { background: #FFFFFF; color: #2D3250; }
.hm-switch input:checked + .hm-switch-track .hm-switch-knob::after { content: attr(data-on); }
.hm-switch input:focus-visible + .hm-switch-track { outline: 3px solid #FFD700; outline-offset: 2px; box-shadow: 0 0 0 5px #2D3250; }
:root[data-theme="dark"] .hm-switch-track { background: #2D3250; border-color: #B8C2EA; }
:root[data-theme="dark"] .hm-switch-knob { background: #FFD700; color: #2D3250; }
:root[data-theme="dark"] .hm-switch input:checked + .hm-switch-track { background: #FFD700; border-color: #FFD700; }
:root[data-theme="dark"] .hm-switch input:checked + .hm-switch-track .hm-switch-knob { background: #2D3250; color: #FFD700; }
@media (prefers-reduced-motion: reduce) { .hm-switch-track { transition: none; } }
body.motion-paused .hm-switch-track, body.reduce-motion .hm-switch-track { transition: none; }
.hm-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin: 0 0 14px; }
.hm-tp, .hm-prow-text { overflow-wrap: anywhere; }
.hm-tabs button { min-height: 44px; padding: 6px 4px; border: 2px solid #2D3250; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.hm-tabs button.active { background: #2D3250; color: #FFFFFF; }
:root[data-theme="dark"] .hm-tabs button { border-color: #B8C2EA; }
:root[data-theme="dark"] .hm-tabs button.active { background: #FFD700; color: #2D3250; border-color: #FFD700; }
.hm-tp[hidden] { display: none; }
.hm-cookie-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hm-btn { min-height: 48px; border: 2px solid #2D3250; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
:root[data-theme="dark"] .hm-btn { border-color: #B8C2EA; }
.hm-cookie-never { text-align: center; margin: 10px 0 0; }
.hm-linkbtn { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.hm-statement { font-size: .9rem; }

/* A46 (261025): Follow and Learn groups in the site menu; the dashed row is a placeholder, not a link */
.side-group { margin: 14px 12px 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); }
.side-placeholder { margin: 6px 12px 10px; padding: 10px 12px; min-height: 46px; box-sizing: border-box; border: 2px dashed var(--secondary); border-radius: 10px; font-size: .9rem; color: var(--secondary); opacity: .85; }

/* ===== A46 (261025, V4 section 9c): the pause button is a 44x44 rounded square inside the moving-text line ===== */
/* A47 (261101): the line is back to its A45.1 height (30px). The pause/play button is fixed IN the line: 32px to look at,
   44px to touch (the touch area reaches 7px above and below the line; nothing is clipped, only the text is). */
#status-ticker.hm-ticker { block-size: 30px; height: 30px; padding-inline: 4px 0; gap: 8px; overflow: visible; }
#status-ticker .ticker-view { flex: 1 1 0; min-width: 0; overflow: hidden; align-self: stretch; display: flex; align-items: center; }
#status-ticker .ticker-view .ticker-track { flex: none; }
.hm-motion.hm-motion-line { position: relative; z-index: 2; flex: none; inline-size: 44px; block-size: 44px; margin-block: -7px; display: grid; place-items: center; border: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; padding: 0; }
.hm-motion.hm-motion-line::before { content: ""; position: absolute; inset-block: 6px; inset-inline: 6px; border: 2px solid currentColor; border-radius: 8px; box-sizing: border-box; }
.hm-motion.hm-motion-line:hover::before { background: rgba(255,255,255,.14); }
.hm-motion.hm-motion-line.is-hidden { opacity: 1; }
/* glyphs: bars while the text moves, a triangle while it is paused (never mirrored) */
.hm-motion.hm-motion-line .play { position: relative; inline-size: 10px; block-size: 12px; margin: 0; border: 0; border-inline: 4px solid currentColor; }
.hm-motion.hm-motion-line[aria-pressed="true"] .play { inline-size: 0; block-size: 0; margin-left: 3px; border-left: 11px solid currentColor; border-block: 7px solid transparent; border-inline-end: 0; }

/* A46 N3 (261025): zoom stepper, rounded -, value, +, Reset (same height) */
.hm-zoom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.hm-zoom output { min-inline-size: 4.5ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-zoom-btn { min-block-size: 44px; min-inline-size: 44px; padding: 0 14px; border: 2px solid var(--primary, #2D3250); border-radius: 22px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.hm-zoom-btn:disabled { opacity: .4; cursor: default; }
.hm-zoom-btn:focus-visible { outline: 3px solid var(--accent, #FFD700); outline-offset: 2px; }


/* ===== A47 (261101) ===== */
/* Pages row: STORY · HOME · JOURNEY · WORD scrolls sideways with snapping; the page you are on is centred by app.js. */
.hm-pagescroll { position: relative; display: flex; align-items: center; gap: 14px; min-inline-size: 0; max-inline-size: min(100%, 22rem);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hm-pagescroll::-webkit-scrollbar { display: none; }
.hm-pagescroll a { flex: none; scroll-snap-align: center; scroll-snap-stop: always; min-block-size: 24px; display: inline-flex; align-items: center; }
header.topbar.shrunk .hm-pagescroll { display: none; }
header.topbar .header-right { min-inline-size: 0; }
/* Bottom bar: three items show, the fourth is a swipe away; the gold thumb sits under the current one. */
.hm-seg { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hm-seg::-webkit-scrollbar { display: none; }
.hm-seg a { flex: 0 0 calc((100% - 6px) / 3); scroll-snap-align: center; }
/* Phone: the floating buttons sit lower (were 14px above the bar, now 4px). */
@media (max-width: 1023px) { :root { --float-bottom: calc(var(--gesture) + 6px + var(--bar-h) + 4px); } }

/* Milestone 1: the collapsed "Previous milestones" button. Navy with a gold inner line; the colours swap in the dark theme. */
.ms-previous { margin: 0 0 18px; }
.ms-previous > summary { list-style: none; display: flex; align-items: center; gap: 14px; min-block-size: 60px; padding: 8px 20px; box-sizing: border-box;
  border-radius: 16px; cursor: pointer; background: #2D3250; color: #FFFFFF;
  box-shadow: inset 0 0 0 3px #2D3250, inset 0 0 0 5px #FFD700; font-weight: 700; }
.ms-previous > summary::-webkit-details-marker { display: none; }
.ms-previous > summary:focus-visible { outline: 3px solid #FFD700; outline-offset: 3px; box-shadow: inset 0 0 0 3px #2D3250, inset 0 0 0 5px #FFD700, 0 0 0 6px #2D3250; }
.ms-ord { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.ms-ord small { font-size: .55em; font-weight: 700; vertical-align: super; margin-inline-start: 1px; }
.ms-label { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.ms-state { font-size: .8rem; font-weight: 500; opacity: .9; }
.ms-previous > summary .chevron { transition: transform .2s; }
.ms-previous[open] > summary .chevron { transform: rotate(180deg); }
.ms-previous[open] > summary { margin-block-end: 14px; }
:root[data-theme="dark"] .ms-previous > summary { background: #FFD700; color: #2D3250; box-shadow: inset 0 0 0 3px #FFD700, inset 0 0 0 5px #2D3250; }
:root[data-theme="dark"] .ms-previous > summary:focus-visible { outline-color: #FFFFFF; box-shadow: inset 0 0 0 3px #FFD700, inset 0 0 0 5px #2D3250, 0 0 0 6px #FFD700; }
@media (prefers-reduced-motion: reduce) { .ms-previous > summary .chevron { transition: none; } }

/* Home row: the last three posts and a More card */
.home-latest { margin: 32px 0; }
.jr-pic-letter { align-items: center; justify-content: center; padding: 0; background: var(--brand-solid); }
.jr-pic-letter img { inline-size: auto; block-size: 80%; object-fit: contain; }
.jr-more > a { align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--brand-solid); color: #fff; min-block-size: 9rem; }
.jr-more-word { font-size: 1.5rem; font-weight: 800; }
.jr-more-hint { font-size: .8rem; opacity: .9; padding-inline: 10px; }
.jr-more-arrow { font-size: 2rem; line-height: 1; color: var(--accent); }

/* Menu: Learn > Tools with the round "i" */
.learn-tool { display: flex; align-items: center; gap: 6px; }
.learn-tool > a { flex: 1 1 auto; min-inline-size: 0; }
.learn-tool .learn-i { flex: none; }

/* ===== A47.1 (261101): footer in two rows, Community column, sliding switch ===== */
/* Order in the page: Get in touch, Community, Learn, Follow, Legal (keyboard and screen reader read it so).
   Phone: Get in touch | Community, Learn across, Follow | Legal.
   Desktop: three on top, Follow and Legal side by side below (Christian's choice B). */
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.footer-cols > .footer-col:nth-child(3) { grid-column: 1 / -1; }
.footer-community .footer-line { font-size: .82rem; line-height: 1.45; margin: 0 0 6px; }
.footer-col.footer-community a.social-pill { inline-size: auto; margin-top: 2px; padding-inline: 14px; }
.footer-tool { display: flex; flex: 0 0 100%; align-items: center; gap: 2px; min-inline-size: 0; margin-bottom: 6px; }
.footer-col .footer-tool a.social-pill { inline-size: auto; flex: 0 1 auto; margin: 0; }
.footer-tool .hm-info { margin-block: -6px; }
.footer-col .hm-info-note { flex: 0 0 100%; margin: 4px 0 8px; }
@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 24px; }
  .footer-cols > .footer-col { grid-column: span 2; }
  .footer-cols > .footer-col:nth-child(3) { grid-column: span 2; }
  .footer-cols > .footer-col:nth-child(4), .footer-cols > .footer-col:nth-child(5) { grid-column: span 3; }
  .footer-cols > .footer-col:nth-child(4) { border-inline-start: none; padding-inline-start: 0; }
  .footer-cols > .footer-col:nth-child(n+4) { border-top: 1px solid var(--border); padding-top: 14px; }
}

/* Licences · Cookies · Credits: one track, one thumb that slides under the choice (like the bottom bar). */
.hm-tabs.hm-slide { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 3px;
  border: 2px solid #2D3250; border-radius: 999px; isolation: isolate; }
.hm-tabs.hm-slide::before { content: ""; position: absolute; z-index: -1; inset-block: 3px;
  inset-inline-start: calc(3px + (100% - 6px) / 3 * var(--seg, 0)); inline-size: calc((100% - 6px) / 3);
  border-radius: 999px; background: #2D3250; transition: inset-inline-start .25s ease; }
/* The modal paints every button navy (".info-modal button", and a dark-theme copy of it), so these
   selectors carry html/body/.info-modal/[role] to outrank both. */
html body .info-modal .hm-tabs.hm-slide button[role="tab"],
html[data-theme="dark"] body .info-modal .hm-tabs.hm-slide button[role="tab"] {
  border: 0; border-radius: 999px; background: transparent; color: inherit; min-height: 44px; padding: 6px 4px; }
html body .info-modal .hm-tabs.hm-slide button[role="tab"].active { color: #FFFFFF; }
.hm-tabs.hm-slide button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
:root[data-theme="dark"] .hm-tabs.hm-slide { border-color: #FFD700; }
:root[data-theme="dark"] .hm-tabs.hm-slide::before { background: #FFD700; }
html[data-theme="dark"] body .info-modal .hm-tabs.hm-slide button[role="tab"].active { color: #2D3250; }
@media (prefers-reduced-motion: reduce) { .hm-tabs.hm-slide::before { transition: none; } }
body.motion-paused .hm-tabs.hm-slide::before, body.reduce-motion .hm-tabs.hm-slide::before { transition: none; }
