/* ATH design system (ATH Sports Group). One shared look for ATH Connect, ATH League, ATH Recruit, the Education Pathway,
   ATH Train and team and league sites, taken from athsports.ca: black and charcoal surfaces, ATH orange #F26522,
   silver #C0C0C0, Plus Jakarta Sans at heavy weights, uppercase letter-spaced buttons and nav, 8px corners,
   orange glow on hover. Load it after an app's own stylesheet; it maps each app's variables onto these tokens. */

/* :root:root so these win over an app's own :root, whatever order the files load in */
:root:root {
  --ath-bg: #0a0a0a;
  --ath-surface: #111111;
  --ath-surface-2: #1a1a1a;
  --ath-muted-bg: #2a2a2a;
  --ath-border: #2a2a2a;
  --ath-text: #ffffff;
  --ath-text-2: #d6d6d6;
  --ath-muted: #a0a0a0;
  --ath-orange: #F26522;
  --ath-orange-hover: #d45510;
  --ath-orange-2: #ff8c42;
  --ath-silver: #C0C0C0;
  --ath-green: #22c55e;
  --ath-yellow: #eab308;
  --ath-blue: #60a5fa;
  --ath-red: #ff6b5a;
  --ath-radius: 8px;
  --ath-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ath-gradient: linear-gradient(135deg, #F26522, #ff8c42);
  --ath-hero: linear-gradient(135deg, #000 0%, #0d0d0d 40%, #1a0a00 70%, #000 100%);
  --ath-glow: 0 12px 40px rgba(242, 101, 34, .2);

  /* ATH League, Recruit, Pathway, Train */
  color-scheme: dark;
  --bg: var(--ath-bg); --card: var(--ath-surface); --mut: var(--ath-muted); --line: var(--ath-border);
  --or: var(--ath-orange); --ork: var(--ath-orange-2); --blk: #000; --ok: var(--ath-green); --bad: var(--ath-red); --on-or: #fff; --on-blk: #fff;

  /* ATH Connect (main app) */
  --accent: var(--ath-orange); --panel: var(--ath-surface); --fg: var(--ath-text); --muted: var(--ath-muted); --row: var(--ath-surface-2);
  --good: var(--ath-green); --good-bg: rgba(34, 197, 94, .12); --warn: var(--ath-yellow); --warn-bg: rgba(234, 179, 8, .12); --chip: var(--ath-surface-2);
  --display: var(--ath-font); --body: var(--ath-font);
}

/* ---------- base ---------- */
html { background: var(--ath-bg); }
body { background: var(--ath-bg); color: var(--ath-text); font-family: var(--ath-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--ath-font); font-weight: 800; letter-spacing: -.02em; }
h1 { text-transform: uppercase; }
a { color: var(--ath-orange-2); }
::selection { background: rgba(242, 101, 34, .35); }
:focus-visible { outline: 2px solid var(--ath-orange); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { background: #000; border-bottom: 1px solid var(--ath-border); }
.brand { font-family: var(--ath-font); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.brand b { color: var(--ath-orange); }
.nav a, .tabs a { font-family: var(--ath-font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #bdbdbd; }
.nav a:hover, .tabs a:hover { color: #fff; }
.nav a[aria-current=page] { color: var(--ath-orange); border-color: var(--ath-orange); }
.tabs a.on { color: #fff; background: var(--ath-orange); }

/* ---------- surfaces ---------- */
.card, .panel, .filters, details.card { background: var(--ath-surface); border: 1px solid var(--ath-border); border-radius: calc(var(--ath-radius) + 4px); }
.card { transition: border-color .2s ease, box-shadow .2s ease; }
a.card:hover, .card.lift:hover, .gm:hover { border-color: var(--ath-orange); box-shadow: var(--ath-glow); }
.col, .stat { background: var(--ath-surface-2); border: 1px solid var(--ath-border); border-radius: var(--ath-radius); }
table { border-color: var(--ath-border); }
th { color: var(--ath-muted); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
td, th { border-color: var(--ath-border) !important; }
hr { border-color: var(--ath-border); }

/* ---------- buttons ---------- */
.btn { border-radius: var(--ath-radius); font-family: var(--ath-font); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 14px; transition: background-color .15s ease, transform .15s ease, border-color .15s ease; }
.btn:not(.sec):not(.bad):not(.ghost):not(.danger):not(.google) { background: var(--ath-orange); border-color: var(--ath-orange); color: #fff; }
.btn:not(.sec):not(.bad):not(.ghost):not(.danger):not(.google):hover { background: var(--ath-orange-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.sec, .btn.google { background: transparent; color: #fff; border: 2px solid var(--ath-border); }
.btn.sec:hover, .btn.google:hover { border-color: var(--ath-orange); color: var(--ath-orange); }
.btn.bad, .btn.danger { background: transparent; color: var(--ath-red); border: 2px solid rgba(255, 107, 90, .45); }
.btn.sm { font-size: 12px; }
.chip { border-radius: 999px; background: var(--ath-surface-2); border: 1px solid var(--ath-border); color: var(--ath-text); }
.chip[aria-pressed=true], .chip.on { background: rgba(242, 101, 34, .15); color: var(--ath-orange); border-color: var(--ath-orange); }
.pill { border-radius: 999px; background: rgba(242, 101, 34, .15); color: var(--ath-orange); border: 1px solid rgba(242, 101, 34, .4); }
.pill.ok { background: rgba(34, 197, 94, .1); color: var(--ath-green); border-color: rgba(34, 197, 94, .3); }
.pill.warn { background: rgba(234, 179, 8, .1); color: var(--ath-yellow); border-color: rgba(234, 179, 8, .3); }
.pill.bad { background: rgba(255, 107, 90, .1); color: var(--ath-red); border-color: rgba(255, 107, 90, .3); }

/* ---------- forms ---------- */
input, select, textarea { background: var(--ath-surface-2); color: var(--ath-text); border: 1px solid var(--ath-border); border-radius: var(--ath-radius); }
input:focus, select:focus, textarea:focus { border-color: var(--ath-orange); outline: none; box-shadow: 0 0 0 3px rgba(242, 101, 34, .2); }
input::placeholder, textarea::placeholder { color: #777; }
input[type=checkbox], input[type=radio] { flex: none; width: 18px !important; height: 18px; min-height: 0 !important; padding: 0; accent-color: var(--ath-orange); }
label.f { color: var(--ath-text-2); }
dialog { background: var(--ath-surface); color: var(--ath-text); border: 1px solid var(--ath-border); border-radius: calc(var(--ath-radius) + 4px); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }

/* ---------- helpers anyone can use ---------- */
.ath-eyebrow { font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ath-orange); }
.ath-line { width: 60px; height: 3px; background: var(--ath-orange); margin: 0 0 1rem; border: 0; }
.ath-hero { background: var(--ath-hero); border-bottom: 1px solid var(--ath-border); }
.ath-grad-text { background: var(--ath-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ath-progress { height: 8px; border-radius: 999px; background: var(--ath-muted-bg); overflow: hidden; }
.ath-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #F26522, #ff8c42); }

/* ---------- ATH family bar: links the main site, ATH Connect, ATH League and the AiR Academy ---------- */
.ath-bar { background: #000; border-bottom: 1px solid #1f1f1f; font: 700 11px/1 var(--ath-font); letter-spacing: .12em; text-transform: uppercase; }
.ath-bar .in { max-width: 1300px; margin: 0 auto; padding: 7px max(4vw, 14px); display: flex; gap: 6px 18px; align-items: center; overflow-x: auto; white-space: nowrap; }
.ath-bar a { flex: none; color: #8f8f8f; text-decoration: none; }
.ath-bar a:hover { color: #fff; }
.ath-bar a.on { color: var(--ath-orange); }
.ath-bar .logo { height: 22px; width: auto; display: block; margin-right: 4px; }

@media print { :root { color-scheme: light; } body, html { background: #fff; color: #000; } .ath-bar { display: none; } }
