/* Irish Red Cross — design tokens. Single source of truth for CSS.
   Keep in sync with tokens.json (same names, kebab -> nested).

   Adopted from design-pack/design/tokens.css (v2, 26 Aug 2026), with two
   additions this build needs and the pack does not carry: --irc-red-text-bg and
   the app-shell measurements at the foot of the file.

   IRC-2619 (2 Dec 2026): colours and type now follow the new redcross.ie, read
   from the website's own stylesheet (chrome.min.css) and the "Design System"
   page of Red Dog's Figma file, so the portal and the website match. */
:root{
  /* brand */
  /*
   * The website's red and its darker partner (chrome.min.css --red, --red-dark).
   * Measured, and matching the contrast the Figma states for each:
   *
   *   #e51c21 on #ffffff -> 4.65:1   AA for normal-size white text (needs 4.5)
   *   #b3121a on #ffffff -> 6.96:1
   *   #b3121a on #efede4 -> 5.9:1    (the light grey panel colour below)
   *   #e51c21 on #efede4 -> 3.96:1   NOT AA for normal text
   *
   * So the red can now carry white text, and --irc-red-text-bg collapses to it,
   * as this note always said it would once a red cleared 4.5. Red DRAWN as text
   * stays on red-dark (site.css --accent-text): the website's own rule is "red
   * text only on white", and the portal puts text on grey panels as well.
   *
   * The pack's red (#ed1b2e, 4.38:1) is gone. Suppressing axe's colour-contrast
   * rule was never the alternative (portal/CLAUDE.md: violations are fixed,
   * never suppressed).
   */
  --irc-red:#e51c21;
  --irc-red-dark:#b3121a;
  /* The website's "Deep (Maroon)" - white text on it is 16.67:1. */
  --irc-red-darker:#45000f;
  --irc-red-tint:#fdf2f3;
  --irc-red-tint-2:#f9dee1;

  /* White text on this is AA at any size. See the note above. */
  --irc-red-text-bg:var(--irc-red);

  /* neutrals - the website's black, its text grey and its light grey panel
     (chrome.min.css --ink, --muted, --subtle); the rest kept from the pack */
  --irc-ink:#000000;
  --irc-ink-2:#3d3739;
  --irc-ink-3:#6b6860;
  --irc-line:#e4e0e0;
  --irc-line-strong:#c9c4c4;
  --irc-surface:#ffffff;
  --irc-surface-2:#efede4;
  --irc-surface-3:#efecea;

  /* support (use sparingly: status, tags) */
  --irc-teal:#0f6b6b;
  --irc-amber:#b26a00;

  /* type */
  /*
   * The website's fonts: Marr Sans Cond (semibold) for headings, Plus Jakarta
   * Sans for everything else, with the website's own fallbacks. Plus Jakarta
   * Sans comes from Google Fonts (App.razor). Marr Sans Cond is licensed to the
   * website and served only to redcross.ie addresses, by the website's header
   * (IRC-2619, Website:Chrome); anywhere else headings use Arial Narrow.
   *
   * Sizes are the Figma's type scale, mapped onto the portal's headings (a page
   * h1 is the website's H3, 28px on a phone to 40px on a desktop; an h2 is H4,
   * 24px; an h3 is H4 on a phone, 20px). 14px is the smallest size anywhere -
   * the website's own rule, from its volunteer survey ("text too small").
   */
  --irc-font-display:"Marr Sans Cond","Arial Narrow",sans-serif-condensed,sans-serif;
  /* Falls back to Helvetica/Arial, not the website's system-ui: on Linux system-ui is a
     much wider face, and the reading measure (site.css --measure) is set in ch. */
  --irc-font-body:"Plus Jakarta Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
  --irc-fs-100:0.875rem;  /* 14 eyebrow - the website's minimum */
  --irc-fs-200:0.875rem;  /* 14 meta, topbar */
  --irc-fs-300:1rem;       /* 16 body */
  --irc-fs-400:1.125rem;   /* 18 lead body */
  --irc-fs-450:1.25rem;    /* 20 h3 */
  --irc-fs-500:1.5rem;     /* 24 card title, h2 */
  --irc-fs-600:1.75rem;    /* 28 page h1 on a phone */
  --irc-fs-700:2.5rem;     /* 40 page h1 on a desktop */
  --irc-fs-800:3.5rem;     /* 56 */
  --irc-fs-900:clamp(3rem,6vw,4.5rem); /* hero, 48 to 72 */
  --irc-lh-tight:1.05;
  --irc-lh-snug:1.25;
  --irc-lh-body:1.5;
  --irc-tracking-tight:0;
  --irc-tracking-caps:0.08em;

  /* space (4pt base) */
  --irc-s1:4px; --irc-s2:8px; --irc-s3:12px; --irc-s4:16px; --irc-s5:24px;
  --irc-s6:32px; --irc-s7:48px; --irc-s8:64px; --irc-s9:96px; --irc-s10:128px;

  /* layout */
  --irc-container:1240px;
  --irc-container-narrow:760px;
  --irc-gutter:clamp(16px,4vw,40px);
  --irc-header-h:92px;
  --irc-logo-h:56px;
  --irc-topbar-h:40px;

  /* app shell (design-pack/design/portal.css) */
  --irc-sidebar-w:264px;
  --irc-appbar-h:64px;

  /* shape + depth */
  --irc-radius-sm:3px;
  --irc-radius:6px;
  --irc-radius-lg:10px;
  /* Fully round. From the website wireframe (Figma, 17 Sep 2026), where every
     action - Donate Now, Start Fundraising, Sign In - is a pill and the only
     square-cornered things are inputs and cards. Named rather than 999px inline
     so the shape is one decision instead of a number repeated down the file. */
  --irc-radius-pill:999px;
  --irc-shadow-1:0 1px 2px rgba(23,19,20,.06),0 2px 8px rgba(23,19,20,.05);
  --irc-shadow-2:0 12px 32px rgba(23,19,20,.12);
  --irc-focus:0 0 0 3px rgba(229,28,33,.4);

  /* motion */
  --irc-dur-fast:120ms;
  --irc-dur:200ms;
  --irc-ease:cubic-bezier(.2,.6,.2,1);

  --irc-z-header:100;
  --irc-z-mega:90;
  --irc-z-drawer:120;
}
