/* Schibsted Grotesk (OFL, vendor/fonts/OFL.txt), served from here so no visitor's IP goes to a font CDN. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/vendor/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/vendor/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/vendor/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
}

/* Tokens. The page colours are the logo's (app/static/icons/lagenhetskoll-logo.svg): deep green
   ink, cream page, lime only on green. Chart colors are the validated data-viz palette
   (3 categorical slots + status), unchanged by the brand. */
:root {
  color-scheme: light;
  --page: #f6f2e8;
  --surface: #ffffff;
  --ink: #12372a; /* 11.7:1 on --page */
  --ink-2: #3f4d46;
  --muted: #5e6a63; /* 5.0:1 on --page, 5.6:1 on white */
  --line: #e6e0d0;
  --axis: #c9c3b3;
  --link: #1d6b48; /* 5.8:1 on --page */
  --focus: #1d6b48;
  --brand-lime: #c8ed62; /* on --ink only: 9.8:1 */
  /* The logo's green and cream, the same in dark mode (--ink and --page swap there). */
  --brand-green: #12372a;
  --brand-cream: #f6f2e8;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --band: rgba(42, 120, 214, 0.12);
  --band-key: rgba(42, 120, 214, 0.35);
  --good: #0ca30c;
  --good-ink: #006300;
  --warning: #fab219;
  --warning-ink: #7a5200;
  --critical: #d03b3b;
  --critical-ink: #a32424;
  --estimate: #8a8a84;
  --stairs-more: #b8860b;
  --stairs-over: #c62f2f;
  --part-avgift: #5b6f84;
  --part-interest: #b8860b;
  --part-amort: #b9c4cf;
  --part-amort-edge: #8a99a8; /* 3:1 on white: the light fill alone is too faint */
  --reset-later: #d6dbe0;
  --radius: 6px;
  --measure: 58ch; /* about 75 characters of this face: ch is the width of a zero */
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #121a16;
    --surface: #18221d;
    --ink: #f6f2e8;
    --ink-2: #c9cfc6;
    --muted: #9aa39b;
    --line: #2a352f;
    --axis: #3b463f;
    --link: #c8ed62;
    --focus: #c8ed62;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --band: rgba(57, 135, 229, 0.28);
    --band-key: rgba(57, 135, 229, 0.55);
    --good-ink: #5fd35f;
    --warning-ink: #fab219;
    --critical-ink: #ff8a80;
    --estimate: #8f918b;
    --stairs-more: #c6961a;
    --stairs-over: #d9433a;
    --part-avgift: #7d93a8;
    --part-interest: #c6961a;
    --part-amort: #46525e;
    --part-amort-edge: #6b7987;
    --reset-later: #3a4148;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121a16; --surface: #18221d; --ink: #f6f2e8; --ink-2: #c9cfc6; --muted: #9aa39b;
  --line: #2a352f; --axis: #3b463f; --link: #c8ed62; --focus: #c8ed62; --series-1: #3987e5; --series-2: #d95926;
  --series-3: #199e70; --band: rgba(57, 135, 229, 0.28); --band-key: rgba(57, 135, 229, 0.55); --good-ink: #5fd35f;
  --warning-ink: #fab219; --critical-ink: #ff8a80; --estimate: #8f918b;
  --stairs-more: #c6961a; --stairs-over: #d9433a;
  --part-avgift: #7d93a8; --part-interest: #c6961a; --part-amort: #46525e; --part-amort-edge: #6b7987; --reset-later: #3a4148;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 96px; }
.site { display: flex; align-items: baseline; gap: 12px; padding: 20px 0 8px; }
.site a { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.site .home { display: inline-flex; align-items: center; gap: 8px; align-self: center; }
.site .home svg { width: 28px; height: 28px; flex: none; }
.site .tag { color: var(--muted); font-size: 15px; }

/* Hero: the one bold element. */
.hero { padding: 28px 0 8px; max-width: var(--measure); }
.hero .brf { color: var(--ink-2); margin: 0 0 6px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.16; margin: 0; font-weight: 700; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance; }
/* The second answer, one line under the first: what the förening means, linked to its cards. */
.hero-verdict { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 10px; }
.hero-verdict.green { --status: var(--good); --status-ink: var(--good-ink); }
.hero-verdict.yellow { --status: var(--warning); --status-ink: var(--warning-ink); }
.hero-verdict.red { --status: var(--critical); --status-ink: var(--critical-ink); }
.hero-verdict a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--axis); }
.hero-verdict a:hover { text-decoration-color: currentColor; }
.hero-verdict a.title { color: var(--status-ink); font-weight: 700; text-decoration: none; }
.hero-verdict a.title:hover { text-decoration: underline; }
.hero-verdict .icon { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--status); display: inline-grid; place-items: center; flex: none; }
.hero-verdict .icon svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.6; fill: none; }
.hero-verdict.yellow .icon svg { stroke: #12372a; }

.level .icon { width: 22px; height: 22px; border-radius: 50%; background: var(--status); display: inline-grid; place-items: center; flex: none; }
.level .icon svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.6; fill: none; }
.level.yellow .icon svg { stroke: #12372a; }

section.q { padding-top: 36px; }
section.q > h2 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; }
.takeaway { margin: 10px 0 0; max-width: var(--measure); }
.sub { color: var(--ink-2); margin: 0; max-width: var(--measure); }

