/* ==========================================================================
   Race Day Aerials — /riders
   Loaded only by riders.html. styles.css carries the tokens, the header,
   the footer, the buttons and the form fields; everything here is either a
   component that page doesn't have (slot board, guarantee, accordion) or a
   deliberate warmer variant of one it does.

   The buyer here is a parent or a racer, not a facilities manager: bigger
   type, shorter measures, and the price is never more than a scroll away.
   ========================================================================== */

/* ------------------------------------------------------------------ hero -- */
/* Video first, headline second. The clip is the pitch — it is not a
   background with copy on top of it, it is the thing you look at. */

.rhero { background: var(--ink); }

.rhero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 62vh;
  background: #141518;
  overflow: hidden;
}
.rhero__media video,
.rhero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* just enough gradient at the base to hand off into the copy block */
.rhero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, var(--ink) 0%, rgba(13, 13, 15, 0) 100%);
  pointer-events: none;
}

.rhero__copy {
  position: relative;
  margin-top: -8px;
  padding-top: 30px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}
.rhero h1 {
  font: 400 clamp(40px, 6vw, 66px)/.98 var(--display);
  letter-spacing: -.025em;
  color: var(--paper-bright);
  text-wrap: balance;
}
.rhero__lede {
  font: 400 clamp(16.5px, 1.6vw, 19px)/1.5 var(--sans);
  color: var(--on-dark-body);
  max-width: 520px;
}

.rhero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding-top: 2px;
}
.rhero__terms {
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .02em;
  color: var(--paper);
}
.rhero__terms b { color: var(--accent); font-weight: 600; }

/* trust strip — the credibility bar from the homepage, three claims wide */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--paper);
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--ink);
}
.trust span { display: flex; align-items: center; gap: 9px; }
.trust span::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--accent-dark);
  border-radius: 50%;
}

/* ------------------------------------------------------------ slot board -- */
/* The whole page exists to get someone to this component. Scarcity is the
   argument, so the state of a row has to read from arm's length: how many
   are left, and whether the one you want is already gone. */

.board { display: flex; flex-direction: column; gap: 34px; }
.board__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.board__intro {
  font: 400 16px/1.6 var(--sans);
  color: var(--on-light-body);
  max-width: 460px;
}
.board__h3 { font: 700 clamp(21px, 2.2vw, 25px)/1.25 var(--sans); color: var(--ink); }

.board__list { display: flex; flex-direction: column; gap: 26px; }

/* 27 classes over ~54 gate drops is more than anyone scrolls with a thumb.
   Typing three characters of a class name is the fast path. */
.board__filter { margin-bottom: -8px; }
.board__filter input {
  width: 100%;
  max-width: 460px;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid rgba(13, 13, 15, .28);
  border-radius: 2px;
  color: var(--ink);
  font: 400 16px/1.3 var(--sans);   /* 16px stops iOS zooming on focus */
}
.board__filter input:focus {
  outline: 2px solid var(--accent-dark);
  outline-offset: 1px;
  border-color: var(--ink);
}
.board__filter input::placeholder { color: rgba(13, 13, 15, .45); }

/* how many chases are left in the whole day — the limit that actually binds */
.event__day {
  padding: 11px 22px;
  background: rgba(232, 155, 60, .16);
  border-bottom: 1px solid var(--on-light-rule);
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .04em;
  color: var(--ink);
}
.event__day--full {
  background: rgba(13, 13, 15, .06);
  color: rgba(13, 13, 15, .6);
}

/* divisions — collapsed on big events, flat headings on small ones */
.division { display: block; }
.division + .division { border-top: 1px solid var(--on-light-rule); }

.division__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  margin: 0;
  cursor: pointer;
  list-style: none;
  background: rgba(13, 13, 15, .035);
}
.division__head::-webkit-details-marker { display: none; }
.division__head:hover { background: rgba(13, 13, 15, .07); }
.division__head--flat { cursor: default; background: rgba(13, 13, 15, .035); }
.division__head--flat:hover { background: rgba(13, 13, 15, .035); }

