:root {
  --ink: #16201d;
  --muted: #5b6762;
  --paper: #f7f2e8;
  --white: #fffdf8;
  --line: #ded3bf;
  --gold: #c9922f;
  --gold-soft: #efe5d0;
  --wine: #8f3447;
  --green: #2f7b78;
  --blue: #315d81;
  --forest: #244c3d;
  --shadow: 0 18px 45px rgba(22, 32, 29, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fbf8f0 0, var(--paper) 48%, #fbf8f0 100%);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
}

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

a {
  color: inherit;
  text-decoration-color: rgba(123, 49, 66, 0.45);
  text-underline-offset: 0.2em;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 5.5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 70px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(242, 195, 93, 0.24);
  background: rgba(22, 32, 29, 0.96);
  backdrop-filter: blur(14px);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(242, 195, 93, 0.55);
  border-radius: 6px;
  background: rgba(242, 195, 93, 0.14);
  color: #f2c35d;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f2c35d;
}

.site-nav__account {
  display: none;
}

.header-actions,
.action-row,
.account-links,
.lesson-resources {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-flame-counter {
  display: grid;
  min-width: 128px;
  color: var(--white);
  text-align: right;
}

[dir="rtl"] .site-flame-counter {
  text-align: left;
}

.site-flame-counter strong {
  color: #f2c35d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.site-flame-counter span {
  max-width: 145px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  line-height: 1.25;
}

.lesson-video {
  display: block;
  width: min(100%, 960px);
  max-height: 70vh;
  background: #111;
}

.map-access-band,
.vision-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: min(650px, calc(100svh - 70px));
  align-content: end;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.5rem) max(4vw, calc((100vw - 1500px) / 2));
  background:
    linear-gradient(90deg, rgba(6, 11, 10, 0.94), rgba(6, 11, 10, 0.67) 44%, rgba(6, 11, 10, 0.18)),
    linear-gradient(0deg, rgba(6, 11, 10, 0.78), transparent 58%),
    url("../images/church-history-hero.8a1d4a689b2f.webp") center / cover no-repeat,
    var(--ink);
  color: var(--white);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.home-hero h1 {
  max-width: 820px;
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.home-hero__content > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.button--gold {
  border-color: #f2c35d;
  background: #f2c35d;
  color: #21180a;
}

.button--glass {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.home-hero__index {
  position: absolute;
  z-index: 1;
  right: max(4vw, calc((100vw - 1500px) / 2));
  bottom: clamp(4rem, 8vw, 7.5rem);
  display: grid;
  width: min(240px, 22vw);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

[dir="rtl"] .home-hero__index {
  right: auto;
  left: max(4vw, calc((100vw - 1500px) / 2));
}

.home-hero__index span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.home-hero__index strong {
  color: #f2c35d;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.map-access-band {
  display: flex;
  gap: 10px;
  padding: 24px 0 48px;
}

.vision-page {
  padding: 52px 0 80px;
}

.vision-story {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 10px;
}

.vision-story > summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
}

.vision-story .rich-text {
  max-width: 780px;
  margin-top: 24px;
}

.vitality-preview__header,
.vitality-comparison,
.rise-fall-overview,
.vitality-method,
.vitality-atlas,
.restoration-horizon {
  width: min(1440px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.vitality-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 56px 0 36px;
}

.vitality-preview__header > div {
  max-width: 880px;
}

.vitality-preview__header h1 {
  max-width: 840px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.vitality-preview__header p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.history-lens-nav {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.history-lens-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.history-lens-nav a + a {
  border-left: 1px solid var(--line);
}

[dir="rtl"] .history-lens-nav a + a {
  border-right: 1px solid var(--line);
  border-left: 0;
}

.vitality-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vitality-comparison > div {
  padding: 26px 32px 24px 0;
}

.vitality-comparison > div + div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.vitality-comparison span,
.vitality-reading span {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
}

.vitality-comparison strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.vitality-comparison p,
.vitality-method > p {
  margin-bottom: 0;
  color: var(--muted);
}

.rise-fall-overview,
#regional-vitality {
  scroll-margin-top: 110px;
}

.rise-fall-overview {
  padding: 58px 0 22px;
}

.history-section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 24px;
}

.history-section-heading h2 {
  margin-bottom: 0;
}

.history-section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rise-fall-chart {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.rise-fall-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 24px 0;
  color: #d9dedb;
  font-size: 0.74rem;
  font-weight: 700;
}

.rise-fall-legend span::before {
  display: inline-block;
  width: 19px;
  height: 4px;
  margin-inline-end: 8px;
  vertical-align: middle;
  background: var(--legend-color);
  content: "";
}

.rise-fall-legend .is-vitality {
  --legend-color: #e7bd60;
}

.rise-fall-legend .is-pressure {
  --legend-color: #c97887;
}

.rise-fall-chart__scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.rise-fall-chart__scroll::after,
.vitality-matrix-scroll::after {
  display: block;
  position: sticky;
  right: 0;
  width: 36px;
  height: 3px;
  margin-left: auto;
  background: linear-gradient(90deg, transparent, var(--gold));
  content: "";
}

.rise-fall-chart svg {
  display: block;
  width: 100%;
  min-width: 1100px;
  height: auto;
}

.rise-fall-chart__background {
  fill: var(--ink);
}

.rise-fall-chart__grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.rise-fall-chart__axis-label,
.rise-fall-chart__era-label {
  fill: #aeb8b5;
  font-family: Inter, sans-serif;
  font-size: 12px;
}

.rise-fall-chart__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rise-fall-chart__line--vitality {
  stroke: #e7bd60;
  stroke-width: 7;
}

.rise-fall-chart__line--pressure {
  stroke: #c97887;
  stroke-width: 4;
  stroke-dasharray: 9 9;
}

.rise-fall-chart__point {
  cursor: pointer;
}

.rise-fall-chart__era-guide {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.rise-fall-chart__dot {
  transition: r 160ms ease, stroke-width 160ms ease;
}

.rise-fall-chart__dot--vitality {
  fill: #e7bd60;
  stroke: var(--ink);
  stroke-width: 3;
}

.rise-fall-chart__dot--pressure {
  fill: #c97887;
  stroke: var(--ink);
  stroke-width: 2;
}

.rise-fall-chart__point.is-active .rise-fall-chart__dot--vitality {
  r: 12px;
  stroke: var(--white);
  stroke-width: 4;
}

.rise-fall-chart__point.is-active .rise-fall-chart__era-label {
  fill: var(--white);
  font-weight: 750;
}

.rise-fall-chart__point:focus-visible {
  outline: none;
}

.rise-fall-chart__point:focus-visible .rise-fall-chart__dot--vitality {
  stroke: var(--white);
  stroke-width: 5;
}

.rise-fall-era-strip {
  display: grid;
  grid-auto-columns: minmax(140px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.rise-fall-era-strip button {
  min-height: 76px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}

[dir="rtl"] .rise-fall-era-strip button {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.rise-fall-era-strip button strong,
.rise-fall-era-strip button span {
  display: block;
}

.rise-fall-era-strip button strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  line-height: 1.2;
}

.rise-fall-era-strip button span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
}

.rise-fall-era-strip button.is-active {
  box-shadow: inset 0 -5px 0 var(--gold);
  background: var(--white);
}

.rise-fall-era-strip button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.rise-fall-reading {
  padding: 34px 0 18px;
}

.rise-fall-reading > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.rise-fall-reading h3 {
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.rise-fall-reading header > div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.rise-fall-reading__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--muted);
  font-size: 0.74rem;
}

.rise-fall-reading__scores strong {
  margin-inline-start: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.rise-fall-reading > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.rise-fall-reading section {
  padding: 24px 28px 24px 0;
}

.rise-fall-reading section + section {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

[dir="rtl"] .rise-fall-reading section {
  padding-right: 0;
  padding-left: 28px;
}

[dir="rtl"] .rise-fall-reading section + section {
  padding-right: 28px;
  border-right: 1px solid var(--line);
  border-left: 0;
}

.rise-fall-reading section > span {
  display: block;
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.rise-fall-reading section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.vitality-method {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 64px;
  align-items: end;
  padding: 52px 0 24px;
}

.vitality-method h2 {
  margin-bottom: 0;
}

.vitality-atlas {
  padding-bottom: 64px;
}

.vitality-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.vitality-jump > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.vitality-jump select {
  width: min(100%, 430px);
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

[dir="rtl"] .vitality-jump select {
  padding-right: 12px;
  padding-left: 36px;
}

.vitality-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

.vitality-legend span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--status-color);
  content: "";
}

.is-strong {
  --status-color: #28725f;
  --status-background: #dcebe4;
}

.is-mixed {
  --status-color: #a47322;
  --status-background: #f3e7ca;
}

.is-resilient {
  --status-color: #346985;
  --status-background: #dce8ef;
}

.is-emerging {
  --status-color: #6c5a8f;
  --status-background: #e8e2ef;
}

.is-strained {
  --status-color: #8a3d4d;
  --status-background: #eedde1;
}

.vitality-matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
  scrollbar-color: var(--muted) transparent;
}

.vitality-matrix {
  display: grid;
  grid-template-columns: 190px repeat(6, minmax(160px, 1fr));
  min-width: 1160px;
}

.vitality-matrix__corner,
.vitality-period,
.vitality-region,
.vitality-cell {
  min-height: 82px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vitality-matrix__corner,
.vitality-region {
  position: sticky;
  z-index: 2;
  left: 0;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: #f0f2ef;
  font-size: 0.78rem;
  font-weight: 750;
}

[dir="rtl"] .vitality-matrix__corner,
[dir="rtl"] .vitality-region {
  right: 0;
  left: auto;
}

.vitality-matrix__corner {
  z-index: 3;
  color: var(--muted);
  text-transform: uppercase;
}

.vitality-period,
.vitality-cell {
  cursor: pointer;
  text-align: start;
}

.vitality-period {
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
}

.vitality-period strong,
.vitality-period span {
  display: block;
}

.vitality-period strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.15;
}

.vitality-period span {
  margin-top: 7px;
  color: #bdc5c3;
  font-size: 0.72rem;
}

.vitality-period.is-active {
  box-shadow: inset 0 -5px 0 var(--gold);
}

.vitality-cell {
  position: relative;
  padding: 14px;
  background: var(--status-background);
  color: var(--status-color);
}

.vitality-cell::before {
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: 11px;
  background: var(--status-color);
  content: "";
}

.vitality-cell span {
  display: block;
  max-width: 130px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.vitality-cell.is-active {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.vitality-period:focus-visible,
.vitality-cell:focus-visible,
.vitality-jump select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.vitality-period-panel {
  padding-top: 44px;
}

.vitality-period-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.vitality-period-panel > header h2 {
  margin-bottom: 0;
}

.vitality-period-panel > header > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.vitality-summary {
  display: grid;
  grid-template-columns: 0.65fr 0.85fr 1.25fr 1.25fr;
  border-bottom: 1px solid var(--line);
}

.vitality-summary > div {
  min-width: 0;
  padding: 22px 22px 22px 0;
}

.vitality-summary > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

[dir="rtl"] .vitality-summary > div {
  padding-right: 0;
  padding-left: 22px;
}

[dir="rtl"] .vitality-summary > div + div {
  padding-right: 22px;
  border-right: 1px solid var(--line);
  border-left: 0;
}

.vitality-summary span,
.vitality-region-focus span {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.vitality-summary strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
}

.vitality-summary > div:first-child strong {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.vitality-summary .vitality-meter {
  max-width: 180px;
}

.vitality-region-focus {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.vitality-region-focus__prompt {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.vitality-region-focus__prompt span,
.vitality-region-focus__prompt p,
.vitality-region-focus__story p {
  margin-bottom: 0;
}

.vitality-region-focus__prompt p,
.vitality-region-focus__story p {
  color: var(--muted);
  line-height: 1.6;
}

.vitality-region-focus__story {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1.35fr);
  gap: 36px;
  align-items: center;
  padding-left: 14px;
  border-left: 5px solid var(--status-color);
}

.vitality-region-focus__story[hidden] {
  display: none;
}

[dir="rtl"] .vitality-region-focus__story {
  padding-right: 14px;
  padding-left: 0;
  border-right: 5px solid var(--status-color);
  border-left: 0;
}

.vitality-region-focus__story header {
  display: grid;
  gap: 3px;
}

.vitality-region-focus__story header span {
  margin-bottom: 2px;
}

.vitality-region-focus__story header strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.vitality-region-focus__story header em {
  color: var(--status-color);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
}

.vitality-dimensions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 28px;
  padding: 28px 0;
}

.vitality-dimensions > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  align-items: end;
}

.vitality-dimensions span {
  font-size: 0.77rem;
  font-weight: 650;
}

.vitality-dimensions strong {
  color: var(--muted);
  font-size: 0.72rem;
}

.vitality-meter {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  background: #dfe3e0;
}

.vitality-meter i {
  display: block;
  height: 100%;
  background: var(--green);
}

.vitality-reading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vitality-reading section {
  padding: 26px 30px 24px 0;
}

.vitality-reading section + section {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

[dir="rtl"] .vitality-reading section {
  padding-right: 0;
  padding-left: 30px;
}

[dir="rtl"] .vitality-reading section + section {
  padding-right: 30px;
  border-right: 1px solid var(--line);
  border-left: 0;
}

.vitality-reading p {
  margin-bottom: 0;
  line-height: 1.65;
}

.vitality-period-panel > footer {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.vitality-period-panel > footer p {
  margin-bottom: 0;
}

.restoration-horizon {
  position: relative;
  padding: 56px 0 68px;
  border-top: 4px solid var(--gold);
}

.restoration-horizon::before {
  position: absolute;
  top: -10px;
  right: 0;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: var(--gold);
  content: "";
}

[dir="rtl"] .restoration-horizon::before {
  right: auto;
  left: 0;
}

.restoration-horizon p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
}

.restoration-horizon > span {
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 700;
}

.language-switcher select,
.member-table select {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.site-header .language-switcher select {
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-header .language-switcher option {
  color: var(--ink);
}

.site-header .button--quiet {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--wine);
  border-radius: 4px;
  background: var(--wine);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button--quiet {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button--small {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.messages {
  position: fixed;
  z-index: 120;
  top: 82px;
  right: 2vw;
  width: min(420px, 90vw);
}

.message {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.movement-types,
.chronological-timeline {
  width: min(1500px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.movement-types {
  padding-bottom: 2rem;
}

.movement-type-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.movement-type-list article {
  position: relative;
  min-width: 180px;
  padding: 1.1rem;
  background: var(--white);
}

.movement-type-list article > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--movement-color);
}

[dir="rtl"] .movement-type-list article > span {
  inset: 0 0 0 auto;
}

.movement-type-list h2 {
  margin-bottom: 0.45rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.movement-type-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.map-hero {
  min-height: calc(100vh - 70px);
  padding: clamp(2rem, 4vw, 4.5rem) 4vw;
  background: #efe8d9;
}

.map-hero__heading,
.page-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.map-hero__heading h2 {
  margin-bottom: 0.7rem;
}

.map-hero__heading > div:first-child {
  max-width: 900px;
}

.flame-count {
  display: grid;
  min-width: 160px;
  text-align: right;
}

[dir="rtl"] .flame-count {
  text-align: left;
}

.flame-count strong {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.flame-count span {
  color: var(--muted);
  font-size: 0.8rem;
}

.map-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.map-playback-status {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.map-playback-status strong {
  min-width: 58px;
  color: var(--wine);
  direction: ltr;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.segmented-control {
  display: flex;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segmented-control button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

[dir="rtl"] .segmented-control button {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.segmented-control button.is-active,
.segmented-control button:hover,
.segmented-control button:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.world-map__pin[hidden],
.world-map-list__item[hidden],
.timeline-card[hidden] {
  display: none;
}

.world-map-layout {
  width: min(1500px, 100%);
  margin: 2.2rem auto 0;
}

.world-map-viewport {
  border: 1px solid rgba(49, 93, 129, 0.2);
  border-radius: 8px;
  background: #e7f0ed;
  overflow: visible;
  direction: ltr;
}

.world-map {
  position: relative;
  min-width: 920px;
  aspect-ratio: 1200 / 620;
}

.world-map > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.75) contrast(1.05);
}

.world-map__leaders,
.world-map__route {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.world-map__leaders line {
  stroke: rgba(29, 37, 40, 0.46);
  stroke-width: 0.22;
  stroke-dasharray: 0.65 0.55;
  vector-effect: non-scaling-stroke;
}

.world-map__leaders circle {
  fill: var(--ink);
  vector-effect: non-scaling-stroke;
}

.world-map__route polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.world-map__route-track {
  stroke: rgba(123, 49, 66, 0.18);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.world-map__route-progress {
  stroke: var(--gold);
  stroke-width: 2.5;
}

.world-map__pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 4px 12px rgba(29, 37, 40, 0.28);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.world-map__pin.is-cluster {
  background: var(--blue);
}

.world-map__pin.is-selected {
  z-index: 18;
  outline: 3px solid rgba(183, 131, 45, 0.36);
  outline-offset: 3px;
  background: var(--gold);
}

.world-map__pin.is-locating {
  animation: locate-map-pin 700ms ease-out;
}

@keyframes locate-map-pin {
  0% { box-shadow: 0 0 0 0 rgba(183, 131, 45, 0.7); }
  100% { box-shadow: 0 0 0 18px rgba(183, 131, 45, 0); }
}

.world-map__tooltip {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% + 10px);
  display: none;
  width: min(260px, 42vw);
  padding: 0.75rem;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: left;
}

.world-map__pin:hover,
.world-map__pin:focus-visible {
  z-index: 20;
  background: var(--gold);
}

.world-map__pin:hover .world-map__tooltip,
.world-map__pin:focus-visible .world-map__tooltip {
  display: grid;
  gap: 0.3rem;
}

.world-map__pin.is-edge-left .world-map__tooltip {
  left: -8px;
  transform: translateX(0);
}

.world-map__pin.is-edge-right .world-map__tooltip {
  right: -8px;
  left: auto;
  transform: translateX(0);
}

.world-map__pin.is-edge-top .world-map__tooltip {
  top: calc(100% + 10px);
  bottom: auto;
}

.world-map__tooltip small {
  color: var(--muted);
  font-weight: 500;
}

.world-map__arrow {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 5px);
  display: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 3px 8px rgba(29, 37, 40, 0.2);
  color: var(--wine);
  font-size: 1.1rem;
  line-height: 1;
}

.world-map__pin.is-selected .world-map__arrow {
  display: grid;
}

.world-map-selection {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  width: min(920px, 100%);
  margin: 0 auto 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--wine);
  border-radius: 8px;
  background: var(--white);
}

.world-map-selection[hidden] {
  display: none;
}

.world-map-selection__number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--wine);
  color: var(--white);
  font-weight: 800;
}

.world-map-selection h2 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.world-map-selection p {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.world-map-selection__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.world-map-selection__links a {
  display: grid;
  gap: 0.15rem;
  min-width: 170px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}

.world-map-selection__links span {
  color: var(--muted);
  font-size: 0.75rem;
}

.world-map-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-height: 430px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.world-map-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  min-height: 94px;
  padding: 0.8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

[dir="rtl"] .world-map-list__item,
[dir="rtl"] .world-map__tooltip {
  direction: rtl;
  text-align: right;
}

.world-map-list__item > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--wine);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
}

.world-map-list__item > span:last-child {
  display: grid;
  gap: 0.25rem;
}

.world-map-list__item strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.world-map-list__item small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.world-map-list__item:hover,
.world-map-list__item:focus-visible,
.world-map-list__item.is-selected {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(22, 32, 29, 0.1);
}

.chronological-timeline .section-heading > p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-track {
  display: grid;
  grid-auto-columns: minmax(280px, 340px);
  grid-auto-flow: column;
  gap: 1rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scroll-snap-type: x proximity;
}

.timeline-card {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--movement-color);
  background: var(--white);
  scroll-snap-align: start;
}

.timeline-card > img {
  width: 100%;
  aspect-ratio: 13 / 7;
  object-fit: cover;
}

.timeline-card > div {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1rem;
}

.timeline-card h3,
.timeline-card p {
  margin: 0;
}

.timeline-card h3 {
  font-size: 1.3rem;
}

.timeline-card > div > span,
.timeline-card__category {
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 800;
}

.timeline-card > div > p:not(.timeline-card__category) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.timeline-card a {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.map-empty {
  position: absolute;
  inset: 42% auto auto 50%;
  display: grid;
  gap: 0.4rem;
  width: min(500px, 80%);
  padding: 1rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}

.vision-band,
.content-section,
.dashboard-section,
.course-modules,
.lesson-page,
.detail-page {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.vision-band {
  max-width: 950px;
}

.vision-statement {
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1.45;
}

.page-heading {
  min-height: 330px;
  padding: clamp(3rem, 7vw, 7rem) 4vw;
  background: var(--ink);
  color: var(--white);
}

.page-heading > p,
.page-heading > div > p {
  max-width: 780px;
  color: #d9dedb;
}

.page-heading--dashboard {
  min-height: 250px;
}

.library-search {
  display: flex;
  width: min(520px, 100%);
}

.library-search input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  border: 1px solid #7e898d;
  border-right: 0;
}

.section-heading {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.section-heading span {
  color: var(--muted);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.research-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.research-card__image,
.research-card__portrait {
  width: calc(100% + 2.2rem);
  max-width: none;
  margin: -1.1rem -1.1rem 1rem;
  object-fit: cover;
}

.research-card__image {
  aspect-ratio: 16 / 9;
}

.research-card__portrait {
  height: 320px;
  object-position: top;
}

.research-card h2,
.research-card h3 {
  font-size: 1.4rem;
}

.detail-heading {
  max-width: 920px;
  margin-bottom: 2.5rem;
}

.detail-heading > p:last-child {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.detail-image {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}

.revelation-panel {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 5px solid var(--gold);
  background: var(--gold-soft);
}

[dir="rtl"] .revelation-panel {
  padding-right: 1.5rem;
  padding-left: 0;
  border-right: 5px solid var(--gold);
  border-left: 0;
}

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

.detail-columns section {
  border-top: 3px solid var(--green);
  padding-top: 1.2rem;
}

.testimony-section,
.story-section,
.quote-section,
.reflection-panel {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.testimony {
  margin: 1rem 0;
  padding: 1.2rem;
  border-left: 3px solid var(--blue);
  background: var(--white);
}

.evidence-label {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.apostolic-fruits {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.apostolic-fruits__heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.apostolic-fruits__heading h2 {
  max-width: 620px;
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.apostolic-fruits__heading > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.apostolic-fruits__index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.5rem 0 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apostolic-fruits__index a {
  min-width: 0;
  padding: 1rem;
  border-inline-end: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.apostolic-fruits__index a:last-child {
  border-inline-end: 0;
}

.apostolic-fruits__index a:hover,
.apostolic-fruits__index a:focus-visible {
  background: var(--gold-soft);
}

.apostolic-fruits__index strong,
.apostolic-fruits__index span {
  display: block;
  overflow-wrap: anywhere;
}

.apostolic-fruits__index strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.apostolic-fruits__index span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.apostolic-fruit-group {
  scroll-margin-top: 120px;
  margin-bottom: 4rem;
}

.apostolic-fruit-group > header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  max-width: 840px;
  margin-bottom: 1.4rem;
}

.apostolic-fruit-group > header > span {
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 800;
}

.apostolic-fruit-group h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.apostolic-fruit-group header p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.apostolic-fruit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.apostolic-fruit {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.apostolic-fruit[open] {
  border-color: color-mix(in srgb, var(--gold) 65%, var(--line));
  box-shadow: 0 12px 30px rgba(45, 35, 24, 0.08);
}

.apostolic-fruit summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 0.75rem;
  align-items: center;
  min-height: 92px;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.apostolic-fruit summary::-webkit-details-marker {
  display: none;
}

.apostolic-fruit__number {
  align-self: start;
  padding-top: 0.15rem;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 800;
}

.apostolic-fruit__summary {
  min-width: 0;
}

.apostolic-fruit__summary strong,
.apostolic-fruit__summary small {
  display: block;
}

.apostolic-fruit__summary strong {
  font-size: 0.96rem;
  line-height: 1.4;
}

.apostolic-fruit__summary small {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.apostolic-fruit__toggle {
  position: relative;
  width: 20px;
  height: 20px;
}

.apostolic-fruit__toggle::before,
.apostolic-fruit__toggle::after {
  position: absolute;
  top: 9px;
  left: 4px;
  width: 12px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.apostolic-fruit__toggle::after {
  transform: rotate(90deg);
}

.apostolic-fruit[open] .apostolic-fruit__toggle::after {
  transform: rotate(0deg);
}

.apostolic-fruit__body {
  padding: 0 1rem 1rem 3.75rem;
}

[dir="rtl"] .apostolic-fruit__body {
  padding-right: 3.75rem;
  padding-left: 1rem;
}

.apostolic-fruit__body > p {
  margin: 0;
  line-height: 1.75;
}

.apostolic-fruit__body footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.apostolic-fruit__body footer span,
.apostolic-fruit__body footer a {
  font-size: 0.7rem;
  font-weight: 750;
}

.apostolic-fruit__body footer span {
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
}

.apostolic-fruit__body footer a {
  margin-inline-start: auto;
  color: var(--wine);
}

@media (max-width: 860px) {
  .apostolic-fruits__heading,
  .apostolic-fruit-list {
    grid-template-columns: 1fr;
  }

  .apostolic-fruits__index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apostolic-fruits__index a:nth-child(2) {
    border-inline-end: 0;
  }

  .apostolic-fruits__index a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .apostolic-fruits__index {
    grid-template-columns: 1fr;
  }

  .apostolic-fruits__index a,
  .apostolic-fruits__index a:nth-child(2) {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .apostolic-fruits__index a:last-child {
    border-bottom: 0;
  }

  .apostolic-fruit-group > header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .apostolic-fruit summary {
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 0.55rem;
    padding: 0.85rem;
  }

  .apostolic-fruit__body,
  [dir="rtl"] .apostolic-fruit__body {
    padding: 0 0.85rem 0.9rem;
  }

  .apostolic-fruit__body footer a {
    width: 100%;
    margin-inline-start: 0;
  }
}

.person-heading {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.person-heading__portrait {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

blockquote {
  margin: 1.2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--wine);
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

blockquote cite {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
}

.course-module {
  margin-bottom: 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.course-module summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  cursor: pointer;
}

.course-module summary span {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.course-module > p,
.lesson-list {
  margin-right: 1rem;
  margin-left: 1rem;
}

.lesson-list {
  padding: 0 0 1rem;
  list-style: none;
}

.lesson-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.lesson-list small {
  color: var(--muted);
}

.lesson-page {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.rich-text,
.lesson-body {
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.78;
}

.completion-state {
  display: inline-block;
  padding: 0.75rem;
  border: 1px solid #acd0c4;
  background: #e7f2ee;
  color: var(--green);
}

.account-page {
  display: grid;
  min-height: calc(100vh - 140px);
  padding: 4rem 1rem;
  place-items: start center;
  background:
    linear-gradient(90deg, rgba(6, 11, 10, 0.9), rgba(6, 11, 10, 0.48)),
    url("../images/church-history-hero.8a1d4a689b2f.webp") center / cover fixed,
    var(--ink);
}

.account-panel {
  width: min(720px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(242, 195, 93, 0.34);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-panel__mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #f2c35d;
  font-size: 0.76rem;
  font-weight: 850;
}

.account-intro {
  color: var(--muted);
  line-height: 1.6;
}

.account-code-form input {
  direction: ltr;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.account-links form {
  margin: 0;
}

.account-links {
  margin-top: 0.9rem;
}

.account-links .text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.account-panel--compact {
  max-width: 520px;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.account-form > p,
.account-form > label {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.account-form > p:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.account-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--wine);
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem;
  border: 1px solid #aeb7b3;
  border-radius: 3px;
  background: var(--white);
}

.account-form label[data-field="consent_to_data_processing"],
.account-form .button,
.account-form > p,
.account-form > ul,
.account-form > .errorlist {
  grid-column: 1 / -1;
}

.account-form .errorlist {
  margin: 0;
  padding: 0;
  color: #a12339;
  list-style: none;
  font-size: 0.82rem;
}

.account-footnote {
  margin-top: 1.5rem;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  width: min(1240px, 92vw);
  margin: -46px auto 0;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric-grid article {
  display: grid;
  gap: 0.3rem;
  min-height: 110px;
  align-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid strong {
  font-family: Georgia, serif;
  font-size: 2rem;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.table-scroll {
  overflow-x: auto;
}

.member-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  background: var(--white);
}

.member-table th,
.member-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

[dir="rtl"] .member-table th,
[dir="rtl"] .member-table td {
  text-align: right;
}

.member-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.member-table td > small,
.member-table td > strong {
  display: block;
}

.member-permission-form {
  display: flex;
  align-items: end;
  gap: 0.55rem;
}

.member-permission-form label {
  display: grid;
  gap: 0.2rem;
}

.member-permission-form label span {
  color: var(--muted);
  font-size: 0.68rem;
}

.audit-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.audit-list li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.audit-list time {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 4vw;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #d9dedb;
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: inherit;
}

.legal-page {
  width: min(820px, 90vw);
  min-height: 65vh;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.legal-page h2 {
  margin-top: 2.2rem;
  font-size: 1.4rem;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

.source-section,
.discernment-section {
  margin-top: 3rem;
  padding: 1.5rem;
  border-top: 4px solid var(--gold);
  background: var(--white);
}

.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1500px, 92vw);
  margin: 2rem auto 0;
}

.dashboard-attention {
  padding-bottom: 0;
}

.attention-list {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.attention-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.attention-list article:last-child {
  border-bottom: 0;
}

.attention-list article > div,
.attention-list article > div > * {
  display: block;
}

.attention-list small,
.attention-list time {
  color: var(--muted);
  font-size: 0.76rem;
}

.attention-list article > span {
  padding: 0.3rem 0.45rem;
  background: var(--gold-soft);
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 750;
}

.attention-list a {
  font-size: 0.78rem;
  font-weight: 750;
}

.dashboard-empty-state {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.dashboard-overview > article {
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.dashboard-overview h2 {
  font-size: 1.25rem;
}

.dashboard-breakdown {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.dashboard-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-breakdown dt {
  color: var(--muted);
}

.dashboard-breakdown dd {
  margin: 0;
  font-weight: 800;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto auto;
  align-items: end;
  gap: 0.65rem;
  margin: 1rem 0;
}

.dashboard-filters label {
  display: grid;
  gap: 0.35rem;
}

.dashboard-filters label > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.dashboard-filters input,
.dashboard-filters select {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.review-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--line);
}

.review-queue article {
  padding: 1rem;
  background: var(--white);
}

.review-queue h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1rem;
}

.review-queue p,
.review-queue small {
  color: var(--muted);
}

.teaching-sections {
  display: grid;
  gap: 0.8rem;
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 8vw, 8rem);
}

.teaching-sections details {
  border: 1px solid var(--line);
  background: var(--white);
}

.teaching-sections summary {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 88px;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.teaching-sections summary::-webkit-details-marker {
  display: none;
}

.teaching-sections summary::after {
  content: "+";
  grid-column: 3;
  color: var(--wine);
  font-size: 1.6rem;
}

.teaching-sections details[open] summary::after {
  content: "−";
}

.teaching-sections summary > span:first-child {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.teaching-sections summary > span:nth-child(2) {
  display: grid;
  gap: 0.3rem;
}

.teaching-sections summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.teaching-sections summary small,
.teaching-section__body > p {
  color: var(--muted);
}

.teaching-section__body {
  padding: 0 1rem 1.2rem 4.8rem;
  border-top: 1px solid var(--line);
}

[dir="rtl"] .teaching-section__body {
  padding-right: 4.8rem;
  padding-left: 1rem;
}

.teaching-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.teaching-link-grid a {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  text-decoration: none;
}

[dir="rtl"] .teaching-link-grid a {
  border-right: 4px solid var(--gold);
  border-left: 0;
}

.teaching-link-grid a > span,
.teaching-link-grid a > small {
  color: var(--muted);
  font-size: 0.74rem;
}

.teaching-link-grid--path {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-list {
  display: grid;
  gap: 1px;
  margin-top: 1rem;
  background: var(--line);
}

.source-list article {
  padding: 1rem;
  background: var(--paper);
}

.source-list p {
  margin: 0.65rem 0;
  line-height: 1.65;
}

.source-list cite,
.testimony small,
.quote-section cite {
  color: var(--muted);
  font-size: 0.78rem;
}

.evidence-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.evidence-badges span,
.evidence-label {
  width: fit-content;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--wine);
  font-size: 0.68rem;
  font-weight: 800;
}

.testimony time {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.7rem 0;
  }

  .site-nav__account {
    display: inline;
    color: var(--wine);
  }

  .header-actions .button {
    display: none;
  }

  .site-flame-counter {
    min-width: 92px;
  }

  .site-flame-counter span {
    max-width: 100px;
  }

  .map-hero__heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero__content {
    max-width: calc(100% - 230px);
  }

  .home-hero__index {
    width: 200px;
  }

  .map-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .world-map {
    min-width: 920px;
  }

  .world-map-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 5rem;
  }

  .world-map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movement-type-list {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
  }

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

  .dashboard-overview,
  .review-queue {
    grid-template-columns: 1fr;
  }

  .attention-list article {
    grid-template-columns: 1fr auto;
  }

  .dashboard-filters {
    grid-template-columns: 1fr 1fr;
  }

  .teaching-link-grid--path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vitality-preview__header,
  .vitality-method,
  .history-section-heading {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 20px;
  }

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

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

  .vitality-summary > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  [dir="rtl"] .vitality-summary > div:nth-child(3) {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 2.4rem;
  }

  .brand > span:last-child {
    max-width: 160px;
    line-height: 1.05;
  }

  .home-hero {
    min-height: 540px;
    padding: 5rem 1rem 3rem;
    background-position: 62% center;
  }

  .home-hero__content {
    max-width: 100%;
  }

  .home-hero h1 {
    font-size: 3.15rem;
  }

  .home-hero__index {
    display: none;
  }

  .site-flame-counter {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-hero {
    min-height: auto;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .world-map__pin {
    width: 24px;
    height: 24px;
  }

  .world-map-list {
    grid-template-columns: 1fr;
  }

  .world-map-selection {
    grid-template-columns: 36px 1fr;
  }

  .world-map-selection__number {
    width: 36px;
    height: 36px;
  }

  .chronological-timeline .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-columns,
  .person-heading,
  .account-form {
    grid-template-columns: 1fr;
  }

  .account-form > * {
    grid-column: 1;
  }

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

  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .teaching-section__body,
  [dir="rtl"] .teaching-section__body {
    padding: 1rem;
  }

  .teaching-link-grid,
  .teaching-link-grid--path {
    grid-template-columns: 1fr;
  }

  .audit-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .attention-list article {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .vitality-preview__header,
  .vitality-comparison,
  .rise-fall-overview,
  .vitality-method,
  .vitality-atlas,
  .restoration-horizon {
    width: min(100% - 28px, 1440px);
  }

  .vitality-comparison,
  .vitality-reading,
  .rise-fall-reading > div {
    grid-template-columns: 1fr;
  }

  .history-lens-nav {
    width: 100%;
  }

  .history-lens-nav a {
    flex: 1 1 50%;
    justify-content: center;
    text-align: center;
  }

  .rise-fall-reading > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rise-fall-reading section,
  .rise-fall-reading section + section,
  [dir="rtl"] .rise-fall-reading section,
  [dir="rtl"] .rise-fall-reading section + section {
    padding: 20px 0;
    border-right: 0;
    border-left: 0;
  }

  .rise-fall-reading section + section,
  [dir="rtl"] .rise-fall-reading section + section {
    border-top: 1px solid var(--line);
  }

  .vitality-jump {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .vitality-jump select {
    width: 100%;
  }

  .vitality-comparison > div,
  .vitality-comparison > div + div,
  .vitality-reading section,
  .vitality-reading section + section,
  [dir="rtl"] .vitality-reading section,
  [dir="rtl"] .vitality-reading section + section {
    padding: 20px 0;
    border-right: 0;
    border-left: 0;
  }

  .vitality-comparison > div + div,
  .vitality-reading section + section,
  [dir="rtl"] .vitality-reading section + section {
    border-top: 1px solid var(--line);
  }

  .vitality-period-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .vitality-summary {
    grid-template-columns: 1fr;
  }

  .vitality-summary > div,
  .vitality-summary > div + div,
  .vitality-summary > div:nth-child(3),
  [dir="rtl"] .vitality-summary > div,
  [dir="rtl"] .vitality-summary > div + div,
  [dir="rtl"] .vitality-summary > div:nth-child(3) {
    padding: 18px 0;
    border-right: 0;
    border-left: 0;
  }

  .vitality-summary > div + div {
    border-top: 1px solid var(--line);
  }

  .vitality-region-focus__prompt,
  .vitality-region-focus__story {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vitality-dimensions {
    grid-template-columns: 1fr;
  }

  .vitality-period-panel > footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* Author display rules must never override native conditional visibility. */
[hidden] {
  display: none !important;
}
