/* ==========================================================================
   entusiastförsäkring.se – designen "Depå" (projektbrief avsnitt 6)
   Grafitgrått, rent och tekniskt med röd accent som på ett varvräknarband.
   Djärvheten ligger i jämförelsetabellen, allt annat hålls rent.
   ========================================================================== */

/* ---------- 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Färger enligt briefen */
  --graphite: #1C2530;     /* rubriker, header, logga. Vit text: 15,5:1 */
  --red: #D62839;          /* knappar och markeringar. Vit text: 5,0:1 */
  --red-text: #B81F30;     /* röd text och länkar på vitt: 6,4:1 */
  --steel: #E9ECF0;        /* snabbsvar, tabellhuvud, försäkringsruta */
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --text: #151A21;
  --text-muted: #4F5B67;

  /* Härledda hjälpfärger */
  --graphite-2: #2A3542;   /* hover i mörka ytor */
  --on-graphite: #E9ECF0;  /* text på grafit: 13,1:1 */
  --on-graphite-muted: #B6C0CB; /* sekundär text på grafit: 8,4:1 */
  --red-on-dark: #FF6B78;  /* röd text på grafit: 5,6:1 */
  --red-tint: #FCEDEE;     /* bakgrund bakom bästa värde */
  --line: #D6DBE1;         /* tunna rutnätslinjer */
  --line-strong: #7D8793;   /* kanter på knappar och filter: 3,7:1 mot vitt */

  /* Typografi */
  --font-head: "Barlow Semi Condensed", "Arial Narrow", ui-sans-serif, system-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;
  --wrap-bred: 88rem;
  --gutter: 1rem;
  --radius: 6px;
  --radius-sm: 4px;
  --focus: 3px solid var(--graphite);
}

@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%; }
[hidden] { display: none !important; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--graphite);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); font-weight: 700; margin-top: 1.9em; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 1.5em; }

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(--red-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--graphite); 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; }

.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); }
.wrap-bred { max-width: var(--wrap-bred); }

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

/* ---------- Sidhuvud ---------- */
.sidhuvud { background: var(--graphite); color: var(--on-graphite); }
.sidhuvud :focus-visible { outline-color: #fff; }
.sidhuvud-inre {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 2rem; padding-block: .7rem;
}
.logga { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.logga:hover { color: #fff; }
.logga-symbol { width: 34px; height: 34px; flex: none; box-shadow: 0 0 0 1px rgb(255 255 255 / .18); border-radius: 7px; }
.logga-text { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: 0; line-height: 1; }
.logga-tld { color: var(--red-on-dark); }

.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: .1rem; list-style: none; margin: 0; padding: .1rem var(--gutter); white-space: nowrap; }
.huvudmeny li + li { margin-top: 0; }
.huvudmeny a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  color: var(--on-graphite); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
}
.huvudmeny a:hover { background: var(--graphite-2); color: #fff; }
.huvudmeny a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }

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

/* Varvräknarbandet: skalstreck på grafit som slutar i ett rött fält */
.varvband {
  height: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgb(255 255 255 / .28) 22px 24px),
    linear-gradient(90deg, #34404E 0 76%, var(--red) 76% 100%);
}

/* ---------- Startsidans topp ---------- */
.hem-topp { background: var(--graphite); color: var(--on-graphite); padding-block: 2rem 4.5rem; }
.hem-topp h1 { color: #fff; max-width: 30ch; margin-bottom: .4em; }
.hem-ingress { font-size: 1.1em; max-width: 60ch; color: var(--on-graphite); }
.hem-topp .fortroende { color: var(--on-graphite-muted); }
.hem-topp .fortroende a { color: var(--on-graphite); }
.hem-topp :focus-visible { outline-color: #fff; }
.hem-jamfor { margin-top: -3rem; position: relative; }
.hem-jamfor .tidtabell { margin-top: 0; box-shadow: 0 10px 30px -12px rgb(28 37 48 / .35); }
@media (min-width: 48rem) { .hem-topp { padding-block: 3rem 5.5rem; } .hem-jamfor { margin-top: -3.75rem; } }

/* ---------- Artikel ---------- */
.artikel-wrap { padding-block: 1.25rem 4rem; }
.artikel > :not(.prosa),
.prosa > * { max-width: var(--measure); }
.prosa > .tidtabell,
.prosa > .bred,
.artikel > .tidtabell { max-width: none; }

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

/* Förtroenderad */
.fortroende {
  display: flex; flex-wrap: wrap; gap: .2rem 0;
  color: var(--text-muted); font-size: .875rem; margin: 0 0 1.5rem;
  font-variant-numeric: tabular-nums;
}
.fortroende-del { display: inline-flex; align-items: center; gap: .35rem; }
.fortroende-del + .fortroende-del::before { content: ""; width: 1px; height: .9em; background: currentColor; opacity: .45; margin: 0 .7rem; }
.fortroende a { color: inherit; }
.ikon { flex: none; }

/* 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: var(--line-strong); }
.brodsmulor a { color: var(--text-muted); }
.brodsmulor [aria-current] { color: var(--text); }

/* Snabbsvarsruta */
.snabbsvar {
  background: var(--steel);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem 1.1rem;
  margin: 0 0 2rem;
}
.snabbsvar-rubrik { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--graphite); margin: 0 0 .25rem; }
.snabbsvar p:last-child { margin-bottom: 0; }
.snabbsvar p:not(.snabbsvar-rubrik) { font-size: 1.05em; }

/* Utkast (platshållare före lansering) */
.utkast { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 2rem; background: var(--surface); color: var(--text-muted); font-size: .95rem; }
.utkast p { margin: 0; }
.utkast strong { color: var(--text); }

/* Innehållsförteckning */
.toc { border-left: 3px solid var(--graphite); padding: .2rem 0 .2rem 1.1rem; margin: 0 0 2rem; }
.toc-rubrik { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--graphite); margin: 0 0 .4rem; }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; font-size: .95rem; }
.toc li { counter-increment: toc; display: flex; gap: .6rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--red-text); font-weight: 600; font-size: .85rem; padding-top: .1rem; }
.toc li + li { margin-top: .25rem; }

