/* AV - Hero. Signature moment "The pickup, then the queue settles".
   Full-bleed night, the voice field behind, the H1 visible from first paint, and a call card that
   rings, picks up and plays the example call. Ported from the concept (css/sections/01-hero.css).
   Every rule is scoped to .va.va-hero; tokens come from va-kit.css. Top padding is the theme's
   hero clearance class on the section; bottom padding is the editor's spacing choice. */

/* The transcript window's top fade only exists once the lines overflow it, and eases in. */
@property --va-hero-fade { syntax: "<length>"; inherits: false; initial-value: 0px; }

.va.va-hero {
  display: flex;
  align-items: center;
  min-height: min(100svh, 920px);
  overflow: hidden;
}

/* ---------- Background: field, vignette (grain comes from .va-grain) ---------- */
.va.va-hero > .va-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.va.va-hero .va-hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.va.va-hero .va-hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, transparent) 0, transparent 128px),
    linear-gradient(to bottom, transparent 74%, var(--bg) 100%),
    radial-gradient(120% 95% at 70% 46%, transparent 38%, color-mix(in srgb, var(--night-950) 92%, transparent) 100%);
}
/* Invisible box over the band the fixed nav covers, measured by the field as a quiet zone.
   module.js sets its height from VA.navBottom(); this is the fallback. */
.va.va-hero .va-hero__navq { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--nav-h) + 24px); }

/* ---------- Layout ---------- */
.va.va-hero .va-hero__in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 56px;
  align-items: center;
}
.va.va-hero .va-hero__text { position: relative; grid-column: 1 / span 7; justify-self: start; width: fit-content; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; margin-top: -3vh; }
/* Quiet zone. The field halves its strokes inside the text block's box (quiet option);
   this soft pool of night feathers that box's edges so the dim area reads as a pool, not a rectangle. */
.va.va-hero .va-hero__text::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -18% -22% -20% -14%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 58%, transparent) 0%, color-mix(in srgb, var(--bg) 36%, transparent) 62%, transparent 100%);
}
/* The card takes columns 8 to 12, held to about 480px and set against the right edge. */
.va.va-hero .va-hero__call { grid-column: 8 / span 5; justify-self: end; width: 100%; max-width: 480px; }

/* ---------- Type ---------- */
.va.va-hero .va-hero__eyebrow { margin-bottom: 20px; }
.va.va-hero .va-hero__title { max-width: 6.99em; overflow-wrap: break-word; }   /* 10.4ch of PolySans, in em so the fallback font wraps the same; a word longer than the column breaks rather than running off it */
/* The display size follows the viewport (6.6vw, up to 104px), which suits Wide. In Standard the
   container, and so the text column, stops growing at 1192px while the size keeps growing, so the
   size is also held to the grid (8.25cqi of Standard's 1152px of content is 95px, the size at a
   1440px viewport): the title keeps its four lines instead of wrapping to five.
   In Wide 8.25cqi is always the larger value, so nothing changes there.
   Each cqi size sits in @supports (width: 1cqi): without container units (Safari 15) a var() mixed with
   an unknown unit fails at computed time and the title would fall to body size; this way it keeps the
   kit's var(--fs-display-xl). */
.va.va-hero .va-hero__in { container-type: inline-size; }   /* at every width: the phone cap (Breakpoints) measures it too */
@media (min-width: 1024px) {
  @supports (width: 1cqi) { .va.va-hero .va-hero__title { font-size: min(var(--fs-display-xl), 8.25cqi); } }
}
.va.va-hero .va-hero__lead { margin-top: 32px; max-width: 44ch; }
.va.va-hero .va-hero__ctas { margin-top: 40px; }

/* The tertiary button carries a small D-orb before its label ("Watch a call"). The theme draws its
   arrow token with ::after, so the orb is ::before: left half at half strength, right half solid.
   It keeps the label's paper on hover and focus: the button stays an outline (va-kit.css), so a
   forest half would sink into the night. */
.va.va-hero .va-hero__ctas--orb .btn.btn--tertiary:is(a, button)::before,
.va.va-hero .va-hero__ctas--orb .btn.btn--tertiary :is(a, button)::before {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 12px; border-radius: 50%;
  background: linear-gradient(90deg, color-mix(in srgb, currentColor 50%, transparent) 0 47%, transparent 47% 53%, currentColor 53% 100%);
}

