/* ============================================================================
   Career Leap base layer: reset, document type, text roles, focus, layout helpers.
   Owner: tokens engineer. Reads only var(--cl-*) from css/tokens.css; no raw values.
   Load order: tokens, base, atoms, molecules, organisms, states, illustration, templates.

   THEME BOOT (round E1 ruling 34): every page loads ONE tiny synchronous script in <head>, before the stylesheets, so there is no flash:
     <script src="../js/theme-boot.js"></script>            (path relative to the page; site/ and app/ and system/ are all one level down)
   It reads ?theme=light|dark (QA, screenshots), else the stored choice 'cl-theme' (honoured only if it is 'light' or 'dark', i.e. the user chose it;
   a stored 'system' removes the key), sets data-theme on <html> and syncs <meta name="theme-color">. It also reads ?scale=NN (root font-size
   percentage, for testing at 150 / 200% on any page). Changing the theme later: window.clTheme.set('light'|'dark'|'system') (same script).

   LAYOUT TOKENS vs CONTAINERS (round E1 ruling 36, documented not changed): layout tokens (--cl-layout-margin, gutter, columns, --cl-inset-*,
   --cl-stack-*, --cl-section-*, type roles) follow the WINDOW CLASS, i.e. the viewport (@media min-width 600 / 840 / 1200), exactly like a Figma
   Layout & Type mode. Component INTERNALS follow their own container (@container cl-app / cl-site, ...). So a phone frame (.docs-screen 393)
   inside a 1470 viewport keeps the laptop margin and section steps on its page chrome; specimens that need the phone composition are real
   iframes (mockups) or carry their own container query. Do not read a viewport token inside a component to size its internals.

   [hidden] (ruling 29): the one !important in the system. It sits in the EARLIEST layer, where an important declaration beats every later layer,
   which is exactly the intent: the hidden attribute always hides, whatever display a component sets. Components must not re-declare it.

   CASCADE LAYERS (round A2/C1 ruling 1). Everything here is in @layer cl.base; the layer order is declared in tokens.css:
   cl.tokens, cl.base, cl.atoms, cl.molecules, cl.organisms, cl.states, cl.illustration, cl.templates, cl.docs.
   TAILWIND / ANY LAYERED STACK: import Career Leap into named layers BEFORE Tailwind's utilities so utilities win:
     @layer cl.tokens, cl.base, cl.atoms, cl.molecules, cl.organisms, cl.states, cl.illustration, cl.templates, cl.docs, theme, base, components, utilities;
     @import "./css/tokens.css"; @import "./css/base.css" layer(cl.base);   (each file already declares its own @layer, so a bare @import also works)
   Do NOT also load Tailwind preflight after cl.base without scoping it: it would reset the same properties. Unlayered app CSS beats
   every Career Leap layer. Icons need assets/icons/sprite.svg inline in the DOM (<use href="#i-name">); a React <Icon> wrapper owns that.
   Body-level rules (the bottom-nav focus rule, overflow-wrap) assume the app root is <body>; an embedded app puts them on its own root.
   ============================================================================ */

@layer cl.base {

/* ---- Fonts: self-hosted, round G ---------------------------------------------------------------------------------
   Inter variable (wght 100-900 and opsz 14-32 axes in one file per subset) and Kalam 400, from assets/fonts/ (SIL OFL, licences beside the
   files). The unicode-range of each face is copied from Google's CSS, so a page that is all Latin downloads ONE Inter file (73 KB).
   font-display: swap, so text shows at once in the system fallback and swaps when Inter arrives. Pages preload the Latin faces:
     <link rel="preload" href="../assets/fonts/inter-var-latin.woff2" as="font" type="font/woff2" crossorigin>
     <link rel="preload" href="../assets/fonts/kalam-400-latin.woff2" as="font" type="font/woff2" crossorigin>     (only pages that use .cl-text-hand)
   (path relative to the page; site/, app/ and system/ are one level down.) font-optical-sizing: auto (set on html below) makes the browser pick the
   opsz value from the font-size in px, so 48px headings use Inter's display cut and 14-16px text uses the text cut, with no extra CSS. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/kalam-400-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/kalam-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/kalam-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-optical-sizing: auto; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
/* iOS Safari zooms the page on focus when a field's computed font-size is below 16px, which happens at Text Size
   Small and smaller because the root follows Dynamic Type. Fields never go below 16px (round A1 iOS finding 3). */
input, textarea, select { font-size: max(1rem, 16px); }
button { background: none; border: 0; padding: 0; cursor: pointer; }
/* iOS paints a grey flash under the :active state we design, and double-tap-zoom can fire on controls. */
a, button, [role="button"], input, select, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
/* Long words never overflow at 200% text or at iOS AX sizes (root up to 53px). */
body { overflow-wrap: anywhere; }
h1, h2, h3, h4, .cl-text-display, .cl-text-heading-1, .cl-text-heading-2, .cl-text-heading-3, .cl-text-heading-4 { overflow-wrap: anywhere; hyphens: manual; }   /* round G9: no automatic hyphenation in headings ("stan-dard"); only a soft hyphen you wrote breaks a word */
:lang(hi), :lang(mr) { line-height: 1.6; }   /* Devanagari needs more vertical room than Inter's 1.33-1.5 */
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }   /* ruling 29: earliest layer + !important = wins over every later layer (see header) */

