/* Variant C: Maskinrummet */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/SchibstedGrotesk-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f0ea;
  --sheet: #fbfaf6;
  --tint: #f4f2eb;
  --ink: #191b1a;
  --ink-2: #50534f;
  --ink-3: #62655f;
  --line: #232624;
  --line-2: #8b8d87;
  --rule: #d8d5cb;
  --hatch: #d6d1c5;
  --accent: #b13f0b;
  --on-accent: #ffffff;
  --mark: #f6e3d6;
  --unplayed: #c3bfb4;
  --shadow: #e4e0d5;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Dark is a blueprint: the same drawing, printed as a blue copy. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1b2a;
    --sheet: #112236;
    --tint: #16293f;
    --ink: #eaeef0;
    --ink-2: #a9b8c6;
    --ink-3: #93a4b4;
    --line: #d3dde6;
    --line-2: #5d7590;
    --rule: #1f3650;
    --hatch: #24405c;
    --accent: #ff9159;
    --on-accent: #1c0b02;
    --mark: #3d2d2c;
    --unplayed: #2c4560;
    --shadow: #07111b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.sheet-wrap.wrap { max-width: 1360px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 12px; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ top */
.top { border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.name { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; font-size: 16px; }
.top nav { display: flex; gap: 10px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); padding: 10px 4px; }
.top nav a:hover { color: var(--accent); }
@media (max-width: 479px) {
  .top nav a[href="#ritning"], .top nav a[href="#samtal"] { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero { padding-top: 44px; padding-bottom: 28px; display: grid; gap: 18px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(1.75rem, 9.3vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 750; }
.hero h1 .l { display: block; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 40ch; }

/* Buttons share one look: sans, bordered like a drawing frame, 44 px to tap. */
.cta, .rp-btn, .rp-listen, .parts-sum, .rp-tab, .raw summary {
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; min-height: 44px;
}
.cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 16px;
  background: var(--sheet); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
}
.cta::before { content: ""; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--accent); }
.cta:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; column-gap: 48px; padding-top: 52px; padding-bottom: 52px; }
  .hero h1 { font-size: min(4.6rem, 5.3vw); }
  .hero h1 .l { white-space: nowrap; }
  .eyebrow, .hero-cta { grid-column: 1 / -1; }
  .lead { padding-bottom: 8px; }
}

/* ------------------------------------------------------------ sheet */
.sheet-wrap.wrap { padding-left: 8px; padding-right: 8px; }
.sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 18px 10px 20px;
}
.zone { display: none; }

.sheet-head { display: grid; gap: 16px; padding: 4px 6px 18px; }
.sheet-head h2 { font-size: 28px; }
.sheet-lead { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 50ch; }


.drawing { position: relative; }

@media (min-width: 700px) {
  .sheet { padding: 24px 26px 26px; border-width: 1.5px; outline: 1px solid var(--line-2); outline-offset: 13px; margin: 14px; }
  .zone {
    display: flex; position: absolute; left: 0; right: 0; height: 13px;
    font-family: var(--mono); font-size: 9.5px; color: var(--ink-2); line-height: 13px;
    pointer-events: none;
  }
  .zone i { flex: 1; text-align: center; font-style: normal; border-left: 1px solid var(--line-2); }
  .zone i:first-child { border-left: 0; }
  .zone-t { top: -14px; }
  .zone-b { bottom: -14px; }
  .sheet-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 0 4px 16px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
}
@media (min-width: 1100px) {
  .sheet-head h2 { font-size: 34px; }
}

/* ------------------------------------------------------------ diagram */
.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-d { display: none; }
.dg-m { max-width: 540px; margin: 0 auto; }
@media (min-width: 700px) and (max-width: 1099px) {
  .dg-m { max-width: 420px; }
}
@media (min-width: 1100px) {
  .dg-d { display: block; }
  .dg-m { display: none; }
}

