/* ==========================================================================
   TUFF BREED® — OILFIELD SERVICE APPLICATION SELECTOR
   Tool-page styles. Loads AFTER tuffbreed.css and inherits every brand token
   (colour, type, spacing, focus) from it — this file only adds the tool.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE FRAME
   -------------------------------------------------------------------------- */
.sel-page {
  background: var(--tb-black);
  /* The tool page nav never grows: keep one height so the sticky results
     navigation can dock against it exactly. */
  --nav-h: 64px;
}
.sel-page .nav, .sel-page .nav.is-solid { height: var(--nav-h); }
.sel-page .nav__logo img { height: 34px; }

/* The tool page always shows a solid nav — there is no cinematic hero to
   float over. */
.sel-page .nav { background: rgba(8,9,11,.9); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--rule); }

/* --------------------------------------------------------------------------
   2. HERO — restrained WSP schematic motion
   -------------------------------------------------------------------------- */
.selhero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0c1017 0%, #090b10 46%, #0a0e14 100%);
  border-bottom: 1px solid var(--rule);
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) clamp(3rem, 6vw, 5rem);
}
.selhero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000 20%, transparent 80%);
}
.selhero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.75rem, 4.5vw, 4rem); align-items: center;
}
@media (max-width: 940px) { .selhero__grid { grid-template-columns: 1fr; } }

.selhero h1 { margin: 0 0 1.1rem; }
.selhero__sub { font-size: clamp(1.02rem, .96rem + .45vw, 1.24rem); line-height: 1.55; color: #dfe4e9; max-width: 50ch; margin: 0 0 1rem; }
.selhero__body { color: var(--text-dim); max-width: 56ch; font-size: .97rem; }
.selhero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.selhero__note { margin-top: 1rem; font-size: .78rem; color: var(--text-mute); display: flex; align-items: center; gap: .5rem; }
.selhero__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tb-blue-glow); flex: 0 0 auto; }

/* Schematic panel */
.schem {
  position: relative; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(4,119,191,.07), transparent 60%), #0a0d12;
  padding: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
}
.schem::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.schem__label {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-mute); margin: 0 0 .5rem;
}
.schem svg { position: relative; z-index: 2; width: 100%; height: auto; color: #fff; }
.schem .wd-base { stroke-width: 2.1; opacity: .5; }

/* --------------------------------------------------------------------------
   3. WSP SCHEMATIC — shared drawing styles (hero + step 3 + results)
   -------------------------------------------------------------------------- */
/* Container mirrors .wsp__stage on the homepage so both assemblies read as
   the same component. */
.wspfig__stage {
  position: relative;
  background: linear-gradient(180deg, rgba(4,119,191,.06), transparent 55%), #0b0e13;
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.2vw, 2rem);
  overflow: hidden;
}
.wspfig__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 40px 40px;
}
.wspfig { position: relative; z-index: 2; }
.wspfig__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.wspfig__inner { min-width: 620px; position: relative; }

.wd-base {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10;
  opacity: .58; transition: opacity .3s var(--ease-pow);
}
[data-active-comp]:not([data-active-comp=""]) .wd-base { opacity: .2; }

.wd-hl {
  fill: none; stroke: var(--tb-orange); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10;
  opacity: 0; transition: opacity .3s var(--ease-pow);
  filter: drop-shadow(0 0 6px rgba(245,138,35,.55));
}
.wd-lead path {
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .34; transition: opacity .3s var(--ease-pow), stroke .3s var(--ease-pow);
}
[data-active-comp]:not([data-active-comp=""]) .wd-lead path { opacity: .12; }
.wd-zone { fill: transparent; transition: fill .3s var(--ease-pow); }
.wd-outline { fill: none; stroke: var(--tb-orange); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: 0; transition: opacity .3s var(--ease-pow); }
.wd-hot { fill: transparent; cursor: pointer; }
.wd-hot:focus-visible { stroke: var(--tb-orange); stroke-width: 2; }

/* per-component activation (attribute set on the figure wrapper) */
[data-active-comp="junk"]       .wd-hl[data-comp="junk"],
[data-active-comp="sanddog"]    .wd-hl[data-comp="sanddog"],
[data-active-comp="wsp"]        .wd-hl[data-comp="wsp"],
[data-active-comp="topadapter"] .wd-hl[data-comp="topadapter"],
[data-active-comp="lantern"]    .wd-hl[data-comp="lantern"],
[data-active-comp="wiper"]      .wd-hl[data-comp="wiper"],
[data-active-comp="multiple"]   .wd-hl { opacity: 1; }

[data-active-comp="junk"]       .wd-outline[data-comp="junk"],
[data-active-comp="sanddog"]    .wd-outline[data-comp="sanddog"],
[data-active-comp="wsp"]        .wd-outline[data-comp="wsp"],
[data-active-comp="topadapter"] .wd-outline[data-comp="topadapter"],
[data-active-comp="lantern"]    .wd-outline[data-comp="lantern"],
[data-active-comp="wiper"]      .wd-outline[data-comp="wiper"],
[data-active-comp="multiple"]   .wd-outline { opacity: .85; }

