/* ==========================================================================
   Fit For Banking — Design Tokens
   Transcribed from design_handoff_ffb_portal/README.md (hifi handoff).
   These values are final. Change them here, never inline in a component.
   ========================================================================== */

:root {
  /* ---------- Colour: surfaces ---------- */
  --ffb-page-bg: #ffffff;
  --ffb-frame-bg: linear-gradient(180deg, #ffffff 0%, #f3f0ee 100%); /* public pages */
  --ffb-nav-bg: rgba(251, 251, 249, 0.85);
  --ffb-nav-border: rgba(11, 33, 56, 0.06);
  --ffb-menu-panel: #fbfbf9;
  --ffb-surface-grey: #f5f6f7;
  --ffb-surface-band: #f7f5f4;
  --ffb-surface-band-alt: #f3f0ee;
  --ffb-surface-band-soft: #fbfaf9; /* My Learning: Continue where you left off */
  --ffb-surface-mint: #ecfaf2;
  --ffb-surface-mint-border: #cdeedd; /* Sign In: the free-trial tile */

  /* ---------- Colour: brand ---------- */
  --ffb-navy-deep: #0f2a3f; /* footer, CTA band, headings */
  --ffb-navy-brand: #0b2138; /* wordmark, dark text */
  --ffb-blue: #0b4f8f; /* accents, links, numerals */
  --ffb-blue-hover: #0d63b3;
  --ffb-pill-blue-hover: #1466b3; /* public brand bar: the Sign in pill */
  --ffb-green: #19ca8f; /* primary action */
  --ffb-green-hover: #9fe9cc;
  --ffb-green-ink: #04261b; /* green-on-dark button text */
  --ffb-green-ink-alt: #06231a;
  --ffb-green-bright: #2ed39b; /* hover on a green tile (My Learning: Learning areas) */
  /* On navy tiles (My Learning): a raised row, soft and muted text. */
  --ffb-navy-raised: #1e3d55;
  --ffb-on-dark-soft: #cdd9e3;
  --ffb-on-dark-muted: #9fb3c3;
  /* The study-plan heart when assigned by the organisation and not removable yet:
     filled grey. 4.0:1 or better on white and every light surface; on-dark 5.2:1
     on --ffb-navy-raised and 6.8:1 on --ffb-navy-deep (non-text, 3:1 needed). */
  --ffb-heart-locked: #6a7b89;
  --ffb-heart-locked-on-dark: #9fb3c3;
  --ffb-green-text: #0a7a55; /* green as text on white — ~5.3:1, --ffb-green is ~2:1 */

  /* ---------- Colour: text ---------- */
  --ffb-text: #16232e;
  --ffb-text-body: #2c3b47;
  --ffb-text-body-alt: #35444f;
  --ffb-text-body-deep: #1c2b36;
  --ffb-text-muted: #566776;
  --ffb-text-muted-alt: #6a7b89;
  --ffb-text-muted-soft: #7f95a8;
  --ffb-nav-link: #46586a;
  --ffb-nav-link-hover: #000000;

  /* Header sitting over a dark full-bleed hero (header class `home`): no
     surface of its own, so brand and links invert to white. */
  --ffb-nav-ink-invert: #ffffff;
  --ffb-nav-link-invert: rgba(255, 255, 255, 0.86);
  --ffb-nav-border-invert: rgba(255, 255, 255, 0.55);
  --ffb-nav-shadow-invert: 0 1px 14px rgba(4, 20, 34, 0.45);

  /* ---------- Colour: footer / dark panels ---------- */
  --ffb-footer-bg: #0f2a3f;
  --ffb-footer-text: #cdd9e3;
  --ffb-footer-link: #e8eef3;
  --ffb-footer-heading: #7f95a8;
  --ffb-footer-copy: #93a8b9;
  --ffb-footer-border: #1e3d55;
  --ffb-dark-panel-text: #b9c8d6;

  /* ---------- Colour: borders ---------- */
  --ffb-hairline: #e2e9e6;
  --ffb-card-border: #e7edea;
  --ffb-input-border: #e7edea; /* #d5dee7; */
  --ffb-outline-border: #c9d6de;
  --ffb-outline-hover: #b7c7c0;
  --ffb-dash-blue: #b9cfe4;
  --ffb-dash-green: #cfe6da;
  /* My Learning cards and their rows. */
  --ffb-card-border-cool: #e3e9ee;
  --ffb-row-hover: #f1f5f3;
  /* Content Categories: card body on hover, image well while loading, the
     stat labels, and the Brand-new band. */
  --ffb-card-hover-cool: #eef4f8;
  /* A panel holding white cards that hover to --ffb-card-hover-cool, so a
     step lighter than it — Path details. */
  --ffb-panel-cool: #f6f9fb;
  --ffb-media-placeholder: #e8eef3;
  --ffb-text-muted-cool: #5a6d7c;
  --ffb-surface-soft: #f1f5f3;
  /* The rule under a --ffb-surface-soft band (the Reports picker's group headings). */
  --ffb-surface-soft-border: #e3e9e6;
  /* Category details: the content-type colours (modules use --ffb-blue,
     Excels and tests --ffb-green-text), the row rules, the SkillFit card,
     language tags, the progress arc and a failed assessment. */
  --ffb-video: #a3177f;
  --ffb-rule-cool: #dfe6ec;
  --ffb-surface-test: #f1f5f8;
  --ffb-tag-bg: #e4e9ed;
  --ffb-progress: #1e7fd8;
  --ffb-ring-track-on-image: #ffffff; /* progress-ring track over a photo */
  --ffb-fail: #c81e1e;
  /* Thumbnail tints on hover, one per content type. */
  --ffb-tint-video: rgba(163, 23, 127, 0.4);
  --ffb-tint-module: rgba(11, 79, 143, 0.4);
  --ffb-tint-excel: rgba(14, 138, 96, 0.4);
  --ffb-tint-test: linear-gradient(90deg, rgba(14, 138, 96, 0.85) 0%, rgba(25, 202, 143, 0.45) 100%);
  --ffb-shadow-tip: 0 4px 14px -4px rgba(11, 33, 56, 0.22);
  /* Micro Games: the card's outline is a shadow ring, swapped for a lift on
     hover; the play overlay, its triangle, and the details dialog. */
  --ffb-card-ring: 0 0 0 1px rgba(11, 33, 56, 0.16), 0 0 0 rgba(11, 33, 56, 0);
  --ffb-card-lift: 0 0 0 1px rgba(11, 33, 56, 0), 0 14px 40px -6px rgba(11, 33, 56, 0.16);
  --ffb-tint-game: linear-gradient(45deg, rgb(238 59 69 / 30%) 0, rgb(0 38 84 / 30%) 100%);
  --ffb-play-ink: #002654;
  --ffb-shadow-play: 0 8px 24px -8px rgba(11, 33, 56, 0.5);
  --ffb-shadow-adm-tile: 0 10px 24px -18px rgba(11, 33, 56, 0.5); /* admin report tile hover */
  --ffb-dialog-backdrop: rgba(11, 33, 56, 0.55);
  --ffb-shadow-dialog: 0 40px 80px -30px rgba(11, 33, 56, 0.55);
  /* Learning Paths: a stage chip with its certificate held, and the lift
     under the progress mark on a photo. */
  --ffb-chip-green-bg: #e3f8ef;
  --ffb-chip-green-ink: #0b6b4a;
  --ffb-badge-lift: drop-shadow(0 1px 3px rgba(11, 33, 56, 0.45));
  /* Learning path page: the hero's stat rules and bar track, the second
     stage's chip, a finished series' numeral, and the certificate's lift. */
  --ffb-rule-hero: #d3dee6;
  --ffb-chip-blue-bg: #e4eef7;
  --ffb-num-done: #9fb3c4;
  --ffb-shadow-cert: 0 8px 20px -12px rgba(11, 33, 56, 0.45);
  /* Study Plan: deadline states (expired, due within 14 days, completed),
     an expired card's border and row, requirement tags, the cards' hover
     glow, the per-type thumbnail tints, the empty box and the Undo toast. */
  --ffb-expired: #b3261e;
  --ffb-expired-row: #fcf4f3;
  /* Expired study-plan card (Keith, 2026-10-07): a 1px red shadow ring as
     the outline, which on hover becomes the red lift. One layer in both, so
     it animates as a single shadow growing out of the edge. */
  --ffb-card-ring-expired: 0 0 0 1px rgba(179, 38, 30, 0.4);
  --ffb-card-lift-expired: 0 14px 40px -6px rgba(179, 38, 30, 0.22);
  --ffb-soon: #8a5300;
  --ffb-done-text: #0e6b4b;
  --ffb-tag-blue-bg: #e6eef6;
  --ffb-tag-grey-bg: #eef1f4;
  --ffb-tag-on-image: rgba(255, 255, 255, 0.92);
  --ffb-shadow-glow: rgba(0, 0, 0, 0.15) 0 0 50px; /* the deadline calendar */
  --ffb-tint-video-card: linear-gradient(180deg, rgba(163, 23, 127, 0.25) 0%, rgba(163, 23, 127, 0.6) 100%);
  --ffb-tint-module-card: linear-gradient(180deg, rgba(11, 79, 143, 0.2) 0%, rgba(14, 138, 96, 0.55) 100%);
  --ffb-dash-empty: #d5dee7;
  --ffb-shadow-toast: 0 18px 40px -18px rgba(11, 33, 56, 0.6);
  --ffb-shadow-play-card: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
  /* Course page: the locked assessment row. */
  --ffb-surface-locked: #f4f7f9;
  /* Search: the marker under a matched word, and the sticky filter bar's
     frosted ground. */
  --ffb-search-hit: #c9f2e1;
  --ffb-bar-frost: rgba(255, 255, 255, 0.96);
  /* Content details: the hero thumbnail's tint per type, its play button's
     shadow, and the series card on hover. */
  --ffb-tint-module-hero: linear-gradient(90deg, rgba(11, 79, 143, 0.55), rgba(11, 79, 143, 0.15));
  --ffb-tint-video-hero: linear-gradient(90deg, rgba(163, 23, 127, 0.55), rgba(163, 23, 127, 0.15));
  --ffb-shadow-play-lg: 0 10px 30px -8px rgba(11, 33, 56, 0.5);
  --ffb-card-hover-cool-deep: #e3ecf3;
  /* News: the article body's text. The Latest pill reuses the green chip. */
  --ffb-text-article: #2a3a48;

  /* ---------- Colour: media overlays ---------- */
  /* Carousel slide: legibility ramp under the copy, plus the dimmer that
     fades in on hover. Video card: the idle overlay behind its play button. */
  --ffb-media-scrim: linear-gradient(180deg, rgba(15, 42, 63, 0.1) 30%, rgba(15, 42, 63, 0.88) 100%);
  --ffb-media-dim: rgba(15, 42, 63, 0.45);
  --ffb-video-scrim: linear-gradient(180deg, rgba(15, 42, 63, 0.35), rgba(15, 42, 63, 0.7));
  /* How to get started: the close button over the playing tour. */
  --ffb-video-close: rgba(15, 42, 63, 0.7);
  --ffb-video-close-hover: rgba(15, 42, 63, 0.92);
  --ffb-dot-idle: rgba(255, 255, 255, 0.5);
  /* Brand-new Content cards: an even dim over the top, deepening under the
     copy; the blurb's light text; the heart's lift off a busy image. */
  --ffb-fresh-scrim: linear-gradient(180deg, rgba(15, 42, 63, 0.45) 0%, rgba(15, 42, 63, 0.45) 40%, rgba(15, 42, 63, 0.92) 100%);
  --ffb-fresh-blurb: #dbe5ec;
  --ffb-icon-lift: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  /* My Learning bento: the welcome tile's ground and its frosted search pill;
     the featured pathway photo fading into its navy tile; the dashboard's
     area tiles (lighter at the top than Learning Areas'). */
  --ffb-welcome-gradient: linear-gradient(135deg, #c9d9e3 0%, #e3ebf0 45%, #f7f5f4 100%);
  --ffb-search-frost: rgba(255, 255, 255, 0.85);
  --ffb-search-ring: rgba(11, 79, 143, 0.18);
  --ffb-path-fade: linear-gradient(180deg, rgba(15, 42, 63, 0) 40%, rgba(15, 42, 63, 1) 100%);
  --ffb-area-tile-scrim: linear-gradient(180deg, rgba(15, 42, 63, 0.05) 0%, rgba(15, 42, 63, 0.35) 45%, rgba(15, 42, 63, 0.92) 100%);
  /* Learning Areas tiles: light at the top, near-solid navy under the name. */
  --ffb-area-scrim: linear-gradient(180deg, rgba(15, 42, 63, 0.15) 0%, rgba(15, 42, 63, 0.45) 40%, rgba(15, 42, 63, 0.94) 100%);
  /* The category list at the scrim's light top, readable on a bright photo. */
  --ffb-area-list-shadow: 0 1px 10px rgba(4, 20, 34, 0.7);

  /* ---------- Colour: public bento (final handoff, 2026-10-30) ---------- */
  /* Home hero: one wash for every clip (the design drops the per-clip
     grades), its lead line, and a frosted chip on dark tiles. */
  --ffb-hero-scrim: linear-gradient(180deg, rgba(6, 26, 42, 0.1) 0%, rgba(6, 26, 42, 0.45) 50%, rgba(6, 26, 42, 0.86) 100%);
  --ffb-hero-scrim-soft: linear-gradient(180deg, rgba(6, 26, 42, 0) 0%, rgba(6, 26, 42, 0.15) 50%, rgba(6, 26, 42, 0.62) 100%); /* Capabilities' gears */
  --ffb-on-dark-lead: #d7e3ec;
  --ffb-on-dark-ghost: rgba(255, 255, 255, 0.45); /* outlined pill on a video */
  --ffb-on-dark-chip: rgba(255, 255, 255, 0.14);
  /* The Sign in tile: brand-blue ground, a step lighter on hover; the tablet
     mock-up's bezel shadow; the white pill's glow. */
  --ffb-signin-tile: linear-gradient(160deg, #1466b3 0%, #0b4f8f 55%, #093f73 100%);
  --ffb-signin-tile-hover: linear-gradient(160deg, #1a74c6 0%, #0d5ba3 55%, #0b4a86 100%);
  --ffb-shadow-tablet: 0 56px 88px -32px rgba(4, 20, 40, 0.7), inset 0 0 0 3px rgba(255, 255, 255, 0.16); /* drawn at 2×, halved */
  --ffb-shadow-tablet-sm: 0 40px 64px -28px rgba(4, 20, 40, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.16);
  --ffb-glow-signin: 0 0 0 1px rgba(159, 233, 204, 0.8), 0 0 22px 4px rgba(159, 233, 204, 0.55), 0 0 48px 12px rgba(25, 202, 143, 0.3);
  /* Capabilities tile: pale blue into mint, its lift, the figure's shadow. */
  --ffb-cap-tile: linear-gradient(165deg, #e4effa 0%, #e8f8f0 100%);
  --ffb-cap-tile-border: #cfe0ea;
  --ffb-shadow-cap-tile: 0 22px 44px -26px rgba(11, 79, 143, 0.45);
  --ffb-cap-figure-shadow: drop-shadow(0 24px 30px rgba(11, 79, 143, 0.22));
  /* Explore tile (green): its lift and the round icon's shadow. */
  --ffb-shadow-explore-tile: 0 22px 44px -26px rgba(4, 38, 27, 0.55);
  --ffb-shadow-explore-icon: 0 10px 24px -14px rgba(4, 38, 27, 0.5);
  /* Learning Areas tile on Home: a cool panel; each area photo gets a fade
     under its name and a corner shade under the category list. */
  --ffb-areas-panel: #f4f8fb;
  --ffb-areas-panel-border: #d9e4ec;
  --ffb-area-fade: linear-gradient(180deg, rgba(15, 42, 63, 0) 0%, rgba(15, 42, 63, 0) 45%, rgba(15, 42, 63, 0.55) 72%, rgba(15, 42, 63, 0.9) 100%);
  --ffb-area-corner: linear-gradient(205deg, rgba(15, 42, 63, 0.75) 0%, rgba(15, 42, 63, 0.35) 28%, rgba(15, 42, 63, 0) 50%);
  --ffb-area-cat-shadow: 0 1px 2px rgba(15, 42, 63, 0.7), 0 1px 10px rgba(15, 42, 63, 0.6);
  /* FAQ (navy): row rules and the closed +. */
  --ffb-faq-rule: #23435b;
  --ffb-faq-icon: rgba(255, 255, 255, 0.1);
  /* Capabilities: a card's and an outcome's lift, the round icon well. */
  --ffb-shadow-caps-card: 0 18px 40px -22px rgba(11, 79, 143, 0.35);
  --ffb-shadow-outcome: 0 14px 30px -14px rgba(15, 42, 63, 0.28);
  --ffb-icon-well: #eef5fc;
  --ffb-icon-well-border: #d6e3ef;
  --ffb-legal-nav-current: #c9dcec; /* Legal pages: the current page in the side nav */
  /* Explore: the hero's ground behind its clip, the Global presence and
     service tiles, the integration tags, the quote tile's dots and source. */
  --ffb-explore-hero-ground: linear-gradient(135deg, #0f2a3f 0%, #0b4f8f 100%);
  --ffb-glance-tile: linear-gradient(150deg, #eef5fc 0%, #dbe9f7 100%);
  --ffb-service-tile: linear-gradient(150deg, #fafbfb 0%, #eef1f3 100%);
  --ffb-service-border: #e2e7ea;
  --ffb-tag-border: #c9dcec;
  --ffb-toggle-disc: #dbe9f7; /* Explore: the Read more disc, closed */
  --ffb-stat-box: #e6f0f9; /* Explore: the 85% / 81% boxes */
  --ffb-dot-on-blue: rgba(255, 255, 255, 0.3);
  --ffb-quote-where: #d6e5f3;
  /* Contact: form fields' border, the photo tile's text shadows, and the
     Toronto and Frankfurt office tiles (Singapore reuses --ffb-glance-tile). */
  --ffb-field-border: #b7c7d2;
  --ffb-photo-title-shadow: 0 2px 16px rgba(6, 26, 42, 0.55);
  --ffb-photo-text-shadow: 0 1px 12px rgba(6, 26, 42, 0.6);
  --ffb-photo-shade: linear-gradient(90deg, rgba(6, 26, 42, 0.72) 0%, rgba(6, 26, 42, 0.4) 40%, rgba(6, 26, 42, 0) 70%);
  --ffb-office-toronto: linear-gradient(150deg, #f0fbf6 0%, #d9f3e7 100%);
  --ffb-office-toronto-border: #cdeedd;
  --ffb-office-frankfurt: linear-gradient(150deg, #eefaf7 0%, #d6eef0 100%);
  --ffb-office-frankfurt-border: #cfe7e6;
  /* News cards on Home: the image well. */
  --ffb-news-well: #e6eef3;
  /* Decorative grid pattern on bento tiles (ffb_bento_pattern()). */
  --ffb-pattern-ink: #04261b;

  /* ---------- Colour: signed-in app shell ---------- */
  /* Profile avatar. The one gradient in the system — it is an identity chip,
     not a surface, and reads as "you" rather than as brand. */
  --ffb-avatar-gradient: linear-gradient(90deg, #fc466b 0%, #3f5efb 100%);

  /* ---------- Colour: links ---------- */
  --ffb-link: #0b4f8f;
  --ffb-link-hover: #19ca8f;

  /* ---------- Typography: families ---------- */
  --ffb-serif: "Cormorant Garamond", Georgia, serif;
  --ffb-poppins: "Poppins", system-ui, sans-serif;
  --ffb-body: "Barlow", system-ui, sans-serif;
  --ffb-jakarta: "Plus Jakarta Sans", system-ui, sans-serif;

  /* ---------- Typography: sizes ---------- */
  --ffb-h1: clamp(34px, 5vw, 48px);
  --ffb-h1-contact: clamp(38px, 5.6vw, 50px);
  --ffb-h2-section: 30px;
  --ffb-h2-dark: clamp(26px, 3vw, 38px);
  --ffb-h2-cell: clamp(26px, 2.4vw, 32px);
  --ffb-lead: clamp(17px, 1.5vw, 19px);
  --ffb-body-size: 16px;
  --ffb-eyebrow: 13px;
  --ffb-nav-size: 17px;
  /* The header's serif wordmark (lockup 7b, 2026-10-27). */
  --ffb-brand-size: clamp(26px, 2.4vw, 36px);
  --ffb-brand-size-tiny: 26px;
  --ffb-bar-brand-size: clamp(24px, 2.2vw, 34px); /* the public brand bar's */
  --ffb-pill-size: 17px;

  /* ---------- Typography: tracking ---------- */
  --ffb-track-tight: -0.02em;
  --ffb-track-eyebrow: 0.12em;
  --ffb-track-label: 0.1em;

  /* ---------- Layout ---------- */
  --ffb-container: 1440px;
  /* Public pages (final handoff, 2026-10-30): a wider frame with a thin
     gutter that breathes, on a white-to-warm ground. */
  --ffb-frame: 1480px;
  --ffb-frame-pad: clamp(12px, 1.4vw, 20px);
  /* For pages whose content is a single focused block rather than a marketing
     layout — the auth pages. 1440 stretches a two-column form until the two
     halves stop reading as one thing. */
  --ffb-container-narrow: 1080px;
  --ffb-gutter: 24px;
  --ffb-section-gap: clamp(56px, 7vw, 100px);
  --ffb-band-pad: clamp(56px, 7vw, 100px);
  /* Height of the fixed header at rest (padding-block 32 + 46px logo + 32,
     and 10 + 30 + 10 below 420px), plus 21px since lockup 7b (2026-10-27):
     the 13px "Powered by" and its 8px gap above the logo. Pages clear it with
     --ffb-page-top; a full-bleed hero adds it back as padding so its copy
     keeps the same gap. From 133px to 132px to remove the 1px gap between <header> and <main>*/
  --ffb-nav-h: 132px;
  --ffb-nav-h-tiny: 77px;
  --ffb-page-top: var(--ffb-nav-h);
  --ffb-page-top-tiny: var(--ffb-nav-h-tiny);
  /* Where a sticky bar sits under the shrunk signed-in header: Search and
     Learning history. 73px was Keith's value from the browser (2026-10-09) —
     the 66px worked out from the CSS left the bar tucked under the header;
     +21px for lockup 7b, not yet measured. The live height, where JS sets
     it, wins over these. */
  --ffb-app-nav-h-shrunk: 94px;
  --ffb-app-nav-h-shrunk-tiny: 79px;
  --ffb-grid-gap: 24px;
  /* Card grids that breathe with the viewport: Micro Games, Study Plan. */
  --ffb-card-grid-gap: clamp(20px, 2.6vw, 38px);
  /* Between public bento tiles. */
  --ffb-bento-gap: 14px;
  /* My Learning's four cards share one height. */
  --ffb-card-h: clamp(280px, 28vw, 400px);
  /* News images are LinkedIn posts, 1200×627 (1.91:1), with text near the
     edges — shown whole rather than cropped to the design's 16:9. */
  --ffb-news-ratio: 1200 / 627;

  /* ---------- Radii ---------- */
  --ffb-r-btn: 6px;
  --ffb-r-logo: 8px;
  --ffb-r-thumb: 8px; /* Content details' hero thumbnail */
  --ffb-r-tag: 4px; /* News: the Latest pill */
  --ffb-r-media: 12px; /* News images */
  --ffb-r-burger: 11px;
  --ffb-r-input: 8px;
  --ffb-r-input-lg: 12px;
  --ffb-r-tile: 14px;
  --ffb-r-card: 16px;
  --ffb-r-quote: 20px;
  --ffb-r-feature: 20px; /* Brand-new Content cards */
  --ffb-r-panel: 22px;
  --ffb-r-bento: 24px; /* My Learning tiles, every public bento tile */
  --ffb-r-area: 18px; /* Home: area photos inside the Learning Areas tile */
  --ffb-r-row: 10px; /* rows and thumbnails inside them */
  --ffb-r-auth: 26px;
  --ffb-r-band: 28px;
  --ffb-r-pill: 999px;

  /* ---------- Shadows ---------- */
  --ffb-shadow-nav: 0 8px 24px -16px rgba(11, 33, 56, 0.22);
  --ffb-shadow-menu: 0 18px 40px -22px rgba(0, 0, 0, 0.35);
  --ffb-shadow-profile: 0 22px 48px -18px rgba(11, 33, 56, 0.45);
  --ffb-shadow-auth: 0 34px 70px -44px rgba(11, 33, 56, 0.45);
  --ffb-shadow-card-hover: 0 14px 30px -18px rgba(11, 33, 56, 0.35);
  --ffb-glow-green: 0 0 0 1px rgba(159, 233, 204, 0.7),
    0 0 22px 4px rgba(159, 233, 204, 0.5), 0 0 48px 12px rgba(159, 233, 204, 0.28);
  --ffb-glow-blue: 0 0 0 1px rgba(156, 199, 236, 0.7),
    0 0 22px 4px rgba(156, 199, 236, 0.5), 0 0 48px 12px rgba(156, 199, 236, 0.28);
  --ffb-glow-mint: 0 0 0 1px rgba(159, 233, 204, 0.7), 0 0 22px 4px rgba(159, 233, 204, 0.45);
  --ffb-glow-cta: 0 0 18px rgba(25, 202, 143, 0.45), 0 0 40px rgba(25, 202, 143, 0.25);
  /* Keyboard focus outline (base.css :focus-visible). Navy on light ground;
     dark surfaces set --ffb-focus to --ffb-focus-on-dark, which inherits into
     everything inside them. Green is ~2:1 on white, navy ~1.3:1 on navy. */
  --ffb-focus: var(--ffb-navy-brand);
  --ffb-focus-on-dark: var(--ffb-green);
  --ffb-focus-ring: 0 0 0 4px rgba(25, 202, 143, 0.16);

  /* ---------- Motion ---------- */
  --ffb-ease-shrink: cubic-bezier(0.22, 1, 0.36, 1);
  /* Slower settle for content revealed on hover (carousel actions). */
  --ffb-ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ffb-t-header: 0.35s;
  --ffb-t-ui: 0.25s;
  --ffb-t-fast: 0.2s;
  --ffb-t-menu: 0.28s;

  /* Mira's own greeting bubble (css/mira.css): above the page, just under
     Chatbase's widget (2147483647 and below), so its chat window covers it. */
  --ffb-z-mira-nudge: 2147483000;
  --ffb-mira-nudge-right: 20px;
  --ffb-mira-nudge-bottom: 96px; /* clears Chatbase's 64px bubble + its 20px inset */
  /* A panel opening in place, and the page scrolling with it on the same
     clock (js/learningpath.js reads both). Ease-in-out: a large block moved
     by an ease-out curve lurches, then crawls. Closing takes 80% of it. */
  --ffb-ease-panel: cubic-bezier(0.65, 0, 0.35, 1);
  --ffb-t-panel: 0.6s;

  /* ---------- Admin (final admin handoff, 2026-10-30) ---------- */
  /* Admin reuses the portal's tokens wherever the value already exists: ink is
     --ffb-navy-brand, headings --ffb-navy-deep, body --ffb-text, secondary
     --ffb-nav-link, muted --ffb-text-muted-alt, input/outline border
     --ffb-outline-border, card border --ffb-card-border, panel / segmented
     ground --ffb-surface-soft, row hover --ffb-card-hover-cool, outline hover
     --ffb-outline-hover, green / hover / on-green, blue, video, avatar
     gradient, focus ease and the type families. Only what is new is below. */
  --ffb-adm-white: #ffffff; /* text and fills on a coloured admin surface */
  --ffb-adm-page-bg: #fbfbf9;
  --ffb-adm-head-border: rgba(11, 33, 56, 0.08);
  --ffb-adm-divider: #eef2f0; /* row dividers */
  --ffb-adm-table-head: #f6f8f7; /* table head, inline-edit hover, locked field */
  --ffb-adm-progress-track: #e7edea; /* the thin bar in a list row */
  --ffb-adm-progress-track-lg: #dfe7e3; /* the stat card's thick bar */
  --ffb-adm-sort-idle: #b7c4cd; /* a sort arrow on a column not sorted */
  --ffb-adm-hint: #9aabb8; /* the pencil, the ? badge's ring */
  --ffb-adm-selected: #f4fbf8; /* a ticked picker row, a finished wizard step */
  --ffb-adm-tint-green: #e6f7f0;
  --ffb-adm-tint-blue: #e8f0f8;
  --ffb-adm-tint-grey: #eef2f6;
  --ffb-adm-tint-amber: #fff4e0;
  --ffb-adm-tile-border: #dde5e1; /* a report tile's border (Reports) */
  --ffb-adm-aside-top: 8px; /* gap under the fixed header for a sticky aside */
  --ffb-adm-on-amber: #7a4a00;
  --ffb-adm-on-green-tint: #0e6b4b; /* = --ffb-done-text */
  --ffb-adm-error: #9a2a1e; /* error text, an expired deadline */
  --ffb-adm-error-bg: #fdecea;
  /* Destructive actions (Remove, Delete study plan, red modal): a different
     red from the error text above, as in the study plan view. */
  --ffb-adm-danger: #b42318;
  --ffb-adm-danger-hover: #7a1a10;
  --ffb-adm-danger-border: #e8b4ad;
  --ffb-adm-danger-zone-bg: #fff8f7;
  --ffb-adm-danger-zone-border: #f3d3ce;
  /* Dashboard chart: stacked bar segments, per content type. */
  --ffb-adm-chart-modules: #1f77b4;
  --ffb-adm-chart-tests: #ffcc00;
  --ffb-adm-chart-excels: #e8622a;
  --ffb-adm-chart-videos: #213a52;
  /* Shadows: the toast, a tooltip, the modal and the segmented control's
     selected segment. Menus reuse --ffb-shadow-profile / --ffb-shadow-menu. */
  --ffb-adm-shadow-toast: 0 20px 40px -20px rgba(11, 33, 56, 0.6);
  --ffb-adm-shadow-tip: 0 12px 28px -10px rgba(11, 33, 56, 0.45);
  --ffb-adm-shadow-modal: 0 40px 80px -30px rgba(11, 33, 56, 0.6);
  --ffb-adm-shadow-seg: 0 1px 3px rgba(11, 33, 56, 0.15);
  --ffb-adm-backdrop: rgba(15, 42, 63, 0.55);
  --ffb-adm-tip-text: #dbe5ec;
  --ffb-adm-glow: 0 0 0 1px rgba(159, 233, 204, 0.7), 0 0 22px 4px rgba(159, 233, 204, 0.5); /* primary button hover */
  --ffb-adm-focus-ring: 0 0 0 3px rgba(11, 79, 143, 0.14); /* inputs */
  --ffb-adm-disabled: 0.4; /* opacity of a locked button */
  /* Header: padding and logo at rest and shrunk, the wordmark, the lockup's
     gaps. The fixed header's live height is set on <body> as --adm-head-h by
     js/admin.js; this is the fallback until it runs. */
  --ffb-adm-head-pad: 32px;
  --ffb-adm-head-pad-shrunk: 10px;
  --ffb-adm-logo-h: 46px;
  --ffb-adm-logo-h-shrunk: 34px;
  --ffb-adm-brand-size: clamp(22px, 1.9vw, 30px);
  --ffb-adm-powered-size: 11px;
  --ffb-adm-brand-gap: 24px;
  --ffb-adm-brand-gap-tiny: 12px;
  --ffb-adm-head-h: 112px;
  /* Layout: cards and the page's top and bottom rhythm. */
  --ffb-adm-card-pad: clamp(20px, 2.4vw, 32px);
  --ffb-adm-scroll-max: clamp(320px, 60vh, 640px); /* plan page: users / items tables scroll inside their card */
  --ffb-adm-form-w: 980px; /* create study plan: the Details card */
  --ffb-adm-done-w: 760px; /* create study plan: the "now created" card */
  --ffb-adm-main-top: clamp(40px, 5vw, 72px);
  --ffb-adm-main-bottom: clamp(64px, 8vw, 112px);
  --ffb-adm-h1: clamp(38px, 3.6vw, 54px);
  --ffb-adm-h2: clamp(26px, 2.2vw, 32px);
  /* Log-in page (admin/login.php): the two-panel card on the page. */
  --ffb-adm-login-w: 1080px;
  --ffb-adm-login-pad: clamp(32px, 4vw, 56px);
  --ffb-adm-login-h1: clamp(36px, 3.4vw, 50px);
  --ffb-adm-shadow-login: 0 40px 80px -50px rgba(11, 33, 56, 0.45);
  --ffb-adm-on-navy: #b8c8d5; /* feature text on the navy panel */
  --ffb-adm-on-navy-tint: rgba(159, 233, 204, 0.12); /* feature icon tile */
}

/* Breakpoints, for reference — CSS custom properties cannot be used in media
   queries, so these are documented here and written literally in each file:
     >=1440  container padding drops to 0
     <=1080  header collapses to burger
     <=1024  two-column sections stack
     <= 840  footer becomes a column
     <= 640  form fields single-column
     <= 420  header permanently shrunk
     <= 375  logo mark hidden */
