:root {
  --paper:#fff;
  --canvas:#f4f6f8;
  --ink:#182b3b;
  --ink-2:#435465;
  --ink-3:#586573;
  --muted:#5f6b78;
  --rule:#dce2e7;
  --faint:#e8edf1;
  --accent:#b14a35;
  --teal:#2463a5;
  --fjord:#2463a5;
  --fjord-2:#779cc3;
  --sans:"Public Sans",Arial,sans-serif;
  --serif:"Newsreader",Georgia,serif;
  --card:#fff;
  --signal:#b14a35;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:84px;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:15px/1.6 var(--sans);
  font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-underline-offset:4px;
}

button,input,select {
  font:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:4px;
}

button {
  cursor:pointer;
}

a:hover {
  color:var(--teal);
}

.site-header {
  border-bottom:1px solid var(--rule);
  background:#fff;
}

.site-header__inner {
  max-width:1360px;
  margin:auto;
  padding:0 40px;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.wordmark {
  font-size:20px;
  padding-block:3px;
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.8px;
  text-decoration:none;
  color:var(--ink);
}

.site-header nav {
  display:flex;
  align-items:center;
  gap:30px;
  font-size:13px;
}

.site-header nav a {
  text-decoration:none;
  color:var(--ink-2);
  padding:26px 0;
}

.site-header nav a[aria-current=page] {
  color:var(--teal);
  box-shadow:inset 0 -2px var(--teal);
}

.site-header .source-link {
  font-size:12px;
  color:var(--ink-3);
}

.page-width {
  max-width:1360px;
  padding:0 40px;
  margin:auto;
}

.eyebrow,.kicker {
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.eyebrow {
  margin:0 0 20px;
}

.national-hero {
  display:grid;
  grid-template-columns:1fr 390px;
  align-items:center;
  gap:90px;
  padding-top:44px;
  padding-bottom:38px;
}

.national-hero h1 {
  font:500 66px/1.03 var(--serif);
  letter-spacing:-2px;
  margin:0 0 15px;
}

.national-hero .intro {
  font-size:16px;
  line-height:1.6;
  max-width:49ch;
  color:var(--ink-2);
  margin:0;
}

.data-stamp {
  font-size:12px;
  color:var(--ink-3);
  margin:18px 0 0;
}

.search-box label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:9px;
}

.search-input {
  position:relative;
}

.search-input input {
  width:100%;
  height:52px;
  padding:0 45px 0 16px;
  background:#fff;
  border:1px solid #9caab7;
  border-radius:3px;
  font-size:14px;
  color:var(--ink);
}

.search-input button {
  position:absolute;
  right:0;
  top:0;
  height:52px;
  width:44px;
  background:none;
  border:0;
  color:var(--teal);
  font-size:22px;
}

.search-box small {
  display:block;
  overflow-wrap:anywhere;
  margin-top:8px;
  color:var(--ink-3);
  font-size:12px;
}

.explorer {
  background:var(--canvas);
  border-top:1px solid var(--rule);
  padding:0 0 44px;
}

.topic-nav {
  display:flex;
  gap:30px;
  border-bottom:1px solid var(--rule);
  overflow-x:auto;
  scrollbar-width:none;
}

.topic-nav button {
  border:0;
  background:none;
  padding:20px 0 16px;
  color:var(--ink-3);
  font-size:13px;
  white-space:nowrap;
}

.topic-nav button[aria-pressed=true] {
  box-shadow:inset 0 -2px var(--teal);
  color:var(--teal);
  font-weight:600;
}

.explorer-heading {
  display:flex;
  gap:28px;
  justify-content:space-between;
  align-items:center;
  padding:29px 0 24px;
}

.explorer-heading h2 {
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.6px;
  margin:0 0 8px;
  font-weight:600;
}

.explorer-heading p {
  margin:0;
  font-size:12px;
  color:var(--ink-3);
}

.metric-control {
  flex-shrink:0;
  max-width:48%;
}

.metric-control label {
  font-size:12px;
  color:var(--ink-3);
  display:block;
  margin-bottom:5px;
}

.metric-control select {
  width:340px;
  max-width:100%;
  background:#fff;
  border:1px solid var(--rule);
  padding:11px 34px 11px 12px;
  border-radius:3px;
  font-size:13px;
  color:var(--ink);
}

.explorer-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(330px,1fr);
  gap:24px;
  align-items:start;
}

.map-panel,.ranking-panel {
  background:#fff;
  border:1px solid var(--rule);
  min-width:0;
  border-radius:3px;
}

.map-context {
  padding:19px 22px 16px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-bottom:1px solid var(--faint);
  gap:18px;
}

.map-context dt {
  font-size:12px;
  color:var(--ink-3);
  margin:0 0 4px;
}

.map-context dd {
  margin:0;
  font-size:23px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.8px;
}

.map-context .context-note {
  display:block;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:0;
  color:var(--ink-3);
  margin-top:4px;
  overflow-wrap:break-word;
}

#map {
  height:585px;
  width:100%;
}