.panel { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.chart { width: 100%; height: 320px; }

.inputs { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin-top: 12px; }
.inputs label { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.inputs .field { display: flex; align-items: center; gap: 6px; }
.inputs input {
  width: 92px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--axis); border-radius: var(--radius); padding: 6px 8px; text-align: right;
  min-height: 44px;
}
.inputs .note { font-size: 15px; color: var(--muted); }
.inputs input.price { width: 132px; }
.htmx-request .chart, .htmx-request .hero, .htmx-request .stairs { opacity: .55; transition: opacity .15s; }

details summary { cursor: pointer; color: var(--link); font-size: 15px; padding: 10px 0; }  /* 44 px to tap */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 8px; }
th, td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td.n, th.n { text-align: right; white-space: nowrap; }

/* Loans against today's rate */
.table-wrap { overflow-x: auto; margin-top: 12px; max-width: var(--measure); }
table.rates { margin-top: 0; }
table.rates td:first-child { white-space: nowrap; }
table.rates tfoot th { color: var(--ink); border-top: 2px solid var(--axis); }
table.rates tfoot th.n { font-weight: 700; }
/* The rate a brf loan gets, under the rates it is weighted from: the figure the page uses. */
.table-wrap.narrow tfoot th { color: var(--ink); }
/* Phones: the apartment's column matters most. */
@media (max-width: 560px) { table.rates .brf { display: none; } }

/* The rate staircase: the page's one bold element. Each bar is the monthly cost at one rate,
   split into avgift (slate), mortgage interest (ochre, the part that grows with the rate) and
   amortering (light). Hatched red is what goes past the buyer's own limit, also said in text. */
.staircase {
  margin-top: 22px; background: var(--surface); border-radius: 10px; padding: 22px 24px 18px;
  max-width: 820px;
}
.staircase-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 32px; }
.staircase-head h2 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; font-weight: 700; letter-spacing: -0.015em; }
.staircase-head .sub { font-size: 16px; }
.budget { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.budget .field { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink-2); }
.budget input {
  width: 150px; font: inherit; font-size: 20px; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 6px; padding: 6px 10px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.budget input::placeholder { color: var(--muted); font-family: inherit; font-weight: 400; font-size: 17px; font-variant-numeric: normal; }
/* The budget field and the tax checkbox sit side by side, wrapping under each other when narrow. */
.limits { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 24px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink); cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--series-1); }
form.buyer input.needs { border: 2px solid var(--ink); }

.stairs { display: grid; gap: 14px; margin-top: 22px; }
.step { display: grid; grid-template-columns: 11.5rem 1fr 7.5rem; align-items: center; gap: 0 14px; }
.step .rate { line-height: 1.25; }
.step .rate b { font-size: 20px; }
.step .rate > span { display: block; font-size: 14px; color: var(--ink-2); }
.step .like { display: block; color: var(--ink); font-weight: 600; }
.bar { position: relative; height: 30px; display: flex; gap: 2px; }
.bar .part { height: 100%; flex: none; }
.bar .part:last-of-type { border-radius: 0 4px 4px 0; }
.bar .avgift { background: var(--part-avgift); }
.bar .interest { background: var(--part-interest); }
.bar .amortisation { background: var(--part-amort); box-shadow: inset 0 0 0 1px var(--part-amort-edge); }
/* What goes past the buyer's limit: red hatching over the parts, which still show through. */
.bar .over, .bar .limit { position: absolute; top: 0; bottom: 0; }
.bar .over {
  background: repeating-linear-gradient(135deg, var(--stairs-over) 0 3px, transparent 3px 7px);
  border-radius: 0 4px 4px 0; opacity: .85;
}
.bar .limit { top: -9px; bottom: -9px; width: 0; border-left: 2px dashed var(--ink); }
.cost { line-height: 1.25; }
.cost b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.status.over { color: var(--critical-ink); }
.status.fits { color: var(--good-ink); }

