/* Shared stylesheet for the landing pages under /maps/. Hand-written and served as-is (the generator
   only writes the per-list HTML). Deliberately NOT the app's own styles.css — that one is inlined into
   the app's single HTML file at build time and is not reachable from here.

   System fonts on purpose: these are text pages, and downloading the app's "Schibsted Grotesk" would
   cost a render-blocking round trip for no gain. Colours mirror the app's dark theme so clicking
   through to the map feels continuous. */

:root {
  --bg: #12161c;
  --surface: #1a2029;
  --text: #e8ecf1;
  --text-2: #a8b3c1;
  --text-3: #7d8794;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ef8f3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.top { border-bottom: 1px solid var(--line); padding: 14px 20px; }
.brand { color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: 0.2px; }
.brand:hover { color: var(--accent); }

main { max-width: 760px; margin: 0 auto; padding: 32px 20px 8px; }

h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 22px; }
p { margin: 0 0 16px; color: var(--text-2); }

.cta-wrap { margin: 26px 0 30px; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #1b1205;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }

/* The table can be wider than a phone; let IT scroll rather than the page body. */
table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; display: block; overflow-x: auto; }
thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: var(--surface); }
.n { color: var(--text-3); width: 1%; }
.r { text-align: right; }
/* The population estimates are not all from the same year (2011-2020), so each carries its own. */
.yr { color: var(--text-3); font-size: 12px; margin-left: 4px; }

.note { font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 16px; }

footer { max-width: 760px; margin: 0 auto; padding: 8px 20px 40px; }
footer p { font-size: 14px; color: var(--text-3); }
footer a, .note a { color: var(--text-2); }
/* Row links (the languages table) take the page accent rather than the browser default blue. */
tbody a { color: var(--accent); text-decoration: none; font-weight: 600; }
tbody a:hover { text-decoration: underline; }

/* The app is dark-only, but a text page should respect a light preference. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --surface: #f1efe9;
    --text: #1b2027;
    --text-2: #3d4650;
    --text-3: #6b7581;
    --line: rgba(0, 0, 0, 0.12);
  }
}
