/* ==========================================================================
   Brava intake · Matchday (Bone)
   The /start/ form and its success, review and legacy status pages.
   Loaded after /assets/fonts/fonts.css and /assets/brava.css, so every
   token and b-* component is available here. Spec: design/matchday/SPEC.md
   (INPUTS, PRIMARY PILL, FACT ROWS, Grounds).

   A calm checkout: Bone ground, a wordmark-only header whose bottom edge is
   the progress track, Hanken Grotesk 600 step titles, Graphite help text,
   White inputs with Field borders, tappable bordered option rows, Stone
   drop zones, one Ink pill per step. No volt on Bone, no shadows, no radius
   except pills and radio dots.

   The worker's /review page (worker/src/routes/review-page.ts) still loads
   this file WITHOUT /assets/brava.css, so the "Shared review page" block
   near the bottom carries a literal fallback on every token it reads.
   ========================================================================== */

[x-cloak] { display: none !important; }

/* Ground ---------------------------------------------------------------------
   Pages opt in with .b-body; this keeps a page that links only this file on
   Bone with Hanken (the worker /review page). */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bone, #F6F4F0);
  color: var(--ink, #161513);
  font-family: var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* Header ---------------------------------------------------------------------- */
.in-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
}
.in-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.in-head--plain { border-bottom: 1px solid var(--hairline); }
@media (min-width: 1024px) {
  .in-head__bar { min-height: 72px; }
}
/* The wordmark is the header's only exit: give it a full 44px target. */
.in-head .b-wordmark,
.in-foot .b-wordmark { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

/* Keep keyboard and iOS "Next" focus clear of the sticky header and, on
   phones, the fixed step bar (WCAG 2.4.11 Focus Not Obscured). */
html:has(body.intake) { scroll-padding-top: 72px; }
@media (min-width: 1024px) {
  html:has(body.intake) { scroll-padding-top: 88px; }
}
@media (max-width: 767px) {
  html:has(body.intake) { scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
}

/* Progress: the header's bottom edge. Hairline track, Ink fill. */
.progress-bar { height: 3px; background: var(--hairline); }
.progress-fill { height: 100%; background: var(--ink); transition: width 320ms var(--ease); }
.progress-label { margin: 0 0 var(--s-3); }

/* Page column ------------------------------------------------------------------ */
.in-main { padding: var(--s-6) var(--gutter) var(--s-6); }
.in-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
/* Room under the last field for the fixed step bar on phones. */
.intake { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  .in-main { padding-top: var(--s-9); padding-bottom: var(--s-5); }
  .intake { padding-bottom: 0; }
}

/* Step panels ------------------------------------------------------------------ */
.step-panel { animation: step-enter 320ms var(--ease) both; }
@keyframes step-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step-head { margin-bottom: var(--s-6); }
/* steps.js focuses the new step's title; the ring shows for keyboard users only. */
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.step-subtitle {
  margin: var(--s-3) 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  max-width: 62ch;
}
@media (min-width: 1024px) {
  .step-subtitle { font-size: 17px; }
}
.step-lede { margin: var(--s-2) 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite); }

/* Fields ------------------------------------------------------------------------ */
.field { margin: 0 0 var(--s-5); }
.b-field__label .optional,
.b-field__label .help-inline { font-weight: 400; color: var(--graphite); }
.b-field__help, .b-field__error { margin: 0; }
.field--inline .b-input { max-width: 160px; }

/* Select chevron (b-select ships appearance: none with no indicator). */
.b-select {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23161513' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
  cursor: pointer;
}
.b-input::placeholder, .b-textarea::placeholder { color: var(--graphite); opacity: 1; }

/* Invalid: steps.js toggles .error on the control. The 2px Signal border
   stays while focused; focus adds the Ink ring outside it. */
.b-input.error, .b-select.error, .b-textarea.error { border: 2px solid var(--signal); padding-left: 13px; }
.b-input.error:focus, .b-select.error:focus, .b-textarea.error:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

.date-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-2); }
.date-pair--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.dob-fieldset { border: 0; padding: 0; min-width: 0; }
.dob-fieldset > legend { padding: 0; margin-bottom: var(--s-2); }

/* Option rows: pathway radios, JUCO radio and checkbox groups ------------------ */
.pathway-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.qualifier-legend { padding: 0; margin: 0 0 var(--s-1); font-weight: 600; font-size: 16px; line-height: 1.35; }
.qualifier-helper { margin: 0 0 var(--s-1); font-size: 14px; line-height: 1.45; color: var(--graphite); }
.step1-juco-bound-inline { margin-top: var(--s-7); }

