/* ================= Rocket design tokens =================
   The one place colours, type, radius, spacing, shadows and motion are defined. Everything else uses these.
   Rule: Rocket's palette never changes. The primitives below are the palette, exactly. Every role is a palette
   value, or an opacity / blend of palette values (no new hues). Use the ROLE tokens in components, never the
   --rk-* primitives (those are only for brand art: the login thermal gradient and the pull-to-refresh rocket).
   Loaded before styles.css on every page that uses styles.css. Dark only: Rocket has no light theme. */
:root{
  /* ---- palette primitives (do not change, do not add) ---- */
  --rk-ink:#0A0A0C; --rk-surface:#15141C; --rk-raised:#1D1B26; --rk-line:#2A2833;
  --rk-white:#F5F4F7; --rk-grey:#A9A6B8; --rk-grey-dim:#72708A;
  --rk-cyan:#4DD9E8; --rk-amber:#F5B942; --rk-ember:#E8672E; --rk-violet:#5B3FA0; --rk-violet-light:#B7A6E6;
  --rk-green:#4ADE80; --rk-red:#F5626B;

  /* ---- surfaces: depth comes from layering these, not from borders or shadows ---- */
  --surface-page:var(--rk-ink);                 /* app background */
  --surface-card:var(--rk-surface);             /* cards, panels, dialogs */
  --surface-tile:var(--rk-raised);              /* a tile nested in a card */
  --surface-sunken:color-mix(in srgb, var(--rk-ink) 50%, var(--rk-surface));   /* out-of-month cells, wells */
  --surface-hover:rgba(245,244,247,.04);        /* hover on something transparent (nav rows, list rows) */
  --surface-card-hover:color-mix(in srgb, var(--rk-surface) 96%, var(--rk-white));
  --surface-tile-hover:color-mix(in srgb, var(--rk-raised) 96%, var(--rk-white));
  --surface-inverse:var(--rk-white);            /* selected chip, active tab pill */
  --scrim:rgba(10,10,12,.6);                    /* behind dialogs and sheets */

  /* ---- lines ---- */
  --border-subtle:var(--rk-line);
  --border-strong:rgba(245,244,247,.12);        /* hover borders, dividers that must show */

  /* ---- text ---- */
  --text-primary:var(--rk-white);
  --text-secondary:var(--rk-grey);              /* 7.7:1 on cards */
  --text-muted:color-mix(in srgb, var(--rk-grey) 55%, var(--rk-grey-dim));   /* ≈4.7:1 on cards: AA. Muted text under 18px */
  --text-faint:var(--rk-grey-dim);              /* 3.8:1: only text ≥18px, and decoration (dots, rules, icons) */
  --text-inverse:var(--rk-ink);                 /* on --surface-inverse */

  /* ---- the one interactive accent ---- */
  --accent:var(--rk-cyan);
  --accent-hover:color-mix(in srgb, var(--rk-cyan) 84%, var(--rk-white));
  --accent-soft:rgba(77,217,232,.12);
  --accent-line:rgba(77,217,232,.35);
  --on-accent:var(--rk-ink);                    /* 11.7:1 */

  /* ---- live: happening right now. Ember is used for nothing else. ---- */
  --live:var(--rk-ember);
  --live-soft:rgba(232,103,46,.16);             /* the Now pill */
  --live-tint:rgba(232,103,46,.06);             /* today's column / cell */

  /* ---- status ---- */
  --status-high:var(--rk-red);                  /* overdue, blocked, high priority */
  --status-high-soft:rgba(245,98,107,.13);
  --status-high-line:rgba(245,98,107,.35);
  --status-high-tint:rgba(245,98,107,.06);
  --status-medium:var(--rk-amber);              /* due soon, medium priority, needs attention */
  --status-medium-soft:rgba(245,185,66,.13);
  --status-medium-line:rgba(245,185,66,.35);
  --status-medium-tint:rgba(245,185,66,.06);
  --status-low:var(--rk-grey-dim);              /* low priority: a faint dot */
  --success:var(--rk-green);                    /* done, confirmed, saved */
  --success-soft:rgba(74,222,128,.12);
  --success-line:rgba(74,222,128,.35);
  --success-tint:rgba(74,222,128,.06);
  --danger:var(--rk-red);                       /* destructive actions */
  --danger-soft:rgba(245,98,107,.13);
  --danger-line:rgba(245,98,107,.35);
  --trend-up:var(--success); --trend-up-soft:var(--success-soft);
  --trend-down:var(--danger); --trend-down-soft:var(--danger-soft);

  /* ---- violet: categories (events, programmes) ---- */
  --violet:var(--rk-violet);                    /* fills only: 2.3:1, never text */
  --violet-text:var(--rk-violet-light);         /* readable violet: 8.4:1 */
  --violet-soft:rgba(91,63,160,.28);

  /* ---- type: one family. Hierarchy by size and text colour, not weight. ---- */
  --font-sans:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-code:ui-monospace,"SF Mono",Menlo,monospace;   /* code blocks only */
  --fs-xs:12px;   /* eyebrows, chips, table headers, meta */
  --fs-sm:13px;   /* sub-labels, dense rows */
  --fs-md:14px;   /* body */
  --fs-lg:16px;   /* card titles, phone body */
  --fs-xl:20px;   /* section headings, week-grid dates */
  --fs-2xl:24px;  /* dialog titles, small stats */
  --fs-3xl:32px;  /* page titles, times */
  --fs-4xl:48px;  /* big stat numerals */
  --fw-regular:400; --fw-medium:500; --fw-semibold:600;
  --lh-tight:1.15; --lh-body:1.5;
  --tracking-label:.08em;

  /* ---- radius ---- */
  --r-xs:6px;     /* calendar chips, bars, checkboxes */
  --r-sm:10px;    /* inputs, small tiles */
  --r-md:16px;    /* nested tiles, menus */
  --r-lg:24px;    /* cards, panels, dialogs */
  --r-pill:999px; /* buttons, chips, segmented controls, tab pill */

  /* ---- spacing ---- */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px;

  /* ---- shadows: three, no more ---- */
  --shadow-popover:0 12px 32px rgba(10,10,12,.55);
  --shadow-dialog:0 24px 64px rgba(10,10,12,.6);
  --focus-ring:0 0 0 3px var(--accent-soft);

  /* ---- motion ---- */
  /* motion: transform, opacity and stroke-dashoffset only. Reduced motion turns all of it off (css/motion.css). */
  --dur-fast:150ms;   /* hovers, presses, small state changes */
  --dur-base:220ms;   /* sheets, the tab pill, fades between views */
  --dur-slow:320ms;   /* arrivals, larger moves */
  --dur-med:var(--dur-base);   /* old name */
  --stagger:40ms;
  --ease-out:cubic-bezier(.2,.8,.2,1);          /* the standard ease */
  --ease-spring:cubic-bezier(.34,1.3,.5,1);     /* spring-like: the tab pill and sheets */

  /* ---- legacy names, kept only for code outside the refresh (Outreach's shadow root, voyager-18).
     New code must not use these. ---- */
  --ink:var(--surface-page); --surface:var(--surface-card); --surface-raised:var(--surface-tile); --border:var(--border-subtle);
  --cyan:var(--accent); --cyan-soft:var(--accent-soft); --amber:var(--status-medium); --amber-soft:var(--status-medium-soft);
  --ember:var(--rk-ember); --ember-soft:var(--live-soft);
  --f-display:var(--font-sans); --f-body:var(--font-sans); --f-mono:var(--font-sans);

  color-scheme:dark;
}
