@font-face {
  font-family: "Sangam Icons";
  src: url("https://cdn.finiteskills.com/history/releases/20260812033727/assets/fonts/sangam-icons.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
  unicode-range: U+E000-E07F;
}

@font-face {
  font-family: "Hembhuvin Greek";
  src: url("https://cdn.finiteskills.com/history/releases/20260812033727/assets/fonts/noto-serif-greek-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: "Hembhuvin Greek";
  src: url("https://cdn.finiteskills.com/history/releases/20260812033727/assets/fonts/noto-serif-greek.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Hembhuvin Tamil";
  src: url("https://cdn.finiteskills.com/history/releases/20260812033727/assets/fonts/noto-serif-tamil.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-alt: #e9ece7;
  --ink: #171918;
  --muted: #5d625e;
  --line: #c9cec8;
  --dark: #171918;
  --dark-soft: #262a27;
  --light: #f7f8f5;
  --accent: #a53e2c;
  --accent-2: #146b70;
  --focus: #005fcc;
  --map-water: #dbe7e8;
  --map-land: #d9ddd6;
  --map-line: #8b948c;
  --header-height: 70px;
  --page: 1240px;
  --gutter: 48px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  background: var(--bg);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  color: #ffffff;
  background: #111514;
  border: 2px solid #ffffff;
  transform: translateY(-150%);
}

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

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151716;
  --surface: #202321;
  --surface-alt: #292d2a;
  --ink: #f0f2ee;
  --muted: #b3b9b3;
  --line: #444a45;
  --dark: #0d0f0e;
  --dark-soft: #1b1e1c;
  --light: #f7f8f5;
  --accent: #ef765c;
  --accent-2: #6bc3c2;
  --map-water: #151d1d;
  --map-land: #2c3430;
  --map-line: #59655e;
}

html[data-region-theme="africa"] {
  --accent: #a9472e;
  --accent-2: #267461;
}

html[data-region-theme="west-asia"] {
  --accent: #94631f;
  --accent-2: #276e78;
  --atlas-display: "Noto Naskh Arabic", "Segoe UI", Georgia, serif;
}

html[data-region-theme="south-asia"] {
  --accent: #a13f3b;
  --accent-2: #217064;
  --atlas-display: "Hembhuvin Tamil", "Nirmala UI", Georgia, serif;
}

html[data-region-theme="southeast-asia"] {
  --accent: #27745d;
  --accent-2: #9b4a35;
  --atlas-display: "Noto Serif Thai", "Leelawadee UI", Georgia, serif;
}

html[data-region-theme="east-asia"] {
  --accent: #3f6595;
  --accent-2: #9b493b;
  --atlas-display: "Noto Serif CJK SC", "Yu Mincho", Georgia, serif;
}

html[data-region-theme="europe"] {
  --accent: #2f7180;
  --accent-2: #a34c36;
}

html[data-region-theme="north-america"] {
  --accent: #655599;
  --accent-2: #267263;
}

html[data-region-theme="south-america"] {
  --accent: #91506f;
  --accent-2: #277367;
}

html[data-region-theme="oceania"] {
  --accent: #477d3d;
  --accent-2: #386f91;
}

html[data-region-theme="central-asia"] {
  --accent: #815b2b;
  --accent-2: #356f83;
}

html[data-region-theme="arctic"] {
  --accent: #3e7282;
  --accent-2: #8b5937;
}

html[data-theme="dark"][data-region-theme] {
  --accent: #ef765c;
  --accent-2: #6bc3c2;
}

html[data-era-theme="deep-origins"] {
  --atlas-period-bg: #e9dfc8;
  --map-water: #b8d9d6;
  --map-land: #ded7bd;
  --map-line: #938e79;
}

html[data-era-theme="early-homo"] {
  --atlas-period-bg: #e5ded0;
  --map-water: #c1dce2;
  --map-land: #d8cfb5;
  --map-line: #8f8b78;
}

html[data-era-theme="sapiens-migrations"] {
  --atlas-period-bg: #e7e4db;
  --map-water: #cde3e7;
  --map-land: #e5e1d2;
  --map-line: #9ba19b;
}

html[data-era-theme="farmers-villages"] {
  --atlas-period-bg: #e2e9d5;
  --map-water: #badbd1;
  --map-land: #dce2bd;
  --map-line: #8b997d;
}

html[data-era-theme="first-cities"] {
  --atlas-period-bg: #e9ddc8;
  --map-water: #bad8df;
  --map-land: #e5d0ad;
  --map-line: #9c8a6d;
}

html[data-era-theme="iron-networks"] {
  --atlas-period-bg: #e3e1d7;
  --map-water: #b8d6df;
  --map-land: #d8d3c2;
  --map-line: #8a8c82;
}

html[data-era-theme="classical-worlds"] {
  --atlas-period-bg: #ece1c8;
  --map-water: #a9d0db;
  --map-land: #eee0bd;
  --map-line: #9a8c70;
}

html[data-era-theme="post-classical"] {
  --atlas-period-bg: #e4e2cf;
  --map-water: #b6d7ce;
  --map-land: #e4d8bc;
  --map-line: #938b73;
}

html[data-era-theme="connected-medieval"] {
  --atlas-period-bg: #dfe7da;
  --map-water: #afd4de;
  --map-land: #dce1c4;
  --map-line: #849485;
}

html[data-era-theme="early-modern"] {
  --atlas-period-bg: #e9dfce;
  --map-water: #b4d7df;
  --map-land: #e5d5b8;
  --map-line: #96866e;
}

html[data-era-theme="industrial-colonial"] {
  --atlas-period-bg: #e1e0db;
  --map-water: #c0d2d4;
  --map-land: #d6d0c2;
  --map-line: #828783;
}

html[data-era-theme="decolonization"] {
  --atlas-period-bg: #dde8e9;
  --map-water: #b6d8e1;
  --map-land: #dfe0d2;
  --map-line: #7e8f8e;
}

html[data-era-theme="present"] {
  --atlas-period-bg: #dce9e2;
  --map-water: #a8d3de;
  --map-land: #d5e2ce;
  --map-line: #748b82;
}

html[data-theme="dark"][data-era-theme] {
  --atlas-period-bg: color-mix(in srgb, var(--map-land) 22%, #202624);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  font-size: 76px;
}

h2 {
  font-size: 46px;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.page-gutter {
  width: min(100%, calc(var(--page) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

.reading-progress {
  position: fixed;
  top: calc(var(--header-height) - 2px);
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.verification-ribbon {
  position: relative;
  z-index: 1;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 7px max(var(--gutter), calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-2) 10%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.verification-ribbon-status {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.verification-ribbon-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: 1px solid currentColor;
  background: var(--accent-2);
  content: "";
}

.verification-panel {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 28px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-2);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent-2) 6%);
  color: var(--ink);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--dark) 10%, transparent);
}

.verification-panel-seal {
  width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 2px solid var(--accent-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.verification-panel-copy {
  min-width: 0;
}

.verification-panel-copy > :last-child {
  margin-bottom: 0;
}

.verification-panel-copy h2,
.verification-panel-copy h3 {
  margin-bottom: 7px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}

.verification-panel-copy p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.verification-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.verification-checks > * {
  min-width: 0;
  padding: 8px 9px 8px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.agent-citation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 10px 0 0;
  padding: 7px 9px;
  border-left: 2px solid var(--accent-2);
  border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--surface-alt) 78%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.agent-citation-label {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-citation-code,
.source-citation-id {
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.agent-citation-code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}

.source-citation-id {
  border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 64%, var(--line));
  font-weight: 650;
}

.eyebrow,
.kicker {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #ffffff;
}

.kicker {
  color: var(--accent);
}

.button-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.light-link {
  color: #ffffff;
}

.home-hero {
  position: relative;
  min-height: 620px;
  height: calc(88svh - var(--header-height));
  max-height: 780px;
  overflow: hidden;
  background: #161918;
  color: #ffffff;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-media img:nth-child(1) {
  object-position: 42% center;
}

.home-hero-media img:nth-child(2) {
  object-position: 50% center;
}

.home-hero-media img:nth-child(3) {
  object-position: 58% center;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -180px 160px -80px rgba(0, 0, 0, 0.8);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 12, 0.48);
}

.home-hero-copy,
.hero-copy {
  position: absolute;
  z-index: 2;
  left: max(var(--gutter), calc((100vw - var(--page)) / 2));
  width: min(660px, calc(100% - (var(--gutter) * 2)));
}

.home-hero-copy {
  top: 50%;
  transform: translateY(-50%);
}

.home-hero-copy h1,
.hero-copy h1 {
  margin-bottom: 16px;
  color: #ffffff;
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.home-hero .button-link {
  border-color: #ffffff;
  background: #ffffff;
  color: #151716;
}

.home-hero .button-link:hover {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

.image-note {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 14px;
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  text-align: right;
}

.visual-sequence {
  padding-top: 92px;
  padding-bottom: 104px;
  border-bottom: 1px solid var(--line);
}

.visual-sequence-global {
  background: var(--surface-alt);
}

.visual-sequence-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 42px 18px;
  align-items: start;
}

.visual-sequence-item {
  grid-column: span 6;
  margin: 0;
}

.visual-sequence-item-1,
.visual-sequence-item-4 {
  grid-column: span 7;
}

.visual-sequence-item-2,
.visual-sequence-item-3 {
  grid-column: span 5;
}

.visual-sequence-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.visual-sequence-item figcaption {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
  gap: 18px;
  padding-top: 11px;
}

.visual-sequence-item strong,
.visual-sequence-item span {
  display: block;
}

.visual-sequence-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
}

.visual-sequence-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.world-index {
  padding-top: 110px;
  padding-bottom: 120px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 52px;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head > p:last-child:not(.kicker) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.world-list {
  border-top: 1px solid var(--line);
}

.world-row {
  min-height: 188px;
  display: grid;
  grid-template-columns: 68px 1fr 40px;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.world-row-visual {
  grid-template-columns: 50px minmax(240px, 360px) minmax(0, 1fr) 40px;
}

.world-row-visual > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.world-row:hover h2 {
  color: var(--accent);
}

.world-number,
.temple-number,
.source-number {
  align-self: start;
  padding-top: 8px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.world-row p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.world-row h2 {
  margin-bottom: 8px;
  font-size: 38px;
}

.world-row div > span {
  color: var(--muted);
}

.world-row > b {
  font-size: 28px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.world-row:hover > b {
  transform: translateX(7px);
}

.section-dark {
  width: 100%;
  max-width: none;
  padding-top: 110px;
  padding-bottom: 110px;
  background: var(--dark);
  color: var(--light);
}

.section-dark > * {
  width: min(100%, var(--page));
  margin-inline: auto;
}

.section-dark .section-head > p:last-child:not(.kicker),
.section-dark .comparison-row p,
.section-dark .ritual-step p,
.section-dark .figure-ledger p {
  color: #bcc3bd;
}

.comparison-table {
  border-top: 1px solid #444a45;
}

.comparison-row {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #444a45;
}

.comparison-row > span {
  color: #8fd1cd;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-row strong {
  font-size: 15px;
}

.comparison-row p {
  margin: 0;
  font-size: 14px;
}

.comparison-head {
  padding-block: 12px;
}

.method-band {
  padding-top: 120px;
  padding-bottom: 120px;
}

.method-band > div:first-child {
  max-width: 720px;
}

.method-band h2 {
  margin-bottom: 52px;
}

.method-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 42px;
  border-top: 1px solid var(--line);
}

.method-points article {
  padding-top: 22px;
}

.method-points span,
.temple-principles span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

.method-points h3,
.temple-principles h3 {
  margin: 28px 0 10px;
}

.method-points p,
.temple-principles p {
  margin: 0;
  color: var(--muted);
}

.temple-preview {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: #151716;
  color: #ffffff;
}

.temple-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: brightness(0.7);
}

.temple-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 12, 0.5);
}

.temple-preview > div {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100% - (var(--gutter) * 2)));
  margin-left: max(var(--gutter), calc((100vw - var(--page)) / 2));
  padding-bottom: 64px;
}

.temple-preview h2 {
  margin-bottom: 26px;
  color: #ffffff;
}

.temple-preview .button-link {
  border-color: #ffffff;
  background: #ffffff;
  color: #171918;
}

.civilization-hero,
.temple-hero {
  position: relative;
  min-height: 580px;
  height: calc(82svh - var(--header-height));
  max-height: 790px;
  overflow: hidden;
  background: #161918;
}

.civilization-hero > img,
.temple-hero > img,
.ritual-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.civilization-hero > img {
  object-position: center;
}

.hero-copy {
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-copy .native-title {
  margin: -8px 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.hero-deck {
  max-width: 630px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.theme-greek {
  --bg: #f2f1eb;
  --surface: #fffef8;
  --surface-alt: #e5eceb;
  --line: #c8cec7;
  --ink: #202622;
  --muted: #5d6863;
  --dark: #1d2c2c;
  --accent: #b84a35;
  --accent-2: #126d84;
}

.theme-jesus {
  --bg: #f3f1e9;
  --surface: #fffef8;
  --surface-alt: #e4ebe2;
  --line: #cdcbbc;
  --ink: #25251f;
  --muted: #66665a;
  --dark: #2b2921;
  --accent: #8c5b28;
  --accent-2: #2e7072;
}

.theme-egypt {
  --bg: #f2efe7;
  --surface: #fffdf6;
  --surface-alt: #e2ebe6;
  --line: #cec8b8;
  --ink: #27251f;
  --muted: #696356;
  --dark: #29251e;
  --accent: #b46c16;
  --accent-2: #14726c;
}

.theme-tamil {
  --bg: #f0f3ed;
  --surface: #fffef9;
  --surface-alt: #e3ebe3;
  --line: #c7cec4;
  --ink: #222820;
  --muted: #5f695d;
  --dark: #1f2b24;
  --accent: #a8332e;
  --accent-2: #2f7150;
}

.theme-greek .native-title[lang="grc"] {
  font-family: "Hembhuvin Greek", Georgia, serif;
}

.theme-tamil .native-title[lang="ta"],
.theme-tamil .tamil-name[lang="ta"] {
  font-family: "Hembhuvin Tamil", "Nirmala UI", serif;
}

html[data-theme="dark"] .theme-greek {
  --bg: #1d2725;
  --surface: #26322f;
  --surface-alt: #303a35;
  --line: #4b5a54;
  --ink: #f3f1e8;
  --muted: #bcc6bf;
  --dark: #152220;
  --accent: #ff8068;
  --accent-2: #6fc9e0;
}

html[data-theme="dark"] .theme-jesus {
  --bg: #29271f;
  --surface: #343127;
  --surface-alt: #3e3a2d;
  --line: #5e5948;
  --ink: #f4f0e4;
  --muted: #c8c1ad;
  --dark: #201f19;
  --accent: #e8a45d;
  --accent-2: #76c5c2;
}

html[data-theme="dark"] .theme-egypt {
  --bg: #29251e;
  --surface: #373126;
  --surface-alt: #3f3a2d;
  --line: #645b49;
  --ink: #f5f0e2;
  --muted: #c9c0aa;
  --dark: #201d18;
  --accent: #e5a14e;
  --accent-2: #67c6ba;
}

html[data-theme="dark"] .theme-tamil {
  --bg: #1f2922;
  --surface: #29352c;
  --surface-alt: #344038;
  --line: #4e5f53;
  --ink: #f0f3ec;
  --muted: #bdc8bd;
  --dark: #172119;
  --accent: #f16f67;
  --accent-2: #79c694;
}

.section-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px max(20px, calc((100vw - var(--page)) / 2));
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  scrollbar-width: thin;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

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

.fact-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 62px;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 130px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact p {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  max-width: 260px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.evidence-note {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.evidence-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

.evidence-note .kicker {
  margin-bottom: 4px;
}

.evidence-note p:last-child {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
}

.content-section {
  padding-top: 110px;
  padding-bottom: 110px;
}

.section-tint {
  width: 100%;
  max-width: none;
  background: var(--surface-alt);
}

.section-tint > * {
  width: min(100%, var(--page));
  margin-inline: auto;
}

.timeline {
  position: relative;
  border-top: 1px solid var(--line);
}

.timeline-row {
  min-height: 150px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 48px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row time {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.timeline-row h3 {
  margin-bottom: 8px;
}

.timeline-row p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

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

.day-entry {
  min-height: 270px;
  padding: 24px 28px 28px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.day-entry:nth-child(3n + 2),
.day-entry:nth-child(3n + 3) {
  padding-left: 28px;
}

.day-entry:nth-child(3n) {
  border-right: 0;
}

.day-entry > span {
  float: right;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.day-entry time {
  display: block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.day-entry h3 {
  margin-bottom: 10px;
}

.day-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.prose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
  border-top: 1px solid var(--line);
}

.prose-item {
  min-height: 190px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.prose-item h3 {
  margin-bottom: 12px;
}

.prose-item p {
  margin: 0;
  color: var(--muted);
}

.work-section {
  padding-top: 30px;
}

.numbered-list {
  border-top: 1px solid var(--line);
}

.numbered-row {
  display: grid;
  grid-template-columns: 60px 220px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.numbered-row > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

.numbered-row h3,
.numbered-row p {
  margin: 0;
}

.numbered-row p {
  max-width: 700px;
  color: var(--muted);
}

.ritual-media {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #161918;
}

.ritual-media > img {
  object-position: center;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 46px;
  border-top: 1px solid #444a45;
}

.ritual-step {
  min-height: 160px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid #444a45;
}

.ritual-step > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #6b736c;
  border-radius: 50%;
  color: #8fd1cd;
  font-family: Georgia, "Times New Roman", serif;
}

.ritual-step h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.ritual-step p {
  margin: 0;
}

.figure-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 72px;
}

.figure-ledger > .kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.figure-ledger article {
  border-top: 1px solid #444a45;
  padding-top: 18px;
}

.figure-ledger h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.figure-ledger p {
  margin: 0;
  font-size: 14px;
}

.society-table {
  border-top: 1px solid var(--line);
}

.society-table article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 50px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.society-table h3,
.society-table p {
  margin: 0;
}

.society-table p {
  max-width: 760px;
  color: var(--muted);
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.object-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.object-card > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

.object-card h3 {
  margin: 48px 0 10px;
}

.object-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
  border-top: 1px solid var(--line);
}

.person-row {
  min-height: 155px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.person-row h3 {
  margin-bottom: 8px;
}

.person-row p {
  margin: 0;
  color: var(--muted);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.place-card {
  min-height: 200px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.place-card > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.place-card h3 {
  margin: 34px 0 9px;
}

.place-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.source-section {
  padding-top: 40px;
}

.source-list {
  border-top: 1px solid var(--line);
}

.source-entry {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.source-entry h3 {
  margin-bottom: 7px;
}

.source-entry p {
  max-width: 760px;
  margin-bottom: 8px;
  color: var(--muted);
}

.source-entry a,
.source-publisher {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.source-entry a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-publisher {
  display: inline-block;
  margin: 0;
}

.source-method {
  max-width: 800px;
  margin: 42px 0 0 84px;
  color: var(--muted);
  font-size: 13px;
}

.tamil-asset-section {
  padding-top: 30px;
}

.character-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.font-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.character-strip figure {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.character-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.character-strip figcaption {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.next-world {
  padding-top: 80px;
  padding-bottom: 110px;
}

.next-world > a {
  min-height: 100px;
  display: grid;
  grid-template-columns: 190px 1fr 30px;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.next-world > a:last-child {
  border-bottom: 1px solid var(--line);
}

.next-world > a span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.next-world > a strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.next-world > a b {
  font-size: 24px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.next-world > a:hover b {
  transform: translateX(6px);
}

.site-footer {
  min-height: 310px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  padding: 64px max(var(--gutter), calc((100vw - var(--page)) / 2));
  border-top: 1px solid #444a45;
  background: #171918;
  color: #f1f3ef;
}

.footer-brand {
  color: #ffffff;
}

.footer-brand .brand-mark {
  border-color: #ffffff;
}

.footer-brand small {
  color: #aeb6af;
}

.site-footer > div > p,
.footer-note {
  max-width: 360px;
  margin-top: 22px;
  color: #aeb6af;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer nav a {
  color: #f1f3ef;
  font-size: 14px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #8fd1cd;
}

.footer-note {
  margin: 0;
}

.temple-hero {
  min-height: 650px;
  height: calc(90svh - var(--header-height));
}

.temple-hero > img {
  object-position: center 44%;
}

.temple-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
}

.temple-principles article {
  padding-top: 22px;
}

.temple-atlas {
  padding-top: 30px;
  padding-bottom: 110px;
}

.temple-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  gap: 60px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.temple-entry:nth-child(even) figure {
  order: 2;
}

.temple-entry figure {
  margin: 0;
}

.temple-entry figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.temple-entry figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.temple-copy {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
}

.temple-copy > *:not(.temple-number) {
  grid-column: 2;
}

.temple-copy .temple-number {
  grid-column: 1;
  grid-row: 1 / span 8;
}

.temple-copy .kicker {
  margin-bottom: 9px;
}

.temple-copy h2 {
  margin-bottom: 8px;
  font-size: 38px;
}

.tamil-name {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 650;
}

.tamil-name::before {
  content: "\e028";
  margin-right: 9px;
  font-family: "Sangam Icons";
  font-weight: 400;
}

.temple-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.temple-copy > p:not(.kicker):not(.tamil-name) {
  color: var(--muted);
}

.temple-copy .text-link {
  width: fit-content;
  margin-top: 8px;
  color: var(--accent-2);
}

.plain-hero {
  padding-top: 130px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
}

.plain-hero .eyebrow {
  color: var(--accent);
}

.plain-hero h1 {
  margin-bottom: 22px;
}

.plain-hero > p:last-child {
  max-width: 800px;
  color: var(--muted);
  font-size: 20px;
}

.method-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.method-detail article {
  min-height: 230px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.method-detail span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

.method-detail h2 {
  margin: 38px 0 12px;
  font-size: 31px;
}

.method-detail p {
  color: var(--muted);
}

.editorial-note {
  padding-top: 30px;
  padding-bottom: 110px;
}

.editorial-note h2 {
  margin-bottom: 18px;
}

.editorial-note p:last-child {
  max-width: 750px;
  color: var(--muted);
}

.not-found {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found .eyebrow {
  color: var(--accent);
}

.not-found p:not(.eyebrow) {
  color: var(--muted);
}

.atlas-page main {
  overflow: clip;
}

.atlas-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  height: calc(100svh - var(--header-height));
  min-height: 680px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.atlas-workspace:fullscreen {
  width: 100vw;
  height: 100svh;
  min-height: 0;
}

.atlas-sidebar {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: thin;
}

.atlas-intro {
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line);
}

.atlas-intro h1 {
  max-width: 340px;
  margin-bottom: 14px;
  font-family: var(--atlas-display, Georgia, "Times New Roman", serif);
  font-size: 42px;
  line-height: 0.98;
}

.atlas-intro > p:last-child {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.atlas-era-readout {
  min-height: 156px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--atlas-period-bg, var(--surface-alt));
  transition: background-color 240ms ease;
}

.atlas-era-readout span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.atlas-era-readout strong {
  display: block;
  margin: 3px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.atlas-era-readout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.atlas-layer-legend {
  padding: 18px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.atlas-layer-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.atlas-layer-heading p,
.atlas-layer-heading h2 {
  margin: 0;
}

.atlas-layer-heading p {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.atlas-layer-heading h2 {
  max-width: 240px;
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.18;
}

.atlas-layer-heading > span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.atlas-layer-items {
  display: grid;
  gap: 2px;
}

.atlas-layer-items button {
  display: grid;
  width: 100%;
  min-height: 38px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 5px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.atlas-layer-items button:hover,
.atlas-layer-items button:focus-visible {
  background: var(--surface-alt);
}

.atlas-layer-items button > span:first-child {
  width: 16px;
  height: 10px;
  border: 1px dashed var(--layer-color);
  background: color-mix(in srgb, var(--layer-color) 24%, transparent);
}

.atlas-layer-items strong,
.atlas-layer-items small {
  display: block;
}

.atlas-layer-items strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-layer-items small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
  text-transform: capitalize;
}

.atlas-layer-caution {
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.atlas-control {
  padding: 20px 26px 8px;
}

.atlas-control > label,
.atlas-filter-grid label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

#atlas-era {
  width: 100%;
  margin: 10px 0 12px;
  accent-color: var(--accent);
}

.atlas-era-ends {
  display: flex;
  justify-content: space-between;
  margin: -7px 0 10px;
  color: var(--muted);
  font-size: 9px;
}

.atlas-era-scale-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.atlas-era-ticks {
  display: flex;
  gap: 6px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.atlas-era-ticks button {
  min-width: 108px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.atlas-era-ticks button:hover,
.atlas-era-ticks button[aria-current="step"] {
  border-color: var(--accent);
  color: var(--ink);
}

.atlas-era-ticks button[aria-current="step"] {
  box-shadow: inset 3px 0 0 var(--accent);
}

.atlas-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 26px 14px;
}

.atlas-filter-grid label:last-child {
  grid-column: 1 / -1;
}

.atlas-filter-grid select,
.atlas-filter-grid input {
  width: 100%;
  height: 40px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.atlas-result-count {
  margin: 0;
  padding: 0 26px 8px;
  color: var(--muted);
  font-size: 11px;
}

.atlas-results {
  border-top: 1px solid var(--line);
}

.atlas-result {
  display: grid;
  width: 100%;
  min-height: 56px;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 8px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.atlas-result:hover,
.atlas-result.is-selected {
  background: var(--surface-alt);
}

.atlas-result > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--place-color);
}

.atlas-result strong,
.atlas-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-result strong {
  font-size: 13px;
}

.atlas-result small {
  color: var(--muted);
  font-size: 10px;
}

.atlas-empty {
  min-width: 100%;
  margin: 0;
  padding: 18px 26px;
  color: var(--muted);
  font-size: 12px;
}

.atlas-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--map-water);
  transition: background-color 240ms ease;
}

#civilization-map {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: var(--map-water);
}

.atlas-map-title {
  position: absolute;
  z-index: 500;
  top: 14px;
  left: 14px;
  width: min(390px, calc(100% - 28px));
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--map-line) 70%, #ffffff);
  border-radius: 4px;
  background: color-mix(in srgb, #ffffff 91%, var(--map-land));
  color: #222724;
  box-shadow: 0 3px 14px rgba(38, 46, 42, 0.12);
}

.atlas-map-title span,
.atlas-map-title strong {
  display: block;
}

.atlas-map-title span {
  color: #5f665f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.atlas-map-title strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.atlas-map-note {
  position: absolute;
  z-index: 500;
  top: 79px;
  left: 14px;
  width: min(390px, calc(100% - 28px));
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.atlas-era-scene {
  position: absolute;
  z-index: 510;
  bottom: 32px;
  left: 14px;
  width: min(340px, calc(100% - 28px));
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--map-line) 70%, #ffffff);
  border-radius: 4px;
  background: #ffffff;
  color: #222724;
  box-shadow: 0 8px 24px rgba(38, 46, 42, 0.18);
}

.atlas-era-scene[hidden] {
  display: none;
}

.atlas-era-scene img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--map-land);
}

.atlas-era-scene figcaption {
  padding: 9px 11px 10px;
}

.atlas-era-scene strong,
.atlas-era-scene span {
  display: block;
}

.atlas-era-scene strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.2;
}

.atlas-era-scene span {
  margin-top: 3px;
  color: #5f665f;
  font-size: 9px;
  line-height: 1.35;
}

.historical-feature {
  transition: fill-opacity 160ms ease, stroke-width 160ms ease, opacity 160ms ease;
}

.historical-feature:hover {
  fill-opacity: 0.33;
  stroke-width: 3px;
}

.historical-land {
  stroke-linejoin: round;
}

.historical-land:hover {
  fill-opacity: 0.43;
}

.historical-land-retreating {
  opacity: 0.82;
}

.atlas-layer-items button[data-historical-kind="land"] > span:first-child {
  border-style: double;
  border-width: 3px;
  background: color-mix(in srgb, var(--layer-color) 34%, transparent);
}

.historical-route {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.historical-feature-popup .leaflet-popup-content-wrapper {
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

.historical-popup p,
.historical-popup strong,
.historical-popup span,
.historical-popup small {
  display: block;
}

.historical-popup p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.historical-popup strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.historical-popup span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.historical-popup small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.historical-popup a {
  color: var(--accent-2);
}

.atlas-tools {
  position: absolute;
  z-index: 520;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.atlas-tools button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.atlas-tools button[aria-pressed="true"] {
  border-color: var(--accent-2);
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.atlas-map-activate {
  display: none;
}

.atlas-map-activate[hidden] {
  display: none;
}

.atlas-sound-note {
  position: absolute;
  z-index: 500;
  right: 14px;
  bottom: 14px;
  max-width: 340px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.atlas-map-error {
  display: none;
  position: absolute;
  z-index: 510;
  right: 14px;
  bottom: 14px;
  max-width: 340px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.atlas-stage.is-map-error .atlas-map-error {
  display: block;
}

.atlas-detail {
  position: absolute;
  z-index: 700;
  inset: 0 0 0 auto;
  width: min(440px, 48%);
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.13);
}

.atlas-detail[hidden] {
  display: none;
}

.atlas-detail > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111816;
}

.atlas-detail-copy {
  position: relative;
  padding: 28px 28px 34px;
}

.atlas-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.atlas-detail-copy h2 {
  margin: 10px 42px 4px 0;
  font-family: var(--atlas-display, Georgia, "Times New Roman", serif);
  font-size: 36px;
}

.atlas-modern {
  color: var(--muted);
  font-size: 12px;
}

.atlas-summary {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.atlas-detail dl {
  margin: 0;
}

.atlas-detail dl > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.atlas-detail dt {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.atlas-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.atlas-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-top: 22px;
}

.atlas-detail-evidence {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.atlas-detail-evidence strong {
  color: var(--ink);
}

.atlas-deep-link {
  font-size: 12px;
}

.atlas-page .leaflet-control-zoom a {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.atlas-page .leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--muted);
}

.atlas-page .leaflet-tooltip {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.global-scope-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.4fr) auto;
  gap: 42px;
  align-items: end;
  padding-top: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.global-scope-band h2,
.global-scope-band p {
  margin: 0;
}

.global-scope-band h2 {
  font-size: 34px;
}

.global-scope-band > p {
  color: var(--muted);
  font-size: 15px;
}

.global-lenses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid #424743;
  background: #424743;
}

.global-lenses article {
  min-height: 245px;
  padding: 28px;
  background: var(--dark);
}

.global-lenses span {
  color: #9ba39d;
  font-size: 12px;
}

.global-lenses h3 {
  margin: 34px 0 12px;
  color: var(--light);
  font-size: 20px;
}

.global-lenses p {
  margin: 0;
  color: #c7ccc8;
  font-size: 13px;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  :root {
    --gutter: 30px;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 40px;
  }

  .fact-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

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

  .day-entry:nth-child(3n + 2),
  .day-entry:nth-child(3n + 3) {
    padding-left: 0;
  }

  .day-entry:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .day-entry:nth-child(even) {
    padding-left: 28px;
    border-right: 0;
  }

  .comparison-row {
    grid-template-columns: 120px repeat(3, 1fr);
    gap: 16px;
  }

  .character-strip {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .temple-entry {
    gap: 36px;
  }

  .atlas-workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .atlas-detail {
    width: min(410px, 60%);
  }

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

  .global-scope-band {
    grid-template-columns: 1fr 1fr;
  }

  .global-scope-band .text-link {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .civilization-hero,
  .temple-hero {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .temple-hero + .content-section {
    padding-top: 40px;
  }

  .civilization-hero > img,
  .temple-hero > img,
  .civilization-hero > .hero-shade,
  .temple-hero > .hero-shade {
    grid-row: 1;
    grid-column: 1;
  }

  .civilization-hero > img,
  .temple-hero > img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
  }

  .civilization-hero > .hero-shade,
  .temple-hero > .hero-shade {
    position: relative;
    inset: auto;
  }

  .civilization-hero > .hero-copy,
  .temple-hero > .hero-copy {
    position: relative;
    grid-row: 2;
    grid-column: 1;
    top: auto;
    bottom: auto;
    left: auto;
    width: auto;
    padding: 32px var(--gutter) 58px;
    transform: none;
  }

  .civilization-hero > .image-note,
  .temple-hero > .image-note {
    position: relative;
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: stretch;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    margin: 0;
    padding: 10px 14px;
    background: rgba(10, 13, 12, 0.68);
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 110px;
    --gutter: 20px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .site-header {
    z-index: 1100;
    grid-template-columns: 1fr auto;
    grid-template-rows: 62px 48px;
    gap: 0 12px;
    padding: 0 16px;
    background: var(--bg);
    backdrop-filter: none;
  }

  .site-header .brand small {
    display: none;
  }

  .primary-nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% + 32px);
    height: 48px;
    justify-content: flex-start;
    gap: 0;
    margin-inline: -16px;
    padding: 3px 8px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .primary-nav a {
    min-width: max-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    font-size: 12px;
  }

  .icon-button {
    grid-column: 2;
  }

  .reading-progress {
    top: calc(var(--header-height) - 2px);
  }

  .verification-ribbon {
    min-height: 36px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 6px var(--gutter);
    font-size: 11px;
  }

  .verification-ribbon-status {
    padding: 3px 6px;
    font-size: 10px;
  }

  .verification-panel {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    margin-block: 22px;
    padding: 16px;
  }

  .verification-panel-seal {
    width: 58px;
    min-height: 58px;
    padding: 5px;
    font-size: 9px;
  }

  .verification-checks {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .agent-citation {
    font-size: 11px;
  }

  .atlas-workspace {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .atlas-sidebar {
    overflow: visible;
    border-right: 0;
  }

  .atlas-intro {
    padding: 24px var(--gutter) 18px;
  }

  .atlas-intro h1 {
    max-width: 300px;
    font-size: 40px;
  }

  .atlas-era-readout {
    min-height: 0;
    padding: 16px var(--gutter);
  }

  .atlas-layer-legend {
    padding: 14px var(--gutter) 16px;
  }

  .atlas-layer-heading {
    margin-bottom: 8px;
  }

  .atlas-layer-items {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .atlas-layer-items button {
    min-width: 220px;
    border: 1px solid var(--line);
    padding: 7px 8px;
  }

  .atlas-layer-caution {
    margin-top: 8px;
    padding-top: 8px;
  }

  .atlas-control {
    padding: 14px var(--gutter) 4px;
  }

  .atlas-filter-grid {
    padding: 4px var(--gutter) 10px;
  }

  .atlas-result-count {
    padding-inline: var(--gutter);
  }

  .atlas-results {
    display: flex;
    overflow-x: auto;
  }

  .atlas-result {
    width: 210px;
    min-width: 210px;
    padding-inline: 16px;
    border-right: 1px solid var(--line);
  }

  .atlas-stage,
  #civilization-map {
    height: 64svh;
    min-height: 480px;
  }

  .atlas-map-title {
    top: 60px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .atlas-map-note {
    display: none;
  }

  .atlas-era-scene {
    bottom: 28px;
    left: 12px;
    width: min(220px, calc(100% - 74px));
  }

  .atlas-era-scene figcaption {
    padding: 7px 8px 8px;
  }

  .atlas-era-scene span {
    display: none;
  }

  .atlas-tools {
    top: 12px;
    right: 12px;
  }

  .atlas-map-activate {
    position: absolute;
    z-index: 530;
    right: 12px;
    bottom: 74px;
    display: block;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  }

  .atlas-map-activate[aria-pressed="true"] {
    border-color: var(--accent-2);
    box-shadow: inset 3px 0 0 var(--accent-2);
  }

  #civilization-map:not(.is-map-interactive) {
    touch-action: pan-y;
  }

  .atlas-sound-note {
    display: none;
  }

  .atlas-detail {
    inset: auto 0 0;
    width: 100%;
    max-height: 78%;
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.16);
  }

  .atlas-detail-copy h2 {
    font-size: 31px;
  }

  .global-lenses {
    grid-template-columns: 1fr;
  }

  .global-scope-band {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .global-scope-band .text-link {
    grid-column: 1;
  }

  .global-lenses article {
    min-height: 190px;
  }

  .home-hero {
    min-height: 580px;
    height: calc(82svh - var(--header-height));
  }

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

  .home-hero-media img {
    display: none;
  }

  .home-hero-media img:nth-child(3) {
    display: block;
    width: 100%;
  }

  .hero-shade {
    background: rgba(10, 13, 12, 0.58);
  }

  .home-hero-copy,
  .hero-copy {
    left: var(--gutter);
    width: calc(100% - (var(--gutter) * 2));
  }

  .home-hero-copy {
    top: auto;
    bottom: 64px;
    transform: none;
  }

  .home-hero-copy > p:not(.eyebrow),
  .hero-deck {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .image-note {
    right: 14px;
    bottom: 10px;
    left: 14px;
    max-width: none;
    font-size: 9px;
    text-align: left;
  }

  .world-index,
  .content-section,
  .section-dark,
  .method-band {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head > p:last-child:not(.kicker) {
    font-size: 16px;
  }

  .world-row {
    min-height: 156px;
    grid-template-columns: 36px 1fr 24px;
    gap: 12px;
  }

  .world-row-visual {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    padding: 22px 0 30px;
  }

  .visual-sequence {
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .visual-sequence-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .visual-sequence-global .visual-sequence-grid {
    grid-template-columns: none;
    grid-auto-columns: min(84vw, 340px);
    grid-auto-flow: column;
    gap: 14px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .visual-sequence-item,
  .visual-sequence-item-1,
  .visual-sequence-item-2,
  .visual-sequence-item-3,
  .visual-sequence-item-4 {
    grid-column: 1;
  }

  .visual-sequence-global .visual-sequence-item,
  .visual-sequence-global .visual-sequence-item-1,
  .visual-sequence-global .visual-sequence-item-2,
  .visual-sequence-global .visual-sequence-item-3,
  .visual-sequence-global .visual-sequence-item-4 {
    grid-column: auto;
    scroll-snap-align: start;
  }

  .visual-sequence-item figcaption {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .world-row-visual > img {
    grid-column: 2 / 4;
  }

  .world-row-visual > div {
    grid-column: 2;
  }

  .world-row-visual > b {
    grid-column: 3;
    grid-row: 2;
  }

  .world-row h2 {
    font-size: 30px;
  }

  .world-row div > span {
    font-size: 13px;
  }

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

  .comparison-row {
    min-width: 760px;
  }

  .method-points,
  .day-grid,
  .prose-grid,
  .object-grid,
  .people-list,
  .place-grid,
  .method-detail {
    grid-template-columns: 1fr;
  }

  .temple-preview {
    min-height: 520px;
  }

  .temple-preview > div {
    width: calc(100% - (var(--gutter) * 2));
    margin-left: var(--gutter);
    padding-bottom: 44px;
  }

  .hero-copy .native-title {
    font-size: 20px;
  }

  .section-nav {
    top: var(--header-height);
    min-height: 46px;
    padding-inline: 12px;
  }

  .fact-band {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:nth-child(3) {
    min-height: 100px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .evidence-note {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .day-entry,
  .day-entry:nth-child(even),
  .day-entry:nth-child(3n) {
    min-height: 220px;
    padding: 24px 0;
    border-right: 0;
  }

  .numbered-row {
    grid-template-columns: 40px 1fr;
    gap: 10px 16px;
  }

  .numbered-row p {
    grid-column: 2;
  }

  .ritual-media {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ritual-media > img {
    object-position: center;
  }

  .ritual-grid,
  .figure-ledger {
    grid-template-columns: 1fr;
  }

  .figure-ledger {
    gap: 20px;
  }

  .society-table article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .character-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .next-world {
    padding-top: 50px;
    padding-bottom: 80px;
  }

  .next-world > a {
    grid-template-columns: 1fr 24px;
    gap: 6px 16px;
    padding: 18px 0;
  }

  .next-world > a span {
    grid-column: 1;
  }

  .next-world > a strong {
    grid-column: 1;
    font-size: 22px;
  }

  .next-world > a b {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px var(--gutter);
  }

  .temple-principles {
    grid-template-columns: 1fr;
  }

  .temple-entry,
  .temple-entry:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 48px 0;
  }

  .temple-entry:nth-child(even) figure {
    order: 0;
  }

  .temple-copy {
    grid-template-columns: 36px 1fr;
  }

  .temple-copy h2 {
    font-size: 31px;
  }

  .plain-hero {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .plain-hero > p:last-child {
    font-size: 17px;
  }

  .source-entry {
    grid-template-columns: 42px 1fr;
  }

  .source-method {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 31px;
  }

  .primary-nav a {
    font-size: 11px;
  }

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

  .verification-panel {
    grid-template-columns: 1fr;
  }

  .verification-panel-seal {
    width: auto;
    min-height: 0;
    justify-self: start;
    padding: 6px 9px;
  }
}

/* History shell: contextual typography, controls and navigation. */
html[data-site-scope="history"] {
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --history-era-accent: var(--accent-2);
  --control-track: color-mix(in srgb, var(--history-era-accent) 22%, var(--surface-alt));
  --control-border: color-mix(in srgb, var(--line) 78%, var(--accent-2));
}

html[data-site-scope="history"][data-theme="dark"] {
  --bg: #171a19;
  --surface: #232725;
  --surface-alt: #2d322f;
  --ink: #f0f2ee;
  --muted: #bac1bb;
  --line: #4a514c;
  --dark: #101312;
  --dark-soft: #1d211f;
  --light: #f7f8f5;
}

html[data-site-scope="history"] body {
  --interactive-accent: var(--history-state-accent, var(--accent));
  --interactive-accent-strong: color-mix(in srgb, var(--interactive-accent) 76%, var(--ink));
  --focus-ring: color-mix(in srgb, var(--interactive-accent) 52%, #005fcc);
  --focus: var(--focus-ring);
  --control-track: color-mix(in srgb, var(--history-era-accent) 22%, var(--surface-alt));
  --control-border: color-mix(in srgb, var(--line) 78%, var(--accent-2));
  font-family: var(--font-ui);
}

html[data-site-scope="history"][data-theme="dark"] body {
  --interactive-accent-strong: color-mix(in srgb, var(--interactive-accent) 74%, #ffffff);
  --focus-ring: color-mix(in srgb, var(--interactive-accent) 62%, #ffffff);
}

html[data-history-page="greek"] {
  --font-display: "Hembhuvin Greek", Georgia, "Times New Roman", serif;
}

html[data-history-page="tamil"],
html[data-history-page="tamil-temples"] {
  --font-display: "Hembhuvin Tamil", "Nirmala UI", Georgia, serif;
}

html[data-history-page="chronologies"][data-history-region="south-asia"],
html[data-history-page="atlas"][data-history-region="south-asia"] {
  --font-display: "Hembhuvin Tamil", "Nirmala UI", Georgia, serif;
}

html[data-history-page="chronologies"][data-history-region="east-asia"],
html[data-history-page="atlas"][data-history-region="east-asia"] {
  --font-display: "Yu Mincho", "Noto Serif CJK SC", Georgia, serif;
}

html[data-history-page="chronologies"][data-history-region="west-asia"],
html[data-history-page="atlas"][data-history-region="west-asia"] {
  --font-display: "Segoe UI", Georgia, serif;
}

html[data-history-page="greek"] body {
  --accent: #ad4533;
  --accent-2: #176f86;
}

html[data-history-page="egypt"] body {
  --accent: #a85e12;
  --accent-2: #08726e;
}

html[data-history-page="tamil"] body,
html[data-history-page="tamil-temples"] body {
  --accent: #a93631;
  --accent-2: #287354;
}

html[data-history-page="jesus"] body {
  --accent: #87551e;
  --accent-2: #286f72;
}

html[data-history-page="sources"] body {
  --accent: #8f493d;
  --accent-2: #356d83;
}

html[data-theme="dark"][data-history-page="greek"] body {
  --bg: #181d1c;
  --surface: #242a28;
  --surface-alt: #2e3431;
  --line: #4d5953;
  --ink: #f3f2eb;
  --muted: #bdc7c0;
  --dark: #121817;
  --accent: #ff826c;
  --accent-2: #79c9df;
}

html[data-theme="dark"][data-history-page="egypt"] body {
  --bg: #1d1b18;
  --surface: #292722;
  --surface-alt: #343029;
  --line: #5b5548;
  --ink: #f4f0e5;
  --muted: #c8c0af;
  --dark: #151411;
  --accent: #edaa59;
  --accent-2: #70c8bc;
}

html[data-theme="dark"][data-history-page="tamil"] body,
html[data-theme="dark"][data-history-page="tamil-temples"] body {
  --bg: #181d1a;
  --surface: #242a26;
  --surface-alt: #2e352f;
  --line: #4d5b51;
  --ink: #f0f3ed;
  --muted: #bdc8be;
  --dark: #121713;
  --accent: #f37b73;
  --accent-2: #7bc99a;
}

html[data-theme="dark"][data-history-page="jesus"] body {
  --bg: #1b1c19;
  --surface: #272823;
  --surface-alt: #31322b;
  --line: #55564a;
  --ink: #f3f1e8;
  --muted: #c5c3b6;
  --dark: #141512;
  --accent: #e8a762;
  --accent-2: #78c7c4;
}

html[data-theme="dark"][data-history-page="sources"] body {
  --bg: #191b1d;
  --surface: #24282a;
  --surface-alt: #2e3335;
  --line: #4d565a;
  --ink: #f1f2ef;
  --muted: #bbc2c3;
  --dark: #121416;
  --accent: #ef806d;
  --accent-2: #7dbbd5;
}

html[data-theme="dark"][data-region-theme="africa"] {
  --accent: #f08a68;
  --accent-2: #70c9aa;
}

html[data-theme="dark"][data-region-theme="west-asia"] {
  --accent: #e1ab61;
  --accent-2: #6fc4d0;
}

html[data-theme="dark"][data-region-theme="south-asia"] {
  --accent: #f5847d;
  --accent-2: #73cbb0;
}

html[data-theme="dark"][data-region-theme="southeast-asia"] {
  --accent: #6acba5;
  --accent-2: #ed8d72;
}

html[data-theme="dark"][data-region-theme="east-asia"] {
  --accent: #89ade0;
  --accent-2: #ed8274;
}

html[data-theme="dark"][data-region-theme="europe"] {
  --accent: #76bfd0;
  --accent-2: #ed8a71;
}

html[data-theme="dark"][data-region-theme="north-america"] {
  --accent: #b5a1ec;
  --accent-2: #70cbb0;
}

html[data-theme="dark"][data-region-theme="south-america"] {
  --accent: #d79abb;
  --accent-2: #6bc9b4;
}

html[data-theme="dark"][data-region-theme="oceania"] {
  --accent: #97ce83;
  --accent-2: #7dbce3;
}

html[data-theme="dark"][data-region-theme="central-asia"] {
  --accent: #d7a96f;
  --accent-2: #7bc0d9;
}

html[data-theme="dark"][data-region-theme="arctic"] {
  --accent: #85c7d9;
  --accent-2: #d8a071;
}

html[data-history-era="deep-origins"] {
  --history-era-accent: #8b6f3d;
}

html[data-history-era="early-homo"] {
  --history-era-accent: #7b6d58;
}

html[data-history-era="sapiens-migrations"] {
  --history-era-accent: #477b91;
}

html[data-history-era="farmers-villages"] {
  --history-era-accent: #5e7b49;
}

html[data-history-era="first-cities"] {
  --history-era-accent: #9a6b2e;
}

html[data-history-era="iron-networks"] {
  --history-era-accent: #6e667c;
}

html[data-history-era="classical-worlds"] {
  --history-era-accent: #3f718b;
}

html[data-history-era="post-classical"] {
  --history-era-accent: #647647;
}

html[data-history-era="connected-medieval"] {
  --history-era-accent: #35796f;
}

html[data-history-era="early-modern"] {
  --history-era-accent: #98583c;
}

html[data-history-era="industrial-colonial"] {
  --history-era-accent: #626d74;
}

html[data-history-era="decolonization"] {
  --history-era-accent: #337f8c;
}

html[data-history-era="present"] {
  --history-era-accent: #477a5c;
}

html[data-history-page="greek"][data-history-era]:not([data-history-era="overview"]) {
  --history-era-accent: var(--history-state-accent, var(--accent-2));
}

html[data-site-scope="history"] h1,
html[data-site-scope="history"] h2,
html[data-site-scope="history"] .chronology-stats strong,
html[data-site-scope="history"] .atlas-era-readout strong,
html[data-site-scope="history"] .atlas-layer-heading h2,
html[data-site-scope="history"] .atlas-map-title strong,
html[data-site-scope="history"] .atlas-detail-copy h2,
html[data-site-scope="history"] .timeline-row time,
html[data-site-scope="history"] .fact strong {
  font-family: var(--font-display);
}

html[data-site-scope="history"] .chronology-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

html[data-site-scope="history"] h1,
html[data-site-scope="history"] h2,
html[data-site-scope="history"] h3,
html[data-site-scope="history"] button,
html[data-site-scope="history"] a,
html[data-site-scope="history"] label,
html[data-site-scope="history"] output {
  letter-spacing: 0;
}

html[data-site-scope="history"] h1,
html[data-site-scope="history"] h2,
html[data-site-scope="history"] h3 {
  overflow-wrap: break-word;
}

html[data-site-scope="history"] button,
html[data-site-scope="history"] input,
html[data-site-scope="history"] select,
html[data-site-scope="history"] textarea {
  font-family: var(--font-ui);
  accent-color: var(--interactive-accent-strong);
}

html[data-site-scope="history"] button:disabled,
html[data-site-scope="history"] input:disabled,
html[data-site-scope="history"] select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

html[data-site-scope="history"] button:focus-visible,
html[data-site-scope="history"] a:focus-visible,
html[data-site-scope="history"] input:focus-visible,
html[data-site-scope="history"] select:focus-visible,
html[data-site-scope="history"] textarea:focus-visible,
html[data-site-scope="history"] [tabindex]:focus-visible {
  outline-color: var(--focus-ring);
}

html[data-site-scope="history"] input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
html[data-site-scope="history"] select,
html[data-site-scope="history"] textarea {
  min-width: 0;
  border-color: var(--control-border);
  background-color: var(--surface);
  color: var(--ink);
}

html[data-site-scope="history"] input[type="range"] {
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--interactive-accent-strong);
  cursor: pointer;
}

html[data-site-scope="history"] input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--control-track);
}

html[data-site-scope="history"] input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 4px solid var(--interactive-accent-strong);
  border-radius: 50%;
  appearance: none;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--surface);
}

html[data-site-scope="history"] input[type="range"]::-moz-range-track {
  height: 4px;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--control-track);
}

html[data-site-scope="history"] input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 0;
  background: var(--interactive-accent-strong);
}

html[data-site-scope="history"] input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 4px solid var(--interactive-accent-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--surface);
}

html[data-site-scope="history"] .site-header {
  min-width: 0;
  gap: clamp(12px, 2vw, 28px);
  border-bottom-color: color-mix(in srgb, var(--line) 68%, var(--history-era-accent));
  background: color-mix(in srgb, var(--surface) 94%, var(--history-era-accent) 6%);
  transition: background-color 180ms ease, border-color 180ms ease;
}

html[data-site-scope="history"] .site-header > * {
  min-width: 0;
}

html[data-site-scope="history"] .brand-mark {
  border-color: var(--interactive-accent-strong);
  color: var(--interactive-accent-strong);
}

html[data-site-scope="history"] .primary-nav {
  gap: 2px;
}

html[data-site-scope="history"] .primary-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  border-bottom-width: 3px;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

html[data-site-scope="history"] .primary-nav a:hover,
html[data-site-scope="history"] .primary-nav a[aria-current="page"] {
  border-bottom-color: var(--interactive-accent-strong);
  background: color-mix(in srgb, var(--interactive-accent) 7%, transparent);
  color: var(--ink);
}

html[data-site-scope="history"] .primary-nav a[aria-current="page"] {
  font-weight: 750;
}

html[data-site-scope="history"] .nav-toggle {
  min-width: 40px;
  min-height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

html[data-site-scope="history"] .nav-toggle:hover,
html[data-site-scope="history"] .icon-button:hover {
  border-color: var(--interactive-accent-strong);
  background: color-mix(in srgb, var(--interactive-accent) 8%, var(--surface));
}

html[data-site-scope="history"] .nav-toggle-icon {
  width: 17px;
  display: inline-block;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

html[data-site-scope="history"] .theme-toggle {
  flex: 0 0 38px;
  border-color: var(--control-border);
}

html[data-site-scope="history"] .reading-progress span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--interactive-accent);
  transition: background-color 180ms ease;
  will-change: transform;
}

html[data-site-scope="history"] .section-nav {
  border-bottom-color: color-mix(in srgb, var(--line) 76%, var(--history-era-accent));
  background: color-mix(in srgb, var(--surface) 95%, var(--history-era-accent) 5%);
  scroll-snap-type: x proximity;
}

html[data-site-scope="history"] .section-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  scroll-snap-align: center;
}

html[data-site-scope="history"] .section-nav a:hover,
html[data-site-scope="history"] .section-nav a[aria-current="location"] {
  border-bottom-color: var(--interactive-accent-strong);
  color: var(--ink);
}

html[data-site-scope="history"] .chronology-hero,
html[data-site-scope="history"] .plain-hero,
html[data-site-scope="history"] .atlas-intro {
  border-color: color-mix(in srgb, var(--line) 72%, var(--history-era-accent));
}

html[data-site-scope="history"] .chronology-toolbar {
  border-bottom-color: color-mix(in srgb, var(--line) 72%, var(--history-era-accent));
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--history-era-accent) 72%, transparent);
}

html[data-site-scope="history"] .atlas-era-ticks button[aria-current="step"],
html[data-site-scope="history"] .atlas-layer-items button[aria-pressed="true"],
html[data-site-scope="history"] .atlas-tools button[aria-pressed="true"],
html[data-site-scope="history"] .greek-map-era-button[aria-current="step"],
html[data-site-scope="history"] .greek-map-era-button[aria-pressed="true"] {
  border-color: var(--interactive-accent-strong);
  box-shadow: inset 0 -3px 0 var(--history-era-accent);
}

html[data-site-scope="history"] .timeline-row[aria-current="step"] {
  border-bottom-color: color-mix(in srgb, var(--line) 60%, var(--history-era-accent));
}

@media (hover: hover) {
  html[data-site-scope="history"] .chronology-card:hover,
  html[data-site-scope="history"] .atlas-result:hover {
    border-color: var(--interactive-accent-strong);
  }
}

@media (max-width: 1080px) {
  html.js[data-site-scope="history"] {
    --header-height: 66px;
    scroll-padding-top: 116px;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] {
    height: var(--header-height);
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 1fr;
    gap: 8px;
    padding: 0 14px;
    overflow: visible;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .brand {
    grid-column: 1;
    overflow: hidden;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .brand small {
    display: none;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .theme-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    width: min(420px, calc(100% - 24px));
    height: auto;
    min-height: 0;
    max-height: calc(100svh - var(--header-height) - 16px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--control-border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 16px 32px rgba(16, 24, 21, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
    pointer-events: none;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced][data-nav-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .primary-nav a {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: flex-start;
    padding: 9px 11px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    white-space: normal;
    overflow-wrap: break-word;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .primary-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--interactive-accent-strong);
  }

  html.js[data-site-scope="history"] .reading-progress {
    top: calc(var(--header-height) - 2px);
  }
}

@media (max-width: 420px) {
  html.js[data-site-scope="history"] {
    --header-height: 62px;
    scroll-padding-top: 112px;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] {
    padding-inline: 10px;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .brand strong {
    font-size: 14px;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .primary-nav {
    right: 8px;
    left: 8px;
    width: auto;
    justify-self: stretch;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .primary-nav a {
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  html.js[data-site-scope="history"] .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (forced-colors: active) {
  html[data-site-scope="history"] .site-header,
  html[data-site-scope="history"] .primary-nav,
  html[data-site-scope="history"] .nav-toggle,
  html[data-site-scope="history"] .icon-button,
  html[data-site-scope="history"] .section-nav {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  html[data-site-scope="history"] .primary-nav a[aria-current="page"],
  html[data-site-scope="history"] .section-nav a[aria-current="location"] {
    border-color: Highlight;
    background: Canvas;
    color: LinkText;
  }

  html[data-site-scope="history"] input[type="range"]::-webkit-slider-runnable-track,
  html[data-site-scope="history"] input[type="range"]::-moz-range-track {
    border-color: CanvasText;
    background: Canvas;
  }

  html[data-site-scope="history"] input[type="range"]::-webkit-slider-thumb,
  html[data-site-scope="history"] input[type="range"]::-moz-range-thumb {
    border-color: Highlight;
    background: Canvas;
    box-shadow: none;
  }

  .verification-ribbon,
  .verification-panel,
  .verification-panel-seal,
  .verification-checks > *,
  .agent-citation,
  .agent-citation-code {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .verification-ribbon-status {
    border-color: CanvasText;
    background: CanvasText;
    color: Canvas;
  }

  .verification-ribbon-status::before {
    background: Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  html.js[data-site-scope="history"] .site-header[data-nav-enhanced] .primary-nav {
    transform: none;
  }
}
