/* Atlas text pages (web/atlas/**, generated by pipeline/build/seo.py). Static, no JS needed. */
:root {
  --paper: #f4ecd8;
  --paper-2: #ebe0c4;
  --ink: #2a2015;
  --ink-dim: #6b5b40;
  --gold: #c9a45c;
  --gold-deep: #8a6a2c;
  --gold-bright: #ecd08e;
  --crimson: #b3262e;
  --crimson-lo: #5c1015;
  --baltic: #0f2233;
  --rule: rgba(138, 106, 44, 0.35);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13202c;
    --paper-2: #1b2b3a;
    --ink: #efe4c6;
    --ink-dim: #b9ab88;
    --gold-deep: #c9a45c;
    --crimson: #e0636a;
    --rule: rgba(201, 164, 92, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Top bar: the app's navy chrome */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px;
  background: linear-gradient(180deg, #1f3447, #0f1d2a); border-bottom: 1px solid var(--gold);
  box-shadow: 0 1px 0 var(--crimson-lo);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); text-decoration: none;
  font-family: var(--serif); font-weight: bold; font-size: 17px; letter-spacing: .2em; text-transform: uppercase;
}
.brand .emblem { flex: none; }
.bar-open {
  color: var(--gold-bright); font-family: var(--serif); font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(201, 164, 92, .6); border-radius: 4px; padding: 3px 10px; background: rgba(179, 38, 46, .55);
}
.bar-open:hover { background: rgba(179, 38, 46, .85); }
.bar-open { margin-left: auto; }
.bar .lang { display: flex; gap: 2px; font-family: var(--serif); font-size: 14px; }
.bar .lang a {
  color: #b9ab88; text-decoration: none; padding: 3px 7px; border-radius: 4px; border: 1px solid transparent;
}
.bar .lang a:hover { color: var(--gold-bright); }
.bar .lang a[aria-current] { color: var(--gold-bright); border-color: rgba(201, 164, 92, .6); }

main { max-width: 860px; margin: 0 auto; padding: 8px 16px 32px; }
.crumbs ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--ink-dim); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--ink-dim); }
.crumbs a { color: var(--ink-dim); }
.crumbs a[aria-current] { color: var(--ink); text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; }
h1 { font-size: 40px; margin: 10px 0 0; color: var(--ink); }
.sub { margin: 2px 0 14px; color: var(--ink-dim); font-family: var(--serif); font-style: italic; }
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.45; margin: 14px 0; padding-left: 14px; border-left: 3px solid var(--crimson); }
h2 { font-size: 25px; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); color: var(--gold-deep); }
h3 { font-size: 19px; margin: 20px 0 6px; }
p { margin: 10px 0; }

.open {
  display: inline-block; margin: 6px 0; padding: 8px 16px; border-radius: 5px; text-decoration: none; font-family: var(--serif);
  font-size: 17px; color: #f6ead0; background: linear-gradient(180deg, #b3262e, #8a1d24); border: 1px solid var(--gold);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.open:hover { background: linear-gradient(180deg, #c12d36, #9c2a31); }

table { border-collapse: collapse; width: 100%; }
.figures th, .figures td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.figures th { font-weight: normal; }
.figures .v { font-weight: 600; white-space: nowrap; }
.figures .w { color: var(--ink-dim); font-size: 14px; white-space: nowrap; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid { font-size: 15px; min-width: 640px; }
.grid th, .grid td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.grid thead th { font-family: var(--serif); font-weight: normal; color: var(--ink-dim); white-space: normal; vertical-align: bottom;
  border-bottom: 2px solid var(--gold); }
.grid th[scope="row"], .grid thead th:first-child, .grid td:nth-child(2) { text-align: left; }
.grid tbody tr:nth-child(odd) { background: var(--paper-2); }

.items { list-style: none; padding: 0; margin: 8px 0; }
.items li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.items b { font-weight: 600; }
.items .note { display: block; color: var(--ink-dim); font-size: 15px; }
.towns { columns: 3 180px; padding: 0; margin: 6px 0; list-style: none; font-size: 15px; }
.towns li { break-inside: avoid; padding: 2px 0; }
.towns .note { color: var(--ink-dim); font-size: 13px; }

.sources ul { padding-left: 18px; font-size: 14px; color: var(--ink-dim); }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.sources a { color: var(--ink-dim); }
footer { max-width: 860px; margin: 0 auto; padding: 16px 16px 40px; font-size: 13px; color: var(--ink-dim); border-top: 1px solid var(--rule); }
footer a { color: var(--ink-dim); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  .lede { font-size: 19px; }
  .figures tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule); }
  .figures th, .figures td { border-bottom: none; padding: 5px 4px; }
  .figures .w { grid-column: 1 / -1; padding: 0 4px 6px; }
  .bar-open { font-size: 14px; padding: 3px 8px; }
  .bar { gap: 8px; padding: 8px 12px; }
  .bar .lang a { padding: 3px 5px; }
}