.dg text { font-family: var(--mono); fill: var(--ink); }
.dg .t { font-family: var(--sans); font-weight: 650; font-size: 15px; letter-spacing: -0.005em; }
.dg-m .t { font-size: 14px; }
.dg .t-container { font-size: 16px; font-weight: 750; }
.dg .sb { font-family: var(--sans); font-size: 13.5px; fill: var(--ink-2); }
.dg .ms { font-family: var(--sans); font-size: 13.5px; fill: var(--ink); }
.dg-m .sb, .dg-m .ms { font-size: 13px; }
.dg .sub-t { text-anchor: middle; font-size: 12px; }
.dg .c-label { pointer-events: none; }
.dg .c-label text { paint-order: stroke; stroke: var(--tint); stroke-width: 6px; stroke-linejoin: round; }

.node { cursor: pointer; outline: none; }
.node .box { fill: var(--sheet); stroke: var(--line); stroke-width: 1.6; transition: stroke 0.15s, stroke-width 0.15s; }
.s-byggt .box { stroke-width: 1.3; stroke-dasharray: 6 3.5; }
.s-proto .box { stroke-width: 1.1; }
.s-ext .box { fill: var(--sheet); stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 14 3 2 3; }
.s-ext .t { fill: var(--ink-2); font-weight: 550; }
.is-container > .box { fill: var(--tint); stroke-width: 2; }
.hatch { pointer-events: none; }
.hatch-line { stroke: var(--hatch); stroke-width: 1.2; }


.sub { fill: var(--sheet); stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 2.5; }
.cap { stroke: var(--ink-2); stroke-width: 1; }

.balloon circle { fill: var(--sheet); stroke: var(--line); stroke-width: 1; }
.balloon text { font-size: 11px; text-anchor: middle; fill: var(--ink); }

.prog { fill: var(--accent); }

.node:hover > .box, .node.is-hi > .box, .node:focus-visible > .box { stroke: var(--accent); stroke-width: 2.2; }
.node:focus-visible > .box { stroke-width: 3; }

.edge { fill: none; stroke: var(--line); stroke-width: 1.3; pointer-events: none; transition: stroke 0.15s, stroke-width 0.15s; }
.e-drift { stroke: var(--accent); stroke-width: 1.5; }
.e-proto { stroke-dasharray: 1.5 3.5; stroke-linecap: round; stroke-width: 1.5; }
.e-byggt { stroke-dasharray: 6 4; }
.edge.is-hi { stroke: var(--accent); stroke-width: 2.6; }
.arr { fill: var(--line); }
.arr-hi { fill: var(--accent); }
.junction { fill: var(--accent); }

.frame { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 18 4 3 4; }
.dg .frame-l { font-size: 10.5px; letter-spacing: 0.12em; fill: var(--ink-2); }

.dim-bg { fill: var(--sheet); }
.dimension .dim, .dimension .ext { stroke: var(--line); stroke-width: 0.8; fill: none; }
.dg .dim-t {
  font-size: 13px; text-anchor: middle; fill: var(--ink);
  paint-order: stroke; stroke: var(--sheet); stroke-width: 7px; stroke-linejoin: round;
}
.dg-m .dim-t { font-size: 11px; }
.dg .annot-t { font-size: 12px; fill: var(--ink-2); }
.dg .row-l { font-size: 12px; letter-spacing: 0.12em; fill: var(--ink-2); }

.pk { fill: var(--accent); stroke: var(--sheet); stroke-width: 1.5; }
.pk-o { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }

/* callout */
.callout {
  position: absolute; z-index: 5; left: 0; top: 0; width: 300px;
  background: var(--sheet); border: 1px solid var(--line);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 12px 14px 14px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.14s, transform 0.14s, visibility 0s linear 0.14s;
  pointer-events: none;
}
.callout.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.14s, transform 0.14s; }
.callout.is-pinned { pointer-events: auto; }
.c-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.c-head::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--ink); flex: none; }
.callout[data-st="drift"] .c-head::before { background: var(--accent); border-color: var(--accent); }
.callout[data-st="proto"] .c-head::before { background: linear-gradient(135deg, transparent 50%, var(--ink) 50%); }
.callout[data-st="ext"] .c-head::before { border-style: dashed; border-color: var(--line-2); }
.c-title { font-weight: 700; font-size: 17px; line-height: 1.25; margin-top: 6px; }
.c-body { font-size: 14.5px; line-height: 1.45; margin-top: 6px; color: var(--ink); }
.c-row { margin-top: 6px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.c-body + .c-row { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--rule); }
.c-row span { color: var(--accent); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; padding-top: 1px; }

