:root {
  /* Ad-sampled grey family */
  --ink: #1a1a1a;
  --muted: #5a5755;
  --clay: #d2cecb;
  --clay-soft: #f3efec;
  --clay-wash: #ebe7e4;
  --clay-header: #c4bfbc;
  --royal: #1a3f9c;
  --royal-deep: #0c2a6e;
  /* Above the line — a little darker (keep) */
  --chrome: #ebe7e4;
  --chrome-bright: #f0ece9;
  --chrome-deep: #e2ddd9;
  /* Below the line — same family, a little lighter + bright blotches */
  --page: #f1eeeb;
  --page-bright: #f7f5f3;
  --page-deep: #ebe7e4;
  --card: #f5f3f1;
  --line: #c4bfbc;
  --silver: #b0aba8;
  --action: #1a3f9c;
  --action-hover: #0c2a6e;
  --page-pad-x: 0.75rem;
  /* Left: brand track + rail before text. Right: same total inset before the edge. */
  --brand-track: 4.25rem;
  --content-rail: 1.15rem;
  --mirror-inset: calc(var(--brand-track) + var(--content-rail));
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  /* Frozen top — base wash (glow splotches live on .site-chrome-glow) */
  --chrome-blotch:
    radial-gradient(ellipse 48% 32% at 82% 8%, rgba(255, 255, 255, 0.35) 0%, transparent 68%),
    radial-gradient(ellipse 36% 24% at 14% 12%, rgba(255, 252, 248, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, var(--chrome-bright) 0%, var(--chrome) 55%, var(--chrome-deep) 100%);
  /* Bright white splotchy glow layer over the banner */
  --chrome-glow:
    radial-gradient(ellipse 42% 55% at 12% 20%, rgba(255, 255, 255, 0.95) 0%, transparent 62%),
    radial-gradient(ellipse 38% 48% at 48% 8%, rgba(255, 255, 255, 0.88) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 88% 18%, rgba(255, 255, 255, 0.98) 0%, transparent 60%),
    radial-gradient(ellipse 34% 42% at 28% 75%, rgba(255, 252, 250, 0.75) 0%, transparent 68%),
    radial-gradient(ellipse 40% 50% at 72% 70%, rgba(255, 255, 255, 0.82) 0%, transparent 64%),
    radial-gradient(ellipse 28% 36% at 58% 40%, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
  /* Below the line — lighter ground + ad-like white/silver brightness blotches */
  --page-blotch:
    radial-gradient(ellipse 55% 38% at 78% 18%, rgba(255, 255, 255, 0.9) 0%, transparent 68%),
    radial-gradient(ellipse 42% 30% at 12% 28%, rgba(248, 248, 248, 0.75) 0%, transparent 70%),
    radial-gradient(ellipse 60% 42% at 52% 48%, rgba(255, 255, 255, 0.7) 0%, transparent 72%),
    radial-gradient(ellipse 45% 32% at 90% 62%, rgba(244, 244, 244, 0.72) 0%, transparent 68%),
    radial-gradient(ellipse 50% 36% at 22% 78%, rgba(255, 255, 255, 0.78) 0%, transparent 70%),
    radial-gradient(ellipse 58% 40% at 65% 92%, rgba(250, 250, 250, 0.8) 0%, transparent 72%),
    linear-gradient(180deg, var(--page-bright) 0%, var(--page) 45%, var(--page-deep) 100%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  /* Below the shelf-row line: lighter grey + bright blotches */
  background-color: var(--page);
  background-image: var(--page-blotch);
  background-attachment: fixed;
  line-height: 1.55;
}
a { color: var(--action); }
/*
  Equal outer pad. Brand in left track. Text starts after brand+rail,
  and stops short of the far right by that same distance.
*/
.site-frame {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
  padding: 0.55rem var(--page-pad-x) 0;
}
/* Brand → nav → heading → ad → shelf/Tools: frozen. Lists scroll below. */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: var(--brand-track) minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto;
  column-gap: var(--content-rail);
  row-gap: 0.35rem;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0 0 0.45rem;
  background: transparent;
  border-bottom: none;
  overflow: visible;
}
/* Frozen top color — full viewport width, including far left */
.site-chrome::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background-color: var(--chrome);
  background-image: var(--chrome-blotch);
  background-attachment: fixed;
  pointer-events: none;
}
/* Bright white splotchy glow — layer above chrome wash, under nav/brand */
.site-chrome-glow {
  position: absolute;
  top: -0.55rem;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  background-image: var(--chrome-glow);
  background-attachment: fixed;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.95;
}
.site-chrome > .brand,
.site-chrome > .chrome-end,
.site-chrome > .page-heading,
.site-chrome > .chrome-below-slot {
  position: relative;
  z-index: 2;
}
/* Rule under All / shelf row — full page width to the left (and right) */
.site-chrome::after {
  content: "";
  grid-column: 1 / -1;
  display: block;
  height: 1px;
  background: var(--line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0.15rem;
}
.brand {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  font-family: var(--serif);
  font-size: 1.5625rem; /* ~25% larger than 1.25rem */
  font-weight: 700;
  color: var(--action);
  text-decoration: none;
  padding: 0.15rem 0;
  margin: 0;
  white-space: nowrap;
  background: transparent;
}
/* Nav + lesson progress: same right column so Bookmark lines up under Home */
.chrome-end {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  z-index: 2;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.15rem 0;
  background: transparent;
}
.page-heading {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0.25rem 0.75rem 0 0;
  background: transparent;
  min-width: 0;
  max-width: 100%;
  align-self: start;
}
.page-heading .eyebrow {
  margin: 0 0 0.3rem;
}
.page-heading h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.page-heading:empty {
  display: none;
}
/* Directly under Home (start of chrome-end / nav pack) */
.progress-actions-chrome {
  margin: 0.2rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
}
.progress-actions-chrome.progress-guest {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .chrome-end {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  .progress-actions-chrome {
    white-space: normal;
  }
}
/* Spirit Ministries ad — do NOT span rows (that stretched the gray banner empty).
   Sit under Sign out; dove may paint downward via overflow. */
.site-header-ad {
  grid-column: 3;
  grid-row: 1;
  width: 180px;
  min-width: 0;
  justify-self: end;
  align-self: start;
  margin-top: 0.45rem;
  margin-right: -2.5rem;
  padding-top: 0;
  background: transparent;
  overflow: visible;
  z-index: 1;
  /* Keep grid row short; visual height can still overflow */
  height: 2.5rem;
}
.site-nav {
  position: relative;
  z-index: 2;
}
/* site-header-ad stays at z-index 1 so glow can sit under copy */
.site-header-ad .ad-slot {
  display: block;
  width: 100%;
  margin: 0;
}
.site-header-ad .ad-frame {
  min-height: 2.75rem;
  height: auto;
}
.ad-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-frame {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--page);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-sponsor {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
}
/* height: auto keeps aspect ratio — no stretch/morph */
.ad-sponsor-img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  object-fit: contain;
  object-position: center;
}
.site-header-ad .ad-frame-sponsor {
  border: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
/* No box — transparent PNG shapes only */
.site-header-ad .ad-sponsor-img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  /* Anchor top of dove wing; extra height grows downward */
  object-position: top center;
  object-fit: contain;
}
.names-intro {
  margin-bottom: 1.35rem;
}
@media (max-width: 720px) {
  .site-chrome {
    grid-template-columns: 1fr;
  }
  .brand,
  .chrome-end,
  .page-heading,
  .site-header-ad,
  .chrome-lede,
  .shelf-filters {
    grid-column: 1;
  }
  .brand { grid-row: auto; }
  .chrome-end { grid-row: auto; width: 100%; }
  .page-heading { grid-row: auto; }
  .site-header-ad {
    grid-row: auto;
    width: min(280px, 100%);
    height: auto;
  }
  .chrome-lede,
  .shelf-filters { grid-row: auto; }
}
.site-nav > a,
.nav-group-label {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.site-nav > a:hover,
.nav-group-label:hover { color: var(--ink); }
.nav-group {
  position: relative;
}
.nav-group-label::after {
  content: " ▾";
  font-size: 0.7em;
}
.nav-group-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 10.5rem;
  padding: 0.4rem 0;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  z-index: 40;
}
.nav-group:hover .nav-group-menu,
.nav-group:focus-within .nav-group-menu,
.nav-group.open .nav-group-menu {
  display: block;
}
.nav-group-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-group-menu a:hover {
  background: var(--clay-soft);
  color: var(--action);
}
/*
  Body can run under the nav/ad row, but padding-right = brand+rail
  so it stops short of the far right by the same distance text is
  inset from the brand on the left.
*/
.wrap,
.wrap-wide,
.wrap-messages {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.75rem var(--mirror-inset) 2.75rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.chrome-lede {
  grid-column: 2;
  grid-row: 3;
  margin: 0.35rem 0 0.25rem;
  padding: 0 var(--mirror-inset) 0 0;
}
.page-title-block {
  margin: 0 0 1.25rem;
  padding: 0;
  background: none;
  border-radius: 0;
}
.site-footer {
  border-top: none;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  background: var(--page);
}
.hero h1, h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-home .hero {
  padding: 0.15rem 0 0.35rem;
}
.page-heading h1.home-heading {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: min(36rem, 100%);
  white-space: normal;
}
.lede-strong {
  color: var(--ink);
  font-size: 1.2rem;
  max-width: 40rem;
}
.page-home .lede {
  max-width: 40rem;
}
.page-home .home-invite-lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
}
.page-home .cta-row {
  margin: 1rem 0 0.25rem;
}
.home-invite-lead {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-q-carousel {
  margin: 1.25rem 0 0.5rem;
  max-width: 46rem;
  outline: none;
}
.home-q-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 63, 156, 0.35);
  border-radius: 0.55rem;
}
.home-q-viewport {
  overflow: hidden;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #2a2623;
  touch-action: pan-y;
}
.home-q-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.home-q-track.is-dragging {
  transition: none;
}
.home-q-carousel.reduce-motion .home-q-track {
  transition: none;
}
.home-q-panel {
  position: relative;
  flex: 0 0 100%;
  min-height: 17.5rem;
  isolation: isolate;
}
.home-q-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.home-q-scrim {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 17.5rem;
  padding: 1.35rem 1.25rem 1.2rem;
  background:
    linear-gradient(
      180deg,
      rgba(18, 14, 12, 0.28) 0%,
      rgba(18, 14, 12, 0.55) 42%,
      rgba(12, 10, 9, 0.88) 100%
    );
  color: #f7f3ef;
}
.home-q-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.home-q-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-q-list li {
  position: relative;
  margin: 0 0 0.65rem;
  padding: 0 0 0 1.15rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #f4efea;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.home-q-list li:last-child {
  margin-bottom: 0;
}
.home-q-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  color: #f0d9a8;
  font-weight: 700;
  font-family: var(--serif);
}
.home-q-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.7rem;
}
.home-q-prev,
.home-q-next {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.home-q-prev:hover,
.home-q-next:hover,
.home-q-prev:focus-visible,
.home-q-next:focus-visible {
  border-color: var(--action);
  color: var(--action);
  outline: none;
}
.home-q-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.home-q-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--silver);
  cursor: pointer;
}
.home-q-dot.is-active {
  background: var(--action);
  transform: scale(1.18);
}
.home-q-dot:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
@media (min-width: 720px) {
  .home-q-panel,
  .home-q-scrim {
    min-height: 19.5rem;
  }
  .home-q-scrim {
    padding: 1.6rem 1.55rem 1.4rem;
  }
  .home-q-list li {
    font-size: 1.06rem;
  }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6a5e52;
  margin: 0;
}
.lede { font-size: 1.1rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
}
.btn.primary {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.btn.primary:hover { background: var(--action-hover); }
.grid-2 {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.grid-2 article, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem;
}
.post-list, .path-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.post-list li, .path-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list a, .path-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.sub { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.empty { color: var(--muted); }
.shelf-filters {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0.35rem var(--mirror-inset) 0.15rem 0;
  background: transparent;
}
.page-library .chrome-lede {
  grid-row: 3;
}
.page-library .shelf-filters {
  grid-row: 4;
}
.shelf-filters a {
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  background: #fff;
}
.shelf-filters a.on {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.shelf-group {
  margin: 0 0 1.75rem;
}
.shelf-group-heading {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.15rem 0 0.45rem;
  color: var(--ink);
}
.body {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}
.body p { margin: 0 0 1rem; }
/* Occurrence cards: ref → verse lead → How → → First-century (not jammed) */
.body .occurrence {
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--page) 88%, #fff);
}
.body .occurrence-ref {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--royal);
  margin: 0 0 0.7rem;
}
.body .occurrence-lead {
  margin: 0 0 0.15rem;
  line-height: 1.55;
  color: var(--ink);
}
.body .occurrence-how,
.body .occurrence-use {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}
.body .occurrence-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.body .occurrence-answer {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.body .occurrence-arrow {
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--royal);
}
.body .occurrence-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.55;
}
.body .occurrence-fc-verse {
  margin: 1.15rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}
