/* ==========================================================================
   MODULES — app-like surfaces built inside the style-guide contract.
   Hard edges, no shadows, flat fields. Density and state do the work
   that elevation usually does.
   ========================================================================== */

/* ---------- App shell ---------- */
.vh-app {
  display: grid; grid-template-columns: 380px 1fr; gap: 2px;
  background: var(--rule); border-top: 2px solid var(--rule);
  min-height: calc(100vh - 160px);
}
.vh-app__rail  {
  background: var(--surface-page); padding: var(--space-8);
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
}
.vh-app__main  { background: var(--surface-page); padding: var(--space-8); }

/* ---------- Status bar ---------- */
.vh-status {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); border-bottom: 2px solid var(--rule);
  padding-bottom: var(--space-4); margin-bottom: var(--space-6);
}
.vh-status__count { font-size: 40px; line-height: 38px; font-weight: 900; }
.vh-status__count em { font-style: normal; color: var(--ink-muted); }

/* progress: flat segments, not a bar with a radius */
.vh-progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-bottom: var(--space-8); }
.vh-progress span { height: 8px; background: var(--hairline); }
.vh-progress span[data-on] { background: var(--yellow); }

/* ---------- Draft slots ---------- */
.vh-slots { list-style: none; margin: 0; padding: 0; }
.vh-slot {
  display: grid; grid-template-columns: 56px 1fr; align-items: stretch;
  gap: var(--space-3); margin-bottom: var(--space-2);
}
.vh-slot__n {
  font-size: 40px; line-height: 1; font-weight: 900; text-align: right;
  color: var(--hairline); align-self: center; font-variant-numeric: tabular-nums;
}
.vh-slot[data-filled] .vh-slot__n { color: var(--ink); }

.vh-slot__drop {
  border: 2px solid var(--rule); min-height: 58px; padding: var(--space-3) var(--space-4);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--surface-paper);
}
.vh-slot[data-filled] .vh-slot__drop { background: var(--yellow); color: var(--on-yellow); }
.vh-slot[data-empty] .vh-slot__drop {
  background: var(--surface-page); border-style: dashed; border-color: var(--hairline);
  color: var(--ink-muted);
}
.vh-slot[data-over] .vh-slot__drop { background: var(--blue); border-style: solid; border-color: var(--rule); }
.vh-slot[data-over] .vh-slot__hint { color: var(--on-blue); }
.vh-slot__title { font-weight: 700; font-size: 16px; line-height: 20px; }
.vh-slot__year  { font-size: 13px; line-height: 18px; }
.vh-slot__hint  { font-size: 13px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

/* ---------- Filter chips ---------- */
.vh-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.vh-chip {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: var(--space-2) var(--space-3);
  border: 2px solid var(--rule); background: var(--surface-page); color: var(--ink);
  border-radius: var(--radius-none); cursor: pointer;
}
.vh-chip[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); }

/* ---------- Pool ---------- */
.vh-pool {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0; background: var(--surface-page);
  border-top: 2px solid var(--rule); border-left: 2px solid var(--rule);
}
.vh-card {
  background: var(--surface-page); padding: var(--space-4);
  border: 0; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
  min-height: 104px; display: flex; flex-direction: column; justify-content: space-between;
  cursor: grab; text-align: left; font-family: var(--font-sans); color: var(--ink);
}
.vh-card:hover { background: var(--yellow); color: var(--on-yellow); }
.vh-card__title { font-weight: 700; font-size: 15px; line-height: 19px; }
.vh-card__meta  { font-size: 12px; line-height: 16px; letter-spacing: 0.12em;
                  text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
.vh-card:hover .vh-card__meta { color: var(--on-yellow); }
.vh-card[data-drafted] { background: var(--surface-paper); color: var(--ink-muted); cursor: default; }
.vh-card[data-drafted]:hover { background: var(--surface-paper); color: var(--ink-muted); }
.vh-card[data-drafted] .vh-card__meta::after { content: " · drafted"; }

/* ---------- Sticky action bar ---------- */
.vh-actionbar {
  position: sticky; bottom: 0; background: var(--surface-inverse); color: var(--ink-inverse);
  border-top: 2px solid var(--rule); padding: var(--space-4) var(--space-16);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  flex-wrap: wrap;
}
.vh-actionbar .vh-btn { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.vh-actionbar .vh-btn--disabled { background: transparent; color: var(--ink-inverse); border-color: var(--ink-inverse); }
.vh-actionbar__note { font-size: 13px; line-height: 18px; }

/* ---------- Result: the split ---------- */
.vh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule); }
.vh-split__col { background: var(--surface-page); padding: var(--space-8); }
.vh-split__col--a { background: var(--blue); color: var(--on-blue); }
.vh-split__col--b { background: var(--yellow); color: var(--on-yellow); }
.vh-split h3 { margin: 0 0 var(--space-6); }
.vh-split__col--a h3 { background: var(--surface-inverse); color: var(--ink-inverse);
                       display: inline-block; padding: var(--space-1) var(--space-2); }

