/* ==========================================================================
   Loudoun One Volleyball Experience — base stylesheet
   Brand tokens are the single source of truth; new modules reuse them.
   ========================================================================== */

:root {
  /* Royal blue is the primary chrome color — header, footer, hero/holding
     gradient, admin bar — replacing navy. blue-deep/blue-soft give it the
     same "three depths for one hue" structure navy used to have, by the
     same per-channel deltas navy-deep/navy-soft used. The logo's own ink
     was recoloured to this same blue (see CLAUDE.md -> Brand), so the site
     and the mark match exactly, the same principle already applied to red. */
  --blue:        #4169e1;
  --blue-deep:   #375cc9;
  --blue-soft:   #4d79fb;
  /* Red is the single accent color — matched to the volleyball in the logo
     mark itself (#BC1D31, measured from the artwork). Buttons, links, the
     logo's ball and "V" (both recoloured from orange to this same red). */
  --red:         #bc1d31;
  --red-deep:    #b21019;
  /* A clearly different, pinker red from --red, reserved for destructive
     actions so Delete can never be mistaken for a primary call to action. */
  --danger:      #c8283c;
  --white:       #ffffff;
  --muted:       rgba(255, 255, 255, 0.72);
  --line:        rgba(255, 255, 255, 0.18);

  --font: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Arial, sans-serif;

  /* Content pages sit on a light surface; the header, hero and footer are
     royal blue — the light-side counterparts to the tokens above. */
  --ink:         #1b2333;
  --ink-muted:   #5a6478;
  --surface:     #ffffff;
  --surface-alt: #f4f6fb;
  --border:      #dfe4ee;

  --space:   1rem;
  --radius:  8px;
  --measure: 34rem;
  --wrap:    72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  color: var(--white);
  background-color: var(--blue);
}

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Coming soon page
   -------------------------------------------------------------------------- */

.holding {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) var(--space);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.holding__inner {
  width: 100%;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
}

.holding__logo {
  width: clamp(150px, 44vw, 240px);
}

.holding__rule {
  width: 64px;
  height: 4px;
  border: 0;
  margin: 0;
  border-radius: 2px;
  background: var(--red);
}

.holding__heading {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.holding__blurb {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.125rem);
}