.motion-note { display: none; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 12px 6px 0; }
.js .motion-note { display: block; }
.js.no-motion .motion-note { display: none; }

/* parts list + title block */
.sheet-foot { display: grid; gap: 20px; margin-top: 22px; }
.parts-box { min-width: 0; }
.parts-sum {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 2px 12px; cursor: pointer; list-style: none;
  color: var(--ink); background: var(--sheet); border: 1px solid var(--line); padding: 8px 14px;
}
.parts-sum::-webkit-details-marker { display: none; }
.parts-sum::before { content: "+"; color: var(--accent); }
.parts-box[open] > .parts-sum::before { content: "\2212"; }
.parts-sum:hover { border-color: var(--accent); }
.ps-open { display: none; }
.parts-box[open] .ps-open { display: inline; }
.parts-box[open] .ps-closed { display: none; }
.ps-n { color: var(--ink-2); font-family: var(--mono); font-weight: 400; font-size: 12px; }
.parts { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; margin-top: 14px; }
.parts thead { display: none; }
.parts tbody tr {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; row-gap: 3px;
  padding: 10px 6px; border-top: 1px solid var(--rule); cursor: pointer;
}
.parts tbody tr:last-child { border-bottom: 1.5px solid var(--line); }
.parts td, .parts th { padding: 0; text-align: left; vertical-align: top; font-weight: 400; }
.parts .p-pos { grid-row: span 4; font-family: var(--mono); font-size: 12.5px; padding-top: 2px; }
.parts .p-del { font-weight: 650; }
.parts .p-does { color: var(--ink-2); }
.parts .p-tech, .parts .p-meas { font-family: var(--mono); font-size: 12.5px; }
.parts .p-meas:empty { display: none; }
.parts tr.is-hi, .parts tbody tr:hover { background: var(--tint); }
.parts tr.is-hi .p-del { color: var(--accent); }