.division__name {
  font: 700 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.division__count {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--accent-dark);
}
/* type, not an icon set — same as the FAQ accordion */
details.division > .division__head::after {
  content: "+";
  font: 400 19px/1 var(--mono);
  color: var(--accent-dark);
}
details.division[open] > .division__head::after { content: "–"; }

.event {
  background: var(--white);
  border: 1px solid var(--on-light-rule);
}
.event__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 18px 22px;
  background: var(--ink);
}
.event__track {
  font: 700 15px/1.2 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-bright);
}
.event__date {
  font: 600 12px/1.2 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.slot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px 18px;
  padding: 15px 22px;
  border-top: 1px solid var(--on-light-rule);
}
.slot:first-of-type { border-top: none; }

.slot__name {
  font: 600 15.5px/1.35 var(--sans);
  color: var(--ink);
  min-width: 0;
}
.slot__state {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(13, 13, 15, .6);
  white-space: nowrap;
  text-align: right;
}
/* one left is the row that sells the page — it gets the accent and the weight */
.slot--last .slot__state {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .12em;
}
.slot--last { background: rgba(232, 155, 60, .07); }

.slot--full { background: rgba(13, 13, 15, .035); }
.slot--full .slot__name { color: rgba(13, 13, 15, .45); }
.slot--full .slot__state { color: rgba(13, 13, 15, .45); }

.slot__book {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .1em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.slot__book:hover { background: var(--accent); color: var(--ink); }
.slot--last .slot__book { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.slot--last .slot__book:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* a full row keeps its column so the rows stay on one grid */
.slot__dash {
  font: 500 13px/1 var(--mono);
  color: rgba(13, 13, 15, .35);
  text-align: center;
  min-width: 84px;
}

.board__empty {
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--on-light-rule);
  font: 400 16px/1.6 var(--sans);
  color: var(--on-light-body);
}

/* board came out of the offline cache — say so rather than imply it's live */
.board__stale {
  padding: 13px 16px;
  border-left: 3px solid var(--accent-dark);
  background: rgba(232, 155, 60, .12);
  font: 500 13.5px/1.5 var(--sans);
  color: var(--ink);
}
.board__empty a { color: var(--accent-link); border-bottom: 1px solid var(--accent-link); }
.board__empty a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ------------------------------------------------------------ rate table -- */
.rrates { display: flex; flex-direction: column; gap: 30px; }
.rrates__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

.rate-list { display: flex; flex-direction: column; max-width: 760px; }
.rate-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--on-dark-rule);
}
.rate-line:first-child { border-top: 1px solid var(--on-dark-rule); }
.rate-line__name { font: 400 15.5px/1.5 var(--sans); color: var(--on-dark-body); flex: 1 1 320px; }
.rate-line__name b { font-weight: 700; color: var(--paper-bright); }
.rate-line__price {
  font: 700 19px/1 var(--sans);
  color: var(--accent);
  white-space: nowrap;
}
.rate-line__price small { font-size: 12px; font-weight: 500; color: var(--on-dark-label); }

.rrates__note {
  font: 400 14.5px/1.6 var(--sans);
  color: var(--on-dark-card);
  max-width: 520px;
}

/* ------------------------------------------------------------- guarantee -- */
/* Full-bleed accent. This is the block that makes a stranger pay in advance
   for a thing that hasn't happened yet, so nothing shares the band with it. */

