/* ==========================================================================
   skoterförsäkring.nu – designen "Fjäll" (projektbrief avsnitt 6)
   ========================================================================== */

/* ---------- Typsnitt (självhostade, inga externa anrop) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Färger enligt briefen */
  --blue: #1B3A5C;        /* rubriker, länkar, logga – 11,6:1 på vit */
  --blue-dark: #12304D;   /* hover och text på isblå yta – 11,7:1 på --ice */
  --blue-mid: #2E6B9E;    /* sekundära länkar och ikoner – 5,7:1 på vit */
  --ice: #E6F0F7;         /* snabbsvar, tabellhuvud, försäkringsrutan */
  --orange: #F28C28;      /* knappar och varningar – bara mörk text på orange */
  --bg: #F5F8FA;
  --surface: #FFFFFF;
  --text: #14202B;        /* 15,5:1 på --bg */
  --text-muted: #4B5A66;

  /* Härledda hjälpfärger */
  --orange-hover: #F7A24E;  /* ljusare vid hover, mörk text blir kvar */
  --orange-light: #FEF1E4;  /* varningsruta och bästa värde */
  --line: #D3DEE7;          /* rutnät och avdelare */
  --line-soft: #E7EEF3;

  /* Typografi */
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-base: 1.0625rem;    /* 17 px */
  --leading: 1.6;
  --measure: 68ch;

  /* Mått */
  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 3px solid var(--blue-dark);
}

@media (min-width: 48rem) {
  :root { --text-base: 1.125rem; --gutter: 1.5rem; }  /* 18 px */
}

/* ---------- Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 700; color: var(--blue); }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); font-weight: 700; color: var(--blue); margin-top: 2em; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-top: 1.6em; }

p, ul, ol, dl, table, figure, details { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .3em; }
strong, b { font-weight: 600; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 2px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.nw { white-space: nowrap; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.hoppa {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 10;
  background: var(--orange); color: var(--text); padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.hoppa:focus { top: .75rem; }
main:focus { outline: none; }

/* ---------- Sidhuvud ---------- */
.sidhuvud { background: var(--surface); border-bottom: 1px solid var(--line); }
.sidhuvud-inre {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 2rem; padding-block: .8rem;
}
.logga { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--blue); }
.logga:hover { color: var(--blue-dark); }
.logga-symbol { width: 28px; height: auto; flex: none; }
.logga-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logga-tld { font-weight: 600; }

