/* ==========================================================
   kurs.css – Designsystem v0.2.0
   Riktning: redaktionell, lugn, varm. Tunna linjer, stor serif för rubriker,
   få färger. Inga externa resurser (typsnitt är självhostade, OFL-licens).
   Tillgänglighet: WCAG 2.2 AA som mål (kontrast kontrollerad i QA-steget),
   respekterar prefers-reduced-motion och prefers-color-scheme.
   ========================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #f6f1e8;
  --paper-2: #eee6d6;
  --card: #fffdf8;
  --ink: #14211f;
  --ink-2: #33433f;
  --muted: #55645f;
  --line: #d9cfbd;
  --line-strong: #b9ad97;
  --brand: #0f4c47;
  --brand-ink: #ffffff;
  --brand-soft: #e1ece6;
  --accent: #a8401f;
  --accent-soft: #f5e2d6;
  --mark: #f3dc8a;
  --band: #0f3f3b;
  --band-ink: #f3efe4;
  --band-muted: #bcd0c8;
  --focus: #1a4fd6;
  --radius: 10px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 70rem;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1816;
    --paper-2: #14221f;
    --card: #162522;
    --ink: #efe9dc;
    --ink-2: #d4cebf;
    --muted: #a9b4ae;
    --line: #2b3a37;
    --line-strong: #435650;
    --brand: #86d6c6;
    --brand-ink: #0b1412;
    --brand-soft: #17302c;
    --accent: #f2a483;
    --accent-soft: #33211a;
    --mark: #5a4a14;
    --band: #0b2926;
    --band-ink: #f1ece0;
    --band-muted: #a9c3ba;
    --focus: #8fb2ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.65; font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); letter-spacing: -.02em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .8rem 1.1rem; z-index: 200; }
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 4rem, var(--maxw)); } }

.label {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow { color: var(--accent); }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

/* ---------- Topbar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wrap { display: flex; align-items: center; gap: .5rem 2rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.6rem; line-height: 1; margin-right: auto; min-height: 44px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav ul { list-style: none; display: flex; gap: .2rem 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav .lang { border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 .7rem; min-height: 36px; font-size: .88rem; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .7rem 1.5rem; border-radius: 8px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.small { min-height: 44px; padding: .4rem 1.1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.4rem 0; }
.btn .arr { font-family: var(--sans); transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-block: .6rem 1.2rem; }
.hero .art { max-width: 30rem; width: 100%; justify-self: center; }
.hero .art svg { width: 100%; height: auto; display: block; }

.facts { display: grid; gap: 1.2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 2.6rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line-strong); }
.facts div { max-width: 16rem; }
.facts dt { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brand); }
.facts dd { margin: .3rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }

/* ---------- Sektioner ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .6rem 4rem; margin-bottom: 2.4rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1.1fr; align-items: end; } }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); }
.alt-bg { background: var(--paper-2); }

/* Känner du igen dig */
.pains { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 0 4rem; }
@media (min-width: 800px) { .pains { grid-template-columns: 1fr 1fr; } }
.pains li { counter-increment: p; display: grid; grid-template-columns: 3.2rem 1fr; gap: .6rem; padding-block: 1.3rem; border-top: 1px solid var(--line-strong); max-width: none; }
.pains li::before { content: counter(p, decimal-leading-zero); font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--accent); }
.pains p { margin: 0; }
.pains strong { display: block; font-size: 1.1rem; margin-bottom: .2rem; }

/* Principer */
.principles { display: grid; gap: 2.4rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.principles article { border-top: 3px solid var(--ink); padding-top: 1rem; }
.principles .num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); display: block; margin-bottom: .4rem; }
.principles h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .4rem; }
.principles p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* Kursprogram */
.track { margin-top: 3rem; }
.track-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding-bottom: .8rem; border-bottom: 3px solid var(--ink); }
.track-head h3 { margin: 0; font-size: 2rem; }
.track-head p { margin: 0 0 0 auto; color: var(--muted); font-size: .95rem; }
.badge { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 4px; border: 1.5px solid currentColor; line-height: 1.4; }
.badge.free { color: var(--brand); background: var(--brand-soft); }
.badge.member { color: var(--accent); background: var(--accent-soft); }

