/* --------------------------------------------------------------------------
   PROJECT LAYER — loaded after brand.css (vendored, never edited).

   Slot override: the pack's single accent is swapped to phosphor cyan, the
   radio-domain hue. The shipped brand.css sets --accent and the hard-shadow
   tokens to literals instead of aliasing them to --brand-accent (GUIDE §2
   documents the aliasing; the vendored file does not implement it), so the
   derivation lives here. Change --brand-accent and every accent role follows.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --brand-accent: #00d9e8; /* cyan, 11.4:1 on canvas (AAA) */
  --accent: var(--brand-accent);
  --accent-hover: var(--brand-accent);
  --shadow-hard: 4px 4px 0 var(--brand-accent);
  --shadow-hard-hover: 8px 8px 0 var(--brand-accent);
  --shadow-pressed: 2px 2px 0 var(--brand-accent);
}

/* The pack's components declare `display` (inline-flex / block / grid), which
   beats the UA's low-specificity `[hidden]` rule. The app toggles `hidden` on
   nodes that now carry pack classes (.btn on Play, .field on the answer), so
   restore hiding once, here, instead of per element. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--canvas-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
  display: flex;
  flex-direction: column;
  min-block-size: 100dvh;
}

.app {
  display: grid;
  grid-template-columns: 1fr;
  /* one column at every width: trainer, copied-this-session, stats. Settings
     live in the gear drawer, so they never take layout space. */
  grid-template-areas:
    "header"
    "stage"
    "log"
    "stats";
  gap: var(--space-4);
  padding: var(--space-4);
  flex: 1 0 auto;
  inline-size: 100%;
  align-content: start;
  max-inline-size: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .app {
    gap: var(--space-6);
    padding: var(--space-6);
  }
}

/* skip link */

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: calc(-1 * var(--space-16));
  z-index: var(--z-nav);
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
  border-radius: var(--radius-none);
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: var(--space-2);
}

/* header */

.app-header {
  grid-area: header;
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-raised);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  border-block-end: 1px solid var(--border-hairline);
  background: var(--canvas-base);
  padding-block: var(--space-3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
}

/* brand lockup: the pack's .site-header__brand organism carries layout and type
   (mono, semibold, caps at the tracking token, text-primary). The project layer
   guards the wordmark and keeps the accent on the mark only. */
.brand {
  white-space: nowrap;
  flex-shrink: 0;
}

/* marks sit in the text role; tile edge and underline carry the accent */
.brand .mark-tile {
  fill: var(--canvas-base);
  stroke: var(--accent);
}

.brand .mark-underline {
  fill: var(--accent);
}

/* the lockup wraps whole rather than clipping; step the name down so brand and
   actions share one row wherever that row fits */
@media (max-width: 767px) {
  .brand {
    font-size: var(--text-xs);
  }
}

/* last-session summary: history, so it sits with the session numbers at the
   bottom rather than in the header — but on its own line, so it cannot be read
   as a sixth stat. Bare mono caps like the scope readout: no pill, no surface.
   --text-muted, not --text-subtle: subtle fails AA at --text-xs on the card. */
.last-chip {
  flex-basis: 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* settings drawer: gear in the sticky header, panel over the content */

.settings-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  inline-size: min(420px, 100%);
  max-inline-size: 100%;
  block-size: 100dvh;
  max-block-size: 100dvh;
  margin: 0;
  border: 0;
  border-inline-start: 1px solid var(--border-hairline);
  border-radius: var(--radius-none);
  background: var(--canvas-raised);
  color: var(--text-primary);
  padding: var(--space-4);
  overflow-block: auto;
}

/* no alpha anywhere: the overlay is a solid canvas cut, not a scrim */
.settings-drawer::backdrop {
  background: var(--canvas-base);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-end: var(--space-3);
}

.settings-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* portrait phones: bottom sheet, thumb-reachable, whole width */
@media (max-width: 767px) {
  .settings-drawer {
    inset-block: auto 0;
    inset-inline: 0;
    inline-size: 100%;
    block-size: auto;
    max-block-size: 85dvh;
    border-inline-start: 0;
    border-block-start: 1px solid var(--border-hairline);
    padding-block-end: max(var(--space-4), env(safe-area-inset-bottom));
  }
}

