    :root {
      --bg: #f3efe6;
      --bg-deep: #e8e2d4;
      --paper: #fffcf6;
      --ink: #1c1915;
      --muted: #5c574c;
      --line: #d4cdc0;
      --line-strong: #b7b09f;
      --clear: #0f6b42;
      --clear-bg: #e4f3ea;
      --alert: #9b1c1c;
      --alert-bg: #f8e8e4;
      --warn: #9a4a0a;
      --accent: #1f4b73;
      --shadow: 0 1px 2px rgba(28, 25, 21, 0.06), 0 8px 24px rgba(28, 25, 21, 0.06);
      --radius: 14px;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(1200px 500px at 10% -10%, #fff8e8 0%, transparent 55%),
        var(--bg);
      line-height: 1.5;
      min-height: 100vh;
    }

    a { color: var(--accent); }
    a:hover { text-decoration-thickness: 2px; }

    .wrap {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
      padding: 28px 0 64px;
    }

    header.top {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 24px;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 18px;
    }

    header.top h1 {
      font-family: "IBM Plex Serif", Georgia, serif;
      font-weight: 600;
      font-size: clamp(1.8rem, 3vw, 2.5rem);
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin: 0;
    }

    .dateline {
      color: var(--muted);
      font-size: 0.95rem;
      text-align: right;
    }

    .dateline strong {
      color: var(--ink);
      font-weight: 600;
    }

    .cadence {
      margin: 0 0 20px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .metrics {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 18px;
      max-width: 28rem;
    }

    .metric {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 14px 16px;
      box-shadow: var(--shadow);
    }

    .metric .label {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .metric .value {
      font-size: 1.45rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-top: 2px;
    }

    .metric .detail {
      color: var(--muted);
      font-size: 0.88rem;
    }

    .panel {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      margin-bottom: 18px;
    }

    .panel h2 {
      font-size: 1rem;
      font-weight: 600;
      margin: 0;
      padding: 14px 16px 10px;
    }

    #map {
      width: 100%;
      height: min(62vh, 560px);
      min-height: 280px;
      background: var(--bg-deep);
    }

    .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      padding: 10px 16px 14px;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .legend span { display: inline-flex; align-items: center; gap: 6px; }
    .swatch {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
      box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor;
    }
    .swatch.clear { color: var(--clear); background: var(--clear); }
    .swatch.active { color: var(--alert); background: var(--alert); }

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

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
    }

    th, td {
      padding: 10px 12px;
      border-top: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
    }

    th {
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      background: #faf7f0;
      position: sticky;
      top: 0;
      white-space: nowrap;
    }

    th button {
      font: inherit;
      color: inherit;
      text-transform: inherit;
      letter-spacing: inherit;
      background: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    th button:hover, th button:focus-visible { color: var(--ink); }

    th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 0.7em; }
    th[aria-sort="descending"] button::after { content: " ▼"; font-size: 0.7em; }

    td.empty { color: #a39c90; }

    .place-cell { font-weight: 600; min-width: 10rem; }
    .error, .status-msg {
      padding: 10px 16px;
      color: var(--alert);
      background: var(--alert-bg);
      border-radius: 10px;
      margin-bottom: 16px;
    }

    footer {
      margin-top: 8px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.85rem;
    }

    footer h2 {
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 8px;
    }

    footer ul {
      margin: 0 0 12px;
      padding-left: 1.15rem;
    }

    footer li { margin: 2px 0; }

    .note {
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    @media (max-width: 640px) {
      .wrap { width: min(100% - 24px, 1120px); padding-top: 20px; }
      .metrics { grid-template-columns: 1fr; max-width: none; }
      .dateline { text-align: left; }
      #map { height: 52vh; }
    }

    @media (prefers-reduced-motion: reduce) {
      * { transition: none !important; }
    }

    .region-nav {
      margin: 0 0 22px;
    }
    .region-nav h2 {
      font-size: 1rem;
      font-weight: 600;
      margin: 0 0 10px;
    }
    .region-nav ul {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 10px;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .region-nav a {
      display: inline-block;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 12px;
      text-decoration: none;
      font-size: 0.9rem;
      box-shadow: var(--shadow);
      color: var(--accent);
    }
    .region-nav a:hover { text-decoration: underline; }
    a.place-link { color: inherit; text-decoration: none; }
    a.place-link:hover { color: var(--accent); text-decoration: underline; }

    .back-link {
      display: inline-block;
      margin: 0 0 16px;
      font-size: 0.92rem;
    }
    .region-lede {
      color: var(--muted);
      margin: 0 0 18px;
      max-width: 42rem;
    }
    /* Ko-fi tip line at the bottom of the page */
    .kofi{max-width:1200px;margin:48px auto 36px;padding:0 24px;text-align:center;color:var(--muted);font-size:14px}
    .kofi a{color:var(--accent);text-decoration:none}
    .kofi a:hover{text-decoration:underline}
