/*
 * Athlevo Sub-1 10k Challenge (/virtual-run) and its staff page (/virtual-run/admin).
 * Loaded after store.css and built from its tokens: black #0a0a0b, white, one red (#cc0010),
 * Barlow Condensed for headlines, numbers and buttons, Inter for text. No other colour or font.
 * Red is used on the single word, number or button that matters. Mobile first.
 * Markup: scripts/build-virtual-run-page.mjs. Wording: content/virtualRun.mjs.
 */

.vr [hidden] { display: none !important; }
.vr em { font-style: normal; color: var(--red); }
.vr-center { text-align: center; }

/* ---------------------------------------------------------------- header */

.vr .nav.vr-nav { grid-template-columns: 1fr auto; }
.vr-nav-links { display: none; }
.vr-nav-cta { min-height: 40px; padding: 10px 16px; font-size: 14px; justify-self: end; }

/* ---------------------------------------------------------------- hero */

.vr-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 11vw, 128px) 0 clamp(48px, 8vw, 104px);
  isolation: isolate;
}

.vr-hero-inner { position: relative; z-index: 1; }

.vr-eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-on-dark);
}

.vr-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 12.4vw, 132px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vr-hero h1 em { color: var(--red-on-dark); }

.vr-hero-sub {
  margin: 24px 0 0;
  max-width: 36ch;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.4;
  color: #dcdcdc;
}

