/* ==========================================================================
   Grey Sky Capital: Help me Navigate (navigate.html, served at /navigate)
   --------------------------------------------------------------------------
   Technical Summary
   - Styles for the guide rendered by navigate.js. Every class is
     prefixed nv- so nothing here touches another page.
   - Two bands: a dark hero (the greeter and the four ways in) and a paper
     stage (one view at a time, with the shortlist beside it on wide screens
     and below it on narrow ones).
   - Colour and type come from tokens.css only. Each strategy's accent is set
     as --acc from its data-accent attribute and used as a fill (dots, bar
     segments), never as text on paper.
   - Touch targets are 44px or taller. Sliders use the native range input.
   - Reduced motion: the greeter's knock is still, and nothing animates.
     Without it, the greeter knocks three times and rests (under five seconds).
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

[data-accent="pink"]   { --acc: var(--pink); }
[data-accent="lime"]   { --acc: var(--lime); }
[data-accent="yellow"] { --acc: var(--yellow); }
[data-accent="flare"]  { --acc: var(--flare); }
[data-accent="azure"]  { --acc: var(--azure); }

/* ------------------------------ Hero: the greeter and four ways in ------------------------------ */

.nv-hero { background: var(--bg-deep); padding: calc(var(--nav-h) + 48px) 0 var(--space-continue); }
.nv-hero__inner { display: grid; gap: 40px; }
.nv-hero__head { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.nv-hero__art svg { display: block; width: 100%; height: auto; }
.nv-hero__art .nv-ink { fill: none; stroke: var(--text-head); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-hero__art .nv-frame { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 4 6; }
/* The greeter knocks three times (4.2 s), then rests. */
.nv-hero__art .nv-knock { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; animation: nv-knock 1.4s ease-in-out 3; }
.nv-hero__art .nv-arm { animation: nv-arm 1.4s ease-in-out 3; }
@keyframes nv-arm { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(8px); } 55% { transform: translateX(0); } }
@keyframes nv-knock { 0%, 40%, 100% { opacity: 0; } 50%, 75% { opacity: 1; } }
.nv-hero__title { margin-top: 14px; }
.nv-hero__sub { margin-top: 18px; max-width: 58ch; color: var(--text); }

.nv-doors { display: grid; gap: 1px; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--hairline); border: 1px solid var(--hairline); }
.nv-door {
  display: grid; gap: 8px; align-content: start; min-height: 148px; padding: 22px 18px 24px;
  background: var(--bg-deep); color: var(--text); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nv-door__no { font-family: var(--font-mono); font-size: var(--data-size); color: var(--accent); }
.nv-door__name { font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--text-head); }
.nv-door__line { font-size: 15px; line-height: 1.45; }
.nv-door:hover, .nv-door:focus-visible { background: var(--fill); color: var(--fill-ink); }
.nv-door:hover .nv-door__no, .nv-door:hover .nv-door__name,
.nv-door:focus-visible .nv-door__no, .nv-door:focus-visible .nv-door__name { color: var(--fill-ink); }

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

.nv-stage { background: var(--bg); padding: var(--space-continue) 0 var(--space-chapter); scroll-margin-top: var(--nav-h); }
.nv-stage__grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.nv-main { min-width: 0; }