.vh-rank { list-style: none; margin: 0; padding: 0; }
.vh-rank li { display: grid; grid-template-columns: 34px 1fr auto; gap: var(--space-3);
              align-items: baseline; padding: var(--space-2) 0;
              border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 20px; }
.vh-rank b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vh-rank .delta { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 1040px) {
  .vh-app { grid-template-columns: 1fr; }
  .vh-app__rail { position: static; }
  .vh-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vh-app__rail, .vh-app__main { padding: var(--space-6); }
  .vh-actionbar { padding: var(--space-4) var(--space-6); }
  .vh-pool { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- Full-bleed stat block ---------- */
.vh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--rule); }
.vh-stats > div { background: var(--surface-page); padding: var(--space-16) var(--space-8); }
.vh-stats strong { display: block; font-size: 96px; line-height: 86px; font-weight: 900;
                   letter-spacing: -0.01em; margin-bottom: var(--space-2); }
.vh-stats span { font-size: 13px; line-height: 18px; color: var(--ink-muted);
                 text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.vh-stats > div.is-red { background: var(--red); color: var(--on-red); }
.vh-stats > div.is-red span { color: var(--on-red); }
@media (max-width: 900px) {
  .vh-stats { grid-template-columns: 1fr; }
  .vh-stats strong { font-size: 64px; line-height: 58px; }
  .vh-stats > div { padding: var(--space-8); }
}

/* The blue field carries on-blue at 3.5:1 in light theme — display type only.
   The guide's prescribed fix: put small text on a black plate. */
.vh-split__col--a .vh-rank {
  background: var(--surface-inverse); color: var(--ink-inverse);
  padding: var(--space-4) var(--space-6);
}
.vh-split__col--a .vh-rank li { border-bottom-color: var(--ink-muted); }
.vh-split__col--a .vh-rank li:last-child { border-bottom: 0; }

/* ==========================================================================
   GATE — the question before the module starts
   ========================================================================== */
.vh-gate { max-width: 980px; margin: 0 auto; padding: var(--space-20) var(--space-16); }
.vh-gate__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
                 background: var(--rule); border: 2px solid var(--rule); margin: var(--space-8) 0; }
.vh-gate__opt {
  background: var(--surface-page); color: var(--ink); border: 0;
  font-family: var(--font-sans); padding: var(--space-8) var(--space-6);
  min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: var(--space-2); text-align: left; cursor: pointer;
}
.vh-gate__opt:hover { background: var(--yellow); color: var(--on-yellow); }
.vh-gate__opt[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); }
.vh-gate__opt b { font-size: 24px; line-height: 28px; font-weight: 900; text-transform: uppercase; }
.vh-gate__opt span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vh-gate__opt:hover span { color: var(--on-yellow); }
.vh-gate__opt[aria-pressed="true"] span { color: var(--ink-inverse); }

.vh-why { border: 2px solid var(--rule); padding: var(--space-6); max-width: 60ch; }
.vh-why p { margin: 0 0 var(--space-3); font-size: 15px; line-height: 22px; }
.vh-why p:last-child { margin: 0; }

@media (max-width: 760px) {
  .vh-gate { padding: var(--space-12) var(--space-6); }
  .vh-gate__opts { grid-template-columns: 1fr; }
  .vh-gate__opt { min-height: 130px; }
}

/* ==========================================================================
   POSTERS — 2:3 art slot. Falls back to a typeset plate when no image.
   Drop a real <img> into .vh-poster__art and nothing else changes.
   ========================================================================== */
.vh-pool--art { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }

.vh-poster { background: var(--surface-page); border: 0;
  border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
  padding: 0; cursor: grab; font-family: var(--font-sans); color: var(--ink);
  display: flex; flex-direction: column; text-align: left; }

.vh-poster__art {
  aspect-ratio: 2 / 3; width: 100%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--space-3); background: var(--surface-paper);
}
.vh-poster__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vh-poster__plate { font-weight: 900; text-transform: uppercase; font-size: 14px; line-height: 14px;
                    letter-spacing: -0.01em; z-index: 1; }
.vh-poster__yr { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.12em; z-index: 1; }

/* deterministic field colours, assigned by index in markup */
.vh-poster__art[data-f="y"] { background: var(--yellow); color: var(--on-yellow); }
.vh-poster__art[data-f="b"] { background: var(--blue);   color: var(--ink-inverse); }
.vh-poster__art[data-f="p"] { background: var(--pink);   color: var(--on-pink); }
.vh-poster__art[data-f="k"] { background: var(--surface-inverse); color: var(--ink-inverse); }
.vh-poster__art[data-f="w"] { background: var(--surface-paper);  color: var(--ink); }

.vh-poster__cap { padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.vh-poster__cap b { font-size: 13px; line-height: 17px; font-weight: 700; }
.vh-poster__cap span { font-size: 11px; line-height: 14px; letter-spacing: 0.12em;
                       text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
.vh-poster:hover .vh-poster__cap { background: var(--yellow); color: var(--on-yellow); }
.vh-poster:hover .vh-poster__cap span { color: var(--on-yellow); }
/* Drafted: swap tokens, never add opacity (guide p.10).
   The field is replaced outright and a solid plate names the state. */
.vh-poster[data-drafted] { cursor: default; }
.vh-poster[data-drafted] .vh-poster__art,
.vh-poster[data-drafted] .vh-poster__art[data-f] {
  background: var(--surface-paper); color: var(--ink-muted);
}
.vh-poster[data-drafted] .vh-poster__art img { display: none; }
.vh-poster[data-drafted] .vh-poster__plate { color: var(--ink-muted); }
.vh-poster[data-drafted] .vh-poster__art::after {
  content: "On your board"; position: absolute; z-index: 3; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); text-align: center;
  background: var(--surface-inverse); color: var(--ink-inverse);
  padding: var(--space-2) var(--space-1);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.vh-poster[data-drafted] .vh-poster__cap { background: var(--surface-paper); color: var(--ink-muted); }

/* slot art — blank until a film lands in it */
.vh-slot__art { width: 38px; aspect-ratio: 2/3; background: var(--hairline); flex: 0 0 auto; object-fit: cover; display:block; }
.vh-slot[data-filled] .vh-slot__drop { display: grid; grid-template-columns: 38px 1fr; gap: var(--space-3); align-items: center; }

/* ---------- Poster art present: the plate becomes a fallback only ---------- */
.vh-poster__art:has(img) .vh-poster__plate,
.vh-poster__art:has(img) .vh-poster__yr { display: none; }
.vh-poster__art img { z-index: 0; }

/* ==========================================================================
   SHARE — offered after the result, never before it, never as a gate.
   ========================================================================== */
.vh-share { display: grid; grid-template-columns: 360px 1fr; gap: var(--space-12); align-items: start; }

.vh-sharecard {
  aspect-ratio: 4 / 5; background: var(--yellow); color: var(--on-yellow);
  padding: var(--space-6); display: flex; flex-direction: column; justify-content: space-between;
  border: 2px solid var(--rule); position: relative; overflow: hidden;
}
.vh-sharecard__mark { font-weight: 900; text-transform: uppercase; font-size: 15px;
                      line-height: 0.84; letter-spacing: -0.02em; }
.vh-sharecard__mark span { display: block; }
.vh-sharecard__head { font-size: 26px; line-height: 24px; font-weight: 900; text-transform: uppercase; }
.vh-sharecard__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.vh-sharecard__list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-2);
                         font-size: 12px; line-height: 17px; }
.vh-sharecard__list b { font-weight: 900; font-variant-numeric: tabular-nums; }
.vh-sharecard__foot { font-size: 10px; line-height: 14px; letter-spacing: 0.12em;
                      text-transform: uppercase; font-weight: 700; }
