/*
  Romans - Daniel-inspired illustrated theme.
  Mirrors Daniel's dark navy, warm gold, serif-forward reading direction
  while preserving the compact Romans chapter strip.
*/

:root,
.dark {
  --background: #0e1f34;
  --background-rgb: 14 31 52;
  --foreground: #efe7d7;
  --foreground-rgb: 239 231 215;
  --card: #18273a;
  --card-rgb: 24 39 58;
  --card-foreground: #efe6d5;
  --card-foreground-rgb: 239 230 213;
  --muted: #1e2c3e;
  --muted-rgb: 30 44 62;
  --muted-foreground: #beb39d;
  --muted-foreground-rgb: 190 179 157;
  --border: #334357;
  --border-rgb: 51 67 87;
  --primary: #c9a34a;
  --primary-rgb: 201 163 74;
  --primary-foreground: #0a1829;
  --primary-foreground-rgb: 10 24 41;
  --accent: #22364f;
  --accent-rgb: 34 54 79;
  --accent-foreground: #d2b36a;
  --accent-foreground-rgb: 210 179 106;
  --ring: #c9a34a;
  --crimson: #c9a34a;
  --radius: .5rem;
  --font-sans: "Jost", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "EB Garamond", Georgia, serif;
  --font-display: "Cinzel", Georgia, serif;
  --mbe-ink: #ece0c4;
  --mbe-bg: #0e1f34;
  --mbe-soft: #1e2c3e;
  --mbe-muted: #beb39d;
  --mbe-ivory: #18273a;
  --mbe-rule: rgba(201, 164, 76, .18);
  --mbe-navy: #ece0c4;
  --mbe-gold-dark: #d2b36a;
  --mbe-font-display: "Cinzel", Georgia, serif;
  --mbe-font-reading: "EB Garamond", Georgia, serif;
  --mbe-font-ui: "Jost", system-ui, sans-serif;
}

html,
body,
html.dark body,
html.dark > body {
  background:
    linear-gradient(180deg, rgba(201, 164, 76, .08) 0%, rgba(201, 164, 76, 0) 18rem),
    linear-gradient(180deg, #0d1c33 0%, #0b1f3a 54%, #081521 100%) !important;
  color: var(--foreground) !important;
}

body {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-feature-settings: "rlig" 1, "calt" 1;
  font-synthesis-weight: none;
  background-attachment: fixed !important;
}

::selection {
  background: rgba(201, 164, 76, .35);
  color: #fff6e4;
}

h1,
h2,
.home-showcase-copy h1,
.home-section-split h2,
.article-document-header h1,
.articles-hero h1,
.scripture-pane-header h1 {
  font-family: "Cinzel", Georgia, serif !important;
  letter-spacing: .015em !important;
  line-height: 1.12 !important;
}

h3,
h4,
.home-action-card strong,
.home-chapter-group h3,
.article-card h3,
.passage-outline-title,
.exposition-card-heading h2,
.verse-copy {
  font-family: var(--font-serif), Georgia, serif !important;
}

.mbe-global-shell,
.mbe-global-footer {
  background: linear-gradient(180deg, #0e2138 0%, #0b1f3a 100%) !important;
  border-color: rgba(201, 164, 76, .18) !important;
  color: #b9ad90 !important;
}

.mbe-ribbon-brand {
  color: #ece0c4 !important;
}

.mbe-ribbon-back::before {
  background: rgba(201, 164, 76, .30) !important;
}

.mbe-ribbon-logo,
.mbe-footer-logo {
  filter: grayscale(1) brightness(0) invert(88%) sepia(18%) saturate(320%) hue-rotate(2deg);
}

.mbe-library-panel {
  background: #12263f !important;
  color: #ece0c4 !important;
  border-color: rgba(201, 164, 76, .22) !important;
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .7) !important;
}

.mbe-library-item {
  color: #ece0c4 !important;
}

.mbe-library-item:hover {
  background: #17304c !important;
}

.mbe-library-item[aria-current="page"] {
  background: rgba(201, 164, 76, .16) !important;
}

.mbe-library-name {
  color: #f3e8cc !important;
}

.mbe-library-desc {
  color: #b1a488 !important;
}

.mbe-footer-link {
  color: #e0c37e !important;
  border-bottom-color: rgba(201, 164, 76, .45) !important;
}

.mbe-footer-link:hover {
  color: #fff2d4 !important;
  border-bottom-color: #e0c37e !important;
}

body > #root:empty::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)) 0 0 / 220% 100%,
    linear-gradient(180deg, #0e2138 0%, #0b1f3a 100%) !important;
  border-color: rgba(201, 164, 76, .18) !important;
}

.reader-header {
  min-height: 4.35rem !important;
  border-bottom: 1px solid rgba(201, 164, 76, .18) !important;
  background: linear-gradient(180deg, rgba(14, 33, 56, .96), rgba(11, 31, 58, .96)) !important;
  color: #ece0c4 !important;
  box-shadow: 0 18px 44px -36px rgba(0, 0, 0, .82) !important;
  backdrop-filter: blur(18px);
}

.reader-logo {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border: 1px solid rgba(201, 164, 76, .35) !important;
  border-radius: .5rem !important;
  background: rgba(201, 164, 76, .12) !important;
  color: #d8b866 !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24) !important;
}

.reader-brand-text {
  color: #f3e8cc !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

.reader-brand-muted {
  display: none !important;
}

.reader-nav {
  gap: clamp(1.5rem, 3.3vw, 3.2rem) !important;
}

.reader-menu-link,
.reader-nav-link {
  border-radius: 0 !important;
  background: transparent !important;
  color: #b9ad90 !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .2em !important;
  opacity: .56 !important;
  padding: 0 !important;
  text-transform: uppercase !important;
}

.reader-menu-link:hover,
.reader-menu-link-active,
.reader-nav-link:hover,
.reader-nav-link-active,
.dark .reader-nav-link-active,
.dark .reader-menu-link-active {
  background: transparent !important;
  color: #fff2d4 !important;
  opacity: 1 !important;
}

.theme-word-toggle {
  display: none !important;
  height: auto !important;
  border-radius: 0 !important;
  color: #b9ad90 !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .2em !important;
  opacity: .76 !important;
  padding: 0 !important;
  text-transform: uppercase !important;
}

.theme-word-toggle:hover {
  background: transparent !important;
  color: #fff2d4 !important;
  opacity: 1 !important;
}

.home-showcase,
.reader-page,
.article-reader,
.articles-page,
.background-shell,
.symbols-page,
.timeline-page,
main.mx-auto.max-w-7xl {
  background:
    linear-gradient(90deg, rgba(201, 164, 76, .05) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 33, 56, .96), rgba(8, 21, 33, .98)) !important;
  background-size: 54px 100%, 100% 100% !important;
}

.home-showcase-hero {
  min-height: clamp(29rem, 60vh, 38rem) !important;
  padding-top: clamp(2.75rem, 5vh, 4rem) !important;
}

body[data-romans-route="home"] .home-showcase {
  background: linear-gradient(180deg, #0b1f3a 0%, #0e2138 44%, #0b1f3a 100%) !important;
  background-size: 100% 100% !important;
  padding-top: 0 !important;
}

html.dark body[data-romans-route="home"] .home-showcase,
html.dark body[data-romans-route="home"] .home-showcase-shell {
  background: linear-gradient(180deg, #0b1f3a 0%, #0e2138 44%, #0b1f3a 100%) !important;
  background-size: 100% 100% !important;
}

body[data-romans-route="home"] .home-showcase-shell {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 0 !important;
}

body[data-romans-route="home"] .home-showcase-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  min-height: clamp(34rem, 68vh, 46rem) !important;
  margin: 0 !important;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 6.5rem) clamp(7rem, 11vw, 10rem) !important;
  border-bottom: 0 !important;
  background: #0b1f3a !important;
}

body[data-romans-route="home"] .home-showcase-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/romans-hero-engraving-filled.webp?v=mbe-20260715-1") center top / cover no-repeat;
  filter: saturate(.86) contrast(1.08);
  opacity: .96;
}

body[data-romans-route="home"] .home-showcase-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 28%, rgba(216, 184, 102, .18), rgba(216, 184, 102, 0) 28rem),
    linear-gradient(180deg, rgba(11, 31, 58, 0) 0%, rgba(11, 31, 58, .08) 48%, rgba(11, 31, 58, .72) 76%, #0b1f3a 100%),
    linear-gradient(90deg, rgba(8, 21, 33, .98) 0%, rgba(8, 21, 33, .86) 30%, rgba(8, 21, 33, .42) 62%, rgba(8, 21, 33, .72) 100%);
}

body[data-romans-route="home"] .home-action-grid,
body[data-romans-route="home"] .home-chapter-study {
  width: min(calc(100% - clamp(2rem, 8vw, 6rem)), 92rem) !important;
  margin-inline: auto !important;
}

body[data-romans-route="home"] .home-action-grid {
  position: relative;
  z-index: 2;
  margin-top: clamp(-5rem, -6vw, -3rem) !important;
}

