/* v4 refresh — markup-help screens. Tokens only (tokens/*.css): no bare hex, weights 400/500. */

/* DRAWING MARKUP: retired 28/10/2026 (v4.20.5). The viewer's chrome is the light
   23/10 redesign, styled entirely by dr-chrome.js. The old navy rules kept leaking
   into it wherever the light CSS did not restate a property: near-white comment
   text in the Markups list, a pink Snap/Ortho pill, an orange ring on the tool.
   Do not add .mk2-* rules here. */

/* ════════════════════════════════════════════════════════════════════════
   HELP (p37–p42) — Help home, the guide, releases, issues, running costs and
   the walkthrough player. Semantic tokens only, so dark mode follows.
   ════════════════════════════════════════════════════════════════════════ */
.hp4 { display: flex; flex-direction: column; }
.hp4-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hp4-search { margin-top: 24px; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; box-sizing: border-box;
  border: 1px solid var(--ink); border-radius: var(--radius-10); background: var(--surface); color: var(--ink-3); cursor: text; }
.hp4-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.hp4-search input::placeholder { color: var(--ink-3); }
.hp4-search:focus-within { box-shadow: 0 0 0 3px var(--halo); }

/* start row: the navy hero + two stacked cards */
.hp4-start { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(280px, 1fr); gap: 14px; }
.hp4-hero { display: flex; gap: 24px; align-items: center; padding: 20px; border-radius: 14px; background: var(--brand-navy);
  color: var(--brand-on-ink-1); cursor: pointer; min-width: 0; }
:root[data-theme="dark"] .hp4-hero { box-shadow: inset 0 0 0 1px var(--hair); }
.hp4-hero:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.hp4-hero-shot { position: relative; flex: 1 1 360px; max-width: 420px; min-width: 0; aspect-ratio: 360 / 245; border-radius: 8px; overflow: hidden; background: var(--brand-white, white); }
.hp4-hero-chrome { position: absolute; top: 0; left: 0; right: 0; height: 14px; display: flex; gap: 4px; align-items: center; padding: 0 8px;
  background: var(--brand-white, white); z-index: 1; }
.hp4-hero-chrome i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-grey-100, lightgrey); }
.hp4-hero-shot img { position: absolute; top: 14px; left: 0; width: 100%; height: calc(100% - 14px); object-fit: cover; object-position: top left; }
/* the ring sits on "This week" in the thumbnail, as the design marks it */
.hp4-hero-ring { position: absolute; left: 69.5%; top: 47%; width: 27%; height: 20%; border: 2px solid var(--brand-orange); border-radius: 4px; }
.hp4-hero-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hp4-hero-eyebrow { font-size: var(--text-label); color: var(--brand-on-ink-2); }
.hp4-hero-title { font-size: 22px; font-weight: var(--weight-medium); color: var(--brand-white, white); letter-spacing: -0.01em; }
.hp4-hero-line { font-size: var(--text-body); line-height: 1.5; color: var(--brand-on-ink-1); }
.hp4-hero-row { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hp4-watch { appearance: none; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border: 0; border-radius: 999px;
  background: var(--brand-white, white); color: var(--brand-navy); font: inherit; font-size: var(--text-body); font-weight: var(--weight-medium); cursor: pointer; }
.hp4-watch > span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-navy); color: var(--brand-white, white); display: inline-flex; align-items: center; justify-content: center; }
.hp4-hero-meta { font-size: var(--text-meta-r); color: var(--brand-on-ink-2); }
.hp4-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hp4-start.one .hp4-stack .hp4-card { flex: 1; }
.hp4-card { appearance: none; flex: 1; display: flex; gap: 18px; align-items: center; text-align: left; padding: 18px; border-radius: 14px;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-width: 0;
  transition: border-color var(--dur-fast) var(--ease-out); }
.hp4-card:hover { border-color: var(--hair-strong); }
.hp4-card-art { flex: none; width: 122px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--surface-tint); display: flex; align-items: center; justify-content: center; }
.hp4-card-art .ha-wrap { transform: scale(0.62); }
.hp4-card-art.num { background: var(--tint-blue); font-size: 28px; font-weight: var(--weight-medium); color: var(--anchor); }
.hp4-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp4-card-title { font-size: 15px; font-weight: var(--weight-medium); }
.hp4-card-line { font-size: var(--text-meta-r); line-height: 1.45; color: var(--ink-2); }
.hp4-card-go { margin-top: 2px; font-size: var(--text-meta-r); font-weight: var(--weight-medium); color: var(--link); }