/* ---- Document type -------------------------------------------------------
   iOS Dynamic Type: on iPhone/iPad Safari, `font: -apple-system-body` makes the root size
   follow the user's Text Size setting (17px by default = Apple Body). UNIT POLICY (round A1 ruling 1): text, line
   heights and control/bar min-heights are rem, so they grow with Text Size; spacing, radii, borders, icon sizes,
   gutters and margins are px, so insets stay put (as in UIKit, where type and row heights grow but insets do not).
   The (-webkit-touch-callout: none) test restricts the rule to iOS: on macOS Safari the same
   keyword resolves to 13px, which would shrink the laptop layout.
   Then we set the real family: -apple-system-body would otherwise swap Inter for SF. */
html { font-size: 100%; }
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
body {
  font-family: var(--cl-font-family-sans);
  font-size: 1rem;
  line-height: var(--cl-type-body-line-height);
  font-weight: var(--cl-type-body-weight);
  background: var(--cl-canvas);        /* round G: colour + two soft glows + grain, not a flat fill. App tab pages take the quieter stack below. */
  color: var(--cl-color-on-surface);
  min-height: 100vh;
  min-height: 100svh;                  /* svh, not dvh: a full-height hero must not re-lay-out while Safari's toolbar collapses */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Canvas stacks (round G). --cl-canvas: base colour, two glows (gold 14% top-right, 10% bottom-left; dark: navy 35% and gold 7%) and 3% grain.
   --cl-canvas-app: the quieter one (grain and a single glow) for the app shell and tab pages. Glass is allowed only over one of these.
   A page body gets the full canvas from the rule above; opt in to the app one with class="cl-canvas-app" (or by having a bottom nav). */
body.cl-canvas-app, body.cl-has-bottom-nav { background: var(--cl-canvas-app); }
.cl-canvas { background: var(--cl-canvas); }
.cl-canvas-app { background: var(--cl-canvas-app); }

/* Scoped theme surfaces (specimens that force light or dark inside any page) */
.cl-theme-light, .cl-theme-dark {
  background: var(--cl-color-background);
  color: var(--cl-color-on-surface);
}

/* ---- Sticky chrome contract (WCAG 2.4.11 Focus Not Obscured; round A1 ruling 2) -------
   Anchors and focused elements are scrolled clear of the sticky top bar / bottom nav.
   Bars use rem MIN-heights (they grow with text), but: (1) labels are capped at 2 lines (.cl-bar-label) so a bar
   never grows past two lines at 200% text; (2) paddings and safe-area insets are px; (3) below a 480px viewport
   HEIGHT (landscape phone) the bars drop to the landscape height and the bottom bar shows icon + visually-hidden
   label only (.cl-bottom-nav .cl-bar-label). Bottom bar + top bar then stay under 20% of a 360px-tall screen at 100%. */
:root {
  --cl-scroll-padding-top: calc(var(--cl-top-bar-height-mobile) + var(--cl-layout-safe-area-top) + var(--cl-space-16));
  --cl-scroll-padding-bottom: var(--cl-space-16);
}
@media (min-width: 840px) {
  :root { --cl-scroll-padding-top: calc(var(--cl-top-bar-height-desktop) + var(--cl-space-16)); }
}
.cl-bar-label {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; min-width: 0;
}
@media (max-height: 480px) {            /* = --cl-breakpoint-height-compact */
  .cl-bottom-nav .cl-bar-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
/* iOS Safari does not resize the layout viewport for the keyboard, so a fixed bottom bar floats above or hides behind it.
   Hide the bar while a field has focus; sticky CTAs should be position:sticky inside the scroller, not fixed. */
/* Only text entry hides it (round C1 ruling 15): a checkbox, radio, switch, range, file or button taking focus must not make the
   nav vanish (Chrome Android focuses them on tap, iOS Safari does not, and the nav disappearing mid-toggle is a dead end). */
body:has(:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"], [type="color"]), textarea, select, [contenteditable="true"], [contenteditable=""]):focus) .cl-bottom-nav { display: none; }
html {
  scroll-padding-top: var(--cl-scroll-padding-top);
  scroll-padding-bottom: var(--cl-scroll-padding-bottom);
}
.cl-has-bottom-nav { --cl-scroll-padding-bottom: calc(var(--cl-bottom-nav-height) + var(--cl-layout-safe-area-bottom) + var(--cl-space-16)); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- Text roles ---------------------------------------------------------- */
.cl-text-display {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-display-size);
  line-height: var(--cl-type-display-line-height);
  font-weight: var(--cl-type-display-weight);
  letter-spacing: var(--cl-type-display-tracking);
}
.cl-text-heading-1 {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-heading-1-size);
  line-height: var(--cl-type-heading-1-line-height);
  font-weight: var(--cl-type-heading-1-weight);
  letter-spacing: var(--cl-type-heading-1-tracking);
}
.cl-text-heading-2 {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-heading-2-size);
  line-height: var(--cl-type-heading-2-line-height);
  font-weight: var(--cl-type-heading-2-weight);
  letter-spacing: var(--cl-type-heading-2-tracking);
}
.cl-text-heading-3 {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-heading-3-size);
  line-height: var(--cl-type-heading-3-line-height);
  font-weight: var(--cl-type-heading-3-weight);
  letter-spacing: var(--cl-type-heading-3-tracking);
}
.cl-text-heading-4 {                    /* card and panel titles (round G) */
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-heading-4-size);
  line-height: var(--cl-type-heading-4-line-height);
  font-weight: var(--cl-type-heading-4-weight);
  letter-spacing: var(--cl-type-heading-4-tracking);
}
.cl-text-title {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-title-size);
  line-height: var(--cl-type-title-line-height);
  font-weight: var(--cl-type-title-weight);
  letter-spacing: var(--cl-type-title-tracking);
}
.cl-text-body {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-body-size);
  line-height: var(--cl-type-body-line-height);
  font-weight: var(--cl-type-body-weight);
  letter-spacing: var(--cl-type-body-tracking);
}
.cl-text-body-long {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-body-long-size);
  line-height: var(--cl-type-body-long-line-height);
  font-weight: var(--cl-type-body-long-weight);
  letter-spacing: var(--cl-type-body-long-tracking);
}
.cl-text-body-small {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-body-small-size);
  line-height: var(--cl-type-body-small-line-height);
  font-weight: var(--cl-type-body-small-weight);
  letter-spacing: var(--cl-type-body-small-tracking);
}
.cl-text-label-lg {                     /* buttons at control size 48 and 56: 16/24 600 (ruling 4) */
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-label-lg-size);
  line-height: var(--cl-type-label-lg-line-height);
  font-weight: var(--cl-type-label-lg-weight);
  letter-spacing: var(--cl-type-label-lg-tracking);
}
.cl-text-label {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-label-size);
  line-height: var(--cl-type-label-line-height);
  font-weight: var(--cl-type-label-weight);
  letter-spacing: var(--cl-type-label-tracking);
}
.cl-text-caption {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-caption-size);
  line-height: var(--cl-type-caption-line-height);
  font-weight: var(--cl-type-caption-weight);
  letter-spacing: var(--cl-type-caption-tracking);
}
.cl-eyebrow {
  font-family: var(--cl-font-family-sans);
  font-size: var(--cl-type-eyebrow-size);
  line-height: var(--cl-type-eyebrow-line-height);
  font-weight: var(--cl-type-eyebrow-weight);
  letter-spacing: var(--cl-type-eyebrow-tracking);
  text-transform: var(--cl-type-eyebrow-transform);
}