body[data-romans-route="home"] .home-showcase-copy,
body[data-romans-route="home"] .home-showcase-context {
  position: relative;
  z-index: 1;
  text-shadow: 0 16px 34px rgba(0, 0, 0, .55);
}

body[data-romans-route="home"] .home-showcase-context {
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  border: 1px solid rgba(201, 164, 76, .16) !important;
  border-radius: .5rem !important;
  background: rgba(8, 21, 33, .42) !important;
  backdrop-filter: blur(2px);
}

body[data-romans-route="introduction"] .background-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(201, 164, 76, .18) !important;
  background: #0b1f3a !important;
}

body[data-romans-route="introduction"] .background-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/romans-hero-engraving-filled.webp?v=mbe-20260715-1") center top / cover no-repeat;
  filter: saturate(.82) contrast(1.08);
  opacity: .66;
}

body[data-romans-route="introduction"] .background-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 21, 33, .97) 0%, rgba(8, 21, 33, .84) 48%, rgba(8, 21, 33, .66) 100%),
    radial-gradient(circle at 80% 20%, rgba(216, 184, 102, .18), rgba(216, 184, 102, 0) 26rem);
}

body[data-romans-route="introduction"] .background-hero > * {
  position: relative;
  z-index: 1;
}

.home-showcase-copy h1 {
  max-width: 9ch !important;
  color: #f3e8cc !important;
  font-size: clamp(3rem, 7vw, 7rem) !important;
  font-weight: 600 !important;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.home-showcase-description,
.home-showcase-context,
.home-showcase-context p + p,
.home-action-card > span:not(.home-action-icon),
.home-section-split > p,
.article-card p {
  color: #b9ad90 !important;
}

.home-showcase-context p:first-of-type {
  color: #ece0c4 !important;
}

.home-showcase-rule,
.home-section-split {
  border-color: rgba(201, 164, 76, .2) !important;
}

.home-showcase-rule {
  background: rgba(201, 164, 76, .26) !important;
}

.home-showcase-label,
.home-section-kicker,
.home-chapter-group > p,
.home-chapter-mini-grid span,
.reader-pane-kicker,
.scripture-chapter-kicker,
.passage-outline-range,
.article-card > span,
.article-meta span {
  color: #d8b866 !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
  letter-spacing: .24em !important;
}

.home-showcase-primary,
.home-showcase-secondary {
  min-height: 3rem !important;
  border-radius: .375rem !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
  letter-spacing: .12em !important;
}

.home-showcase-primary {
  border-color: #d8b866 !important;
  background: #c9a44c !important;
  color: #081521 !important;
}

.home-showcase-secondary {
  border-color: rgba(201, 164, 76, .28) !important;
  background: rgba(18, 38, 63, .78) !important;
  color: #ece0c4 !important;
}

.home-showcase-primary:hover,
.home-showcase-secondary:hover {
  border-color: #e0c37e !important;
  background: rgba(201, 164, 76, .18) !important;
  color: #fff2d4 !important;
}

.article-card,
.article-document,
.article-related,
.article-related-list a,
.articles-menu a,
.folio-panel,
.folio-panel-soft,
.home-action-card,
.home-chapter-group,
.home-chapter-mini-grid a,
.exposition-card,
.verse-study-card {
  border-color: rgba(201, 164, 76, .18) !important;
  border-radius: .5rem !important;
  background: rgba(18, 38, 63, .78) !important;
  box-shadow: 0 20px 60px -44px rgba(0, 0, 0, .82) !important;
}

.article-card:hover,
.article-related-list a:hover,
.articles-menu a:hover,
.home-action-card:hover,
.home-chapter-mini-grid a:hover {
  border-color: rgba(201, 164, 76, .45) !important;
  background: rgba(23, 48, 76, .9) !important;
}

.article-card > span:first-child,
.home-action-icon,
.home-protect-icon {
  border-radius: .5rem !important;
  background: rgba(201, 164, 76, .13) !important;
  color: #d8b866 !important;
}

.home-action-card strong,
.home-chapter-group h3,
.article-card h3,
.article-related-list strong {
  color: #f3e8cc !important;
  font-weight: 500 !important;
}

.home-action-card em,
.article-card strong,
.article-related-list em {
  color: #d8b866 !important;
}

.reader-page {
  --chapter-strip-height: 3.75rem !important;
  min-height: calc(100vh - 4.35rem) !important;
}

.mbe-global-shell ~ main .chapter-strip,
.reader-page .chapter-strip {
  top: calc(46px + 4.35rem) !important;
}

.chapter-strip {
  border-bottom: 1px solid rgba(201, 164, 76, .18) !important;
  background: rgba(10, 24, 48, .96) !important;
  box-shadow: 0 14px 30px -30px rgba(0, 0, 0, .9) !important;
}

.chapter-strip-inner {
  min-height: 3.75rem !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .95rem !important;
  overflow-x: auto !important;
  padding-block: .35rem !important;
}

.chapter-strip-label {
  margin-top: 0 !important;
  color: #d8b866 !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
}

.chapter-strip-links {
  flex-direction: row !important;
  align-items: center !important;
  gap: .55rem !important;
  overflow-x: auto !important;
  padding: .25rem .1rem !important;
  scrollbar-width: thin;
}

.chapter-strip-row {
  display: flex !important;
  grid-template-columns: none !important;
  gap: clamp(.3rem, .8vw, .65rem) !important;
}

.chapter-strip-link {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 999px !important;
  color: rgba(236, 224, 196, .62) !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
  font-weight: 600 !important;
}

.chapter-strip-link:hover {
  background: rgba(216, 184, 102, .12) !important;
  color: #fff2d4 !important;
}

.chapter-strip-link-active,
.chapter-strip-link-active:hover {
  background: #c9a44c !important;
  color: #081521 !important;
  opacity: 1 !important;
  box-shadow: 0 12px 28px rgba(201, 164, 76, .24) !important;
}

.split-reader {
  height: calc(100vh - 4.35rem - var(--chapter-strip-height)) !important;
}

.scripture-pane {
  background: rgba(14, 33, 56, .86) !important;
}

.commentary-pane {
  border-left: 1px solid rgba(201, 164, 76, .18) !important;
  background: rgba(8, 21, 33, .88) !important;
}

.reader-pane-toolbar {
  min-height: 4.1rem !important;
  border-color: rgba(201, 164, 76, .18) !important;
  background: rgba(11, 31, 58, .94) !important;
  color: #b9ad90 !important;
}

.reader-pane-controls button,
.chapter-control,
.search-control {
  border-color: rgba(201, 164, 76, .24) !important;
  background: rgba(18, 38, 63, .72) !important;
  color: #ece0c4 !important;
}

body[data-romans-chapter] .scripture-pane-header {
  position: relative !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-romans-chapter] .scripture-pane-header > * {
  position: relative;
  z-index: 1;
}

.scripture-pane-header h1 {
  color: #f3e8cc !important;
  font-size: clamp(2.25rem, 3.2vw, 3rem) !important;
  font-weight: 600 !important;
}

.scripture-chapter-summary,
.commentary-empty,
.commentary-reading {
  color: rgba(236, 224, 196, .82) !important;
}

.scripture-pane-header::after {
  background: rgba(201, 164, 76, .26) !important;
  border-color: rgba(201, 164, 76, .22) !important;
}

.passage-outline-divider {
  background: transparent !important;
  border-color: rgba(201, 164, 76, .22) !important;
}

.scripture-card {
  border-color: transparent !important;
  border-radius: .5rem !important;
  color: #ece0c4 !important;
}

.scripture-card:hover {
  background: rgba(216, 184, 102, .08) !important;
  transform: none !important;
}

.scripture-card-active {
  border-color: rgba(201, 164, 76, .42) !important;
  background: rgba(201, 164, 76, .12) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18) !important;
}

.verse-number {
  color: #d8b866 !important;
  font-family: var(--font-sans), system-ui, sans-serif !important;
  font-weight: 600 !important;
}

.verse-copy {
  color: #f3e8cc !important;
  font-size: var(--scripture-desktop-font-size, 1.25rem) !important;
  font-weight: 500 !important;
  line-height: 1.62 !important;
}

.selected-reference-pill,
.verse-study-card-header,
.word-note-title {
  background: rgba(201, 164, 76, .13) !important;
  color: #d8b866 !important;
}

.exposition-card {
  border-color: rgba(201, 164, 76, .22) !important;
  background: rgba(18, 38, 63, .82) !important;
}

.exposition-card-heading h2,
.passage-outline-title {
  color: #f3e8cc !important;
  font-weight: 500 !important;
}