/* show me how + sidebar */
.hp4-learn { margin-top: 32px; scroll-margin-top: 16px; }
.hp4-learn-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.hp4-h2 { margin: 0; font-size: var(--text-section); font-weight: var(--weight-medium); letter-spacing: -0.01em; color: var(--ink); }
.hp4-note { font-size: var(--text-meta-r); color: var(--ink-3); }
.hp4-chips { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.hp4-chip { appearance: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--hair); background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--text-meta-r); cursor: pointer; white-space: nowrap; }
.hp4-chip:hover { border-color: var(--hair-strong); }
.hp4-chip.on { background: var(--ink-fill); border-color: var(--ink-fill); color: var(--ink-fill-ink); }
.hp4-body { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 36px; align-items: start; }
.hp4-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 16px; }
.hp4-tile { appearance: none; display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.hp4-tile:hover { border-color: var(--hair-strong); box-shadow: var(--shadow-card); }
.hp4-tile:focus-visible, .hp4-card:focus-visible, .hp4-chip:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.hp4-tile-art { position: relative; height: 155px; background: var(--surface-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hp4-play { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair);
  background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.hp4-watched { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--surface); font-size: 11px; font-weight: var(--weight-medium); color: var(--ink); }
.hp4-watched svg { color: var(--status-ok-ui); }
.hp4-tile-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.hp4-tile-area { font-size: var(--text-meta-r); color: var(--link); }
.hp4-tile-title { font-size: 16px; font-weight: var(--weight-medium); line-height: 1.3; }
.hp4-tile-line { font-size: var(--text-meta-r); line-height: 1.45; color: var(--ink-2); }
.hp4-tile-meta { margin-top: 8px; font-size: var(--text-label); color: var(--ink-3); }
.hp4-nomatch { margin: 0; font-size: var(--text-body); color: var(--ink-2); }
.hp4-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hp4-sec { display: flex; flex-direction: column; }
.hp4-sec h3 { margin: 0 0 8px; font-size: 18px; font-weight: var(--weight-medium); color: var(--ink); letter-spacing: -0.01em; }
.hp4-row { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0;
  border: 0; border-top: 1px solid var(--hair-soft); background: none; text-align: left; font: inherit; font-size: var(--text-body); color: var(--ink); }
.hp4-row:last-of-type { border-bottom: 1px solid var(--hair-soft); }
button.hp4-row { cursor: pointer; }
button.hp4-row:hover > span:first-child { color: var(--link); }
.hp4-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp4-row-r { flex: none; display: inline-flex; gap: 4px; font-size: var(--text-meta-r); color: var(--ink-3); }
.hp4-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--hair);
  background: var(--surface); font-family: inherit; font-size: 11px; font-weight: var(--weight-medium); color: var(--ink-2); }
.hp4-link { align-self: flex-start; margin-top: 8px; font-size: var(--text-meta-r); font-weight: var(--weight-regular); }
.hp4-check { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-body); color: var(--ink); line-height: 1.4; cursor: pointer; }
.hp4-check input { margin: 2px 0 0; accent-color: var(--link); width: 15px; height: 15px; }
.hp4-small { font-size: var(--text-label); color: var(--ink-3); }
.hp4-small:empty { display: none; }
.hp4-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hp4-links .linkbtn { min-height: 0; font-weight: var(--weight-regular); font-size: var(--text-body); padding: 0; border: 0; background: none; cursor: pointer; }
.hp4-audit { margin-top: 14px; font-size: var(--text-meta-r); }
.hp4-audit h2 { font-size: var(--text-body); font-weight: var(--weight-medium); margin: 0 0 6px; }

