/* ==========================================================================
   Toneroffice GmbH: „Druckauftrag“
   Process CMYK on paper white. The page behaves like a print job: a print
   dialog for navigation, a sheet feeding out of the printer, a paper stack,
   a duplex sheet, a spooler queue and a printer status display.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/redhat-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/redhat-display-latin.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: 'Red Hat Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/redhat-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/redhat-text-latin.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;
}

/* ---------- Tokens ---------- */
:root {
  /* Process colours. Yellow is a fill only; cyan text uses the deeper --cyan-ink. */
  --cyan: #0093c9;
  --cyan-ink: #00739e;
  --magenta: #c8006a;
  --magenta-deep: #a10056;
  --yellow: #ffd400;
  --key: #141414;
  --paper: #fafaf7;
  --sheet: #ffffff;
  --board: #efefe9;
  --tray: #dcdcd5;
  --grey: #6b6f76;
  --ink-soft: #3a3d42;
  --line: rgb(20 20 20 / 0.14);
  --line-strong: rgb(20 20 20 / 0.32);
  --lcd: #b9c49c;
  --lcd-ink: #1c2614;
  --panel: #2a2c30;

  --font-display: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Red Hat Text', 'Segoe UI', system-ui, sans-serif;
  --font-lcd: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
  --space-section: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sheet: 0 1px 1px rgb(20 20 20 / 0.06), 0 14px 32px -18px rgb(20 20 20 / 0.45);
  --header-h: 84px;
  --crop-gap: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--key);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  hyphens: auto;
}
h1, h2 { hyphens: manual; }
p, li, dd { text-wrap: pretty; }
a { color: var(--cyan-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.stack-tabs[hidden], .stack-controls[hidden], .duplex-switch[hidden], .job-add[hidden], .job[hidden] { display: none; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nobr { white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--key);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: #fff; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.link-button:hover { color: var(--magenta); text-decoration-thickness: 2px; }

/* Crop marks sit just outside the trim edge of any printed "sheet". */
.cropmarks { position: relative; }
.cropmarks::before {
  --mark: calc(var(--crop-gap) - 4px);
  content: '';
  position: absolute;
  inset: calc(var(--crop-gap) * -1);
  pointer-events: none;
  background:
    linear-gradient(var(--key), var(--key)) 0 var(--crop-gap) / var(--mark) 1px no-repeat,
    linear-gradient(var(--key), var(--key)) var(--crop-gap) 0 / 1px var(--mark) no-repeat,
    linear-gradient(var(--key), var(--key)) 100% var(--crop-gap) / var(--mark) 1px no-repeat,
    linear-gradient(var(--key), var(--key)) calc(100% - var(--crop-gap)) 0 / 1px var(--mark) no-repeat,
    linear-gradient(var(--key), var(--key)) 0 calc(100% - var(--crop-gap)) / var(--mark) 1px no-repeat,
    linear-gradient(var(--key), var(--key)) var(--crop-gap) 100% / 1px var(--mark) no-repeat,
    linear-gradient(var(--key), var(--key)) 100% calc(100% - var(--crop-gap)) / var(--mark) 1px no-repeat,
    linear-gradient(var(--key), var(--key)) calc(100% - var(--crop-gap)) 100% / 1px var(--mark) no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: var(--magenta-deep); color: #fff; }
.btn-outline { border-color: var(--key); color: var(--key); background: transparent; }
.btn-outline:hover { background: var(--key); color: #fff; }

/* ==========================================================================
   Header: the printer itself. Casing with an embossed name, cartridge
   windows, one control cluster (LCD, panel keys, PRINT key) and the paper
   slot along its lower edge.
   ========================================================================== */
.printer-head {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-bottom: 16px;
  background: linear-gradient(#34363a, #1c1d20 62%, #141517);
  color: #ecece7;
  border-bottom-left-radius: clamp(12px, 2.4vw, 28px);
  border-bottom-right-radius: clamp(12px, 2.4vw, 28px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 10px 22px -12px rgb(20 20 20 / 0.6);
}
.printer-head.is-scrolled { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 14px 30px -14px rgb(20 20 20 / 0.75); }
.casing {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  height: calc(var(--header-h) - 16px);
  margin-inline: auto;
}
.casing-slot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 7px;
  height: 7px;
  border-radius: 4px;
  background: #050505;
  box-shadow: inset 0 3px 4px rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.1);
}

/* Name embossed into the casing */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #a9abb0;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 0.8), 0 1px 0 rgb(255 255 255 / 0.14);
}
.brand-word span { font-weight: 500; }

/* Cartridge-level windows: fill as the page "prints" */
.toner-gauge { display: flex; gap: 5px; flex: none; }
.gauge-bar {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-family: var(--font-lcd);
  font-size: 0.625rem;
  font-weight: 700;
  color: #8e9096;
}
.gauge-bar b {
  position: relative;
  width: 9px;
  height: 26px;
  border-radius: 2px;
  background: #0b0b0c;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.1);
  overflow: hidden;
}
.gauge-bar i {
  position: absolute;
  inset: auto 1px 1px;
  height: calc(var(--fill, 0) * (100% - 2px));
  border-radius: 1px;
  background: var(--ink);
}
.gauge-bar.is-c { --ink: var(--cyan); }
.gauge-bar.is-m { --ink: var(--magenta); }
.gauge-bar.is-y { --ink: var(--yellow); }
.gauge-bar.is-k { --ink: #e8e8e3; }

/* One recessed control cluster carries the LCD, the keys and the PRINT key. */
.control-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  padding: 6px 6px 6px 8px;
  border: 1px solid #3c3e43;
  border-radius: 999px 14px 14px 999px;
  background: #1a1b1e;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.7), 0 1px 0 rgb(255 255 255 / 0.08);
}
.head-lcd {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 132px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px 5px 5px 999px;
  background: var(--lcd);
  color: var(--lcd-ink);
  font-family: var(--font-lcd);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.35);
}
.head-lcd-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lcd-ink); }

.settings-list { list-style: none; padding: 0; }
.settings-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.key-led {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b5d63;
  transition: background-color 0.18s, box-shadow 0.18s;
}
.settings-list a[aria-current] .key-led { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }

/* PRINT key: a big round illuminated button set into the cluster */
.print-key {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  padding-inline-start: 4px;
  color: #fff;
  text-decoration: none;
}
.print-cap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #e0328c, var(--magenta) 55%, #8e004b);
  box-shadow: 0 0 0 3px #0c0c0d, 0 0 0 5px #3c3e43, 0 0 16px rgb(200 0 106 / 0.55);
  transition: box-shadow 0.2s, transform 0.12s;
}
.print-cap svg { width: 22px; height: 22px; }
.print-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 7.8em;
  overflow-wrap: normal;
  padding-inline-end: 6px;
}
.print-key:hover { color: #fff; }
.print-key:hover .print-cap { box-shadow: 0 0 0 3px #0c0c0d, 0 0 0 5px #5b5d63, 0 0 26px rgb(255 60 160 / 0.85); }
.print-key:active .print-cap { transform: translateY(1px) scale(0.97); }
.print-key:focus-visible, .settings-toggle:focus-visible, .brand:focus-visible { outline-color: var(--yellow); }

/* Panel key that opens the menu on small casings */
.settings-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(#4a4c52, #34363a);
  color: #f2f2ee;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 0 #0b0b0c, inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.settings-toggle:hover { background: linear-gradient(#55575d, #3d3f44); }
.settings-toggle:active { transform: translateY(1px); box-shadow: 0 1px 0 #0b0b0c; }
.settings-toggle-icon,
.settings-toggle-icon::before,
.settings-toggle-icon::after {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.settings-toggle-icon { position: relative; }
.settings-toggle-icon::before,
.settings-toggle-icon::after { content: ''; position: absolute; left: 0; }
.settings-toggle-icon::before { top: -5px; }
.settings-toggle-icon::after { top: 5px; }
.settings-toggle[aria-expanded="true"] .settings-toggle-icon { background: transparent; }
.settings-toggle[aria-expanded="true"] .settings-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.settings-toggle[aria-expanded="true"] .settings-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Desktop: the sections are physical panel keys */
@media (min-width: 1040px) {
  .settings-list { display: flex; gap: 6px; }
  .settings-list a {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: linear-gradient(#4a4c52, #34363a);
    color: #f2f2ee;
    font-size: 0.875rem;
    box-shadow: 0 2px 0 #0b0b0c, inset 0 1px 0 rgb(255 255 255 / 0.12);
    transition: background-color 0.18s, transform 0.1s;
  }
  .settings-list a:hover { color: #fff; background: linear-gradient(#55575d, #3d3f44); }
  .settings-list a:active { transform: translateY(1px); box-shadow: 0 1px 0 #0b0b0c; }
  .settings-list a:focus-visible { outline-color: var(--yellow); }
}

@media (max-width: 1199.98px) and (min-width: 1040px) {
  .brand-word { display: none; }
}

/* Small casings: logo, LCD, PRINT key and the „Menü“ key; the keys fold into a panel. */
@media (max-width: 1039.98px) {
  :root { --header-h: 72px; }
  .settings-toggle { display: inline-flex; }
  .print-settings {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 10px 20px 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--key);
    box-shadow: 0 24px 40px -20px rgb(20 20 20 / 0.6), 0 0 0 1px var(--line);
    max-height: calc(100vh - var(--header-h) - 12px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .print-settings.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .settings-list li + li { border-top: 1px solid var(--line); }
  .settings-list a { min-height: 54px; color: var(--key); font-size: 1.125rem; }
  .settings-list a:hover { color: var(--magenta); }
  .key-led { width: 9px; height: 9px; background: #d4d5d0; }
  /* The label stays the link's accessible name, only the cap is shown. */
  .print-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .control-cluster { padding: 4px 4px 4px 6px; gap: 8px; }
}
@media (max-width: 760px) {
  .toner-gauge { display: none; }
}
@media (max-width: 480px) {
  .brand-word { display: none; }
  .head-lcd { min-width: 0; padding: 0 9px; font-size: 0.6875rem; letter-spacing: 0.04em; }
  .print-cap { width: 42px; height: 42px; }
}
@media (max-width: 359.98px) {
  .settings-toggle-icon { display: none; }
}

/* ==========================================================================
   Section scaffolding: every section carries a printed folio line
   ========================================================================== */
.folio {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.folio::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.folio-no {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--key);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.section-intro { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 800; }
.section-intro p { margin-top: 14px; color: var(--ink-soft); font-size: 1.125rem; }

/* ==========================================================================
   Hero: printer slot, feeding sheet, output tray
   ========================================================================== */
.press { padding-bottom: clamp(16px, 3vw, 40px); overflow: hidden; }
/* The sheet is clipped at the slot so it looks as if it is being fed out. */
.press-throat {
  position: relative;
  padding-inline: var(--gutter);
  clip-path: inset(0 -60px -80px -60px);
  z-index: 1;
}
.press-sheet {
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px) clamp(30px, 5vw, 56px);
  background:
    linear-gradient(rgb(20 20 20 / 0.14), rgb(20 20 20 / 0) 28px),
    var(--sheet);
  box-shadow: var(--shadow-sheet);
}
.sheet-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 3vw, 28px);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--grey);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.press-title {
  font-size: clamp(2.05rem, 5.6vw, 4.1rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.print-line { display: block; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.print-line:nth-child(2) { color: var(--magenta); }
.press-lead {
  max-width: 62ch;
  margin-top: clamp(18px, 3vw, 28px);
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}
.press-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vw, 34px); }

/* Output tray with the test page lying on it */
.press-tray {
  position: relative;
  width: min(1000px, 100% - 2 * var(--gutter));
  margin: clamp(44px, 6vw, 72px) auto 0;
  padding: 0 clamp(8px, 4vw, 64px) clamp(26px, 4vw, 40px);
}
.press-tray::before {
  content: '';
  position: absolute;
  inset: 34% 0 0;
  background: linear-gradient(#e9e9e3, var(--tray));
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  border-radius: 0 0 10px 10px;
}
.press-tray::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  border-radius: 0 0 10px 10px;
  background: #c4c4bc;
}
.testpage {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 28px);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  transform: rotate(-1.2deg);
}
.testpage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--key);
}
.testpage-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
}
.testpage-address { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; }
.testpage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(14px, 2.4vw, 24px);
  align-items: center;
  margin-top: 16px;
}
.testpage-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.tp { aspect-ratio: 1; background: var(--tone); }
.tp.is-c { --base: var(--cyan); }
.tp.is-m { --base: var(--magenta); }
.tp.is-y { --base: var(--yellow); }
.tp.is-k { --base: var(--key); }
.tp.is-100 { --tone: var(--base); }
.tp.is-75 { --tone: color-mix(in srgb, var(--base) 75%, #fff); }
.tp.is-50 { --tone: color-mix(in srgb, var(--base) 50%, #fff); }
.tp.is-25 { --tone: color-mix(in srgb, var(--base) 25%, #fff); }
.testpage-grid { width: 100%; height: auto; }
.testpage-specs { font-size: 0.8125rem; line-height: 1.35; }
.testpage-specs div + div { margin-top: 8px; }
.testpage-specs dt { color: var(--grey); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.testpage-specs dd { font-weight: 600; }
@media (max-width: 599.98px) {
  .testpage-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .testpage-specs { grid-column: 1 / -1; display: grid; gap: 4px; }
  .testpage-specs div { display: flex; align-items: baseline; gap: 10px; }
  .testpage-specs div + div { margin-top: 0; }
  .testpage-specs dt { flex: none; min-width: 92px; white-space: nowrap; }
}
.reg-mark { position: absolute; left: 50%; width: 22px; height: 22px; margin-left: -11px; }
.reg-mark.is-top { top: -34px; }
.reg-mark.is-bottom { bottom: -34px; }

/* Feed animation: the sheet slides out, then each line "prints" in raster steps. */
@media (prefers-reduced-motion: no-preference) {
  .press-sheet { animation: sheet-feed 1.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .print-line { animation: print-line 0.5s steps(7, end) both; }
  .print-line:nth-child(1) { animation-delay: 0.45s; }
  .print-line:nth-child(2) { animation-delay: 0.9s; }
  .print-line:nth-child(3) { animation-delay: 1.35s; }
  .press-lead, .press-actions { animation: ink-dry 0.6s ease-out 1.75s both; }
  .head-lcd-dot { animation: led 1.4s ease-in-out 3; }
}
@keyframes sheet-feed { from { transform: translateY(-62%); } to { transform: none; } }
@keyframes print-line { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ink-dry { from { opacity: 0; } to { opacity: 1; } }
@keyframes led { 50% { opacity: 0.3; } }

/* ==========================================================================
   Range: paper stack
   ========================================================================== */
.stack-section { padding-block: var(--space-section); overflow-x: clip; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.stack-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.stack-tab-no {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--grey);
}
.stack-tab:hover { border-color: var(--key); }
.stack-tab[aria-selected="true"] { background: var(--key); border-color: var(--key); color: #fff; }
.stack-tab[aria-selected="true"] .stack-tab-no { color: var(--yellow); }

.stack-pile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.sheet {
  padding: clamp(24px, 4vw, 44px);
  background: var(--sheet);
  border: 1px solid #e4e4de;
  box-shadow: var(--shadow-sheet);
}
.sheet-no {
  color: var(--grey);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sheet-art { width: min(260px, 70%); height: auto; margin: 18px 0 20px; }
.sheet h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
.sheet > p:not(.sheet-no) { margin-top: 10px; color: var(--ink-soft); max-width: 56ch; }
.sheet-list { margin-top: 18px; padding: 0; list-style: none; }
.sheet-list li { position: relative; padding: 9px 0 9px 26px; border-top: 1px dashed var(--line-strong); }
.sheet-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 12px;
  height: 12px;
  background: linear-gradient(90deg, var(--cyan) 33%, var(--magenta) 33% 66%, var(--yellow) 66%);
}

/* With JS: the sheets lie on one pile, fanned by depth. */
.js .stack-pile { gap: 0; padding: 10px 26px 44px 10px; }
.js .sheet {
  grid-area: 1 / 1;
  transform-origin: 50% 60%;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.3s;
}
.js .sheet > * { transition: opacity 0.25s; }
.js .sheet:not(.is-top) > *,
.js .sheet:not(.is-top)::before { opacity: 0; }
.js .sheet.is-top { z-index: 6; cursor: pointer; }
.js .sheet[data-depth="1"] { z-index: 5; transform: translate(12px, 10px) rotate(1.8deg); }
.js .sheet[data-depth="2"] { z-index: 4; transform: translate(-6px, 18px) rotate(-2.2deg); }
.js .sheet[data-depth="3"] { z-index: 3; transform: translate(18px, 26px) rotate(3.2deg); }
.js .sheet[data-depth="4"] { z-index: 2; transform: translate(4px, 32px) rotate(-1deg); }

.stack-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.stack-count { min-width: 9em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stack-step {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--key);
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.18s, color 0.18s;
}
.stack-step svg { width: 20px; height: 20px; }
.stack-step:hover { background: var(--key); color: #fff; }

@media (min-width: 900px) {
  .stack { grid-template-columns: 250px minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .stack-tabs { flex-direction: column; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 24px); }
  .stack-tab { width: 100%; }
  .stack-pile, .stack-controls { grid-column: 2; }
  .sheet { min-height: 520px; }
}

/* ==========================================================================
   Service: duplex sheet
   ========================================================================== */
.duplex-section { padding-block: var(--space-section); background: var(--board); }
.duplex { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.duplex-switch {
  display: flex;
  flex-wrap: wrap;
  justify-self: start;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
}
.duplex-option {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 56px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  transition: background-color 0.18s, color 0.18s;
}
.duplex-side { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.duplex-option:hover { background: var(--board); }
.duplex-option[aria-selected="true"] { background: var(--key); color: #fff; }
.duplex-option[aria-selected="true"] .duplex-side { color: #d6d7d9; }

.duplex-sheet { display: grid; gap: 24px; }
.duplex-face {
  position: relative;
  padding: clamp(26px, 4.5vw, 56px);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
}
.duplex-face::after {
  /* Side marker printed in the corner, like a duplex test sheet. */
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}
.duplex-face.is-front::after { content: 'A'; background: var(--cyan); color: var(--key); }
.duplex-face.is-back::after { content: 'B'; background: var(--yellow); color: var(--key); }
.duplex-face h3 { max-width: calc(100% - 60px); font-size: clamp(1.3rem, 2.8vw, 2.1rem); font-weight: 800; hyphens: manual; }
.face-list { display: grid; gap: 4px 40px; margin-top: 26px; padding: 0; list-style: none; counter-reset: face; }
.face-list li { counter-increment: face; position: relative; padding: 16px 0 16px 58px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.face-list li::before {
  content: counter(face, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--magenta);
}
.face-list strong { display: block; color: var(--key); font-family: var(--font-display); font-size: 1.125rem; }

@media (min-width: 760px) {
  .face-list { grid-template-columns: 1fr 1fr; }
  .duplex-sheet { grid-template-columns: 1fr 1fr; }
}

/* With JS: one physical sheet that turns over. */
.js .duplex { perspective: 1800px; }
.js .duplex-sheet {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.js .duplex-sheet.is-flipped { transform: rotateY(180deg); }
.js .duplex-face { grid-area: 1 / 1; backface-visibility: hidden; }
.js .duplex-face.is-back { transform: rotateY(180deg); background: #fffef6; }

/* ==========================================================================
   Take-back: circular loop
   ========================================================================== */
.loop-section { padding-block: var(--space-section); }
.loop { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.loop-figure { position: relative; width: min(440px, 100%); margin-inline: auto; }
.loop-ring { width: 100%; height: auto; }
.loop-ring text { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.loop-node circle { transition: r 0.2s; }
.loop-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 850;
  line-height: 1.05;
}
.loop-core span { font-size: 0.6em; font-weight: 600; color: var(--grey); }
.loop-steps { padding: 0; list-style: none; }
.loop-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.loop-step:last-child { border-bottom: 1px solid var(--line); }
.loop-no {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--key);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  transition: transform 0.2s;
}
.loop-step.is-1 .loop-no { background: var(--cyan); }
.loop-step.is-2 .loop-no { background: var(--magenta); color: #fff; }
.loop-step.is-3 .loop-no { background: var(--yellow); }
.loop-step.is-4 .loop-no { background: var(--key); color: #fff; }
.loop-step.is-5 .loop-no { background: var(--paper); }
.loop-step strong { font-family: var(--font-display); font-size: 1.1875rem; }
.loop-text { color: var(--ink-soft); }
.loop-step:hover .loop-no { transform: scale(1.12); }
.loop:has(.loop-step.is-1:hover) .loop-node.is-1 circle,
.loop:has(.loop-step.is-2:hover) .loop-node.is-2 circle,
.loop:has(.loop-step.is-3:hover) .loop-node.is-3 circle,
.loop:has(.loop-step.is-4:hover) .loop-node.is-4 circle,
.loop:has(.loop-step.is-5:hover) .loop-node.is-5 circle { r: 28px; }
.loop-note {
  max-width: 760px;
  margin-top: clamp(32px, 5vw, 48px);
  padding: 16px 20px;
  border-left: 6px solid var(--yellow);
  background: #fff;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .loop { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* ==========================================================================
   Cartridge finder: spooler queue form
   ========================================================================== */
.spool-section { padding-block: var(--space-section); background: var(--board); }
.spooler {
  border: 1.5px solid var(--key);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 50px -36px rgb(20 20 20 / 0.6);
}
.spool-titlebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 18px;
  background: var(--key);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}
.spool-dots { display: flex; gap: 6px; }
.spool-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); }
.spool-dots i:nth-child(2) { background: var(--magenta); }
.spool-dots i:nth-child(3) { background: var(--yellow); }
.spool-title { font-family: var(--font-display); font-weight: 700; }
.spool-count {
  margin-inline-start: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--key);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.spool-form { padding-bottom: clamp(18px, 3vw, 28px); }
.form-required-note { padding: 14px clamp(16px, 3vw, 28px) 4px; color: var(--grey); font-size: 0.875rem; }

.job {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 16px clamp(16px, 3vw, 28px);
  border: 0;
  border-bottom: 1px dashed var(--line-strong);
}
.job-title {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 800;
}
.job-optional { font-family: var(--font-text); font-weight: 400; color: var(--grey); font-size: 0.875rem; }
.job.is-ready .job-title { color: var(--magenta); }
.job-row {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 12px 14px;
  align-items: start;
}
.job-row .field:nth-child(-n + 2) { grid-column: 1 / -1; }
.job-status {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--grey);
  font-size: 0.875rem;
  font-weight: 700;
}
.job.is-ready .job-status { border: 1.5px solid var(--key); background: var(--yellow); color: var(--key); }
.job-remove {
  margin-top: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan-ink);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.job-remove:hover { color: var(--magenta); }
.job-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 14px clamp(16px, 3vw, 28px) 0;
  padding: 0 18px;
  border: 1.5px dashed var(--key);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
}
.job-add { white-space: nowrap; }
.job-add-plus { font-size: 1.25rem; line-height: 1; }
@media (max-width: 419.98px) {
  .job-add-more { display: none; }
}
.job-add:hover { background: var(--board); }

@media (min-width: 1000px) {
  .job { padding-left: 190px; min-height: 108px; }
  .job-title { position: absolute; left: 28px; top: 20px; float: none; width: 150px; }
  .job-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) max-content 80px 96px; }
  .job-row .field:nth-child(-n + 2) { grid-column: auto; }
  .job-status { grid-column: auto; justify-self: stretch; margin-top: 29px; text-align: center; }
  .job-remove { position: absolute; left: 28px; bottom: 6px; }
}

.field { display: grid; gap: 5px; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 700; }
.req { color: var(--magenta); }
.optional { color: var(--grey); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--key); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--key);
  box-shadow: 0 0 0 3px rgb(200 0 106 / 0.35);
}
.field [aria-invalid="true"] { border-color: var(--magenta); background: #fff6fa; }
.field-hint { color: var(--grey); font-size: 0.8125rem; }
.field-error { color: var(--magenta-deep); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }

.sender {
  display: grid;
  gap: 16px;
  margin: 22px clamp(16px, 3vw, 28px) 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 2px solid var(--key);
}
.sender-title { float: left; width: 100%; padding: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.field-choice { margin: 0; padding: 0; border: 0; }
.field-choice legend { margin-bottom: 6px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.choice:hover { border-color: var(--key); }
.choice:has(input:checked) { border-color: var(--key); background: var(--board); }
.choice input { width: 18px; height: 18px; accent-color: var(--magenta); }
.field-choice[aria-invalid="true"] .choice { border-color: var(--magenta); }

@media (min-width: 720px) {
  .sender { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .sender-title, .field-choice, .field-wide { grid-column: 1 / -1; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spool-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 24px clamp(16px, 3vw, 28px) 0;
}
.form-note { max-width: 52ch; color: var(--grey); font-size: 0.9375rem; }
.form-status { margin: 16px clamp(16px, 3vw, 28px) 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 16px; border-left: 6px solid var(--cyan); background: #eef8fc; }
.form-status.is-error { padding: 14px 16px; border-left: 6px solid var(--magenta); background: #fff1f7; }

.direct-line {
  display: grid;
  gap: 6px;
  max-width: 720px;
  margin-top: 28px;
}
.direct-line h3 { font-size: 1.25rem; font-weight: 800; }
.direct-line p { color: var(--ink-soft); }

/* ==========================================================================
   FAQ: printer status display + printed status report
   ========================================================================== */
.status-section { padding-block: var(--space-section); }
.status-section .wrap { display: grid; gap: 40px; }
.status-section .folio, .status-section .section-intro { margin-bottom: 0; }
.panel { align-self: start; }
.panel-face {
  padding: clamp(18px, 3vw, 26px);
  border-radius: 22px;
  background: linear-gradient(160deg, #3a3c41, var(--panel) 60%);
  box-shadow: 0 30px 50px -30px rgb(20 20 20 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.lcd {
  padding: 14px 16px 18px;
  border-radius: 8px;
  background-color: var(--lcd);
  color: var(--lcd-ink);
  font-family: var(--font-lcd);
  box-shadow: inset 0 3px 8px rgb(0 0 0 / 0.35);
}
.lcd:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.lcd-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(28 38 20 / 0.35);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lcd-screen { min-height: 15em; padding-top: 12px; }
.lcd-q { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.lcd-a { margin-top: 10px; font-size: 0.9375rem; line-height: 1.5; }
.panel-keys { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.panel-key {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(#f2f2ee, #c9cac5);
  color: var(--key);
  box-shadow: 0 4px 0 #111, 0 6px 12px rgb(0 0 0 / 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}
.panel-key svg { width: 20px; height: 20px; }
.panel-key:hover { background: linear-gradient(#fff, #d8d9d4); }
.panel-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #111, 0 2px 6px rgb(0 0 0 / 0.4); }
.panel-key:focus-visible { outline-color: var(--yellow); }

.report {
  margin-inline: var(--crop-gap);
  padding: clamp(22px, 4vw, 40px);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--key);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.report-head span:last-child { color: var(--grey); }
.report-list { counter-reset: report; }
.report-item { counter-increment: report; position: relative; padding: 18px 0 18px 46px; border-bottom: 1px dashed var(--line-strong); }
.report-item::before {
  content: counter(report, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--cyan-ink);
}
.report-item.is-shown::before { color: var(--magenta); }
.report-item dt { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.report-item dd { margin-top: 6px; color: var(--ink-soft); }

@media (min-width: 980px) {
  .report { margin-inline: 0; }
  .status-section .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: clamp(40px, 5vw, 72px); }
  .status-section .folio, .status-section .section-intro { grid-column: 1 / -1; }
  .panel { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* ==========================================================================
   Footer: colour control strip + crop-marked frame
   ========================================================================== */
.site-footer { padding-bottom: 48px; background: var(--paper); }
.control-strip { display: flex; height: 16px; }
.cs { flex: 1; background: var(--tone); }
.cs.is-c { --tone: var(--cyan); }
.cs.is-m { --tone: var(--magenta); }
.cs.is-y { --tone: var(--yellow); }
.cs.is-k { --tone: var(--key); }
.cs.is-50 { background: color-mix(in srgb, var(--tone) 50%, #fff); }
.cs.is-25 { background: color-mix(in srgb, var(--tone) 25%, #fff); }
.cs.is-paper { --tone: var(--sheet); }
.cs.is-cm { --tone: #3b2f8f; }
.cs.is-my { --tone: #e2231a; }
.cs.is-cy { --tone: #00a651; }
.footer-frame {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(920px, 100% - 2 * var(--gutter) - 2 * var(--crop-gap));
  margin: 56px auto 0;
  padding: clamp(26px, 4vw, 40px) clamp(18px, 4vw, 40px);
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.footer-firm { font-size: 1.0625rem; }
.footer-firm strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.footer-contact a { font-weight: 600; }
.footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; padding: 0; list-style: none; }
.footer-links a, .footer-links .link-button { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; }
.footer-legal { color: var(--grey); font-size: 0.875rem; }

/* ==========================================================================
   Legal pages: a single printed document
   ========================================================================== */
.doc { padding: clamp(40px, 6vw, 80px) 0 var(--space-section); }
.doc-head { width: min(860px, 100% - 2 * var(--gutter)); margin: 0 auto 28px; }
.doc-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 850; }
.doc-kicker { margin-bottom: 12px; color: var(--grey); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-sheet {
  width: min(860px, 100% - 2 * var(--gutter) - 2 * var(--crop-gap));
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
}
.prose { hyphens: auto; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 40px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; }
.prose h3 { margin-top: 26px; font-size: 1.15rem; font-weight: 800; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose .lead { font-size: 1.1875rem; color: var(--ink-soft); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.prose dt { font-weight: 700; }
.prose code { font-size: 0.9em; padding: 1px 5px; border-radius: 3px; background: var(--board); }
.highlight { padding: 18px 20px; border: 2px solid var(--key); background: #fff; }
.highlight > * + * { margin-top: 8px; }
.toc { padding: 18px 22px; border: 1px solid var(--line); background: var(--paper); }
.toc h2 { margin: 0 0 8px; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.toc ol { columns: 2 240px; column-gap: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.table-wrap th, .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--board); }

/* Narrow screens: each cookie-table row becomes a stacked block of "label / value" pairs. */
@media (max-width: 899px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap tr { border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 4px 12px; border-bottom: 0; overflow-wrap: break-word; }
  .table-wrap td:first-child { padding-top: 12px; }
  .table-wrap td:last-child { padding-bottom: 12px; }
  .table-wrap td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
}
.form-sample { padding: 20px 22px; border: 1.5px dashed var(--key); background: var(--paper); }
.form-sample ul { list-style: '– '; }

@media (max-width: 560px) {
  .doc-sheet { width: min(860px, 100% - 2 * var(--gutter)); padding: 22px 16px; }
  .highlight, .toc, .form-sample { padding: 12px; }
  .prose ul, .prose ol { padding-left: 1.1em; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd + dt { margin-top: 10px; }
}

/* ---------- 404 ---------- */
.jam { padding: clamp(48px, 8vw, 110px) 0 var(--space-section); }
.jam-sheet {
  width: min(720px, 100% - 2 * var(--gutter) - 2 * var(--crop-gap));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  transform: rotate(-1deg);
}
.jam-code { font-family: var(--font-lcd); font-weight: 700; color: var(--magenta); }
.jam-sheet h1 { margin: 10px 0 14px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 850; }
.jam-sheet p + p { margin-top: 12px; }
.jam-sheet .press-actions { margin-top: 26px; }

/* ==========================================================================
   Cookie consent (banner + dialog) in the print-dialog look
   ========================================================================== */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 780px;
  margin-inline: auto;
  padding: 26px clamp(18px, 3vw, 28px) clamp(18px, 3vw, 24px);
  border: 1.5px solid var(--key);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 30px 60px -30px rgb(20 20 20 / 0.7);
  overflow: hidden;
}
.consent::before,
.consent-dialog-inner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan) 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--key) 75%);
}
.consent-title { font-size: 1.25rem; font-weight: 800; }
.consent-text { margin-top: 8px; color: var(--ink-soft); font-size: 0.9375rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.consent-btn {
  flex: 1 1 160px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--key);
  border-radius: var(--radius);
  background: var(--key);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background-color 0.18s, border-color 0.18s;
}
.consent-btn:hover { background: var(--magenta); border-color: var(--magenta); }
.consent-link {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--cyan-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.consent-link:hover { color: var(--magenta); }
.consent-dialog {
  width: min(700px, 100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1.5px solid var(--key);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--key);
}
.consent-dialog::backdrop { background: rgb(20 20 20 / 0.6); }
.consent-dialog-inner { position: relative; padding: 30px clamp(20px, 4vw, 32px) clamp(20px, 4vw, 28px); }
.consent-categories { margin-top: 18px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.consent-category { padding-block: 14px; border-bottom: 1px solid var(--line); }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-category h3 { font-size: 1.0625rem; font-weight: 800; }
.consent-category p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9063rem; }
.consent-always { font-size: 0.8125rem; font-weight: 700; color: var(--cyan-ink); white-space: nowrap; }
.consent-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 50px;
  height: 28px;
  border: 1.5px solid var(--key);
  border-radius: 999px;
  background: var(--board);
  transition: background-color 0.18s;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--key);
  transition: transform 0.18s, background-color 0.18s;
}
.consent-switch input:checked + .consent-switch-track { background: var(--magenta); border-color: var(--magenta); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(22px); background: #fff; }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--magenta); outline-offset: 3px; }
.consent-btn-save { background: var(--magenta); border-color: var(--magenta); }
.consent-btn-save:hover { background: var(--magenta-deep); border-color: var(--magenta-deep); }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .printer-head, .consent, .consent-dialog, .panel, .stack-controls, .stack-tabs, .duplex-switch, .spool-section, .control-strip, .skip-link { display: none; }
  body { background: #fff; }
  .js .sheet, .js .duplex-face { position: static; transform: none; grid-area: auto; }
  .js .sheet > * { opacity: 1; }
}