.cl-text-muted { color: var(--cl-color-on-surface-muted); }   /* solid colour, never opacity */
.cl-text-disabled { color: var(--cl-color-on-surface-disabled); }   /* solid colour, never opacity; WCAG exempts inactive components */
.cl-surface-disabled { background: var(--cl-color-surface-disabled); }
::placeholder { color: var(--cl-color-placeholder); opacity: 1; }   /* opacity:1 cancels the browsers' own fade (Firefox .54) */
/* Inline links: colour alone is 1.3:1 against body text, so they are ALWAYS underlined (WCAG 1.4.1). */
.cl-link, p a, li a, dd a {
  color: var(--cl-color-primary-text);
  text-decoration: underline; text-decoration-thickness: 0.0625rem; text-underline-offset: 0.2em;
}
.cl-link:hover, p a:hover, li a:hover, dd a:hover { text-decoration-thickness: 0.125rem; }
.cl-text-primary { color: var(--cl-color-primary-text); }
.cl-text-balance { text-wrap: balance; }
.cl-text-pretty { text-wrap: pretty; }
.cl-measure { max-width: var(--cl-layout-reading-measure); }
.cl-text-hand {                       /* the `hand` type role (round G9): the one pen line of a screen and illustration annotations, never UI */
  font-family: var(--cl-type-hand-family);
  font-size: var(--cl-type-hand-size);
  line-height: var(--cl-type-hand-line-height);
  font-weight: var(--cl-type-hand-weight);
  letter-spacing: var(--cl-type-hand-tracking);
}