.huvudmeny { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
.huvudmeny::-webkit-scrollbar { display: none; }
.huvudmeny ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .1rem var(--gutter) .1rem; white-space: nowrap; }
.huvudmeny li + li { margin-top: 0; }
.huvudmeny a {
  display: block; padding: .45rem .65rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.huvudmeny a:hover { background: var(--ice); color: var(--blue-dark); }
.huvudmeny a[aria-current] { color: var(--blue-dark); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }

@media (min-width: 60rem) {
  .sidhuvud-inre { flex-wrap: nowrap; }
  .huvudmeny { width: auto; margin: 0; overflow: visible; }
  .huvudmeny ul { padding: 0; }
}

/* ---------- Artikel ---------- */
.artikel-wrap { padding-block: 1.25rem 4rem; }
.artikel > :not(.prosa),
.prosa > * { max-width: var(--measure); }
.prosa > .jamforelse,
.prosa > .bred { max-width: none; }
/* Illustrationer (SVG) i löptext */
.prosa img { display: block; max-width: min(100%, var(--measure)); height: auto; margin: 1.5rem 0; }

.artikel-huvud { margin-top: 1.25rem; }
.artikel-huvud h1 { margin-bottom: .35em; }

.fortroende { color: var(--text-muted); font-size: .9rem; margin: 0 0 1.5rem; }
.fortroende a { color: inherit; }

/* Brödsmulor */
.brodsmulor { font-size: .875rem; color: var(--text-muted); }
.brodsmulor ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.brodsmulor li + li { margin-top: 0; }
.brodsmulor li + li::before { content: "/"; margin: 0 .5em; color: #8C9AA6; }
.brodsmulor a { color: var(--text-muted); }
.brodsmulor [aria-current] { color: var(--text); }

/* Snabbsvarsruta */
.snabbsvar {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.2rem;
  margin: 0 0 2rem;
}
.snabbsvar-rubrik {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--blue-dark); margin: 0 0 .3rem;
}
.snabbsvar p:last-child { margin-bottom: 0; }
.snabbsvar p:not(.snabbsvar-rubrik) { font-size: 1.05em; }

/* Innehållsförteckning */
.toc {
  border-left: 3px solid var(--blue);
  padding: .25rem 0 .25rem 1.1rem;
  margin: 0 0 2rem;
}
.toc-rubrik { font-family: var(--font-head); font-weight: 600; margin: 0 0 .4rem; }
.toc ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.toc li + li { margin-top: .25rem; }

/* Rutor: fakta, försäkring och varning */
.ruta { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.ruta > :last-child { margin-bottom: 0; }
.ruta-rubrik { font-family: var(--font-head); font-weight: 700; margin: 0 0 .35rem; }
.ruta-fakta { background: var(--surface); border: 1px solid var(--line); }
.ruta-fakta .ruta-rubrik { color: var(--blue); }

/* Knapp (CTA) – alltid mörk text på orange (6,7:1), aldrig vit (2,5:1) */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 1.5rem 0; }
.knapp {
  display: inline-block; background: var(--orange); color: var(--text);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3;
  padding: .8rem 1.25rem; border-radius: var(--radius-sm); text-decoration: none;
}
.knapp:hover { background: var(--orange-hover); color: var(--text); }
.knapp:focus-visible { outline-offset: 3px; }
.annons {
  font-size: .8rem; color: var(--text-muted); border: 1px solid var(--line);
  padding: .1rem .5rem; border-radius: 999px; background: var(--surface);
}

/* FAQ */
.faq { margin-top: 3rem; }
.faq h2 { margin-top: 0; }
.faq-fraga { border-top: 1px solid var(--line); margin: 0; }
.faq-fraga:last-of-type { border-bottom: 1px solid var(--line); }
.faq-fraga summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.35;
}
.faq-fraga summary::-webkit-details-marker { display: none; }
.faq-fraga summary::after {
  content: ""; flex: none; width: .7rem; height: .7rem; margin-top: .3rem;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-fraga[open] summary::after { transform: rotate(-135deg); margin-top: .55rem; }
.faq-fraga summary:hover { color: var(--blue-dark); }
.faq-svar { padding: 0 0 1rem; }
.faq-svar > :last-child { margin-bottom: 0; }

/* Källor */
.kallor { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--text-muted); }
.kallor h2 { font-size: 1.1rem; margin-top: 0; color: var(--text); }
.kallor ul { padding-left: 1.1em; }
.disclaimer { font-style: italic; }

/* Tabeller i löptext (ej scorekortet) */
.prosa table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
.tabell-rulla { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.1em; }
.tabell-rulla:focus-visible { outline-offset: 2px; }
.tabell-rulla > table { margin: 0; }
@media (max-width: 47.99rem) { .prosa table { font-size: .875rem; } }
.prosa table th, .prosa table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prosa table thead th { background: var(--ice); color: var(--blue-dark); font-family: var(--font-head); font-weight: 600; }

/* ---------- Försäkringsrutan och varningsrutan ---------- */
.ruta-rubrik:has(.ruta-ikon) { display: flex; align-items: center; gap: .55rem; }
.ruta-ikon { flex: none; width: 1.35rem; height: 1.35rem; }