.map-footer {
  padding:13px 20px;
  border-top:1px solid var(--faint);
  font-size:12px;
  line-height:1.5;
  color:var(--ink-3);
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.map-footer button {
  border:0;
  background:none;
  padding:0;
  color:var(--teal);
  font-size:12px;
  white-space:nowrap;
}

.ranking-heading {
  padding:20px 20px 15px;
  border-bottom:1px solid var(--rule);
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:baseline;
}

.ranking-heading h3 {
  font-size:14px;
  margin:0;
  font-weight:600;
}

.ranking-heading span {
  font-size:12px;
  color:var(--ink-3);
}

.rank {
  list-style:none;
  margin:0;
  padding:0 20px;
}

.rank.clipped li:nth-child(n+16) {
  display:none;
}

.rank li a {
  display:grid;
  grid-template-columns:23px minmax(0,1fr) auto;
  gap:7px 12px;
  align-items:start;
  box-sizing:border-box;
  height:52px;
  border-bottom:1px solid var(--faint);
  padding:10px 0;
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
}

.rank li a:hover {
  color:var(--teal);
}

.rank .n {
  font-size:12px;
  color:var(--ink-3);
}

.rank .v {
  font-weight:600;
  font-size:12px;
  align-self:start;
  min-width:76px;
  text-align:right;
}

.rank .fy {
  display:inline;
  color:var(--ink-3);
  font-size:12px;
  margin-left:8px;
}

/* Every bar sits in the same track: it starts under the kommune name and runs to the value. */
.rank .bar {
  grid-column:2 / -1;
  grid-row:2;
  position:relative;
  height:6px;
  background:#eef2f6;
}

.rank .bar i {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  max-width:100%;
  background:#6f93bb;
}

.rank .bar i.neg {
  background:#b9806c;
}

/* Signed indicators grow both ways from a visible zero line in the middle of the track. */
.rank.signed .bar::after {
  content:"";
  position:absolute;
  left:50%;
  top:-2px;
  bottom:-2px;
  width:1px;
  background:#5f6b78;
}

.rank li a > span:nth-child(2) {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.rank li.na {
  color:var(--ink-3);
}

.source-footer {
  padding-top:35px;
  padding-bottom:45px;
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:40px;
  font-size:12px;
  color:var(--ink-3);
}

.source-footer h2 {
  font-size:14px;
  color:var(--ink);
  margin:0;
}

.source-footer p {
  margin:0 0 10px;
  max-width:85ch;
}

.source-footer a {
  color:var(--teal);
}

/* Municipality profile */
.profile {
  padding-bottom:0;
}

.profile .masthead {
  display:none;
}

.profile .wrap,.profile .colophon {
  max-width:1280px;
  margin:0 auto;
}

.profile #sheets {
  padding:0 40px;
}

.profile .wrap {
  border-bottom:1px solid var(--rule);
  scroll-margin-top:70px;
}

.profile .sheet {
  padding:42px 0 30px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:28px;
}

.profile .lead {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  column-gap:70px;
  align-items:start;
  min-width:0;
}

.profile .kicker {
  grid-column:1/-1;
  margin:0 0 18px;
  color:var(--ink-3);
}

.kicker .n {
  color:var(--teal);
  margin-right:10px;
  font-weight:600;
  letter-spacing:0;
}

.profile h1,.profile .chapter-title {
  font:500 40px/1.08 var(--serif);
  letter-spacing:-1px;
  margin:0;
  max-width:25ch;
  text-wrap:pretty;
}

.profile h1 em,.profile .chapter-title em,.finding em {
  font-style:normal;
  color:inherit;
}

.profile .dek {
  font-size:13px;
  line-height:1.7;
  color:var(--ink-2);
  margin:0;
  max-width:62ch;
}

.profile .dek b {
  font-weight:600;
  color:var(--ink);
}

.profile .stats {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  margin:24px 0 0;
  padding-top:19px;
  border-top:1px solid var(--rule);
}

.stat {
  min-width:0;
  margin:0;
  padding-right:24px;
  border-right:1px solid var(--rule);
}

.stat:last-child {
  border:0;
}

.stat dt {
  font-size:13px;
  color:var(--ink-3);
  font-weight:500;
}

.stat .v {
  margin:7px 0 0;
  font-size:31px;
  font-weight:500;
  line-height:1.2;
  letter-spacing:-1px;
  color:var(--ink);
}

.stat .v small {
  font-size:13px;
  font-weight:400;
  margin-left:5px;
  letter-spacing:0;
  color:var(--ink-3);
}

.stat .note {
  font-size:13px;
  line-height:1.5;
  color:var(--ink-3);
  margin:6px 0 0;
}

.stat.hot .v {
  color:var(--accent);
}

.profile .main {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:32px;
  min-width:0;
}

.fig {
  min-width:0;
  margin:0;
}

.fig h4,
.cover .fig h2 {
  font-size:16px;
  font-weight:600;
  letter-spacing:-.3px;
  line-height:1.4;
  margin:0;
}

.fig h4 em {
  font-style:normal;
  color:inherit;
}

.fig .cap {
  font-size:14px;
  line-height:1.6;
  color:var(--ink-3);
  margin:5px 0 0;
}

.figure-index {
  display:none;
}

.chart {
  height:320px;
  width:100%;
  margin-top:20px;
  min-width:0;
}

.fig.side .chart {
  height:320px;
}

.chart-key {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:12px;
  font-size:12px;
  color:var(--ink-2);
  line-height:1.3;
}

.key-item {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.key-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--teal);
}

.key-dot.negative {
  background:var(--accent);
}

.key-line {
  width:17px;
  border-top:2px solid var(--teal);
}

.key-line.national {
  border-top:2px dashed #8897a7;
}

.key-line.tbu {
  border-top:1px dashed #8b9aa7;
}