.key { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.key li { display: inline-flex; align-items: center; gap: 6px; }
.key .sw { width: 12px; height: 12px; border-radius: 3px; }
.key .sw.avgift { background: var(--part-avgift); }
.key .sw.interest { background: var(--part-interest); }
.key .sw.amortisation { background: var(--part-amort); box-shadow: inset 0 0 0 1px var(--part-amort-edge); }
.key .sw.over {
  background: repeating-linear-gradient(135deg, var(--stairs-over) 0 3px,
    color-mix(in srgb, var(--stairs-over) 45%, var(--surface)) 3px 5px);
}
.footnote { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: var(--measure); }
/* "Vad är skatteavdrag?": one line until opened. */
details.about > summary { color: var(--link); cursor: pointer; width: fit-content; }
details.about > p { margin: 6px 0 0; }

/* What the staircase is computed with: open, and folds to one line that names the values. */
details.assumed { margin-top: 14px; max-width: 820px; }
details.assumed > summary { color: var(--ink-2); font-size: 15px; }
details.assumed > summary .change { color: var(--link); text-decoration: underline; margin-left: 4px; }
details.assumed[open] .if-closed, details.assumed:not([open]) .if-open { display: none; }
form.buyer .inputs { border: 0; padding: 0; margin: 12px 0 0; }
form.buyer .note { margin: 8px 0 0; font-size: 15px; color: var(--muted); max-width: var(--measure); }
form.buyer .echo { display: none; }

@media (max-width: 600px) {
  .staircase { padding: 18px 16px 16px; margin-left: -4px; margin-right: -4px; }
  .step { grid-template-columns: 1fr auto; grid-template-areas: "rate cost" "bar bar"; gap: 6px 12px; }
  .step .rate { grid-area: rate; }
  .step .cost { grid-area: cost; }
  .step .bar { grid-area: bar; height: 22px; }
  .step .rate b, .cost b { font-size: 18px; }
  .stairs { gap: 18px; }
  .step .cost { text-align: right; }
  form.buyer .echo { display: block; margin: 14px 0 0; padding: 10px 12px; background: var(--surface); border-radius: var(--radius); font-weight: 600; line-height: 1.35; }
}
.sub.after-table { margin-top: 8px; font-size: 15px; }

/* Debt scale */
.scale { position: relative; margin: 18px 0 6px; }
.scale .bands { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
/* Tinted from the levels' own colours, so the bands read in dark mode too; the names and the
   thresholds below carry the meaning, not the tint. */
.scale .bands span { background: color-mix(in srgb, var(--good) 30%, var(--surface)); }
.scale .bands span:nth-child(2) { background: color-mix(in srgb, var(--warning) 45%, var(--surface)); }
.scale .bands span:nth-child(3) { background: color-mix(in srgb, var(--critical) 40%, var(--surface)); }
.scale .ticks { position: relative; height: 16px; margin-top: 3px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scale .ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.scale .names { display: flex; font-size: 14px; color: var(--muted); margin-top: 4px; }
.scale .names span { text-align: center; }
/* The förening's place on the scale: a tick across the bands, no label (Martin, 2026-11-22). */
.scale .marker { position: absolute; top: -5px; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }

/* Maintenance timeline */
.years { list-style: none; margin: 14px 0 0; padding: 0; }
.years > li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.years .y { font-weight: 700; font-variant-numeric: tabular-nums; }
.years ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* Planned work: a filled dot. Our estimate: a hollow dashed ring. The text label says it too. */
.item { position: relative; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-left: 20px; }
.item::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.item.estimate { color: var(--ink-2); }
.item.estimate::before { background: transparent; border: 1.5px dashed var(--estimate); }
.item .cost { color: var(--ink-2); }
.item .kind { font-size: 14px; color: var(--muted); }

.lvl { font-weight: 600; }
.lvl.green { color: var(--good-ink); } .lvl.yellow { color: var(--warning-ink); } .lvl.red { color: var(--critical-ink); }

.examples { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: var(--measure); }
.examples a { display: block; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.examples a strong { color: var(--link); }
.examples span { display: block; color: var(--ink-2); }
footer { margin-top: 48px; color: var(--muted); font-size: 15px; max-width: var(--measure); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .chart { height: 280px; }
  .years > li { grid-template-columns: 52px 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Upload forms */
form.upload { max-width: var(--measure); margin-top: 24px; display: grid; gap: 18px; }
form.upload .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; }
form.upload label { display: grid; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 600; }
form.upload label.wide { grid-column: 1 / -1; }
form.upload small { color: var(--muted); font-weight: 400; font-size: 14px; }
form.upload input[type="number"], form.upload input[type="text"] {
  font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 6px; padding: 8px 10px; width: 100%; min-height: 46px;
}
form.upload .field { display: flex; align-items: center; gap: 6px; }
form.upload .field span, form.upload .field { font-weight: 400; color: var(--ink-2); }
form.upload input[type="file"] { font: inherit; font-weight: 400; color: var(--ink-2); }
form.upload input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 6px; padding: 8px 14px; margin-right: 10px; cursor: pointer;
}
form.upload button {
  justify-self: start; font: inherit; font-weight: 600; color: var(--surface); background: var(--ink);
  border: 0; border-radius: 6px; padding: 0 20px; min-height: 48px; cursor: pointer;
}
form.upload button:disabled { opacity: .6; cursor: progress; }
form.upload .error { color: var(--critical-ink); margin: 0; }

/* Reading progress (waiting page) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.progress { max-width: var(--measure); margin-top: 24px; }
.kpi-note { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); max-width: 46ch; }
.progress .bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress .bar span {
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: var(--link);
  width: calc(var(--p, 0) * 100%); transition: width .8s cubic-bezier(.16, 1, .3, 1);
}
/* No measure yet: a band moving along the track shows that work is going on. It moves by
   transform, which the browser does not repaint, and the bar is never redrawn (progress.js). */
.progress .bar.indeterminate span { width: 40%; transition: none; animation: progress-sweep 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes progress-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .progress .bar.indeterminate span { animation: none; width: 100%; background: var(--band-key); }
}
.progress .steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.progress .steps li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; color: var(--muted); }
.progress .steps li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--axis);
  justify-self: center; transform: translateY(1px);
}
.progress .steps li.done { color: var(--ink-2); }
.progress .steps li.done::before { background: var(--good-ink); border-color: var(--good-ink); }
.progress .steps li.active { color: var(--ink); font-weight: 600; }
.progress .steps li.active::before { border-color: var(--link); background: var(--link); }
.progress .status { margin: 16px 0 0; color: var(--ink-2); }
.progress .note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.progress code { font-size: 13px; }

/* Sliders for the buyer's down payment and mortgage rate. The thumb is >= 24 px to tap. */
.inputs .slider {
  flex: 1 1 14rem; max-width: 20rem; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 4px 12px; font-size: 15px; color: var(--ink-2);
}
.inputs .slider input[type="range"] {
  grid-column: 1 / -1; width: 100%; height: 28px; padding: 0; border: 0; background: none;
  accent-color: var(--link); cursor: pointer;
}
.inputs .slider input[type="number"] { width: 84px; }
/* What we did with a value we could not use as typed, under its field. */
form.buyer .hint { grid-column: 1 / -1; font-size: 14px; font-weight: 400; color: var(--warning-ink); max-width: 22rem; }
form.buyer input[aria-invalid="true"] { border-color: var(--warning-ink); }

.uncertain { margin: 6px 0 0; max-width: var(--measure); color: var(--warning-ink); font-weight: 600; }

/* Föreningen i korthet: the verdict, then four questions as cards. */
section.brf { padding-top: 40px; }
section.brf > h2, section.numbers > h2 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; }
.notice {
  margin: 12px 0 0; padding: 12px 16px; max-width: var(--measure); border-radius: var(--radius);
  background: color-mix(in srgb, var(--warning) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning) 55%, var(--surface));
}
.notice { display: grid; gap: 6px; }
.notice p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 14px; margin-top: 16px; max-width: 820px; }
.card { background: var(--surface); border-radius: 10px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card p { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 700; text-wrap: balance; }
.level { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--status-ink); }
.level .icon { width: 18px; height: 18px; }
.level .icon svg { width: 11px; height: 11px; }
.level.green { --status: var(--good); --status-ink: var(--good-ink); }
.level.yellow { --status: var(--warning); --status-ink: var(--warning-ink); }
.level.red { --status: var(--critical); --status-ink: var(--critical-ink); }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 2px; }
.chip { font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--estimate); color: var(--ink-2); }
.to-numbers { margin-left: auto; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.to-numbers::after { content: "\00a0↓"; } /* a flex item drops a plain leading space */

/* The avgift card spans both columns: its chart is the one picture worth reading closely. */
.card.wide { grid-column: 1 / -1; }
.card .chart { height: 260px; }
.marks-caption { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.card .scale { margin: 30px 0 0; }

/* Share of the förening's debt by when it gets a new rate. */
.resets-bar { display: flex; gap: 2px; height: 14px; }
.resets-bar span { height: 100%; }
.resets-bar span:first-child { border-radius: 4px 0 0 4px; }
.resets-bar span:last-child { border-radius: 0 4px 4px 0; }
.resets-bar span:only-child { border-radius: 4px; }
.resets-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); }
.resets-key li { display: inline-flex; align-items: center; gap: 6px; }
.resets-key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.soon, .sw.soon { background: var(--part-interest); }
/* Already reset: the darkest step of the ochre ramp (already, within a year, 1-3 years). */
.past, .sw.past { background: color-mix(in srgb, var(--part-interest) 60%, var(--ink)); }
.mid, .sw.mid { background: color-mix(in srgb, var(--part-interest) 45%, var(--surface)); }
.later, .sw.later { background: var(--reset-later); }
.resets-key .sw { width: 12px; height: 12px; border-radius: 3px; }