.vr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.vr-btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.vr-btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.vr-hero-state { min-height: 22px; margin: 14px 0 0; font-size: 14px; color: #b5b5b5; }

.vr-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 36px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.vr-facts div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.vr-facts dt { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #9a9a9a; }
.vr-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; }

.vr-hero-note { margin: 24px 0 0; max-width: 62ch; font-size: 15px; color: #b5b5b5; }

/* A large outlined target time, behind everything. Decorative only. */
.vr-hero-mark {
  position: absolute;
  z-index: 0;
  right: -4vw;
  bottom: -5vw;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(190px, 38vw, 520px);
  line-height: 0.8;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  pointer-events: none;
  user-select: none;
}

/* ---------------------------------------------------------------- sections */

.vr-section { padding: clamp(56px, 8vw, 104px) 0; }
.vr-section--tint { background: #f5f5f5; }
.vr-section--dark { background: var(--ink); color: var(--white); }
.vr-section--dark em { color: var(--red-on-dark); }

.vr-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.vr-label--dark { color: #b5b5b5; }
.vr-section--dark .vr-label { color: #b5b5b5; }

.vr-title {
  margin: 0 0 32px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.vr-title--sm { font-size: clamp(34px, 4.2vw, 48px); margin-bottom: 16px; }
.vr-title--light { color: var(--white); }
.vr-title--light em { color: var(--red-on-dark); }

.vr-lede { margin: -8px 0 40px; max-width: 58ch; font-size: 18px; color: var(--muted); }

/* ---------------------------------------------------------------- how it works */

.vr-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.vr-steps li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--ink);
}
.vr-steps li:last-child { border-bottom: 1px solid var(--ink); }
.vr-step-num { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--red); }
.vr-steps p { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; }

/* ---------------------------------------------------------------- finisher vs Sub-1 */

.vr-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 8px; }
.vr-result {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.vr-result--sub1 { background: var(--ink); border-color: var(--ink); color: var(--white); }
.vr-result-label {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.vr-result--sub1 .vr-result-label { color: var(--red-on-dark); }
.vr-result h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: 0; }
.vr-result p:last-child { margin: 0; color: var(--muted); }
.vr-result--sub1 p:last-child { color: #cfcfcf; }
.vr-honest { margin: 28px 0 0; max-width: 62ch; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- packages */

.vr-pkgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.vr-pkg {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vr-pkg:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 10, 11, 0.12); }
.vr-pkg--dark { background: var(--ink); color: var(--white); }
.vr-pkg-name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: 0.06em; text-transform: uppercase; }
.vr-price { margin: 8px 0 24px; }
.vr-price-amount { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7vw, 72px); line-height: 1; letter-spacing: 0; }
.vr-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.vr-features li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 16px; }
.vr-pkg--dark .vr-features li { border-color: rgba(255, 255, 255, 0.2); }
.vr-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.vr-pkg-foot { display: flex; flex-direction: column; justify-content: flex-end; }
.vr-pkg-note { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.vr-pkg--dark .vr-pkg-note { color: #b5b5b5; }
.vr-choose { width: 100%; transition: background 0.2s ease, transform 0.2s ease; }
.vr-choose:active { transform: scale(0.99); }
.vr-pkg-state { min-height: 20px; margin: 10px 0 0; font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); }
.vr-pkg--dark .vr-pkg-state { color: #b5b5b5; }

/* ---------------------------------------------------------------- shirt and medal */

.vr-products { display: grid; gap: clamp(56px, 8vw, 96px); }
.vr-product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.vr-visual { margin: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 480px; border-radius: var(--radius); overflow: hidden; background: var(--card-black); }
.vr-visual img { width: 100%; height: 100%; object-fit: contain; }
.vr-visual--placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background-color: var(--card-black);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.vr-visual-kind { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.vr-visual-tag { padding: 6px 12px; border: 1px solid var(--red-on-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-on-dark); }
.vr-product-copy p { max-width: 46ch; color: #cfcfcf; }
.vr-product-facts { margin: 24px 0 0; max-width: 460px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.vr-product-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 15px; }
.vr-product-facts dt { color: #9a9a9a; }
.vr-product-facts dd { margin: 0; text-align: right; }

/* ---------------------------------------------------------------- registration */

.vr-register { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.14); padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: var(--nav-h); }
.vr-register-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.vr-register-intro p { max-width: 42ch; color: #cfcfcf; }
.vr-register-state { min-height: 24px; margin-top: 16px; font-weight: 600; color: var(--white); }
.vr-card { padding: 24px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35); }

.vr-notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--ink); font-size: 15px; font-weight: 600; }

/* progress bars, one per step */
.vr-stepcount { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vr-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.vr-progress li { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 4px solid var(--line); font-size: 12px; color: var(--muted); transition: border-color 0.3s ease; }
.vr-progress li.is-done { border-color: var(--ink); color: var(--ink); }
.vr-progress li[aria-current="step"] { border-color: var(--red); color: var(--ink); font-weight: 600; }
.vr-progress-num { display: none; }
.vr-progress-title { display: none; }

.vr-step { outline: none; }
.vr-step:not([hidden]) { animation: vr-in 0.28s ease both; }
@keyframes vr-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vr-step-title { margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.vr-hint { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

.field { margin: 0 0 18px; }
.field > label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 650; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="search"], .field input[type="password"], .field select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans); /* 16px stops iOS zooming the page when a field is focused */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 14px; font-weight: 650; color: var(--red); }
.field-error[hidden] { display: none; }
.form-error { margin: 0 0 16px; font-size: 14px; font-weight: 650; color: var(--red); }
.form-error:empty { display: none; }

.vr-fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.vr-fieldset > legend { padding: 0; margin: 0 0 10px; font-size: 13px; font-weight: 650; }
.vr-delivery { padding-top: 6px; }
.vr-delivery > legend { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }

/* package choice: radio cards */
.vr-options { display: grid; gap: 10px; }
.vr-option { position: relative; display: block; cursor: pointer; }
.vr-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vr-option-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.vr-option:hover .vr-option-body { background: #f5f5f5; }
.vr-option input:checked + .vr-option-body { background: #f5f5f5; box-shadow: inset 0 0 0 2px var(--ink); }
.vr-option input:focus-visible + .vr-option-body { outline: 2px solid var(--red); outline-offset: 2px; }
.vr-option-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase; }
.vr-option-price { font-family: var(--display); font-weight: 700; font-size: 26px; }
.vr-option-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.vr-option.is-disabled { cursor: not-allowed; opacity: 0.5; }
.vr-option.is-disabled input { cursor: not-allowed; }

/* review */
.vr-summary { margin: 0 0 8px; }
.vr-summary-group { padding: 12px 0; border-top: 1px solid var(--line); }
.vr-summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.vr-summary-head h4 { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.vr-edit { padding: 6px 0; border: 0; background: none; font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 36px; }
.vr-edit:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.vr-summary dl { margin: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 16px; font-size: 15px; }
.vr-summary dt { color: var(--muted); }
.vr-summary dd { margin: 0; text-align: right; word-break: break-word; }
.vr-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 22px; padding-top: 14px; border-top: 3px solid var(--ink); }
.vr-total span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
.vr-total strong { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.vr-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.vr-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.vr-check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.vr-check a { color: var(--ink); font-weight: 600; }
.vr-consent { margin-bottom: 14px; }
/* ".field > label" would otherwise win over ".vr-check": a block, bold, 13px label with the box floating above its text. */
.vr-consent > label.vr-check { display: flex; margin: 0; font-size: 15px; font-weight: 400; }

.vr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.vr-actions .btn-red { flex: 1 1 200px; }
.vr-btn-back { color: var(--ink); }
.vr-actions .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* confirmation */
.vr-confirm { outline: none; }
.vr-confirm-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.vr-confirm-facts { margin: 22px 0; border-top: 1px solid var(--ink); }
.vr-confirm-facts div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vr-confirm-facts dt { margin: 0; color: var(--muted); font-size: 14px; }
.vr-confirm-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.vr-confirm-facts .vr-id { font-family: var(--display); font-size: 30px; letter-spacing: 0.08em; color: var(--red); }
.vr-next-steps { margin: 0 0 20px; padding-left: 22px; }
.vr-next-steps li { margin: 0 0 10px; }
.vr-confirm-links a { display: inline-block; margin: 0 16px 8px 0; color: var(--ink); font-weight: 600; }

/* spam trap: off screen, not display:none, so a bot that fills every field still fills it */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.vr .faq summary:focus-visible, .vr .skip:focus-visible, .vr-nav-cta:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#main:focus { outline: none; }
.vr .faq { max-width: 820px; }
.vr .faq summary { font-size: 18px; font-weight: 500; }
.vr .site-footer .footer-links { gap: 10px 24px; }

/* ---------------------------------------------------------------- wider screens */

@media (min-width: 640px) {
  .vr-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .vr-facts div { padding: 18px 20px 18px 0; border-bottom: 0; }
  .vr-card { padding: 36px; }
  .vr-progress-num { display: none; }
  .vr-progress-title { display: block; }
}

@media (min-width: 761px) {
  .vr-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 861px) {
  .vr-product { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 64px; }
  .vr-product--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .vr-product--flip .vr-visual { order: 2; justify-self: end; }
}

@media (min-width: 981px) {
  .vr .nav.vr-nav { grid-template-columns: 1fr auto 1fr; }
  .vr-nav-links { display: flex; }
  .vr-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .vr-steps li, .vr-steps li:last-child { display: block; padding: 20px 0 0; border: 0; border-top: 3px solid var(--ink); }
  .vr-step-num { display: block; margin-bottom: 20px; font-size: 56px; }
  .vr-steps p { font-size: 19px; }
  .vr-pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  /* Rows (name, price, features, button) line up across the three cards however long a name or list is. */
  @supports (grid-template-rows: subgrid) {
    .vr-pkg { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  }
  .vr-register-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
  .vr-register-intro { position: sticky; top: calc(var(--nav-h) + 32px); }
}

@media (max-width: 480px) {
  .vr-pkg { padding: 26px 22px; }
  .vr-result { padding: 26px 22px; }
  .vr-actions .btn { width: 100%; }
  .vr-hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vr *, .vr *::before, .vr *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .vr-pkg:hover { transform: none; }
}

/* ---------------------------------------------------------------- opening soon and the priority list */

/* The page is built "soon" (data-mode on <body>): the priority list shows and the registration form does not.
   js/virtualRun.js sets data-mode="register" only when the server says registration is open (or closed, or full),
   or when a runner comes back from payment. Without JavaScript the page stays "soon", which is the safe state. */
.vr[data-mode="soon"] .vr-only-register { display: none !important; }
.vr:not([data-mode="soon"]) .vr-only-soon { display: none !important; }
/* The leave link in an e-mail keeps the list's panel on screen whatever state registration is in. */
.vr[data-leave] #waitlist { display: block !important; }

.vr-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.vr-soon-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red-on-dark); }
.vr-soon-badge + .vr-hero-actions { margin-top: 20px; }

.vr-wl { scroll-margin-top: var(--nav-h); border-bottom: 1px solid var(--line); }
.vr-wl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.vr-wl-intro .vr-title { margin-bottom: 20px; }
.vr-wl-intro .vr-lede { margin: 0 0 24px; }
.vr-wl-points { list-style: none; margin: 0; padding: 0; max-width: 44ch; }
.vr-wl-points li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 16px; }
.vr-wl-points li:last-child { border-bottom: 1px solid var(--line); }
.vr-wl-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.vr-wl-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.vr-wl-form .field { margin-bottom: 18px; }
.vr-wl-submit { width: 100%; margin-top: 6px; }
.vr-wl-submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.vr-wl-done, .vr-wl-leave { outline: none; }
.vr-wl-done p, .vr-wl-leave p { margin: 0 0 12px; }
.vr-wl-off { margin: 0; font-weight: 600; }
.vr-wl-leave .vr-actions { margin-top: 20px; }
.vr-wl.is-leaving .vr-wl-grid { grid-template-columns: minmax(0, 560px); justify-content: center; }

@media (min-width: 640px) {
  .vr-wl-card { padding: 36px; }
}

@media (min-width: 861px) {
  .vr-wl-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
  .vr-wl.is-leaving .vr-wl-grid { grid-template-columns: minmax(0, 560px); }
}

@media (max-width: 480px) {
  .vr-pkg-soon { width: 100%; }
}

/* ---------------------------------------------------------------- staff page */

.vra { background: #f5f5f5; }
.vra-main { padding: 32px 0 80px; }
.vra-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.vra-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 36px; letter-spacing: 0.02em; text-transform: uppercase; }
.vra-signin { max-width: 420px; margin: 8vh auto 0; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.vra-signin h1 { margin: 0 0 8px; font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.vra-signin p { color: var(--muted); }
.vra-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.vra-stat { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.vra-stat span { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.vra-stat strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 36px; line-height: 1; }
.vra-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 16px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.vra-filters .field { margin: 0; }
.vra-filters .btn { min-height: 48px; }
.vra-check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vra-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.vra-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vra-table th, .vra-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.vra-table th { position: sticky; top: 0; background: #fafafa; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vra-table td.vra-id { font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; white-space: nowrap; }
.vra-pill { display: inline-block; padding: 3px 9px; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.vra-pill--paid { background: var(--ink); color: var(--white); }
.vra-pill--pending { color: var(--muted); border-color: var(--line); }
.vra-pill--refunded, .vra-pill--failed { color: var(--red); border-color: var(--red); }
.vra-pill--test { margin-left: 6px; color: var(--muted); border-style: dashed; border-color: var(--muted); }
.vra-detail { background: #fafafa; font-size: 13px; }
.vra-detail dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; margin: 0; }
.vra-detail dt { color: var(--muted); font-size: 12px; }
.vra-detail dd { margin: 0; word-break: break-word; }
.vra-empty, .vra-note { padding: 24px; color: var(--muted); }
.vr.vra .nav.vr-nav { grid-template-columns: 1fr auto; }
.vra-signout { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.vra-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.vra-buttons .btn { min-height: 44px; }
.vra-stats .vra-packagelines { grid-column: 1 / -1; padding: 0; margin: 0; }
.vra-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vra-link { border: 0; background: none; padding: 0; font: 600 14px/1 var(--sans); text-decoration: underline; cursor: pointer; color: var(--ink); }

@media (min-width: 760px) {
  .vra-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vra-filters { grid-template-columns: 1fr 1fr 2fr auto auto; align-items: end; }
}

/* staff page: registrations and priority list tabs */
.vra-tabs { display: flex; gap: 8px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.vra-tab { min-height: 44px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 15px/1 var(--sans); color: var(--muted); cursor: pointer; }
.vra-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.vra-tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.vra-pill--active { background: var(--ink); color: var(--white); }
.vra-pill--unsubscribed { color: var(--muted); border-color: var(--line); }
@media (min-width: 760px) {
  .vra-filters--list { grid-template-columns: 1fr 2fr auto; }
}