@keyframes drawer-in-x {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes drawer-in-y {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .settings-drawer[open] {
    animation: drawer-in-x var(--motion-base) var(--motion-easing) both;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .settings-drawer[open] {
    animation-name: drawer-in-y;
  }
}

.setting-group {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 0;
}


.setting-legend {
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* explanatory prose under a control; muted, but larger than the legend */
.setting-help {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* the pack's segmented control, stretched to the drawer width */
.segmented {
  display: flex;
  inline-size: 100%;
}

/* three options must not clip in the drawer: share the row, tighten the inline
   padding, keep the label on one line */
.segmented__option {
  flex: 1;
  padding-inline: var(--space-2);
  white-space: nowrap;
}

/* Four mode labels (Prefix/Length/Continent/Numbers) need more than a phone's
   width at --text-sm; drop a step on narrow screens so nothing is clipped. */
@media (max-width: 480px) {
  .segmented__option {
    font-size: var(--text-xs);
  }
}

/* the pack hides the radio input (opacity 0), so its focus outline is invisible;
   draw the keyboard cue on the label instead */
.segmented__option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* an accent ring on an accent-filled selected segment disappears */
.segmented__option:has(input:focus-visible):has(input:checked) {
  outline-color: var(--text-primary);
}

/* pack select.field supplies surface, border and chevron */
.continent-select {
  inline-size: 100%;
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-2);
  align-items: center;
}

.slider-row input[type='range'] {
  grid-column: 1 / -1;
  inline-size: 100%;
  block-size: 44px;
  accent-color: var(--accent);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.slider-row input[type='range']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* square accent thumb: the pack's radius discipline, not the UA circle */
.slider-row input[type='range']::-webkit-slider-runnable-track {
  block-size: 2px;
  background: var(--border-strong);
}

.slider-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 14px;
  block-size: 14px;
  margin-block-start: -6px;
  border: 0;
  border-radius: var(--radius-none);
  background: var(--accent);
}

.slider-row input[type='range']::-moz-range-track {
  block-size: 2px;
  background: var(--border-strong);
}

.slider-row input[type='range']::-moz-range-thumb {
  inline-size: 14px;
  block-size: 14px;
  border: 0;
  border-radius: var(--radius-none);
  background: var(--accent);
}

.readout {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: var(--numeric-tabular);
  color: var(--accent);
  text-align: end;
}

/* the pack's btn--ghost carries the chrome; only the spacing is local */
.sound-check {
  margin-block-start: var(--space-1);
}

/* stage */

/* layout only: the pack's .card carries the surface */
.stage {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-8);
}

/* fixed status lane: the cue toggles inside it, so the scope never moves */
.stage-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 20px;
  inline-size: 100%;
}

.on-air {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}


/* flat lamp: a square that flips bright/dim on the pack's step idiom — no
   glow, no opacity, no radius. §7.3 collapses the blink under reduced motion. */
.on-air-dot {
  inline-size: var(--space-3);
  block-size: var(--space-3);
  background: var(--accent);
  animation: on-air-blink 1.2s step-end infinite;
}

@keyframes on-air-blink {
  50% {
    background: var(--border-strong);
  }
}

/* boot: the dataset (1.6 MB raw, ~70 KB compressed) must arrive before the
   controls are wired, so show that instead of a dead Play button */
.stage-loading {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

body:not(.booting) .stage-loading {
  display: none;
}

body.booting .play-btn,
body.booting .answer,
body.booting .answer-label {
  display: none;
}

/* pre-roll cue: the gap before a fresh callsign is keyed. */
.get-ready {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}


/* scope trace: keying envelope of post-verdict replays */

/* the readout and the canvas travel as one instrument block, so the readout
   holds still while the lamp and the get-ready cue toggle above it */
.scope-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  inline-size: min(100%, 420px);
}

/* the instrument's readout: mode left, tempo right, bare mono caps — the same
   idiom as Copy / ON AIR / Get ready…, not a badge. No surface, no pill: the
   scope is the instrument face. */
.scope-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  inline-size: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* the value an operator verifies mid-round: fixed position, digits hold width.
   margin-inline-start holds the right edge even when the row wraps to stacked. */
.readout-tempo {
  margin-inline-start: auto;
  font-variant-numeric: var(--numeric-tabular);
}

.scope {
  display: block;
  inline-size: 100%;
  block-size: 84px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-none);
  background: var(--canvas-sunken);
}