/* An årsredovisning over a year old: a newer one may be out. */
.stale-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 18px; max-width: var(--measure); font-size: 15px; color: var(--ink-2); }
.stale-note { --status: var(--warning); }
.stale-note .icon { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--status); display: inline-grid; place-items: center; flex: none; }
.stale-note .icon svg { width: 13px; height: 13px; stroke: #12372a; stroke-width: 2.6; fill: none; }

/* Styrkor and Risker above the cards: two tinted panels, side by side, stacked on a phone. */
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 18px; max-width: 820px; }
.card .fig + .scale { margin-top: 12px; }
.summary .side { border-radius: 10px; padding: 16px 18px; }
.summary .strengths { background: color-mix(in srgb, var(--good) 9%, var(--surface)); }
.summary .risks { background: color-mix(in srgb, var(--warning) 13%, var(--surface)); }
.summary h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; }
.summary h3 .level { gap: 0; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.summary li b { color: var(--ink); }
@media (max-width: 600px) { .summary { grid-template-columns: 1fr; } }

/* A card: its figure, what it means, and what it means for this apartment, the last on the
   page's own cream so it reads as the answer (2026-11-22). */
.card .fig { margin: 4px 0 10px; line-height: 1.25; }
.card .fig b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card .fig span { font-size: 15px; color: var(--ink-2); }
.card .meaning b, .card .for-you b { color: var(--ink); }
.card .for-you { background: var(--page); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); }