.vh-sharecard__disc { position: absolute; width: 150px; height: 150px; border-radius: var(--radius-circle);
                      background: var(--surface-inverse); top: -62px; right: -40px; }

.vh-share__opts { display: flex; flex-direction: column; gap: var(--space-3); }
.vh-share__row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.vh-ratio { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.vh-sharecard--sq { aspect-ratio: 1 / 1; }
.vh-sharecard--wide { aspect-ratio: 16 / 9; }

@media (max-width: 860px) { .vh-share { grid-template-columns: 1fr; } }

/* ---------- Crossover strip: the films that travel ---------- */
.vh-cross { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2px; background: var(--rule); border: 2px solid var(--rule); max-width: 760px; }
.vh-cross figure { margin: 0; background: var(--surface-page); }
.vh-cross img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.vh-cross figcaption { padding: var(--space-3); }
.vh-cross b { display: block; font-size: 14px; line-height: 18px; font-weight: 700; }
.vh-cross span { font-size: 11px; line-height: 14px; letter-spacing: 0.12em;
                 text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
.vh-cross figure.is-miss { background: var(--yellow); color: var(--on-yellow); }
.vh-cross figure.is-miss span { color: var(--on-yellow); }

/* ==========================================================================
   FILTER — the dating pool visualiser
   ========================================================================== */
.vh-filter { display: grid; grid-template-columns: 420px 1fr; gap: 2px;
             background: var(--rule); border-top: 2px solid var(--rule); }
.vh-filter__controls { background: var(--surface-page); padding: var(--space-8); }
.vh-filter__view { background: var(--surface-page); padding: var(--space-8);
                   position: sticky; top: 0; align-self: start; }

.vh-ctl { border-bottom: 1px solid var(--hairline); padding: var(--space-4) 0; }
.vh-ctl:first-of-type { padding-top: 0; }
.vh-ctl__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.vh-ctl__name { font-size: 15px; line-height: 20px; font-weight: 700; }
.vh-ctl__cost { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em;
                text-transform: uppercase; color: var(--ink-muted); }
.vh-ctl__val { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: var(--space-1); }
.vh-ctl[data-on] { background: var(--surface-paper); margin: 0 calc(var(--space-4) * -1);
                   padding-left: var(--space-4); padding-right: var(--space-4); }
.vh-ctl[data-on] .vh-ctl__cost { color: var(--ink); }

.vh-range { width: 100%; margin-top: var(--space-3); accent-color: var(--ink); }

.vh-ctl--soft .vh-ctl__cost { color: var(--ink-muted); font-style: normal; }
.vh-ctl--blocked { background: var(--surface-paper); margin: 0 calc(var(--space-4) * -1);
                   padding: var(--space-4); border-bottom: 0; }
.vh-ctl--blocked .vh-ctl__name { color: var(--ink-muted); }

/* counter */
.vh-count { border-bottom: 2px solid var(--rule); padding-bottom: var(--space-4); margin-bottom: var(--space-6); }
.vh-count__n { font-size: 96px; line-height: 86px; font-weight: 900; letter-spacing: -0.01em;
               font-variant-numeric: tabular-nums; display: block; }
.vh-count__lbl { font-size: 13px; line-height: 18px; letter-spacing: 0.12em;
                 text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
.vh-count__from { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: var(--space-2); }

/* 1 square = 1,000 men */
.vh-dots { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; margin-bottom: var(--space-4); }
.vh-dots i { aspect-ratio: 1; background: var(--hairline); display: block; }
.vh-dots i[data-in] { background: var(--yellow); }
.vh-dots__key { font-size: 12px; line-height: 16px; letter-spacing: 0.12em;
                text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }

.vh-math { border: 2px solid var(--rule); padding: var(--space-6); margin-top: var(--space-8); }
.vh-math dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); }
.vh-math dt { font-size: 14px; line-height: 20px; }
.vh-math dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700;
              font-variant-numeric: tabular-nums; text-align: right; }
.vh-math dd.is-wrong { color: var(--ink-muted); text-decoration: line-through; }

@media (max-width: 1040px) {
  .vh-filter { grid-template-columns: 1fr; }
  .vh-filter__view { position: static; }
  .vh-dots { grid-template-columns: repeat(20, 1fr); }
}
@media (max-width: 560px) {
  .vh-filter__controls, .vh-filter__view { padding: var(--space-6); }
  .vh-count__n { font-size: 64px; line-height: 58px; }
  .vh-dots { grid-template-columns: repeat(15, 1fr); }
}