@media (max-width: 1100px) {
  .hp4-start { grid-template-columns: minmax(0, 1fr); }
  .hp4-body { grid-template-columns: minmax(0, 1fr); }
  .hp4-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 36px; }
}
@media (max-width: 760px) {
  .hp4-hero { flex-direction: column; align-items: stretch; }
  .hp4-hero-shot { flex: none; width: 100%; }
  .hp4-chips { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hp4-tiles { grid-template-columns: minmax(0, 1fr); }
  .hp4-card { gap: 14px; }
  .hp4-card-art { width: 88px; height: 72px; }
  .hp4-chip, .hp4-watch, .hp4-row { min-height: 44px; }
}

/* ── Walkthrough player (p42): a large centred modal, the step list with its
   progress underline, "Open X →" always on the left, pill Back / Next. ──── */
.wt-scrim { padding: 36px; }
.wt-scrim .wt { width: min(1320px, 100%); height: 100%; max-height: 100%; border-radius: 16px; }
.wt-scrim .wt-head { padding: 22px 28px; border-bottom: 1px solid var(--hair-soft); }
.wt-scrim .wt-eyebrow { font-size: var(--text-label); letter-spacing: 0; text-transform: none; font-weight: var(--weight-regular); color: var(--link); }
.wt-scrim .wt-title { font-size: 20px; }
.wt-scrim .wt-x { width: 36px; height: 36px; color: var(--ink); font-size: 14px; }
.wt-scrim .wt-main { grid-template-columns: minmax(0, 1fr) 380px; }
.wt-scrim .wt-stage { padding: 56px 60px; background: var(--surface-tint); justify-content: center; gap: 14px; }
.wt-scrim .wt-frame { border-radius: 10px; border: 0; box-shadow: 0 12px 32px rgba(12, 17, 57, 0.10); }
.wt-scrim .wt-chrome { height: 30px; }
.wt-scrim .wt-chrome i { background: var(--hair-strong); }
.wt-scrim .wt-url { font-family: inherit; font-size: var(--text-label); }
.wt-scrim .wt-ring { border-radius: 10px; box-shadow: 0 0 0 calc(6px / var(--s, 1)) rgba(255, 80, 1, 0.12); }
.wt-scrim .wt-zoom { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface);
  color: var(--ink); font-size: var(--text-meta-r); }
