/* Navbar colours - change these direct values while experimenting. */
.utility-nav {
  background: #ffffff;
  border-bottom-color: #dde2de;
}

.utility-nav__service {
  color: rgba(31, 38, 31, .88);
}

.utility-nav .nav-link,
.utility-nav .nav-link-button {
  color: #1f261f;
}

.utility-nav .nav-link:hover,
.utility-nav .nav-link:focus,
.utility-nav .nav-link.active,
.utility-nav .nav-link-button:hover,
.utility-nav .nav-link-button:focus,
.utility-nav .nav-link-button.active {
  color: #3f2c5e;
  background: #f0edf5;
}

.utility-nav .nav-item:not(:last-child)::after {
  background: rgba(31, 38, 31, .2);
}

/* Change this background to recolour the main navbar, footer and primary buttons together. */
.site-nav,
.site-footer,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  background: #563d7c;
}

/* The contrasting brand-title colour (also the footer text). */
.site-nav .navbar-brand,
.site-nav .navbar-brand:hover,
.site-nav .navbar-brand:focus,
.site-footer {
  color: #ffe484;
}

.site-nav {
  box-shadow: 0 1px 0 rgba(40, 28, 61, .16);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  color: #ffffff;
  border-color: transparent;
}

.site-nav .navbar-brand .bi {
  color: #ffffff;
}

.site-nav .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .88);
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus,
.site-nav .navbar-nav .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
}

.site-nav .nav-item:not(:last-child)::after {
  background: rgba(255, 255, 255, .18);
}

:root {
  --ink: #1d1f1f;
  --muted: #68706d;
  --line: #dde2de;
  --surface: #ffffff;
  --surface-alt: #f4f2f7;
  --page: #f7f6f5;
  --brand: #563d7c;
  --brand-dark: #3f2c5e;
  --accent: #b73b2f;
  --gold: #d6a743;
  --shadow-sm: 0 8px 22px rgba(29, 31, 31, .06);
  /* Verse highlight colours */
  --hl-yellow: #fff3b0;
  --hl-green: #d9f2d0;
  --hl-blue: #d6e9f8;
  --hl-pink: #f8dbe4;
  --diff-left: #f9d9d5;
  --diff-right: #d9efdc;
}

html {
  font-size: 16px;
  min-height: 100%;
  overflow-y: scroll;
}

body {
  min-height: 100%;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  padding-bottom: 5.5rem;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

.btn {
  border-radius: 4px;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .08);
}

main {
  padding-bottom: 2rem;
}

.muted {
  color: var(--muted);
}

.error-page {
  width: min(42rem, calc(100% - 2rem));
  margin: clamp(3rem, 9vw, 7rem) auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.error-page h1 {
  margin: .35rem 0 .8rem;
  font-family: Georgia, "Times New Roman", serif;
}

.error-page .lede {
  color: var(--muted);
  font-size: 1.08rem;
}

.error-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}

.error-page__reference {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

/* ---------- Utility navbar (top, white) ---------- */

.utility-nav {
  min-height: 2.35rem;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.utility-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-nav__service {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-self: start;
  gap: .45rem 1.1rem;
  font-size: .78rem;
  font-weight: 500;
}

.utility-nav__service span,
.utility-nav__service a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.utility-nav__service a:hover,
.utility-nav__service a:focus {
  color: var(--brand);
  text-decoration: underline;
}

.utility-nav__links {
  justify-self: end;
  gap: .1rem;
  margin-left: 0 !important;
}

.utility-nav .nav-link,
.utility-nav .nav-link-button {
  font-size: .8rem;
  font-weight: 500;
  border-radius: 4px;
  padding: .32rem .6rem;
}

.utility-nav .nav-link:hover,
.utility-nav .nav-link:focus,
.utility-nav .nav-link.active,
.utility-nav .nav-link-button:hover,
.utility-nav .nav-link-button:focus,
.utility-nav .nav-link-button.active {
  text-decoration: none;
}

.utility-nav .nav-item {
  display: inline-flex;
  align-items: center;
}

.utility-nav .nav-item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 1.15rem;
  margin: 0 .42rem;
}

/* ---------- Main navbar (purple) ---------- */

.site-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.site-nav .navbar-brand .bi {
  font-size: 1.3rem;
}

.site-nav .nav-link {
  font-size: .9rem;
  font-weight: 500;
  border-radius: 4px;
  padding-right: .9rem;
  padding-left: .9rem;
}

.site-nav .nav-item {
  display: flex;
  align-items: center;
}

.site-nav .nav-item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 1.5rem;
  margin: 0 .65rem;
  border-radius: 999px;
}

.nav-logout {
  margin: 0;
}

.nav-link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* ---------- Testament mega menus ---------- */

.main-nav .container {
  position: relative;
}

.nav-item--mega {
  position: static;
}

.nav-mega__toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-mega__toggle .bi {
  font-size: .72rem;
  transition: transform .16s ease;
}

.nav-item--mega:hover .nav-mega__toggle .bi,
.nav-item--mega:focus-within .nav-mega__toggle .bi,
.nav-item--mega.is-open .nav-mega__toggle .bi {
  transform: rotate(180deg);
}

.nav-item--mega:hover .nav-mega__toggle,
.nav-item--mega:focus-within .nav-mega__toggle,
.nav-item--mega.is-open .nav-mega__toggle {
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
}

.nav-mega__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 60;
  display: none;
  gap: 1rem;
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 16px 40px rgba(29, 31, 31, .18);
}

