/* Know-how and product pages (speech quality, data and TV, Coast Guard). Builds on styles.css (tokens, sign bar, signs, flaps, footer). */

/* ---------- Page head ---------- */
.sq-head {
  background: var(--platform);
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--platform-deep);
}
.sq-back {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 650; color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.sq-back svg { width: 20px; height: 20px; fill: currentColor; transform: rotate(180deg); transition: transform 0.25s var(--ease-out); }
.sq-back:hover { color: var(--ink); }
.sq-back:hover svg { transform: rotate(180deg) translateX(3px); }
.sq-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(32px, 6vw, 112px);
  align-items: end;
}
.sq-back { grid-column: 1 / -1; justify-self: start; }
.sq-head h1 {
  margin-top: clamp(20px, 3vw, 40px);
  font-size: clamp(2.75rem, 5.6vw, 5.75rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  max-width: 14ch;
}
.sq-head__lead {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(1.1875rem, 1.5vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

/* Recommendations board: a small departure board that jumps to each standard. */
.recs {
  background: var(--signal);
  color: var(--flap-ink);
  border-radius: 4px;
  padding: 14px 10px 10px;
  box-shadow: 0 14px 30px -12px rgb(18 18 18 / 0.45);
}
.recs__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 0 8px 10px;
  border-bottom: 1px solid #2E2E2C;
}
.recs__title { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.recs__list { list-style: none; margin: 6px 0 0; padding: 0; }
.recs__group {
  margin: 14px 0 0; padding: 0 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-black-2);
}
.recs__group + .recs__list { margin-top: 4px; }
.recs__list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 18px;
  padding: 8px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out);
}
.recs__list li + li a { border-top: 1px solid #2A2A28; border-radius: 0; }
.recs__list a:hover { background: #242423; }
.recs__list a:focus-visible { outline-offset: -3px; }
.recs__code { font-size: 1.375rem; font-weight: 650; font-stretch: 66%; line-height: 1; }
.recs__name { font-weight: 650; font-size: 1.0625rem; word-spacing: 0.1em; }
.recs__what {
  font-size: 0.9375rem; font-weight: 600; font-stretch: 75%;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--on-black-2);
}

/* ---------- Body: route index + article ---------- */
.sq-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(80px, 10vw, 144px);
}

