/* Fostbros sidor på fostbro.se (tratten, guiden, integritet, 404, admin).
   Värdena kommer från förhandsbilden version 6 och Fostbros designregler. Telefonen först; dator från 820 px.
   Delas med startsidan: ändras bara av sessionen som bygger tratten. */

/* Typsnittet Familjen Grotesk (fri licens, SIL OFL 1.1, se /typsnitt/OFL.txt) ligger på fostbro.se, inte hos Google,
   så att besökarens IP-adress aldrig skickas vidare. Vikterna 400, 500 och 600; latin räcker för svenska. */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/typsnitt/familjen-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/typsnitt/familjen-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/typsnitt/familjen-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/typsnitt/familjen-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/typsnitt/familjen-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/typsnitt/familjen-grotesk-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #F3F2EC; --surface: #FFFFFF; --hover: #F8F8F5; --deep: #EAE9E1;
  --ink: #15211C; --ink2: #36443E; --muted: #56625C; --line: #E2E0D6; --ctl: #7D847D;
  --forest: #0E382D; --on-forest: #FFFFFF; --tint: #E8EFEB; --forest-soft: #C9D0CC;
  --key: #C94A1A; --key-h: #B54316; --on-key: #FFFFFF; --spark: #E75F2A;
  --warn: #B54316; --warn-t: #FDF3EE; --warn-line: #F3D6C8;
  --p0: #2F6B5A; --p1: #3E5C8A; --contact: #7A3E6C; --contact-t: #EFE8ED;
  --font: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-wrap: anywhere;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--forest); }