.body .occurrence-fc-verse:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: none;
}
.body .occurrence-fc-ref {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--royal);
  margin: 0 0 0.4rem;
}
.body .occurrence-fc-text {
  margin: 0;
  line-height: 1.55;
}
/* Visible scripture quotes (CSS-drawn so they always show) */
q.scripture {
  quotes: none;
  font-style: normal;
  color: inherit;
}
q.scripture::before,
q.scripture::after {
  color: var(--royal);
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15em;
  line-height: 0;
}
q.scripture::before { content: "\201C"; margin-right: 0.06em; }
q.scripture::after { content: "\201D"; margin-left: 0.06em; }
.body h2, .body h3 {
  font-family: var(--serif);
  margin: 1.75rem 0 0.6rem;
}
.body h2.lesson-section {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  padding-top: 0.35rem;
}
.plain {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 1.02rem;
}
/* Lesson ↔ Deep Dive left rail + book path */
.wrap-with-rail {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  column-gap: 1.35rem;
  align-items: start;
}
/*
  Color only: fill the leftmost strip with the same chrome as the top.
  Fixed paint — does not change Lesson / In this book / content box sizes.
*/
body.has-lesson-rail::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: calc(max(0px, (100vw - 92rem) / 2) + var(--page-pad-x) + 13.5rem);
  background-color: var(--chrome);
  background-image: var(--chrome-blotch);
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}
.lesson-rail {
  position: sticky;
  top: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0.15rem 0 0;
  max-height: calc(100vh - 2rem);
  background: transparent;
}
.lesson-rail-label {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.lesson-rail-link {
  display: block;
  text-decoration: none;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}
.lesson-rail-link:hover {
  background: var(--clay-soft);
  border-color: var(--silver);
  color: var(--action);
}
.lesson-rail-link.on {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.lesson-rail-link.on:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: #fff;
}
/* In this book: white island on the chrome rail */
.lesson-rail-path {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.6rem 0.7rem;
  border-top: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}
.lesson-rail-path-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: var(--ink);
}
.lesson-rail-path-summary::-webkit-details-marker {
  display: none;
}
.lesson-rail-path-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  overflow-y: auto;
  max-height: min(52vh, 28rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.lesson-rail-path-link {
  display: block;
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  border-radius: 0.3rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}
.lesson-rail-path-link:hover {
  background: var(--clay-soft);
  color: var(--action);
}
.lesson-rail-path-link.on {
  background: var(--clay-soft);
  color: var(--action);
  font-weight: 700;
}
.lesson-rail-n {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.lesson-rail-path-link.on .lesson-rail-n {
  color: var(--action);
}
.lesson-rail-path-link .publish-status {
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: middle;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}
.post-list .publish-status,
.path-list .publish-status {
  margin-left: 0.4rem;
  vertical-align: middle;
}
.lesson-rail-path-all {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--action);
  text-decoration: none;
}
.lesson-rail-path-all:hover {
  text-decoration: underline;
}
/* Main lesson / deep-dive body: white content island */
.wrap-with-rail > .post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 1.35rem 1.5rem 1.75rem;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}
.crumb-book {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.crumb-book:hover {
  color: var(--action);
  text-decoration: underline;
}
.crumb-sep {
  margin: 0 0.15rem;
}
@media (max-width: 720px) {
  .wrap-with-rail {
    grid-template-columns: 1fr;
    row-gap: 0.85rem;
  }
  body.has-lesson-rail::before {
    display: none;
  }
  .lesson-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    max-height: none;
  }
  .lesson-rail-label {
    width: 100%;
    margin: 0;
  }
  .lesson-rail-path {
    width: 100%;
    flex: none;
    margin-top: 0.25rem;
  }
  .lesson-rail-path:not([open]) .lesson-rail-path-list,
  .lesson-rail-path:not([open]) .lesson-rail-path-all {
    display: none;
  }
  .lesson-rail-path-list {
    max-height: 14rem;
  }
}
.deep-dive-qa h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.5rem;
}
.qa-block {
  margin: 0 0 1.5rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.qa-block:last-child {
  border-bottom: none;
}
.qa-q {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  line-height: 1.35;
  color: var(--ink);
}
.qa-a {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.qa-verses {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}
.qa-verses-label {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.qa-verse {
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
}
.qa-verse:last-child {
  margin-bottom: 0;
}
.qa-verse-ref {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.qa-verse-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}
.deep-dive-close {
  margin-top: 1.5rem;
}
.scripture-attribution {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 42rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.field {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font: inherit;
  background: var(--page);
}
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.help { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 0; }
.err { color: #b91c1c; font-size: 0.9rem; margin: 0.25rem 0 0; }
.flash {
  list-style: none;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.4rem;
}
.search-form { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.name-group {
  margin-top: 2.25rem;
}
.name-group h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.name-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--page);
}
.name-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.name-table th,
.name-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.name-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.name-table tr:last-child td { border-bottom: none; }
.name-en {
  font-weight: 700;
  color: var(--ink);
  min-width: 7.5rem;
}
.ot-concept-label {
  display: block;
}
.ot-concept-ref {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.88em;
  color: var(--muted);
}
.name-orig {
  min-width: 11rem;
}
.orig-main {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.orig-lang,
.orig-from {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.name-refs {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 7rem;
}
.name-helps {
  font-weight: 600;
  color: var(--ink);
  min-width: 12rem;
  line-height: 1.4;
}
.names-footnote {
  margin-top: 2rem;
  max-width: 40rem;
}
@media (min-width: 720px) {
  .page-home .grid-2 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Scroll to top — all pages */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover {
  border-color: var(--action);
  color: var(--action);
}

/* Accounts + progress */
.account-form {
  max-width: 28rem;
  margin: 1rem 0 1.5rem;
}
.account-form .form-row {
  margin: 0 0 1rem;
}
.account-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.account-form .form-row-check label {
  display: inline;
  font-weight: 400;
}
.account-form .field {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font: inherit;
  background: #fff;
}
.account-form .field-error,
.form-errors {
  color: #8b1e1e;
  font-size: 0.92rem;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--royal);
  border-radius: 0.35rem;
  background: var(--royal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.progress-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
}
.btn-quiet {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--royal); color: var(--royal); }
.progress-list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}
.progress-list li { margin: 0.35rem 0; }
.nav-logout { display: inline; margin: 0; }
.nav-text-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.draft-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #b45309;
  border-radius: 0.4rem;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 600;
}
.publish-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.btn-publish {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #f5f5f4;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-publish.is-live {
  border-color: #166534;
  background: #ecfdf5;
  color: #14532d;
}

/* Music page */
.music-section {
  margin: 0 0 2.25rem;
  max-width: 42rem;
}
.music-section h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.music-lede {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}
.music-klove {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.music-audio {
  width: min(100%, 28rem);
  max-width: 100%;
}
.music-credit {
  margin: 0;
}
.music-select-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.music-select {
  width: min(100%, 28rem);
  margin-bottom: 1rem;
}
.music-yt-wrap {
  position: relative;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 9;
  background: #111;
}
.music-yt-wrap iframe,
.music-yt-wrap #yt-player {
  width: 100%;
  height: 100%;
}
.music-request-form {
  margin-top: 0.5rem;
}

/* Daily reading (signed-in) */
.reading-beat-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.reading-beat-list li { margin: 0.45rem 0; }
.reading-check {
  color: var(--royal);
  font-weight: 700;
  margin-left: 0.25rem;
}
.reading-pager {
  margin-top: 1.5rem;
  justify-content: space-between;
}
.reading-beat-body {
  max-width: 40rem;
}
.reading-day-checks { margin-top: 0.5rem; }
.accounts-home .btn.primary,
.reading-today .btn.primary {
  margin-left: 0.5rem;
}

/* Publish desk (staff) */
.publish-desk-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.publish-desk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.publish-desk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  flex: 1;
}
.publish-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
}
.publish-status.live {
  background: #ecfdf5;
  color: #14532d;
}
.publish-status.draft {
  background: #fff7ed;
  color: #9a3412;
}
.publish-desk-bulk {
  margin: 0 0 1.25rem;
}
.publish-desk-bulk-form {
  display: inline;
  margin: 0;
}
.publish-desk-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.publish-desk-cb {
  width: 1rem;
  height: 1rem;
  margin: 0;
  cursor: pointer;
}
.publish-desk-row .btn,
.publish-desk-row .btn-quiet {
  flex: 0 0 auto;
}