.nv-bar { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 36px; border-bottom: 1px solid var(--hairline); }
.nv-back, .nv-restart, .nv-link {
  min-height: 44px; padding: 0 4px; background: none; border: 0;
  font-weight: 600; font-size: 15px; color: var(--text-head); text-decoration: underline; text-underline-offset: 4px;
}
.nv-back { text-decoration: none; padding: 0 14px; border: 1px solid var(--border); white-space: nowrap; }
.nv-back:hover { border-color: var(--text-head); }
.nv-restart { margin-left: auto; color: var(--text-muted); white-space: nowrap; }
.nv-trail { display: flex; flex: 1; min-width: 0; gap: 4px; overflow-x: auto; }
.nv-trail button {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; background: none; border: 0;
  font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
.nv-trail b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.nv-trail [aria-current] { color: var(--text-head); }
.nv-trail [aria-current] b { background: var(--fill); border-color: var(--text-head); color: var(--fill-ink); }
.nv-trail__here { display: flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: var(--data-size); letter-spacing: var(--eyebrow-tr); text-transform: uppercase; color: var(--text-muted); }

.nv-view { min-height: 420px; }
.nv-q { margin-top: 14px; max-width: 22ch; outline: none; }
.nv-lede { margin-top: 16px; max-width: 60ch; }
.nv-sub { margin: 40px 0 14px; }
.nv-note { margin-top: 18px; max-width: 64ch; }
.nv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.nv-actions--split { justify-content: space-between; }
.nv-actions--tight { margin-top: 12px; }
.nv-none { color: var(--text-muted); }
.nv-stage button.btn--line { background: transparent; }

/* Options: big, tappable answers */
.nv-opts { display: grid; gap: 12px; margin-top: 28px; }
.nv-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nv-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-opt {
  display: grid; gap: 8px; align-content: start; min-height: 96px; padding: 20px;
  text-align: left; background: var(--bg); border: 1px solid var(--border);
  transition: background-color .2s, border-color .2s, color .2s;
}
.nv-opt__name { font-size: 19px; line-height: 1.25; font-weight: 700; color: var(--text-head); }
.nv-opt__sub { font-size: 15px; line-height: 1.45; color: var(--text-muted); }
.nv-opt:hover { border-color: var(--text-head); }
.nv-opt[aria-pressed="true"] { background: var(--text-head); border-color: var(--text-head); }
.nv-opt[aria-pressed="true"] .nv-opt__name { color: var(--bg); }
.nv-opt[aria-pressed="true"] .nv-opt__sub { color: var(--paper-300); }
.nv-set { margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
.nv-set legend { padding: 0; }
.nv-set .nv-opts { margin-top: 14px; }

/* Sliders */
.nv-slider { margin-top: 32px; padding: 24px; background: var(--bg-deep); }
.nv-big { display: block; font-size: var(--d1-size); line-height: 1; letter-spacing: var(--d1-tr); font-weight: 700; color: var(--text-head); }
.nv-stage input[type="range"] { display: block; width: 100%; height: 44px; margin: 10px 0 0; accent-color: var(--text-head); }
.nv-stage input[type="range"]:disabled { opacity: .35; }
.nv-ticks { display: flex; justify-content: space-between; color: var(--text-muted); }
.nv-riskout { display: grid; gap: 6px; min-height: 84px; }
.nv-riskout strong { font-size: var(--d2-size); line-height: var(--d2-lh); letter-spacing: var(--d2-tr); color: var(--text-head); }
.nv-aside-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 20px 24px; border: 1px solid var(--border); }

/* Ten questions */
.nv-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 24px; max-width: 420px; }
.nv-dots i { height: 6px; background: var(--hairline); }
.nv-dots .is-done { background: var(--text-head); }
.nv-dots .is-now { background: var(--accent); }
.nv-meters { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.nv-meter__top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.nv-meter__top strong { color: var(--text-head); }
.nv-meter__segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.nv-meter__segs i { height: 10px; background: var(--hairline); }
.nv-meter__segs .is-on { background: var(--text-head); }

/* The starting mix from the risk answer */
.nv-startmix { margin-top: 28px; padding: 22px; border: 1px solid var(--text-head); }
.nv-startmix .nv-mixbar { margin-top: 14px; }
.nv-startmix .t-data { margin-top: 10px; color: var(--text-muted); }
.nv-startmix .nv-startmix__money { color: var(--text-head); }
.nv-startmix .t-legal { margin-top: 12px; }

/* Shortlist cards (step 5) */
.nv-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 28px; }
.nv-card { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--border); background: var(--bg); }
.nv-card__top { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
/* .nv-card__top i, .nv-shelf i, .nv-chip i, .nv-table thead i, .nv-mixrow i: the strategy's mark (main.css, Strategy key) */
.nv-card__line { font-size: 15px; line-height: 1.45; }
.nv-card__note { color: var(--text-head); }
.nv-card__more { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--text-head); text-underline-offset: 4px; }
.nv-card.is-out { border-style: dashed; background: var(--bg-deep); }
.nv-card.is-out h3 { color: var(--text-muted); text-decoration: line-through; }
.nv-card.is-out .nv-card__line { color: var(--neg); font-weight: 600; }
.nv-card.is-out i { filter: grayscale(1); opacity: .35; }
.nv-answers { display: grid; gap: 0; max-width: 640px; }
.nv-answers li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid var(--hairline); }
.nv-answers span { color: var(--text-muted); }
.nv-answers strong { color: var(--text-head); }