.module { border-bottom: 1px solid var(--line-strong); }
.module summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.4rem 1fr auto 1.5rem;
  gap: .3rem 1rem; align-items: center; padding-block: 1.1rem; min-height: 56px;
}
.module summary::-webkit-details-marker { display: none; }
.module .mnum { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--muted); }
.module .mtitle { font-weight: 650; font-size: 1.12rem; line-height: 1.3; }
.module .mtitle small { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: .15rem; }
.module .chev { width: 1.1rem; height: 1.1rem; position: relative; justify-self: end; }
.module .chev::before, .module .chev::after { content: ""; position: absolute; background: var(--ink); inset: 50% 0 auto 0; height: 2px; transform: translateY(-1px); transition: transform .2s ease; }
.module .chev::after { transform: translateY(-1px) rotate(90deg); }
.module[open] .chev::after { transform: translateY(-1px) rotate(0deg); }
.module summary:hover .mtitle { text-decoration: underline; text-underline-offset: .25em; }
.module .mbody { padding: .2rem 0 1.6rem 4.4rem; display: grid; gap: 1rem 3rem; }
@media (min-width: 800px) { .module .mbody { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 599px) { .module .mbody { padding-left: 0; } .module summary { grid-template-columns: 2.6rem 1fr 1.2rem; } .module summary .pill { grid-column: 2; grid-row: 2; justify-self: start; } .module .chev { grid-column: 3; grid-row: 1; } }
.module .mbody ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.module .mbody li { margin-block: .25rem; }
.module .outcome { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: .9rem 1.1rem; border-radius: 4px; }
.module .outcome p { margin: .3rem 0 0; }
.module .mlink { margin-top: .8rem; }
.pill { font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.pill.open { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pill.soon { border-color: var(--brand); color: var(--brand); }

/* Autonomitrappa */
.stairs { margin: 0; }
.stairs svg { width: 100%; height: auto; display: block; }
.stairs figcaption { color: var(--muted); font-size: .92rem; margin-top: .8rem; max-width: 70ch; }

/* För vem */
.personas { display: grid; gap: 2.4rem 3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.persona { border-top: 1px solid var(--line-strong); padding-top: 1.1rem; }
.persona h3 { font-size: 1.9rem; margin-bottom: .3rem; }
.persona .label { display: block; margin-bottom: .4rem; color: var(--accent); }
.persona p { color: var(--ink-2); }

/* Fakta-band */
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: var(--band-ink); }
.band h2 em { color: #f2b79b; }
.band .label { color: var(--band-muted); }
.band p { color: var(--band-muted); }
.band a { color: #a8e3d6; }
.band-grid { display: grid; gap: 2.4rem 4rem; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.factsheet { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.factsheet table { width: 100%; border-collapse: collapse; font-size: .95rem; background: transparent; }
.factsheet caption { text-align: left; padding-bottom: .6rem; color: var(--band-muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.factsheet th, .factsheet td { border: 0; border-top: 1px solid rgba(255,255,255,.16); padding: .6rem .3rem; text-align: left; color: var(--band-ink); background: transparent; }
.factsheet th { font-weight: 600; }
.factsheet td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.factsheet .src { color: var(--band-muted); font-size: .82rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.16); margin: 0; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details, details.quiz { border-top: 1px solid var(--line-strong); }
.faq details:last-child, details.quiz:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary, details.quiz summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-weight: 650; font-size: 1.08rem; min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker, details.quiz summary::-webkit-details-marker { display: none; }
.faq summary::after, details.quiz summary::after { content: "+"; font-family: var(--serif); font-size: 1.8rem; line-height: 1; flex: none; color: var(--accent); }
.faq details[open] summary::after, details.quiz[open] summary::after { content: "–"; }
.faq .a, details.quiz .svar { padding: 0 0 1.2rem; color: var(--ink-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* Avslut */
.cta { text-align: center; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { margin-inline: auto; color: var(--ink-2); }
.cta .btn-row { justify-content: center; }

.todo { background: var(--mark); color: var(--ink); padding: 0 .3em; border-radius: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-strong); padding-block: 3rem 3.5rem; background: var(--paper-2); color: var(--ink-2); font-size: .94rem; }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer .brand { margin-bottom: .6rem; }
.footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-block: .1rem; }
.footer a { color: var(--ink); display: inline-block; padding-block: .25rem; }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); padding-top: 1.2rem; color: var(--muted); font-size: .88rem; }
.footer .fine p { max-width: 80ch; margin: 0 0 .4rem; }

/* ==========================================================
   Modulsidor
   ========================================================== */
.chapter-hero { padding-block: clamp(2.2rem, 6vw, 4.2rem) clamp(1.8rem, 4vw, 3rem); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); }
.chapter-grid { display: grid; gap: 1.6rem 4rem; }
@media (min-width: 900px) { .chapter-grid { grid-template-columns: 1.3fr .7fr; align-items: end; } }
.chapter-title { display: flex; gap: 1.2rem; align-items: flex-start; }
.chapter-num { font-family: var(--serif); font-size: clamp(4rem, 12vw, 8rem); line-height: .85; color: var(--accent); }
.chapter-title h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .6rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--ink-2); font-size: .95rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.meta-row li { max-width: none; }
.after-box { border-top: 3px solid var(--ink); padding-top: .9rem; }
.after-box ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.after-box li { margin-block: .35rem; }

.lesson-nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-block: 1px solid var(--line-strong); }
.lesson-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; padding-block: .4rem; }
.lesson-nav ol { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.lesson-nav li { max-width: none; }
.lesson-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 700; font-family: var(--sans); }
.lesson-nav a:hover { border-color: var(--ink); }
.lesson-nav a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lesson-nav a.done { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.lesson-nav a.done[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.progress-wrap { display: flex; align-items: center; gap: .6rem; margin-left: auto; font-size: .88rem; color: var(--ink-2); }
progress { width: 8rem; height: .6rem; accent-color: var(--brand); }
.fokus-toggle { display: inline-flex; gap: .55rem; align-items: center; min-height: 44px; cursor: pointer; font-size: .92rem; }
.fokus-toggle input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }

.lektion { border-top: 1px solid var(--line-strong); padding-block: 2.6rem 3rem; scroll-margin-top: 4.5rem; }
.lektion-head { display: flex; gap: 1.2rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1.4rem; }
.lektion-head .lnum { font-family: var(--serif); font-size: 3.6rem; line-height: .9; color: var(--accent); }
.lektion-head h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.lektion-head .tid { margin: 0 0 0 auto; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lektion h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin: 2rem 0 .5rem; }
.lektion-body { max-width: 46rem; }
.lektion ul, .lektion ol { padding-left: 1.2rem; }
.lektion li { margin-block: .35rem; }
body.fokuslage .lektion:not(.aktiv) { display: none; }

.callout { border-radius: 4px; padding: 1rem 1.2rem; margin-block: 1.4rem; }
.callout > :last-child { margin-bottom: 0; }
.callout .label { display: block; margin-bottom: .3rem; }
.sum { background: var(--brand-soft); border-left: 4px solid var(--brand); }
.sum .label { color: var(--brand); }
.sum p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.gor { background: var(--card); border: 2px solid var(--ink); }
.gor .label { color: var(--accent); }
.obs { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.obs .label { color: var(--accent); }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { margin-block: .3rem; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; min-height: 44px; cursor: pointer; }
.checklist input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin-top: .3rem; accent-color: var(--brand); flex: none; }

pre.prompt { background: var(--card); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: 4px; padding: .9rem 1.1rem; margin: .8rem 0; white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; max-width: 100%; }

.table-scroll { overflow-x: auto; margin-block: 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); }
caption { text-align: left; font-weight: 700; padding-bottom: .5rem; font-size: .9rem; color: var(--ink-2); }
th, td { border: 1px solid var(--line-strong); padding: .6rem .8rem; text-align: left; vertical-align: top; }
thead th { background: var(--brand-soft); }
tbody th { font-weight: 700; }

figure { margin: 1.8rem 0; }
figure svg { width: 100%; height: auto; display: block; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.svg-box { fill: var(--card); stroke: var(--brand); stroke-width: 2; }
.svg-box.alt { stroke: var(--accent); }
.svg-box.good { fill: var(--brand-soft); }
.svg-text { fill: var(--ink); font: 700 15px var(--sans); }
.svg-sub { fill: var(--muted); font: 500 13px var(--sans); }
.svg-arrow { stroke: var(--ink-2); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.svg-head { fill: var(--ink-2); }

.steg-knappar { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

.done-box { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-top: 2rem; }
.done-box h3 { color: var(--band-ink); margin: 0 0 .4rem; font-size: 2rem; font-family: var(--serif); font-weight: 400; }
.done-box p { color: var(--band-muted); }
.done-box .btn { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.done-box .btn:hover { background: transparent; color: var(--band-ink); }

.sources { font-size: .94rem; }

.js-only { display: none; }
.js .js-only { display: inline-flex; }

/* Enkla textsidor (integritet, tillgänglighet) */
.prose { padding-block: 3rem 4rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
.prose .callout { max-width: var(--measure); }

@media print {
  .topbar, .lesson-nav, .skip-link, .steg-knappar, .btn-row, .fokus-toggle, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .lektion { page-break-inside: avoid; }
  body.fokuslage .lektion:not(.aktiv) { display: block; }
}

/* ==========================================================
   v0.2.0 tillägg: block, färdkarta, trappa, kontakt
   ========================================================== */
.block { border-top: 1px solid var(--line-strong); padding-block: 2.6rem 3rem; }
.block > * { max-width: 46rem; }
.block h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }

/* Färdkarta i hero (SVG genereras av build.py) */
.rm-line { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.rm-node { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.rm-node.free { fill: var(--brand); stroke: var(--brand); }
.rm-node.member { stroke: var(--accent); }
.rm-n { font: 400 22px var(--serif); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.rm-node.free + .rm-n { fill: var(--brand-ink); }
.rm-t { font: 600 15px var(--sans); fill: var(--ink); dominant-baseline: central; }
.rm-z { font: 700 11px var(--sans); fill: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* Autonomitrappan (HTML, responsiv) */
.stairs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-items: end; counter-reset: s; }
@media (min-width: 800px) { .stairs ol { grid-template-columns: repeat(4, 1fr); } }
.stairs li { counter-increment: s; border-top: 3px solid var(--ink); border-left: 1px solid var(--line-strong); padding: 1rem 1.1rem 1.4rem; background: var(--card); max-width: none; }
.stairs li::before { content: counter(s); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); display: block; }
.stairs li:nth-child(1) { background: var(--paper); }
.stairs li:nth-child(2) { background: var(--brand-soft); }
.stairs li:nth-child(3) { background: var(--accent-soft); }
.stairs li:nth-child(4) { background: var(--band); color: var(--band-ink); border-top-color: var(--accent); }
.stairs li:nth-child(4) p, .stairs li:nth-child(4) .mods { color: var(--band-muted); }
.stairs li:nth-child(4)::before { color: #f2b79b; }
@media (min-width: 800px) { .stairs li:nth-child(1) { min-height: 11rem; } .stairs li:nth-child(2) { min-height: 14rem; } .stairs li:nth-child(3) { min-height: 17rem; } .stairs li:nth-child(4) { min-height: 20rem; } }
.stairs h3 { font-size: 1.5rem; margin: .4rem 0 .4rem; }
.stairs li:nth-child(4) h3 { color: var(--band-ink); }
.stairs p { margin: 0 0 .6rem; font-size: .96rem; color: var(--ink-2); }
.stairs .mods { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.contact-list li { margin-block: .35rem; max-width: none; }
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.chooser .box { max-width: 36rem; text-align: left; }
.chooser h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
.nav .btn { color: var(--paper); }
.nav .btn:hover { color: var(--brand-ink); text-decoration: none; }
.module .outcome { align-self: start; }
@media (max-width: 699px) { .lesson-nav { position: static; } figure { overflow-x: auto; } figure svg { min-width: 540px; } }