.key-tick {
  height:12px;
  width:2px;
  background:var(--ink-3);
}

.key-tick.faint {
  background:#bac6d0;
}

.figure-note {
  font-size:14px;
  line-height:1.6;
  color:var(--ink-3);
  margin:14px 0 0;
}

.profile .foot {
  display:flex;
  gap:20px;
  justify-content:space-between;
  color:var(--ink-3);
  font-size:14px;
  line-height:1.5;
  border-top:1px solid var(--faint);
  padding-top:13px;
  grid-column:1/-1;
}

.foot b {
  font-weight:400;
  flex-shrink:0;
}

.profile .cover {
  padding-top:34px;
  gap:32px;
}

.profile .cover .lead {
  grid-template-columns:minmax(0,1fr) 240px;
  column-gap:80px;
}

.cover .kicker {
  grid-column:1;
  margin-bottom:15px;
}

.profile .name {
  font:500 76px/.96 var(--serif);
  letter-spacing:-2.5px;
  overflow-wrap:normal;
  max-width:none;
}

.finding {
  grid-column:1;
  font:400 18px/1.5 var(--serif);
  letter-spacing:-.15px;
  margin:18px 0 0;
  max-width:52ch;
  color:var(--ink-2);
}

.locator-figure {
  grid-column:2;
  grid-row:1/4;
  margin:0;
  display:flex;
  flex-direction:column-reverse;
  align-self:start;
}

.locator-caption {
  font-size:12px;
  text-align:center;
  color:var(--ink-3);
  margin-top:8px;
}

.locator {
  height:166px;
  width:100%;
  border-radius:3px;
  background:#f5f7f9;
}

.cover .stats {
  margin-top:28px;
  padding:23px 0;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}

.cover .stat .v {
  font-size:40px;
  letter-spacing:-1.7px;
}

.cover .stat dt {
  font-size:12px;
}

.cover .main {
  display:block;
}

.cover .fig {
  max-width:none;
}

.cover .fig h4,
.cover .fig h2 {
  font-size:18px;
}

.cover .chart-key {
  display:none;
}

#c-rank {
  height:auto;
  margin-top:20px;
}

.benchmark-table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:12px;
  table-layout:fixed;
}

.benchmark-table thead {
  color:var(--ink-3);
  font-size:12px;
}

.benchmark-table th {
  font-weight:500;
  padding:0 0 12px;
  border-bottom:1px solid var(--rule);
}

.benchmark-table th:first-child {
  width:31%;
}

.benchmark-table th:nth-child(2) {
  width:17%;
}

.benchmark-table th:nth-child(3) {
  width:20%;
}

.benchmark-table td {
  padding:12px 0;
  border-bottom:1px solid var(--faint);
  vertical-align:middle;
}

.benchmark-table td:first-child {
  font-weight:500;
}

.benchmark-table td:nth-child(2) {
  font-weight:600;
}

.benchmark-cell {
  display:flex;
  align-items:center;
  gap:22px;
}

.benchmark-track {
  position:relative;
  display:block;
  flex:1;
  height:2px;
  background:#dce5ed;
  margin:0 6px;
}

.benchmark-track::before {
  content:"";
  position:absolute;
  left:50%;
  height:12px;
  top:-5px;
  width:1px;
  background:#afbac4;
}

.benchmark-track i {
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--teal);
  top:-3.5px;
  transform:translateX(-50%);
}

.benchmark-position {
  font-size:12px;
  color:var(--ink-2);
  width:108px; /* fits "delt 330. av 354" */
  flex-shrink:0;
  text-align:right;
  white-space:nowrap;
}

.benchmark-position b {
  color:var(--ink);
  font-weight:600;
}

.benchmark-endpoints {
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  font-size:12px;
  color:var(--ink-3);
}

.profile #pengar .main {
  grid-template-columns:minmax(0,2.2fr) minmax(0,1fr);
}

.defs {
  border-left:1px solid var(--rule);
  padding-left:28px;
  display:grid;
  gap:20px;
  align-content:start;
}

.defs h4 {
  font-size:14px;
  margin:0 0 7px;
  font-weight:600;
}

.defs p {
  font-size:14px;
  line-height:1.7;
  color:var(--ink-3);
  margin:0;
}

.profile #tenester .main {
  display:block;
}

.profile #tenester .fig {
  max-width:1040px;
}

#c-svc {
  height:540px;
}

#c-emp {
  height:365px;
}

#c-unemp {
  height:365px;
}

#c-ks,#c-st {
  height:290px;
}

#c-ndr {
  height:330px;
}

.profile #demokrati .main {
  grid-template-columns:1fr 1fr;
}

.profile #no .main {
  grid-template-columns:1fr;
}

.tiles {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
  margin:0;
}

.tile {
  border-top:1px solid var(--rule);
  padding-top:13px;
}

.tile dt {
  font-size:13px;
  color:var(--ink-3);
}

.tile .v {
  font-size:28px;
  font-weight:500;
  letter-spacing:-.8px;
  line-height:1.2;
  margin:8px 0;
}

.tile .v small {
  font-size:12px;
  font-weight:400;
  margin-left:4px;
  color:var(--ink-3);
  letter-spacing:0;
}

.tile .note {
  font-size:13px;
  color:var(--ink-3);
  line-height:1.6;
  margin:0;
}

.lab {
  font-family:var(--sans);
  white-space:normal;
  text-align:left;
  line-height:1.3;
}