.holding__footer {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.holding__affiliation img {
  display: block;
  width: 96px;
  height: auto;
  background: var(--white);
  padding: 0.4rem;
  border-radius: 0.4rem;
}

.holding__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.holding__cta-label {
  margin: 0;
  color: var(--white);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.button:hover,
.button:focus { background: var(--red-deep); }

.button:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   Signup form
   -------------------------------------------------------------------------- */

.signup {
  width: 100%;
  max-width: 26rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.signup__label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signup__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.signup__input::placeholder { color: rgba(255, 255, 255, 0.45); }

.signup__input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.13);
}

.signup__button { flex: 0 0 auto; }

/* Honeypot: off-screen rather than display:none, so bots that skip hidden
   fields still fill it. Never remove aria-hidden/tabindex on the input. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  text-align: left;
}

.message--success {
  color: #eaffef;
  background: rgba(38, 160, 88, 0.22);
  border: 1px solid rgba(90, 220, 140, 0.45);
}

.message--error {
  color: #ffecef;
  background: rgba(200, 40, 60, 0.24);
  border: 1px solid rgba(240, 110, 130, 0.5);
}

/* Short, wide viewports (laptops, landscape) — compress so the signup form and
   footer stay above the fold. Narrow portrait phones are left alone: scrolling
   is expected there and shrinking the logo would only hurt. */
@media (min-width: 700px) and (max-height: 950px) {
  .holding { padding-block: clamp(0.75rem, 2vh, 1.5rem); }
  .holding__inner { gap: clamp(0.6rem, 1.6vh, 1.1rem); }
  .holding__logo { width: clamp(120px, 23vh, 180px); }
  .holding__heading { font-size: clamp(1.25rem, 2.6vh, 1.6rem); }
  .holding__blurb { font-size: 0.9375rem; }
  .button { padding: 0.7rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Public site (Phase 1)
   Everything below styles the full club site. The holding page above is
   unaffected and keeps its own full-bleed royal-blue layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Honeypot on the shared forms; same rules as .signup__trap above. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   Beta banner (staging deployment only)
   -------------------------------------------------------------------------- */

.beta-banner {
  padding: 0.6rem clamp(1rem, 4vw, 2rem);
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  text-align: center;
}

.beta-banner a { color: var(--white); }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--blue-deep);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-header__brand {
  flex: 0 1 auto;
  display: block;
  line-height: 0;
}

.site-header__brand img {
  width: clamp(150px, 26vw, 230px);
  height: auto;
}

/* Always visible, even while the site is holding — see header.php. Sits
   between the brand and the rest of the nav, which pushes itself right via
   its own margin-left: auto, so this needs none of its own. */
.site-header__help {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-header__help:hover,
.site-header__help:focus { color: var(--white); }

.site-header__help--active { color: var(--white); border-bottom-color: var(--red); }

.nav { flex: 1 1 100%; order: 3; }

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav__link:hover { color: var(--white); }

.nav__link--active { color: var(--white); }

/* The toggle only exists for the stacked mobile nav. */
.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* Without JavaScript the nav is simply always open, which is why the toggle
   hides itself only once the script marks the document as enhanced. */
.js .nav[hidden] { display: none; }

@media (min-width: 800px) {
  .nav { flex: 0 1 auto; order: 0; margin-left: auto; }
  .nav[hidden] { display: block !important; }
  .nav-toggle { display: none; }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
  }

  .nav__link {
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
  }

  .nav__link--active { border-bottom-color: var(--red); }
}

/* --------------------------------------------------------------------------
   Page surfaces
   -------------------------------------------------------------------------- */

.page {
  padding-block: clamp(1.75rem, 5vw, 3rem);
  background: var(--surface);
  color: var(--ink);
}

.page--narrow .wrap { max-width: 48rem; }

.page a { color: #17408b; }

.page h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.page h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.page h3 { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; }

.eyebrow {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
}

.meta-line { margin: 0 0 1rem; color: var(--ink-muted); }

.empty {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-muted);
  background: var(--surface-alt);
}

.prose { max-width: 42rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-alt);
  font-size: 0.9em;
}
.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--red);
  color: var(--ink-muted);
}
.prose img { margin: 1rem 0; border-radius: var(--radius); }

.about-affiliation img { max-width: 220px; height: auto; }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs { font-size: 0.8125rem; }

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--ink-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--border);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

/* A section used as a homepage band paints its own surface — body is royal
   blue for the holding page, so a band without a background would inherit it. */
.section {
  padding-block: clamp(1.75rem, 5vw, 3.25rem);
  background: var(--surface);
  color: var(--ink);
}

