/* The suburb, area and guide pages (built by tools/build_site.mjs). Same palette and type
   as the map in styles.css, laid out as a document rather than an app. No inline styles
   anywhere: the site's Content-Security-Policy doesn't allow them. */

:root {
  color-scheme: light dark;
  --accent: #1c6b8f;
  --accent-soft: rgba(28, 107, 143, 0.1);
  --on-accent: #fff;
  --label: #000;
  --secondary: #5f5f67;
  --grouped: #f2f2f7;
  --card: #fff;
  --separator: rgba(60, 60, 67, 0.16);
  --head: rgba(250, 250, 252, 0.86);
  --up: #1a7f37;
  --down: #c62828;
  --warn: #b45f06;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5cb8db;
    --accent-soft: rgba(92, 184, 219, 0.16);
    --on-accent: #04222e;
    --label: #fff;
    --secondary: #a9a9b2;
    --grouped: #000;
    --card: #1c1c1e;
    --separator: rgba(120, 120, 128, 0.36);
    --head: rgba(22, 22, 24, 0.86);
    --up: #30d158;
    --down: #ff6961;
    --warn: #ff9f0a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; font: 17px/1.5 var(--font); color: var(--label); background: var(--grouped);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 650; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--secondary); }
.up { color: var(--up); }
.down { color: var(--down); }
.up, .down { white-space: nowrap; font-weight: 600; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 5; }
.skip:focus { top: 12px; }

/* ---------- Header and footer ---------- */

.site-head { background: var(--head); border-bottom: 1px solid var(--separator); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--label); letter-spacing: -0.2px; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.site-head ul, .site-foot ul, .crumbs ol, .chips, .letters ul, .index, .links, .guide-list { list-style: none; margin: 0; padding: 0; }
.site-head ul { display: flex; gap: 2px; flex-wrap: wrap; margin: 0 -10px; }
.site-head nav a { display: block; padding: 6px 10px; border-radius: 9px; font-size: 15px; font-weight: 500; }
.site-head nav a:hover { background: var(--accent-soft); text-decoration: none; }
.site-head nav a[aria-current] { color: var(--label); font-weight: 650; }

.site-foot { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid var(--separator); font-size: 14px; color: var(--secondary); line-height: 1.45; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.site-foot p { margin: 0 0 8px; max-width: 70ch; }

/* ---------- Text ---------- */

main { padding-top: 18px; }
.crumbs { font-size: 14px; color: var(--secondary); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--secondary); }
h1 { font-size: clamp(28px, 5.4vw, 40px); line-height: 1.12; letter-spacing: -0.6px; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.3px; margin: 44px 0 10px; text-wrap: balance; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 14px; max-width: 70ch; }
.where { color: var(--secondary); font-size: 16px; margin-bottom: 14px; }
.lede { font-size: 19px; line-height: 1.45; }
.note { font-size: 14px; color: var(--secondary); line-height: 1.45; margin-top: 10px; }
.caution { background: var(--card); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 16px; font-size: 15.5px; line-height: 1.45; max-width: none; }
abbr { text-decoration: none; color: var(--warn); font-weight: 700; margin-left: 1px; }
.notes { margin: 0 0 14px; padding-left: 20px; max-width: 70ch; }
.notes li { margin-bottom: 8px; }
.links { margin-bottom: 14px; }
.links li { padding: 5px 0; }

/* ---------- Headline figures ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; margin: 20px 0; }
.tile { background: var(--card); border-radius: 14px; padding: 13px 15px 12px; display: flex; flex-direction: column; }
.tile dt { font-size: 13px; color: var(--secondary); order: 0; }
.tile dd { margin: 2px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.tile dd.tile-note { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--secondary); margin-top: 1px; }

/* ---------- The way into the map ---------- */

.map-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  background: var(--accent-soft); border-radius: 16px; padding: 18px 20px; margin: 22px 0 8px;
}
.map-card div { flex: 1 1 320px; }
.map-card h2 { margin: 0 0 4px; font-size: 20px; }
.map-card p { margin: 0; font-size: 15.5px; line-height: 1.4; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 650; text-align: center;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- Tables ---------- */

/* Positioned, so the hidden caption and labels inside a wide table scroll with it instead of widening the page. */
.table-scroll { position: relative; background: var(--card); border-radius: 14px; overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: left; vertical-align: baseline; border-top: 1px solid var(--separator); }
thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--secondary); vertical-align: bottom; padding-top: 12px; }
tbody th { font-weight: 500; }
.num { text-align: right; white-space: nowrap; }
td:first-child, th:first-child { padding-left: 16px; }
td:last-child, th:last-child { padding-right: 16px; }
.ledger tbody tr:last-child > * { font-weight: 700; }

.facts { background: var(--card); border-radius: 14px; margin: 14px 0; padding: 2px 16px; max-width: 560px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--separator); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--secondary); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Price trend ---------- */

.trend { margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.trend .table-scroll { margin: 0; }
.chart { display: block; width: 100%; height: auto; background: var(--card); border-radius: 14px; font-family: var(--font); }
.chart .grid, .chart .base { stroke: var(--separator); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .axis { fill: var(--secondary); font-size: 11px; }
.chart .value { fill: var(--label); font-size: 12px; font-weight: 700; }
.chart .area { fill: var(--accent); opacity: 0.1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--accent); opacity: 0.07; }

/* ---------- Lists of links ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chips a { display: block; background: var(--card); padding: 7px 13px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.chips a:hover { background: var(--accent-soft); text-decoration: none; }

.letters ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; }
.letters a { display: grid; place-items: center; min-width: 38px; height: 38px; background: var(--card); border-radius: 10px; font-weight: 650; }
.index { columns: 240px 3; column-gap: 28px; }
.index li { break-inside: avoid; padding: 4px 0; line-height: 1.3; }
.index span { color: var(--secondary); font-size: 13px; white-space: nowrap; }

.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 14px 0; }
.guide-list li { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.guide-list a { font-weight: 650; }
.guide-list p { margin: 4px 0 0; font-size: 14px; color: var(--secondary); line-height: 1.4; }

/* ---------- Questions ---------- */

.faq { background: var(--card); border-radius: 14px; padding: 2px 16px; margin: 14px 0; }
.faq-item { padding: 14px 0; border-top: 1px solid var(--separator); }
.faq-item:first-child { border-top: 0; }
.faq-item p { margin: 0; max-width: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .lede { font-size: 17.5px; }
  h2 { margin-top: 36px; font-size: 21px; }
  th, td { padding: 9px 10px; }
  table { font-size: 14.5px; }
  .tile dd { font-size: 21px; }
  .map-card .button { width: 100%; }
}