.lab span {
  display:block;
  color:var(--ink);
  font-size:12px;
  font-weight:500;
}

.lab i {
  display:block;
  font-style:normal;
  color:var(--ink-3);
  font-size:12px;
  margin-top:3px;
}

.empty {
  padding:28px 0;
  font-size:13px;
  color:var(--ink-3);
}

.hud {
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--rule);
  padding:0 max(40px,calc((100vw - 1280px)/2));
  display:flex;
  align-items:center;
  gap:30px;
  font-size:12px;
  overflow-x:auto;
  scrollbar-width:none;
}

.hud .brand {
  white-space:nowrap;
  display:flex;
  gap:12px;
  flex-shrink:0;
  padding-right:30px;
  border-right:1px solid var(--rule);
  align-self:stretch;
  align-items:center;
}

.hud .brand a {
  color:var(--teal);
  font-weight:600;
  text-decoration:none;
}

.hud .brand a:hover {
  text-decoration:underline;
}

.hud .brand b {
  font-weight:600;
  color:var(--ink);
}

/* Every chapter link stays visible: on narrower screens the links wrap to a second row instead of scrolling out of sight. */
.hud #hud-nav {
  display:flex;
  flex-wrap:wrap;
  column-gap:28px;
  row-gap:0;
}

.hud #hud-nav a {
  display:block;
  padding:16px 0;
  white-space:nowrap;
  text-decoration:none;
  color:var(--ink-3);
}

.hud #hud-nav a.on {
  color:var(--teal);
  box-shadow:inset 0 -2px var(--teal);
}

.profile .colophon {
  margin-inline:max(40px, (100% - 1280px) / 2);
  padding:35px 0 44px;
  font-size:15px;
  line-height:1.6;
  color:var(--ink-2);
}

.colophon h2 {
  color:var(--ink);
  font:500 29px/1.15 var(--serif);
  margin:0 0 10px;
}

.colophon p {
  max-width:72ch;
  margin:0 0 12px;
}

.colophon ul {
  columns:2;
  column-gap:50px;
  padding:0;
  list-style:none;
  margin:0;
}

.colophon li {
  padding:8px 0;
  border-top:1px solid var(--faint);
  break-inside:avoid;
}

.colophon a {
  color:var(--teal);
}

.notfound {
  max-width:700px;
  margin:100px auto;
  padding:0 20px;
  font:400 20px/1.5 var(--serif);
}

.notfound h1 {
  font:500 40px/1.15 var(--serif);
  margin:0 0 16px;
}

.notfound a {
  text-decoration-skip-ink:none;
}

.notfound .retry-load {
  font:600 15px var(--sans);
  color:#fff;
  background:var(--teal);
  border:0;
  border-radius:3px;
  padding:12px 20px;
  cursor:pointer;
}

.notfound .search-box {
  font-family:var(--sans);
  margin:28px 0 20px;
}

.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.skip-link:focus {
  display:inline-block;
  margin:8px 16px;
  padding:8px 12px;
  background:#fff;
  color:var(--teal);
  font-size:14px;
}

.rank-all {
  display:block;
  margin:12px 20px 20px;
  padding:12px 16px;
  width:calc(100% - 40px);
  border:1px solid var(--rule);
  border-radius:3px;
  background:#fff;
  color:var(--teal);
  font:600 13px var(--sans);
  cursor:pointer;
}

.rank-all:hover {
  border-color:var(--teal);
}

.rank-all[hidden] {
  display:none;
}

/* Holds its place before the list arrives, so nothing below it moves. */
.rank-all.pending {
  visibility:hidden;
}

.rank-less {
  border:0;
  background:none;
  padding:0;
  color:var(--teal);
  font:600 12px var(--sans);
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}

.rank-less[hidden] {
  display:none;
}

.map-failed {
  margin:0;
  padding:40px 24px;
  font-size:14px;
  color:var(--ink-2);
}

/* With the full list open the map stays in view, so hovering a row still points it out.
   The whole panel must fit the window for that: the map gives up height on short screens
   (the rest of the panel is at most about 250px) instead of the panel losing its stickiness. */
@media(min-width:760px) and (min-height:640px) {
  .map-panel {
    position:sticky;
    top:12px;
  }
  #map {
    max-height:max(380px,calc(100vh - 276px));
  }
}

/* From 1100px the panel's text sits on fewer lines (about 195px), so the map can keep more of its height. */
@media(min-width:1100px) and (min-height:640px) {
  #map {
    max-height:max(380px,calc(100vh - 224px));
  }
}

.na-swatch {
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:6px;
  vertical-align:-1px;
  background:#b9c2ca;
}

.breadcrumb {
  font-size:12px;
  color:var(--ink-3);
  padding-top:23px;
  margin:0 40px;
  max-width:1280px;
}

.breadcrumb a {
  text-decoration:none;
  display:inline-block;
  padding-block:6px;
}

.breadcrumb span:not(.k-fylke) {
  margin:0 9px;
  color:#9aa6af;
}

.source-catalog {
  display:flex;
  flex-wrap:wrap;
  gap:8px 22px;
  font-size:12px;
  margin-top:20px;
}

.source-catalog a {
  color:var(--ink-3);
  padding-block:3px;
}

.source-footer p a {
  padding-block:5px;
}

@media(min-width:1360px) {
  .breadcrumb {
    margin:auto;
  }
  .profile .colophon {
    margin:auto;
  }
}