.section a { color: #17408b; }

/* Inside a .page the surface is already painted, so sections are plain blocks. */
.page .section {
  padding-block: 0;
  margin-top: 2.5rem;
  background: none;
}

.section--tint { background: var(--surface-alt); }

.section__heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.section__lede { margin: 0 0 1.25rem; color: var(--ink-muted); }

.section__more { margin: 1.25rem 0 0; font-weight: 600; }

/* The signup form lives on royal blue in the holding page but on white here. */
.section--cta .signup { border-top-color: var(--border); }
.section--cta .signup__label { color: var(--ink-muted); }
.section--cta .signup__input {
  color: var(--ink);
  background: var(--white);
  border-color: var(--border);
}
.section--cta .signup__input::placeholder { color: #9aa3b5; }
.section--cta .message--success { color: #14532d; }
.section--cta .message--error { color: #7f1d1d; }

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero__logo { width: clamp(120px, 22vw, 190px); flex: 0 0 auto; }

.hero__copy { flex: 1 1 20rem; }

.hero__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.15;
}

.hero__blurb {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
}

.hero__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button--ghost {
  background: transparent;
  border: 2px solid var(--white);
}

.button--ghost:hover,
.button--ghost:focus { background: rgba(255, 255, 255, 0.14); }

.button--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.card__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__title { margin: 0 0 0.35rem; font-size: 1.125rem; line-height: 1.25; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }

.card__meta { margin: 0 0 0.35rem; color: var(--ink-muted); font-size: 0.9375rem; }
.card__body { margin: 0.5rem 0 0; font-size: 0.9375rem; }
.card__link { margin: 0.85rem 0 0; font-weight: 600; font-size: 0.9375rem; }

.card--person { text-align: left; }

.card__photo {
  width: 84px;
  height: 84px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.card__photo--placeholder {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.staff-group { margin-top: 2rem; }

.help-group { margin-top: 2rem; }

.help-group__list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.help-group__list a {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.help-group__list a:hover { border-color: var(--red); }

/* --------------------------------------------------------------------------
   Tags and pills
   -------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--tryout { background: #fdece7; border-color: #f6c6b6; color: #9a3412; }
.tag--camp   { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.tag--clinic { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.tag--match, .tag--tournament { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.pill:hover { border-color: var(--red); }

/* --------------------------------------------------------------------------
   Tables and schedules
   -------------------------------------------------------------------------- */

/* Wide content scrolls inside its own box; the page body never scrolls sideways. */
.table-scroll { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.table thead th {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule { margin: 0; padding: 0; list-style: none; }

.schedule__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.schedule__when {
  flex: 0 0 14rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.schedule__what {
  flex: 1 1 16rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.schedule__opponent,
.schedule__where { color: var(--ink-muted); font-size: 0.9375rem; }

.schedule__result { font-weight: 700; }

/* --------------------------------------------------------------------------
   Fact list (programs)
   -------------------------------------------------------------------------- */

.facts {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.facts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.3rem 0;
}

.facts dt {
  flex: 0 0 7rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd { margin: 0; flex: 1 1 12rem; }

/* --------------------------------------------------------------------------
   News list and article
   -------------------------------------------------------------------------- */

.post-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }

.post-list__item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.post-list__date {
  display: block;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-list__title { margin: 0.25rem 0 0.4rem; font-size: 1.25rem; }
.post-list__title a { text-decoration: none; }
.post-list__title a:hover { text-decoration: underline; }

.post-list__excerpt { margin: 0; color: var(--ink-muted); max-width: 42rem; }

.article__hero { margin: 1.25rem 0; border-radius: var(--radius); }
.article__back { margin-top: 2rem; font-weight: 600; }

.team__photo {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  margin: 1.25rem 0;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Generic form (contact)
   -------------------------------------------------------------------------- */

.form { margin-top: 1.5rem; max-width: 34rem; }

.form__field { margin-bottom: 1rem; }

.form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.form__optional { color: var(--ink-muted); font-weight: 400; }

.form__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.form__input:focus { border-color: var(--red); }

.form__input--area { resize: vertical; min-height: 9rem; }

.form__hint { margin: 0.35rem 0 0; color: var(--ink-muted); font-size: 0.8125rem; }

.form__quick-pick {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.form__quick-pick .button { margin: 0.4rem 0.4rem 0 0; }

.offer-actions { display: flex; gap: 0.75rem; margin: 1.5rem 0; }

.form .message--success { color: #14532d; }
.form .message--error { color: #7f1d1d; }

/* .message/.message--success/--error's own colors (light text on a dark
   wash) are built for the dark hero sections (.section--cta) that use
   them elsewhere — illegible on an ordinary light .page background, the
   same reason .form gets this override. Any plain page (e.g. the offer
   accept/decline confirmation) needs it too. */
.page .message--success { color: #14532d; }
.page .message--error { color: #7f1d1d; }

.form__section {
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.0625rem;
}

.form__field:first-of-type,
.form__section:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.form__field--invalid .form__input { border-color: #d4757a; }

.form__error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7f1d1d;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
}

.form__check input { margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(2rem, 5vw, 3rem);
  background: var(--blue-deep);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer a { color: var(--white); }

.site-footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.site-footer__logos {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.site-footer__logo { width: 96px; margin-bottom: 0; }

.site-footer__tagline { margin: 0; max-width: 20rem; }

.site-footer__heading {
  margin: 0 0 0.6rem;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav li { margin-bottom: 0.35rem; }

.site-footer__contact p { margin: 0 0 0.75rem; }

.site-footer__affiliation-logo {
  display: block;
  width: 84px;
  height: auto;
  background: var(--white);
  padding: 0.4rem;
  border-radius: 0.4rem;
}

.site-footer__legal {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Sign-in and account
   -------------------------------------------------------------------------- */

.auth { text-align: center; }

.auth__logo {
  width: 130px;
  margin: 0 auto 1.25rem;
}

.auth .lede { margin-inline: auto; }

.auth__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.auth__buttons .button { width: 100%; max-width: 22rem; }

/* Provider brand colours, so the buttons read as the thing people expect. */
.button--google {
  background: var(--white);
  color: #3c4043;
  border: 1px solid #dadce0;
}
.button--google:hover,
.button--google:focus { background: #f8f9fa; }

.button--facebook { background: #1877f2; }
.button--facebook:hover,
.button--facebook:focus { background: #145dbf; }

/* A ghost button that reads on a light page, unlike .button--ghost. */
.button--ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}
.button--ghost-dark:hover,
.button--ghost-dark:focus {
  background: var(--surface-alt);
  color: var(--ink);
}

.auth__fineprint {
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.auth__help-link {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* .auth centers everything for the button stack above; the email-link form
   reads better left-aligned, like every other form on the site. */
.auth__email-link {
  margin-top: 1.5rem;
  text-align: left;
}

.auth__email-link summary {
  cursor: pointer;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.auth__email-link .form { margin-inline: auto; }

.account {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.account__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.account__name { margin: 0; font-size: 1.25rem; font-weight: 700; }
.account__email { margin: 0; color: var(--ink-muted); }

.account__flash {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  font-weight: 600;
  background: #e8f5ec;
  border: 1px solid #b6ddc4;
  color: #1d5433;
}

.account__players { list-style: none; margin: 0 0 1rem; padding: 0; }
.account__players li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.account__players li:first-child { border-top: 0; }
.account__players p { margin: 0; }

.account__invite {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.account__invite label { font-size: 0.875rem; color: var(--ink-muted); }
.account__invite .form__input { display: block; width: auto; margin-top: 0.25rem; }

.account__add-player {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.account__add-player summary { cursor: pointer; font-weight: 600; }
.account__add-player form { margin-top: 0.85rem; display: grid; gap: 0.75rem; max-width: 28rem; }
.account__add-player label { display: block; font-size: 0.875rem; color: var(--ink-muted); }
.account__add-player .form__input { margin-top: 0.25rem; }

.account__optional { font-weight: 400; }

/* --------------------------------------------------------------------------
   Team boards
   -------------------------------------------------------------------------- */

.board-picker { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.board-compose {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.5rem;
}
.board-compose summary { cursor: pointer; font-weight: 600; }
.board-compose form { margin-top: 0.85rem; display: grid; gap: 0.75rem; max-width: 32rem; }
.board-compose label { display: block; font-size: 0.875rem; color: var(--ink-muted); }
.board-compose .form__input { margin-top: 0.25rem; }
.board-compose__check { display: flex; align-items: center; gap: 0.5rem; flex-direction: row-reverse; justify-content: flex-end; }

.board-posts { list-style: none; margin: 0; padding: 0; }

.board-post {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.board-post:first-child { border-top: 0; padding-top: 0; }
.board-post h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }

.board-post__meta {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.board-events { list-style: none; margin: 1rem 0 2rem; padding: 0; }

.board-event {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.board-event:first-child { border-top: 0; padding-top: 0; }
.board-event p { margin: 0 0 0.35rem; }

.board-event__meta { color: var(--ink-muted); font-size: 0.8125rem; }

.board-event__rsvps { color: var(--ink-muted); font-size: 0.875rem; }

.board-event__rsvp-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

/* Sign in sits apart from the section links. */
.nav__item--account { margin-top: 0.5rem; }

.nav__link--cta { color: var(--white); }

@media (min-width: 800px) {
  .nav__item--account { margin-top: 0; margin-left: 0.5rem; }

  .nav__link--cta {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .nav__link--cta:hover { background: rgba(255, 255, 255, 0.12); }
}

/* --------------------------------------------------------------------------
   Admin
   The admin opts out of the public header and footer, so it brings its own
   chrome. It reuses the brand tokens and .button/.pill/.field conventions from
   above rather than introducing a second design language.
   -------------------------------------------------------------------------- */

body.admin,
body.evaluate {
  background: var(--surface-alt);
  color: var(--ink);
}

.adminbar {
  background: var(--blue-deep);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}

.adminbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.adminbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.adminbar__brand img { width: 116px; height: auto; }

.adminbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-right: auto;
}

.adminbar__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.adminbar__link:hover,
.adminbar__link:focus { color: var(--white); }

.adminbar__link--active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.adminbar__account {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.875rem;
}

.adminbar__who { color: var(--muted); }

.adminbar__signout {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.adminbar__signout:hover { background: rgba(255, 255, 255, 0.12); }

.admin__main { padding: 2rem 0 4rem; }

.admin__wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Forms read better narrow; lists want the room. */
.admin__wrap--form { max-width: 48rem; }

.admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin__lede { color: var(--ink-muted); max-width: var(--measure); }
.admin__muted { color: var(--ink-muted); }

.admin__crumbs {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.admin__crumbs a { color: var(--ink-muted); }

.admin__flash,
.admin__error {
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.admin__flash {
  background: #e8f5ec;
  border: 1px solid #b6ddc4;
  color: #1d5433;
}

.admin__error {
  background: #fdecec;
  border: 1px solid #f0b7b7;
  color: #8c1d24;
}

.admin__empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
}

.admin__list { margin: 0 0 1rem; padding: 0; list-style: none; }
.admin__list li { padding: 0.35rem 0; border-top: 1px solid var(--border); }
.admin__list li:first-child { border-top: 0; }

.admin__checklist { margin: 0 0 1rem; padding: 0; list-style: none; columns: 2; }
.admin__checklist li { padding: 0.3rem 0; break-inside: avoid; }
.admin__checklist label { display: flex; align-items: center; gap: 0.5rem; }

.admin__cards {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.admin__card a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.admin__card a:hover { border-color: var(--red); }
.admin__card-label { font-weight: 700; }
.admin__card-count { color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* Wide tables scroll in their own box; the page never scrolls sideways. */
.admin__scroll { overflow-x: auto; }

.admin__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.admin__table th,
.admin__table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin__table thead th {
  background: var(--surface-alt);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.admin__table tbody tr:last-child td { border-bottom: 0; }

.admin__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.admin__actions form { display: inline; }

.admin__danger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--danger);
  text-decoration: underline;
  cursor: pointer;
}

.pill--on {
  background: #e8f5ec;
  border-color: #b6ddc4;
  color: #1d5433;
}

.admin__facts {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin__facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
}

.admin__facts dt { min-width: 9rem; font-weight: 700; }
.admin__facts dd { margin: 0; }

.admin__message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
}

.admin__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field { margin-bottom: 1.35rem; }

.field__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field__required { color: var(--red); margin-left: 0.15rem; }

.field__input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field__input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

textarea.field__input {
  line-height: 1.5;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
}

.field__check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.field__image {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.field__image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.field__image .field__check { font-weight: 400; }

.field__help {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.field__help code {
  background: var(--surface-alt);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.field__error {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8c1d24;
}

.field--invalid .field__input { border-color: #d4757a; }

.admin__formactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.75rem;
}

.button--danger {
  background: var(--danger);
  color: var(--white);
}

.button--danger:hover,
.button--danger:focus { background: #a71f30; }

/* Tryout evaluator scoring — large tap targets, since this is filled in on a
   phone or tablet mid-session, not typed. */
.scorepicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.scorepicker__option {
  position: relative;
}

.scorepicker__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.scorepicker__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
  font-size: 1.125rem;
}

.scorepicker__option input:checked + span {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}

.scorepicker__option input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* A quick one-line note per metric, deliberately smaller than the standard
   .field__input so it reads as "optional aside", not another required field. */
.field__metricnote {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-top: 0.6rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
}

.field__metricnote:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

/* A measured metric's raw-value input (height, jump, shuttle time, ...),
   in place of the scorepicker taps a rating metric uses. */
.measuredinput {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.measuredinput input {
  width: 8rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}

.measuredinput input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
