/* ==========================================================================
   site.css — layout and components.

   There are NO color codes or font names in this file. It only ever uses the
   named values from the theme file (var(--something)). That is what makes the
   look changeable from one place.

   Sections:  1 Base   2 Header & footer   3 Buttons & small parts
              4 Lists of sermons   5 Book wall & drill-down   6 Reading pages
              7 Home   8 Forms   9 Player   10 Small screens & preferences
              11 Order switch & tabs   12 Article lists   13 Magazine   14 Reading pages with a side column
              15 Scripture quotations & prose   16 Bible studies   17 Search   18 Small screens (new parts)
   ========================================================================== */

/* 1. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; font-family: var(--font-ui); font-size: var(--text-size); line-height: 1.5;
  background: var(--bg); color: var(--fg);
}
/* Each page is one of two "rooms". The room sets the working colors below,
   and every component uses the working colors — so components never need to
   know which room they are in. */
.room-index {
  --bg: var(--index-bg); --surface: var(--index-surface); --fg: var(--index-text); --muted: var(--index-muted);
  --line: var(--index-line); --link: var(--index-link); --accent: var(--index-accent); --focus: var(--index-focus);
}
.room-reading {
  --bg: var(--read-bg); --surface: var(--read-surface); --fg: var(--read-text); --muted: var(--read-muted);
  --line: var(--read-line); --link: var(--read-link); --accent: var(--read-accent); --focus: var(--read-focus);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-ui); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h2 { font-size: 1.35rem; margin-top: 2.2em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main { display: block; min-height: 60vh; padding-bottom: 4rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.1rem; }
.narrow { max-width: 44rem; padding-top: 2rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-paper); color: var(--c-text); padding: .6rem 1rem; z-index: 50; }
.skip-link:focus { left: 0; }
.dot { color: var(--muted); padding-inline: .15em; }
.label, .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker { margin-bottom: .5rem; }
.kicker a { color: inherit; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

/* 2. HEADER & FOOTER ------------------------------------------------------ */
.site-header { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line); --focus: #fff; }
.header-row { display: flex; align-items: center; gap: 1rem; padding-block: .8rem; flex-wrap: wrap; }
.brand { color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand img { height: var(--logo-height); width: auto; }
.brand { display: grid; line-height: 1.15; }
.wordmark { font-weight: 700; font-size: 1.32rem; letter-spacing: -.015em; }
.brand-line { font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--header-link); opacity: .9; margin-top: .15rem; }
.header-search { flex: 1 1 16rem; display: flex; min-width: 0; }
.header-search input {
  flex: 1; min-width: 0; font: inherit; padding: .55rem .8rem; color: var(--c-text); background: var(--c-paper);
  border: 1px solid var(--header-line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
}
.header-search button {
  font: inherit; font-weight: 600; padding: .55rem .9rem; cursor: pointer; color: var(--c-on-accent); background: var(--header-accent);
  border: 1px solid var(--header-accent); border-radius: 0 var(--radius) var(--radius) 0;
}
.header-subscribe { flex: 0 0 auto; }
.site-header .btn-accent { background: var(--header-accent); border-color: var(--header-accent); }
.primary-nav { display: flex; gap: .25rem 1.6rem; flex-wrap: wrap; padding-bottom: .5rem; }
.primary-nav a { color: var(--header-text); text-decoration: none; font-weight: 600; padding: .35rem 0; border-bottom: 3px solid transparent; }
.primary-nav a:hover { border-bottom-color: var(--header-line); }
.primary-nav a[aria-current] { border-bottom-color: var(--header-link); }

.site-footer { background: var(--header-bg); color: var(--header-text); border-top: 1px solid var(--header-line); padding-block: 2.5rem 6rem; font-size: .95rem; --focus: #fff; }
.site-footer a { color: var(--header-link); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid li { margin-bottom: .45rem; }
.footer-name { font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; }
.footer-head { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-bottom: .7rem; }
.footer-verse { font-family: var(--font-read); font-style: italic; }
.footer-small { font-size: .85rem; opacity: .85; }

/* 3. BUTTONS & SMALL PARTS ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .4em; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .55rem .95rem; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--fg);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--fg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--c-on-accent); }
.btn-accent:hover { filter: brightness(1.12); border-color: var(--accent); }
.btn-quiet { border-color: transparent; color: var(--link); padding-inline: .5rem; }
.btn-quiet:hover { border-color: var(--line); }
.btn-play::before { content: ""; width: 0; height: 0; border-left: .62em solid currentColor; border-top: .4em solid transparent; border-bottom: .4em solid transparent; }
.btn-play.is-playing::before { border: 0; width: .62em; height: .8em; border-left: .22em solid currentColor; border-right: .22em solid currentColor; }

.crumbs { padding-top: .9rem; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.crumbs li + li::before { content: "›"; color: var(--muted); margin-right: .5rem; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--fg); }

.page-head { padding-block: 1.6rem .4rem; }
.subnav { margin-block: .6rem 1.6rem; }
.subnav ul { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.subnav li { flex: 0 0 auto; }
.subnav a { display: block; white-space: nowrap; padding: .55rem .8rem; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a:hover { border-bottom-color: var(--line); }
.subnav a[aria-current] { border-bottom-color: var(--link); color: var(--link); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; }
.section-head h2 { margin: 0 0 .6rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.panel h2 { margin-top: 0; font-size: 1.25rem; }
.panel h2 a { color: var(--fg); }
.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: .9rem 1.1rem; }
.callout p:last-child { margin-bottom: 0; }
.empty { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--muted); }
.chip {
  display: inline-block; padding: .28rem .7rem; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; font-weight: 500;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--fg); }
.chip[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--c-on-accent); }
.chip[aria-current] .muted { color: inherit; }
.chip.is-empty { opacity: .4; border-style: dashed; }
.tags, .shortcuts { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.plain-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

/* 4. LISTS OF SERMONS ------------------------------------------------------ */
.sermon-list { margin-top: 1rem; }
.list-tools { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: flex-start; justify-content: space-between; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs a { display: block; padding: .45rem .8rem; border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a:hover { background: var(--surface); }
.tabs a[aria-current] { background: var(--surface); box-shadow: inset 0 -3px 0 var(--link); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; flex: 1 1 22rem; justify-content: flex-end; }
.filter-search input, .filters select, .stack-form input, .stack-form textarea, .stack-form select, .search-big input {
  font: inherit; padding: .5rem .7rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--c-paper); color: var(--c-text); max-width: 100%;
}
.filter-search { flex: 1 1 12rem; max-width: 20rem; }
.filter-search input { width: 100%; }
.filter-panel { flex: 0 1 auto; }
.filter-panel[open] { flex-basis: 100%; }
.filter-panel summary { display: flex; list-style: none; width: max-content; margin-left: auto; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: "▾"; font-size: .8em; }
.filter-panel[open] summary::after { content: "▴"; }
.filter-fields { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: .8rem; padding: 1rem; background: var(--surface); border-radius: var(--radius); }
.filter-fields label, .filters-inline label { display: grid; gap: .25rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.filter-fields select { width: 100%; }
.filter-go { display: flex; gap: .5rem; align-items: end; }
.filters-inline { justify-content: flex-start; align-items: end; margin-block: 1rem; }
.list-count { color: var(--muted); font-size: .92rem; margin: 1rem 0 .4rem; font-variant-numeric: tabular-nums; }

.s-list { border-top: 1px solid var(--line); }
.s-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.s-row .s-actions { align-self: center; }
.s-row.is-compact { grid-template-columns: 5.2rem minmax(0, 1fr); gap: .15rem .8rem; padding: .65rem 0; }
.s-row.is-compact .s-title { font-size: .98rem; }
.s-row.is-compact .ref-card-num { font-size: 1rem; }
.s-row.is-compact .s-meta { font-size: .84rem; }
.s-thumb { display: block; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 1px); overflow: hidden; background: var(--surface); text-decoration: none; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .1rem; height: 100%; padding: .4rem .6rem; background: var(--refcard-bg); color: var(--refcard-text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ref-card-book { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.ref-card-num { font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.kind-card { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.kind-card .ref-card-num { font-size: .85rem; font-weight: 500; }
.s-title, .a-title { margin: 0 0 .15rem; font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
.a-title a { color: var(--fg); text-decoration: none; }
.a-title a:hover { text-decoration: underline; }
.s-sum { margin: .35rem 0 0; font-family: var(--font-read); font-size: .98rem; line-height: 1.5; color: var(--fg); opacity: .88; max-width: 46rem; }
.s-title a { color: var(--fg); text-decoration: none; }
.s-title a:hover { text-decoration: underline; }
.s-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.s-meta a { color: inherit; }
.s-refs, .sermon-refs { margin: .15rem 0 0; font-size: .88rem; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.ref { text-decoration: none; }
.ref:hover { text-decoration: underline; }
.ref-sep { color: var(--muted); }
.s-actions { display: flex; gap: .3rem; align-items: center; }
.s-row.is-heard .s-title a::after { content: "Heard"; margin-left: .6rem; padding: .08rem .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); vertical-align: middle; }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.pagination > :last-child { justify-self: end; }
.pagination > :first-child { justify-self: start; }
.page-of { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }

/* 5. BOOK WALL & DRILL-DOWN ------------------------------------------------ */
.wall-testament { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .6rem; }
.wall-grid { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); }
.wall-book {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; min-height: 5rem; padding: .6rem .7rem .8rem;
  background: var(--surface); color: var(--fg); border-radius: var(--radius); text-decoration: none; overflow: hidden;
}
/* Depth: the more sermons a book has, the more of the depth color is mixed in. */
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .wall-book { background: color-mix(in srgb, var(--c-depth) calc(var(--depth) * 45%), var(--surface)); }
}
.wall-book:hover { outline: 2px solid var(--fg); outline-offset: -2px; }
.wall-name { font-weight: 600; font-size: .98rem; line-height: 1.15; }
.wall-count { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.wall-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--depth) * 100%); background: var(--c-depth); }
.wall-book.is-empty { color: var(--muted); }
.wall-book.is-empty .wall-count { font-weight: 400; }
.wall-compact .wall-grid { grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: .35rem; }
.wall-compact .wall-book { min-height: 3.6rem; padding: .45rem .5rem .6rem; }
.wall-compact .wall-name { font-size: .82rem; }
.wall-compact .wall-count { font-size: .95rem; }
.wall-note { margin-top: 1.4rem; }

.drill h2 { margin-top: .4rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.num-grid { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.4rem; }
.num { position: relative; display: grid; place-items: center; min-width: 2.9rem; height: 2.9rem; padding: 0 .3rem; border-radius: var(--radius); background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.num.has { color: var(--fg); box-shadow: inset 0 -4px 0 var(--c-depth); }
.num:hover { outline: 2px solid var(--fg); outline-offset: -2px; }
.num-n { position: absolute; top: 2px; right: 4px; font-size: .62rem; font-weight: 600; color: var(--muted); }
.match-switch { color: var(--muted); font-size: .95rem; }

.year-list { border-top: 1px solid var(--line); }
.year-row { display: grid; grid-template-columns: 11rem 1fr; gap: .6rem 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.year-link { text-decoration: none; color: var(--fg); }
.year-num { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.month-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.month-chips-lg { margin-bottom: .6rem; }

.card-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.card { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; height: 100%; transition: border-color .12s, box-shadow .12s; }
.card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.card-title { font-weight: 700; font-size: 1.08rem; }
.card-text { font-size: .95rem; }
.study-list { display: grid; gap: .7rem; }
.year-block h2 { margin-top: 1.8rem; font-variant-numeric: tabular-nums; }

.people-list { border-top: 1px solid var(--line); }
.person-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.person-row:hover .person-name { text-decoration: underline; }
.person-name { font-weight: 600; font-size: 1.08rem; }
.people-list-small .person-name { font-weight: 500; font-size: 1rem; }

/* 6. READING PAGES --------------------------------------------------------- */
.sermon, .article, .issue, .study { padding-top: 1.4rem; max-width: 54rem; }
.issue { max-width: var(--wrap); }
.sermon-meta, .byline { font-size: 1.05rem; color: var(--muted); }
.sermon-meta a, .byline a { color: var(--fg); font-weight: 600; }
.article .subtitle { font-size: 1.2rem; font-style: italic; color: var(--muted); margin: -.25rem 0 .6rem; }
.byline .place { white-space: nowrap; }
.printed-link { margin-top: 2rem; font-size: .95rem; }
.sermon-refs { font-size: 1rem; }
.sermon-refs .label { margin-right: .5rem; }
.media { margin-block: 1.4rem; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-ink); cursor: pointer; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-facade-label { position: absolute; left: 1rem; bottom: .9rem; color: #fff; font: 600 1rem var(--font-ui); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.play-badge { position: absolute; left: 50%; top: 50%; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; border-radius: 50%; background: rgba(0, 0, 0, .62); border: 2px solid #fff; }
.play-badge::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 1.2rem solid #fff; border-top: .75rem solid transparent; border-bottom: .75rem solid transparent; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.media-audio audio { width: 100%; }
.media-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-top: .6rem; }
.heard-toggle { font-size: .95rem; color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.heard-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.walk { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 2.4rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.walk a { display: grid; gap: .1rem; text-decoration: none; color: var(--fg); }
.walk-dir { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.walk-title { font-weight: 600; }
.walk-later { text-align: right; }
.walk-pos { margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.walk-pos a { color: var(--muted); }
.more-by { margin-top: 1.6rem; }
/* Sermon page: the main column, the side column (earlier/later, "More on …", "All sermons by …")
   and the transcript. On a phone they simply stack in that order. */
.sermon-side .related h2 { font-size: 1.15rem; }
.sermon-transcript { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.sermon-transcript h2 { margin-top: 0; }
.transcript-note { color: var(--muted); font-size: .92rem; max-width: var(--measure); }
.transcript h3 { font-family: var(--font-ui); font-size: 1.1rem; margin: 2em 0 .8em; }
.transcript-top { margin-top: 2rem; font-size: .92rem; }
@media (min-width: 64rem) {
  .sermon { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 1fr) 20rem; grid-template-rows: auto 1fr; column-gap: 3rem; align-items: start; }
  .sermon-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .sermon-side { grid-column: 2; grid-row: 1 / span 2; padding-top: 4.6rem; }
  .sermon-transcript { grid-column: 1; grid-row: 2; min-width: 0; }
  .sermon-side .walk { grid-template-columns: 1fr; gap: .7rem; margin-top: 0; }
  .sermon-side .walk-later { text-align: left; grid-row: 2; }
  .sermon-side .walk-pos { grid-row: 3; }
  .sermon-side .walk-cell:empty, .sermon-side .walk-cell:not(:has(a)) { display: none; }
  .sermon-side .related h2 { margin-top: 1.6rem; }
  .sermon-side .s-row { grid-template-columns: 5.4rem minmax(0, 1fr); gap: .15rem .8rem; }
  .sermon-side .s-actions { grid-column: 2; padding-top: .2rem; }
  .sermon-side .s-title { font-size: 1rem; }
  .sermon-side .ref-card-num { font-size: 1rem; }
}
.prose { font-family: var(--font-read); font-size: 1.14rem; line-height: 1.7; max-width: var(--measure); }
.prose h2 { font-family: var(--font-ui); margin-top: 1.8em; }

.part-list { border-top: 1px solid var(--line); }
.part-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.part-title { flex: 1 1 14rem; font-weight: 600; }
.article-list { max-width: var(--measure); }

/* 7. HOME ------------------------------------------------------------------ */
.home { padding-top: 1.6rem; }
.home-lead { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.lead-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1rem; background: var(--surface); }
.lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead-sermon h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.lead-sermon h1 a { color: var(--fg); text-decoration: none; }
.lead-sermon h1 a:hover { text-decoration: underline; }
.lead-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.lead-side { display: grid; gap: 1rem; }
.home-pair { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2.6rem; }
.home-empty { padding-block: 3rem; }
.continue-panel { margin-bottom: 1rem; }

/* 8. FORMS ------------------------------------------------------------------ */
.stack-form { display: grid; gap: .4rem; max-width: 26rem; margin-block: 1.2rem; }
.stack-form label { font-weight: 600; margin-top: .6rem; }
.stack-form button { justify-self: start; margin-top: 1rem; }
.form-error { background: #FBE9E7; color: #7A1C12; border-left: 4px solid #B3261E; padding: .7rem 1rem; border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; }
.search-big { display: flex; gap: .5rem; margin-block: 1rem 1.4rem; max-width: 40rem; }
.search-big input { flex: 1; min-width: 0; font-size: 1.1rem; padding: .7rem .9rem; }
.notfound p { margin-top: 1rem; }

/* 9. PLAYER (the listening bar at the bottom of the screen) ------------------ */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--header-bg); color: var(--header-text); border-top: 1px solid var(--header-line); padding-block: .5rem; --focus: #fff; }
.player-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.player-title { flex: 1 1 12rem; min-width: 0; color: var(--header-text); font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player audio { flex: 2 1 16rem; min-width: 0; height: 2.4rem; }
.player-close { font: inherit; font-size: .85rem; background: transparent; color: var(--header-text); border: 1px solid var(--header-line); border-radius: var(--radius); padding: .35rem .6rem; cursor: pointer; }
body.has-player main { padding-bottom: 8rem; }

/* 10. SMALL SCREENS & PREFERENCES -------------------------------------------- */
@media (max-width: 46rem) {
  .header-subscribe { order: 2; margin-left: auto; }
  .header-search { order: 3; flex-basis: 100%; }
  .home-lead { grid-template-columns: 1fr; }
  .s-row { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .s-actions { grid-column: 2; padding-top: .3rem; }
  .ref-card-num { font-size: 1rem; }
  .year-row { grid-template-columns: 1fr; }
  .walk { grid-template-columns: 1fr; }
  .walk-later { text-align: left; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination .page-of, .pagination > span:empty { display: none; }
  .filters { justify-content: flex-start; }
  .filter-panel summary { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .player, .subnav, .crumbs, .list-tools, .media, .walk, .pagination, .sermon-side, .transcript-top { display: none !important; }
  body { background: #fff; color: #000; }
}


/* 11. ORDER SWITCH & TABS ---------------------------------------------------- */
.sort-switch { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--c-paper); overflow: hidden; font-size: .92rem; }
.sort-label { padding: .42rem .7rem; color: var(--c-text-muted); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border-right: 1px solid var(--line); }
.sort-switch a { padding: .42rem .8rem; color: var(--c-text); text-decoration: none; font-weight: 600; border-right: 1px solid var(--line); }
.sort-switch a:last-child { border-right: 0; }
.sort-switch a:hover { background: var(--c-page); }
.sort-switch a[aria-current] { background: var(--accent); color: var(--c-on-accent); }
.list-tools { align-items: center; }
.kind-tabs { margin: .4rem 0 1.2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.h-count { font-size: .9rem; font-weight: 500; }
.jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card-study .kicker { margin-bottom: .15rem; }
.card-study .card-text { color: var(--muted); font-size: .93rem; margin-top: .2rem; }
.people-list-cols { column-width: 20rem; column-gap: 2.4rem; border-top: 0; }
.people-list-cols li { break-inside: avoid; }
.people-list-cols .person-row { padding: .5rem 0; }
.people-list-cols .person-name { font-size: 1rem; font-weight: 600; }

/* 12. ARTICLE LISTS ----------------------------------------------------------- */
.a-list { border-top: 1px solid var(--line); }
.a-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .2rem 1.1rem; align-items: start; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.a-row.is-compact, .issue-feature-list .a-row { grid-template-columns: minmax(0, 1fr); padding: .65rem 0; }
.a-row.is-compact .a-title { font-size: .98rem; }
.a-row.is-compact .s-meta { font-size: .84rem; }
.a-tab { display: grid; justify-items: center; align-content: center; gap: .05rem; padding: .5rem .3rem; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: calc(var(--radius) - 1px); background: var(--c-paper); color: var(--c-text); text-decoration: none; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-tab-m { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); }
.a-tab-y { font-size: 1.05rem; font-weight: 700; }
.a-row .s-refs { margin-top: .2rem; }

/* 13. MAGAZINE ---------------------------------------------------------------- */
.issue-feature { display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); gap: 0 2.2rem; align-items: start; padding: 1.5rem 1.6rem; background: var(--c-paper); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); }
.issue-feature-head h2 { margin: 0 0 .2rem; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.issue-feature-head h2 a { color: var(--fg); text-decoration: none; }
.issue-feature-head h2 a:hover { text-decoration: underline; }
.issue-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .9rem; }
.issue-sub { font-size: .93rem; color: var(--muted); margin: 0; }
.issue-feature-list { border-top: 0; }
.issue-feature-list .a-row:first-child { padding-top: 0; }
.issue-feature-more { grid-column: 2; margin: .8rem 0 0; font-weight: 600; }
.issue-head { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.issue-head h1 { margin-bottom: .2rem; }
.issue-meta { color: var(--muted); margin: 0 0 .3rem; }
.toc-h { margin-top: 1.4rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.6rem; counter-reset: none; }
.toc-item { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 0 .7rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.toc-item.is-lead { grid-column: 1 / -1; border-top: 0; padding-top: .3rem; }
.toc-n { font-size: 1.05rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .12rem; }
.toc-title { margin: 0 0 .15rem; font-size: 1.14rem; font-weight: 700; letter-spacing: -.005em; }
.toc-title a { color: var(--fg); text-decoration: none; }
.toc-title a:hover { text-decoration: underline; }
.toc-item.is-lead .toc-title { font-size: clamp(1.4rem, 2.8vw, 1.8rem); }
.toc-item.is-lead .toc-n { font-size: 1.4rem; padding-top: .2rem; }
.toc-item.is-lead .s-sum { font-size: 1.08rem; max-width: 52rem; }
.toc-sub { margin: 0 0 .2rem; font-style: italic; color: var(--muted); }
.toc .s-refs { margin-top: .2rem; }

/* 14. READING PAGES WITH A SIDE COLUMN (articles, studies; sermons share the pattern) */
.article-head h1, .study-head h1, .sermon-head h1 { margin-bottom: .35rem; }
.article-side .related h2, .study-side .related h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.related h2 a { color: inherit; }
.rel-kind { margin: 1.1rem 0 .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rel-all { text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; }
.rel-list { border-top: 1px solid var(--line); }
.rel-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.rel-list a { font-weight: 600; color: var(--fg); text-decoration: none; }
.rel-list a:hover { text-decoration: underline; }
.rel-more { margin: .7rem 0 0; font-size: .93rem; font-weight: 600; }
.walk-issue { margin-top: 2.2rem; }
@media (min-width: 64rem) {
  .has-side { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 3.2rem; align-items: start; }
  .has-side > :first-child { min-width: 0; }
  .article-side, .study-side { padding-top: 3.4rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; }
  .article-side .related:first-child h2, .study-side .related:first-child h2 { margin-top: 0; }
}

/* 15. SCRIPTURE QUOTATIONS & PROSE --------------------------------------------- */
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-family: var(--font-ui); font-size: 1.1rem; margin: 1.8em 0 .6em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.05em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin: 0 0 1.05em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.3em 0; padding: .1em 0 .1em 1.1em; border-left: 3px solid var(--line); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose blockquote footer { margin-top: .4em; font-style: normal; font-family: var(--font-ui); font-size: .88rem; color: var(--muted); }
.prose blockquote.scripture { margin: 1.4em 0; padding: .95em 1.2em 1em; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); font-style: normal; }
.prose blockquote.scripture footer { margin-top: .55em; font-size: .86rem; font-weight: 600; letter-spacing: .04em; text-align: right; font-variant-numeric: tabular-nums; }
.prose blockquote.scripture footer::before { content: "— "; }
.prose blockquote.scripture footer a { text-decoration: none; }
.prose blockquote.scripture footer a:hover { text-decoration: underline; }
.ref-link { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1px; white-space: nowrap; }
.article-body > p:first-child::first-letter { font-size: 1.15em; }
mark { background: color-mix(in srgb, var(--c-depth) 38%, transparent); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* 16. BIBLE STUDIES ------------------------------------------------------------ */
.study-group { margin-top: 2.2rem; }
.study-group h2 { margin: 0 0 .2rem; }
.study-group > .muted { margin-bottom: .9rem; }
.study-cards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.study-tile { display: grid; grid-template-rows: auto 1fr; background: var(--c-paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--c-text); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.study-tile:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.study-tile-pic { position: relative; aspect-ratio: 16 / 9; background: var(--header-bg); overflow: hidden; }
.study-tile-pic img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.study-tile-pic .ref-card { background: var(--header-bg); color: var(--header-text); padding: 1rem 1.1rem; justify-content: flex-end; }
.study-tile-pic .ref-card-num { font-size: 1.35rem; line-height: 1.15; }
.study-tile-body { display: grid; gap: .25rem; align-content: start; padding: .9rem 1rem 1.05rem; }
.study-tile-title { font-size: 1.14rem; font-weight: 700; line-height: 1.2; }
.study-tile-text { font-size: .94rem; color: var(--c-text-muted); }
.study-tile-foot { margin-top: .35rem; font-size: .84rem; font-weight: 600; color: var(--c-text-muted); display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.study-head .lede { max-width: 44rem; }
.study-open { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.study-player { margin: 1.4rem 0 .6rem; scroll-margin-top: 1rem; }
.study-player-title { font-weight: 600; margin: .5rem 0 0; }
.lesson-list { border-top: 1px solid var(--line); }
.lesson { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .2rem .9rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.lesson-n { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.lesson-title { font-weight: 600; }
.lesson-note { display: block; font-size: .86rem; font-weight: 400; color: var(--muted); }
.lesson-actions { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.lesson.is-playing { background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.lesson.is-playing .lesson-n { color: var(--accent); }
.lesson-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin: 1.6rem 0 .6rem; }
.lesson-tools h2 { margin: 0; }
.lesson-find input { font: inherit; padding: .45rem .7rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--c-paper); color: var(--c-text); min-width: 15rem; max-width: 100%; }
.study-chart img { border: 1px solid var(--line); border-radius: var(--radius); }

/* 17. SEARCH ------------------------------------------------------------------- */
.r-kind { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s-snip { margin: .3rem 0 0; font-family: var(--font-read); font-size: .95rem; line-height: 1.5; color: var(--fg); opacity: .9; max-width: 48rem; }
.result-break { margin: 2.4rem 0 .2rem; padding-top: 1.2rem; border-top: 3px solid var(--line); }
.result-break h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.result-break p { margin: 0; color: var(--muted); font-size: .95rem; }
.search-hint { color: var(--muted); font-size: .95rem; }

/* The Kingdom of Heaven band on the home page (and its page among the Bible studies). */
.koh { margin-top: 2.8rem; padding: 1.8rem; background: var(--header-bg); color: var(--header-text); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.6rem 2.2rem; align-items: center; --focus: #fff; }
.koh .kicker { color: var(--header-link); }
.koh h2 { margin: 0 0 .9rem; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.koh-verse { margin: 0 0 .95rem; padding-left: .95rem; border-left: 3px solid var(--header-accent); font-family: var(--font-read); font-size: 1.02rem; line-height: 1.55; }
.koh-verse cite { display: block; margin-top: .2rem; font-family: var(--font-ui); font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .05em; }
.koh-verse cite a, .koh a.koh-link { color: var(--header-link); }
.koh-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.koh .btn { color: var(--header-text); border-color: var(--header-line); }
.koh .btn:hover { border-color: var(--header-text); }
.koh .btn-accent { background: var(--header-accent); border-color: var(--header-accent); color: #fff; }
.home-articles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.home-article { display: grid; gap: .3rem; align-content: start; padding: 1.1rem 1.2rem 1.2rem; background: var(--c-paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.home-article h3 { margin: 0; font-size: 1.14rem; }
.home-article h3 a { color: var(--fg); text-decoration: none; }
.home-article h3 a:hover { text-decoration: underline; }
.lead-sum { font-family: var(--font-read); font-size: 1.08rem; line-height: 1.55; max-width: 40rem; margin: .7rem 0 0; }

/* 18. SMALL SCREENS (new parts) -------------------------------------------------- */
@media (max-width: 60rem) {
  .toc { grid-template-columns: 1fr; }
  .issue-feature { grid-template-columns: 1fr; gap: 1.2rem; }
  .issue-feature-more { grid-column: 1; }
  .koh { grid-template-columns: 1fr; padding: 1.3rem; }
}
@media (max-width: 46rem) {
  .a-row { grid-template-columns: 3.7rem minmax(0, 1fr); gap: .2rem .8rem; }
  .a-tab-y { font-size: .95rem; }
  .sort-label { display: none; }
  .lesson { grid-template-columns: 2rem minmax(0, 1fr); }
  .lesson-actions { grid-column: 2; justify-content: flex-start; }
  .people-list-cols { column-width: auto; }
  .brand-line { display: none; }
}
@media print {
  .article-side, .study-side, .sort-switch, .koh .video-facade, .lesson-actions { display: none !important; }
}

/* 19. THE NOVEMBER 2026 REFRESH ---------------------------------------------------
   One white ground for every page, ink for the header and the top of the home
   page, one blue. Titles of things you READ are set in the reading face; lists
   and controls stay in the plain face. These rules come last, so they win over
   the older rules above wherever both speak. */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.018em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 2.85rem); line-height: 1.08; }
h2 { font-size: 1.45rem; }
a { text-underline-offset: .17em; text-decoration-thickness: .06em; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.lede { font-size: 1.14rem; line-height: 1.5; text-wrap: pretty; }
/* Small labels: plain words in the accent color, not capitals. */
.label, .kicker, .brand-line, .footer-head, .ref-card-book, .wall-testament, .walk-dir, .sort-label, .a-tab-m, .toc-h, .rel-kind, .r-kind { text-transform: none; letter-spacing: 0; }
.kicker, .label, .rel-kind, .wall-testament, .toc-h { font-size: .9rem; font-weight: 600; color: var(--link); }
.footer-head { font-size: .95rem; font-weight: 700; color: var(--header-text); }
.sort-label { font-size: .86rem; }
mark { background: var(--c-mark); border-radius: 3px; padding: 0 .12em; }

/* Header: quieter, so the page below it leads. */
.site-header { border-bottom: 0; }
.header-row { padding-block: 1rem .55rem; gap: .9rem 1.1rem; }
.wordmark { font-family: var(--font-read); font-weight: 600; font-size: 1.5rem; letter-spacing: -.012em; }
.brand-line { font-size: .8rem; font-weight: 400; color: var(--c-muted-on-ink); opacity: 1; margin-top: .05rem; }
.header-search input { background: rgba(255, 255, 255, .07); color: var(--header-text); border-color: var(--header-line); border-right: 0; padding: .6rem .9rem; }
.header-search input::placeholder { color: var(--c-muted-on-ink); opacity: 1; }
.header-search input:focus { background: var(--c-paper); color: var(--c-text); outline-offset: 0; }
.header-search input:focus::placeholder { color: var(--c-text-muted); }
.header-search button { background: rgba(255, 255, 255, .07); border-color: var(--header-line); color: var(--header-text); }
.header-search button:hover { background: var(--header-accent); border-color: var(--header-accent); color: #fff; }
.site-header .header-subscribe { background: transparent; border-color: var(--header-line); color: var(--header-text); }
.site-header .header-subscribe:hover { background: var(--header-accent); border-color: var(--header-accent); color: #fff; filter: none; }
.primary-nav { gap: .2rem 1.8rem; padding-bottom: 0; }
.primary-nav a { font-weight: 500; padding: .5rem 0 .7rem; border-bottom-width: 2px; color: var(--c-muted-on-ink); }
.primary-nav a:hover { color: #fff; border-bottom-color: transparent; }
.primary-nav a[aria-current] { color: #fff; font-weight: 600; border-bottom-color: var(--header-link); }
.theme-toggle { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 50%; border: 1px solid var(--header-line); background: transparent; color: var(--c-muted-on-ink); cursor: pointer; }
.theme-toggle:hover { color: #fff; border-color: var(--header-link); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Home: the verse the magazine is named for, beside the newest sermon, on the ink. */
.hero { background: var(--header-bg); color: var(--header-text); padding-block: 2.4rem 3.2rem;
  --fg: var(--header-text); --muted: var(--c-muted-on-ink); --link: var(--header-link); --accent: var(--header-accent); --line: var(--header-line); --surface: var(--c-slate); --focus: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 2rem 4rem; align-items: center; }
.hero-verse { font-family: var(--font-read); font-weight: 500; font-size: clamp(1.75rem, 3.5vw, 2.7rem); line-height: 1.16; letter-spacing: -.015em; color: #fff; margin: 0 0 .9rem; text-wrap: balance; }
.hero-cite { margin: 0 0 1.6rem; font-weight: 600; }
.hero-cite a { color: var(--header-link); text-decoration: none; }
.hero-cite a:hover { text-decoration: underline; }
.hero-about { margin: 0; max-width: 26rem; color: var(--c-muted-on-ink); line-height: 1.5; }
.hero .lead-thumb { margin-bottom: 1.1rem; border: 1px solid var(--header-line); border-radius: 10px; box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .75); }
.hero .kicker { color: var(--header-link); margin-bottom: .6rem; }
.lead-title { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 0 0 .35rem; }
.lead-title a { color: #fff; text-decoration: none; }
.lead-title a:hover { text-decoration: underline; }
.hero .s-meta, .hero .s-meta a { color: var(--c-muted-on-ink); }
.hero .lead-sum { color: var(--header-text); font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .btn { color: var(--header-text); border-color: var(--header-line); background: transparent; }
.hero .btn:hover { border-color: var(--header-link); }
.hero .btn-accent { background: var(--header-accent); border-color: var(--header-accent); color: #fff; }
.hero .btn-quiet { border-color: transparent; color: var(--header-link); }
.home-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; margin-top: 2.4rem; }
.home-top .section-head { margin-top: 0; padding-top: 0; border-top: 0; }
.home .issue-panel h2 { font-family: var(--font-read); font-size: 1.5rem; font-weight: 600; }

/* Page heads, sections, panels, cards. */
.crumbs { padding-top: 1.1rem; }
.page-head { padding-block: 1.9rem .7rem; }
.section-head { margin-top: 3.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); align-items: baseline; }
.section-head h2 { margin-bottom: .8rem; }
.section-head > a { font-size: .95rem; font-weight: 600; text-decoration: none; }
.section-head > a:hover { text-decoration: underline; }
.panel { border: 0; border-radius: 12px; padding: 1.4rem 1.5rem; }
.card, .study-tile, .issue-feature { border-radius: 12px; }
.card:hover, .study-tile:hover { box-shadow: none; }
.btn { border-radius: 8px; }
.chip { border-radius: 999px; }
.tabs a { border-radius: 0; padding: .5rem .1rem; margin-right: 1.1rem; color: var(--muted); }
.tabs a:hover { background: none; color: var(--fg); }
.tabs a[aria-current] { background: none; color: var(--fg); box-shadow: inset 0 -2px 0 var(--link); }
.empty { border-radius: 12px; }

/* Lists. */
.s-row { padding: 1.05rem 0; gap: .2rem 1.15rem; }
.s-thumb { border-radius: 8px; }
.s-title, .a-title { font-size: 1.12rem; }
.s-sum { font-size: 1rem; line-height: 1.55; opacity: 1; color: var(--muted); }

/* The book wall, in the site's own blue: the more teaching on a book, the deeper its tile. */
.wall-book { border-radius: 8px; }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .wall-book { background: color-mix(in srgb, var(--c-depth) calc(5% + var(--depth) * 50%), var(--bg)); }
}
.wall-book.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.wall-bar { height: 3px; background: var(--accent); opacity: .55; }
.wall-book:hover { outline-color: var(--accent); }
.num.has { box-shadow: inset 0 -3px 0 var(--accent); }

/* Reading pages: the title in the reading face, a comfortable measure. */
.room-reading h1 { font-family: var(--font-read); font-weight: 600; letter-spacing: -.014em; line-height: 1.12; font-size: clamp(2rem, 4.6vw, 3rem); }
.article-head, .sermon-head, .study-head { padding-top: .6rem; }
.byline { color: var(--muted); }
.prose { font-size: 1.17rem; line-height: 1.72; }
.prose h2 { font-size: 1.32rem; margin: 2em 0 .6em; }
.article-body > p:first-child::first-letter { font-size: inherit; }
.prose blockquote.scripture { border-left-width: 3px; border-radius: 0 10px 10px 0; padding: 1em 1.3em 1.05em; }
.prose blockquote.scripture footer { letter-spacing: 0; }
.site-footer { border-top: 0; margin-top: 4rem; }

/* 20. BOOKS -------------------------------------------------------------------------- */
/* A cover drawn in type: cloth-blue board, a ruled frame, the title. Books are 6 by 9. */
.book-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 2 / 3; width: 9.5rem; padding: 1.25rem 1.1rem 1.1rem;
  background: #1C3D57; color: #F2F6F9; border-radius: 3px 6px 6px 3px; outline: 1px solid rgba(255, 255, 255, .34); outline-offset: -8px;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .22), 0 14px 26px -16px rgba(0, 0, 0, .55); text-decoration: none; }
.book-cover.tone-slate { background: #2C4A5C; }
.book-cover-title { font-family: var(--font-read); font-weight: 600; font-size: 1.12rem; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.book-cover-author { font-size: .68rem; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.book-cover.is-large { width: 13.5rem; padding: 1.9rem 1.6rem 1.5rem; outline-offset: -11px; }
.book-cover.is-large .book-cover-title { font-size: 1.62rem; }
.book-cover.is-large .book-cover-author { font-size: .82rem; }
.book-cover.is-thumb { aspect-ratio: auto; width: 100%; height: 100%; padding: .55rem .6rem; outline-offset: -4px; border-radius: 0; box-shadow: none; justify-content: center; }
.book-cover.is-thumb .book-cover-title { font-size: .7rem; }
.book-cover.is-thumb .book-cover-author { display: none; }
.book-shelf { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 2.6rem; }
.book-item, .book-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem 2.2rem; align-items: start; }
.book-head { padding-block: 2rem 1rem; }
.book-about h1, .book-about h2 { font-family: var(--font-read); font-weight: 600; margin-bottom: .3rem; }
.book-about h2 { font-size: 1.7rem; }
.book-about h2 a { color: var(--fg); text-decoration: none; }
.book-about h2 a:hover { text-decoration: underline; }
.book-sum { font-family: var(--font-read); font-size: 1.1rem; line-height: 1.6; max-width: 40rem; margin: .8rem 0 .7rem; }
.shelf-also { margin-top: 2.6rem; color: var(--muted); }
.book-row { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.4rem 2rem; }
.book-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; color: var(--fg); text-decoration: none; }
.book-tile .book-cover { width: 7rem; padding: .95rem .8rem .8rem; outline-offset: -6px; }
.book-tile .book-cover-title { font-size: .86rem; }
.book-tile .book-cover-author { font-size: .56rem; }
.book-tile-text { display: grid; gap: .2rem; }
.book-tile-text strong { font-family: var(--font-read); font-size: 1.22rem; font-weight: 600; line-height: 1.2; }
.book-tile:hover strong { text-decoration: underline; }
.book-tile-sum { font-size: .95rem; line-height: 1.45; color: var(--muted); margin-top: .25rem; }
/* The chapter list. */
.book-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 46rem; }
.book-toc li { border-bottom: 1px solid var(--line); }
.book-toc a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: baseline; padding: .7rem .2rem; color: var(--fg); text-decoration: none; }
.book-toc a:hover .toc-t { text-decoration: underline; }
.toc-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-t { font-family: var(--font-read); font-size: 1.1rem; }
.toc-m { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.book-toc .is-extra .toc-t { font-style: italic; }
.book-toc .is-last a { box-shadow: inset 3px 0 0 var(--accent); padding-left: .7rem; }
.book-notice { margin-top: 2rem; font-size: .9rem; color: var(--muted); max-width: 46rem; }
/* Reading a chapter. */
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: var(--measure); }
.chapter-nav a { display: grid; gap: .15rem; text-decoration: none; color: var(--fg); }
.chapter-next { text-align: right; }
.chapter-dir { font-size: .88rem; font-weight: 600; color: var(--link); }
.chapter-name { font-family: var(--font-read); font-size: 1.08rem; line-height: 1.3; }
.chapter-nav a:hover .chapter-name { text-decoration: underline; }
.side-toc { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.side-toc li { border-bottom: 1px solid var(--line); }
.side-toc a { display: block; padding: .42rem .1rem; color: var(--fg); text-decoration: none; line-height: 1.3; }
.side-toc a:hover { text-decoration: underline; }
.side-toc .is-current a { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); padding-left: .65rem; }
.side-toc .toc-n { display: inline-block; min-width: 1.4rem; }

/* 21. SMALL SCREENS (the refresh and the books) ---------------------------------------- */
@media (max-width: 820px) {
  .hero { padding-block: 1.6rem 2.2rem; }
  .hero-grid, .home-top { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 1.6rem; }
  .hero-cite { margin-bottom: .8rem; }
  .home-top { gap: 2.4rem; }
  .book-item, .book-head { grid-template-columns: minmax(0, 1fr); }
  .book-cover.is-large { width: 10.5rem; }
  .book-cover.is-large .book-cover-title { font-size: 1.25rem; }
  .book-row { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-top: 2.6rem; }
  .header-row { flex-wrap: wrap; gap: .7rem .55rem; }
  .site-header .header-subscribe { padding-inline: .7rem; font-size: .92rem; }
  .theme-toggle { width: 2.2rem; height: 2.2rem; }
  .site-header .brand { order: 0; flex: 1 1 auto; min-width: 0; }
  .site-header .header-subscribe, .theme-toggle { order: 1; }
  .header-search { order: 3; flex: 1 1 100%; }
  .wordmark { font-size: 1.26rem; white-space: nowrap; }
  .brand-line { display: none; }
}
@media print {
  .theme-toggle, .chapter-nav, .hero .lead-thumb { display: none; }
  .hero { background: none; color: #000; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 1.08rem; }
  .site-header .header-subscribe { padding-inline: .55rem; font-size: .86rem; }
}

/* 22. THE QUICK BAR, AND THE MAGAZINE ON THE HOME PAGE ------------------------------------ */
html { scroll-padding-top: 3.6rem; }
.quickbar { position: fixed; inset: 0 0 auto 0; z-index: 60; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line);
  transform: translateY(-110%); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s; --focus: #fff; }
.quickbar.is-on { transform: none; visibility: visible; transition: transform .18s ease; }
.quickbar-row { display: flex; align-items: center; gap: .6rem; height: 2.9rem; }
.qb-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.1rem; padding: 0 .65rem; font: 600 .9rem var(--font-ui); color: var(--header-text); background: transparent;
  border: 1px solid var(--header-line); border-radius: 8px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.qb-btn:hover { border-color: var(--header-link); color: #fff; }
.qb-name { font-family: var(--font-read); font-weight: 600; font-size: 1.05rem; color: #fff; text-decoration: none; white-space: nowrap; margin-right: auto; }
.qb-search { display: flex; flex: 0 1 19rem; min-width: 0; }
.qb-search input { flex: 1; min-width: 0; height: 2.1rem; padding: 0 .7rem; font: inherit; font-size: .92rem; color: var(--header-text); background: rgba(255, 255, 255, .07);
  border: 1px solid var(--header-line); border-right: 0; border-radius: 8px 0 0 8px; }
.qb-search input::placeholder { color: var(--c-muted-on-ink); opacity: 1; }
.qb-search input:focus { background: var(--c-paper); color: var(--c-text); outline-offset: 0; }
.qb-search button { display: inline-grid; place-items: center; width: 2.4rem; height: 2.1rem; padding: 0; color: var(--header-text); background: rgba(255, 255, 255, .07);
  border: 1px solid var(--header-line); border-radius: 0 8px 8px 0; cursor: pointer; }
.qb-search button:hover { background: var(--header-accent); border-color: var(--header-accent); color: #fff; }
.qb-panel { background: var(--header-bg); border-top: 1px solid var(--header-line); }
.qb-links { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; padding-block: .7rem .9rem; }
.qb-links a { color: var(--header-text); text-decoration: none; font-weight: 500; padding: .3rem 0; }
.qb-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .qb-name { display: none; }
  .qb-search { flex: 1 1 auto; }
  .qb-btn span { display: none; }
  .qb-btn { padding: 0 .6rem; }
  .qb-links { flex-direction: column; gap: 0; }
  .qb-links a { padding: .55rem 0; border-bottom: 1px solid var(--header-line); }
}
@media (prefers-reduced-motion: reduce) { .quickbar, .quickbar.is-on { transition: none; } }
@media print { .quickbar { display: none; } }
body:focus, body:focus-visible { outline: none; }

.home-mag { margin-top: 2.4rem; }
.home-mag .section-head { margin-top: 0; padding-top: 0; border-top: 0; }
.home-mag-more { margin: 1.3rem 0 1rem; line-height: 1.7; }
.home-mag-more a { text-decoration: none; }
.home-mag-more a:hover { text-decoration: underline; }
.home-top { display: block; margin-top: 0; }
.home-top .section-head { margin-top: 3.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.continue-strip { margin-top: 2rem; }
.continue-strip h2 { font-size: 1.15rem; margin: 0 0 .2rem; }

/* 23. THE BRAND IDENTITY (November 2026) -----------------------------------------------
   The logo, the two brand typefaces, the curved red edge, the brand's outline icons, the
   sunrise band and the Scripture Slipstream panel. Colors are in the theme file.
   The red (--c-red) appears in the logo and the curved edge only. Blue does the work. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/noto-serif-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/noto-serif-latin-wght-italic.woff2") format("woff2"); }

/* The logo in the header. The short line sits under the lettering, clear of the cross. */
.brand.has-logo { position: relative; display: block; line-height: 0; }
.brand-logo { display: block; height: var(--logo-height); width: auto; }
.brand.has-logo .brand-line { position: absolute; left: calc(var(--logo-height) * 1.232); top: calc(var(--logo-height) * .765); margin: 0; line-height: 1; font-size: .74rem; font-weight: 400;
  letter-spacing: .01em; white-space: nowrap; color: var(--c-muted-on-ink); }
.header-row { padding-block: .9rem .5rem; }
.qb-name { display: inline-flex; align-items: center; }
.qb-name img { display: block; height: 32px; width: auto; }
.footer-logo { margin: 0 0 .8rem; line-height: 0; }
.footer-logo img { height: 46px; width: auto; }

/* The curved edge: one red line between a dark band (or a picture) and the page. The line keeps
   its thickness on every screen: it does not thin out as the curve is squeezed onto a phone. */
:root { --swoop-h: clamp(36px, 5.6vw, 84px); --swoop-line: clamp(4.2px, 3.4px + .2vw, 6.6px); --c-red-on-ink: #E21B2D;
  /* The colors of the home page's sunrise top and closing band. Each look sets its own (look-*.css). */
  --hero-ink: #0B2238; --hero-cite: #A20618; --hero-ground: #1B3A57; --hero-glow: 255, 245, 232; --hero-shade: 8, 20, 33;
  --glass: 9, 24, 39; --glass-link: #A9D3EC; --band: 14, 42, 68; }
.swoop { display: block; width: 100%; height: var(--swoop-h); overflow: hidden; }
.swoop-page { fill: var(--c-paper); }
/* The ribbon is a filled shape that widens from left to right (drawn in layout.php, swoop_svg);
   the outline of a set thickness round it keeps the thin end from thinning out on a phone. */
.swoop-line { fill: var(--c-red); stroke: var(--c-red); stroke-width: var(--swoop-line); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero { padding-bottom: 0; }
.site-footer { padding-top: 0; margin-top: 2.6rem; }
.site-footer .swoop { margin: 0 0 1.6rem; }
@media print { .swoop { display: none; } }

/* The brand's outline icons beside a few headings. */
.b-icon { flex: 0 0 auto; }
.section-head h2 .b-icon { color: var(--accent); margin-right: .55rem; vertical-align: -.16em; }

/* Kingdom of Heaven: the brand navy. */
.koh { background: var(--c-navy); border-radius: 12px; }

/* The closing band on the home page: the sunrise, with a navy block behind the words. */
.home-begin { grid-template-columns: minmax(0, 1fr); }
.sunrise { position: relative; isolation: isolate; overflow: hidden; margin-top: 2rem; border-radius: 12px; min-height: 22rem; display: grid; align-items: center;
  background: var(--c-navy); color: #fff; --focus: #fff; }
.sunrise picture { position: absolute; inset: 0; z-index: -2; }
.sunrise img { width: 100%; height: 100%; object-fit: cover; object-position: var(--band-pos, 72% 40%); }
.sunrise::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--band), .95) 0%, rgba(var(--band), .88) 34%, rgba(var(--band), .42) 58%, rgba(var(--band), 0) 78%); }
.sunrise-text { padding: 2.4rem 2.6rem; max-width: 35rem; }
.sunrise h2 { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.12; color: #fff; margin: 0 0 .5rem; }
.sunrise-line { font-family: var(--font-read); font-style: italic; font-size: 1.13rem; line-height: 1.45; color: #F1F5F8; margin: 0 0 .9rem; }
.sunrise p { color: #D6E1EA; margin: 0 0 1rem; }
.sunrise-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 0; }
.sunrise .btn { color: #fff; background: rgba(var(--band), .35); border-color: rgba(255, 255, 255, .5); }
.sunrise .btn:hover { border-color: #fff; }
.sunrise .btn-accent { background: var(--c-accent-on-ink); border-color: var(--c-accent-on-ink); color: #fff; }

@media (max-width: 820px) {
  :root { --logo-height: 44px; }
  .footer-logo img { height: 40px; }
  /* The closing band on a phone: the picture gets a space of its own above the words, so the sun
     and the ridges are seen whole instead of sitting dimmed behind the text. */
  .sunrise { display: block; min-height: 0; }
  .sunrise picture { position: relative; inset: auto; z-index: 0; display: block; aspect-ratio: 4 / 3; }
  .sunrise picture::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 34%; background: linear-gradient(180deg, rgba(var(--band), 0), var(--c-navy)); }
  .sunrise img { object-position: 50% 50%; }
  .sunrise::before { display: none; }
  .sunrise-text { padding: .6rem 1.3rem 1.7rem; }
}
@media (max-width: 400px) {
  :root { --logo-height: 37px; }
}

/* 24. NOVEMBER 25, 2026 ---------------------------------------------------------------------
   The sunrise at the top of the home page · a touch more red · the dark look without a seam
   at the curve · "Read" and "Studied" marks · the Bible Studies page · the game panel. */

/* --- The home page opens on the brand's sunrise. The verse stands in the sky in the brand
       navy; the newest sermon rides in a dark glass strip over the ridges. ------------------- */
.hero-dawn { position: relative; isolation: isolate; overflow: hidden; padding: 0; background: var(--hero-ground); color: var(--hero-ink); --focus: var(--hero-ink); }
.hero-pic { position: absolute; inset: 0; z-index: -2; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero-dawn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 72% at 15% 18%, rgba(var(--hero-glow), .6) 0%, rgba(var(--hero-glow), .26) 46%, rgba(var(--hero-glow), 0) 76%),
              linear-gradient(180deg, rgba(var(--hero-shade), 0) 50%, rgba(var(--hero-shade), .5) 100%); }
.hero-dawn-in { display: grid; grid-template-rows: 1fr auto; gap: 2rem; min-height: clamp(33rem, min(50vw, 100vh - 8.5rem), 43rem);
  padding-block: clamp(2.2rem, 4.6vw, 3.6rem) calc(var(--swoop-h) * .82 + 1rem); }
.hero-dawn .hero-name { max-width: 35rem; }
.hero-dawn .hero-verse { color: var(--hero-ink); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.09; letter-spacing: -.02em; margin: 0 0 .8rem;
  text-shadow: 0 0 26px rgba(var(--hero-glow), .85), 0 0 3px rgba(var(--hero-glow), .55); }
.hero-dawn .hero-cite { margin: 0 0 1.1rem; font-weight: 700; font-size: 1.05rem; }
.hero-dawn .hero-cite a { color: var(--hero-cite); text-decoration: none; }
.hero-dawn .hero-cite a:hover { text-decoration: underline; }
.hero-dawn .hero-about { display: inline-block; max-width: 29rem; margin: 0; padding: .55rem .95rem; border-radius: 10px; font-size: .97rem; font-weight: 500; line-height: 1.45; color: var(--hero-ink);
  background: rgba(255, 249, 242, .6); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .55); }
.hero-dawn .swoop { position: absolute; left: 0; right: 0; bottom: -1px; }

.lead-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1.6rem; align-items: center; padding: 1rem 1.25rem; border-radius: 14px; color: #F2F6F9; --focus: #fff;
  background: rgba(var(--glass), .76); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .17); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .85); }
.lead-strip.has-thumb { grid-template-columns: 10.5rem minmax(0, 1fr) auto; }
.hero .lead-strip .lead-thumb { margin: 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.lead-strip .play-badge { width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; }
.lead-strip .play-badge::after { border-left-width: .78rem; border-top-width: .48rem; border-bottom-width: .48rem; }
.hero .lead-strip .kicker { display: flex; align-items: center; gap: .45rem; margin: 0 0 .15rem; color: var(--glass-link); }
.lead-strip .kicker::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-red-on-ink); }
.lead-strip .lead-title { font-size: clamp(1.25rem, 2.1vw, 1.6rem); margin: 0 0 .2rem; }
.hero .lead-strip .s-meta, .hero .lead-strip .s-meta a { color: #C5D3DE; }
.lead-strip .s-refs { display: inline; margin: 0; }
.hero .lead-strip .s-refs a { color: var(--glass-link); }
.hero .lead-strip .lead-sum { color: #E3EBF1; font-size: .97rem; margin: .45rem 0 0; max-width: 46rem; -webkit-line-clamp: 2; }
.lead-strip .lead-actions { margin: 0; flex-wrap: nowrap; gap: .45rem; }
.hero .lead-strip .btn { color: #F2F6F9; border-color: rgba(255, 255, 255, .34); }
.hero .lead-strip .btn-accent { border-color: var(--c-accent-on-ink); }
.hero .lead-strip .btn-quiet { border-color: transparent; color: var(--glass-link); }

/* --- A touch more red: the reference under the verse (above), the dot beside "Latest sermon",
       a short rule under each page's title and over the closing band's. Blue still does the work. */
.page-head h1::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: .7rem; border-radius: 2px; background: var(--c-red); }
.sunrise h2::before { content: ""; display: block; width: 2.8rem; height: 3px; margin-bottom: .9rem; border-radius: 2px; background: var(--c-red-on-ink); }

/* --- The dark look: the footer starts in the page's own colour at the curve and deepens below
       it, so the red line no longer divides two different blacks. (The light look is unchanged:
       --footer-from is only set in the dark values of the theme file.) ------------------------- */
.site-footer { background: linear-gradient(180deg, var(--footer-from, var(--header-bg)) 0, var(--header-bg) 12rem); }

/* --- "Read", "Studied": the same small mark as "Heard" ------------------------------------ */
[data-article].is-read .a-title a::after, .toc-item.is-read .toc-title a::after, .home-article.is-read h3 a::after, .rel-list li.is-read > a::after,
.study-tile.is-studied .study-tile-title::after, .card-study.is-studied .card-title::after, .class-row.is-studied .class-title::after,
.rel-list li.is-studied > a::after, .s-row.is-studied .s-title a::after {
  content: "Read"; display: inline-block; margin-left: .6rem; padding: .08rem .45rem; font-family: var(--font-ui); font-size: .68rem; font-weight: 700; line-height: 1.5; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); vertical-align: middle; }
.study-tile.is-studied .study-tile-title::after, .card-study.is-studied .card-title::after, .class-row.is-studied .class-title::after,
.rel-list li.is-studied > a::after, .s-row.is-studied .s-title a::after { content: "Studied"; }
a[data-article].is-read::after { content: "\2713"; display: inline-block; margin-left: .3em; font-weight: 400; color: var(--muted); text-decoration: none; }
.walk a[data-article].is-read::after { content: none; }
.walk a[data-article].is-read .walk-title::after { content: " \2713"; font-weight: 400; color: var(--muted); }
.read-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.read-note { font-size: .9rem; }
.studied-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin: 1rem 0 0; }
.study-progress { font-size: .84rem; font-weight: 700; color: var(--link); }
/* A lesson's number is its tick box: press it when the lesson is done (it ticks itself when a video is watched to the end). */
.lesson-tick { justify-self: end; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; padding: 0; font: inherit; font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--muted); background: none; border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; }
.lesson-tick:hover { border-color: var(--accent); color: var(--link); }
.lesson.is-done .lesson-tick { background: var(--accent); border-color: var(--accent); color: transparent; }
.lesson.is-done .lesson-tick::after { content: ""; position: absolute; left: 50%; top: 46%; width: .42rem; height: .78rem; border: solid var(--c-on-accent); border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); }
.lesson.is-done .lesson-title { color: var(--muted); }

/* --- Bible Studies: each part of the page opens under a heavy rule with a large title -------- */
.study-group { margin-top: 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1.5rem; margin-top: 3.6rem; padding-top: 1.05rem; border-top: 3px solid var(--fg); }
.group-head h2 { margin: 0; font-family: var(--font-read); font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -.012em; }
.group-count { font-size: .95rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
a.group-count { color: var(--link); text-decoration: none; }
a.group-count:hover { text-decoration: underline; }
.group-lede { margin: .4rem 0 1.25rem; max-width: 46rem; font-size: 1.05rem; color: var(--muted); }
.group-head + .study-cards, .group-head + .book-row, .group-head + .card-grid { margin-top: 1.25rem; }
.jump + .study-group .group-head { margin-top: 2.4rem; }
.koh + .study-group .group-head { margin-top: 3rem; }

/* The Bible classes: not tiles but a shelf — one row a class, on the tinted ground, each with its number of lessons. */
.study-group-classes { margin-top: 3.6rem; padding: 1.7rem clamp(1.1rem, 3vw, 2.1rem) .5rem; border-radius: 14px; background: var(--surface); }
.study-group-classes .group-head { margin-top: 0; padding-top: 0; border-top: 0; }
.class-shelf { list-style: none; margin: 0; padding: 0; }
.class-shelf li + li { border-top: 1px solid var(--line); }
.class-row { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) auto; gap: .4rem 1.5rem; align-items: center; padding: 1.05rem 0; color: var(--fg); text-decoration: none; }
.class-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--header-bg); }
.class-pic img { width: 100%; height: 100%; object-fit: cover; }
.class-pic .play-badge { width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; }
.class-pic .play-badge::after { border-left-width: .78rem; border-top-width: .48rem; border-bottom-width: .48rem; }
.class-body { display: grid; gap: .2rem; align-content: center; }
.class-title { font-size: 1.24rem; font-weight: 700; line-height: 1.2; }
.class-row:hover .class-title { text-decoration: underline; }
.class-who { font-size: .95rem; font-weight: 600; color: var(--link); }
.class-text { font-size: .95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.class-count { min-width: 5.5rem; text-align: right; font-size: .9rem; line-height: 1.15; color: var(--muted); }
.class-count b { display: block; font-family: var(--font-read); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; color: var(--link); font-variant-numeric: tabular-nums; }

/* --- Scripture Slipstream, on the Bible Studies page: film of the game itself behind the game's
       own lettering (Barlow Condensed) and colors — night sky, ice blue, engine orange. -------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
.slip { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 32rem) minmax(0, 1fr); min-height: 33rem; margin-top: 3.8rem; border-radius: 16px; overflow: hidden;
  background: #030514; color: #EAF2F8; --focus: #fff; scroll-margin-top: 4.5rem; box-shadow: 0 0 0 1px rgba(121, 229, 255, .22), 0 34px 60px -38px rgba(3, 5, 20, .95); }
.slip-stage { position: absolute; inset: 0; z-index: -2; }
.slip-film { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; background: #030514; }
.slip::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 5, 20, .95) 0%, rgba(3, 5, 20, .84) 28%, rgba(3, 5, 20, .34) 50%, rgba(3, 5, 20, 0) 64%),
              linear-gradient(0deg, rgba(3, 5, 20, .6) 0%, rgba(3, 5, 20, 0) 26%); }
.slip-text { align-self: center; padding: 2.5rem 1rem 3rem 2.7rem; }
.slip-brand { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.15rem; font-family: "Barlow Condensed", var(--font-ui); font-weight: 800; font-size: 1.5rem; line-height: .95;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.slip-brand svg { flex: 0 0 auto; color: #FF9B61; }
.slip-brand small { display: block; font-size: .6em; font-weight: 600; letter-spacing: .24em; color: #C7D5E2; }
.slip-shout { margin: 0 0 1rem; font-family: "Barlow Condensed", var(--font-ui); font-weight: 800; font-size: clamp(2.8rem, 5.7vw, 4.5rem); line-height: .92; color: #fff; }
.slip-shout span { display: block; color: #FF9B61; }
.slip-lede { max-width: 27rem; margin: 0 0 1.1rem; font-size: 1.02rem; color: #C9D6E2; }
.slip-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .45rem; margin: 0 0 1.5rem; padding: 0; }
.slip-facts li { padding: .2rem .7rem .24rem; font-family: "Barlow Condensed", var(--font-ui); font-weight: 600; font-size: 1.02rem; letter-spacing: .03em; color: #DDF4FB;
  background: rgba(8, 16, 36, .6); border: 1px solid rgba(121, 229, 255, .42); border-radius: 6px; }
.slip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin: 0; }
.slip-play { display: inline-flex; align-items: center; gap: .55rem; padding: .72rem 1.35rem .74rem; font-family: "Barlow Condensed", var(--font-ui); font-weight: 800; font-size: 1.38rem; line-height: 1;
  letter-spacing: .045em; text-transform: uppercase; text-decoration: none; color: #1D0F04; background: linear-gradient(180deg, #FFB483, #FF8E4D); border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 12px 30px -10px rgba(255, 142, 77, .75); transition: transform .15s ease, box-shadow .15s ease; }
.slip-play:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 18px 36px -10px rgba(255, 142, 77, .9); }
.slip-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.slip-note { max-width: 14rem; font-size: .86rem; line-height: 1.35; color: #A9BBCB; }
.slip-hud { position: absolute; right: 1.3rem; bottom: .95rem; display: flex; align-items: center; gap: .5rem; margin: 0; font-family: "Barlow Condensed", var(--font-ui); font-weight: 600; font-size: .86rem;
  letter-spacing: .16em; text-transform: uppercase; color: #C4D2DF; }
.slip-hud i { width: .5rem; height: .5rem; border-radius: 50%; background: #7CF29A; box-shadow: 0 0 10px #7CF29A; animation: slip-pulse 2.4s ease-in-out infinite; }
.slip-hud span { margin-left: .9rem; opacity: .7; }
@keyframes slip-pulse { 50% { opacity: .35; } }

/* --- Small parts ---------------------------------------------------------------------------- */
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-pair > div { display: grid; gap: .4rem; align-content: start; }
.sub-form { max-width: 30rem; }
.search-fixed { margin: 0 0 1rem; padding: .7rem 1rem; background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius); }

@media (max-width: 820px) {
  .hero-pic img { object-position: 50% 44%; }
  .hero-dawn::before { background: radial-gradient(120% 46% at 30% 12%, rgba(var(--hero-glow), .6) 0%, rgba(var(--hero-glow), .22) 55%, rgba(var(--hero-glow), 0) 80%), linear-gradient(180deg, rgba(var(--hero-shade), 0) 54%, rgba(var(--hero-shade), .55) 100%); }
  .hero-dawn-in { min-height: min(40rem, 100vh - 6rem); gap: 9rem; padding-top: 1.7rem; }
  .hero-dawn .hero-about { display: none; }
  .lead-strip, .lead-strip.has-thumb { grid-template-columns: minmax(0, 1fr); padding: .95rem 1rem 1rem; }
  .hero .lead-strip .lead-thumb, .hero .lead-strip .lead-sum { display: none; }
  .lead-strip .lead-actions { flex-wrap: wrap; }
  .group-head { margin-top: 2.8rem; }
  .class-row { grid-template-columns: 6.6rem minmax(0, 1fr); gap: .3rem .9rem; align-items: start; }
  .class-title { font-size: 1.1rem; }
  .class-count { grid-column: 2; min-width: 0; text-align: left; }
  .class-count b { display: inline; font-family: var(--font-ui); font-size: 1em; font-weight: 700; }
  .slip { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .slip-stage { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .slip-stage::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 38%; background: linear-gradient(180deg, rgba(3, 5, 20, 0), #030514); }
  .slip::before { display: none; }
  .slip-film { object-position: 66% 50%; }
  .slip-text { padding: .4rem 1.3rem 3.3rem; }
  .slip-hud { left: 1.3rem; right: auto; }
  .slip-hud span { display: none; }
}
@media (max-width: 480px) {
  .form-pair { grid-template-columns: 1fr; }
  .slip-play { font-size: 1.24rem; }
}
@media (prefers-reduced-motion: reduce) { .slip-hud i { animation: none; } .slip-play { transition: none; } }
@media print { .swoop, .hero-pic, .hero-dawn::before, .slip-stage { display: none; } .hero-dawn { min-height: 0; } }

/* 25. NOVEMBER 25, 2026 (evening) ------------------------------------------------------------
   Four looks to choose from (Admin → Look) · the logo in the sky at the top of the home page ·
   the curved line widens as it crosses · the hairline above the footer's curve on an iPhone ·
   a little more of the accent color on headings · portraits and church pictures on a speaker's
   page · a quiet picture beside a sermon, article or study that has none of its own. */

/* --- The top of the home page: the stacked logo in the sky. Beside the verse on a wide screen
       (the verse on the left, the logo on the right, over the sun); above the verse on a narrow one. */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.4rem clamp(1.5rem, 4vw, 4rem); }
.hero-name { grid-column: 1; grid-row: 1; }
.hero-mark { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; line-height: 0; }
.hero-mark img { display: block; width: clamp(14.5rem, 25.5vw, 23rem); height: auto; margin-top: -.5rem; filter: drop-shadow(0 0 18px rgba(var(--hero-glow), .7)) drop-shadow(0 0 3px rgba(var(--hero-glow), .5)); }
.hero-pic img { object-position: var(--hero-pos, 50% 4%); }      /* the sun rises just under the logo's lettering */
/* On wider screens more of the photograph's height is cut away, so it is slid up a little to keep
   the sun between the logo and the sermon strip. (The other looks set --hero-pos themselves.) */
@media (min-width: 1500px) { :root { --hero-pos: 50% 14%; } }
@media (min-width: 1700px) { :root { --hero-pos: 50% 24%; } }
@media (min-width: 1900px) { :root { --hero-pos: 50% 30%; } }
@media (min-width: 2300px) { :root { --hero-pos: 50% 36%; } }
@media (max-width: 820px) {
  .hero-top { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero-name, .hero-mark { grid-column: 1; grid-row: auto; }
  .hero-mark { justify-self: center; }
  .hero-mark img { width: min(62vw, 16.5rem); margin-top: 0; }
  .hero-dawn .hero-name { max-width: none; text-align: center; }
  .hero-dawn .hero-verse { font-size: clamp(1.75rem, 7.6vw, 2.5rem); }
  .hero-pic img { object-position: var(--hero-pos-phone, 50% 44%); }
  .hero-dawn-in { gap: 7rem; padding-top: 1.5rem; }
}

/* --- The hairline above the footer's curve (seen on an iPhone, light look; not in Chrome).
       WHY IT HAPPENED. The footer's dark ground began at exactly the same edge as the curve's
       drawing, whose white fill is meant to hide it there. A page's length is rarely a whole number
       of a phone's pixels, so that shared edge usually falls part-way through one row of them.
       Safari on an iPhone then paints that row twice, each time part-covered: first the dark
       ground, then the white fill over it. Part-covered white over part-covered dark leaves a
       faint dark line. Chrome snaps the edge to a whole pixel, so it never showed there.
       THE CURE. Nothing dark is left at that edge to show through: the first two pixels of the
       footer are the page's own colour (they sit behind the curve's fill, or under the ribbon at
       the far right, so they are never seen), and the drawing is moved up one pixel so its top
       edge lies over the page instead of over the footer's edge. The foot of the home page's
       sunrise is treated the same way. */
.site-footer { background: linear-gradient(180deg, var(--c-paper) 0, var(--c-paper) 2px, var(--footer-from, var(--header-bg)) 2px, var(--header-bg) 12rem); }
.site-footer .swoop { position: relative; top: -1px; height: calc(var(--swoop-h) + 1px); margin-bottom: calc(1.6rem - 1px); }
.hero-dawn { background: linear-gradient(180deg, var(--hero-ground) 0, var(--hero-ground) calc(100% - 2px), var(--c-paper) calc(100% - 2px)); }
.hero-pic, .hero-dawn::before { inset: 0 0 2px 0; }

/* --- Admin → Look → "Preview on the site": a small note at the foot of this browser's pages. --- */
.look-preview { position: fixed; left: 50%; bottom: .8rem; transform: translateX(-50%); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .9rem;
  width: max-content; max-width: calc(100vw - 1.2rem); padding: .55rem .9rem; border-radius: 12px; font-size: .9rem; line-height: 1.35; color: #fff; background: rgba(12, 20, 27, .93);
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.look-preview p { margin: 0; }
.look-preview .btn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .5); padding: .3rem .7rem; font-size: .88rem; }
body.has-player .look-preview { bottom: 5.2rem; }
@media print { .look-preview { display: none; } }

/* --- A little more of the accent color (the brand's red, or the look's own accent). Three small
       things only: a short stroke at the start of the rule above each section heading, the same dot
       as "Latest sermon" before the small label over a sermon, article or study, and the short rule
       under a page's title carried over to the pages written in Admin. It works while it stays rare. */
.section-head, .group-head { position: relative; }
.section-head::before, .group-head::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.6rem; height: 3px; border-radius: 0 2px 2px 0; background: var(--c-red); }
.group-head::before { top: -3px; width: 3.4rem; }
.home-mag .section-head::before { display: none; }      /* the first heading under the hero has no rule above it to mark */
.sermon-head .kicker::before, .article-head .kicker::before, .study-head .kicker::before, .koh .kicker::before {
  content: ""; display: inline-block; width: .46rem; height: .46rem; margin-right: .5rem; border-radius: 50%; vertical-align: .08em; background: var(--c-red); }
.koh .kicker::before { background: var(--c-red-on-ink); }
.narrow > h1::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: .7rem; border-radius: 2px; background: var(--c-red); }
.narrow > h1 { margin-bottom: 1.3rem; }

/* --- A speaker's or writer's page: a small round portrait beside the name, and the church to the side. */
.person-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem 2.2rem; }
.person-head.has-portrait { grid-template-columns: auto minmax(0, 1fr) auto; }
.person-portrait { margin: 0; line-height: 0; }
.person-portrait img { display: block; width: clamp(5.4rem, 9vw, 7.4rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line), 0 14px 28px -18px rgba(8, 20, 33, .55); }
.person-id .kicker { margin-bottom: .3rem; }
.person-id h1 { margin-bottom: .55rem; }
.person-id .lede { margin-bottom: 0; }
.person-church { margin: 0; width: clamp(11rem, 19vw, 14.5rem); }
.person-church img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.person-church figcaption { margin-top: .5rem; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.person-church figcaption strong { display: block; font-weight: 600; color: var(--fg); }
.person-church figcaption span { display: block; }
@media (max-width: 820px) {
  .person-head, .person-head.has-portrait { grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.1rem; }
  .person-head:not(.has-portrait) { grid-template-columns: minmax(0, 1fr); }
  .person-church { grid-column: 1 / -1; width: auto; display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: .9rem; align-items: center; padding-top: .9rem; border-top: 1px solid var(--line); }
  .person-church figcaption { margin-top: 0; }
}

/* --- A picture beside the words of a page written in Admin (the church on the About page). */
.page-fig { float: right; width: min(44%, 17.5rem); margin: .35rem 0 1.1rem 1.8rem; }
.page-fig img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.page-fig figcaption, .side-pic figcaption { margin-top: .5rem; font-family: var(--font-ui); font-size: .84rem; line-height: 1.35; color: var(--muted); }
.narrow .prose::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) { .page-fig { float: none; width: auto; margin: 0 0 1.3rem; } }

/* --- A quiet picture at the top of the side column, for a sermon, article or study with no video
       or picture of its own (see quiet_picture() in app/layout.php). Small, softened, one to a page. */
.side-pic { margin: 0 0 1.7rem; }
.side-pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); filter: saturate(.86); }
/* On a Bible study's tile the passage stays readable over the picture. */
.study-tile-pic .tile-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .1rem; padding: 1rem 1.1rem; color: #fff;
  background: linear-gradient(180deg, rgba(var(--hero-shade), .08) 30%, rgba(var(--hero-shade), .82) 100%); }
.study-tile-pic .tile-over .ref-card-num { font-size: 1.35rem; line-height: 1.15; font-weight: 700; }
.study-tile-pic img.tile-quiet { object-position: 50% 28%; opacity: 1; filter: saturate(.9); }
/* On the home page's strip, while the newest sermon has no video yet. */
.lead-thumb-pic img { filter: saturate(.9); }

/* 26. NOVEMBER 25, 2026 (night) -----------------------------------------------------------------
   "In memory" on the page of someone who has gone home · the picture frame · reading aloud. */

/* --- In memory: a quiet panel of words, then a wall of pictures. ---------------------------------- */
.person-lived { margin: 0 0 .45rem; font-family: var(--font-read); font-style: italic; font-size: 1.08rem; color: var(--muted); }
.memorial { margin: 1.4rem 0 2.6rem; }
.memorial-words { position: relative; max-width: 46rem; padding: 1.5rem 1.7rem 1.4rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.memorial-words::before { content: ""; position: absolute; left: 1.7rem; top: -1px; width: 3rem; height: 3px; border-radius: 0 0 2px 2px; background: var(--c-red); }
.memorial-words h2 { margin: 0 0 .7rem; font-family: var(--font-read); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.memorial-text p { margin: 0 0 .85rem; font-size: 1.07rem; line-height: 1.65; }
.memorial-text p:last-child { margin-bottom: 0; }
.memorial-text em { color: var(--fg); }
.memorial-links { list-style: none; margin: 1.1rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .97rem; }
.memorial-links a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.memorial-pics { list-style: none; margin: 1.4rem 0 0; padding: 0; columns: 3 15rem; column-gap: .9rem; }
.memorial-pics li { break-inside: avoid; margin: 0 0 .9rem; }
.memorial-pic { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.memorial-pic img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.memorial-pic:hover img { transform: scale(1.025); }
.memorial-cap { display: block; padding: .5rem .7rem .55rem; font-size: .86rem; line-height: 1.35; color: var(--muted); background: var(--bg); }
@media (max-width: 560px) { .memorial-words { padding: 1.2rem 1.15rem 1.15rem; } .memorial-words::before { left: 1.15rem; } .memorial-pics { columns: 2; column-gap: .6rem; } .memorial-pics li { margin-bottom: .6rem; } }
@media (prefers-reduced-motion: reduce) { .memorial-pic img { transition: none; } .memorial-pic:hover img { transform: none; } }

/* --- The picture frame: a picture opened larger over the page (site.js). ---------------------------- */
.frame { width: min(96vw, 72rem); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #0C141B; color: #E9EEF2; overflow: hidden; }
.frame::backdrop { background: rgba(6, 10, 14, .82); }
.frame-in { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 94vh; }
.frame-pic { display: grid; place-items: center; min-height: 0; background: #0C141B; }
.frame-pic img { display: block; max-width: 100%; max-height: calc(94vh - 4.2rem); width: auto; height: auto; }
.frame-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.frame-cap { flex: 1; margin: 0; font-size: .95rem; line-height: 1.35; }
.frame-count { font-size: .85rem; color: #A7B6C2; white-space: nowrap; }
.frame button { font: inherit; font-weight: 600; font-size: .9rem; padding: .4rem .75rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; }
.frame button:hover { border-color: #fff; }

/* --- Read aloud: the button under a title, and the bar at the foot of the page (site.js). ------- */
.read-aloud { margin: .9rem 0 1.15rem; }
.read-aloud-btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .95rem; padding: .45rem .95rem .45rem .8rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--link); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.read-aloud-btn:hover { border-color: var(--link); background: var(--surface); }
.read-aloud-btn svg { color: var(--c-red); }
.reader { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--header-bg); color: var(--header-text); border-top: 1px solid var(--header-line);
  box-shadow: 0 -14px 34px -22px rgba(0, 0, 0, .6); --focus: #fff; }
.reader-progress { height: 3px; background: rgba(255, 255, 255, .1); }
.reader-progress i { display: block; height: 100%; width: 0; background: var(--c-red-on-ink); transition: width .4s ease; }
.reader-row { display: flex; align-items: center; gap: .55rem .7rem; padding-block: .55rem .6rem; flex-wrap: wrap; }
.reader-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer; }
.reader-btn:hover { border-color: #fff; }
.reader-play { width: 2.95rem; height: 2.95rem; background: var(--header-accent); border-color: var(--header-accent); color: var(--c-on-accent, #fff); }
.reader .i-play { display: none; }
.reader:not(.is-playing) .i-play { display: block; }
.reader:not(.is-playing) .i-pause { display: none; }
.reader-what { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.reader-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-pos { font-size: .82rem; color: var(--c-muted-on-ink); }
.reader-opt { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--c-muted-on-ink); }
.reader-opt select { font: inherit; font-size: .88rem; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: .3rem .4rem; max-width: 11rem; }
.reader-opt select option { color: #111; }
.reader-close { font: inherit; font-weight: 600; font-size: .88rem; padding: .4rem .8rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer; }
.reader-close:hover { border-color: #fff; }
body.has-reader main { padding-bottom: 7rem; }
body.has-reader .look-preview { bottom: 6.2rem; }
/* The paragraph being read: a soft wash of the accent behind it. */
.reading-now { background: rgba(36, 89, 122, .08); background: color-mix(in srgb, var(--link) 10%, transparent); border-radius: 6px;
  box-shadow: 0 0 0 .4rem rgba(36, 89, 122, .08); box-shadow: 0 0 0 .4rem color-mix(in srgb, var(--link) 10%, transparent); transition: background .3s ease; }
@media (max-width: 640px) {
  .reader-row { gap: .45rem .5rem; }
  .reader-what { order: -1; flex-basis: 100%; }
  .reader-opt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reader-opt select { max-width: 8.5rem; }
  .reader-close { margin-left: auto; }
}
@media print { .read-aloud, .reader { display: none !important; } }
