/* YHWH — manuscript-reverent.
   Palette contrast-verified for WCAG 2.2 AA: gold is used only on hairlines /
   marks / large text, never as body text.
   Fonts are self-hosted (SIL OFL 1.1) — see fonts/README.md + the OFL texts in fonts/. */

/* ---- self-hosted fonts (SIL Open Font License 1.1, no third-party CDN) ---- */
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/eb-garamond-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif Ethiopic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/noto-serif-ethiopic-ethiopic-400-normal.woff2") format("woff2");
  unicode-range: U+1200-137F, U+1380-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF;
}

:root {
  --vellum: #F4ECD8;        /* page ground */
  --parchment: #FBF6E9;     /* card ground */
  --ink: #2B2118;           /* body text — ~12:1 on vellum */
  --sepia: #574532;         /* secondary text */
  --gold: #B8860B;          /* accent rule / large marks only */
  --gold-line: #9A6E12;     /* hairlines */
  --red: #7A1F2B;           /* primary action */
  --red-dark: #5E1722;
  --indigo: #243B6B;        /* links / heading accent */
  --antique: #FCF8EF;       /* text on dark */
  --charcoal: #221C15;      /* footer ground */
  --gold-foot: #C9B27A;     /* footer link gold — ~7:1 on charcoal (AA) */
  --maxw: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}
:lang(gez), :lang(am) { font-family: "Noto Serif Ethiopic", "Kefa", serif; font-size: 1.12em; line-height: 1.7; }

a { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: var(--antique); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header */
.site-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem;
  border-bottom: 2px double var(--gold-line);
}
.wordmark { font-size: 1.4rem; letter-spacing: .12em; font-weight: 600; }
.wordmark .cross { color: var(--gold); }
.wordmark .grace { color: var(--sepia); font-size: .9em; }
/* (language selector removed — the section nav is used instead) */

/* hero */
.hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 3.5rem 1.25rem 2.5rem; }
.cross-lg { font-size: 3rem; color: var(--gold); margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(3rem, 12vw, 6rem); letter-spacing: .22em; margin: 0; color: var(--ink); }
.tagline { font-size: 1.4rem; color: var(--red); margin: .25rem 0 1rem; }
.mission { color: var(--sepia); margin: 0 auto 1.75rem; max-width: 34rem; }
.btn-ghost {
  display: inline-block; text-decoration: none; color: var(--indigo);
  border: 1px solid var(--gold-line); border-radius: 4px; padding: .7rem 1.4rem; font-size: 1.05rem;
}
.btn-ghost:hover { background: var(--parchment); }

/* sections */
.band { max-width: var(--maxw); margin: 0 auto; padding: 1.75rem 1.25rem; }
/* band-alt: full-bleed parchment background, with the CONTENT column centered
   via padding (not per-child auto margins — those were silently cancelled by
   any child whose own rule set margins (.rule, .platforms, .sub-h, ...), so on
   wide screens headings pinned to the viewport edge while prose floated mid-
   screen). The padding trick keeps every child on the same left edge as a
   plain .band section. */
.band-alt {
  background: var(--parchment); border-block: 2px double var(--gold-line);
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - var(--maxw)) / 2 + 1.25rem));
}
.rule { font-size: 1.45rem; color: var(--ink); margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px double var(--gold-line); }
.helper { color: var(--sepia); margin: -.4rem 0 1.25rem; }

/* heading capitalization scheme (site-wide): structural headings render in full
   caps; a dash-continuation is wrapped in .cont and hand-written in Title Case
   in the source, e.g.  PATH 1 — Read the Ready-Made Ethiopian Bible.
   The DOM text stays mixed-case (screen readers read it normally). */
.rule, .sub-h { text-transform: uppercase; letter-spacing: .06em; }
.rule .cont, .sub-h .cont { text-transform: none; letter-spacing: normal; }
.no-caps { text-transform: none; letter-spacing: normal; }

/* page title — the hero h1 on subpages: smaller and quieter than the YHWH
   brand wordmark, so long titles sit on one clean line on a phone. */
