/* W11 · plate island — GB plate hero, vehicle card, health-gated reveal */

/* Health gate: default (no JS / unknown) shows the W2 code hero.
   html.vh-ok reveals the plate hero and demotes the code hero.
   Both heroes share one grid cell so the swap moves nothing below it
   (CLS ≈ 0): only visibility flips, the band keeps its height. */
.hero .container { display: grid; }
.hero .container > .vh-hero,
.hero .container > .vh-code-hero { grid-area: 1 / 1; min-width: 0; }
.vh-hero { visibility: hidden; }
html.vh-ok .vh-hero { visibility: visible; }
html.vh-ok .vh-code-hero { visibility: hidden; }

/* Same gate for prose and links elsewhere on a page. Written as a negation so
   the healthy variant keeps whatever display its own class gives it (grid,
   flex, block); the degraded variant is what no-JS and failed-probe visitors
   read, because it is the one that is true by default. */
html:not(.vh-ok) .vh-only-ok { display: none; }
html.vh-ok .vh-only-down { display: none; }

.vh-hero .lede { max-width: 560px; }

/* GB number plate input */
.vh-plate-form { display: flex; gap: 12px; max-width: 520px; flex-wrap: wrap; }
.vh-plate-wrap {
  display: flex; flex: 1; min-width: 240px; border-radius: 10px; overflow: hidden;
  border: 3px solid #0a1a30; box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(178deg, #ffce1f 0%, #f5b301 55%, #e8a300 100%);
}
.vh-plate-band {
  width: 34px; background: #013e93; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: .62rem; font-weight: 700;
  letter-spacing: .04em; gap: 2px; flex: none;
}
.vh-plate-band span { transform: translateY(1px); }
.vh-plate-input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: "Arial Narrow", Arial, sans-serif; font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.3rem); letter-spacing: .1em; text-transform: uppercase;
  text-align: center; color: #10243f; padding: 10px 8px; caret-color: #10243f;
}
.vh-plate-input::placeholder { color: #4b3a00; opacity: 1; letter-spacing: .1em; }
.vh-plate-input:focus-visible {
  border-radius: 6px;
  outline: 3px solid #0b57a4;
  outline-offset: -3px;
  box-shadow: none;
}
.vh-plate-btn {
  font-size: 1.05rem; font-weight: 700; padding: 12px 26px; border-radius: 10px; border: 0;
  background: #fff; color: var(--navy); cursor: pointer; flex: none;
}
.vh-plate-btn:hover { background: #e9f0f8; }
.vh-plate-btn[disabled] { opacity: .6; cursor: progress; }
.vh-privacy { font-size: .86rem; color: #c7d5e6; margin-top: 10px; }

/* First-screen doors: plain-language routes, not chips or third-party widgets. */
.vh-doors {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px 22px;
  margin: 8px 0 0;
}
.vh-door {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 0;
  color: #e8eef6;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(232, 238, 246, .5);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.vh-door:hover {
  color: #fff;
  text-decoration-color: #ffe08a;
}
.vh-door:focus-visible {
  outline: 3px solid #f5b301;
  outline-offset: 3px;
}
.vh-code-hero .vh-doors {
  margin-top: 20px;
  gap: 10px 12px;
}
.vh-code-hero .vh-doors .hero-route {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.vh-error { margin-top: 12px; font-size: .95rem; color: #ffd9d6; background: rgba(179,38,30,.35);
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 10px 14px; }
.vh-error a { color: #ffe9a8; text-decoration: underline; }

/* Vehicle card */
.vh-result { margin-top: 6px; }
.vh-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 8px 24px rgba(15,36,64,.14);
  color: var(--ink);
}
.vh-card h2 { margin: 0 0 2px; font-size: 1.3rem; }
.vh-card .vh-sub { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.vh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.vh-chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.vh-chip b { color: #0b57a4; }
.vh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.vh-fact { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.vh-fact b { display: block; font-size: 1.05rem; }
.vh-fact span { font-size: .78rem; color: var(--muted); }
.vh-fact.due-soon b { color: var(--orange); }
.vh-fact.overdue b { color: var(--red); }
.vh-links { margin-top: 10px; font-size: .92rem; display: flex; gap: 16px; flex-wrap: wrap; }
.vh-save { min-height: 44px; border: 0; border-radius: 8px; padding: 10px 14px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vh-save:disabled { cursor: default; opacity: .72; }
.vh-save-note { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.vh-reset { background: none; border: 0; color: var(--muted); font-size: .85rem;
  cursor: pointer; text-decoration: underline; min-height: 44px; padding: 8px 0; }
.vh-card :where(a, button):focus-visible { outline-color: #0b57a4; }

/* Skeleton while looking up */
.vh-skeleton { border-radius: 14px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); padding: 18px 20px; min-height: 118px; }
.vh-skel-line { height: 14px; border-radius: 7px; margin: 10px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.12) 75%);
  background-size: 200% 100%; animation: vhShimmer 1.1s linear infinite; }
.vh-skel-line.w60 { width: 60%; } .vh-skel-line.w40 { width: 40%; } .vh-skel-line.w80 { width: 80%; }
@keyframes vhShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .vh-skel-line { animation: none; } }

/* Degradation notice shown when health flips down mid-session */
.vh-downnote { margin: 14px 0 0; }

@media (forced-colors: active) {
  .vh-plate-input:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: -3px;
    box-shadow: none;
  }
  .vh-door {
    color: LinkText;
    text-decoration-color: LinkText;
  }
}
