/*
 * Layer 1 — SCALE. The only stylesheet where literal values are allowed.
 * Every other stylesheet takes numbers and colours from here through var()
 * (docs/decisions/frontend_visual_system.decisions.md §1).
 *
 * Values come from the owner's design description (section V) and the decisions recorded in
 * docs/work/active/s4_visual_foundation.md: design "pt" = CSS px; accent #d64000.
 * Four families, none may be missing: space, text, geometry, colour.
 */
:root {
  /* SPACE — generous on purpose ("a lot of breathing space"). */
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 64px;
  --space-12: 80px;
  --space-13: 96px;

  /* TEXT */
  --font-family-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-size-2xs: 10px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 30px;
  /* A count on an admin tile — ALL USERS 45 (owner, AP-Q14: 40 px; the PDF draws ≈ 42). */
  --font-size-count: 40px;
  /* The JUST / HUB wordmark of the sign-in screens (owner, S6.4: 96 px at every width). */
  --font-size-3xl: 96px;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.2;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --letter-spacing-caps: 0.08em;

  /* GEOMETRY — shadows rather than borders. */
  --radius-sm: 4px;
  --radius-lg: 20px;
  --radius-round: 9999px;
  --border-width: 1px;
  --control-height-sm: 32px;
  --control-height-md: 40px;
  --control-height-lg: 48px;
  --control-height-xl: 72px;
  /* The answer circle of an opened section in the profile panel: its 12 px word with room around it,
     smaller than the main screen's circles (owner, UP-Q10: 56 px). */
  --control-height-answer: 56px;
  /* A home country on a user's page in admin: a light pill (owner, AP-Q53: 36 px). */
  --control-height-pill: 36px;
  /* A count tile on a user's page in admin: PC, RC, UA, BLOCKS; GENERAL, TECH, ADVICE, NEW (owner,
     AP-Q52: 144 px). */
  --height-stat: 144px;
  /* A count tile on the admin Dashboard: ALL USERS, PAID USERS (owner, AP-Q70: 100 px, as the PDF
     draws it). */
  --height-count: 100px;
  --height-screen: 100dvh;
  /* Half the screen: the messages pop-up's conversation (description: a ½-high pop-up; S7.7). */
  --height-half-screen: 50dvh;
  /* A chip at least this wide, its text centred: the chips of a sheet read as one set (owner, S7.4; PDF p. 3). */
  --width-sm: 160px;
  --width-md: 200px;
  /* The admin portal's side column and its phone menu panel (owner, AP-Q5, AP-Q9: 288 px, as the
     PDF draws it). */
  --width-side: 288px;
  /* An overview tile on Home: every card title on one line, the next card peeking in (owner, S7.6:
     300 px). */
  --width-ml: 300px;
  /* The sign-in forms from the breakpoint up (PDF p. 4: the fields measure ≈ 350 px). */
  --width-lg: 360px;
  --width-xl: 560px;
  /* The column of the Home and Event screens from the breakpoint up (PDF pp. 1–2, desktop). */
  --width-2xl: 960px;
  /* The list of events and its filter from the breakpoint up (owner, S7.4: about 2/3, PDF p. 1). */
  --width-two-thirds: 66.667%;
  /* How much further in the Event screen's heading starts from the breakpoint up (owner, S7.4: as on
     the PDF, p. 2 — a sixth of the column). */
  --width-one-sixth: 16.667%;
  /* The white rectangle of a section opened in the profile panel (owner, S7.5: five-sixths of the
     panel's content, centred). */
  --width-five-sixths: 83.333%;
  /* The messages column from the breakpoint up (HUB_ADL_Screens-2, Messaging: three quarters of the
     screen on tablet and desktop). */
  --width-three-quarters: 75%;
  /* Grid tracks: one column, or two, three or four of equal width. */
  --grid-one: minmax(0, 1fr);
  --grid-two: repeat(2, minmax(0, 1fr));
  --grid-three: repeat(3, minmax(0, 1fr));
  --grid-four: repeat(4, minmax(0, 1fr));
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.08), 0 1px 3px rgb(0 0 0 / 0.06);
  --shadow-2: 0 2px 8px rgb(0 0 0 / 0.1);
  --shadow-3: 0 8px 24px rgb(0 0 0 / 0.14);
  --line-width-sm: 2px;
  --line-width-md: 2.5px;
  --shift-sm: 1px;
  --ratio-square: 1;

  /* MOTION */
  --duration-none: 0ms;
  --duration-fast: 100ms;
  /* A panel seen sliding in and out (owner, S7.5: 400 ms). */
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  /* How far a panel travels when it slides: its own size, from off the screen's edge. */
  --travel-full: 100%;
  --travel-full-reverse: -100%;

  /* COLOUR — raw palette only, no meaning. Meaning lives in tokens.css. */
  --palette-white: #ffffff;
  --palette-gray-50: #f5f5f5;
  /* The lines of the admin frame and of a table's header (owner, AP-Q1: as the PDF draws them). */
  --palette-gray-200: #e0e0e0;
  --palette-gray-300: #b3b3b3;
  --palette-gray-500: #757575;
  --palette-gray-600: #6b6b6b;
  --palette-gray-800: #424242;
  --palette-black: #000000;
  --palette-orange-700: #d64000;
  --palette-orange-800: #cd3d00;
  /* Admin dark theme (owner, plan S4.2 Q4; AU-Q1): the contrasting block, muted text. */
  --palette-gray-850: #2a2a2a;
  /* The text of a light card in admin (owner, AP-Q51: 14.8:1 on #f5f5f5); the admin page since AU-Q1. */
  --palette-gray-875: #212121;
  /* Admin, raised on the #212121 page: fields, chips, tags, lines (owner, AU-Q1: 1.37:1 on the page). */
  --palette-gray-825: #383838;
  --palette-gray-400: #a3a3a3;
  /* Dimming under an overlay: black 25 %, as on the owner's screens (owner, 2026-10-03). */
  --palette-black-a25: rgb(0 0 0 / 0.25);
}