[hidden] { display: none !important; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ramen på varje sida. Sidhuvudet med menyn och sidfoten på de öppna sidorna står i ram.css (klasserna ram-…).
   .s-huvud och .s-fot nedan används bara av admin och den gamla bekräftelsesidan (src/admin.js, src/tratt.js). */
.s-in { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px)); }
.s-smal { max-width: 680px; }
.s-1000 { max-width: 1000px; }
.s-huvud { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.s-huvud img { height: 24px; width: auto; display: block; }
.s-huvud a { display: block; }
.s-main { flex: 1; padding-block: 8px 48px; }
.s-fot { border-top: 1px solid var(--line); padding-block: 18px 26px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.s-fot img { height: 18px; width: auto; margin-right: 6px; }
.s-fot a { color: var(--muted); text-underline-offset: 3px; }
.provlage { background: var(--warn-t); color: var(--warn); border-bottom: 1px solid var(--warn-line); padding: 8px 18px; font-size: 14px; font-weight: 500; text-align: center; }

.overrad { font-size: 14px; font-weight: 500; color: var(--forest); display: flex; align-items: center; gap: 8px; }
.overrad::before { content: ""; width: 18px; height: 2px; background: var(--forest); border-radius: 2px; }
.h-stor { font-size: 33px; line-height: 1.1; margin-top: 12px; }
.ingress { font-size: 18px; color: var(--ink2); margin-top: 14px; max-width: 34ch; }
.h-mellan { font-size: 26px; line-height: 1.15; }
.h-kort { font-size: 20px; line-height: 1.25; }
.dampad { color: var(--muted); }
.liten { font-size: 14px; }
.mini { font-size: 13px; }

/* Knappar */
.huvudknapp {
  appearance: none; border: 0; background: var(--key); color: var(--on-key); font-size: 16px; font-weight: 600; min-height: 52px;
  padding: 12px 20px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 4px 12px -6px rgba(201,74,26,.6); transition: background .15s; text-decoration: none;
}
.huvudknapp:hover { background: var(--key-h); }
.huvudknapp:focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }
.huvudknapp:disabled, .huvudknapp[aria-disabled="true"] { background: var(--deep); color: var(--muted); box-shadow: none; cursor: default; }
.knapp {
  appearance: none; border: 1px solid var(--forest); background: var(--surface); color: var(--forest); font-size: 15px; font-weight: 600;
  min-height: 44px; padding: 9px 16px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; transition: background .15s; text-decoration: none;
}
.knapp:hover { background: var(--tint); }
.knapp:disabled { opacity: .5; cursor: default; }
.hel { width: 100%; }
.textlank { color: var(--forest); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.kort { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.marke { display: inline-flex; align-items: center; background: var(--deep); color: var(--ink2); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 500; }
.marken { display: flex; gap: 6px; }

/* Formulär */
.falt { display: grid; gap: 6px; }
.falt label { font-size: 14px; font-weight: 500; color: var(--ink2); }
.falt input { height: 50px; border: 1px solid var(--ctl); border-radius: 8px; padding: 0 14px; font-size: 16px; background: var(--surface); width: 100%; }
.falt input:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }
.falt input[aria-invalid="true"] { border-color: var(--warn); }
.formular { display: grid; gap: 14px; }
.kryss { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink2); cursor: pointer; }
.kryss input { appearance: none; width: 22px; height: 22px; border: 1px solid var(--ctl); border-radius: 6px; background: var(--surface); flex: none; margin: 0; display: grid; place-items: center; cursor: pointer; }
.kryss input:checked { background: var(--forest); border-color: var(--forest); }
.kryss input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.skydd { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.skydd a { color: var(--muted); }
.felrad { background: var(--warn-t); border: 1px solid var(--warn-line); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.robot:empty { display: none; }
.robot { min-height: 0; }
/* Fällan för robotar: utanför skärmen (inte display: none, som robotar känner igen), ingen yta och inget avstånd. */
.falla { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.vantar { opacity: .7; pointer-events: none; }

/* Hämtasidan */
.hamta { display: grid; gap: 28px; }
.hamta-hero { display: grid; gap: 0; min-width: 0; }
.erbjudande { display: grid; gap: 18px; min-width: 0; }
.falt-par { display: grid; gap: 14px; }
.guide-lista { min-width: 0; }
.omslag-yta { display: flex; justify-content: center; padding: 14px 0 6px; }
.omslag { position: relative; width: 172px; aspect-ratio: 3/4; }
.omslag .sida2 { position: absolute; inset: 6px -14px -6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; transform: rotate(5deg); padding: 18% 12% 0; display: grid; align-content: start; gap: 7px; }
.omslag .sida2 i { display: block; height: 5px; border-radius: 3px; background: var(--deep); }
.omslag .sida2 i.w70 { width: 70%; } .omslag .sida2 i.w85 { width: 85%; }
.omslag .sida2 .stap { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 6px; }
.omslag .sida2 .stap b { display: block; flex: 1; background: var(--tint); border-radius: 2px 2px 0 0; }
.stap .h100 { height: 100%; } .stap .h48 { height: 48%; } .stap .h30 { height: 30%; } .stap .h19 { height: 19%; } .stap .h11 { height: 11%; }
.omslag .fram { position: absolute; inset: 0; background: var(--forest); border-radius: 6px; transform: rotate(-3deg); padding: 14px 14px 16px; display: flex; flex-direction: column; color: #fff; box-shadow: 0 24px 40px -18px rgba(14,56,45,.55), 0 2px 6px rgba(14,56,45,.2); }
.omslag .fram img { height: 13px; width: auto; align-self: flex-start; display: block; }
/* Namnet är kort (Säljguiden), så det står stort: 24 px som i förhandsbilden version 10. */
.omslag .fram .titel { margin-top: auto; font-size: 24px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.omslag .fram .under { font-size: 11.5px; color: var(--forest-soft); margin-top: 7px; line-height: 1.3; }
.omslag .fram .fem { position: absolute; top: 12px; right: 14px; font-size: 11.5px; color: var(--forest-soft); }
.form-kort { display: grid; gap: 16px; }
.form-kort h2 { font-size: 20px; }
.kapitel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kapitel li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.kapitel li:first-child { border-top: 0; }
.kapitel .n { width: 38px; height: 38px; border-radius: 8px; background: var(--tint); color: var(--forest); display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.kapitel h3 { font-size: 17px; letter-spacing: -.01em; }
.kapitel p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 15px; border: 2px solid var(--paper); }
.avatar + .avatar { margin-left: -10px; }
.avatar.i { background: var(--p0); } .avatar.l { background: var(--p1); }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatarer { display: flex; }

/* Besked (guiden på väg, bokad, väntelistan) */
.besked { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 18px; }
.besked p { color: var(--ink2); max-width: 40ch; }
.besked.vanster { justify-items: start; text-align: left; padding-top: 10px; }
.art { width: 88px; height: 88px; display: block; overflow: visible; }
.art .bg { fill: var(--tint); }
.art .ck { fill: none; stroke: var(--forest); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rita .45s .15s ease-out forwards; }
.art .sp { fill: var(--spark); transform-origin: center; transform-box: fill-box; animation: gnista .5s .4s ease-out both; }
@keyframes rita { to { stroke-dashoffset: 0; } }
@keyframes gnista { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  .art .ck { animation: none; stroke-dashoffset: 0; }
  .art .sp { animation: none; }
  * { transition: none !important; }
}

/* Erbjudandesidan */
.erbj { display: grid; gap: 22px; margin-top: 22px; }
.skarm { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.skarm-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.modul { width: 30px; height: 30px; border-radius: 8px; background: var(--contact); color: #fff; display: grid; place-items: center; }
.skarm-h b { font-weight: 600; font-size: 15px; }
.skarm-h span { font-size: 13px; color: var(--muted); }
.skarm-rad { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.skarm-h + .skarm-rad { border-top: 0; }
.skarm-rad .sym { width: 30px; height: 30px; border-radius: 8px; background: var(--contact-t); color: var(--contact); display: grid; place-items: center; }
.skarm-rad .namn { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skarm-rad .detalj { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skarm-rad .tid { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.skarm-rad .tid.bradskar { color: var(--warn); font-weight: 500; }
.skarm-text { font-size: 14px; color: var(--muted); margin-top: 8px; }
.fig { margin: 0; min-width: 0; }
.punkter { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.punkter li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--ink2); }
.punkter .ic { color: var(--forest); margin-top: 1px; }
.guide-rad { display: flex; align-items: center; gap: 12px; background: var(--tint); border-radius: 12px; padding: 10px 14px; margin-top: 4px; }
.guide-rad .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.guide-rad .text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink2); line-height: 1.35; }
.guide-rad .text b { font-weight: 600; color: var(--ink); display: block; font-size: 15px; }
.guide-rad .textlank { white-space: nowrap; font-size: 14px; }
.pitch { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pitch .h-mellan { font-size: 27px; }
.kort-genomgang { display: grid; gap: 16px; min-width: 0; }
.videoplats { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.videoplats .spela { width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.videoplats b { font-weight: 600; display: block; }
.genomgang-topp { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: space-between; }
.vem { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); }

/* Frågorna */
.fraga-topp { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.tillbaka { display: inline-flex; align-items: center; gap: 4px; color: var(--forest); font-weight: 500; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 15px; text-decoration: none; }
.raknare { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.matare { height: 3px; background: var(--deep); border-radius: 3px; margin: 8px 0 26px; overflow: hidden; }
.matare i { display: block; height: 100%; width: 25%; background: var(--forest); border-radius: 3px; transition: width .25s; }
.matare[data-steg="2"] i { width: 50%; } .matare[data-steg="3"] i { width: 75%; } .matare[data-steg="4"] i { width: 100%; }
.fraga h1 { font-size: 26px; line-height: 1.15; }
.fraga .hjalp { color: var(--muted); margin-top: 6px; font-size: 15px; }
.val-lista { display: grid; gap: 8px; margin-top: 20px; }
.valrad { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 16px; border: 1px solid var(--ctl); border-radius: 8px; background: var(--surface); font-size: 16px; font-weight: 500; cursor: pointer; text-align: left; width: 100%; transition: background .15s, border-color .15s; }
.valrad:hover { background: var(--hover); }
.valrad .bock { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ctl); display: grid; place-items: center; flex: none; color: #fff; }
.valrad .bock .ic { visibility: hidden; }
.valrad[aria-pressed="true"] { background: var(--tint); border-color: var(--forest); }
.valrad[aria-pressed="true"] .bock { background: var(--forest); border-color: var(--forest); }
.valrad[aria-pressed="true"] .bock .ic { visibility: visible; }
.valrad.flera .bock { border-radius: 6px; }
.fraga .nasta { margin-top: 18px; }

/* Bokningen */
.boka { display: grid; gap: 22px; }
.boka-val { display: grid; gap: 18px; min-width: 0; }
.etikett { font-size: 14px; font-weight: 500; color: var(--ink2); margin-bottom: 8px; }
.dagar { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.dag { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 2px 10px; display: grid; justify-items: center; gap: 1px; cursor: pointer; }
.dag .vd { font-size: 13px; color: var(--muted); font-weight: 500; }
.dag .nr { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dag .man { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dag[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.dag[aria-pressed="true"] .vd, .dag[aria-pressed="true"] .man { color: var(--forest-soft); }
.tider { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tidknapp { min-height: 52px; border: 1px solid var(--ctl); border-radius: 8px; background: var(--surface); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-content: center; line-height: 1.15; }
.tidknapp:hover { background: var(--hover); }
.tidknapp[aria-pressed="true"] { background: var(--tint); border-color: var(--forest); color: var(--forest); font-weight: 600; }
.sammanfattning { display: grid; gap: 14px; min-width: 0; }
.tidruta { background: var(--tint); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.tidruta .stor { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rad-ikon { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); }
.rad-ikon .ic { color: var(--muted); margin-top: 1px; }
.laddar { color: var(--muted); font-size: 15px; padding: 10px 0; }

/* Förbered dig */
.forb { display: grid; gap: 20px; }
.steg { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steg li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steg li:first-child { border-top: 0; padding-top: 4px; }
.steg .n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--forest); color: var(--forest); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.steg h3 { font-size: 16px; letter-spacing: -.01em; }
.steg p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.steg .min { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kal-yta { display: grid; justify-items: center; gap: 0; margin-top: 6px; }
.kal-meny { display: grid; gap: 6px; margin-top: 8px; }
.kal-meny .knapp { justify-content: flex-start; }
.forb-fot { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.knappar { display: grid; gap: 12px; width: 100%; margin-top: 14px; }

/* Guiden */
.guide-band { background: var(--forest); color: #fff; }
.guide-band .s-in { padding-block: 28px 34px; display: grid; gap: 10px; }
.guide-band img { height: 20px; width: auto; display: block; }
.guide-band h1 { font-size: 32px; line-height: 1.1; margin-top: 18px; }
.guide-band p { color: var(--forest-soft); font-size: 16px; }
.guide-yta { display: grid; gap: 24px; }
.las { max-width: 66ch; min-width: 0; }
.las h2 { font-size: 26px; line-height: 1.15; margin-top: 4px; }
.las p { font-size: 17px; line-height: 1.6; margin-top: 14px; color: var(--ink); }
.las .kicker { font-size: 14px; font-weight: 500; color: var(--forest); margin-top: 0; }
.diagram { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px 12px; }
.diagram h3 { font-size: 16px; letter-spacing: -.01em; }
.diagram .under { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.diagram svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.diagram .k { fill: var(--muted); font-family: var(--font); font-size: 12px; }
.diagram .v { fill: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 600; }
.diagram .gl { stroke: var(--line); stroke-width: 1; }
.diagram .b { fill: var(--forest); }
.diagram .kalla { font-size: 13px; color: var(--muted); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; line-height: 1.45; }
.ovning { margin-top: 22px; background: var(--tint); border-radius: 12px; padding: 16px 18px; }
.ovning .rubrik { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--forest); }
.gor { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.gor li::marker { color: var(--forest); font-weight: 600; }
.gor b { font-weight: 600; color: var(--ink); }
.innehall { list-style: none; margin: 0; padding: 0; }
.innehall li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.innehall li:first-child { border-top: 0; }
.innehall .n { font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; width: 18px; flex: none; }
.toc { order: 2; }
.toc a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.toc a[aria-current="true"] { font-weight: 600; color: var(--forest); }
.las-h3 { font-size: 18px; margin-top: 28px; }
.fakta { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--tint); }
.fakta p:first-child { margin-top: 0; }
.fakta .kalla, .varning .kalla { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.varning { margin-top: 24px; background: var(--warn-t); border: 1px solid var(--warn-line); border-radius: 12px; padding: 14px 16px; }
.varning p { font-size: 16px; margin-top: 0; color: var(--ink); }
.las-lista { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.las-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.las .smal-lank { margin-top: 16px; font-size: 14px; }
.smal-lank a { font-size: 14px; color: var(--muted); }
.guide-boka { margin-top: 24px; display: grid; gap: 10px; }
/* Färdiga texter att kopiera (kapitel 2–5): en ruta per text, knappen Kopiera (kopiera.js; inte i pdf:en) och texten
   med platshållarna [ ] färgade och {Knapp: X} som en liten knapp. Radbrytningarna står kvar (pre-wrap). */
.texter { margin-top: 26px; }
.texter .las-h3 { margin-top: 0; }
.las .forklaring { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.text-ruta { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.text-ruta .topp { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.text-ruta .topp > div { flex: 1 1 auto; }
.text-ruta .namn { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.35; color: var(--ink); }
.las .text-ruta .nar { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.text-ruta .kopia { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink); background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.text-ruta .plats { color: var(--forest); font-weight: 500; white-space: nowrap; }
.text-ruta .knapp-mini { display: inline-block; background: var(--forest); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 14px; line-height: 1.6; }
.kopiera { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--forest); font-size: 14px; font-weight: 500; cursor: pointer; }
.kopiera:hover { background: var(--hover); }
/* Knappen är lika bred i alla lägen (Kopiera, Kopierad, Markerad), så att rutan inte hoppar under fingret: två osynliga
   rader utan höjd med de längre orden håller etikettens bredd, oavsett typsnitt. Skärmläsare läser knappens aria-label. */
.kopiera-text { display: inline-flex; flex-direction: column; align-items: center; }
.kopiera-text::before { content: "Kopierad"; }
.kopiera-text::after { content: "Markerad"; }
.kopiera-text::before, .kopiera-text::after { height: 0; overflow: hidden; visibility: hidden; }
/* Utan kopiera.js (skript av, eller filen kom inte fram) gör knappen ingenting, så den syns bara när skriptet körs:
   kopiera.js sätter klassen kan-kopiera på <html>. Texten i rutan går ändå att markera och kopiera för hand. */
html:not(.kan-kopiera) .kopiera { display: none; }
.kopiera .ik-klar, .kopiera.klar .ik-kopiera, .kopiera.markerad .ik-kopiera { display: none; }
.kopiera.klar .ik-klar, .kopiera.markerad .ik-klar { display: block; }
.kopiera.klar { background: var(--tint); border-color: var(--tint); }
.kopia-reserv { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }
.pdf-lank { margin-top: 12px; }
.kapitlet[hidden] { display: none; }
.js .kapitlet:not(.synlig) { display: none; }

/* Integritet och 404 */
.text-sida { max-width: 68ch; }
.text-sida h1 { font-size: 30px; line-height: 1.15; }
.text-sida h2 { font-size: 21px; line-height: 1.25; margin-top: 34px; }
.text-sida h3 { font-size: 17px; margin-top: 22px; }
.text-sida p, .text-sida li, .text-sida dd { font-size: 16px; line-height: 1.6; color: var(--ink2); }
.text-sida p { margin-top: 12px; }
.text-sida ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.text-sida dl { margin: 10px 0 0; }
.text-sida dt { font-weight: 600; margin-top: 14px; color: var(--ink); }
.text-sida dd { margin: 2px 0 0; }
.text-sida .inneh { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 18px; }
.text-sida .inneh ul { margin-top: 6px; }

/* Kakrutan (avstängd som standard) */
.kakruta { position: fixed; inset: auto 12px 12px 12px; max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 12px 40px -12px rgba(0,0,0,.3); z-index: 10; display: grid; gap: 12px; }
.kakruta .knappar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }

/* Admin */
.admin .s-main { padding-top: 0; }
.admin-meny { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.admin-meny li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.admin-meny a { font-weight: 600; font-size: 17px; }
.admin-meny span { color: var(--muted); font-size: 14px; }
.tabellyta { overflow-x: auto; margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.siffror { border-collapse: collapse; width: 100%; font-size: 14px; }
.siffror th, .siffror td { padding: 9px 12px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.siffror thead th { border-top: 0; color: var(--muted); font-weight: 500; }
.siffror .tal { text-align: right; font-variant-numeric: tabular-nums; }
.tider-tabell input { height: 40px; border: 1px solid var(--ctl); border-radius: 8px; padding: 0 10px; width: 100%; min-width: 150px; background: var(--surface); }
.ok-rad { background: var(--tint); border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.varning-rad { background: var(--warn-t); border: 1px solid var(--warn-line); border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.brev { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.brev-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 3px; font-size: 14px; }
.brev-h .amne { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.brev-h span { color: var(--muted); }
.brev-text { padding: 16px; white-space: pre-wrap; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

/* Avstånd (i stället för style-attribut, som säkerhetsreglerna stoppar). Sist, så att de vinner över komponenterna. */
.m0 { margin: 0; } .mw0 { min-width: 0; } .mt2 { margin-top: 2px; } .mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; } .mt22 { margin-top: 22px; } .mb4 { margin-bottom: 4px; } .mb6 { margin-bottom: 6px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; } .pt26 { padding-top: 26px; } .mx48 { max-width: 48ch; }

/* ---------- Dator (bredare än 820 px) ---------- */
@media (min-width: 820px) {
  .s-in { padding-inline: 40px; }
  .s-huvud { padding-block: 22px; }
  .s-huvud img { height: 28px; }
  .s-main { padding-block: 20px 72px; }
  .h-stor { font-size: 46px; }
  .ingress { font-size: 20px; }
  .hamta { gap: 40px; }
  .hamta-hero { text-align: center; justify-items: center; max-width: 880px; width: 100%; margin: 0 auto; }
  .hamta-hero .overrad { justify-content: center; }
  .hamta-hero .ingress { max-width: 46ch; }
  .erbjudande { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; align-items: center; max-width: 920px; width: 100%; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 40px; }
  .erbjudande .omslag-yta { padding: 0; }
  .erbjudande .form-kort { border: 0; padding: 0; background: none; }
  .form-kort h2 { font-size: 26px; }
  .falt-par { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .erbjudande .falt input { height: 54px; }
  .erbjudande .huvudknapp { min-height: 56px; font-size: 17px; }
  .guide-lista { max-width: 920px; width: 100%; margin: 12px auto 0; }
  .guide-lista .kapitel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; }
  .guide-lista .kapitel li:nth-child(2) { border-top: 0; }
  .omslag { width: 190px; }
  .erbj { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px 44px; align-items: start; margin-top: 30px; }
  .erbj .kort-genomgang { grid-column: 2; grid-row: 1 / span 2; }
  .pitch .h-mellan { font-size: 40px; line-height: 1.1; }
  .pitch .huvudknapp { justify-self: start; min-width: 260px; }
  .fraga { max-width: 560px; margin: 0 auto; width: 100%; }
  .boka { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .boka .rubrik-rad { grid-column: 1 / -1; }
  .tider { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .forb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .forb .hel-rad { grid-column: 1 / -1; }
  .guide-band .s-in { padding-block: 44px 52px; }
  .guide-band h1 { font-size: 44px; }
  .guide-yta { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .guide-yta .toc { position: sticky; top: 24px; order: 0; }
  .text-sida h1 { font-size: 38px; }
}

/* Telefonen: läsbart diagram (inte i pdf:en), radioknappar, admin. */
@media screen and (max-width: 819px) {
  .diagram .k { font-size: 22px; }
  .diagram .v { font-size: 24px; }
  .tider-tabell input { font-size: 16px; height: 44px; min-width: 0; }
  .tider-tabell th, .tider-tabell td { padding: 8px 6px; }
  .siffror th, .siffror td { padding: 8px 8px; }
}
.kryss input[type="radio"] { border-radius: 50%; }
.kryss input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