@media(max-width:1000px) {
  .national-hero {
    grid-template-columns:1fr 320px;
    gap:40px;
  }
  .national-hero h1 {
    font-size:56px;
  }
  .explorer-grid {
    grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);
    gap:18px;
  }
  .map-context {
    padding:15px;
    gap:10px;
  }
  .map-context dd {
    font-size:19px;
  }
  .profile .cover .lead {
    column-gap:40px;
  }
  .profile .main {
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
    gap:25px;
  }
  .profile .lead {
    column-gap:35px;
  }
  .profile .name {
    font-size:66px;
  }
  .benchmark-cell {
    gap:10px;
  }
  .benchmark-position {
    width:108px;
  }
  .profile .colophon {
    margin:0 40px;
  }
}

@media(max-width:759px) {
  html {
    scroll-padding-top:65px;
  }
  .site-header__inner {
    padding:0 20px;
    min-height:64px;
    gap:16px;
  }
  .wordmark {
    font-size:17px;
  }
  .site-header nav {
    gap:18px;
    font-size:12px;
  }
  .site-header nav a {
    padding:20px 0;
  }
  .site-header .source-link {
    display:none;
  }
  .page-width {
    padding:0 20px;
  }
  .national-hero {
    display:block;
    padding-top:30px;
    padding-bottom:30px;
  }
  .national-hero h1 {
    font-size:50px;
    letter-spacing:-1.5px;
  }
  .national-hero .intro {
    font-size:14px;
  }
  .eyebrow {
    margin-bottom:15px;
    font-size:12px;
  }
  .search-box {
    margin-top:26px;
  }
  .data-stamp {
    font-size:12px;
    margin-top:14px;
  }
  .topic-nav {
    gap:18px;
  }
  .topic-nav button {
    font-size:12px;
    padding-top:17px;
  }
  .explorer-heading {
    align-items:start;
    flex-direction:column;
    gap:18px;
    padding:23px 0 20px;
  }
  .explorer-heading h2 {
    font-size:22px;
  }
  .metric-control {
    max-width:100%;
    width:100%;
  }
  .metric-control select {
    width:100%;
  }
  .explorer-grid {
    grid-template-columns:1fr;
  }
  .map-context dd {
    font-size:20px;
  }
  .map-context dt {
    font-size:12px;
  }
  .map-context .context-note {
    font-size:12px;
  }
  #map {
    height:490px;
  }
  .rank.clipped li:nth-child(n+11) {
    display:none;
  }
  .rank-all {
    margin-top:8px;
  }
  .ranking-heading {
    padding:17px;
  }
  .map-footer {
    font-size:12px;
    padding:12px 15px;
  }
  .source-footer {
    display:block;
    padding-top:28px;
  }
  .source-footer h2 {
    margin-bottom:15px;
  }
  .profile #sheets {
    padding:0 20px;
  }
  .profile .sheet {
    padding:30px 0 24px;
    gap:24px;
  }
  .profile .lead {
    display:block;
  }
  .profile h1,.profile .chapter-title {
    font-size:34px;
    max-width:25ch;
  }
  .profile .kicker {
    font-size:12px;
    margin-bottom:15px;
  }
  .profile .dek {
    margin-top:15px;
    font-size:12px;
  }
  .profile .stats {
    display:grid;
    gap:13px;
    margin-top:22px;
    padding-top:16px;
  }
  .stat {
    padding-right:10px;
  }
  .stat dt {
    font-size:13px;
    line-height:1.5;
    min-height:36px;
  }
  .stat .v {
    font-size:25px;
    letter-spacing:-.7px;
  }
  .stat .v small {
    font-size:12px;
    margin:0 0 0 4px;
  }
  .stat .note {
    font-size:13px;
  }
  .profile .cover .lead {
    display:grid;
    grid-template-columns:1fr 100px;
    column-gap:12px;
  }
  .profile .cover {
    padding-top:25px;
  }
  .cover .kicker {
    grid-column:1/-1;
  }
  .profile .name {
    font-size:49px;
    letter-spacing:-1.5px;
    grid-column:1;
  }
  .finding {
    font-size:16px;
    grid-column:1/-1;
    margin-top:18px;
  }
  .locator-figure {
    grid-row:2;
    grid-column:2;
    align-self:center;
  }
  .locator {
    height:85px;
  }
  .locator-caption {
    display:none;
  }
  .cover .stats {
    padding:18px 0;
    margin-top:22px;
    grid-column:1/-1;
  }
  .cover .stat dt {
    font-size:12px;
  }
  .cover .stat .v {
    font-size:29px;
    letter-spacing:-.8px;
  }
  .cover .main {
    display:block;
  }
  .profile .main,.profile #pengar .main,.profile #demokrati .main {
    grid-template-columns:1fr;
    gap:28px;
  }
  .fig h4,
  .cover .fig h2 {
    font-size:16px;
  }
  .fig .cap {
    font-size:14px;
  }
  .chart,.fig.side .chart {
    height:280px;
  }
  .profile #tenester .fig {
    max-width:none;
  }
  #c-emp {
    height:380px;
  }
  #c-unemp {
    height:250px;
  }
  #c-ks {
    height:230px;
  }
  #c-st {
    height:290px;
  }
  #c-ndr {
    height:290px;
  }
  #c-svc {
    height:760px;
  }
  .defs {
    border-left:0;
    border-top:1px solid var(--rule);
    padding:20px 0 0;
    gap:16px;
  }
  .defs h4 {
    margin-bottom:4px;
  }
  .tiles {
    grid-template-columns:1fr 1fr;
    gap:22px;
  }
  .hud {
    padding:0 20px;
  }
  .hud #hud-nav {
    column-gap:24px;
  }
  .hud #hud-nav a {
    padding:14px 0;
  }
  .profile .foot {
    font-size:13px;
  }
  .profile .colophon {
    margin:0 20px;
    padding-top:28px;
  }
  .colophon ul {
    columns:1;
  }
  .breadcrumb {
    margin:0 20px;
    padding-top:18px;
    font-size:12px;
  }
  .benchmark-table thead {
    display:none;
  }
  .benchmark-table,.benchmark-table tbody {
    display:block;
  }
  .benchmark-table tr {
    display:grid;
    grid-template-columns:1fr auto;
    border-bottom:1px solid var(--rule);
    padding:12px 0;
    gap:4px 12px;
  }
  .benchmark-table td {
    padding:0;
    border:0;
  }
  .benchmark-table td:first-child {
    font-size:12px;
  }
  .benchmark-table td:nth-child(2) {
    text-align:right;
    font-size:12px;
  }
  .benchmark-table td:nth-child(3) {
    font-size:12px;
    color:var(--ink-3);
    grid-column:1/-1;
  }
  .benchmark-table td:nth-child(3)::before {
    content:"Median, alle kommuner: ";
  }
  .benchmark-table td:last-child {
    grid-column:1/-1;
    padding-top:8px;
  }
  .benchmark-position {
    width:108px;
    font-size:12px;
  }
  .benchmark-endpoints {
    display:none;
  }
  .benchmark-cell {
    gap:20px;
  }
  .profile .cover .fig h4,
  .profile .cover .fig h2 {
    font-size:17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}