/* Faktaruta och tipsruta */
.ruta { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.ruta > :last-child { margin-bottom: 0; }
.ruta-rubrik { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 .35rem; color: var(--graphite); }
.ruta-fakta { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--graphite); border-radius: 0 0 var(--radius) var(--radius); }
.ruta-tips { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }

/* Rutan "Så påverkar det din försäkring" */
.paverkan {
  background: var(--steel);
  border-top: 4px solid var(--graphite);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.1rem 1.25rem 1.2rem;
  margin: 2.5rem 0;
}
.paverkan-huvud { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; color: var(--graphite); }
.paverkan-ikon { flex: none; width: 28px; height: 28px; }
.paverkan h2 { margin: 0; font-size: 1.35rem; }
.paverkan-text > :last-child { margin-bottom: .75rem; }
.paverkan-punkter { list-style: none; padding: 0; margin: 0 0 1rem; }
.paverkan-punkter li { position: relative; padding-left: 1.3rem; }
.paverkan-punkter li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: 3px; background: var(--red); }
.paverkan-lankar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 0; }
.paverkan-lankar a {
  display: inline-block; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .35rem .7rem; font-size: .9rem; font-weight: 500; color: var(--graphite); text-decoration: none;
}
.paverkan-lankar a:hover { border-color: var(--graphite); }
.paverkan-lankar .paverkan-jamfor { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.paverkan-lankar .paverkan-jamfor::after { content: " →"; }
.paverkan-lankar .paverkan-jamfor:hover { background: var(--red-text); border-color: var(--red-text); color: #fff; }

/* Knapp (CTA) – vit text på röd (5,0:1), mörkare röd vid hover */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 1.5rem 0; }
.knapp {
  display: inline-block; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.25; letter-spacing: .01em;
  padding: .75rem 1.3rem; border-radius: var(--radius-sm); text-decoration: none;
}
.knapp:hover { background: var(--red-text); color: #fff; }
.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.2rem; line-height: 1.3; color: var(--graphite);
}
.faq-fraga summary::-webkit-details-marker { display: none; }
.faq-fraga summary::after {
  content: ""; flex: none; width: .65rem; height: .65rem; margin-top: .35rem;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-fraga[open] summary::after { transform: rotate(-135deg); margin-top: .6rem; }
.faq-fraga summary:hover { color: var(--red-text); }
.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.25rem; margin-top: 0; }
.kallor ul { padding-left: 1.1em; }
.disclaimer { font-style: italic; }

/* Tabeller i löptext (ej jämförelsetabellen) */
.prosa table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; font-variant-numeric: tabular-nums; }
@media (max-width: 47.99rem) { .prosa table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; 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(--steel); color: var(--graphite); font-family: var(--font-head); font-weight: 700; font-size: 1rem; }

