/* SEIRC Entries design tokens: loaded before app.css, coach.css and admin.css (docs/research/responsive-audit.md §3).
   Breakpoints are mobile-first min-widths; CSS variables can't be used in media queries, so they are listed here
   and written literally in each file:  sm 600 (tablet portrait, 2-col grids)  ·  md 900 (sidebars appear, the phone
   action bar hides)  ·  lg 1200 (admin split layout, full tables).  Below 600 everything is one column. */
:root {
  /* brand colours */
  --blue: #1247BC; --blue-2: #0E3A9C; --mid: #6587D3; --light: #B8C8EB; --pale: #E7EDF8;
  --purple: #6B3FA0; --purple-pale: #EFE8F7; --cyan: #29BDDC;
  --bg: #F4F6FB; --card: #fff; --ink: #1B2440; --muted: #5A6685; --line: #E1E6F0; --placeholder: #8A94AD;
  --ok: #1D6B3F; --ok-bg: #E5F6EC; --warn: #8A5A00; --warn-bg: #FFF4DB; --err: #A42323; --err-bg: #FDECEC;
  --snack: #1B2440;

  /* containers: one per page type, always centred; the header uses the same one as its page */
  --page-w: 1068px;   /* public pages */
  --auth-w: 480px;    /* single-card sign-in pages */
  --admin-w: 1280px;  /* organiser pages */
  --measure: 760px;   /* reading width inside a public page (left-aligned with the header) */
  --gutter: 16px;

  /* spacing, 4-pt. Use only these steps for margin, padding and gap. Rhythm: s1–s2 inside a control or between a
     label and its value, s3–s4 between items in a group, s5 between groups in a card or a heading and its content,
     s6–s7 between sections. --sec-y is the gap between page sections, --band-y the blue band's padding. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --card-pad: 16px; --sec-y: var(--s6); --band-y: var(--s6);

  /* type, public scale (admin.css steps it down one notch inside .admin). One role per size:
     xs 12 labels, eyebrows, meta · sm 14 supporting text, hints, list subtitles · md 16 body · lg 20 card and step titles
     · h2 section headings (uppercase, 800) · xl page titles in the blue band (uppercase, 800).
     Muted text is always var(--muted) at sm or xs, never a smaller grey body. Inputs never below 16px (iOS zoom). */
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-h2: clamp(22px, 3vw, 26px); --fs-xl: clamp(28px, 6vw, 40px);
  --fs-input: 16px; --fs-ctl: 14px;
  /* admin shorthand fonts (lists, page headers, cards): title 17, head 14, body 13, meta 12, label 11 caps */
  --t-title: 600 17px/1.25 Inter, sans-serif; --t-head: 600 14px/1.3 Inter, sans-serif; --t-body: 400 13px/1.45 Inter, sans-serif;
  --t-meta: 400 12px/1.4 Inter, sans-serif; --t-label: 700 11px/1.2 Inter, sans-serif;
  --lh: 1.5; --lh-tight: 1.15;

  /* shape */
  --r-card: 14px; --r-ctl: 10px; --r-sheet: 20px; --r-pill: 999px;
  --r: var(--r-card);
  --shadow: 0 1px 2px rgba(18,71,188,.06), 0 4px 16px rgba(18,71,188,.06);
  --ring: 0 0 0 3px var(--mid);

  /* icons (Material Symbols Rounded via <Icon>): three sizes, one tone for headings and leads, muted for meta */
  --ic-sm: 16px; --ic-md: 20px; --ic-lg: 24px; --ic-tone: var(--blue); --ic-meta: var(--muted);

  /* touch */
  --tap: 44px;

  /* sticky stack, single source of truth: topbar z20 → admin tabs z19 → table head z18; action bar z30, snackbar z40 */
  --topbar: 52px; --subnav: 52px; --actionbar: 72px; --bar-h: var(--actionbar);
  --sticky-top: calc(var(--topbar) + var(--s4));
}
@media (min-width: 900px) {
  :root { --gutter: 24px; --card-pad: 24px; --sec-y: var(--s7); --band-y: var(--s7); --topbar: 60px; --subnav: 0px; }
}

/* guards: nothing may push the page sideways */
html, body { overflow-x: clip; }

/* one visible focus ring for every control (inputs keep their own softer ring) */
a:focus-visible, button:focus-visible, summary:focus-visible, [role="radio"]:focus-visible {
  outline: 3px solid var(--mid); outline-offset: 2px;
}
::placeholder { color: var(--placeholder); font-weight: 400; opacity: 1; letter-spacing: normal; text-transform: none; }