@media print {
  @page {
    size:A3 landscape;
    margin:14mm;
  }
  body {
    print-color-adjust:exact;
    -webkit-print-color-adjust:exact;
  }
  .site-header,.hud,.breadcrumb,.colophon {
    display:none!important;
  }
  .profile #sheets {
    padding:0;
  }
  .profile .wrap {
    max-width:none;
    break-after:page;
    border:0;
  }
  .profile .sheet {
    padding:0;
    gap:25px;
  }
  .profile .lead {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .profile .cover .lead {
    grid-template-columns:1fr 200px;
  }
  .profile .main {
    display:grid;
    grid-template-columns:1.6fr 1fr;
  }
  .profile #pengar .main {
    grid-template-columns:2fr 1fr;
  }
  .profile #tenester .main {
    display:block;
  }
  .profile #demokrati .main {
    grid-template-columns:1fr 1fr;
  }
  .profile #no .main {
    display:block;
  }
  .profile .stats {
    display:grid;
  }
  .profile h1,.profile .chapter-title {
    font-size:35px;
  }
  .profile .name {
    font-size:65px;
  }
  .chart,.fig.side .chart {
    height:330px;
  }
  #c-svc {
    height:540px;
  }
  #c-rank {
    height:auto;
  }
  .benchmark-table {
    font-size:12px;
  }
  .benchmark-table,.benchmark-table tbody {
    display:table;
    width:100%;
  }
  .benchmark-table tbody {
    display:table-row-group;
  }
  .benchmark-table tr {
    display:table-row;
  }
  .benchmark-table thead {
    display:table-header-group;
  }
  .benchmark-table td {
    display:table-cell;
    padding:10px 0;
    border-bottom:1px solid var(--rule);
  }
  .benchmark-table td:nth-child(3)::before {
    content:none;
  }
  .benchmark-endpoints {
    display:flex;
  }
  .profile .foot {
    margin-top:20px;
  }
}

/* Refinements from browser review. */
html {
  scroll-padding-top:64px;
}

.profile .wrap {
  scroll-margin-top:0;
}

.hud {
  background:#fff;
}

.map-context {
  margin:0;
}

.stat.hot .v {
  color:var(--ink);
}

@media(min-width:760px) {
  .national-hero {
    padding-top:34px;
    padding-bottom:28px;
  }
  .national-hero h1 {
    font-size:60px;
  }
  .national-hero .eyebrow {
    margin-bottom:15px;
  }
}

.indicator-year {
  display:inline-block;
  margin-left:10px;
  font-weight:400;
  color:var(--ink-3);
  font-size:12px;
}

@media(max-width:759px) {
  .indicator-year {
    font-size:12px;
    margin-left:7px;
  }
}

@media(max-width:759px) {
  .cover .stat .v {
    font-size:24px;
    letter-spacing:-.8px;
  }
  .profile .stat .v {
    font-size:24px;
  }
}

@media(max-width:480px) {
  .site-header .nav-long {
    display:none;
  }
}

@media(max-width:360px) {
  .wordmark {
    font-size:15px;
  }
  .topic-nav {
    justify-content:space-between;
  }
  .map-context .context-note {
    white-space:normal;
  }
  .site-header__inner {
    gap:10px;
  }
  .site-header nav {
    gap:12px;
  }
  .topic-nav {
    gap:4px;
  }
  .topic-nav button {
    font-size:12px;
  }
  .profile .stat .v,.cover .stat .v {
    font-size:20px;
  }
  .profile .stats {
    gap:10px;
  }
  .stat {
    padding-right:8px;
  }
}