/* Compare */
.nv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.nv-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--border); font-weight: 600; font-size: 15px; color: var(--text-head);
}
.nv-chip:hover { border-color: var(--text-head); }
.nv-chip[aria-pressed="true"] { background: var(--text-head); border-color: var(--text-head); color: var(--bg); }
.nv-tabs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; border-bottom: 1px solid var(--text-head); }   /* wraps: every heading stays in view */
.nv-tab {
  flex: none; min-height: 48px; padding: 0 16px; background: none; border: 0; border-bottom: 3px solid transparent;
  font-weight: 600; font-size: 15px; color: var(--text-muted); white-space: nowrap;
}
.nv-tab:hover { color: var(--text-head); }
.nv-tab[aria-selected="true"] { color: var(--text-head); border-bottom-color: var(--accent); }
.nv-panel { margin-top: 28px; }
.nv-panel__title { scroll-margin-top: calc(var(--nav-h) + 16px); }
.nv-tablewrap { margin-top: 20px; overflow-x: auto; }
.nv-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.5; }
.nv-table th, .nv-table td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.nv-table thead th { font-size: 17px; font-weight: 700; color: var(--text-head); border-bottom: 2px solid var(--text-head); }
.nv-table thead th:first-child { width: 150px; }
.nv-table thead i { margin-right: 10px; }
.nv-table thead .t-data { display: block; margin-top: 2px; color: var(--text-muted); font-weight: 400; }
.nv-table tbody th { font-family: var(--font-mono); font-size: var(--data-size); font-weight: 500; color: var(--text-muted); }
.nv-table td { color: var(--text); }
.nv-table td .t-data { color: var(--text-muted); }
.nv-table a { color: var(--accent); text-underline-offset: 4px; }
.nv-num { font-family: var(--font-mono); font-size: 19px; color: var(--text-head); }
.nv-ul { display: grid; gap: 6px; }
.nv-ul li { position: relative; padding-left: 14px; }
.nv-ul li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--border); }
.nv-own { margin-bottom: 12px; padding: 12px; background: var(--bg-deep); }
.nv-own .t-data { margin-bottom: 6px; color: var(--text-head); }
.nv-select select { margin-top: 8px; min-height: 40px; max-width: 100%; padding: 0 8px; font: inherit; font-size: 14px; font-weight: 400; color: var(--text-head); background: var(--bg); border: 1px solid var(--border); border-radius: 0; }

.nv-notice { margin-top: 20px; padding: 18px 20px; background: var(--bg-deep); border-left: 4px solid var(--accent); }
.nv-notice p + p { margin-top: 8px; }
.nv-notice strong { color: var(--text-head); }
.nv-notice details { margin-top: 12px; }
.nv-notice summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--text-head); cursor: pointer; }
.nv-notice .nv-ul { font-size: 14px; }

.nv-chart { margin-top: 20px; padding: 16px; background: var(--bg-deep); }
.nv-chart svg { display: block; width: 100%; height: auto; max-height: 420px; }
.nv-chart figcaption { margin-top: 10px; }
.nv-chart__axis { stroke: var(--border); stroke-width: 1; }
.nv-chart__lab, .nv-chart__ixlab { font-family: var(--font-mono); font-size: 11px; fill: var(--text-muted); }
.nv-chart__ix { fill: var(--border); }
.nv-chart__pt circle { fill: var(--bg-deep); stroke: var(--border); stroke-width: 1.5; }
.nv-chart__pt text { font-family: var(--font-sans); font-size: 13px; fill: var(--text-muted); }
.nv-chart__pt.is-on circle { fill: var(--acc); stroke: var(--text-head); }
.nv-chart__pt.is-on text { font-weight: 700; fill: var(--text-head); }