/* Route index: stops passed are black, the current stop is red. */
.sq-toc { position: sticky; top: calc(var(--bar-h) + 40px); align-self: start; }
.sq-toc__title { font-weight: 750; font-size: 1.0625rem; }
.sq-toc__line { list-style: none; margin: 20px 0 0; padding: 0; }
.sq-toc__part { margin-top: 24px; font-weight: 750; font-size: 0.9375rem; }
.sq-toc__part + .sq-toc__line { margin-top: 12px; }
.sq-toc__part a { color: var(--ink); text-decoration: none; }
.sq-toc__part a:hover { text-decoration: underline; }
.sq-toc__line li { position: relative; padding: 0 0 22px 38px; }
.sq-toc__line li::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--enamel); border: 5px solid var(--signal);
  transition: background-color 0.25s var(--ease-out);
}
.sq-toc__line li:not(:last-child)::after {
  content: ""; position: absolute; left: 8.5px; top: 11px; bottom: -11px; width: 5px;
  background: var(--signal);
}
.sq-toc__line li.is-passed::before { background: var(--signal); }
.sq-toc__line li.is-current::before { background: var(--red); }
.sq-toc__line a {
  display: block;
  font-weight: 600; line-height: 1.3; color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.sq-toc__line a:hover { color: var(--ink); text-decoration: underline; }
.sq-toc__line a[aria-current] { color: var(--ink); font-weight: 750; }

/* ---------- Article ---------- */
.sq-article { min-width: 0; }
.sq-section + .sq-section,
.standards + .sq-section,
.sq-section + .standards,
.film + .sq-section { margin-top: clamp(72px, 8vw, 120px); }
.sq-article h2, .kh-part .sq-section > h3, .kh-part > .standards .standard__head h3 {
  font-size: clamp(1.875rem, 2.8vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.025em;
}
.sq-section > h2, .kh-part .sq-section > h3 { margin-bottom: 22px; }

/* Parts: a page that covers two subjects hangs a platform sign above each. */
.film + .kh-part, .kh-part + .kh-part { margin-top: clamp(88px, 10vw, 144px); }
.sq-article .kh-part__sign {
  padding: 20px 26px;
  border-radius: 4px;
  background: var(--signal); color: #fff;
  font-size: clamp(1.625rem, 2.4vw, 2.25rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
}
.kh-part__sign + .sq-section { margin-top: clamp(40px, 5vw, 64px); }
.sq-section > p {
  max-width: 68ch;
  font-size: 1.125rem; line-height: 1.65;
  color: var(--ink-2);
}
.sq-section > p + p { margin-top: 1em; }
.sq-article strong { color: var(--ink); font-weight: 700; }

/* ---------- Questions and answers: each question a heading of its own, to link to and quote ---------- */
.faq > h4 {
  max-width: 44ch;
  margin: clamp(40px, 4.4vw, 56px) 0 14px;
  font-size: clamp(1.25rem, 1.6vw, 1.4375rem); line-height: 1.25; letter-spacing: -0.015em;
  text-wrap: balance;
}
.faq > h3 + h4 { margin-top: 0; }

/* ---------- AnchorMOS: x-fabric's own score, marked with the one red ---------- */
.anchormos { border-top: 4px solid var(--red); padding-top: clamp(28px, 3vw, 40px); }
/* two columns like PESQ and POLQA above: the text on the left, the points on the right */
.anchormos {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;   /* the last row takes what the points need beyond the text */
  column-gap: clamp(32px, 4vw, 56px); align-items: start;
}
.anchormos > * { grid-column: 1; }
/* the points start right under the red rule, beside the heading, without a rule of their own */
.anchormos > .standard--points { grid-column: 2; grid-row: 1 / 5; border-top: 0; padding-top: 0; }
.standard--points .standard__head { justify-content: flex-end; }
.standard--points .standard__list { margin-top: 10px; }
/* named as large as PESQ and POLQA above it, with what it is beneath */
.sq-section > p.anchormos__sub { margin: -12px 0 26px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); font-weight: 650; line-height: 1.3; color: var(--ink-2); }

/* ---------- Film slot ---------- */
/* A station screen. Until the video is released (data-film-pending) it shows a lettered plate;
   afterwards the video with its poster, under one red play sign. */
.film { margin: clamp(48px, 6vw, 80px) 0 0; }
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--signal);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgb(18 18 18 / 0.55);
}
.film__video { display: block; width: 100%; height: 100%; background: var(--signal); }
.film[data-film-pending] .film__video { display: none; }
.film__plate {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(16px, 3vw, 40px);
  color: var(--flap-ink);
}
.film[data-film-pending] .film__plate { display: flex; }
.film__mark { position: absolute; top: clamp(14px, 2.2vw, 28px); left: clamp(14px, 2.2vw, 28px); width: clamp(68px, 7.3vw, 107px); height: auto; }
.film__flaps {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.35em 0.5em;
  font-size: clamp(1.125rem, 3vw, 2.625rem);
  font-stretch: 66%; font-weight: 650; text-transform: uppercase;
  line-height: 1;
}
.film__play {
  position: absolute; left: 50%; bottom: clamp(16px, 3vw, 40px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 18px;
  border: 0; border-radius: 3px;
  background: var(--red); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
.film__play:hover { background: var(--red-deep); }
.film__play:active { transform: translateX(-50%) translateY(1px); }
.film__play[disabled] { cursor: default; background: var(--red); }
.film__play-icon { width: 20px; height: 20px; fill: currentColor; }
.film:not([data-film-pending]) .film__play { top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 16px 28px 16px 22px; font-size: 1.1875rem; }
.film:not([data-film-pending]) .film__play:active { transform: translate(-50%, -50%) translateY(1px); }
.film__play[hidden] { display: none; }
/* released but without script: the native controls carry it */
.film:not([data-film-pending]) .film__play[disabled] { display: none; }
.film figcaption {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px;
  margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2);
}
.film figcaption > span:first-child { flex: 1 1 32ch; max-width: 68ch; }
/* Film language: two plates, the chosen one black. Each cut carries its own captions. */
.film__lang { display: inline-flex; gap: 2px; flex: none; }
.film__lang[hidden] { display: none; }
.film__lang button {
  padding: 7px 14px;
  border: 0; border-radius: 3px;
  background: var(--platform); color: var(--ink);
  font: inherit; font-weight: 650; font-size: 0.9375rem; line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.film__lang button:hover { background: var(--platform-deep); }
.film__lang button[aria-pressed="true"] { background: var(--signal); color: #fff; cursor: default; }
.film__video::cue {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-weight: 500;
  color: var(--flap-ink); background: rgb(18 18 18 / 0.82);
}

/* ---------- MOS board ---------- */
.mos-board {
  margin: clamp(28px, 3vw, 40px) 0;
  max-width: 780px;
  background: var(--signal);
  color: var(--flap-ink);
  border-radius: 4px;
  padding: 14px 18px 8px;
  box-shadow: 0 14px 30px -12px rgb(18 18 18 / 0.45);
}
.mos-board__table { width: 100%; border-collapse: collapse; }
.mos-board__table caption {
  text-align: left;
  padding: 0 2px 10px;
  border-bottom: 1px solid #2E2E2C;
}
.mos-board__title { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.mos-board__note {
  float: right;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--on-black-2);
}
.mos-board__table thead th {
  text-align: left;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-black-2);
  padding: 12px 18px 6px 0;
}
.mos-board__table thead th:last-child { padding-right: 0; }
.mos-board__table tbody th,
.mos-board__table tbody td {
  padding: 9px 18px 9px 0;
  vertical-align: middle;
  text-align: left;
}
.mos-board__table tbody td:last-child { padding-right: 0; }
.mos-board__table tbody tr + tr > * { border-top: 1px solid #2A2A28; }
.mos-board__table tbody th { width: 1%; }
.mos-digit {
  display: inline-grid; place-items: center;
  width: 1.15em; height: 1.45em;
  background: linear-gradient(#262625 0 49%, var(--flap-seam) 49% 51%, #1E1E1D 51%);
  border-radius: 3px;
  font-size: 1.75rem; font-weight: 650; font-stretch: 66%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mos-q {
  font-size: 1.1875rem; font-weight: 650; font-stretch: 72%;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.mos-board__table tbody td:last-child { color: var(--flap-ink); line-height: 1.35; }

/* ---------- Full-reference route ---------- */
.route {
  list-style: none; margin: clamp(36px, 4vw, 56px) 0 clamp(36px, 4vw, 56px); padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.route::before {
  content: ""; position: absolute; left: 11px; right: 0; top: 11px; height: 6px;
  background: var(--signal);
}
.route::after {
  content: ""; position: absolute; right: -2px; top: 5px;
  border-left: 16px solid var(--signal); border-block: 9px solid transparent;
}
.route__stop { position: relative; padding: 50px 24px 0 0; }
.route__stop::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 6px solid var(--signal);
}
.route__stop:first-child::before { background: var(--red); }
.route__stop--end::before { background: var(--signal); }
.route__stop :is(h3, h4) { font-size: 1.1875rem; line-height: 1.3; }
.route__stop p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); max-width: 26ch; }

/* Long route: a vertical line for stops that carry a paragraph each */
.route.route--long { grid-template-columns: 1fr; gap: 36px; max-width: 820px; }
.route--long::before, .route--long::after { display: none; }
.route--long .route__stop { padding: 0 0 0 56px; }
.route--long .route__stop::before { z-index: 1; }
.route--long .route__stop:not(:last-child)::after {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: -50px; width: 6px;
  background: var(--signal);
}
.route--long .route__stop :is(h3, h4) { font-size: clamp(1.25rem, 1.6vw, 1.4375rem); line-height: 1.2; padding-top: 1px; }
.route--long .route__stop p { margin-top: 10px; font-size: 1.0625rem; line-height: 1.6; max-width: 68ch; }

/* ---------- Term boards: a departure board whose rows lead with a term ---------- */
.mos-board--terms .mos-board__table tbody th { width: 42%; }
.board-term {
  display: block;
  font-size: 1.0625rem; font-weight: 650; font-stretch: 72%;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- One track or several: connection figure ---------- */
.tracks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: clamp(28px, 3vw, 40px) 0;
  max-width: 820px;
}
.tracks__panel { margin: 0; background: var(--platform); border-radius: 4px; padding: 22px 22px 18px; }
.tracks__svg { display: block; width: 100%; height: auto; fill: var(--signal); }
.tracks__start { fill: var(--red); stroke: var(--signal); stroke-width: 6; }
.tracks__end { fill: var(--signal); stroke: var(--signal); stroke-width: 6; }
.tracks__panel figcaption { margin-top: 14px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }

/* ---------- Other approaches ---------- */
.approaches { margin: 16px 0 0; border-top: 3px solid var(--signal); max-width: 820px; }
.approaches__row {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 24px;
  padding: 20px 0 22px;
  border-bottom: 1px solid #B8B8B2;
}
.approaches dt { font-weight: 750; font-size: 1.125rem; line-height: 1.3; }
.approaches dd { margin: 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- PESQ / POLQA ---------- */
.standards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.standard { border-top: 3px solid var(--signal); padding-top: 22px; }
.standard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; }
.standard__meta { display: flex; gap: 6px; }
.standard__meta span {
  background: var(--signal); color: #fff;
  font-size: 0.875rem; font-weight: 650; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  padding: 5px 9px 6px;
  border-radius: 3px;
}
.standard__list { list-style: none; margin: 18px 0 0; padding: 0; }
.standard__list li {
  position: relative;
  padding: 13px 0 14px 22px;
  border-bottom: 1px solid #CFCFC9;
  color: var(--ink-2);
}
.standard__list li::before {
  content: ""; position: absolute; left: 0; top: 1.3em;
  width: 8px; height: 8px; background: var(--signal);
}

.standard__head h3 { font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1.2; }

/* ---------- Coast Guard: topology schematics, quotes ---------- */
/* Four small line maps share one network (defs in the page); only the red test paths differ. */
.topo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.topos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: clamp(28px, 3vw, 40px) 0 0;
  max-width: 820px;
}
.topo { margin: 0; background: var(--platform); border-radius: 4px; padding: 20px 22px 22px; }
.topo__svg { display: block; width: 100%; height: auto; }
.topo__net { fill: none; stroke: #A3A39D; stroke-width: 6; stroke-linejoin: round; }
.topo__spur { stroke-width: 4; }
.topo__tests {
  fill: none; stroke: var(--red); stroke-width: 4; stroke-linejoin: round;
  stroke-dasharray: 8 6;
  animation: topo-march 1.2s linear infinite;
}
.topo__tests--fine { stroke-width: 2.5; }
@keyframes topo-march { to { stroke-dashoffset: -14; } }
.topo__core circle, .topo__core-key { fill: #fff; stroke: var(--signal); stroke-width: 5; }
.topo__edge circle, .topo__edge-key { fill: #fff; stroke: var(--signal); stroke-width: 4; }
.topo__central { fill: var(--cg-central, var(--signal)); }
.topo--mesh { --cg-central: #B8B8B2; }
.topo figcaption { margin-top: 14px; }
.topo h3 { font-size: 1.1875rem; line-height: 1.3; }
.topo__eval { margin: 8px 0 0; }
.topo__eval div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; padding: 6px 0; }
.topo__eval div + div { border-top: 1px solid #C4C4BE; }
.topo__eval dt { font-weight: 700; font-size: 0.875rem; padding-top: 1px; }
.topo__eval dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.topos__key {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 0.9375rem; color: var(--ink-2);
}
.topos__key li { display: flex; align-items: center; gap: 8px; }
.topos__key svg { width: 22px; height: 22px; flex: none; }
.topos__key .topo__tests { animation: none; }
.topos + .topos__key + p { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  .topo__tests { animation: none; }
}

.cg-quote { margin: clamp(24px, 3vw, 36px) 0; border-top: 4px solid var(--red); padding-top: 18px; max-width: 44ch; }
.cg-quote p { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
.cg-quote footer { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.sq-section > h2 + .cg-quote { margin-top: 0; }
.sq-section > p + .standards { margin-top: clamp(28px, 3vw, 40px); }

.board-ref { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 500; color: var(--on-black-2); }
.route__alias { font-weight: 500; color: var(--ink-2); }

/* ---------- What a good measurement needs ---------- */
.needs { max-width: 900px; }
.needs dt { font-size: 1.1875rem; }

/* ---------- Close ---------- */
.sq-close {
  margin-top: clamp(72px, 8vw, 120px);
  background: var(--platform);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 44px);
}
.sq-close p { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); font-weight: 650; line-height: 1.35; max-width: 46ch; }
.sq-close .actions { margin-top: 24px; }
.sq-close .actions:first-child { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sq-head__inner { grid-template-columns: 1fr; }
  .recs { margin-top: 36px; max-width: 560px; }
  .sq-body { grid-template-columns: 1fr; gap: 48px; }
  .sq-toc { position: static; }
}

@media (max-width: 820px) {
  .standards { grid-template-columns: 1fr; gap: 56px; }
  .anchormos { display: block; }
  .anchormos > .standard--points { margin-top: clamp(28px, 4vw, 40px); }
  .approaches__row { grid-template-columns: 1fr; gap: 6px; }
  .topos { grid-template-columns: 1fr; }

  .route { grid-template-columns: 1fr; gap: 28px; }
  .route::before, .route::after { display: none; }
  .route__stop { padding: 0 0 0 52px; }
  .route__stop::before { z-index: 1; }
  .route__stop:not(:last-child)::after {
    content: ""; position: absolute; left: 11px; top: 14px; bottom: -42px; width: 6px;
    background: var(--signal);
  }
  .route__stop p { max-width: none; }
}

@media (max-width: 560px) {
  .sq-section > p { font-size: 1.0625rem; }
  .mos-board { padding: 12px 12px 6px; }
  .mos-board__note { float: none; display: block; margin-top: 2px; }
  .mos-q { font-size: 1rem; }
  .mos-digit { font-size: 1.5rem; }
  .mos-board__table tbody th, .mos-board__table tbody td { padding-right: 12px; }
  .sq-close { padding: 20px; }
  .sq-close .sign { flex: 1 1 auto; justify-content: space-between; }
  .sq-close .sign--line span { white-space: nowrap; font-size: 0.9375rem; }
  .film:not([data-film-pending]) .film__play { padding: 10px 18px 10px 14px; font-size: 0.9375rem; }
  .film__play-icon { width: 16px; height: 16px; }

  /* long standard codes or several groups: code and body on the first line, the name beneath */
  .recs--long .recs__list a {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "code what" "name name";
    row-gap: 6px;
  }
  .recs--long .recs__code { grid-area: code; }
  .recs--long .recs__name { grid-area: name; }
  .recs--long .recs__what { grid-area: what; justify-self: end; }

  .route--long .route__stop { padding-left: 48px; }
  .tracks { grid-template-columns: 1fr; }
  .board-term { font-size: 0.9375rem; }
}

/* ---------- Imprint ---------- */
.imprint { max-width: calc(var(--max) + 2 * var(--gutter)); padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(80px, 10vw, 144px); }
.imprint .timetable dd a { color: var(--ink); }

/* ---------- Privacy notice ---------- */
.privacy .sq-section > p + .timetable,
.privacy .sq-section > .timetable + p { margin-top: clamp(24px, 2.6vw, 32px); }
.privacy .timetable dd a { color: var(--ink); }

/* ==========================================================================
   Clean Room (Roman, 2026-11-15): lighter type, more air, hairlines, white split flaps, IBM Plex
   Sans for headings (the font is declared in styles.css). Laid over the rules above; the earlier dark design without it is archived in
   archive/design-dark-2026-11-15/.
   ========================================================================== */

/* ---------- Type: lighter weights, a little smaller, more open ---------- */
.approaches dt { font-weight: 560; }

/* ---------- Split flaps in white ---------- */
.mos-board, .recs {
  background: #fff; color: var(--ink);
  border: 1px solid var(--hair); border-radius: 12px;
  box-shadow: var(--soft-shadow);
}
.mos-board__table caption, .recs__head { border-bottom-color: var(--hair); }
.mos-board__note, .mos-board__table thead th, .recs__group, .recs__what { color: var(--ink-3); }
.mos-board__table tbody tr + tr > *, .recs__list li + li a { border-top-color: var(--hair); }
.mos-board__table tbody td:last-child { color: var(--ink-2); }
.recs__list a:hover { background: var(--platform); }

/* ---------- Bars and tracks become hairlines and thin lines ---------- */
.approaches, .standard { border-top: 1px solid var(--ink-3); }
.approaches__row { border-bottom-color: var(--hair); }
.anchormos, .cg-quote { border-top-width: 2px; }
.sq-section > p.anchormos__sub { font-weight: 500; }
.route::before { height: 3px; top: 15px; }
.route__stop::before { border-width: 3px; }

/* ---------- Know-how pages ---------- */
.sq-head h1 { font-weight: 520; letter-spacing: -0.02em; }
.sq-toc__title, .sq-toc__part { font-weight: 560; }
.sq-toc__line a[aria-current] { font-weight: 600; }
.sq-toc__line li::before { border-width: 3px; }
.sq-article .kh-part__sign { background: none; color: var(--ink); padding: 0; font-weight: 520; border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.sq-article strong { font-weight: 600; }
.approaches dt { font-weight: 560; }
.standard__meta span { background: var(--platform); color: var(--ink); font-weight: 560; }
.standard__list li::before { width: 6px; height: 6px; border-radius: 50%; }
.cg-quote p { font-weight: 500; }
.sq-close p { font-weight: 500; }
.film__frame { border-radius: 12px; overflow: hidden; }
.film__lang button[aria-pressed="true"] { background: var(--ink); }
.mos-digit {
  background: linear-gradient(#FFFFFF 0 49%, #D3DAE1 49% 51%, #F2F5F8 51%);
  box-shadow: inset 0 0 0 1px #E1E7EC; border-radius: 5px; color: var(--ink); font-weight: 560;
}
.mos-q, .board-term, .recs__code { font-weight: 560; }
.topo { background: var(--platform); border-radius: 12px; }
.tracks__panel { border-radius: 12px; }

/* ---------- Headings in IBM Plex Sans ---------- */
.sq-head h1, .sq-article .kh-part__sign {
  font-family: "IBM Plex Sans", "Archivo", Arial, sans-serif;
  font-stretch: 100%;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.approaches dt {
  font-family: "IBM Plex Sans", "Archivo", Arial, sans-serif; font-stretch: 100%; font-weight: 540;
}