.hero h1.page-title { font-size: clamp(1.5rem, 6vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; }
.prose { max-width: 46rem; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--parchment); border: 1px solid var(--gold-line);
  border-top: 4px solid var(--red); border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(34,28,21,.12);
}
.card-featured { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.card-featured .cover { width: 200px; height: auto; }
.card-featured .card-body { flex: 1 1 320px; }
.cover { width: 100%; height: auto; display: block; aspect-ratio: 2 / 3; object-fit: cover; background: var(--vellum); }
.cover-placeholder {
  display: grid; place-items: center; text-align: center; aspect-ratio: 2 / 3;
  background: var(--red); color: var(--antique); font-size: 1.5rem; line-height: 1.5;
  border-bottom: 3px solid var(--gold);
}
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin: 0; font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
.card h3 .sub { color: var(--sepia); font-size: .85em; }
.blurb { margin: 0; color: var(--ink); }
.meta { margin: 0; color: var(--sepia); font-size: .95rem; font-style: italic; }
.download {
  margin-top: auto; align-self: flex-start; display: inline-block;
  background: var(--red); color: var(--antique); text-decoration: none;
  padding: .7rem 1.15rem; border-radius: 4px; font-size: 1rem; min-height: 44px;
}
.download:hover { background: var(--red-dark); }

/* downloads catalog (releases page) — one cover card per edition, a download
   link per device. Static markup from gen_release_catalog.py; no JavaScript. */
.catalog-cards { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); margin-top: 1.25rem; }
.catalog-cards .card-body { gap: .6rem; }
.catalog-cards h3 { font-size: 1.1rem; }
.dl-row { margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.dl-row a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  text-decoration: none; text-align: center; font-size: .95rem; line-height: 1.25;
  color: var(--indigo); background: var(--vellum);
  border: 1px solid var(--gold-line); border-radius: 4px; padding: .4rem .6rem;
}
.dl-row a:hover { background: #fff; border-color: var(--indigo); }
/* M2 colour-variant picker — quiet, no-JS <details> under the card buttons */
.alt-colours { font-size: .9rem; color: var(--sepia); }
.alt-colours summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.alt-colours p { margin: .3rem 0; }
.alt-colours a { color: var(--indigo); }
.download .size { opacity: .85; font-size: .9em; }
/* whole-card clickable, accessible name stays on the link */
.download::after { content: ""; position: absolute; inset: 0; }

/* how-to + lists */
.howto { padding-left: 1.2rem; max-width: 46rem; }
.howto li { margin: .35rem 0; }

/* footer */
.site-foot { background: var(--charcoal); color: var(--antique); text-align: center; padding: 2rem 1.25rem; margin-top: 2rem; }
.site-foot .cross { color: var(--gold); }
.site-foot a { color: var(--gold-foot); }
.site-foot .src { color: #B7AC97; font-size: .95rem; }

@media (max-width: 560px) {
  .card-featured { flex-direction: column; }
  .card-featured .cover { width: 100%; }
  .site-head { justify-content: center; text-align: center; }
}

/* ============================================================
   Program-homepage additions (manuscript-reverent, WCAG 2.2 AA)
   ============================================================ */

/* header: wordmark is a link now; section nav replaces the lang nav */
.wordmark { text-decoration: none; color: var(--ink); }
.wordmark:hover .yhwh { color: var(--red); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; justify-content: flex-end; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--sepia); font-size: 1rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* hero extras */
.hero h1 .yaway { display: block; font-size: clamp(1.4rem, 5vw, 2.2rem); letter-spacing: .14em; color: var(--red); margin-top: .35rem; }
.creed { font-style: italic; max-width: 38rem; }
.creed em { font-style: normal; color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 0 0 1rem; }
.btn-primary {
  display: inline-block; text-decoration: none; background: var(--red); color: var(--antique);
  border: 1px solid var(--red-dark); border-radius: 4px; padding: .8rem 1.6rem; font-size: 1.1rem; min-height: 44px;
}
.btn-primary:hover { background: var(--red-dark); }
.fineprint { color: var(--sepia); font-size: .95rem; margin: .25rem 0 0; }

/* stats band */
.stats { padding-block: 1.5rem; }
.stat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; text-align: center;
}
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; color: var(--red); line-height: 1.05; }
.stat-label { color: var(--sepia); font-size: .95rem; }

