/* ==========================================================================
   celebrus-tokens.css
   The single source of truth for every brand value in the portal front end.
   --------------------------------------------------------------------------
   Written 3 September 2026, front-end redesign workstream.

   Layer 1 of 2:
     celebrus-tokens.css   values only. No selectors beyond :root.
     celebrus-portal.css   the component layer. Loads last.

   RULES FOR THIS FILE
   1. No raw hex anywhere else in new portal CSS. If a colour is needed and it
      is not here, add it here first.
   2. Block A is the Celebrus design system token file, reproduced faithfully.
      Do not "tidy" it - it is meant to stay diffable against the DS source at
      Portal redesign alignment\_ds\...\colors_and_type.css.
   3. Block B is the portal's own extension, and every entry in it carries the
      reason it exists. Most of those reasons are WCAG measurements - see
      upgrade\REDESIGN-BREAKPOINTS-AND-CONTRAST.md for the numbers.
   ========================================================================== */


/* ==========================================================================
   NEXA - self-hosted, three weights, one family name.
   See block B1 below for the licence position and for why this is
   self-hosted rather than an Adobe embed.

   font-display: swap - text paints immediately in the fallback and reflows
   when Nexa arrives. On a same-origin font that window is a few milliseconds;
   the alternative (block) risks invisible text if a file ever 404s.
   ========================================================================== */

@font-face {
	font-family: 'Nexa';
	src: url('/fonts/Nexa-Book.woff2') format('woff2');
	font-weight: 300 400; /* --fw-light / --fw-book / --fw-regular */
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nexa';
	src: url('/fonts/Nexa-Bold.woff2') format('woff2');
	font-weight: 500 700; /* --fw-bold */
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nexa';
	src: url('/fonts/Nexa-ExtraBold.woff2') format('woff2');
	font-weight: 800 900; /* --fw-extrabold / --fw-heavy / --fw-black */
	font-style: normal;
	font-display: swap;
}

/* No italic faces are declared because nothing in the portal asks for one.
   If italic is ever needed, add the face - do NOT let the browser synthesise
   it by slanting Book, which is what will happen silently otherwise.

   --fw-thin (100) and --fw-extralight (200) have no file either. Checked:
   neither is used anywhere in the portal - they exist only because they are
   in the design system's token list. If a rule ever asks for one, the
   browser picks the nearest available face, which is Book at 300. That is a
   legible degradation and NOT the synthesis trap above: browsers fake bolder
   weights, never lighter ones.

   Serving these needs no Startup change. Startup.cs builds a
   FileExtensionContentTypeProvider and adds only .run and .upk; the default
   mappings it starts from already include .woff2 -> font/woff2. */


/* ==========================================================================
   BLOCK A - Celebrus design system, as issued
   ========================================================================== */