/* ---------- Segmented choice (binary and three-way) ---------- */
.vh-seg { display: grid; gap: 2px; background: var(--rule);
          border: 2px solid var(--rule); margin-top: var(--space-3); }
.vh-seg--2 { grid-template-columns: repeat(2, 1fr); }
.vh-seg--3 { grid-template-columns: repeat(3, 1fr); }
.vh-seg button {
  background: var(--surface-page); color: var(--ink); border: 0;
  font-family: var(--font-sans); font-size: 13px; line-height: 17px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: var(--space-3) var(--space-2); cursor: pointer; text-align: center;
}
.vh-seg button:hover { background: var(--yellow); color: var(--on-yellow); }
.vh-seg button[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); }
.vh-seg small { display: block; font-size: 11px; line-height: 14px; font-weight: 400;
                letter-spacing: 0; text-transform: none; margin-top: 2px; }

/* ---------- Circled i ---------- */
.vh-info { display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: 2px solid var(--rule); border-radius: var(--radius-circle);
  background: var(--surface-page); color: var(--ink); cursor: pointer; padding: 0;
  font-family: var(--font-sans); font-size: 11px; line-height: 1; font-weight: 700;
  font-style: italic; flex: 0 0 auto; margin-left: var(--space-2); vertical-align: middle; }
.vh-info:hover { background: var(--yellow); color: var(--on-yellow); }

details.vh-note { margin-top: var(--space-2); }
details.vh-note > summary { list-style: none; display: inline-block; cursor: pointer; }
details.vh-note > summary::-webkit-details-marker { display: none; }
details.vh-note[open] .vh-info { background: var(--surface-inverse); color: var(--ink-inverse); }
.vh-note__body { border-left: 2px solid var(--rule); padding: var(--space-2) 0 var(--space-2) var(--space-3);
  margin-top: var(--space-3); font-size: 13px; line-height: 19px; color: var(--ink-muted); max-width: 46ch; }
.vh-note__body strong { color: var(--ink); }
.vh-note__tag { display: inline-block; font-size: 10px; line-height: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 1px var(--space-2);
  background: var(--surface-inverse); color: var(--ink-inverse); margin-bottom: var(--space-2); }
.vh-note__tag--assume { background: var(--red); color: var(--on-red); }

.vh-seg--4 { grid-template-columns: repeat(4, 1fr); }

/* Option grid — for lists too long for a segmented control */
.vh-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
           gap: 2px; background: var(--rule); border: 2px solid var(--rule); margin-top: var(--space-3); }
.vh-opts button {
  background: var(--surface-page); color: var(--ink); border: 0; cursor: pointer;
  font-family: var(--font-sans); padding: var(--space-3) var(--space-2); text-align: left;
  display: flex; flex-direction: column; gap: 2px; }