/* Five paces side by side */
.nv-stage.is-wide .nv-stage__grid { grid-template-columns: minmax(0, 1fr); }
.nv-stage.is-wide .nv-shelf { display: none; }
.nv-table--five { min-width: 600px; }
.nv-table--five thead th { font-size: 15px; }
.nv-table--five thead th:first-child { width: 28%; }
.nv-table--five .nv-num { font-size: 16px; }
/* Colour scale: each cell is a tile. Lime is the best figure in its row. */
.nv-table--five td.nv-heat { padding: 12px; border-right: 3px solid var(--bg); border-bottom: 3px solid var(--bg); }
.nv-table--five thead th:not(:first-child) { padding-left: 12px; }
.nv-table--five td:not(.nv-heat) { padding-left: 12px; }
.nv-table--five td:not(.nv-heat) .nv-num { font-size: 13px; white-space: nowrap; }
.nv-table--five td.is-best { background: var(--fill); }
.nv-table--five td.is-best .nv-num { font-weight: 700; color: var(--fill-ink); }
.nv-key--heat { margin: 14px 0 0; }
.nv-key--heat .is-best { background: var(--fill); }
.nv-key--heat .is-pos { background: color-mix(in srgb, var(--pos) 34%, transparent); }
.nv-key--heat .is-neg { background: color-mix(in srgb, var(--neg) 30%, transparent); }
/* Best in the row, in the strategy comparison: a lime highlighter stroke, and bold so colour is not the only cue */
.nv-best { box-shadow: inset 0 -0.5em 0 var(--fill); font-weight: 700; }
.nv-legend { margin-top: 16px; color: var(--text-muted); }
.nv-legend .nv-best { color: var(--text-head); }

/* Fees: a struck figure is the old rate */
.nv-was { text-decoration: line-through; color: var(--text-muted); }
/* Group headings inside the figures table */
.nv-table .nv-table__group th { padding-top: 26px; font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--text-head); border-bottom: 1px solid var(--text-head); }

/* Build my mix */
.nv-mixbar { display: flex; min-height: 44px; margin-top: 20px; border: 1px solid var(--text-head); }
.nv-mixbar span { display: flex; align-items: center; justify-content: safe center; min-width: 0; padding: 0 6px; overflow: hidden; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; background: var(--acc); color: var(--fill-ink); border-right: 1px solid var(--text-head); }
.nv-mixbar span:last-child { border-right: 0; }
.nv-mixbar .is-empty { background: var(--bg); color: var(--text-muted); }
.nv-mixrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 0 8px; border-bottom: 1px solid var(--hairline); }
.nv-mixrow__name { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.nv-mixrow__name strong { font-size: 18px; color: var(--text-head); }
.nv-mixrow__name .t-data { grid-column: 2; color: var(--text-muted); }
.nv-mixrow__out { font-family: var(--font-mono); font-size: 19px; color: var(--text-head); white-space: nowrap; }
.nv-mixrow input { grid-column: 1 / -1; margin-top: 0; }
.nv-mixrow.is-off strong { color: var(--text-muted); text-decoration: line-through; }
.nv-msg { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--border); max-width: 70ch; }
.nv-msg--bad { border-color: var(--neg); color: var(--neg); font-weight: 600; }
.nv-msg--warn { border-color: var(--fill-alt); }
.nv-msg--good { border-color: var(--pos); color: var(--pos); font-weight: 600; }
.nv-paceline { margin-top: 12px; color: var(--text-head); }
[data-nv-mixmsg] { margin-top: 18px; }