:root {
	/* ---- Brand colours, primary ---- */
	--c-regal-navy: #1A3B6B; /* primary background / heading text */
	--c-blue-bell: #009FE3; /* the Celebrus blue - wordmark, accents */
	--c-fuchsia-plum: #D14893; /* magenta accent */

	/* ---- Brand colours, secondary ---- */
	--c-autumn-leaf: #DC5E13;
	--c-ocean-mist: #56BBA7;
	--c-gunmetal: #3F3F3F;

	/* ---- Neutrals ---- */
	--c-white: #FFFFFF;
	--c-paper: #F7F9FC; /* off-white page surface behind cards */
	--c-mist-100: #ECF1F7; /* hairline dividers */
	--c-mist-200: #D6DEEA; /* card and panel borders */
	--c-mist-300: #B5C0D2;
	--c-mist-400: #8595AE; /* decorative only - see --fg-3 in block B */
	--c-ink-700: #4A5568; /* body copy */
	--c-ink-900: #0E1F3A;

	/* ---- Shade scales: 100 / 80 / 60 / 40 / 20 ---- */
	--c-navy-100: #1A3B6B;
	--c-navy-80: #48628A;
	--c-navy-60: #7689A9;
	--c-navy-40: #A3B1C7;
	--c-navy-20: #D1D8E3;

	--c-blue-100: #009FE3;
	--c-blue-80: #33B2E9;
	--c-blue-60: #66C5EE;
	--c-blue-40: #99D9F4;
	--c-blue-20: #CCECF9;

	--c-fuchsia-100: #D14893;
	--c-fuchsia-80: #DA6DA9;
	--c-fuchsia-60: #E391BE;
	--c-fuchsia-40: #ECB6D4;
	--c-fuchsia-20: #F5DAE9;

	--c-orange-100: #DC5E13;
	--c-orange-80: #E37E42;
	--c-orange-60: #EA9E71;
	--c-orange-40: #F1BEA0;
	--c-orange-20: #F8DFD0;

	--c-mint-100: #56BBA7;
	--c-mint-80: #78C9B9;
	--c-mint-60: #9AD6CB;
	--c-mint-40: #BBE4DC;
	--c-mint-20: #DDF1EE;

	--c-gray-100: #3F3F3F;
	--c-gray-80: #656565;
	--c-gray-60: #8C8C8C;
	--c-gray-40: #B2B2B2;
	--c-gray-20: #D9D9D9;

	/* ---- Semantic foreground / background ---- */
	--fg-1: var(--c-regal-navy); /* headings, high emphasis */
	--fg-2: var(--c-ink-700); /* body copy */
	--fg-inverse: var(--c-white);
	--fg-accent: var(--c-fuchsia-plum);
	/* --fg-3 and --fg-link are DELIBERATELY redefined in block B. */

	--bg-1: var(--c-white);
	--bg-2: var(--c-paper);
	--bg-3: var(--c-mist-100);
	--bg-dark: var(--c-regal-navy);
	--bg-deep: var(--c-ink-900);

	--border-1: var(--c-mist-200);
	--border-2: var(--c-mist-300);
	--border-strong: var(--c-regal-navy);

	--status-success: var(--c-ocean-mist);
	--status-warning: var(--c-autumn-leaf);
	--status-danger: #E5384C; /* DS: derived, not in the brand doc */
	--status-info: var(--c-blue-bell);

	/* ---- Brand gradients. The blue-to-magenta "fingerprint" is the
	        signature mark and is decorative only - never behind text. ---- */
	--gradient-fingerprint: linear-gradient(135deg, #009FE3 0%, #6FA9DD 35%, #B07AC1 60%, #D14893 100%);
	--gradient-fingerprint-radial: radial-gradient(circle at 20% 50%, #009FE3 0%, #B07AC1 50%, #D14893 100%);
	--gradient-navy-blue: linear-gradient(135deg, #1A3B6B 0%, #009FE3 100%);
	--gradient-blue-fuchsia: linear-gradient(90deg, #009FE3 0%, #D14893 100%);
	--gradient-mint-blue: linear-gradient(135deg, #56BBA7 0%, #009FE3 100%);
	--gradient-orange-fuchsia: linear-gradient(135deg, #DC5E13 0%, #D14893 100%);
	--gradient-soft-paper: linear-gradient(180deg, #FFFFFF 0%, #ECF1F7 100%);

	/* ---- Type: family. See block B for the live --font-sans. ---- */
	--font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", ui-monospace, monospace;

	/* ---- Type scale ---- */
	--fs-h1: 56px;
	--lh-h1: 64px;
	--fs-h2: 40px;
	--lh-h2: 48px;
	--fs-h3: 36px;
	--lh-h3: 42px;
	--fs-h4: 28px;
	--lh-h4: 36px;
	--fs-sub: 24px;
	--lh-sub: 32px;
	--fs-body: 16px;
	--lh-body: 22px;
	--fs-small: 14px;
	--lh-small: 20px;
	--fs-caption: 12px;
	--lh-caption: 16px;

	--tracking-tight-4: -0.04em;
	--tracking-tight-2: -0.02em;
	--tracking-loose-2: 0.02em;
	--tracking-caps: 0.08em;

	--fw-thin: 100;
	--fw-extralight: 200;
	--fw-light: 300;
	--fw-book: 350;
	--fw-regular: 400;
	--fw-bold: 700;
	--fw-extrabold: 800;
	--fw-heavy: 850;
	--fw-black: 900;

	/* ---- Spacing, 4px base ---- */
	--space-0: 0;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--space-16: 64px;
	--space-20: 80px;
	--space-24: 96px;
	--space-32: 128px;

	/* ---- Radii ---- */
	--radius-xs: 4px;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-2xl: 32px;
	--radius-pill: 999px;

	/* ---- Border widths ---- */
	--border-w-1: 1px;
	--border-w-2: 2px;
	--border-w-3: 3px;

	/* ---- Shadows: navy-tinted, never pure black ---- */
	--shadow-xs: 0 1px 2px rgba(26, 59, 107, 0.06);
	--shadow-sm: 0 2px 4px rgba(26, 59, 107, 0.08), 0 1px 2px rgba(26, 59, 107, 0.04);
	--shadow-md: 0 6px 16px rgba(26, 59, 107, 0.10), 0 2px 4px rgba(26, 59, 107, 0.05);
	--shadow-lg: 0 16px 32px rgba(26, 59, 107, 0.12), 0 4px 8px rgba(26, 59, 107, 0.06);
	--shadow-xl: 0 24px 48px rgba(26, 59, 107, 0.16), 0 8px 16px rgba(26, 59, 107, 0.08);
	--shadow-glow-blue: 0 0 0 4px rgba(0, 159, 227, 0.18);
	--shadow-glow-fuchsia: 0 0 0 4px rgba(209, 72, 147, 0.18);
	--shadow-inset-sm: inset 0 1px 2px rgba(26, 59, 107, 0.08);

	/* ---- Motion ---- */
	--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
	--duration-fast: 120ms;
	--duration-base: 180ms;
	--duration-slow: 260ms;

	/* ---- Layout ---- */
	--container-max: 1200px;
	--container-wide: 1440px;
	--gutter: 24px;
	--gutter-lg: 48px;
}

/* Two defects in the DS source, corrected above rather than reproduced:
   1. --c-navy-80 is declared twice, the first as "#4862896" - a seven-digit
      hex, which is invalid and drops the whole declaration. Only the valid
      #48628A is kept here.
   2. --c-mist-* / --c-navy-* / --c-blue-* already contain ten of the eleven
      hex values that REDESIGN-PLAN.md step 2 recorded as "not in the token
      file at all". They were always tokens; the plan's table was wrong. The
      mapping is written out in block B so nobody re-litigates it. */


/* ==========================================================================
   BLOCK B - Portal extension
   Everything below is the portal's, not the design system's. Each entry says
   why it exists so the next person does not have to guess.
   ========================================================================== */

:root {

	/* ----------------------------------------------------------------------
	   B1. TYPEFACE - NEXA, SELF-HOSTED. Resolved 4 September 2026.
	   ----------------------------------------------------------------------
	   Anton confirmed Celebrus holds a FONTFABRIC WEB / SELF-HOSTING licence,
	   which is what makes this legitimate. Note that is a SEPARATE purchase
	   from the Adobe subscription - Adobe's own Nexa page lists "Self
	   Hosting: host web font files on your own server" as its own line item,
	   so a Creative Cloud seat alone would NOT have covered this. Both routes
	   were available; self-hosting was chosen deliberately.

	   WHY SELF-HOSTED AND NOT THE ADOBE EMBED. The deciding argument is the
	   audience, not the technology: the portal's users are enterprise
	   financial-services staff behind corporate proxies, and a third-party
	   font CDN is materially more likely to be blocked for them than for the
	   public. Self-hosted fonts come from the same origin as the app - if the
	   portal loads, the fonts load. Also: nothing outside our control can
	   move the files, they version with the deploy, there is one fewer
	   DNS+TLS chain before text renders, no user IP is disclosed to a third
	   party on every page load, and if a Content-Security-Policy is ever
	   added there is no external host to allow-list.

	   The same reasoning retired the Google Fonts link that served the
	   Montserrat stand-in. It had every one of those problems too.

	   THREE FILES, NOT EIGHTEEN. The whole portal stylesheet asks for exactly
	   three weights - Book, Bold, ExtraBold - and no italics at all. Shipping
	   the rest would be dead bytes on every page load.

	   The 18 desktop TTFs in Portal redesign alignment\_ds\...\fonts\ are
	   STILL not deployed and must not be: they are desktop-licence files and
	   no route to production uses them. And do not hot-link the celebrus.com
	   HubSpot font URLs either - HubSpot versions those asset paths, so a
	   theme republish would silently drop the portal to Arial on someone
	   else's release schedule.

	   ONE FAMILY NAME, WEIGHT RANGES ON THE @font-face - THIS MATTERS.
	   celebrus.com self-hosts using per-weight family names
	   (font-family:'Nexa-Book'; font-weight:normal). That is a HubSpot-ism
	   and copying it here would have broken the entire token layer: you could
	   no longer get bold by asking for font-weight 700, and every --fw-*
	   token would need a matching family string. Instead there is ONE family
	   called Nexa, and each face declares the weight RANGE it serves. Every
	   --fw-* value in this file therefore resolves to a real file with no
	   synthetic bolding and no reliance on font-matching fallback order:

	       --fw-light      300  -> Book        (range 300-400)
	       --fw-book       350  -> Book
	       --fw-regular    400  -> Book
	       --fw-bold       700  -> Bold        (range 500-700)
	       --fw-extrabold  800  -> ExtraBold   (range 800-900)
	       --fw-heavy      850  -> ExtraBold
	       --fw-black      900  -> ExtraBold

	   Nexa is a little NARROWER than the Montserrat it replaces, so re-check
	   the login screen and the header for reflow rather than assuming a clean
	   swap. The header's 11px uppercase labels are the tightest thing on the
	   page and the most likely to shift.

	   STILL TEST IT MISSING. The rule was always "test the font blocked", and
	   self-hosting changes the failure mode rather than removing it: instead
	   of a CDN being unreachable, the risk is now the files 404ing because
	   they were not deployed. Load a screen with wwwroot/fonts/ renamed and
	   confirm it degrades to Arial rather than breaking. */

	--font-sans: 'Nexa', Arial, Helvetica, sans-serif;
	--font-display: var(--font-sans);

	/* ----------------------------------------------------------------------
	   B2. THE COMP'S PALETTE, RECONCILED
	   ----------------------------------------------------------------------
	   The comp (Portal Redesign.dc.html) hardcodes 19 hex values. Where they
	   go, once and for all:

	     #1A3B6B -> --c-regal-navy        #009FE3 -> --c-blue-bell
	     #D14893 -> --c-fuchsia-plum      #FFFFFF -> --c-white
	     #F7F9FC -> --c-paper             #ECF1F7 -> --c-mist-100
	     #D6DEEA -> --c-mist-200          #B5C0D2 -> --c-mist-300
	     #8595AE -> --c-mist-400          #4A5568 -> --c-ink-700
	     #48628A -> --c-navy-80           #7689A9 -> --c-navy-60
	     #99D9F4 -> --c-blue-40           #CCECF9 -> --c-blue-20
	     #F25022 #7FBA00 #00A4EF #FFB900  -> see B5, leave alone

	   That is 18 of the 19. Exactly one had no home: */
	--c-canvas-line: #E7EDF5; /* comp's canvas hairline, between mist-100 and white */

	/* ----------------------------------------------------------------------
	   B3. ACCESSIBILITY CORRECTIONS
	   ----------------------------------------------------------------------
	   Measured, not eyeballed. Full table in
	   upgrade\REDESIGN-BREAKPOINTS-AND-CONTRAST.md. These four tokens exist
	   because the comp's own choices fail WCAG 2.1 AA, and the failures are
	   in the most-used elements on the page, so they cannot be waived. */

	/* =====================================================================
	   THE PRIMARY BUTTON - AND AN ACCEPTED WCAG AA EXCEPTION.
	   ---------------------------------------------------------------------
	   Decision: Anton, 3 September 2026. Recorded here rather than only in a
	   commit message so that anyone auditing this file finds a decision
	   instead of an oversight.

	   THE FINDING
	   White on the Celebrus blue measures 2.97:1. WCAG 2.1 AA requires
	   4.5:1 for normal text and 3:1 for large text, and 2.97 is below BOTH,
	   so no font size or weight rescues it. There is no conforming way to
	   put white text on this blue.

	   THE DECISION
	   The portal matches celebrus.com exactly. The brand is the fixed point;
	   the live marketing site ships this combination on its Book-a-demo pill
	   and the comp draws it the same way, and the portal is not going to be
	   the one surface where the primary button is a different colour.

	   WHAT WAS CONSIDERED AND REJECTED
	   - Darkening the fill to #007DB4 (white = 4.57:1). Rejected: the fill is
	     the thing people recognise.
	   - Keeping the fill and darkening the LABEL to --c-dark-blue #132444
	     (5.18:1). Built, reviewed, rejected: live's label is white, and a
	     dark label reads as a different button.
	   Both were real options and both passed AA. They lost on brand fidelity,
	   which was a deliberate trade, not an accident.

	   SCOPE OF THE EXCEPTION
	   This applies to the .primary-cta fill and label ONLY - the Continue,
	   Sign in and Sign up pills. It does NOT extend to:
	     - link text, which keeps --c-blue-aa (see the next block)
	     - the focus ring, which keeps --c-blue-aa and sits on the white card
	       behind the button, not on the blue
	     - the nav active underline
	     - any future control
	   Do not cite this exception to justify #009FE3 anywhere else.

	   RESIDUAL RISK, stated plainly
	   The portal's users are enterprise financial-services staff, and FS
	   procurement commonly asks for a WCAG conformance claim or a VPAT. A
	   2.97:1 primary control on the only screen a logged-out user can reach
	   is the first thing an accessibility audit finds. If a conformance
	   claim is ever needed, this is the line item, and reverting it is one
	   token: set --c-cta-fg back to var(--c-dark-blue).

	   WORTH RAISING UPSTREAM: the finding applies to celebrus.com itself, not
	   just the portal. Whoever owns the marketing theme may want to fix it at
	   source, at which point the portal follows for free.
	   ===================================================================== */
	--c-cta-bg: var(--c-blue-bell); /* #009FE3 - exact to celebrus.com */
	--c-cta-fg: var(--c-white); /* 2.97:1 - ACCEPTED EXCEPTION, see above */

	/* Hover darkens. With a white label that IMPROVES contrast rather than
	   destroying it - white on #007DB4 is 4.57:1, so the hover state is
	   actually conforming even though the resting state is not. It also gives
	   a 1.54:1 fill-to-fill shift, more visible than the 1.23:1 a lighter
	   hover would have given.

	   NOT CONFIRMED AGAINST LIVE. celebrus.com's hover value was cut off in
	   the DevTools capture. The live theme does define --cel--color-pink-hover,
	   so a blue equivalent probably exists - if it does, use it here instead
	   and delete this note. */
	--c-cta-bg-hover: var(--c-blue-aa); /* #007DB4, white = 4.57:1  PASS */

	/* The same 2.97:1 problem applies to the brand blue as LINK TEXT and as
	   a focus ring or an active-state underline, where AA 4.5:1 and 1.4.11
	   3:1 still bite and where there is no fill to swap a label against. Those
	   uses keep the darker step. This is NOT the button colour any more - do
	   not put it back on a button. */
	--c-blue-aa: #007DB4; /* as text on white = 4.57:1  PASS */
	--c-blue-aa-hover: #00618A; /* as text on white = 6.83:1  PASS */

	/* SURFACE-INDEPENDENT BY DESIGN. Revised 3 Sep when form panels moved
	   onto the live theme's grey.

	   The portal now has FOUR text-bearing surfaces: white #FFFFFF, Paper
	   #F7F9FC, and the two live greys #E8EBF0 / #F2F2F2. Rather than carry a
	   set of on-panel variants for each, every text and border token below is
	   chosen to clear its threshold on ALL FOUR. The pay-off is that the
	   panel colour becomes a purely aesthetic one-line change - swapping the
	   grey can never quietly break contrast somewhere.

	   The previous values did not have that property, and the grey is what
	   exposed it: the old --border-control was 2.97:1 on #E8EBF0, i.e. it
	   would have failed 1.4.11 the moment a field sat on a panel. */

	/* --c-mist-400 (#8595AE) as body text is 3.04:1 on white. The comp uses
	   it for the registration disclaimer at 12px, which is the worst possible
	   place for a near-miss. */
	--fg-3: #586A85; /* white 5.50  paper 5.22  E8EBF0 4.61  F2F2F2 4.92 */

	/* Link text. Darker than the button's blue on purpose - a link has no
	   fill and no button geometry, so it needs the margin. See the AE-1 scope
	   note: this is NOT the button colour and must not be "unified" with it. */
	--c-blue-link: #00658F;
	--fg-link: var(--c-blue-link); /* white 6.45  paper 6.11  E8EBF0 5.39  F2F2F2 5.76 */
	--fg-link-hover: var(--c-fuchsia-plum); /* 4.15:1 on white  PASS */

	/* WCAG 1.4.11 wants 3:1 for the boundary of a form control when the
	   border is the only thing marking it. --c-mist-200 is 1.36:1, so it is
	   fine for a card edge and not for an input edge. */
	--border-control: #687892; /* white 4.48  paper 4.25  E8EBF0 3.75  F2F2F2 4.00 */

	/* Warning text. --status-warning is --c-autumn-leaf #DC5E13, which is
	   3.71:1 on white - fine as a large graphic or an icon, and a FAIL as the
	   11px bold caps used for the "Partner use only" flag on a download row.
	   Darkened along the same hue: legibility matters more than an exact
	   match on a label whose whole job is to be noticed. */
	--fg-warning: #B34A0D; /* white 5.38, Paper 5.10  PASS */

	/* On the navy hero and footer. The comp's #7689A9 copyright is 3.15:1 on
	   navy, so it is bumped one step up the scale. Its #99D9F4 eyebrow and
	   #CCECF9 links, which the plan also flagged, both measured fine. */
	--fg-on-navy: var(--c-white); /* 11.16:1 */
	--fg-on-navy-2: var(--c-blue-20); /*  9.00:1 */
	--fg-on-navy-eyebrow: var(--c-blue-40); /*  7.22:1 */
	--fg-on-navy-meta: var(--c-navy-40); /*  5.14:1  (comp had 3.15:1) */

	/* Magenta on navy is 2.69:1 and cannot be rescued. The brand doc says so
	   too. It is a gradient and a rule-bar colour on navy, never text. */

	/* ----------------------------------------------------------------------
	   B4. FOCUS
	   ----------------------------------------------------------------------
	   The comp shows no focus states at all, and the portal is a logged-in
	   application, so this is the single biggest regression risk in the
	   restyle. Focus is a token, not an afterthought. */
	--focus-ring: var(--c-blue-aa); /* 4.57:1 on white, 4.34:1 on paper */
	--focus-ring-on-dark: var(--c-white);
	--focus-ring-width: 2px;
	--focus-ring-offset: 2px;

	/* ----------------------------------------------------------------------
	   B5. NOT OURS - DO NOT BRAND THESE
	   ----------------------------------------------------------------------
	   Microsoft's logo squares on the Entra sign-in button. They are
	   Microsoft's trademark and their use is governed by Microsoft's brand
	   guidance, which requires the exact values. Recolouring them to
	   Celebrus blue is a trademark problem, not a tidy-up. */
	--ms-red: #F25022;
	--ms-green: #7FBA00;
	--ms-blue: #00A4EF;
	--ms-yellow: #FFB900;

	/* ----------------------------------------------------------------------
	   B6. PORTAL LAYOUT
	   ----------------------------------------------------------------------
	   The comp is a fixed 1440px frame with no media queries, so responsive
	   behaviour was undefined by the designs. It is derived from the
	   Bootstrap 5 grid the portal already carries; the derivation and the
	   reasoning are written down in
	   upgrade\REDESIGN-BREAKPOINTS-AND-CONTRAST.md so it is not re-decided
	   one component at a time.

	   Breakpoints cannot be tokens - @media does not read custom properties -
	   so they live in celebrus-portal.css as literals, and ONLY these values
	   may be used:
	       576px  768px  992px  1200px  1400px      (Bootstrap 5, unchanged)

	   The legacy sheet uses max-width 767px and max-width 1279px. Those are
	   the Bootstrap 3-era equivalents of 768 and 1280 and are being retired
	   with it. Do not add new rules at those widths. */
	--header-h: 72px; /* comp header height */
	--footer-pad-y: var(--space-7, 28px); /* comp footer padding */
	--card-pad: var(--space-8); /* 32px - comp card padding */
	--field-h: 44px; /* comp input and pill height */
	--search-w: 288px; /* comp header search width */

	/* ---- THE FORM PANEL ------------------------------------------------
	   Added 3 Sep. Anton asked for the portal's forms to carry the same
	   treatment as the "Meet with us" panel on celebrus.com: a rounded panel
	   in the live theme's light grey, with white fields inside it.

	   This is the unifying component. Before it, Login sat in white cards on
	   Paper, Feedback sat in a 430px column with no panel at all, and the
	   Registration and password screens each did something slightly
	   different. One panel definition now covers all of them.

	   White fields ON the grey rather than grey fields on white: it is what
	   live does, and it keeps every input on the surface its contrast was
	   measured against.

	   ============================================================
	   THESE FIVE LINES ARE THE SINGLE CONTROL POINT FOR EVERY FORM
	   PANEL IN THE PORTAL. Change one here and every screen follows:
	   login, sign in, feedback, registration, signup, password reset,
	   the error page and the user profile. Nothing else may declare a
	   panel background, radius or padding of its own - there is a guard
	   that checks exactly that. If you find yourself writing a literal
	   into a panel rule, add a token here instead.
	   ============================================================

	   Revised 4 Sep: WHITE cards on a PAPER band, per comp screens 05 and
	   06. They were previously a grey #E8EBF0 panel on white, taken from
	   the "Meet with us" form on celebrus.com. The comp disagreed with the
	   live marketing form, Anton chose the comp, and the two tokens below
	   are the whole of that change.

	   A quiet benefit of the swap: the read-only fields and the checkbox
	   panel are both --c-paper, which was nearly invisible against the
	   #E8EBF0 card. On white they read as intended.

	   Radius is 16px, not the 24px it was. The comp uses --radius-lg on
	   every content card; the 24px came from the grey-panel round and went
	   with it. */
	--surface-panel: var(--c-white); /* the card */
	--surface-panel-page: var(--c-paper); /* the band it sits on */

	/* Added 7 Sep: the third surface - an alternating row inside a card.
	   Anton on the documentation index: "can it make alternative row BG to
	   identify them easily".

	   --c-mist-100 rather than --c-paper. Paper is only 2% off white and
	   disappears on a poor monitor, which defeats the point of the stripe;
	   mist-100 is about 6% and reads clearly while staying quiet. The DS
	   comment calls mist-100 a hairline colour, which it also still is - a
	   value can serve two roles as long as the tokens naming them are
	   separate, which is what this line is for.

	   Every text colour that can land on a striped row was re-measured
	   against it and passes AA: --fg-link 5.68:1, --fg-2 6.63:1, the PDF tag
	   --c-pink-hover 5.95:1, the hover blue --c-blue-aa-hover 6.01:1. The one
	   colour that does NOT survive the tint is --fg-link-hover
	   (--c-fuchsia-plum), at 3.65:1 - see section 21 of celebrus-portal.css,
	   where the doc links opt out of it. Any new component adopting this
	   token needs the same check. */
	--surface-row-alt: var(--c-mist-100);
	--radius-panel: var(--radius-lg); /* 16px, per every comp card */
	--panel-max: 640px; /* single-column forms; Feedback overrides to 720 */
	--panel-pad: 36px; /* comp: 36 on feedback and profile, 32 on login */
}


/* ==========================================================================
   BLOCK B7 - Composite values the component layer needs
   Kept here rather than in celebrus-portal.css so that rule 1 at the top of
   this file holds: no raw colour values outside this file.
   ========================================================================== */

:root {
	/* The comp's navy hero is not flat navy - it carries two soft radial
	   glows, magenta from the bottom right and blue from the top. Both are
	   brand colours at low alpha, decorative, and sit behind white text that
	   measures 11.16:1 against the navy underneath. */
	--gradient-hero-glow: radial-gradient(680px 240px at 88% 120%, rgba(209, 72, 147, 0.42) 0%, rgba(209, 72, 147, 0) 70%), radial-gradient(620px 260px at 62% -10%, rgba(0, 159, 227, 0.40) 0%, rgba(0, 159, 227, 0) 70%);

	/* Error state. The comp never draws one, so this is derived: the DS
	   --status-danger at low alpha, with the full-strength value on the
	   border and icon. Message text stays --fg-2 (7.53:1) rather than red,
	   because red body text on a red tint is the usual way these fail AA. */
	--bg-danger-soft: rgba(229, 56, 76, 0.08);
	--border-danger: var(--status-danger);

	/* The DS spacing scale skips 28px, which is the comp's footer padding and
	   its footer link gap. Added rather than rounded to 24 or 32. */
	--space-7: 28px;

	/* The avatar disc in the header comp. Decorative gradient, white initials
	   on the darker half; not currently reachable without a markup change -
	   see the note in celebrus-portal.css. */
	--gradient-avatar: var(--gradient-navy-blue);

	/* The nav underline on celebrus.com is the fingerprint gradient, not a
	   flat colour. A border cannot carry a gradient, so it is drawn as an
	   ::after bar - see section 5 of celebrus-portal.css. */
	--nav-underline: var(--gradient-blue-fuchsia);
}


/* ==========================================================================
   BLOCK C - celebrus.com, the shipped brand
   --------------------------------------------------------------------------
   Added 3 September 2026. Anton read the live theme's variables out of
   DevTools and confirmed the standing decision: WHERE LIVE AND THE COMP OR
   THE DESIGN SYSTEM DISAGREE, LIVE WINS.

   That makes four sources of truth for one palette, on three different
   naming conventions:
       --cel--color-*   celebrus.com (HubSpot theme)   <- authoritative
       --c-*            the design system file          block A above
       --cel-*          the legacy portal stylesheets   bridged in
                                                        celebrus-portal.css
   plus 19 loose hex values in the comp, reconciled in block B2.

   THE GOOD NEWS, and it is worth stating because nobody had checked: the
   brand core agrees EXACTLY between live and the design system. Six values,
   identical to the byte:

       --cel--color-navy       #1A3B6B  =  --c-regal-navy
       --cel--color-blue       #009FE3  =  --c-blue-bell
       --cel--color-pink       #D14893  =  --c-fuchsia-plum
       --cel--color-orange     #DC5E13  =  --c-autumn-leaf
       --cel--color-mint       #56BBA7  =  --c-ocean-mist
       --cel--color-grey-dark  #3F3F3F  =  --c-gunmetal

   So the design system was not wrong about the brand. It was incomplete: the
   live theme carries seven more colours that the DS file has never contained.
   Those are below.
   ========================================================================== */

:root {

	/* ---- Live-site colours with NO design-system equivalent -------------
	   Taken from the live theme, not derived. */

	/* Deeper than navy. The live site's dark surface colour. It was also the
	   candidate primary-button label at 5.18:1 - see the accepted exception
	   in block B3 for why the button ended up white instead. Setting
	   --c-cta-fg back to this token is the one-line route to AA conformance
	   on that button if a claim is ever required. */
	--c-dark-blue: #132444;

	/* A darker pink for interaction states. Its existence is the precedent
	   for a hover step on the CTA - the live theme already accepts that a
	   brand colour needs a second step to be usable on a control. Note the
	   deliberate lack of a colon after a token name in prose: a naive grep
	   for "--token:" treats that as the declaration site, and it fooled this
	   session's own validator once. White on this pink is
	   6.76:1, where white on the base pink is 4.15:1 and fails AA. */
	--c-pink-hover: #A9206B;

	/* Extended accents. Not in the brand guidelines, not in the DS file, and
	   not used anywhere in the portal yet - carried so that the next person
	   matching a live component does not invent their own. */
	--c-purple: #9B87F5;
	--c-orange-2: #F4845F;
	--c-green: #3ECFCF;

	/* Live's greys. Note these are NOT the portal's Mist scale - they are
	   neutral greys, where Mist is navy-tinted. Do not substitute one for the
	   other; the portal's surfaces stay on Mist and Paper. */
	--c-grey-light: #E8EBF0;
	--c-grey-light-2: #F2F2F2;

	/* ---- Two things to be careful about --------------------------------

	   1. NEAR-MISS. The DS has --c-ink-900: #0E1F3A and live has
	      --cel--color-dark-blue: #132444. Both are "deeper than navy", they
	      are 1.07:1 apart, and they are not the same value. They are kept
	      separate rather than merged, because merging them would silently
	      pick a winner. --c-dark-blue is the one that ships on live, so it is
	      the one used on the button.

	   2. INCOMPLETE. --cel--color-black was cut off in the DevTools capture
	      and is NOT recorded here rather than guessed at. If a component
	      needs it, read it off the live site first. Any variable in the live
	      theme that is not in this block has not been checked. */
}