/* feature grid */
.feature-grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.feature { background: var(--parchment); border: 1px solid var(--gold-line); border-left: 4px solid var(--gold); border-radius: 3px; padding: 1rem 1.1rem; }
.feature h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--indigo); line-height: 1.25; }
.feature p { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.55; }

/* customization list + honest callout */
.custom-list { list-style: none; margin: .5rem 0 1.25rem; padding: 0; max-width: 46rem; display: grid; gap: .7rem; }
.custom-list li { border-left: 3px solid var(--gold-line); padding-left: .9rem; }
.callout { max-width: 46rem; background: var(--parchment); border: 1px solid var(--gold-line); border-left: 4px solid var(--red); border-radius: 3px; padding: 1rem 1.15rem; color: var(--ink); }

/* sub-headings inside a section */
.sub-h { font-size: 1.1rem; color: var(--red); margin: 1.25rem 0 .35rem; }

/* ordered build steps */
.steps { max-width: 46rem; margin: .5rem 0 1.25rem; padding-left: 1.4rem; }
.steps li { margin: .4rem 0; padding-left: .25rem; }
.steps li::marker { color: var(--gold-line); font-weight: 700; }

/* provenance groups */
.source-group { max-width: 48rem; padding: 1rem 0; border-top: 1px solid var(--gold-line); }
.source-group:first-of-type { border-top: none; padding-top: .5rem; }
.source-group h3 { margin: 0 0 .35rem; font-size: 1.2rem; color: var(--indigo); }
.source-group p { margin: 0; color: var(--ink); }
.footnote { color: var(--sepia); font-size: .95rem; font-style: italic; }

/* editions gallery — showcase cards, no downloads */
.gallery { margin-top: 1.25rem; }
.card-static { cursor: default; }

/* platform + donation button rows */
.platforms, .give { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .5rem; }
.btn-platform, .btn-give {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; background: var(--red); color: var(--antique);
  border: 1px solid var(--red-dark); border-radius: 4px; padding: .7rem 1.25rem; font-size: 1.05rem;
}
.btn-platform:hover, .btn-give:hover { background: var(--red-dark); }
.btn-give { background: var(--indigo); border-color: #182a4d; }
.btn-give:hover { background: #182a4d; }
/* pre-launch placeholder buttons (rendered as non-interactive spans until real URLs land) */
.btn-platform.is-pending, .btn-give.is-pending { opacity: .62; cursor: not-allowed; }
.btn-platform.is-pending:hover { background: var(--red); }
.btn-give.is-pending:hover { background: var(--indigo); }
.platform-note { color: var(--sepia); font-size: .95rem; margin: .35rem 0 0; max-width: 46rem; }
.platform-note a { color: var(--indigo); }

@media (max-width: 560px) {
  .site-nav { justify-content: center; }
  .actions, .platforms, .give { justify-content: center; }
}

/* ============================================================
   v2 additions — multi-page shell: roadmap · beta · releases · feedback,
   the footer "Connect" row + header "Code" link. Manuscript-reverent, WCAG 2.2 AA.
   ============================================================ */

/* active nav link cue (non-color: a permanent gold underline + ink text) */
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold-line); }

/* header "Code" link */
.nav-code { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--indigo); }
.nav-code svg { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ── roadmap timeline ── */
.roadmap-timeline { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--gold-line); display: grid; gap: 1.5rem; }
.stage { position: relative; }
.stage::before { content: ""; position: absolute; left: -1.95rem; top: .4rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold-line); box-shadow: 0 0 0 3px var(--parchment); }
.stage.is-active::before { background: var(--red); }
.stage h3 { margin: .35rem 0 .4rem; font-size: 1.3rem; color: var(--ink); line-height: 1.25; }
.stage p { margin: 0; max-width: 46rem; color: var(--ink); }
.stage-badge { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 3px; }
.is-shipped .stage-badge { color: var(--sepia); background: var(--vellum); border: 1px solid var(--gold-line); }
.is-active .stage-badge { color: var(--antique); background: var(--red); border: 1px solid var(--red-dark); }