[data-active-comp="junk"]       .wd-zone[data-comp="junk"],
[data-active-comp="sanddog"]    .wd-zone[data-comp="sanddog"],
[data-active-comp="wsp"]        .wd-zone[data-comp="wsp"],
[data-active-comp="topadapter"] .wd-zone[data-comp="topadapter"],
[data-active-comp="lantern"]    .wd-zone[data-comp="lantern"],
[data-active-comp="wiper"]      .wd-zone[data-comp="wiper"],
[data-active-comp="multiple"]   .wd-zone { fill: rgba(245,138,35,.10); }

[data-active-comp="junk"]       .wd-lead[data-comp="junk"] path,
[data-active-comp="sanddog"]    .wd-lead[data-comp="sanddog"] path,
[data-active-comp="wsp"]        .wd-lead[data-comp="wsp"] path,
[data-active-comp="lantern"]    .wd-lead[data-comp="lantern"] path,
[data-active-comp="wiper"]      .wd-lead[data-comp="wiper"] path,
[data-active-comp="multiple"]   .wd-lead path { opacity: 1; stroke: var(--tb-orange); }

/* Hero-only decorative motion: left-to-right assembly wipe + flow line */
.schem .wd-wipe { transform-box: fill-box; }
.schem .wd-flow {
  fill: none; stroke: var(--tb-blue-glow); stroke-width: 2; opacity: .75;
  stroke-dasharray: 26 200; stroke-linecap: round;
  animation: wdflow 5.2s linear infinite;
}
@keyframes wdflow { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 0; } }

.schem .wd-pulse { fill: rgba(245,138,35,.14); opacity: 0; }
.schem .wd-pulse.is-on { opacity: 1; transition: opacity .5s var(--ease-pow); }

@media (prefers-reduced-motion: reduce) {
  .schem .wd-flow { animation: none; opacity: .35; stroke-dasharray: none; }
  .schem .wd-pulse { opacity: 0 !important; }
}

/* The supplied drawing depicts the SandDog® configuration only. */
.wspfig__config {
  margin: .9rem 0 0; padding: .75rem .95rem;
  background: rgba(4,119,191,.09);
  border: 1px solid var(--rule); border-left: 3px solid var(--tb-blue);
  border-radius: var(--radius);
  font-size: .84rem; line-height: 1.6; color: var(--text-dim);
}
.wspfig__config a { color: var(--tb-orange); text-decoration: underline; text-underline-offset: 3px; }
.wspfig__config a:hover { color: var(--tb-orange-hot); }

.wspfig__caption {
  margin: .8rem 0 0; font-family: var(--font-mono); font-size: .68rem;
  line-height: 1.65; color: var(--text-mute);
}
.wspfig__hint {
  display: none; align-items: center; gap: .5rem; margin: .6rem 0 0;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute);
}
@media (max-width: 900px) {
  .wspfig__hint { display: flex; }
  .wspfig__scroll {
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
  }
}

/* --------------------------------------------------------------------------
   4. TOOL SHELL
   -------------------------------------------------------------------------- */
.tool { padding-block: clamp(2.5rem, 5vw, 4.5rem); scroll-margin-top: calc(var(--nav-h) + 16px); }
.tool__shell {
  background: linear-gradient(168deg, var(--tb-steel) 0%, #0c1015 70%);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden;
}

.tool__bar {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.1rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--rule);
  background: rgba(0,0,0,.28);
}
.tool__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.1rem; margin-bottom: .8rem; }
.tool__step {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tb-orange);
}
.tool__pct { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--text-mute); margin-left: auto; }
.tool__title { font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-stretch: 90%; text-transform: uppercase; }

.progress { height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.progress__fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--tb-blue), var(--tb-orange));
  transition: width .45s var(--ease-pow);
}
@media (prefers-reduced-motion: reduce) { .progress__fill { transition: none; } }

.tool__body { padding: clamp(1.25rem, 3vw, 2.4rem) clamp(1.1rem, 2.6vw, 2rem); }

.step { display: none; }
.step.is-current { display: block; }
.step__q { font-size: clamp(1.25rem, 2.3vw, 1.75rem); text-transform: uppercase; margin: 0 0 .5rem; }
.step__help { color: var(--text-dim); font-size: .93rem; max-width: 64ch; margin: 0 0 1.5rem; }
.step__sub { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.step__sub h3 {
  font-size: .76rem; font-family: var(--font-body); font-weight: 700; font-stretch: 100%;
  letter-spacing: .18em; text-transform: uppercase; color: var(--tb-orange);
  margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule);
}

