/* Generert av tools/build_kommuner.py — ikke rediger for hånd. */
* { box-sizing: border-box; }
body { font-family: "DM Sans", system-ui, sans-serif; margin: 0; color: oklch(0.22 0.04 60); line-height: 1.6;
  background:
    radial-gradient(ellipse at 80% -10%, oklch(0.92 0.13 80) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 110%, oklch(0.88 0.10 50) 0%, transparent 55%),
    linear-gradient(180deg, oklch(0.97 0.04 85) 0%, oklch(0.95 0.05 75) 100%);
  background-attachment: fixed; min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 40px 16px 72px; }
@media (min-width: 700px) { .container { padding-left: 24px; padding-right: 24px; } }
.kicker { display: inline-block; font-size: 11px; letter-spacing: 0.18em; font-weight: 600; color: oklch(0.5 0.05 55);
  text-transform: uppercase; padding: 6px 12px; border: 1px solid oklch(0.85 0.04 75); border-radius: 999px;
  background: oklch(0.99 0.01 80 / 0.7); }
h1 { font-family: "Newsreader", Georgia, serif; font-size: clamp(32px, 4.5vw, 48px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.08; color: oklch(0.22 0.05 55); margin: 18px 0 14px; text-wrap: balance; }
h1 em { font-style: italic; color: oklch(0.55 0.18 55); }
h2 { font-family: "Newsreader", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em;
  color: oklch(0.22 0.05 55); margin: 44px 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; color: oklch(0.25 0.05 55); }
p { max-width: 72ch; }
a { color: oklch(0.45 0.12 40); }
.lede { font-size: 17px; color: oklch(0.32 0.03 60); max-width: 68ch; margin: 0 0 8px; }
.lede b { color: oklch(0.22 0.05 55); }
.note { font-size: 13.5px; color: oklch(0.45 0.04 58); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin: 26px 0 8px; }
.tile { background: oklch(0.99 0.005 85 / 0.8); border: 1px solid oklch(0.86 0.04 75); border-radius: 16px; padding: 16px 18px; }
.tile .lbl { font-size: 12.5px; color: oklch(0.45 0.04 58); font-weight: 600; }
.tile .val { font-family: "Newsreader", Georgia, serif; font-size: 30px; font-weight: 600; color: oklch(0.25 0.06 50);
  line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tile .val small { font-family: "DM Sans", system-ui, sans-serif; font-size: 14px; font-weight: 500; color: oklch(0.45 0.04 58); }
.tile .sub { font-size: 12.5px; color: oklch(0.45 0.04 58); }
.panel { background: oklch(0.99 0.005 85 / 0.78); border: 1px solid oklch(0.86 0.04 75); border-radius: 18px; padding: 20px 22px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; fill: oklch(0.42 0.04 58); }
.chart .bar { fill: oklch(0.72 0.15 65); }
.chart .bar.snow { fill: oklch(0.9 0.03 230); }
.chart .val { fill: oklch(0.3 0.05 55); font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: oklch(0.42 0.04 58); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 8px 12px; border-top: 1px solid oklch(0.9 0.02 75); vertical-align: top; }
table.data th { font-weight: 600; color: oklch(0.3 0.05 55); border-top: 0; background: oklch(0.96 0.02 80); }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tr.sum td { font-weight: 600; border-top: 2px solid oklch(0.8 0.04 70); }
.barcell { width: 32%; min-width: 90px; }
.hbar { height: 10px; border-radius: 5px; background: oklch(0.7 0.1 230); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.cta { margin: 34px 0 0; background: oklch(0.28 0.04 55); border-radius: 18px; padding: 22px 24px; color: oklch(0.92 0.03 80); }
.cta h2 { color: oklch(0.97 0.02 85); margin: 0 0 6px; font-size: 24px; }
.cta p { margin: 0 0 14px; font-size: 14.5px; }
.cta form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 999px;
  border: 1px solid oklch(0.6 0.04 60); background: oklch(0.99 0.01 85); color: oklch(0.22 0.04 60); }
.cta button { font: inherit; font-size: 14.5px; font-weight: 600; padding: 11px 22px; border-radius: 999px; border: 0;
  background: oklch(0.6 0.18 50); color: oklch(0.99 0.01 85); cursor: pointer; }
.cta button:hover { background: oklch(0.55 0.18 45); }
.cta a { color: oklch(0.88 0.1 80); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero__live { max-width: 380px; } }
.hero__live iframe { width: 100%; height: 220px; border: 0; border-radius: 16px; display: block;
  background: oklch(0.28 0.04 55); box-shadow: 0 10px 30px oklch(0.4 0.06 55 / 0.12); }
.widget { margin: 22px 0 0; background: oklch(0.96 0.02 80); border: 1px solid oklch(0.88 0.03 75); border-radius: 18px; padding: 20px 22px; }
.widget h2 { margin: 4px 0 8px; font-size: 22px; }
.widget p { margin: 0 0 12px; font-size: 14.5px; }
.widget__kode { margin: 0 0 10px; padding: 12px 14px; overflow-x: auto; background: oklch(0.24 0.03 55);
  color: oklch(0.93 0.02 85); border-radius: 12px; font-size: 12.5px; line-height: 1.5; }
.widget__kopi { font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; margin-right: 10px; border-radius: 999px;
  border: 1px solid oklch(0.75 0.08 50); background: oklch(0.99 0.01 85); color: oklch(0.4 0.13 45); cursor: pointer; }
.widget__kopi:hover { border-color: oklch(0.6 0.15 45); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.tools a { display: block; text-decoration: none; color: inherit; background: oklch(0.99 0.005 85 / 0.8);
  border: 1px solid oklch(0.88 0.03 75); border-radius: 12px; padding: 14px 16px; }
.tools a:hover { border-color: oklch(0.75 0.08 50); }
.tools b { display: block; color: oklch(0.45 0.13 40); }
.tools span { font-size: 13px; color: oklch(0.42 0.04 58); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.chips a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid oklch(0.86 0.04 75);
  background: oklch(0.99 0.01 80 / 0.8); text-decoration: none; font-size: 14px; }
.chips a:hover { border-color: oklch(0.7 0.08 50); }
.chips small { color: oklch(0.5 0.04 58); }
.cols { columns: 4 200px; column-gap: 24px; padding: 0; list-style: none; margin: 8px 0 0; }
.cols li { break-inside: avoid; padding: 2px 0; font-size: 14.5px; }
.fylkeblokk { margin: 28px 0 0; }
.fylkeblokk h2 { margin-top: 0; font-size: 22px; }
.sources { margin-top: 48px; padding-top: 18px; border-top: 1px solid oklch(0.85 0.04 75); font-size: 13.5px; color: oklch(0.4 0.04 58); }
.sources h2 { font-size: 20px; margin-top: 0; }
.sources ol, .sources ul { padding-left: 20px; margin: 6px 0 14px; }
.sources li { margin: 4px 0; max-width: 90ch; }
@media print { .sk-nav, .sk-footer, .cta, .tools { display: none; } body { background: #fff; } }