.tb-stack { display: grid; align-self: end; min-width: 0; }
.revs { width: 100%; border-collapse: collapse; border: 1.5px solid var(--line); border-bottom: 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.4; }
.revs th { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.revs td { padding: 4px 8px; border-top: 1px solid var(--rule); vertical-align: top; }
.revs tr > :first-child { width: 36px; }
.revs tr > :nth-child(-n+2) { border-right: 1px solid var(--line); }
.revs td:nth-child(2) { white-space: nowrap; }
.titleblock { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); align-self: end; }
.titleblock div { padding: 6px 10px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.titleblock div:nth-child(odd):not(.tb-wide) { border-right: 0; }
.titleblock div:nth-child(n+4) { border-bottom: 0; }
.titleblock .tb-wide { grid-column: 1 / -1; border-right: 0; }
.titleblock dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.titleblock dd { margin: 0; font-weight: 650; font-size: 15px; }
.titleblock .tb-wide dd { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }

@media (min-width: 760px) {
  .parts thead { display: table-header-group; }
  .parts thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 6px 10px; border-top: 1.5px solid var(--line); border-bottom: 1px solid var(--line); }
  .parts tbody tr { display: table-row; padding: 0; }
  .parts td, .parts th { padding: 9px 10px; border-top: 1px solid var(--rule); }
  .parts tbody tr:first-child td, .parts tbody tr:first-child th { border-top: 0; }
  .parts tbody tr:last-child td, .parts tbody tr:last-child th { border-bottom: 1.5px solid var(--line); }
  .parts tbody tr:last-child { border-bottom: 0; }
  .parts .p-pos { width: 44px; }
  .parts .p-del { width: 15%; }
  .parts .p-tech { width: 24%; }
  .parts .p-meas { width: 16%; }
  .parts .p-meas:empty { display: table-cell; }
  .tb-stack { justify-self: end; width: 300px; }
}
@media (min-width: 1100px) {
  .sheet-foot { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: end; }
  .sheet-foot:has(.parts-box[open]) { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ replay */
.replay { padding-top: 80px; }
.rp-head { display: grid; gap: 14px; }
.replay h2, .data h2, .other h2, .about h2, .contact h2 { font-size: clamp(1.75rem, 4.2vw, 2.4rem); }
.rp-label {
  justify-self: start; font-size: 14.5px; line-height: 1.5;
  border: 1px solid var(--line); background: var(--sheet); padding: 8px 12px;
}
.rp-label-2 { display: block; color: var(--ink-2); }

.rp-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; align-items: center;
  margin-top: 24px; padding: 12px 0; border-top: 1.5px solid var(--line); border-bottom: 1px solid var(--rule);
}
.rp-clock { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.rp-clock-l { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rp-time { font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-step { position: relative; display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12.5px; padding-bottom: 7px; }
.rp-step-n { color: var(--ink-2); }
.rp-step::before, .rp-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; }
.rp-step::before { right: 0; background: var(--rule); }
.rp-step::after { width: calc(var(--p, 1) * 100%); background: var(--accent); }
.rp-btn {
  grid-column: 1 / -1; justify-self: start;
  color: var(--ink);
  background: var(--sheet); border: 1px solid var(--line); padding: 8px 16px; cursor: pointer;
}
.rp-btn:hover { border-color: var(--accent); color: var(--accent); }
.rp-btn.is-wait { visibility: hidden; }
@media (max-width: 759px) {
  .rp-steps { grid-row: span 2; align-self: center; }
  .rp-btn { grid-column: 1; }
}
@media (min-width: 760px) {
  .rp-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rp-steps { grid-template-columns: 20.7fr 12.9fr; gap: 16px; }
  .rp-btn { grid-column: auto; }
}

.rp-audio { margin: 16px 0 0; }
.rp-col-h { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.rp-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.rp-listen {
  color: var(--ink); background: var(--sheet); border: 1.5px solid var(--line); padding: 8px 16px 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; box-shadow: 4px 4px 0 var(--shadow);
}
.rp-listen::before { content: ""; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--accent); }
.is-audio .rp-listen::before { width: 10px; height: 12px; border-top: 0; border-bottom: 0; border-left: 3.5px solid var(--accent); border-right: 3.5px solid var(--accent); }
.rp-listen:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rp-listen:disabled { color: var(--ink-3); cursor: default; box-shadow: none; }
.is-listening .wave-box { cursor: pointer; border-color: var(--line); }
.rp-k { color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; margin-right: 8px; }
.wave-box { position: relative; height: 44px; border: 1px solid var(--rule); background: var(--sheet); }
.wave { display: block; width: 100%; height: 100%; }
.wave rect { fill: var(--ink-3); }
.wave.is-playing rect { fill: var(--unplayed); }
.wave.is-playing rect.on { fill: var(--accent); }
.playhead { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; background: var(--ink); display: none; }
.is-running .playhead { display: block; }
.ruler { position: relative; height: 18px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.ruler span { position: absolute; top: 0; padding-left: 4px; border-left: 1px solid var(--line-2); line-height: 18px; }
.ruler .r0 { left: 0; }
.ruler .r10 { left: 16.077%; }
.ruler .r20 { left: 32.154%; }
.ruler .r30 { left: 48.232%; }
.ruler .r40 { left: 64.309%; }
.ruler .r50 { left: 80.386%; }
.ruler .r60 { left: 96.463%; }
@media (max-width: 520px) {
  .ruler .r10, .ruler .r30, .ruler .r50 { display: none; }
}
@media (min-width: 900px) {
  .wave-box { height: 56px; }
}

.rp-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--line); }
.rp-tab {
  color: var(--ink-2); background: none;
  border: 1px solid transparent; border-bottom: 0; padding: 9px 16px; margin-bottom: -1px; cursor: pointer;
}
.rp-tab[aria-selected="true"] { color: var(--ink); background: var(--sheet); border-color: var(--line); }
.rp-tab:hover { color: var(--accent); }

.rp-grid { display: grid; gap: 24px; margin-top: 18px; }
@media (max-width: 899px) {
  .rp-tabbed .rp-grid { margin-top: 0; }
  .rp-tabbed .rp-col.is-off { display: none; }
  .rp-tabbed .rp-col-h { margin-top: 12px; }
}
@media (min-width: 900px) {
  .rp-tabs { display: none; }
  .rp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: start; }
}

.tr-text { margin: 0; font-size: 15px; line-height: 1.65; background: var(--sheet); border: 1px solid var(--rule); padding: 14px 16px; }
.seg.just { background: var(--mark); }
mark.miss { background: transparent; color: inherit; text-decoration: underline wavy var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.fix {
  display: inline-block; margin-left: 5px; padding: 0 5px; font-family: var(--mono); font-size: 12px; line-height: 1.45;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; white-space: nowrap; vertical-align: 1px;
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rp-note { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }

.ticket { margin: 0; background: var(--sheet); border: 1.5px solid var(--line); }
.tk-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.tk-row:first-child { border-top: 0; }
.ticket dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.ticket dd { margin: 0; font-size: 16px; line-height: 1.45; }
.tk-kund dd, .tk-prioritet dd { font-weight: 650; }
.tk-flag {
  display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.03em;
  background: var(--accent); color: var(--on-accent); padding: 1px 6px; vertical-align: 2px;
}
@media (min-width: 480px) {
  .tk-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px 16px; }
}

.raw { margin-top: 10px; }
.raw summary { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); cursor: pointer; padding: 4px 0; }
.raw summary:hover { color: var(--accent); }
.raw summary::-webkit-details-marker { display: none; }
.raw summary::before { content: "+ "; color: var(--accent); }
.raw[open] summary::before { content: "\2212 "; }
.raw[open] .json { margin-top: 8px; }
.json {
  margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--sheet); border: 1px solid var(--rule); padding: 12px 16px; color: var(--ink);
}
.json .jl { display: block; padding-left: 4ch; text-indent: -2ch; }
.json .jb { padding-left: 0; text-indent: 0; }
.json .j-k { color: var(--ink-2); }
.json mark.miss { text-underline-offset: 3px; }
.rp-foot { margin-top: 20px; font-size: 14px; color: var(--ink-2); }