.vh-opts button:hover { background: var(--yellow); color: var(--on-yellow); }
.vh-opts button[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); }
.vh-opts b { font-size: 12px; line-height: 15px; font-weight: 700; }
.vh-opts small { font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .vh-seg--4 { grid-template-columns: repeat(2, 1fr); }
  .vh-opts { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   TWINNING — the contagion matrix
   ========================================================================== */
.vh-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
             gap: 0; background: var(--surface-page); margin-bottom: var(--space-8);
             border-top: 2px solid var(--rule); border-left: 2px solid var(--rule); }
.vh-person { background: var(--surface-page); padding: var(--space-4); display: flex;
             flex-direction: column; gap: var(--space-2);
             border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.vh-person input[type=text] { font-family: var(--font-sans); font-size: 15px; line-height: 20px;
  padding: var(--space-2); border: 2px solid var(--rule); border-radius: var(--radius-none);
  background: var(--surface-page); color: var(--ink); width: 100%; }
.vh-person__mutual { display: flex; align-items: center; gap: var(--space-2);
  font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* matrix */
.vh-matrix { width: 100%; border-collapse: collapse; border: 2px solid var(--rule); }
.vh-matrix th, .vh-matrix td { border: 1px solid var(--hairline); padding: 0; }
.vh-matrix thead th { background: var(--surface-paper); padding: var(--space-3) var(--space-2);
  font-size: 11px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; text-align: center; vertical-align: bottom; }
.vh-matrix thead th.is-you { background: var(--surface-inverse); color: var(--ink-inverse); }
.vh-matrix tbody th { text-align: left; padding: var(--space-2) var(--space-3); font-size: 14px; line-height: 18px;
  font-weight: 700; background: var(--surface-page); width: 34%; }
.vh-matrix td button { width: 100%; height: 40px; border: 0; background: var(--surface-page);
  cursor: pointer; display: block; }
.vh-matrix td button:hover { background: var(--hairline); }
.vh-matrix td button[aria-pressed="true"] { background: var(--yellow); }
.vh-matrix td.is-you button[aria-pressed="true"] { background: var(--surface-inverse); }
.vh-matrix tbody tr[data-caught] th { background: var(--yellow); color: var(--on-yellow); }

/* result rows */
.vh-habit { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4);
  align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
.vh-habit b { font-size: 16px; line-height: 22px; }
.vh-habit span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vh-habit__score { font-size: 24px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.vh-habit[data-hot] .vh-habit__score { color: var(--ink); }
.vh-habit[data-hot] b::after { content: " — likely caught"; font-weight: 400; color: var(--ink-muted); font-size: 13px; }

@media (max-width: 640px) {
  .vh-matrix tbody th { width: 40%; font-size: 13px; }
  .vh-matrix td button { height: 38px; }
}

/* ---------- Region: city + radius ---------- */
.vh-city {
  font-family: var(--font-sans); font-size: 16px; line-height: 22px;
  padding: var(--space-2) var(--space-3); margin-top: var(--space-3);
  border: 2px solid var(--rule); border-radius: var(--radius-none);
  background: var(--surface-page); color: var(--ink); width: 100%;
}
.vh-radius { display: grid; grid-template-columns: auto 1fr auto;
             gap: var(--space-3); align-items: center; margin-top: var(--space-3); }
.vh-radius label { font-size: 12px; line-height: 16px; font-weight: 700;
                   letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.vh-radius .vh-range { margin: 0; }
.vh-radius output { font-size: 14px; line-height: 20px; font-weight: 700;
                    font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 8ch; text-align: right; }
.vh-city__miss { font-size: 13px; line-height: 18px; color: var(--red);
                 margin: var(--space-2) 0 0; }

/* ---------- How-to: platform cards, steps, menu paths ---------- */
.vh-plat { border: 2px solid var(--ink); padding: var(--space-6);
           margin-top: var(--space-6); background: var(--surface-page); }
.vh-plat__head { display: flex; align-items: baseline; justify-content: space-between;
                 gap: var(--space-4); flex-wrap: wrap;
                 border-bottom: 2px solid var(--ink); padding-bottom: var(--space-3);
                 margin-bottom: var(--space-4); }
.vh-plat__name { font-family: var(--font-sans); font-size: 24px; line-height: 28px;
                 font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.vh-plat__switch { font-size: 12px; line-height: 16px; font-weight: 700;
                   letter-spacing: 0.1em; text-transform: uppercase;
                   background: var(--yellow); color: var(--on-yellow);
                   padding: var(--space-1) var(--space-3); }
.vh-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.vh-steps > li { counter-increment: s; position: relative;
                 padding: 0 0 var(--space-4) var(--space-12);
                 font-size: 16px; line-height: 24px; }
.vh-steps > li:last-child { padding-bottom: 0; }
.vh-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0;
                         width: 26px; height: 26px; display: grid; place-items: center;
                         background: var(--ink); color: var(--surface-page);
                         font-size: 13px; font-weight: 800; }
.vh-steps strong { font-weight: 800; }
.vh-path { display: inline-block; font-family: var(--font-sans); font-size: 13px;
           line-height: 20px; font-weight: 700; background: var(--surface-paper);
           border: 1px solid var(--rule); padding: 1px var(--space-2);
           margin: 2px 0; white-space: normal; }
.vh-path em { font-style: normal; color: var(--ink-muted); font-weight: 700;
              padding: 0 2px; }
.vh-plat__last { margin: var(--space-4) 0 0; padding-top: var(--space-4);
                 border-top: 1px solid var(--rule); font-size: 15px; line-height: 23px;
                 color: var(--ink-muted); }
.vh-plat__last strong { color: var(--ink); font-weight: 800; }
.vh-catch { border-left: 4px solid var(--red); padding: var(--space-2) 0
            var(--space-2) var(--space-4); margin: var(--space-4) 0 0;
            font-size: 15px; line-height: 23px; }

/* ---------- Two hundred hours ---------- */
.vh-hrs { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.vh-dial { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
           gap: var(--space-6); margin: var(--space-8) 0; }
.vh-dial__box { border: 2px solid var(--ink); padding: var(--space-6); }
.vh-dial__q { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em;
              text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-4); }
.vh-dial__v { font-family: var(--font-sans); font-size: 22px; line-height: 26px;
              font-weight: 800; margin: var(--space-3) 0 0; }
.vh-verdict { border: 2px solid var(--ink); background: var(--ink); color: var(--surface-page);
              padding: var(--space-8); margin: var(--space-8) 0; }
.vh-verdict__n { font-family: var(--font-sans); font-size: clamp(48px, 9vw, 96px);
                 line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.vh-verdict__l { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em;
                 text-transform: uppercase; margin: var(--space-3) 0 0; opacity: 1; }
.vh-verdict__sub { font-size: 16px; line-height: 24px; margin: var(--space-6) 0 0;
                   max-width: 60ch; }
.vh-ladder { display: grid; gap: 1px; background: var(--rule); border: 2px solid var(--ink);
             margin: var(--space-8) 0; }
.vh-rung { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-4);
           align-items: baseline; background: var(--surface-page); padding: var(--space-4) var(--space-6); }
.vh-rung[data-hit="1"] { background: var(--yellow); color: var(--on-yellow); }
.vh-rung__n { font-weight: 800; font-size: 17px; }
.vh-rung__h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
              text-transform: uppercase; color: var(--ink-muted); }
.vh-rung[data-hit="1"] .vh-rung__h { color: var(--on-yellow); }
.vh-rung__t { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; }
.vh-vs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
         margin: var(--space-8) 0; }
.vh-vs__col { border: 2px solid var(--ink); padding: var(--space-6); }
.vh-vs__col--them { background: var(--ink); color: var(--surface-page); }
.vh-vs__h { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em;
            text-transform: uppercase; margin: 0 0 var(--space-4); }
.vh-vs__big { font-family: var(--font-sans); font-size: clamp(32px, 5vw, 52px); line-height: 1;
              font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-3); }
.vh-vs__row { display: flex; justify-content: space-between; gap: var(--space-4);
              padding: var(--space-2) 0; border-top: 1px solid var(--rule);
              font-size: 15px; line-height: 22px; }
.vh-vs__col--them .vh-vs__row { border-top-color: rgba(255,255,255,0.25); }
.vh-vs__row b { font-weight: 800; font-variant-numeric: tabular-nums; }
.vh-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
           gap: 0; border: 2px solid var(--ink); border-width: 2px 0 0 2px;
           margin-top: var(--space-6); }
.vh-act { background: var(--surface-page); text-align: left; cursor: pointer;
          border: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
          padding: var(--space-4) var(--space-4); font: inherit; color: inherit;
          display: flex; flex-direction: column; gap: var(--space-2); }
.vh-act:hover { background: var(--surface-paper); }
.vh-act[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); }
.vh-act__n { font-weight: 800; font-size: 16px; line-height: 22px; }
.vh-act__d { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.vh-act[aria-pressed="true"] .vh-act__d { color: var(--on-yellow); }
.vh-act__h { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
             margin-top: auto; padding-top: var(--space-2); font-variant-numeric: tabular-nums; }
.vh-basket { position: sticky; bottom: 0; background: var(--ink); color: var(--surface-page);
             padding: var(--space-4) var(--space-6); display: flex; flex-wrap: wrap;
             gap: var(--space-4) var(--space-8); align-items: baseline;
             justify-content: space-between; margin-top: var(--space-6); }
.vh-basket__n { font-family: var(--font-sans); font-size: 28px; line-height: 1; font-weight: 800;
                font-variant-numeric: tabular-nums; }
.vh-basket__l { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.vh-seg--3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.vh-act__i { width: 26px; height: 26px; display: block; fill: none; stroke: currentColor;
             stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter;
             margin-bottom: var(--space-1); }

/* ---------- Copy-the-prompt block ---------- */
.vh-promptbox { border: 2px solid var(--ink); margin: var(--space-6) 0; }
.vh-promptbox__bar { display: flex; align-items: center; justify-content: space-between;
                     gap: var(--space-4); flex-wrap: wrap; background: var(--ink);
                     color: var(--surface-page); padding: var(--space-3) var(--space-4); }
.vh-promptbox__name { font-size: 12px; line-height: 16px; font-weight: 700;
                      letter-spacing: 0.12em; text-transform: uppercase; }
.vh-copy { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 800;
           letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
           background: var(--yellow); color: var(--on-yellow); border: 0;
           padding: var(--space-2) var(--space-4); }
.vh-copy:hover { background: var(--surface-page); color: var(--ink); }
.vh-copy[data-done="1"] { background: var(--surface-page); color: var(--ink); }
.vh-promptbox__body { max-height: 320px; overflow: auto; padding: var(--space-4);
                      background: var(--surface-paper); }
.vh-promptbox__body pre { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
                          font-size: 12px; line-height: 19px; white-space: pre-wrap;
                          word-wrap: break-word; color: var(--ink); }
.vh-where { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 0; border: 2px solid var(--ink); border-width: 2px 0 0 2px;
            margin: var(--space-6) 0; }
.vh-where a { border: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
              padding: var(--space-4); text-decoration: none; color: inherit;
              display: flex; flex-direction: column; gap: var(--space-1); }
.vh-where a:hover { background: var(--surface-paper); }
.vh-where b { font-size: 16px; line-height: 22px; font-weight: 800; }
.vh-where span { font-size: 13px; line-height: 19px; color: var(--ink-muted); }

/* ---------- Notify + social ---------- */
.vh-sub { border: 2px solid var(--ink); background: var(--surface-paper);
          padding: var(--space-6); margin: var(--space-6) 0; max-width: 620px; }
.vh-sub iframe { width: 100%; height: 150px; border: 0; display: block;
                 background: transparent; }
.vh-sub__alt { font-size: 14px; line-height: 21px; color: var(--ink-muted);
               margin: var(--space-3) 0 0; }
.vh-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
             gap: 0; border: 2px solid var(--ink); border-width: 2px 0 0 2px;
             margin: var(--space-6) 0; }
.vh-social a { border: 0; border-right: 2px solid var(--ink);
               border-bottom: 2px solid var(--ink); padding: var(--space-4);
               text-decoration: none; color: inherit; display: flex;
               align-items: center; gap: var(--space-3); }
.vh-social a:hover { background: var(--yellow); color: var(--on-yellow); }
.vh-social svg { width: 22px; height: 22px; flex: 0 0 22px; fill: currentColor; }
.vh-social b { font-size: 15px; line-height: 20px; font-weight: 800; }
.vh-social span { display: block; font-size: 12px; line-height: 17px;
                  color: var(--ink-muted); font-weight: 600; }
.vh-social a:hover span { color: var(--on-yellow); }
.vh-foot__social { display: flex; gap: var(--space-3); align-items: center; }
.vh-foot__social a { display: inline-flex; }
.vh-foot__social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ---------- Age band ---------- */
.vh-age { margin-top: var(--space-3); }
.vh-age__row { display: grid; grid-template-columns: auto 1fr auto;
               gap: var(--space-3); align-items: center; }
.vh-age__row + .vh-age__row { margin-top: var(--space-2); }
.vh-age__row label { font-size: 12px; line-height: 16px; font-weight: 700;
                     letter-spacing: 0.12em; text-transform: uppercase;
                     color: var(--ink-muted); }
.vh-age__row .vh-range { margin: 0; }
.vh-age__row output { font-size: 14px; line-height: 20px; font-weight: 800;
                      font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

/* ---------- Draft board: dragging ---------- */
.vh-ghost { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
            width: 68px; opacity: 0.92; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.vh-ghost img { display: block; width: 100%; height: auto; }
body.vh-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.vh-poster { cursor: grab; touch-action: none; }
.vh-slot[data-filled] .vh-slot__drop { cursor: grab; }
.vh-slot { touch-action: none; }
.vh-slot[data-over] .vh-slot__drop { outline: 3px solid var(--yellow); outline-offset: -3px;
                                     background: var(--surface-paper); }
.vh-poster[data-used] { opacity: 0.38; }
.vh-poster[data-used] .vh-poster__art::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0.25; }