.wt-scrim .wt-note { margin-left: auto; font-size: var(--text-label); color: var(--ink-3); }
.wt-scrim .wt-side { padding: 28px; gap: 10px; border-left: 1px solid var(--hair-soft); }
.wt-scrim .wt-count { font-size: var(--text-label); font-weight: var(--weight-medium); color: var(--brand-orange); font-variant-numeric: tabular-nums; }
.wt-scrim .wt-count b { color: inherit; }
.wt-scrim .wt-step-title { font-size: 22px; }
.wt-scrim .wt-step-text { font-size: 14.5px; line-height: 1.5; }
.wt-scrim .wt-list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair-soft); gap: 2px; }
.wt-scrim .wt-li { min-height: 40px; align-items: center; padding: 0 10px; border-radius: 8px; font-size: var(--text-body); color: var(--ink); }
.wt-scrim .wt-li span { font-size: var(--text-label); color: var(--ink-3); width: 22px; }
.wt-scrim .wt-li.on { background: var(--nav-hover); font-weight: var(--weight-medium); }
.wt-scrim .wt-li.on span, .wt-scrim .wt-li.done span { color: var(--ink-3); }
.wt-scrim .wt-li.on::after { left: 42px; right: auto; width: calc(100% - 52px); background: var(--link); }
.wt-scrim .wt-nav { gap: 8px; }
.wt-open { appearance: none; margin-right: auto; padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--link); white-space: nowrap; }
.wt-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.wt-open:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wt-scrim .wt-btn { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font-size: var(--text-body); }
.wt-scrim .wt-btn.go { margin-left: 0; background: var(--ink-fill); border-color: var(--ink-fill); color: var(--ink-fill-ink); }
.wt-scrim .wt-btn.go:hover { background: var(--ink-fill); color: var(--ink-fill-ink); opacity: 0.9; }
.wt-scrim .wt-open + .wt-btn { margin-left: auto; }
@media (max-width: 1100px) {
  .wt-scrim { padding: 16px; }
  .wt-scrim .wt-stage { padding: 24px; }
  .wt-scrim .wt-main { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 760px) {
  .wt-scrim { padding: 0; }
  .wt-scrim .wt { border-radius: 0; }
  .wt-scrim .wt-main { grid-template-columns: minmax(0, 1fr); }
  .wt-scrim .wt-stage { padding: 12px; }
  .wt-scrim .wt-side { border-left: 0; border-top: 1px solid var(--hair-soft); padding: 18px; }
}

/* ── Help sub-pages: shared header row ─────────────────────────────────── */
.rl4 .page-h, .is4-top, .cs4-top { margin-bottom: 0; }
.is4-top, .cs4-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Releases (p39) */
.rl4-controls { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rl4-search { display: flex; align-items: center; gap: 8px; width: 286px; max-width: 100%; height: 36px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--hair); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-3); }
.rl4-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--text-body); color: var(--ink); }
.rl4-search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px var(--halo); }
.rl4-table { margin-top: 18px; width: 100%; border-collapse: collapse; }
.rl4-table th { text-align: left; padding: 0 16px 10px 0; font-size: 11px; font-weight: var(--weight-medium); letter-spacing: 0.08em; text-transform: uppercase; }
.rl4-table th:nth-child(1) { width: 90px; } .rl4-table th:nth-child(2) { width: 100px; } .rl4-table th:nth-child(3) { width: 88px; }
table.data.rl4-table td { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair-soft); vertical-align: top; font-size: var(--text-body); color: var(--ink); line-height: 1.45; }
.rl4-table tr.more td { border-top: 0; }
table.data.rl4-table tbody tr { cursor: default; }
table.data.rl4-table tbody tr:hover { background: none; }
.rl4-v { font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl4-d { color: var(--ink-2); white-space: nowrap; }
.rl4-type { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: var(--text-label); font-weight: var(--weight-medium); }
.rl4-type.fix { background: var(--surface-sunk); color: var(--ink-2); }
.rl4-type.new { background: var(--nav-hover); color: var(--link); }
.rl4-tag { display: inline-flex; height: 18px; align-items: center; padding: 0 6px; border-radius: 4px; background: var(--surface-sunk); font-size: 11px; color: var(--ink-2); }
.rl4-more { margin-top: 16px; }

/* Issues (p40) */
.is4-body { margin-top: 22px; }
.is4-list { margin-top: 18px; border-top: 1px solid var(--rule-head); }
.is4-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.is4-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.is4-msg { font-size: var(--text-body); color: var(--ink); line-height: 1.45; white-space: pre-wrap; }
.is4-meta, .is4-ua { font-size: var(--text-label); color: var(--ink-3); }
.is4-ua { font-family: var(--font-technical); overflow-wrap: anywhere; }
.is4-shot { margin-top: 6px; max-width: 280px; max-height: 160px; object-fit: cover; object-position: top left; border-radius: 8px; border: 1px solid var(--hair); cursor: zoom-in; }
.is4-state { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: var(--text-label); font-weight: var(--weight-medium); }
.is4-state.open { background: var(--late-tint, var(--status-overdue-bg)); color: var(--late); }
.is4-state.done { background: var(--surface-sunk); color: var(--ink-2); }
.is4-row.done .is4-msg { color: var(--ink-2); }
.is4-empty { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.is4-empty-ico { color: var(--link); display: inline-flex; }
.is4-empty h2 { margin: 6px 0 0; font-size: 18px; font-weight: var(--weight-medium); color: var(--ink); }
.is4-empty p { margin: 0; max-width: 560px; font-size: var(--text-body); line-height: 1.5; color: var(--ink-2); }
.is4-empty .btn { margin-top: 10px; }

/* Running costs (p41) */
.cs4-body { margin-top: 22px; }
.cs4-figs { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding-bottom: 16px; gap: 24px; }
.cs4-figs > .fig { border-left: 0; padding-left: 0; }
.cs4-quiet { color: var(--ink-3); }
.cs4-cols { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; align-items: start; }
.cs4-col { min-width: 0; }
.cs4-h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 18px; font-weight: var(--weight-medium); color: var(--ink); }
.cs4-empty { margin: 0; max-width: 72ch; font-size: var(--text-body); line-height: 1.5; color: var(--ink-2); }
.cs4-note { margin: 16px 0 0; max-width: 90ch; font-size: var(--text-label); line-height: 1.5; color: var(--ink-3); }
.cs4-ss { margin-top: 36px; }

/* ── The guide (p38) ─────────────────────────────────────────────────────── */
.gd4-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--rule-head); }
.gd4-h1 { margin: 0; font-size: var(--text-page); font-weight: var(--weight-medium); letter-spacing: var(--tracking-title); color: var(--ink); }
.gd4-sub { margin: 6px 0 0; max-width: 104ch; font-size: var(--text-body); color: var(--ink-2); }
.gd4-top-acts { display: flex; gap: 8px; }
.gd4-playdot { width: 20px; height: 20px; border-radius: 50%; background: var(--link); color: var(--ground, white); display: inline-flex; align-items: center; justify-content: center; }
.gd4-grid { margin-top: 28px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.gd4-toc { position: sticky; top: 24px; }
.gd4-toc-select { display: none; }
.gd4-toc-list { display: flex; flex-direction: column; }
.gd4-toc-label { font-size: var(--text-label); color: var(--ink-3); padding: 0 8px; }
.gd4-progress { display: block; height: 3px; margin: 10px 8px 12px; border-radius: 2px; background: var(--hair-soft); overflow: hidden; }
.gd4-progress span { display: block; height: 100%; width: 0; background: var(--link); transition: width var(--dur) var(--ease-out); }
.gd4-toc-item { display: flex; align-items: flex-start; gap: 6px; min-height: 30px; padding: 6px 8px; box-sizing: border-box; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.gd4-toc-item:hover { background: var(--row-hover, var(--surface-tint)); }
.gd4-toc-n { flex: none; width: 24px; font-family: var(--font-technical); font-size: var(--text-label); color: var(--ink-3); padding-top: 1px; }
.gd4-toc-t { flex: 1; min-width: 0; }
.gd4-tick { flex: none; color: var(--link); visibility: hidden; font-size: 12px; }
.gd4-toc-item.read .gd4-tick { visibility: visible; }
.gd4-toc-item.on { background: var(--tint-blue); }
.gd4-toc-item.on .gd4-toc-n, .gd4-toc-item.on .gd4-toc-t { color: var(--link); }
.gd4-toc-item.on .gd4-toc-t { font-weight: var(--weight-medium); }
.gd4-toc-detail { margin-top: 18px; margin-bottom: 4px; }
.gd4-toc-sub { padding: 4px 8px; font-size: var(--text-meta-r); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.gd4-toc-sub:hover { color: var(--link); }
.gd4-sec { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 345px); gap: 36px; padding: 0 0 48px; margin-bottom: 48px;
  border-bottom: 1px solid var(--hair); scroll-margin-top: 20px; }
.gd4-sec:not(.has-fig) { grid-template-columns: minmax(0, 640px); }
.gd4-page > .gd4-sec:last-of-type { border-bottom: 0; margin-bottom: 0; }
.gd4-text { min-width: 0; position: relative; }
.gd4-end { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; }
.gd4-n { font-size: var(--text-meta-r); font-weight: var(--weight-medium); color: var(--link); }
.gd4-h2 { margin: 6px 0 14px; font-size: 26px; font-weight: var(--weight-medium); letter-spacing: -0.02em; color: var(--ink); }
.gd4-p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.gd4-kv { margin: 18px 0 0; border-top: 1px solid var(--hair-soft); }
.gd4-kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
.gd4-kv dt { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink); }
.gd4-kv dd { margin: 0; font-size: var(--text-body); line-height: 1.5; color: var(--ink-2); }
.gd4-rule { margin-top: 18px; display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-10); background: var(--tint-blue); font-size: var(--text-body); color: var(--ink); line-height: 1.5; }
.gd4-rule b { flex: none; font-weight: var(--weight-medium); }
.gd4-acts { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.gd4-fig { margin: 0; min-width: 0; }
.gd4-fig figcaption { margin-top: 8px; font-size: var(--text-label); color: var(--ink-3); line-height: 1.45; }
.gd4-shot { position: relative; border-radius: 12px; border: 1px solid var(--hair); overflow: hidden; background: var(--surface); aspect-ratio: 345 / 285; }
.gd4-shot-chrome { position: absolute; top: 0; left: 0; right: 0; height: 18px; display: flex; gap: 4px; align-items: center; padding: 0 10px; background: var(--surface); z-index: 1; }
.gd4-shot-chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair); }
/* zoomed on Needs you: the shot is drawn at 2× and nudged so its list fills the card */
.gd4-shot img { position: absolute; top: 18px; left: -36%; width: 200%; height: auto; }
.gd4-shot-ring { position: absolute; left: 1.5%; top: 24%; width: 96%; height: 10%; border: 2px solid var(--brand-orange); border-radius: 8px; }
.gd4-card { border: 1px solid var(--hair); border-radius: 14px; padding: 20px; background: var(--surface); }
.gd4-day { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.gd4-day:first-child { padding-top: 0; } .gd4-day:last-child { padding-bottom: 0; border-bottom: 0; }
.gd4-day-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-tint); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; }
.gd4-day-ico.attn { background: var(--late-tint, var(--status-overdue-bg)); color: var(--brand-orange); }
.gd4-day > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.gd4-day b { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--ink); }
.gd4-day > span:last-child > span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.gd4-gt-head { display: flex; justify-content: space-between; gap: 10px; font-size: var(--text-body); }
.gd4-gt-head b { font-weight: var(--weight-medium); color: var(--ink); }
.gd4-gt-head span { font-size: var(--text-meta-r); color: var(--ink-3); }
.gd4-gt { position: relative; margin: 16px 0; }
.gd4-gt::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--link); }
.gd4-gt-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 33px; }
.gd4-node { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--link); position: relative; z-index: 1; }
.gd4-gt-row.miss .gd4-node { background: var(--surface); border: 1.5px dashed var(--hair-strong); box-sizing: border-box; }
.gd4-gt-row.fix .gd4-node { background: var(--brand-orange); }
.gd4-gt-k { flex: 1; font-size: var(--text-body); color: var(--ink); }
.gd4-gt-row.fix .gd4-gt-k, .gd4-gt-row.fix .gd4-gt-v { color: var(--status-overdue-ink); }
.gd4-gt-v { font-size: var(--text-meta-r); color: var(--ink-3); }
.gd4-legend { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--hair-soft); font-size: var(--text-label); color: var(--ink-2); }
.gd4-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gd4-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--link); }
.gd4-legend .miss i { background: none; border: 1.5px dashed var(--hair-strong); box-sizing: border-box; }
.gd4-legend .fix i { background: var(--brand-orange); }
.gd4-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px;
  background: var(--surface-sunk-soft); border: 1px solid var(--hair-soft); font-size: var(--text-body); color: var(--ink-2); }
