/* ───────────────────────────────────────────────────────────────
   Direktlön.se — "offentlig liggare"
   Paper, ink, one petrol accent. Ornaments come from the archive: the stamp,
   the ruler and index cards (a tab, and a red rule under the heading).
   ─────────────────────────────────────────────────────────────── */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f4f1e8;
  --card: #fbf9f3;
  --inset: #ebe6da;
  --ink: #16191c;
  --brand-ink: #0C303D;
  --gain: #0f7f74;
  --ink-2: #474b50;
  --ink-3: #5d5f62;
  --rule: #d9d2c2;
  --rule-strong: #aaa190;
  --raised: #fefdf9;
  --raised-edge: #cdc4b1;
  --field-border: #7d7666;
  --accent: #0c5a54;
  --accent-ink: #083f3b;
  --accent-soft: #cfe1dc;
  --stamp: #a5302a;
  --focus: #0c5a54;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101312;
    --card: #161a19;
    --inset: #1c2120;
    --ink: #ece7dc;
    --brand-ink: #ece7dc;
    --gain: #5fd3c4;
    --ink-2: #b9b4a9;
    --ink-3: #a29e94;
    --rule: #2a302e;
    --rule-strong: #4a514e;
    --raised: #1d2322;
    --raised-edge: #3c4542;
    --field-border: #6f7773;
    --accent: #6cc0b4;
    --accent-ink: #9ad8ce;
    --accent-soft: #183532;
    --stamp: #e2675d;
    --focus: #6cc0b4;
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
/* The arrow after a link's text: one letter high on the line, unless a button sizes it (2026-10-26: it filled the column). */
.arrow { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }
a { color: inherit; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.35rem + 4.4vw, 4.3rem); letter-spacing: -0.026em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }
.eyebrow { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 38rem; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; border-radius: 4px; }
.skip:focus { top: 1rem; }

/* ── Masthead & colophon ──────────────────────────────────────── */
.fiction-banner {
  background: repeating-linear-gradient(-45deg, #f1c84b 0 14px, #f5d878 14px 28px);
  color: #2e2400; text-align: center; font: 700 0.78rem/1.4 var(--sans); letter-spacing: 0.06em;
  padding: 0.55rem var(--gutter); text-transform: uppercase;
}
.masthead { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
/* The owner's logo (2026-10-26): the D mark and a bold sans word mark in the logo's navy, with a turquoise dot. */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--brand-ink); font: 700 1.3rem/1 var(--sans); letter-spacing: -0.035em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand:hover { color: var(--brand-ink); }
.wordmark-dot { color: #15B8A7; }
.nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.75rem); font-size: 0.92rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 0.6rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
/* Phones: the four links move to their own row under the brand instead of squeezing it. */
@media (max-width: 40rem) {
  .masthead-inner { flex-wrap: wrap; row-gap: 0; padding-block: 0.4rem; }
  .nav { width: 100%; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
  .nav a { padding-block: 0.7rem; white-space: nowrap; }
}
@media (max-width: 30rem) { .nav .nav-wide { display: none; } }

.colophon { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--ink); padding-block: 2.25rem 3rem; font-size: 0.9rem; color: var(--ink-2); }
.colophon-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .colophon-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.colophon .brand { font-size: 1.15rem; margin-bottom: 0.6rem; }
.colophon .brand svg { width: 28px; height: 28px; }
.colophon-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: flex-start; }
@media (min-width: 48rem) { .colophon-links { justify-content: flex-end; } }