/* Collapsible sub-group ---------------------------------------------------
   Any .step__sub carrying [data-collapsible] gets an open/close header.
   Markup: h3 > button.step__toggle  +  div.step__panel > div.step__panel-inner
   JS (wireCollapsibles) owns aria-expanded; CSS keys off it so the group is
   still usable — and open — if JS never runs. -------------------------------- */
.step__sub--collapsible > h3 { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.step__toggle {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  padding: .1rem 0 .55rem; margin: 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
  text-align: left; cursor: pointer;
  transition: color var(--dur-hover) var(--ease-pow),
              border-color var(--dur-hover) var(--ease-pow);
}
.step__toggle:hover { border-color: var(--tb-orange); }
.step__toggle:focus-visible { outline: 2px solid var(--tb-orange); outline-offset: 3px; }
.step__toggle-label { flex: 1 1 auto; }

/* Chosen answer, echoed in the header while the panel is closed. */
.step__toggle-answer {
  flex: 0 1 auto; min-width: 0; max-width: 42%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .72rem; letter-spacing: .1em;
  color: var(--text-dim); text-transform: none;
  opacity: 0; transition: opacity var(--dur-hover) var(--ease-pow);
}
.step__toggle[aria-expanded="false"] .step__toggle-answer:not(:empty) { opacity: 1; }

/* Plus / minus mark. Horizontal bar stays, vertical bar collapses when open. */
.step__toggle-icon {
  position: relative; flex: 0 0 auto; width: 15px; height: 15px;
}
.step__toggle-icon::before,
.step__toggle-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--tb-orange); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.step__toggle-icon::before { width: 15px; height: 2px; }
.step__toggle-icon::after {
  width: 2px; height: 15px;
  transition: transform var(--dur-hover) var(--ease-pow), opacity var(--dur-hover) var(--ease-pow);
}
.step__toggle[aria-expanded="true"] .step__toggle-icon::after {
  transform: translate(-50%, -50%) scaleY(0); opacity: 0;
}

.step__panel { overflow: hidden; }
.step__panel[hidden] { display: none; }
.step__panel-inner { padding-top: .9rem; }

/* A group the user tried to skip past gets a one-shot orange flag. */
.step__sub--collapsible.is-flagged > h3 > .step__toggle { border-color: var(--tb-orange); color: var(--tb-orange); }

@media (prefers-reduced-motion: reduce) {
  .step__toggle, .step__toggle-icon::after, .step__toggle-answer { transition: none; }
}
/* Print: never hide an answered group behind a closed panel. */
@media print {
  .step__panel { height: auto !important; }
  .step__toggle-icon { display: none; }
}

/* Option grid ------------------------------------------------------------- */
.opts { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opts--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.opts--tight { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.opt {
  position: relative; display: flex; align-items: center; gap: .75rem;
  width: 100%; min-height: 62px; padding: .85rem 1rem;
  text-align: left; cursor: pointer;
  background: rgba(255,255,255,.028);
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-body); font-size: .93rem; font-weight: 600; line-height: 1.3;
  transition: border-color var(--dur-hover) var(--ease-pow),
              background-color var(--dur-hover) var(--ease-pow),
              color var(--dur-hover) var(--ease-pow);
}
.opt:hover { border-color: rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.055); }
.opt__mark {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 3px;
  border: 2px solid var(--rule); position: relative;
  transition: border-color var(--dur-hover) var(--ease-pow), background-color var(--dur-hover) var(--ease-pow);
}
.opt--radio .opt__mark { border-radius: 50%; }
.opt__mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 1px; background: #0a0a0a;
  opacity: 0; transition: opacity var(--dur-hover) var(--ease-pow);
}
.opt--radio .opt__mark::after { border-radius: 50%; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] {
  border-color: var(--tb-orange); background: rgba(245,138,35,.10); color: #fff;
}
.opt[aria-pressed="true"] .opt__mark, .opt[aria-checked="true"] .opt__mark {
  border-color: var(--tb-orange); background: var(--tb-orange);
}
.opt[aria-pressed="true"] .opt__mark::after, .opt[aria-checked="true"] .opt__mark::after { opacity: 1; }
.opt--unsure { border-style: dashed; }
.opt__note { display: block; font-size: .74rem; font-weight: 500; color: var(--text-mute); margin-top: .15rem; }