/* The first years of work, on the renovation card. */
.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.work b { font-variant-numeric: tabular-nums; margin-right: 6px; }
.work .more { color: var(--muted); }

/* Alla siffror: groups folded, each summary shows its main figure. */
section.numbers { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--axis); }
section.numbers > .sub { margin-bottom: 10px; }
details.group { border-bottom: 1px solid var(--line); max-width: 820px; }
details.group > summary {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: baseline; gap: 2px 12px;
  padding: 12px 0; color: var(--ink); font-size: 17px; list-style: none;
}
details.group > summary::-webkit-details-marker { display: none; }
/* The fold's arrow: points right when closed, down when open. */
details.group > summary::before {
  content: ""; width: 7px; height: 7px; justify-self: center; transform: translateY(-2px) rotate(-45deg);
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transition: transform .15s;
}
details.group[open] > summary::before { transform: translateY(-4px) rotate(45deg); }
details.group > summary .name { font-weight: 600; }
details.group > summary .sum { color: var(--ink-2); text-align: right; }
details.group[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
details.group > :not(summary) { max-width: var(--measure); }
details.group > .table-wrap, details.group > .panel { max-width: 820px; }
details.group h3 { font-size: 17px; margin: 22px 0 4px; }
details.group ul { padding-left: 20px; color: var(--ink-2); }
details.group { padding-bottom: 4px; }
details.group[open] { padding-bottom: 18px; }
.table-wrap.narrow { max-width: 360px; }

.brf .verdict, .notice { max-width: 820px; }
.notice p { max-width: var(--measure); }
/* No last word alone on its line. */
p { text-wrap: pretty; }

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  details.group > summary { grid-template-columns: 16px 1fr; }
  details.group > summary .sum { grid-column: 2; text-align: left; font-size: 15px; }
}