.gd4-next b { font-weight: var(--weight-medium); color: var(--ink); }
.gd4-detail-h { margin-bottom: 20px; font-size: var(--text-label); color: var(--ink-3); }
.gd4-sec.detail { grid-template-columns: minmax(0, 720px); padding-bottom: 32px; margin-bottom: 32px; }
.gd4-body { font-size: 15px; line-height: 1.6; color: var(--ink); }
.gd4-body p { margin: 0 0 12px; }
.gd4-body code { font-family: var(--font-technical); font-size: 13px; }
.gd4-body b { font-weight: var(--weight-medium); }
@media (max-width: 1100px) {
  .gd4-sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gd4-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gd4-toc { position: static; }
  .gd4-toc-list { display: none; }
  .gd4-toc-select { display: flex; flex-direction: column; gap: 6px; }
  .gd4-toc-select .gd4-toc-label { padding: 0; }
  .gd4-kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rl4-table thead { display: none; }
  .rl4-table, .rl4-table tbody, .rl4-table tr, .rl4-table td { display: block; }
  .rl4-table tr { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--hair-soft); }
  table.data.rl4-table td { padding: 0; border: 0; }
  .rl4-table td.rl4-text { grid-column: 1 / -1; }
  .rl4-table tr.more td.rl4-v, .rl4-table tr.more td.rl4-d { display: none; }
  .rl4-search { width: 100%; }
  .is4-row { flex-wrap: wrap; }
}
@media print {
  .rail, #rail, nav.rail, .ask-bar, #ask-disc, .crumbs, .gd4-toc, .gd4-top-acts, .gd4-acts, .gd4-next { display: none !important; }
  .gd4-grid { grid-template-columns: minmax(0, 1fr); }
  .gd4-page[hidden] { display: block !important; }
  .gd4-sec { break-inside: avoid; page-break-after: always; border-bottom: 0; }
}
