/* ==========================================================================
   Ordningsbot.se – stilmall (design A1 "Ljus & mjuk")
   Mobile first. Färger som CSS-variabler, mörkt läge via prefers-color-scheme
   eller manuellt val (data-theme på <html>).
   ========================================================================== */

/* ---------- 1. Designvariabler ---------- */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --hero: #eef3fc;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --surface-3: #f7f9fc;
  --ink: #14213d;
  --ink-2: #2c3a5a;
  --muted: #46557a;     /* 7.4:1 mot vit */
  --muted-2: #56647f;   /* 5.9:1 mot vit */
  --line: #e2e7f0;
  --line-strong: #cfd6e4;
  --accent: #2445c7;    /* 7.2:1 mot vit */
  --accent-hover: #1a3399;
  --accent-soft: #e6ecfb;
  --on-accent: #ffffff;
  --mark: #fff1b8;
  --mark-ink: #14213d;
  --ok: #1a8a5d;
  --warn-bg: #fff6e0;
  --warn-ink: #6b4a00;
  --danger-bg: #fdecec;
  --danger-ink: #8a1c1c;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06);
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 12px 32px rgba(20, 33, 61, .08);
  --shadow-search: 0 1px 2px rgba(20, 33, 61, .08), 0 12px 32px rgba(36, 69, 199, .14);
  --ring-search: rgba(36, 69, 199, .18);

  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 18px;
  --wrap: 1120px;
  --gutter: 16px;

  color-scheme: light;
}

/* Mörka färger, delas av automatiskt och manuellt mörkt läge. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1220; --hero: #121a2d; --surface: #151d30; --surface-2: #1c2640; --surface-3: #121a2d;
    --ink: #e9edf7; --ink-2: #d2d9ea; --muted: #aab4cc; --muted-2: #97a3bf;
    --line: #253049; --line-strong: #34405e;
    --accent: #8fb0ff; --accent-hover: #b4caff; --accent-soft: #1d2a4d; --on-accent: #0d1220;
    --mark: #4a3d0a; --mark-ink: #fff3c4; --ok: #5fd3a0;
    --warn-bg: #3a2e0c; --warn-ink: #ffe3a1; --danger-bg: #3d1717; --danger-ink: #ffc9c9;
    --shadow-sm: none; --shadow: 0 0 0 1px var(--line);
    --shadow-search: 0 12px 32px rgba(0, 0, 0, .35); --ring-search: rgba(143, 176, 255, .22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1220; --hero: #121a2d; --surface: #151d30; --surface-2: #1c2640; --surface-3: #121a2d;
  --ink: #e9edf7; --ink-2: #d2d9ea; --muted: #aab4cc; --muted-2: #97a3bf;
  --line: #253049; --line-strong: #34405e;
  --accent: #8fb0ff; --accent-hover: #b4caff; --accent-soft: #1d2a4d; --on-accent: #0d1220;
  --mark: #4a3d0a; --mark-ink: #fff3c4; --ok: #5fd3a0;
  --warn-bg: #3a2e0c; --warn-ink: #ffe3a1; --danger-bg: #3d1717; --danger-ink: #ffc9c9;
  --shadow-sm: none; --shadow: 0 0 0 1px var(--line);
  --shadow-search: 0 12px 32px rgba(0, 0, 0, .35); --ring-search: rgba(143, 176, 255, .22);
  color-scheme: dark;
}

/* ---------- 2. Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
mark { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- 3. Sidhuvud och hero ---------- */
.top { background: var(--hero); }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.brand__name span { color: var(--accent); }

.logo-lens { fill: var(--surface); stroke: var(--accent); }
.logo-handle { stroke: var(--ink); }
.logo-glyph { fill: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__links { display: none; gap: 2px; }
.nav__links a {
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  padding: 10px 14px; border-radius: var(--radius-s); transition: background .15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .15s, background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.96); }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}

.hero { padding: 20px 0 32px; text-align: left; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(30px, 7vw, 48px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; }
.hero__lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); margin-bottom: 24px; max-width: 46ch; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: var(--radius-l);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-search); outline: 3px solid var(--ring-search);
  transition: outline-color .15s, box-shadow .15s;
}
.search:focus-within { outline-color: var(--accent); }
.search__icon { flex: none; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; outline: none;
  font-size: 18px; color: var(--ink);
}
.search input::placeholder { color: var(--muted-2); opacity: 1; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search input:focus-visible { box-shadow: none; }
.search__submit {
  flex: none; height: 50px; min-width: 50px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.search__submit:hover { background: var(--accent-hover); }
.search__submit:active { transform: scale(.97); }
.search__submit-text { display: none; }
.search__kbd {
  display: none; font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 1px 7px; margin-right: 4px;
}

.popular {
  display: flex; gap: 8px; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none;
}
.popular::-webkit-scrollbar { display: none; }
.popular a { flex: none; }
.popular a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); padding: 8px 14px; border-radius: 999px;
  min-height: 40px; display: inline-flex; align-items: center;
  transition: background .15s, color .15s, transform .1s;
}
.popular a:hover { background: var(--accent-soft); color: var(--accent); }
.popular a:active { transform: scale(.97); }
.popular__label { font-size: 15px; color: var(--muted); align-self: center; margin-right: 4px; }