.rp-armed .seg { opacity: 0; }
.rp-armed .seg.on { opacity: 1; }
.rp-armed [data-late] { visibility: hidden; }
.rp-armed [data-late].on { visibility: visible; }

/* ------------------------------------------------------------ data, other, about, contact */
.data { padding-top: 80px; }
.data-text {
  margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--line);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.005em; max-width: 46ch;
}

.other { padding-top: 80px; }
.other-grid {
  display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--line);
  font-size: 16.5px; color: var(--ink-2); max-width: 820px;
}
.other-grid strong { color: var(--ink); font-weight: 650; }
.other-grid a { color: var(--ink); font-weight: 600; }
.other-grid a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .other-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px; max-width: none; }
}

.about { padding-top: 80px; display: grid; gap: 20px; }
.portrait { width: 132px; height: 132px; display: block; border: 1px solid var(--line); filter: grayscale(0.2); }
.about-text { display: grid; gap: 12px; max-width: 50ch; }
.about-text h2 { margin-bottom: 2px; }
.about blockquote { margin: 4px 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--accent); font-size: 18px; line-height: 1.45; font-weight: 500; letter-spacing: -0.005em; }
.about-meta { font-size: 14.5px; color: var(--ink-2); }
.arrow-link { font-weight: 600; }
.arrow-link::after { content: " \2192"; }
@media (min-width: 760px) {
  .about { grid-template-columns: 180px minmax(0, 1fr); gap: 44px; align-items: start; }
  .portrait { width: 180px; height: 180px; }
}


.contact { padding-top: 80px; padding-bottom: 64px; }
.contact-lead { font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.35; max-width: 34ch; margin-top: 14px; font-weight: 500; letter-spacing: -0.01em; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.c-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.contact-list a { display: block; padding: 6px 0; font-size: clamp(1.375rem, 3.2vw, 1.75rem); font-weight: 650; letter-spacing: -0.015em; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

@media (min-width: 700px) {
  .wrap, .sheet-wrap.wrap { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .sheet-wrap.wrap { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
