/* Layout: sagsmappe. Hver sag har en metadata-margin (sagsnr., status, periode) til venstre og indhold + levende demo til højre. Overstregning som i en kvalitetsgennemgang er det gennemgående greb. */
:root {
  --paper: #F3F4F1;
  --surface: #FFFFFF;
  --sunk: #E9EBE7;
  --ink: #14171D;
  --ink-2: #545C6A;
  --line: #D6DAE0;
  --accent: #2443D1;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3E8FC;
  --mark: rgba(255, 222, 64, 0.85);
  --good: #12775A;
  --good-soft: #D8EFE6;
  --bad: #B3362E;
  --w4: #0B7A5A; --w4-ink: #FFFFFF;
  --w3: #EADF9C; --w3-ink: #2B2610;
  --w2: #F1B98C; --w2-ink: #3A2010;
  --w1: #E59291; --w1-ink: #3A1010;
  --c-lb: #E0A400; --c-qh: #2443D1; --c-ks: #12775A;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0F1115; --surface: #171A20; --sunk: #1D2128; --ink: #E8EAEE; --ink-2: #A2A9B6; --line: #2B3039;
  --accent: #8FA3FF; --accent-ink: #0F1115; --accent-soft: #1D2547; --mark: rgba(255, 214, 51, 0.38);
  --good: #4CC79E; --good-soft: #143528; --bad: #F08A82;
  --w4: #0B7A5A; --w4-ink: #F2FFF9; --w3: #7A6F2C; --w3-ink: #FFF8D6; --w2: #8A5432; --w2-ink: #FFEBDD; --w1: #8A3B3B; --w1-ink: #FFE4E4;
  --c-lb: #F2C14E; --c-qh: #8FA3FF; --c-ks: #4CC79E;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #0F1115; --surface: #171A20; --sunk: #1D2128; --ink: #E8EAEE; --ink-2: #A2A9B6; --line: #2B3039;
  --accent: #8FA3FF; --accent-ink: #0F1115; --accent-soft: #1D2547; --mark: rgba(255, 214, 51, 0.38);
  --good: #4CC79E; --good-soft: #143528; --bad: #F08A82;
  --w4: #0B7A5A; --w4-ink: #F2FFF9; --w3: #7A6F2C; --w3-ink: #FFF8D6; --w2: #8A5432; --w2-ink: #FFEBDD; --w1: #8A3B3B; --w1-ink: #FFE4E4;
  --c-lb: #F2C14E; --c-qh: #8FA3FF; --c-ks: #4CC79E;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; padding-inline: 20px; padding-block: 0 64px; }
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-size: 0.82em; }
.mark { background: linear-gradient(transparent 52%, var(--mark) 52%, var(--mark) 90%, transparent 90%); padding-inline: 2px; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* Top */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top .who { font-family: var(--f-display); font-weight: 750; font-variation-settings: "wdth" 110; font-size: 18px; letter-spacing: 0.01em; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; margin-left: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top .lang { font-family: var(--f-mono); font-size: 13px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top .lang:hover { border-color: var(--accent); color: var(--accent); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-left: 232px; align-items: start; }
.about-text p { font-size: 18px; max-width: 58ch; }
.about-text p + p { margin-top: 14px; }
.about-facts { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.about-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.about-facts dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.career { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.career li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.career .when { grid-row: span 3; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); padding-top: 4px; }
.career li:first-child .when { color: var(--accent); font-weight: 600; }
.career h3 { font-size: 20px; font-weight: 750; font-variation-settings: "wdth" 104; }
.career .where { font-size: 14px; color: var(--ink-2); }
.career p { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-block: 56px 40px; align-items: end; }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); font-weight: 820; font-variation-settings: "wdth" 112; letter-spacing: -0.015em; margin-top: 14px; }
.hero h1 s { text-decoration: none; position: relative; color: var(--ink-2); white-space: nowrap; }
.hero h1 s::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 0.11em; background: var(--bad); transform: rotate(-2deg); border-radius: 2px; }
.hero .lede { font-size: 20px; max-width: 60ch; margin-top: 24px; color: var(--ink); }
.hero figure { margin: 0; }
.hero img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--r) 50%; display: block; max-width: 100%; }
.hero figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.fact { padding: 20px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact b { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 105; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact b .from { color: var(--ink-2); font-weight: 600; }
.fact > span { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }

/* Sections */
section { padding-block: 72px 0; }
.sec-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.sec-head p { margin-top: 14px; max-width: 64ch; color: var(--ink-2); font-size: 18px; }

/* Method */
.method { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.honest { font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 650; font-size: 22px; line-height: 1.35; max-width: 46ch; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { padding: 20px 22px 24px 0; border-bottom: 1px solid var(--line); counter-increment: s; min-width: 0; }
.steps li:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 21px; font-weight: 750; font-variation-settings: "wdth" 104; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--ink-2); }

/* Case */
.case { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-top: 40px; border-top: 2px solid var(--ink); margin-top: 72px; }
.case:first-of-type { margin-top: 0; }
.meta { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.meta .id { font-family: var(--f-mono); font-size: 15px; font-weight: 600; }
.meta dl { margin: 0; display: grid; gap: 10px; }
.meta dt, .about-facts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.meta dd { margin: 2px 0 0; line-height: 1.4; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good); width: fit-content; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.soft { background: var(--accent-soft); color: var(--accent); }
.case h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.case .intro { font-size: 19px; max-width: 62ch; margin-top: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 36px; margin-top: 32px; align-items: start; }
.cols > * { min-width: 0; }
.ba h3 { font-family: var(--f-mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.ba + .ba { margin-top: 26px; }
.ba ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ba li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.before li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 13px; height: 2px; background: var(--bad); transform: rotate(-8deg); }
.before li span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 70%, transparent); text-decoration-thickness: 1.5px; color: var(--ink-2); }
.after li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 11px; height: 6px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.numbers div { padding: 14px 14px 0 0; }
.numbers b { display: block; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 104; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.numbers span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }
.lesson { margin-top: 28px; padding: 16px 18px; background: var(--sunk); border-radius: var(--r); font-size: 15.5px; }
.lesson b { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 4px; font-weight: 600; }

/* Pipeline */
.pipe { display: flex; align-items: stretch; gap: 0; margin-top: 30px; overflow-x: auto; padding-bottom: 4px; }
.pipe .node { flex: 1 1 0; min-width: 120px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.35; }
.pipe .node small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px; }
.pipe .node.key { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pipe .arrow { flex: 0 0 26px; display: grid; place-items: center; color: var(--ink-2); font-family: var(--f-mono); }

/* Demo frame */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunk); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.demo-body { padding: 16px; }
.demo-note { font-size: 12.5px; color: var(--ink-2); padding: 10px 14px; border-top: 1px dashed var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: 13px; padding: 5px 12px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:disabled { background: var(--sunk); border-color: var(--line); color: var(--ink-2); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); }
.linkbtn { font: inherit; font-size: 13px; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 0; }

/* WBR table */
.wbr-wrap { overflow-x: auto; }
table.wbr { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wbr th { font-family: var(--f-mono); font-weight: 600; font-size: 11.5px; color: var(--ink-2); text-align: center; padding: 4px 6px; white-space: nowrap; }
.wbr th:first-child, .wbr td:first-child { text-align: left; }
.wbr td { padding: 6px 8px; text-align: center; border-radius: 5px; white-space: nowrap; }
.wbr td:first-child { font-weight: 600; background: transparent; padding-left: 2px; }
.wbr .b4 { background: var(--w4); color: var(--w4-ink); }
.wbr .b3 { background: var(--w3); color: var(--w3-ink); }
.wbr .b2 { background: var(--w2); color: var(--w2-ink); }
.wbr .b1 { background: var(--w1); color: var(--w1-ink); }
.wbr .plain { background: var(--sunk); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.stopwatch { display: grid; gap: 8px; margin-top: 18px; }
.sw-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 13.5px; }
.sw-row .bar { height: 16px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.sw-row .bar i { display: block; height: 100%; border-radius: 4px; }
.sw-row .t { font-family: var(--f-mono); font-size: 13px; text-align: right; }

/* Template demo */
.ks-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ks-fields label, .fill label { font-size: 12.5px; color: var(--ink-2); display: grid; gap: 4px; }
input[type="text"], textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.composer { position: relative; }
.composer-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; gap: 8px; flex-wrap: wrap; }
.suggest { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px -12px rgba(0,0,0,.25); }
.suggest li { padding: 7px 10px; border-radius: 7px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-soft); }
.suggest li code { font-family: var(--f-mono); font-size: 13px; color: var(--accent); min-width: 92px; }
.suggest li span { color: var(--ink-2); font-size: 13px; }
.fill { margin-top: 10px; border: 1px solid var(--accent); border-radius: 10px; padding: 12px; background: var(--accent-soft); }
.fill h4 { margin: 0 0 8px; font-size: 14px; }
.fill .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.fill .actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.chips button { font-family: var(--f-mono); font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.toast { font-size: 13px; color: var(--good); min-height: 1.4em; margin-top: 8px; }

/* Rockets */
.board { position: relative; height: 280px; background: radial-gradient(1px 1px at 12% 22%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 38%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 88% 58%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 28% 70%, #fff5 50%, transparent 51%), linear-gradient(180deg, #0B1230, #1B1F4B); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 14px 8px 30px; }
.lane { position: relative; border-left: 1px solid #ffffff10; }
.lane:first-child { border-left: 0; }
.rocket { position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translate(-50%, 0); transition: bottom 1.2s cubic-bezier(.2,.8,.2,1); display: grid; justify-items: center; gap: 2px; }
.rocket svg { width: 26px; height: 40px; display: block; }
.rocket b { line-height: 1.3; font-family: var(--f-mono); font-size: 11px; color: #fff; background: #ffffff1c; padding: 1px 5px; border-radius: 4px; }
.rocket.hit b { background: #0B7A5A; }
.lane label { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 11px; color: #C8CDF0; font-family: var(--f-mono); }
.target { position: absolute; left: 8px; right: 8px; border-top: 2px dashed #fff; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .rocket { transition: none; } }

/* Timeline */
/* Timeline chart */
.chart-wrap { overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; min-width: 620px; height: auto; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-hint { display: none; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 680px) { .chart-hint { display: block; } }
.miles { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.miles li { font-size: 14.5px; padding-left: 16px; position: relative; }
.miles li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--ink-2)); }
.miles li b { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; display: block; color: var(--ink-2); }

/* Fit table */
.fit-wrap { overflow-x: auto; }
table.fit { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.fit th { text-align: left; font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.fit td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fit td:first-child { font-weight: 650; width: 34%; }
.skills { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.skills li { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.skills h3 { font-size: 18px; font-weight: 720; font-variation-settings: "wdth" 102; line-height: 1.3; padding-top: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-family: var(--f-mono); font-size: 11px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 400; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.tools h3 { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-size: 14.5px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tools .next li { background: transparent; border-style: dashed; }

/* Footer */
footer { margin-top: 96px; padding-top: 28px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
footer h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; font-variation-settings: "wdth" 108; }
footer .contact { display: grid; gap: 4px; font-size: 17px; margin-top: 14px; }
footer .contact .mono { font-size: 15px; }
footer small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 18px; max-width: 70ch; line-height: 1.5; }
.copy { font: inherit; font-size: 12px; margin-left: 8px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 28px; }
  .hero figure { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; order: -1; }
  .hero figcaption { margin-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head, .method, .case { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .meta dl { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); width: 100%; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
  .tools { grid-template-columns: minmax(0, 1fr); }
  footer { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); margin-left: 0; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; padding-inline: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .ks-fields { grid-template-columns: minmax(0, 1fr); }
  .pipe { flex-direction: column; overflow: visible; }
  .pipe .arrow { flex-basis: 22px; transform: rotate(90deg); }
  .pipe .node { min-width: 0; }
  .board { height: 240px; }
  .fit td:first-child { width: 40%; }
  .top nav { display: none; }
  .skills li { grid-template-columns: minmax(0, 1fr); }
  .career li { grid-template-columns: 78px minmax(0, 1fr); gap: 0 12px; }
  .about-facts div { grid-template-columns: 70px minmax(0, 1fr); }
}

/* Print / PDF */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  .case > .meta, .sec-head, .eyebrow { break-after: avoid; }
  .chart-wrap svg { min-width: 0; }
  .chart-hint { display: none !important; }
  body { font-size: 11.5pt; padding: 0; background: #fff; }
  .top nav, .top .lang, .chips, .no-print, .seg, #rk-run, .copy { display: none !important; }
  section { padding-top: 36px; }
  .case { margin-top: 28px; }
  .case > :first-child, .before-after { break-inside: avoid; }
  .demo, .lesson, .pipe, .fact, .steps li, table, .numbers, .tools, footer, .miles li, .chart-wrap, .skills li, .career li { break-inside: avoid; }
  .hero { padding-block: 24px 24px; }
  .wrap { zoom: .8; }
  h2, h3, .eyebrow { break-after: avoid; }
  textarea { min-height: 120px; }
}