/* fenced "with support, next" future group */
.future-group .custom-list li { border-left-color: var(--gold-line); }

/* ── beta page ── */
.beta-hero { padding-top: 2.5rem; }
.beta-medallion { display: block; margin: 0 auto 1rem; width: 160px; height: 160px; }
.beta-ribbon { margin: .6rem 0 0; }
.beta-ribbon a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
.beta-ribbon strong { color: var(--red); }

/* checksum / verify-command monospace */
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }
.verify-cmd { display: inline-block; background: var(--parchment); border: 1px solid var(--gold-line); border-radius: 3px; padding: .1rem .4rem; overflow-wrap: anywhere; }

/* releases — latest card + beta badge */
.latest-release { max-width: 46rem; border-top-color: var(--indigo); }
.badge-beta { display: inline-block; margin: 0 0 .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); border: 1px solid var(--gold-line); border-radius: 3px; padding: .12rem .5rem; }

/* ── footer: creed + connect row + give ── */
.foot-creed { margin: 0 0 .9rem; }
.foot-connect { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; margin: 0 0 .9rem; }
.foot-connect a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .3rem .55rem; color: var(--gold-foot); text-decoration: none; }
.foot-connect a:hover { color: var(--antique); }
.foot-connect svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.foot-give { margin: 0 0 .6rem; color: #B7AC97; font-size: .98rem; }

/* feedback / giscus container */
.giscus { max-width: 46rem; margin-top: 1.5rem; min-height: 12rem; }

@media (max-width: 560px) {
  .foot-connect { gap: .1rem .6rem; }
}

/* note-symbol legend (symbols showcase) */
.legend-grid { list-style: none; margin: 1.25rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.legend { display: flex; gap: .8rem; align-items: flex-start; background: var(--parchment); border: 1px solid var(--gold-line); border-radius: 3px; padding: .8rem .9rem; }
/* the note-family mark, set in a small medallion so every glyph reads as a
   designed badge (consistent size and weight) rather than a bare dingbat */
.legend .glyph {
  flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1; color: var(--gold-line); text-align: center;
  background: var(--vellum); border: 1px solid var(--gold-line); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--parchment);
}
.legend h3 { margin: 0 0 .2rem; font-size: 1.05rem; color: var(--indigo); }
.legend p { margin: 0; font-size: .93rem; color: var(--ink); line-height: 1.5; }

/* Geʽez & Amharic progress page */
.pb-wrap { margin: 1.5rem 0; }
.pb-bar-row { margin: .85rem 0; }
.pb-bar-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.pb-bar-sub { font-size: .85rem; color: var(--sepia); }
.pb-bar { height: .55rem; background: rgba(43,33,24,.10); border-radius: 3px; overflow: hidden; margin-top: .3rem; }
.pb-bar-fill { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.pb-legend { font-size: .85rem; color: var(--sepia); margin: .85rem 0 1.25rem; }
.pb-h { margin: 1.6rem 0 .6rem; font-size: 1.05rem; color: var(--indigo); }
.pb-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .35rem; }
.pb-cell { display: flex; align-items: center; gap: .4rem; padding: .32rem .5rem; border: 1px solid var(--gold-line); border-radius: 3px; font-size: .8rem; background: var(--parchment); }
.pb-badge { font-size: .92rem; line-height: 1; color: var(--gold); }
.pb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pb-en { font-size: .6rem; font-weight: 700; color: var(--indigo); border: 1px solid currentColor; border-radius: 2px; padding: 0 .2rem; }
.pb-ready { border-color: var(--gold); background: rgba(184,134,11,.12); }
.pb-transcribed { background: rgba(184,134,11,.06); }
.pb-source { background: var(--parchment); }
.pb-none { opacity: .5; }
.give-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }

/* the workshop photo (the story behind it) */
figure.workshop { margin: 1.5rem 0; }
.workshop img { width: 100%; height: auto; display: block; border-radius: 3px; border: 1px solid var(--gold-line); }
.workshop figcaption { font-size: .85rem; color: var(--sepia); margin-top: .5rem; text-align: center; }