@media print {
  .profile .cover {
    padding:0;
    gap:18px;
  }
  .profile .cover .main {
    display:block;
  }
  .cover .stats {
    padding:14px 0;
    margin-top:18px;
  }
  .cover .stat .v {
    font-size:32px;
  }
  .profile .cover .name {
    font-size:60px;
  }
  .profile .cover .finding {
    font-size:16px;
  }
  .profile .cover .locator {
    height:145px;
  }
  .benchmark-table td {
    padding:8px 0;
  }
  .profile .cover .foot {
    margin-top:0;
  }
}

@media(max-width:759px) {
  .profile .stat .v,.cover .stat .v {
    font-size:clamp(20px,5.6vw,26px);
  }
}

@media(min-width:760px) {
  #map {
    height:700px;
  }
}

/* In the two-column tablet layout the map column is narrow: its height follows the width, so Norway fills the panel instead of floating in empty canvas. */
@media(min-width:760px) and (max-width:1099px) {
  #map {
    height:auto;
    aspect-ratio:10 / 13;
  }
  .national-hero {
    padding-top:28px;
    padding-bottom:24px;
  }
  .national-hero h1 {
    font-size:58px;
  }
}

@media(max-width:759px) {
  .profile .cover .lead {
    grid-template-columns:minmax(0,1fr) 100px;
  }
  .profile .cover .name {
    min-width:0;
  }
}

.locator {
  overflow:hidden;
}

.stat dt,.stat .note {
  overflow-wrap:break-word;
  hyphens:manual;
}

/* A number and its unit never part across lines. */
.stat .v:not(.text-value) {
  white-space:nowrap;
}

@media(max-width:420px) {
  .profile .stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .profile .stats .stat:nth-child(2n) {
    border-right:0;
  }
  .profile .stats .stat:last-child:nth-child(odd) {
    grid-column:1/-1;
  }
  .profile .stats .stat:last-child:nth-child(odd) dt {
    min-height:0;
  }
  /* On a phone the three hero figures become a ledger: one row each, label and note on the left, the number on the right. */
  .profile .cover .stats {
    grid-template-columns:1fr;
    gap:0;
    padding:0;
  }
  .profile .cover .stats .stat,.profile .cover .stats .stat:last-child:nth-child(odd) {
    display:grid;
    grid-column:auto;
    grid-template-columns:minmax(0,1fr) auto;
    column-gap:16px;
    align-items:baseline;
    padding:13px 0;
    border-right:0;
    border-bottom:1px solid var(--faint);
  }
  .profile .cover .stats .stat:last-child {
    border-bottom:0;
  }
  .profile .cover .stats .stat dt {
    grid-column:1;
    min-height:0;
  }
  .profile .cover .stats .stat .v {
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
    margin:0;
    text-align:right;
  }
  .profile .cover .stats .stat .note {
    grid-column:1;
    margin-top:2px;
  }
}

@media(max-width:360px) {
  .profile .chapter-title {
    font-size:30px;
  }
  .stat dt,.stat .note {
    font-size:12px;
  }
  .profile .stat .v,.cover .stat .v {
    font-size:18px;
  }
}

.context-unit {
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
  margin-left:4px;
}

@media(max-width:759px) {
  .map-context.wide-values dd {
    font-size:clamp(16px,4.4vw,20px);
  }
  .map-context.wide-values .context-unit {
    display:block;
    font-size:12px;
    margin:3px 0 0;
  }
  .context-unit {
    font-size:12px;
  }
}


.tip-open { display:inline-block; padding-block:6px; color:var(--teal); font-weight:500; pointer-events:auto; } /* the tooltip itself ignores pointers */

/* A jump target lands flush under the sticky bar, so nothing of the previous section peeks out. */
html:has(> body.profile) { scroll-padding-top:53px; }
@media(max-width:759px) { html:has(> body.profile) { scroll-padding-top:50px; } }

@media (pointer: coarse) {
  .topic-nav button {
    flex-shrink:0;
    min-width:44px;
    min-height:44px;
  }
}