.commentary-reading {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: var(--notes-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.78 !important;
}

.word-note,
.reference-chip,
.word-reference-chip {
  border-color: rgba(201, 164, 76, .2) !important;
  background: rgba(14, 33, 56, .72) !important;
  color: #ece0c4 !important;
}

.word-note p,
.study-card-empty {
  color: #b9ad90 !important;
}

/* Typography roles matched to the Daniel study direction. */
h1,
h2,
.font-serif-display,
.reader-brand-text,
.reader-brand-strong,
.mbe-library-name,
.home-showcase-copy h1,
.home-section-split h2,
.background-hero h1,
.background-hero h2,
.background-section h2,
.article-document-header h1,
.articles-hero h1,
.scripture-pane-header h1 {
  font-family: "Cinzel", Georgia, serif !important;
}

.scripture-pane-body,
.scripture-card,
.verse-copy,
.commentary-empty,
.passage-outline-title,
.verse-study-card h3,
.word-note-title,
.word-note p,
.study-card-empty,
.article-document p,
.article-section p,
.article-why p,
.home-showcase-description,
.home-showcase-context p,
.home-action-card strong,
.home-chapter-group h3,
.article-card h3,
.article-related-list strong,
.folio-panel h3,
.folio-panel-soft h3 {
  font-family: var(--font-serif), Georgia, serif !important;
}

.mbe-global-shell,
.mbe-global-footer,
.mbe-ribbon-back,
.mbe-library-toggle,
.mbe-library-desc,
.mbe-footer-link,
.reader-nav,
.reader-menu,
.reader-menu-link,
.reader-nav-link,
.reader-header-actions,
.theme-word-toggle,
.reader-menu-button,
.home-showcase-actions,
.home-showcase-primary,
.home-showcase-secondary,
.home-action-card em,
.home-showcase-label,
.home-section-kicker,
.home-chapter-group > p,
.home-chapter-mini-grid span,
.article-card > span,
.article-card strong,
.article-meta span,
.articles-menu a,
.chapter-strip,
.chapter-strip-label,
.chapter-strip-link,
.reader-pane-toolbar,
.reader-pane-kicker,
.reader-pane-subtitle,
.reader-pane-controls,
.reader-pane-controls button,
.chapter-control,
.search-control,
.scripture-chapter-summary,
.exposition-card-heading h2,
.commentary-reading,
.commentary-reading p,
.verse-number,
.selected-reference-pill,
.verse-study-card-header,
.reference-chip,
.word-reference-chip,
button,
input,
select,
textarea,
label,
figcaption,
caption {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
}

/* Daniel chapter-screen font parity. */
body[data-romans-chapter] .scripture-pane-header h1 {
  font-family: "Cinzel", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: .015em !important;
}

body[data-romans-chapter] .scripture-chapter-summary {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1rem, 1.25vw, 1.25rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.65 !important;
}

body[data-romans-chapter] .passage-outline-title,
body[data-romans-chapter] .verse-copy {
  font-family: var(--font-serif), Georgia, serif !important;
}

body[data-romans-chapter] .passage-outline-title {
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  line-height: 1.18 !important;
}

body[data-romans-chapter] .exposition-card-heading h2,
body[data-romans-chapter] .commentary-reading,
body[data-romans-chapter] .commentary-reading p {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

body[data-romans-chapter] .exposition-card-heading h2 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

body[data-romans-chapter] .commentary-reading,
body[data-romans-chapter] .commentary-reading p {
  font-size: var(--notes-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.82 !important;
}

@media (max-width: 980px) {
  .reader-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .chapter-strip-inner {
    justify-content: flex-start !important;
  }

  .chapter-strip-links {
    min-width: max-content !important;
  }

  .split-reader {
    height: auto !important;
  }
}

@media (max-width: 640px) {
  .home-showcase-copy h1 {
    font-size: clamp(3rem, 16vw, 4.5rem) !important;
  }

  .verse-copy {
    font-size: var(--scripture-mobile-font-size, 1.125rem) !important;
  }
}

/* Compact long-form article scale. */
body[data-romans-route="articles"] .article-reader .article-document-header h1 {
  font-size: 3rem !important;
  line-height: 1.08 !important;
}

body[data-romans-route="articles"] .article-reader .article-document-header > p:not(.articles-kicker),
body[data-romans-route="articles"] .article-reader .article-section p,
body[data-romans-route="articles"] .article-reader .article-why p {
  font-size: 1.125rem !important;
  line-height: 1.72 !important;
}

body[data-romans-route="articles"] .article-reader .article-section h2,
body[data-romans-route="articles"] .article-reader .article-why h2 {
  font-size: 1.875rem !important;
  line-height: 1.12 !important;
}

body[data-romans-route="articles"] .article-reader .article-context-list span,
body[data-romans-route="articles"] .article-reader .article-doctrine-list span,
body[data-romans-route="articles"] .article-reader .article-faq p {
  font-size: 1rem !important;
}

body[data-romans-route="articles"] .article-reader .article-misunderstandings h3 {
  font-size: 1.125rem !important;
}

@media (max-width: 980px) {
  body[data-romans-route="articles"] .article-reader .article-document-header h1 {
    font-size: 2.25rem !important;
  }
}

@media (max-width: 700px) {
  body[data-romans-route="articles"] .article-reader .article-document-header h1 {
    font-size: 1.875rem !important;
  }

  body[data-romans-route="articles"] .article-reader .article-document-header > p:not(.articles-kicker),
  body[data-romans-route="articles"] .article-reader .article-section p,
  body[data-romans-route="articles"] .article-reader .article-why p,
  body[data-romans-route="articles"] .article-reader .article-context-list span,
  body[data-romans-route="articles"] .article-reader .article-doctrine-list span,
  body[data-romans-route="articles"] .article-reader .article-faq p {
    font-size: 1rem !important;
  }

  body[data-romans-route="articles"] .article-reader .article-section h2,
  body[data-romans-route="articles"] .article-reader .article-why h2 {
    font-size: 1.65rem !important;
  }
}

body[data-romans-route="home"] .home-title-prefix {
  margin: 0 0 1rem;
  color: #d8b866;
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.25;
  text-shadow: 0 12px 28px rgba(0, 0, 0, .48);
}

@media (max-width: 640px) {
  body[data-romans-route="home"] .home-title-prefix {
    margin-bottom: .75rem;
    font-size: 1rem !important;
    letter-spacing: .14em;
  }
}

/* Articles library and long-form reader. */
body[data-romans-route="articles"] {
  background: #0b1f3a !important;
}

body[data-romans-route="articles"] .articles-page,
body[data-romans-route="articles"] .article-reader {
  background: linear-gradient(180deg, #0b1f3a 0%, #0e2138 48%, #081521 100%) !important;
}

body[data-romans-route="articles"] .articles-page {
  padding-top: 0 !important;
}

body[data-romans-route="articles"] .articles-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 28rem;
  align-items: center;
  padding-top: clamp(3rem, 7vw, 4.5rem) !important;
  padding-bottom: clamp(3rem, 7vw, 4.5rem) !important;
  border-top: 1px solid rgba(201, 164, 76, .18);
  border-bottom: 1px solid rgba(201, 164, 76, .24) !important;
}

body[data-romans-route="articles"] .articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/romans-hero-engraving-filled.webp?v=mbe-20260715-1") center 32% / cover no-repeat;
  filter: saturate(.78) contrast(1.08);
  opacity: .58;
}

body[data-romans-route="articles"] .articles-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 21, 33, .98) 0%, rgba(8, 21, 33, .86) 48%, rgba(8, 21, 33, .58) 100%);
}

body[data-romans-route="articles"] .articles-hero-copy,
body[data-romans-route="articles"] .articles-menu {
  position: relative;
  z-index: 1;
}

body[data-romans-route="articles"] .articles-hero h1,
body[data-romans-route="articles"] .article-document-header h1,
body[data-romans-route="articles"] .article-section h2,
body[data-romans-route="articles"] .article-why h2,
body[data-romans-route="articles"] .articles-category-heading h2,
body[data-romans-route="articles"] .article-related h2,
body[data-romans-route="articles"] .article-misunderstandings h3 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

body[data-romans-route="articles"] .articles-hero h1 {
  color: #f3e8cc !important;
  font-size: clamp(3rem, 7vw, 4.5rem) !important;
  line-height: 1 !important;
}