/* ==========================================================================
   Jämförelsetabellen – sajtens signatur
   Tidtagningsskärm: grafitlist med tidsstämpel, tabulära siffror, tunna
   rutnätslinjer och en röd markör för bästa värde.
   ========================================================================== */
.tidtabell {
  margin: 2rem 0 2.5rem;
  background: var(--surface);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.tt-huvud {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem;
  background: var(--graphite); color: #fff;
  padding: .75rem 1rem;
  border-bottom: 3px solid var(--red);
}
.tt-rubrik { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.tt-meta { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--on-graphite-muted); letter-spacing: .02em; }
.tt-pip { width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgb(214 40 57 / .3); }

/* Verktygsraden: filter och "Visa alla villkor" */
.tt-verktyg {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface);
}
.tt-filter { display: flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.tt-filterknapp, .tt-fler {
  font: 600 1rem/1.2 var(--font-head); letter-spacing: .01em;
  padding: .55rem .9rem; margin: 0; cursor: pointer;
  background: var(--surface); color: var(--graphite); border: 0;
}
.tt-filterknapp + .tt-filterknapp { border-left: 1px solid var(--line-strong); }
.tt-filterknapp:hover { background: var(--steel); }
.tt-filterknapp[aria-pressed="true"] { background: var(--graphite); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.tt-filterknapp:focus-visible, .tt-fler:focus-visible { outline: var(--focus); outline-offset: -3px; box-shadow: inset 0 0 0 5px #fff; }
.tt-filterknapp[aria-pressed="true"]:focus-visible { outline-color: #fff; box-shadow: inset 0 0 0 5px var(--graphite); }
.tt-fler { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: .95rem; }
.tt-fler:hover { border-color: var(--graphite); }
.tt-fler::before { content: "+"; display: inline-block; width: 1em; font-weight: 700; color: var(--red-text); }
.tt-fler[aria-pressed="true"]::before { content: "–"; }
.tt-status { flex: 1 1 100%; margin: 0; font-size: .85rem; color: var(--text-muted); }
.tt-status [data-filterantal] { font-weight: 600; color: var(--text); }
@media (min-width: 64rem) { .tt-fler { margin-left: auto; } }

/* Tabellen */
.tt-tabell { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt-tabell:focus-visible { outline-offset: -3px; }
.tt-tabell table {
  width: 100%; margin: 0;
  border-collapse: separate; border-spacing: 0;
  font-size: .875rem; line-height: 1.45;
}
.tt-tabell thead th {
  background: var(--steel); color: var(--graphite);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-align: left; vertical-align: bottom;
  padding: .6rem .75rem;
  border-bottom: 2px solid var(--graphite);
  border-right: 1px solid var(--line);
  min-width: 8.5rem;
}
.tt-tabell tbody th,
.tt-tabell tbody td {
  text-align: left; vertical-align: top;
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 400;
}
.tt-tabell tr > :last-child { border-right: 0; }
.tt-tabell tbody tr:last-child > * { border-bottom: 0; }
.tt-tabell tbody tr:hover > * { background-color: #F8F9FB; }
.tt-tabell tbody td { hyphens: auto; -webkit-hyphens: auto; }
.tt-k-maskinskada, .tt-k-forvaring, .tt-k-ombyggnad { min-width: 11rem; }

/* Kompakt läge: extra kolumner och förklaringar visas först med "Visa alla villkor" */
.tidtabell:not(.visar-alla) .is-extra { display: none; }
.tt-visning-tabell:not(.visar-alla) .tt-tabell .tt-not { display: none; }

/* Bolagskolumnen står still när man scrollar i sidled */
.tt-bolagkol {
  position: sticky; left: 0; z-index: 1;
  width: 14rem; min-width: 12rem;
  background: var(--surface);
  box-shadow: inset -2px 0 0 var(--graphite);
}
.tt-tabell thead .tt-bolagkol { background: var(--steel); z-index: 2; }

.tt-namn { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--graphite); line-height: 1.2; margin: 0; }
.tt-namn a { color: inherit; text-decoration-color: var(--red); }
.tt-namn a:hover { color: var(--red-text); }
.tt-produkt { display: block; font-size: .85rem; font-weight: 500; color: var(--text); margin: .15rem 0 0; }
.tt-taggar { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.tt-tagg { font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--graphite); background: var(--steel); border-radius: 2px; padding: .05rem .4rem; }
.tt-kalla { display: block; font-size: .75rem; color: var(--text-muted); margin: .4rem 0 0; }
.tt-kalla a { color: var(--text-muted); }
.tt-not { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .3rem; line-height: 1.4; }
.tt-tom, .is-tom { color: var(--text-muted); }
.is-overifierad .tt-namn { color: var(--text-muted); }

/* Bästa värde: röd markör, som bästa sektortid på en tidtagningsskärm.
   Markören följer det valda filtret (data-bast listar filtren där värdet är bäst). */
.tidtabell[data-filter="alla"] [data-bast~="alla"],
.tidtabell[data-filter="veteran"] [data-bast~="veteran"],
.tidtabell[data-filter="modern"] [data-bast~="modern"],
.tidtabell[data-filter="ombyggd"] [data-bast~="ombyggd"] {
  --bast: 1;
  background-color: var(--red-tint);
  box-shadow: inset 4px 0 0 var(--red);
}
.tt-bast-vh { display: none; }
.tidtabell[data-filter="alla"] [data-bast~="alla"] .tt-bast-vh,
.tidtabell[data-filter="veteran"] [data-bast~="veteran"] .tt-bast-vh,
.tidtabell[data-filter="modern"] [data-bast~="modern"] .tt-bast-vh,
.tidtabell[data-filter="ombyggd"] [data-bast~="ombyggd"] .tt-bast-vh { display: inline; }
.tidtabell[data-filter="alla"] [data-bast~="alla"] .tt-varde,
.tidtabell[data-filter="veteran"] [data-bast~="veteran"] .tt-varde,
.tidtabell[data-filter="modern"] [data-bast~="modern"] .tt-varde,
.tidtabell[data-filter="ombyggd"] [data-bast~="ombyggd"] .tt-varde { font-weight: 600; color: var(--red-text); }
.tt-tabell tbody tr:hover > [data-bast] { background-color: var(--red-tint); }

/* Fotnot */
.tt-fot { border-top: 1px solid var(--line); background: #FAFBFC; padding: .7rem 1rem; font-size: .8rem; color: var(--text-muted); }
.tt-fot p { margin: 0; }
.tt-fot p + p { margin-top: .3rem; }
.tt-fot a { color: var(--red-text); font-weight: 600; }
.tt-markor-exempel { display: inline-block; width: 1.1rem; height: .8rem; vertical-align: -.05rem; margin-right: .45rem; background: var(--red-tint); box-shadow: inset 4px 0 0 var(--red); }
.tt-streck { font-weight: 700; color: var(--text); margin-right: .2rem; }

/* Kort: ett per försäkring (mobil, och bolagssidornas visning "kort") */
.tt-kortlista { list-style: none; margin: 0; padding: 0; }
.tt-kort { padding: 1rem; border-bottom: 1px solid var(--line); margin: 0; }
.tt-kort + .tt-kort { margin-top: 0; }
.tt-kort:last-child { border-bottom: 0; }
.tt-kort-huvud { padding-left: .75rem; border-left: 3px solid var(--graphite); }
.tt-kort dl {
  display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr;
  margin: .8rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  font-size: .9rem; line-height: 1.4;
}
.tt-rad { display: contents; }
.tt-rad dt, .tt-rad dd { overflow-wrap: anywhere; padding: .55rem .7rem; border-bottom: 1px solid var(--line); margin: 0; }
.tt-rad:last-child dt, .tt-rad:last-child dd { border-bottom: 0; }
.tt-rad dt { background: var(--steel); color: var(--graphite); font-family: var(--font-head); font-weight: 700; font-size: .9rem; border-right: 1px solid var(--line); }
.tidtabell:not(.visar-alla) .tt-rad.is-extra { display: none; }
.tt-granskas { margin: .6rem 0 0; font-size: .9rem; color: var(--text-muted); }

/* Tabell på bred skärm, kort på smal. Visning "kort" är alltid kort. */
.tt-visning-tabell .tt-kortlista { display: none; }
@media (max-width: 47.99rem) {
  .tt-visning-tabell .tt-tabell { display: none; }
  .tt-visning-tabell .tt-kortlista { display: block; }
  .tt-filter { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-strong); }
  .tt-filterknapp + .tt-filterknapp { border-left: 0; }
  .tt-filterknapp { padding-inline: .6rem; }
}
@media (min-width: 48rem) {
  .tt-visning-kort .tt-kortlista { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
  .tt-visning-kort .tt-kort { border-right: 1px solid var(--line); }
}

/* ---------- 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.15rem; }
.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: .5em; width: .45rem; height: .8rem; border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(45deg); }
.lista-mot li::before { content: ""; position: absolute; left: 0; top: .75em; width: .75rem; border-top: 3px solid var(--red); }

/* ---------- Ingångar ---------- */
.ingangar { list-style: none; padding: 0; display: grid; gap: .75rem; max-width: none; }
@media (min-width: 40rem) { .ingangar { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.ingangar li { margin: 0; }
.ingangar a { display: block; height: 100%; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--graphite); border-radius: 0 0 var(--radius) var(--radius); }
.ingangar a:hover { border-top-color: var(--red); }
.ingangar a:hover .ingang-rubrik { color: var(--red-text); }
.ingang-rubrik { display: block; font-family: var(--font-head); font-weight: 700; color: var(--graphite); font-size: 1.25rem; line-height: 1.2; }
.ingang-text { display: block; color: var(--text-muted); font-size: .95rem; margin-top: .25rem; }

/* ---------- Läs vidare ---------- */
.las-vidare { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.las-vidare h2 { margin-top: 0; }
.las-vidare .ingangar { margin-bottom: 1rem; }
.las-vidare .ingang-rubrik { font-size: 1.1rem; }
.las-vidare-bolag { font-size: .95rem; color: var(--text-muted); }
.las-vidare-bolag span:first-child { font-weight: 600; color: var(--text); margin-right: .25rem; }
.las-vidare .cta { margin-bottom: 0; }

/* ---------- Guider på startsidan ---------- */
.guider { margin-top: 2.5rem; }
.guider h3 { font-size: 1.3rem; margin: 1.75rem 0 .75rem; }

/* ---------- Sidfot ---------- */
.sidfot { background: var(--graphite); color: var(--on-graphite); padding-block: 0 2.5rem; font-size: .95rem; }
.sidfot::before { content: ""; display: block; height: 6px; margin-bottom: 2.5rem; background: repeating-linear-gradient(90deg, transparent 0 22px, rgb(255 255 255 / .28) 22px 24px), linear-gradient(90deg, #34404E 0 76%, var(--red) 76% 100%); }
.sidfot a { color: #fff; }
.sidfot-inre { display: grid; gap: 1.5rem; }
.sidfot-namn, .sidfot-rubrik { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: .4rem; }
.sidfot-rubrik { font-size: 1rem; color: var(--on-graphite-muted); }
.sidfot-om p { max-width: 46ch; }
.sidfot-meny ul { list-style: none; padding: 0; margin: 0; }
.sidfot-meny li + li { margin-top: .35rem; }
.sidfot-disclaimer { font-size: .85rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .15); max-width: 70ch; color: var(--on-graphite-muted); }
.sidfot :focus-visible { outline-color: #fff; }
@media (min-width: 48rem) {
  .sidfot-inre { grid-template-columns: 2fr 1fr 1fr; }
  .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, .tt-verktyg { display: none !important; }
  body { background: #fff; }
  .hem-topp { background: #fff; color: var(--text); padding: 0; }
  .hem-topp h1 { color: var(--graphite); }
  .tt-tabell { display: block !important; overflow: visible; }
  .tt-kortlista { display: none !important; }
  .tidtabell .is-extra { display: table-cell !important; }
}