/* ── Buttons & forms ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.25rem; padding: 0 1.4rem; border-radius: 6px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn svg { width: 1.1em; height: 1.1em; }

.field { display: grid; gap: 0.4rem; }
.field label { font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select {
  width: 100%; min-height: 3.25rem; padding: 0 0.95rem; border: 1px solid var(--field-border); border-radius: 6px;
  background: var(--card); color: var(--ink); font: 400 1.06rem/1.2 var(--sans); appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 0.85rem; color: var(--ink-3); }

/* ── Home: hero ───────────────────────────────────────────────── */
.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) 0; }
.hero h1 { max-width: 19ch; margin-block: 0.9rem 1.25rem; font-size: clamp(2.15rem, 1.26rem + 4.1vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 4rem; } }
.feature { display: grid; gap: 0.9rem; padding: 1.4rem 1.4rem 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; position: relative; animation: rise 0.7s var(--ease) 0.2s both; box-shadow: 0 30px 50px -40px rgba(20, 35, 30, 0.6); }
a.feature:hover { border-color: var(--ink); color: inherit; }
.feature-title { font: 500 1.35rem/1.2 var(--serif); }
.feature-value { font: 400 clamp(3rem, 2.2rem + 3vw, 4.2rem)/0.95 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.035em; }
.feature-value small { font: 500 0.95rem var(--sans); letter-spacing: 0; color: var(--ink-2); margin-left: 0.4rem; }
.feature-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; color: var(--ink-3); padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.feature-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.feature-stats dt { font-size: 0.78rem; color: var(--ink-2); }
.feature-stats dd { margin: 0; font: 400 2.2rem/1.05 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.hero .lede { margin-bottom: 2rem; }
.search {
  display: grid; gap: 0.9rem; padding: 1.15rem; max-width: 52rem;
  background: var(--raised); border: 1px solid var(--raised-edge); border-radius: 10px;
  box-shadow: 0 1px 0 rgba(40, 30, 10, 0.04), 0 22px 40px -28px rgba(20, 35, 30, 0.45);
}
@media (min-width: 46rem) { .search { grid-template-columns: 1fr 1fr auto; align-items: end; padding: 1.35rem; } .search:has(#q-fodd) { grid-template-columns: 1fr 1fr; } }
.search-examples { margin-top: 1rem; font-size: 0.97rem; color: var(--ink-3); }
.search-examples a { color: var(--ink-2); }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2rem; max-width: 46rem; }
.section-head p { color: var(--ink-2); }


/* ── Ledger (begäransloggen) ──────────────────────────────────── */
.tally { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); margin-bottom: 2.5rem; }
@media (min-width: 46rem) { .tally { grid-template-columns: repeat(4, 1fr); } }
.tally div { padding: 1rem 0.75rem 1rem 0; border-bottom: 1px solid var(--rule); }
.tally dt { font-size: 0.82rem; color: var(--ink-2); }
.tally dd { margin: 0.1rem 0 0; font: 400 clamp(2.2rem, 1.6rem + 2.5vw, 3.2rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.ledgers { display: grid; gap: 0; }
@media (min-width: 60rem) { .ledgers { grid-template-columns: 1fr 1fr; gap: 0 3.5rem; align-items: start; } }
.ledger-county { padding-top: 1.1rem; }
/* /yrken: the same lists, always open, one per area (2026-10-29). */
.yrken-family { padding-top: 1.1rem; min-width: 0; }
.yrken-family .ledger a { overflow-wrap: anywhere; }
.yrken-title { font-size: 1.3rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
.yrken-family .ledger { margin-bottom: 1rem; }
.yrken-family .ledger .muted { font-size: 0.85rem; white-space: nowrap; }
.ledger-county .ledger { margin-bottom: 1rem; }
.ledger-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); cursor: pointer; list-style: none; }
.ledger-title::-webkit-details-marker { display: none; }
.ledger-title h2 { font-size: 1.3rem; }
.ledger-title h2::before { content: "+"; display: inline-block; width: 1.1rem; font-family: var(--sans); font-weight: 400; color: var(--accent); transition: transform 0.2s var(--ease); }
details[open] > .ledger-title h2::before { content: "–"; }
.ledger-progress { font-size: 0.85rem; color: var(--ink-3); white-space: nowrap; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; min-height: 2.9rem; border-bottom: 1px dotted var(--rule-strong); }
.ledger a { text-decoration: none; padding-block: 0.55rem; }
.ledger a:hover { text-decoration: underline; }
.chip { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; padding: 0.38rem 0.55rem; border: 1.5px solid currentColor; border-radius: 3px; white-space: nowrap; color: var(--ink-3); }
.chip--sent { color: var(--accent); }
.chip--received { color: var(--accent); background: var(--accent-soft); }
.chip--published { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.chip--rejected { color: var(--stamp); }

.cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; gap: 0.85rem; padding: 1.25rem 1.25rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.card:hover { border-color: var(--ink); color: inherit; transform: translateY(-2px); }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; align-items: baseline; }
.card, .card * { min-width: 0; overflow-wrap: anywhere; }
.card-value { font: 400 2.3rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; }
.card-value small { font: 500 0.85rem var(--sans); color: var(--ink-3); margin-left: 0.3rem; letter-spacing: 0; }
.card-name { font-weight: 600; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-flex; gap: 0.45rem; align-items: center; min-height: 2.75rem; padding: 0.55rem 0.9rem; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-size: 0.95rem; background: var(--card); }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill small { color: var(--ink-3); }

/* ── Salary page ──────────────────────────────────────────────── */
.crumbs { font-size: 0.85rem; color: var(--ink-3); padding-top: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-head { padding-block: clamp(1.75rem, 4vw, 3rem) 0; display: grid; gap: 0.85rem; }
.figure { display: grid; gap: 2rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); align-items: start; }
@media (min-width: 54rem) { .figure { grid-template-columns: 1fr auto; } }
.figure-label { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.figure-number {
  font: 400 clamp(4.4rem, 2rem + 13vw, 9.5rem)/0.92 var(--serif);
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.04em; margin-top: 0.7rem;
  animation: rise 0.7s var(--ease) both;
}
.figure-number .unit { font: 500 clamp(1rem, 0.9rem + 0.5vw, 1.3rem)/1 var(--sans); letter-spacing: 0; color: var(--ink-2); margin-left: 0.6rem; white-space: nowrap; }
.figure-sub { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.05rem; }
.figure-none { font: 300 clamp(4rem, 2rem + 10vw, 8rem)/0.9 var(--serif); color: var(--rule-strong); }

.facts { display: grid; margin: 2.5rem 0 0; border-top: 1px solid var(--ink); }
@media (min-width: 46rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { padding: 1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.86rem; color: var(--ink-2); }
.facts dd { margin: 0.25rem 0 0; font: 400 1.65rem/1.15 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.facts dd small { font: 400 0.95rem var(--sans); color: var(--ink-3); }

.notice { margin-top: 2rem; padding: 1.4rem 1.4rem 1.5rem; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 6px; display: grid; gap: 0.75rem; max-width: 46rem; }
.notice p { color: var(--ink-2); }
.notice--quiet { border-left-color: var(--rule-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.more { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid var(--rule); }
@media (min-width: 46rem) { .more { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.more a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.more a::after { content: "→"; font-family: var(--serif); font-size: 1.3rem; transition: transform 0.2s var(--ease); }
.more a:hover::after { transform: translateX(4px); }

.method { margin-top: 3rem; display: grid; gap: 0.6rem; max-width: 44rem; font-size: 0.95rem; color: var(--ink-2); }

/* ── The stamp ────────────────────────────────────────────────── */
.stamp {
  --c: var(--stamp);
  justify-self: start; display: inline-grid; gap: 0.2rem; padding: 0.8rem 1rem 0.85rem; min-width: 13.5rem;
  color: var(--c); border: 2.5px solid var(--c); border-radius: 7px;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--c);
  font: 600 0.72rem/1.35 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  transform: rotate(-2.4deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  animation: stamp 0.45s var(--ease) 0.55s both;
}
@media (min-width: 54rem) { .stamp { justify-self: end; margin-top: 1.5rem; } }
.stamp-head { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.16em; padding-bottom: 0.35rem; margin-bottom: 0.25rem; border-bottom: 1.5px solid var(--c); }
.stamp-date { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.05em; }
.stamp-org { text-transform: none; letter-spacing: 0.02em; font-size: 0.82rem; }
.stamp--fiction { --c: #b07d00; }
/* On a phone the stamp stays a source mark, not a third of the first screen. */
@media (max-width: 40rem) { .stamp { min-width: 0; padding: 0.55rem 0.75rem 0.6rem; font-size: 0.62rem; } .stamp-head, .stamp-org { font-size: 0.7rem; } .stamp-date { font-size: 0.95rem; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-2.4deg) scale(1.25); } to { opacity: 1; transform: rotate(-2.4deg) scale(1); } }

/* ── Chart scale and legend ────────────────────────────────────── */
.ruler-scale { position: relative; height: 1.6rem; font: 500 0.78rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.ruler-scale span { position: absolute; top: 0.45rem; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.ruler-scale span:first-child { transform: none; }
.ruler-scale span:last-child { transform: translateX(-100%); }
@media (max-width: 36rem) { .ruler-scale span:first-child, .ruler-scale span:last-child { display: none; } }
.ruler-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.35rem; font-size: 0.84rem; color: var(--ink-2); }
.ruler-legend i { display: inline-block; vertical-align: -0.15em; margin-right: 0.45rem; }
.key-median { width: 3px; height: 1rem; background: var(--ink); }

/* the one-off purchase offer on a salary page */
.buy { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding: 1.4rem; background: var(--card); border: 1px solid var(--accent); border-radius: 10px; }
.buy h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin: 0.35rem 0 0.5rem; }
.buy p { margin: 0; color: var(--ink-2); }
.buy form { display: grid; gap: 0.5rem; align-content: start; }
/* The price column has a set width: as `auto` it grew to the width of its longest hint and squeezed the list (2026-10-26). */
@media (min-width: 46rem) {
  .buy { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); align-items: center; gap: 2.5rem; }
  .review-box { align-items: start; }
}

.buy-list { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: 0.25rem; }

/* the bought page */
.bid-form { display: grid; gap: 0.75rem; margin-top: 1.5rem; max-width: 26rem; }
@media (min-width: 30rem) { .bid-form { grid-template-columns: 1fr auto; align-items: end; } }
.bid-result { margin-top: 1rem; padding: 0.9rem 1rem; max-width: 34rem; background: var(--accent-soft); border-radius: 8px; color: var(--ink); }
/* Two fields (salary and birth year) beside the button. */
.bid-form:has(.field + .field) { max-width: 34rem; }
@media (min-width: 30rem) { .bid-form:has(.field + .field) { grid-template-columns: 1fr 8rem auto; } }
/* The bought page: bid, birth year and years in the occupation, then the responsibility box and the button on rows of their own. */
@media (min-width: 30rem) { .bid-form:has(.field + .field + .field) { grid-template-columns: 1fr 7rem 7rem; max-width: 38rem; } }
.bid-form .consent, .bid-form:has(.field + .field + .field) .btn { grid-column: 1 / -1; justify-self: start; }
/* "Var hamnar din lön?" on the free page: the answer, then what the purchase unlocks. */
.compare { margin-top: 2.5rem; }
.compare h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin: 0; }
/* Lists split by SKR:s kommungrupper: comparable municipalities together. */
.group-section { margin-top: 2.25rem; scroll-margin-top: 1rem; }
.group-title { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); margin: 0 0 0.6rem; }
.group-title small { font: 500 0.85rem var(--sans); color: var(--ink-3); margin-left: 0.4rem; }
/* One municipality or the occupation pass, stacked. */
.buy-options { display: grid; gap: 0.5rem; align-content: start; }
.buy-options .btn { width: 100%; }
/* Paid page with an occupation pass: every municipality, same link. */
.pass { margin-top: 2rem; }
.pass h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); margin: 0 0 0.9rem; }
.pill[aria-current="page"] { border-color: var(--accent); color: var(--accent-ink); }
/* "Vill du ha svaret direkt?" on /begar-ut: the figures we already have, offered before the wait. */
.instant { display: grid; gap: 0.75rem; max-width: 46rem; margin-top: 1.75rem; padding: 1.25rem 1.3rem; background: var(--card); border: 1px solid var(--accent); border-radius: 10px; }
.instant h2 { margin: 0; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.instant p { margin: 0; color: var(--ink-2); }
.instant .btn { justify-self: start; }
.instant-line { margin-top: 1rem; color: var(--ink-2); }
/* The age choice above a list: small pills, the chosen one filled. */
.age-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.age-chips .pill { min-height: 2.5rem; padding: 0.4rem 0.85rem; font-size: 0.9rem; }
.age-chips .pill[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.oruler .age-chips { margin-top: 0.5rem; gap: 0.3rem; }
.oruler .age-chips .pill { min-height: 2.2rem; padding: 0.3rem 0.6rem; font-size: 0.82rem; }
.age-chips--compact { gap: 0.15rem; }
.oruler .age-chips--compact .pill { flex: none; min-height: 2rem; padding: 0.2rem 0.4rem; font-size: 0.74rem; letter-spacing: -0.005em; }
.facts--five { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.paid-section { margin-top: 3rem; display: grid; gap: 0.75rem; }
table.sources tr.is-current td { font-weight: 600; }
.access-link { display: block; margin-top: 0.35rem; padding: 0.5rem 0.65rem; overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; font-size: 0.8rem; }

/* the distribution as bars, and the full list on the bought page */
.all-salaries { margin-top: 3rem; display: grid; gap: 1rem; }
.all-salaries > p { max-width: 44rem; color: var(--ink-2); margin: 0; }
table.sources.salary-table th, table.sources.salary-table td { white-space: nowrap; vertical-align: baseline; }
table.sources.salary-table td { padding-block: 0.5rem; }
table.sources.salary-table th.sal { width: 8.5rem; }
table.sources.salary-table th.pct { width: 6.5rem; }
table.sources.salary-table th.form { width: 11rem; }
table.sources.salary-table th.year { width: 4.5rem; }
table.sources.salary-table .form, table.sources.salary-table .title { padding-left: 1.5rem; }
table.sources.salary-table td.sal { font-size: 1.1rem; }
table.sources.salary-table td.title { white-space: normal; color: var(--ink-2); }
/* phones: each person as a two-line entry instead of a wide table */
@media (max-width: 40rem) {
  table.sources.salary-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.sources.salary-table, table.sources.salary-table tbody { display: block; }
  table.sources.salary-table tr {
    display: grid; grid-template-columns: 5.4rem auto 1fr auto; column-gap: 0.7rem; row-gap: 0.1rem; align-items: baseline;
    grid-template-areas: "sal pct form year" "sal title title title"; padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
  }
  table.sources.salary-table td { padding: 0; border: 0; text-align: left; font-size: 0.9rem; }
  table.sources.salary-table td.sal { grid-area: sal; font-size: 1.25rem; }
  table.sources.salary-table td.pct { grid-area: pct; }
  table.sources.salary-table td.form { grid-area: form; padding: 0; overflow: hidden; text-overflow: ellipsis; }
  table.sources.salary-table td.year { grid-area: year; color: var(--ink-3); }
  table.sources.salary-table td.year::before { content: "f. "; }
  table.sources.salary-table td.age { grid-area: year; color: var(--ink-3); }
  table.sources.salary-table td.title { grid-area: title; padding: 0; font-size: 0.82rem; }
}
.salary-list { position: relative; content-visibility: auto; contain-intrinsic-height: auto 1200px; }
.all-salaries > * { min-width: 0; }
.show-all-label { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.5rem; font-weight: 600; color: var(--accent); text-underline-offset: 0.22em; }
.show-all-label:hover { color: var(--accent-ink); }

/* A salary as a bar from zero, in lists and on the home page: flat at the baseline, rounded at the value. */
.bar { display: block; width: var(--w); height: 0.55rem; background: var(--accent); border-radius: 0 4px 4px 0; transform-origin: left; animation: grow 0.7s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 30ms); }
.row > a:hover .bar, .oruler-rows a:hover .bar { background: var(--ink); }

/* ── Ranked rows ──────────────────────────────────────────────── */
.rows { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.row > a, .rows-head {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name value" "rule meta";
  gap: 0.4rem 1rem; padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: center;
}
.row { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.row > a:hover { background: var(--card); color: inherit; }
.row > a:hover .row-name { color: var(--accent); }
.row-name { grid-area: name; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.row-name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.82rem; }
.row-rule { grid-area: rule; display: block; }
.rows-head { display: none; }
.row-value { grid-area: value; font: 400 1.45rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.row-value small { font: 500 0.8rem var(--sans); color: var(--ink-3); margin-left: 0.2rem; }
.row-meta { grid-area: meta; font-size: 0.8rem; color: var(--ink-3); text-align: right; }
@media (min-width: 48rem) {
  .row > a, .rows-head { grid-template-columns: minmax(11rem, 1.25fr) minmax(12rem, 2fr) 8rem 4.5rem; grid-template-areas: "name rule value meta"; }
  .row-meta { text-align: right; }
  .rows-head { display: grid; padding-block: 0.6rem; font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-strong); }
  .rows-head .row-value, .rows-head .row-meta { font: inherit; text-align: right; }
}
/* "Visa alla …": the rest of a long list, folded (review 2026-10-26). */
/* /ingangslon/:yrke: "Vad ska du begära som ny?" as its own step (2026-10-26). */
.entry-claim { display: grid; gap: 0.6rem; margin-top: 1.5rem; padding: 1.2rem 1.15rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; max-width: 40rem; }
.entry-claim h2 { margin: 0; }
details.more { margin-top: 0.25rem; }
details.more > summary { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.5rem 0.25rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "↓"; text-decoration: none; }
details.more[open] > summary { display: none; }
.rows.rows--more { margin-top: 0; border-top: 0; }
.rows-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* ── Request letter ───────────────────────────────────────────── */
.request-form { display: grid; gap: 1rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; margin-top: 2rem; }
@media (min-width: 46rem) { .request-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.letter {
  margin-top: 2.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 30px 50px -36px rgba(20, 30, 25, 0.55);
  padding: clamp(1.25rem, 4vw, 2.5rem); position: relative; max-width: 44rem;
  animation: rise 0.6s var(--ease) both;
}
.letter-meta { display: grid; gap: 0.3rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.letter-meta b { display: inline-block; min-width: 3.5rem; color: var(--ink-3); font-weight: 600; }
.letter-body { white-space: pre-wrap; font: 400 1.12rem/1.65 var(--serif); }
.tips { display: grid; gap: 0.9rem; margin: 2.25rem 0 0; padding: 0; list-style: none; max-width: 44rem; }
.tips li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.tips li::before { content: "§"; position: absolute; left: 0; top: -0.05rem; font: 500 1.15rem var(--serif); color: var(--accent); }

/* ── Prose pages ──────────────────────────────────────────────── */
.prose { display: grid; gap: 1.1rem; max-width: 44rem; margin-top: 2rem; }
.prose h2 { margin-top: 1.75rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.formula { font: 400 1.2rem/1.5 var(--serif); padding: 1rem 1.2rem; background: var(--inset); border-radius: 6px; color: var(--ink); }
table.sources { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.sources th { text-align: left; font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 2px solid var(--ink); }
table.sources td { padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-scroll { overflow-x: auto; margin-top: 2rem; }
table.sources .num { text-align: right; }

/* ── Motion ───────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); opacity: 0.2; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.underlag-link { margin-top: 1rem; }
.negotiation { display: grid; gap: 0.9rem; max-width: 44rem; margin-top: 2rem; font-size: 1.05rem; }
.negotiation p { margin: 0; }
.source-line { margin-top: 2rem; max-width: 44rem; font-size: 0.85rem; color: var(--ink-3); }
.print-sheet .actions { margin-top: 2rem; }
.source-top { margin: 0; font-size: 0.9rem; color: var(--ink-3); }
.small-group { margin: 0.6rem 0 0; max-width: 44rem; font-size: 0.9rem; color: var(--ink-2); }
.negotiation h2, .script h2 { font-size: 1.3rem; }
/* Opening bid, target and limit: the target is the one to remember. */
.levels { margin-top: 2rem; max-width: 44rem; }
.levels .facts { margin-top: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.levels .facts p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-3); }
.levels .level-target dd { color: var(--accent); }
.script { margin-top: 2rem; max-width: 44rem; }
.script ul { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.say h3 { margin-top: 0.6rem; font-size: 1.05rem; }
.say em { font-style: normal; font-weight: 600; }
.say .limit { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-2); }

@page { size: A4; margin: 16mm 18mm; }
@media print {
  .masthead nav, .colophon, .actions, .more, .skip, .crumbs, .no-print, .sticky-buy { display: none !important; }
  body { background: #fff; color: #000; }
  .print-sheet { max-width: none; padding: 0; }
  .print-sheet .page-head { padding-top: 0; gap: 0.3rem; }
  .print-sheet h1 { font-size: 22pt; }
  .print-sheet .facts { margin-top: 12pt; grid-template-columns: repeat(4, 1fr); }
  .print-sheet .facts dd { font-size: 13pt; }
  .negotiation { margin-top: 14pt; gap: 7pt; font-size: 10.5pt; line-height: 1.45; }
  .source-line { margin-top: 12pt; font-size: 8.5pt; color: #444; }
  /* The script on page one, the background on page two. .print-sheet outranks the screen rules further down. */
  .print-sheet .source-top, .print-sheet .small-group { font-size: 8.5pt; color: #444; }
  .print-sheet h2, .print-sheet .say h2 { font-size: 12.5pt; }
  .print-sheet .levels, .print-sheet .script, .print-sheet .say { margin-top: 9pt; max-width: none; }
  .print-sheet .levels .facts { margin-top: 4pt; grid-template-columns: repeat(3, 1fr); }
  .print-sheet .levels .facts p { font-size: 8pt; }
  .print-sheet .script, .print-sheet .say { font-size: 9.5pt; line-height: 1.35; }
  .print-sheet .script ul { margin-top: 3pt; gap: 1pt; }
  .print-sheet .say { background: none; padding: 0; gap: 3pt; }
  .print-sheet .say h3 { margin-top: 4pt; font-size: 10.5pt; }
  .print-sheet .say .limit { margin-top: 3pt; padding-top: 4pt; font-size: 8.5pt; }
  .print-sheet .levels, .print-sheet .say h3, .print-sheet .say .limit { break-inside: avoid; }
  .print-sheet .negotiation { break-before: page; margin-top: 0; }
}

/* ── Histogram: how many earn about each amount ───────────────── */
.hist { margin: 0.75rem 0 0; }
.hist-body {
  position: relative; height: clamp(8rem, 24vw, 12.5rem);
  border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden;
  background: var(--card);
}
.hist-body i {
  position: absolute; bottom: 0; left: var(--x); width: calc(var(--w) - 2px); margin-left: 1px; height: max(3px, calc(var(--h) * 0.86));
  background: var(--accent); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: rise-bar 0.7s var(--ease) both;
}
/* Bars outside the middle 8 of 10 step back, so the spread reads straight off the chart. */
.hist-body i.out { opacity: 0.28; }
.hist-you { position: absolute; left: var(--you); top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--stamp); }
.hist-you b { position: absolute; top: 0.35rem; left: 0.3rem; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--stamp); background: var(--card); padding: 0.15rem 0.25rem; }
.dots-median { position: absolute; left: var(--mid); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.key-bar { width: 0.7rem; height: 0.9rem; border-radius: 2px 2px 0 0; background: var(--accent); }
.key-you { width: 0; height: 1rem; border-left: 2px dashed var(--stamp); }
@keyframes rise-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── Salary page: the note under the figure, the short buy line, the pinned bar ── */
.sticky-buy { display: none; }
@media (max-width: 47.99rem) {
  .sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--rule-strong);
    box-shadow: 0 -10px 30px -20px rgba(20, 35, 30, 0.6); transition: transform 0.25s var(--ease);
  }
  .sticky-buy span { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
  .sticky-buy small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
  .sticky-buy .btn { min-height: 2.9rem; }
  .sticky-buy.is-hidden { transform: translateY(110%); }
  main:has(.sticky-buy) { padding-bottom: 4.5rem; }
}
.bid-form .hint { grid-column: 1 / -1; }
.answer { margin-top: 3rem; display: grid; gap: 0.75rem; max-width: 46rem; }
.answer h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.answer > p { font-size: 1.08rem; }
.insights { margin: 0.25rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--ink-2); }

/* ── The offer ───────────────────────────────────────────────── */
.price { font: 400 clamp(2.4rem, 2rem + 1.5vw, 3rem)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.price small { display: block; margin-top: 0.4rem; font: 500 0.82rem/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.buy .buy-anchor { margin-top: 0.75rem; font-weight: 600; color: var(--ink); }
.buy .buy-example { margin-top: 0.6rem; }
.buy-pass { display: grid; gap: 0.4rem; padding-top: 0.75rem; margin-top: 0.25rem; border-top: 1px solid var(--rule); }
.buy-pass p { font-size: 0.9rem; }
.buy--upgrade { border-left-color: var(--stamp); }
.preview { margin-top: 0.5rem; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; font-size: 0.85rem; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
/* "Ur ditt löneunderlag": the bought list's rows, masked, beside the buy button (2026-10-29). */
.list-preview .preview-head { margin: 0; padding: 0.45rem 0.7rem; }
.list-preview table { width: 100%; border-collapse: collapse; }
.list-preview td { padding: 0.4rem 0.7rem; border-top: 1px solid var(--rule); color: var(--ink-3); }
.list-preview td.num { text-align: right; white-space: nowrap; letter-spacing: 0.06em; font-variant-numeric: lining-nums tabular-nums; }
.preview-head { font: 600 0.7rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); background: var(--inset); }

/* ── Bought page ─────────────────────────────────────────────── */
.bought { display: grid; gap: 0.6rem; margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--accent-soft); border-radius: 10px; max-width: 46rem; }
.copy-row { display: grid; gap: 0.5rem; }
@media (min-width: 40rem) { .copy-row { grid-template-columns: 1fr auto; align-items: center; } }
input.access-link { width: 100%; min-height: 2.9rem; margin: 0; font: 400 0.85rem/1.2 var(--mono); color: var(--ink); }
.underlag-cta { display: grid; gap: 1rem; margin-top: 2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--card); align-items: center; }
@media (min-width: 46rem) { .underlag-cta { grid-template-columns: 1fr auto; } }
details.pass { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
details.pass summary { cursor: pointer; list-style: none; }
details.pass summary::-webkit-details-marker { display: none; }
details.pass summary h2::before { content: "+ "; color: var(--accent); }
details.pass[open] summary h2::before { content: "– "; }
details.pass .pills { margin-top: 1rem; }
.say { margin-top: 2rem; padding: 1.1rem 1.2rem; background: var(--inset); border-radius: 8px; display: grid; gap: 0.6rem; max-width: 44rem; }
/* An example text to copy, in a guide. */
.prose blockquote { margin: 0.75rem 0 0; padding: 0.9rem 1.1rem; background: var(--inset); border-radius: 8px; }
.prose blockquote p + p { margin-top: 0.6rem; }
.say h2 { font-size: 1.3rem; }

/* ── Related links, watch form, thank-you steps ──────────────── */
.related { display: grid; gap: 1.5rem; margin-top: 3rem; }
.related .eyebrow { margin-bottom: 0.7rem; }
.related .more { margin-top: 0.5rem; }
.nearby { margin-top: 0.5rem; }
.nearby .eyebrow { margin-bottom: 0.6rem; }
.watch { display: grid; gap: 0.6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); max-width: 40rem; }
.watch-row { display: grid; gap: 0.6rem; }
@media (min-width: 36rem) { .watch-row { grid-template-columns: 1fr auto; align-items: end; } }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); }
.consent input { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
.form-error { color: var(--stamp); font-weight: 600; }
.next-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; max-width: 46rem; }
.next-steps li { background: var(--card); padding: 1.25rem 1.3rem 1.4rem; display: grid; gap: 0.6rem; justify-items: start; }
.next-steps li::before { counter-increment: step; content: counter(step); font: 300 2.2rem/1 var(--serif); color: var(--accent); }
.next-steps h2 { font-size: 1.25rem; }
.next-steps .copy-row { width: 100%; }
.share { display: grid; gap: 0.75rem; justify-items: start; margin-top: 2rem; max-width: 46rem; }

/* ── Home: the free/paid line and bigger occupation chips ────── */
.offer { display: grid; gap: 0.5rem; margin: 1.5rem 0 0; max-width: 46rem; }
@media (min-width: 46rem) { .offer { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.offer div { display: grid; gap: 0.2rem; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.offer dt { font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.offer dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.search--compact { margin-top: 1.5rem; max-width: 40rem; }
@media (min-width: 46rem) { .search--compact { grid-template-columns: 1fr auto; } }
.guide-cta { display: grid; gap: 0.5rem; margin-top: 3rem; max-width: 44rem; }

/* ── Löneanspråk ─────────────────────────────────────────────── */
.claim-form { display: grid; gap: 1rem; margin-top: 2rem; padding: 1.25rem; max-width: 46rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }
@media (min-width: 46rem) { .claim-form { grid-template-columns: 1fr 1fr; } .claim-form .claim-form-title, .claim-form fieldset, .claim-form .consent, .claim-form .btn { grid-column: 1 / -1; } .claim-form .btn { justify-self: start; } }
.claim-form-title { font-size: 1.35rem; }
.claim-situation { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.claim-situation legend { font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.5rem; padding: 0; }
.claim-situation label { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; }
.claim-situation input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.claim-result { display: grid; gap: 0.9rem; margin-top: 2rem; max-width: 46rem; padding: 1.4rem; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 10px; scroll-margin-top: 1rem; }
.claim-amount { font: 400 clamp(3.4rem, 2rem + 7vw, 6rem)/0.95 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.035em; }
.claim-amount .unit { font: 500 1.1rem/1 var(--sans); letter-spacing: 0; color: var(--ink-2); margin-left: 0.5rem; }
.claim-range { color: var(--ink-2); }
.claim-line { display: grid; gap: 0.5rem; }
.claim-next { display: grid; gap: 0.9rem; padding: 1rem 1.1rem; background: var(--accent-soft); border-radius: 8px; align-items: center; }
@media (min-width: 46rem) { .claim-next { grid-template-columns: 1fr auto; } }
.claim-copy { margin: 0; padding: 0.6rem 0.75rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; font: 400 0.95rem/1.4 var(--mono); }

/* ── Home: facts, three steps, more occupations and where the figures come from (2026-10-29) ── */
.hero-facts { margin-top: 1.1rem; font-size: 1rem; color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
.section.home-tight { padding-block: 1.75rem; }
.home-links { margin: 1rem 0 0; font-size: 0.92rem; color: var(--ink-3); }
.home-links a { color: var(--ink-2); }
.home-h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 48rem) { .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.home-steps li { counter-increment: step; display: grid; align-content: start; gap: 0.3rem; padding-top: 0.85rem; border-top: 1px solid var(--rule); }
.home-steps li::before { content: counter(step); font: 500 1.5rem/1 var(--serif); color: var(--ink-3); }
.home-steps strong { font: 500 1.2rem/1.25 var(--serif); color: var(--ink); }
.home-steps span { color: var(--ink-2); }
/* A few real rows of the open example beside the search: the product, before any search (2026-10-29). */
.example-list { margin: 0; }
.example-list figcaption { display: grid; gap: 0.35rem; }
.example-list table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: lining-nums tabular-nums; }
.example-list th { padding: 0 0.6rem 0.4rem 0; border-bottom: 1px solid var(--rule); text-align: left; font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.example-list td { padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.example-list .num { text-align: right; white-space: nowrap; }
.example-list td.title { color: var(--ink-2); overflow-wrap: anywhere; }
.example-list .feature-foot { border-top: 0; padding-top: 0; }
.home-about { border-top: 1px solid var(--rule); }
.home-about h2 { margin: 0 0 0.6rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.home-about > p { max-width: 65ch; }
.home-about > p:first-of-type { margin: 0; }
.home-all { margin: 1.2rem 0 0; }
.home-all a { font-weight: 600; }
.offer-example { margin-top: 1rem; font-size: 0.95rem; }
.offer-example svg { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }

/* ── Archive kit (2026-10-12): index cards, the home ruler, the salary hero ── */


/* Salary page hero: the figure and stamp, with "Var hamnar din lön?" beside them. */
.figure-main .stamp { margin-top: 1.5rem; justify-self: start; }
@media (min-width: 54rem) { .figure { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; } }
.figure .compare { margin-top: 0; padding: 1.25rem 1.3rem 1.3rem; background-color: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 24px 44px -36px rgba(20, 35, 30, 0.55); }
.figure .compare .bid-form { margin-top: 1rem; max-width: none; }
.figure .compare h2, .buy h2 { padding-bottom: 0.55rem; border-bottom: 1.5px solid var(--stamp); }
@media (min-width: 30rem) { .figure .compare .bid-form:has(.field + .field) { grid-template-columns: 7rem 1fr auto; } }
/* Time in the occupation gets a row of its own in the claim box, so the salary field keeps its width (2026-10-22). */
.figure .compare .bid-form .field--tid { grid-column: 1 / -1; }
.entry-hint a { white-space: nowrap; }
.figure-number--range { font-size: clamp(2.2rem, 1rem + 4vw, 3.6rem); letter-spacing: -0.02em; white-space: nowrap; }

/* The age ladder: typical pay per age group, youngest first, the visitor's own group marked. */
.ladder { margin: 0; display: grid; gap: 0.9rem; }
.ladder-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ladder-rows li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "age value" "bar n"; gap: 0.35rem 1rem; align-items: center; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .ladder-rows li { grid-template-columns: 9.5rem minmax(5rem, 1fr) 7rem 4.5rem; grid-template-areas: "age bar value n"; } }
.ladder-age { grid-area: age; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.ladder-age b { padding: 0.25rem 0.4rem; font: 700 0.66rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); background: var(--stamp); border-radius: 3px; }
.ladder-rows .bar { grid-area: bar; }
.ladder-value { grid-area: value; text-align: right; font: 400 1.45rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.ladder-value small { margin-left: 0.15rem; font: 500 0.8rem var(--sans); color: var(--ink-3); }
.ladder-n { grid-area: n; text-align: right; font-size: 0.8rem; color: var(--ink-3); }
.ladder-none { grid-column: 2 / -1; font-size: 0.9rem; color: var(--ink-3); }
.ladder-rows li.is-you { background: var(--accent-soft); }
.ladder-rows li.is-you .bar { background: var(--stamp); }
.ladder-rise { margin: 0; max-width: 36rem; font-size: 1.02rem; color: var(--ink-2); }

/* "Vad ska du begära?" once the birth year is in: the amount first, then what it rests on. */
.claim-answer { display: grid; gap: 0.6rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.claim-answer p { margin: 0; color: var(--ink-2); }
.claim-answer .claim-basis { font-size: 0.9rem; color: var(--ink-3); }
.claim-answer-amount { font: 500 1rem/1.2 var(--sans); }
.claim-answer-amount strong { margin-left: 0.3rem; font: 400 clamp(2.4rem, 2rem + 2vw, 3.2rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.ahead { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.ahead strong { color: var(--ink); }
.claim-answer form { margin-top: 0.3rem; }
/* The question the purchase answers, with the answer masked (panel 2026-10-25). */
.claim-answer .peer-teaser { padding: 0.65rem 0.8rem; border-left: 3px solid var(--accent); background: var(--inset); color: var(--ink); font-weight: 500; }
.peer-teaser .masked { display: inline-block; min-width: 1.6em; padding: 0 0.25em; border-radius: 3px; background: var(--rule-strong); color: transparent; letter-spacing: 0.1em; }
.claim-answer .btn { width: 100%; }

/* "Mer om siffrorna": the detail that used to repeat the figures, folded away but still on the page. */
.more-facts { margin-top: 2.5rem; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.more-facts > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0.25rem; cursor: pointer; font-weight: 600; list-style: none; }
.more-facts > summary::-webkit-details-marker { display: none; }
.more-facts > summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--accent); }
.more-facts[open] > summary::after { content: "−"; }
.more-facts > summary:hover { color: var(--accent); }
.more-facts > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.more-facts .facts { margin-top: 0; }
.more-facts-note { margin: 1rem 0 0; max-width: 44rem; font-size: 0.92rem; color: var(--ink-3); }
.more-facts .answer { margin: 2rem 0 1.5rem; }

/* ── Title pages (2026-10-22): one job title at one employer, and at every employer ── */
.title-groups .btn { margin-top: 0.9rem; }
.title-groups ul { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.title-others, .title-faq { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.title-others h2, .title-faq h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.title-faq h3 { font-size: 1.1rem; margin-top: 1.4rem; }

/* ── Job ads with salaries (2026-10-22): Platsbanken ads next to what the employer pays ── */
.job-group { margin-top: clamp(2.25rem, 5vw, 3rem); }
.job-group h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); }
.job-group h2 small { font: 400 0.95rem var(--sans); color: var(--ink-3); margin-left: 0.4rem; }
.job-pay { margin: 0.6rem 0 0; max-width: 44rem; }
.job-pay strong { font-variant-numeric: tabular-nums; }
.job-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin: 0.9rem 0 0; }
.jobs { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.jobs li { display: grid; gap: 0.15rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.jobs a { font-weight: 600; text-underline-offset: 0.18em; }
.jobs small { color: var(--ink-3); font-size: 0.88rem; }
.page-head .pills { margin-top: 1.2rem; }
.job-cta { margin: 1.4rem 0 0; font-weight: 600; }
.job-index { margin-top: clamp(2rem, 5vw, 2.75rem); }
.job-index h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
.job-index-list { list-style: none; margin: 0.6rem 0 0; padding: 0; columns: 16rem auto; column-gap: 2rem; }
.job-index-list li { break-inside: avoid; padding: 0.3rem 0; }
.job-index-list small { color: var(--ink-3); }

/* ── Pay after tax (2026-10-22): Skatteverket's tables per municipality ── */
.tax-calc { margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: clamp(1.1rem, 3vw, 1.6rem); background: var(--card); border: 1px solid var(--rule); border-radius: 6px; max-width: 46rem; }
.tax-calc h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); margin-top: 0; }
.tax-form { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: end; margin-top: 1rem; }
.tax-form .btn { justify-self: start; }
.tax-result { margin: 1.1rem 0 0; font-size: 1.1rem; }
.tax-result strong { font-variant-numeric: tabular-nums; }
.tax-table { width: 100%; max-width: 40rem; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.tax-table th, .tax-table td { padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule); text-align: right; }
.tax-table th:first-child { text-align: left; }
.tax-table thead th { font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.tax-table tbody th { font-weight: 400; }
.tax-typical { margin-top: clamp(2.25rem, 5vw, 3rem); }
.tax-typical > p { max-width: 44rem; }
.tax-examples { margin-top: clamp(2.25rem, 5vw, 3rem); }

/* ── Close by (2026-10-22): the same occupation at employers within commuting distance ── */
.close-by { margin-top: clamp(2.25rem, 5vw, 3rem); }
.close-by h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); }
.close-by > p { max-width: 44rem; }
.page-head .age-chips { margin-top: 0.75rem; }

/* ── Competitor review 2026-10-22: date under the heading, contents, "Var hamnar din lön?" ── */
.updated { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--ink-3); }
.toc { margin-top: clamp(1.5rem, 4vw, 2rem); }
.toc ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.95rem; }
.your-place { margin: 0.9rem 0; padding: 0.75rem 0.9rem; background: var(--inset); border-radius: 6px; }
.your-place p { margin: 0.25rem 0 0; }
.your-place .eyebrow { margin: 0; }

/* ── Private or public (2026-10-22): SCB's figures per sector ── */
.sector { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.sector h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.sector > p { max-width: 44rem; margin: 0.6rem 0 0; }
.sector h2 + p { margin-top: 0.5rem; }
.sector-table { max-width: 52rem; }
.sector-scroll { margin-top: 0; }
.sector-table td { white-space: nowrap; }
.sector-links { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--ink-3); }

/* The negotiation sheet (2026-10-26): the situation switch and room to write one's own arguments. */
.situation-switch { margin: 0.75rem 0 1.25rem; }
.situation-switch strong { font-weight: 650; }
.script.own ol { padding-left: 1.25rem; }
.script.own li { margin-bottom: 0.75rem; }
.write-line { display: none; }
@media print {
  .write-line { display: block; height: 2.2em; border-bottom: 1px solid #999; }
}
.claim-buy { margin: 1rem 0 0.5rem; }

