:root {
  --ink: #18211d;
  --muted: #716a60;
  --paper: #f7f2e8;
  --white: #fffdf8;
  --soft: #efe7d7;
  --line: #ded2bd;
  --green: #276b5d;
  --forest: #1c5147;
  --wine: #914558;
  --blue: #466d7d;
  --gold: #d6ad4f;
  --gold-soft: #efe2bf;
  --shadow: 0 16px 42px rgba(64, 48, 28, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--paper); }
body { display: flex; min-width: 320px; min-height: 100vh; flex-direction: column; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.55; letter-spacing: 0; }
body > main { flex: 1 0 auto; }
h1, h2, h3 { font-family: inherit; font-weight: 750; letter-spacing: 0; }
h1 { font-size: 52px; line-height: 1.08; }
h2 { font-size: 34px; line-height: 1.18; }
h3 { line-height: 1.3; }
a { text-decoration-color: rgba(15, 118, 110, .35); }

.site-header {
  position: sticky;
  z-index: 150;
  top: 0;
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 3vw;
  border-bottom: 1px solid rgba(222, 210, 189, .9);
  background: rgba(255, 253, 248, .95);
  color: var(--ink);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 780; }
.brand__mark { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; background: var(--ink); color: #f5cb63; font-family: inherit; font-size: 15px; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-size: 13px; }
.brand__text small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 650; }
.site-nav { display: flex; height: 42px; align-items: center; justify-content: center; gap: 2px; padding: 4px; border-radius: 8px; background: var(--soft); }
.site-nav a { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 9px; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 720; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(18, 32, 29, .08); }
.site-nav a.site-nav__mobile-account { display: none; }
.site-menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 7px; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 18px; }
.header-actions { justify-content: flex-end; gap: 9px; }
.header-text-link { color: var(--muted); font-size: 11px; font-weight: 730; text-decoration: none; white-space: nowrap; }
.header-text-link:hover { color: var(--green); }
.site-flame-counter { display: grid; min-width: 108px; align-content: center; color: var(--ink); text-align: end; }
.site-flame-counter strong { color: var(--wine); font-family: inherit; font-size: 21px; font-weight: 800; }
.site-flame-counter span { max-width: 112px; color: var(--muted); font-size: 9px; }
.language-choice { display: inline-flex; min-height: 38px; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.language-choice button { min-width: 36px; min-height: 34px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 780; }
.language-choice button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 2px 7px rgba(64, 48, 28, .10); }
.site-nav form.site-nav__mobile-account { display: none; }
.button { min-height: 42px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 760; text-decoration: none; }
.button:hover, .button:focus-visible { border-color: var(--green); background: var(--green); color: var(--white); }
.button--quiet { border-color: var(--line); background: var(--white); color: var(--ink); }
.site-header .button { height: 42px; min-height: 42px; padding: 10px 15px; white-space: nowrap; }
.site-header .button--quiet { border-color: var(--line); background: var(--white); color: var(--ink); }
.button--gold { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.button--glass { border-color: var(--line); background: var(--white); color: var(--ink); backdrop-filter: none; }

.messages { position: fixed; z-index: 180; top: 76px; right: 20px; width: min(420px, calc(100% - 40px)); }
.message { border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 820; letter-spacing: 0; text-transform: uppercase; }

.home-hero {
  min-height: 224px;
  align-content: center;
  padding: 38px max(3vw, calc((100vw - 1280px) / 2));
  background: var(--paper);
  color: var(--ink);
}
.home-hero::after { position: absolute; right: 3vw; bottom: 0; left: 3vw; height: 1px; background: var(--line); content: ""; }
.home-hero__content { max-width: 740px; }
.home-hero h1 { max-width: 720px; margin: 6px 0 10px; color: var(--ink); font-size: 50px; }
.home-hero__content > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.home-hero__actions { margin-top: 18px; }
.home-hero__index { right: max(3vw, calc((100vw - 1280px) / 2)); bottom: 44px; width: 220px; border-top-color: var(--line); }
[dir="rtl"] .home-hero__index { right: auto; left: max(3vw, calc((100vw - 1280px) / 2)); }
.home-hero__index span { border-bottom-color: var(--line); color: var(--muted); font-size: 10px; }
.home-hero__index strong { color: var(--wine); font-family: inherit; font-size: 20px; }

.map-hero, .movement-types, .chronological-timeline, .content-section, .dashboard-section, .page-heading, .detail-page, .teaching-sections, .metric-grid, .dashboard-overview, .official-library, .official-revivalist-grid, .official-revivalist-tools, .official-course-grid, .teaching-feature, .teaching-path {
  width: min(1280px, 94vw);
  margin-right: auto;
  margin-left: auto;
}
.map-hero { width: min(1680px, 98vw); min-height: 0; padding: 34px 0 26px; scroll-margin-top: 76px; background: transparent; }
.map-hero__heading, .page-heading { display: flex; min-height: 0; align-items: end; justify-content: space-between; gap: 42px; padding: 0 0 22px; border: 0; }
.map-hero__heading > div:first-child { max-width: 780px; }
.map-hero__heading h2 { margin: 7px 0 9px; font-size: 52px; }
.map-hero__heading p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.flame-count { display: flex; align-items: baseline; gap: 8px; }
.flame-count strong { color: var(--wine); font-family: inherit; font-size: 40px; font-weight: 800; }
.flame-count span { max-width: 84px; color: var(--muted); font-size: 11px; line-height: 1.3; text-transform: uppercase; }
.map-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; }
.segmented-control { display: grid; min-width: 0; flex: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow-x: visible; gap: 3px; padding: 4px; border: 0; border-radius: 8px; background: var(--soft); scrollbar-width: thin; }
.segmented-control button { width: 100%; min-height: 42px; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 680; line-height: 1.25; white-space: normal; }
.segmented-control button.is-active, .segmented-control button:hover, .segmented-control button:focus-visible { background: var(--white); color: var(--forest); box-shadow: 0 2px 7px rgba(18, 32, 29, .08); }
.map-playback-status { min-height: 34px; margin: 0 0 8px; padding: 0 3px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.map-playback-status strong { color: var(--wine); font-size: 11px; }
.world-map-layout { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.map-view-tools { position: sticky; z-index: 24; top: 72px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; width: fit-content; margin: 0 0 8px auto; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: rgba(247, 242, 232, .94); box-shadow: 0 8px 20px rgba(18, 32, 29, .08); backdrop-filter: blur(8px); }
.map-view-tools button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); font-size: 18px; font-weight: 800; cursor: pointer; }
.map-view-tools button:hover, .map-view-tools button:focus-visible { border-color: var(--green); color: var(--green); }
.map-view-tools button:disabled { cursor: default; opacity: .38; }
.map-view-tools output { min-width: 54px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.world-map-viewport { min-height: 540px; max-height: min(82vh, 860px); overflow: auto; direction: ltr; border: 1px solid #d2c7b4; border-radius: 8px 8px 0 0; background: #e7eee8; box-shadow: var(--shadow); cursor: grab; overscroll-behavior: contain; scrollbar-color: var(--green) rgba(255, 255, 255, .5); }
.world-map-viewport.is-dragging { cursor: grabbing; user-select: none; }
.world-map { width: calc(100% * var(--map-zoom, 1)); min-width: calc(1100px * var(--map-zoom, 1)); aspect-ratio: 1200 / 620; }
.world-map > img { pointer-events: none; user-select: none; filter: saturate(.78) brightness(1.04); }
.world-map__leaders line { stroke: rgba(18, 32, 29, .28); stroke-width: 1.2; }
.world-map__leaders circle { fill: var(--wine); }
.world-map__leaders .world-map__leader.is-selected { stroke: var(--wine); stroke-width: 2.5; }
.world-map__leaders .world-map__anchor.is-selected { fill: var(--gold); r: .58px; stroke: var(--ink); stroke-width: 1.2; }
.world-map__route-track { opacity: 0; stroke: rgba(15, 118, 110, .2); transition: opacity 180ms ease; }
.world-map-layout.is-playing .world-map__route-track { opacity: 1; }
.world-map__route-progress { stroke: var(--wine); }
.world-map__pin { width: 32px; height: 32px; transform: translate(calc(-50% + var(--pin-offset-x, 0px)), calc(-50% + var(--pin-offset-y, 0px))); border: 2px solid var(--white); background: var(--green); color: var(--white); box-shadow: 0 3px 12px rgba(18, 32, 29, .24); font-size: 10px; font-variant-numeric: tabular-nums; transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.world-map__pin.is-clustered { visibility: hidden; pointer-events: none; }
.world-map__aggregate { position: absolute; z-index: 16; display: grid; width: 46px; height: 46px; transform: translate(-50%, -50%); place-items: center; border: 3px solid var(--white); border-radius: 50%; background: var(--wine); color: var(--white); box-shadow: 0 0 0 7px rgba(191, 73, 97, .14), 0 7px 20px rgba(18, 32, 29, .28); cursor: zoom-in; font: 800 13px/1 inherit; }
.world-map__aggregate:hover, .world-map__aggregate:focus-visible { z-index: 30; background: var(--ink); outline: 3px solid var(--gold); outline-offset: 2px; }
.world-map__pin[data-map-spread="true"] { box-shadow: 0 0 0 2px rgba(255, 255, 255, .72), 0 5px 14px rgba(18, 32, 29, .28); }
.world-map__pin.is-secondary { background: var(--blue); }
.world-map__pin.is-selected { width: 36px; height: 36px; background: var(--wine); box-shadow: 0 0 0 6px rgba(191, 73, 97, .14), 0 5px 20px rgba(18, 32, 29, .2); font-size: 11px; }
.world-map__pin.is-selected .world-map__arrow { display: none; }
.world-map__pin.is-selected.is-locating .world-map__arrow { display: grid; }
.world-map__tooltip { width: 220px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); box-shadow: 0 12px 30px rgba(18, 32, 29, .15); }
.world-map__tooltip strong { font-size: 13px; }
.world-map__tooltip small { color: var(--muted); font-size: 11px; }
.world-map-selection { display: grid; min-height: 108px; grid-template-columns: 50px 1fr; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--white); box-shadow: 0 12px 28px rgba(23, 55, 48, .06); }
.world-map-selection__number { width: 46px; height: 46px; border-radius: 7px; background: var(--ink); color: #f5cb63; font-family: inherit; font-size: 17px; }
.world-map-selection h2 { margin-bottom: 7px; font-size: 21px; }
.world-map-selection p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.world-map-selection__links { margin-top: 9px; }
.world-map-selection__links a { border-radius: 7px; background: var(--soft); }
.world-map-list { display: flex; overflow-x: auto; gap: 6px; margin: 18px 0 0; padding: 0 0 8px; border: 0; background: transparent; list-style: none; scrollbar-width: thin; }
.world-map-list > li { display: flex; }
.world-map-list__item { min-width: 218px; min-height: 78px; gap: 10px; padding: 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.world-map-list__item > span:first-child { width: 32px; height: 32px; border-radius: 6px; background: var(--soft); color: var(--green); }
.world-map-list__item strong { font-size: 12px; }
.world-map-list__item small { color: var(--muted); font-size: 10px; }
.world-map-list__item:hover, .world-map-list__item:focus-visible, .world-map-list__item.is-selected { border-color: var(--line); background: var(--white); box-shadow: 0 4px 14px rgba(18, 32, 29, .06); }
.map-access-band { padding: 16px 0 26px; }
.bidi-isolate { unicode-bidi: isolate; }

.search-page { padding-top: 28px; padding-bottom: 72px; }
.search-form { max-width: 760px; }
.search-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.search-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-form input { min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.search-result-list { margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.search-result-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result-list h2 { margin: 0; font-size: 22px; }
.search-result-list h2 a { color: var(--ink); }
.search-result-list p { max-width: 820px; margin: 7px 0 0; color: var(--muted); }

.movement-types { padding: 44px 0 28px; }
.movement-types .section-heading { margin-bottom: 18px; }
.movement-type-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.movement-type-list article { min-height: 156px; padding: 21px 18px; border: 0; border-right: 1px solid var(--line); background: transparent; }
[dir="rtl"] .movement-type-list article { border-right: 0; border-left: 1px solid var(--line); }
.movement-type-list article:last-child { border-inline-end: 0; }
.movement-type-list article > span { width: 26px; height: 4px; margin-bottom: 17px; border-radius: 4px; background: var(--movement-color); }
.movement-type-list h2, .movement-type-list h3 { margin-bottom: 7px; font-size: 17px; }
.movement-type-list p { color: var(--muted); font-size: 12px; line-height: 1.55; }

.chronological-timeline { padding: 32px 0 66px; }
.section-heading { align-items: end; gap: 28px; }
.section-heading h2 { margin-bottom: 0; font-size: 30px; }
.chronological-timeline .section-heading > p { max-width: 620px; color: var(--muted); font-size: 14px; }
.timeline-track { display: flex; overflow-x: auto; gap: 12px; padding: 5px 0 14px; border: 0; scroll-snap-type: x proximity; }
.timeline-card { min-width: 300px; max-width: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); scroll-snap-align: start; }
.timeline-card > img { width: 100%; height: 174px; object-fit: cover; }
.timeline-card > div { padding: 16px; }
.timeline-card h3 { margin: 5px 0 8px; font-size: 18px; }
.timeline-card > div > span, .timeline-card__category { color: var(--wine); font-size: 11px; }
.timeline-card > div > p:not(.timeline-card__category) { color: var(--muted); font-size: 13px; }
.timeline-card a { color: var(--forest); font-size: 12px; font-weight: 750; }
.timeline-more { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.timeline-more > span { color: var(--muted); font-size: 12px; }

.page-heading { min-height: 210px; padding: 34px 0 24px; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.page-heading > div { max-width: 820px; }
.page-heading h1 { margin: 7px 0 8px; font-size: 50px; }
.page-heading > div > p { color: var(--green); }
.page-heading > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.content-section { padding: 34px 0; }
.library-search { display: grid; width: min(390px, 100%); grid-template-columns: 1fr auto; align-items: end; gap: 7px; }
.library-search > label { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.library-search > div { display: flex; min-height: 44px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--green); }
.library-search input { width: 100%; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; outline: 0; }
.official-library { padding: 28px 0 66px; }
.official-library > header, .official-library > article { display: grid; grid-template-columns: 120px minmax(290px, 1.3fr) minmax(300px, 1fr) 40px; align-items: center; gap: 18px; }
.official-library > header { padding: 0 14px 9px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.official-library > article { margin-bottom: 7px; padding: 11px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--white); }
.official-library > article:hover { border-color: var(--line); box-shadow: 0 8px 20px rgba(18, 32, 29, .05); }
.official-library > article > span { color: var(--wine); font-size: 12px; }
.official-library > article > div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 13px; }
.official-library img { width: 84px; height: 60px; border-radius: 6px; object-fit: cover; }
.official-library__image-placeholder {
  display: grid;
  width: 84px;
  height: 60px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.official-library small { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.official-library h2 { margin: 3px 0; font-size: 17px; }
.official-library p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.official-library > article > a { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; background: var(--soft); color: var(--forest); text-decoration: none; }
.official-revivalist-tools { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; padding-top: 24px; }
.revivalist-filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto auto; align-items: end; gap: 9px; }
.revivalist-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.revivalist-filters input, .revivalist-filters select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); font: inherit; font-size: 12px; }
.directory-count { margin: 0 0 12px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.directory-count strong { color: var(--wine); font-size: 24px; }
.official-revivalist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; padding: 24px 0 68px; }
.official-revivalist-grid > a { min-width: 0; color: inherit; text-decoration: none; }
.official-revivalist-grid__portrait { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--soft); }
.official-revivalist-grid__initial {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-size: 64px;
  font-weight: 800;
}
.official-revivalist-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.74); transition: transform 220ms ease, filter 220ms ease; }
.official-revivalist-grid a:hover img { transform: scale(1.015); filter: saturate(1); }
.official-revivalist-grid span { display: block; margin-top: 14px; color: var(--wine); font-size: 12px; font-weight: 750; }
.official-revivalist-grid h2 { margin: 5px 0 7px; font-size: 22px; }
.official-revivalist-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pagination { display: grid; width: min(1280px, 94vw); grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: -30px auto 68px; }
.pagination > span { color: var(--muted); font-size: 12px; text-align: center; }
.pagination a { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.pagination a:last-child { justify-self: end; }
.official-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 28px 0 68px; }
.official-course-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.official-course-grid__image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.official-course-grid article > div { padding: 20px; }
.official-course-grid h2 { margin: 7px 0 9px; font-size: 22px; }
.official-course-grid article > div > p:not(.eyebrow) { min-height: 66px; color: var(--muted); font-size: 13px; }
.course-progress { display: grid; gap: 6px; margin-top: 16px; }
.course-progress > span { display: block; height: 7px; overflow: hidden; border-radius: 20px; background: var(--soft); }
.course-progress > span i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.course-progress small { color: var(--muted); font-size: 10px; }
.official-course-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.official-course-grid footer a { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 7px; background: var(--soft); color: var(--forest); text-decoration: none; }

.course-progress-summary, .course-description { width: min(1240px, 92vw); margin: 0 auto; }
.course-progress-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.course-progress-summary > div { display: grid; width: min(560px, 100%); gap: 5px; }
.course-progress-summary > div > span, .module-progress { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.course-progress-summary .course-progress { margin-top: 5px; }
.course-description { padding: 28px 0 0; }
.module-progress { display: block; margin: 0 1rem 10px; }
.lesson-list a.is-complete { color: var(--green); }
.learning-objectives { margin: 24px 0; padding: 20px; border-inline-start: 4px solid var(--green); border-radius: 7px; background: #e7f2ee; }
.learning-objectives h2 { margin-bottom: 8px; font-size: 20px; }
.learning-objectives p { margin: 0; color: var(--muted); line-height: 1.65; }
.lesson-quiz { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.lesson-quiz > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.lesson-quiz > header h2 { margin: 3px 0 0; }
.lesson-quiz > header > span { color: var(--muted); font-size: 11px; }
.lesson-quiz fieldset { display: grid; gap: 9px; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.lesson-quiz legend { padding: 0 8px; font-weight: 800; }
.lesson-quiz fieldset label { display: flex; min-height: 38px; align-items: center; gap: 9px; }
.quiz-attempts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quiz-attempts span { padding: 7px 9px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 11px; }
.lesson-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-navigation a { display: grid; min-height: 76px; align-content: center; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); text-decoration: none; }
.lesson-navigation a:last-child { text-align: right; }
.lesson-navigation span { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.lesson-navigation strong { font-size: 13px; }

.teaching-feature { display: grid; min-height: 150px; margin-top: 28px; grid-template-columns: 154px 1fr 52px; align-items: center; gap: 24px; padding: 18px; border-radius: 8px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.teaching-feature__art { display: flex; height: 114px; flex-direction: column; justify-content: space-between; padding: 15px; border-radius: 7px; background: var(--green); }
.teaching-feature__art span, .teaching-feature > div:nth-child(2) > span { color: #9fe0d8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.teaching-feature__art strong { color: var(--white); font-size: 17px; line-height: 1.15; }
.teaching-feature h2 { margin: 5px 0; color: var(--white); font-size: 28px; }
.teaching-feature p { margin: 0; color: #bcc9c6; font-size: 13px; }
.teaching-feature > a { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 18px; text-decoration: none; }
.teaching-path { position: relative; display: grid; width: min(1100px, 88vw); grid-template-columns: repeat(3, 1fr); padding: 36px 0 0; list-style: none; }
.teaching-path::before { position: absolute; top: 53px; right: 16%; left: 16%; height: 2px; background: var(--line); content: ""; }
.teaching-path li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.teaching-path li > span { z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid var(--paper); border-radius: 50%; background: #dce5e2; color: var(--muted); font-size: 11px; font-weight: 800; }
.teaching-path li.is-current > span { background: var(--wine); color: var(--white); }
.teaching-path small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.teaching-path strong { font-size: 13px; }
.teaching-sections { padding: 40px 0 70px; }
.teaching-sections details { margin-bottom: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.teaching-sections summary { min-height: 66px; padding: 0 18px; border: 0; }
.teaching-sections summary > span:first-child { color: var(--wine); font-size: 11px; }
.teaching-sections summary strong { font-family: inherit; font-size: 16px; }
.teaching-sections summary small { color: var(--muted); font-size: 11px; }
.teaching-section__body { padding: 0 18px 18px; }
.teaching-link-grid a { border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }

.detail-page { padding: 40px 0 72px; }
.detail-heading { max-width: 920px; padding-bottom: 24px; }
.detail-heading h1 { margin: 7px 0 12px; font-size: 58px; }
.detail-heading > p:last-child { color: var(--muted); font-size: 16px; }
.detail-image { max-height: 620px; border-radius: 8px; object-fit: cover; }
.person-heading { grid-template-columns: minmax(260px, 380px) 1fr; gap: 44px; align-items: start; }
.person-heading__portrait { width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; object-position: center top; }
.person-heading__portrait--placeholder {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-size: 96px;
  font-weight: 800;
}
.person-heading h1 { font-size: 62px; }
.general-story-path {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 30px 0 46px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.general-story-path a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.general-story-path a:hover,
.general-story-path a:focus-visible { border-color: var(--green); background: var(--soft); }
.detail-page [id] { scroll-margin-top: 110px; }
.general-story-section { padding: 48px 0; border-top: 1px solid var(--line); }
.general-story-section > h2,
.general-story-section .section-heading h2 { margin: 6px 0 22px; font-size: clamp(28px, 3vw, 40px); }
.general-chapter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--wine);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.general-chapter-label span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, var(--line));
  border-radius: 50%;
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 14%, var(--white));
  font-size: 10px;
}
.general-story-copy { max-width: 780px; font-size: 17px; line-height: 1.82; }
.general-story-copy h2 { margin: 38px 0 12px; font-size: 26px; }
.general-story-copy h2:first-child { margin-top: 4px; }
.legacy-section > p:last-child,
.discernment-section > p:last-child { max-width: 780px; color: var(--muted); font-size: 17px; line-height: 1.78; }
.general-movement-story { padding: 48px 0; }
.general-movement-story__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.general-movement-story__list article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.general-movement-story__list h3 { margin: 5px 0 10px; font-size: 22px; }
.general-movement-story__list h3 a { color: inherit; }
.general-movement-story__list p { color: var(--muted); line-height: 1.65; }
.general-movement-story__list p strong { color: var(--ink); }
.revelation-panel { border: 0; border-radius: 8px; background: var(--ink); color: var(--white); }
.revelation-panel h2 { color: var(--white); }
.movement-era-parent {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.movement-era-parent a { color: var(--wine); font-weight: 760; }
.era-contents, .era-revivalists {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.era-contents .section-heading, .era-revivalists .section-heading {
  margin-bottom: 20px;
}
.era-contents .section-heading h2, .era-revivalists .section-heading h2 {
  margin: 5px 0 0;
  font-size: 30px;
}
.era-contents .section-heading > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.era-movement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.era-movement-grid > article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.era-movement-grid article > span {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}
.era-movement-grid h3 { margin: 8px 0 9px; font-size: 20px; }
.era-movement-grid h3 a { color: var(--ink); }
.era-movement-grid article > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}
.era-movement-grid .era-movement-place {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
}
.era-movement-people { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.era-movement-people a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-size: 12px;
  font-weight: 720;
}
.era-revivalist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.era-revivalist-grid > a {
  display: grid;
  min-width: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.era-revivalist-grid img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.era-revivalist-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}
.era-revivalist-grid span { min-width: 0; }
.era-revivalist-grid strong, .era-revivalist-grid small { display: block; }
.era-revivalist-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.era-revivalist-grid small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.detail-columns { gap: 10px; }
.detail-columns section, .testimony, .source-list article, .quote-section blockquote { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.story-section, .testimony-section, .quote-section, .source-section, .discernment-section { border-color: var(--line); }
.rich-text { color: var(--ink); font-size: 15px; line-height: 1.75; }

.account-page { min-height: calc(100vh - 124px); background: var(--paper); }
.account-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.account-panel__mark { border-radius: 8px; background: var(--ink); color: #f5cb63; }
.account-panel h1 { font-size: 40px; }
.account-intro { color: var(--muted); }
.account-form input, .account-form select, .account-form textarea { border-color: var(--line); border-radius: 7px; background: var(--paper); }
.account-form input:focus, .account-form select:focus, .account-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }

.metric-grid { gap: 8px; padding: 26px 0; }
.metric-grid article, .dashboard-overview > article { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.metric-grid strong { color: var(--wine); font-family: inherit; }
.dashboard-filters { border-radius: 8px; background: var(--soft); }
.dashboard-filters input, .dashboard-filters select, .member-permission-form select { border-color: var(--line); border-radius: 6px; background: var(--white); }
.table-scroll { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.member-table thead { background: var(--soft); }

.site-footer { min-height: 62px; border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 11px; }

@media (max-width: 1380px) {
  .site-flame-counter { min-width: 44px; }
  .site-flame-counter span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(170px, 1fr) auto minmax(230px, 1fr); }
  .site-flame-counter { display: none; }
  .site-nav a { padding: 8px 9px; }
  .header-text-link { display: none; }
  .official-revivalist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .revivalist-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .revivalist-filters label:first-child { grid-column: span 2; }
  .official-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .site-menu-button { display: block; grid-column: 2; grid-row: 1; }
  .site-nav { position: fixed; top: 64px; right: 0; left: 0; display: none; height: auto; max-height: calc(100vh - 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; gap: 5px; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--white); box-shadow: 0 14px 28px rgba(18, 32, 29, .12); }
  .site-header.is-menu-open .site-nav { display: grid; }
  .site-nav a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 10px 13px; text-align: center; white-space: normal; }
  .site-nav a.site-nav__mobile-account { display: inline-flex; }
  .site-nav form.site-nav__mobile-account { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav form.site-nav__mobile-account button { min-width: 48px; }
  .header-actions { display: none; }
  .home-hero__index { display: none; }
  .movement-type-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .movement-type-list article:nth-child(3) { border-inline-end: 0; }
  .movement-type-list article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .official-library > header { display: none; }
  .official-library > article { grid-template-columns: 105px 1fr 38px; }
  .official-library > article > p { grid-column: 2; }
  .official-library > article > a { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  h1 { font-size: 36px; }
  .home-hero { min-height: 0; padding: 28px 16px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero__content > p:not(.eyebrow) { font-size: 15px; }
  .home-hero__actions { align-items: stretch; flex-direction: column; }
  .map-hero, .movement-types, .chronological-timeline, .content-section, .dashboard-section, .page-heading, .detail-page, .teaching-sections, .metric-grid, .dashboard-overview, .official-library, .official-revivalist-grid, .official-revivalist-tools, .official-course-grid, .teaching-feature { width: calc(100% - 32px); }
  .map-hero { padding-top: 26px; }
  .map-hero__heading, .page-heading { align-items: start; flex-direction: column; gap: 18px; }
  .map-hero__heading h2, .page-heading h1 { font-size: 38px; }
  .map-hero__heading p:last-child, .page-heading > p { font-size: 15px; }
  .flame-count { justify-content: flex-start; }
  .map-controls { align-items: stretch; flex-direction: column; }
  .segmented-control { display: flex; overflow-x: auto; }
  .segmented-control button { width: auto; flex: 0 0 auto; padding: 0 13px; white-space: nowrap; }
  .map-controls > .button { width: 100%; justify-content: center; }
  .world-map-viewport { width: calc(100% + 32px); margin-left: -16px; border-right: 0; border-left: 0; border-radius: 0; }
  .world-map-viewport { min-height: 420px; max-height: 70vh; }
  [dir="rtl"] .world-map-viewport { margin-right: -16px; margin-left: 0; }
  .world-map { min-width: 800px; min-height: 393px; }
  .world-map-selection { grid-template-columns: 44px 1fr; gap: 11px; padding: 13px; border-top: 1px solid var(--line); border-radius: 8px; }
  .world-map-list__item { min-width: 190px; }
  .movement-type-list { grid-template-columns: 1fr; }
  .movement-type-list article { min-height: 0; border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .movement-type-list article:nth-child(n+4) { border-top: 0; }
  .movement-type-list article:last-child { border-bottom: 0; }
  .timeline-card { min-width: 280px; max-width: 280px; }
  .library-search { width: 100%; }
  .search-form > div { grid-template-columns: 1fr; }
  .official-library > article { grid-template-columns: 1fr 38px; }
  .official-library > article > span, .official-library > article > div, .official-library > article > p { grid-column: 1; }
  .official-library > article > a { grid-column: 2; grid-row: 1 / span 3; }
  .official-library > article > div { grid-template-columns: 78px 1fr; }
  .official-revivalist-tools { grid-template-columns: 1fr; align-items: stretch; }
  .revivalist-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revivalist-filters label:first-child { grid-column: 1 / -1; }
  .revivalist-filters .button { justify-content: center; }
  .directory-count { margin: 0; }
  .official-revivalist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 12px; }
  .official-revivalist-grid span { margin-top: 9px; font-size: 10px; }
  .official-revivalist-grid h2 { margin: 4px 0 5px; font-size: 16px; }
  .official-revivalist-grid p { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .pagination { width: calc(100% - 32px); margin-top: -36px; }
  .pagination a span { display: none; }
  .official-course-grid { grid-template-columns: 1fr; }
  .official-course-grid article > div > p:not(.eyebrow) { min-height: 0; }
  .course-progress-summary { width: calc(100% - 32px); align-items: stretch; flex-direction: column; }
  .course-description { width: calc(100% - 32px); }
  .lesson-quiz > header { align-items: start; flex-direction: column; }
  .lesson-navigation { grid-template-columns: 1fr; }
  .teaching-feature { grid-template-columns: 92px minmax(0, 1fr) 38px; gap: 10px; padding: 13px; }
  .teaching-feature__art { width: 100%; height: 88px; overflow: hidden; padding: 10px; }
  .teaching-feature__art strong { font-size: 12px; }
  .teaching-feature h2 { font-size: 20px; }
  .teaching-feature p { font-size: 11px; }
  .teaching-feature > a { width: 38px; height: 38px; }
  .teaching-path { width: calc(100% - 32px); }
  .teaching-path strong { display: block; max-width: 98px; font-size: 11px; line-height: 1.25; }
  .person-heading { grid-template-columns: 1fr; gap: 24px; }
  .person-heading__portrait { max-width: 440px; }
  .detail-heading h1, .person-heading h1 { font-size: 40px; }
  .general-story-path { margin: 22px 0 34px; }
  .general-movement-story__list { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
}

[dir="rtl"] .official-library > article, [dir="rtl"] .official-library > header { direction: rtl; }
[dir="rtl"] .world-map__tooltip { direction: rtl; text-align: right; }

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

/* Revival atmosphere: historical imagery, deep forest bands, and warm light. */
:root {
  --night: #101916;
  --night-soft: #18231f;
  --night-line: rgba(245, 236, 217, .16);
  --cream: #fff8e9;
  --gold-bright: #f0c663;
  --paper: #eee5d6;
  --white: #fbf7ee;
  --soft: #e5dac7;
  --line: #d1c2a9;
  --shadow: 0 16px 42px rgba(27, 20, 12, .16);
}

html, body { background: var(--paper); }

.site-header {
  border-bottom-color: var(--night-line);
  background: rgba(16, 25, 22, .96);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(4, 8, 7, .18);
}
.brand { color: var(--cream); }
.brand__mark { background: var(--gold-bright); color: var(--night); }
.brand__text small { color: #b9c1bc; }
.site-nav { background: rgba(255, 255, 255, .07); }
.site-nav a { color: #c5cbc7; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active {
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  box-shadow: none;
}
.site-menu-button {
  border: 1px solid var(--night-line);
  background: rgba(255, 255, 255, .08);
  color: var(--cream);
}
.header-text-link { color: #c5cbc7; }
.header-text-link:hover { color: var(--gold-bright); }
.site-flame-counter { color: var(--cream); }
.site-flame-counter strong { color: var(--gold-bright); }
.site-flame-counter span { color: #b9c1bc; }
.site-header .language-choice {
  border-color: var(--night-line);
  background: rgba(255, 255, 255, .07);
}
.site-header .language-choice button { color: #c5cbc7; }
.site-header .language-choice button.is-active {
  background: var(--gold-bright);
  color: var(--night);
  box-shadow: none;
}
.site-header .button { border-color: var(--gold-bright); background: var(--gold-bright); color: var(--night); }
.site-header .button--quiet { border-color: var(--night-line); background: rgba(255, 255, 255, .07); color: var(--cream); }
.site-header .button:hover, .site-header .button:focus-visible { border-color: var(--cream); background: var(--cream); color: var(--night); }

.home-hero {
  min-height: 430px;
  align-content: end;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 58px;
  background: var(--night);
  color: var(--cream);
}
.home-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--night);
}
.home-hero__media figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
  visibility: hidden;
}
.home-hero__media figure.is-active {
  opacity: 1;
  visibility: visible;
}
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08);
  transform: scale(1.025);
  transition: transform 7s ease-out;
}
.home-hero__media figure.is-active img { transform: scale(1); }
.home-hero__media figure:first-child img { object-position: 52% center; }
.home-hero__media figure:nth-child(2) img { object-position: 50% 42%; }
.home-hero__media figure:last-child img { object-position: 58% center; }
.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 12, .88) 0, rgba(8, 14, 12, .66) 42%, rgba(8, 14, 12, .18) 74%, rgba(8, 14, 12, .34) 100%),
    linear-gradient(0deg, rgba(8, 14, 12, .72), transparent 72%);
  content: "";
}
[dir="rtl"] .home-hero::before {
  background:
    linear-gradient(270deg, rgba(8, 14, 12, .88) 0, rgba(8, 14, 12, .66) 42%, rgba(8, 14, 12, .18) 74%, rgba(8, 14, 12, .34) 100%),
    linear-gradient(0deg, rgba(8, 14, 12, .72), transparent 72%);
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__media figure { transition: none; }
  .home-hero__media img { transform: none; transition: none; }
}
.home-hero::after {
  position: absolute;
  right: 3vw;
  bottom: 0;
  left: 3vw;
  height: 1px;
  background: rgba(240, 198, 99, .48);
  content: "";
}
.home-hero .eyebrow { color: var(--gold-bright); }
.home-hero h1 { color: var(--cream); }
.home-hero__content > p:not(.eyebrow) { color: rgba(255, 248, 233, .80); }
.home-hero .button--gold { border-color: var(--gold-bright); background: var(--gold-bright); color: var(--night); }
.home-hero .button--glass { border-color: rgba(255, 248, 233, .35); background: rgba(16, 25, 22, .46); color: var(--cream); backdrop-filter: blur(10px); }
.home-hero__index { border-top-color: rgba(255, 248, 233, .24); }
.home-hero__index span { border-bottom-color: rgba(255, 248, 233, .18); color: rgba(255, 248, 233, .68); }
.home-hero__index strong { color: var(--gold-bright); }

.page-heading {
  border-bottom-color: var(--night-line);
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax);
}
.page-heading .eyebrow, .page-heading > div > p { color: var(--gold-bright); }
.page-heading h1 { color: var(--cream); }
.page-heading > p, .page-heading .vision-statement { color: #c8cec9; }

.vision-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 46px;
  padding: 38px 0;
  background: var(--night);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax);
  direction: ltr;
}
.vision-intro .page-heading {
  display: block;
  width: 100%;
  min-height: 0;
  margin-right: 0;
  margin-left: 0;
  padding: 22px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}
[dir="rtl"] .vision-intro .page-heading {
  direction: rtl;
  text-align: right;
}
.vision-intro .page-heading h1 {
  max-width: 540px;
  font-size: 46px;
  line-height: 1.08;
}
.vision-intro .page-heading > p {
  max-width: 520px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.68;
}

.vision-inheritance-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--night);
  box-shadow: var(--shadow);
}
.vision-inheritance-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.vision-story {
  margin-top: 24px;
  padding-top: 0;
  border-top: 1px solid var(--line);
}
.vision-story > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}
.vision-story > summary::-webkit-details-marker { display: none; }
.vision-story > summary::after {
  color: var(--wine);
  content: "+";
  font-size: 20px;
  font-weight: 500;
}
.vision-story > summary > span,
.vision-story > summary strong,
.vision-story__author { display: block; }
.vision-story[open] > summary::after { content: "−"; }
.vision-story .rich-text {
  max-width: 820px;
  margin: 10px 0 0;
  padding: 26px 0 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}
.vision-story__author {
  margin: 3px 0 0;
  color: var(--wine);
  font-size: 10px;
  font-weight: 750;
}
.vision-story .rich-text p { margin: 0 0 20px; }

.movement-types {
  background: var(--night-soft);
  color: var(--cream);
  box-shadow: 0 0 0 100vmax var(--night-soft);
  clip-path: inset(0 -100vmax);
  padding-top: 58px;
  padding-bottom: 64px;
}
.movement-types .section-heading {
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--night-line);
}
.movement-types .eyebrow {
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 12px;
  line-height: 1.4;
}
.movement-types .section-heading h2 {
  margin: 0;
  color: var(--cream);
  font-size: 38px;
  line-height: 1.14;
}
.movement-type-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  overflow: visible;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  border-radius: 0;
  background: transparent;
}
.movement-type-list article,
[dir="rtl"] .movement-type-list article {
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  padding: 23px 21px;
  border: 0;
  border-inline-end: 1px solid var(--night-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cream);
}
.movement-type-list article > span,
[dir="rtl"] .movement-type-list article > span {
  position: static;
  display: block;
  width: 42px;
  height: 4px;
  flex: 0 0 auto;
  margin: 0 0 20px;
  border-radius: 4px;
  background: var(--movement-color);
}
.movement-type-list h3 {
  margin: 0 0 11px;
  color: var(--cream);
  font-size: 19px;
  font-weight: 760;
  line-height: 1.3;
}
.movement-type-list p {
  margin: 0;
  color: #c5cdc8;
  font-size: 14px;
  line-height: 1.62;
}
.movement-type-list article:hover {
  background: rgba(255, 255, 255, .035);
}

.site-footer {
  border-top-color: var(--night-line);
  background: var(--night);
  color: #b9c1bc;
}
.site-footer a { color: var(--cream); }
.sync-status { font-weight: 800; }
.sync-status--success { color: var(--green); }
.sync-status--error, .integration-error { color: #9a3832; }
.integration-error { margin: 14px 0 0; font-size: 12px; line-height: 1.55; }

@media (max-width: 900px) {
  .site-nav {
    border-bottom-color: var(--night-line);
    background: var(--night-soft);
    box-shadow: 0 18px 32px rgba(4, 8, 7, .32);
  }
  .movement-type-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movement-type-list article,
  [dir="rtl"] .movement-type-list article { min-height: 196px; }
  .vision-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0;
  }
  .vision-intro .page-heading { padding: 8px 0 0; }
  .vision-intro .page-heading h1 { font-size: 42px; }
  .vision-intro .page-heading > p { margin-top: 20px; }
  .era-revivalist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .home-hero { min-height: 390px; padding: 48px 16px 38px; }
  .home-hero::before {
    background:
      linear-gradient(90deg, rgba(8, 14, 12, .88), rgba(8, 14, 12, .44)),
      linear-gradient(0deg, rgba(8, 14, 12, .78), transparent 68%);
  }
  [dir="rtl"] .home-hero::before {
    background:
      linear-gradient(270deg, rgba(8, 14, 12, .88), rgba(8, 14, 12, .44)),
      linear-gradient(0deg, rgba(8, 14, 12, .78), transparent 68%);
  }
  .movement-types { padding-top: 44px; padding-bottom: 48px; }
  .movement-types .section-heading { margin-bottom: 18px; padding-bottom: 18px; }
  .movement-types .section-heading h2 { font-size: 30px; }
  .movement-type-list { grid-template-columns: 1fr; gap: 10px; }
  .movement-type-list article,
  [dir="rtl"] .movement-type-list article {
    min-height: 0;
    padding: 20px;
    border: 0;
    border-bottom: 1px solid var(--night-line);
  }
  .movement-type-list article > span,
  [dir="rtl"] .movement-type-list article > span { margin-bottom: 16px; }
  .movement-type-list h3 { font-size: 18px; }
  .movement-type-list p { font-size: 14px; }
  .vision-intro { gap: 20px; padding: 28px 0; }
  .vision-intro .page-heading h1 { font-size: 36px; }
  .vision-intro .page-heading > p { font-size: 15px; line-height: 1.62; }
  .vision-inheritance-image { aspect-ratio: 4 / 3; }
  .era-contents .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .era-movement-grid, .era-revivalist-grid { grid-template-columns: 1fr; }
  .vision-inheritance-image img { object-position: center; }
  .vision-story > summary { min-height: 52px; font-size: 12px; }
  .vision-story .rich-text { padding-top: 20px; font-size: 15px; line-height: 1.72; }
}