/* Intro, once per load: eyebrow, body and buttons fade up. The H1 never animates (LCP). */
@keyframes va-hero-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes va-hero-card { from { opacity: 0; transform: translateY(18px); } }
.va.va-hero .va-hero__eyebrow { animation: va-hero-up 400ms var(--ease-out) 60ms both; }
.va.va-hero .va-hero__lead { animation: va-hero-up 400ms var(--ease-out) 140ms both; }
.va.va-hero .va-hero__ctas { animation: va-hero-up 400ms var(--ease-out) 220ms both; }
.va.va-hero .va-hero__card { animation: va-hero-card 700ms var(--ease-out) 160ms both; }

/* ---------- Call card ---------- */
.va.va-hero .va-hero__card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 5%, transparent), 0 24px 64px -24px color-mix(in srgb, var(--night-950) 70%, transparent);
}

.va.va-hero .va-hero__head { display: flex; align-items: center; gap: 12px; min-height: 32px; }
/* The header orb's seat: a dashed ring that waits while the call rings, filled when the agent picks up. */
.va.va-hero .va-hero__seat { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; }
.va.va-hero .va-hero__seat::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--ink-3) 70%, transparent);
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.va.va-hero .va-hero__head .va-orb { --orb: 28px; transition: opacity 120ms var(--ease-out); }
.va.va-hero .va-hero__card.is-ringing .va-hero__seat::before, .va.va-hero .va-hero__card.is-picked .va-hero__seat::before { opacity: 1; }
.va.va-hero .va-hero__card.is-ringing .va-hero__head .va-orb, .va.va-hero .va-hero__card.is-picked .va-hero__head .va-orb { opacity: 0; transition: none; }

.va.va-hero .va-hero__inbound { height: 24px; gap: 6px; padding: 0 9px 0 7px; }
.va.va-hero .va-hero__inbound .va-i { width: 13px; height: 13px; color: var(--ink-3); }
.va.va-hero .va-hero__time { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.va.va-hero .va-hero__time .va-i { width: 16px; height: 16px; color: var(--ink-3); }

/* Pause / Play: the visible label, the icon and the accessible name all change together. */
.va.va-hero .va-hero__pause {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px 0 10px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; line-height: 1; color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent);
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
.va.va-hero .va-hero__pause[hidden] { display: none; }
.va.va-hero .va-hero__pause .va-i { width: 14px; height: 14px; }
.va.va-hero .va-hero__pause .va-hero__ic-play { display: none; }
.va.va-hero.is-paused .va-hero__pause .va-hero__ic-pause { display: none; }
.va.va-hero.is-paused .va-hero__pause .va-hero__ic-play { display: inline-block; }
/* Hover only where the pointer hovers, so a tap on a phone does not leave the ring behind. */
@media (hover: hover) { .va.va-hero .va-hero__pause:hover { box-shadow: inset 0 0 0 1px currentColor; } }
.va.va-hero .va-hero__pause:active { transform: scale(0.96); }
.va.va-hero.is-paused .va-hero__pause { background: var(--paper); color: var(--night-900); box-shadow: none; }

.va.va-hero .va-hero__note { gap: 10px; margin-top: -2px; }
/* The Example call note is off by default (labels.show_labels). Without it the transcript follows the
   header directly, so it takes a little more air to keep the header reading as the card's own band. */
.va.va-hero .va-hero__head + .va-hero__stage { margin-top: 4px; }

/* ---------- Transcript window ----------
   Lines start at the top, under the tag row. Once they overflow, the list anchors to the bottom,
   glides up as each line arrives, and older lines fade out under a soft top mask. */
.va.va-hero .va-hero__stage { --win-h: 300px; position: relative; display: grid; gap: 16px; }
.va.va-hero .va-hero__window {
  --va-hero-fade: 0px;
  position: relative; height: var(--win-h); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--va-hero-fade));
          mask-image: linear-gradient(to bottom, transparent 0, #000 var(--va-hero-fade));
  transition: --va-hero-fade 560ms var(--ease-voice);
}
.va.va-hero .va-hero__window.is-full { --va-hero-fade: 120px; }
.va.va-hero .va-hero__lines { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 2px; }
.va.va-hero .va-hero__window.is-full .va-hero__lines { top: auto; bottom: 0; }
.va.va-hero .va-hero__lines.is-flip { transition: transform 560ms var(--ease-voice); }
.va.va-hero .va-hero__line { display: grid; gap: 5px; }
.va.va-hero .va-hero__who { font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-tag); line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); transition: color 400ms var(--ease-voice); }
.va.va-hero .va-hero__line:not(.is-past) .va-hero__who { color: var(--ink-2); }
.va.va-hero .va-hero__say { font-size: 19px; line-height: 1.38; color: var(--ink); text-wrap: pretty; transition: opacity 500ms var(--ease-voice); }
/* Past lines step back, but only the words, and only to 0.6 (about 6:1 on night-800). Labels keep full contrast. */
.va.va-hero .va-hero__line.is-past .va-hero__say { opacity: 0.6; }
/* The redaction chip's hatch (the kit's --redact-hatch, 22%) eases back on past lines, so their dimmed
   words still hold 4.5:1 against its brightest stripe (the patient's pink measured 4.2:1 at 22%). The
   kit registers the property, so it fades with the words rather than stepping. */
