/* Marknadssidan privatkoll.se. En stilmall för alla sidor, byggda med site/bygg_sidor.py.
   Ljust tema, alltid (Cennys beslut 2026-12-02: ljust läge är standard). Utseendet följer
   verksamhetskoll.se: ljus botten, ett färgat ord i rubriken, versal ögonbrynsrad, vita kort.
   Amber betyder handling och används bara på knappar som leder vidare.
   Ändras filen: höj ?v= på css-länken i kalla/mall.html, eftersom /css/* cachas i ett år. */

:root {
  --bg: #f4f6f9;
  --bg-alt: #eaf0f7;
  --surface: #ffffff;
  --line: #e2e7ee;
  --ink: #1a2230;
  --body: #465163;
  --muted: #5d6879;
  --brand: #1f4e79;
  --brand-2: #2f6db0;
  --brand-wash: #e8f0f9;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-ink: #0f1d33;
  --ok: #1d6b3a;
  --ok-wash: #e3f2e8;
  --varning: #7a4a00;
  --varning-wash: #fff4dc;
  --rod: #b3261e;
  --skugga: 0 18px 40px -18px rgba(15, 23, 42, .26);
  --skugga-liten: 0 6px 18px -10px rgba(15, 23, 42, .22);
  /* Samma två bredder som verksamhetskoll.se (2026-12-03): ramen 76rem (1 216 px) och spalten 44rem (704 px). */
  --shell: min(76rem, 100% - 3rem);
  --smal: min(44rem, 100% - 3rem);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1800px) {
  body { font-size: 18px; }
}

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--brand-2); }
img { max-width: 100%; }
strong, b { color: var(--ink); font-weight: 600; }

