@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --paper-deep: #eeeee6;
  --white: #fffefa;
  --ink: #142d3a;
  --ink-soft: #455d65;
  --muted: #6c797c;
  --teal: #276f78;
  --teal-dark: #19545e;
  --teal-pale: #e6eeea;
  --copper: #b87548;
  --line: #d9ddd5;
  --line-strong: #b9c6be;
  --cn: #9c4e59;
  --tw: #7b67a4;
  --ph: #477ba5;
  --vn: #388b7b;
  --my: #748647;
  --bn: #ad8b3e;
  --id: #b37143;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", Georgia, serif;
  --english: Georgia, "Times New Roman", serif;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, label[for] { cursor: pointer; }
button { -webkit-appearance: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
img, svg, video { max-width: 100%; }
img, svg { display: block; }
button svg, a svg { display: inline-block; vertical-align: middle; }
p, h1, h2, h3, h4, ul, ol, figure, dl { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { color: var(--ink); font-feature-settings: "palt"; }
::selection { color: var(--ink); background: #c8ded5; }
[hidden] { display: none !important; }

.container { width: min(100% - 96px, 1400px); margin-inline: auto; }
.page { min-height: 65vh; padding-bottom: 64px; }
.page > *, .atlas-layout > *, .split-layout > *, .content-layout > *, .timeline-layout > *, .library-toolbar > * { min-width: 0; }
.eyebrow { display: block; margin: 0 0 12px; color: var(--teal); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .17em; text-transform: uppercase; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 20px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.loading, .empty-state { padding: 68px 20px; color: var(--muted); text-align: center; }
.empty-state h2, .empty-state h3 { margin-bottom: 12px; font-size: 20px; font-weight: 500; }
.empty-state p { font-size: 14px; }
.error-banner { margin: 30px 0; padding: 24px; border-left: 3px solid var(--copper); background: #f2e9df; color: #704c35; }
.error-banner h1, .error-banner h2 { font-size: 22px; line-height: 1.7; }
.loading::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 11px; border: 2px solid var(--line-strong); border-top-color: var(--teal); border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }

/* Masthead */
.site-header { position: sticky; top: 0; z-index: 1100; border-bottom: 1px solid var(--line); background: rgba(247,246,241,.97); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; min-height: 88px; gap: 29px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 42px; border-top: 1px solid var(--teal); border-bottom: 1px solid var(--teal); color: var(--teal); font: 24px/1 var(--english); letter-spacing: -.07em; }
.brand-mark span { color: var(--copper); }
.brand-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: .07em; }
.brand-sub { display: block; margin-top: 3px; color: var(--muted); font-family: var(--english); font-size: 11px; line-height: 1.5; letter-spacing: .05em; }
.nav { display: flex; flex: 1 1 auto; align-items: stretch; justify-content: flex-end; gap: 26px; align-self: stretch; min-width: 0; margin-left: auto; }
.nav-link { position: relative; display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 1.5; }
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--teal); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); }
.menu-button { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); background: transparent; font-size: 12px; }
.edition { flex: 0 0 auto; margin-left: 4px; padding: 5px 8px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .05em; }
.skip-link { position: fixed; z-index: 1600; left: 18px; top: -100px; padding: 10px 17px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

/* Shared editorial furniture */
.page-head { padding-top: 35px; padding-bottom: 28px; }
.page-title { margin: 0 0 14px; font: 500 clamp(30px,3vw,42px)/1.6 var(--serif); letter-spacing: .045em; }
.page-intro { max-width: 980px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.95; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .03em; vertical-align: middle; }
.badge.fact { border-color: #94b2a5; background: #e8efea; color: #335f4e; }
.badge.claim { border-color: #ba9f82; background: #f1eadd; color: #755b37; }
.badge.judgment { border-color: #9aa8bc; background: #e8ecf2; color: #425979; }
.badge.analysis { border-color: #aba2ba; background: #edebf1; color: #625676; }
.badge.muted { border-color: var(--line); background: transparent; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.5; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.button:hover { background: var(--paper-deep); border-color: var(--teal); color: var(--ink); }
.button.primary { border-color: var(--teal); background: var(--teal); color: white; }
.button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.secondary { background: transparent; border-color: var(--line-strong); }
.button.small { min-height: 44px; padding: 8px 12px; gap: 7px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 0; color: var(--teal); font-size: 13px; font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--teal-dark); text-decoration: underline; }
button.text-link { border: 0; background: transparent; text-align: left; }
.section { padding-top: 56px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-heading > div { min-width: 0; }
.section-title { margin: 0; font: 500 28px/1.7 var(--serif); letter-spacing: .035em; }
.section-desc { max-width: 800px; margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.section-heading > .text-link, .section-heading > .button { flex: 0 0 auto; }
.split-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 43px; }
.callout { padding: 23px 27px; border-left: 3px solid var(--copper); background: #efede4; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.callout h2, .callout h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; line-height: 1.7; }
.callout .eyebrow { margin-bottom: 10px; }
.callout p { margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink-soft); text-decoration: none; font-size: 12px; line-height: 1.5; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active, .chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: white; }
.filter-chips, .selected-layers { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.count { color: var(--muted); font-size: 12px; line-height: 1.6; }
.count strong { margin-right: 4px; color: var(--ink); font-family: var(--english); font-size: 22px; font-weight: 400; }

/* The geographic plate is the first and largest reading surface. */
.hero { padding-top: 31px; }
.hero-head { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: end; gap: 45px; padding-bottom: 27px; }
.hero-title { margin: 0; font: 500 clamp(34px,3.5vw,50px)/1.55 var(--serif); letter-spacing: .055em; }
.hero-title em { color: var(--teal); font-style: normal; }
.hero-summary { max-width: 650px; margin: 0; padding-bottom: 4px; color: var(--ink-soft); font-size: 16px; line-height: 2; }
.hero-summary .small-note { display: block; margin-top: 10px; }
.atlas-hero { border-top: 2px solid var(--ink); }
.atlas-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 25px; }
.map-wrap { position: relative; min-width: 0; border: 1px solid var(--line-strong); background: #e7efea; }
.map-surface, #research-map, #hero-map { position: relative; width: 100%; height: 620px; min-width: 0; background: #dfeae5; }
.map-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.map-tabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 22px; }
.map-tab { position: relative; min-height: 48px; padding: 11px 1px; border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.map-tab.active { color: var(--teal); font-weight: 600; }
.map-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); }
.map-legend, .country-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; padding: 12px 16px; background: var(--paper); color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.map-legend { border-top: 1px solid var(--line-strong); }
.country-legend { border-top: 1px solid var(--line); }
.map-legend strong, .country-legend strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.country-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; }
.country-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--country-color,var(--teal)); }
.country-dot.cn, .country-key.cn { --country-color: var(--cn); }
.country-dot.tw, .country-key.tw { --country-color: var(--tw); }
.country-dot.ph, .country-key.ph { --country-color: var(--ph); }
.country-dot.vn, .country-key.vn { --country-color: var(--vn); }
.country-dot.my, .country-key.my { --country-color: var(--my); }
.country-dot.bn, .country-key.bn { --country-color: var(--bn); }
.country-dot.id, .country-key.id { --country-color: var(--id); }
.map-caption { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.9; }
.map-caption p { margin-bottom: 5px; }
.map-caption a { font-size: inherit; }
.atlas-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.atlas-toolbar .selected-layers { flex: 1 1 400px; }
.selected-layers:empty { display: none; }
.selected-layers .badge { font-size: 10px; }
.layer-panel { border-top: 2px solid var(--ink); background: var(--white); }
.layer-panel > h2, .layer-panel > h3 { margin: 0; padding: 19px 19px 5px; font-size: 17px; font-weight: 500; }
.layer-group { padding: 17px 19px; border-bottom: 1px solid var(--line); }
.layer-group h3, .layer-group h4 { margin: 0 0 10px; color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.layer-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.layer-row + .layer-row { border-top: 1px solid #e6e9e1; }
.layer-row > div, .layer-row > span { min-width: 0; }
.layer-row.unverified { color: var(--muted); }
.layer-row.unverified .layer-name { color: var(--muted); }
.layer-check, .layer-row input { flex: 0 0 auto; width: 17px; height: 17px; margin: 4px 0 0; accent-color: var(--teal); cursor: pointer; }
.layer-row input:disabled { cursor: not-allowed; }
.layer-name { display: block; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.7; }
.layer-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.map-inspector { padding: 23px 20px; margin-top: 20px; border-top: 2px solid var(--teal); background: var(--white); }
.map-inspector:first-child { margin-top: 0; }
.inspector-title { margin: 0 0 5px; font: 500 25px/1.7 var(--serif); letter-spacing: .025em; }
.inspector-en { margin: 0 0 16px; color: var(--muted); font: 14px/1.7 var(--english); }
.map-inspector > p:not(.eyebrow):not(.inspector-en):not(.small-note) { color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.fact-list { margin: 19px 0; }
.fact-list dt { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.fact-list dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; line-height: 1.85; }
.alias-list { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 10px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Leaflet owns its own positioning. These rules style content only. */
.leaflet-container { font-family: var(--sans); font-size: 13px; }
.leaflet-control-zoom a, .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; color: var(--ink); }
.leaflet-control-attribution { max-width: 100%; padding: 3px 6px !important; background: rgba(247,246,241,.94) !important; color: var(--muted); font-size: 9px !important; line-height: 1.5; }
.leaflet-control-attribution a { color: var(--teal); }
.leaflet-bar { border-radius: 0 !important; box-shadow: 0 1px 6px rgba(20,45,58,.12) !important; }
.leaflet-bar a:first-child, .leaflet-bar a:last-child { border-radius: 0 !important; }
.feature-pin { display: grid; place-items: center; width: 16px; height: 16px; border: 2px solid var(--white); border-radius: 50%; background: var(--pin-color,var(--teal)); box-shadow: 0 0 0 1px rgba(20,45,58,.25); }
.pin-cn { --pin-color: var(--cn); }
.pin-tw { --pin-color: var(--tw); }
.pin-ph { --pin-color: var(--ph); }
.pin-vn { --pin-color: var(--vn); }
.pin-my { --pin-color: var(--my); }
.pin-bn { --pin-color: var(--bn); }
.pin-id { --pin-color: var(--id); }
.map-tooltip, .leaflet-tooltip.map-tooltip { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 0; background: rgba(255,254,250,.98); color: var(--ink); box-shadow: 0 2px 8px rgba(20,45,58,.08); font-family: var(--sans); font-size: 12px; line-height: 1.6; }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--paper); }
.leaflet-popup-content { margin: 18px; font-family: var(--sans); font-size: 13px; line-height: 1.85; }
.leaflet-popup-content h3 { margin: 0 0 8px; font-size: 16px; }
.leaflet-popup-content p { margin: 7px 0; }
.leaflet-container a.leaflet-popup-close-button { width: 36px; height: 36px; padding: 6px; color: var(--muted); }

/* Supporting evidence stays below the geographic introduction. */
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-card { min-width: 0; padding: 21px 25px; border-left: 1px solid var(--line); }
.metric-card:first-child { padding-left: 0; border-left: 0; }
.metric-label { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.metric-value { display: block; margin: 8px 0; color: var(--teal); font: 37px/1.2 var(--english); }
.metric-value small { margin-left: 5px; font-family: var(--sans); font-size: 12px; }
.metric-note { display: block; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.metric-source { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.resource-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.resource-strip h2, .resource-strip h3 { margin: 0; font-size: 14px; font-weight: 500; }
.resource-links { display: flex; flex-wrap: wrap; gap: 6px 25px; }
.resource-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; text-decoration: none; }
.resource-links a:hover { text-decoration: underline; }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-strong); }
.topic-card { position: relative; display: block; min-width: 0; padding: 27px 28px 26px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.topic-card:nth-child(3n+2), .topic-card:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.topic-card:hover { background: rgba(230,238,234,.45); color: var(--ink); }
.topic-number { display: block; margin-bottom: 15px; color: var(--copper); font: 12px/1.3 var(--english); letter-spacing: .07em; }
.topic-card h2, .topic-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 500; line-height: 1.75; }
.topic-card p { margin-bottom: 13px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.event-preview { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 23px; padding: 21px 0; border-top: 1px solid var(--line); }
.event-preview:last-child { border-bottom: 1px solid var(--line); }
.event-preview-date { color: var(--teal); font-size: 12px; font-weight: 500; line-height: 1.8; }
.event-preview-body { min-width: 0; }
.event-preview-body h3 { margin: 0 0 7px; font-size: 17px; font-weight: 500; line-height: 1.8; }
.event-preview-body p { margin-bottom: 9px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.event-preview-body a { text-decoration: none; }
.event-preview-body a:hover { text-decoration: underline; }

/* Chronology reads as an annotated historical record, not a feed. */
.timeline-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 48px; }
.timeline-filters { position: sticky; top: 112px; border-top: 2px solid var(--ink); padding-top: 19px; }
.timeline-filters > h2, .timeline-filters > h3 { margin: 0 0 21px; font-size: 16px; font-weight: 500; }
.filter-label { display: block; margin: 19px 0 8px; color: var(--ink); font-size: 12px; font-weight: 500; }
.filter-label:first-child { margin-top: 0; }
.form-select, .search-input { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--white); color: var(--ink); font-size: 14px; line-height: 1.5; }
.form-select { padding: 10px 30px 10px 11px; }
.search-input { padding: 12px 14px; }
.search-input::placeholder { color: #83918f; }
.form-select:hover, .search-input:hover { border-color: var(--teal); }
.timeline-filters .filter-chips { margin-top: 16px; }
.timeline-filters .chip { width: 100%; justify-content: flex-start; }
.timeline-filters .button, .timeline-filters .text-link { margin-top: 15px; }
.timeline-period { margin: 0 0 45px; scroll-margin-top: 112px; }
.timeline-period > h2 { padding-bottom: 13px; margin: 0 0 14px; border-bottom: 2px solid var(--ink); font: 500 27px/1.6 var(--serif); letter-spacing: .035em; }
.period-summary { max-width: 900px; margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.event-card { position: relative; min-width: 0; padding: 25px 0 27px 27px; border-top: 1px solid var(--line); border-left: 1px solid var(--line-strong); }
.event-card::before { content: ""; position: absolute; top: 31px; left: -4px; width: 7px; height: 7px; border: 1px solid var(--teal); border-radius: 50%; background: var(--paper); }
.event-date { display: inline-block; margin-bottom: 10px; color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.event-title { margin: 0 0 12px; font-size: 21px; font-weight: 500; line-height: 1.75; }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title a:hover { color: var(--teal); }
.event-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.event-summary { max-width: 1050px; margin-bottom: 15px; color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.event-positions { margin-top: 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-positions summary { min-height: 44px; padding: 10px 1px; color: var(--teal); cursor: pointer; font-size: 13px; }
.event-positions > div, .event-positions > p { padding: 0 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.event-positions h4 { margin: 9px 0 5px; font-size: 13px; font-weight: 500; }
.event-source { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.event-source a { overflow-wrap: anywhere; }
.event-source .text-link { min-height: 35px; font-size: 12px; }

/* Law, sources, and long-form context. */
.legal-grid, .methodology-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.legal-card { min-width: 0; padding: 23px 0; border-top: 2px solid var(--teal); }
.legal-card h2, .legal-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.7; }
.legal-card p, .legal-card li { color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.legal-card ul { padding-left: 1.3em; }
.legal-diagram { display: block; width: 100%; margin: 24px 0; border: 1px solid var(--line); background: #e8efea; }
svg.legal-diagram { height: auto; font-family: var(--sans); font-size: 15px; fill: var(--ink-soft); }
.legal-diagram text { font-family: var(--sans); }
.legal-diagram .diagram-title { fill: var(--ink); font-size: 24px; }
.legal-diagram .diagram-small { font-size: 12px; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 55px; }
.prose { min-width: 0; color: var(--ink-soft); font-size: 16px; line-height: 2.05; }
.prose > section { margin-bottom: 39px; scroll-margin-top: 112px; }
.prose h2 { padding-bottom: 13px; margin: 0 0 21px; border-bottom: 1px solid var(--line); font: 500 28px/1.7 var(--serif); letter-spacing: .025em; }
.prose h3 { margin: 28px 0 13px; font-size: 19px; font-weight: 500; line-height: 1.8; }
.prose p { margin-bottom: 21px; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 23px; }
.prose li { margin-bottom: 10px; padding-left: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { padding: 3px 0 3px 24px; margin: 25px 0; border-left: 2px solid var(--teal); color: var(--ink-soft); }
.prose small { color: var(--muted); font-size: 12px; }
.content-layout > aside { position: sticky; top: 113px; }
.content-layout > aside > * + * { margin-top: 22px; }
.table-wrap { width: 100%; min-width: 0; overflow-x: auto; margin: 23px 0 33px; border-top: 2px solid var(--ink); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 14px 17px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; line-height: 1.9; }
.data-table th { background: var(--paper-deep); color: var(--ink); font-size: 12px; font-weight: 500; }
.data-table td { color: var(--ink-soft); }
.source-list { min-width: 0; }
.source-card { min-width: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.source-card:last-child { border-bottom: 1px solid var(--line); }
.source-title { display: block; max-width: 100%; margin: 0 0 10px; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; }
.source-title a { color: var(--ink); text-decoration: none; }
.source-title a:hover { color: var(--teal); }
button.source-title, .source-title button { min-height: 44px; border: 0; background: transparent; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.source-title button { font: inherit; }
button.source-title:hover, .source-title button:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.source-meta { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.source-summary { margin: 0 0 15px; color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.source-card .filter-chips { margin-top: 12px; }
.source-card .chip { min-height: 35px; padding: 5px 9px; font-size: 11px; }
.source-card .text-link { margin-right: 17px; }
.library-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line-strong); }
.library-toolbar .search-input { flex: 1 1 300px; }
.library-toolbar .form-select { flex: 0 1 auto; width: auto; }
.library-toolbar .count { margin-right: auto; }
.source-detail, .event-detail { max-width: 1100px; margin-inline: auto; padding-top: 25px; }
.source-detail > h1, .event-detail > h1 { margin: 0 0 19px; font: 500 34px/1.8 var(--serif); overflow-wrap: anywhere; }
.source-detail .fact-list { display: grid; grid-template-columns: 160px minmax(0,1fr); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-detail .fact-list dt { margin: 0; padding: 8px 15px 8px 0; border: 0; }
.source-detail .fact-list dd { margin: 0; padding: 8px 0; overflow-wrap: anywhere; }
.sources-panel { padding: 21px; border-top: 2px solid var(--ink); background: var(--white); }
.sources-panel h2, .sources-panel h3 { font-size: 16px; font-weight: 500; line-height: 1.8; }
.sources-panel .source-title { font-size: 14px; }
.sources-panel .source-meta, .sources-panel .source-summary { font-size: 12px; }
.place-hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 45px; padding: 30px 0; border-bottom: 1px solid var(--line-strong); }
.place-facts { border-top: 1px solid var(--line); }
.place-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.place-facts span, .place-facts dt { display: block; color: var(--muted); font-size: 11px; }
.place-facts strong, .place-facts dd { display: block; margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.institution-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
.institution-card { display: flex; flex-direction: column; min-width: 0; padding: 23px 0; border-top: 1px solid var(--line-strong); }
.institution-card h2, .institution-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; line-height: 1.8; }
.institution-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.institution-card .text-link { margin-top: auto; }
.methodology-grid > * { min-width: 0; padding: 23px 0; border-top: 2px solid var(--teal); }
.methodology-grid h2, .methodology-grid h3 { font-size: 19px; font-weight: 500; }
.methodology-grid p { color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.phase-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.phase-card { min-width: 0; padding: 23px 0; border-top: 1px solid var(--line-strong); }
.phase-card h2, .phase-card h3 { margin: 0 0 11px; font-size: 18px; font-weight: 500; }
.phase-card p { color: var(--ink-soft); font-size: 14px; }

.footer { padding: 32px 0; border-top: 1px solid var(--line-strong); background: var(--paper-deep); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer h2, .footer h3 { margin: 0 0 12px; font-size: 14px; font-weight: 500; }
.footer p { color: var(--muted); font-size: 11px; line-height: 1.95; }
.footer a { display: inline-flex; align-items: center; min-height: 36px; margin-right: 18px; color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.footer a:hover { color: var(--teal); text-decoration: underline; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 1500; max-width: min(430px,calc(100vw - 36px)); padding: 14px 20px; border-left: 3px solid var(--copper); background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.8; box-shadow: 0 4px 25px rgba(20,45,58,.15); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width:1600px) {
  .hero-head { padding-top: 7px; padding-bottom: 31px; }
  .hero-title { font-size: 52px; }
}

@media (max-width:1250px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 23px; }
  .nav { gap: 21px; }
  .nav-link { font-size: 12px; }
  .edition { display: none; }
  .brand-name { font-size: 16px; }
  .atlas-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 21px; }
  .hero-head { gap: 32px; }
  .hero-title { font-size: 40px; }
  .hero-summary { font-size: 15px; }
  .metric-card { padding-inline: 20px; }
  .content-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 35px; }
  .timeline-layout { gap: 34px; }
}

@media (max-width:1000px) {
  .container { width: calc(100% - 48px); }
  .header-inner { flex-wrap: wrap; gap: 0 20px; padding-top: 15px; }
  .brand { margin-bottom: 13px; }
  .nav { flex: 1 1 100%; justify-content: flex-start; gap: 30px; order: 3; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; min-height: 43px; font-size: 12px; }
  .nav-link.active::after { bottom: 0; }
  .edition { display: block; margin-left: auto; margin-bottom: 13px; }
  .hero { padding-top: 28px; }
  .hero-head { grid-template-columns: 1fr 1fr; gap: 25px; }
  .hero-title { font-size: 34px; }
  .hero-summary { font-size: 14px; }
  .atlas-layout { grid-template-columns: minmax(0,1fr) 265px; gap: 18px; }
  .map-surface, #research-map, #hero-map { height: 570px; }
  .layer-group { padding: 15px; }
  .layer-panel > h2, .layer-panel > h3 { padding-inline: 15px; }
  .map-inspector { padding: 20px 17px; }
  .inspector-title { font-size: 22px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { border-bottom: 1px solid var(--line); }
  .metric-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric-card:nth-last-child(-n+2) { border-bottom: 0; }
  .section-title { font-size: 25px; }
  .topic-card { padding-right: 21px; }
  .topic-card:nth-child(3n+2), .topic-card:nth-child(3n+3) { padding-left: 21px; }
  .topic-card h2, .topic-card h3 { font-size: 18px; }
  .topic-card p { font-size: 13px; }
  .content-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 27px; }
  .timeline-layout { grid-template-columns: 180px minmax(0,1fr); gap: 27px; }
  .timeline-filters { top: 139px; }
  .content-layout > aside { top: 140px; }
  .legal-grid, .methodology-grid { gap: 21px; }
  .institution-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 25px; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width:760px) {
  html { scroll-padding-top: 92px; }
  .container { width: calc(100% - 36px); }
  .page { padding-bottom: 43px; }
  .header-inner { min-height: 77px; padding-top: 0; gap: 0 12px; }
  .brand { gap: 10px; margin-bottom: 0; }
  .brand-mark { width: 32px; height: 36px; font-size: 21px; }
  .brand-name { font-size: 15px; letter-spacing: .03em; }
  .brand-sub { margin-top: 1px; font-size: 9px; letter-spacing: .03em; }
  .menu-button { display: inline-flex; margin-left: auto; padding-inline: 10px; }
  .edition { display: none; }
  .nav { display: none; flex-basis: 100%; gap: 23px; padding-bottom: 4px; }
  .nav.open, .nav.is-open, .nav[aria-expanded="true"] { display: flex; }
  .nav-link { min-height: 45px; font-size: 12px; }
  .page-head { padding-top: 27px; padding-bottom: 25px; }
  .page-title { font-size: 30px; margin-bottom: 13px; }
  .page-intro { font-size: 15px; line-height: 1.95; }
  .eyebrow { font-size: 9px; letter-spacing: .13em; }
  .hero { padding-top: 24px; }
  .hero-head { grid-template-columns: minmax(0,1fr); gap: 16px; padding-bottom: 23px; }
  .hero-title { font-size: clamp(30px,6.6vw,39px); line-height: 1.65; letter-spacing: .035em; }
  .hero-summary { max-width: 100%; font-size: 15px; line-height: 1.95; }
  .hero-summary .small-note { margin-top: 7px; }
  .atlas-layout { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .map-surface, #research-map, #hero-map { height: 430px; }
  .map-wrap { min-width: 0; }
  .map-topbar { flex-wrap: wrap; align-items: flex-start; gap: 0 14px; padding: 0 12px; }
  .map-topbar > .small-note { padding: 0 0 10px; margin: 0; font-size: 10px; }
  .map-tabs { gap: 18px; }
  .map-tab { min-height: 46px; padding: 10px 0; font-size: 11px; }
  .map-legend, .country-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; padding: 11px 12px; font-size: 11px; }
  .map-legend { position: sticky; bottom: 0; z-index: 850; box-shadow: 0 -2px 6px rgba(20,45,58,.03); }
  .country-key { gap: 5px; font-size: 10px; }
  .country-dot { width: 8px; height: 8px; }
  .map-caption { padding: 11px 12px; font-size: 10px; line-height: 1.85; }
  .map-caption p { margin-bottom: 7px; }
  .atlas-toolbar { gap: 10px; padding: 12px 0; }
  .atlas-toolbar .selected-layers { flex-basis: 100%; }
  .atlas-toolbar .button, .atlas-toolbar .text-link { font-size: 12px; }
  .layer-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .layer-panel > h2, .layer-panel > h3, .layer-panel > .small-note { grid-column: 1 / -1; }
  .layer-panel > .small-note { padding: 0 15px 14px; }
  .layer-group { min-width: 0; padding: 15px; }
  .layer-group:nth-of-type(even) { border-left: 1px solid var(--line); }
  .layer-name { font-size: 12px; }
  .layer-meta { font-size: 10px; }
  .layer-check, .layer-row input { width: 17px; height: 17px; }
  .map-inspector { margin-top: 22px; padding: 22px; }
  .inspector-title { font-size: 25px; }
  .fact-list { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 0 13px; }
  .fact-list dt { margin: 0; padding: 10px 0; font-size: 10px; }
  .fact-list dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
  .fact-list dt:first-child, .fact-list dd:nth-child(2) { border-top: 0; }
  .map-tooltip, .leaflet-tooltip.map-tooltip { font-size: 12px; }
  .metric-grid { margin-top: 21px; }
  .metric-card { padding: 19px 0 19px 18px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 32px; }
  .metric-note { font-size: 10px; }
  .metric-source { font-size: 9px; }
  .resource-strip { display: block; margin-top: 15px; padding: 15px 0; }
  .resource-links { gap: 0 23px; margin-top: 7px; }
  .resource-links a { font-size: 12px; }
  .section { padding-top: 41px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 14px; }
  .section-heading > .text-link { margin-top: -5px; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topic-card, .topic-card:nth-child(3n+2), .topic-card:nth-child(3n+3) { padding: 22px 17px 22px 0; border-left: 0; }
  .topic-card:nth-child(even) { padding-left: 17px; padding-right: 0; border-left: 1px solid var(--line); }
  .topic-card h2, .topic-card h3 { font-size: 17px; }
  .topic-card p { font-size: 13px; }
  .topic-number { font-size: 11px; margin-bottom: 12px; }
  .split-layout { grid-template-columns: minmax(0,1fr); gap: 29px; }
  .event-preview { grid-template-columns: 80px minmax(0,1fr); gap: 17px; padding: 19px 0; }
  .event-preview-date { font-size: 11px; }
  .event-preview-body h3 { font-size: 16px; }
  .event-preview-body p { font-size: 14px; }
  .timeline-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .timeline-filters { position: static; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 15px; padding-top: 15px; }
  .timeline-filters > h2, .timeline-filters > h3, .timeline-filters > .filter-chips, .timeline-filters > .small-note, .timeline-filters > .search-input { grid-column: 1 / -1; margin: 0; }
  .timeline-filters > div { min-width: 0; }
  .timeline-filters .filter-label { margin-top: 0; }
  .timeline-filters .filter-chips { margin-top: 0; }
  .timeline-filters .chip { width: auto; }
  .timeline-filters .button, .timeline-filters .text-link { margin-top: 0; }
  .form-select, .search-input { font-size: 16px; }
  .timeline-period { margin-bottom: 34px; }
  .timeline-period > h2 { font-size: 24px; }
  .period-summary { font-size: 15px; }
  .event-card { padding: 21px 0 24px 21px; }
  .event-card::before { top: 28px; }
  .event-title { font-size: 19px; }
  .event-summary { font-size: 15px; }
  .event-meta { gap: 7px 10px; font-size: 10px; }
  .event-positions > div, .event-positions > p { font-size: 14px; }
  .event-source { gap: 4px 14px; font-size: 10px; }
  .content-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .content-layout > aside { position: static; }
  .prose { font-size: 16px; line-height: 2.05; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 18px; }
  .callout { padding: 20px 21px; font-size: 14px; }
  .callout h2, .callout h3 { font-size: 17px; }
  .legal-grid, .methodology-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .legal-card { padding: 21px 0; }
  .legal-card h2, .legal-card h3 { font-size: 20px; }
  .legal-diagram { margin: 20px 0; }
  .source-title { font-size: 17px; }
  .source-summary { font-size: 15px; }
  .source-meta { font-size: 11px; }
  .source-card { padding: 22px 0; }
  .library-toolbar { gap: 11px; }
  .library-toolbar .search-input { flex-basis: 100%; }
  .library-toolbar .form-select { flex: 1 1 140px; width: 100%; font-size: 14px; }
  .source-detail > h1, .event-detail > h1 { font-size: 28px; }
  .source-detail .fact-list { grid-template-columns: 100px minmax(0,1fr); }
  .source-detail .fact-list dd { font-size: 12px; }
  .place-hero { grid-template-columns: minmax(0,1fr); gap: 25px; padding: 25px 0; }
  .place-facts > div { padding: 12px 0; }
  .institution-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .institution-card h2, .institution-card h3 { font-size: 19px; }
  .phase-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer { padding: 28px 0; }
  .footer a { min-height: 44px; }
  .toast { right: 18px; bottom: 18px; padding: 12px 17px; font-size: 12px; }
}

@media (max-width:420px) {
  .container { width: calc(100% - 30px); }
  .brand-mark { width: 27px; height: 34px; font-size: 20px; }
  .brand-name { font-size: 14px; letter-spacing: .015em; }
  .brand-sub { font-size: 8px; }
  .menu-button { padding-inline: 9px; font-size: 11px; }
  .header-inner { gap: 0 9px; }
  .hero-title { font-size: 30px; }
  .map-tabs { gap: 13px; }
  .map-tab { font-size: 10px; }
  .map-legend, .country-legend { gap: 6px 10px; }
  .layer-panel { grid-template-columns: minmax(0,1fr); }
  .layer-group:nth-of-type(even) { border-left: 0; }
  .topic-grid { grid-template-columns: minmax(0,1fr); }
  .topic-card, .topic-card:nth-child(even), .topic-card:nth-child(3n+2), .topic-card:nth-child(3n+3) { padding: 22px 0; border-left: 0; }
  .topic-card h2, .topic-card h3 { font-size: 19px; }
  .topic-card p { font-size: 14px; }
  .event-preview { grid-template-columns: 74px minmax(0,1fr); gap: 13px; }
  .event-title { font-size: 18px; }
  .event-card { padding-left: 17px; }
  .timeline-filters { gap: 12px; }
  .fact-list { grid-template-columns: 93px minmax(0,1fr); gap: 0 10px; }
}

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

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .container { width: 100%; max-width: none; }
  .site-header { position: static; background: white; }
  .header-inner { min-height: 70px; padding-top: 0; }
  .nav, .menu-button, .edition, .timeline-filters, .layer-panel, .toast, .leaflet-control-zoom { display: none !important; }
  .page { min-height: 0; padding-bottom: 20px; }
  .page-head, .hero { padding-top: 20px; }
  .page-title, .hero-title { font-size: 26pt; }
  .hero-head, .atlas-layout, .timeline-layout, .content-layout { display: block; }
  .map-surface, #research-map, #hero-map { height: 450px; }
  .map-legend { position: static; }
  .map-inspector { margin-top: 20px; }
  .content-layout > aside { position: static; }
  .event-card, .source-card, .legal-card, .metric-card { break-inside: avoid; }
  .footer { margin-top: 25px; background: white; }
}

/* Atlas integration: field controls and permanent map furniture. */
.layer-row { display: block; cursor: default; }
.layer-check { display: flex; align-items: flex-start; gap: 10px; width: auto; height: auto; min-height: 32px; margin: 0; }
.layer-check input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 4px; }
.layer-meta { margin-left: 27px; }
.layer-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.layer-group { border-right: 1px solid var(--line); }
.layer-name { min-width: 0; }
.selected-layers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.country-label { color: #4a655d; font: 13px/1.6 var(--sans); text-align: center; white-space: nowrap; text-shadow: 0 1px 2px #f7f6f1,1px 0 #f7f6f1; pointer-events: none; }
.sea-label { color: #608e91; font: italic 17px/1.6 var(--english); letter-spacing: .12em; text-align: center; white-space: nowrap; pointer-events: none; }
.map-legend .country-legend { padding: 0; border: 0; background: transparent; }
.map-legend .small-note { margin-left: auto; font-size: 11px; }
.metric-value > span { font: 12px var(--sans); }
.metric-card .metric-value { overflow-wrap: anywhere; }
.event-preview-date > span, .event-date > span { display: block; font-size: 10px; color: var(--muted); }
.event-card-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.event-body { min-width: 0; }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title a:hover { color: var(--teal); text-decoration: underline; }
.event-source { display: grid; gap: 6px; margin-top: 15px; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.sources-panel > .button { margin: 8px 0; width: 100%; }
.sources-panel > a { display: block; margin-bottom: 9px; }
.source-detail h1 { font: 500 32px/1.6 var(--serif); overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prose > section { scroll-margin-top: 115px; }
.legal-diagram { font: 14px var(--sans); fill: var(--ink-soft); }
.legal-diagram .diagram-title { font-size: 22px; fill: var(--ink); }
.legal-diagram .diagram-small { font-size: 11px; }
.map-tooltip span { color: var(--muted); font-family: var(--english); }
.map-popup { max-height: 290px; overflow-y: auto; }
.leaflet-overlay-pane .place-marker:focus { outline: none; stroke: var(--copper); stroke-width: 4px; }
.footer-grid a { display: block; margin-bottom: 8px; font-size: 13px; }
@media(max-width:1000px){ .layer-panel { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px){
 .layer-panel { grid-template-columns:minmax(0,1fr); }
 .map-legend .small-note { margin-left: 0; width: 100%; }
 .resource-strip { display: block; }
 .resource-strip .resource-links { margin-top: 12px; }
 .source-detail h1 { font-size: 25px; }
 .hero-actions .button { flex: 1 1 auto; }
}

/* Leaflet panes have no intrinsic width; preserve renderer dimensions. */
.leaflet-pane > svg { max-width: none; }

.leaflet-pane .place-marker:focus { outline: none; stroke: var(--copper); stroke-width: 4px; }
@media(max-width:760px){
 .map-topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 18px; padding:3px 12px; }
 .map-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
 .map-tab { min-height:44px; font-size:12px; text-align:left; }
 .map-topbar > .button { align-self:center; min-height:44px; }
}

/* Reading the map: a geographic plate and an adjacent research commentary. */
.hero-atlas-grid, .atlas-layout { display: grid; grid-template-columns: minmax(0,800px) minmax(280px,1fr); gap: 24px; align-items: start; }
.hero-atlas-grid > *, .atlas-layout > *, .map-context, #map-context { min-width: 0; }
.map-surface, #research-map, #hero-map { height: 680px; }
.map-context, #map-context { display: flex; flex-direction: column; gap: 22px; }
.map-reading { padding: 23px 23px 25px; border-top: 2px solid var(--ink); background: var(--white); }
.map-reading h2 { margin: 0 0 14px; font: 500 25px/1.65 var(--serif); letter-spacing: .025em; }
.map-reading h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 500; line-height: 1.8; }
.map-reading p { margin: 0 0 15px; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.map-reading > p:last-child { margin-bottom: 0; }
.map-reading ul { margin: 14px 0; padding-left: 1.3em; color: var(--ink-soft); font-size: 13px; line-height: 1.95; }
.map-reading li + li { margin-top: 8px; }
.map-reading .eyebrow { margin-bottom: 11px; }
.map-reading .small-note, .map-reading .source-meta { font-size: 11px; }
.map-reading .text-link { min-height: 44px; font-size: 12px; }
.map-context .map-inspector, #map-context > .map-inspector { margin-top: 0; padding: 22px 23px; }
.map-context .inspector-title, #map-context .inspector-title { font-size: 23px; }
.map-context .fact-list, #map-context .fact-list { margin-bottom: 16px; }
.map-place-disclosure { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: var(--white); }
.map-place-disclosure > summary { min-height: 52px; padding: 13px 20px; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.9; cursor: pointer; }
.map-place-disclosure > summary::marker { color: var(--teal); font-size: 11px; }
.map-place-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.map-place-disclosure > summary #point-summary { color: var(--teal); }
.map-place-disclosure .map-inspector { border-top: 0; }
.map-place-disclosure .event-source { font-size: 11px; line-height: 1.8; }
.history-controls { padding: 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.history-controls > .eyebrow, .history-controls > h3 { margin: 0 0 10px; font-size: 11px; font-weight: 600; }
.history-editions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.history-editions button, .history-editions .button { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px 9px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); font: 500 12px/1.5 var(--sans); cursor: pointer; }
.history-editions button:hover { border-color: var(--teal); color: var(--teal); }
.history-editions button.active, .history-editions button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: white; }
.history-compare { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.75; cursor: pointer; }
.history-compare input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.history-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.history-note strong { color: var(--ink-soft); font-weight: 500; }
.map-actor-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 0; }
.map-actor-filter > span, .map-actor-filter > label { margin-right: 5px; color: var(--muted); font-size: 11px; }
.map-actor-filter .chip, .map-actor-filter button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.map-actor-filter button:hover { border-color: var(--teal); color: var(--teal); }
.map-actor-filter button.active, .map-actor-filter button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: white; }
.line-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 19px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.line-legend > span, .line-legend > label { display: inline-flex; align-items: center; gap: 7px; }
.line-legend i, .line-legend .line-swatch { display: inline-block; flex: 0 0 auto; width: 31px; height: 0; border-top: 2px solid var(--ink-soft); font-style: normal; }
.line-legend i.historical, .line-legend .line-swatch.historical, .line-legend [data-line="historical"] { border-top: 4px dashed var(--cn); }
.line-legend i.eez, .line-legend .line-swatch.eez, .line-legend [data-line="eez"] { border-top: 1px dashed var(--ph); }
.line-legend i.baseline, .line-legend .line-swatch.baseline, .line-legend [data-line="baseline"] { border-top: 2px solid var(--vn); }
.line-legend i.clcs, .line-legend .line-swatch.clcs, .line-legend [data-line="clcs"] { border-top: 2px dotted var(--ink-soft); }
.line-legend i.reference, .line-legend .line-swatch.reference, .line-legend [data-line="reference"] { height: 12px; border: 1px solid #a0aaa5; background: repeating-linear-gradient(135deg,transparent,transparent 3px,#a0aaa5 3px,#a0aaa5 4px); }
.map-legend > .line-legend { width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
.period-counts { margin: 24px 0; padding: 19px 0 15px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.period-counts > h2, .period-counts > h3 { margin: 0 0 11px; font-size: 16px; font-weight: 500; }
.period-count-row { display: grid; grid-template-columns: minmax(110px,170px) minmax(0,1fr) 45px; align-items: center; gap: 15px; min-height: 44px; }
.period-count-row > * { min-width: 0; }
.period-count-row > :last-child { color: var(--ink-soft); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.period-count-link { min-height: 44px; padding: 9px 0; border: 0; background: transparent; color: var(--teal); font: 500 12px/1.8 var(--sans); text-align: left; cursor: pointer; }
.period-count-link:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.period-count-link.active, .period-count-link[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.period-count-track { width: 100%; height: 5px; background: #e4e8df; }
.period-bar { display: block; height: 5px; min-width: 0; max-width: 100%; background: var(--teal); }
.period-counts > .small-note { margin-top: 12px; font-size: 11px; }
.metric-conversion { margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.phase2-plan .content-layout { margin-top: 32px; }
.phase2-plan .phase-plan-toc { padding: 20px; border-top: 2px solid var(--ink); background: var(--white); }
.phase2-plan .phase-plan-toc a { display: block; min-height: 44px; padding: 9px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; text-decoration: none; }
.phase2-plan .phase-plan-toc a:hover { color: var(--teal); text-decoration: underline; }
.phase2-plan .concept-figure { margin: 23px 0; }
.phase2-plan .concept-figure svg { width: 100%; height: auto; border: 1px solid var(--line); background: #edf1e9; font-family: var(--sans); font-size: 15px; }
.phase2-plan .concept-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.phase2-plan .data-table { min-width: 700px; }
.phase2-plan .data-table p { margin-top: 5px; margin-bottom: 0; }
.phase2-plan .acceptance-list { padding-left: 1.4em; }
.phase2-plan .acceptance-list li { padding-left: 3px; margin-bottom: 13px; }

@media (max-width:1100px) {
  .map-reading, .map-context .map-inspector, #map-context > .map-inspector { padding-inline: 20px; }
}
@media (max-width:900px) {
  .hero-atlas-grid, .atlas-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .map-context, #map-context { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 21px; }
  .map-reading h2 { font-size: 23px; }
  .map-context .map-inspector, #map-context > .map-inspector { align-self: start; }
}
@media (max-width:760px) {
  .map-surface, #research-map, #hero-map { height: 430px; }
  .map-context, #map-context { display: flex; flex-direction: column; gap: 20px; }
  .map-reading, .map-context .map-inspector, #map-context > .map-inspector { padding: 21px; }
  .map-reading h2 { font-size: 24px; }
  .map-reading p { font-size: 14px; }
  .history-controls { padding: 14px 12px; }
  .history-editions { gap: 7px; }
  .history-editions button { font-size: 12px; }
  .history-note { font-size: 10px; }
  .map-actor-filter { gap: 6px; }
  .map-actor-filter .chip, .map-actor-filter button { padding-inline: 10px; font-size: 11px; }
  .line-legend { gap: 8px 13px; font-size: 10px; }
  .line-legend i, .line-legend .line-swatch { width: 26px; }
  .period-count-row { grid-template-columns: minmax(95px,115px) minmax(0,1fr) 35px; gap: 11px; }
  .period-count-link, .period-count-row > :last-child { font-size: 11px; }
  .metric-conversion { font-size: 11px; }
  .phase2-plan .concept-figure svg { font-size: 16px; }
}
@media print {
  .hero-atlas-grid, .atlas-layout, .map-context, #map-context { display: block; }
  .map-surface, #research-map, #hero-map { height: 450px; }
  .map-reading, .map-inspector { margin-top: 20px; break-inside: avoid; }
  .history-editions button { color: var(--ink); background: transparent; }
  .map-actor-filter, .phase-plan-toc { display: none !important; }
}

/* Counting rows share the same scale; the pale bar shows the full catalogue. */
.period-count-track { position:relative; height:7px; }
.period-count-track .period-bar { position:absolute; left:0; top:0; height:7px; }
.period-count-track .period-bar.total { background:#bdcec7; }
.period-count-row { grid-template-columns:minmax(100px,140px) minmax(0,1fr) 66px; }
.map-wrap > .line-legend { padding:11px 16px; border-top:1px solid var(--line); background:var(--paper); }
@media(max-width:600px){ .period-count-row { grid-template-columns:90px minmax(0,1fr) 58px; gap:10px; } }