.guarantee {
  background: var(--accent);
  color: var(--ink);
  padding-top: clamp(52px, 6.5vw, 78px);
  padding-bottom: clamp(52px, 6.5vw, 78px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guarantee h2 {
  font: 400 clamp(30px, 4.4vw, 50px)/1.02 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 900px;
}
.guarantee p {
  font: 500 clamp(16px, 1.7vw, 19px)/1.5 var(--sans);
  color: var(--on-light-body);
  max-width: 620px;
}
.guarantee .eyebrow { color: rgba(13, 13, 15, .62); }

/* ------------------------------------------------------------------ paid -- */
/* Sits above the hero when someone comes back from Stripe. There is no
   confirmation email on this project, so this block is the receipt: it has to
   be impossible to miss and it has to read the booking back. Accent ground,
   same as the guarantee — the two loudest moments on the page are "you don't
   pay if I miss you" and "you're booked". */

.paid {
  background: var(--accent);
  color: var(--ink);
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(38px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 3px solid var(--ink);
}
.paid:focus { outline: none; }

.paid__eyebrow {
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(13, 13, 15, .68);
}
.paid__h {
  font: 400 clamp(38px, 6.4vw, 68px)/.98 var(--display);
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.paid__lede {
  font: 500 clamp(16px, 1.7vw, 19px)/1.5 var(--sans);
  color: var(--on-light-body);
  max-width: 560px;
}

/* the booking, read back — this is the bit they check */
.paid__details {
  margin: 4px 0 0;
  max-width: 620px;
  border-top: 1px solid rgba(13, 13, 15, .28);
}
.paid__details div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 13, 15, .28);
}
.paid__details dt {
  flex: 0 0 96px;
  font: 600 10.5px/1.6 var(--mono);
  letter-spacing: .14em;
  color: rgba(13, 13, 15, .62);
}
.paid__details dd {
  margin: 0;
  flex: 1 1 240px;
  font: 700 16px/1.4 var(--sans);
  color: var(--ink);
}

.paid__next {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
  padding-top: 4px;
}
.paid__next p { font: 400 14.5px/1.6 var(--sans); color: var(--on-light-body); }
.paid__next b { font-weight: 700; color: var(--ink); }
.paid__next a { color: var(--ink); border-bottom: 1px solid rgba(13, 13, 15, .45); }
.paid__next a:hover { border-bottom-color: var(--ink); }

@media (max-width: 620px) {
  .paid__details dt { flex-basis: 100%; }
}

/* ----------------------------------------------------------------- season -- */
.season {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  align-items: flex-start;
}
.season__copy { flex: 1 1 400px; max-width: 520px; display: flex; flex-direction: column; gap: 18px; }
.season h2 {
  font: 400 clamp(30px, 3.8vw, 44px)/1.04 var(--display);
  letter-spacing: -.025em;
  color: var(--paper-bright);
  text-wrap: balance;
}
.season__lede { font: 400 16.5px/1.6 var(--sans); color: var(--on-dark-body); }
.season__who { font: 400 15px/1.6 var(--sans); color: var(--on-dark-card); }

.season__panel {
  flex: 1 1 380px;
  max-width: 520px;
  background: var(--paper);
  color: var(--ink);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.season__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(13, 13, 15, .14);
}
.season__price b {
  font: 400 clamp(38px, 4.4vw, 50px)/1 var(--display);
  letter-spacing: -.03em;
  color: var(--ink);
}
.season__price span { font: 600 14px/1 var(--sans); color: rgba(13, 13, 15, .6); }

.season__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.season__list li {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(13, 13, 15, .1);
  font: 500 14.5px/1.45 var(--sans);
  color: var(--on-light-body);
}
.season__list li:last-child { border-bottom: none; }
.season__list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  background: var(--accent-dark);
  border-radius: 50%;
  transform: translateY(-2px);
}
.season__panel .btn { width: 100%; }

/* -------------------------------------------------------------- accordion -- */
.acc { max-width: 820px; border-top: 1px solid var(--on-dark-rule); }
.acc details { border-bottom: 1px solid var(--on-dark-rule); }
.acc summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font: 700 16.5px/1.4 var(--sans);
  color: var(--paper-bright);
  transition: color var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
/* plus that becomes a minus — no icon set exists on this site, so it's type */
.acc summary::after {
  content: "+";
  flex: none;
  font: 400 22px/1 var(--mono);
  color: var(--accent);
  transform: translateY(1px);
}
.acc details[open] summary::after { content: "–"; }
.acc details[open] summary { color: var(--accent); }
.acc__body {
  padding: 0 40px 20px 0;
  font: 400 15px/1.65 var(--sans);
  color: var(--on-dark-card);
}

/* ------------------------------------------------------------- order form -- */
.order {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
}
.order__copy { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.order h2 {
  font: 400 clamp(30px, 3.8vw, 44px)/1.02 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
.order__lede { font: 500 16px/1.55 var(--sans); color: var(--on-light-body); }

.order .form-panel { flex: 1 1 460px; max-width: 660px; }
.order-form { display: flex; flex-direction: column; gap: 18px; }

/* The site's fields are 35px underlines, which is right on a laptop and tight
   for a thumb. This form is the store, so it gets 44px rows everywhere. */
.order-form .field input:not([type="file"]),
.order-form .field select {
  min-height: 44px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.order-form .field textarea { padding: 13px; }

.field__hint {
  font: 400 12.5px/1.5 var(--sans);
  color: rgba(244, 242, 238, .5);
}
.field--req label::after {
  content: " *";
  color: var(--accent);
}

.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 242, 238, .28);
  border-radius: 0;
  padding: 9px 0;
  color: var(--paper);
  font: 400 15px var(--sans);
  outline: none;
  transition: border-color var(--ease);
}
.field select:focus { border-bottom-color: var(--accent); }
.field select option { background: var(--ink); color: var(--paper); }
.field select[aria-invalid="true"] { border-bottom-color: #ff8a6a; }

.field input[type="file"] {
  border-bottom: none;
  padding: 0;
  font: 400 13px/1.4 var(--sans);
  color: rgba(244, 242, 238, .7);
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(244, 242, 238, .3);
  border-radius: 2px;
  color: var(--paper);
  font: 600 11px/1 var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--paper); }

/* product radios read as a price list you tap, not a form control */
.products { display: flex; flex-direction: column; gap: 8px; }
.products__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: .12em;
  color: rgba(244, 242, 238, .6);
}
.product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 242, 238, .22);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.product:hover { border-color: rgba(244, 242, 238, .5); }
.product input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; margin: 0; }
.product:has(input:checked) { border-color: var(--accent); background: rgba(232, 155, 60, .1); }
.product__name { flex: 1 1 auto; font: 500 14.5px/1.4 var(--sans); color: var(--paper); }
.product__price { flex: none; font: 700 15px/1 var(--sans); color: var(--accent); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font: 400 14px/1.5 var(--sans);
  color: rgba(244, 242, 238, .72);
  cursor: pointer;
}
.check input {
  accent-color: var(--accent);
  width: 17px; height: 17px;
  flex: none;
  margin: 1px 0 0;
}