/* Priority chips — 3-state (none → Priority → Critical) ------------------- */
.prios { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.prio {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .8rem .95rem; min-height: 58px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.028); border: 1.5px solid var(--rule);
  border-radius: var(--radius); color: var(--text-dim);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; line-height: 1.3;
  transition: border-color var(--dur-hover) var(--ease-pow), background-color var(--dur-hover) var(--ease-pow), color var(--dur-hover) var(--ease-pow);
}
.prio:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.prio__state {
  margin-left: auto; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .28rem .5rem; border-radius: 2px; border: 1px solid var(--rule); color: var(--text-mute);
  white-space: nowrap;
}
.prio[data-state="1"] { border-color: var(--tb-blue); background: rgba(4,119,191,.12); color: #fff; }
.prio[data-state="1"] .prio__state { border-color: var(--tb-blue-glow); color: #bfe2fa; }
.prio[data-state="2"] { border-color: var(--tb-orange); background: rgba(245,138,35,.13); color: #fff; }
.prio[data-state="2"] .prio__state { border-color: var(--tb-orange); background: var(--tb-orange); color: #0a0a0a; font-weight: 700; }
.prio__hint { font-size: .78rem; color: var(--text-mute); margin: 0 0 1rem; }

/* Numeric slider — a second way to enter a value, never a constraint ------ */
.rangefield { margin-top: 1.1rem; }
.rangefield__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .55rem; }
.rangefield__head label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute);
}
.rangefield__value {
  margin-left: auto; font-family: var(--font-mono); font-size: .95rem;
  font-weight: 700; color: var(--tb-orange); letter-spacing: .02em;
}
.rangefield__scale {
  display: flex; justify-content: space-between; margin-top: .45rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--text-mute);
}
.rangefield__note {
  margin: .7rem 0 0; font-size: .74rem; line-height: 1.6; color: var(--text-mute);
  max-width: 68ch;
}

.rangeinput {
  --fill: 0%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer;
  display: block; margin: 0;
}
.rangeinput:focus { outline: none; }
.rangeinput:focus-visible { outline: 3px solid var(--tb-orange); outline-offset: 4px; border-radius: 3px; }

/* track */
.rangeinput::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--tb-orange) var(--fill), rgba(255,255,255,.10) var(--fill));
  border: 1px solid var(--rule);
}
.rangeinput::-moz-range-track {
  height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.10); border: 1px solid var(--rule);
}
.rangeinput::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--tb-orange); }

/* thumb — machined collar */
.rangeinput::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -8px;
  border-radius: 50%; background: var(--tb-orange);
  border: 3px solid #0b0e13;
  box-shadow: 0 0 0 1px var(--tb-orange), 0 2px 8px rgba(0,0,0,.6);
  transition: transform var(--dur-hover) var(--ease-pow);
}
.rangeinput::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--tb-orange); border: 3px solid #0b0e13;
  box-shadow: 0 0 0 1px var(--tb-orange), 0 2px 8px rgba(0,0,0,.6);
}
.rangeinput:hover::-webkit-slider-thumb { transform: scale(1.08); }
.rangeinput:active::-webkit-slider-thumb { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .rangeinput::-webkit-slider-thumb { transition: none; }
  .rangeinput:hover::-webkit-slider-thumb { transform: none; }
}

/* nothing entered yet — dim the thumb so it does not read as a real value */
.rangeinput.is-unset::-webkit-slider-thumb { background: var(--tb-gray); box-shadow: 0 0 0 1px var(--tb-gray), 0 2px 8px rgba(0,0,0,.6); }
.rangeinput.is-unset::-moz-range-thumb { background: var(--tb-gray); box-shadow: 0 0 0 1px var(--tb-gray); }

/* bigger touch target in the field */
@media (hover: none), (pointer: coarse) {
  .rangeinput { height: 40px; }
  .rangeinput::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; }
  .rangeinput::-moz-range-thumb { width: 28px; height: 28px; }
}

@media print { .rangefield { display: none; } }

/* Conditional inputs ------------------------------------------------------ */
.cond { margin-top: 1rem; display: none; }
.cond.is-on { display: block; }
.cond__label {
  margin: 0 0 .7rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute);
}
.inline-field { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline-field .field { flex: 1 1 180px; }
.inline-field .field--unit { flex: 0 0 130px; }

/* Tool footer nav --------------------------------------------------------- */
.toolnav {
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: center;
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.1rem, 2.6vw, 2rem);
  border-top: 1px solid var(--rule); background: rgba(0,0,0,.28);
}
.toolnav__spacer { flex: 1 1 auto; }
.btn--quiet {
  --btn-bg: transparent; --btn-fg: var(--text-dim);
  border-color: var(--rule);
}
.btn--quiet:hover, .btn--quiet:focus-visible { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #fff; }
.btn[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 620px) {
  .toolnav { gap: .55rem; }
  .toolnav .btn { flex: 1 1 100%; justify-content: center; }
  .toolnav__spacer { display: none; }
}

.tool__error {
  margin: 0 0 1.1rem; padding: .75rem 1rem; font-size: .88rem;
  border: 1px solid #ff7a52; border-left-width: 3px; border-radius: var(--radius);
  background: rgba(255,122,82,.10); color: #ffc4b0;
}
.tool__error:empty { display: none; }

/* --------------------------------------------------------------------------
   5. RESULTS WORKSPACE
   -------------------------------------------------------------------------- */
.results { display: none; }
.results.is-on { display: block; }

.results__head { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.results__title { font-size: clamp(1.7rem, 3.6vw, 3rem); text-transform: uppercase; margin: 0 0 .6rem; }
.results__name {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .9rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  color: var(--text-mute); border: 1px dashed var(--rule); border-radius: var(--radius);
  padding: .45rem .7rem;
}
.results__name b { color: var(--tb-orange); font-weight: 700; letter-spacing: .06em; }

/* Sticky results navigation */
.resnav {
  position: sticky; top: calc(var(--nav-h) - 1px); z-index: 40;
  background: rgba(8,9,11,.93);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border-block: 1px solid var(--rule);
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}
.resnav__scroll { display: flex; gap: .3rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.resnav__scroll::-webkit-scrollbar { display: none; }
.resnav a {
  flex: 0 0 auto; position: relative;
  padding: .95rem .85rem; text-decoration: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-pow);
}
.resnav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 0; height: 2px;
  background: var(--tb-orange); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-pow);
}
.resnav a:hover, .resnav a[aria-current="true"] { color: #fff; }
.resnav a[aria-current="true"]::after { transform: scaleX(1); }

.res-sec { padding-block: clamp(2rem, 4vw, 3.2rem); scroll-margin-top: calc(var(--nav-h) + 62px); border-bottom: 1px solid var(--rule); }
.res-sec:last-of-type { border-bottom: 0; }
.res-sec > h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); text-transform: uppercase; margin: 0 0 .4rem;
}
.res-sec__kicker {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--tb-blue-glow); margin: 0 0 .55rem;
}
.res-sec__lede { color: var(--text-dim); max-width: 70ch; margin: 0 0 1.6rem; font-size: .95rem; }

