/* Concept X: one stylesheet for the pages.
   index.html         one pinned stage, a process rail, a part-size check
   capabilities.html  the data sheet: a process filter, the sheet, a scale drawing
   about.html         the company record, the delivery-time map, the site's photographs
   enquiry.html       send a drawing: the steps, the drawing sheet, the readout
   privacy.html       what the site collects, as a sheet
   eu-funding.html    the notice of the EU co-financed project, as a sheet
   Light warm ground, fine grid, ink, hairlines. Orange marks live state only.

   Order: base, buttons, header, opening, stage, what Concept X does, part-size check, closing and
   footer, data sheet, about, send a drawing, then the responsive rules for
   each, then print. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("../assets/fonts/archivo-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #efede8;
  --paper: #f7f6f2;
  --ink: #12100e;
  --ink-2: #57534d;          /* secondary text, 6.6:1 on ground */
  --line: rgba(18, 16, 14, 0.16);
  --line-strong: rgba(18, 16, 14, 0.4);
  --orange: #e2641e;
  --orange-deep: #cf5614;

  --grid-minor: 16px;
  --grid-major: 80px;
  --top-h: 80px;             /* one major grid square */
  --pad: 80px;
  --rail-w: 240px;
  --readout-w: 320px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-h);
  scrollbar-color: rgba(18, 16, 14, 0.38) transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The grid. Fixed to the viewport so the pinned stage stays registered to it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(18, 16, 14, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 16, 14, 0.075) 1px, transparent 1px),
    linear-gradient(to right, rgba(18, 16, 14, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 16, 14, 0.035) 1px, transparent 1px);
  background-size:
    var(--grid-major) var(--grid-major), var(--grid-major) var(--grid-major),
    var(--grid-minor) var(--grid-minor), var(--grid-minor) var(--grid-minor);
}

::selection { background: var(--ink); color: var(--ground); }

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--orange); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  padding: 10px 14px; background: var(--ink); color: var(--ground);
  text-decoration: none; border-radius: 3px;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--orange); color: var(--ink);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 3px;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.button:hover { background: var(--orange-deep); }
.button:active { transform: translateY(1px); }
/* The second action beside a primary one: paper and a hairline, as the play control */
.button--quiet {
  background: var(--paper); border: 1px solid var(--line-strong);
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.button--quiet:hover { background: var(--paper); border-color: var(--ink); }
.textlink {
  padding: 10px 0; background: none; border: 0; cursor: pointer;
  font-size: 0.875rem; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--pad);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.top__logo { display: block; margin-right: auto; border-radius: 2px; }
.top__logo img { height: 27px; width: auto; }
.top__nav { display: flex; gap: 28px; font-size: 0.9375rem; }
.top__nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.top__nav a:hover { border-bottom-color: var(--ink); }
.top__nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }

/* ---------- Opening ----------
   Scrolls away normally. Kept short so the top of the stage is already in view
   under it on first load: the page reads as leading into something. */

.opening {
  padding: clamp(36px, 6.2vh, 60px) var(--pad) clamp(30px, 5vh, 48px);
  border-bottom: 1px solid var(--line);
}
.opening h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.5rem); line-height: 1; font-weight: 600;
  letter-spacing: -0.034em; text-wrap: balance; max-width: 30ch;
}
.opening p { margin-top: clamp(14px, 2.2vh, 22px); font-size: 1.125rem; line-height: 1.45; max-width: 80ch; text-wrap: balance; }

/* ---------- Stage ---------- */

.stage { position: relative; }

.stage__pin {
  --facts: panel;                    /* where the facts show: the readout's rows here, a docked label in compact layouts */
  position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h));
  height: calc(100svh - var(--top-h));
  min-height: 520px;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--readout-w);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "rail  centre readout"
    "keys  bar    readout";
  column-gap: 0;
  padding: 40px var(--pad) 28px;
}

/* Rail */
.rail { grid-area: rail; position: relative; align-self: center; padding: 24px 32px 24px 0; }
.rail__list { display: grid; gap: 34px; }
.rail__node {
  position: relative; display: grid; gap: 2px; width: 100%;
  padding: 2px 0 2px 28px; text-align: left;
  background: none; border: 0; cursor: pointer; border-radius: 2px;
}
.rail__node::before {              /* the node on the line */
  content: ""; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px; border: 1px solid var(--ink);
  background: var(--ground);
  transition: background-color 180ms var(--ease-out);
}
.rail__node.is-passed::before { background: var(--ink); }
.rail__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); transition: color 180ms var(--ease-out); }
.rail__what { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); }
.rail__node.is-passed .rail__name,
.rail__node.is-current .rail__name,
.rail__node:hover .rail__name { color: var(--ink); }

.rail__track {                      /* top and height are set by script: first node to last node */
  position: absolute; left: 5px; width: 1px; background: var(--line-strong);
  top: 0; height: 0; z-index: 0;
}
.rail__fill {
  position: absolute; left: -0.5px; top: 0; width: 2px; height: 100%;
  background: var(--ink); transform-origin: 0 0; transform: scaleY(0);
}
.rail__marker {                     /* the live position */
  position: absolute; left: 0; top: 0; width: 11px; height: 11px;
  background: var(--orange); z-index: 2; pointer-events: none;
}
.rail__list { position: relative; z-index: 1; }

/* Key hints */
.keys {
  grid-area: keys; align-self: end;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 0.75rem; color: var(--ink-2);
}
.keys__group { display: inline-flex; align-items: center; gap: 4px; }
.keys__group span { margin-left: 3px; }
.keys kbd {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 4px;
  font: inherit; font-size: 0.6875rem; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper);
}
.keys kbd svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Panels: on desktop their children are placed straight into the stage grid */
.panel { display: contents; }

.instrument { grid-area: centre; position: relative; min-width: 0; min-height: 0; }
.instrument canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; }
.instrument canvas.is-draggable { cursor: grab; }
.instrument canvas.is-dragging { cursor: grabbing; }