.nav-mega__dropdown--ot {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-mega__dropdown--nt {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-item--mega:hover .nav-mega__dropdown,
.nav-item--mega:focus-within .nav-mega__dropdown,
.nav-item--mega.is-open .nav-mega__dropdown {
  display: grid;
}

.nav-mega__view-all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .75rem;
  color: var(--brand-dark);
  background: var(--surface-alt);
  border-radius: 4px;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-mega__group {
  min-width: 0;
}

.nav-mega__group-name {
  display: block;
  padding: .3rem .5rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06rem;
  text-transform: uppercase;
}

.nav-mega__booklist {
  display: grid;
  gap: .1rem;
}

.nav-mega__book-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  padding: .32rem .5rem;
  color: var(--brand-dark);
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 400;
  text-decoration: none;
}

.nav-mega__book-link small {
  color: var(--muted);
  font-size: .68rem;
}

.nav-mega__view-all:hover,
.nav-mega__view-all:focus,
.nav-mega__book-link:hover,
.nav-mega__book-link:focus {
  color: var(--brand-dark);
  background: #ece7f3;
}

/* ---------- Footer ---------- */

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  padding: 1rem 0;
  font-size: .9rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__brand {
  color: #ffffff;
}

.site-footer__note {
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
}

a.site-footer__note:hover,
a.site-footer__note:focus {
  color: #ffffff;
}

/* ---------- Page heading strip ---------- */

.page-heading {
  padding: .85rem 0;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08rem;
  text-transform: uppercase;
}

/* ---------- Reader ---------- */

.reader {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.6rem 1rem 0;
}

.reader-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .9rem;
}

.reader-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
}

.reader-chapter {
  color: var(--brand);
}

.translation-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem;
}

.translation-pill {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.translation-pill:hover,
.translation-pill:focus {
  background: #ece7f3;
  color: var(--brand-dark);
}

.translation-pill--active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.translation-pill--compare {
  gap: .3rem;
  color: var(--brand);
  border-color: #b8a8ce;
}

.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin: .9rem 0;
}

.chapter-nav__arrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-width: 6rem;
  padding: .4rem .6rem;
  color: var(--brand-dark);
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.chapter-nav__arrow--next {
  justify-content: flex-end;
}

.chapter-nav__arrow:hover,
.chapter-nav__arrow:focus {
  background: #ece7f3;
  color: var(--brand-dark);
}

.chapter-nav__arrow--disabled {
  min-width: 6rem;
}

.chapter-nav__pickers {
  display: inline-flex;
  gap: .45rem;
}

.chapter-nav__select {
  width: auto;
  font-size: .88rem;
  border-color: var(--line);
}

.chapter-nav__select--chapter {
  min-width: 4.4rem;
}

.verses {
  margin: 1.3rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.75;
}

.verse {
  position: relative;
  padding: .18rem 8.8rem .18rem .5rem;
  margin-left: -.5rem;
  border-radius: 4px;
}

.verse .vnum {
  margin-right: .35rem;
  color: var(--brand);
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
}

.verse:target {
  background: #ece7f3;
  outline: 1px solid #cdc0e0;
}

/* Verse highlight colours (named tokens saved on VerseNote.HighlightColor) */
.verse.hl-yellow { background: var(--hl-yellow); }
.verse.hl-green  { background: var(--hl-green); }
.verse.hl-blue   { background: var(--hl-blue); }
.verse.hl-pink   { background: var(--hl-pink); }

.verse-tools {
  position: absolute;
  top: .1rem;
  right: .3rem;
  display: inline-flex;
  gap: .1rem;
  opacity: 0;
  transition: opacity .12s ease;
}

.verse:hover .verse-tools,
.verse:focus-within .verse-tools {
  opacity: 1;
}

@media (hover: none) {
  .verse-tools {
    opacity: .55;
  }
}

.vtool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
}

.vtool:hover,
.vtool:focus {
  color: var(--brand-dark);
  background: #ece7f3;
}

.vtool.is-on,
.vtool.has-note {
  color: var(--brand);
}

/* Popover for highlight swatches / note editing (built by reader.js) */
.vpopover {
  position: absolute;
  top: 2rem;
  right: .3rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 15rem;
  padding: .7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(29, 31, 31, .16);
  font-family: system-ui, sans-serif;
  font-size: .84rem;
}

.vpopover__swatches {
  display: flex;
  gap: .4rem;
}