.pathway-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 64px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--field);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms var(--ease);
}
.pathway-option:hover { border-color: var(--ink); }
.pathway-option.selected { border: 2px solid var(--ink); padding: 17px 15px; }
.pathway-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pathway-option__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pathway-option__label { font-weight: 600; font-size: 17px; line-height: 1.3; }
.pathway-option__help { font-size: 15px; line-height: 1.45; color: var(--graphite); }
/* Rows with no help line (Yes / No, divisions, years) sit at 56px. */
.pathway-option.division-chip,
.pathway-option--compact,
.pathway-option:not(:has(.pathway-option__help)) { min-height: 56px; padding: 15px 16px; align-items: center; }
.pathway-option.division-chip.selected,
.pathway-option--compact.selected,
.pathway-option.selected:not(:has(.pathway-option__help)) { padding: 14px 15px; }
.pathway-option:not(:has(.pathway-option__help)) input { margin-top: 0; }

.option-grid { display: grid; gap: var(--s-3); }
.option-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Radio and checkbox indicators: 22px, Field outline on White. Checked is
   an Ink ring (radio) or an Ink square with a White check (checkbox). */
.pathway-option input[type="radio"],
.pathway-option input[type="checkbox"],
.confirm-check input[type="checkbox"],
.hub-radio input[type="radio"],
.hub-radio input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--field);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.pathway-option.division-chip input,
.pathway-option--compact input,
.hub-radio input { margin-top: 0; }
.pathway-option input[type="radio"]:checked,
.hub-radio input[type="radio"]:checked { border: 7px solid var(--ink); }
.pathway-option input[type="checkbox"],
.confirm-check input[type="checkbox"],
.hub-radio input[type="checkbox"] { border-radius: 0; }
.pathway-option input[type="checkbox"]:checked,
.confirm-check input[type="checkbox"]:checked,
.hub-radio input[type="checkbox"]:checked {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3' fill='none' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
/* Where :has() works, the whole row carries the focus ring instead of the dot. */
@supports selector(:has(*)) {
  .pathway-option input:focus-visible,
  .confirm-check input:focus-visible,
  .hub-radio input:focus-visible { outline: none; }
}

/* Confirm row on the review step: the whole row is the label. */
.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: var(--s-6);
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--field);
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
}
.confirm-check:hover { border-color: var(--ink); }
.confirm-check:has(input:checked) { border: 2px solid var(--ink); padding: 17px 15px; }
.confirm-check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Unticked after a Continue/pay attempt: the same Signal border as an invalid field. */
.confirm-check.confirm-check--error { border: 2px solid var(--signal); padding: 17px 15px; }
.checkout-note { margin: var(--s-4) 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite); }
/* The stats step's "doesn't track these" box: its help line sits just under it. */
.confirm-check + .b-field__help { margin-top: var(--s-2); }

/* Uploads ---------------------------------------------------------------------- */
.upload-label { margin: var(--s-7) 0 var(--s-3); font-weight: 600; font-size: 17px; line-height: 1.3; }
.step-head + .upload-label { margin-top: 0; }
.optional-label { font-weight: 400; color: var(--graphite); }
.upload-help { margin: 0 0 var(--s-3); font-size: 14px; line-height: 1.45; color: var(--graphite); max-width: 62ch; }
.upload-help strong { color: var(--ink); font-weight: 600; }
.upload-cap { margin: var(--s-2) 0 0; font-size: 14px; color: var(--graphite); }

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 160px;
  padding: var(--s-5) var(--s-4);
  background: var(--stone);
  border: 1px solid var(--field);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms var(--ease);
}
.drop-zone:hover { border-color: var(--ink); }
.drop-zone.dragover { border: 2px solid var(--ink); padding: 23px 15px; }
.drop-zone__icon { width: 24px; height: 24px; }
.drop-label { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.drop-label strong { font-weight: 600; font-size: 16px; }
.drop-label span { font-size: 15px; color: var(--graphite); }
.drop-zone .help-text { margin: 0; font-size: 14px; color: var(--graphite); }

.file-list { margin-top: var(--s-2); }
.file-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 4px 0;
  border-bottom: 1px solid var(--hairline);
}
.file-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 15px; }
.upload-progress-text {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--graphite);
}
.file-item__done { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--graphite); }
.file-item__done svg { width: 12px; height: 12px; color: var(--ink); }
.upload-error-text { font-size: 14px; line-height: 1.4; color: var(--signal); }
.remove-btn { flex: 0 0 44px; margin-right: -10px; }