/* Give the long country a canvas with the same proportions, rather than a wide box. */
@media(min-width:760px) {
  .explorer-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .map-panel { position:static; }
  #map { height:auto; aspect-ratio:5 / 6; max-height:none; }
}
.municipal-compare { padding-block:42px; scroll-margin-top:20px; }
.municipal-compare h2 { font-family:var(--serif); font-size:34px; font-weight:400; margin:0 0 12px; }
.compare-controls { display:flex; gap:20px; margin:24px 0; flex-wrap:wrap; }
.compare-controls label { display:grid; gap:8px; font-size:13px; flex:1; min-width:220px; }
.compare-controls select { padding:12px; border:1px solid var(--rule); background:#fff; font:inherit; color:var(--ink); min-width:0; }
.compare-scroll { overflow-x:auto; }
.compare-table { width:100%; border-collapse:collapse; font-size:14px; }
.compare-table th,.compare-table td { text-align:right; padding:12px; border-bottom:1px solid var(--rule); vertical-align:top; }
.compare-table th:first-child { text-align:left; font-weight:500; width:46%; }
.compare-table td small,.compare-table th small { display:block; color:var(--ink-3); font-size:12px; font-weight:400; margin-top:5px; }
.compare-table thead th { background:var(--faint); }
.compare-table caption { text-align:left; font-size:13px; color:var(--ink-3); padding:0 0 14px; }
.compare-links { display:flex; gap:24px; margin-top:18px; flex-wrap:wrap; font-size:14px; }
@media(max-width:759px) { .compare-table th,.compare-table td { padding:10px 6px; font-size:12px; } .compare-controls { gap:12px; } }

/* Keep the atlas controls and the first rows of data in the opening view. */
@media screen {
  .site-header__inner { min-height:56px; }
  .site-header nav a { padding-block:16px; }
  .profile .breadcrumb { padding-block:2px; }
  .national-hero { gap:10px clamp(24px,6vw,80px); padding-block:18px; }
  .national-hero h1 { margin-bottom:6px; font-size:clamp(39px,5vw,56px); }
  .national-hero .intro { max-width:none; font-size:14px; }
  .national-hero .intro a { color:var(--teal); }
  .national-hero .data-stamp { margin-top:4px; }
  .national-hero .search-box label { margin-bottom:4px; }
  .national-hero .search-box small { margin-top:4px; }
  .national-hero .search-input input,.national-hero .search-input button { height:44px; }
  .national .explorer { padding-bottom:18px; }
  .national .topic-nav button { padding-block:12px; }
  .national .explorer-heading { gap:8px 16px; padding-block:12px; }
  .national .explorer-heading h2 { margin-bottom:3px; }
  .national .map-context:not(:empty) {
    gap:1px;
    margin-bottom:12px;
    padding:1px;
    border:0;
    background:var(--rule);
  }
  .national .map-context > div { min-width:0; padding:7px 12px; background:#fff; }
  .national .map-context dt,.national .map-context .context-note { margin:0; }
  .national .explorer-grid { gap:12px; }
  .national #map { height:clamp(400px,57vh,540px); aspect-ratio:auto; }
  .national .ranking-heading { gap:5px 12px; flex-wrap:wrap; padding:9px 12px; }
  .national #rank { padding-inline:12px; }
  .national .rank li a { min-height:36px; height:auto; padding:6px 0; gap:3px 8px; align-items:center; }
  .national .rank .v { align-self:center; }
  .national .rank .fy { font-size:11px; }
  .national .rank .bar { height:4px; }
  .national .rank-all { margin:6px 12px 9px; }
  .ranking-jump { display:none; }
  .municipal-compare { padding-block:22px; }
  .municipal-compare h2 { margin:0 0 4px; }
  .municipal-compare > p { margin:0; }
  .compare-controls { margin-block:10px; }
  .compare-controls select { padding:8px; }
  .compare-table { font-size:13px; }
  .compare-table th,.compare-table td { padding-block:6px; }
  .compare-table td small { display:inline-block; margin:0 0 0 6px; }
  .compare-table caption { padding-bottom:6px; }
}
@media screen and (min-width:1000px) {
  .national .rank li a { grid-template-columns:22px minmax(0,3fr) minmax(50px,1fr) max-content; }
  .national .rank .bar { grid-column:3; grid-row:1; }
  .national .rank .v { grid-column:4; grid-row:1; }
}
@media screen and (max-width:759px) {
  .national-hero .search-box { margin-top:11px; }
  .national .map-context > div { padding-inline:6px; }
  .national .map-context dt,.national .map-context .context-note { font-size:11px; }
  .national .map-context dd { overflow-wrap:anywhere; }
  .national #map { height:clamp(310px,100vw,420px); }
  .ranking-jump { display:inline-block; color:var(--teal); font-size:13px; font-weight:600; padding:0 0 9px; }
}

/* "Funnet feil?" (assets/feedback.js), as on Skyspor */
.feil-fab { position:fixed; right:16px; bottom:16px; z-index:50; display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border:0; border-radius:999px; background:var(--accent); color:#fff; font:600 14px var(--sans); cursor:pointer; box-shadow:0 2px 10px rgba(24,43,59,.25); }
.feil-fab:hover, .feil-fab:focus-visible { background:var(--ink); }
.feil-fab:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.feil-mark { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:#fff; color:var(--accent); font-weight:700; }
.feil-dialog { width:min(34rem, calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:24px; border:1px solid var(--ink); border-radius:4px; background:var(--paper); color:var(--ink); }
.feil-dialog::backdrop { background:rgba(17,24,33,.55); }
.feil-form { position:relative; display:grid; gap:14px; font:15px/1.5 var(--sans); }
.feil-form h2 { margin:0; padding-right:32px; font:500 26px/1.2 var(--serif, Georgia, serif); }
.feil-form p { margin:0; }
.feil-intro { font-size:14px; color:#435465; }
.feil-form label { display:grid; gap:4px; font-weight:600; font-size:14px; }
.feil-form textarea, .feil-form input { font:400 15px/1.4 var(--sans); padding:8px 10px; border:1px solid #a3afba; border-radius:3px; width:100%; box-sizing:border-box; }
.feil-close { position:absolute; top:-10px; right:-10px; width:40px; height:40px; border:0; background:none; font-size:26px; line-height:1; color:var(--ink); cursor:pointer; }
.feil-status:empty { display:none; }
.feil-status.err { color:#a3121c; font-weight:600; }
.feil-send { justify-self:start; padding:9px 20px; border:0; border-radius:3px; background:var(--teal); color:#fff; font:600 15px var(--sans); cursor:pointer; }
.feil-send:disabled { opacity:.6; cursor:wait; }
.feil-foot button { padding:0; border:0; background:none; font:inherit; color:var(--teal); text-decoration:underline; cursor:pointer; }
@media print { .feil-fab, .feil-foot { display:none !important; } }