/* Accounts: the header link, the login form and Mina rapporter. */
.site .account { margin-left: auto; font-size: 15px; white-space: nowrap; }
@media (max-width: 480px) { .site .tag { display: none; } }
.site .account a { font-weight: 600; color: var(--link); text-decoration: underline; }
.logout button {
  font: inherit; font-size: 15px; color: var(--link); background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer; min-height: 44px;
}
/* The login form: one boxed field like the buyer's limit, the button beside it (under it on phones). */
.login-box {
  margin-top: 20px; background: var(--surface); border-radius: 10px; padding: 22px 24px 18px;
  max-width: 600px; display: grid; gap: 10px;
}
.login-box label { font-weight: 600; font-size: 16px; color: var(--ink); }
.login-box .row { display: flex; flex-wrap: wrap; gap: 10px; }
.login-box input[type="email"] {
  flex: 1 1 260px; min-width: 0; min-height: 48px; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; padding: 8px 12px;
}
.login-box input[type="email"]::placeholder { color: var(--muted); }
.login-box input[aria-invalid="true"] { border-color: var(--critical); }
.login-box button {
  min-height: 48px; font: inherit; font-weight: 600; color: var(--surface); background: var(--ink);
  border: 0; border-radius: 6px; padding: 0 20px; cursor: pointer;
}
.login-box .error { margin: 0; color: var(--critical-ink); font-size: 15px; }
.login-box .hint { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .login-box { padding: 18px 16px 14px; } .login-box button { flex: 1 1 100%; } }
.dev-note { font-size: 14px; color: var(--muted); }
/* Mina rapporter: a shortlist to compare. Each row: who and where on the left, the monthly cost
   today and if the rate rises in a right-hand column of tabular figures, the förening's verdict
   (as the report's hero writes it) or where the report stands, then the listing's facts. */
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }
.list-head .assumes { margin: 0; flex: 1 1 32ch; max-width: var(--measure); font-size: 15px; color: var(--muted); }
.my-reports { list-style: none; padding: 0; margin: 20px 0 0; }
.my-reports li {
  padding: 16px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 8px;
  grid-template-areas: "who figures" "status figures" "foot foot";
}
.my-reports li:not(.has-figures) { grid-template-areas: "who who" "status status" "foot foot"; }
.my-reports .who { grid-area: who; }
.my-reports h2 { font-size: 19px; line-height: 1.3; margin: 0; font-weight: 700; }
.my-reports h2 a { color: var(--link); text-underline-offset: 3px; }
.my-reports .brf { margin: 2px 0 0; color: var(--ink-2); }
.my-reports .brf .size { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.my-reports .figures { grid-area: figures; margin: 0; display: grid; gap: 10px; align-content: start; text-align: right; }
.my-reports .figures div { display: grid; }
.my-reports .figures dt { order: 2; font-size: 14px; color: var(--muted); max-width: 30ch; justify-self: end; text-wrap: balance; }
.my-reports .figures dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.my-reports .figures dd b { font-size: 20px; color: var(--ink); }
.my-reports .figures div + div dd b { font-size: 17px; }
.my-reports .verdict, .my-reports .state { grid-area: status; margin: 0; max-width: var(--measure); }
.my-reports .verdict { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.my-reports .verdict.green { --status: var(--good); --status-ink: var(--good-ink); }
.my-reports .verdict.yellow { --status: var(--warning); --status-ink: var(--warning-ink); }
.my-reports .verdict.red { --status: var(--critical); --status-ink: var(--critical-ink); }
.my-reports .verdict .title { color: var(--status-ink); }
.my-reports .verdict .icon { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--status); display: inline-grid; place-items: center; flex: none; }
.my-reports .verdict .icon svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.6; fill: none; }
.my-reports .verdict.yellow .icon svg { stroke: var(--ink); }
.my-reports .state { color: var(--ink-2); }
.my-reports .state a { color: var(--link); font-weight: 600; }
.my-reports .state.waits { color: var(--ink); font-weight: 600; }
.my-reports .foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.my-reports .meta { margin: 0; min-width: 0; font-size: 14px; color: var(--muted); }
.my-reports .foot form { flex: none; }
.my-reports .meta span { white-space: nowrap; }
.my-reports .foot form { margin: 0; }
.my-reports button.quiet {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0 2px;
  min-height: 44px; min-width: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.my-reports button.quiet:hover { color: var(--ink); }
.hidden-reports { margin-top: 28px; }
.hidden-reports summary { cursor: pointer; color: var(--ink-2); font-weight: 600; padding: 10px 0; }
.hidden-reports .my-reports { margin-top: 4px; }
@media (max-width: 600px) {
  .my-reports li, .my-reports li:not(.has-figures) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "figures" "status" "foot"; }
  .my-reports .figures { text-align: left; grid-auto-flow: column; justify-content: start; gap: 20px; }
  .my-reports .figures dt { justify-self: start; }
  .my-reports .brf .sep { display: none; }
  .my-reports .brf .size { display: block; }
}
.empty { max-width: var(--measure); color: var(--ink-2); }
.logout { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; color: var(--muted); font-size: 15px; }
.login-box input[type="url"] {
  flex: 1 1 260px; min-width: 0; min-height: 48px; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; padding: 8px 12px;
}
.login-box input[type="url"]::placeholder { color: var(--muted); }