.va.va-hero .va-hero__say .va-redact { transition: --redact-hatch 500ms var(--ease-voice); }
.va.va-hero .va-hero__line.is-past .va-redact { --redact-hatch: 10%; }
.va.va-hero .va-hero__line[data-speaker="patient"] .va-hero__say { color: var(--patient); font-style: italic; }
.va.va-hero .va-hero__line.is-live .w { opacity: 0; transition: opacity 160ms var(--ease-out); }
.va.va-hero .va-hero__line.is-live .w.is-on { opacity: 1; }
/* Sizes the chat window below 1024px (see Breakpoints); not used on wide layouts. */
.va.va-hero .va-hero__sizer { display: none; }

/* ---------- Ringing: a large D-orb in the middle of the window, rings twice, then flies to its seat ---------- */
/* The ring stage sits over the window but outside its clip, so the orb can fly up to the header. */
.va.va-hero .va-hero__ring {
  position: absolute; left: 0; right: 0; top: 0; height: var(--win-h); z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  visibility: hidden; opacity: 0; padding-bottom: 12px;
}
.va.va-hero .va-hero__card.is-ringing .va-hero__ring, .va.va-hero .va-hero__card.is-picked .va-hero__ring { visibility: visible; opacity: 1; }
.va.va-hero .va-hero__ringorb { position: relative; display: grid; place-items: center; width: 64px; height: 64px; transform-origin: 50% 50%; transition: transform 460ms var(--ease-voice); }
.va.va-hero .va-hero__ringorb .va-orb { --orb: 64px; }
/* Sound arcs: thin left and right curves that open outward from the D on each ring. Outlines, never a glow. */
.va.va-hero .va-hero__arc {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid transparent; border-left-color: var(--ink-3); border-right-color: var(--ink-3);
  opacity: 0; pointer-events: none;
}
.va.va-hero .va-hero__ring.is-ring .va-hero__arc { animation: va-hero-arc 0.9s var(--ease-out) 2; }
.va.va-hero .va-hero__ring.is-ring .va-hero__arc--2 { animation-delay: 0.16s; }
@keyframes va-hero-arc { 0% { opacity: 0; transform: scale(0.92); } 18% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.9); } }
.va.va-hero .va-hero__ringlabel {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1; color: var(--ink-2);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.va.va-hero .va-hero__ringlabel .va-i { width: 16px; height: 16px; color: var(--ink-3); }
.va.va-hero .va-hero__ring.is-ring .va-hero__ringlabel .va-i { animation: va-hero-ring 0.9s var(--ease-sym) 2; }
@keyframes va-hero-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
/* The pickup: the label and arcs go, the orb flies (transform set in JS from measured positions). */
.va.va-hero .va-hero__card.is-picked .va-hero__ringlabel { opacity: 0; transform: translateY(6px); }
.va.va-hero .va-hero__card.is-picked .va-hero__arc { animation: none; opacity: 0; }

/* ---------- Receipt: the record, printed on paper ----------
   A nested data-surface="paper" (module.html), so its semantic tokens are the kit's paper surface. One
   exception: the tick cut out of a done glyph shows the receipt's own paper, not the kit's raised card. */
.va.va-hero .va-hero__receipt {
  --bg-raised: var(--paper);
  display: grid; gap: 12px; padding: 22px 16px 16px; border-radius: 0 0 14px 14px;
}
.va.va-hero .va-hero__rhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.va.va-hero .va-hero__rlabel { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink-3); }
/* One D per system step. Each half-disc pivots about the centre of its own circle (a 14px cell),
   so pending ones read as scattered half-moons and done ones snap upright into the letter D. */