/* ---- Focus (WCAG 2.4.7, 2.4.11, 2.4.13): TWO-TONE ring (round A1 ruling 9) ----------
   2px focus-ring outline, 2px offset, and a 2px focus-halo inside the gap, so the ring reads on any backdrop
   (gold, paper, photos, filled buttons). The box-shadow halo is dropped under forced-colors (the system draws Highlight).
   NEVER clip it: a scroll or overflow:hidden container needs 4px of room around focusable children
   (use .cl-scroller, or padding equal to the ring width). */
:focus-visible {
  outline: var(--cl-border-width-2) solid var(--cl-color-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--cl-color-focus-halo);
}
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; box-shadow: none; }      /* programmatic focus from the skip link must not ring the whole page */
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; box-shadow: none; }
}
.cl-scroller {                          /* ring (2) + offset (2) + halo (2) = 6 each side, so the two-tone ring is never clipped (round C1 ruling 16) */
  overflow-x: auto; scrollbar-width: none;
  padding: calc(var(--cl-border-width-2) * 3); margin: calc(var(--cl-border-width-2) * -3);
}

/* ---- Layout helpers ------------------------------------------------------ */
.cl-container {
  width: 100%;
  max-width: calc(var(--cl-layout-content-max) + 2 * var(--cl-layout-margin));
  margin-inline: auto;    /* >= 1600 (extra-large): same 1200 content, centred */
  /* landscape iPhone notch / Dynamic Island insets (59px on iPhone 15) with viewport-fit=cover */
  padding-inline: max(var(--cl-layout-margin), var(--cl-layout-safe-area-left), var(--cl-layout-safe-area-right));
}
.cl-container--bleed { padding-inline: 0; }

/* Vertical rhythm: space between direct children (zero specificity: easy to override) */
:where(.cl-stack-xs) > * + * { margin-block-start: var(--cl-stack-xs); }
:where(.cl-stack-sm) > * + * { margin-block-start: var(--cl-stack-sm); }
:where(.cl-stack-md) > * + * { margin-block-start: var(--cl-stack-md); }
:where(.cl-stack-lg) > * + * { margin-block-start: var(--cl-stack-lg); }
:where(.cl-stack-xl) > * + * { margin-block-start: var(--cl-stack-xl); }

/* Section padding */
.cl-section-sm { padding-block: var(--cl-section-sm); }
.cl-section-md { padding-block: var(--cl-section-md); }
.cl-section-lg { padding-block: var(--cl-section-lg); }

/* Horizontal cluster: wraps, aligns on the centre line. Gap tokens: inline-xs..lg */
.cl-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cl-inline-sm); }
.cl-cluster--xs { gap: var(--cl-inline-xs); }
.cl-cluster--md { gap: var(--cl-inline-md); }
.cl-cluster--lg { gap: var(--cl-inline-lg); }
.cl-cluster--between { justify-content: space-between; }

/* Grid (M3 window classes): 4 columns < 600, 8 at 600-839, 12 from 840; gutter 16 / 24 */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(var(--cl-layout-columns), minmax(0, 1fr));
  column-gap: var(--cl-layout-gutter);
  row-gap: var(--cl-layout-gutter);
}
.cl-grid > * { grid-column: 1 / -1; }                 /* full width on phones by default */
.cl-span-2 { grid-column: span 2; }
.cl-span-4 { grid-column: span 4; }
@media (min-width: 600px) {              /* medium: 8 columns */
  .cl-grid > .cl-span-4 { grid-column: span 4; }
  .cl-grid > .cl-span-8 { grid-column: span 8; }
}
@media (min-width: 840px) {
  .cl-grid > * { grid-column: span 12; }
  .cl-grid > .cl-span-3 { grid-column: span 3; }
  .cl-grid > .cl-span-4 { grid-column: span 4; }
  .cl-grid > .cl-span-5 { grid-column: span 5; }
  .cl-grid > .cl-span-6 { grid-column: span 6; }
  .cl-grid > .cl-span-7 { grid-column: span 7; }
  .cl-grid > .cl-span-8 { grid-column: span 8; }
}
/* Fluid card grid: as many columns as fit, never narrower than --cl-grid-min-track (16rem, 256px at a 16px root) */
.cl-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cl-grid-min-track)), 1fr));
  gap: var(--cl-layout-gutter);
}

