/* =====================================================
   AZSSA Program OS — Shared Styles
   =====================================================
   Design system tokens, base elements, and reusable
   patterns (app-hero, app-content, cards, forms, etc.)
   
   Palette:
     Navy        #1e3a8a   brand
     Navy hover  #1e40af
     Navy deep   #172554
     Orange      #ea580c   action
     Orange hover #c2410c
     Slate bg    #f8fafc
     Text 1      #0f172a
     Text 2      #475569
     Text 3      #94a3b8
     Border      #e2e8f0
   ===================================================== */

:root {
  --navy: #1e3a8a;
  --navy-hover: #1e40af;
  --navy-deep: #172554;
  --orange: #ea580c;
  --orange-hover: #c2410c;
  --bg: #f8fafc;
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --white: #ffffff;
  --danger: #dc2626;
  --danger-tint: #fef2f2;
  --danger-border: #fca5a5;
  --success: #16a34a;
  --success-tint: #f0fdf4;
  --warn: #ca8a04;
  --warn-tint: #fefce8;
  --warn-border: #fde047;
  --info: #2563eb;
  --info-tint: #eff6ff;
  --info-border: #bfdbfe;
  --orange-tint: #fff7ed;
}

/* Force light mode — prevents iOS dark mode bleed */
html { color-scheme: light; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
}

/* =========== App hero (navy banner top of screen) =========== */

.app-hero {
  background: var(--navy);
  color: var(--white);
  padding: 24px 20px 56px;
  position: relative;
}

.app-hero.compact { padding: 20px 20px 36px; }

.app-hero-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.app-hero-brand .accent { color: var(--orange); }

.app-hero-logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 24px;
}

/* Smaller corner variant — used on in-app pages where the user's
   name is the primary focus and the logo is a quiet brand mark. */
.app-hero-logo-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 40px;
  margin-bottom: 0;
}

/* Gear/account button at the top-right of the hero on in-app
   pages. Tap → /app/account. Replaces the corner logo when both
   would conflict for space. */
.app-hero-account {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-hero-account:hover { background: rgba(255, 255, 255, 0.18); }

.app-hero-account svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.app-hero-h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.app-hero-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* Header key-info lines (camp/league detail hero). Typographic, not boxed:
   facts read as a tight bright line, the tagline sits quieter, the cost is
   the loudest line so the entry price is unmissable. */
.app-hero-facts {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-top: 6px;
}
.app-hero-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  margin-top: 6px;
  max-width: 46ch;
}
.app-hero-cost {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 10px;
}

/* "Directions" link next to a location (opens Apple/Google Maps). */
.maps-link { color: var(--navy); font-weight: 700; text-decoration: none; }
.maps-link:hover { text-decoration: underline; }
.maps-link-inline { font-weight: 600; }
.maps-link:not(.maps-link-inline) { display: inline-block; margin-top: 8px; font-size: 14px; }

/* Live date/time line at the top of the hero (injected by config.js). */
.app-hero-clock {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

/* Attendance progress line in the dashboard hero. */
.app-hero-streak {
  margin-top: 8px;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

.app-hero-back-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.app-hero-back {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-hero-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* =========== App content (rises into hero) =========== */

.app-content {
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  margin-top: -28px;
  padding: 24px 20px 80px;
  position: relative;
  min-height: 60vh;
}

/* =========== Cards =========== */

.card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 16px;
}

/* =========== Callouts (editorial style — no box) =========== */

.callout {
  margin: 4px 0 28px;
}

.callout-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.callout-body {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

/* =========== Announcement banner (sits ABOVE an upcoming session) ===========
   Typographic differentiation — no tinted box / colored left border. A small
   colored dot on the eyebrow row carries the kind signal. Tight bottom margin
   so it visually links to the session card below it. */

.announcement {
  margin: 4px 0 -4px;
  padding: 10px 2px 12px;
  border-top: 1px solid var(--border-soft);
}

.announcement-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 4px;
}

.announcement-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.announcement-dot.dot-time     { background: var(--navy); }
.announcement-dot.dot-location { background: var(--orange); }
.announcement-dot.dot-weather  { background: var(--warn); }
.announcement-dot.dot-cancel   { background: var(--danger); }
.announcement-dot.dot-general  { background: var(--text-3); }

.announcement-time {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-3);
  text-transform: none;
  font-size: 11px;
}

.announcement-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.4;
  margin: 0 0 2px;
}

.announcement-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 4px 0 0;
}

/* =========== Forms =========== */

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.form-label .req { color: var(--orange); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  font-family: inherit;
  color: var(--text-1);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-help {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

/* Checkbox / toggle row */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.4;
}

/* Radio group (skill level, etc) */
.radio-group {
  display: flex;
  gap: 8px;
}

.radio-pill {
  flex: 1;
  position: relative;
}

.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }

.radio-pill label {
  display: block;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.radio-pill input:checked + label {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Attendance pills — green = present, red = absent.
   Scoped to inputs with data-attendance so other radio-pill uses
   (skill level on intake, etc.) keep the default navy. */
.radio-pill input[data-attendance="attended"]:checked + label {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.radio-pill input[data-attendance="no_show"]:checked + label {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

/* =========== Player chips (TRIAL / NEW indicators) =========== */

.player-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 3px;
  margin-left: 6px;
}

.player-chip-trial {
  background: var(--orange);
  color: var(--white);
}

.player-chip-new {
  background: var(--navy);
  color: var(--white);
}

.player-chip-renew {
  background: #ca8a04;
  color: var(--white);
}

.player-chip-member {
  background: var(--success);
  color: var(--white);
}

.player-chip-walkon {
  background: #0e7490;
  color: var(--white);
}

/* Inline icon next to a player's name when they have medical /
   internal notes worth reviewing before the session. */
.player-notes-icon {
  display: inline-block;
  margin-left: 6px;
  color: #ca8a04;
  font-size: 14px;
  cursor: help;
  vertical-align: 1px;
}

/* =========== Trainer attendance roster row =========== */

.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.roster-row:last-child { border-bottom: none; }

/* Age chip — quiet reference, not a focal point. Age mostly matters at the
   group-header level; per-row it's just a glanceable detail, so it stays
   light and lets the name + Present/Absent carry the visual weight. */
.roster-age {
  flex-shrink: 0;
  width: 40px;
  align-self: stretch;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 4px 0;
}
.roster-age-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-3);
  line-height: 1;
}
.roster-age-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.15;
}