.va.va-hero .va-hero__ds { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.va.va-hero .va-hero__ds > i { position: relative; display: block; width: 14px; height: 14px; }
.va.va-hero .va-hero__ds > i::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 50%; height: 100%;
  border-radius: 0 7px 7px 0; background: var(--ink-3); opacity: 0.5;
  transform-origin: 0 50%; transform: rotate(var(--r, 0deg));
  transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.va.va-hero .va-hero__ds > i.is-on::before { transform: rotate(0deg); opacity: 1; background: var(--done); }

/* All steps share one grid cell, so the receipt is as tall as the longest step: no layout shift. */
.va.va-hero .va-hero__steps { display: grid; }
.va.va-hero .va-hero__step {
  grid-area: 1 / 1; display: flex; align-items: flex-start; gap: 12px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.va.va-hero .va-hero__step.is-current { opacity: 1; transform: none; }
/* The outgoing row leaves first (no delay), then the new one arrives, so two rows never overlap legibly. */
@media (prefers-reduced-motion: no-preference) { .va.va-hero .va-hero__step.is-current { transition-delay: 160ms; } }
.va.va-hero .va-hero__step.is-current.is-pending { opacity: 0.6; }
.va.va-hero .va-hero__step.is-gone { transform: translateY(-10px); }
.va.va-hero .va-hero__step .va-glyph { --g: 22px; margin-top: 1px; }
/* A person step's glyph holds a person, not a tick (module.html), a little larger to carry the tick's weight, as in the demo. */
.va.va-hero .va-hero__step .va-glyph[data-state="person"] .va-i { width: 68%; height: 68%; }
.va.va-hero .va-hero__stxt { display: grid; gap: 3px; min-width: 0; }
.va.va-hero .va-hero__stitle { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
.va.va-hero .va-hero__sdetail { font-family: var(--font-mono); font-size: 12px; line-height: 1.35; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* End of a loop: the card's content fades before the next call rings. */
.va.va-hero .va-hero__card.is-ending .va-hero__lines,
.va.va-hero .va-hero__card.is-ending .va-hero__steps { opacity: 0; transition: opacity 600ms var(--ease-voice); }

/* Loop stopped (the visitor's Pause, the card off screen or the tab hidden; module.js): freeze every
   CSS animation inside the card, so none runs unseen, and resume each from where it stopped. */
.va.va-hero.is-stopped .va-hero__card *, .va.va-hero.is-stopped .va-hero__card *::before, .va.va-hero.is-stopped .va-hero__card *::after { animation-play-state: paused !important; }

/* ---------- Before the scripts run (motion only) ----------
   The inline script adds .is-booting when motion will play, so the first paint already looks like
   the ringing card instead of flashing the still state. If the scripts never arrive, the still
   state comes back after 4s. module.js removes the class as soon as it takes over. */
.va.va-hero.is-booting .va-hero__lines,
.va.va-hero.is-booting .va-hero__steps,
.va.va-hero.is-booting .va-hero__ds,
.va.va-hero.is-booting .va-hero__head .va-orb { opacity: 0; animation: va-hero-unboot 1ms linear 4s forwards; }
.va.va-hero.is-booting .va-hero__seat::before { opacity: 1; animation: va-hero-unboot-out 1ms linear 4s forwards; }
.va.va-hero.is-booting .va-hero__ring { visibility: visible; opacity: 1; animation: va-hero-unboot-out 1ms linear 4s forwards; }
.va.va-hero.is-booting .va-eyebrow::before { transform: rotate(var(--d-rot, 135deg)); animation: va-hero-unboot-d 1ms linear 4s forwards; }
@keyframes va-hero-unboot { to { opacity: 1; } }
@keyframes va-hero-unboot-out { to { opacity: 0; visibility: hidden; } }
@keyframes va-hero-unboot-d { to { transform: rotate(0deg); } }

/* ---------- Breakpoints ---------- */
@media (max-width: 1023px) {
  .va.va-hero { display: block; min-height: 0; }
  .va.va-hero .va-hero__in { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .va.va-hero .va-hero__text, .va.va-hero .va-hero__call { grid-column: 1 / -1; margin-top: 0; }
  /* The card shares the copy's left edge and is held to about the lead's measure (470px), so it
     reads as the next item in the one column, on phones and tablets alike. */
  .va.va-hero .va-hero__call { width: 100%; max-width: 480px; justify-self: start; }
  .va.va-hero .va-hero__card { grid-template-columns: minmax(0, 1fr); container: va-hero-card / inline-size; }

  /* The still state (no JS, reduced motion, ?static=1): the window is as tall as its lines, so the
     frame opens on the call's first line, whole, with nothing clipped. The ring shares the window's cell. */
  .va.va-hero .va-hero__stage { grid-template-columns: minmax(0, 1fr); }
  .va.va-hero .va-hero__ring, .va.va-hero .va-hero__window { grid-area: 1 / 1; }
  .va.va-hero .va-hero__receipt { grid-area: 2 / 1; }
  .va.va-hero .va-hero__ring { position: relative; height: auto; }
  .va.va-hero .va-hero__window { height: auto; }
  .va.va-hero .va-hero__window, .va.va-hero .va-hero__window.is-full { --va-hero-fade: 0px; }
  .va.va-hero .va-hero__lines { position: relative; }
  .va.va-hero .va-hero__sizer > li { grid-area: 1 / 1; }

  /* With motion (from the inline script's first paint, then module.js's .is-moving) the transcript is
     a chat window: as tall as the longest line (the invisible sizer holds every line in one grid cell)
     plus a peek of the line before, which fades out under the top mask. Lines sit on the bottom edge,
     new ones arrive there and push older ones up, so the card has one height for a given width and
     never opens on an empty box. */
  .va.va-hero:is(.is-booting, .is-moving) .va-hero__stage { --peek: 56px; }
  .va.va-hero:is(.is-booting, .is-moving) .va-hero__window { padding-top: var(--peek); --va-hero-fade: var(--peek); }
  .va.va-hero:is(.is-booting, .is-moving) .va-hero__lines { position: absolute; top: auto; bottom: 0; }
  .va.va-hero:is(.is-booting, .is-moving) .va-hero__sizer { display: grid; visibility: hidden; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .va.va-hero .va-hero__title { font-size: clamp(3rem, 8.4vw, 5.25rem); }
}
/* Tablets, and touch screens at any width from 768px: the 32px pill keeps its look, its hit area grows to 44px. */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 768px) and (pointer: coarse) {
  .va.va-hero .va-hero__pause { position: relative; }
  .va.va-hero .va-hero__pause::after { content: ""; position: absolute; inset: -6px 0; }
}
@media (max-width: 767px) {
  .va.va-hero .va-hero__in { row-gap: 72px; }
  .va.va-hero > .va-hero__bg {
    top: 40%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  }
  /* Held to 17.2% of the column, so the longest word of the default heading ("appointment", about
     5.75em with its tracking) always fits it. At the default text size the kit's 48px is the smaller
     from 320px up; with larger text the heading still grows, but never past the column. */
  @supports (width: 1cqi) { .va.va-hero .va-hero__title { font-size: min(var(--fs-display-xl), 17.2cqi); } }
  .va.va-hero .va-hero__lead { margin-top: 24px; }
  .va.va-hero .va-hero__ctas { margin-top: 32px; }
  .va.va-hero .va-hero__card { padding: 16px; gap: 14px; }
  /* Held at the Pause button's height, so the card does not grow when the script shows it. */
  .va.va-hero .va-hero__head { gap: 10px; min-height: 44px; }
  .va.va-hero .va-hero__say { font-size: 17px; }
  .va.va-hero .va-hero__receipt { padding: 20px 14px 14px; }
  .va.va-hero .va-hero__pause { height: 44px; padding: 0 16px 0 13px; }
  .va.va-hero .va-hero__ds > i { width: 12px; height: 12px; }
  .va.va-hero .va-hero__ds > i::before { border-radius: 0 6px 6px 0; }
}

/* A narrow card cannot hold the header on one row: Inbound and the time stack beside the orb,
   Pause keeps the right edge. Same order, same words. The em width does the same for larger text
   (at the default size 14em is 224 to 238px, inside what 311px already covers). */
@container va-hero-card (max-width: 311px) or (max-width: 14em) {
  .va.va-hero .va-hero__head { display: grid; grid-template-columns: auto max-content 1fr; column-gap: 10px; row-gap: 4px; }
  .va.va-hero .va-hero__seat { grid-row: 1 / span 2; }
  .va.va-hero .va-hero__inbound { grid-column: 2; justify-self: start; }
  .va.va-hero .va-hero__time { grid-column: 2; }
  .va.va-hero .va-hero__pause { grid-column: 3; grid-row: 1 / span 2; justify-self: end; margin-left: 0; }
}
/* Very large text in a narrow card: Pause takes its own row under the time, so it never runs off the
   card. Never at the default size (9.75em is 156 to 166px, narrower than any card). */
@container va-hero-card (max-width: 9.75em) {
  .va.va-hero .va-hero__pause { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
}

/* ---------- Forced colours: keep the card, the controls and the record legible ---------- */
@media (forced-colors: active) {
  .va.va-hero .va-hero__card { border: 1px solid CanvasText; }
  .va.va-hero .va-hero__pause { border: 1px solid ButtonText; }
  .va.va-hero .va-hero__receipt { border: 1px solid CanvasText; }
  .va.va-hero .va-hero__vignette, .va.va-hero .va-hero__text::before { display: none; }
}