/* the pack's btn--primary carries the hard shadow; only the width is local */
.play-btn {
  min-inline-size: 12rem;
}

/* visible label: at rest the field is a dark box, so name it */
.answer-label {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* the pack's .field carries surface, border and focus; the copy entry is the
   one place the accent ink sits on a field */
.answer {
  inline-size: min(100%, 22ch);
  color: var(--accent);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wide);
  text-align: center;
  text-transform: uppercase;
}

/* after the verdict the field is a record of what was typed, not an input */
.answer[readonly] {
  cursor: default;
}

/* The pack's global :focus-visible pulses the focus ring (focus-caret, 1.2s).
   The copy field is autofocused for the whole session, so the pulse is a
   permanent distraction rather than a transient keyboard-focus cue. Freeze the
   ring solid; the pack's 2px accent outline is kept — only its animation is
   dropped. Scoped to .answer so every other focusable keeps the pack cue. */
.answer:focus-visible {
  animation: none;
}

@media (max-width: 480px) {
  .answer {
    font-size: var(--text-lg);
  }
}

/* verdict + diff */

.verdict {
  min-block-size: 120px;
  inline-size: 100%;
  max-inline-size: 480px;
  text-align: center;
  font-size: var(--text-sm);
}

/* the onboarding/reminder line owns the verdict slot until something is scored.
   Same box as .verdict so the layout does not move when the two swap. */
.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 120px;
  inline-size: 100%;
  max-inline-size: 480px;
  margin: 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* compact action reminder under the verdict; not a live region */
.feedback-hint {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
}

/* flat status panel: the pack's .callout--ok|err|info carries fill, tone and
   the status-side rule (applied in view.js). Idle carries no tone. */

@media (prefers-reduced-motion: no-preference) {
  .verdict--enter {
    animation: verdict-fade var(--motion-slow) var(--motion-easing) both;
  }
}

@keyframes verdict-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.verdict-line {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.verdict-icon {
  display: inline-block;
  vertical-align: -4px;
}

.verdict-icon svg {
  display: block;
}

.verdict-call {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-wide);
  color: var(--text-primary);
}

.verdict-entity {
  margin-block: var(--space-2) 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}

/* the form actually keyed, shown only when cut numbers changed the sound */
.verdict-sent {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.diff {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-normal);
}

.diff-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space--1);
  min-inline-size: 1.2ch;
}

.diff-exp,
.diff-typed {
  line-height: var(--leading-tight);
}

.diff-exp {
  color: var(--text-subtle);
}

.diff-typed {
  color: var(--text-primary);
}

.diff-morse {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  min-block-size: 1em;
}

.diff-cell--match .diff-exp {
  color: var(--status-ok-fg);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.diff-cell--match .diff-typed {
  color: var(--status-ok-fg);
}

.diff-cell--mismatch .diff-exp {
  color: var(--status-ok-fg);
}

.diff-cell--mismatch .diff-typed {
  color: var(--status-err-fg);
  text-decoration: line-through;
}

.diff-cell--missing .diff-exp {
  color: var(--status-ok-fg);
}

.diff-cell--missing .diff-typed {
  color: var(--status-err-fg);
}

.diff-cell--extra .diff-typed {
  color: var(--status-err-fg);
  text-decoration: line-through;
}

/* stats bar */

/* layout only: the pack's .card carries the surface */
.stats-bar {
  grid-area: stats;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-3);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.stat-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-variant-numeric: var(--numeric-tabular);
  color: var(--accent);
}

/* the pack's btn--ghost carries the chrome; only the mobile disclosure is local */
.stats-more {
  display: none;
  align-self: center;
}