/* ---- Safe areas (iOS notch, Dynamic Island, home indicator) --------------- */
.cl-safe-top { padding-top: var(--cl-layout-safe-area-top); }
.cl-safe-bottom { padding-bottom: var(--cl-layout-safe-area-bottom); }
.cl-safe-x { padding-inline: max(var(--cl-layout-margin), var(--cl-layout-safe-area-left), var(--cl-layout-safe-area-right)); }
.cl-sticky-top { position: sticky; top: 0; padding-top: var(--cl-layout-safe-area-top); }
.cl-sticky-bottom { position: sticky; bottom: 0; padding-bottom: var(--cl-layout-safe-area-bottom); }

/* ---- Glass: a recipe, not a colour (round G) --------------------------------------------------------------------
   Fill + 1px border + lift and inner highlight + blur 18 and saturate 112% (the founder's reference). Light: white 60%, border white 92%, warm shadow
   0 16px 34px at 9%. Dark: white 4.5%, border white 11%. Light and blur do the work; colour is a whisper.
   RULE (ruling 7): glass sits only over the canvas (--cl-canvas / --cl-canvas-app), never over paper, photos or illustrations. Over art use
   .cl-glass--over-art (opaque). At most 6 blurred layers per viewport: bars and sheets keep the blur on phones; .cl-glass CARDS drop it below
   600px (and where backdrop-filter is unsupported) and use surface-glass-lite (white 86%) to protect scrolling.
   prefers-contrast: more and reduced transparency make every glass token opaque in tokens.css. */
.cl-glass {
  background: var(--cl-color-surface-glass-lite);
  border: var(--cl-border-width-1) solid var(--cl-glass-border);
  box-shadow: var(--cl-glass-fallback-shadow);
  border-radius: var(--cl-radius-20);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 600px) {          /* = --cl-breakpoint-medium */
    .cl-glass {
      background: var(--cl-color-surface-glass);
      box-shadow: var(--cl-glass-shadow);
      -webkit-backdrop-filter: var(--cl-glass-filter);
      backdrop-filter: var(--cl-glass-filter);
    }
  }
}
@media (max-width: 599px) {
  .cl-glass { box-shadow: var(--cl-glass-shadow); }   /* the lift and highlight are cheap; only the blur is dropped */
}

.cl-glass-bar { background: var(--cl-color-surface-glass-lite); box-shadow: var(--cl-glass-highlight); }
.cl-glass--over-art {
  background: var(--cl-color-surface-glass-fallback);
  border-color: var(--cl-glass-fallback-border);
  box-shadow: var(--cl-glass-fallback-shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cl-glass--over-art { background: var(--cl-color-surface-glass-fallback); border-color: var(--cl-glass-fallback-border); box-shadow: var(--cl-glass-fallback-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cl-glass-bar {
    background: var(--cl-color-surface-glass-bar);
    -webkit-backdrop-filter: var(--cl-glass-filter); backdrop-filter: var(--cl-glass-filter);
  }
}
@media (forced-colors: active) {
  .cl-glass, .cl-glass--over-art, .cl-glass-bar { border: var(--cl-border-width-1) solid CanvasText; }
}

/* ---- Utilities ----------------------------------------------------------- */
.cl-skip-link {
  position: absolute; left: var(--cl-space-16); top: var(--cl-space-8);
  z-index: var(--cl-z-skip-link);
  padding: var(--cl-space-12) var(--cl-space-16);
  border-radius: var(--cl-radius-12);
  background: var(--cl-color-primary); color: var(--cl-color-on-primary);
  transform: translateY(-200%);
}
.cl-skip-link:focus { transform: none; }

/* Search inputs (round G9): reset the UA padding and appearance so the field metrics come from .cl-input alone. */
input[type="search"] { -webkit-appearance: none; appearance: none; padding: 0; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

} /* @layer cl.base */

/* ---- Utilities: the LAST product layer, so no component rule can un-hide or re-position these ----------------------- */
@layer cl.templates {
.cl-visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
}