.vpopover__swatch {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(29, 31, 31, .2);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.vpopover__swatch--yellow { background: var(--hl-yellow); }
.vpopover__swatch--green  { background: var(--hl-green); }
.vpopover__swatch--blue   { background: var(--hl-blue); }
.vpopover__swatch--pink   { background: var(--hl-pink); }

.vpopover__swatch--none {
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
  width: auto;
  padding: 0 .45rem;
}

.vpopover textarea {
  min-height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .4rem .5rem;
  font: inherit;
}

.vpopover__actions {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}

.reader-license {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

/* ---------- Testament page ---------- */

.testament-page {
  padding-top: 1.6rem;
}

.testament-page h1 {
  font-size: 1.9rem;
  font-weight: 700;
}

.testament-intro {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.testament-books {
  display: grid;
  gap: 1rem;
}

.testament-book {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.testament-book__name {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.testament-book__name a {
  text-decoration: none;
  color: var(--brand-dark);
}

.testament-book__name a:hover {
  text-decoration: underline;
}

.chapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.chapter-grid__cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 .3rem;
  color: var(--brand-dark);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}

.chapter-grid__cell:hover,
.chapter-grid__cell:focus {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

/* ---------- Home page ---------- */

.home-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #3f2c5e, #563d7c 55%, #6a4d96);
  padding: 3.4rem 0 3rem;
}

.home-hero h1 {
  margin: 0 0 .8rem;
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
}

.home-hero .hero-copy {
  max-width: 620px;
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1.12rem;
}

.home-hero .eyebrow {
  color: #ffe484;
}

.hero-search {
  display: flex;
  gap: .5rem;
  max-width: 540px;
}

.hero-search .form-control {
  border: 0;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.home-card--wide {
  grid-column: 1 / -1;
}

.home-card h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.home-card h2 .bi {
  color: var(--brand);
}

.home-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.home-card__verse {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-card__ref {
  color: var(--brand);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}

.home-card__ref:hover {
  text-decoration: underline;
}

.home-card__compare {
  width: fit-content;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.home-card__compare:hover,
.home-card__compare:focus {
  color: var(--brand);
  text-decoration: underline;
}

.home-card__actions {
  margin-top: auto;
  padding-top: .4rem;
}

/* ---------- Search ---------- */

.search-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.6rem 1rem 0;
}

.search-page h1 {
  font-size: 1.9rem;
  font-weight: 700;
}

.search-form {
  display: grid;
  gap: .7rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.search-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.search-form__row .form-select {
  width: auto;
}

.search-form__query {
  flex: 1;
  min-width: 14rem;
}

.search-form__check {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}

.search-form__hint {
  margin: -.15rem 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.search-count {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .9rem;
}

.search-results {
  display: grid;
  gap: .5rem;
}

.search-result {
  padding: .75rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.search-result__ref {
  display: inline-block;
  margin-bottom: .2rem;
  color: var(--brand);
  font-weight: 600;
  font-size: .86rem;
  text-decoration: none;
}

.search-result__ref:hover {
  text-decoration: underline;
}

.search-result__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.search-result__compare {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
}

.search-result__compare:hover,
.search-result__compare:focus {
  color: var(--brand);
  text-decoration: underline;
}

.search-result__text {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98rem;
  line-height: 1.6;
}

.search-result__text mark {
  padding: 0 .1rem;
  background: var(--hl-yellow);
  border-radius: 2px;
}

.search-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 1.3rem 0 0;
  font-size: .9rem;
}

/* ---------- Bookmarks / Notes lists ---------- */

.marks-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.6rem 1rem 0;
}

.marks-page h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.marks-book {
  margin-bottom: 1.2rem;
}

.marks-book h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.marks-list {
  display: grid;
  gap: .5rem;
}

.mark-row {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .75rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.mark-row__body {
  flex: 1;
  min-width: 0;
}

.mark-row__swatch {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: .25rem;
  border: 1px solid rgba(29, 31, 31, .15);
  border-radius: 3px;
}

.mark-row__text {
  margin: .15rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .96rem;
  line-height: 1.55;
}

.mark-row__note {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  white-space: pre-wrap;
}

.mark-row__remove {
  flex: 0 0 auto;
}

.mark-row__compare {
  display: inline-block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
}

.mark-row__compare:hover,
.mark-row__compare:focus {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- Translation guide ---------- */

.translations-page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.8rem 1rem 0;
}

.translations-head {
  max-width: 54rem;
  margin-bottom: 1.3rem;
}

.translations-head .eyebrow {
  margin-bottom: .3rem;
  color: var(--brand);
}

.translations-head h1 {
  margin: 0 0 .45rem;
  font-size: 2rem;
  font-weight: 750;
}

.translations-head > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.translation-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.translation-guide-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.translation-guide-card header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .15rem .55rem;
}

.translation-guide-card__code {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  height: 3.4rem;
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03rem;
}

.translation-guide-card__year {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.translation-guide-card h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.12rem;
  font-weight: 750;
}

.translation-guide-card__style {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.translation-guide-card > p {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.55;
}

.translation-guide-card__best {
  display: grid;
  gap: .15rem;
  padding: .65rem .75rem;
  background: var(--surface-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-size: .82rem;
}

.translation-guide-card__best strong {
  color: var(--brand-dark);
  font-size: .7rem;
  letter-spacing: .035rem;
  text-transform: uppercase;
}

.translation-guide-card__facts {
  display: grid;
  gap: .35rem;
  margin: 0;
}

.translation-guide-card__facts > div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: .5rem;
  padding-top: .35rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
}

.translation-guide-card__facts dt {
  color: var(--muted);
  font-weight: 700;
}

.translation-guide-card__facts dd {
  margin: 0;
}

.translation-guide-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}

.translation-guide-card__source {
  margin-left: auto;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
}

.translation-guide-card__source:hover,
.translation-guide-card__source:focus {
  color: var(--brand);
  text-decoration: underline;
}

.translation-guide-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  background: #f0edf5;
  border: 1px solid #d9d0e5;
  border-radius: 6px;
  font-size: .84rem;
}

.translation-guide-note .bi {
  color: var(--brand);
}

.translation-guide-note p {
  margin: 0;
}

.translations-parallel-cta {
  margin: 1rem 0 0;
  text-align: center;
}

/* ---------- Translation comparison ---------- */

.comparison-page {
  max-width: 82rem;
  margin: 0 auto;
  padding: 1.6rem 1rem 0;
}

.comparison-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.comparison-head .eyebrow {
  margin-bottom: .3rem;
  color: var(--brand);
}

.comparison-head h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 750;
}

.comparison-head h1 span {
  color: var(--brand);
}

.comparison-head p:not(.eyebrow) {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.comparison-controls {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto minmax(15rem, 1fr) auto;
  align-items: end;
  gap: .65rem;
  padding: .9rem;
  margin: 1.1rem 0 .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.comparison-controls label {
  display: grid;
  gap: .3rem;
  min-width: 0;
}

.comparison-controls label > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .035rem;
  text-transform: uppercase;
}

.comparison-controls .form-select {
  min-width: 0;
  font-size: .88rem;
}

.comparison-swap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .05rem;
  color: var(--brand);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.comparison-swap:hover,
.comparison-swap:focus {
  color: #ffffff;
  background: var(--brand);
}

.comparison-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: .55rem .7rem;
  margin-bottom: .65rem;
  color: var(--muted);
  font-size: .8rem;
}

.comparison-options label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.comparison-options [data-copy-comparison] {
  margin-left: auto;
}

.comparison-feedback {
  min-width: 8rem;
  color: var(--brand-dark);
  font-weight: 600;
}

.comparison-clear-range {
  color: var(--brand);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
}

.comparison-clear-range:hover,
.comparison-clear-range:focus {
  text-decoration: underline;
}

.comparison-table {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.comparison-table__head,
.comparison-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1fr);
}

.comparison-table__head {
  color: #ffffff;
  background: var(--brand-dark);
  font-size: .78rem;
}

.comparison-table__head > span {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  padding: .7rem .85rem;
}

.comparison-table__head > span + span {
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.comparison-table__head small {
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
}

.comparison-row {
  position: relative;
  scroll-margin-top: 1rem;
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}

.comparison-row:nth-child(odd) {
  background: #fbfafc;
}

.comparison-row:hover {
  background: #f4f0f8;
}

.comparison-row:target {
  z-index: 1;
  background: #f0eaf6;
  outline: 2px solid #9c85bc;
  outline-offset: -2px;
}

.comparison-row__number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .75rem .25rem;
  color: var(--muted);
  background: rgba(86, 61, 124, .045);
  font-size: .72rem;
  font-weight: 700;
}

.comparison-row__number a {
  color: var(--brand);
  text-decoration: none;
}

.comparison-row__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: .7rem;
  opacity: 0;
}

.comparison-row__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--muted);
  border-radius: 3px;
  font-size: .7rem;
  opacity: 0;
  text-decoration: none;
}

.comparison-row:hover .comparison-row__copy,
.comparison-row:focus-within .comparison-row__copy,
.comparison-row:hover .comparison-row__all,
.comparison-row:focus-within .comparison-row__all {
  opacity: 1;
}

.comparison-row__copy:hover,
.comparison-row__copy:focus,
.comparison-row__all:hover,
.comparison-row__all:focus {
  color: #ffffff;
  background: var(--brand);
}

.comparison-cell {
  min-width: 0;
  padding: .72rem .9rem .85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98rem;
  line-height: 1.65;
}

.comparison-cell + .comparison-cell {
  border-left: 1px solid var(--line);
}

.comparison-diff {
  padding: .06rem .1rem;
  color: inherit;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.show-differences .comparison-diff--left {
  background: var(--diff-left);
  text-decoration: underline;
  text-decoration-color: rgba(145, 55, 45, .36);
  text-underline-offset: .14rem;
}

.show-differences .comparison-diff--right {
  background: var(--diff-right);
  text-decoration: underline;
  text-decoration-color: rgba(43, 105, 54, .38);
  text-underline-offset: .14rem;
}

.comparison-table:not(.show-differences) .comparison-diff {
  padding: 0;
  background: transparent;
}

.comparison-missing {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: .82rem;
}

/* ---------- All-translations verse view ---------- */

.parallel-page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.7rem 1rem 0;
}

.parallel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.parallel-head .eyebrow {
  margin-bottom: .25rem;
  color: var(--brand);
}

.parallel-head h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 750;
}