.transport {
  grid-area: bar; align-self: end;
  display: flex; align-items: center; gap: 14px;
  height: 44px; margin: 0 auto; width: min(100%, 560px); padding: 0 8px;
}
.transport__end { font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
.tip { display: none; }                 /* the figure on the handle: phones only */

.readout { grid-area: readout; align-self: start; margin-top: clamp(8px, 15vh, 150px); padding-left: 40px; }
.readout h2, .where h2, .proof h2, .enq__head h2 {
  font-size: clamp(1.625rem, 2.15vw, 2.125rem); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.022em; text-wrap: balance;
}
.readout > p, .where__head > p, .proof__item > p, .enq__head > p { margin-top: 18px; max-width: 36ch; }

.figures { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.figures > div {
  display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 0.875rem; line-height: 1.4;
}
.figures dt { color: var(--ink-2); }
.figures dd { font-weight: 500; }
.figures__live dd { font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.figures__live { align-items: baseline; }
/* The fact that is on the line or the cutter right now */
.figures > div { position: relative; }
.figures > div::before {
  content: ""; position: absolute; left: -16px; top: 15px; width: 7px; height: 7px;
  background: var(--orange); opacity: 0; transition: opacity 120ms linear;
}
.figures > div.is-live::before { opacity: 1; }
.figures > div[data-fact] dt, .figures > div[data-fact] dd { transition: color 120ms linear; }
.figures > div.is-live dt { color: var(--ink); }
/* While a fact is live the other facts step back, so the live row carries it alone */
.figures:has(.is-live) > div[data-fact]:not(.is-live) dd { color: var(--ink-2); }

/* Inactive panel is laid out but hidden, so nothing shifts on a stage change */
.panel:not(.is-active) .transport,
.panel:not(.is-active) .readout { visibility: hidden; opacity: 0; pointer-events: none; }
.panel .transport, .panel .readout { transition: opacity 140ms linear; }

/* Scrubber */
.scrub {
  --fill: 0%;
  flex: 1 1 auto; min-width: 0; height: 28px; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
.scrub::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--ink) var(--fill), rgba(18, 16, 14, 0.24) var(--fill));
}
.scrub::-moz-range-track { height: 2px; background: rgba(18, 16, 14, 0.24); }
.scrub::-moz-range-progress { height: 2px; background: var(--ink); }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -6px;
  background: var(--ink); border: 0; border-radius: 1px;
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.scrub::-moz-range-thumb {
  width: 14px; height: 14px; background: var(--ink); border: 0; border-radius: 1px;
}
.scrub:hover::-webkit-slider-thumb,
.scrub:active::-webkit-slider-thumb,
.scrub:focus-visible::-webkit-slider-thumb { background: var(--orange); transform: scale(1.14); }
.scrub:hover::-moz-range-thumb,
.scrub:active::-moz-range-thumb,
.scrub:focus-visible::-moz-range-thumb { background: var(--orange); }
.scrub:focus-visible { outline-offset: 6px; }

.play {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; cursor: pointer;
  transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.play:hover { border-color: var(--ink); }
.play[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.play__icon { width: 14px; height: 14px; fill: currentColor; }
.play__icon--pause, .play[aria-pressed="true"] .play__icon--play { display: none; }
.play[aria-pressed="true"] .play__icon--pause { display: block; }

/* ---------- What Concept X does (index.html) ----------
   The plain summary between the stage and the part-size check: six processes in
   the order of the data sheet, as cells of one paper sheet. The lines between the
   cells are the sheet's own colour showing through a 1px gap, so they hold at any
   column count. Nothing here moves. */

.does {
  padding: 96px var(--pad) 104px;
  border-top: 1px solid var(--line-strong);
}
.does__head { max-width: 1280px; }
.does__head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.028em;
}
.does__head p { margin-top: 20px; max-width: 52ch; font-size: 1.0625rem; }
.does__link {
  display: inline-block; margin-top: 6px; padding: 10px 0;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
}
.does__link:hover { text-decoration-thickness: 2px; }

.does__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  max-width: 1280px; margin-top: 40px;
  background: color-mix(in srgb, var(--ink) 16%, var(--paper));      /* = --line on paper, opaque so crossings do not darken */
  border: 1px solid var(--line-strong);
}
.does__list > li { padding: 24px 32px 32px 28px; background: var(--paper); }
.does__n { display: block; font-size: 0.8125rem; font-weight: 500; line-height: 1; color: var(--ink-2); }
.does__list h3 {
  margin-top: 22px;
  font-size: clamp(1.3125rem, 1.65vw, 1.5rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.016em;
}
.does__list p { margin-top: 10px; max-width: 40ch; line-height: 1.5; }
.does__nb { white-space: nowrap; }      /* a material name is not broken at its hyphen */

/* ---------- Part-size check ---------- */

.fit {
  position: relative;
  padding: 96px var(--pad) 104px;
  border-top: 1px solid var(--line-strong);
  background: var(--ground);            /* own ground: the drawing below carries a scaled grid */
}
.fit__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: end; max-width: 1280px; }
.fit__head h2, .closing h2 {
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.028em;
}
.fit__head p { max-width: 52ch; color: var(--ink); }

.fit__form {
  display: grid; grid-template-columns: repeat(5, minmax(0, 208px)); gap: 16px 24px;
  margin-top: 48px;
}
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.field__opt { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.field__box {
  display: flex; align-items: center; height: 48px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.field__box:hover { border-color: var(--ink); }
.field__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field__box input {
  flex: 1; min-width: 0; height: 100%; padding: 0 0 0 14px;
  border: 0; background: transparent; outline: none;
  font-size: 1.0625rem; font-weight: 500;
  appearance: textfield; -moz-appearance: textfield;
}
.field__box input::-webkit-outer-spin-button,
.field__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__unit { padding: 0 14px 0 8px; font-size: 0.875rem; color: var(--ink-2); }
.field__box--select { position: relative; }
.field__box select {
  flex: 1; min-width: 0; height: 100%; padding: 0 38px 0 14px;
  border: 0; outline: none; background: transparent; appearance: none; -webkit-appearance: none;
  font-size: 1.0625rem; font-weight: 500; text-overflow: ellipsis; cursor: pointer;
}
/* The chevron of a select: the metal choice here, the process filter on the data sheet's phone layout */
.field__box--select svg, .pick svg {
  position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.field.is-invalid .field__box { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fff; }
.field.is-invalid label::after { content: " · check this value"; font-weight: 400; color: var(--ink-2); }
.fit__error { grid-column: 1 / -1; font-size: 0.9375rem; font-weight: 500; }
.fit__error[hidden] { display: none; }

.fit__body { margin-top: 40px; max-width: 1280px; }

.drawing__sheet {
  background: var(--paper); border: 1px solid var(--line-strong);
  min-height: 300px;
}
.drawing__sheet svg { width: 100%; height: auto; }
.drawing__note { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }

/* SVG drawing classes */
.dw-grid-minor { stroke: rgba(18, 16, 14, 0.07); stroke-width: 1; }
.dw-grid-major { stroke: rgba(18, 16, 14, 0.16); stroke-width: 1; }
.dw-axis { stroke: var(--ink); stroke-width: 1; fill: none; }
.dw-env { fill: none; stroke: rgba(18, 16, 14, 0.42); stroke-width: 1; }
.dw-env.is-selected { stroke: var(--ink); stroke-width: 1.75; }
.dw-env-label { font-size: 11px; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.dw-env-label.is-selected { fill: var(--ink); font-weight: 600; }
.dw-part { fill: rgba(226, 100, 30, 0.16); stroke: var(--orange); stroke-width: 1.75; }
.dw-dim { stroke: var(--ink); stroke-width: 1; fill: none; }
.dw-dim-text { font-size: 12px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.dw-title { font-size: 12px; fill: var(--ink-2); }
.dw-bar { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.drawing__sheet text { font-family: "Archivo", sans-serif; font-variant-numeric: tabular-nums; }

/* Results */
.results { margin-top: 36px; }
.results__list { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr; gap: 0 40px; align-items: start; }
.results__process { font-size: 0.8125rem; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.result {
  position: relative; display: grid; gap: 2px; width: 100%;
  padding: 12px 12px 12px 30px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  transition: background-color 140ms var(--ease-out);
}
button.result { cursor: pointer; }
button.result:hover { background: rgba(18, 16, 14, 0.035); }
button.result[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
/* Fit mark: on a result here, and in front of a checkable row or in the key on the data sheet */
.result::before, .row.has-mark > :first-child::before, .key {
  content: ""; position: absolute; left: 8px; top: 17px;
  width: 10px; height: 10px; border: 1px solid var(--ink-2);
}
.result.is-fit::before, .row.is-fit > :first-child::before, .row.is-live > :first-child::before, .key--fit { background: var(--orange); border-color: var(--orange); }
.result.is-unknown::before, .row.is-unknown > :first-child::before, .key--unknown { border-style: dashed; }
.result__verdict { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.result:not(.is-fit) .result__verdict { font-weight: 500; }
.result__spec { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; }
.results__note { margin-top: 28px; font-size: 0.9375rem; color: var(--ink); }
.results__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------- Closing ---------- */

.closing {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px;
  padding: 96px var(--pad) 120px;
  border-top: 1px solid var(--line-strong);
}
.closing__lead p { margin-top: 20px; max-width: 54ch; font-size: 1.0625rem; }
.closing__lead .button { margin-top: 28px; }
.closing__details { border-top: 1px solid var(--line-strong); align-self: start; }
.closing__details > div {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.closing__details dt { font-size: 0.875rem; color: var(--ink-2); padding-top: 2px; }
.closing__details dd { font-weight: 500; }

/* ---------- Footer ---------- */

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
  padding: 12px var(--pad); border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--ink-2);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot__nav a { padding: 12px 0; color: var(--ink); text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__nav a[aria-current="page"] { font-weight: 600; }
/* The EU co-funding line: the flag and the statement as one link to the notice, beside the company name */
.foot__eu {
  display: inline-flex; align-items: center; gap: 12px; margin-right: auto; padding: 8px 0;
  color: var(--ink); text-decoration: none;
}
.foot__eu img { flex: none; width: 42px; height: 28px; }
.foot__eu:hover span { text-decoration: underline; }
.foot__eu[aria-current="page"] { font-weight: 600; }

/* ---------- Data sheet (capabilities.html) ----------
   The same three zones as the stage. Left: the process list, which filters the
   sheet, and the units switch. Centre: the sheet. Right: the selected row, drawn
   to scale. The side zones stay in view while the sheet scrolls past. */

.bench {
  display: grid; align-items: start;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--readout-w);
  padding: 0 var(--pad);
}
.bench__side, .bench__detail {
  position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h));
  height: calc(100svh - var(--top-h));
  padding: 40px 0 28px;
}
.bench__side { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.bench__detail { padding-left: 40px; }
html:not(.has-script) .bench__side > *, html:not(.has-script) .bench__detail > *,
html:not(.has-script) #sheet-print { visibility: hidden; }

/* The rail as a filter: the marker sits on the process shown, filled nodes are on the sheet */
.rail--filter { grid-area: auto; }
.rail--filter .rail__list { gap: 26px; }
.rail--filter .rail__marker, .rail--steps .rail__marker { top: 0; transition: transform 320ms var(--ease-out); }
.rail--filter .rail__node:not(.is-passed):not(:hover) .rail__name { color: var(--ink-2); }

/* A choice as a select, where there is no room for its list: the process filter
   in compact layouts. */
.pick { display: none; flex: 1 1 auto; min-width: 0; }
.pick__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pick__box { position: relative; height: 44px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; }
.pick__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pick select {
  width: 100%; height: 100%; padding: 0 36px 0 12px; border: 0; outline: none; background: transparent;
  appearance: none; -webkit-appearance: none; font-size: 0.9375rem; font-weight: 500; text-overflow: ellipsis; cursor: pointer;
}

.units { align-self: end; display: grid; gap: 6px; justify-items: start; }
.units__label { font-size: 0.75rem; color: var(--ink-2); }
.units__set { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; }
.units button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 12px; background: none; border: 0; cursor: pointer;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.units button + button { border-left: 1px solid var(--line-strong); }
.units button:hover { color: var(--ink); }
.units button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.units button:focus-visible { outline-offset: 2px; }

/* The sheet: paper on the gridded ground, like the drawing sheets */
.sheet {
  container: sheet / inline-size;
  width: 100%; max-width: 960px; justify-self: center;      /* on a very wide window it stays a sheet */
  margin: 40px 0 96px; padding: 0 28px 28px;
  background: var(--paper); border: 1px solid var(--line-strong);
}
.sheet__print, .sheet__figure { display: none; }
.sheet__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.sheet__state { font-size: 0.8125rem; color: var(--ink-2); }
.sheet__bar .button { min-height: 36px; padding: 0 12px; gap: 8px; font-size: 0.8125rem; }
.sheet__bar .button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }

.titleblock {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px 20px;
  padding: 16px 0 18px; border-bottom: 1px solid var(--line-strong);
}
.titleblock dt { font-size: 0.75rem; line-height: 1.4; color: var(--ink-2); }
.titleblock dd { margin-top: 2px; font-size: 0.875rem; line-height: 1.35; font-weight: 500; }

.tbl { padding-top: 40px; }
.tbl h2 { font-size: 1.375rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.018em; }
.tbl__body { margin-top: 14px; }
.tbl__note, .tbl__empty { margin-top: 10px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.tbl__empty { margin-top: 0; padding: 12px 0; color: var(--ink); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.tbl__empty[hidden] { display: none; }

/* Figures: each process group shows its photographs in one row under its
   rows, three across at one size (the files are cropped to 4:3 for this), each
   with its own short caption. Every photograph opens larger. Where the sheet
   is too narrow for three, the first takes the width and the other two stand
   side by side beneath it. */
.grid tr.figrow > td { padding: 16px 0 24px; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.figs > .fig:first-child { grid-column: 1 / -1; }
@container sheet (min-width: 460px) {
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figs > .fig:first-child { grid-column: auto; }
}
.fig__open { position: relative; display: block; background: var(--ground); cursor: zoom-in; }
.fig__open::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); pointer-events: none; }      /* a hairline over the photograph's edge, so the photograph keeps its exact size */
.fig__open img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.fig__zoom {                              /* the mark that the photograph opens larger: paper and a hairline, as the play control */
  position: absolute; right: 6px; bottom: 6px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
  transition: border-color 140ms var(--ease-out);
}
.fig__zoom svg, .zoom__close svg, .file__x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fig__open:hover .fig__zoom, .fig__open:focus-visible .fig__zoom { border-color: var(--ink); }
.fig figcaption, .zoom__caption { margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); }

/* A photograph opened larger. The page steps back behind the ground colour;
   the photograph is shown whole, at up to the size of its source. */
.zoom {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 56px 24px 20px; border: 0; background: rgba(239, 237, 232, 0.97); color: var(--ink);
}
.zoom[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; }
.zoom::backdrop { background: transparent; }
.zoom__img { width: auto; height: auto; max-width: 100%; max-height: 100%; background-size: 100% 100%; border: 1px solid var(--line-strong); }
.zoom__caption { margin-top: 12px; font-size: 0.875rem; color: var(--ink); text-align: center; }
.zoom__close {
  position: absolute; top: 8px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; cursor: pointer;
  transition: border-color 140ms var(--ease-out);
}
.zoom__close:hover { border-color: var(--ink); }
html:has(.zoom[open]) { overflow: hidden; scrollbar-gutter: stable; }      /* the page behind does not scroll, and does not shift */
@media (prefers-reduced-motion: no-preference) {
  .zoom[open] { animation: zoom-in 180ms var(--ease-out); }
  .zoom[open] .zoom__img { animation: zoom-photo 240ms var(--ease-out); }
  @keyframes zoom-in { from { opacity: 0; } }
  @keyframes zoom-photo { from { opacity: 0; transform: scale(0.985); } }
}

/* Tables: one column plan for every table, so names and figures line up down the sheet */
.grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.875rem; line-height: 1.4; }
.grid .c-name { width: 40%; }
.grid .c-n { width: 14.5%; }
.grid .c-load { width: 16.5%; }
.grid th, .grid td { padding: 9px 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.grid th:last-child, .grid td:last-child { padding-right: 10px; }
.grid thead th { padding-top: 0; padding-bottom: 8px; vertical-align: bottom; font-size: 0.75rem; line-height: 1.35; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.grid thead th:first-child { padding-left: 26px; }
.grid thead .unit { display: block; }
.grid .num { text-align: right; padding-left: 8px; }
.grid td.num { font-weight: 500; }
.grid thead.visually-hidden { display: block; }
.grp th, .grp-label {
  padding: 20px 0 6px; font-size: 0.8125rem; line-height: 1.4; font-weight: 400; color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
}
.grid--sizes tbody:first-of-type .grp th { padding-top: 12px; }
.grid--pairs tbody:first-of-type .grp th, .grp-label { padding-top: 0; }

/* Rows: every row can be selected; the selected row is the one in the drawing */
.row { position: relative; cursor: pointer; }
.row > th, .row > td, li.row { border-bottom: 1px solid var(--line); transition: background-color 120ms var(--ease-out); }
.row > th:first-child, li.row { padding-left: 26px; font-weight: 500; }
.row > th:first-child { position: relative; padding-right: 12px; }
/* A row name is a button, and a button's baseline is its last line: a name that wraps would push
   the value down a line. Name cells sit at the top; the value's first line then meets the name's. */
.row > th:first-child:has(.row__pick) { vertical-align: top; }
.row.has-mark > :first-child::before { top: 14px; width: 9px; height: 9px; }
.row__pick { display: inline; padding: 0; background: none; border: 0; text-align: left; font-weight: inherit; cursor: pointer; }
.row__pick:focus-visible { outline: none; }
.row__more { display: block; margin-top: 2px; font-size: 0.8125rem; line-height: 1.35; font-weight: 400; color: var(--ink-2); }

.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(164px, 1fr)); gap: 20px 24px; align-items: start; font-size: 0.875rem; line-height: 1.4; }
.grp-label { margin: 0; }
li.row { padding: 9px 10px 9px 26px; }

@media screen {
  .is-out, .tbl.is-empty .grid, .tbl.is-empty .lists, .tbl.is-empty .tbl__note { display: none; }
  /* With a filter on, the first group still shown takes the place under the table's head */
  .grid--sizes tbody.is-lead .grp th { padding-top: 12px; }
  .grid--pairs tbody.is-lead .grp th { padding-top: 0; }
  /* The selected row is framed in ink: lines drawn inside its cells, so the frame is exact on a table row */
  .row { --frame: 0px; }
  .row.is-selected { --frame: 1px; }
  .row:has(.row__pick:focus-visible) { --frame: 2px; }
  .row.is-selected > th, .row.is-selected > td, li.row.is-selected { background: #fff; }
  tr.row > * { box-shadow: inset 0 var(--frame) 0 var(--ink), inset 0 calc(var(--frame) * -1) 0 var(--ink); }
  tr.row > :first-child { box-shadow: inset 0 var(--frame) 0 var(--ink), inset 0 calc(var(--frame) * -1) 0 var(--ink), inset var(--frame) 0 0 var(--ink); }
  tr.row > :last-child { box-shadow: inset 0 var(--frame) 0 var(--ink), inset 0 calc(var(--frame) * -1) 0 var(--ink), inset calc(var(--frame) * -1) 0 0 var(--ink); }
  li.row { box-shadow: inset 0 0 0 var(--frame) var(--ink); }
}
@media screen and (hover: hover) {        /* a touch leaves no hover behind */
  .row:not(.is-selected):not(.row--read):hover > th, .row:not(.is-selected):not(.row--read):hover > td, li.row:not(.is-selected):hover { background: rgba(18, 16, 14, 0.04); }
}

.sheet__foot { margin-top: 28px; display: grid; gap: 8px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.sheet__foot [hidden] { display: none; }

/* The part entered on the home page: what it is, what the marks mean, what can be done with it */
.sheet__part {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2);
}
.sheet__part:empty { display: none; }
.sheet__part-what strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.sheet__part:not(.has-part) .sheet__part-what { max-width: 46ch; }
.sheet__part-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.sheet__part-actions .button { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
.sheet__key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.key { position: static; display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 2px; }
.key ~ .key { margin-left: 14px; }

/* The selected row: scale drawing and readout */
.detail { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.detail__drawing { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; max-height: 500px; }
.detail .drawing__sheet { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.detail .drawing__sheet svg, .where .drawing__sheet svg, .enq .drawing__sheet svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* The caption keeps room for its longest wording (four lines; three in a short
   window), so the title under it stays put as the caption changes. */
.detail .drawing__note { flex: none; margin-top: 10px; line-height: 1.45; min-height: 5.8em; }
/* Nothing to draw for this row: the frame closes up and says so */
.detail__drawing.is-none { flex: 0 0 auto; }
.detail__drawing.is-none .drawing__sheet { flex: none; display: grid; place-items: center; min-height: 104px; padding: 16px; }
.detail__drawing.is-none .drawing__note { display: none; }
.drawing__none { max-width: 22ch; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); text-align: center; text-wrap: balance; }
.detail__text { flex: none; }
.detail__title { margin-top: 18px; font-size: 1.375rem; line-height: 1.12; font-weight: 600; letter-spacing: -0.018em; text-wrap: balance; }
/* The readout keeps room for two rows of figures and a two-line verdict, so the
   drawing and the title hold their place from one working size to the next. */
.detail .figures { margin-top: 12px; min-height: 68px; }
.detail .figures[hidden] { display: none; }
.detail .figures > div { grid-template-columns: 5.75rem minmax(0, 1fr); padding: 7px 0; font-size: 0.8125rem; }
.detail .figures > div::before { top: 13px; }
.detail__part { margin-top: 14px; min-height: 96px; }
.detail__part[hidden] { display: none; }
.detail__part .result { display: block; padding: 0 0 0 20px; border: 0; }
.detail__part .result::before { left: 0; top: 5px; }
.detail__part .result__verdict { font-size: 0.9375rem; }
.detail__small { margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.dock { display: none; }

/* ---------- About (about.html) ----------
   The page head carries the company record. Under it the delivery-time instrument,
   in the stage's three zones: the country list, the map, the readout. Then the
   photographs of the site, with what the company supplies and sells in the
   readout zone beside them. */

/* Head: the lead on the left, the company record on the right */
.opening--record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.opening__lead { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }      /* the title at the head of the record, the lead at its foot */
.record, .enq__paper { padding: 0 28px 10px; background: var(--paper); border: 1px solid var(--line-strong); }
.record .tbl { padding-top: 22px; }
.grid--record { border-top: 1px solid var(--line-strong); }
.grid--record .c-name { width: 34%; }
/* A sheet row that is read, not selected */
.row--read { cursor: auto; }
.grid .row--read > th:first-child { padding-left: 0; }
.row--read:last-child > * { border-bottom: 0; }
.row__more a { color: var(--ink); }

/* The delivery-time instrument, in the stage's three zones: the country list,
   the map, the readout. The map and the list beside it take one height; the
   legend and the note stand under the map. */
.where {
  --map-h: 470px;
  --land-line: #a5a29c;                     /* the outline of land that carries no time: the hairline as an opaque grey */
  /* The five tones of the shading, darkest for the shortest time. Each is at
     least 12 points of lightness (L*) from the next, and the lightest from the
     paper, so the bands read without colour. Land with no time is white, and
     is told from the sea by its outline. */
  --b1: #2f2c28; --b2: #605c56; --b3: #8f8b84; --b4: #b4b0a8; --b5: #d6d3cb;
  display: grid;
  /* On a very wide window the map stops at twice its height and stands midway between the zones. */
  grid-template-columns: var(--rail-w) minmax(0, calc(var(--map-h) * 2)) var(--readout-w);
  justify-content: space-between;
  grid-template-rows: auto auto auto 1fr;    /* the readout is the tallest zone: what it needs beyond the map and its caption goes to the last row */
  grid-template-areas:
    "find map  head"
    "find map  out"
    "bar  note out"
    ".    .    out";
  padding: 40px var(--pad) 28px;
}
html:not(.has-script) .where > :not(.where__head) { visibility: hidden; }

.where__map { display: contents; }       /* the sheet and its caption are placed straight into the instrument's grid */
.where__frame { grid-area: map; align-self: start; position: relative; min-width: 0; }      /* the sheet, and the view switch on it */
.where .drawing__sheet {
  position: relative; overflow: hidden;
  /* Wide for the world, never too low for Europe. The width is stated, so the least height cannot widen the sheet past its zone. */
  width: 100%; aspect-ratio: 16 / 9; min-height: 350px; max-height: var(--map-h); touch-action: pan-y pinch-zoom;
}
.where__svg { position: absolute; inset: 0; }
.where__svg svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.where__view { position: absolute; z-index: 1; right: 8px; top: 8px; }      /* the view switch, on the sheet it changes: in the corner where neither view has a country to choose */
.where .drawing__note { grid-area: note; }

/* The legend: the five tones in order, then land with no time */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--ink); }
.legend__scale { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.legend__scale li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend .key { width: 18px; height: 11px; margin: 0; }
.key--b1 { background: var(--b1); border-color: var(--b1); }
.key--b2 { background: var(--b2); border-color: var(--b2); }
.key--b3 { background: var(--b3); border-color: var(--b3); }
.key--b4 { background: var(--b4); border-color: var(--b4); }
.key--b5 { background: var(--b5); border-color: var(--b5); }
.key--plain { background: #fff; border-color: var(--land-line); }
.legend + p { margin-top: 6px; max-width: 76ch; }

/* The country list: a search field over the sheet's rows, grouped by region,
   each row with its courier range. One row is selected at a time. */
.where__find { grid-area: find; display: flex; flex-direction: column; height: 0; min-height: 100%; padding-right: 32px; }      /* as tall as the map, whatever the list holds */
.where__find .field__box input { padding-right: 14px; }
.where__find .field__box input::placeholder { color: var(--ink-2); opacity: 1; }
.where__find .field__box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.where__find .field__box svg { display: none; }
.where__panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 10px; }
.where__cols {                            /* what the figure in each row is */
  padding: 0 10px 5px; text-align: right;
  font-size: 0.75rem; line-height: 1.35; color: var(--ink-2); border-bottom: 1px solid var(--line-strong);
}
.where__list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.875rem; line-height: 1.4;
}
.where__list[hidden] { display: none; }
.where__grp {                             /* a region's name stays at the head of the list while its countries pass */
  position: sticky; top: 0; z-index: 1; padding: 14px 10px 5px;
  font-size: 0.75rem; line-height: 1.35; color: var(--ink-2);
  background: var(--ground); border-bottom: 1px solid var(--line-strong);
}
.where__grp:first-child { padding-top: 8px; }
.where__grp.is-out { display: none; }
.where__list li.row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-left: 10px; }
.where__list li.row.is-out { display: none; }
.where__list li.row:last-child { border-bottom: 0; }
.row__tag { flex: none; font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }
.where__list li.row.is-selected .row__tag { color: var(--ink); }
.where__find:has(input:focus-visible) li.row.is-selected { --frame: 2px; }      /* the keyboard is on the list: the arrow keys move this row */
.where__find .tbl__empty { border-top: 0; }

.where__bar { grid-area: bar; align-self: start; display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }

/* The readout */
.where__head, .enq__head { grid-area: head; padding-left: 40px; }
.where__out, .enq__out { grid-area: out; align-self: start; margin-top: 28px; padding-left: 40px; }
.where__out .figures, .enq__out .figures { margin-top: 0; }
.where__out .tbl__empty { font-size: 0.875rem; }
.where__status { margin-bottom: 14px; padding: 9px 12px; font-size: 0.875rem; line-height: 1.4; background: var(--paper); border: 1px solid var(--line-strong); }      /* land with no time was chosen */
.where__status[hidden] { display: none; }
.where__out .detail__title { margin: 0 0 12px; }
.where__part { margin: -4px 0 12px; font-size: 0.875rem; line-height: 1.45; }
.where__out .figures > div { grid-template-columns: 7.5rem minmax(0, 1fr); }
.where__out .figures > div.is-aside dd { color: var(--ink-2); font-weight: 500; }      /* the way of travelling that does not apply to the part carried */
.where__out .figures__live dd { text-wrap: balance; }
.where__out .figures__live .row__more { margin-top: 3px; }
.where__out .textlink { margin-top: 10px; }

/* The turnaround: two bars on one ruler of working days, and what the tones are */
.turn { margin-top: 24px; }
.turn__title { margin-bottom: 12px; font-size: 0.875rem; line-height: 1.4; font-weight: 600; }
.turn__draw svg { overflow: visible; }
.turn__draw text { font-family: "Archivo", sans-serif; font-variant-numeric: tabular-nums; }
.tl-cap { font-size: 12px; fill: var(--ink-2); paint-order: stroke; stroke: var(--ground); stroke-width: 4px; stroke-linejoin: round; }
.tl-enquiry { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.tl-make { fill: var(--ink); }
.tl-transit { fill: var(--orange); }
.tl-also { fill: rgba(226, 100, 30, 0.16); stroke: var(--orange); stroke-width: 1; }
.turn__key { display: grid; gap: 5px; margin-top: 10px; font-size: 0.8125rem; line-height: 1.4; }
.turn__key li { display: grid; grid-template-columns: 11px minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.turn__key .key { width: 11px; height: 9px; margin: 0; }
.key.tl-enquiry { background: var(--paper); border-color: var(--ink); }
.key.tl-make { background: var(--ink); border-color: var(--ink); }
.key.tl-transit { background: var(--orange); border-color: var(--orange); }
.key.tl-also { background: rgba(226, 100, 30, 0.16); border-color: var(--orange); }
.key.tl-none { border-style: dashed; border-color: var(--orange); }

/* The map, in the drawing's language. Land that carries a time is filled in its
   band's tone, with the paper's colour between countries; land that carries
   none is white with a hairline. The outlines are in kilometres and scaled as
   a group, so their strokes keep their width whatever the scale. */
.dw-map path { vector-effect: non-scaling-stroke; }
.dw-graticule { fill: none; stroke: rgba(18, 16, 14, 0.09); stroke-width: 1; }
.dw-land { stroke: var(--paper); stroke-width: 1; stroke-linejoin: round; -webkit-tap-highlight-color: transparent; }
#where-world .dw-land { stroke-width: 0.5; }
.dw-land.is-plain { fill: #fff; stroke: var(--land-line); }
.dw-land.b1 { fill: var(--b1); }
.dw-land.b2 { fill: var(--b2); }
.dw-land.b3 { fill: var(--b3); }
.dw-land.b4 { fill: var(--b4); }
.dw-land.b5 { fill: var(--b5); }
.dw-land[data-id] { cursor: pointer; }
/* The country pointed at and the country selected: a line in ink or in orange
   over a wider one in the paper's colour, so it shows on every tone. */
.dw-case { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linejoin: round; }
.dw-case.is-selected { stroke-width: 5; }
.dw-over { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.dw-chosen { fill: none; stroke: var(--orange); stroke-width: 2.25; stroke-linejoin: round; }
.dw-graticule, .dw-over-lines, .dw-marks, .dw-hover { pointer-events: none; }      /* only the land takes the pointer */
.dw-site { fill: var(--orange); stroke: var(--paper); stroke-width: 1.5; }
.dw-node { fill: var(--paper); stroke: var(--orange); stroke-width: 2; }
.dw-plate { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.dw-plate-text { font-size: 11px; font-weight: 400; fill: var(--ink-2); }

/* Photographs of the site, and beside them what the company supplies and sells */
.proof {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--readout-w); grid-template-areas: "figs text"; align-items: start;
  padding: 96px var(--pad) 104px; border-top: 1px solid var(--line-strong);
}
.proof__text { grid-area: text; display: grid; gap: 48px; padding-left: 40px; }
.proof .figures { margin-top: 20px; }
/* Two photographs side by side at one height, each at its own proportions (--ar, width over height) */
.figs--pair { grid-area: figs; display: flex; max-width: 1184px; }       /* at that width the smaller photograph is shown at the size of its file */
.figs--pair > .fig { flex: var(--ar) 1 0%; min-width: 0; }
.figs--pair .fig__open img { aspect-ratio: var(--ar); }

/* ---------- Send a drawing (enquiry.html) ----------
   The stage's three zones again. Left: the steps, as the rail. Centre: the
   working area. One drawing sheet runs through it: it takes the files, draws
   the part to scale against the envelopes, and stands beside the details in
   the third step. Right: the readout of the step. */

.button[aria-current="page"] { border-color: var(--ink); }

/* A page head on one line: the title, and the lead on its baseline */
.opening--brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: end; }
.opening--brief p { margin-top: 0; max-width: 54ch; padding-bottom: 0.3em; }

.enq {
  --sheet-h: clamp(280px, calc(100vh - var(--top-h) - 372px), 520px);
  display: grid; align-items: start;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--readout-w);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "rail work head"
    "rail work out";
  padding: 40px var(--pad) 96px;
}
@supports (height: 100svh) { .enq { --sheet-h: clamp(280px, calc(100svh - var(--top-h) - 372px), 520px); } }
.enq [hidden] { display: none !important; }
.enq__plain { grid-column: 1 / -1; max-width: 60ch; }
html.has-script .enq__plain, html:not(.has-script) .enq > :not(.enq__plain) { display: none; }

/* The rail as the steps: the marker is on the step shown; while the files are sent it travels on to the last node */
.rail--steps { align-self: start; position: sticky; top: calc(var(--top-h) + 16px); padding-top: 16px; }
.rail--steps .rail__fill { transition: transform 320ms var(--ease-out); }
/* Three numbered steps, then the result. Each step is a square on the line with its
   number in it; the marker carries the number of the step shown. The confirmation
   keeps the small node: it is where the enquiry ends up, not a step to work through. */
.rail--steps .rail__count { margin-bottom: 20px; font-size: 0.9375rem; line-height: 1.3; font-weight: 600; }
.rail--steps .rail__list { gap: 30px; }
.rail--steps .rail__node { min-height: 26px; padding: 1px 0 1px 40px; }
.rail--steps .rail__node::before { content: none; }
.rail--steps .rail__end .rail__node::before { content: ""; left: 7.5px; top: 7.5px; }
.rail--steps .rail__no {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px;
  font-size: 0.875rem; line-height: 1; font-weight: 600; color: var(--ink);
  background: var(--ground); border: 1px solid var(--ink);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.rail--steps .rail__node.is-passed .rail__no { background: var(--ink); color: var(--ground); }
.rail--steps .rail__name { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.008em; }
.rail--steps .rail__end .rail__name { font-size: 0.9375rem; letter-spacing: 0; }
.rail--steps .rail__track { left: 12.5px; }
.rail--steps .rail__marker {
  display: grid; place-items: center; width: 26px; height: 26px;
  font-size: 0.875rem; line-height: 1; font-weight: 600; color: var(--ink);
}
.rail--steps.is-result .rail__marker { width: 11px; height: 11px; margin: 7.5px; }
.rail__node:disabled { cursor: default; }
.rail__node:disabled:not(.is-passed):hover .rail__name { color: var(--ink-2); }
.enq__head h2:focus { outline: none; }          /* focus is moved here on a step change; the heading is not a control */

.enq__work { grid-area: work; min-width: 0; container: work / inline-size; }

/* The sheet: a band that says what it holds, the scale drawing, the caption */
.enq__drawing { view-transition-name: cx-sheet; }
.enq__frame {
  position: relative; background: var(--paper); border: 1px solid var(--line-strong);
  transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.enq__band {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  min-height: 86px; padding: 14px 20px 14px 22px; border-bottom: 1px solid var(--line);
}
.enq__band-text { min-width: 0; }
.enq__band-title { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.016em; overflow-wrap: anywhere; }
.enq__band-sub { margin-top: 4px; max-width: 64ch; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.enq__band .button { flex: none; min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
/* The first step is the files: the band that takes them is larger there, and so is its button, whether it is the primary action or not */
.enq[data-step="drawing"] { --sheet-h: clamp(240px, calc(100vh - var(--top-h) - 510px), 440px); }      /* the drawing gives room to the list of files under it */
@supports (height: 100svh) { .enq[data-step="drawing"] { --sheet-h: clamp(240px, calc(100svh - var(--top-h) - 510px), 440px); } }
.enq[data-step="drawing"] .enq__band { min-height: 116px; padding: 18px 24px 18px 26px; }
.enq[data-step="drawing"] .enq__band-title { font-size: clamp(1.375rem, 1.85vw, 1.625rem); line-height: 1.15; letter-spacing: -0.02em; }
.enq[data-step="drawing"] .enq__band-sub { margin-top: 6px; font-size: 0.875rem; }
.enq[data-step="drawing"] .enq__band .button { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.enq__view { position: relative; }
.enq .drawing__sheet { position: relative; height: var(--sheet-h); min-height: 0; overflow: hidden; background: none; border: 0; }
/* A file being read: a line crosses the sheet as far as the reading has got */
.enq__scan {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--read, 0%); pointer-events: none;
  background: rgba(226, 100, 30, 0.07); border-right: 2px solid var(--orange); opacity: 0;
  transition: width 240ms linear, opacity 200ms linear 160ms;
}
.enq.is-reading .enq__scan { opacity: 1; transition-delay: 0s; }
/* Files held over the page: the sheet is framed in ink and its corners are marked */
.enq__marks {
  --m: linear-gradient(var(--orange), var(--orange));
  position: absolute; inset: 7px; pointer-events: none; opacity: 0; transition: opacity 140ms var(--ease-out);
  background:
    var(--m) left top / 20px 2px no-repeat, var(--m) left top / 2px 20px no-repeat,
    var(--m) right top / 20px 2px no-repeat, var(--m) right top / 2px 20px no-repeat,
    var(--m) left bottom / 20px 2px no-repeat, var(--m) left bottom / 2px 20px no-repeat,
    var(--m) right bottom / 20px 2px no-repeat, var(--m) right bottom / 2px 20px no-repeat;
}
.enq.is-over .enq__frame { background: #fff; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.enq.is-over .enq__marks { opacity: 1; }
/* No file yet: the corners of the sheet are marked in ink, as the place the files go */
.enq.is-empty .enq__frame { border-color: var(--ink); }
.enq.is-empty .enq__marks { --m: linear-gradient(var(--ink), var(--ink)); opacity: 1; }
.enq.is-empty .enq__view { padding-bottom: 16px; }      /* the scale bar stands clear of the corner mark */
.enq.is-empty.is-over .enq__marks { --m: linear-gradient(var(--orange), var(--orange)); }
.enq__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin-top: 10px; }
.enq__foot .drawing__note { margin-top: 0; min-height: 2.9em; line-height: 1.45; }      /* room for two lines, so the list under it stays put */
.enq__foot .units { flex: none; align-self: flex-start; }

.enq__panel { margin-top: 24px; }
/* The files added: the count stands as a heading over the list, and the lines are set a size up */
.enq #files-label { margin-bottom: 10px; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.008em; color: var(--ink); }
.enq #files-list { font-size: 0.9375rem; }
.enq #files-list li.file { padding-top: 12px; padding-bottom: 12px; }
.enq #files-list .row.has-mark > :first-child::before { top: 18px; }
.enq__paper.enq__panel { margin-top: 0; padding-bottom: 28px; }

/* Files: a line each, with its type and size and what was done with it. A
   measured file can be selected: it is the one in the drawing. While the
   enquiry is sent, the line under each file fills as its parts arrive. */
.files { font-size: 0.875rem; line-height: 1.4; }
.file { display: grid; grid-template-columns: minmax(0, 1.1fr) 7.25rem minmax(0, 1.3fr) 28px; column-gap: 16px; align-items: baseline; }
.file--sent { grid-template-columns: minmax(0, 1.1fr) 7.25rem minmax(0, 1.3fr); }
.file__name { overflow-wrap: anywhere; }
.file__meta { font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.file__state { font-weight: 400; }
.file.is-unknown .file__name { font-weight: 400; color: var(--ink-2); }
.files .file:not(.is-done), .files .file--sent { cursor: auto; }
.files .file:not(.is-done):hover, .files li.file--sent:hover { background: none; }
.row.is-done > :first-child::before { background: var(--ink); border-color: var(--ink); }
.file__x {
  align-self: center; display: grid; place-items: center; width: 28px; height: 28px; margin: -5px 0; padding: 0;
  color: var(--ink-2); background: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.file__x:hover { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.file--sent::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: var(--sent, 0%); height: 2px;
  background: var(--ink); transition: width 320ms var(--ease-out);
}

.enq .results { margin-top: 0; }
.enq .results__list { gap: 0 28px; }
.enq .result__verdict { font-size: 0.9375rem; }
/* A working area too narrow for three columns of results: milling and composites in one, the foundry beside them */
@container work (min-width: 440px) and (max-width: 660px) {
  .enq .results__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .enq .results__group:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}
.enq__slot:not(:empty) { margin-bottom: 28px; }

/* The readout of a step */
.enq__out .figures > div { grid-template-columns: 6.75rem minmax(0, 1fr); }
.enq__out .detail__title { margin: 0 0 12px; overflow-wrap: anywhere; }
.enq__out .grp-label { margin-top: 22px; }
.figures--tight > div { padding: 6px 0; }
.enq__out .detail__small { margin-top: 10px; }
.enq__out .results__note { margin-top: 20px; font-size: 0.875rem; }
.enq__out .results__actions { margin-top: 22px; align-items: center; }
/* The way on from a step: taller than the other buttons, in the same place on each visit to the step */
.enq .enq__next { min-height: 50px; padding: 0 22px; font-size: 1rem; }

/* The way on from steps 1 and 2 stays on screen.
   Two columns: the row of the second step keeps its place at the end of the readout
   and is held at the bottom of the window while that place is below it. Its box is
   the same height held or not, so nothing moves when it lets go; held, it takes the
   page's ground and a rule (the script marks it), so it reads as a bar and nothing
   shows through. The row of the first step heads its readout and is in view as it is.
   One column: both rows are moved by the script to the bar at the foot of the
   enquiry (further down, with the one-column rules). */
.enq__out .enq__go[data-row="fit"] {
  position: sticky; bottom: 0; z-index: 2;
  gap: 0 12px; margin: 9px -8px -12px; padding: 12px 8px;
  border-top: 1px solid transparent;
}
.enq__out .enq__go[data-row="fit"].is-held, .enq__out .enq__go[data-row="fit"].is-bar { background: var(--ground); border-top-color: var(--line-strong); }
.enq .enq__bar:empty { display: none; }
.enq[data-step="details"] .enq__bar, .enq[data-step="sent"] .enq__bar,
.enq:not([data-step="drawing"]) .enq__bar > [data-row="drawing"],
.enq:not([data-step="fit"]) .enq__bar > [data-row="fit"] { display: none; }
/* A field or button brought into view by the keyboard is not left under the held row */
.enq[data-step="fit"] .enq__out :is(input, select, button, a), .enq[data-step="fit"] #fit-error { scroll-margin-bottom: 120px; }
.enq[data-step="fit"] .enq__out .enq__go :is(button, a) { scroll-margin-bottom: 0; }
.enq__step > .results__actions:first-child { margin: 0 0 26px; }
.enq__out .figures > .figures__live { grid-template-columns: minmax(0, 1fr); gap: 1px; }      /* the size takes the width of the readout: label, then figure */
.enq__out .figures__live dd { font-size: 1.125rem; line-height: 1.25; }
.enq__out dd .units { display: inline-grid; vertical-align: middle; }
.enq__out dd .units button { min-height: 30px; padding: 0 10px; }
.enq__out .enq__terms { margin-top: 32px; }
.enq__terms dd { font-weight: 400; }

/* The size, in the readout of the fit: two fields to a line. A measured size is read, not typed. */
.enq__size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.enq__size .field--wide, .enq__size .fit__error { grid-column: 1 / -1; }
.enq__size .field__box { height: 44px; }
.enq__size .field.is-invalid label::after { content: " · check"; }
.enq__size .field__box:has(input:read-only) { background: none; border-color: var(--line); box-shadow: none; }

/* The sheet beside the details: the same drawing, small */
.enq__dock { margin-bottom: 18px; }
.enq__dock .enq__band { min-height: 0; padding: 11px 14px 12px; }
.enq__dock .enq__band-title { font-size: 1rem; letter-spacing: -0.008em; }
.enq__dock .enq__band .button { display: none; }
.enq__dock .enq__foot { flex-wrap: wrap; }
.enq__dock .drawing__note { flex-basis: 100%; min-height: 0; }
.enq__drawing.is-none .enq__view, .enq__drawing.is-none .enq__foot { display: none; }
.enq__drawing.is-none .enq__band { border-bottom: 0; }

/* The details: sheet rows that are written in. The label stands on the paper,
   the entry in a white cell beside it; the row in use is framed in ink. */
.enq__paper .tbl { padding-top: 26px; }
.entries { border-top: 1px solid var(--line-strong); font-size: 0.875rem; line-height: 1.4; }
.entry {
  position: relative; display: grid; grid-template-columns: 34% minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.entry__label { padding: 11px 12px 11px 0; font-weight: 500; }
.entry__value { min-width: 0; background: rgba(255, 255, 255, 0.62); border-left: 1px solid var(--line); transition: background-color 120ms var(--ease-out); }
.entry:hover .entry__value, .entry:focus-within .entry__value { background: #fff; }
.entry:focus-within::after { content: ""; position: absolute; inset: -1px -10px; border: 2px solid var(--ink); pointer-events: none; }      /* the frame stands clear of the label */
.entry input:not([type="checkbox"]), .entry textarea {
  display: block; width: 100%; min-height: 42px; padding: 11px 12px; border: 0; border-radius: 0; outline: none; background: transparent;
  font-weight: 500; line-height: 1.4;
}
.entry textarea { min-height: 6.2em; resize: vertical; }
.entry input[type="date"] { accent-color: var(--ink); }
.entry__error { grid-column: 2; padding: 8px 12px 9px; font-size: 0.8125rem; font-weight: 500; background: #fff; border-left: 1px solid var(--line); }
.entry.is-invalid .entry__label::after { content: " · check this entry"; font-weight: 400; color: var(--ink-2); }

/* A choice that is ticked: a square in the rail's language, with a tick drawn in it */
.ticks { display: flex; flex-wrap: wrap; gap: 0 22px; padding: 5px 12px; }
.tick { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0; font-weight: 500; cursor: pointer; }
.tick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.tick__box {
  flex: none; width: 13px; height: 13px; transform: translateY(2px);
  background: var(--paper) center / 9px 9px no-repeat; border: 1px solid var(--ink);
  transition: background-color 120ms var(--ease-out);
}
.tick:hover .tick__box { background-color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.tick input:checked + .tick__box {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.2 4.1 7.5 8.3 2.6' fill='none' stroke='%23efede8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tick:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.tick--line { font-weight: 400; max-width: 64ch; }
.tick--line a { font-weight: 500; }
.enq__send { margin-top: 28px; }
.enq__send .entry__error { padding: 6px 0 0 21px; background: none; border: 0; }
.enq__send .fit__error { margin-top: 18px; }
.enq__send .results__actions { margin-top: 20px; align-items: center; }

/* Sending, and the record of what was sent */
.enq__meter { padding: 26px 0 4px; }
.enq__meter-figure, .enq__ref { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.enq__meter-what, .enq__ref-note { margin-top: 10px; font-size: 0.9375rem; }
.enq__record { padding-top: 26px; }
.enq__ref { overflow-wrap: anywhere; }
.enq__record .titleblock { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.8fr); margin-top: 22px; border-top: 1px solid var(--line); }
.enq.is-sent .file--sent::after { content: none; }      /* sent: the lines under the files have done their work */
.enq__paper > .grp-label { margin-top: 24px; }
.enq__problem { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink); }
.enq__problem-text { max-width: 58ch; font-weight: 500; }
.enq__problem .detail__small { margin-top: 14px; }
.enq__after { margin-top: 24px; font-size: 0.9375rem; }
.enq__after p { max-width: 58ch; }
.enq__break { overflow-wrap: anywhere; }

/* Where the browser can, the sheet travels between the working area and the readout */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(cx-sheet) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
}

/* ---------- Privacy (privacy.html): one sheet of read rows ---------- */

.legal { padding: 0 var(--pad); }
.legal .sheet { max-width: 820px; }
.legal .tbl { padding-top: 28px; }

/* ---------- EU funding (eu-funding.html): the official notice, word for word ----------
   The flag at the size of the official lockup beside the statement, then the
   notice as running text on the same sheet as the privacy page. */

.eu-head__mark { display: flex; align-items: center; gap: 28px; }
.eu-head__mark img { flex: none; width: 108px; height: 72px; }
.notice { max-width: 68ch; padding-top: 14px; }
.notice > * + * { margin-top: 16px; }
.notice p, .notice li { line-height: 1.6; }
.notice ul { display: grid; gap: 10px; }
.notice .nb { white-space: nowrap; }      /* a project number or a period is not broken at its hyphens */
.notice li { position: relative; padding-left: 22px; }
.notice li::before {               /* a square marker, as the nodes of the process rail */
  content: ""; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; background: var(--ink);
}

/* ---------- Narrower desktops ---------- */

@media (max-width: 1279px) {
  :root { --pad: 40px; --rail-w: 208px; --readout-w: 288px; }
  .readout { padding-left: 28px; }
}
@media (max-width: 1099px) {              /* five fields no longer fit on a line: the metal starts a second one */
  .fit__form { grid-template-columns: repeat(4, minmax(0, 208px)); }
  .field--metal { grid-column: 1 / span 2; max-width: 280px; }
}

@media (max-height: 779px) {              /* short desktop windows: the readout tightens, the fact rows stay */
  .readout { margin-top: clamp(0px, 7vh, 54px); }
  .readout h2 { font-size: 1.625rem; }
  .readout > p { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; }
  .figures { margin-top: 18px; }
  .figures > div { padding: 7px 0; }
  .figures > div::before { top: 13px; }
  .stage__pin { padding-top: 28px; padding-bottom: 20px; }
  .rail__list { gap: 22px; }
}
@media (max-height: 659px) {
  .readout { margin-top: 0; }
  .readout > p { font-size: 0.875rem; line-height: 1.45; margin-top: 8px; }
  .figures { margin-top: 12px; }
  .figures > div { padding: 5px 0; font-size: 0.8125rem; }
  .figures > div::before { top: 10px; }
}

/* ---------- Compact: phones and short windows ----------
   The same pinned stage, laid out for a small viewport. Page scroll still drives
   the single position. Top to bottom: progress rail, instrument, readout. */

@media (max-width: 959px), (max-height: 599px) {
  :root { --pad: 20px; --top-h: 56px; }
  .top { gap: 16px; }
  .top__nav { gap: 20px; font-size: 0.875rem; }
  .top__logo img { height: 22px; }
  .top .button { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }

  .stage__pin {
    /* svh: the height with the browser bars showing. It does not change when the
       address bar hides, so the stage never resizes or jumps mid-scroll. */
    --facts: callout;                /* the rows below are hidden here, so the docked label carries the facts */
    height: calc(100vh - var(--top-h));
    height: calc(100svh - var(--top-h));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "rail" "centre" "bar" "readout";
    padding: 12px var(--pad) 16px;
  }

  .opening { padding: 28px var(--pad) 24px; }
  .opening h1 { font-size: clamp(1.625rem, 7.4vw, 2.25rem); line-height: 1.06; letter-spacing: -0.026em; max-width: 20ch; }
  .opening p { margin-top: 10px; font-size: 0.9375rem; }
  .keys { display: none; }

  /* Rail: a horizontal progress line, four tappable stages */
  .rail { align-self: start; padding: 0; }
  .rail__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .rail__node { padding: 19px 6px 8px 0; min-height: 44px; align-content: start; }
  .rail__node::before { top: 0; }
  .rail__name { font-size: 0.75rem; line-height: 1.25; }
  .rail__what { display: none; }
  .rail__track { left: 0; top: 5px; height: 1px; width: 0; }
  .rail__fill { left: 0; top: -0.5px; width: 100%; height: 2px; transform: scaleX(0); }

  .instrument { margin: 0 calc(var(--pad) * -1 + 4px); }

  /* The scrubber is the fine control, scroll the coarse one: one position, two
     ways to move it. It sits under the instrument where a thumb reaches, with a
     44px touch target and the live figure riding on the handle. */
  .transport {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 44px auto;
    align-items: center; gap: 0; width: 100%; height: auto; margin: 0; padding: 0;
  }
  .play { grid-column: 1; grid-row: 1; width: 44px; height: 44px; margin-right: 12px; }
  .scrub { grid-column: 2 / 4; grid-row: 1; height: 44px; }
  .scrub::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; border-radius: 2px; }
  .scrub::-moz-range-thumb { width: 24px; height: 24px; border-radius: 2px; }
  .transport__end { grid-column: 2; grid-row: 2; font-size: 0.75rem; line-height: 1.2; margin-top: -6px; }
  .transport__end--right { grid-column: 3; justify-self: end; }
  .tip {
    display: block; position: absolute; left: 0; top: -15px;
    padding: 2px 7px; font-size: 0.75rem; font-weight: 600; line-height: 1.35; white-space: nowrap;
    color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
    pointer-events: none; will-change: transform;
  }

  /* The handle carries the live figure, so the readout keeps the heading and the sentence. */
  .readout { align-self: start; margin-top: 0; padding: 12px 0 0; }
  .readout h2 { font-size: 1.375rem; line-height: 1.12; letter-spacing: -0.018em; }
  .readout > p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; max-width: none; }
  /* The live figure rides on the handle and the facts ride on the instrument;
     the list stays for assistive technology. */
  .readout .figures { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

  .fit { padding: 64px var(--pad) 72px; }
  .fit__head { grid-template-columns: 1fr; gap: 16px; }
  .fit__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 32px; }
  .field--metal { grid-column: 1 / -1; max-width: none; }
  .fit__body { margin-top: 28px; }
  .results { margin-top: 28px; }
  .results__list { grid-template-columns: 1fr; gap: 20px 0; }
  .closing { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--pad) 80px; }
}

/* Narrow phones: the two page links take a second line of the header, so the
   logo and the button keep their size. The current page's line sits on the
   header's own edge. Wider compact windows keep everything on one line. */
@media (max-width: 559px) {
  :root { --top-h: 84px; }
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 52px minmax(0, 1fr); align-items: center; gap: 0 12px; }
  .top__logo { grid-area: 1 / 1; justify-self: start; margin-right: 0; }
  .top .button { grid-area: 1 / 2; }
  .top__nav { grid-area: 2 / 1 / 3 / 3; align-self: stretch; gap: 22px; }
  .top__nav a { display: flex; align-items: center; padding: 0 1px; border-bottom-width: 2px; }
  .top__nav a[aria-current="page"] { box-shadow: none; }
  .foot__nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 24px; }      /* five links: three, then two */
  .eu-head__mark { flex-direction: column; align-items: flex-start; gap: 18px; }      /* the flag above the statement */
}

@media (max-width: 359px) {
  .rail__name { font-size: 0.6875rem; letter-spacing: -0.01em; }
  .rail__node { padding-right: 4px; }
}

/* Shorter portrait screens: the readout gives way so the instrument keeps its size */
@media (max-width: 959px) and (max-height: 700px) and (orientation: portrait) {
  .opening { padding: 20px var(--pad) 18px; }
  .opening h1 { font-size: 1.5rem; }
  .opening p { font-size: 0.875rem; margin-top: 8px; }
  .transport { grid-template-rows: 44px; }
  .transport__end { display: none; }
  .readout { padding-top: 6px; }
  .readout h2 { font-size: 1.25rem; }
  .readout > p { font-size: 0.875rem; line-height: 1.4; margin-top: 6px; }
}
@media (max-width: 959px) and (max-height: 600px) and (orientation: portrait) {
  .readout > p { display: none; }
}

/* Short and wide (a phone on its side): instrument left, readout right */
@media (max-height: 599px) and (min-width: 560px) {
  :root { --top-h: 48px; }
  .top .button { min-height: 36px; }
  .stage__pin {
    grid-template-columns: minmax(0, 1fr) min(40%, 330px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "rail rail" "centre readout" "bar readout";
    column-gap: 20px; padding: 8px var(--pad) 8px;
  }
  .opening { padding: 14px var(--pad) 12px; }
  .opening h1 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.02em; max-width: none; }
  .opening p { font-size: 0.875rem; margin-top: 4px; max-width: none; }
  .rail__node { padding-bottom: 2px; min-height: 40px; }
  .instrument { margin: 0; }
  .readout { align-self: center; padding: 0; }
  .readout h2 { font-size: 1.25rem; }
  .readout > p { font-size: 0.875rem; }
  .transport { grid-template-rows: 44px; }
  .transport__end { display: none; }
  .fit__form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field--metal { grid-column: 1 / span 2; }
}
@media (max-height: 599px) and (min-width: 560px) and (max-height: 360px) {
  .readout > p { display: none; }
}

/* ---------- What Concept X does: narrower and compact ----------
   Three columns while a cell keeps a short line, then two, then one on a phone. */

@media (max-width: 1099px) {
  .does__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px), (max-height: 599px) {
  .does { padding: 64px var(--pad) 72px; }
  .does__head p { margin-top: 16px; font-size: 1rem; }
  .does__list { margin-top: 28px; }
  .does__list > li { padding: 20px 24px 26px 20px; }
  .does__list h3 { margin-top: 18px; }
}
@media (max-width: 559px) {
  .does__list { grid-template-columns: minmax(0, 1fr); }
  .does__list > li { padding: 18px 20px 22px 16px; }
  .does__list h3 { margin-top: 14px; font-size: 1.25rem; }
}

/* ---------- Data sheet: narrower and shorter desktops ---------- */

@media (max-width: 1279px) {
  .bench__detail { padding-left: 28px; }
}
@media (max-width: 1099px) and (min-width: 960px) {
  .sheet { padding: 0 18px 22px; }
  .grid, .lists { font-size: 0.8125rem; }
  .grid--sizes .c-name { width: 39%; }
  .grid--sizes .c-n { width: 13.5%; }
  .grid--sizes .c-load { width: 20.5%; }
  .grid thead th { font-size: 0.6875rem; }
  .grid th:last-child, .grid td:last-child { padding-right: 6px; }
  .row > th:first-child, li.row, .grid thead th:first-child { padding-left: 22px; }
  .row.has-mark > :first-child::before { left: 5px; }
  .sheet__part { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 779px) {
  .bench__side, .bench__detail { padding-top: 28px; padding-bottom: 20px; }
  .sheet { margin-top: 28px; }
  .rail--filter .rail__list { gap: 18px; }
  .detail .drawing__note { min-height: 4.35em; }
  .detail__title { margin-top: 12px; font-size: 1.25rem; }
  .detail .figures { margin-top: 8px; min-height: 60px; }
  .detail .figures > div { padding: 5px 0; }
  .detail .figures > div::before { top: 11px; }
  .detail__part { margin-top: 10px; }
}
@media (max-height: 659px) {
  .rail--filter { padding-top: 0; padding-bottom: 12px; }
  .rail--filter .rail__list { gap: 12px; }
  .detail .drawing__note { margin-top: 6px; font-size: 0.75rem; }
  .detail__title { margin-top: 8px; font-size: 1.125rem; }
  .detail__small { font-size: 0.75rem; }
}

/* ---------- Data sheet: compact ----------
   One column. The filter becomes a select and stays under the header with the
   units switch. The drawing opens under the selected row. */

@media (max-width: 959px), (max-height: 599px) {
  .foot { padding: 8px var(--pad); }

  .bench { display: block; padding: 0; }
  .bench__side {
    z-index: 10; height: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 8px var(--pad); background: var(--ground); border-bottom: 1px solid var(--line-strong);
  }
  .rail--filter, .units__label, .bench__detail { display: none; }
  .pick { display: block; }
  .units { flex: none; align-self: auto; }
  .units button { min-height: 44px; padding: 0 10px; gap: 5px; }

  .sheet { margin: 0; padding: 0 var(--pad) 28px; border-width: 0 0 1px; }
  .sheet__bar { min-height: 56px; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl { padding-top: 32px; }
  .tbl h2 { font-size: 1.25rem; }
  .grid { font-size: 0.8125rem; }
  .grid--sizes .c-name { width: 43.5%; }     /* room for "Doosan MYNX 9500" on one line at 390 px */
  .grid--sizes .c-n { width: 12.3%; }
  .grid--sizes .c-load { width: 19.6%; }
  .grid--sizes .row > th:first-child { padding-right: 4px; }
  .grid--pairs .c-name { width: 46%; }
  .grid th, .grid td { padding-top: 13px; padding-bottom: 13px; }          /* rows a thumb can hit */
  .grid thead th { padding-top: 0; padding-bottom: 8px; font-size: 0.6875rem; }
  .grid th:last-child, .grid td:last-child { padding-right: 6px; }
  .grp th { padding-top: 20px; padding-bottom: 6px; }
  .sheet__part { grid-template-columns: minmax(0, 1fr); }
  .row.has-mark > :first-child::before { top: 18px; left: 4px; }
  .row > th:first-child, li.row, .grid thead th:first-child { padding-left: 22px; }
  li.row { padding-top: 13px; padding-bottom: 13px; }

  /* The drawing, docked under the selected row */
  .dock { display: table-row; }
  .grid .dock > td { padding: 0 0 20px; border-bottom: 1px solid var(--line-strong); }
  .detail { display: block; height: auto; padding-top: 12px; }
  .detail__drawing { display: block; max-height: none; }
  .detail .drawing__sheet { min-height: 232px; }
  .detail .drawing__note, .detail .figures, .detail__part { min-height: 0; }
  .detail__title { margin-top: 14px; font-size: 1.25rem; }
  .detail .figures > div::before { left: -14px; }
}
@media (max-width: 359px) {
  .pick select { padding: 0 30px 0 10px; font-size: 0.875rem; }
  .pick svg { right: 10px; }
  .units button { padding: 0 7px; gap: 4px; font-size: 0.75rem; }
}
@media (max-height: 599px) and (min-width: 560px) {          /* a phone on its side: drawing left, readout right */
  .bench__side { top: var(--top-h); }
  .detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .detail__title { margin-top: 0; }
  .titleblock { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- About: narrower, shorter and compact ---------- */

@media (max-width: 1279px) {
  .opening--record { gap: 40px; }
  .where__head, .where__out, .proof__text, .enq__head, .enq__out { padding-left: 28px; }
}

/* No room for the list beside the map: the map and the readout side by side.
   The country field heads the readout and its list opens under it. */
@media (max-width: 1099px), (max-height: 599px) {
  .where {
    grid-template-columns: minmax(0, 1fr) var(--readout-w); justify-content: normal;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "map  head"
      "map  find"
      "map  bar"
      "map  out";
  }
  .grid--record .c-name { width: 38%; }
  .where__map { display: block; grid-area: map; align-self: start; min-width: 0; }      /* the sheet and its caption stay together, whatever opens beside them */
  .where__find { height: auto; min-height: 0; margin-top: 20px; padding: 0 0 0 28px; }
  .where__find .field__box { height: 44px; }
  .where__find .field__box input { padding-right: 38px; font-size: 1rem; text-overflow: ellipsis; }      /* 16 px: a phone does not zoom the page on focus */
  .where__find .field__box svg { display: block; }
  .where__panel { display: none; margin-top: 6px; padding-top: 8px; max-height: min(46vh, 328px); background: var(--ground); border: 1px solid var(--line-strong); }
  .where__find.is-open .where__panel { display: flex; }
  .where__list { border-bottom: 0; }
  .where__list li.row { padding-top: 11px; padding-bottom: 11px; }     /* rows a thumb can hit */
  .where__find .tbl__empty { padding: 12px 10px; border-bottom: 0; }
  .where__bar { align-self: auto; margin-top: 10px; padding-left: 28px; }
  .where__out { margin-top: 20px; }
  .proof { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "figs"; row-gap: 48px; }
  .proof__text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; padding-left: 0; }
}

@media (max-width: 959px), (max-height: 599px) {
  .opening--record { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .record, .enq__paper { padding: 0 18px 6px; }
  .record .tbl { padding-top: 18px; }
  .where { padding: 24px var(--pad) 32px; }
  .where h2, .proof h2, .enq__head h2 { font-size: 1.375rem; line-height: 1.12; letter-spacing: -0.018em; }
  .where__head > p, .proof__item > p, .enq__head > p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; }
  .proof { padding: 64px var(--pad) 72px; row-gap: 32px; }
}

/* One column: the heading, the map across the width, the country field and the units, the readout */
@media (max-width: 959px) and (min-height: 600px), (max-width: 559px) {
  .where {
    --units-w: 168px;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "head" "map" "find" "out";
  }
  .where__head, .where__out, .where__find, .where__bar { padding-left: 0; }
  /* The field and the units on one line: both stand in the same row of the
     grid, the field leaving the units their width. The list opens under both. */
  .where__find { margin-top: 16px; }
  .where__find .field { margin-right: calc(var(--units-w) + 10px); }
  .where__bar { grid-area: find; justify-self: end; align-self: start; width: var(--units-w); margin-top: 16px; }
  .where__bar .units, .where__bar .units__set { width: 100%; }
  .where__head > p { max-width: none; }
  .where__view { position: static; margin-top: 14px; }                 /* the sheet is too small to carry the switch: it stands over it */
  .where .drawing__sheet { width: auto; min-height: 0; max-height: none; margin: 10px calc(var(--pad) * -1 + 4px) 0; }
  .where .drawing__note { margin-top: 10px; }
  .where__out .figures > div::before { left: -14px; }
}
@media (max-width: 559px) {
  .where { --units-w: 104px; }
  .where .drawing__sheet { aspect-ratio: 4 / 3; }                      /* a phone: taller, for Europe's small countries */
  .where__bar .units button span { display: none; }                    /* room for the longest country name: the switch shows the area units alone */
  .proof__text { grid-template-columns: minmax(0, 1fr); }
  .proof__item > p { max-width: none; }
  .figs--pair { flex-direction: column; }
  .figs--pair > .fig { flex: none; }
}

/* ---------- Send a drawing: narrower and compact ---------- */

/* No room for three zones: the steps run across the top, as the stage's rail
   does on a phone, over the working area and the readout. */
@media (min-width: 960px) and (max-width: 1099px) and (min-height: 600px) {
  .enq {
    grid-template-columns: minmax(0, 1fr) var(--readout-w);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "rail rail"
      "work head"
      "work out";
  }
  .rail--steps { position: relative; top: auto; padding: 0 0 28px; }
  .rail--steps .rail__count { margin-bottom: 12px; }
  .rail--steps .rail__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .rail--steps .rail__node { padding: 36px 16px 0 0; align-content: start; }
  .rail--steps .rail__track { left: 0; top: 12.5px; width: 0; height: 1px; }
  .rail--steps .rail__fill { left: 0; top: -0.5px; width: 100%; height: 2px; }
}

@media (max-height: 659px) {              /* a short window: the head gives its room to the working area */
  .opening--brief { padding-top: 26px; padding-bottom: 22px; }
}

/* One column: the steps, the heading, the working area, the readout */
@media (max-width: 959px), (max-height: 599px) {
  .opening--brief { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .opening--brief p { margin-top: 10px; padding-bottom: 0; }
  .enq { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "rail" "head" "work" "out"; padding: 14px var(--pad) 64px; }
  .rail--steps { position: relative; top: auto; padding: 0 0 6px; }
  /* The steps across the top: the numbered squares on the line, each name under its square */
  .rail--steps .rail__count { margin-bottom: 10px; }
  .rail--steps .rail__list { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.86fr); gap: 0; }
  .rail--steps .rail__node { padding: 34px 8px 8px 0; align-content: start; }
  .rail--steps .rail__name { font-size: 0.8125rem; line-height: 1.25; letter-spacing: 0; }
  .rail--steps .rail__end .rail__name { font-size: 0.75rem; }
  .rail--steps .rail__track { left: 0; top: 12.5px; width: 0; height: 1px; }
  .rail--steps .rail__fill { left: 0; top: -0.5px; width: 100%; height: 2px; }
  .enq[data-step="drawing"] .enq__band { min-height: 0; padding: 16px 16px 18px; }
  .enq[data-step="drawing"] .enq__band-title { font-size: 1.375rem; }
  .enq__head, .enq__out { padding-left: 0; }
  .enq__head > p { max-width: none; }
  .enq__work { margin-top: 16px; }
  .enq__out { margin-top: 24px; }
  .enq__band { flex-wrap: wrap; min-height: 0; padding: 12px 14px 14px; }
  .enq__band-title { font-size: 1.125rem; }
  .enq__band .button { min-height: 44px; }
  .enq__foot { flex-wrap: wrap; }
  .enq__foot .drawing__note { flex-basis: 100%; min-height: 0; }
  .enq__foot .units button, .enq__out dd .units button { min-height: 44px; }
  .enq__out .figures > div::before { left: -14px; }

  /* A file: its name, then its type and size, then its state; the control to remove it beside them */
  .file, .file--sent { grid-template-columns: minmax(0, 1fr) 44px; column-gap: 8px; }
  li.file { padding-top: 11px; padding-bottom: 11px; padding-right: 0; }
  .file__name, .file__meta, .file__state { grid-column: 1; }
  .file--sent > * { grid-column: 1 / -1; }
  .file__x { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }

  .enq__paper.enq__panel { padding-bottom: 22px; }
  .enq__ref { font-size: min(2.25rem, 8.4vw); white-space: nowrap; }      /* the reference stays on one line */
  .enq__record .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enq__record .titleblock > :last-child { grid-column: 1 / -1; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry__label { padding: 10px 0 6px; }
  .entry__value { border-left: 0; }
  .entry input:not([type="checkbox"]), .entry textarea { min-height: 44px; font-size: 1rem; }      /* 16 px: a phone does not zoom the page on focus */
  .entry__error { grid-column: 1; border-left: 0; }
  .tick { min-height: 44px; align-items: center; }
  .tick__box { transform: none; }
  .tick--line { align-items: flex-start; }
  .tick--line .tick__box { margin-top: 4px; }
  .enq__send .entry__error { padding-left: 21px; }
  .enq__size .field__box { height: 48px; }

  .legal { padding: 0; }
}
@media (min-width: 560px) and (max-width: 959px) {      /* a tablet: room for the names of the steps at a larger size */
  .rail--steps .rail__name { font-size: 0.9375rem; }
  .rail--steps .rail__end .rail__name { font-size: 0.8125rem; }
}
@media (max-width: 559px) {                              /* a phone: the button that adds files and the way on take the width */
  .enq[data-step="drawing"] .enq__band .button, .enq .enq__next { width: 100%; }
}

/* One column: the way on from steps 1 and 2 is held at the bottom of the window for
   as long as the enquiry is on screen. The section lays its parts out as a column
   in the order of the page (a flex column, where a held box may travel the whole
   section; in a grid it could not leave its own row). The bar is the last part: it
   settles there at the end of the enquiry and never stands over what follows. */
@media (max-width: 959px), (max-height: 599px) {
  .enq { display: flex; flex-direction: column; align-items: stretch; }
  .enq .enq__bar {
    position: sticky; bottom: 0; z-index: 5;
    margin: 24px calc(var(--pad) * -1) 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ground); border-top: 1px solid var(--line-strong);
  }
  .enq .enq__bar.is-waiting { position: static; }      /* no file yet and "Choose files" is not clear of it: the bar keeps its place at the foot of the enquiry */
  .enq .enq__bar .enq__go { flex-wrap: nowrap; align-items: center; gap: 16px; margin: 0; }
  .enq .enq__bar .enq__next { flex: 0 1 auto; width: auto; min-width: 0; }
  .enq .enq__bar .textlink { flex: none; }
  .enq[data-step="drawing"] :is(input, select, button, a), .enq[data-step="fit"] :is(input, select, button, a), .enq[data-step="fit"] #fit-error { scroll-margin-bottom: 96px; }
  .enq[data-step] .enq__bar :is(button, a) { scroll-margin-bottom: 0; }
}
@media (max-width: 559px) {                              /* a phone: the way on takes the width the link beside it leaves */
  .enq .enq__bar .enq__next { flex: 1 1 auto; padding: 0 16px; }
}

/* ---------- Print: the data sheet on A4 ----------
   Every row, whatever the filter shows on screen. No controls, no drawing. */

@media print {
  @page { size: A4; margin: 14mm 14mm 15mm; }
  html { font-size: 12.5px; }
  body { background: #fff; }
  body::before, .skip, .top, .opening, .bench__side, .bench__detail, .closing, .foot,
  .sheet__bar, .sheet__part, .sheet__foot, .dock, .figrow, .zoom, .tbl__empty, .row__part, .row.has-mark > :first-child::before { display: none !important; }
  .bench { display: block; padding: 0; }
  .sheet { margin: 0; padding: 0; background: none; border: 0; }
  .sheet__print { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
  .sheet__print img { width: 152px; height: 27px; }
  .sheet__print div { text-align: right; }
  .sheet__print-title { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); margin-bottom: 4px; }
  .titleblock { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px 0; }
  .tbl { padding-top: 22px; break-inside: avoid; }
  .tbl h2 { font-size: 1.125rem; break-after: avoid; }
  .tbl__body { margin-top: 10px; }
  .grid th, .grid td, li.row { padding-top: 4px; padding-bottom: 4px; }
  .grp th { padding-top: 12px; }
  .grid tr, li.row { break-inside: avoid; }
  .row { cursor: auto; }
  /* The envelopes at 1 : 100. The drawing keeps its own pixel size: the scale depends on it. */
  .sheet__figure { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0 20px; margin-top: 14px; break-inside: avoid; }
  .sheet__figure svg { display: block; overflow: visible; }
  .sheet__figure .dw-env-label { stroke: #fff; }
  .sheet__figure figcaption { display: grid; gap: 3px; padding-bottom: 2px; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); }
  .tbl { padding-top: 18px; }
  .lists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
}

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