/* NE1 Golf League — "Lite" (low-text) design tokens.
   Source of truth: gen_lite.py / gen.py THEMES.floodlit (the picked theme).
   Drop-in: load AFTER /brand/floodlit.css so these win. Behaviour-neutral (CSS only).
   Fonts are the ones already shipped by the app (public/brand/fonts + app/layout.tsx):
   --font-archivo, --font-archivo, --font-archivo. Inter (used in the mockup) is NOT
   shipped; body text maps to Archivo (see DESIGN-SPEC.md §1.2). */

:root {
  /* ---------- 1. Colour: surfaces ---------- */
  --lt-bg: #04130f;                                   /* page background (pitch-dark green) */
  --lt-field: rgba(243, 239, 230, 0.06);              /* cards, tiles, inputs (≈ #12201c on bg) */
  --lt-field-solid: #12201c;                          /* opaque equivalent for dialogs/sheets */
  --lt-nav-bg: rgba(14, 40, 33, 0.85);                /* bottom nav glass (≈ #0c251e on bg) */
  --lt-hair: rgba(243, 239, 230, 0.08);               /* 1px dividers, inset outlines */
  --lt-track: rgba(243, 239, 230, 0.14);              /* ring tracks, dashed slots, neutral avatar rings */
  --lt-aura: radial-gradient(120% 40% at 50% 0%, rgba(31, 110, 86, 0.50), transparent 65%),
             radial-gradient(70% 30% at 90% 100%, rgba(255, 90, 31, 0.10), transparent 70%);
  --lt-wash: linear-gradient(90deg, rgba(255, 90, 31, 0.16), rgba(255, 90, 31, 0.02)); /* "you" row */

  /* ---------- 2. Colour: content ---------- */
  --lt-text: #f3efe6;        /* cream — primary text (16.6:1 on bg) */
  --lt-muted: #9fb5a9;       /* secondary text (8.7:1 on bg, 7.7:1 on field, 5.3:1 under aura) */
  --lt-acc: #ff5a1f;         /* NE1 orange — the ONLY bright colour (6.1:1 on bg) */
  --lt-acc-hover: #ff8a5c;   /* link hover */
  --lt-acc2: #99d7b0;        /* mint — positive / verified / winning (11.5:1 on bg) */
  --lt-on-acc: #0b1510;      /* text/icons on orange (6.0:1) or mint (11.3:1) */
  --lt-nav-on: rgba(255, 90, 31, 0.12); /* active nav pill. Mockup .16 gave 4.37:1 — raised to pass 4.5 */

  /* ---------- 3. Glows & shadows ---------- */
  --lt-glow-acc: rgba(255, 90, 31, 0.40);   /* t.glowText */
  --lt-glow-acc2: rgba(153, 215, 176, 0.45); /* t.glow2 */
  --lt-shadow-cta: 0 10px 36px var(--lt-glow-acc);
  --lt-shadow-selected: 0 0 34px var(--lt-glow-acc);      /* selected power-up tile */
  --lt-shadow-selected-sm: 0 0 26px var(--lt-glow-acc);   /* selected small tile / chip */
  --lt-shadow-nav: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--lt-hair);
  --lt-outline-tile: inset 0 0 0 1px var(--lt-hair);
  --lt-outline-input: inset 0 0 0 1px var(--lt-hair);
  --lt-text-glow-acc: 0 0 18px var(--lt-glow-acc);
  --lt-text-glow-acc2: 0 0 20px var(--lt-glow-acc2);
  --lt-drop-acc: drop-shadow(0 0 6px var(--lt-acc));
  --lt-drop-acc2: drop-shadow(0 0 6px var(--lt-acc2));

  /* ---------- 4. Avatar fallback gradients (initials) — pick by stable hash of player id, mod 6 ---------- */
  --lt-av-0: linear-gradient(140deg, #5a7d9a, #2c4256);
  --lt-av-1: linear-gradient(140deg, #a0785a, #5a3e2c);
  --lt-av-2: linear-gradient(140deg, #8a6fa8, #45325e);
  --lt-av-3: linear-gradient(140deg, #5e9a94, #2a4f4a);
  --lt-av-4: linear-gradient(140deg, #b0905a, #5e4a26);
  --lt-av-5: linear-gradient(140deg, #9a5e6e, #4e2a36);
  --lt-av-me: linear-gradient(140deg, #7a9a6e, #34502c);  /* the signed-in player */

  /* ---------- 5. Typography ---------- */
  --lt-font-display: var(--font-archivo, Archivo), 'Arial Black', sans-serif;               /* italic 900 */
  --lt-font-label: var(--font-archivo, Archivo), 'Arial Narrow', sans-serif; /* 700 */
  --lt-font-body: var(--font-archivo, Archivo), Inter, system-ui, sans-serif;           /* 400 / 600 */

  --lt-num-tracking: -0.02em;   /* .num */
  --lt-lbl-tracking: 0.16em;    /* .lbl */
  --lt-tab-tracking: 0.12em;    /* league tabs */

  /* Display (Archivo italic 900, line-height 1) */
  --lt-fs-hero: 120px;   /* Result total */
  --lt-fs-d1: 96px;      /* Rankings rank */
  --lt-fs-d2: 90px;      /* Match scores */
  --lt-fs-d3: 84px;      /* Handicap value */
  --lt-fs-d4: 54px;      /* Player position */
  --lt-fs-d5: 48px;      /* Invite league name, hole input */
  --lt-fs-title: 42px;   /* tab-root page title (Matches, Play) */
  --lt-fs-num-xl: 40px;
  --lt-fs-num-l: 34px;   /* sub-screen hero (league name on Invite uses d5) */
  --lt-fs-num-m: 30px;   /* sub-screen header title, section numbers */
  --lt-fs-num-s: 22px;
  --lt-fs-num-xs: 17px;  /* table points */
  --lt-fs-cta: 20px;     /* CTA label */

  /* Body (Archivo) */
  --lt-fs-body-l: 17px;
  --lt-fs-body: 16px;    /* inputs (≥16px stops iOS zoom), list text */
  --lt-fs-body-s: 15px;  /* rows, names */
  --lt-fs-small: 14px;
  --lt-fs-tile: 13px;    /* tile labels, weight 600 */
  --lt-fs-caption: 12px; /* avatar names, legends */
  --lt-fs-micro: 11px;   /* nav labels (600), .lbl captions */

  /* ---------- 6. Spacing (px) ---------- */
  --lt-gutter: 24px;     /* page side padding */
  --lt-s-2: 2px; --lt-s-4: 4px; --lt-s-6: 6px; --lt-s-8: 8px; --lt-s-10: 10px; --lt-s-12: 12px;
  --lt-s-14: 14px; --lt-s-16: 16px; --lt-s-18: 18px; --lt-s-20: 20px; --lt-s-22: 22px; --lt-s-24: 24px;
  --lt-s-28: 28px; --lt-s-30: 30px; --lt-s-34: 34px; --lt-s-36: 36px; --lt-s-56: 56px;
  --lt-nav-clearance: calc(96px + env(safe-area-inset-bottom)); /* bottom padding for pages with nav */

  /* ---------- 7. Radii ---------- */
  --lt-r-pill: 999px;
  --lt-r-cta: 28px;      /* 56px-high CTA */
  --lt-r-nav: 28px;      /* nav container */
  --lt-r-nav-btn: 22px;
  --lt-r-tile: 20px;     /* tiles, power-up cards, task cards */
  --lt-r-card: 16px;     /* info rows, textarea */
  --lt-r-input: 14px;    /* text inputs, hole buttons */
  --lt-r-row: 10px;      /* highlighted "you" row */
  --lt-r-bar: 6px;

  /* ---------- 8. Sizes ---------- */
  --lt-tap: 44px;         /* minimum tap target */
  --lt-cta-h: 56px;
  --lt-input-h: 52px;
  --lt-nav-btn-h: 52px;
  --lt-icon: 20px; --lt-icon-s: 18px; --lt-icon-l: 26px;
  --lt-icon-stroke: 2;
  --lt-av-xs: 32px;  /* table */
  --lt-av-s: 44px;   /* header, query */
  --lt-av-m: 50px;   /* matches */
  --lt-av-l: 64px;   /* more */
  --lt-av-xl: 76px;  /* player */

  /* ---------- 9. Motion ---------- */
  --lt-ease: cubic-bezier(.2, .8, .2, 1);
  --lt-dur-fast: 120ms;   /* press, toggle */
  --lt-dur: 200ms;        /* selection, accordion */
  --lt-dur-slow: 350ms;   /* page enter (matches existing floodlit-rise .35s) */
  --lt-dur-ring: 600ms;   /* ring/segment draw-in */
}

@media (prefers-reduced-motion: reduce) {
  :root { --lt-dur-fast: 0ms; --lt-dur: 0ms; --lt-dur-slow: 0ms; --lt-dur-ring: 0ms; }
}

/* ---------- Utility classes mirrored from the mockup HEAD ---------- */
.lt-num { font-family: var(--lt-font-display); font-style:normal; font-weight: 900; letter-spacing: var(--lt-num-tracking); line-height: 1; }
.lt-lbl { font-family: var(--lt-font-label); font-weight: 700; letter-spacing: var(--lt-lbl-tracking); text-transform: uppercase; font-size: var(--lt-fs-micro); }
.lt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(.lt) :focus-visible { outline: 2px solid var(--lt-acc); outline-offset: 3px; }