/* Smart Foundation on its own: six paces */
.nv-paces { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); margin-top: 28px; }
.nv-pace { display: grid; gap: 8px; align-content: start; min-height: 112px; padding: 14px; text-align: left; background: var(--bg); border: 1px solid var(--border); }
.nv-pace .t-data { color: var(--text-muted); }
.nv-pace__name { font-size: 17px; line-height: 1.2; font-weight: 700; color: var(--text-head); }
.nv-pace__tag { font-family: var(--font-mono); font-size: 11px; line-height: 1.3; color: var(--text-head); }
.nv-pace .nv-meter__segs { margin-top: 0; }
.nv-pace .nv-meter__segs i { height: 6px; }
.nv-pace:hover { border-color: var(--text-head); }
.nv-pace[aria-pressed="true"] { background: var(--text-head); border-color: var(--text-head); }
.nv-pace[aria-pressed="true"] .nv-pace__name, .nv-pace[aria-pressed="true"] .nv-pace__tag { color: var(--bg); }
.nv-pace[aria-pressed="true"] .t-data { color: var(--paper-300); }
.nv-pace[aria-pressed="true"] .nv-meter__segs i { background: var(--ink-muted); }
.nv-pace[aria-pressed="true"] .nv-meter__segs .is-on { background: var(--fill); }
.nv-pacecard { margin-top: 12px; padding: 28px; border: 1px solid var(--text-head); }
.nv-pacecard .t-lead { margin-top: 8px; }
.nv-pacecard .nv-sub { margin-top: 28px; }
.nv-quotes { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nv-quotes blockquote { padding: 16px 18px; background: var(--bg-deep); color: var(--text-head); line-height: 1.5; }
.nv-pacebar { margin-top: 0; }
.nv-pacebar .is-fi, .nv-key .is-fi { background: var(--paper-300); }
.nv-pacebar .is-gold, .nv-key .is-gold { background: var(--yellow); }
.nv-pacebar .is-eq, .nv-key .is-eq { background: var(--azure); }
.nv-pacebar .is-dyn, .nv-key .is-dyn { background: var(--lime); }
.nv-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--text-muted); }
.nv-key li { display: flex; align-items: center; gap: 8px; }
.nv-key i { width: 12px; height: 12px; border: 1px solid var(--text-head); }
.nv-pacecard .nv-ul { margin-top: 16px; }
.nv-figs { display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 4px; }
.nv-figs dt { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.nv-card .nv-link { justify-self: start; min-height: 32px; padding: 0; }

/* Talk to us */
.nv-brief { margin-top: 28px; padding: 24px; background: var(--bg-deep); max-width: 720px; }
.nv-brief dl { margin-top: 12px; }
.nv-brief dl div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.nv-brief dt { color: var(--text-muted); }
.nv-brief dd { font-weight: 600; color: var(--text-head); }
.nv-view > .t-legal { margin-top: 20px; max-width: 80ch; }

/* The shortlist beside the stage */
.nv-shelf { position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; border: 1px solid var(--border); background: var(--bg); }
.nv-shelf ul { margin-top: 14px; }
.nv-shelf li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--hairline); }
.nv-shelf li i { margin-top: 0; }
.nv-shelf strong { display: block; font-size: 15px; color: var(--text-head); }
.nv-shelf em { display: block; font-style: normal; font-size: 13px; line-height: 1.4; color: var(--pos); }
.nv-shelf .is-out strong { color: var(--text-muted); text-decoration: line-through; }
.nv-shelf .is-out em { color: var(--neg); }
.nv-shelf .is-out i { filter: grayscale(1); opacity: .35; }
.nv-shelf__count { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--text-head); font-weight: 600; color: var(--text-head); }
.nv-shelf__links { display: grid; gap: 8px; margin-top: 16px; }
.nv-shelf__links .btn { width: 100%; }

/* The placeholder tag sits inside these boxes, clear of their text */
.show-placeholders .nv-notice[data-placeholder="true"]::after,
.show-placeholders .nv-own[data-placeholder="true"]::after { top: -9px; left: auto; right: 12px; }

/* ------------------------------ Narrow screens ------------------------------ */