/* ---------- the on-site chapter reader (read/<lang>/...) ---------- */
/* progress-grid: Bible-ready pills become links into the reader */
.pb-hint { font-size: .92rem; color: var(--sepia); margin: .25rem 0 1.25rem; }
.pb-link { display: flex; align-items: center; gap: .4rem; width: 100%; color: inherit; text-decoration: none; }
.pb-cell.has-reader { cursor: pointer; }
.pb-cell.has-reader:hover, .pb-cell.has-reader:focus-within { border-color: var(--gold); background: rgba(184,134,11,.14); }
.pb-link:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.rdr { max-width: 60rem; }
.rdr-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .95rem; margin-bottom: 1.25rem; }
.rdr-top a, .rdr-nav a { color: var(--indigo); text-decoration: none; }
.rdr-top a:hover, .rdr-nav a:hover { text-decoration: underline; }
.rdr-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
/* manuscript-style chapter heading: cross ornament, Geʽez book name, rubricated Geʽez numeral */
.rdr-head { text-align: center; margin: .5rem 0 1.5rem; }
.rdr-orn { color: var(--gold); font-size: 1.5rem; line-height: 1; }
.rdr-title { margin: .3rem 0 .15rem; font-weight: 600; font-size: 1.6rem; }
.rdr-bk { color: var(--ink); }
.rdr-num { color: var(--red); font-size: 1.5em; }            /* rubricated (red) Ethiopic chapter numeral */
.rdr-sub { color: var(--sepia); font-size: .95rem; margin: 0; }
.rdr-head::after { content: ""; display: block; width: 7rem; margin: 1rem auto 0; border-top: 2px solid var(--gold-line); }
.rdr-tools { display: flex; gap: .6rem; justify-content: center; margin-bottom: 1.5rem; }
.rdr-copy { font: inherit; font-size: .85rem; color: var(--indigo); background: var(--parchment);
  border: 1px solid var(--gold-line); border-radius: .3rem; padding: .3rem .8rem; cursor: pointer; }
.rdr-copy:hover { background: #fff; }
/* per-verse paired rows (Geʽez taller than English → rows, not fixed-height columns) */
.rdr-rows { list-style: none; margin: 0; padding: 0; }
.rdr-row { display: grid; grid-template-columns: 2.4rem 1fr 1fr; gap: .5rem 1.4rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid rgba(122, 31, 43, .10); }
.rdr-row.solo { grid-template-columns: 2.4rem 1fr; }
.rdr-row:last-child { border-bottom: 0; }
.rdr-vn { color: var(--red); font-size: .9rem; text-align: right; user-select: none; -webkit-user-select: none; }
.rdr-gez { margin: 0; }
.rdr-en { margin: 0; color: var(--sepia); }
.rdr-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--gold-line);
  color: var(--sepia); font-size: .9rem; }
@media (max-width: 640px) {
  .rdr-row { grid-template-columns: 2.4rem 1fr; gap: .15rem .8rem; }
  .rdr-en { grid-column: 2; padding-top: .15rem; }   /* stack English under the Geʽez verse */
}
/* book index — the chapter heatmap */
.rdx-grid { list-style: none; padding: 0; margin: 1rem 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: .4rem; }
.rdx-cell { text-align: center; border: 1px solid var(--gold-line); border-radius: .3rem; padding: .45rem 0; font-size: .95rem; }
.rdx-cell .eth { display: block; color: var(--red); font-size: .8rem; line-height: 1.2; }
.rdx-cell a { display: block; text-decoration: none; color: var(--indigo); }
.rdx-ready:hover, .rdx-ready:focus-within { background: rgba(184, 134, 11, .14); border-color: var(--gold); }
.rdx-todo { opacity: .4; }
.rdx-en { display: inline-block; margin-left: .25rem; font-size: .55rem; font-weight: 700; color: var(--indigo);
  border: 1px solid currentColor; border-radius: .2rem; padding: 0 .15rem; vertical-align: middle; }
.rdx-legend { font-size: .85rem; color: var(--sepia); margin: .5rem 0 0; }