/* min-width:0 lets long names wrap inside the column instead of
   pushing the Present/Absent buttons off-screen. */
.roster-row-main {
  flex: 1;
  min-width: 0;
}

.roster-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  word-break: break-word;
}

/* Compact gender + skill badges under the name. */
.roster-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.roster-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  line-height: 1.5;
}
.roster-badge-gender { color: var(--text-1); }

.roster-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  line-height: 1.35;
}
.roster-meta-soft {
  font-size: 11px;
  color: var(--text-3);
}

/* Present / Absent — big, colored, one-tap. Green check, red X. */
.roster-attend {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: stretch;
}
.roster-attend input { position: absolute; opacity: 0; pointer-events: none; }
.att-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
}
.att-btn:active { transform: scale(0.94); }
.att-present { color: var(--success); }
.att-absent  { color: var(--danger); }
.att-present:hover { border-color: var(--success); background: #f0fdf4; }
.att-absent:hover  { border-color: var(--danger);  background: #fef2f2; }
.roster-attend input[value="attended"]:checked + .att-present {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.roster-attend input[value="no_show"]:checked + .att-absent {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.roster-attend input:disabled + .att-btn {
  opacity: 0.4;
  cursor: default;
}

/* =========== Trainer roster: collapsible age groups =========== */

.roster-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
}

.roster-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  text-align: left;
}
.roster-group-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.roster-group-label { font-size: 14px; font-weight: 700; color: var(--text-1); }
.roster-group-range { font-size: 12px; color: var(--text-3); }
.roster-group-tally {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}

/* Attendance completion: "X of Y marked" progress + "all marked" state */
.roster-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.roster-progress-track { flex: 1; height: 6px; background: #e7ecf3; border-radius: 999px; overflow: hidden; }
.roster-progress-track i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 999px; transition: width 0.25s ease; }
.roster-progress-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.roster-progress.is-done .roster-progress-track i { background: var(--success); }
.roster-progress.is-done .roster-progress-label { color: var(--success); }

/* Marked rows recede slightly so the unmarked (still-to-do) rows stand out.
   The ✓/✕ control stays full strength so the chosen state reads clearly. */
.roster-row.is-marked .roster-row-main,
.roster-row.is-marked .roster-age { opacity: 0.55; transition: opacity 0.2s ease; }
.roster-group-chevron {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.roster-group.is-collapsed .roster-group-chevron { transform: rotate(-90deg); }

.roster-group-body { padding: 2px 14px 10px; }
.roster-group.is-collapsed .roster-group-body { display: none; }

/* Medical / notes — typographic emphasis, no tinted callout box. */
.roster-medical {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #92400e;
}
.roster-medical strong { font-weight: 700; }

/* Coach note — per-session observation the trainer captures. Quiet navy
   so it reads as a staff action, distinct from the amber medical note. */
.roster-note-display {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
}
.roster-note-toggle {
  margin-top: 5px;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.roster-note-toggle:hover { text-decoration: underline; }
.roster-note-edit { margin-top: 6px; }
.roster-note-input {
  min-height: 48px;
  font-size: 13px;
  padding: 8px 10px;
}

/* "✓ saved" indicator after attendance has been persisted. */
.roster-saved {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  vertical-align: 1px;
}

/* View-only note shown when a past session is locked for editing. */
.roster-locked-note {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

/* "Earlier — fix past attendance" disclosure toggle. */
.earlier-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 10px 2px;
  background: none;
  border: none;
  border-top: 1px solid var(--border-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.earlier-chevron { font-size: 11px; color: var(--text-3); transition: transform 0.15s; }
.earlier-toggle[aria-expanded="true"] .earlier-chevron { transform: rotate(180deg); }

/* =========== Walk-on add (trainer roster) =========== */

.walkon-panel {
  margin-top: 8px;
}
.walkon-search { margin-bottom: 8px; }

.walkon-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.walkon-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.walkon-result:hover { border-color: var(--navy); }
.walkon-result-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.walkon-result-meta { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.walkon-empty { font-size: 12px; color: var(--text-3); padding: 6px 2px; }

/* =========== Buttons =========== */

.btn {
  display: inline-block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:disabled { background: var(--text-3); cursor: not-allowed; }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg); }

/* Text-style button. Used standalone on <button> elements, so it must
   reset the native border/font itself (otherwise the browser draws its
   default grey bordered button — the "unstyled" look). */
.btn-text {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.btn-text:hover { background: var(--bg, #f1f5f9); }

.btn-block { display: block; width: 100%; }

/* =========== Section headers in content =========== */

.section-header {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 26px 0 12px;
  padding-left: 4px;
}

.section-header:first-child { margin-top: 0; }

/* =========== Add another / remove player buttons =========== */

.add-row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--navy);
  border: 1px dashed var(--navy);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.add-row-btn:hover { background: rgba(30,58,138,0.05); }

.remove-row-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
}

/* =========== Player block (one per player on intake) =========== */

.player-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
}

.player-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.player-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========== Session cards (trial picker, booking) =========== */

.session-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.session-card:hover { border-color: var(--text-3); }

.session-card.selected {
  border-color: var(--navy);
  background: rgba(30, 58, 138, 0.04);
}

/* Trainer-side chip — matches the family-side .upnext-date 3-line
   format (DOW + day + MONTH) so the app has one consistent date
   chip everywhere a session card appears. See .upnext-date in this
   stylesheet for the canonical rule; these selectors mirror it. */
.session-card-date {
  width: 52px;
  flex-shrink: 0;
  text-align: center;
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 2px;
}

.session-card-dow {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.session-card-day {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.05;
  margin-top: 1px;
}

.session-card-month {
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-top: 1px;
}

.session-card-body {
  flex: 1;
  min-width: 0;
}

.session-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
}

.session-card-meta {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
/* Game labels in league schedule grids render in orange so families
   can scan practices vs games at a glance. */
.session-card-meta.kind-game {
  color: var(--orange);
  font-weight: 700;
}

/* League schedule — 2-column grid. Used when a league has ~16 sessions
   that would be unscrollable as a single column. Compact card variant
   (.is-league-grid) shrinks the chip + tightens the body so two fit
   side by side on phones without overflow. */
.session-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.session-card.is-league-grid {
  padding: 10px 12px;
  margin-bottom: 0;
  gap: 10px;
  align-items: center;
}
.session-card.is-league-grid .session-card-date {
  width: 44px;
  padding: 5px 2px;
}
.session-card.is-league-grid .session-card-day { font-size: 17px; }
.session-card.is-league-grid .session-card-dow,
.session-card.is-league-grid .session-card-month { font-size: 9px; }
.session-card.is-league-grid .session-card-title { font-size: 13px; line-height: 1.2; margin-bottom: 1px; }
.session-card.is-league-grid .session-card-meta  { font-size: 11.5px; line-height: 1.3; }
/* Narrow phones — fall back to single column so cards don't squish. */
@media (max-width: 360px) {
  .session-grid-2 { grid-template-columns: 1fr; }
}

/* Division card list — reused by both the registration page and the
   league confirmation page. A small navy "DIV N" tag on the left,
   grades/ages headline + format meta on the right. */
.div-card-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.div-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
}
.div-row.is-mine { border: 1.5px solid var(--green); background: #f0fdf4; }
.div-tag {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.div-row.is-mine .div-tag { background: var(--green); }
.div-tag-num { font-size: 17px; font-weight: 800; line-height: 1.1; margin-top: 1px; }
.div-body { min-width: 0; }
.div-grades { font-size: 14px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.div-meta { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }

/* =========== League checkout: redesign components =========== */

/* Season snapshot strip — dates · sessions · price, at the top. */
.snap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.snap-cell { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 11px 10px; text-align: center; }
.snap-num { font-size: 15px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1.1; }
.snap-lbl { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; margin-top: 3px; }

/* Per-player division pill on the player-select rows. */
.ply-div-pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-top: 7px; }
.ply-div-pill.matched { background: #dcfce7; color: #166534; }
.ply-div-pill.unmatched { background: #fef3c7; color: #92400e; }

/* Itemized price summary — per-player rows + family discount + total. */
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--text-2); padding: 5px 0; }
.price-row .amt { font-variant-numeric: tabular-nums; color: var(--text-1); }
.price-row.disc { color: var(--green); }
.price-row.disc .amt { color: var(--green); font-weight: 700; }
.price-divider { height: 1px; background: var(--border-soft); margin: 6px 0; }
.price-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 800; color: var(--text-1); padding-top: 4px; }
.price-total .amt { font-variant-numeric: tabular-nums; }
.price-note { font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; line-height: 1.45; }

/* Collapsible schedule toggle (leagues). */
.schedule-toggle { width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-1); cursor: pointer; font-family: inherit; }
.schedule-toggle:hover { background: var(--bg); }
.schedule-toggle-chev { color: var(--text-3); font-size: 18px; line-height: 1; }

/* =========== Booking: monthly calendar in the hero =========== */

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 0;
}
.cal-month { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  border: none; color: #fff; cursor: pointer;
}
.cal-nav-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; }

.cal-day-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 14px;
}
.cal-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  position: relative;
  border: none;
}
.cal-day.other-month { opacity: 0.3; }
.cal-day.is-empty { opacity: 0.4; cursor: default; }      /* no sessions that day */
.cal-day.today { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.cal-day.selected { background: #fff; color: var(--navy); font-weight: 800; }
.cal-day-dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.cal-day.selected .cal-day-dot { background: var(--navy); }

/* =========== Booking: weekly scrubber =========== */

.week-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 18px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}
.week-strip::-webkit-scrollbar { display: none; }
.day-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 4px;
  min-width: 52px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.day-pill-dow { font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: 0.5px; }
.day-pill-day { font-size: 17px; font-weight: 700; color: var(--text-1); margin-top: 2px; }
.day-pill.selected { background: var(--navy); border-color: var(--navy); }
.day-pill.selected .day-pill-dow { color: rgba(255, 255, 255, 0.7); }
.day-pill.selected .day-pill-day { color: #fff; font-weight: 800; }
.day-pill-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
}
.day-pill.selected .day-pill-dot { background: #fff; }
/* Month divider tucked between chips — appears at the start of the strip
   and at every month rollover (e.g. MON 29 · JUL · MON 6). Quiet, no box,
   typographic-only so it doesn't compete with the interactive pills. */
.day-pill-month-divider {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-3);
  text-transform: uppercase;
  padding: 0 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Month section header between session cards — anchors a vertical scroll
   of cards to a calendar month (e.g. "JUNE 2026"). Uppercase eyebrow style
   so it reads as a divider, not a heading that competes with the cards. */
.book-month-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin: 18px 4px 8px;
}
.book-month-header:first-child { margin-top: 0; }

/* Post-trial dashboard card — appears once the trainer marks the trial
   attended/no-show, disappears the moment the family converts. Navy hero
   treatment so it reads as the most important card on the page until
   they act on it (without a colored border or shadow — flat per the
   brand). */
.post-trial-card {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}
.post-trial-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.post-trial-headline {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #fff;
}
.post-trial-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 8px 0 14px;
}
.post-trial-actions { display: flex; flex-direction: column; gap: 8px; }
.post-trial-actions .btn-primary {
  background: var(--orange);
  color: #fff;
}
.post-trial-actions .btn-primary:hover { background: var(--orange-hover, #c2410c); }
.post-trial-actions .btn-text {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  text-decoration: none;
}
.post-trial-actions .btn-text:hover { color: #fff; text-decoration: underline; }

/* Post-trial rating (lives inside the navy card) */
.post-trial-rate { margin: 4px 0 14px; }
.post-trial-rate .ptr-q { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.post-trial-rate .ptr-stars { display: flex; gap: 4px; }
.post-trial-rate .ptr-stars button { font-size: 28px; line-height: 1; background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.32); padding: 2px 3px; font-family: inherit; transition: color .12s ease; }
.post-trial-rate .ptr-stars button.on { color: var(--gold, #f5a623); }
.post-trial-rate .ptr-done { font-size: 14px; font-weight: 600; color: #fff; }
.post-trial-rate .ptr-done .s { color: var(--gold, #f5a623); }
.post-trial-rate .ptr-fb { margin-top: 12px; }
.post-trial-rate .ptr-fb textarea { width: 100%; box-sizing: border-box; border: none; border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; }
.post-trial-rate .ptr-fb-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.post-trial-rate .ptr-fb-row .btn { background: rgba(255,255,255,0.14); color: #fff; border: none; }
.post-trial-rate .ptr-fb-row .btn:hover { background: rgba(255,255,255,0.22); }
.post-trial-rate .ptr-thanks { font-size: 13px; font-weight: 600; color: #fff; }

/* =========== Booking: player picker + session cards =========== */

.book-picker {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}
.book-picker-eyebrow {
  font-size: 11px; color: var(--text-3); letter-spacing: 0.5px;
  font-weight: 700; text-transform: uppercase; margin-bottom: 2px;
}
.book-picker-name { font-size: 15px; font-weight: 700; color: var(--text-1); }
.book-picker-bal { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.book-picker-chevron { color: var(--text-3); font-size: 20px; line-height: 1; }

.book-picker-list { margin: -6px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.book-picker-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; width: 100%; text-align: left;
}
.book-picker-option.is-active { border-color: var(--navy); }

.day-header-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.day-header-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Grouped upcoming list: a prominent date heading per group */
.book-group { margin-bottom: 24px; scroll-margin-top: 12px; }
.book-group-head { margin: 6px 0 12px; }
.book-group-date {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.book-group-count { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.book-session-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: block;
}
.book-session-card.is-booked {
  border-left-color: var(--navy);
  cursor: default;
}
.book-session-time { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.5px; margin-bottom: 2px; }
.book-session-name { font-size: 17px; font-weight: 700; color: var(--text-1); line-height: 1.2; margin-bottom: 6px; }
.book-session-loc { font-size: 13px; color: var(--text-2); }
.book-session-badge {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.book-session-badge.badge-book { background: var(--orange-tint); color: var(--orange-hover); }
.book-session-badge.badge-booked { background: var(--success-tint); color: #166534; }

/* Action buttons on session cards.
   Color language: green = Book (add), warm amber = Drop (release). */
.book-action-btn,
.drop-action-btn {
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.book-action-btn { background: #16a34a; }            /* green */
.book-action-btn:active { background: #15803d; }
.drop-action-btn { background: #d97706; }            /* warm amber */
.drop-action-btn:active { background: #b45309; }

/* Full-width confirm-button variants (used in the book sheet / drop pane) */
.btn.btn-navy { background: var(--navy); color: #fff; }
.btn.btn-navy:hover { background: #16284d; }
.btn.btn-go { background: #16a34a; color: #fff; }
.btn.btn-go:active { background: #15803d; }
.btn.btn-warm { background: #d97706; color: #fff; }
.btn.btn-warm:active { background: #b45309; }

/* =========== Dashboard: family identity header =========== */

.hero-id-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* The gear button sits inline at the end of the identity row here. */
.hero-id-row .app-hero-account {
  position: static;
  margin-left: auto;
}

/* =========== Dashboard: section header with trailing link =========== */

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 10px;
}
.section-row .section-header { margin: 0; }
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

/* =========== Dashboard: dismissible announcement box ===========
   This is the family mockup's intended treatment for a schedule
   change — a clean rounded tinted box with a Got it action. */

/* Notification card. Reads as a "you have an alert" surface — colored
   outline calls out the card from the rest of the dashboard, red bell
   icon on the default "update" kind signals unread/active, content
   stays left-justified in a single column, dismiss is a small × in
   the top-right corner. Other kinds (weather, time change, location
   change, cancellation) override the accent color but keep the same
   shape so the user always knows it's the notification surface. */
.announce-box {
  position: relative;
  display: flex;
  gap: 14px;
  background: var(--white);
  /* Default = update/general → red. Per-kind overrides below. */
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  padding: 14px 18px 14px 16px;
  margin-bottom: 12px;
}
.announce-box-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  /* Filled icon treatment — solid colored circle with a white glyph
     inside. Default = red (update / general); kind overrides below
     swap the fill color. The .lui mask system uses background-color
     as the icon stroke, so `color: #fff` here paints the bell white
     while the chip stays red. */
  background: #dc2626;
  color: #fff;
}
.announce-box-icon .lui {
  /* Force the icon stroke to inherit the chip's color so the kind
     overrides apply without a per-kind icon rule. */
  color: currentColor;
}
.announce-box-main { flex: 1; min-width: 0; padding-right: 22px; }
.announce-box-kind {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #dc2626; /* default red eyebrow */
  margin: 0 0 3px;
}
.announce-box-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
}
.announce-box-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 4px 0 0;
}
/* Dismiss × in top-right corner. Replaces the inline "Dismiss" link so
   the content column reads cleanly top-to-bottom without a control
   anchored at the bottom of the body. */
.announce-box .announce-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.announce-box .announce-dismiss:hover {
  background: var(--bg, #f1f5f9);
  color: var(--text-1);
}

/* Kind accents — override the default red. Each kind sets the card
   border (light tint), filled-icon background (saturated color), and
   eyebrow color. The icon glyph stays white inside the filled chip
   via the inherited `color: #fff` on .announce-box-icon. */
.announce-box.kind-time_change,
.announce-box.kind-weather {
  border-color: #fde68a;
}
.announce-box.kind-time_change .announce-box-icon,
.announce-box.kind-weather .announce-box-icon {
  background: #b45309;
}
.announce-box.kind-time_change .announce-box-kind,
.announce-box.kind-weather .announce-box-kind {
  color: #b45309;
}

.announce-box.kind-location_change { border-color: #a5f3fc; }
.announce-box.kind-location_change .announce-box-icon {
  background: #0e7490;
}
.announce-box.kind-location_change .announce-box-kind { color: #0e7490; }

.announce-box.kind-cancelled { border-color: #fecaca; }
.announce-box.kind-cancelled .announce-box-icon {
  background: var(--danger, #dc2626);
}
.announce-box.kind-cancelled .announce-box-kind { color: var(--danger, #dc2626); }

/* kind-general inherits the default red filled treatment. No override needed. */

/* Email-delivery status pill in the admin announcement list. */
.email-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.email-status-sent    { background: var(--success-tint); color: #166534; }
.email-status-pending { background: #fef3c7; color: #92400e; }
.email-status-off     { background: var(--bg, #f1f5f9); color: var(--text-3); }

/* Small inline flag on a session card that has an active announcement. */
.session-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
  background: #fef3c7;
  color: #b45309;
}
.session-flag.flag-location_change { background: #cffafe; color: #0e7490; }
.session-flag.flag-cancelled { background: #fee2e2; color: #b91c1c; }
.session-flag.flag-general { background: #e0e7ff; color: var(--navy); }

/* =========== Dashboard: up-next session card =========== */

.upnext-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
/* Unified date chip — 3-line stack: DOW (muted, on top) + day (large,
   focal) + month (orange accent, on bottom). One chip rule for every
   list view in the app: dashboard Up next, booking page, trainer
   roster, desktop session cards. Stays consistent so a parent never
   has to re-learn the format. */
.upnext-date {
  width: 52px;
  flex-shrink: 0;
  text-align: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 6px 2px;
}
.upnext-date.is-changed { background: var(--navy); }
.upnext-dow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.1;
}
.upnext-date.is-changed .upnext-dow { color: rgba(255, 255, 255, 0.7); }
.upnext-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.05;
  margin-top: 1px;
}
.upnext-date.is-changed .upnext-day { color: #fff; }
.upnext-month {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.1;
  margin-top: 1px;
}
.upnext-date.is-changed .upnext-month { color: #fff; opacity: 0.95; }
.upnext-body { flex: 1; min-width: 0; }
.upnext-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.upnext-line {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* =========== Dashboard: family balance card =========== */

.balance-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
}
.balance-big {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}
.balance-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* =========== Dashboard: voucher credit (navy) card =========== */

.voucher-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 10px;
}
.voucher-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.voucher-amount {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0;
  line-height: 1;
}
.voucher-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* =========== Dashboard: quick actions list =========== */

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: var(--text-1);
  font-weight: 600;
  font-size: 14px;
}
.quick-action .qa-icon { font-size: 18px; line-height: 1; }
.quick-action .qa-chevron { margin-left: auto; color: var(--text-3); font-size: 18px; }

/* =========== Player rows (visually distinct from session cards) ===========
   Players get an initials avatar (a circle), never a date block — so a
   player never reads as a session. The avatar is a placeholder for a real
   photo/avatar later. */

.player-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.player-row.is-tappable { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.player-row.is-tappable:hover { border-color: var(--navy); background: #fafbff; }
.player-row-chevron { flex-shrink: 0; color: var(--text-3); font-size: 20px; line-height: 1; }

.player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--navy);
  text-transform: uppercase;
  overflow: hidden;            /* future: <img> avatar fills the circle */
  user-select: none;
}
/* Subtle two-tone so siblings are distinguishable; both on-brand. */
.player-avatar.avatar-alt { background: var(--orange); }

.player-row-body { flex: 1; min-width: 0; }

.player-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.player-row-meta {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  margin-top: 2px;
}

/* Detailed player card (players page) — header row + detail rows */
.player-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-detail-head.is-tappable { cursor: pointer; }
.player-detail-id { flex: 1; min-width: 0; }

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.player-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-tint, #eef2fb);
  color: var(--navy);
}

.player-detail-rows {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.player-detail-row {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  display: flex;
  gap: 8px;
}
.player-detail-row .pd-icon { flex-shrink: 0; }
.player-detail-row.is-muted { color: var(--text-3); }

/* Inline warning strip (e.g. photo release not granted) */
.player-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--warn-tint);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #a16207;
}

.session-card-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.session-card.selected .session-card-check { opacity: 1; }

.session-card-priority {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
  vertical-align: 2px;
}

/* =========== Loading spinner =========== */

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

/* =========== Sticky footer bar (used on intake / checkout) =========== */

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
}

.sticky-footer-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.sticky-footer-spacer { height: 110px; }

/* =========== Trial form: value block + secondary CTA =========== */

.trial-intro {
  margin-bottom: 18px;
}
.trial-intro-lead {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  margin-bottom: 8px;
}
.trial-perks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.trial-perks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}
.trial-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--success, #16a34a);
  font-weight: 800;
}
.trial-intro-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.trial-secondary {
  margin: 20px 0 4px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.trial-secondary a { font-weight: 700; white-space: nowrap; }

/* =========== Bottom navigation (in-app pages) =========== */

.bottom-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 10px 0 calc(14px + env(safe-area-inset-bottom));
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav-item {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
}

.nav-item.active { color: var(--navy); }

.nav-icon { font-size: 22px; line-height: 1; }

.bottom-nav-spacer { height: 80px; }

/* =========== Status pills (state indicators) =========== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-success { background: var(--success-tint); color: #166534; }
.pill-warn    { background: var(--warn-tint);    color: #854d0e; }
.pill-danger  { background: var(--danger-tint);  color: #991b1b; }
.pill-info    { background: var(--info-tint);    color: var(--info); }
.pill-gray    { background: var(--bg);           color: var(--text-2); }
.pill-orange  { background: var(--orange-tint);  color: var(--orange-hover); }

/* =========== Alerts (urgent attention callouts) =========== */
/* Distinct from .callout (editorial) — these are for high-priority
   state changes that need staff or family action. */

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 4px solid;
  margin-bottom: 12px;
}

.alert-danger  { background: var(--danger-tint);  border-color: var(--danger); }
.alert-warn    { background: var(--warn-tint);    border-color: var(--warn); }
.alert-info    { background: var(--info-tint);    border-color: var(--info); }
.alert-success { background: var(--success-tint); border-color: var(--success); }

.alert-body { flex: 1; min-width: 0; }
.alert-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin: 0 0 2px; }
.alert-text { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.45; }
.alert-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: var(--white);
  color: var(--text-1);
  cursor: pointer;
}

/* =========== Activity feed =========== */

.feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.feed-item:last-child { border-bottom: none; }

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.feed-dot-success { background: var(--success); }
.feed-dot-warn    { background: var(--warn); }
.feed-dot-info    { background: var(--info); }
.feed-dot-danger  { background: var(--danger); }
.feed-dot-gray    { background: var(--text-3); }

.feed-body { flex: 1; min-width: 0; }
.feed-text { font-size: 13px; color: var(--text-1); line-height: 1.4; }
.feed-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* =========== Hero back-row label (drill-in pages) =========== */

.app-hero-back-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 8px;
}

/* =========== Sticky pay bar (camp / pack checkout) =========== */
/* Same idea as .sticky-footer but with policy text below the CTA. */

.sticky-pay-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  z-index: 11;
}

.sticky-pay-bar .pay-policy {
  font-size: 11px;
  color: var(--text-3);
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.4;
}

.sticky-pay-bar-spacer { height: 130px; }

/* =========== Program catalog cards (gradient hero cards) =========== */

.program-card {
  position: relative;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 14px;
  color: var(--white);
  overflow: hidden;
  text-decoration: none;
  display: block;
  min-height: 180px;
  width: 100%;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.program-card-navy   { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }
.program-card-orange { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%); }
.program-card-ink    { background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%); }
.program-card-mixed  { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--orange-hover) 100%); }

.program-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.program-card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}

.program-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.program-card-price {
  font-size: 18px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.program-card-cta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* Decorative SVG ball watermark, top-right */
.program-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* =========== Utility =========== */

.text-center { text-align: center; }
.text-small { font-size: 13px; color: var(--text-2); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* =========== Line-art icon system (mask + currentColor) =========== */
.nav-icon, .qa-icon, .pd-icon, .lui {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--m) no-repeat center / contain;
  mask: var(--m) no-repeat center / contain;
}
.nav-icon { width: 24px; height: 24px; }
.qa-icon  { width: 22px; height: 22px; }
.pd-icon  { width: 16px; height: 16px; flex-shrink: 0; }
.lui      { width: 1.05em; height: 1.05em; vertical-align: -0.15em; }
.icon-home { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%209l9-7%209%207v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%27%2F%3E%3Cpath%20d%3D%27M9%2022V12h6v10%27%2F%3E%3C%2Fsvg%3E"); }
.icon-calendar { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M16%202v4M8%202v4M3%2010h18%27%2F%3E%3C%2Fsvg%3E"); }
.icon-ball { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207l4.3%203.1-1.6%205.1H9.3L7.7%2010z%27%2F%3E%3C%2Fsvg%3E"); }
.icon-card { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%271.5%27%20y%3D%274.5%27%20width%3D%2721%27%20height%3D%2715%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M1.5%209.5h21%27%2F%3E%3C%2Fsvg%3E"); }
.icon-clipboard { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%272%27%20width%3D%278%27%20height%3D%274%27%20rx%3D%271%27%2F%3E%3C%2Fsvg%3E"); }
.icon-gear { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%2F%3E%3Cpath%20d%3D%27M19.4%2015a1.65%201.65%200%200%200%20.33%201.82l.06.06a2%202%200%201%201-2.83%202.83l-.06-.06a1.65%201.65%200%200%200-1.82-.33%201.65%201.65%200%200%200-1%201.51V21a2%202%200%201%201-4%200v-.09A1.65%201.65%200%200%200%209%2019.4a1.65%201.65%200%200%200-1.82.33l-.06.06a2%202%200%201%201-2.83-2.83l.06-.06a1.65%201.65%200%200%200%20.33-1.82%201.65%201.65%200%200%200-1.51-1H3a2%202%200%201%201%200-4h.09A1.65%201.65%200%200%200%204.6%209a1.65%201.65%200%200%200-.33-1.82l-.06-.06a2%202%200%201%201%202.83-2.83l.06.06a1.65%201.65%200%200%200%201.82.33H9a1.65%201.65%200%200%200%201-1.51V3a2%202%200%201%201%204%200v.09a1.65%201.65%200%200%200%201%201.51%201.65%201.65%200%200%200%201.82-.33l.06-.06a2%202%200%201%201%202.83%202.83l-.06.06a1.65%201.65%200%200%200-.33%201.82V9a1.65%201.65%200%200%200%201.51%201H21a2%202%200%201%201%200%204h-.09a1.65%201.65%200%200%200-1.51%201z%27%2F%3E%3C%2Fsvg%3E"); }
.icon-users { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M17%2021v-2a4%204%200%200%200-4-4H5a4%204%200%200%200-4%204v2%27%2F%3E%3Ccircle%20cx%3D%279%27%20cy%3D%277%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M23%2021v-2a4%204%200%200%200-3-3.87M16%203.13a4%204%200%200%201%200%207.75%27%2F%3E%3C%2Fsvg%3E"); }
.icon-clock { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E"); }
.icon-pin { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M21%2010c0%207-9%2013-9%2013s-9-6-9-13a9%209%200%200%201%2018%200z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%273%27%2F%3E%3C%2Fsvg%3E"); }
.icon-user { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%277%27%20r%3D%274%27%2F%3E%3C%2Fsvg%3E"); }
.icon-school { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%209l9-4%209%204-9%204z%27%2F%3E%3Cpath%20d%3D%27M7%2011v4.5c0%201.1%202.2%202.5%205%202.5s5-1.4%205-2.5V11%27%2F%3E%3C%2Fsvg%3E"); }
.icon-camera { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M23%2019a2%202%200%200%201-2%202H3a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h3l2-3h8l2%203h3a2%202%200%200%201%202%202z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2713%27%20r%3D%274%27%2F%3E%3C%2Fsvg%3E"); }
.icon-medical { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M22%2012h-4l-3%209L9%203l-3%209H2%27%2F%3E%3C%2Fsvg%3E"); }
.icon-bell { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M18%208a6%206%200%200%200-12%200c0%207-3%209-3%209h18s-3-2-3-9%27%2F%3E%3Cpath%20d%3D%27M13.73%2021a2%202%200%200%201-3.46%200%27%2F%3E%3C%2Fsvg%3E"); }
.icon-cloud { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M18%2010a4%204%200%200%200-7.6-1.4A3.5%203.5%200%201%200%206.5%2015.5H18a2.75%202.75%200%200%200%200-5.5z%27%2F%3E%3Cpath%20d%3D%27M8%2019l-1%202M12%2019l-1%202M16%2019l-1%202%27%2F%3E%3C%2Fsvg%3E"); }
.icon-xcircle { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M15%209l-6%206M9%209l6%206%27%2F%3E%3C%2Fsvg%3E"); }

/* Announcement icon takes the kind color (line-art on the tint circle) */
.announce-box.kind-time_change .announce-box-icon,
.announce-box.kind-weather .announce-box-icon { color: #b45309; }
.announce-box.kind-location_change .announce-box-icon { color: #0e7490; }
.announce-box.kind-cancelled .announce-box-icon { color: var(--danger); }
.announce-box.kind-general .announce-box-icon { color: var(--navy); }

/* =========== Quiet footer brand mark =========== */
.app-brandmark {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 28px 0 4px;
}

/* =========== Bottom-nav brand mark (peeks above the bar) =========== */
/* Floats in the empty center gap of the 4-item family nav. */
.nav-brand {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -46%);
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--white);
  padding: 3px;
  box-shadow: 0 -3px 10px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  -webkit-tap-highlight-color: transparent;
}
.nav-brand-icon {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}
.nav-brand:active { transform: translate(-50%, -46%) scale(0.94); }

/* =====================================================================
   CARD TYPE SYSTEM  (shared — see card-type-system mock)
   Six roles, one job each. Reuse these on every card so parents can skim.
     eyebrow  → .section-header (UPPERCASE group label, already defined)
     heading  → .h-card
     subhead  → .subhead
     body     → .body-text
     subtext  → .meta-text
     value    → .value-text
     notice   → .notice (orange dot, NO box — never tinted callouts)
   Buttons are FLAT — no drop/glow shadows.
   ===================================================================== */
.h-card    { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-1); }
.subhead   { font-size: 13px; font-weight: 600; color: #334155; }
.body-text { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text-2); }
.meta-text { font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--text-3); }
.value-text{ font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }

/* Notification — orange dot + bold lead + muted detail. No box, no left bar. */
.notice { display: flex; gap: 9px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: 13px; padding: 14px 15px; margin-bottom: 10px; }
.notice-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 6px; }
.notice-lead { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.notice-detail { font-size: 12.5px; color: var(--text-2); margin-top: 1px; line-height: 1.45; }
.notice-link { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-top: 6px; text-decoration: none; }

/* "Booked" confirmation badge on the Up Next card. */
.badge-booked { display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #16a34a; background: #dcfce7;
  border-radius: 999px; padding: 3px 9px; margin-top: 8px; }

/* Dashboard Up Next — vertical card: chip + body on top, actions below.
   Scoped with .dash so the booking page's shared .upnext-card stays horizontal. */
.upnext-card.dash { flex-direction: column; align-items: stretch; gap: 0; }
.upnext-card.dash .upnext-top { display: flex; gap: 14px; align-items: flex-start; }
.upnext-when { font-size: 14px; font-weight: 600; color: var(--text-1); margin-top: 4px; }
.upnext-where { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.upnext-card.dash .upnext-actions { display: flex; gap: 9px; align-items: center; margin-top: 14px; }
.upnext-card.dash .upnext-actions .btn { width: auto; padding: 9px 14px; font-size: 13px; flex: 0 0 auto; }

/* Up Next — larger focus treatment for the next (first) session. */
.upnext-card.is-focus { padding: 16px; border-radius: 16px; }
.upnext-card.is-focus .upnext-date { width: 58px; padding: 9px 0; }
.upnext-card.is-focus .upnext-day { font-size: 25px; }
.upnext-card.is-focus .upnext-title { font-size: 18px; letter-spacing: -0.01em; }

/* Prominent "Book your next session" CTA — flat, the booking nudge. */
.book-cta { display: flex; align-items: center; gap: 14px; background: var(--orange);
  border-radius: 16px; padding: 17px 18px; text-decoration: none; }
.book-cta:active { background: var(--orange-hover); }
.book-cta-body { flex: 1; }
.book-cta-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.book-cta-sub { font-size: 12.5px; color: rgba(255,255,255,0.92); margin-top: 3px; line-height: 1.4; }
.book-cta-arrow { flex: none; font-size: 22px; color: #fff; }

/* =====================================================
   Desktop (≥720px) — mobile-first column on a branded stage
   =====================================================
   The app stays a phone-width column; desktop gets the
   action-photo backdrop (same photo+scrim treatment as the
   splash page) behind it. Phones never download the photo —
   background images inside a non-matching media query are
   not fetched.
   ===================================================== */

@media (min-width: 720px) {
  /* Desktop is a flat, calm surface — the mobile-first column centered on a
     cool page tone so the white "screen" reads as a contained app, with a
     soft structural lift (not a button shadow). No photo backdrop. */
  body { background: #e7ebf2; }

  .app-hero,
  .pub-head,
  .app-content {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Differentiate the centered column from the page. */
  .app-hero, .pub-head, .app-content {
    box-shadow: 0 10px 34px -16px rgba(15, 23, 42, 0.22);
  }

  .app-hero {
    margin-top: 40px;
    border-radius: 24px 24px 0 0;
  }

  .app-content {
    margin-top: -28px; /* keep the mobile rise-into-hero overlap */
    margin-bottom: 56px;
    border-radius: 24px;
  }

  /* Fixed bars hug the column instead of spanning the viewport. */
  /* The sticky CTA stays pinned to the viewport — that's the point of it —
     but hugs the column instead of spanning the page. */
  .sticky-footer {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
  }

  /* The bottom nav is not a CTA — it's the bottom of the column. Left fixed,
     it stranded itself at the foot of a tall window while the card ended
     hundreds of pixels above, which read as a floating bar over a dead gap.
     In flow it simply butts the card.

     `relative` rather than `static`: .nav-brand (the dashboard's peeking
     logo) is absolutely positioned and needs this element as its containing
     block, which a static parent would not provide. */
  .bottom-nav {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 48px;
    padding-bottom: 14px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 34px -16px rgba(15, 23, 42, 0.22);
  }

  /* Square off the card the nav now butts against, and reclaim the space the
     spacer reserved for the old fixed bar. Scoped to pages that actually have
     a nav — /register, /login and /schedule use .app-content on its own and
     must keep their fully rounded bottom. */
  body:has(.bottom-nav) .app-content {
    margin-bottom: 0;
    border-radius: 24px 24px 0 0;
    /* the 80px bottom padding cleared the old fixed bar; the nav is in the
       column now, so the card only needs its normal breathing room */
    padding-bottom: 24px;
  }
  body:has(.bottom-nav) .bottom-nav-spacer { display: none; }
}

/* =========== Standalone admin pages on desktop ===========
   /app/admin-{sessions,locations,tags,staff,reports} are the admin surfaces
   with no view inside the desktop console — its Overview quick-links navigate
   out to them. They're built mobile-first, but a 520px column of forms and
   report tables stranded on a 1400px monitor is the "phone column on desktop"
   problem. Widen the column and drop the phone tab bar; the console's sidebar
   is the real nav, and each page keeps its own "← Admin" back link.

   Opt-in via .admin-desk rather than .staff-shell, because /app/admin and
   /app/registrar only ever render at desk width under ?mobile=1 — where the
   phone column is exactly what was asked for. */

@media (min-width: 900px) {
  body.admin-desk .app-hero,
  body.admin-desk main.app-content {
    max-width: 940px;
  }

  /* The nav is still in the DOM, so the :has() rules above matched it and
     squared off the card. With the bar gone, restore the closed-off column. */
  body.admin-desk .bottom-nav,
  body.admin-desk .bottom-nav-spacer {
    display: none;
  }
  body.admin-desk main.app-content {
    border-radius: 24px;
    padding-bottom: 32px;
    margin-bottom: 56px;
  }
}

/* =========== Side rails (desktop only) ===========
   A solid navy card beside the column (was a frosted panel on the old
   photo backdrop — with that gone, navy keeps the white text legible on
   the light page). Hidden until there's room. Variants: .phone-nudge
   (QR, /assets/phone-nudge.js) on post-conversion pages; .funnel-rail
   (/assets/funnel-rail.js) shows registration progress on funnel pages. */

.side-rail { display: none; }

@media (min-width: 1100px) {
  .side-rail {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: calc(50% + 288px);
    width: 204px;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 16px;
    padding: 20px 18px;
    color: #fff;
    z-index: 5;
  }
  .phone-nudge { text-align: center; }

  /* Funnel progress rail */
  .rail-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
  .rail-steps { list-style: none; margin: 14px 0 0; padding: 0; }
  .rail-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.65);
  }
  .rail-step-num {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: -2px;
  }
  .rail-step.is-active { color: #fff; }
  .rail-step.is-active .rail-step-num { background: var(--orange); border-color: var(--orange); }
  .rail-step.is-done { color: rgba(255, 255, 255, 0.85); }
  .rail-step.is-done .rail-step-num { background: rgba(255, 255, 255, 0.92); border-color: transparent; color: var(--navy); }
  .rail-step-sub { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
  .rail-context {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 12px;
    padding-top: 11px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
  }
  .rail-context strong { color: #fff; font-weight: 700; }

  .phone-nudge-icon { display: block; margin: 0 auto 10px; width: 26px; height: 26px; stroke: #fff; fill: none; }
  .phone-nudge-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
  .phone-nudge-sub { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); margin-top: 5px; }
  .phone-nudge-qr {
    width: 124px;
    height: 124px;
    margin: 14px auto 0;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
  }
  .phone-nudge-qr svg { display: block; width: 100%; height: 100%; }
  .phone-nudge-steps { font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); margin-top: 12px; }
  .phone-nudge-steps strong { color: #fff; font-weight: 700; }
}

/* =========== Trial ticket (confirmation page) ===========
   The booked session rendered as a pass: deep-navy face with the
   big date, detail rows, a perforated tear line (notches are circles
   filled with the page background), and an ADMIT-N stub. Flat, no
   shadows. Reusable for camps/leagues later via the eyebrow text. */

.ticket {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible; /* notches poke past the edges */
  position: relative;
  margin: 2px 0 28px;
}
.ticket-head {
  background: var(--navy-deep);
  border-radius: 15px 15px 0 0;
  padding: 17px 18px 19px;
}
.ticket-head-row { display: flex; justify-content: space-between; align-items: center; }
.ticket-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #93b0e8; }
.ticket-no { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #fdba74; }
.ticket-date {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.14;
  margin-top: 12px;
}
.ticket-time { color: #fdba74; margin-top: 0; }
.ticket-loc { font-size: 13px; color: #aebfe4; margin-top: 9px; line-height: 1.5; }
.ticket-loc a { color: var(--white); font-weight: 700; }

.ticket-rows { padding: 12px 18px 13px; }
.ticket-row { display: flex; padding: 6px 0; }
.ticket-row-label {
  flex: none;
  width: 76px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-3);
  padding-top: 3px;
}
.ticket-row-value { font-size: 14.5px; font-weight: 700; color: var(--text-1); line-height: 1.4; }
.ticket-row-value.muted { font-weight: 500; color: var(--text-2); }

.ticket-perf { position: relative; margin: 0 16px; border-top: 2px dashed var(--border); }
.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}
.ticket-perf::before { left: -27px; }
.ticket-perf::after { right: -27px; }

.ticket-stub { display: flex; align-items: center; gap: 12px; padding: 14px 16px 15px; }
.ticket-admit {
  flex: none;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 13px;
}
.ticket-admit-label { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-3); }
.ticket-admit-num { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.ticket-stub-action { flex: 1; width: auto; }

/* =========== Numbered "what happens next" steps =========== */

.next-steps { margin: 4px 0 26px; }
.next-steps .step { display: flex; gap: 12px; padding: 8px 0; }
.step-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step-body { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.step-body strong { color: var(--text-1); }