/* "Så påverkar det din försäkring" – isblå, sist i säkerhets-, regel- och ägarartiklar */
.ruta-forsakring {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.2rem;
  margin: 2.5rem 0 2rem;
}
.ruta-forsakring .ruta-rubrik { color: var(--blue-dark); font-size: 1.05rem; }
.ruta-forsakring .ruta-ikon { color: var(--blue-mid); }
.ruta-forsakring a { color: var(--blue-dark); }
.ruta-lank { margin: .6rem 0 0; }
.ruta-lank a { font-weight: 600; text-decoration-thickness: 1.5px; }
.ruta-lank a::after { content: " →"; }

/* Varningsruta för livsviktiga råd – orange vänsterkant, används sparsamt */
.ruta-varning {
  background: var(--orange-light);
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ruta-varning .ruta-rubrik { color: var(--text); }

/* ==========================================================================
   Jämförelsetabellen – sajtens signatur
   Ett bolag per rad, uppgifterna i kolumner. Bästa värde per kolumn får en
   tunn orange stolpe och ett ledkryss, som ledmarkeringen på en vinterled.
   All annan form hålls lugn.
   ========================================================================== */
.jamforelse {
  --jf-radkol: 11rem;
  margin: 2rem 0 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.prosa > .jamforelse { max-width: none; }

/* På stor skärm får den fullständiga tabellen gå utanför textspalten */
@media (min-width: 80rem) {
  .prosa > .jamforelse:not(.jamforelse-enskild) {
    width: min(calc(100vw - 3rem), 112rem);
    position: relative; left: 50%; transform: translateX(-50%);
  }
}

.jf-huvud {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem 1rem;
  background: var(--blue); color: #fff;
  padding: .75rem 1rem;
}
.jf-rubrik { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.jf-meta { font-size: .85rem; color: #DCE8F2; }

.jf-tabell { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.jf-scrollhint { display: none; margin: 0; padding: .45rem 1rem; font-size: .8rem; color: var(--text-muted); background: #FAFCFD; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 60rem) { .jf-scrollhint { display: block; } }
.jf-tabell:focus-visible { outline-offset: -3px; }
.jf-tabell table {
  width: 100%;
  table-layout: fixed;
  margin: 0;
  border-collapse: separate; border-spacing: 0;
  font-size: .875rem; line-height: 1.45;
}
.jf-tabell th, .jf-tabell td {
  text-align: left; vertical-align: top;
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  font-weight: 400;
}
.jf-tabell tr > :last-child { border-right: 0; }
.jf-tabell tbody tr:last-child > * { border-bottom: 0; }
.jf-tabell tbody tr > * { border-bottom-color: var(--line); }
/* Varannan rad svagt tonad så att det är lätt att följa ett bolag i sidled */
.jf-tabell tbody tr:nth-child(even) > * { background: #F8FAFC; }
.jf-tabell tbody tr:nth-child(even) > .is-bast { background: var(--orange-light); }
.jf-tabell td { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

.jf-col-bolag { width: var(--jf-radkol); }
.jf-col-kalla { width: 12rem; }

/* Uppgifterna i tabellhuvudet */
.jf-tabell thead th {
  background: var(--ice); color: var(--blue-dark);
  vertical-align: bottom;
  border-bottom: 2px solid var(--blue);
  border-right-color: #D0DFEA;
}
.jf-namn { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--text); margin: 0; }
.jf-tabell thead .jf-namn { color: var(--blue-dark); }
.jf-namn a { color: inherit; text-decoration-color: var(--blue-mid); }
.jf-namn a:hover { color: var(--blue); }
.jf-under { display: block; font-size: .75rem; color: var(--text-muted); margin: .15rem 0 0; line-height: 1.35; }
.jf-tabell thead .jf-under { color: var(--blue-dark); }
.jf-notis { display: block; font-size: .72rem; line-height: 1.35; color: var(--blue-dark); margin: .4rem 0 0; font-style: italic; }

/* Bolagsnamnen i vänsterkolumnen ligger kvar när man scrollar i sidled */
.jf-radkol {
  position: sticky; left: 0; z-index: 1;
  width: var(--jf-radkol);
  background: var(--surface);
  border-right: 1px solid var(--line) !important;
  box-shadow: 4px 0 6px -4px rgb(20 32 43 / .18);
}
.jf-tabell thead .jf-radkol { background: var(--ice); z-index: 2; }
.jf-horn { font-size: .75rem; font-weight: 500; color: var(--blue-dark); }
.jf-radrubrik { display: block; font-family: var(--font-head); font-weight: 700; font-size: .875rem; line-height: 1.3; color: var(--blue-dark); }
.jf-radrubrik a { color: var(--blue-dark); }
.jf-tabell thead .jf-hint { color: var(--blue-dark); opacity: .85; }
.jf-bolag .jf-namn { font-size: 1rem; }
.jf-hint { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.35; }

/* Värden */
.jf-varde { display: inline; }
.jf-niva {
  display: inline-block; margin: 0 .15rem .3rem 0;
  padding: .05rem .5rem; border-radius: 999px;
  background: var(--ice); color: var(--blue-dark);
  font-size: .78rem; font-weight: 500; line-height: 1.5;
}
.jf-lista { margin: 0; padding-left: 1rem; }
.jf-lista li + li { margin-top: .2rem; }
.jf-not { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .35rem; line-height: 1.4; }
.jf-kontroll {
  display: block; width: fit-content; margin-top: .4rem;
  padding: 0 .45rem; border-radius: 999px;
  border: 1px dashed var(--blue-mid); color: var(--blue-mid);
  font-size: .7rem; font-weight: 500; line-height: 1.6; white-space: nowrap;
}
.is-tom { color: var(--text-muted); }

/* Bästa värde: tunn orange stolpe och ledkryss */
.is-bast { background: var(--orange-light); box-shadow: inset 3px 0 0 var(--orange); }
.is-bast .jf-varde { font-weight: 500; }
.is-bast .jf-tal { font-weight: 700; }
.jf-tal { font-variant-numeric: tabular-nums; }
.ledkryss { display: inline-block; width: .75rem; height: 1.2rem; vertical-align: -.3rem; margin-right: .35rem; }

/* Källan */
.jf-kalla { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.jf-kalla a { color: var(--text-muted); }

/* Mobil och surfplatta: ett kort per bolag */
.jf-kortlista { display: none; list-style: none; margin: 0; padding: 1rem; gap: 1rem; }
.jf-kort { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.jf-kortlista li + li { margin-top: 0; }
.jf-kort .jf-namn { font-size: 1.1rem; }
.jf-kort .jf-under, .jf-kort .jf-notis { margin-bottom: 0; }
.jf-dl {
  display: grid; grid-template-columns: minmax(6.75rem, 36%) 1fr;
  margin: .75rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  font-size: .9rem; line-height: 1.45;
}
.jf-rad { display: contents; }
.jf-rad dt, .jf-rad dd { padding: .55rem .7rem; margin: 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.jf-rad:last-child dt, .jf-rad:last-child dd { border-bottom: 0; }
.jf-rad dt { background: var(--ice); color: var(--blue-dark); font-family: var(--font-head); font-weight: 600; font-size: .8rem; line-height: 1.35; }
.jf-rad dt a { color: inherit; }
.jf-rad.is-tom dd { color: var(--text-muted); }
.jf-rad.is-bast dd { background: var(--orange-light); box-shadow: inset 3px 0 0 var(--orange); }
.jf-rad.is-bast .jf-varde { font-weight: 500; }
.is-bast .jf-tal { font-weight: 700; }
.jf-tal { font-variant-numeric: tabular-nums; }

.jf-fler { margin: .75rem 0 0; }
.jf-fler summary {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue);
  padding: .35rem 0;
}
.jf-fler summary::-webkit-details-marker { display: none; }
.jf-fler summary::after {
  content: ""; width: .5rem; height: .5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.jf-fler[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.jf-fler .jf-dl { margin-top: .35rem; }
.jf-kortkalla { margin: .7rem 0 0; line-height: 1.3; }

@media (max-width: 59.99rem) {
  .jf-tabell { display: none; }
  .jf-kortlista { display: grid; }
}
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .jf-kortlista { grid-template-columns: 1fr 1fr; align-items: start; }
}
/* Ett enskilt bolag visas alltid som kort */
.jamforelse-enskild { max-width: var(--measure); }
.jamforelse-enskild .jf-tabell { display: none; }
.jamforelse-enskild .jf-kortlista { display: grid; grid-template-columns: 1fr; }
.jamforelse-enskild .jf-kort { border: 0; padding: 0; }
.jamforelse-enskild .jf-dl { grid-template-columns: minmax(7.5rem, 11rem) 1fr; }

/* Fotnot */
.jf-fot {
  border-top: 1px solid var(--line);
  background: #FAFCFD;
  padding: .8rem 1rem;
  font-size: .8rem; color: var(--text-muted); line-height: 1.5;
}
.jf-fot p { margin: .4rem 0 0; }
.jf-fot a { color: var(--blue); }
.jf-forklaring { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
.jf-forklaring li { margin: 0; }
.jf-forklaring .ledkryss { margin-right: .2rem; }
.jf-forklaring .jf-kontroll { display: inline-block; margin: 0 .2rem 0 0; }
.jf-streck { font-weight: 700; color: var(--text); margin-right: .2rem; }
.jf-mer { font-weight: 600; font-size: .9rem; }

/* ---------- För och emot (bolagssidor) ---------- */
.for-mot { display: grid; gap: 1rem 2rem; max-width: var(--measure); }
@media (min-width: 40rem) { .for-mot { grid-template-columns: 1fr 1fr; } }
.for-mot h3 { margin-top: 0; font-size: 1.05rem; }
.lista-for, .lista-mot { list-style: none; padding: 0; }
.lista-for li, .lista-mot li { position: relative; padding-left: 1.5rem; }
.lista-for li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .45rem; height: .8rem; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.lista-mot li::before { content: ""; position: absolute; left: 0; top: .75em; width: .75rem; border-top: 2px solid var(--text-muted); }

/* ---------- Ingångar (startsidan) ---------- */
.ingangar { list-style: none; padding: 0; display: grid; gap: 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.ingangar li { margin: 0; border-bottom: 1px solid var(--line); }
.ingangar a { display: block; padding: .9rem 0; text-decoration: none; color: var(--text); }
.ingangar a:hover .ingang-rubrik { color: var(--blue-dark); text-decoration: underline; }
.ingang-rubrik { display: block; font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: 1.1rem; }
.ingang-text { display: block; color: var(--text-muted); font-size: .95rem; }

/* ---------- Sidfot ---------- */
.sidfot { background: var(--blue-dark); color: #fff; padding-block: 2.5rem; font-size: .95rem; }
.sidfot a { color: #fff; }
.sidfot-inre { display: grid; gap: 1.5rem; }
.sidfot-namn { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: .3rem; }
.sidfot-om p { max-width: 46ch; }
.sidfot-meny ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.sidfot-meny li + li { margin-top: 0; }
.sidfot-disclaimer { font-size: .85rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .2); max-width: 70ch; }
.sidfot :focus-visible { outline-color: var(--orange); }

@media (min-width: 48rem) {
  .sidfot-inre { grid-template-columns: 1fr auto; }
  .sidfot-disclaimer { grid-column: 1 / -1; }
}

/* ---------- Rörelse bara när användaren vill ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utskrift ---------- */
@media print {
  .sidhuvud, .sidfot, .hoppa, .toc { display: none; }
  body { background: #fff; }
  .jf-tabell { display: block !important; overflow: visible; }
  .jf-kortlista { display: none !important; }
  .jf-radkol { position: static; box-shadow: none; }
}