/* ---------- 4. Filterrad ---------- */
.toolbar {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.segmented {
  display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px;
  overflow-x: auto; scrollbar-width: none; border: 0; margin: 0; min-width: 0;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s;
}
.segmented label:hover { color: var(--ink); }
.segmented input:checked + label { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(20, 33, 61, .14); }
.segmented input:focus-visible + label { box-shadow: var(--focus); }

.toolbar__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.select, .input {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font-size: 15px;
}
.input { width: 100%; }
.select:hover, .input:hover { border-color: var(--muted-2); }

.more-filters { position: relative; }
.more-filters summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font-size: 15px; font-weight: 500; background: var(--surface); user-select: none;
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary:hover { border-color: var(--muted-2); }
.more-filters__count {
  background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: 12px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
}
.more-filters__panel {
  margin-top: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 14px; grid-template-columns: 1fr 1fr;
}
.more-filters__panel .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.panel-actions { display: flex; gap: 8px; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--block { width: 100%; }

/* ---------- 5. Resultat ---------- */
.results-area { padding-bottom: 56px; }
.summary { font-size: 15px; color: var(--muted); margin-bottom: 14px; min-height: 24px; }
.summary strong { color: var(--ink); }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout__main { flex: 999 1 520px; min-width: 0; position: relative; }
.layout__aside { display: none; }

.progress {
  position: absolute; top: -10px; left: 0; height: 3px; width: 100%; border-radius: 3px; overflow: hidden;
  opacity: 0; transition: opacity .2s;
}
.progress::after {
  content: ""; position: absolute; inset: 0; width: 35%; background: var(--accent); border-radius: 3px;
  animation: slide 1s ease-in-out infinite;
}
[aria-busy="true"] .progress { opacity: 1; }
[aria-busy="true"] .result-list { opacity: .55; transition: opacity .2s; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; transition: opacity .2s; }
.result {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .2s, transform .15s;
  animation: rise .25s ease both;
}
.result:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-1px); }
.result__code {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: none; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.result__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.result__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.result__meta { font-size: 14px; color: var(--muted-2); }
.result__cond { font-size: 15px; color: var(--ink-2); }
.result__amount-note { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; margin-top: 2px; }
.result__flag { color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 0 6px; font-size: 13px; font-weight: 600; }
.result__amount {
  flex: none; font-size: 18px; font-weight: 800; background: var(--surface-2); padding: 6px 12px;
  border-radius: var(--radius-s); white-space: nowrap; font-variant-numeric: tabular-nums;
}
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.load-more { display: flex; justify-content: center; margin-top: 20px; }

.notice {
  margin-top: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-3);
  font-size: 15px; color: var(--muted);
}
.notice--partial { background: var(--warn-bg); color: var(--warn-ink); margin: 0 0 14px; }
.notice--error { background: var(--danger-bg); color: var(--danger-ink); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

.empty { text-align: center; padding: 40px 20px; border-radius: var(--radius-l); background: var(--surface-3); }
.empty__icon { margin: 0 auto 14px; color: var(--muted-2); }
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); }
.empty__suggest { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.related { margin-top: 28px; text-align: left; }
.related h3 { font-size: 16px; margin-bottom: 12px; }

/* ---------- 6. Detaljkort ---------- */
.detail {
  border-radius: var(--radius-l); padding: 24px; background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.detail__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.detail__title { font-size: 21px; line-height: 1.3; font-weight: 700; margin-bottom: 12px; }
.detail__cond { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.detail__amount { padding: 18px 20px; border-radius: var(--radius); background: var(--hero); margin: 16px 0 20px; }
.detail__amount-label { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.detail__amount-value--range { font-size: 32px !important; }
.detail__amount-value { font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.variants { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.variants th, .variants td { padding: 7px 0; border-top: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.variants th { font-weight: 500; color: var(--ink-2); padding-right: 12px; }
.variants td { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.variants__help { margin-top: 10px; font-size: 13px; color: var(--muted); }
.doc-notes { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.doc-notes summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.doc-notes ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.facts { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; font-size: 15px; }
.facts dt { color: var(--muted-2); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd.normal { font-weight: 400; }
.footnotes { margin: 0; padding-left: 18px; font-weight: 400; }
.warn { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.detail__source { margin-top: 22px; }
.detail__fine-print { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.detail-placeholder { padding: 28px; border-radius: var(--radius-l); border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }

/* ---------- 7. Innehållssidor ---------- */
.page { padding-block: 32px 56px; }
.page h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.page h2 { font-size: 22px; margin: 36px 0 12px; }
.page p, .page li { color: var(--ink-2); max-width: 70ch; }
.page p + p { margin-top: 12px; }
.detail-page { max-width: 720px; }
.detail-page .detail__title { font-size: clamp(24px, 4vw, 30px); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-weight: 600; text-decoration: none; min-height: 44px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--surface-3); }
.table tr:last-child td { border-bottom: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .2s, transform .15s;
}
.cat-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.cat-card span { font-size: 14px; color: var(--muted); }
.cat-card strong { font-size: 17px; }

/* ---------- 8. Sidfot ---------- */
.site-footer { background: var(--surface-3); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted-2); }

/* ---------- 9. Större skärmar ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .search__submit { padding: 0 26px; }
  .search__submit-text { display: inline; }
  .search__submit-icon { display: none; }
  .search__kbd { display: inline-block; }
  .result { padding: 16px 18px; }
  .result__code { display: flex; }
  .result__title { font-size: 17px; }
  .result__amount { font-size: 20px; padding: 8px 14px; }
  .toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .more-filters__panel { position: absolute; right: 0; z-index: 10; width: 360px; }
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .hero { padding: 40px 0 60px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__inner { max-width: 780px; margin: 0 auto; }
  .popular { justify-content: center; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 960px) {
  .layout__aside { display: block; flex: 1 1 340px; position: sticky; top: 20px; }
  /* Markerad post syns bara när detaljpanelen finns bredvid listan. */
  .result[aria-current="true"] { border: 2px solid var(--accent); padding: 15px 17px; box-shadow: 0 8px 20px rgba(36, 69, 199, .10); }
  .detail { padding: 28px; }
}

/* ---------- 10. Respektera önskemål om mindre rörelse ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .top, .toolbar, .layout__aside, .site-footer, .load-more { display: none; }
}

/* ---------- 11. Annonsplatser (Google AdSense) ----------
   Fast minsta höjd per plats så att innehållet inte hoppar när annonsen laddas.
   Märkningen "Annons" visas alltid (krav i marknadsföringslagen). */
.ad { display: block; list-style: none; margin: 0; }
.ad__label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 4px;
}
.ad__box { display: block; width: 100%; overflow: hidden; border-radius: var(--radius-s); }
.ad--placeholder .ad__box {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px dashed var(--line-strong);
  color: var(--muted-2); font-size: 13px;
}
.ad--top { margin: 20px 0 4px; }
.ad--top .ad__box { min-height: 100px; }
.ad--infeed { padding: 6px 0; }
.ad--infeed .ad__box { min-height: 120px; }
.ad--sidebar { margin-top: 20px; }
.ad--sidebar .ad__box { min-height: 250px; }
.ad--detail { margin-top: 28px; }
.ad--detail .ad__box { min-height: 250px; }
@media (min-width: 768px) {
  .ad--top .ad__box { min-height: 90px; }
  .ad--sidebar .ad__box { min-height: 600px; }
}
@media print { .ad { display: none !important; } }

/* ---------- 12. Landningssidor, brödsmulor och listor ---------- */
.breadcrumbs { padding-top: 18px; font-size: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--muted-2); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted-2); }
.breadcrumbs a { text-decoration: none; color: var(--ink-2); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--muted); }
.breadcrumbs + .page { padding-top: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 20px; max-width: 65ch; }
.search--inline { max-width: 620px; margin: 8px 0 8px; box-shadow: var(--shadow-sm); }
.group-title { font-size: 17px; margin: 26px 0 8px; color: var(--ink-2); }
.fine-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fine-rows li { border-bottom: 1px solid var(--line); }
.fine-rows a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 4px; text-decoration: none; color: var(--ink); min-height: 44px;
  transition: background .15s;
}
.fine-rows a:hover { background: var(--surface-3); }
.fine-rows__cond { color: var(--muted); }
.fine-rows__amount { flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.related-fines { max-width: 720px; margin-top: 40px; }
.related-fines h2 { font-size: 20px; margin: 0 0 10px; }
.related-fines p { margin-top: 12px; }
.back-links { margin-top: 32px; }
.site-footer .footer-links { justify-content: flex-start; padding-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; font-size: 14px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