.parallel-head h1 span {
  color: var(--brand);
}

.parallel-head p:not(.eyebrow) {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.parallel-head__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.parallel-jump {
  display: grid;
  grid-template-columns: auto minmax(14rem, 24rem) auto 1fr;
  align-items: center;
  gap: .45rem;
  padding: .7rem .8rem;
  margin: 1rem 0 .65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .78rem;
}

.parallel-jump label {
  color: var(--muted);
  font-weight: 700;
}

.parallel-feedback {
  color: var(--brand-dark);
  font-weight: 600;
}

.parallel-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .4rem 0 .7rem;
  font-size: .8rem;
}

.parallel-nav a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.parallel-nav a:hover,
.parallel-nav a:focus {
  text-decoration: underline;
}

.parallel-list {
  display: grid;
  gap: .55rem;
}

.parallel-row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.parallel-row header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem;
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
}

.parallel-row header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
}

.parallel-row h2 {
  margin: 0 0 .15rem;
  color: var(--brand-dark);
  font-size: .88rem;
  font-weight: 750;
}

.parallel-row header a {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-decoration: none;
}

.parallel-row header a:hover,
.parallel-row header a:focus {
  color: var(--brand);
  text-decoration: underline;
}

.parallel-row__text,
.parallel-row__missing {
  align-self: center;
  margin: 0;
  padding: .85rem 1rem;
}

.parallel-row__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
}