.order-form__rule { height: 1px; background: rgba(244, 242, 238, .16); margin: 2px 0; }

.pay-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 400 13px/1.55 var(--sans);
  color: rgba(244, 242, 238, .6);
}
.pay-note b { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--accent); flex: none; }

/* a slot that went while they were filling the form — the one failure that
   costs a sale, so it gets a full explanation and the next way through */
.slot-gone {
  border: 1px solid var(--accent);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: 400 14px/1.6 var(--sans);
  color: var(--paper);
}
.slot-gone b { font: 700 15px/1.3 var(--sans); color: var(--accent); }
.slot-gone button {
  align-self: flex-start;
  padding: 10px 16px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: var(--ink);
  font: 700 11.5px/1 var(--sans);
  letter-spacing: .1em;
  cursor: pointer;
}

/* ------------------------------------------------------------ breakpoints -- */
@media (max-width: 900px) {
  .rhero__media { aspect-ratio: 4 / 3; max-height: 52vh; }
}

@media (max-width: 620px) {
  .rhero__media { aspect-ratio: 1 / 1; max-height: 46vh; }
  .rhero__copy { padding-top: 22px; padding-bottom: 28px; }

  /* the board goes two-line on a phone: name on top, state and button under.
     Nothing truncates — a rider has to read their own class exactly. */
  .slot {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 14px 16px;
  }
  .slot__name { grid-column: 1 / -1; }
  .slot__state { text-align: left; }
  /* the money button on a phone — 44px minimum, gloved thumb, moving pit area */
  .slot__book { justify-self: end; padding: 13px 24px; min-height: 44px; }
  .slot__dash { justify-self: end; text-align: right; min-width: 0; }
  .event__head { padding: 15px 16px; }
  .season__panel { padding: 26px 22px; }
  .acc__body { padding-right: 8px; }
}