/* A listing shared from the phone: its link, and how to share one. */
.shared-link { margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.shared-link a { color: var(--muted); }
.how-to { max-width: var(--measure); margin-top: 32px; }
.how-to h2 { font-size: 20px; margin: 0 0 4px; }
.how-to h3 { font-size: 16px; margin: 16px 0 2px; }
.how-to p { margin: 0; color: var(--ink-2); }
.how-to p + p { margin-top: 10px; }

.login-box .consent { font-weight: 400; align-items: start; }
.login-box .consent input { margin-top: 3px; flex: none; }

/* Fråga mäklaren: what the årsredovisning leaves open, to take to the visning. */
.ask { margin-top: 18px; max-width: 820px; background: var(--surface); border-radius: 10px; padding: 18px 18px 16px; }
.ask h3 { font-size: 18px; margin: 0 0 8px; }
.ask .questions { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; }
/* Own numbers: the default marker uses tabular figures, whose wide period set "1 ." with a gap. */
.ask .questions li { counter-increment: q; position: relative; padding-left: 22px; }
.ask .questions li::before { content: counter(q) "."; position: absolute; left: 0; font-weight: 600; font-variant-numeric: normal; }
.ask .questions b { display: block; font-weight: 600; }
.ask .questions span { color: var(--ink-2); font-size: 15px; }
.ask .copy {
  margin-top: 14px; min-height: 44px; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; padding: 0 16px; cursor: pointer;
}

/* Landing page */
.hero.landing { padding-top: 40px; }
.hero.landing h1 { font-size: clamp(32px, 5.4vw, 52px); max-width: 18ch; }
.hero .lead { font-size: 19px; color: var(--ink-2); margin: 16px 0 0; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  color: var(--surface); background: var(--ink); border: 2px solid var(--ink);
}
.button.secondary { color: var(--ink); background: transparent; }
.example-cta { margin-top: 32px; max-width: 820px; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.example-cta h2 { font-size: 20px; margin: 0 0 4px; }
.example-cta p { margin: 0 0 14px; color: var(--ink-2); }
/* The opening: three boxes in the logo's colours. Green holds the pitch across the top, lime the
   survey and white the example's monthly cost below it. */
.opening {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; margin-top: 24px;
}
.opening .box { position: relative; overflow: hidden; border-radius: 16px; padding: 32px; }
.opening ::selection { background: var(--brand-lime); color: var(--brand-green); }

.pitch {
  grid-column: 1 / -1; container-type: inline-size; min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--brand-green); color: var(--brand-cream);
}
.pitch h1 {
  position: relative; margin: 0; max-width: 600px; font-size: clamp(32px, 6.8cqi, 60px); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.035em; text-wrap: balance;
}
.pitch .lead {
  position: relative; margin: 20px 0 0; max-width: 34ch; font-size: 20px; line-height: 1.5;
  color: rgba(246, 242, 232, 0.86);
}
.pitch .lead strong { color: var(--brand-lime); font-weight: 700; }
.pitch .actions { position: relative; margin-top: 28px; }
.pitch :focus-visible { outline-color: var(--brand-lime); }
.button.lime { color: var(--brand-green); background: var(--brand-lime); border-color: var(--brand-lime); font-size: 18px; min-height: 54px; padding: 0 26px; }
.button.lime:hover { background: var(--brand-cream); border-color: var(--brand-cream); }
/* The logo's house and check, large, centred in the space right of the text. */
.pitch .mark {
  position: absolute; right: 56px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%);
  color: rgba(246, 242, 232, 0.1); pointer-events: none;
}