/* Footage and match-film groups: an Ink rule opens each one. */
.footage-card {
  min-width: 0;
  margin: var(--s-5) 0 0;
  padding: var(--s-3) 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
}
.footage-card__header { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; margin-bottom: var(--s-4); }
.footage-card__label { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.footage-card__thumb {
  position: relative;
  flex: 0 0 96px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footage-card__skeleton { position: absolute; inset: 0; background: var(--stone); }
.footage-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.footage-card__icon::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid var(--ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.btn-add-source { margin-top: var(--s-4); }

/* Consent options: tappable bordered rows with a radio dot. Shared with the
   review pages, so tokens carry literal fallbacks. --------------------------- */
.consent-note {
  margin: 0 0 var(--s-5, 24px);
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite, #5C5852);
  max-width: 62ch;
}
.consent-options { display: flex; flex-direction: column; gap: var(--s-3, 12px); }
.consent-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 18px 16px;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--field, #807A72);
  border-radius: 0;
  color: var(--ink, #161513);
  font: 600 17px/1.3 var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.consent-btn::before {
  content: '';
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 1.5px solid var(--field, #807A72);
  border-radius: 50%;
  background: var(--white, #FFFFFF);
}
.consent-btn:hover { border-color: var(--ink, #161513); }
.consent-btn.selected { border: 2px solid var(--ink, #161513); padding: 17px 15px; }
.consent-btn.selected::before { border: 7px solid var(--ink, #161513); }
.consent-btn:focus-visible { outline: 2px solid var(--ink, #161513); outline-offset: 2px; }
.consent-btn__body { display: flex; flex-direction: column; gap: 4px; }
.consent-btn__help { font-weight: 400; font-size: 15px; line-height: 1.45; color: var(--graphite, #5C5852); }

/* Review step ------------------------------------------------------------------ */
.code-field { margin-top: var(--s-5); }
.code-row { display: flex; gap: var(--s-2); align-items: stretch; }
.code-input { flex: 1; min-width: 0; text-transform: uppercase; }
.code-row .btn-apply-code { flex: 0 0 auto; min-height: 52px; }
.code-success, .code-error { margin: 0; font-size: 14px; }
.code-success { color: var(--ink); }
.code-error { color: var(--signal); }

/* Step actions ------------------------------------------------------------------ */
.step-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(246, 244, 240, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
}
.step-nav__inner { max-width: 560px; margin: 0 auto; }
.step-nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.step-nav .btn-back { flex: 0 0 auto; min-height: 52px; padding: 0 22px; }
.step-nav .btn-continue { flex: 1; margin-left: auto; padding: 0 20px; }
.submit-error { margin: 0 0 var(--s-3); font-size: 14px; line-height: 1.45; color: var(--signal); }
@media (min-width: 768px) {
  .step-nav {
    position: static;
    padding: 0 var(--gutter) var(--s-6);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 0;
  }
  .step-nav__actions { padding-top: var(--s-6); border-top: 1px solid var(--hairline); }
  .submit-error { margin: 0 0 var(--s-4); }
  .step-nav .btn-continue { flex: 0 0 auto; min-width: 200px; padding: 0 28px; }
}

/* Save and finish later ---------------------------------------------------------- */
.finish-later { padding: 0 var(--gutter) var(--s-6); }
.finish-later__inner { max-width: 560px; margin: 0 auto; padding-top: var(--s-5); border-top: 1px solid var(--hairline); }
@media (min-width: 768px) {
  .finish-later { padding-bottom: var(--s-10); }
  .finish-later__inner { padding-top: 0; border-top: 0; }
}
.finish-later__btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 16px/1.2 var(--font-sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.finish-later__btn:hover { text-decoration-thickness: 2px; }
.finish-later__btn:disabled { color: var(--graphite); cursor: default; }
.finish-later__hint { margin: 0; font-size: 14px; color: var(--graphite); }
.finish-later__row { display: flex; gap: var(--s-2); }
.finish-later__row .b-input { flex: 1; min-width: 0; }
.finish-later__row .btn-apply-code { flex: 0 0 auto; min-height: 52px; }
.finish-later__msg { margin: 0; font-size: 15px; line-height: 1.5; }
.finish-later__msg--error { color: var(--signal); }

/* Notices ------------------------------------------------------------------------ */
.offer-banner { margin: 0 0 var(--s-6); padding: var(--s-4); background: var(--stone); }
.offer-banner__main { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.4; }
.offer-banner__sub { margin: var(--s-1) 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite); }

/* FR-C2 under-13 hard block: non-dismissible, above the form. */
.under13-block { margin: 0 0 var(--s-6); padding: var(--s-4) 0 0; border-top: 2px solid var(--signal); }
.under13-block strong { display: block; font-weight: 600; font-size: 17px; color: var(--signal); }
.under13-block p { margin: var(--s-1) 0 0; font-size: 15px; line-height: 1.5; }

.nil-disclaimer { margin: var(--s-3) 0 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* JUCO school typeahead --------------------------------------------------------- */
.juco-typeahead-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 264px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--ink);
}
.juco-typeahead-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  padding: 10px 14px;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
}
.juco-typeahead-list li:first-child { border-top: 0; }
.juco-typeahead-list li.highlighted,
.juco-typeahead-list li[aria-selected="true"] { background: var(--stone); }
.juco-typeahead-name { font-weight: 500; font-size: 16px; }
.juco-typeahead-meta { font-size: 13px; color: var(--graphite); }

/* ==========================================================================
   Shared review page: intake/review.html and the worker's /review
   (review-page.ts). Literal fallbacks keep it on Bone without brava.css.
   ========================================================================== */
.status-page {
  /* review-page.ts colors its error line with an inline var(--error). An
     inline style outranks any selector here, so define the variable. */
  --error: var(--signal, #B42318);
  box-sizing: border-box;
  max-width: 592px;
  margin: 0 auto;
  padding: var(--s-6, 32px) var(--gutter, 16px) var(--s-9, 80px);
}
.status-page *, .status-page *::before, .status-page *::after { box-sizing: border-box; }
@media (min-width: 768px) {
  .status-page { padding-top: var(--s-9, 80px); }
}
.review-eyebrow {
  margin: 0 0 var(--s-3, 12px);
  font: 600 13px/1.2 var(--font-cond, 'Barlow Condensed', 'Arial Narrow', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite, #5C5852);
}
.status-state {
  margin: 0 0 var(--s-6, 32px);
  font: 600 32px/1.08 var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif);
  letter-spacing: -0.02em;
  color: var(--ink, #161513);
}
@media (min-width: 1024px) {
  .status-state { font-size: 44px; }
}
.status-description { margin: 0 0 var(--s-6, 32px); font-size: 16px; line-height: 1.55; color: var(--graphite, #5C5852); }

.review-section { margin: 0 0 var(--s-7, 48px); }
.review-section h3,
.review-section__title {
  margin: 0 0 var(--s-2, 8px);
  font: 600 13px/1.2 var(--font-cond, 'Barlow Condensed', 'Arial Narrow', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite, #5C5852);
}
.review-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.review-section > .b-field__help { margin: 0 0 var(--s-3); }
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4, 16px);
  min-height: 52px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline, #DCD7CE);
}
.review-row .label { flex: 0 0 auto; font-size: 14px; line-height: 1.4; color: var(--graphite, #5C5852); }
.review-row > :last-child:not(.label) {
  min-width: 0;
  font-weight: 500;
  font-size: 16px;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--ink, #161513);
}

.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ink, #161513);
  text-align: left;
  font: 600 13px/1.2 var(--font-cond, 'Barlow Condensed', 'Arial Narrow', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite, #5C5852);
}
.history-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline, #DCD7CE);
  vertical-align: middle;
  font-size: 14px;
  color: var(--graphite, #5C5852);
}
.history-table th:nth-child(2), .history-table td:nth-child(2) { text-align: right; padding-right: var(--s-5, 24px); }
.history-table td:first-child { font-weight: 500; font-size: 16px; color: var(--ink, #161513); }
.history-table td:nth-child(2) {
  font: 700 24px/1 var(--font-cond, 'Barlow Condensed', 'Arial Narrow', sans-serif);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink, #161513);
}

/* Bare form controls inside .field on the review pages. */
.status-page .field { margin: var(--s-3, 12px) 0 0; }
.status-page .field textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 14px;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--field, #807A72);
  border-radius: 0;
  color: var(--ink, #161513);
  font: 400 16px/1.5 var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif);
  resize: vertical;
}
.status-page .field textarea:focus { outline: none; border: 2px solid var(--ink, #161513); padding: 13px; }
.status-page .field .label { display: block; margin: 0 0 var(--s-2, 8px); font-weight: 600; font-size: 14px; color: var(--ink, #161513); }
.status-page .help-text { margin: var(--s-2, 8px) 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite, #5C5852); }

.review-actions { display: flex; flex-direction: column; gap: var(--s-3, 12px); margin-top: var(--s-6, 32px); }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--pill, 999px);
  background: var(--ink, #161513);
  color: var(--white, #FFFFFF);
  font: 600 16px/1.2 var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif);
  cursor: pointer;
}
.btn-submit:hover { background: var(--ink-pressed, #2A2825); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { background: var(--stone, #EBE7E0); color: var(--graphite, #5C5852); cursor: not-allowed; transform: none; }
.status-page .btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--ink, #161513);
  border-radius: var(--pill, 999px);
  background: transparent;
  color: var(--ink, #161513);
  font: 600 15px/1.2 var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif);
  cursor: pointer;
}
.btn-submit:focus-visible, .status-page .btn-back:focus-visible { outline: 2px solid var(--ink, #161513); outline-offset: 2px; }
@media (min-width: 768px) {
  .review-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .review-actions .btn-submit,
  .status-page .review-actions .btn-back { width: auto; }
}

/* Review page: the "You're live" moment is hers, on Night. */
.review-live {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-7) var(--gutter) calc(var(--s-9) + env(safe-area-inset-bottom, 0px));
}
.review-live__inner { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.review-live .b-lockup { font-size: clamp(56px, 4vw + 30px, 64px); }
.review-live .b-lead { color: var(--fg-2); }
.review-live__done { margin-top: var(--s-2); }

/* ==========================================================================
   Success page
   ========================================================================== */
.success-title { margin: var(--s-3) 0 0; }
.success-lead { margin: var(--s-4) 0 0; color: var(--graphite); }
.pay-block { margin: var(--s-7) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--ink); }
.pay-block[hidden] { display: none; }
.pay-price { margin: var(--s-3) 0 0; display: flex; align-items: baseline; gap: var(--s-2); }
.pay-price .b-num { font-size: 56px; }
.pay-price__unit { font-size: 16px; color: var(--graphite); }
.pay-headline { margin: var(--s-3) 0 0; font-weight: 600; font-size: 20px; line-height: 1.3; }
.pay-offer { margin: var(--s-2) 0 0; font-size: 15px; line-height: 1.45; color: var(--graphite); }
.pay-btn { margin-top: var(--s-5); }
.pay-note { margin: var(--s-3) 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite); }
@media (min-width: 1024px) {
  .pay-price .b-num { font-size: 72px; }
}

.next-steps { margin: var(--s-7) 0 0; }
.next-steps__list { margin: var(--s-3) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hairline); }
.next-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--s-3);
  row-gap: var(--s-1);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--hairline);
}
.next-step:first-child { border-top-color: var(--ink); }
.next-step__num { grid-row: span 2; font-size: 32px; }
.next-step__title { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.3; }
.next-step__body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.success-actions { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); align-items: stretch; }
@media (min-width: 768px) {
  .success-actions { flex-direction: row; align-items: center; }
}

/* ==========================================================================
   Legacy status page (status.html + js/hub.js). Parent-facing, on Bone.
   ========================================================================== */
.st-section { padding: var(--s-6) 0; border-top: 1px solid var(--hairline); }
.st-section:first-child { padding-top: 0; border-top: 0; }
.st-section > .b-label { margin-bottom: var(--s-3); }
.st-h2 { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.25; }
.st-text { margin: var(--s-2) 0 0; font-size: 16px; line-height: 1.55; color: var(--graphite); max-width: 62ch; }
/* Inline links inside a sentence keep the line rhythm (no 44px flex box). */
.st-text a { color: var(--ink); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.st-actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); align-items: stretch; }
@media (min-width: 768px) {
  .st-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.st-error { margin: var(--s-2) 0 0; font-size: 14px; color: var(--signal); }
.st-ok { display: inline-flex; align-items: center; gap: 6px; margin: var(--s-3) 0 0; font-size: 15px; }
.st-ok svg { width: 12px; height: 12px; flex: 0 0 12px; }
.st-linkbtn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 16px/1.2 var(--font-sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
}
.st-linkbtn:disabled { color: var(--graphite); cursor: default; }
a.b-pill[aria-disabled="true"] { background: var(--stone); color: var(--graphite); border-color: transparent; pointer-events: none; }

/* Four-step track: 2px bars, Ink up to the current step. */
.hub-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
}
.hub-pipeline-step {
  padding-top: 10px;
  border-top: 2px solid var(--hairline);
  font-size: 13px;
  line-height: 1.3;
  color: var(--graphite);
}
.hub-pipeline-step.done { border-top-color: var(--ink); }
.hub-pipeline-step.active { border-top-color: var(--ink); color: var(--ink); font-weight: 600; }
.hub-status-label:focus { outline: none; }
.hub-status-label:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.hub-flag { padding-top: var(--s-4); border-top: 2px solid var(--signal); }
.hub-flag .st-h2 { color: var(--signal); }
.hub-change-form { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }

.hub-identity { display: flex; align-items: center; gap: var(--s-4); }
.hub-headshot {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--stone);
  display: grid;
  place-items: center;
  color: var(--graphite);
}
.hub-headshot svg { width: 24px; height: 24px; }
.hub-athlete-name { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.25; }
.hub-athlete-meta { margin: var(--s-1) 0 0; font-size: 15px; line-height: 1.45; color: var(--graphite); }

.hub-seg { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.hub-seg__btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--field);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer;
}
.hub-seg__btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hub-seg__btn:disabled { cursor: not-allowed; color: var(--graphite); }
.hub-seg__btn.active:disabled { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.hub-hide-confirm { margin-top: var(--s-4); }

.hub-link-url {
  margin: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--field);
  font-weight: 500;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.hub-link-url.hidden-badge { color: var(--graphite); }

/* JUCO surfaces */
.hub-radio-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.hub-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  background: var(--white);
  border: 1px solid var(--field);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.hub-radio:hover { border-color: var(--ink); }
.hub-radio:has(input:checked) { border: 2px solid var(--ink); padding: 0 15px 0 13px; }
.hub-radio:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.hub-fieldset { margin: 0 0 var(--s-5); padding: 0; border: 0; min-width: 0; }
.hub-fieldset legend { padding: 0; font-weight: 600; font-size: 14px; }
.hub-fieldset:disabled { opacity: 0.6; }
.hub-juco-form { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--ink); }
.hub-juco-banner { margin: 0 0 var(--s-4); padding-top: var(--s-3); border-top: 2px solid var(--signal); font-size: 15px; }
.hub-juco-banner p, .hub-juco-success p { margin: 0; }
.hub-juco-success { margin: 0 0 var(--s-4); font-weight: 500; font-size: 16px; }
.hub-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.hub-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--stone);
  font-size: 14px;
  font-weight: 500;
}
.hub-skeleton { display: flex; flex-direction: column; gap: var(--s-4); }
.hub-skeleton div { height: 120px; background: var(--stone); }
.hub-skeleton div:first-child { height: 180px; }
.hub-recovery-form { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 768px) {
  .hub-recovery-form { flex-direction: row; }
  .hub-recovery-form .b-input { flex: 1; min-width: 0; }
}

.hub-head-badges { display: flex; align-items: center; gap: var(--s-2); }
section > .b-label + .b-h2 { margin-top: var(--s-3); }
.hub-vis-label { margin: var(--s-6) 0 0; }
.hub-vis-help { margin: var(--s-2) 0 0; }
.hub-cta-note { margin: var(--s-2) 0 0; }
.hub-form-lede { margin-bottom: var(--s-5); }
.hub-fieldset--first { margin-top: var(--s-5); }
.hub-copy-fallback { margin-top: var(--s-4); }
.hub-juco-school { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-4); }
.hub-facts { margin: 0; }
.hub-facts dd { margin: 0; }
.hub-juco-edit { margin-top: var(--s-3); }

/* Review page states */
.review-error { margin: 0; font-size: 16px; line-height: 1.5; color: var(--signal, #B42318); }
.review-hold { margin-top: var(--s-6, 32px); }

/* Quiet footer for the post-submit pages. */
.in-foot {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s-5) 0 var(--s-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--graphite);
}
.in-foot__wrap { padding: 0 var(--gutter); }
.in-foot .b-wordmark img { height: 16px; }
.in-foot a:not(.b-wordmark) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* Motion ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .step-panel { animation: none; }
  .progress-fill, .pathway-option, .drop-zone { transition: none; }
}