/* Summary grid */
.sumgrid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sumcard {
  padding: 1rem 1.1rem; background: rgba(255,255,255,.03);
  border: 1px solid var(--rule); border-left: 3px solid var(--tb-blue); border-radius: var(--radius);
}
.sumcard dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.sumcard dd { margin: .4rem 0 0; font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.35; }
.sumcard dd .muted { color: var(--text-mute); font-weight: 500; }

/* Product family cards */
.famhead {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  padding: 1.1rem 1.25rem; margin-bottom: 1rem;
  background: linear-gradient(120deg, rgba(245,138,35,.14), rgba(245,138,35,.03));
  border: 1px solid rgba(245,138,35,.4); border-radius: var(--radius);
}
.famhead h3 { font-size: clamp(1.15rem, 2.1vw, 1.6rem); text-transform: uppercase; margin: 0; }
.famhead--blue { background: linear-gradient(120deg, rgba(4,119,191,.16), rgba(4,119,191,.03)); border-color: rgba(74,166,232,.45); }

.prodgrid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.prodcard {
  padding: 1.15rem 1.25rem; background: rgba(255,255,255,.028);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.prodcard__pic { display: block; }
.prodcard__photo {
  display: block; width: 100%; height: 150px; object-fit: contain;
  margin: -.35rem 0 .9rem;
  background:
    linear-gradient(180deg, rgba(4,119,191,.05), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px);
  border-radius: var(--radius);
}
.prodcard h4 { font-size: 1.1rem; font-stretch: 92%; text-transform: uppercase; margin: 0 0 .5rem; }
.prodcard p { font-size: .88rem; color: var(--text-dim); margin: 0; }

/* Status badges — never colour alone, always a word */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 2px; border: 1px solid; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge--ok      { color: #7fd6a4; border-color: rgba(127,214,164,.5); background: rgba(127,214,164,.08); }
.badge--info    { color: #8ec8f5; border-color: rgba(142,200,245,.5); background: rgba(142,200,245,.08); }
.badge--need    { color: #ffb469; border-color: rgba(255,180,105,.5); background: rgba(255,180,105,.08); }
.badge--review  { color: #ff9a7a; border-color: rgba(255,154,122,.5); background: rgba(255,154,122,.08); }

/* Requirements matrix — table on desktop, cards on mobile */
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
.matrix th, .matrix td { text-align: left; padding: .85rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matrix th {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-mute); border-bottom-color: rgba(255,255,255,.22);
}
.matrix td:first-child { color: #fff; font-weight: 600; width: 26%; }
.matrix td:nth-child(2) { color: var(--text-dim); }
.matrix tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  .matrix, .matrix tbody, .matrix tr, .matrix td { display: block; width: 100%; }
  .matrix thead { display: none; }
  .matrix tr { border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: .7rem; padding: .3rem .2rem; }
  .matrix td { border-bottom: 0; padding: .45rem .8rem; }
  .matrix td:first-child { width: auto; font-size: .95rem; padding-top: .8rem; }
  .matrix td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .2rem; }
  .matrix td:first-child::before { display: none; }
}

/* Validate list */
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.vlist li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .9rem 1rem; background: rgba(255,255,255,.028);
  border: 1px solid var(--rule); border-left: 3px solid #ffb469; border-radius: var(--radius);
  font-size: .93rem; color: var(--text-dim);
}
.vlist li b { color: #fff; font-weight: 600; }
.vlist .n { font-family: var(--font-mono); font-size: .66rem; color: var(--text-mute); padding-top: .2rem; flex: 0 0 auto; }

/* Priority summary */
.priolist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.priolist li {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: rgba(255,255,255,.026); font-size: .93rem; color: #fff;
}
.priolist .rank { font-family: var(--font-mono); font-size: .66rem; color: var(--text-mute); }
.priolist .weight { margin-left: auto; font-family: var(--font-mono); font-size: .64rem; color: var(--text-mute); }

/* Next steps */
.stepcols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.stepcol { padding: 1.2rem 1.25rem; background: rgba(255,255,255,.028); border: 1px solid var(--rule); border-radius: var(--radius); border-top: 2px solid var(--tb-orange); }
.stepcol--b { border-top-color: var(--tb-blue); }
.stepcol--c { border-top-color: #7fd6a4; }
.stepcol h3 { font-size: .95rem; font-stretch: 94%; text-transform: uppercase; margin: 0 0 .8rem; }
.stepcol ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.stepcol li { font-size: .89rem; color: var(--text-dim); }

/* Meeting agenda */
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: ag; display: grid; gap: .6rem; }
.agenda li {
  counter-increment: ag; position: relative; padding: .9rem 1rem .9rem 3.1rem;
  background: rgba(255,255,255,.028); border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: .93rem; color: var(--text-dim);
}
.agenda li::before {
  content: counter(ag, decimal-leading-zero);
  position: absolute; left: 1rem; top: .95rem;
  font-family: var(--font-mono); font-size: .7rem; color: var(--tb-orange);
}

/* Report actions */
.actions { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.actioncard {
  display: flex; flex-direction: column; gap: .7rem; align-items: flex-start;
  padding: 1.3rem; background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.actioncard h3 { font-size: 1rem; font-stretch: 92%; text-transform: uppercase; margin: 0; }
.actioncard p { font-size: .85rem; color: var(--text-mute); margin: 0; flex: 1 1 auto; }

/* "Why this result" reasoning list */
#resWhy li { padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; color: var(--text-dim); }
#resWhy li:first-child { padding-top: 0; }
#resWhy li:last-child { border-bottom: 0; padding-bottom: 0; }

.disclaimer {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 1.15rem 1.25rem; border: 1px solid var(--rule); border-left: 3px solid var(--tb-blue);
  border-radius: var(--radius); background: rgba(4,119,191,.07);
  font-size: .86rem; color: var(--text-dim); line-height: 1.65;
}
.disclaimer strong { color: #fff; display: block; margin-bottom: .35rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   6. SAVED APPLICATIONS + COMPARISON
   -------------------------------------------------------------------------- */
.saved { background: var(--tb-charcoal); border-top: 1px solid var(--rule); }
.saved__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.saved__empty { color: var(--text-mute); font-size: .93rem; }

.savedlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.savedcard {
  padding: 1.1rem 1.2rem; background: rgba(255,255,255,.03);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: .8rem;
  transition: border-color var(--dur-hover) var(--ease-pow);
}
.savedcard:hover { border-color: rgba(255,255,255,.28); }
.savedcard.is-picked { border-color: var(--tb-orange); background: rgba(245,138,35,.07); }
.savedcard__top { display: flex; align-items: flex-start; gap: .7rem; }
.savedcard h3 { font-size: 1.02rem; font-stretch: 94%; text-transform: uppercase; margin: 0; flex: 1 1 auto; }
.savedcard__meta { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--text-mute); }
.savedcard__lines { font-size: .86rem; color: var(--text-dim); display: grid; gap: .2rem; }
.savedcard__acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.minibtn {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .65rem; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--text-dim);
  border: 1px solid var(--rule); border-radius: 2px;
  transition: color var(--dur-hover) var(--ease-pow), border-color var(--dur-hover) var(--ease-pow), background-color var(--dur-hover) var(--ease-pow);
}
.minibtn:hover, .minibtn:focus-visible { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.minibtn--danger:hover { color: #ff9a7a; border-color: rgba(255,154,122,.6); }
.savedcard__pick { display: flex; align-items: center; gap: .45rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); cursor: pointer; }
.savedcard__pick input { width: 16px; height: 16px; accent-color: var(--tb-orange); }

.comparewrap { margin-top: 1.6rem; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: .8rem .85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; border-bottom-color: rgba(255,255,255,.25);
}
.compare tbody th {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 400; width: 22%;
}
.compare td { color: var(--text-dim); }
.compare__note { font-size: .78rem; color: var(--text-mute); margin-top: .9rem; }

/* --------------------------------------------------------------------------
   7. MODAL (lead capture / rename)
   -------------------------------------------------------------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(4,5,7,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  width: min(560px, 100%); max-height: 90dvh; overflow-y: auto;
  background: linear-gradient(168deg, var(--tb-steel), #0b0e13);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.modal__panel h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); text-transform: uppercase; margin: 0 0 .5rem; }
.modal__panel > p { color: var(--text-dim); font-size: .9rem; }
.modal__foot { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; align-items: center; }
.modal__close {
  float: right; margin: -.3rem -.3rem 0 0; width: 34px; height: 34px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule); border-radius: 2px; color: var(--text-dim);
  font-size: 1.1rem; line-height: 1;
}
.modal__close:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px);
  z-index: 300; padding: .8rem 1.2rem; border-radius: var(--radius);
  background: var(--tb-orange); color: #0a0a0a; font-weight: 700; font-size: .85rem;
  letter-spacing: .04em; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-pow), transform .25s var(--ease-pow);
  max-width: calc(100vw - 2rem);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.print-head { display: none; }

/* --------------------------------------------------------------------------
   8. PRINT — the results workspace is the printed report
   -------------------------------------------------------------------------- */
@media print {
  @page { margin: 13mm 14mm 12mm; }

  /* Chrome/Safari strip background colour from print by default. The report
     is a technical document CDI hands to a customer, so the brand colours,
     status colours and rules are printed deliberately. */
  html, body, .sel-page, .results, .results * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* --- print palette ---------------------------------------------------
     Darker than the screen tokens so the accents stay legible on white
     paper and survive greyscale printing. */
  :root {
    --pr-ink:      #14161a;   /* body text                       */
    --pr-mute:     #5a636d;   /* labels, meta                    */
    --pr-orange:   #f58a23;   /* CDI/Tuff Breed orange — rules   */
    --pr-orange-d: #b25f07;   /* orange for text on white        */
    --pr-orange-t: #fdf1e3;   /* orange tint fill                */
    --pr-blue:     #0477bf;   /* CDI blue — rules                */
    --pr-blue-d:   #045986;   /* blue for text on white          */
    --pr-blue-t:   #eaf3fa;   /* blue tint fill                  */
    --pr-green-d:  #1a6d4a;
    --pr-amber-d:  #9a5d05;
    --pr-red-d:    #a63c1c;
    --pr-rule:     #c8ccd2;
  }

  .nav, .selhero, #toolWrap, .saved, .resnav, .modal, .toast,
  .footer, .skip-link, #reportActions, .wspfig__hint,
  .minibtn, .btn, .visually-hidden { display: none !important; }
  body, .sel-page { background: #fff !important; }
  .tool { padding: 0 !important; }
  .results { display: block !important; }

  /* one ink colour for everything, accents re-applied below */
  .results, .results * { color: var(--pr-ink) !important; box-shadow: none !important; }

  /* --- letterhead ------------------------------------------------------- */
  .print-head {
    display: flex !important; align-items: flex-start; gap: 10pt;
    border-bottom: 2.5pt solid var(--pr-orange); padding-bottom: 7pt; margin-bottom: 12pt;
  }
  .print-head__logo { width: 34mm; height: auto; flex: 0 0 auto; }
  .print-head__text { flex: 1 1 auto; padding-top: 2pt; }
  .print-head__title {
    margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 13pt;
    text-transform: uppercase; letter-spacing: .01em; line-height: 1.15;
  }
  .print-head__sub {
    margin: 3pt 0 0; font-size: 7.6pt; line-height: 1.45;
    color: var(--pr-mute) !important;
  }
  .print-head__cdi { width: 24mm; height: auto; flex: 0 0 auto; align-self: center; }
  .print-head, .results__head { break-inside: avoid; break-after: avoid; }

  .results__title { font-size: 19pt; margin-bottom: 4pt; }
  .lede, .eyebrow { font-size: 9pt; }
  .eyebrow { color: var(--pr-orange-d) !important; }
  .results__name { border: 1pt dashed var(--pr-rule) !important; }
  .results__name b { color: var(--pr-orange-d) !important; }

  /* --- sections --------------------------------------------------------- */
  .res-sec { border-bottom: 1pt solid var(--pr-rule); padding-block: 10pt; break-inside: auto; }
  .res-sec > h2 { break-after: avoid; font-size: 13.5pt; }
  /* never strand a section number at the foot of a page */
  .res-sec__kicker { color: var(--pr-blue-d) !important; font-size: 7pt; break-after: avoid; }
  .res-sec__lede { color: var(--pr-mute) !important; font-size: 8.6pt; }
  .sumcard, .prodcard, .vlist li, .priolist li, .stepcol, .agenda li, .famhead,
  .disclaimer, .matrix tr, .wspfig { break-inside: avoid; }

  /* application summary — blue keyline, as on screen */
  .sumcard {
    background: #fbfcfd !important;
    border: 1pt solid var(--pr-rule) !important;
    border-left: 3pt solid var(--pr-blue) !important;
  }
  .sumcard dt { color: var(--pr-mute) !important; }

  /* recommended family — orange band; review banners — blue band */
  .famhead {
    background: var(--pr-orange-t) !important;
    border: 1pt solid var(--pr-orange) !important;
    border-left: 3.5pt solid var(--pr-orange) !important;
  }
  .famhead h3 { color: #7d4405 !important; }
  .famhead--blue {
    background: var(--pr-blue-t) !important;
    border-color: var(--pr-blue) !important;
    border-left-color: var(--pr-blue) !important;
  }
  .famhead--blue h3 { color: var(--pr-blue-d) !important; }

  .prodcard { background: #fff !important; border: 1pt solid var(--pr-rule) !important; }
  .prodcard__photo { height: 90px !important; background: none !important; filter: none !important; }

  /* status badges keep their colour — the word is still there for greyscale */
  .badge { border: 1pt solid currentColor !important; }
  .badge--ok     { color: var(--pr-green-d) !important;  background: #edf6f1 !important; }
  .badge--info   { color: var(--pr-blue-d) !important;   background: var(--pr-blue-t) !important; }
  .badge--need   { color: var(--pr-amber-d) !important;  background: #fdf3e3 !important; }
  .badge--review { color: var(--pr-red-d) !important;    background: #fbeee9 !important; }

  /* items to validate — amber keyline */
  .vlist li {
    background: #fffdf8 !important;
    border: 1pt solid var(--pr-rule) !important;
    border-left: 3pt solid #e0912e !important;
  }
  .priolist li { background: #fff !important; border: 1pt solid var(--pr-rule) !important; }
  .priolist .rank, .priolist .weight { color: var(--pr-mute) !important; }

  /* next steps — the three columns keep their colour coding */
  .stepcol {
    background: #fff !important;
    border: 1pt solid var(--pr-rule) !important;
    border-top: 2.5pt solid var(--pr-orange) !important;
  }
  .stepcol--b { border-top-color: var(--pr-blue) !important; }
  .stepcol--c { border-top-color: #2e9a6b !important; }
  .stepcol li { color: #3c444d !important; }

  .agenda li { background: #fff !important; border: 1pt solid var(--pr-rule) !important; }
  .agenda li::before { color: var(--pr-orange-d) !important; }

  #resWhy li { border-bottom: 1pt solid var(--pr-rule) !important; }

  .disclaimer {
    background: var(--pr-blue-t) !important;
    border: 1pt solid var(--pr-rule) !important;
    border-left: 3pt solid var(--pr-blue) !important;
  }
  .disclaimer strong { color: var(--pr-blue-d) !important; }

  /* the report-action buttons make no sense on paper — keep only the disclaimer */
  #res-actions > *:not(.disclaimer) { display: none !important; }
  #res-actions { border-bottom: 0; }

  .sumgrid { grid-template-columns: repeat(2, 1fr); }
  .stepcols { grid-template-columns: repeat(3, 1fr); }

  /* --- assembly drawing -------------------------------------------------- */
  /* The drawing sits on a dark stage on screen. On paper it becomes a white
     technical plate: ink linework, orange highlight on the selected
     components. */
  .wspfig__stage {
    background: #fff !important;
    border: 1pt solid var(--pr-rule) !important;
    padding: 8pt !important;
  }
  .wspfig__stage::before { display: none !important; }
  .wspfig svg { color: var(--pr-ink) !important; }
  .wspfig__scroll { overflow: visible !important; }
  .wspfig__inner { min-width: 0 !important; }
  .wd-base { opacity: .62 !important; }
  .wd-lead path { opacity: .4 !important; }
  .wd-hl { stroke: var(--pr-orange) !important; filter: none !important; opacity: 1 !important; }
  /* component call-outs are part of the drawing on paper — the leader lines
     point at them (tuffbreed.css hides chips in print for the homepage) */
  .results .wsp__chips { display: block !important; }
  .wsp__chip {
    background: #fff !important; border: .8pt solid #9aa1a9 !important;
    color: var(--pr-ink) !important; font-size: 6.4pt !important;
    padding: 1.5pt 3pt !important;
  }
  .wspfig__config, .wspfig__caption { color: var(--pr-mute) !important; font-size: 7.4pt; }

  /* --- requirements matrix ---------------------------------------------- */
  .matrix { display: table !important; }
  .matrix thead { display: table-header-group !important; }
  .matrix tbody { display: table-row-group !important; }
  .matrix tr { display: table-row !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
  .matrix th, .matrix td { display: table-cell !important; border-bottom: 1pt solid #dcdfe4 !important; padding: 5pt 8pt !important; }
  .matrix thead th {
    color: var(--pr-mute) !important;
    border-bottom: 1.5pt solid var(--pr-orange) !important;
  }
  .matrix td::before { display: none !important; }
  .matrix td:first-child { width: 24% !important; }

  a[href]::after { content: ""; }
  a { color: var(--pr-blue-d) !important; text-decoration: none; }
}