@media (max-width: 1279px) {
  /* The trail keeps all five numbers in view and shows only the current step's name;
     the other names are hidden from view but stay in each button's accessible name */
  .nv-trail button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nv-trail [aria-current] span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: flex; }
}
@media (max-width: 1023px) {
  .nv-stage__grid { grid-template-columns: minmax(0, 1fr); }
  .nv-shelf { position: static; }
  .nv-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nv-hero__head { grid-template-columns: minmax(0, 1fr); }
  .nv-hero__art { max-width: 150px; }
  .nv-doors, .nv-opts--2, .nv-opts--3, .nv-meters, .nv-quotes { grid-template-columns: minmax(0, 1fr); }
  .nv-paces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-pacecard { padding: 18px; }
  .nv-pacebar span { font-size: 10px; }
  .nv-door { min-height: 0; }
  .nv-bar { flex-wrap: wrap; gap: 8px 12px; }
  .nv-trail { order: 3; flex-basis: 100%; }
  .nv-slider { padding: 18px; }
  .nv-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .nv-answers li { grid-template-columns: minmax(0, 1fr) auto; }
  .nv-answers span { grid-column: 1 / -1; padding-top: 10px; }
  .nv-brief dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  /* Phones: the table unstacks. Each thing compared becomes a block, and every
     value is labelled with its strategy, so nothing scrolls sideways. */
  .nv-table, .nv-table--five { min-width: 0; }
  .nv-table, .nv-table thead, .nv-table tbody, .nv-table tr, .nv-table th, .nv-table td { display: block; }
  .nv-table thead th:first-child { display: none; }
  .nv-table thead tr { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 10px; border-bottom: 2px solid var(--text-head); }
  .nv-table thead th { padding: 0; border: 0; font-size: 14px; }
  .nv-table thead .t-data { display: none; }
  .nv-table tbody tr { padding: 16px 0 4px; border-bottom: 1px solid var(--hairline); }
  .nv-table .nv-table__group { padding: 22px 0 0; border-bottom: 1px solid var(--text-head); }
  .nv-table .nv-table__group th { padding: 0 0 8px; border: 0; }
  .nv-table tbody th, .nv-table td { padding: 0 0 12px; border: 0; }
  .nv-table--five td.nv-heat { margin-bottom: 4px; padding: 8px 10px; border: 0; }
  .nv-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--text-head); }
}

@media (prefers-reduced-motion: reduce) {
  .nv-hero__art .nv-knock, .nv-hero__art .nv-arm { animation: none; }
  .nv-hero__art .nv-knock { opacity: 1; }
  .nv-door, .nv-opt { transition: none; }
}

/* ------------------------------ Depth (tokens.css, --lit-*) ------------------------------ */
.nv-meter__segs i { border-radius: 2px; box-shadow: var(--lit-well); }
.nv-meter__segs i.is-on { background-image: var(--lit-bar); box-shadow: var(--lit-drop); }
.nv-mixbar { border: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--lit-drop); }
.nv-mixbar span, .nv-pacebar span.is-fi, .nv-pacebar span.is-gold, .nv-pacebar span.is-eq, .nv-pacebar span.is-dyn { background-image: var(--lit-bar); border-right-color: color-mix(in srgb, var(--paper-100) 70%, transparent); }
.nv-mixbar span.is-empty { background-image: none; box-shadow: var(--lit-well); }
.nv-key i { border: 0; border-radius: 2px; background-image: var(--lit-bar); box-shadow: var(--lit-drop); }

/* Talk to us: the contact form under the brief (sent through crm.js) */
.nv-form { display: grid; gap: 18px; max-width: 720px; margin-top: 28px; }
.nv-form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .nv-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nv-field { display: grid; gap: 8px; }
.nv-field span { font-family: var(--font-mono); font-size: var(--eyebrow-size); font-weight: 500; letter-spacing: var(--eyebrow-tr); text-transform: uppercase; color: var(--text); }
.nv-field em { margin-left: 6px; font-style: normal; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.nv-field input, .nv-field textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 0;
  font-family: var(--font-sans); font-size: var(--body-size); color: var(--text-head);
  background: var(--bg); border: 1px solid var(--border); transition: border-color .2s;
}
.nv-field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.nv-field input:hover, .nv-field textarea:hover { border-color: var(--text-head); }
.nv-field input:focus-visible, .nv-field textarea:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-color: var(--text-head); }
.nv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nv-form__captcha:not(:empty) { min-height: 78px; }
.nv-form .nv-note { margin-top: 0; }
.nv-sent { margin-top: 28px; padding: 24px; max-width: 720px; background: var(--bg-deep); }
.nv-sent h3 { margin: 0 0 6px; font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); color: var(--text-head); }
.nv-sent p { margin: 0; }
