/* EMP Resource Hub design tokens: CSS custom properties.
   Generated from tokens.json. Brand font files are in ./fonts. */

@font-face { font-family: 'Argentum Sans'; src: url('fonts/ArgentumSans-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Argentum Sans'; src: url('fonts/ArgentumSans-SemiBold.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'Argentum Sans'; src: url('fonts/ArgentumSans-Bold.woff2') format('woff2'); font-weight: 700; }

:root {

  /* color / brand */
  --color-brand-yellow: #F9C349; /* Primary buttons, selected nav item, active level */
  --color-brand-amber: #E89B27; /* Page headings, heading underline, link underline, last-opened outline */
  --color-brand-amber-deep: #B9741A; /* Eyebrow labels and tile counts on light grounds */
  --color-brand-icon-amber: #C47F17; /* Line icons on tiles */

  /* color / text */
  --color-text-default: #595959; /* All body and heading text */
  --color-text-muted: #8A8A8A; /* Table headers, secondary labels */
  --color-text-subtle: #7A7A7A; /* Notes, map key */
  --color-text-disabled: #B0B0B0; /* Unpaid levels, disabled controls */
  --color-text-on-dark: #FFFFFF; /* Text on grey or slate fills */

  /* color / surface */
  --color-surface-page: #FFFFFF; /* Main content background */
  --color-surface-sidebar: #FFFAEB; /* Sidebar, sign-in background, soft panels */
  --color-surface-hover: #FFFCF5; /* Tile hover */
  --color-surface-soft-yellow: #FEF0D2; /* Banner, feature panel, icon tiles, explicit lesson tiles */
  --color-surface-soft-yellow-hover: #FDE8BC; /* Feature panel hover */
  --color-surface-email-bg: #EEEDEA; /* Email preview background */
  --color-surface-overlay: rgba(89,89,89,0.45); /* Modal backdrop */

  /* color / border */
  --color-border-default: #F0E4C8; /* Cards, inputs, dividers */
  --color-border-dashed: #E4D6B5; /* Empty states, unavailable levels */
  --color-border-strong: #595959; /* Secondary buttons */

  /* color / session */
  --color-session-explicit-bg: #FEF0D2; /* A: explicit lesson */
  --color-session-mssp-bg: #DDE6D3; /* B: MSSP lesson (map tile) */
  --color-session-mssp-deep: #4C6447; /* B: MSSP code text */
  --color-session-mssp-header: #B5D39B; /* B: session page header */
  --color-session-consolidation-bg: #FDE5D6; /* C: consolidation (map tile) */
  --color-session-consolidation-header: #FBD3BA; /* C: session page header */
  --color-session-formative-bg: #EADFF3; /* D: formative assessment (map tile) */
  --color-session-formative-deep: #634A6E; /* D: code text */
  --color-session-formative-header: #CDB3E0; /* D: session page header */
  --color-session-catchup-bg: #DEE5EA; /* Catch Up or Top Up (map tile) */
  --color-session-catchup-deep: #455D70; /* Catch Up text */
  --color-session-catchup-header: #AFC9DE; /* Catch Up session header */
  --color-session-summative-bg: #DFD0EC; /* Summative week row */
  --color-session-summative-deep: #55406A; /* Summative text */
  --color-session-summative-header: #B79CCF; /* Summative session header */
  --color-session-none-bg: #EFEBE4; /* Non-teaching week */

  /* color / badge */
  --color-badge-neutral: #EFEBE4; /* From your school, State default */
  --color-badge-changed: #FEF0D2; /* Changed by admin / you / teacher */
  --color-badge-emp: #DEE5EA; /* Checked by EMP */
  --color-badge-confirmed: #E3EDDA; /* Confirmed by your school */

  /* color / status */
  --color-status-error: #B42318; /* Error text and invalid input border */
  --color-status-success-bg: #EEF4E8; /* Confirmation panel */
  --color-status-success-border: #CFE0C2; /* Confirmation panel border */
  --color-status-success-text: #4C6447; /* Success ticks */
  --color-status-emp-strip: #455D70; /* EMP Support viewing strip */

  /* color / prototype */
  --color-prototype-note-bg: #F2F7FA; /* Prototype-only labels (not for build) */
  --color-prototype-note-border: #8FB0C9; /* Prototype-only labels */
  --color-prototype-note-text: #455D70; /* Prototype-only labels */

  /* font */
  --font-family-base: 'Argentum Sans', sans-serif;
  --font-size-xs: 12px; /* Eyebrows, badges, table headers */
  --font-size-sm: 13px; /* Hints, captions */
  --font-size-base: 15px; /* Secondary body, card descriptions */
  --font-size-md: 16px; /* Body */
  --font-size-lg: 17px; /* Card titles (h4) */
  --font-size-xl: 20px; /* Tile titles, step titles */
  --font-size-2xl: 24px; /* Section headings */
  --font-size-3xl: 26px; /* Modal titles, sign-in title */
  --font-size-4xl: 28px; /* Session section headings */
  --font-size-5xl: 32px; /* Page headings (h1) */
  --font-size-6xl: 34px; /* Session page title */
  --font-weight-regular: 400; /* Body */
  --font-weight-semibold: 600; /* Labels, links in nav, secondary buttons */
  --font-weight-bold: 700; /* Headings, primary buttons */
  --line-height-body: 1.55;
  --line-height-heading: 1.1;
  --letter-spacing-eyebrow: 0.08em;

  /* radius: asymmetric (top-left + bottom-right) */
  --radius-xs: 6px 0 6px 0; /* Badges */
  --radius-sm: 8px 0 8px 0; /* Small inputs, selects */
  --radius-md: 10px 0 10px 0; /* Inputs, small buttons, level buttons, sidebar items */
  --radius-lg: 12px 0 12px 0; /* Buttons, banners, list panels */
  --radius-xl: 14px 0 14px 0; /* Help items, info panels */
  --radius-2xl: 18px 0 18px 0; /* Cards and tiles */
  --radius-3xl: 22px 0 22px 0; /* Modals, sign-in card, session header */
  --radius-hero: 28px 0 28px 0; /* Guide to Success feature panel */
  --radius-tile: 8px; /* Program map session cells (symmetric) */

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-9: 36px;
  --space-11: 44px;
  --space-12: 48px; /* Page side padding */
  --space-16: 64px; /* Page bottom padding */

  /* size */
  --size-button-height: 44px; /* Buttons and inputs (minimum touch target) */
  --size-button-height-lg: 46px; /* Primary buttons on sign-in and modals */
  --size-button-height-sm: 36px; /* Small buttons, level switcher */
  --size-sidebar-width: 224px;
  --size-content-max: 880px; /* Library pages */
  --size-map-max: 1240px; /* Program map */
  --size-heading-rule-width: 56px; /* Orange line under headings */
  --size-heading-rule-height: 4px;
  --size-icon: 22px; /* Sidebar icons */
  --size-icon-tile: 48px; /* Icon box on tiles */
}

body { margin: 0; font-family: var(--font-family-base); font-size: var(--font-size-md); line-height: var(--line-height-body); color: var(--color-text-default); background: var(--color-surface-page); }
a { color: var(--color-text-default); text-decoration-color: var(--color-brand-amber); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