body[data-romans-route="articles"] .articles-hero-copy > p:not(.articles-kicker) {
  color: #d5c9ae !important;
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

body[data-romans-route="articles"] .articles-menu a {
  border-color: rgba(201, 164, 76, .28) !important;
  background: rgba(8, 21, 33, .68) !important;
  color: #ece0c4 !important;
}

body[data-romans-route="articles"] .articles-index {
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

body[data-romans-route="articles"] .articles-category-heading h2 {
  color: #f3e8cc !important;
  font-size: 2.25rem !important;
}

body[data-romans-route="articles"] .article-card {
  max-width: 42rem;
}

body[data-romans-route="articles"] .article-card h3 {
  font-family: var(--font-display) !important;
  font-size: 1.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

body[data-romans-route="articles"] .article-card p {
  font-family: var(--font-serif) !important;
  font-size: 1.125rem !important;
  line-height: 1.65 !important;
}

body[data-romans-route="articles"] .article-reader {
  display: block !important;
  width: min(100%, 76rem) !important;
  max-width: 76rem !important;
  min-height: calc(100vh - 4.35rem);
}

body[data-romans-static-page="article"] .article-document {
  width: min(100%, 58rem);
  margin-inline: auto;
}

body[data-romans-route="articles"] .article-document,
body[data-romans-route="articles"] .article-related {
  border-color: rgba(201, 164, 76, .22) !important;
  border-radius: .5rem !important;
  background: rgba(18, 38, 63, .82) !important;
}

body[data-romans-route="articles"] .article-document-header h1 {
  max-width: 18ch;
  color: #f3e8cc !important;
  font-size: clamp(2.25rem, 5vw, 4.5rem) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

body[data-romans-route="articles"] .article-document-header > p:not(.articles-kicker) {
  color: #c8bda6 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

body[data-romans-route="articles"] .article-section h2,
body[data-romans-route="articles"] .article-why h2 {
  color: #f3e8cc !important;
  font-size: 2.25rem !important;
  line-height: 1.12 !important;
}

body[data-romans-route="articles"] .article-section p,
body[data-romans-route="articles"] .article-why p {
  color: #e7dcc5 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
}

body[data-romans-route="articles"] .article-section p strong {
  color: #f3e8cc;
  font-weight: 600;
}

body[data-romans-route="articles"] .article-why {
  border-left-color: #d8b866 !important;
  background: rgba(201, 164, 76, .08) !important;
}

.article-context-list,
.article-doctrine-list {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(201, 164, 76, .2);
}

.article-context-list li,
.article-doctrine-list li {
  display: grid;
  grid-template-columns: minmax(9rem, .34fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 164, 76, .16);
}

.article-context-list strong,
.article-doctrine-list strong {
  color: #d8b866;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}

.article-context-list span,
.article-doctrine-list span {
  color: #e7dcc5;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

.article-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}

.article-flow > div {
  position: relative;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid rgba(201, 164, 76, .22);
  border-radius: .375rem;
  background: rgba(8, 21, 33, .62);
}

.article-flow span,
.article-flow strong {
  display: block;
}

.article-flow span {
  color: #d8b866;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-flow strong {
  margin-top: .55rem;
  color: #f3e8cc;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.article-misunderstandings {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}

.article-misunderstandings > div {
  padding: 1.25rem;
  border: 1px solid rgba(201, 164, 76, .18);
  border-radius: .375rem;
  background: rgba(8, 21, 33, .5);
}

body[data-romans-route="articles"] .article-misunderstandings h3 {
  color: #f3e8cc;
  font-size: 1.25rem;
  line-height: 1.35;
}

body[data-romans-route="articles"] .article-misunderstandings p {
  margin-top: .75rem;
}

body[data-romans-route="articles"] .article-related {
  top: 7rem;
}

.article-reading-bar {
  position: sticky;
  top: calc(46px + 4.35rem);
  z-index: 48;
  width: 100%;
  border-top: 1px solid rgba(201, 164, 76, .16);
  border-bottom: 1px solid rgba(201, 164, 76, .24);
  background: rgba(8, 21, 33, .96);
  box-shadow: 0 18px 34px -30px rgba(0, 0, 0, .95);
  backdrop-filter: blur(18px);
}

.article-reading-bar-inner {
  display: grid;
  grid-template-columns: minmax(10rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 2rem), 92rem);
  min-height: 4.25rem;
  margin-inline: auto;
}

.article-reading-bar-heading {
  min-width: 0;
  padding-right: 1rem;
  border-right: 1px solid rgba(201, 164, 76, .18);
}

.article-reading-bar-heading .articles-kicker {
  margin: 0;
  color: #d8b866;
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-romans-route="articles"] .article-reading-bar-heading h2 {
  max-width: 18rem;
  overflow: hidden;
  margin: .35rem 0 0;
  color: #f3e8cc;
  font-family: var(--font-display) !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-reading-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  overflow-x: auto;
  padding: .45rem 0;
  scrollbar-color: rgba(201, 164, 76, .42) transparent;
  scrollbar-width: thin;
}

.article-reading-links a {
  flex: 0 0 auto;
  padding: .65rem .8rem;
  border: 0 !important;
  border-radius: .25rem !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #b9ad90 !important;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}

.article-reading-links a:hover,
.article-reading-links a.is-active {
  background: rgba(201, 164, 76, .11) !important;
  color: #fff2d4 !important;
}

.article-reading-links a.is-active {
  box-shadow: inset 0 -2px #d8b866 !important;
}

.article-reading-links strong {
  color: inherit !important;
  font-family: var(--font-sans) !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  line-height: 1.25;
}

.article-reading-links span {
  display: none;
}

.article-reading-status {
  color: #b9ad90;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.article-reading-status strong {
  color: #d8b866;
  font-weight: 600;
}

.article-reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(201, 164, 76, .1);
}

.article-reading-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: #d8b866;
  box-shadow: 0 0 16px rgba(216, 184, 102, .42);
  transition: width .12s linear;
}

body[data-romans-static-page="article"] .article-body > section {
  scroll-margin-top: calc(46px + 4.35rem + 5.25rem);
}

.article-end-navigation {
  margin: 3rem 0 0;
  padding: 2rem 0 0;
}

.article-end-navigation > a {
  max-width: 38rem;
}

body[data-romans-route="articles"] .article-related h2 {
  margin-top: .75rem;
  color: #f3e8cc;
  font-size: 1.25rem;
  line-height: 1.3;
}

body[data-romans-route="articles"] .article-related-list strong,
body[data-romans-route="articles"] .article-related-list span {
  font-family: var(--font-sans) !important;
}

body[data-romans-route="articles"] .article-related-list strong {
  font-size: 1rem !important;
  font-weight: 500 !important;
}

body[data-romans-route="articles"] .article-related-list span {
  font-size: .875rem !important;
}

.article-related-next {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 164, 76, .2);
}

.article-related-next > a {
  display: flex;
  flex-direction: column;
  margin-top: .75rem;
  padding: 1rem;
  border: 1px solid rgba(201, 164, 76, .22);
  border-radius: .375rem;
  background: rgba(8, 21, 33, .52);
  transition: border-color .16s ease, background .16s ease;
}

.article-related-next > a:hover {
  border-color: rgba(201, 164, 76, .48);
  background: rgba(23, 48, 76, .9);
}

.article-related-next strong,
.article-related-next span {
  font-family: var(--font-sans);
}

.article-related-next strong {
  color: #f3e8cc;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.article-related-next span {
  margin-top: .5rem;
  color: #b9ad90;
  font-size: .875rem;
  line-height: 1.5;
}

.article-flow-route {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-flow-message {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.article-flow-scripture {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.article-flow-accountability {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.article-flow-faith {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-romans-route="articles"] .article-thesis {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 164, 76, .24);
  color: #f3e8cc !important;
}

.article-faq {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}

.article-faq details {
  border: 1px solid rgba(201, 164, 76, .18);
  border-radius: .375rem;
  background: rgba(8, 21, 33, .5);
  padding: 1rem 1.25rem;
}

.article-faq summary {
  color: #f3e8cc;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

body[data-romans-route="articles"] .article-faq p {
  margin-top: .75rem;
  font-size: 1.125rem !important;
}

[data-romans-static-menu][hidden] {
  display: none !important;
}

body[data-romans-route="articles"] .reader-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: #d5c9ae;
}

@media (min-width: 981px) {
  body[data-romans-route="home"] .home-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* The home study paths now include Introduction, Commentary, Gospel, and Articles. */
@media (min-width: 1241px) {
  body[data-romans-route="home"] .home-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  body[data-romans-route="home"] .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  body[data-romans-route="articles"] .articles-hero {
    min-height: 24rem;
  }

  body[data-romans-route="articles"] .article-reader {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-romans-route="articles"] .article-related {
    position: static;
  }

  .article-reading-bar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .article-reading-bar-heading {
    display: none;
  }

  .article-flow-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-flow-message {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-flow-scripture {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-flow-accountability {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-flow-faith {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-romans-route="articles"] .articles-page,
  body[data-romans-route="articles"] .article-reader {
    padding-inline: 1rem !important;
  }

  body[data-romans-route="articles"] .articles-hero {
    min-height: 22rem;
    padding-inline: 1rem !important;
  }

  body[data-romans-route="articles"] .article-document {
    padding: 1.25rem !important;
  }

  .article-reading-bar-inner {
    width: 100%;
    min-height: 3.75rem;
    gap: .5rem;
    padding-left: 1rem;
  }

  .article-reading-links {
    padding-block: .3rem;
  }

  .article-reading-links a {
    padding: .6rem .7rem;
  }

  .article-reading-status {
    padding-right: 1rem;
  }

  body[data-romans-static-page="article"] .article-body > section {
    scroll-margin-top: calc(46px + 4.35rem + 4.75rem);
  }

  body[data-romans-route="articles"] .article-section h2,
  body[data-romans-route="articles"] .article-why h2 {
    font-size: 1.875rem !important;
  }

  body[data-romans-route="articles"] .article-section p,
  body[data-romans-route="articles"] .article-why p {
    font-size: 1.125rem !important;
  }

  .article-context-list li,
  .article-doctrine-list li {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .article-flow {
    grid-template-columns: 1fr;
  }

  .article-flow > div {
    min-height: 0;
  }
}

/* Final Daniel chapter typography parity.
   Match Daniel's rendered reader roles instead of just the family names. */
body[data-romans-chapter] .scripture-pane-header h1 {
  max-width: none !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: clamp(1.875rem, 2.3vw, 2.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: .015em !important;
  line-height: 2.5rem !important;
}

body[data-romans-chapter] .scripture-chapter-summary {
  max-width: 42rem !important;
  margin-top: .75rem !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .passage-outline-divider {
  background: transparent !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  box-shadow: none !important;
}

body[data-romans-chapter] .passage-outline-range {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  line-height: 1.35 !important;
}

body[data-romans-chapter] .passage-outline-title {
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1.35 !important;
}

body[data-romans-chapter] .verse-copy {
  font-family: var(--font-serif), Georgia, serif !important;
  font-size: var(--scripture-desktop-font-size, 1.25rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .exposition-card-heading h2 {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.25rem !important;
}

body[data-romans-chapter] .commentary-reading,
body[data-romans-chapter] .commentary-reading p {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: var(--notes-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 2rem !important;
}

@media (max-width: 640px) {
  body[data-romans-chapter] .verse-copy {
    font-size: var(--scripture-mobile-font-size, 1.125rem) !important;
  }
}

/* Daniel commentary source parity.
   These values mirror Daniel's chapter reader classes and win over the older
   Romans override layers above. */
body[data-romans-chapter] .split-reader {
  --scripture-mobile-font-size: 1.125rem;
  --scripture-desktop-font-size: 1.25rem;
  --notes-font-size: 1.125rem;
  --romans-reader-bottom-cushion: 3rem;
  --romans-reader-footer-cushion: calc(var(--reader-footer-height, 6.5rem) + 2.5rem);
}

body[data-romans-chapter] .scripture-pane,
body[data-romans-chapter] .scripture-pane-body,
body[data-romans-chapter] .scripture-list,
body[data-romans-chapter] .scripture-card,
body[data-romans-chapter] .verse-copy {
  font-family: var(--font-serif), Georgia, serif !important;
}

body[data-romans-chapter] .commentary-pane,
body[data-romans-chapter] .commentary-pane-body,
body[data-romans-chapter] .commentary-reading,
body[data-romans-chapter] .commentary-reading p,
body[data-romans-chapter] .reader-pane-toolbar,
body[data-romans-chapter] .reader-pane-kicker,
body[data-romans-chapter] .reader-pane-subtitle,
body[data-romans-chapter] .reader-pane-controls,
body[data-romans-chapter] .reader-pane-controls button,
body[data-romans-chapter] .verse-number,
body[data-romans-chapter] .passage-outline-divider,
body[data-romans-chapter] .passage-outline-range,
body[data-romans-chapter] .exposition-card-heading h2 {
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
}

body[data-romans-chapter] .scripture-pane-body {
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem) var(--romans-reader-bottom-cushion, 3rem) !important;
  scroll-padding-bottom: var(--romans-reader-bottom-cushion, 3rem) !important;
}

body[data-romans-chapter] .scripture-pane-header {
  margin-bottom: 1.75rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid rgba(201, 164, 76, .18) !important;
}

body[data-romans-chapter] .scripture-pane-header::after {
  display: none !important;
}

body[data-romans-chapter] .scripture-pane-header h1 {
  max-width: none !important;
  color: #f3e8cc !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: clamp(1.875rem, 2.3vw, 2.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: .015em !important;
  line-height: 2.5rem !important;
}

body[data-romans-chapter] .scripture-chapter-summary {
  max-width: 42rem !important;
  margin-top: .75rem !important;
  color: rgba(236, 224, 196, .78) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .scripture-list {
  margin-top: 0 !important;
  display: grid !important;
  gap: 1rem !important;
  color: #f3e8cc !important;
  font-size: var(--scripture-desktop-font-size, 1.25rem) !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .passage-outline-divider {
  margin: 2rem 0 .65rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(201, 164, 76, .18) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-romans-chapter] .passage-outline-range {
  color: #d8b866 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

body[data-romans-chapter] .passage-outline-title {
  margin-top: .35rem !important;
  color: #f3e8cc !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1.35 !important;
}

body[data-romans-chapter] .scripture-card {
  display: block !important;
  width: 100% !important;
  padding: .5rem !important;
  border: 0 !important;
  border-radius: .25rem !important;
  background: transparent !important;
  color: #f3e8cc !important;
  text-align: left !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-romans-chapter] .scripture-card:hover {
  background: rgba(201, 164, 76, .10) !important;
  transform: none !important;
}

body[data-romans-chapter] .scripture-card-active,
body[data-romans-chapter] .scripture-card-active:hover {
  border: 0 !important;
  background: rgba(201, 164, 76, .10) !important;
  box-shadow: inset 3px 0 0 0 #c9a44c !important;
}

body[data-romans-chapter] .verse-number {
  display: inline !important;
  margin-right: .5rem !important;
  color: #d8b866 !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  line-height: 0 !important;
  vertical-align: super !important;
}

body[data-romans-chapter] .verse-copy {
  display: inline !important;
  color: #f3e8cc !important;
  font-size: var(--scripture-desktop-font-size, 1.25rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .commentary-pane {
  background: hsl(213 34% 18%) !important;
}

body[data-romans-chapter] .reader-pane-toolbar-notes {
  background: hsl(213 42% 16%) !important;
  border-bottom-color: hsl(213 26% 27%) !important;
}

body[data-romans-chapter] .commentary-pane-body {
  padding: 1.25rem !important;
  background: hsl(213 34% 18%) !important;
}

body[data-romans-chapter] .commentary-shell {
  max-width: none !important;
}

body[data-romans-chapter] .exposition-card {
  margin-top: 0 !important;
  padding: 1.25rem !important;
  border: 1px solid rgba(201, 164, 76, .55) !important;
  border-radius: .375rem !important;
  background: hsl(213 42% 16%) !important;
  box-shadow:
    0 0 0 1px rgba(201, 164, 76, .35),
    0 1px 2px rgba(0, 0, 0, .18) !important;
}

body[data-romans-chapter] .exposition-card-heading {
  margin-bottom: .75rem !important;
}

body[data-romans-chapter] .exposition-card-heading h2 {
  color: #f3e8cc !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.25rem !important;
}

body[data-romans-chapter] .commentary-reading {
  margin-top: 0 !important;
  color: rgba(236, 224, 196, .86) !important;
  font-size: var(--notes-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 2rem !important;
}

body[data-romans-chapter] .commentary-reading p {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

body[data-romans-chapter] .commentary-reading p + p {
  margin-top: 1.5rem !important;
}

@media (max-width: 640px) {
  body[data-romans-chapter] .scripture-list,
  body[data-romans-chapter] .verse-copy {
    font-size: var(--scripture-mobile-font-size, 1.125rem) !important;
  }

  body[data-romans-chapter] .scripture-pane-header h1 {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
  }
}

/* Daniel chapter reader parity: final winning layer. */
body[data-romans-chapter] {
  background: hsl(213 58% 13%) !important;
}

body[data-romans-chapter] .reader-page {
  background: hsl(213 58% 13%) !important;
}

body[data-romans-chapter] .split-reader {
  --scripture-mobile-font-size: 1.125rem;
  --scripture-desktop-font-size: 1.25rem;
  --notes-font-size: 1.125rem;
  background: hsl(213 58% 13%) !important;
}

body[data-romans-chapter] .scripture-pane {
  background: hsl(213 42% 16%) !important;
}

body[data-romans-chapter] .commentary-pane,
body[data-romans-chapter] .commentary-pane-body {
  background: hsl(213 34% 18%) !important;
}

body[data-romans-chapter] .scripture-pane-body {
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem) 0 !important;
}

body[data-romans-chapter] .scripture-pane-header {
  margin-bottom: .75rem !important;
  padding-bottom: .35rem !important;
  border-bottom: 0 !important;
}

body[data-romans-chapter] .scripture-pane-header::after {
  display: none !important;
}

body[data-romans-chapter] .scripture-pane-header h1 {
  color: hsl(41 44% 89%) !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: clamp(1.875rem, 2.3vw, 2.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: .015em !important;
  line-height: 2.5rem !important;
}

body[data-romans-chapter] .scripture-chapter-summary {
  max-width: 42rem !important;
  margin-top: .75rem !important;
  color: hsl(41 20% 68%) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .romans-chapter-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
  margin-top: 1rem !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
}

body[data-romans-chapter] .romans-chapter-tags span {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid hsl(213 26% 27%) !important;
  border-radius: 999px !important;
  background: hsl(213 38% 19%) !important;
  color: hsl(41 40% 88%) !important;
  padding: .25rem .625rem !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  line-height: 1rem !important;
}

body[data-romans-chapter] .passage-outline-divider {
  margin: 0 0 .65rem !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

body[data-romans-chapter] .passage-outline-range {
  color: hsl(42 54% 54%) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  line-height: 1.35 !important;
}

body[data-romans-chapter] .passage-outline-title {
  margin-top: .35rem !important;
  color: hsl(41 44% 89%) !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1.35 !important;
}

body[data-romans-chapter] .scripture-list {
  gap: 1rem !important;
  color: hsl(41 44% 89%) !important;
}

body[data-romans-chapter] .scripture-list::after,
body[data-romans-chapter] .commentary-shell::after {
  display: block !important;
  height: var(--romans-reader-bottom-cushion, 3rem) !important;
  content: "" !important;
}

body[data-romans-chapter][data-reader-footer-visible] .scripture-pane-body,
body[data-romans-chapter][data-reader-footer-visible] .commentary-pane-body {
  padding-bottom: var(--romans-reader-footer-cushion, calc(var(--reader-footer-height, 6.5rem) + 2.5rem)) !important;
  scroll-padding-bottom: var(--romans-reader-footer-cushion, calc(var(--reader-footer-height, 6.5rem) + 2.5rem)) !important;
}

body[data-romans-chapter][data-reader-footer-visible] .scripture-list::after,
body[data-romans-chapter][data-reader-footer-visible] .commentary-shell::after {
  height: var(--romans-reader-footer-cushion, calc(var(--reader-footer-height, 6.5rem) + 2.5rem)) !important;
}

body[data-romans-chapter] .scripture-card {
  display: block !important;
  padding: .5rem !important;
  border: 0 !important;
  border-radius: .25rem !important;
  background: transparent !important;
}

body[data-romans-chapter] .scripture-card-active,
body[data-romans-chapter] .scripture-card-active:hover {
  background: hsl(42 54% 54% / .10) !important;
  box-shadow: inset 3px 0 0 hsl(42 54% 54%) !important;
}

body[data-romans-chapter] .verse-number {
  display: inline !important;
  margin-right: .5rem !important;
  color: hsl(42 54% 54%) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  line-height: 0 !important;
  vertical-align: super !important;
}

body[data-romans-chapter] .verse-copy {
  display: inline !important;
  color: hsl(41 44% 89%) !important;
  font-family: var(--font-serif), Georgia, serif !important;
  font-size: var(--scripture-desktop-font-size, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .reader-pane-toolbar,
body[data-romans-chapter] .reader-pane-toolbar-notes {
  min-height: 65px !important;
  background: hsl(213 42% 16%) !important;
  border-color: hsl(213 26% 27%) !important;
}

body[data-romans-chapter] .reader-pane-kicker {
  color: hsl(41 44% 89%) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
}

body[data-romans-chapter] .reader-pane-kicker svg {
  color: hsl(42 54% 54%) !important;
}

body[data-romans-chapter] .commentary-pane-body {
  padding: 1.25rem 1.25rem var(--romans-reader-bottom-cushion, 3rem) !important;
  scroll-padding-bottom: var(--romans-reader-bottom-cushion, 3rem) !important;
}

body[data-romans-chapter] .exposition-card {
  margin-top: 0 !important;
  padding: 1.25rem !important;
  border: 1px solid hsl(42 54% 54% / .55) !important;
  border-radius: .375rem !important;
  background: hsl(213 42% 16%) !important;
  box-shadow:
    0 0 0 1px hsl(42 54% 54% / .35),
    0 1px 2px rgb(0 0 0 / .18) !important;
}

body[data-romans-chapter] .exposition-card-heading {
  margin-bottom: .75rem !important;
}

body[data-romans-chapter] .exposition-card-heading h2 {
  color: hsl(41 44% 89%) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.25rem !important;
}

body[data-romans-chapter] .commentary-reading,
body[data-romans-chapter] .commentary-reading p {
  color: hsl(41 44% 89%) !important;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
  font-size: var(--notes-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 2rem !important;
}

body[data-romans-chapter] .commentary-reading p + p {
  margin-top: 1rem !important;
}

/* Mobile inline commentary notes for the Romans reader. */
.romans-inline-note {
  display: none !important;
}

@media (max-width: 1023.98px) {
  body[data-romans-chapter] .split-reader > .commentary-pane {
    display: none !important;
  }

  body[data-romans-chapter] .romans-inline-note {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: .9rem 0 .35rem !important;
    padding: 1rem !important;
    border: 1px solid hsl(42 54% 54% / .50) !important;
    border-left-width: 4px !important;
    border-radius: .375rem !important;
    background: hsl(213 42% 16%) !important;
    color: hsl(41 44% 89%) !important;
    box-shadow:
      0 0 0 1px hsl(42 54% 54% / .18),
      0 18px 36px rgb(0 0 0 / .20) !important;
  }

  body[data-romans-chapter] .romans-inline-note .exposition-card-heading {
    margin-bottom: .7rem !important;
  }

  body[data-romans-chapter] .romans-inline-note .exposition-card-heading h2 {
    color: hsl(41 44% 89%) !important;
    font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
    font-size: .875rem !important;
    font-weight: 700 !important;
    line-height: 1.25rem !important;
  }

  body[data-romans-chapter] .romans-inline-note .commentary-reading,
  body[data-romans-chapter] .romans-inline-note .commentary-reading p {
    color: hsl(41 44% 89%) !important;
    font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif !important;
    font-size: var(--notes-font-size, 1.125rem) !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
  }

  body[data-romans-chapter] .romans-inline-note .commentary-reading p + p {
    margin-top: .85rem !important;
  }

  body[data-romans-chapter] .romans-inline-note .verse-study-card {
    margin-top: 1rem !important;
    border-color: hsl(42 54% 54% / .24) !important;
    background: hsl(213 38% 19% / .72) !important;
  }
}

@media (min-width: 1024px) {
  body[data-romans-chapter] .romans-inline-note {
    display: none !important;
  }
}

/* Romans typography standardization: final winning layer.
   Cinzel = headings, EB Garamond = Bible text, Jost = notes and UI. */
:root,
.dark {
  --display-font: "Cinzel", Georgia, "Times New Roman", serif;
  --scripture-font: "EB Garamond", Georgia, "Times New Roman", serif;
  --ui-font: "Jost", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--display-font);
  --font-serif: var(--scripture-font);
  --font-sans: var(--ui-font);
  --mbe-font-display: var(--font-display);
  --mbe-font-reading: var(--font-serif);
  --mbe-font-ui: var(--font-sans);
}

body {
  font-family: var(--font-sans) !important;
}

.reader-brand-text,
.reader-brand-strong,
.mbe-library-name,
.font-serif-display,
.home-showcase-copy h1,
.home-section-split h2,
.background-hero h1,
.background-hero h2,
.article-document-header h1,
.articles-hero h1,
.article-section h2,
.article-why h2,
body[data-romans-chapter] .scripture-pane-header h1,
body[data-romans-chapter] .passage-outline-title,
body[data-romans-chapter] .reader-pane-toolbar-notes .reader-pane-kicker {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}

.home-showcase-copy h1 {
  font-size: clamp(3rem, 7vw, 7rem) !important;
  line-height: .95 !important;
}

.home-section-split h2,
.background-hero h1,
.article-document-header h1,
.articles-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem) !important;
  line-height: 1 !important;
}

.article-section h2,
.article-why h2,
.background-section h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem) !important;
  line-height: 1.12 !important;
}

body[data-romans-chapter] .scripture-pane-header h1 {
  font-size: clamp(1.875rem, 2.3vw, 2.25rem) !important;
  line-height: 2.5rem !important;
}

.verse-copy,
.scripture-card .verse-copy,
.scripture-pane .verse-copy,
body[data-romans-chapter] .verse-copy {
  font-family: var(--font-serif) !important;
}

body[data-romans-chapter] .verse-copy {
  font-size: var(--scripture-desktop-font-size, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.75rem !important;
}

body[data-romans-chapter] .passage-outline-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  line-height: 1.25 !important;
}

body[data-romans-chapter] .commentary-reading,
body[data-romans-chapter] .commentary-reading p,
body[data-romans-chapter] .romans-inline-note .commentary-reading,
body[data-romans-chapter] .romans-inline-note .commentary-reading p {
  font-family: var(--font-sans) !important;
  font-size: var(--notes-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 2rem !important;
}

.mbe-global-shell,
.mbe-global-footer,
.mbe-ribbon-back,
.mbe-library-toggle,
.mbe-library-desc,
.mbe-footer-link,
.reader-nav,
.reader-menu,
.reader-menu-link,
.reader-nav-link,
.reader-header-actions,
.reader-menu-button,
.home-showcase-description,
.home-showcase-context,
.home-showcase-context p,
.home-showcase-actions,
.home-showcase-primary,
.home-showcase-secondary,
.home-action-card,
.home-action-card strong,
.home-action-card > span,
.home-action-card em,
.home-showcase-label,
.home-section-kicker,
.home-chapter-group,
.home-chapter-group h3,
.home-chapter-group > p,
.home-chapter-mini-grid,
.home-chapter-mini-grid span,
.article-card,
.article-card h3,
.article-card > span,
.article-card strong,
.article-meta span,
.articles-menu a,
.background-kicker,
.background-subtitle,
.background-section-nav,
.background-section-nav-heading,
.background-section-nav a,
.background-section-label,
.background-section-number,
.background-fact-card,
.background-fact-card h2,
.background-fact-card p,
.chapter-strip,
.chapter-strip-label,
.chapter-strip-link,
.reader-pane-toolbar,
.reader-pane-kicker,
.reader-pane-subtitle,
.reader-pane-controls,
.reader-pane-controls button,
.chapter-control,
.search-control,
.scripture-chapter-summary,
.passage-outline-range,
.exposition-card-heading h2,
.romans-inline-note .exposition-card-heading h2,
.verse-number,
.selected-reference-pill,
.verse-study-card,
.verse-study-card-header,
.verse-study-card h3,
.study-card-section h3,
.reference-chip,
.word-note-title,
.word-reference-chip,
button,
input,
select,
textarea,
label,
figcaption,
caption {
  font-family: var(--font-sans) !important;
}

body[data-romans-chapter] .reader-pane-toolbar:not(.reader-pane-toolbar-notes) .reader-pane-kicker,
body[data-romans-chapter] .reader-pane-toolbar:not(.reader-pane-toolbar-notes) .reader-pane-kicker span,
body[data-romans-chapter] .passage-outline-range,
body[data-romans-chapter] .verse-number,
body[data-romans-chapter] .commentary-empty {
  font-family: var(--font-sans) !important;
}

body[data-romans-chapter] .reader-pane-toolbar-notes .reader-pane-kicker,
body[data-romans-chapter] .reader-pane-toolbar-notes .reader-pane-kicker span {
  font-family: var(--font-display) !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
}

.reference-chip[data-mbe-reference-preview-trigger],
.word-reference-chip[data-mbe-reference-preview-trigger],
.symbol-reference-chip[data-mbe-reference-preview-trigger] {
  cursor: help !important;
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease !important;
}

.reference-chip[data-mbe-reference-preview-trigger]:hover,
.reference-chip[data-mbe-reference-preview-open],
.word-reference-chip[data-mbe-reference-preview-trigger]:hover,
.word-reference-chip[data-mbe-reference-preview-open],
.symbol-reference-chip[data-mbe-reference-preview-trigger]:hover,
.symbol-reference-chip[data-mbe-reference-preview-open] {
  border-color: rgba(224, 182, 69, .72) !important;
  background: rgba(201, 164, 76, .16) !important;
  color: #fff8e6 !important;
}

.reference-chip[data-mbe-reference-preview-trigger]:focus-visible,
.word-reference-chip[data-mbe-reference-preview-trigger]:focus-visible,
.symbol-reference-chip[data-mbe-reference-preview-trigger]:focus-visible {
  outline: 2px solid rgba(224, 182, 69, .9) !important;
  outline-offset: 3px !important;
}

.mbe-reference-preview {
  position: fixed;
  z-index: 120;
  width: min(28rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(224, 182, 69, .62);
  border-radius: .5rem;
  background: rgba(7, 20, 34, .98);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .38);
  color: #f3e8cc;
  padding: .875rem 1rem 1rem;
  pointer-events: none;
}

.mbe-reference-preview[hidden] {
  display: none !important;
}

.mbe-reference-preview-heading {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .55rem;
  color: #f8edcf;
  font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.mbe-reference-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 1.65rem;
  border-radius: .35rem;
  background: #d8b04d;
  color: #0b1d31;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
}

.mbe-reference-preview p {
  margin: 0;
  color: #e9dcc0;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .mbe-reference-preview {
    top: auto !important;
    right: .75rem;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    left: .75rem !important;
    width: auto;
    max-height: min(42vh, 22rem);
    overflow-y: auto;
    pointer-events: auto;
  }
}

.reader-brand-text {
  font-size: .78rem !important;
}

.reader-menu-link,
.reader-nav-link,
.theme-word-toggle,
.home-showcase-primary,
.home-showcase-secondary,
.home-action-card em,
.article-card strong,
.articles-menu a {
  font-size: .72rem !important;
}

.home-showcase-label,
.home-section-kicker,
.home-chapter-group > p,
.home-chapter-mini-grid span,
.article-card > span,
.article-meta span,
.passage-outline-range {
  font-size: .75rem !important;
}

.home-showcase-description,
.home-showcase-context p:first-of-type,
.background-subtitle {
  font-size: clamp(1rem, 1.7vw, 1.25rem) !important;
}

.home-showcase-context p + p,
.home-action-card > span:not(.home-action-icon),
.home-section-split > p,
.article-card p,
.article-related-list span,
.background-summary p,
.background-section-body p {
  font-size: .98rem !important;
}

.home-action-card strong,
.home-chapter-group h3,
.article-card h3,
.article-related-list strong {
  font-size: 1.25rem !important;
}

.scripture-chapter-summary,
.reader-pane-kicker,
.exposition-card-heading h2,
.romans-inline-note .exposition-card-heading h2 {
  font-size: .875rem !important;
}

body[data-romans-chapter] .split-reader {
  --scripture-mobile-font-size: 1.125rem;
  --scripture-desktop-font-size: 1.25rem;
  --notes-font-size: 1.125rem;
}

@media (max-width: 640px) {
  .home-showcase-copy h1 {
    font-size: clamp(3rem, 16vw, 4.5rem) !important;
  }

  body[data-romans-chapter] .verse-copy {
    font-size: var(--scripture-mobile-font-size, 1.125rem) !important;
  }
}

/* Final long-form article measure and type scale. */
body[data-romans-static-page="article"] .article-reader {
  width: min(calc(100% - 2rem), 92rem) !important;
  max-width: 92rem !important;
}

body[data-romans-static-page="article"] .article-document {
  width: min(100%, 72rem) !important;
  max-width: 72rem !important;
}

body[data-romans-static-page="article"] .article-document-header h1 {
  max-width: 22ch !important;
  font-size: 2.25rem !important;
  line-height: 1.12 !important;
}

body[data-romans-static-page="article"] .article-document-header > p:not(.articles-kicker),
body[data-romans-static-page="article"] .article-section p,
body[data-romans-static-page="article"] .article-why p {
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

body[data-romans-static-page="article"] .article-section h2,
body[data-romans-static-page="article"] .article-why h2 {
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
}

body[data-romans-static-page="article"] .article-context-list span,
body[data-romans-static-page="article"] .article-doctrine-list span,
body[data-romans-static-page="article"] .article-faq p {
  font-size: 1rem !important;
}

body[data-romans-static-page="article"] .article-misunderstandings h3 {
  font-size: 1.125rem !important;
}

@media (max-width: 700px) {
  body[data-romans-static-page="article"] .article-reader {
    width: 100% !important;
  }

  body[data-romans-static-page="article"] .article-document-header h1 {
    font-size: 1.875rem !important;
  }

  body[data-romans-static-page="article"] .article-section h2,
  body[data-romans-static-page="article"] .article-why h2 {
    font-size: 1.25rem !important;
  }
}

/* Revelation-style introduction: artwork, title, and section links form one hero. */
body[data-romans-route="introduction"] .background-page {
  overflow: hidden !important;
  background: linear-gradient(180deg, #0b1f3a 0%, #081521 100%) !important;
}

body[data-romans-route="introduction"] .background-hero {
  position: relative !important;
  z-index: 1 !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: clamp(34rem, 68vh, 46rem) !important;
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 6.5rem) clamp(7rem, 11vw, 10rem) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(201, 164, 76, .18) !important;
  background: #0b1f3a !important;
}

body[data-romans-route="introduction"] .background-hero::before {
  inset: -4rem -1.5rem -1.5rem !important;
  background-image:
    linear-gradient(90deg, rgba(11, 31, 58, .94) 0%, rgba(11, 31, 58, .72) 38%, rgba(11, 31, 58, .20) 72%, rgba(11, 31, 58, .08) 100%),
    linear-gradient(180deg, rgba(11, 31, 58, .18) 0%, rgba(11, 31, 58, .20) 42%, rgba(11, 31, 58, .62) 78%, rgba(8, 21, 33, .96) 100%),
    url("/assets/romans-hero-engraving-filled.webp?v=mbe-20260715-1") !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  opacity: .76 !important;
  filter: saturate(.86) contrast(.96) brightness(.86) !important;
  transform: scale(1.025);
  transform-origin: center top;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-romans-route="introduction"] .background-hero::after {
  inset: 0 !important;
  background:
    radial-gradient(ellipse at 16% 56%, rgba(11, 31, 58, .96) 0%, rgba(11, 31, 58, .70) 34%, transparent 62%),
    radial-gradient(ellipse at 74% 24%, rgba(201, 164, 76, .09) 0%, transparent 42%),
    linear-gradient(90deg, rgba(11, 31, 58, .86) 0%, rgba(11, 31, 58, .36) 42%, rgba(11, 31, 58, .12) 100%),
    linear-gradient(180deg, rgba(5, 15, 28, .08) 0%, rgba(5, 15, 28, 0) 34%, rgba(8, 21, 33, .34) 76%, #081521 100%) !important;
}

body[data-romans-route="introduction"] .background-hero-copy {
  width: 100% !important;
  max-width: 100rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body[data-romans-route="introduction"] .background-kicker {
  display: none !important;
  align-items: center !important;
  gap: .55rem !important;
  margin: 0 !important;
  color: #d8b866 !important;
  font-family: var(--font-sans) !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .20em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

body[data-romans-route="introduction"] .background-kicker svg {
  width: 1rem !important;
  height: 1rem !important;
  color: #d8b866 !important;
}

body[data-romans-route="introduction"] .background-hero h1 {
  max-width: 100% !important;
  margin: 0 !important;
  color: #f3e8cc !important;
  font-family: var(--font-display) !important;
  font-size: clamp(3rem, 7vw, 7rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: .95 !important;
  text-transform: uppercase !important;
  text-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}

body[data-romans-route="introduction"] .background-hero h1 span {
  display: block !important;
}

body[data-romans-route="introduction"] .background-hero h1 .background-title-kicker {
  margin-bottom: 1rem !important;
  color: #d8b866 !important;
  font-family: var(--font-sans) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  letter-spacing: .18em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

body[data-romans-route="introduction"] .background-hero h1 .background-title-main {
  color: #f3e8cc !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: .95 !important;
  white-space: nowrap !important;
}

body[data-romans-route="introduction"] .background-subtitle {
  max-width: 43rem !important;
  margin: 1.6rem 0 0 !important;
  color: #cbbf9e !important;
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

body[data-romans-route="introduction"] .background-section-nav {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding: .75rem clamp(2rem, 6vw, 5.5rem) 1.8rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(201, 164, 76, .18) !important;
  background: linear-gradient(180deg, rgba(11, 31, 58, .98) 0%, rgba(8, 21, 33, .96) 100%) !important;
  box-shadow: none !important;
}

body[data-romans-route="introduction"] .background-section-nav-heading {
  display: none !important;
}

body[data-romans-route="introduction"] .background-section-nav-scroll {
  width: min(100%, 116rem) !important;
  margin: 0 auto !important;
  padding: 0 0 .25rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  overscroll-behavior-inline: contain;
}

body[data-romans-route="introduction"] .background-section-nav-scroll::-webkit-scrollbar {
  display: none !important;
}

body[data-romans-route="introduction"] .background-section-nav-scroll nav {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: .7rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

body[data-romans-route="introduction"] .background-section-nav a {
  display: flex !important;
  align-items: center !important;
  gap: .7rem !important;
  min-width: 0 !important;
  min-height: 3.5rem !important;
  padding: .8rem 1rem !important;
  border: 1px solid rgba(201, 164, 76, .22) !important;
  border-radius: .3rem !important;
  background: rgba(18, 38, 63, .72) !important;
  color: #cbbf9e !important;
  font-family: var(--font-sans) !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
  backdrop-filter: blur(3px);
}

body[data-romans-route="introduction"] .background-section-nav a:visited {
  color: #cbbf9e !important;
}

body[data-romans-route="introduction"] .background-section-nav a span {
  flex: 0 0 auto !important;
  border: 0 !important;
  color: #d8b866 !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
}

body[data-romans-route="introduction"] .background-section-nav a:hover,
body[data-romans-route="introduction"] .background-section-nav a:focus-visible {
  border-color: rgba(216, 184, 102, .58) !important;
  background: rgba(201, 164, 76, .13) !important;
  color: #fff2d4 !important;
  outline: none !important;
}

body[data-romans-route="introduction"] .background-shell {
  position: relative !important;
  z-index: 2 !important;
  border-top: 0 !important;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(201, 164, 76, .07), transparent 68%),
    linear-gradient(180deg, #081521 0%, #0b1f3a 16rem, #081521 100%) !important;
}

body[data-romans-route="introduction"] .background-summary,
body[data-romans-route="introduction"] .background-fact-grid {
  display: none !important;
}

body[data-romans-route="introduction"] .background-section-list {
  margin-top: 0 !important;
  border-top: 0 !important;
}

@media (max-width: 1280px) and (min-width: 701px) {
  body[data-romans-route="introduction"] .background-section-nav {
    margin-top: 0 !important;
    padding-top: .75rem !important;
  }

  body[data-romans-route="introduction"] .background-section-nav-scroll nav {
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 10.5rem !important;
    width: max-content !important;
    min-width: 100% !important;
  }
}

@media (max-width: 700px) {
  body[data-romans-route="introduction"] .background-hero::before {
    inset: -4rem -1.5rem -1.5rem !important;
    background-position: 64% top !important;
    opacity: .52 !important;
  }

  body[data-romans-route="introduction"] .background-hero::after {
    inset: 0 !important;
  }

  body[data-romans-route="introduction"] .background-hero-copy {
    padding: 0 !important;
  }

  body[data-romans-route="introduction"] .background-kicker {
    margin-bottom: 1.5rem !important;
    font-size: .72rem !important;
    letter-spacing: .20em !important;
  }

  body[data-romans-route="introduction"] .background-hero h1 {
    font-size: clamp(3rem, 16vw, 4.5rem) !important;
  }

  body[data-romans-route="introduction"] .background-hero h1 .background-title-kicker {
    margin-bottom: .75rem !important;
    font-size: 1rem !important;
    letter-spacing: .12em !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  body[data-romans-route="introduction"] .background-hero h1 .background-title-main {
    white-space: normal !important;
  }

  body[data-romans-route="introduction"] .background-subtitle {
    margin-top: 1.25rem !important;
    font-size: 1.08rem !important;
    line-height: 1.6 !important;
  }

  body[data-romans-route="introduction"] .background-section-nav {
    margin-top: 0 !important;
    padding: .75rem 1.35rem 1.5rem !important;
  }

  body[data-romans-route="introduction"] .background-section-nav-scroll nav {
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(12rem, 72vw) !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  body[data-romans-route="introduction"] .background-section-nav a {
    min-height: 4.25rem !important;
    padding: .75rem .9rem !important;
  }
}

/* Keep the illustrated home hero unobstructed. */
.home-showcase .home-showcase-context {
  display: none !important;
}

/* Keep chapter overflow inside the two reader panes. Without an explicit root
   scroll container, deeply scrolled pane content can extend the document's
   visual overflow and leave empty space below the global footer. */
html:has(body[data-romans-chapter]) {
  height: 100% !important;
  overflow: hidden !important;
}

body[data-romans-chapter] {
  height: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Desktop reader footer reveal. The panes remain the scroll containers; the
   full-width footer appears only at either pane's end and claims its own space. */
@media (min-width: 981px) {
  html:has(body[data-romans-chapter]),
  body[data-romans-chapter] {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-romans-chapter] > main.reader-page {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  body[data-romans-chapter] .mbe-ref-strip {
    position: relative !important;
    top: auto !important;
  }

  body[data-romans-chapter] .split-reader {
    height: calc(
      100dvh - var(--mbe-ribbon-occupied-height, 47px) - 4.35rem - var(--chapter-strip-height)
    ) !important;
    min-height: 0 !important;
  }

  body.mbe-shell-managed[data-romans-chapter][data-reader-footer-visible]:has(> .reader-header)
    > main.reader-page:has(> .split-reader)
    > .split-reader {
    height: calc(
      100dvh - var(--mbe-ribbon-occupied-height, 47px) - 4.35rem - var(--chapter-strip-height) -
        var(--reader-footer-height, 10rem)
    ) !important;
  }

  body[data-romans-chapter] > .mbe-global-footer {
    position: fixed !important;
    z-index: 80 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 0s linear 160ms !important;
  }

  body[data-romans-chapter][data-reader-footer-visible] > .mbe-global-footer {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0);
    transition-delay: 0s !important;
  }

  @media (prefers-reduced-motion: reduce) {
    body[data-romans-chapter] > .mbe-global-footer {
      transition: none !important;
    }
  }
}


/* MBE asset delivery fallback: keep hero artwork above the isolated background in Safari. */
body[data-romans-route="home"] .home-showcase-hero::before,
body[data-romans-route="introduction"] .background-hero::before {
  z-index: 0 !important;
}

body[data-romans-route="home"] .home-showcase-hero::after,
body[data-romans-route="introduction"] .background-hero::after {
  z-index: 1 !important;
}

body[data-romans-route="home"] .home-showcase-copy,
body[data-romans-route="home"] .home-showcase-context,
body[data-romans-route="introduction"] .background-hero > * {
  position: relative;
  z-index: 2 !important;
}