.parallel-row__missing {
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  /* Collapsed navbar: mega menus become inline collapsible lists. */
  .nav-mega__dropdown {
    position: static;
    grid-template-columns: 1fr;
    max-height: none;
    box-shadow: none;
    border-radius: 4px;
    margin: .25rem 0 .6rem;
  }

  .nav-item--mega:hover .nav-mega__dropdown,
  .nav-item--mega:focus-within .nav-mega__dropdown {
    display: none;
  }

  .nav-item--mega.is-open .nav-mega__dropdown {
    display: grid;
  }

  .site-nav .nav-item {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav .nav-item:not(:last-child)::after {
    display: none;
  }

  .nav-mega__toggle {
    justify-content: space-between;
    width: 100%;
  }

  .verse {
    padding-right: .5rem;
  }

  .verse-tools {
    position: static;
    display: flex;
    margin-top: .1rem;
  }

  .comparison-controls {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .comparison-controls__submit {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .utility-nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .translation-guide-grid {
    grid-template-columns: 1fr;
  }

  .translation-guide-card__source {
    width: 100%;
    margin-left: 0;
  }

  .chapter-nav__arrow {
    min-width: 0;
  }

  .comparison-head {
    flex-direction: column;
  }

  .comparison-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .comparison-controls label:last-of-type {
    grid-column: 1 / -1;
  }

  .comparison-swap {
    grid-column: 2;
    grid-row: 1;
  }

  .comparison-options [data-copy-comparison] {
    margin-left: 0;
  }

  .comparison-table__head {
    display: none;
  }

  .comparison-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: .25rem 0;
  }

  .comparison-row__number {
    grid-row: 1 / 3;
  }

  .comparison-cell {
    position: relative;
    padding: 1.55rem .75rem .7rem;
  }

  .comparison-cell + .comparison-cell {
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .comparison-cell::before {
    content: attr(data-label);
    position: absolute;
    top: .35rem;
    left: .75rem;
    color: var(--brand);
    font-family: system-ui, sans-serif;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04rem;
  }

  .comparison-row__copy {
    opacity: .65;
  }

  .comparison-row__all {
    opacity: .65;
  }

  .parallel-head {
    flex-direction: column;
  }

  .parallel-head__actions {
    justify-content: flex-start;
  }

  .parallel-jump {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .parallel-jump label,
  .parallel-feedback {
    grid-column: 1 / -1;
  }

  .parallel-row {
    grid-template-columns: 1fr;
  }

  .parallel-row header {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .chapter-nav,
  .verse-tools,
  .translation-switch,
  .reader-license {
    display: none !important;
  }

  .comparison-controls,
  .comparison-chapter-nav,
  .comparison-options,
  .comparison-row__copy,
  .comparison-head .btn {
    display: none !important;
  }

  .comparison-page {
    max-width: none;
    padding: 0;
  }

  .comparison-table {
    box-shadow: none;
  }

  .parallel-jump,
  .parallel-nav,
  .parallel-head__actions,
  .comparison-row__all {
    display: none !important;
  }

  .parallel-page {
    max-width: none;
    padding: 0;
  }

  .parallel-row {
    break-inside: avoid;
    box-shadow: none;
  }

  body {
    background: #ffffff;
    padding-bottom: 0;
  }

  .verse {
    padding-right: 0;
  }
}

/* ==========================================================================
   Editorial refinement
   A restrained, book-led visual system layered over the component primitives.
   ========================================================================== */

:root {
  --ink: #252836;
  --ink-soft: #505466;
  --muted: #747787;
  --line: #d9d2d0;
  --line-strong: #c8bdbc;
  --surface: #fffdfa;
  --surface-alt: #f2eceb;
  --page: #f8f4f2;
  --brand: #20395f;
  --brand-dark: #142842;
  --brand-soft: #e3e8f0;
  --accent: #8b3348;
  --gold: #a14458;
  --gold-light: #e5c1ca;
  --shadow-sm: 0 10px 30px rgba(28, 35, 55, .055);
  --shadow-md: 0 22px 60px rgba(20, 30, 49, .12);
  --content-max: 82.5rem;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --reader: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --hl-yellow: #f7eab6;
  --hl-green: #dcebd9;
  --hl-blue: #dce9ee;
  --hl-pink: #efdcd9;
  --diff-left: #f1d9e0;
  --diff-right: #dce5f1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(161, 68, 88, .045), transparent 28rem),
    var(--page);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  min-width: 0;
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

h1,
h2,
h3,
.reader-title {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.025em;
}

a {
  color: var(--brand);
  text-underline-offset: .16em;
}

a:hover {
  color: var(--accent);
}

::selection {
  color: var(--ink);
  background: #e6cad0;
}

:focus-visible {
  outline: 3px solid rgba(161, 68, 88, .72);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 3000;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 3px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: .65rem;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .14em;
}

.btn {
  min-height: 2.65rem;
  padding: .56rem 1rem;
  border-radius: 3px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.btn-sm {
  min-height: 2.25rem;
  padding: .4rem .72rem;
  font-size: .78rem;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: none;
}

.btn-outline-secondary {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: var(--brand-dark);
  background: var(--surface-alt);
  border-color: var(--brand);
}

.form-control,
.form-select {
  min-height: 2.65rem;
  color: var(--ink);
  background-color: #fff;
  border-color: var(--line-strong);
  border-radius: 3px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(161, 68, 88, .15);
}

/* ----- Header and navigation ----- */

.site-header {
  position: relative;
  z-index: 100;
}

.utility-nav {
  min-height: 2.15rem;
  color: var(--ink-soft);
  background: #eee9e8;
  border-color: #ddd3d2;
}

.utility-nav__service {
  gap: .75rem 1.15rem;
  color: inherit;
  font-size: .72rem;
  letter-spacing: .015em;
}

.utility-nav__service span:first-child::before {
  content: "";
  display: inline-block;
  width: .35rem;
  height: .35rem;
  margin-right: .45rem;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: .08rem;
}

.utility-nav__service a:hover,
.utility-nav__service a:focus {
  color: var(--brand-dark);
}

.utility-nav .nav-link,
.utility-nav .nav-link-button {
  min-height: auto;
  padding: .25rem .5rem;
  color: var(--ink-soft);
  font-size: .72rem;
  border-radius: 2px;
}

.utility-nav .nav-link:hover,
.utility-nav .nav-link:focus,
.utility-nav .nav-link.active,
.utility-nav .nav-link-button:hover,
.utility-nav .nav-link-button:focus {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, .55);
}

.site-nav,
.site-footer {
  background: var(--brand);
}

.site-nav {
  min-height: 4.75rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 5px 20px rgba(15, 29, 50, .09);
}

.site-nav .navbar-brand {
  gap: .72rem;
  color: #fff;
}

.site-nav .navbar-brand:hover,
.site-nav .navbar-brand:focus {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(229, 193, 202, .82);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: .28rem;
  color: rgba(255, 255, 255, .62);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav .navbar-nav {
  align-items: center;
  gap: .08rem;
}

.site-nav .nav-item:not(:last-child)::after {
  display: none;
}

.site-nav .nav-link {
  min-height: auto;
  padding: .55rem .72rem;
  color: rgba(255, 255, 255, .78);
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 620;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}

.site-nav .nav-link.active {
  box-shadow: inset 0 -1px var(--gold-light);
}

.site-nav .nav-link .bi-search {
  margin-right: .18rem;
  font-size: .75rem;
}

.site-nav .nav-continue {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: .45rem;
  padding: .58rem .82rem;
  color: var(--brand-dark);
  background: var(--gold-light);
}

/* Continue-reading call to action. These selectors deliberately match the
   three-class ".site-nav .navbar-nav .nav-link" rule near the top of this file,
   which would otherwise force the link to white and leave the text unreadable.
   Direct values so the button can be recoloured here in one place. */
.site-nav .navbar-nav .nav-continue {
  color: #142842;
  background: #c9a227;
}

.site-nav .navbar-nav .nav-continue:hover,
.site-nav .navbar-nav .nav-continue:focus,
.site-nav .navbar-nav .nav-continue.active {
  color: #142842;
  background: #dcb63c;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
  border-radius: 2px;
}

.nav-mega__dropdown {
  top: calc(100% + .65rem);
  padding: 1.2rem;
  background: var(--surface);
  border-color: var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-md);
}

.nav-mega__view-all {
  padding: .72rem .85rem;
  color: var(--brand-dark);
  background: var(--surface-alt);
}

.nav-mega__group-name {
  color: var(--gold);
}

.nav-mega__book-link {
  color: var(--ink-soft);
}

.nav-mega__view-all:hover,
.nav-mega__view-all:focus,
.nav-mega__book-link:hover,
.nav-mega__book-link:focus {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

/* ----- Footer ----- */

.site-footer {
  position: static;
  flex: 0 0 auto;
  padding: 2.2rem 0;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.3rem 3rem;
  align-items: start;
}

.site-footer__brand {
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
}

.site-footer__grid p {
  max-width: 31rem;
  margin: .35rem 0 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.1rem;
}

.site-footer__links a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  color: #fff;
  text-decoration: underline;
}

.site-footer__fine {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .7rem;
}

.site-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2500;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: .75rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  font-size: .82rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(.75rem);
  transition: opacity .18s ease, transform .18s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Shared page introductions ----- */

.page-intro {
  max-width: none;
  margin-bottom: 1.5rem;
}

.page-intro .eyebrow {
  margin-bottom: .42rem;
}

.page-intro h1 {
  margin: 0 0 .45rem;
  font-size: clamp(2.15rem, 5vw, 3.2rem);
}

.page-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--reader);
  font-size: 1rem;
  line-height: 1.65;
}

/* ----- Home ----- */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.8rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(229, 193, 202, .18), transparent 27rem),
    linear-gradient(145deg, #142842 0%, #20395f 60%, #304f7b 100%);
}

.home-hero::after {
  content: "“";
  position: absolute;
  right: 3vw;
  bottom: -8rem;
  color: rgba(255, 255, 255, .025);
  font-family: var(--display);
  font-size: 36rem;
  line-height: 1;
  pointer-events: none;
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.home-hero__content {
  max-width: 47rem;
}

.home-hero h1 {
  max-width: 46rem;
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.home-hero .hero-copy {
  max-width: 42rem;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, .75);
  font-family: var(--reader);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-search {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  max-width: 43rem;
  padding: .32rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 48px rgba(10, 22, 40, .25);
}

.hero-search > .bi {
  align-self: center;
  margin-left: .75rem;
  color: var(--muted);
}

.hero-search .form-control {
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.hero-search .btn {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.home-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  margin-top: 1rem;
}

.home-hero__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--brand-dark);
}

.home-hero__text-link {
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-weight: 650;
}

.home-hero__text-link:hover {
  color: #fff;
}

.daily-reading {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.35rem);
  color: var(--ink);
  background: #fbf5f4;
  border: 1px solid rgba(229, 193, 202, .76);
  border-radius: 2px;
  box-shadow: 0 30px 70px rgba(10, 20, 38, .25);
}

.daily-reading::before {
  content: "";
  position: absolute;
  inset: .5rem;
  border: 1px solid rgba(161, 68, 88, .2);
  pointer-events: none;
}

.daily-reading__label {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.35rem;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.daily-reading__label span {
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
}

.daily-reading blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.48;
}

.daily-reading footer {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1.35rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 700;
}

.daily-reading footer a {
  text-decoration: none;
}

.daily-reading footer span {
  color: var(--muted);
}

.daily-reading__compare {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.home-facts {
  color: var(--ink-soft);
  background: #eee9e8;
  border-bottom: 1px solid #ddd3d2;
}

.home-facts .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-facts span {
  padding: 1.05rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .025em;
}

.home-facts span + span {
  border-left: 1px solid #d9cecd;
}

.home-facts strong {
  margin-right: .22rem;
  color: var(--brand-dark);
  font-family: var(--display);
  font-size: 1rem;
}

.home-section,
.home-study .container {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.65rem;
}

.section-heading .eyebrow {
  margin-bottom: .35rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading > p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--reader);
  line-height: 1.55;
}

.testament-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.testament-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem;
  align-items: center;
  min-height: 10rem;
  padding: 1.5rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.testament-card:hover,
.testament-card:focus {
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testament-card__number {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.25rem;
}

.testament-card__body {
  display: grid;
}

.testament-card__body small {
  margin-bottom: .25rem;
  color: var(--gold);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.testament-card__body strong {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
}

.testament-card__body > span {
  margin-top: .3rem;
  color: var(--muted);
  font-size: .8rem;
}

.testament-card > .bi {
  color: var(--gold);
}

.home-study {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background: #eee9e8;
  border-top: 1px solid #ddd3d2;
}

.home-study .container {
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.study-card {
  padding: 1.4rem;
  background: rgba(255, 253, 250, .78);
  border-top: 2px solid var(--gold);
}

.study-card__icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
}

.study-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.3rem;
}

.study-card p {
  min-height: 4.3rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.study-card a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

/* ----- Reader ----- */

.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2200;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.reader {
  width: 100%;
  max-width: var(--content-max);
  padding: clamp(2.2rem, 5vw, 4.25rem) 1rem 0;
}

.reader-head {
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.reader-head .eyebrow {
  margin-bottom: .25rem;
}

.reader-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.reader-chapter {
  color: var(--gold);
}

.translation-switch {
  gap: .35rem;
}

.translation-pill {
  min-height: 2rem;
  padding: .35rem .68rem;
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line-strong);
  border-radius: 2px;
  font-size: .7rem;
  letter-spacing: .035em;
}

.translation-pill:hover,
.translation-pill:focus {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.translation-pill--active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.translation-pill--compare {
  color: var(--brand);
  border-color: #98a9c2;
}

.reader-preferences {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .18rem;
  margin-bottom: .25rem;
}

.reader-preferences > span {
  margin-right: .35rem;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reader-preferences button {
  display: inline-grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0 .38rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--reader);
  font-size: .75rem;
}

.reader-preferences button:hover,
.reader-preferences button:focus,
.reader-preferences button[aria-pressed="true"] {
  color: var(--brand-dark);
  background: var(--surface-alt);
  border-color: var(--line);
}

.chapter-nav {
  gap: .8rem;
  margin: .8rem 0 1.15rem;
  padding: .55rem;
  background: rgba(255, 253, 250, .8);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.chapter-nav__arrow {
  min-width: 6.5rem;
  color: var(--ink-soft);
  font-size: .78rem;
}

.chapter-nav__arrow:hover,
.chapter-nav__arrow:focus {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.chapter-nav__select {
  min-height: 2.25rem;
  padding-top: .3rem;
  padding-bottom: .3rem;
  font-size: .78rem;
}

.verses {
  --reader-scale: 1;
  max-width: none;
  margin: 2.2rem auto 1.8rem;
  font-family: var(--reader);
  font-size: calc(1.125rem * var(--reader-scale));
  line-height: 1.88;
  font-variant-numeric: oldstyle-nums;
}

.reader--comfortable .verses {
  max-width: 72rem;
}

.verse {
  min-height: 2rem;
  margin-left: -.65rem;
  padding: .17rem 9.7rem .17rem .65rem;
  border-radius: 2px;
  scroll-margin-top: 1rem;
  transition: background-color .12s ease;
}

.verse:hover {
  background: rgba(32, 57, 95, .04);
}

.verse .vnum {
  position: relative;
  top: -.12em;
  min-width: 1rem;
  margin-right: .34rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .58em;
  font-weight: 750;
}

.verse:target {
  background: #eee3e6;
  outline: 1px solid #cca2ad;
}

.verse-tools {
  position: absolute;
  top: .24rem;
  right: .25rem;
  gap: .15rem;
  opacity: .2;
  transition: opacity .12s ease;
}

.verse:hover .verse-tools,
.verse:focus-within .verse-tools {
  opacity: 1;
}

.vtool {
  width: 1.72rem;
  height: 1.72rem;
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
  border-radius: 2px;
  font-size: .72rem;
}

.vtool:hover,
.vtool:focus,
.vtool.is-on,
.vtool.has-note {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #b2bdcf;
}

.vtool:disabled {
  opacity: .45;
}

.vpopover {
  top: 2.2rem;
  right: 0;
  gap: .7rem;
  min-width: 18rem;
  padding: .9rem;
  border-color: var(--line-strong);
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  font-family: var(--sans);
}

.vpopover__title {
  display: grid;
  gap: .55rem;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 750;
}

.vpopover__swatches {
  gap: .5rem;
}

.vpopover__swatch {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
}

.vpopover__swatch[aria-pressed="true"] {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.vpopover__swatch--none {
  width: auto;
  border-radius: 2px;
}

.vpopover textarea {
  width: 100%;
  min-height: 7rem;
  padding: .55rem;
  border-color: var(--line-strong);
  border-radius: 2px;
  font: 400 .86rem/1.5 var(--sans);
}

.reader-license {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}

/* ----- Testament index ----- */

.testament-page {
  width: 100%;
  max-width: var(--content-max);
  padding-top: clamp(2.8rem, 6vw, 5rem);
}

.testament-head {
  max-width: none;
  margin-bottom: 2rem;
}

.testament-head h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.testament-intro {
  font-family: var(--reader);
  font-size: 1.05rem;
}

.testament-books {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.testament-book {
  padding: 1.1rem 1.2rem 1.2rem;
  border-color: var(--line);
  border-radius: 3px;
  box-shadow: none;
}

.testament-book__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: .7rem;
}

.testament-book__head > span {
  color: var(--muted);
  font-size: .65rem;
}

.testament-book__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.chapter-grid {
  gap: .25rem;
}

.chapter-grid__cell {
  min-width: 2rem;
  height: 2rem;
  color: var(--ink-soft);
  background: var(--page);
  border-color: var(--line);
  border-radius: 2px;
  font-size: .72rem;
}

.chapter-grid__cell:hover,
.chapter-grid__cell:focus {
  background: var(--brand);
  border-color: var(--brand);
}

/* ----- Search and saved library ----- */

.search-page,
.marks-page,
.prose-page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5rem) 1rem 0;
}

.search-form {
  gap: .7rem;
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  border-color: var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.search-form__label,
.search-form__filters label > span {
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.search-form__filters {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr auto;
  gap: .7rem;
  align-items: end;
}

.search-form__filters > label:not(.search-form__check) {
  display: grid;
  gap: .3rem;
}

.search-form__check {
  min-height: 2.65rem;
  align-self: end;
}

.search-form__hint {
  display: flex;
  gap: .4rem;
  align-items: baseline;
  margin-top: .15rem;
}

.search-count {
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}

.search-results {
  gap: .65rem;
}

.search-result {
  padding: 1rem 1.1rem;
  border-color: var(--line);
  border-radius: 3px;
  transition: border-color .15s ease, background-color .15s ease;
}

.search-result:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.search-result__ref {
  color: var(--brand);
}

.search-result__text {
  font-family: var(--reader);
  font-size: 1.04rem;
  line-height: 1.65;
}

.search-pager {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.marks-page {
  max-width: var(--content-max);
}

.library-filter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: center;
  max-width: 26rem;
  min-height: 2.65rem;
  margin-bottom: 1.8rem;
  padding: 0 .8rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.library-filter .bi {
  color: var(--muted);
}

.library-filter input {
  min-width: 0;
  padding: .6rem 0;
  border: 0;
  outline: 0;
}

.library-no-results {
  padding: 1rem;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: 3px;
}

.marks-book {
  margin-bottom: 1.7rem;
}

.marks-book h2 {
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
}

.mark-row {
  padding: 1rem;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 3px;
}

.mark-row__text {
  font-family: var(--reader);
  font-size: 1rem;
}

/* ----- Translation, comparison, and parallel workspaces ----- */

.translations-page,
.comparison-page,
.parallel-page {
  width: 100%;
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
  padding-top: clamp(2.8rem, 6vw, 4.6rem);
  padding-right: 1rem;
  padding-left: 1rem;
}

.translations-head {
  max-width: none;
}

.translations-head h1,
.comparison-head h1,
.parallel-head h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 500;
}

.translations-head > p:last-child,
.comparison-head p:not(.eyebrow),
.parallel-head p:not(.eyebrow) {
  font-family: var(--reader);
  line-height: 1.65;
}

.translation-guide-grid {
  gap: .8rem;
}

.translation-guide-card {
  padding: 1.3rem;
  border-color: var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.translation-guide-card__code,
.parallel-row header > span {
  color: var(--gold-light);
  background: var(--brand);
  border-radius: 50%;
}

.translation-guide-card h2,
.parallel-row h2 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
}

.translation-guide-card__best {
  background: var(--surface-alt);
  border-color: var(--gold);
}

.translation-guide-note {
  color: var(--ink-soft);
  background: var(--brand-soft);
  border-color: #c8d0dd;
  border-radius: 3px;
}

.comparison-controls,
.comparison-table,
.parallel-jump,
.parallel-row {
  border-color: var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.comparison-controls {
  border-top: 2px solid var(--gold);
}

.comparison-table__head {
  background: var(--brand-dark);
}

.comparison-row:nth-child(odd) {
  background: #fbf8f7;
}

.comparison-row:hover,
.comparison-row:target {
  background: #eee4e7;
}

.comparison-row:target {
  outline-color: var(--gold);
}

.comparison-row__number {
  background: rgba(32, 57, 95, .045);
}

.comparison-cell,
.parallel-row__text {
  font-family: var(--reader);
  font-size: 1.02rem;
  line-height: 1.72;
}

.comparison-swap {
  color: var(--brand);
  background: var(--brand-soft);
}

.comparison-swap:hover,
.comparison-swap:focus {
  background: var(--brand);
}

.parallel-row header {
  background: var(--surface-alt);
}

/* ----- Errors, privacy, and framework account pages ----- */

.error-page {
  margin-top: clamp(3rem, 8vw, 7rem);
  border-color: var(--line);
  border-top-color: var(--gold);
  border-radius: 3px;
}

.error-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
}

.prose-page {
  max-width: var(--content-max);
}

.prose-page section {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.prose-page h2 {
  margin-bottom: .55rem;
  font-size: 1.35rem;
}

.prose-page section p {
  color: var(--ink-soft);
  font-family: var(--reader);
  line-height: 1.7;
}

main > .container:not(.home-section):not(.testament-page) > h1:first-child,
main > .container:not(.home-section):not(.testament-page) > form + h1 {
  font-family: var(--display);
}

/* ----- Responsive refinement ----- */

@media (max-width: 1199.98px) {
  .site-nav .navbar-nav {
    align-items: stretch;
    gap: .2rem;
    padding: 1rem 0 .35rem;
  }

  .site-nav .nav-link {
    padding: .7rem .8rem;
  }

  .site-nav .nav-continue {
    justify-content: center;
    margin: .35rem 0 0;
  }

  .nav-mega__dropdown {
    border-top-width: 1px;
  }
}

@media (max-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .daily-reading {
    max-width: 38rem;
  }

  .home-facts .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-facts span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #d9cecd;
  }

  .home-facts span:nth-child(4) {
    border-top: 1px solid #d9cecd;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: .6rem;
  }

  .study-grid {
    grid-template-columns: 1fr;
  }

  .study-card p {
    min-height: 0;
  }

  .search-form__filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .utility-nav__service span {
    display: none;
  }

  .utility-nav__inner {
    flex-direction: row;
    align-items: center;
    gap: .35rem;
  }

  .utility-nav__service {
    flex: 0 0 auto;
  }

  .utility-nav__links {
    justify-content: flex-end;
  }

  .utility-nav .nav-item:not(:last-child)::after {
    display: none;
  }

  .site-nav {
    min-height: 4.25rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .brand-copy strong {
    font-size: 1.18rem;
  }

  .home-hero {
    padding-top: 3.5rem;
  }

  .home-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-search {
    grid-template-columns: auto 1fr;
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    margin-top: .25rem;
  }

  .testament-cards,
  .testament-books,
  .translation-guide-grid {
    grid-template-columns: 1fr;
  }

  .testament-card {
    min-height: 8.5rem;
  }

  .reader {
    padding-top: 2.5rem;
  }

  .reader-head {
    align-items: start;
    flex-direction: column;
  }

  .translation-switch {
    justify-content: flex-start;
  }

  .reader-preferences {
    justify-content: flex-start;
  }

  .chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .chapter-nav__pickers {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .chapter-nav__select {
    min-width: 0;
    width: 100%;
  }

  .chapter-nav__arrow {
    min-width: 0;
  }

  .chapter-nav__arrow--next {
    justify-self: end;
  }

  .verse {
    margin-left: -.35rem;
    padding-right: .35rem;
    padding-left: .35rem;
  }

  .verse-tools {
    position: static;
    display: flex;
    margin: .12rem 0 .35rem 1.3rem;
    opacity: .72;
  }

  .vtool {
    width: 2rem;
    height: 2rem;
  }

  .vpopover {
    right: auto;
    left: 0;
    max-width: calc(100vw - 2.25rem);
  }

  .search-form__filters {
    grid-template-columns: 1fr;
  }

  .search-form__check {
    min-height: auto;
  }

  .search-result__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-footer__fine {
    grid-column: 1;
  }
}

@media (max-width: 430px) {
  .home-facts .container {
    grid-template-columns: 1fr;
  }

  .home-facts span + span,
  .home-facts span:nth-child(3) {
    border-top: 1px solid #d9cecd;
    border-left: 0;
  }

  .testament-card {
    grid-template-columns: 1fr auto;
  }

  .testament-card__number {
    display: none;
  }

  .comparison-head,
  .parallel-head {
    gap: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .reader-preferences,
  .reading-progress,
  .site-toast {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .verses {
    font-size: 11pt;
    line-height: 1.55;
  }
}

/* ---------- Account pitch (sign-in / register pages) ---------- */

.account-pitch {
  padding: 2.4rem 0 1.9rem;
  color: #f3efe7;
  background: linear-gradient(145deg, #142842 0%, #20395f 100%);
}

.account-pitch .eyebrow {
  color: #dcb63c;
}

.account-pitch h2 {
  max-width: 34rem;
  margin: 0 0 .7rem;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.account-pitch__lead {
  max-width: 40rem;
  margin: 0 0 1.3rem;
  color: rgba(243, 239, 231, .82);
  font-family: var(--reader);
  font-size: 1rem;
  line-height: 1.6;
}

.account-pitch__lead strong {
  color: #ffffff;
  font-weight: 600;
}

.account-pitch__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem 1.6rem;
  max-width: 56rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.account-pitch__list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  line-height: 1.45;
}

.account-pitch__list .bi {
  flex: 0 0 auto;
  margin-top: .1rem;
  color: #dcb63c;
  font-size: 1rem;
}

.account-pitch__list strong {
  color: #ffffff;
  font-weight: 650;
}

.account-pitch__fine {
  margin: 0;
  color: rgba(243, 239, 231, .6);
  font-size: .78rem;
}

@media (max-width: 767.98px) {
  .account-pitch {
    padding: 1.8rem 0 1.5rem;
  }

  .account-pitch__list {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
}