.shell { width: var(--shell); margin-inline: auto; }
.smal { width: var(--smal); margin-inline: auto; }
.markerad { color: var(--brand-2); }
.dold { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Sidhuvudet ---------- */
.sidhuvud {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 249, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.sidhuvud .shell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marke { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* Ordmärket är 3,72:1 (viewBox 372 x 100). */
.marke img { display: block; height: 34px; width: 126px; }

.meny { display: flex; align-items: center; gap: 1.6rem; }
.meny > a, .rull-knapp { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.meny > a:hover, .rull-knapp:hover { color: var(--brand-2); }
.meny [aria-current="page"], .rull-knapp[aria-current="page"] { color: var(--brand-2); }
.meny-hoger { display: flex; align-items: center; gap: .75rem; }

/* Funktioner fälls ut när musen står på den eller när den har fokus, utan skript.
   I telefonen leder samma länk till översikten. */
.rull { position: relative; }
.rull-knapp { display: inline-flex; align-items: center; gap: .3rem; padding: 1.2rem 0; }
.rull-knapp svg { width: 14px; height: 14px; transition: transform .18s ease; }
.rull:hover .rull-knapp svg, .rull:focus-within .rull-knapp svg { transform: rotate(180deg); }
.rull-panel {
  display: none; position: absolute; left: -1.25rem; top: 100%;
  width: 36rem; padding: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--skugga);
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem;
}
.rull:hover .rull-panel, .rull:focus-within .rull-panel { display: grid; }
.rull-panel a { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .75rem; border-radius: 9px; text-decoration: none; }
.rull-panel a:hover, .rull-panel a:focus-visible { background: var(--brand-wash); }
.rull-panel b { color: var(--ink); font-size: .93rem; font-weight: 600; }
.rull-panel span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.rull-panel .alla { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; padding-top: .75rem; }
.rull-panel .alla b { color: var(--brand-2); }

.mobilmeny { display: none; }
@media (max-width: 1040px) {
  .meny { display: none; }
  .mobilmeny { display: block; }
}
.mobilmeny summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: .4rem .85rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .95rem; font-weight: 600;
}
.mobilmeny summary::-webkit-details-marker { display: none; }
.mobilmeny summary svg { width: 18px; height: 18px; }
.mobilmeny[open] summary { border-color: var(--brand-2); color: var(--brand-2); }
.mobilmeny-panel {
  position: absolute; right: 0; top: calc(100% + .5rem);
  width: min(24rem, 100%); max-height: calc(100vh - 80px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--skugga);
  padding: .6rem; display: flex; flex-direction: column;
}
.mobilmeny-panel a { color: var(--ink); text-decoration: none; padding: .65rem .8rem; border-radius: 9px; font-weight: 500; }
.mobilmeny-panel a:hover { background: var(--brand-wash); }
.mobilmeny-panel a[aria-current="page"] { color: var(--brand-2); background: var(--brand-wash); }
.mobilmeny-panel .grupp { margin: .35rem 0; padding: .35rem 0 .35rem .6rem; border-block: 1px solid var(--line); display: flex; flex-direction: column; }
.mobilmeny-panel .grupp-rubrik { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .4rem .8rem .2rem; }
.mobilmeny-panel .grupp a { font-size: .95rem; padding: .5rem .8rem; }
.mobilmeny-panel .knapp { margin-top: .5rem; justify-content: center; }

/* ---------- Knappar ---------- */
.knappar { display: flex; flex-wrap: wrap; gap: .75rem; }
.knappar.mitten { justify-content: center; }
.knapp {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px;
  padding: .7rem 1.35rem; border-radius: 8px;
  font-size: .98rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.knapp svg { width: 18px; height: 18px; transition: transform .18s ease; }
.knapp:hover svg { transform: translateX(3px); }
.knapp-amber { background: var(--accent); color: var(--accent-ink); }
.knapp-amber:hover { background: var(--accent-hover); transform: translateY(-1px); }
.knapp-ram { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.knapp-ram:hover { border-color: var(--brand-2); color: var(--brand-2); transform: translateY(-1px); }
.knapp-liten { min-height: 38px; padding: .45rem .95rem; font-size: .92rem; }
.vidare { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--brand-2); }
.vidare::after { content: "→"; transition: transform .18s ease; }
.vidare:hover::after { transform: translateX(3px); }

/* ---------- Toppen ---------- */
.ogonbryn {
  display: block; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brand);
}
.ingress { margin-top: 1.3rem; max-width: 56ch; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; text-wrap: pretty; }

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero .shell { grid-template-columns: minmax(0, 1fr); } }
.hero .knappar { margin-top: 2rem; }

.chips { margin: 1.6rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
}
.chips svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* Undersidornas topp, centrerad som på verksamhetskoll.se. */
.sidtopp { padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.sidtopp .ingress { margin-inline: auto; max-width: 44rem; }
.sidtopp .knappar { justify-content: center; margin-top: 1.8rem; }
.sidtopp h1 { max-width: 22ch; margin-inline: auto; }
.smulor { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-bottom: 1.6rem; font-size: .84rem; color: var(--muted); }
.smulor a { color: var(--muted); text-decoration: none; }
.smulor a:hover { color: var(--brand-2); text-decoration: underline; }
.smulor [aria-current="page"] { color: var(--ink); }

/* ---------- Sektioner ---------- */
.sektion { padding: clamp(3.25rem, 6.5vw, 5.5rem) 0; }
.band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sektionstopp { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.sektionstopp p { margin-top: 1rem; font-size: 1.07rem; text-wrap: pretty; }
.prosa > * + * { margin-top: 1rem; }
.prosa h2 { margin-bottom: .4rem; }
.prosa h3 { margin-top: 1.75rem; }
.prosa ul { padding-left: 1.2rem; }
.prosa li + li { margin-top: .4rem; }
.notis { font-size: .9rem; color: var(--muted); }
.centrerad { text-align: center; }
.mellanrum { margin-top: clamp(2rem, 4vw, 3rem); }

.delad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.delad.omvand > :first-child { order: 2; }
@media (max-width: 900px) {
  .delad { grid-template-columns: minmax(0, 1fr); }
  .delad.omvand > :first-child { order: 0; }
}
.delad h2 { max-width: 20ch; }
.delad .text > p { margin-top: 1rem; }

.rutnat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.rutnat.tva { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .rutnat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .rutnat, .rutnat.tva { grid-template-columns: minmax(0, 1fr); } }

.kort {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem;
}
.kort p { font-size: .96rem; }
.kort .vidare { margin-top: auto; padding-top: .4rem; }
.kort ul { margin: .1rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.kort li + li { margin-top: .3rem; }
a.kort { text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
a.kort:hover { border-color: var(--brand-2); transform: translateY(-2px); box-shadow: var(--skugga-liten); }
.kort-topp { display: flex; align-items: center; gap: .85rem; margin-bottom: .2rem; }
.ikon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--brand-wash); color: var(--brand);
}
.ikon svg { width: 25px; height: 25px; }
.sida-etikett { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Numrerade steg, som "Så går det till" på verksamhetskoll.se. */
.steg-rad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; counter-reset: steg; margin: 0; padding: 0; list-style: none; }
.steg-rad.fyra { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .steg-rad, .steg-rad.fyra { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steg-rad, .steg-rad.fyra { grid-template-columns: minmax(0, 1fr); } }
.steg-rad > li {
  counter-increment: steg; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.35rem 1.4rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.steg-rad > li::before {
  content: counter(steg); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-wash); color: var(--brand); font-size: .85rem; font-weight: 700; margin-bottom: .2rem;
}
.steg-rad h3 { font-size: 1.05rem; }
.steg-rad p { font-size: .95rem; }

.punkter { margin: 1.3rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.punkter li { display: flex; gap: .7rem; align-items: flex-start; }
.punkter li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .22rem;
  background: var(--brand-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.punkter.inte li::before { background: var(--muted);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

/* Två lägen sida vid sida. */
.lagen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 760px) { .lagen { grid-template-columns: minmax(0, 1fr); } }
.lage-kort { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.lage-kort .punkter { margin-top: .4rem; font-size: .96rem; }
.lage-etikett { align-self: flex-start; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .2rem .65rem; color: var(--brand); background: var(--brand-wash); }

/* Vanliga frågor. */
.fragor { display: flex; flex-direction: column; gap: .6rem; }
.fragor details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.fragor summary {
  cursor: pointer; list-style: none; padding: 1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem;
  color: var(--ink); font-weight: 600;
}
.fragor summary::-webkit-details-marker { display: none; }
.fragor summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand-2); flex: none; }
.fragor details[open] summary::after { content: "−"; }
.fragor details > div { padding: 0 1.25rem 1.1rem; }
.fragor details > div > * + * { margin-top: .7rem; }
.fragor-grupp + .fragor-grupp { margin-top: clamp(2rem, 4vw, 3rem); }
.fragor-grupp h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 1rem; }

/* Avslutet längst ned på varje sida. */
.avslut {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
@media (max-width: 860px) { .avslut { grid-template-columns: minmax(0, 1fr); } }
.avslut p { margin-top: .9rem; }
.avslut .knappar { justify-content: flex-end; }
@media (max-width: 860px) { .avslut .knappar { justify-content: flex-start; } }

.lista { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); }
.lista li:first-child { border-top: 0; }
.lista span:first-child { color: var(--ink); font-weight: 500; }
.lage { font-size: .74rem; font-weight: 700; white-space: nowrap; border-radius: 999px; padding: .2rem .6rem; }
.lage-klart { color: var(--ok); background: var(--ok-wash); }
.lage-kvar { color: var(--varning); background: var(--varning-wash); }

.familj-likt { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.familj-likt li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem; font-size: .95rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.familj-likt li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 480px) { .familj-likt li { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }

/* ---------- Illustrationer (HTML med påhittade siffror, aldrig skärmbilder från appen) ---------- */
.bild { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.bild figcaption, .bildtext { font-size: .82rem; color: var(--muted); text-align: center; }

/* telefon start: bygg_delningsbild.py läser härifrån till "telefon slut". */
.telefon {
  width: min(310px, 100%);
  background: #0f1d33; border-radius: 44px; padding: 11px;
  box-shadow: var(--skugga), 0 0 0 1px rgba(15, 29, 51, .08);
}
.skarm {
  background: #f4f6f9; color: #1a2230; border-radius: 34px; overflow: hidden;
  font-size: 12.5px; line-height: 1.4; display: flex; flex-direction: column;
}
.app-topp { background: #fff; border-bottom: 1px solid #e2e7ee; padding: 22px 14px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-namn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #1f4e79; font-size: 14px; }
.app-namn img { width: 22px; height: 22px; display: block; }
.app-fraga-knapp { font-size: 11px; font-weight: 600; color: #1f4e79; border: 1px solid #c9d6e6; border-radius: 999px; padding: 3px 10px; }
.app-innehall { padding: 11px; display: flex; flex-direction: column; gap: 9px; }
.app-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; padding: 9px 8px; text-align: center; }
.app-band span { display: block; font-size: 9.5px; color: #5d6879; }
.app-band b { display: block; font-size: 12.5px; font-weight: 700; color: #1a2230; font-variant-numeric: tabular-nums; }
.app-kort { background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.app-rubrik { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1f4e79; margin-bottom: 2px; }
.app-rubrik i { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: #5d6879; }
.app-trappa { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.app-trappa b { font-weight: 500; }
.app-trappa.summa { border-top: 1px solid #e2e7ee; margin-top: 2px; padding-top: 6px; font-weight: 700; color: #1f4e79; }
.app-trappa.summa b { font-weight: 700; }
.app-trappa.plus b { color: #1d6b3a; }
.app-liten { font-size: 10.5px; color: #5d6879; }
.app-kommer { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.app-kommer span:first-child { color: #5d6879; min-width: 34px; }
.app-kommer span:nth-child(2) { flex: 1; }
.app-flikar { margin-top: auto; background: #fff; border-top: 1px solid #e2e7ee; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 2px 16px; font-size: 9.5px; text-align: center; color: #5d6879; }
.app-flikar span::before { content: ""; display: block; width: 18px; height: 3px; border-radius: 2px; margin: 0 auto 5px; background: transparent; }
.app-flikar .vald { color: #1f4e79; font-weight: 700; }
.app-flikar .vald::before { background: #1f4e79; }
.app-summa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; padding: 1px 0 4px; color: #5d6879; }
.app-summa span { flex-basis: 100%; font-size: 10.5px; }
.app-summa b { font-size: 19px; font-weight: 700; color: #1f4e79; font-variant-numeric: tabular-nums; }
.app-gora { padding: 5px 0 3px; border-top: 1px solid #eef1f5; line-height: 1.35; }
.app-rubrik + .app-gora { border-top: 0; padding-top: 1px; }
.app-gora .etikett { display: inline-block; font-size: 9.5px; font-weight: 700; border-radius: 999px; padding: 0 6px; margin-right: 5px; color: #1f4e79; background: #e6eef8; }
/* telefon slut */

/* Ett kort ur appen, för undersidorna. */
.app-ruta {
  width: min(460px, 100%);
  background: #fff; color: #1a2230; border: 1px solid #e2e7ee; border-radius: 16px; box-shadow: var(--skugga);
  padding: 1.1rem 1.2rem 1.2rem; font-size: .9rem; line-height: 1.45; display: flex; flex-direction: column; gap: .55rem;
}
.app-ruta-topp { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid #eef1f5; }
.app-ruta-topp strong { color: #1f4e79; font-size: .98rem; }
.app-ruta-topp span { font-size: .74rem; color: #5d6879; }
.rad { display: flex; justify-content: space-between; align-items: baseline; gap: .9rem; font-variant-numeric: tabular-nums; }
.rad > span:first-child { color: #1a2230; }
.rad small { display: block; font-size: .76rem; color: #5d6879; }
.rad .upp { color: #b3261e; font-weight: 600; }
.rad .ner { color: #1d6b3a; font-weight: 600; }
.rad.summa { border-top: 1px solid #e2e7ee; padding-top: .5rem; font-weight: 700; color: #1f4e79; }
.etikett { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; margin-right: .35rem; vertical-align: 1px; }
.etikett.bla { color: #1f4e79; background: #e6eef8; }
.etikett.gul { color: #7a4a00; background: #fff4dc; }
.etikett.gron { color: #1d6b3a; background: #e3f2e8; }
.post { border: 1px solid #e2e7ee; border-radius: 11px; padding: .65rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.post b { font-weight: 600; }
.post small { color: #5d6879; font-size: .78rem; }
.post .knapprad { display: flex; gap: .4rem; margin-top: .3rem; }
.post .knapprad span, .minknapp { font-size: .76rem; font-weight: 600; border-radius: 7px; padding: .22rem .65rem; border: 1px solid #c9d6e6; color: #1f4e79; }
.minknapp.fylld { background: #1f4e79; color: #fff; border-color: #1f4e79; }
.stapel { height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; position: relative; }
.stapel i { display: block; height: 100%; background: #2f6db0; border-radius: 4px; }
.stapel.over i { background: #b3261e; }
.stapel s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #1a2230; text-decoration: none; }
.diagram { display: block; width: 100%; height: auto; }

/* Rådgivaren. */
.chatt {
  width: min(480px, 100%);
  background: #fff; color: #1a2230; border: 1px solid #e2e7ee; border-radius: 18px;
  box-shadow: var(--skugga); padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; font-size: .93rem; line-height: 1.5;
}
.chatt-topp { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .6rem; border-bottom: 1px solid #eef1f5; }
.chatt-topp strong { color: #1f4e79; }
.chatt-topp span { font-size: .74rem; font-weight: 600; color: #7a4a00; background: #fff4dc; border-radius: 999px; padding: .15rem .55rem; }
.bubbla { border-radius: 12px; padding: .65rem .85rem; max-width: 92%; }
.bubbla.fraga { align-self: flex-end; background: #e6eef8; }
.bubbla.svar { background: #fbfcfe; border: 1px solid #e2e7ee; display: flex; flex-direction: column; gap: .45rem; }
.bubbla small { font-size: .78rem; color: #5d6879; }
.kontrollen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; }
.kontrollen .ok { color: #1d6b3a; background: #e3f2e8; border-radius: 999px; padding: .12rem .55rem; font-weight: 600; }
.kontrollen .steg { color: #2f6db0; font-weight: 600; }
.forslagsfragor { display: flex; flex-wrap: wrap; gap: .4rem; }
.forslagsfragor span { font-size: .78rem; border: 1px solid #c9d6e6; color: #1f4e79; border-radius: 999px; padding: .2rem .65rem; }

/* Programmet i hemmaläget, ett Windows-fönster. */
.fonster {
  width: min(440px, 100%);
  background: #fff; color: #1a2230; border: 1px solid #cfd6e0; border-radius: 10px; box-shadow: var(--skugga);
  font-size: .88rem; line-height: 1.45; overflow: hidden;
}
.fonster-titel { display: flex; align-items: center; justify-content: space-between; padding: .45rem .5rem .45rem .8rem; background: #f3f5f8; border-bottom: 1px solid #e2e7ee; font-size: .8rem; }
.fonster-titel span { display: inline-flex; align-items: center; gap: .45rem; }
.fonster-titel img { width: 16px; height: 16px; }
.fonster-titel i { font-style: normal; letter-spacing: .9rem; color: #5d6879; padding-right: .1rem; }
.fonster-innehall { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .7rem; }
.fonster-innehall h4 { margin: 0; color: #1f4e79; font-size: 1rem; }
.lamp { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #1d6b3a; }
.lamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a35a; }
.ny-version { border: 1px solid #f0c36a; background: #fff8e8; border-radius: 9px; padding: .6rem .75rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.fonster .knapprad { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Underlaget, ett papper. */
.papper {
  width: min(430px, 100%);
  background: #fff; color: #1a2230; border: 1px solid #e2e7ee; border-radius: 6px;
  box-shadow: var(--skugga); padding: 1.5rem 1.5rem 1.6rem; font-size: .84rem; line-height: 1.5;
  display: flex; flex-direction: column; gap: .7rem;
}
.papper h4 { margin: 0; font-size: 1.05rem; color: #1f4e79; }
.papper .falt { display: grid; grid-template-columns: 7.5rem 1fr; gap: .3rem .8rem; }
.papper .falt span:nth-child(odd) { color: #5d6879; }
.papper .avsnitt { border-top: 1px solid #eef1f5; padding-top: .6rem; display: flex; flex-direction: column; gap: .25rem; }
.papper .avsnitt b { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #1f4e79; }
.papper .knapprad { display: flex; margin-top: .2rem; }

/* ---------- Undersidornas delar ---------- */
/* Hopplänkar under sidtoppen. */
.hopp { margin: 1.8rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hopp a {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 500; text-decoration: none;
}
.hopp a:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* En grupp på sidan Funktioner: ikon, rubrik och länk vidare. */
.grupptopp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; margin-bottom: 1.6rem; }
.grupptopp h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); margin-top: .2rem; }
.grupptopp p { margin-top: .35rem; }
.grupptopp .ikon { align-self: start; margin-top: .3rem; }
@media (max-width: 680px) {
  .grupptopp { grid-template-columns: auto minmax(0, 1fr); }
  .grupptopp .vidare { grid-column: 2; }
}

.kort-stor { padding: 1.75rem; gap: .8rem; }
.kort-stor p { font-size: 1rem; }
.mellanrum-litet { margin-top: .9rem; }
.sidtopp-fel { padding: clamp(4rem, 10vw, 7rem) 0; }

/* Numrerad lista i löptext. */
.numrerad { margin: 1.2rem 0; padding: 0; list-style: none; counter-reset: nr; display: flex; flex-direction: column; gap: .65rem; }
.numrerad li { counter-increment: nr; display: flex; gap: .75rem; align-items: flex-start; }
.numrerad li::before {
  content: counter(nr); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-wash); color: var(--brand); font-size: .82rem; font-weight: 700; margin-top: .1rem;
}

/* Tabeller i appens kort. */
.tabellrad { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: .5rem; font-variant-numeric: tabular-nums; align-items: baseline; }
.tabellrad.tre { grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); }
.tabellrad > span:not(:first-child) { text-align: right; }
.tabellrad small { display: block; font-size: .74rem; color: #5d6879; }
.tabellrad.rubrikrad { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5d6879; }
.tabellrad.summa { border-top: 1px solid #e2e7ee; padding-top: .45rem; font-weight: 700; color: #1f4e79; }
.tabellrad .upp { color: #b3261e; font-weight: 600; }
.tabellrad .ner { color: #1d6b3a; font-weight: 600; }
.app-ruta .knapprad { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.app-kalla { font-size: .76rem; color: #5d6879; margin-top: .2rem; }
.rad.vidsidan { border-top: 1px dashed #d5dce6; padding-top: .5rem; color: #5d6879; }
.papper small { font-size: .74rem; color: #5d6879; border-top: 1px solid #eef1f5; padding-top: .55rem; }
.forslagsfragor.stora { margin-top: .9rem; }
.forslagsfragor.stora span { font-size: .88rem; padding: .35rem .8rem; background: var(--surface); }

/* ---------- Sidfoten ---------- */
.sidfot { border-top: 1px solid var(--line); padding: 3rem 0 3rem; font-size: .92rem; color: var(--muted); background: var(--surface); }
.sidfot-rutnat { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
@media (max-width: 900px) { .sidfot-rutnat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sidfot-rutnat { grid-template-columns: minmax(0, 1fr); } }
/* Hela loggan med slogan, 2,35:1 (viewBox 372 x 158). */
.sidfot-logga img { display: block; width: 188px; height: 80px; }
.sidfot-om { display: flex; flex-direction: column; gap: .8rem; }
.sidfot h2 { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: .8rem; }
.sidfot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.sidfot a { color: var(--body); text-decoration: none; }
.sidfot a:hover { color: var(--brand-2); text-decoration: underline; }
.sidfot-botten { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