/* End Session terminates the session whose numbers this bar shows, so it lives
   here rather than in the brand band. Trailing edge; reserved slot when hidden
   (see the gating in view.js) so the layout never jumps. */
.end-session {
  margin-inline-start: auto;
  align-self: center;
}

.end-session--hidden {
  visibility: hidden;
}

/* mobile: attempts/accuracy/streak stay, the rest behind a disclosure */

.stat-extra {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

@media (max-width: 767px) {
  .stats-more {
    display: block;
  }

  .stat-extra {
    display: none;
    inline-size: 100%;
  }

  .stats-bar.stats-bar--open .stat-extra {
    display: flex;
  }
}

/* copied this session */

/* layout only: the pack's .card carries the surface */
.copy-log {
  grid-area: log;
  padding-block: var(--space-3);
}

.copy-log-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.copy-log-scroll {
  overflow-x: auto;
}

.copy-log-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}


.copy-log-table th {
  padding-block: var(--space-1);
  padding-inline: var(--space-2);
  border-block-end: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-align: start;
  white-space: nowrap;
}

.copy-log-table th:last-child {
  text-align: end;
}

.copy-log-table td {
  padding-block: var(--space-1);
  padding-inline: var(--space-2);
  border-block-end: 1px solid var(--border-hairline);
  color: var(--text-primary);
  vertical-align: baseline;
}

.copy-log-table tr:last-child td {
  border-block-end: 0;
}

.copy-log-call {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
  white-space: nowrap;
}

.copy-log-flag {
  font-size: var(--text-base);
}

.copy-log-replays {
  font-family: var(--font-mono);
  font-variant-numeric: var(--numeric-tabular);
  text-align: end;
}

/* empty state: the pack's .empty__msg supplies margin/size/tracking/caps; mono
   is local because the pack gets it from the .empty parent, which this
   one-liner inside a card does not use. Only tone + family are local. */
.copy-log-empty {
  color: var(--text-muted);
  font-family: var(--font-mono);
}


/* shared: the pack defines :focus-visible once (§7.1) — do not re-declare */

/* portrait phones: header keeps brand + actions on one row, wrapping only when
   the lockup and the actions cannot share the line */
@media (max-width: 767px) {
  .app-header {
    gap: var(--space-1) var(--space-2);
    padding-block: var(--space-2);
  }
}

/* touch targets: the pack's §7.6 covers every .btn / .field below --bp-lg;
   only the bare controls need the floor restated here */
@media (max-width: 767px) {
  .slider-row input[type='range'],
  .stat {
    min-block-size: 44px;
  }

  .stat {
    align-items: center;
  }
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* header actions */


.wpm-ladder {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

/* session summary */

/* GUIDE §5.5 extension: a surface-only sunken variant of the pack's .card, for
   a panel nested inside another card (the summary inside the stage). Every other
   card property still comes from .card. */
.card--sunken {
  background-color: var(--canvas-sunken);
}

/* layout only: the pack's .card carries the surface. Sunken variant: the
   summary sits inside the stage card, so it needs the pack's third surface to
   read as a distinct panel (GUIDE §5.5 extension, surface only). */
.summary {
  display: grid;
  gap: var(--space-3);
  inline-size: 100%;
  max-inline-size: 420px;
  margin-block: var(--space-2);
  margin-inline: auto;
  padding: var(--space-6);
}


.summary--fade {
  animation: summary-fade var(--motion-slow) var(--motion-easing) both;
}

@keyframes summary-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.summary-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0;
}

.summary-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.summary-value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-variant-numeric: var(--numeric-tabular);
  color: var(--accent);
}

.sparkline {
  inline-size: 100%;
  block-size: 28px;
  color: var(--accent);
}

.sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.sparkline circle {
  fill: currentColor;
}

.summary-actions {
  display: flex;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
}

/* the pack's btn / btn--primary carry the chrome; these classes set width */
.summary-btn {
  flex: 1;
}

/* site footer: the pack's .site-footer component (brand.css O2) carries border,
   padding, mono caps and link behaviour. Layout-only override: the pack centres
   with space-between, which left-aligns a single child — centre the one line. */
.site-footer {
  justify-content: center;
  margin-block-start: auto;
}