.stat { background: var(--brand-lime); color: var(--brand-green); }
.stat p { margin: 0; }
.stat .big { font-size: 21px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.stat .big b {
  display: block; margin: -6px 0 10px; font-size: clamp(72px, 9.5vw, 104px); line-height: 0.9;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
}
.stat .also { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid rgba(18, 55, 42, 0.25); font-size: 16px; }
.stat .source { margin-top: 8px; font-size: 14px; }
.stat a { color: inherit; text-underline-offset: 3px; }
.stat :focus-visible { outline-color: var(--brand-green); }

.answer { background: var(--surface); }
.answer h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.answer .sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.mini { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.mini li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.mini li > span { font-size: 15px; color: var(--ink-2); }
.mini b { font-size: 19px; font-variant-numeric: tabular-nums; }
.mini .bar { grid-column: 1 / -1; height: 14px; transform-origin: left center; animation: grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.mini li:nth-child(2) .bar { animation-delay: 0.12s; }
.mini li:nth-child(3) .bar { animation-delay: 0.24s; }
.answer .to-sample { margin-top: 16px; }
@keyframes grow { from { transform: scaleX(0.02); } }
@media (prefers-reduced-motion: reduce) { .mini .bar { animation: none; } }

@media (max-width: 720px) {
  .opening { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .opening .box { padding: 22px; border-radius: 14px; }
  .pitch { min-height: 0; }
  .pitch h1 { font-size: clamp(28px, 11.2cqi, 44px); }
  .pitch .lead { font-size: 18px; }
  .pitch .actions .button { flex: 1 1 100%; }
  .pitch .mark { display: none; }
}

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 40px; max-width: 820px; }
.why .fact { margin: 0; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.why .fact b { display: block; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.why .source { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.why .takeaway { grid-column: 1 / -1; margin: 4px 0 0; }
/* Three steps side by side, stacked on a phone. The number is the logo's lime on green. */
.how-steps {
  list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.how-steps li {
  counter-increment: step; padding: 24px; border-radius: 16px; background: var(--surface);
  color: var(--ink-2); font-size: 16px;
}
.how-steps li b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.how-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; font-weight: 700; font-size: 18px; color: var(--brand-lime); background: var(--brand-green);
}
.sub.checklist { margin-top: 18px; }
@media (max-width: 720px) {
  .how-steps { grid-template-columns: 1fr; gap: 10px; }
  .how-steps li { padding: 20px; border-radius: 14px; }
}
.sample { background: var(--surface); border-radius: 10px; padding: 20px; margin-top: 14px; max-width: 820px; }
.sample-headline { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0; max-width: 40ch; text-wrap: balance; }
.sample .stairs { margin-top: 18px; }
.sample-cards { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sample-cards > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.sample-cards > li > p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
/* The card's figure: large, with what it measures beside it. */
.sample-cards > li > p.fig { margin: 12px 0 0; color: var(--ink); line-height: 1.25; }
.sample-cards .fig b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sample-cards .fig span { font-size: 15px; color: var(--ink-2); }
.sample-cards .scale { margin: 14px 0 4px; }
.sample-ask { margin-top: 18px; font-size: 15px; }
.sample-ask ol { margin: 6px 0 0; padding-left: 22px; color: var(--ink-2); }
.sample-ask p { margin: 4px 0 0; color: var(--muted); }
.to-sample { display: inline-block; margin-top: 16px; font-weight: 600; padding: 4px 0; }
.to-sample::after { content: " →"; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; max-width: 820px; }
.way { display: block; background: var(--surface); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink-2); border: 2px solid transparent; }
.way:hover { border-color: var(--line); }
.way b { display: block; color: var(--link); font-size: 18px; margin-bottom: 4px; }
.faq details { max-width: var(--measure); border-top: 1px solid var(--line); padding: 6px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 17px; color: var(--ink); font-weight: 600; padding: 8px 0; }
.faq details p { margin: 4px 0 10px; color: var(--ink-2); }
section.q.faq > h2 { margin-bottom: 10px; }
.site-foot p { margin: 4px 0 0; }
@media (max-width: 600px) {
  .why, .sample-cards { grid-template-columns: 1fr; }
  .sample { padding: 16px; margin-left: -4px; margin-right: -4px; }
  .actions .button { flex: 1 1 100%; }
}

/* Köpvillkor and integritetspolicy */
.legal { max-width: var(--measure); padding-top: 28px; }
.legal h1 { font-size: clamp(28px, 4.2vw, 36px); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.legal h2 { font-size: 20px; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; display: grid; gap: 6px; }
.legal li b { color: var(--ink); }
.legal .missing { padding: 10px 14px; border: 2px dashed var(--warning); border-radius: var(--radius); color: var(--warning-ink); }
.legal-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.legal-links a { color: var(--muted); padding: 4px 0; }

/* The avgift changes the årsredovisning names, in the avgift card */
.raises h4 { font-size: 16px; margin: 0 0 6px; }
.raises ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.raises li { color: var(--ink-2); }
.raises li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.raises .status { display: inline-block; font-size: 13px; font-weight: 600; padding: 0 7px; margin: 0 4px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.raises .page { color: var(--muted); font-size: 14px; }
.raises .hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.legal-links span { color: var(--muted); padding: 4px 0; }
form.retry { margin-top: 20px; }
form.retry .button { font: inherit; font-weight: 600; cursor: pointer; }

/* The buy page: the first page of the årsredovisning found, to check before paying */
.found-report { display: flex; gap: 18px; align-items: flex-start; margin: 22px 0 0; max-width: var(--measure); }
.found-report a { flex: none; }
.found-report img { display: block; width: 140px; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.found-report figcaption { color: var(--ink-2); }
.found-report figcaption b { color: var(--ink); display: block; }
.found-report .other-file { margin-top: 8px; }
.found-report form.upload { margin-top: 8px; }
@media (max-width: 480px) { .found-report img { width: 110px; } }
.get-report { max-width: var(--measure); padding-left: 20px; margin: 10px 0 0; display: grid; gap: 8px; color: var(--ink-2); }
.get-report b { color: var(--ink); }

/* Admin */
.admin-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 22px; }
.admin-figures div { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; }
.admin-figures b { display: block; font-size: 24px; letter-spacing: -0.01em; }
.admin-figures span { color: var(--ink-2); font-size: 14px; }
.table-wrap.admin { max-width: none; background: var(--surface); border-radius: var(--radius); padding: 4px 8px; }
.table-wrap.admin table { font-size: 14px; }
.table-wrap.admin td { vertical-align: top; }
.muted { color: var(--muted); }
.table-wrap.admin td:first-child { white-space: nowrap; }

/* Header links on the landing page */
.site .page-links { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.site .page-links:empty { display: none; }
.site .page-links a { font-weight: 400; color: var(--ink-2); text-decoration: none; }
.site .page-links a:hover { text-decoration: underline; }
.site .page-links:not(:empty) + .account { margin-left: 18px; }
@media (max-width: 900px) { .site .tag { display: none; } }
@media (max-width: 640px) { .site .page-links { display: none; } }

/* The FAQ in groups */
.faq h3 { font-size: 17px; margin: 22px 0 4px; color: var(--ink-2); font-weight: 600; }

/* Contact form */
.contact-form { display: grid; gap: 14px; max-width: 640px; margin-top: 14px; background: var(--surface); border-radius: var(--radius); padding: 18px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; align-content: start; gap: 6px; font-weight: 600; font-size: 16px; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); width: 100%;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 10px 12px; min-height: 48px;
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  justify-self: start; min-height: 48px; font: inherit; font-weight: 600; color: var(--surface);
  background: var(--ink); border: 0; border-radius: var(--radius); padding: 0 24px; cursor: pointer;
}
.contact-form .error { margin: 0; color: var(--critical-ink); }
.contact-form .hint { margin: 0; color: var(--muted); font-size: 14px; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.table-wrap.admin td.message { white-space: pre-wrap; max-width: 40ch; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } .contact-form { padding: 16px; } }
