/* =============================================================================================
   OAIT Design System 2.1.0 · reference/oait-ui.css
   The framework-agnostic reference implementation: every file of reference/css/ in one stylesheet.

   Generated by reference/build-css.mjs, never edit. Change the file in reference/css/ and run
   node reference/build-css.mjs (node reference/build-css.mjs --check tells whether this file is current).

   Load rule: tokens/oait.css first, then this file, before any page style:
     <link rel="stylesheet" href="tokens/oait.css">
     <link rel="stylesheet" href="reference/oait-ui.css">

   Order (the cascade order; each part keeps its own header comment):
      1. reference/css/base.css
      2. reference/css/shell.css
      3. reference/css/link.css
      4. reference/css/button.css
      5. reference/css/segmented.css
      6. reference/css/chip.css
      7. reference/css/inputs.css
      8. reference/css/selection.css
      9. reference/css/gid-kit.css
     10. reference/css/card.css
     11. reference/css/panel.css
     12. reference/css/list.css
     13. reference/css/table.css
     14. reference/css/disclosure.css
     15. reference/css/avatar-badge.css
     16. reference/css/overlay.css
     17. reference/css/site-nav.css
     18. reference/css/app-nav.css
     19. reference/css/feedback.css
     20. reference/css/marketing.css
     21. reference/css/brand-kit.css
     22. reference/css/product.css
   ============================================================================================= */


/* ---------------------------------------------------------------------------------------------
   reference/css/base.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/base.css
   The foundation layer. Load it right after tokens/oait.css and before every component file.

   Implements
   - Theme color scheme: :root follows the system, data-theme / class light and dark force it (D-COL-14, D-ARC-07).
   - Light reset and the document type base of canonical §3.9 (D-TYP-05, D-TYP-07, D-TYP-17, D-TYP-19); a product name in
     <bdi translate="no"> never breaks between its words (canonical §1.2, D-BCP-03).
   - The one focus ring and its documentation twin [data-demo-focus], the inset ring for containers that clip, and the
     surface halo over photos, video, and multi-stop art (D-SEM-11, D-ARC-06, D-BCP-26, D-CAI-20, D-COL-20, canonical §6.3).
   - Motion: [data-motion="paused"] for the Pause control, and the reduced-motion switch of canonical §7.7 (D-SEM-17, D-SEM-21).
   - Forced colors: transparent 1px borders are drawn by the browser; the ring turns Highlight (D-SEM-10, D-CAI-20, D-BCP-25).
   - Icons: Material Symbols Rounded box, sizes, FILL, and the RTL mirror (D-BCP-31, D-BCP-32, D-BCP-33, D-ARC-22, D-LAY-13).
   - Skip link and its target (D-CAI-08, D-CSN-49, D-ARC-20, D-ARC-26, C-2) and visually hidden text.
   - Safe-area and keyboard insets: --oa-safe-top, --oa-safe-bottom, --oa-safe-left, --oa-safe-right,
     the direction-following --oa-safe-start and --oa-safe-end, and --oa-keyboard-inset, read by every
     rule that pads an inset (D-LAY-17, D-APP-35, D-APP-36, D-APP-58, canonical §4.10).
   - Type-style utilities for the 28 styles, the app page title, supporting text, the eyebrow, and long-form prose (D-TYP-08
     to D-TYP-14, D-BCP-17, D-ARC-20, D-ARC-21, D-ARC-27, D-ARC-34, canonical §3.5).
   - Layout primitives: containers with their gutters inside, measure, stacks (the form's field stack among them), cluster,
     card and tile grids, lists that are layout primitives, the marketing split, the page frame with its section rhythm,
     and the full-bleed band (D-LAY-03 to D-LAY-08, D-LAY-10, D-LAY-11, D-LAY-17, D-ARC-24, D-ARC-25, C-5).

   Tokens read: --color-surface, --color-on-surface, --color-on-surface-variant, --color-primary, --color-primary-ink,
   --color-primary-container, --color-on-primary-container, --color-focus-ring, --color-surface-container-low; --font-sans,
   --font-mono, --font-weight-semibold; --text-<style> with --line-height, --letter-spacing, and --font-weight for all
   28 styles; --size-focus-ring, --size-focus-offset, --size-focus-inset, --size-icon-xs … --size-icon-4xl,
   --size-touch-target, --size-eyebrow-rule-inline, --size-eyebrow-rule-block; --space-* (--space-fields, --space-section
   and --space-section-expanded among them); --container-page, -wide, -reading, -form, -measure; --radius-full,
   --radius-8px; --z-skip-link. Context property read: --oa-link (CONTRIBUTING.md, reference CSS rules).

   Classes: .oa-focus-inset · .oa-focus-halo · .oa-icon (--xs --sm --md --lg --xl --2xl --3xl --4xl --filled --mirror) ·
   .oa-visually-hidden · .oa-honeypot · .oa-skip-link · .oa-num · .oa-mono · .oa-supporting · .oa-text-<style> (28) · .oa-page-title ·
   .oa-eyebrow (--rule) · .oa-prose · .oa-container (--wide --reading --form) · .oa-measure ·
   .oa-stack (--tight --loose --group --fields) · .oa-cluster · .oa-grid (--tiles) · .oa-split · .oa-page · .oa-band.
   Lists: :where(ul, ol).oa-grid, :where(ul, ol).oa-stack, :where(ul, ol).oa-cluster (no indent, no bullets).
   Custom properties defined here: --oa-safe-top, --oa-safe-bottom, --oa-safe-left, --oa-safe-right,
   --oa-safe-start, --oa-safe-end, --oa-keyboard-inset (section 1b).
   Attributes: [data-demo-focus] (documentation only) · [data-motion="paused"] · main[tabindex="-1"] (the skip
   link's target) · bdi[translate="no"] (kept on one line).

   Breakpoints are literal rem values (CSS cannot read a custom property inside @media):
   sm 40rem (640px), md 48rem (768px), lg 64rem (1024px). */


/* ---------------------------------------------------------------------------------------------
   1. Color scheme. The one place a theme selector appears, and only for color-scheme: native
   controls, scrollbars, and form pop-ups follow the active theme. The colors themselves switch in
   tokens/oait.css, which declares the same color-scheme values beside them; base.css carries the
   switch as well (canonical §0.5), so the two always agree (D-COL-14, D-ARC-07).
   --------------------------------------------------------------------------------------------- */

:root {
  color-scheme: light dark; /* follows the system setting */
}

/* Scrollbars (canonical §4.10, D-LAY-20). One look and one place on every product: the thumb is
   outline on a clear track, so it reads on every surface in both themes (3.65:1 or more); the page
   scrollbar keeps its gutter at the inline end of the window whether or not the page scrolls, so
   nothing shifts between pages; scroll regions inside the page (menus, sheets, tables) draw the
   thin form. The shape, the arrows, and overlay behavior stay the platform's. */
:root {
  scrollbar-color: var(--color-outline) transparent;
  scrollbar-gutter: stable;
}

:where(:not(html)) {
  scrollbar-width: thin;
}

:root[data-theme="light"],
:root[class~="light"] {
  color-scheme: light;
}

:root[data-theme="dark"],
:root[class~="dark"] {
  color-scheme: dark;
}


/* ---------------------------------------------------------------------------------------------
   1b. Safe-area and keyboard insets (D-LAY-17, D-APP-35, D-APP-58, canonical §4.10). Every rule of
   the reference CSS that pads or offsets by an inset reads these properties, never env() itself, so
   a hybrid shell can supply the values where its web view does not (Android System WebView before
   140 reports wrong env() insets; Capacitor 8 injects correct ones as --safe-area-inset-*). The
   physical four come from env(); --oa-safe-start and --oa-safe-end follow the dir attribute of the
   nearest element that has one, so logical padding pads the right side: left in left-to-right,
   right in right-to-left. A shell overrides the physical four, on :root or in a style attribute on
   <html>, and start and end follow. The arithmetic stays "own padding plus inset", so a bar keeps
   its padding above the home indicator. --oa-keyboard-inset is the height an on-screen keyboard
   covers at the bottom of the layout viewport: 0 unless a product's script sets it from
   visualViewport (iOS, WKWebView, Capacitor with resize mode none); sheets lift by it (D-APP-36,
   D-APP-59). The rules have zero specificity, so any later rule wins.
   --------------------------------------------------------------------------------------------- */

:where(:root) {
  --oa-safe-top: env(safe-area-inset-top, 0px);
  --oa-safe-bottom: env(safe-area-inset-bottom, 0px);
  --oa-safe-left: env(safe-area-inset-left, 0px);
  --oa-safe-right: env(safe-area-inset-right, 0px);
  --oa-keyboard-inset: 0px;
}

:where(:root, [dir="ltr"]) {
  --oa-safe-start: var(--oa-safe-left);
  --oa-safe-end: var(--oa-safe-right);
}

:where([dir="rtl"]) {
  --oa-safe-start: var(--oa-safe-right);
  --oa-safe-end: var(--oa-safe-left);
}


/* ---------------------------------------------------------------------------------------------
   2. Light reset. Box sizing, margins, media defaults, form controls that inherit the type, and
   bare headings that carry no size until a type style is applied (as Tailwind's preflight does).
   The margin and heading resets have zero specificity (:where), so the prose rules of section 13,
   which have zero specificity too, still space and size the elements inside .oa-prose.
   --------------------------------------------------------------------------------------------- */

*,
::before,
::after {
  box-sizing: border-box;
}

:where(body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, pre, hr,
dl, dd, ul, ol, menu) {
  margin: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
  font-weight: inherit;
}

/* A product name never breaks between its words inside a wrapping label (canonical §1.2). */
:where(bdi[translate="no"]) {
  white-space: nowrap;
}

/* Emphasis is 600; there are no italics (D-TYP-07). */
b,
strong {
  font-weight: var(--font-weight-semibold);
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-inline-size: 100%;
  block-size: auto;
}

fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* canonical §3.9: controls take the page type, never the browser's 13.33px system font. */
button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
}

/* Placeholders stay at the full strength of the color the field gives them (D-COL-11). */
::placeholder {
  opacity: 1;
}

/* A hidden element stays hidden whatever display a class gives it. */
[hidden]:where(:not([hidden="until-found"])) {
  display: none !important; /* lint-ok: the hidden attribute must beat display set by component classes */
}


/* ---------------------------------------------------------------------------------------------
   3. Document type base (canonical §3.9, D-TYP-05, D-TYP-19). One literal stack for English,
   Arabic, and French; no optimizeLegibility; no synthesized italics.
   --------------------------------------------------------------------------------------------- */

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-style: none;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* the state layer is the tap feedback, on every element alike */
}

body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* Headings draw in the heading family: Inter for Latin letters and digits, Noto Kufi Arabic for
   Arabic through the same stack, so nothing switches by language (canonical §3.2, D-TYP-20). Zero
   specificity: a class on the heading still wins (a code style, the lock-up). */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading);
}

h1, h2, h3 {
  text-wrap: balance;
}

p, li, dd {
  text-wrap: pretty;
}


/* ---------------------------------------------------------------------------------------------
   4. Focus. One ring for every focusable element: 3px solid --color-focus-ring, 2px outside the
   edge, following the border radius (D-SEM-11, D-ARC-06, D-BCP-26, D-CAI-20). Width, offset, and
   color are set at rest and repeated on focus, so only outline-style changes and no transition can
   animate the ring. Containers re-point --color-focus-ring (inverse-primary on inverse surfaces,
   on-primary for focusable content inside an orange fill, on-card-art on card art, and
   on-passport-jobs on the gold Jobs passport; D-COL-20, V-4). A filled button, a FAB, or any other
   orange-filled control keeps the default ring, which lies outside its fill on the page.
   .oa-focus-inset moves the ring 4px inside the edge, for containers that clip (tabs, segmented
   buttons, list rows, table cells, accordion rows); a component may set that offset itself, and no
   other. .oa-focus-halo fills the 2px gap between the edge and the ring with the surface color, for
   a control over photos, video, or multi-stop art that has no context color (canonical §6.3).
   [data-demo-focus] draws the same ring on a documentation example; never ship it in a product.
   The skip link's target, <main id="main" tabindex="-1">, takes focus by script and is not a
   control, so it draws no ring around the whole page (D-CAI-08, D-CSN-49); the first control
   after it shows the ring as usual. Controls never lose the ring.
   --------------------------------------------------------------------------------------------- */

:where(*) {
  outline-width: var(--size-focus-ring);
  outline-offset: var(--size-focus-offset);
  outline-color: var(--color-focus-ring);
}

:focus-visible,
[data-demo-focus] {
  outline: var(--size-focus-ring) solid var(--color-focus-ring);
  outline-offset: var(--size-focus-offset);
}

.oa-focus-inset:focus-visible,
.oa-focus-inset[data-demo-focus] {
  outline-offset: var(--size-focus-inset);
}

.oa-focus-halo:focus-visible,
.oa-focus-halo[data-demo-focus] {
  box-shadow: 0 0 0 2px var(--color-surface);
}

main[tabindex="-1"]:focus {
  outline-style: none;
}


/* ---------------------------------------------------------------------------------------------
   5. Selection: the family's selected fill (primary-container) and its text color (D-COL-04, D-CAI-14).
   --------------------------------------------------------------------------------------------- */

::selection {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}


/* ---------------------------------------------------------------------------------------------
   6. Motion. The Pause control sets data-motion="paused" on its region (the kitchen sink sets it
   on <html>); every animation inside stops where it is (D-SEM-17). Under reduced motion every
   animation and transition is off, in the base layer so that it wins over later layers and style
   attributes; the pseudo-elements older engines do not know sit in rules of their own (D-SEM-21,
   canonical §7.7). Never wait for transitionend or animationend.
   --------------------------------------------------------------------------------------------- */

[data-motion="paused"] *,
[data-motion="paused"] ::before,
[data-motion="paused"] ::after {
  animation-play-state: paused !important; /* lint-ok: the Pause control must beat every component animation (D-SEM-17) */
}

@layer base {
  @media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer base {
  @media (prefers-reduced-motion: reduce) {
    ::backdrop {
      animation: none !important;
      transition: none !important;
    }
  }
}

@layer base {
  @media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
      animation: none !important;
    }
  }
}


/* ---------------------------------------------------------------------------------------------
   7. Forced colors (Windows contrast themes). Every control and floating surface carries a 1px
   border, transparent unless shown; the browser draws it in a system color, and box-shadows
   disappear, so edges come from borders (D-SEM-10). The ring stays an outline and takes the
   system highlight color (D-CAI-20, D-BCP-25).
   --------------------------------------------------------------------------------------------- */

@media (forced-colors: active) {
  :focus-visible,
  [data-demo-focus] {
    outline-color: Highlight;
  }
}


/* ---------------------------------------------------------------------------------------------
   8. Icons: Material Symbols Rounded, one set (D-BCP-31). Products self-host the variable font
   instanced at wght 400, opsz 24, GRAD 0 with the FILL axis kept, subset to their glyphs, with
   font-display: block (D-BCP-32):
     @font-face { font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 400;
                  font-display: block; src: url("/fonts/material-symbols-rounded-subset.woff2") format("woff2"); }
   Markup: <span class="oa-icon" aria-hidden="true" translate="no">arrow_forward</span>.
   The box clips the ligature name, so no word ever flashes while the font loads. It is one line
   high and wide (1lh at line-height 1, which is 1em until text is scaled): when a phone, a web
   view, or WCAG 1.4.12 text spacing scales text, the glyph grows and the box grows with it, so no
   icon is cut. 1em stays as the fallback for engines without lh.
   FILL 1 (--filled) only for the selected or current item, status icons, and icons in filled
   tonal tiles. Sizes are the icon tokens; 24px is the default (D-BCP-33, D-ARC-22, D-LAY-13).
   Directional glyphs of the registry (canonical §8.3) take --mirror and flip in right-to-left text;
   an icon inside a left-to-right island keeps its direction.
   --------------------------------------------------------------------------------------------- */

.oa-icon {
  display: inline-block;
  flex-shrink: 0;
  inline-size: 1em;
  inline-size: 1lh;
  block-size: 1em;
  block-size: 1lh;
  overflow: hidden;
  font-family: "Material Symbols Rounded";
  font-size: var(--size-icon-lg);
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0;
  -webkit-font-smoothing: antialiased;
}

.oa-icon--xs { font-size: var(--size-icon-xs); }   /* 16px: field errors and helpers, dense meta */
.oa-icon--sm { font-size: var(--size-icon-sm); }   /* 18px: chips and 40px buttons */
.oa-icon--md { font-size: var(--size-icon-md); }   /* 20px: 48 and 56px buttons, menus, field adornments, beside 16px text */
.oa-icon--lg { font-size: var(--size-icon-lg); }   /* 24px, the default: icon buttons, navigation, app bars, lists */
.oa-icon--xl { font-size: var(--size-icon-xl); }   /* 28px: 56px tiles and step discs */
.oa-icon--2xl { font-size: var(--size-icon-2xl); } /* 32px: the empty-state disc */
.oa-icon--3xl { font-size: var(--size-icon-3xl); } /* 40px: the problem-state disc, station and stage controls */
.oa-icon--4xl { font-size: var(--size-icon-4xl); } /* 64px: full-page states */

.oa-icon--filled {
  font-variation-settings: "FILL" 1;
}

[dir="rtl"] .oa-icon--mirror {
  transform: scaleX(-1);
}

/* Each icon then follows its own direction where the browser knows it (:dir): a left-to-right island
   inside an Arabic page keeps its arrows, and right-to-left text inside such an island, or set by
   dir="auto" on user content, turns them. Browsers without :dir() keep the rule above. */
.oa-icon--mirror:dir(ltr) {
  transform: none;
}

.oa-icon--mirror:dir(rtl) {
  transform: scaleX(-1);
}


/* ---------------------------------------------------------------------------------------------
   9. Accessibility helpers.
   .oa-visually-hidden keeps text for screen readers only ("(opens in a new tab)", a figure's
   sentence). .oa-skip-link is the first focusable element of every page: "Skip to content" /
   "الانتقال إلى المحتوى" / "Aller au contenu", pointing to <main id="main" tabindex="-1">. It waits
   above the window and comes down when focused: fixed top-3 start-4 z-80 plus the top and start
   safe-area insets, a 48px on-surface pill
   with label-lg text in surface (D-CAI-08, D-CSN-49, D-ARC-20, D-ARC-26, C-2). The 1px transparent
   border is the forced-colors edge; the padding gives it back, so the pill keeps the recipe's outer box.
   --------------------------------------------------------------------------------------------- */

.oa-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.oa-skip-link {
  position: fixed;
  inset-block-start: calc(var(--space-3) + var(--oa-safe-top));
  inset-inline-start: calc(var(--space-4) + var(--oa-safe-start));
  z-index: var(--z-skip-link);
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-touch-target);
  padding-block: calc(var(--space-3) - 1px);
  padding-inline: calc(var(--space-5) - 1px);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: var(--color-on-surface);
  color: var(--color-surface);
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-6) - var(--oa-safe-top))); /* parked above the window and its top inset until focused */
}

.oa-skip-link:focus {
  transform: none;
}

/* The honeypot field of a sign-in or contact form (patterns/authentication.md): compose it with
   .oa-visually-hidden on the field's wrapper, <div class="oa-visually-hidden oa-honeypot"
   aria-hidden="true">, with a label "Leave this empty" and an input with tabindex="-1" and
   autocomplete="off". It drops the field's browser border and fill, which the 1px clip would
   otherwise leave as stray paint; no person sees it or tabs to it (canonical §13). */
.oa-honeypot :where(input, textarea) {
  border: 0;
  background: none;
}

/* Documentation only: shows the focused skip link in place, inside the page flow. */
.oa-skip-link[data-demo-focus] {
  position: static;
  transform: none;
}


/* ---------------------------------------------------------------------------------------------
   10. Text utilities. .oa-num: tabular figures for columns, live values, and comparisons
   (D-TYP-12). .oa-mono: the mono family for IDs and codes outside a code style (D-TYP-13); inside
   Arabic text wrap the value in <bdi dir="ltr" translate="no">, which also keeps it on one line
   (section 2). .oa-supporting: secondary text in on-surface-variant, always at full strength:
   helper lines, meta, and the line under a title (canonical §2.4, D-COL-11).
   --------------------------------------------------------------------------------------------- */

.oa-num {
  font-variant-numeric: tabular-nums;
}

.oa-mono {
  font-family: var(--font-mono);
}

.oa-supporting {
  color: var(--color-on-surface-variant);
}


/* ---------------------------------------------------------------------------------------------
   11. Type styles. One class per style of tokens.md, setting size, line height, tracking, and
   weight together, like Tailwind's text-<style> (D-TYP-08, D-TYP-09, D-ARC-20, D-ARC-27).
   Arabic line heights and tracking switch by themselves through the :lang(ar) block of oait.css
   (D-TYP-14, D-ARC-29). Code styles also set the mono family (text-code-* with font-mono);
   numerals also set tabular figures (text-numeral-* with tabular-nums); the eyebrow style is
   uppercased by CSS on sentence-case source (D-TYP-11). The classes do not switch by themselves:
   below 640px a display or headline-lg text takes its compact size, which is the size of another
   style (display-lg 36/44 = display-sm, display-md 32/40 = headline-lg, display-sm and headline-lg
   28/36 = headline-md), so write that class there. .oa-page-title is the app page title of
   canonical §3.5: headline-sm, then display-sm from 768px. The lock-up styles are for the lock-up
   only (D-BCP-09).
   --------------------------------------------------------------------------------------------- */

.oa-text-hero-lg {
  font-size: var(--text-hero-lg);
  line-height: var(--text-hero-lg--line-height);
  letter-spacing: var(--text-hero-lg--letter-spacing);
  font-weight: var(--text-hero-lg--font-weight);
}

.oa-text-hero-md {
  font-size: var(--text-hero-md);
  line-height: var(--text-hero-md--line-height);
  letter-spacing: var(--text-hero-md--letter-spacing);
  font-weight: var(--text-hero-md--font-weight);
}

.oa-text-lead {
  font-size: var(--text-lead);
  line-height: var(--text-lead--line-height);
  letter-spacing: var(--text-lead--letter-spacing);
  font-weight: var(--text-lead--font-weight);
}

.oa-text-display-lg {
  font-size: var(--text-display-lg);
  line-height: var(--text-display-lg--line-height);
  letter-spacing: var(--text-display-lg--letter-spacing);
  font-weight: var(--text-display-lg--font-weight);
}

.oa-text-display-md {
  font-size: var(--text-display-md);
  line-height: var(--text-display-md--line-height);
  letter-spacing: var(--text-display-md--letter-spacing);
  font-weight: var(--text-display-md--font-weight);
}

.oa-text-display-sm {
  font-size: var(--text-display-sm);
  line-height: var(--text-display-sm--line-height);
  letter-spacing: var(--text-display-sm--letter-spacing);
  font-weight: var(--text-display-sm--font-weight);
}

.oa-text-headline-lg {
  font-size: var(--text-headline-lg);
  line-height: var(--text-headline-lg--line-height);
  letter-spacing: var(--text-headline-lg--letter-spacing);
  font-weight: var(--text-headline-lg--font-weight);
}

.oa-text-headline-md {
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--text-headline-md--font-weight);
}

.oa-text-headline-sm {
  font-size: var(--text-headline-sm);
  line-height: var(--text-headline-sm--line-height);
  letter-spacing: var(--text-headline-sm--letter-spacing);
  font-weight: var(--text-headline-sm--font-weight);
}

.oa-text-title-lg {
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

.oa-text-title-md {
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-text-title-sm {
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-text-body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
}

.oa-text-body-md {
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-text-body-sm {
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  letter-spacing: var(--text-body-sm--letter-spacing);
  font-weight: var(--text-body-sm--font-weight);
}

.oa-text-label-lg {
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
}

.oa-text-label-md {
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-text-label-sm {
  font-size: var(--text-label-sm);
  line-height: var(--text-label-sm--line-height);
  letter-spacing: var(--text-label-sm--letter-spacing);
  font-weight: var(--text-label-sm--font-weight);
}

.oa-text-eyebrow {
  font-size: var(--text-eyebrow);
  line-height: var(--text-eyebrow--line-height);
  letter-spacing: var(--text-eyebrow--letter-spacing);
  font-weight: var(--text-eyebrow--font-weight);
  text-transform: uppercase;
}

.oa-text-numeral-lg {
  font-size: var(--text-numeral-lg);
  line-height: var(--text-numeral-lg--line-height);
  letter-spacing: var(--text-numeral-lg--letter-spacing);
  font-weight: var(--text-numeral-lg--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-text-numeral-md {
  font-size: var(--text-numeral-md);
  line-height: var(--text-numeral-md--line-height);
  letter-spacing: var(--text-numeral-md--letter-spacing);
  font-weight: var(--text-numeral-md--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-text-code-lg {
  font-size: var(--text-code-lg);
  line-height: var(--text-code-lg--line-height);
  letter-spacing: var(--text-code-lg--letter-spacing);
  font-weight: var(--text-code-lg--font-weight);
  font-family: var(--font-mono);
}

.oa-text-code-md {
  font-size: var(--text-code-md);
  line-height: var(--text-code-md--line-height);
  letter-spacing: var(--text-code-md--letter-spacing);
  font-weight: var(--text-code-md--font-weight);
  font-family: var(--font-mono);
}

.oa-text-code-sm {
  font-size: var(--text-code-sm);
  line-height: var(--text-code-sm--line-height);
  letter-spacing: var(--text-code-sm--letter-spacing);
  font-weight: var(--text-code-sm--font-weight);
  font-family: var(--font-mono);
}

.oa-text-code-xs {
  font-size: var(--text-code-xs);
  line-height: var(--text-code-xs--line-height);
  letter-spacing: var(--text-code-xs--letter-spacing);
  font-weight: var(--text-code-xs--font-weight);
  font-family: var(--font-mono);
}

.oa-text-lockup-name {
  font-size: var(--text-lockup-name);
  line-height: var(--text-lockup-name--line-height);
  letter-spacing: var(--text-lockup-name--letter-spacing);
  font-weight: var(--text-lockup-name--font-weight);
}

.oa-text-lockup-name-compact {
  font-size: var(--text-lockup-name-compact);
  line-height: var(--text-lockup-name-compact--line-height);
  letter-spacing: var(--text-lockup-name-compact--letter-spacing);
  font-weight: var(--text-lockup-name-compact--font-weight);
}

.oa-text-lockup-name-stage {
  font-size: var(--text-lockup-name-stage);
  line-height: var(--text-lockup-name-stage--line-height);
  letter-spacing: var(--text-lockup-name-stage--letter-spacing);
  font-weight: var(--text-lockup-name-stage--font-weight);
}

.oa-page-title {
  font-size: var(--text-headline-sm);
  line-height: var(--text-headline-sm--line-height);
  letter-spacing: var(--text-headline-sm--letter-spacing);
  font-weight: var(--text-headline-sm--font-weight);
}

@media (min-width: 48rem) {
  .oa-page-title {
    font-size: var(--text-display-sm);
    line-height: var(--text-display-sm--line-height);
    letter-spacing: var(--text-display-sm--letter-spacing);
    font-weight: var(--text-display-sm--font-weight);
  }
}


/* ---------------------------------------------------------------------------------------------
   12. Eyebrow: the overline above a section title or a value. 12/16 600 +0.12em, uppercased by
   CSS on sentence-case source, in primary-ink, 2 to 5 words (D-TYP-11, D-BCP-17). --rule leads it
   with the 32 × 2px rule in primary on marketing section headers (D-ARC-27), 12px before the
   words, as oait draws it. Arabic: 13px, no tracking (oait.css) and no uppercase on an eyebrow
   whose own language is Arabic (canonical §3.7's :lang(ar) .oa-eyebrow, read as the element's
   language, so an English or French eyebrow island inside an Arabic page keeps its capitals); Latin
   names inside an Arabic eyebrow stay as written (D-TYP-14, D-ARC-29). Eyebrows and links
   share the context's orange ink: the color reads --oa-link, so an inverse panel that sets
   --oa-link: var(--color-inverse-primary) gets inverse-primary eyebrows (canonical §10.11).
   --------------------------------------------------------------------------------------------- */

.oa-eyebrow {
  color: var(--oa-link, var(--color-primary-ink)); /* lint-ok: --oa-link is the shared context property for the orange ink (CONTRIBUTING.md, reference CSS rules) */
  font-size: var(--text-eyebrow);
  line-height: var(--text-eyebrow--line-height);
  letter-spacing: var(--text-eyebrow--letter-spacing);
  font-weight: var(--text-eyebrow--font-weight);
  text-transform: uppercase;
}

.oa-eyebrow:lang(ar),
.oa-text-eyebrow:lang(ar) {
  text-transform: none;
}

.oa-eyebrow--rule {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.oa-eyebrow--rule::before {
  content: "";
  flex-shrink: 0;
  inline-size: var(--size-eyebrow-rule-inline);
  block-size: var(--size-eyebrow-rule-block);
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}


/* ---------------------------------------------------------------------------------------------
   13. Prose: long-form pages (privacy, terms, help, accessibility) inside .oa-container--reading
   (canonical §11 template 8). Headings map onto the role table of canonical §3.5: h1 is the page
   title (headline-sm, display-sm from 768px), h2 a section heading (title-lg), h3 a group title
   (title-md), and h4 a small heading (title-sm). Paragraphs and lists stop at the measure
   (D-ARC-34). Spacing comes from the stack ladder: 16px between blocks, 8px under a heading, 24px
   above an h3 or h4, and 32px above an h2 (D-LAY-10). Bare links are inline links (primary-ink,
   600, underlined at offset 4, thicker on hover, 8px ring shape; D-CAI-08); links that carry a
   class keep their own component styles. Element rules have zero specificity
   (:where(.oa-prose) …), so a utility class or a component on the element wins (an h2 with
   .oa-text-title-sm keeps title-sm); block spacing is margin-block-start only.
   --------------------------------------------------------------------------------------------- */

.oa-prose {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
}

:where(.oa-prose) > * + * {
  margin-block-start: var(--space-stack);
}

:where(.oa-prose) > :where(h1, h2, h3, h4) + * {
  margin-block-start: var(--space-stack-tight);
}

:where(.oa-prose) > * + :where(h2) {
  margin-block-start: var(--space-stack-group);
}

:where(.oa-prose) > * + :where(h3, h4) {
  margin-block-start: var(--space-stack-loose);
}

:where(.oa-prose) :where(h1) {
  font-size: var(--text-headline-sm);
  line-height: var(--text-headline-sm--line-height);
  letter-spacing: var(--text-headline-sm--letter-spacing);
  font-weight: var(--text-headline-sm--font-weight);
}

:where(.oa-prose) :where(h2) {
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

:where(.oa-prose) :where(h3) {
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

:where(.oa-prose) :where(h4) {
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

@media (min-width: 48rem) {
  :where(.oa-prose) :where(h1) {
    font-size: var(--text-display-sm);
    line-height: var(--text-display-sm--line-height);
    letter-spacing: var(--text-display-sm--letter-spacing);
    font-weight: var(--text-display-sm--font-weight);
  }
}

:where(.oa-prose) :where(p, ul, ol, dl, blockquote) {
  max-inline-size: var(--container-measure);
}

:where(.oa-prose) :where(ul, ol) {
  padding-inline-start: var(--space-6);
}

:where(.oa-prose) :where(li) + :where(li) {
  margin-block-start: var(--space-stack-tight);
}

:where(.oa-prose) :where(a:not([class])) {
  border-radius: var(--radius-8px); /* the ring's shape around a text link (D-SEM-11) */
  color: var(--oa-link, var(--color-primary-ink)); /* lint-ok: --oa-link is the shared link context property that inverse panels and banners set (CONTRIBUTING.md, reference CSS rules) */
  font-weight: var(--font-weight-semibold);
  text-decoration-line: underline;
  text-decoration-thickness: auto;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent; /* the same recipe as .oa-link in link.css */
}

@media (hover: hover) {
  :where(.oa-prose) :where(a:not([class])):hover {
    text-decoration-thickness: 2px;
  }
}

:where(.oa-prose) :where(code, kbd, samp) {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}


/* ---------------------------------------------------------------------------------------------
   14. Layout primitives (D-LAY-03 to D-LAY-08, D-LAY-10, D-LAY-11, D-ARC-24, D-ARC-25, C-5).
   .oa-container is the page frame, gutters inside: 16px, 24px from 640px; 1280px wide by default,
   --wide 1408px (consoles, never reading), --reading 768px (legal and help pages, heading blocks),
   --form 460px (one-step forms, utility pages). One frame per page edge; never nest frames.
   .oa-measure caps paragraphs at 672px. .oa-stack spaces a column: 16px, --tight 8, --loose 24,
   --group 32, and --fields 20 between the fields of a form (canonical §4.5). .oa-cluster wraps a
   row of inline items 12px apart. .oa-grid lays cards out in one column, two from 640px, and three
   from 1024px; --tiles in two columns, four from 1024px; 16px gaps at every width. A ul or ol that
   is a grid, stack, or cluster drops the browser's indent and bullets.
   .oa-split is the marketing split: stacked 40px apart, then 1.05fr / 1fr 48px apart from 1024px,
   the text column first in the DOM and on screen. .oa-page is the page frame (max width, gutters,
   section rhythm: sections 80px apart, 112px from 1024px, and the same space after the last one;
   sections carry no vertical padding of their own). It may sit on <main> only when the page has no
   full-bleed band; with bands, <main> is the full-bleed parent and holds .oa-page frames and
   .oa-band siblings. .oa-band is a full-bleed tinted band, a sibling of the frames, holding an
   .oa-container; it pads itself 80px (112px from 1024px) and, as a full-bleed parent, the side
   safe-area insets (physical on purpose, D-LAY-17). A frame that follows a band starts one section
   below it, so the rhythm stays 80px (112px from 1024px). Full-bleed parents (header, main, footer,
   bands) pad the insets; the frames inside them do not.
   --------------------------------------------------------------------------------------------- */

.oa-container {
  inline-size: 100%;
  max-inline-size: var(--container-page);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.oa-container--wide {
  max-inline-size: var(--container-wide);
}

.oa-container--reading {
  max-inline-size: var(--container-reading);
}

.oa-container--form {
  max-inline-size: var(--container-form);
}

.oa-measure {
  max-inline-size: var(--container-measure);
}

.oa-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
}

.oa-stack--tight {
  gap: var(--space-stack-tight);
}

.oa-stack--loose {
  gap: var(--space-stack-loose);
}

.oa-stack--group {
  gap: var(--space-stack-group);
}

.oa-stack--fields {
  gap: var(--space-fields);
}

.oa-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* Lists that are layout primitives drop the browser's indent and bullets; keep role="list" in the
   markup (Safari drops list semantics with list-style: none). */
:where(ul, ol).oa-grid,
:where(ul, ol).oa-stack,
:where(ul, ol).oa-cluster {
  padding: 0;
  list-style: none;
}

.oa-grid {
  display: grid;
  gap: var(--space-grid);
}

.oa-grid--tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oa-split {
  display: grid;
  align-items: center;
  gap: var(--space-split);
}

.oa-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
  inline-size: 100%;
  max-inline-size: var(--container-page);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
  padding-block-end: var(--space-section);
}

.oa-band {
  padding-block: var(--space-section);
  padding-inline: var(--oa-safe-start) var(--oa-safe-end);
  background-color: var(--color-surface-container-low);
}

.oa-band + .oa-page {
  padding-block-start: var(--space-section);
}

@media (min-width: 40rem) {
  .oa-container,
  .oa-page {
    padding-inline: var(--space-gutter-medium);
  }

  .oa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .oa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oa-grid--tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .oa-split {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-split-expanded);
  }

  .oa-page {
    gap: var(--space-section-expanded);
    padding-block-end: var(--space-section-expanded);
  }

  .oa-band {
    padding-block: var(--space-section-expanded);
  }

  .oa-band + .oa-page {
    padding-block-start: var(--space-section-expanded);
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/shell.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/shell.css
   The shell layer: what changes when the web package is the UI of an app (D-APP-57, D-APP-59).
   Load it right after base.css; oait-ui.css carries it in that place.

   When it applies
   - In an installed web app: under @media (display-mode: standalone) (a site added to the Home
     Screen, an installed PWA, a Trusted Web Activity).
   - In a hybrid shell (Capacitor, a WebView or WKWebView host): when the shell sets data-shell on
     <html> (<html data-shell>; any value, for example data-shell="capacitor").
   In a normal browser tab neither is true and this file changes nothing.

   What it does
   1. The app frame does not pull to refresh or rubber-band: overscroll-behavior-y: none on the root
      scroller, so a drag that reaches the top of the frame is not a reload and an iOS installed app
      does not bounce the whole frame. Inner scrollers keep their own overscroll-behavior: contain
      (the shell's <main>, dialogs, sheets, menus).
   2. The surface color sits behind the page, so an overscroll area or the strip under a web view's
      content is surface, not the host's default white or black (WKWebView derives its
      underPageBackgroundColor from the html and body backgrounds).
   3. Chrome and controls are not selectable and show no long-press callout (iOS), as in native apps:
      bars, navigation items, tabs, menus, buttons, chips, segments, choices, and pressable rows.
      Content stays selectable: text, IDs, codes, and every text field (Google's PWA guidance limits
      user-select: none to UI elements; Safari on iOS needs the -webkit- prefix).
   4. Controls take touch-action: manipulation: taps fire at once at every zoom level and double-tap
      zoom is off on them, while pan and pinch zoom stay on (WebKit, MDN). Never touch-action: none.

   What a shell still sets itself (reference/README.md): the viewport meta with viewport-fit=cover,
   data-shell on <html>, the safe-area properties of base.css where its web view reports wrong
   insets (--oa-safe-top, --oa-safe-bottom, --oa-safe-left, --oa-safe-right), --oa-keyboard-inset
   when the keyboard overlays the page, and its back button handling (D-APP-59).

   Implements D-APP-57, D-APP-59, and canonical §4.8 and §4.10 (only <main> scrolls; safe areas).
   Tokens read: --color-surface.
   Classes read (no class is defined here): .oa-site-header, .oa-top-app-bar, .oa-app-shell__menu,
   .oa-nav-bar, .oa-nav-rail, .oa-nav-drawer, .oa-tabs__list, .oa-action-bar, .oa-menu,
   .oa-nav-sheet, .oa-breadcrumb, .oa-pagination, .oa-btn, .oa-icon-btn, .oa-chip, .oa-segmented,
   .oa-check, .oa-switch, .oa-switch-field, .oa-choice, .oa-list-row, .oa-snackbar__action,
   .oa-banner__action, .oa-gid-kit, .oa-lang__trigger, .oa-site-header__link, .oa-pagination__btn,
   .oa-accordion__summary, .oa-snackbar__close, .oa-banner__close, .oa-table__sort,
   .oa-platform-strip__tile, .oa-id-card__flip. Links in content (.oa-link, .oa-title-link, footer
   links) stay selectable: they are content.
   Attribute read: data-shell on <html>.

   Sources: overscroll-behavior (MDN https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior;
   Chrome https://developer.chrome.com/blog/overscroll-behavior), underPageBackgroundColor
   (https://developer.apple.com/documentation/webkit/wkwebview/underpagebackgroundcolor),
   touch-action (https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action;
   https://webkit.org/blog/5610/more-responsive-tapping-on-ios/), -webkit-touch-callout
   (https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout), user-select on UI only
   (https://web.dev/learn/pwa/app-design). The two blocks below hold the same rules: CSS cannot put
   a media query and an attribute selector in one condition. Change both together. */


/* ---------------------------------------------------------------------------------------------
   1. Hybrid shells: <html data-shell>.
   --------------------------------------------------------------------------------------------- */

:root[data-shell] {
  overscroll-behavior-y: none;
  background-color: var(--color-surface);
}

:root[data-shell] body {
  overscroll-behavior-y: none;
}

:root[data-shell] :where(
  .oa-site-header, .oa-top-app-bar, .oa-app-shell__menu, .oa-nav-bar, .oa-nav-rail, .oa-nav-drawer,
  .oa-tabs__list, .oa-action-bar, .oa-menu, .oa-nav-sheet, .oa-breadcrumb, .oa-pagination,
  .oa-btn, .oa-icon-btn, .oa-chip, .oa-segmented, .oa-check, .oa-switch, .oa-switch-field,
  .oa-choice, a.oa-list-row, button.oa-list-row, .oa-snackbar__action, .oa-banner__action,
  .oa-gid-kit, .oa-lang__trigger, .oa-site-header__link, .oa-pagination__btn, .oa-accordion__summary,
  .oa-snackbar__close, .oa-banner__close, .oa-table__sort, .oa-platform-strip__tile, .oa-id-card__flip
) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Text fields stay editable and selectable wherever they sit (a search field in a bar): WebKit
   inherits user-select, and a field under user-select: none cannot be typed into on iOS. */
:root[data-shell] :where(input, textarea, [contenteditable]:not([contenteditable="false"])) {
  -webkit-user-select: text;
  user-select: text;
}

:root[data-shell] :where(a[href], button, input, select, textarea, summary, label) {
  touch-action: manipulation;
}


/* ---------------------------------------------------------------------------------------------
   2. Installed web apps: display-mode standalone. The same rules as section 1.
   --------------------------------------------------------------------------------------------- */

@media (display-mode: standalone) {
  :root {
    overscroll-behavior-y: none;
    background-color: var(--color-surface);
  }

  body {
    overscroll-behavior-y: none;
  }

  :where(
    .oa-site-header, .oa-top-app-bar, .oa-app-shell__menu, .oa-nav-bar, .oa-nav-rail, .oa-nav-drawer,
    .oa-tabs__list, .oa-action-bar, .oa-menu, .oa-nav-sheet, .oa-breadcrumb, .oa-pagination,
    .oa-btn, .oa-icon-btn, .oa-chip, .oa-segmented, .oa-check, .oa-switch, .oa-switch-field,
    .oa-choice, a.oa-list-row, button.oa-list-row, .oa-snackbar__action, .oa-banner__action,
    .oa-gid-kit, .oa-lang__trigger, .oa-site-header__link, .oa-pagination__btn, .oa-accordion__summary,
    .oa-snackbar__close, .oa-banner__close, .oa-table__sort, .oa-platform-strip__tile, .oa-id-card__flip
  ) {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  :where(input, textarea, [contenteditable]:not([contenteditable="false"])) {
    -webkit-user-select: text;
    user-select: text;
  }

  :where(a[href], button, input, select, textarea, summary, label) {
    touch-action: manipulation;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/link.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/link.css
   Text links (unit c-actions).

   Components
   - Inline link (.oa-link): a link inside running text.
   - Standalone link (.oa-link--standalone): a link on its own line, after a short prompt, or in a
     list.
   - Title link (.oa-title-link): the name of a card, row, or table entry; --stretched makes the
     whole card clickable through its ::after.
   The skip link is base.css's .oa-skip-link; navigation links belong to their navigation components.

   Implements canonical §10.3, §10.10 (the stretched title link), §2.7 (links take no state layer;
   hover thickens the underline), §2.8 and §6.3 (the ring, 8px corners on text links), §13
   (links in sentences are underlined; inline links have no minimum height), and D-CAI-08,
   D-CSN-04, D-ARC-16, D-SEM-11, D-LAY-12, D-BCP-21, C-1.

   Tokens read: --color-primary-ink (the default link color), --color-focus-ring;
   --font-weight-semibold; --space-2; --size-touch-target; --size-focus-ring, --size-focus-offset;
   --radius-8px, --radius-full, --radius-card.
   Context property read: --oa-link, the link color that containers re-point (the inverse panel:
   --color-inverse-primary; banners and page strips: currentColor). Its default is
   --color-primary-ink.

   Classes: .oa-link (+ --standalone; __label, __icon), .oa-title-link (+ --stretched). Both also
   style a <button> (section 4): a low-emphasis action that opens something on the same page and sits
   among links ("Report" beside "Never pay to apply"), and a card whose title opens a dialog ("Get
   help"). The element stays a button; only its look is the link's (canonical §10.0). */


/* ---------------------------------------------------------------------------------------------
   1. Inline link: primary-ink (or the container's --oa-link), weight 600, always underlined
   (thickness auto, offset 4px), 2px on hover. No visited color, no minimum height (the WCAG
   2.5.8 inline exception keeps line spacing even), no state layer. The ring follows an 8px corner
   (D-CAI-08, D-COL-05, D-SEM-11).
   --------------------------------------------------------------------------------------------- */

.oa-link {
  border-radius: var(--radius-8px);
  color: var(--oa-link, var(--color-primary-ink)); /* lint-ok: --oa-link is the shared link context property that the inverse panel, banners, and page strips set */
  font-weight: var(--font-weight-semibold);
  text-decoration-line: underline;
  text-decoration-thickness: auto;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .oa-link:hover {
    text-decoration-thickness: 2px;
  }
}

/* A <button> drawn as a link (section 4) drops the browser's button box first; the standalone
   modifier below then gives back its own padding. */
:where(button).oa-link,
:where(button).oa-title-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
}

:where(button).oa-link {
  font-weight: var(--font-weight-semibold);
}


/* ---------------------------------------------------------------------------------------------
   2. Standalone link: at least 48px tall, a pill-shaped ring, the size of its context (canonical
   §10.3). It carries a trailing arrow (arrow_forward inside the product, north_east when it leaves
   it) or a leading contact icon (call, mail), never both. The underline sits on __label, so it
   never runs under the icon glyph. The icon follows the text size through base.css's size
   classes: .oa-icon--md (20px) beside 16px text, .oa-icon--sm (18px) beside 14px text (D-CAI-08,
   D-ARC-22). 8px of inline padding keeps the pill ring clear of the first and last glyphs and of
   the underline; an equal negative margin keeps the label on the column's edge.
   --------------------------------------------------------------------------------------------- */

.oa-link--standalone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch-target);
  padding-inline: var(--space-2);
  margin-inline: calc(var(--space-2) * -1);
  border-radius: var(--radius-full);
  text-decoration-line: none;
  vertical-align: middle;
}

.oa-link__label {
  text-decoration-line: underline;
  text-decoration-thickness: auto;
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .oa-link--standalone:hover .oa-link__label {
    text-decoration-thickness: 2px;
  }
}

.oa-link__icon {
  flex-shrink: 0;
}


/* ---------------------------------------------------------------------------------------------
   3. Title link: the heading's own color and weight, no underline until hover. --stretched spreads
   its ::after over the card (the card is position: relative), so the whole card is one link;
   other controls on the card sit above it (position: relative; z-index: var(--z-raised)). The ring
   moves to that ::after and takes the card's corner; the card itself never moves (D-CSN-04,
   D-ARC-16).
   --------------------------------------------------------------------------------------------- */

.oa-title-link {
  border-radius: var(--radius-8px);
  color: inherit;
  text-decoration-line: none;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .oa-title-link:hover {
    text-decoration-line: underline;
  }
}

/* inline-block: the link's own box keeps the heading's full line height (its target is the card). */
.oa-title-link--stretched {
  display: inline-block;
}

.oa-title-link--stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}

/* The ring is drawn once, on the card-sized ::after; the link's own outline turns transparent
   (forced colors still draw it). */
.oa-title-link--stretched:focus-visible,
.oa-title-link--stretched[data-demo-focus] {
  outline-color: transparent;
}

.oa-title-link--stretched:focus-visible::after,
.oa-title-link--stretched[data-demo-focus]::after {
  outline: var(--size-focus-ring) solid var(--color-focus-ring);
  outline-offset: var(--size-focus-offset);
}


/* ---------------------------------------------------------------------------------------------
   4. Buttons drawn as links. .oa-link, .oa-link--standalone, .oa-title-link, and
   .oa-title-link--stretched work on <button type="button"> as on <a href>: the rule in section 1
   removes the button's own margin, padding, border, and fill, and keeps the link's color, weight,
   underline, ring, and target. Use it only for an action that stays on the page (it opens a dialog,
   a sheet, or a disclosure) and sits where links sit; anything that goes to another page is an
   <a href> (canonical §10.0, D-CAI-01). A standalone button keeps the 48px target of section 2; a
   stretched title button spreads its ::after over the card like the link. Buttons do not wrap
   inside a sentence, so a button in running text is never an inline link: write the action as its
   own standalone line. */


/* ---------------------------------------------------------------------------------------------
   reference/css/button.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/button.css
   Buttons, button rows, and icon buttons (unit c-actions).

   Components
   - Button (.oa-btn): six variants, three sizes, wide, icons, loading, and disabled.
   - Button row (.oa-actions): dialog and sheet footers, the responsive modal footer, and page
     pairs.
   - Icon button (.oa-icon-btn): standard, filled, tonal, and outlined; toggles through
     aria-pressed.

   Implements canonical §10.0, §10.1, §10.2, §2.7, §2.8, §4.6, §6.3, §8.2, and D-CAI-01 to D-CAI-07,
   D-CAI-20, D-COL-05, D-SEM-10, D-SEM-15, D-ARC-02, D-ARC-03, D-ARC-04, D-ARC-05, D-ARC-11, D-ARC-12,
   D-ARC-20, D-ARC-22, D-ARC-33, D-LAY-12, C-1.

   Tokens read: --color-primary, --color-on-primary, --color-secondary-container,
   --color-on-secondary-container, --color-primary-ink, --color-primary-container,
   --color-on-primary-container, --color-outline, --color-outline-variant, --color-error,
   --color-on-error, --color-on-card-art, --color-on-surface, --color-on-surface-variant;
   --size-button-sm, --size-button-md, --size-button-lg, --size-icon-sm, --size-icon-md,
   --size-icon-lg; --space-2, --space-3, --space-5, --space-6, --space-7; --radius-full;
   --text-label-md and --text-label-lg with their companions; --shadow-elevation-1;
   --opacity-state-hover, --opacity-state-pressed, --opacity-state-disabled-container,
   --opacity-state-disabled-content; --duration-short-3; --ease-standard.
   Context property read: --oa-state (the state-layer opacity; documentation pages force it inline).
   Component-local properties: --oa-btn-height, --oa-btn-icon.

   Classes: .oa-btn (+ --filled, --tonal, --outlined, --text, --danger, --on-art; --sm, --lg, md is
   the default; --wide; __icon, __label; loading through [aria-busy="true"] with
   aria-disabled="true"), .oa-actions (+ --sheet, --modal, --page), .oa-icon-btn (+ --filled,
   --tonal, --outlined; standard is the default; toggles through [aria-pressed]).

   Relies on base.css for .oa-icon (1em box, FILL axis, --mirror), the global :focus-visible ring,
   [data-demo-focus], and the reduced-motion switch, and on feedback.css for .oa-spinner, whose arc
   and size this file points at the button's label color and icon size.
   Each control resets --oa-state to 0 at rest, so a container that sets it (a clickable card
   pressed through its title link) never paints its layer on the buttons inside it.
   Breakpoints are literal: sm 40rem (640px), md 48rem (768px). */


/* ---------------------------------------------------------------------------------------------
   1. Button. A pill with a 1px border (transparent unless outlined, so forced colors draw its
   edge), the label in label-lg (label-md at sm), at most one icon, and a state layer: a ::before
   of the label color at 8% on hover and 12% while pressed, covering the border box. Nothing moves,
   lifts, scales, or casts a new shadow (D-CAI-01, D-CAI-02, D-CAI-03, D-SEM-15). Always write one
   variant modifier; without one the button draws like the text button.
   --------------------------------------------------------------------------------------------- */

.oa-btn {
  --oa-state: 0;
  --oa-btn-height: var(--size-button-md);
  --oa-btn-icon: var(--size-icon-md);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
  block-size: var(--oa-btn-height);
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-primary-ink);
  font-family: inherit;
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none; /* Safari on iOS reads only the prefixed property */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard),
    color var(--duration-short-3) var(--ease-standard);
}

/* The state layer sits under the label and icon (--z-behind inside the isolated button). */
.oa-btn::before {
  content: "";
  position: absolute;
  inset: -1px; /* the layer covers the 1px border, so hover shows no lighter rim */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-btn:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-btn:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-btn:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

/* Icons: 18px in sm, 20px in md and lg (D-ARC-22). Directional arrows also take .oa-icon--mirror. */
.oa-btn .oa-btn__icon {
  flex-shrink: 0;
  font-size: var(--oa-btn-icon);
}

.oa-btn__label {
  min-inline-size: 0;
}


/* Sizes: sm 40px with its hit area extended to 48px (5px above and below, the 1px border counted),
   md 48px (the default), lg 56px (D-CAI-03, D-ARC-04, D-ARC-05, D-ARC-20). */

.oa-btn--sm {
  --oa-btn-height: var(--size-button-sm);
  --oa-btn-icon: var(--size-icon-sm);
  padding-inline: var(--space-5);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-btn--sm::after {
  content: "";
  position: absolute;
  inset-block: -5px;
  inset-inline: 0;
}

.oa-btn--lg {
  --oa-btn-height: var(--size-button-lg);
  padding-inline: var(--space-7);
}

/* Wide: fills the row; a label too long for one line wraps to a second and the button grows
   from its size's height (the main button on phones, long French labels). */
.oa-btn--wide {
  inline-size: 100%;
  block-size: auto;
  min-block-size: var(--oa-btn-height);
  padding-block: var(--space-2);
  white-space: normal;
}

.oa-btn--wide .oa-btn__label {
  text-wrap: balance;
}


/* Variants (D-CAI-02, D-ARC-11, D-ARC-12). on-art is for family products only: under an endorsed
   accent its on-primary label is white on white, so endorsed brands put the filled button on art. */

.oa-btn--filled {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.oa-btn--tonal {
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
}

.oa-btn--outlined {
  border-color: var(--color-outline);
  color: var(--color-primary-ink);
}

.oa-btn--text {
  color: var(--color-primary-ink);
}

.oa-btn--danger {
  background-color: var(--color-error);
  color: var(--color-on-error);
}

.oa-btn--on-art {
  background-color: var(--color-on-card-art);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-elevation-1);
}


/* Loading: aria-busy="true" plus aria-disabled="true". Colors and focus stay; presses are ignored
   by the script; the script locks the width before the label changes (D-CAI-06). The spinner takes
   the leading icon's place at its size, as a quarter arc in the label color with no track, as
   D-CAI-06 draws it: canonical §10.23's primary-ink arc would be 2.58:1 on the orange fill, and its
   outline-variant track leaves the arc only 1.4 to 1.9:1 from it on the danger fill, under the
   Tamakkan accent, and on the orange fill in dark. On outlined and text buttons the arc is
   primary-ink, as canonical draws it. */

.oa-btn[aria-busy="true"] {
  cursor: default;
}

.oa-btn .oa-spinner {
  --oa-spinner-arc: currentColor;
  --oa-spinner-track: transparent;
  --oa-spinner-size: var(--oa-btn-icon);
}


/* Disabled: native disabled, or aria-disabled="true" on a focusable control that cannot apply.
   The fill becomes on-surface at 12%, the label (and an outline) on-surface at 38% and 12%, and the
   state layer stays off. Never opacity on the whole button (D-COL-05, D-ARC-33). */

.oa-btn:is(:disabled, [aria-disabled="true"]) {
  --oa-state: 0;
  cursor: default;
}

.oa-btn:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])) {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  box-shadow: none;
}

.oa-btn:is(.oa-btn--filled, .oa-btn--tonal, .oa-btn--danger, .oa-btn--on-art):is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])) {
  background-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

.oa-btn--outlined:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])) {
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

@media (forced-colors: active) {
  .oa-btn:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])) {
    border-color: GrayText;
    color: GrayText;
  }
}


/* ---------------------------------------------------------------------------------------------
   2. Button row (.oa-actions). Dialog footer by default: Cancel first, the main button last, so it
   lands at the inline end; 8px apart (D-CAI-04). Write the buttons as the dialog wants them (md,
   Cancel as a text button).
   --sheet   bottom sheet: both buttons lg, sharing the width; Cancel outlined.
   --modal   the content of .oa-modal: the sheet layout below 768px (both buttons grow to 56px, the
             text Cancel takes the outline), the dialog layout from 768px.
   --page    a pair on a page: the filled button first, at the inline start, 12px apart; below
             640px a full-width column, the filled button on top (D-CAI-04; the hero CTA row of
             canonical §4.5 and §10.27, D-LAY-10, D-CSN-35).
   Long labels wrap the row; the buttons never shrink below their label.
   --------------------------------------------------------------------------------------------- */

.oa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.oa-actions--sheet > .oa-btn {
  flex: 1 1 0;
}

@media (width < 48rem) {
  .oa-actions--modal > .oa-btn {
    --oa-btn-height: var(--size-button-lg);
    flex: 1 1 0;
    padding-inline: var(--space-7);
  }

  .oa-actions--modal > .oa-btn--text {
    border-color: var(--color-outline);
  }
}

.oa-actions--page {
  justify-content: flex-start;
  gap: var(--space-3);
}

@media (width < 40rem) {
  .oa-actions--page {
    flex-direction: column;
    align-items: stretch;
  }

  .oa-actions--page > .oa-btn {
    inline-size: 100%;
    block-size: auto;
    min-block-size: var(--oa-btn-height);
    padding-block: var(--space-2);
    white-space: normal;
  }
}


/* ---------------------------------------------------------------------------------------------
   3. Icon button. A 48×48 circle with a 24px icon, a 1px border (transparent unless outlined), and
   the state layer over its border box.
   standard (default): on-surface-variant, no container (header and row actions).
   --filled: the view's one main action when it has no words; it counts as the one filled control.
   --tonal: secondary-container. --outlined: an outline-variant hairline, for busy surfaces (the
   Pause control and carousel pager arrows on moving art; table pagination circles are
   site-nav.css's, with an outline edge, canonical §10.13); the icon identifies it (V-2).
   Toggles (standard and outlined only): aria-pressed; pressed = primary-container with the
   on-primary-container icon at FILL 1. The name stays the same in both states (D-CAI-07, D-CAI-14).
   --------------------------------------------------------------------------------------------- */

.oa-icon-btn {
  --oa-state: 0;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: var(--size-button-md);
  block-size: var(--size-button-md);
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-on-surface-variant);
  font-family: inherit;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none; /* Safari on iOS reads only the prefixed property */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard),
    color var(--duration-short-3) var(--ease-standard);
}

.oa-icon-btn::before {
  content: "";
  position: absolute;
  inset: -1px; /* the layer covers the 1px border, so hover shows no lighter rim */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-icon-btn:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-icon-btn:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-icon-btn:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-icon-btn > .oa-icon {
  font-size: var(--size-icon-lg);
}

.oa-icon-btn--filled {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.oa-icon-btn--tonal {
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
}

.oa-icon-btn--outlined {
  border-color: var(--color-outline-variant);
}

/* Toggle on: the family's selected look plus the filled glyph, its non-color cue (D-CAI-14). */
.oa-icon-btn[aria-pressed="true"]:not(.oa-icon-btn--filled, .oa-icon-btn--tonal, :disabled, [aria-disabled="true"]) {
  border-color: transparent;
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-icon-btn[aria-pressed="true"] > .oa-icon {
  font-variation-settings: "FILL" 1;
}

.oa-icon-btn:is(:disabled, [aria-disabled="true"]) {
  --oa-state: 0;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-icon-btn:is(.oa-icon-btn--filled, .oa-icon-btn--tonal):is(:disabled, [aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

.oa-icon-btn--outlined:is(:disabled, [aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

@media (forced-colors: active) {
  .oa-icon-btn:is(:disabled, [aria-disabled="true"]) {
    border-color: GrayText;
    color: GrayText;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/segmented.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/segmented.css
   Segmented button (unit c-actions).

   Components
   - Segmented button (.oa-segmented): two to four segments that set a mode of the same content
     (card side, scan direction, print layout). Panels are tabs; form answers are choice cards.

   Implements canonical §10.8, §10.0, §2.7, §6.3 (the inset ring), §8.2 (the check, FILL), and
   D-CAI-16, D-CAI-14, D-CAI-20, D-COL-05, D-ARC-20, D-ARC-32, D-SEM-10.

   Tokens read: --color-outline, --color-surface, --color-on-surface, --color-primary-container,
   --color-on-primary-container; --size-button-md, --size-icon-md, --size-focus-inset;
   --space-2, --space-6; --radius-full, --radius-box; --text-label-lg with its companions;
   --opacity-state-hover, --opacity-state-pressed, --opacity-state-disabled-content;
   --duration-short-3; --ease-standard.
   Context property read: --oa-state (reset to 0 at rest on every segment, so a container's
   layer never leaks into the group).

   Classes: .oa-segmented (+ --wide, --stack), .oa-segmented__btn, .oa-segmented__icon,
   .oa-segmented__check.

   The group is a <fieldset> named by aria-label (or a visually hidden <legend>, or aria-labelledby
   pointing at a visible label above it). Each segment is <button type="button" aria-pressed>.
   Breakpoint is literal: sm 40rem (640px). */


/* ---------------------------------------------------------------------------------------------
   1. Group: a pill with a 1px outline edge on the page color, hugging its segments, clipping
   them. --wide fills the row (a scanner's direction switch). --stack turns the group into a
   column with box corners below 640px, for labels that do not fit side by side at 360px
   (D-CAI-16).
   --------------------------------------------------------------------------------------------- */

.oa-segmented {
  display: flex;
  box-sizing: border-box;
  inline-size: fit-content;
  min-inline-size: 0;
  max-inline-size: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  overflow: hidden;
}

.oa-segmented--wide {
  inline-size: 100%;
}


/* ---------------------------------------------------------------------------------------------
   2. Segment: 48px, label-lg on on-surface, 24px inline padding, dividers in outline, the state
   layer over the segment's border box (its own divider included), the ring inset 4px (the group
   clips). Labels never wrap. The end segments follow the pill, so the inset ring keeps its round
   ends (D-CAI-16, D-SEM-11).
   --------------------------------------------------------------------------------------------- */

.oa-segmented__btn {
  --oa-state: 0;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
  min-block-size: var(--size-button-md); /* a minimum: scaled text grows the segment (canonical §4.6) */
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-6);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--color-on-surface);
  font-family: inherit;
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none; /* Safari on iOS reads only the prefixed property */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    color var(--duration-short-3) var(--ease-standard);
}

.oa-segmented__btn + .oa-segmented__btn {
  border-inline-start: 1px solid var(--color-outline);
}

.oa-segmented__btn:first-of-type {
  border-start-start-radius: var(--radius-full);
  border-end-start-radius: var(--radius-full);
}

.oa-segmented__btn:last-of-type {
  border-start-end-radius: var(--radius-full);
  border-end-end-radius: var(--radius-full);
}

.oa-segmented__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

.oa-segmented__btn + .oa-segmented__btn::before {
  inset-inline-start: -1px; /* the layer covers the segment's own divider */
}

@media (hover: hover) {
  .oa-segmented__btn:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-segmented__btn:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-segmented__btn:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-segmented__btn:focus-visible,
.oa-segmented__btn[data-demo-focus] {
  outline-offset: var(--size-focus-inset);
}

/* Icons are 20px. The selected segment shows the check (FILL 1) in place of its own icon, its
   non-color cue (D-CAI-14). Write the check in every segment that can be chosen; the attribute
   decides which one shows. */
.oa-segmented__icon,
.oa-segmented__check {
  flex-shrink: 0;
  font-size: var(--size-icon-md);
}

.oa-segmented__check {
  display: none;
  font-variation-settings: "FILL" 1;
}

.oa-segmented__btn[aria-pressed="true"] {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-segmented__btn[aria-pressed="true"] .oa-segmented__icon {
  display: none;
}

.oa-segmented__btn[aria-pressed="true"] .oa-segmented__check {
  display: inline-block;
}

.oa-segmented__btn:disabled {
  --oa-state: 0;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

/* Forced colors drop the container; the check stays as the selected cue. */
@media (forced-colors: active) {
  .oa-segmented__btn:disabled {
    color: GrayText;
  }
}


/* ---------------------------------------------------------------------------------------------
   3. Stacked below 640px (sm): a column with box corners, dividers on the block start.
   --------------------------------------------------------------------------------------------- */

@media (width < 40rem) {
  .oa-segmented--stack {
    flex-direction: column;
    inline-size: 100%;
    border-radius: var(--radius-box);
  }

  .oa-segmented--stack > .oa-segmented__btn {
    flex: none;
    border-radius: 0;
  }

  .oa-segmented--stack > .oa-segmented__btn + .oa-segmented__btn {
    border-inline-start: 0;
    border-block-start: 1px solid var(--color-outline);
  }

  /* The divider moves to the block start, and the state layer follows it. */
  .oa-segmented--stack > .oa-segmented__btn + .oa-segmented__btn::before {
    inset-inline-start: 0;
    inset-block-start: -1px;
  }

  .oa-segmented--stack > .oa-segmented__btn:first-of-type {
    border-start-start-radius: var(--radius-box);
    border-start-end-radius: var(--radius-box);
  }

  .oa-segmented--stack > .oa-segmented__btn:last-of-type {
    border-end-start-radius: var(--radius-box);
    border-end-end-radius: var(--radius-box);
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/chip.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/chip.css
   Chips, status chips, dot pills, inline status, and code tags (unit c-actions).

   Components
   - Interactive chips (.oa-chip): filter (the default), input, suggestion, and assist chips, md
     48px or sm 32px with a 48px hit area; .oa-chip-group lays them out.
   - Status chip (.oa-status-chip): a non-interactive label of state or kind, in seven tones and the
     eight person-type hues.
   - Dot pill (.oa-dot-pill): the outlined pill with a 10px dot (brand eyebrow, "Live now",
     "Coming soon", archived).
   - Inline status (.oa-inline-status): a filled 16px icon and words in a status ink, no container.
   - Code tag (.oa-code-tag): a mono code in an 8px-corner tag ("AI-100").

   Implements canonical §10.9, §10.0, §2.3, §2.7, §2.11 (categorical), §5.1 to §5.3 (rounded-chip),
   §8.2 (FILL), and D-CAI-14, D-CAI-17, D-CAI-18, D-COL-05, D-COL-07 to D-COL-10, D-COL-18,
   D-SEM-04, D-ARC-04, D-ARC-05, D-ARC-13, D-ARC-14, D-ARC-20, D-ARC-35, V-2, C-11.
   CLIENT CALL (D-CAI-17 = D-SEM-04): chips are pills through --radius-chip; if declined the token
   becomes 8px and nothing here changes.

   Tokens read: --color-outline-variant, --color-on-surface, --color-on-surface-variant,
   --color-primary, --color-primary-ink, --color-primary-container, --color-on-primary-container,
   --color-secondary-container, --color-on-secondary-container, --color-surface-container-lowest,
   --color-surface-container-high, --color-success, --color-success-container,
   --color-on-success-container, --color-warning, --color-warning-container,
   --color-on-warning-container, --color-error, --color-error-container, --color-on-error-container,
   --color-info, --color-info-container, --color-on-info-container, --color-cat-<hue>-container and
   --color-on-cat-<hue>-container for orange, blue, green, plum, teal, indigo, burgundy, and slate,
   --color-focus-ring; --size-button-md, --size-chip-sm, --size-icon-xs, --size-icon-sm,
   --size-focus-ring, --size-focus-offset; --space-1-5, --space-2, --space-3, --space-4;
   --radius-chip, --radius-full, --radius-8px; --font-mono, --font-weight-medium; --text-label-md,
   --text-label-sm, --text-body-md, --text-code-xs with their companions;
   --opacity-state-hover, --opacity-state-pressed, --opacity-state-disabled-container,
   --opacity-state-disabled-content; --duration-short-3; --ease-standard.
   Context property read: --oa-state (reset to 0 at rest on every chip, so a hovered or pressed
   container never paints its layer on the chips inside it). Component-local property:
   --oa-chip-height.

   Classes: .oa-chip (+ --input, --suggestion, --assist, --sm, --sm-from-md; __icon, __check, __label, __input),
   .oa-chip-group (+ --sm), .oa-status-chip (+ --neutral, --primary, --secondary, --success,
   --warning, --error, --info, --cat-orange, --cat-blue, --cat-green, --cat-plum, --cat-teal,
   --cat-indigo, --cat-burgundy, --cat-slate, --sm; __icon), .oa-dot-pill (+ --brand, --live,
   --soon, --archived; __dot), .oa-inline-status (+ --success, --warning, --error, --info, --lg; __icon),
   .oa-code-tag (+ --neutral). */


/* ---------------------------------------------------------------------------------------------
   1. Interactive chip. A pill with an outline-variant hairline (the label identifies it), the label
   in label-md, an optional 18px icon 6px from the label, and the state layer of the label color
   over the border box.
   Filter chip (default): on-surface-variant label, primary-ink leading icon. Selected
   (aria-pressed="true", or a checked native radio inside a <label class="oa-chip">):
   primary-container with on-primary-container and the check in place of the icon. Labels never
   wrap or truncate (D-CAI-17, D-CAI-18, D-ARC-13).
   --------------------------------------------------------------------------------------------- */

.oa-chip {
  --oa-state: 0;
  --oa-chip-height: var(--size-button-md);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-1-5);
  box-sizing: border-box;
  block-size: var(--oa-chip-height);
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-4);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-chip);
  background-color: transparent;
  color: var(--color-on-surface-variant);
  font-family: inherit;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none; /* Safari on iOS reads only the prefixed property */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard),
    color var(--duration-short-3) var(--ease-standard);
}

.oa-chip::before {
  content: "";
  position: absolute;
  inset: -1px; /* the layer covers the 1px border, so hover shows no lighter rim */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-chip:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-chip:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-chip:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

/* A single-choice filter chip is a <label class="oa-chip"> around a native radio
   (.oa-chip__input). The radio is invisible and lies over the whole chip, so the radio itself is
   the chip-sized target; arrow keys move between the radios and the ring follows the radio's
   keyboard focus onto the chip. */
.oa-chip__input {
  position: absolute;
  inset: 0;
  inline-size: 100%; /* engines that size a radio like a replaced box ignore inset alone */
  block-size: 100%;
  margin: 0;
  border-radius: inherit;
  opacity: 0;
  cursor: inherit;
}

.oa-chip:has(> input:focus-visible) {
  outline: var(--size-focus-ring) solid var(--color-focus-ring);
  outline-offset: var(--size-focus-offset);
}

.oa-chip .oa-chip__icon {
  flex-shrink: 0;
  font-size: var(--size-icon-sm);
  color: var(--color-primary-ink);
}

.oa-chip .oa-chip__check {
  display: none;
  font-variation-settings: "FILL" 1;
}

/* The words; an assist chip's label is its polite live region (present from load). */
.oa-chip__label {
  min-inline-size: 0;
}

.oa-chip:is([aria-pressed="true"], :has(> input:checked)) {
  border-color: transparent;
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-chip:is([aria-pressed="true"], :has(> input:checked)) .oa-chip__icon {
  color: inherit;
}

.oa-chip:is([aria-pressed="true"], :has(> input:checked)) .oa-chip__icon:not(.oa-chip__check) {
  display: none;
}

.oa-chip:is([aria-pressed="true"], :has(> input:checked)) .oa-chip__check {
  display: inline-block;
}

/* Input chip: a value the person applied, removed as a whole by pressing it; the 18px close sits
   at the inline end in on-surface-variant. */
.oa-chip--input {
  color: var(--color-on-surface);
}

.oa-chip--input .oa-chip__icon {
  color: var(--color-on-surface-variant);
}

/* Suggestion chip: a ready-made query (a button or a link), no arrow. Assist chip: a helper action
   with a primary-ink leading icon. Both keep the on-surface label. */
.oa-chip--suggestion,
.oa-chip--assist {
  color: var(--color-on-surface);
}

/* sm: 32px, the hit area extended to 48px (9px above and below, the 1px border counted). Rows of
   sm chips keep 16px between them (.oa-chip-group--sm) (D-ARC-04, D-ARC-05). */
.oa-chip--sm {
  --oa-chip-height: var(--size-chip-sm);
}

.oa-chip--sm::after {
  content: "";
  position: absolute;
  inset-block: -9px;
  inset-inline: 0;
}

/* sm from md: console density (canonical §4.11). The chip is the comfortable 48px below 768px and
   the 32px sm chip from 768px, for consoles, which are compact only from md. Use it with
   .oa-chip-group--sm, whose 16px row gap suits both sizes. */
@media (min-width: 48rem) {
  .oa-chip--sm-from-md {
    --oa-chip-height: var(--size-chip-sm);
  }

  .oa-chip--sm-from-md::after {
    content: "";
    position: absolute;
    inset-block: -9px;
    inset-inline: 0;
  }
}

/* Disabled: the hairline at on-surface 12%, the content at 38%, no state layer. */
.oa-chip:is(:disabled, [aria-disabled="true"], :has(> input:disabled)) {
  --oa-state: 0;
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
  background-color: transparent;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-chip:is(:disabled, [aria-disabled="true"], :has(> input:disabled)) .oa-chip__icon {
  color: inherit;
}

@media (forced-colors: active) {
  .oa-chip:has(> input:focus-visible) {
    outline-color: Highlight;
  }

  .oa-chip:is(:disabled, [aria-disabled="true"], :has(> input:disabled)) {
    border-color: GrayText;
    color: GrayText;
  }
}


/* ---------------------------------------------------------------------------------------------
   2. Chip group: a wrapping row 8px apart; --sm keeps 16px between rows of 32px chips so their
   48px hit areas never overlap. Works on a <div role="group">, a <fieldset>, or a <ul>.
   --------------------------------------------------------------------------------------------- */

.oa-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.oa-chip-group--sm {
  row-gap: var(--space-4);
}


/* ---------------------------------------------------------------------------------------------
   3. Status chip: a <span>, no border, rounded-chip. md 32px, 12px inline padding, label-md, an
   optional filled 18px icon 6px from the words; sm 24px, label-sm, no icon. Tones pair each
   container with its on-color; person types use the categorical containers, always with the
   type's label and icon. Status is never color alone: an icon and words (D-CAI-18, D-COL-18).
   A status chip never truncates; the one exception is the top app bar's context chip ("Admin
   console"), which app-nav.css lets shrink and truncate first (canonical §10.15).
   --------------------------------------------------------------------------------------------- */

.oa-status-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-1-5);
  box-sizing: border-box;
  min-block-size: var(--size-chip-sm); /* a minimum: scaled text grows the chip (canonical §4.6) */
  padding-block: 0;
  padding-inline: var(--space-3);
  border-radius: var(--radius-chip);
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  white-space: nowrap;
  vertical-align: middle;
}

.oa-status-chip__icon {
  flex-shrink: 0;
  font-size: var(--size-icon-sm);
  font-variation-settings: "FILL" 1;
}

.oa-status-chip--sm {
  block-size: 24px; /* component constant: the small status chip (D-ARC-04) */
  font-size: var(--text-label-sm);
  line-height: var(--text-label-sm--line-height);
  letter-spacing: var(--text-label-sm--letter-spacing);
  font-weight: var(--text-label-sm--font-weight);
}

.oa-status-chip--sm .oa-status-chip__icon {
  display: none;
}

.oa-status-chip--neutral {
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
}

.oa-status-chip--primary {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-status-chip--secondary {
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
}

.oa-status-chip--success {
  background-color: var(--color-success-container);
  color: var(--color-on-success-container);
}

.oa-status-chip--warning {
  background-color: var(--color-warning-container);
  color: var(--color-on-warning-container);
}

.oa-status-chip--error {
  background-color: var(--color-error-container);
  color: var(--color-on-error-container);
}

.oa-status-chip--info {
  background-color: var(--color-info-container);
  color: var(--color-on-info-container);
}

/* Person types (Global ID binds the hues; any product showing a person type uses them). */
.oa-status-chip--cat-orange {
  background-color: var(--color-cat-orange-container);
  color: var(--color-on-cat-orange-container);
}

.oa-status-chip--cat-blue {
  background-color: var(--color-cat-blue-container);
  color: var(--color-on-cat-blue-container);
}

.oa-status-chip--cat-green {
  background-color: var(--color-cat-green-container);
  color: var(--color-on-cat-green-container);
}

.oa-status-chip--cat-plum {
  background-color: var(--color-cat-plum-container);
  color: var(--color-on-cat-plum-container);
}

.oa-status-chip--cat-teal {
  background-color: var(--color-cat-teal-container);
  color: var(--color-on-cat-teal-container);
}

.oa-status-chip--cat-indigo {
  background-color: var(--color-cat-indigo-container);
  color: var(--color-on-cat-indigo-container);
}

.oa-status-chip--cat-burgundy {
  background-color: var(--color-cat-burgundy-container);
  color: var(--color-on-cat-burgundy-container);
}

.oa-status-chip--cat-slate {
  background-color: var(--color-cat-slate-container);
  color: var(--color-on-cat-slate-container);
}


/* ---------------------------------------------------------------------------------------------
   4. Dot pill: an outlined pill at least 34px tall, opaque surface-container-lowest everywhere
   (no glass, C-11), body-md at weight 500 in on-surface-variant, a 10px dot colored by meaning.
   The dot is decorative (aria-hidden) and never pulses: real-time states use the status
   indicator. The words wrap on narrow screens (D-CAI-18, D-ARC-35).
   --------------------------------------------------------------------------------------------- */

.oa-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-sizing: border-box;
  max-inline-size: 100%;
  min-block-size: 34px; /* component constant: the dot pill (D-CAI-18) */
  margin: 0;
  padding-block: var(--space-1-5);
  padding-inline: var(--space-2) var(--space-4);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-lowest);
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  vertical-align: middle;
}

.oa-dot-pill__dot {
  flex-shrink: 0;
  inline-size: 10px; /* component constant: the dot pill's dot (D-ARC-35) */
  block-size: 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-on-surface-variant);
}

.oa-dot-pill--brand .oa-dot-pill__dot {
  background-color: var(--color-primary);
}

.oa-dot-pill--live .oa-dot-pill__dot {
  background-color: var(--color-success);
}

.oa-dot-pill--soon .oa-dot-pill__dot {
  background-color: var(--color-warning);
}

.oa-dot-pill--archived .oa-dot-pill__dot {
  background-color: var(--color-on-surface-variant);
}


/* ---------------------------------------------------------------------------------------------
   5. Inline status: a filled 16px icon and body-md words at weight 500 in the status ink, no
   container ("Verified employer", "Closes in 4 days") (D-CAI-18).
   --------------------------------------------------------------------------------------------- */

.oa-inline-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  vertical-align: middle;
}

.oa-inline-status__icon {
  flex-shrink: 0;
  font-size: var(--size-icon-xs);
  font-variation-settings: "FILL" 1;
}

/* --lg: the size of a body-lg line, for a status that sits in a row of body-lg facts with 20px
   icons (a job's "Closes in 4 days" beside its location and pay): body-lg words and a 20px icon,
   8px apart, as the facts beside it. */
.oa-inline-status--lg {
  gap: var(--space-2);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
}

.oa-inline-status--lg .oa-inline-status__icon {
  font-size: var(--size-icon-md);
}

.oa-inline-status--success {
  color: var(--color-success);
}

.oa-inline-status--warning {
  color: var(--color-warning);
}

.oa-inline-status--error {
  color: var(--color-error);
}

.oa-inline-status--info {
  color: var(--color-info);
}


/* ---------------------------------------------------------------------------------------------
   6. Code tag: 24px, 8px inline padding, 8px corners, primary-container (or --neutral
   surface-container-high) with its on-color, mono code-xs. Mark it dir="ltr" translate="no"
   (D-CAI-18, D-ARC-14, D-ARC-20).
   --------------------------------------------------------------------------------------------- */

.oa-code-tag {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  box-sizing: border-box;
  block-size: 24px; /* component constant: the code tag, h-6 (canonical §10.9) */
  padding-block: 0;
  padding-inline: var(--space-2);
  border-radius: var(--radius-8px);
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  font-family: var(--font-mono);
  font-size: var(--text-code-xs);
  line-height: var(--text-code-xs--line-height);
  letter-spacing: var(--text-code-xs--letter-spacing);
  font-weight: var(--text-code-xs--font-weight);
  white-space: nowrap;
  vertical-align: middle;
}

.oa-code-tag--neutral {
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
}


/* ---------------------------------------------------------------------------------------------
   reference/css/inputs.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/inputs.css
   Text fields and the field family (unit c-inputs).

   Components
   - Text field (.oa-field): label above, optional marker, the 56px box, helper, error and lock lines;
     textarea, select (--select), one-time code (--code) and read-only (--readonly) members.
   - Phone number (.oa-phone): one fieldset, a country select defaulting to +961 and a tel input.
   - File and photo upload (.oa-file): a button-styled label around the native file input, its hint
     and error, the file name and a 4:5 photo preview.
   - Search (.oa-search): the role="search" region with its leading icon and Clear search button, and
     the Jobs search panel (--panel).
   - Field group (.oa-fieldset): fieldset, legend, hint and group error, shared with selection.css.

   Implements canonical §10.0, §10.4, §2.7, §3.5, §3.8, §6.2, §6.3, §8.4, §12.4, §13, §14.2 and
   D-CAI-01, D-CAI-09, D-CAI-10, D-CAI-11, D-CAI-20, D-SEM-03, D-SEM-10, D-COL-05, D-COL-11, D-ARC-02,
   D-ARC-04, D-ARC-05, D-ARC-21, D-ARC-25, D-BCP-30, D-BCP-34; CLIENT CALL D-CAI-09 = D-SEM-03 (label
   above, 12px radius) is the default applied here.

   Tokens read: --color-on-surface, --color-on-surface-variant, --color-outline, --color-outline-variant,
   --color-surface-container-lowest, --color-surface-container-high, --color-primary-ink, --color-error,
   --color-focus-ring; --size-field, --size-icon-xs, --size-icon-md, --size-icon-lg, --size-focus-ring,
   --size-focus-offset; --space-1, --space-1-5, --space-2, --space-3, --space-4, --space-12,
   --space-14, --space-28; --radius-field, --radius-card; --text-label-md, --text-body-lg,
   --text-body-md, --text-code-lg (each with its --line-height, --letter-spacing and --font-weight
   companions); --font-mono, --font-weight-medium; --opacity-state-disabled-container,
   --opacity-state-disabled-content; --duration-short-3; --ease-standard.
   Context property read: --oa-state (the state layer of .oa-btn, switched off on a disabled picker).
   Component-local property: --oa-field-line (the height of one message line, registered below).

   Classes: .oa-field (+ --select, --code, --readonly; __label, __optional, __control, __input,
   __leading, __trailing, __message, __error), .oa-phone (+ __row), .oa-file (+ __picker, __input,
   __hint, __error, __name, __preview), .oa-search (+ --panel; __clear), .oa-fieldset (+ __legend, __hint, __error).

   Relies on base.css for .oa-icon, the global :focus-visible ring, [data-demo-focus], [hidden] and the
   reduced-motion switch; on button.css for .oa-btn and .oa-icon-btn (the file picker and the trailing
   icon buttons); on card.css for .oa-card (the search panel). Breakpoint: sm 40rem (640px). */


/* ---------------------------------------------------------------------------------------------
   1. The field. One anatomy for every member: a label row above (label-md, wraps, never
   truncated), the 56px box, then one message row (helper, error or lock) 4px below
   (D-CAI-09, D-ARC-21; CLIENT CALL D-CAI-09 = D-SEM-03, default label above).
   --------------------------------------------------------------------------------------------- */

/* The height of one message line, measured where the message is set (1lh), so a 16px icon centers
   on the first line in English and in Arabic, whose body-md line is taller (D-TYP-14). */
@property --oa-field-line {
  syntax: "<length>";
  inherits: true;
  initial-value: 20px;
}

.oa-field {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.oa-field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-2);
  margin-block-end: var(--space-1-5);
  color: var(--color-on-surface);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

/* "(optional)" after the label; required fields carry no marker and no asterisk (D-CAI-10). */
.oa-field__optional {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* The control box holds the input and its icons. Latin-only values (email, phone, password, codes,
   Global ID numbers) set dir="ltr" here, never on the label or the messages (D-BCP-30). */
.oa-field__control {
  position: relative;
  display: block;
  min-inline-size: 0;
}

/* The box: 56px, 12px radius, white fill (a well in dark), a 1px outline edge, 16px text so phones
   do not zoom (D-CAI-09, D-COL-11, canonical §3.8). No hover state (D-CAI-10). */
.oa-field__input {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: var(--size-field); /* a minimum, so scaled text grows the box instead of clipping (canonical §4.6) */
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-4);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-field);
  background-color: var(--color-surface-container-lowest);
  color: var(--color-on-surface);
  font-family: inherit;
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
  text-overflow: ellipsis;
  transition:
    border-color var(--duration-short-3) var(--ease-standard),
    background-color var(--duration-short-3) var(--ease-standard),
    color var(--duration-short-3) var(--ease-standard);
}

/* Placeholders are only "For example: …", at the full strength of on-surface-variant (D-CAI-10). */
.oa-field__input::placeholder {
  color: var(--color-on-surface-variant);
}

/* Leading icon: a 20px icon 16px from the inline start, centered; the value moves to 48px
   (D-CAI-11). __leading is a span around the .oa-icon: the icon box is always left to right, so the
   wrapper places it by the control's own direction and the icon follows it in Arabic (D-BCP-30). */
.oa-field__leading {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--space-4);
  display: flex;
  align-items: center;
  color: var(--color-on-surface-variant);
  pointer-events: none;
}

.oa-field__leading > .oa-icon {
  font-size: var(--size-icon-md);
}

.oa-field__leading ~ .oa-field__input {
  padding-inline-start: var(--space-12);
}

/* Trailing action: a 48px standard icon button (.oa-icon-btn) 4px from the top and the inline end;
   the value keeps 56px clear of it (canonical §10.2, §10.4). */
.oa-field__control > .oa-field__trailing {
  position: absolute;
  inset-block-start: var(--space-1);
  inset-inline-end: var(--space-1);
}

.oa-field__control:has(> .oa-field__trailing:not([hidden])) > .oa-field__input {
  padding-inline-end: var(--space-14);
}

/* Read-only: a hairline edge, no fill, still focusable and selectable, with a lock line that says
   where the value comes from ("From the Registrar") (D-CAI-10). Written before focus so focus wins. */
.oa-field--readonly .oa-field__input,
.oa-field__input[readonly] {
  border-color: var(--color-outline-variant);
  background-color: transparent;
}

/* Focus: the base ring (3px, 2px outside, following the 12px radius) plus a primary-ink edge
   (D-CAI-10, D-SEM-11). [data-demo-focus] shows it on documentation pages. */
.oa-field__input:is(:focus, [data-demo-focus]) {
  border-color: var(--color-primary-ink);
}

/* Error: an error edge (written after focus, so a focused invalid field keeps it), 2px while focused
   with no shift: the border plus a 1px inset line, as the selected choice card draws its edge
   (canonical §6.2, §10.7). The label stays on-surface; the message carries the error. */
.oa-field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.oa-field__input[aria-invalid="true"]:is(:focus, [data-demo-focus]) {
  box-shadow: inset 0 0 0 1px var(--color-error);
}

/* Disabled: the edge at 12% of on-surface, no fill, content at 38%; never used to signal invalid
   input (D-CAI-06, D-ARC-33, canonical §2.7). */
.oa-field__input:disabled {
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
  background-color: transparent;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-field__input:disabled::placeholder {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

.oa-field:has(.oa-field__input:disabled) :is(.oa-field__label, .oa-field__optional, .oa-field__message, .oa-field__leading, .oa-field__trailing) {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

/* Messages: helper, error or lock, 4px under the box, body-md; an icon is 16px and centers on the
   first line. Errors replace the helper: a filled error icon and words at font-medium (D-CAI-10,
   D-ARC-21). Messages are tied with aria-describedby and are never live regions. */
.oa-field__message,
.oa-field__error,
.oa-file__hint,
.oa-file__error {
  --oa-field-line: 1lh;
  display: flex;
  align-items: flex-start;
  gap: var(--space-1-5);
  margin-block: var(--space-1) 0;
  margin-inline: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  overflow-wrap: anywhere;
}

.oa-field__message,
.oa-file__hint {
  color: var(--color-on-surface-variant);
}

.oa-field__error,
.oa-file__error {
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

.oa-field__message > .oa-icon,
.oa-field__error > .oa-icon,
.oa-file__hint > .oa-icon,
.oa-file__error > .oa-icon {
  font-size: var(--size-icon-xs);
  margin-block-start: max(0px, calc((var(--oa-field-line) - var(--size-icon-xs)) / 2));
}

/* The lock line of a read-only field is a message at font-medium (D-CAI-10). */
.oa-field--readonly .oa-field__message:has(> .oa-icon) {
  font-weight: var(--font-weight-medium);
}


/* ---------------------------------------------------------------------------------------------
   2. Field family members (D-CAI-11).
   --------------------------------------------------------------------------------------------- */

/* Textarea: from 112px, 12px × 16px padding, resized vertically only (canonical §10.4). */
textarea.oa-field__input {
  block-size: auto;
  min-block-size: var(--space-28);
  padding-block: var(--space-3);
  resize: vertical;
  text-overflow: clip;
}

/* Select: the native select drawn as a field, its own arrow removed and a 24px arrow_drop_down
   12px from the inline end, in a span like the leading icon; a select whose control box is
   dir="ltr" keeps the arrow on the physical right in Arabic (D-CAI-11, D-BCP-34). The value keeps
   48px clear of it. Phones open their own picker. */
.oa-field.oa-field--select .oa-field__control > .oa-field__input {
  appearance: none;
  padding-inline-end: var(--space-12);
  cursor: pointer;
}

.oa-field.oa-field--select .oa-field__control > .oa-field__trailing {
  inset-block: 0;
  inset-inline-end: var(--space-3);
  display: flex;
  align-items: center;
  color: var(--color-on-surface-variant);
  pointer-events: none;
}

.oa-field--select .oa-field__trailing > .oa-icon {
  font-size: var(--size-icon-lg);
}

.oa-field.oa-field--select .oa-field__control > .oa-field__input:disabled {
  cursor: default;
}

/* One-time code: one field, never split boxes; the value in mono code-lg, tracked +0.12em
   (canonical §3.5, §10.4, D-TYP-13). The control box is dir="ltr". */
.oa-field--code .oa-field__input {
  font-family: var(--font-mono);
  font-size: var(--text-code-lg);
  line-height: var(--text-code-lg--line-height);
  letter-spacing: var(--text-code-lg--letter-spacing);
  font-weight: var(--text-code-lg--font-weight);
}

/* Search: drawn as a plain field; WebKit's own clear button is hidden, as the field shows its
   "Clear search" button instead (D-CAI-11). */
.oa-field__input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

.oa-field__input[type="search"]::-webkit-search-cancel-button,
.oa-field__input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}


/* ---------------------------------------------------------------------------------------------
   3. Field groups. A fieldset with a legend in the field-label style; a group's hint or error sits
   right under the legend (D-CAI-12). The phone fieldset puts its hint under the controls, as a
   field does (D-CAI-11).
   --------------------------------------------------------------------------------------------- */

.oa-fieldset {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.oa-fieldset__legend {
  margin-block-end: var(--space-1-5);
  padding: 0;
  color: var(--color-on-surface);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-fieldset__hint,
.oa-fieldset__error {
  --oa-field-line: 1lh;
  display: flex;
  align-items: flex-start;
  gap: var(--space-1-5);
  margin-block: 0 var(--space-1);
  margin-inline: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  overflow-wrap: anywhere;
}

.oa-fieldset__hint {
  color: var(--color-on-surface-variant);
}

.oa-fieldset__error {
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

.oa-fieldset__error > .oa-icon {
  font-size: var(--size-icon-xs);
  margin-block-start: max(0px, calc((var(--oa-field-line) - var(--size-icon-xs)) / 2));
}

.oa-fieldset:disabled :is(.oa-fieldset__legend, .oa-fieldset__hint) {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}


/* ---------------------------------------------------------------------------------------------
   4. Phone number. The legend "Phone number" names the group and the tel input; the select is
   named "Country code" and defaults to +961 Lebanon. Both control boxes are dir="ltr"; the pair
   follows the page direction, country at the inline start, in Global ID's 0.95fr / 1.35fr grid with
   a 12px gap. The country column never gets narrower than two field heights and a 16px gap (128px),
   so the closed select may cut the country name at 390px but always shows the whole calling code,
   "+961" apart from "+962", down to a 320px window (D-CAI-11, canonical §14.3).
   --------------------------------------------------------------------------------------------- */

.oa-phone__row {
  display: grid;
  grid-template-columns: minmax(calc(2 * var(--size-field) + var(--space-4)), 0.95fr) minmax(0, 1.35fr);
  column-gap: var(--space-3);
}

.oa-phone__row + :is(.oa-fieldset__hint, .oa-fieldset__error) {
  margin-block: var(--space-1) 0;
}


/* ---------------------------------------------------------------------------------------------
   5. File and photo upload. The picker is a <label> drawn as a button (.oa-btn: outlined md, or
   filled lg when choosing the file is the view's main action) around the native file input, which
   covers the whole label, transparent, so the label's own box is the target. The label draws the
   ring while the input has keyboard focus. After choosing: the file name, or a 4:5 photo preview
   (D-CAI-11). No drag-and-drop zone in 1.0.
   --------------------------------------------------------------------------------------------- */

.oa-file {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-inline-size: 0;
}

/* The picker keeps its own width; the rows (name, hint, actions) take the full width. */
.oa-file > .oa-file__picker {
  align-self: flex-start;
}

/* 12px between the parts; the hint or error sits 4px under the picker, like a field's message. */
.oa-file > * + * {
  margin-block-start: var(--space-3);
}

.oa-file > * + :is(.oa-file__hint, .oa-file__error) {
  margin-block-start: var(--space-1);
}

.oa-file__picker {
  cursor: pointer;
}

.oa-file__input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.oa-file__picker:has(.oa-file__input:focus-visible) {
  outline: var(--size-focus-ring) solid var(--color-focus-ring);
  outline-offset: var(--size-focus-offset);
}

/* Disabled, as button.css draws a disabled button (a label cannot be :disabled itself): the label at
   38%, a filled or tonal fill at 12%, an outlined edge at 12%, no state layer (D-ARC-33). */
.oa-file__picker:has(.oa-file__input:disabled) {
  --oa-state: 0;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-file__picker:is(.oa-btn--filled, .oa-btn--tonal):has(.oa-file__input:disabled) {
  background-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

.oa-file__picker.oa-btn--outlined:has(.oa-file__input:disabled) {
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

.oa-file__picker:has(.oa-file__input:disabled) .oa-file__input {
  cursor: default;
}

@media (forced-colors: active) {
  .oa-file__picker:has(.oa-file__input:disabled) {
    border-color: GrayText;
    color: GrayText;
  }
}

/* The chosen file's name: body-md at font-medium; long names wrap anywhere (canonical §3.8). */
.oa-file__name {
  color: var(--color-on-surface);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}

/* The photo preview: portrait 4:5, up to 240px, on the card radius; the fill shows while the image
   decodes (D-BCP-36, D-CAI-11). */
.oa-file__preview {
  display: block;
  inline-size: 100%;
  max-inline-size: 240px; /* component constant: the photo preview (D-CAI-11) */
  block-size: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
  background-color: var(--color-surface-container-high);
}


/* ---------------------------------------------------------------------------------------------
   6. Search. A role="search" region named for what it searches ("Search jobs"); the field has a
   leading search icon, type="search", enterkeyhint="search" and, once it holds text, a trailing
   48px "Clear search" button (.oa-search__clear with the hidden attribute while empty) that empties
   it and returns focus to the input (D-CAI-11, D-BCP-34).
   --panel is the Jobs search panel on an outlined card (.oa-card): keyword, location and a filled
   lg "Search" in one row from 640px (minmax(0, 1fr) 13rem auto, aligned to the bottom), stacked
   with a full-width button below (canonical §11 template 4, §15).
   --------------------------------------------------------------------------------------------- */

.oa-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-inline-size: 0;
  margin: 0;
}

.oa-search.oa-search--panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.oa-search--panel > .oa-btn {
  inline-size: 100%;
}

@media (width >= 40rem) {
  .oa-search.oa-search--panel {
    grid-template-columns: minmax(0, 1fr) 13rem auto; /* component constant: the location column (D-CAI-11) */
    align-items: end;
  }

  .oa-search--panel > .oa-btn {
    inline-size: auto;
    min-inline-size: 112px; /* component constant: the panel's Search button (D-CAI-11) */
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/selection.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/selection.css
   Checkbox, radio, switch and choice card (unit c-inputs).

   Components
   - Checkbox and radio row (.oa-check): a native <input type="checkbox|radio"> inside a <label> row at
     least 48px tall, with an optional hint and a count at the inline end.
   - Switch (.oa-switch) and its setting row (.oa-switch-field).
   - Choice card (.oa-choice) and its group (.oa-choice-group, + --grid, --likert).

   The box. Every checkbox and radio is the native input element (semantics, keyboard, forms,
   :indeterminate). This file draws it with appearance: none to the system's drawn geometry: a 20px
   box with a 2px outline edge and a 4px radius, checked in primary-ink with a surface tick; a radio
   is a 20px ring with a 10px primary-ink dot (canonical §10.5). The input's own box is 24px, the
   drawing 2px inside it, so the input itself meets the 24px minimum target and the 48px label row
   is the full target. Tailwind products keep the native drawing with accent-color (D-CAI-12); both
   read as the same control.

   Implements canonical §10.0, §10.5, §10.6, §10.7, §2.4, §2.7, §6.2, §6.3, §7.1, §7.3, §13 and
   D-CAI-01, D-CAI-12, D-CAI-13, D-CAI-14, D-CAI-15, D-CAI-20, D-ARC-11, D-ARC-14, D-ARC-32, D-ARC-33,
   D-ARC-35, D-SEM-10, D-SEM-16, D-COL-05, D-LAY-02, C-10, V-1.

   Tokens read: --color-on-surface, --color-on-surface-variant, --color-outline, --color-outline-variant,
   --color-surface, --color-surface-container-lowest, --color-surface-container-highest,
   --color-primary-ink, --color-primary-container, --color-on-primary-container, --color-focus-ring;
   --size-touch-target, --size-icon-xs, --size-icon-lg, --size-focus-ring, --size-focus-offset;
   --space-2, --space-3, --space-4, --space-14; --radius-4px, --radius-8px, --radius-box,
   --radius-full; --text-body-lg, --text-body-md, --text-title-sm (each with its --line-height,
   --letter-spacing and --font-weight companions); --opacity-state-hover, --opacity-state-pressed,
   --opacity-state-disabled-container, --opacity-state-disabled-content; --duration-short-3,
   --duration-short-4; --ease-standard; --z-behind.
   Context property read: --oa-state (the state-layer opacity; documentation pages force it inline).
   Component-local properties: --oa-choice-line (one title line, registered below),
   --oa-choice-columns (columns of a --grid group).

   Classes: .oa-check (+ __input, __label, __hint, __count), .oa-switch (+ __track, __thumb),
   .oa-switch-field (+ __text, __label, __hint), .oa-choice (+ __indicator, __icon, __content,
   __title, __desc), .oa-choice-group (+ --grid, --likert).

   Relies on base.css for .oa-icon, the global :focus-visible ring, [data-demo-focus] and the
   reduced-motion switch (the switch thumb then jumps), and on inputs.css for .oa-fieldset (group
   legend, hint and error). Breakpoints: sm 40rem (640px) for grids and lg 64rem (1024px) for Likert
   scales: canonical §10.7 names the medium and expanded window classes, which start at sm and lg
   in the family's breakpoints (D-LAY-02). */


/* ---------------------------------------------------------------------------------------------
   1. The drawn box, shared by the checkbox row and the choice card. Component constants: the 24px
   input box, the 20px drawing 2px inside it, the 10px radio dot (D-ARC-35).
   --------------------------------------------------------------------------------------------- */

.oa-check__input,
.oa-choice__indicator {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  inline-size: 24px;
  block-size: 24px;
  margin-block: max(0px, calc((1lh - 24px) / 2)) 0; /* centers the box on the first text line */
  margin-inline: 0;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius-4px) + 2px); /* 4px on the 20px drawing */
  background-color: transparent;
  color: var(--color-surface);
  appearance: none;
  cursor: pointer;
}

/* The 20px box: a 2px outline edge (canonical §2.4, §6.2, V-1). */
.oa-check__input::before,
.oa-choice__indicator::before {
  content: "";
  position: absolute;
  inset: 2px;
  box-sizing: border-box;
  border: 2px solid var(--color-outline);
  border-radius: var(--radius-4px);
  background-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard);
}

/* The tick, the indeterminate bar and the radio dot. */
.oa-check__input::after,
.oa-choice__indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  opacity: 0;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

.oa-check__input[type="checkbox"]::after,
.oa-choice__indicator[type="checkbox"]::after {
  clip-path: polygon(40.75% 73.1%, 17.6% 50%, 24.1% 43.5%, 40.75% 60%, 75.8% 24.9%, 82.4% 32.4%);
}

.oa-check__input[type="checkbox"]:indeterminate::after,
.oa-choice__indicator[type="checkbox"]:indeterminate::after {
  clip-path: inset(45.5% 27% 45.5% 27%);
}

/* Checked and indeterminate checkbox: the primary-ink fill with a surface tick or bar (D-CAI-12). */
:is(.oa-check__input, .oa-choice__indicator)[type="checkbox"]:is(:checked, :indeterminate)::before {
  border-color: var(--color-primary-ink);
  background-color: var(--color-primary-ink);
}

:is(.oa-check__input, .oa-choice__indicator)[type="checkbox"]:is(:checked, :indeterminate)::after {
  opacity: 1;
}

/* Radio: a ring, and a 10px primary-ink dot when checked. */
:is(.oa-check__input, .oa-choice__indicator)[type="radio"],
:is(.oa-check__input, .oa-choice__indicator)[type="radio"]::before,
:is(.oa-check__input, .oa-choice__indicator)[type="radio"]::after {
  border-radius: var(--radius-full);
}

:is(.oa-check__input, .oa-choice__indicator)[type="radio"]::after {
  inset: 7px;
  color: var(--color-primary-ink);
}

:is(.oa-check__input, .oa-choice__indicator)[type="radio"]:checked::before {
  border-color: var(--color-primary-ink);
}

:is(.oa-check__input, .oa-choice__indicator)[type="radio"]:checked::after {
  opacity: 1;
}

/* Focus: the family ring 2px outside the drawn box, which sits 2px inside the input (canonical §6.3,
   D-CAI-20). In a choice card the card draws the ring instead (section 4). */
.oa-check__input:is(:focus-visible, [data-demo-focus]),
.oa-choice__indicator:is(:focus-visible, [data-demo-focus]) {
  outline-offset: calc(var(--size-focus-offset) - 2px);
}

/* Disabled: edges and fills at 38% of on-surface, the tick in surface; never to signal invalid input
   (canonical §2.7, D-CAI-06). */
.oa-check__input:disabled,
.oa-choice__indicator:disabled {
  cursor: default;
}

:is(.oa-check__input, .oa-choice__indicator):disabled::before {
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

:is(.oa-check__input, .oa-choice__indicator)[type="checkbox"]:disabled:is(:checked, :indeterminate)::before {
  border-color: transparent;
  background-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

:is(.oa-check__input, .oa-choice__indicator)[type="radio"]:disabled::after {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

/* Forced colors: shadows and fills give way to system colors; the edge is the ::before border,
   checked states take Highlight (D-SEM-10, D-BCP-25). */
@media (forced-colors: active) {
  .oa-check__input::before,
  .oa-choice__indicator::before {
    border-color: CanvasText;
  }

  :is(.oa-check__input, .oa-choice__indicator)[type="checkbox"]:is(:checked, :indeterminate)::before {
    forced-color-adjust: none;
    border-color: Highlight;
    background-color: Highlight;
  }

  :is(.oa-check__input, .oa-choice__indicator)[type="checkbox"]:is(:checked, :indeterminate)::after {
    forced-color-adjust: none;
    background-color: HighlightText;
  }

  :is(.oa-check__input, .oa-choice__indicator)[type="radio"]:checked::before {
    border-color: Highlight;
  }

  :is(.oa-check__input, .oa-choice__indicator)[type="radio"]:checked::after {
    forced-color-adjust: none;
    background-color: Highlight;
  }

  :is(.oa-check__input, .oa-choice__indicator):disabled::before,
  :is(.oa-check__input, .oa-choice__indicator):disabled:checked::before {
    border-color: GrayText;
  }
}


/* ---------------------------------------------------------------------------------------------
   2. Checkbox and radio row. A <label> at least 48px tall: 12px gap, 12px × 8px padding, the 8px
   hover shape and the state layer of on-surface on the whole row; the label in body-lg, an
   optional hint in body-md on-surface-variant, an optional count in tabular body-md at the inline
   end. Groups are a fieldset (.oa-fieldset) with the hint or error under the legend; rows stack
   with no gap (D-CAI-12, D-ARC-14, D-ARC-35).
   --------------------------------------------------------------------------------------------- */

.oa-check {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: start;
  box-sizing: border-box;
  min-block-size: var(--size-touch-target);
  padding-block: var(--space-3);
  padding-inline: var(--space-2);
  border-radius: var(--radius-8px);
  color: var(--color-on-surface);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-check::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-check:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-check:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-check:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-check__input {
  grid-row: 1 / span 2;
}

.oa-check__label {
  grid-column: 2;
  align-self: baseline;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.oa-check__hint {
  grid-column: 2;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-check__count {
  grid-column: 3;
  grid-row: 1;
  align-self: baseline;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-check:has(.oa-check__input:disabled) {
  --oa-state: 0;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-check:has(.oa-check__input:disabled) :is(.oa-check__hint, .oa-check__count) {
  color: inherit;
}


/* ---------------------------------------------------------------------------------------------
   3. Switch. <button type="button" role="switch" aria-checked> with a 64×48 hit area (a pill, the
   state layer of on-surface) holding a 52×32 track with a 2px border (D-CAI-13, D-ARC-11, D-ARC-33).
   On: the track in primary-ink with a transparent border; a 24px surface-container-lowest thumb at
   the inline end holding a 16px primary-ink check. Off: a surface-container-highest track with a
   2px outline border; a 16px outline thumb at the inline start. The thumb slides over short-4
   standard and jumps under reduced motion (C-10). A switch applies at once; in a form submitted
   later, use a checkbox. Component constants: 64×48, 52×32, thumbs 16 and 24 (D-CAI-13).
   --------------------------------------------------------------------------------------------- */

.oa-switch {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: 64px;
  block-size: var(--size-touch-target);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-on-surface);
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-switch:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-switch:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-switch:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-switch__track {
  position: relative;
  display: block;
  box-sizing: border-box;
  inline-size: 52px;
  block-size: 32px;
  border: 2px solid var(--color-outline);
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-highest);
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard);
}

.oa-switch__thumb {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 6px; /* 8px from the track's outer edge */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: 16px;
  block-size: 16px;
  margin-block: auto;
  border-radius: var(--radius-full);
  background-color: var(--color-outline);
  color: var(--color-primary-ink);
  transition:
    inset-inline-start var(--duration-short-4) var(--ease-standard),
    inline-size var(--duration-short-4) var(--ease-standard),
    block-size var(--duration-short-4) var(--ease-standard),
    background-color var(--duration-short-4) var(--ease-standard); /* the thumb changes as it moves */
}

.oa-switch__thumb > .oa-icon {
  font-size: var(--size-icon-xs);
  opacity: 0;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

.oa-switch[aria-checked="true"] .oa-switch__track {
  border-color: transparent;
  background-color: var(--color-primary-ink);
}

.oa-switch[aria-checked="true"] .oa-switch__thumb {
  inset-inline-start: 22px; /* 4px from the track's outer inline end */
  inline-size: 24px;
  block-size: 24px;
  background-color: var(--color-surface-container-lowest);
}

.oa-switch[aria-checked="true"] .oa-switch__thumb > .oa-icon {
  opacity: 1;
}

/* Disabled: the parts take the disabled mixes, never opacity on the whole control (D-ARC-33). */
.oa-switch:disabled {
  --oa-state: 0;
  cursor: default;
}

.oa-switch:disabled .oa-switch__track {
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
  background-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
}

.oa-switch:disabled .oa-switch__thumb {
  background-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

.oa-switch[aria-checked="true"]:disabled .oa-switch__track {
  border-color: transparent;
}

.oa-switch[aria-checked="true"]:disabled .oa-switch__thumb {
  background-color: var(--color-surface-container-lowest);
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}

@media (forced-colors: active) {
  .oa-switch__track,
  .oa-switch__thumb {
    forced-color-adjust: none;
  }

  .oa-switch__track {
    border-color: CanvasText;
    background-color: Canvas;
  }

  .oa-switch__thumb {
    background-color: CanvasText;
    color: Canvas;
  }

  .oa-switch[aria-checked="true"] .oa-switch__track {
    border-color: Highlight;
    background-color: Highlight;
  }

  .oa-switch[aria-checked="true"] .oa-switch__thumb {
    background-color: HighlightText;
    color: Highlight;
  }

  .oa-switch:disabled .oa-switch__track {
    border-color: GrayText;
    background-color: Canvas;
  }

  .oa-switch:disabled .oa-switch__thumb {
    background-color: GrayText;
    color: Canvas;
  }
}

/* The setting row: the setting's name (title-sm, which names the switch through aria-labelledby)
   and an optional hint (body-md, aria-describedby) at the inline start, the switch at the inline
   end. 12px block padding, as a checkbox row has, keeps stacked rows apart (canonical §10.5).
   Inside a list, use the list row instead: it supplies the padding and the 72px height
   (canonical §10.12). */
.oa-switch-field {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-block-size: var(--size-touch-target);
  padding-block: var(--space-3);
}

.oa-switch-field__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-inline-size: 0;
}

.oa-switch-field__label {
  color: var(--color-on-surface);
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-switch-field__hint {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  overflow-wrap: anywhere;
}

.oa-switch-field:has(.oa-switch:disabled) :is(.oa-switch-field__label, .oa-switch-field__hint) {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
}


/* ---------------------------------------------------------------------------------------------
   4. Choice card. A <label> around a visible native radio or checkbox: rounded-box, a 1px
   outline-variant hairline (the indicator identifies the control, V-2), surface-container-lowest,
   at least 56px, 12px × 16px padding, 16px gap, the indicator at the inline start, an optional
   24px icon, the title in title-sm and the description in body-md on-surface-variant (D-CAI-15).
   Selected: primary-container with a 2px primary-ink edge that does not shift (the border plus a
   1px inset line), the title and icon in on-primary-container (D-CAI-14, D-ARC-32). Hover and press
   use the layer; the card draws the ring while its input has keyboard focus.
   --------------------------------------------------------------------------------------------- */

/* One title line, measured on the card (1lh), so the 24px icon centers on it in every language. */
@property --oa-choice-line {
  syntax: "<length>";
  inherits: true;
  initial-value: 24px;
}

.oa-choice {
  --oa-choice-line: 1lh;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  box-sizing: border-box;
  min-block-size: var(--space-14);
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-box);
  background-color: var(--color-surface-container-lowest);
  color: var(--color-on-surface);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard),
    color var(--duration-short-3) var(--ease-standard);
}

/* The state layer covers the card's border box, so hover shows no lighter rim at the 1px edge. */
.oa-choice::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-choice:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-choice:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-choice:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-choice__icon {
  font-size: var(--size-icon-lg);
  margin-block-start: max(0px, calc((var(--oa-choice-line) - var(--size-icon-lg)) / 2));
  color: var(--color-on-surface-variant);
}

.oa-choice__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-inline-size: 0;
}

.oa-choice__title {
  color: inherit;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
  overflow-wrap: anywhere;
}

.oa-choice__desc {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-choice:has(.oa-choice__indicator:checked) {
  border-color: var(--color-primary-ink);
  background-color: var(--color-primary-container);
  box-shadow: inset 0 0 0 1px var(--color-primary-ink);
  color: var(--color-on-primary-container);
}

/* A selected card's icon takes its on-color and the filled glyph (canonical §8.2). */
.oa-choice:has(.oa-choice__indicator:checked) .oa-choice__icon {
  color: var(--color-on-primary-container);
  font-variation-settings: "FILL" 1;
}

/* The card draws the ring; the indicator's own outline stays transparent (forced colors still
   draw it) (D-CAI-15). */
.oa-choice:has(.oa-choice__indicator:focus-visible) {
  outline: var(--size-focus-ring) solid var(--color-focus-ring);
  outline-offset: var(--size-focus-offset);
}

.oa-choice__indicator:focus-visible {
  outline-color: transparent;
}

.oa-choice:has(.oa-choice__indicator:disabled) {
  --oa-state: 0;
  border-color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-container) * 100%), transparent);
  box-shadow: none;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-choice:has(.oa-choice__indicator:disabled) :is(.oa-choice__icon, .oa-choice__desc) {
  color: inherit;
}

@media (forced-colors: active) {
  .oa-choice:has(.oa-choice__indicator:checked):not(:has(:focus-visible)) {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}

/* Groups: a fieldset (.oa-fieldset) around .oa-choice-group. Cards stack 8px apart; --grid puts
   short parallel options in up to three columns from sm (--oa-choice-columns, 3 by default);
   --likert is a five-point scale, five equal columns from lg, stacked below (D-CAI-15, D-LAY-02). */
.oa-choice-group {
  --oa-choice-columns: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-inline-size: 0;
}

@media (width >= 40rem) {
  .oa-choice-group--grid {
    display: grid;
    grid-template-columns: repeat(var(--oa-choice-columns), minmax(0, 1fr));
  }
}

@media (width >= 64rem) {
  .oa-choice-group--likert {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/gid-kit.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/gid-kit.css
   "Sign in with Global ID" (unit c-inputs).

   The design system's rendering of Global ID's portable sign-in kit, at the values of the next kit
   release (C-6). It keeps fixed portable colors and system-ui on purpose, so the button looks the
   same in every product and on every page: it is the one exception to "tokens only", and this is
   the only file allowed raw colors, all inside .oa-gid-kit (canonical §1.8, D-CAI-19, D-BCP-15).
   Never re-point these values to tokens or to a product accent: the button stays orange-marked and
   white or dark under Tamakkan's violet too. Products load the kit files that Global ID releases
   (classes gid-sign-in…); this file draws the same values for reference pages, the kitchen sink,
   templates and prototypes.

   Values (kit v1, with the C-6 changes):
   - Pill, at least 56px tall, 12px × 24px padding, 12px gap, 1px border, 28px logo.
   - Label "Global ID" in system-ui 16px 600, line height 1.5; direction: ltr.
   - Light: #ffffff fill, #221a15 text, #85736a border; hover #fcf1eb.
   - Dark (--dark, on dark grounds): #221a15 fill, #fff8f5 text, #d8c2b8 border; hover #382e29;
     the logo's gray ink becomes #ffffff (C-6).
   - Focus: the family geometry, 3px solid, 2px outside, in fixed #8f4200, or #ffb68a on the dark
     pill (C-6). No motion.
   - --circle: 56 × 56, logo only, never smaller; the button keeps its localized aria-label.

   Implements canonical §1.8, §11 template 2, §13 and D-CAI-19, D-BCP-15, C-6.
   Tokens read: none (fixed portable values by design).
   Classes: .oa-gid-kit (+ --dark, --circle; __logo, __label, __defs).
   The logo is the Global ID mark drawn from one <symbol id="oa-gid-kit-logo"> that the page
   includes once (reference/snippets/inputs.html), built from assets/app-marks/global-id.svg with
   the kit's own 196 192 688 688 crop, so the fingerprint fills the 28px box (the kit is the
   documented exception to the masters' shared frame): its gray strokes follow the logo's color
   (gray, or white on the dark pill) and its arcs stay #f47920. */


.oa-gid-kit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  inline-size: 100%;
  max-inline-size: 100%;
  min-block-size: 56px;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid #85736a;
  border-radius: 9999px;
  background: #ffffff;
  color: #221a15;
  font-family: system-ui, sans-serif;
  font-size: 16px; /* lint-ok: the kit's fixed portable label size (canonical §1.8, D-CAI-19) */
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  direction: ltr;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-gid-kit__logo {
  display: block;
  flex-shrink: 0;
  inline-size: 28px;
  block-size: 28px;
  color: #4c4c4d;
}

.oa-gid-kit__label {
  overflow-wrap: anywhere;
}

.oa-gid-kit--dark {
  border-color: #d8c2b8;
  background: #221a15;
  color: #fff8f5;
}

.oa-gid-kit--dark .oa-gid-kit__logo {
  color: #ffffff;
}

.oa-gid-kit--circle {
  display: inline-flex;
  inline-size: 56px;
  block-size: 56px;
  flex-shrink: 0;
  padding: 12px;
}

/* In a site header the circle takes the size of the header's other controls: 48px, with a 24px
   logo (D-CSN-54), and it has no stroke: the white disc on the bar's darker tone is its shape
   (D-CSN-55). The 1px border stays, transparent, so forced colors still draws the edge. Everywhere
   else the circle stays 56px with its stroke. */
.oa-site-header .oa-gid-kit--circle {
  inline-size: 48px;
  block-size: 48px;
  min-block-size: 48px;
  padding: 11px;
  border-color: transparent;
}

.oa-site-header .oa-gid-kit--circle .oa-gid-kit__logo {
  inline-size: 24px;
  block-size: 24px;
}

/* The kit's hover is a fixed tone, not a state layer (D-CAI-19). Pointer devices only, as every
   hover of the system: on a touch screen a tap would leave the tone behind. */
@media (hover: hover) {
  .oa-gid-kit:not(:disabled):hover {
    background: #fcf1eb;
  }

  .oa-gid-kit--dark:not(:disabled):hover {
    background: #382e29;
  }
}

/* Focus: the family ring geometry in the kit's fixed inks (C-6). [data-demo-focus] shows it on
   documentation pages. */
.oa-gid-kit:is(:focus-visible, [data-demo-focus]) {
  outline: 3px solid #8f4200;
  outline-offset: 2px;
}

.oa-gid-kit--dark:is(:focus-visible, [data-demo-focus]) {
  outline-color: #ffb68a;
}

/* While sign-in starts the button is disabled: its colors stay, only the pointer changes. */
.oa-gid-kit:disabled {
  cursor: default;
}

/* The symbol that every logo uses, included once per page; it takes no space. */
.oa-gid-kit__defs {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

@media (forced-colors: active) {
  .oa-gid-kit:is(:focus-visible, [data-demo-focus]) {
    outline-color: Highlight;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/card.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/card.css
   Cards and icon tiles (unit c-containers).

   Components
   - Card (.oa-card): outlined (the default), filled, elevated, tonal (four pastels), dashed placeholder,
     floating form card; header, title, body, meta, footer, and raised actions; the clickable card.
   - Icon tile (.oa-tile): five sizes, four pastel hues, five status tones, square or round.

   Implements canonical §10.10, §2.5, §2.11, §5.2, §5.3, §6.1, §6.2, §7.2, §8.2 and D-CSN-01, D-CSN-02,
   D-CSN-03, D-CSN-04, D-CSN-05, D-CSN-06, D-ARC-09, D-ARC-14, D-ARC-15, D-ARC-16, D-ARC-23, D-ARC-25,
   D-ARC-26, D-COL-17, D-SEM-10, D-SEM-15, D-BCP-33.

   Tokens read: --color-card-outlined-container, --color-card-elevated-container,
   --color-surface-container-low, --color-surface-container-high, --color-outline-variant,
   --color-outline, --color-on-surface, --color-on-surface-variant, --color-pastel-peach,
   --color-pastel-lavender, --color-pastel-mint, --color-pastel-sand and their --color-on-pastel-*,
   --color-success-container, --color-warning-container, --color-info-container,
   --color-error-container and their --color-on-*-container; --radius-card, --radius-sheet,
   --radius-box, --radius-12px, --radius-24px, --radius-full; --shadow-elevation-1,
   --shadow-elevation-3; --space-card, --space-card-medium, --space-stack, --space-stack-tight,
   --space-stack-loose, --space-2, --space-4, --space-5, --space-10; --container-form;
   --size-tile-sm, -md, -lg, -xl, -2xl; --size-icon-md, -lg, -xl, -2xl, -3xl; --z-raised, --z-behind;
   --opacity-state-pressed; --duration-short-3; --ease-standard; --text-title-md, --text-body-lg,
   --text-body-md with their --line-height, --letter-spacing, and --font-weight companions.
   Context property read: --oa-state (the state-layer opacity; documentation pages force it inline).
   Component-local properties: --oa-card-gap, --oa-tile-size, --oa-tile-icon.

   Classes: .oa-card (+ --outlined, --filled, --elevated, --tonal, --peach, --lavender, --mint, --sand,
   --dashed, --floating; __header, __heading, __title, __body, __meta, __footer, __actions),
   .oa-tile (+ --sm, --md (the default), --lg, --xl, --2xl; --round; --peach, --lavender, --mint, --sand,
   --success, --warning, --info, --error; the neutral tone is the default).

   Relies on link.css for .oa-title-link--stretched: its ::after covers the card (the card is the
   positioned box) and carries the focus ring with --radius-card. Relies on base.css for .oa-icon.
   Breakpoint is literal: sm 40rem (640px). */


/* ---------------------------------------------------------------------------------------------
   1. Card. One 24px shape for every variant. The outlined card is the default: card-outlined-
   container (white, the page color in dark) with a 1px outline-variant hairline. Padding 20px,
   24px from 640px; blocks 16px apart, a title and its body 8px apart (D-CSN-01, D-CSN-02, D-CSN-03,
   D-ARC-09, D-ARC-25). Every variant keeps a 1px border, transparent when no line shows, so forced
   colors draw its edge (D-SEM-10). The card is the positioned, isolated box of its state layer and
   of a stretched title link.
   --------------------------------------------------------------------------------------------- */

.oa-card {
  --oa-card-gap: var(--space-stack);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--oa-card-gap);
  box-sizing: border-box;
  min-inline-size: 0;
  margin: 0;
  padding: var(--space-card);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-card);
  background-color: var(--color-card-outlined-container);
  color: var(--color-on-surface);
  transition:
    box-shadow var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard);
}

/* The state layer: under the content (z-index -1 inside the isolated card), over the 1px edge as
   well (the border box), so pressed shows no lighter rim. A card shows only the pressed layer;
   hover is the elevation-3 shadow and the outline edge (canonical §7.2). */
.oa-card::before {
  content: "";
  position: absolute;
  inset: -1px; /* over the 1px edge as well */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (min-width: 40rem) {
  .oa-card {
    padding: var(--space-card-medium);
  }
}


/* Variants (D-CSN-01, D-CSN-06, D-ARC-09, D-ARC-15, D-COL-17). */

.oa-card--outlined {
  border-color: var(--color-outline-variant);
  background-color: var(--color-card-outlined-container);
}

/* Grouping inside a white surface, quiet tile grids. Never on a filled panel. */
.oa-card--filled {
  border-color: transparent;
  background-color: var(--color-surface-container-low);
}

/* The one focal card of a view. */
.oa-card--elevated {
  border-color: transparent;
  background-color: var(--color-card-elevated-container);
  box-shadow: var(--shadow-elevation-1);
}

/* Action and category tiles on a pastel; --tonal alone is peach, the first hue of the cycle
   peach → lavender → mint → sand. Text on it is the pastel's on-color (canonical §2.11). */
.oa-card--tonal,
.oa-card--peach {
  border-color: transparent;
  background-color: var(--color-pastel-peach);
  color: var(--color-on-pastel-peach);
}

.oa-card--lavender {
  border-color: transparent;
  background-color: var(--color-pastel-lavender);
  color: var(--color-on-pastel-lavender);
}

.oa-card--mint {
  border-color: transparent;
  background-color: var(--color-pastel-mint);
  color: var(--color-on-pastel-mint);
}

.oa-card--sand {
  border-color: transparent;
  background-color: var(--color-pastel-sand);
  color: var(--color-on-pastel-sand);
}

/* Something that is not there yet: coming soon, nothing found. The words carry the meaning; the
   dashes are a second cue (D-CSN-06). */
.oa-card--dashed {
  border-style: dashed;
  border-color: var(--color-outline-variant);
  background-color: transparent;
}

/* Floating form card (sign-in, register, contact): the sheet radius on the elevated container with
   elevation-1, 460px at most, padded 40px 20px and 40px from 640px, blocks 24px apart (D-ARC-15, C-8). */
.oa-card--floating {
  --oa-card-gap: var(--space-stack-loose);
  inline-size: 100%;
  max-inline-size: var(--container-form);
  padding: var(--space-10) var(--space-5);
  border-color: transparent;
  border-radius: var(--radius-sheet);
  background-color: var(--color-card-elevated-container);
  box-shadow: var(--shadow-elevation-1);
}

@media (min-width: 40rem) {
  .oa-card--floating {
    padding: var(--space-10);
  }
}


/* ---------------------------------------------------------------------------------------------
   2. Clickable card. One link, the title (.oa-title-link--stretched), whose ::after covers the
   card. While a mouse hovers that link the card takes elevation-3 and the outline edge over
   short-3; while it is pressed the 12% layer of the content color shows at once. The card never
   moves, lifts, or scales; the ring is the link's, drawn on its ::after with the card's corners
   (D-CSN-04, D-ARC-16, D-SEM-15). Controls other than the title sit in .oa-card__actions, above
   the link.
   --------------------------------------------------------------------------------------------- */

@media (hover: hover) {
  .oa-card:has(.oa-title-link--stretched:hover) {
    border-color: var(--color-outline);
    box-shadow: var(--shadow-elevation-3);
  }
}

.oa-card:has(.oa-title-link--stretched:active) {
  --oa-state: var(--opacity-state-pressed);
}

.oa-card:has(.oa-title-link--stretched:active)::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}


/* ---------------------------------------------------------------------------------------------
   3. Parts. Title title-md in the card's text color; body body-lg and meta body-md in
   on-surface-variant. A title (or a header) and the body or meta right after it sit 8px apart;
   every other block keeps the card's gap. The footer follows a hairline and stays at the bottom of
   a card stretched by its grid row (D-CSN-03, D-ARC-20, D-ARC-25).
   --------------------------------------------------------------------------------------------- */

/* A row: an avatar or tile, the heading, the raised actions at the inline end. */
.oa-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  min-inline-size: 0;
}

/* The text group of a header: the title and its meta, 8px apart. */
.oa-card__heading {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-stack-tight);
  min-inline-size: 0;
}

.oa-card__title {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.oa-card__body {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
  text-wrap: pretty;
}

.oa-card__meta {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  overflow-wrap: anywhere;
}

/* Title (or header) then body or meta, as children of the card: 8px, whatever the card's gap.
   Inside .oa-card__heading the heading's own 8px gap applies. */
.oa-card > :is(.oa-card__title, .oa-card__header) + :is(.oa-card__body, .oa-card__meta) {
  margin-block-start: calc(var(--space-stack-tight) - var(--oa-card-gap));
}

.oa-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-block-start: auto;
  padding-block-start: var(--space-stack);
  border-block-start: 1px solid var(--color-outline-variant);
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* Controls on a card (save, more, a button row): above a stretched title link (z-raised). */
.oa-card__actions {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.oa-card__header > .oa-card__actions {
  flex-wrap: nowrap;
  margin-inline-start: auto;
}


/* ---------------------------------------------------------------------------------------------
   4. Icon tile. A square (or a disc with --round) about a third rounded: 40px at 12px, 48 and 56px
   at 16px (box), 64 and 80px at 24px. Each holds an icon about half its size: 20, 24, 28, 32, and
   40px; icons inside tonal tiles take FILL 1 (.oa-icon--filled). Neutral by default; pastel hues for
   decoration (feature cards cycle peach → lavender → mint → sand); status tones for activity discs,
   always beside words (canonical §4.7, §5.3, §8.2; D-CSN-05, D-ARC-23, D-COL-17). Tiles are
   decorative: aria-hidden, the words beside them carry the meaning.
   --------------------------------------------------------------------------------------------- */

.oa-tile {
  --oa-tile-size: var(--size-tile-md);
  --oa-tile-icon: var(--size-icon-lg);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: var(--oa-tile-size);
  block-size: var(--oa-tile-size);
  border-radius: var(--radius-box);
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface-variant);
}

.oa-tile > .oa-icon {
  font-size: var(--oa-tile-icon);
}

/* md is the default; --md states it. */
.oa-tile--md {
  --oa-tile-size: var(--size-tile-md);
  --oa-tile-icon: var(--size-icon-lg);
}

.oa-tile--sm {
  --oa-tile-size: var(--size-tile-sm);
  --oa-tile-icon: var(--size-icon-md);
  border-radius: var(--radius-12px);
}

.oa-tile--lg {
  --oa-tile-size: var(--size-tile-lg);
  --oa-tile-icon: var(--size-icon-xl);
}

.oa-tile--xl {
  --oa-tile-size: var(--size-tile-xl);
  --oa-tile-icon: var(--size-icon-2xl);
  border-radius: var(--radius-24px);
}

.oa-tile--2xl {
  --oa-tile-size: var(--size-tile-2xl);
  --oa-tile-icon: var(--size-icon-3xl);
  border-radius: var(--radius-24px);
}

.oa-tile--round {
  border-radius: var(--radius-full);
}

/* Pastel hues (decoration). */
.oa-tile--peach {
  background-color: var(--color-pastel-peach);
  color: var(--color-on-pastel-peach);
}

.oa-tile--lavender {
  background-color: var(--color-pastel-lavender);
  color: var(--color-on-pastel-lavender);
}

.oa-tile--mint {
  background-color: var(--color-pastel-mint);
  color: var(--color-on-pastel-mint);
}

.oa-tile--sand {
  background-color: var(--color-pastel-sand);
  color: var(--color-on-pastel-sand);
}

/* Status tones (activity discs in list rows, beside the words that say what happened). */
.oa-tile--success {
  background-color: var(--color-success-container);
  color: var(--color-on-success-container);
}

.oa-tile--warning {
  background-color: var(--color-warning-container);
  color: var(--color-on-warning-container);
}

.oa-tile--info {
  background-color: var(--color-info-container);
  color: var(--color-on-info-container);
}

.oa-tile--error {
  background-color: var(--color-error-container);
  color: var(--color-on-error-container);
}


/* ---------------------------------------------------------------------------------------------
   reference/css/panel.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/panel.css
   Panels and the inverse band (unit c-containers).

   Components
   - Panel (.oa-panel): a section-sized surface on the 32px hero radius, inside the page gutter, in
     one of three tones: tonal (the default), primary (one highlight per page), and inverse (the dark
     band, one per page); feature padding by default, hero padding with --hero.

   Implements canonical §10.11, §2.6, §2.8, §5.2, §6.1, §9 (decoration inside panels) and D-CSN-08,
   D-ARC-07, D-ARC-25, D-COL-12, D-COL-20, D-BCP-06, D-BCP-37, D-SEM-10.

   Tokens read: --color-surface-container-low, --color-on-surface, --color-on-surface-variant,
   --color-primary-container, --color-on-primary-container, --color-inverse-surface,
   --color-inverse-on-surface, --color-inverse-on-surface-variant, --color-inverse-primary,
   --color-on-card-art; --radius-hero; --space-5, --space-10, --space-12, --space-16, --space-20.
   Context properties set: --color-focus-ring (inverse-primary in the inverse band), --oa-link
   (inverse-primary in the inverse band), --color-mark-ink (on-card-art in the inverse band: the
   mark ink follows the ground, not the page theme).

   Classes: .oa-panel (+ --tonal, --primary, --inverse; --feature, the default padding, and --hero;
   __supporting).

   Breakpoints are literal: sm 40rem (640px), lg 64rem (1024px). */


/* ---------------------------------------------------------------------------------------------
   1. Panel. 32px corners, no shadow, a transparent 1px border for forced colors. It clips its
   decoration (shapes and glows are aria-hidden children placed with logical properties at
   z-index: var(--z-behind)), so it is positioned and isolated. Feature padding by default:
   40px 20px, 40px from 640px, 64px from 1024px (D-CSN-08, D-ARC-25).
   --------------------------------------------------------------------------------------------- */

.oa-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: var(--space-10) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-hero);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
}

@media (min-width: 40rem) {
  .oa-panel {
    padding-inline: var(--space-10);
  }
}

@media (min-width: 64rem) {
  .oa-panel {
    padding: var(--space-16);
  }
}

/* Feature padding is the default; --feature states it: 40px block, 64px from 1024px. */
.oa-panel--feature {
  padding-block: var(--space-10);
}

@media (min-width: 64rem) {
  .oa-panel--feature {
    padding-block: var(--space-16);
  }
}

/* Hero padding: 48px block below 1024px, 80px from 1024px; the inline padding stays the panel's. */
.oa-panel--hero {
  padding-block: var(--space-12);
}

@media (min-width: 64rem) {
  .oa-panel--hero {
    padding-block: var(--space-20);
  }
}



/* ---------------------------------------------------------------------------------------------
   2. Tones (D-CSN-08, D-ARC-07, D-COL-12).
   tonal: surface-container-low with on-surface (hero, how it works, the auth frame). It is the
   default; --tonal states it.
   primary: primary-container with on-primary-container; at most one per page.
   inverse: inverse-surface with inverse-on-surface, dark in both themes; one per page. It
   re-points the context colors on the container, never per element: the ring and links to
   inverse-primary (7.73:1 or more), the mark ink to on-card-art. The filled button inside keeps
   primary with on-primary. Components inside write the inverse roles themselves; there is no
   subtree theme.
   --------------------------------------------------------------------------------------------- */

.oa-panel--tonal {
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
}

.oa-panel--primary {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-panel--inverse {
  --color-focus-ring: var(--color-inverse-primary);
  --oa-link: var(--color-inverse-primary);
  --color-mark-ink: var(--color-on-card-art);
  background-color: var(--color-inverse-surface);
  color: var(--color-inverse-on-surface);
}


/* ---------------------------------------------------------------------------------------------
   3. Supporting text: a panel's secondary text (a lead, a note) in the tone's secondary role:
   on-surface-variant on the tonal and primary panels, inverse-on-surface-variant on the inverse
   band (canonical §2.6, §10.11).
   --------------------------------------------------------------------------------------------- */

.oa-panel__supporting {
  color: var(--color-on-surface-variant);
}

.oa-panel--inverse .oa-panel__supporting {
  color: var(--color-inverse-on-surface-variant);
}


/* ---------------------------------------------------------------------------------------------
   reference/css/list.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/list.css
   Lists, list rows, key–value rows, and dividers (unit c-containers).

   Components
   - List (.oa-list): a bare list of rows with hairlines between them, or drawn as an outlined card
     (--card).
   - List row (.oa-list-row): one, two, or three lines; leading icon, avatar, or disc; headline and
     supporting text; trailing meta, chip, chevron, switch, or icon button. Pressable as a whole (an
     <a> or <button>) or holding controls, never both.
   - Key–value rows (.oa-kv): a <dl> of label and value, stacked in narrow columns and on one row
     from a 640px-wide container.
   - Divider (.oa-divider, --inset) and the "or" divider (.oa-divider-or).

   Implements canonical §10.12, §4.5, §6.2, §6.3, §2.7, §8.3 and D-CSN-02, D-CSN-07, D-CSN-18,
   D-ARC-20, D-ARC-24, D-ARC-25, D-COL-05, D-SEM-10, D-SEM-11, D-LAY-02, D-BCP-15, D-BCP-33.

   Tokens read: --color-outline-variant, --color-card-outlined-container, --color-on-surface,
   --color-on-surface-variant; --size-list-row, --size-list-row-two-line, --size-list-row-three-line,
   --size-avatar-sm, --size-focus-inset; --space-row-inset, --space-row-inset-medium, --space-1,
   --space-2, --space-3, --space-4, --space-stack-tight; --z-behind; --radius-card; --font-weight-semibold;
   --opacity-state-hover, --opacity-state-pressed, --opacity-state-disabled-content;
   --duration-short-3; --ease-standard; --text-title-sm, --text-body-md with their --line-height,
   --letter-spacing and --font-weight companions.
   Context property read: --oa-state (the state-layer opacity; documentation pages force it inline).

   Classes: .oa-list (+ --card), .oa-list-row (+ --two-line, --three-line; __leading, __content,
   __headline, __supporting, __trailing, __meta), .oa-kv (+ __row, __key, __value), .oa-divider
   (+ --inset), .oa-divider-or.

   Relies on base.css for .oa-icon (and --mirror on the trailing chevron_right) and the focus ring.
   Breakpoint is literal: sm 40rem (640px). */


/* ---------------------------------------------------------------------------------------------
   1. List. A <ul> (or <ol>) without bullets; a 1px outline-variant hairline between rows, never
   before the first (D-CSN-02, D-CSN-07). --card draws the list as an outlined card: the rows bring
   their own inline padding, so the card has none, and 8px above and below the rows (canonical
   §10.10: a card holding a list has no inline padding). The card clips the rows' state layers to
   its corners.
   --------------------------------------------------------------------------------------------- */

.oa-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-list > li + li {
  border-block-start: 1px solid var(--color-outline-variant);
}

.oa-list--card {
  overflow: hidden;
  padding-block: var(--space-2);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-card);
  background-color: var(--color-card-outlined-container);
  color: var(--color-on-surface);
}


/* ---------------------------------------------------------------------------------------------
   2. List row. At least 56px (one line), 72px (two lines), or 88px (three lines); 16px inline
   padding, the start 24px from 640px so row text lines up with card padding; 8px block padding,
   12px for three lines; 16px between slots (canonical §4.5, §10.12; D-CSN-07, D-ARC-24, D-ARC-25).
   The class goes on the <li> of a row that holds controls, or on the one <a> or <button> inside the
   <li> of a row pressed as a whole.
   --------------------------------------------------------------------------------------------- */

.oa-list-row {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap; /* the trailing slot moves under the text when the text would get less than 96px */
  align-items: center;
  gap: var(--space-2) var(--space-4);
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: var(--size-list-row);
  margin: 0;
  padding-block: var(--space-2);
  padding-inline: var(--space-row-inset);
  border: 1px solid transparent; /* forced colors draw a pressable row's edge; static rows keep it so all rows line up */
  color: var(--color-on-surface);
  text-align: start;
}

@media (min-width: 40rem) {
  .oa-list-row {
    padding-inline-start: var(--space-row-inset-medium);
  }
}

.oa-list-row--two-line {
  min-block-size: var(--size-list-row-two-line);
}

/* Three lines: leading and trailing slots align to the top; 12px block padding. */
.oa-list-row--three-line {
  align-items: flex-start;
  min-block-size: var(--size-list-row-three-line);
  padding-block: var(--space-3);
}


/* Pressable row: the whole row is one link or button, with the state layer of on-surface (8% on
   hover, 12% pressed) over its border box, a transparent 1px border for forced colors, and the
   ring drawn inset (-4px), because the list clips it (canonical §2.7, §6.3; D-COL-05, D-SEM-11). */

a.oa-list-row,
button.oa-list-row {
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.oa-list-row::before,
button.oa-list-row::before {
  content: "";
  position: absolute;
  inset: -1px; /* over the 1px transparent edge as well */
  z-index: var(--z-behind);
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  a.oa-list-row:hover,
  button.oa-list-row:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

a.oa-list-row:active,
button.oa-list-row:active {
  --oa-state: var(--opacity-state-pressed);
}

a.oa-list-row:active::before,
button.oa-list-row:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

a.oa-list-row:focus-visible,
a.oa-list-row[data-demo-focus],
button.oa-list-row:focus-visible,
button.oa-list-row[data-demo-focus] {
  outline-offset: var(--size-focus-inset);
}

/* Disabled (rare; never to signal invalid input): content at 38%, no layer (D-ARC-33). */
button.oa-list-row:disabled {
  --oa-state: 0;
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

button.oa-list-row:disabled :is(.oa-list-row__leading, .oa-list-row__supporting, .oa-list-row__trailing, .oa-list-row__meta) {
  color: inherit;
}


/* Slots. Leading: a 24px icon in on-surface-variant, or a 40px avatar or disc. Headline title-sm;
   supporting body-md in on-surface-variant, two lines at most (written, not cut). Trailing: meta
   text, a chip, a mirrored chevron_right, a switch, or a 48px icon button (canonical §10.12). */

.oa-list-row__leading {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--color-on-surface-variant);
}

/* The text takes the room left and never less than 96px: when a trailing button would leave it less
   (a 320px window, "Disconnect" beside "Connected as Layla Haddad"), the trailing slot wraps onto its
   own line at the inline end instead of breaking the words. */
.oa-list-row__content {
  display: flex;
  flex: 1 1 var(--space-24);
  flex-direction: column;
  min-inline-size: 0;
}

.oa-list-row__headline {
  display: block;
  margin: 0;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
  overflow-wrap: anywhere;
}

.oa-list-row__supporting {
  display: block;
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  overflow-wrap: anywhere;
}

.oa-list-row__trailing {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  color: var(--color-on-surface-variant);
}

.oa-list-row__meta {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ---------------------------------------------------------------------------------------------
   3. Key–value rows. A <dl> whose rows (<div class="oa-kv__row">) hold one <dt> and one <dd>:
   the key in body-md on-surface-variant, the value in body-md 600 on-surface. Stacked (8px apart)
   in a narrow column; key and value on one row, the value at the inline end, once the list is
   640px wide. A container query, because key–value lists sit in cards, panes, and dialogs of every
   width (canonical §4.2, §10.12; D-LAY-02). Hairlines between rows, as between list rows.
   --------------------------------------------------------------------------------------------- */

.oa-kv {
  container-type: inline-size;
  margin: 0;
  padding: 0;
}

.oa-kv__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-tight);
  padding-block: var(--space-3);
}

.oa-kv__row + .oa-kv__row {
  border-block-start: 1px solid var(--color-outline-variant);
}

.oa-kv__key {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-kv__value {
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}

@container (min-width: 40rem) {
  .oa-kv__row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .oa-kv__value {
    text-align: end;
  }
}


/* ---------------------------------------------------------------------------------------------
   4. Dividers. A 1px outline-variant hairline, decorative (D-CSN-02, D-SEM-10). Inset: it starts
   at the text column of rows with a 40px leading slot: row inset + 40px + 16px (72px, 80px from
   640px). The "or" divider sits between two ways to do the same thing:
   two hairlines around the word, which screen readers read. It is not on the sign-in page (D-BCP-43).
   --------------------------------------------------------------------------------------------- */

.oa-divider {
  box-sizing: content-box;
  block-size: 0;
  margin: 0;
  border: 0;
  border-block-start: 1px solid var(--color-outline-variant);
  color: inherit; /* the <hr> default gray is not a token */
}

.oa-divider--inset {
  margin-inline-start: calc(var(--space-row-inset) + var(--size-avatar-sm) + var(--space-4));
}

@media (min-width: 40rem) {
  .oa-divider--inset {
    margin-inline-start: calc(var(--space-row-inset-medium) + var(--size-avatar-sm) + var(--space-4));
  }
}

.oa-divider-or {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  text-align: center;
}

.oa-divider-or::before,
.oa-divider-or::after {
  content: "";
  flex: 1 1 0;
  border-block-start: 1px solid var(--color-outline-variant);
}


/* ---------------------------------------------------------------------------------------------
   reference/css/table.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/table.css
   Data tables and the bulk bar (unit c-containers).

   Components
   - Table region (.oa-table-region): the named, focusable box a table scrolls sideways in.
   - Data table (.oa-table): 56px header row; 64px rows (avatar or two lines), 48px in --compact
     (one line); numbers at the inline end, IDs in mono; one link per row, in the row header;
     selection with a 48px target around a 20px checkbox; sortable headers; row actions.
   - Bulk bar (.oa-bulk-bar): the primary-container bar above a table while rows are selected, its
     count in a live region that exists from page load.
   Pagination below a table is .oa-pagination (site-nav.css, unit c-nav-site); the empty state
   inside a region is .oa-empty and loading rows are .oa-skeleton (feedback.css, unit c-feedback).

   Implements canonical §10.13, §4.11, §3.8, §6.2, §6.3, §2.7, §14.2, §14.3 and D-CSN-34, D-CSN-18,
   D-ARC-10, D-ARC-14, D-ARC-20, D-ARC-24, D-ARC-35, D-LAY-18, D-COL-05, D-SEM-10, D-SEM-11, D-TYP-12,
   D-TYP-13, D-BCP-30.

   Tokens read: --color-card-outlined-container, --color-outline-variant, --color-on-surface,
   --color-on-surface-variant, --color-primary-container, --color-on-primary-container,
   --radius-box, --radius-full; --size-table-header, --size-table-row,
   --size-menu-item, --size-touch-target, --size-icon-sm, --size-focus-inset; --space-1, --space-2,
   --space-3, --space-5; --font-mono; --opacity-state-hover, --opacity-state-pressed; --z-behind;
   --duration-short-3; --ease-standard; --text-label-md, --text-body-md, --text-code-sm with their
   --line-height, --letter-spacing, and --font-weight companions.
   Context property read: --oa-state (the state-layer opacity; documentation pages force it inline).
   Component-local property: --oa-table-min-width (the table's least width, the sum of its columns).

   Classes: .oa-table-region, .oa-table (+ --compact; __sort, __num, __id, __select, __actions,
   __entry, __link, __sub, __empty), .oa-bulk-bar (+ __icon, __count, __actions).

   Relies on base.css for .oa-icon, .oa-visually-hidden, and the focus ring; on link.css for
   .oa-title-link (the record link's color and hover underline); on selection.css for the drawn
   checkbox .oa-check__input; on button.css for the row-action .oa-icon-btn and the bulk bar's text
   buttons. */


/* ---------------------------------------------------------------------------------------------
   1. Region. The outlined container a table lives in: card-outlined-container, a 1px
   outline-variant edge, 16px corners. It scrolls sideways when the table is wider than the screen,
   takes focus (tabindex="0") so a keyboard can scroll it, and carries the table's name. It is
   positioned, so the visually hidden text in its cells never widens the page (D-CSN-34).
   --------------------------------------------------------------------------------------------- */

.oa-table-region {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain; /* a swipe that reaches the table's edge is not a back gesture */
  box-sizing: border-box;
  max-inline-size: 100%;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-box);
  background-color: var(--color-card-outlined-container);
  color: var(--color-on-surface);
}


/* ---------------------------------------------------------------------------------------------
   2. Table. Collapsed borders, the full width of its region, and never narrower than the sum of
   its columns (--oa-table-min-width; Global ID's directory: 65rem). Header 56px, label-md in
   on-surface-variant, sentence case, no wrap, aligned like its column. Body cells 12px inline and
   8px block, body-md, a 1px outline-variant rule above each row. Rows 64px; 48px in --compact
   (canonical §4.11, §10.13; D-CSN-34, D-LAY-18, D-ARC-20). Rows are not clickable and have no
   hover fill.
   --------------------------------------------------------------------------------------------- */

.oa-table {
  --oa-table-min-width: auto;
  inline-size: 100%;
  min-inline-size: var(--oa-table-min-width);
  border-collapse: collapse;
  color: var(--color-on-surface);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-table :is(th, td) {
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  text-align: start;
  vertical-align: middle;
}

.oa-table thead th {
  block-size: var(--size-table-header);
  padding-block: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  white-space: nowrap;
}

.oa-table tbody tr {
  block-size: var(--size-table-row);
}

.oa-table tbody :is(th, td) {
  border-block-start: 1px solid var(--color-outline-variant);
  font-weight: var(--text-body-md--font-weight);
}

.oa-table--compact tbody tr {
  block-size: var(--size-menu-item);
}

/* Cells that hold a 48px control (the box, the record link, the row actions) drop their block
   padding: the control sits centered, 8px from the edges of a 64px row as the cells' padding would
   put it, and the row keeps its 64px with its 1px rule, where 8px of padding would have made it
   65px. A compact row holding the 48px box or icon button measures 49px with its rule: the target
   wins (canonical §4.11). There the icon button fills the row, so it draws its ring inset (-4px)
   and the scrolling region never clips it (canonical §6.3: table cells); the 24px checkbox's ring
   fits outside it. */
.oa-table tbody :is(.oa-table__select, .oa-table__actions, th[scope="row"]) {
  padding-block: 0;
}

.oa-table--compact tbody .oa-table__actions :is(:focus-visible, [data-demo-focus]) {
  outline-offset: var(--size-focus-inset);
}


/* Columns (two-class selectors, so they win over the cell defaults above). Numbers at the inline end with tabular figures; IDs and codes in mono code-sm, never
   wrapped, their value in <bdi dir="ltr" translate="no">; an empty value is an aria-hidden "—"
   plus visually hidden words (D-CSN-34, D-TYP-12, D-TYP-13, D-BCP-30). */

.oa-table .oa-table__num {
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}

.oa-table tbody .oa-table__id {
  font-family: var(--font-mono);
  font-size: var(--text-code-sm);
  line-height: var(--text-code-sm--line-height);
  letter-spacing: var(--text-code-sm--letter-spacing);
  font-weight: var(--text-code-sm--font-weight);
  white-space: nowrap;
}

.oa-table__empty {
  color: var(--color-on-surface-variant);
}


/* ---------------------------------------------------------------------------------------------
   3. The record link. One link per row, in the row header (<th scope="row">): an optional 40px
   avatar, then the link, at least 48px tall (in a one-line compact row, the words with a 48px
   ::after target), holding the name in label-md and an optional second
   line (__sub) in body-md on-surface-variant, neither ever wrapping (the region scrolls). The color and the hover underline are the title
   link's (.oa-title-link). The row itself is never a link (D-CSN-34).
   --------------------------------------------------------------------------------------------- */

.oa-table__entry {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-inline-size: 0;
  white-space: nowrap; /* the region scrolls; a name or an address never breaks inside the row header */
}

/* The record link is a 48px target in both directions: a short name ("Gym") keeps the width. */
.oa-table .oa-table__link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-inline-size: var(--size-touch-target);
  min-block-size: var(--size-touch-target);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

/* A compact row is one line: the record link's box is its line, at least 24px (half the touch
   target, WCAG 2.5.8's minimum), and an ::after extends its target to 48px (canonical §4.6), so its
   8px-cornered ring sits around the words, inside the row. */
.oa-table--compact .oa-table__link {
  position: relative;
  min-block-size: calc(var(--size-touch-target) / 2);
}

.oa-table--compact .oa-table__link::after {
  content: "";
  position: absolute;
  inset-block: calc((100% - var(--size-touch-target)) / 2); /* lint-ok: layout maths, a 48px target centered on the line */
  inset-inline: 0;
}

.oa-table .oa-table__sub {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}


/* ---------------------------------------------------------------------------------------------
   4. Selection. The first column holds a 48px round target (a <label>, with the 8% / 12% state
   layer) around the family's 20px checkbox in primary-ink; the header's box also shows the
   indeterminate state (set by script: input.indeterminate). A row whose box is ticked takes
   primary-container at 30%; the row's text keeps 8.64:1 or more (canonical §2.5, §2.13; D-ARC-10,
   D-ARC-35).
   --------------------------------------------------------------------------------------------- */

.oa-table .oa-table__select {
  inline-size: calc(var(--size-touch-target) + 2 * var(--space-2));
  padding-inline: var(--space-2);
}

.oa-table__select > label {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-table__select > label::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-table__select > label:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-table__select > label:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-table__select > label:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

/* The box is the family's drawn checkbox (.oa-check__input, selection.css): a 24px input drawing
   the 20px box, so the input itself meets the 24px minimum and the label is the 48px target.
   Here it sits centered in the label, not on a text line. */
.oa-table__select .oa-check__input {
  margin: 0;
}

.oa-table tbody tr:has(> .oa-table__select input:checked) {
  background-color: color-mix(in srgb, var(--color-primary-container) 30%, transparent);
}


/* ---------------------------------------------------------------------------------------------
   5. Sorting (M3 default). A sortable header holds a button that fills the cell; aria-sort sits on
   the <th> of the sorted column only. An 18px arrow_upward or arrow_downward follows the label
   while the column is sorted, and appears on hover and focus elsewhere; pressing toggles
   ascending and descending. The button takes the state layer (over its border box) and the
   inset ring (canonical §10.13; D-CSN-34).
   --------------------------------------------------------------------------------------------- */

.oa-table thead th:has(> .oa-table__sort) {
  padding: 0;
}

.oa-table__sort {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: var(--size-table-header);
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-3);
  border: 1px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-table__sort::before {
  content: "";
  position: absolute;
  inset: -1px; /* over the 1px transparent edge as well */
  z-index: var(--z-behind);
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-table__sort:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-table__sort:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-table__sort:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-table__sort:is(:focus-visible, [data-demo-focus]) {
  outline-offset: var(--size-focus-inset);
}

.oa-table__sort > .oa-icon {
  font-size: var(--size-icon-sm);
  opacity: 0;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

.oa-table thead th:is([aria-sort="ascending"], [aria-sort="descending"]) .oa-table__sort > .oa-icon,
.oa-table__sort:is(:hover, :focus-visible, [data-demo-focus]) > .oa-icon {
  opacity: 1;
}

.oa-table thead th.oa-table__num .oa-table__sort {
  justify-content: flex-end;
}


/* ---------------------------------------------------------------------------------------------
   6. Row actions: the last cell, as narrow as its 48px "More actions for {name}" icon button,
   at the inline end (canonical §10.13).
   --------------------------------------------------------------------------------------------- */

.oa-table .oa-table__actions {
  inline-size: 1%;
  text-align: end;
  white-space: nowrap;
}


/* ---------------------------------------------------------------------------------------------
   7. Bulk bar. Above the table while at least one row is ticked: primary-container with
   on-primary-container, 16px corners, padding 8px 8px 8px 20px, 12px between its parts; a filled
   24px check_box, the count in label-md, then small text buttons. Its count is an aria-live
   region that exists, empty, from page load: while the count is empty the bar is visually hidden
   and its actions leave the page. Script writes the count and sets the bar's aria-label ("People
   selected") while rows are ticked, and empties both when none is, so an empty bar is never listed
   as a region (D-CSN-34, D-ARC-14, D-ARC-20).
   --------------------------------------------------------------------------------------------- */

.oa-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  box-sizing: border-box;
  margin: 0;
  padding-block: var(--space-2);
  padding-inline: var(--space-5) var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-box);
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-bulk-bar__icon {
  flex-shrink: 0;
}

.oa-bulk-bar__count {
  margin: 0;
  margin-inline-end: auto;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-bulk-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.oa-bulk-bar:has(> .oa-bulk-bar__count:empty) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.oa-bulk-bar:has(> .oa-bulk-bar__count:empty) > :not(.oa-bulk-bar__count) {
  display: none;
}


/* ---------------------------------------------------------------------------------------------
   reference/css/disclosure.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/disclosure.css
   Accordion and disclosure (unit c-containers).

   Components
   - Accordion (.oa-accordion): FAQs and static disclosures as native <details>/<summary>; controlled
     disclosures (filter groups, navigation groups) as a <button aria-expanded aria-controls> and
     its panel. Default rows (FAQ, settings) and compact rows (--compact: filters, groups).
     The FAQ section itself (heading, at most six questions) is c-marketing's faq.md.

   Implements canonical §10.25, §5.2, §6.2, §6.3, §7.1, §7.3, §8.3 and D-CSN-31, D-ARC-20, D-COL-05,
   D-SEM-10, D-SEM-11, D-SEM-15, D-SEM-16, D-BCP-33.

   Tokens read: --color-outline-variant, --color-on-surface, --color-on-surface-variant;
   --radius-8px; --size-touch-target, --size-focus-inset; --space-2, --space-4, --space-5,
   --space-6, --space-12, --space-16, --space-row-inset; --opacity-state-hover,
   --opacity-state-pressed; --z-behind; --duration-short-3, --duration-short-4; --ease-standard;
   --text-title-sm, --text-label-md, --text-body-md (with --text-body-lg--line-height for the
   24px answer line) and their companions.
   Context property read: --oa-state (the state-layer opacity; documentation pages force it inline).

   Classes: .oa-accordion (+ --compact; __item, __summary, __icon, __panel).

   Relies on base.css for .oa-icon, the [hidden] rule, and the focus ring. */


/* ---------------------------------------------------------------------------------------------
   1. Accordion. A column of items, a 1px outline-variant hairline above the first and below each
   (D-CSN-31). Several items may be open at once; nothing animates the panel's height.
   --------------------------------------------------------------------------------------------- */

.oa-accordion {
  margin: 0;
  padding: 0;
}

.oa-accordion__item {
  margin: 0;
  border-block-end: 1px solid var(--color-outline-variant);
}

.oa-accordion__item:first-child {
  border-block-start: 1px solid var(--color-outline-variant);
}


/* ---------------------------------------------------------------------------------------------
   2. Summary row: a <summary> (or a <button> for a controlled disclosure) at least 64px tall,
   20px block padding, the label in title-sm on-surface, the expand_more chevron at the inline end.
   16px inline padding keeps the label clear of the inset ring. The 8% / 12% state layer of the
   label color covers the border box; the ring inset (-4px), because the rows sit edge to edge (canonical §10.25,
   §6.3; D-CSN-31, D-COL-05). Questions are not headings: no heading element inside a summary.
   --------------------------------------------------------------------------------------------- */

.oa-accordion__summary {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: var(--space-16);
  margin: 0;
  padding-block: var(--space-5);
  padding-inline: var(--space-row-inset);
  border: 1px solid transparent;
  background: none;
  color: var(--color-on-surface);
  font: inherit;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
  text-align: start;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-accordion__summary::-webkit-details-marker {
  display: none;
}

.oa-accordion__summary::before {
  content: "";
  position: absolute;
  inset: -1px; /* over the 1px transparent edge as well */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-accordion__summary:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-accordion__summary:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-accordion__summary:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

.oa-accordion__summary:is(:focus-visible, [data-demo-focus]) {
  outline-offset: var(--size-focus-inset);
}


/* The chevron: expand_more 24px in on-surface-variant, turning 180° when open over short-4
   standard. It is not mirrored in right-to-left pages; under reduced motion it turns at once
   (canonical §7.3, §8.3). */

.oa-accordion__icon {
  flex-shrink: 0;
  color: var(--color-on-surface-variant);
  transition: transform var(--duration-short-4) var(--ease-standard);
}

.oa-accordion__item[open] > .oa-accordion__summary > .oa-accordion__icon,
.oa-accordion__summary[aria-expanded="true"] > .oa-accordion__icon {
  transform: rotate(180deg);
}


/* ---------------------------------------------------------------------------------------------
   3. Panel: the answer in body-md at a 24px line (the body-lg line: 24px Latin, the Arabic block's
   1.75 in Arabic), on-surface-variant, 640px at most, 48px clear of the chevron column, 24px
   below (canonical §10.25).
   --------------------------------------------------------------------------------------------- */

.oa-accordion__panel {
  box-sizing: border-box;
  max-inline-size: 40rem; /* component constant: the answer column caps at 640px (canonical §10.25) */
  margin: 0;
  padding-block: 0 var(--space-6);
  padding-inline: var(--space-row-inset) var(--space-12);
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-accordion__panel > * {
  margin: 0;
}

.oa-accordion__panel > * + * {
  margin-block-start: var(--space-2);
}


/* ---------------------------------------------------------------------------------------------
   4. Compact rows (filter groups, navigation groups): 48px, 8px inline padding, 8px corners, the
   label in label-md on-surface-variant, no hairlines; the panel holds its controls 8px below
   (canonical §5.2, §10.25; D-CSN-31).
   --------------------------------------------------------------------------------------------- */

.oa-accordion--compact .oa-accordion__item,
.oa-accordion--compact .oa-accordion__item:first-child {
  border-block: 0;
}

.oa-accordion--compact .oa-accordion__summary {
  min-block-size: var(--size-touch-target);
  padding-block: 0;
  padding-inline: var(--space-2);
  border-radius: var(--radius-8px);
  color: var(--color-on-surface-variant);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-accordion--compact .oa-accordion__panel {
  max-inline-size: none;
  padding: var(--space-2) 0 0;
  color: var(--color-on-surface);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
}


/* ---------------------------------------------------------------------------------------------
   reference/css/avatar-badge.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/avatar-badge.css
   Avatars and badges (unit c-containers).

   Components
   - Avatar (.oa-avatar): a person as a circle (40px default, 56px --md, 96px --lg) with two-letter
     initials, a photo, or the person icon; an organization or app as a rounded square (--org);
     stacks (.oa-avatar-stack).
   - Badge (.oa-badge): the count badge after a control's label; the icon badge (--icon) and the
     dot (--dot) on an icon's top inline-end corner.

   Implements canonical §10.26, §4.7, §5.2, §5.3, §9 (photography) and D-CSN-32, D-CSN-33, D-ARC-14,
   D-ARC-20, D-ARC-23, D-BCP-36, D-BCP-39, D-SEM-10, D-TYP-12.

   Tokens read: --color-primary-container, --color-on-primary-container, --color-surface-container-high,
   --color-on-surface, --color-surface, --color-primary, --color-on-primary, --color-primary-ink;
   --size-avatar-sm, --size-avatar-md, --size-avatar-lg, --size-tile-md, --size-icon-lg;
   --radius-full, --radius-box, --radius-12px, --radius-24px; --space-0-5, --space-1, --space-1-5,
   --space-2; --font-weight-bold; --text-label-sm, --text-label-md, --text-title-md, and
   --text-display-sm with their companions.
   Component-local properties: --oa-avatar-size, --oa-avatar-ring.

   Classes: .oa-avatar (+ --sm, --md, --lg, --org; __img, __icon), .oa-avatar-stack,
   .oa-badge (+ --icon, --dot).

   Relies on base.css for .oa-icon and .oa-visually-hidden. */


/* ---------------------------------------------------------------------------------------------
   1. Person avatar. A circle at avatar-sm 40px (the default and --sm: rows, tables, the header),
   avatar-md 56px (card headers) or avatar-lg 96px (profile, person record). Two-letter initials,
   bold, at round(size × 0.36) px, on-primary-container on primary-container; a photo covers the
   circle; without photo or initials, the person icon at 60% of the size (D-CSN-32, D-ARC-23).
   Decorative (aria-hidden) beside the visible name, otherwise role="img" named by the person.
   --------------------------------------------------------------------------------------------- */

.oa-avatar {
  --oa-avatar-size: var(--size-avatar-sm);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: var(--oa-avatar-size);
  block-size: var(--oa-avatar-size);
  overflow: hidden;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  font-size: calc(var(--oa-avatar-size) * 0.36);
  font-size: round(nearest, calc(var(--oa-avatar-size) * 0.36), 1px); /* lint-ok: the initials formula round(size × 0.36) px (canonical §10.26); the line above is the fallback */
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none; /* Safari on iOS reads only the prefixed property */
  user-select: none;
}

.oa-avatar--sm {
  --oa-avatar-size: var(--size-avatar-sm);
}

.oa-avatar--md {
  --oa-avatar-size: var(--size-avatar-md);
}

.oa-avatar--lg {
  --oa-avatar-size: var(--size-avatar-lg);
}

/* The photo: decorative inside a named or aria-hidden avatar (alt=""), covering the circle. A
   product swaps it for the initials when it fails to load. */
.oa-avatar__img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

/* The last fallback: the person icon at 60% of the avatar. */
.oa-avatar .oa-avatar__icon {
  font-size: calc(var(--oa-avatar-size) * 0.6);
}


/* ---------------------------------------------------------------------------------------------
   2. Organization or app (--org). A rounded square on surface-container-high with the logo at 64%,
   or on-surface initials in on-scale styles: label-md at 40 and 48px, title-md at 56px, display-sm
   at 96px; person avatars keep round(size × 0.36) (D-CSN-32). 48px by default, the tile-md size of
   company and app logo tiles; --sm 40px, --md 56px, --lg 96px. Corners about a third of the size:
   12px below 44px, 16px (box) from 44 to 56px, 24px for 64 to 96px (canonical §5.2, §5.3;
   D-CSN-32, D-ARC-14). No logo is fetched from a third party; without one, the initials tile
   (D-BCP-36).
   --------------------------------------------------------------------------------------------- */

.oa-avatar--org {
  --oa-avatar-size: var(--size-tile-md);
  border-radius: var(--radius-box);
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

/* 40px keeps label-md, as at 48px. */
.oa-avatar--org.oa-avatar--sm {
  --oa-avatar-size: var(--size-avatar-sm);
  border-radius: var(--radius-12px);
}

.oa-avatar--org.oa-avatar--md {
  --oa-avatar-size: var(--size-avatar-md);
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-avatar--org.oa-avatar--lg {
  --oa-avatar-size: var(--size-avatar-lg);
  border-radius: var(--radius-24px);
  font-size: var(--text-display-sm);
  line-height: var(--text-display-sm--line-height);
  letter-spacing: var(--text-display-sm--letter-spacing);
  font-weight: var(--text-display-sm--font-weight);
}

.oa-avatar--org .oa-avatar__img {
  inline-size: 64%;
  block-size: 64%;
  object-fit: contain;
}


/* ---------------------------------------------------------------------------------------------
   3. Stack. Avatars overlap by 8px, each ringed 2px in the ground color so they stay apart: the
   page surface by default; a stack on another ground sets --oa-avatar-ring to that ground's role
   (canonical §10.26). The ring is a box-shadow halo, not an edge: it is decoration and may vanish in
   forced colors (canonical §6.3's surface halo).
   --------------------------------------------------------------------------------------------- */

.oa-avatar-stack {
  --oa-avatar-ring: var(--color-surface);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.oa-avatar-stack > .oa-avatar {
  box-shadow: 0 0 0 2px var(--oa-avatar-ring);
}

.oa-avatar-stack > .oa-avatar + .oa-avatar {
  margin-inline-start: calc(-1 * var(--space-2));
}


/* ---------------------------------------------------------------------------------------------
   4. Count badge. 24px tall and at least 24px wide, 6px inline padding, a pill in primary with
   on-primary text (6.19:1; 5.70:1 under the Tamakkan accent), label-sm with tabular figures; "99+"
   above 99. It sits 8px after its label (the host's gap). The number is written into the control's
   accessible name ("Filters, 1 filter on"); the badge itself is aria-hidden (D-CSN-33, D-ARC-20).
   The transparent 1px border keeps its shape in forced colors (D-SEM-10).
   --------------------------------------------------------------------------------------------- */

.oa-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-inline-size: 24px; /* component constant: count badge (canonical §10.26) */
  block-size: 24px; /* component constant: count badge (canonical §10.26) */
  padding-inline: var(--space-1-5);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-size: var(--text-label-sm);
  line-height: var(--text-label-sm--line-height);
  letter-spacing: var(--text-label-sm--letter-spacing);
  font-weight: var(--text-label-sm--font-weight);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ---------------------------------------------------------------------------------------------
   5. Icon badge and dot (M3 defaults). They sit on the top inline-end corner of a 24px icon
   centered in its positioned host (an icon button or a navigation indicator). The icon badge is
   16px tall with a count in label-sm; the dot is 6px, in primary-ink, because it carries meaning
   without words and must reach 3:1 (primary is 2.63:1 on surface). Their meaning is in the host's
   accessible name (canonical §2.2, §10.26; D-CSN-33).
   --------------------------------------------------------------------------------------------- */

.oa-badge--icon,
.oa-badge--dot {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.oa-badge--icon {
  inset-block-start: calc(50% - var(--size-icon-lg) / 2 - var(--space-1));
  inset-inline-start: calc(50% + var(--space-0-5));
  min-inline-size: 16px; /* component constant: icon badge (canonical §10.26) */
  block-size: 16px; /* component constant: icon badge (canonical §10.26) */
  padding-inline: var(--space-1);
}

.oa-badge--dot {
  inset-block-start: calc(50% - var(--size-icon-lg) / 2);
  inset-inline-start: calc(50% + var(--size-icon-lg) / 2 - 6px); /* layout maths: the dot's end meets the icon's end */
  min-inline-size: 0;
  inline-size: 6px; /* component constant: badge dot (canonical §10.26) */
  block-size: 6px; /* component constant: badge dot (canonical §10.26) */
  padding: 0;
  border-width: 3px;
  background-color: var(--color-primary-ink);
}


/* ---------------------------------------------------------------------------------------------
   reference/css/overlay.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/overlay.css
   Overlays: the scrim, dialogs, bottom sheets, the responsive modal, side sheets, menus, popovers,
   and plain tooltips. Load after tokens/oait.css and base.css.

   Implements
   - Floating surfaces: surface-raised, shadow-elevation-3, and a transparent 1px edge for forced
     colors; rounded-sheet when modal, rounded-box when anchored (D-ARC-09, D-SEM-08, D-SEM-10,
     D-ARC-14, D-ARC-15, canonical §6.1, §10.0).
   - Dialog: up to 560px, 24px padding, the body scrolling between a fixed header and action row,
     headline-sm title, body-md description, a 48px close button 8px from the top and inline end,
     actions at the inline end 8px apart; sticky action row with a hairline for long forms
     (D-CSN-21, D-LAY-06, D-ARC-25, canonical §10.19).
   - Bottom sheet: top corners only, up to 560px, 90dvh, the decorative 32×4px handle, padding
     16 / 24 / 24 + the bottom inset, buttons sharing the width (D-CSN-22, D-LAY-17).
   - Responsive modal: a bottom sheet below 768px and a dialog from 768px (D-CSN-22, D-LAY-02).
   - Side sheet: 85vw up to 384px, full height, the two free corners rounded, from the inline end
     (phone menu) or start (admin drawer), safe areas padded (D-CSN-12, D-CSN-13, D-ARC-24).
   - Scrim: black 32% in both themes on the modal layer; dialog::backdrop for native dialogs; the
     page does not scroll while a native modal is open (D-CSN-21, D-ARC-26).
   - Menu: 200–320px, 8px block padding, 48px items with 16px inline padding and 12px gaps,
     body-lg, a 20px primary-ink check on the current or checked item, 8% / 12% state layers,
     38% disabled, outline-variant dividers; under its trigger at the inline end, 4px apart, or
     above it (D-CSN-23, D-ARC-24, D-ARC-20, D-COL-05).
   - Popover: the menu container with 16px padding, a label-md title, body-md text, and an optional
     close button (D-CSN-23, D-ARC-20).
   - Plain tooltip: inverse-surface in both themes, 4px corners, 4px 8px padding, 24px tall at
     least, up to 240px, body-sm, above its trigger and centered, on the tooltip layer
     (D-CSN-24, D-ARC-08, D-ARC-24, D-ARC-26).
   - Motion: fades at short-3; sheets slide at short-4; entrances emphasized; exits short-3
     emphasized-accelerate; nothing moves under reduced motion (base.css) (D-SEM-16, canonical §7.3).

   Tokens read: --color-surface-raised, --color-on-surface, --color-on-surface-variant,
   --color-primary-ink, --color-outline, --color-outline-variant, --color-scrim,
   --color-inverse-surface, --color-inverse-on-surface; --shadow-elevation-3;
   --radius-sheet, --radius-box, --radius-4px, --radius-full; --space-1, --space-2, --space-3,
   --space-4, --space-6, --space-10, --space-16, --space-card-medium, --space-row-inset,
   --space-stack-tight, --space-stack-loose, --space-fields; --container-dialog,
   --container-side-sheet, --container-menu, --container-tooltip; --size-menu-min,
   --size-menu-item, --size-icon-md, --size-focus-inset; --text-headline-sm, --text-title-lg,
   --text-body-lg, --text-body-md, --text-body-sm, --text-label-md (each with its --line-height,
   --letter-spacing, and --font-weight); --opacity-state-hover, --opacity-state-pressed,
   --opacity-state-disabled-content; --duration-short-3, --duration-short-4; --ease-standard,
   --ease-emphasized, --ease-emphasized-accelerate; --z-behind, --z-dropdown, --z-modal,
   --z-tooltip. Context property: --oa-state (CONTRIBUTING.md, reference CSS rules).

   Classes: .oa-scrim · .oa-dialog (__header __title __desc __close __body __actions
   __actions--sticky) · .oa-sheet (__handle) · .oa-modal · .oa-side-sheet (--start --end) ·
   .oa-menu (__item __icon __label __check __divider __anchor) · .oa-popover (__title __body
   __close __anchor) · .oa-tooltip (__anchor). The .oa-dialog__* parts are shared by every modal
   surface: dialog, bottom sheet, responsive modal, and side sheet.
   States and placement: [open], :modal, [hidden], [popover], :disabled, [aria-disabled="true"],
   [aria-current], [aria-checked="true"], [data-side="top" | "bottom"], [data-align="start" | "end"]
   (the attributes Radix also sets).
   Documentation only, never in a product: .oa-scrim--demo, .oa-menu__anchor--demo,
   .oa-popover__anchor--demo, .oa-tooltip__anchor--demo, and the open attribute written in HTML. */


/* ---------------------------------------------------------------------------------------------
   1. Scrim. Black at 32% in both themes, on the modal layer. Native dialogs draw it with
   ::backdrop; .oa-scrim is the element version (Radix Dialog.Overlay, framework-free sheets that
   are not <dialog>). A press on it closes what it holds (D-CSN-21, D-ARC-26).
   --------------------------------------------------------------------------------------------- */

.oa-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: var(--color-scrim);
  transition:
    opacity var(--duration-short-3) var(--ease-standard),
    display var(--duration-short-3) allow-discrete;
}

/* The element scrim leaves like the backdrop: hidden fades it out over short-3. */
.oa-scrim[hidden] {
  opacity: 0;
  transition-timing-function: var(--ease-emphasized-accelerate);
}

dialog::backdrop {
  background-color: var(--color-scrim);
  transition:
    opacity var(--duration-short-3) var(--ease-standard),
    overlay var(--duration-short-3) allow-discrete,
    display var(--duration-short-3) allow-discrete;
}

dialog:not([open])::backdrop {
  opacity: 0;
  transition-timing-function: var(--ease-emphasized-accelerate);
}

/* The page behind a native modal does not scroll (D-CSN-21). */
:root:has(dialog:modal) {
  overflow: hidden;
}


/* ---------------------------------------------------------------------------------------------
   2. Modal surfaces: what dialog, bottom sheet, responsive modal, and side sheet share.
   surface-raised (#ffffff light, #322823 dark), elevation-3, a transparent 1px edge, a column of
   header, body, and actions 24px apart (D-ARC-09, D-SEM-08, D-SEM-10, D-ARC-25).
   --------------------------------------------------------------------------------------------- */

.oa-dialog,
.oa-sheet,
.oa-modal,
.oa-side-sheet {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-loose);
  border: 1px solid transparent;
  background-color: var(--color-surface-raised);
  color: var(--color-on-surface);
  box-shadow: var(--shadow-elevation-3);
  overflow: auto;
  overscroll-behavior: contain;
}

/* A closed native dialog stays hidden whatever display the class gives it. */
dialog:is(.oa-dialog, .oa-sheet, .oa-modal, .oa-side-sheet):not([open]) {
  display: none;
}

/* Documentation only: a native dialog opened without showModal() (the open attribute written in
   HTML) sits in the page flow, so pages can show it open and static. In a product this look is
   the sign of a dialog opened the wrong way: always call showModal(). */
dialog:is(.oa-dialog, .oa-sheet, .oa-modal, .oa-side-sheet)[open]:not(:modal) {
  position: relative;
  inset: auto;
  z-index: auto;
}


/* ---------------------------------------------------------------------------------------------
   3. Dialog. Centered, calc(100% - 2rem) wide up to 560px, at most calc(100dvh - 2rem) tall,
   24px padding, rounded-sheet (D-CSN-21, D-LAY-06, D-LAY-17, D-ARC-15).
   --------------------------------------------------------------------------------------------- */

.oa-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  margin: auto;
  inline-size: calc(100% - 2 * var(--space-4));
  max-inline-size: var(--container-dialog);
  block-size: fit-content;
  max-block-size: calc(100dvh - 2 * var(--space-4) - var(--oa-safe-top) - var(--oa-safe-bottom));
  padding: var(--space-card-medium);
  border-radius: var(--radius-sheet);
}

/* The window the dialog centers in stops at the top and bottom insets, so a tall dialog keeps its
   title and Close button out of the notch and its actions above the home indicator (canonical §4.10). */
.oa-dialog:modal {
  inset-block: var(--oa-safe-top) var(--oa-safe-bottom);
}


/* ---------------------------------------------------------------------------------------------
   4. Bottom sheet, and the responsive modal below 768px. Fixed to the bottom, the window's width
   up to 560px and centered, at most 90dvh tall, the top corners rounded and the bottom square;
   a 32×4px handle 16px from the top; content 16px under the handle, 24px at the sides, 24px plus
   the bottom safe area at the end (D-CSN-22, D-LAY-17, D-SEM-05).
   --------------------------------------------------------------------------------------------- */

.oa-sheet,
.oa-modal {
  --oa-sheet-handle-inline: 32px; /* component constant (D-ARC-24) */
  --oa-sheet-handle-block: 4px;   /* component constant (D-ARC-24) */
  position: fixed;
  inset-block: auto var(--oa-keyboard-inset);
  inset-inline: 0;
  z-index: var(--z-modal);
  margin-block: 0;
  margin-inline: auto;
  inline-size: 100%;
  max-inline-size: var(--container-dialog);
  block-size: fit-content;
  max-block-size: calc(90dvh - var(--oa-keyboard-inset));
  padding-block: calc(2 * var(--space-4) + var(--oa-sheet-handle-block)) calc(var(--space-card-medium) + var(--oa-safe-bottom));
  padding-inline: var(--space-card-medium);
  border-block-end-width: 0;
  border-start-start-radius: var(--radius-sheet);
  border-start-end-radius: var(--radius-sheet);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

/* Decorative: aria-hidden. It does not mean the sheet can be swiped unless the product builds it,
   and even then Cancel or Close stays the way out (WCAG 2.5.7). */
.oa-sheet__handle {
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline: 0;
  margin-inline: auto;
  inline-size: var(--oa-sheet-handle-inline);
  block-size: var(--oa-sheet-handle-block);
  border-radius: var(--radius-full);
  background-color: color-mix(in srgb, var(--color-outline) 40%, transparent); /* outline at 40%, canonical §10.19 */
}

/* The responsive modal from 768px: the dialog geometry, no handle (D-CSN-22). */
@media (min-width: 48rem) {
  .oa-modal {
    inset-block: var(--oa-safe-top) calc(var(--oa-safe-bottom) + var(--oa-keyboard-inset));
    inset-inline: 0;
    margin: auto;
    inline-size: calc(100% - 2 * var(--space-4));
    max-block-size: calc(100dvh - 2 * var(--space-4) - var(--oa-safe-top) - var(--oa-safe-bottom) - var(--oa-keyboard-inset));
    padding: var(--space-card-medium);
    border-block-end-width: 1px;
    border-radius: var(--radius-sheet);
  }

  .oa-modal .oa-sheet__handle {
    display: none;
  }
}


/* ---------------------------------------------------------------------------------------------
   5. Side sheet. Modal, full height, 85vw up to 384px, attached to the inline end (the phone menu
   of a site header) or the inline start (the admin drawer below 768px); the two corners that face
   the page are rounded, the attached side is square; 24px padding plus the safe areas
   (D-CSN-12, D-CSN-13, D-ARC-24, D-SEM-05, D-LAY-17).
   --------------------------------------------------------------------------------------------- */

.oa-side-sheet {
  --oa-side-sheet-from: 100%;
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  z-index: var(--z-modal);
  margin: 0;
  inline-size: 85vw;
  max-inline-size: var(--container-side-sheet);
  block-size: 100dvh;
  max-block-size: none;
  padding-block: calc(var(--space-6) + var(--oa-safe-top)) calc(var(--space-6) + var(--oa-safe-bottom));
  padding-inline: var(--space-6) calc(var(--space-6) + var(--oa-safe-end)); /* the attached side takes its inset */
  border-start-start-radius: var(--radius-sheet);
  border-end-start-radius: var(--radius-sheet);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

/* The end sheet is the default; the modifier names it in markup. */
.oa-side-sheet--end {
  inset-inline: auto 0;
}

.oa-side-sheet--start {
  --oa-side-sheet-from: -100%;
  inset-inline: 0 auto;
  padding-inline: calc(var(--space-6) + var(--oa-safe-start)) var(--space-6);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: var(--radius-sheet);
  border-end-end-radius: var(--radius-sheet);
}

/* Everything mirrors with the direction: an end sheet is attached to the left in Arabic and slides
   in from there; its padding needs no override, because --oa-safe-end is the left inset in
   right-to-left (base.css, canonical §4.10). */
.oa-side-sheet:dir(rtl) {
  --oa-side-sheet-from: -100%;
}

.oa-side-sheet--start:dir(rtl) {
  --oa-side-sheet-from: 100%;
}

dialog.oa-side-sheet[open]:not(:modal) {
  block-size: auto;
}

/* Side sheet header: the title and its close button on one row. */
.oa-side-sheet .oa-dialog__header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-inline-end: 0;
}

.oa-side-sheet .oa-dialog__title {
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

/* The 48px button's icon lines up with the 24px padding. */
.oa-side-sheet .oa-dialog__close {
  margin-inline-end: calc(-1 * var(--space-3));
}


/* ---------------------------------------------------------------------------------------------
   6. Parts every modal surface shares: header (title, description, close), body, and actions
   (D-CSN-21, D-ARC-20, D-ARC-21).
   --------------------------------------------------------------------------------------------- */

.oa-dialog__header {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--space-stack-tight);
  padding-inline-end: var(--space-10); /* the title keeps 40px clear of the close button */
}

.oa-dialog__title {
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-headline-sm);
  line-height: var(--text-headline-sm--line-height);
  letter-spacing: var(--text-headline-sm--letter-spacing);
  font-weight: var(--text-headline-sm--font-weight);
}

.oa-dialog__desc {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* A 48px close icon button 8px from the top and inline end of dialogs and bottom sheets. */
:is(.oa-dialog, .oa-sheet, .oa-modal) .oa-dialog__close {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-end: var(--space-2);
}

/* The body scrolls while the header and the actions stay. It bleeds 8px into the padding so the
   focus ring of a full-width field is never clipped by the scroll box. */
.oa-dialog__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-fields);
  min-block-size: 0;
  margin: calc(-1 * var(--space-2));
  padding: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The action row slot. The row itself is button.css's .oa-actions on the same element: the dialog
   footer by default (Cancel first, the main button last at the inline end, 8px apart), --sheet in
   bottom sheets (both lg, sharing the width), --modal in the responsive modal (D-CAI-04). */
.oa-dialog__actions {
  flex: none;
}

/* Long forms: the action row keeps a 1px outline-variant top edge across the full width. */
.oa-dialog__actions--sticky {
  margin-block-start: calc(-1 * var(--space-2));
  margin-inline: calc(-1 * var(--space-card-medium));
  padding-block-start: var(--space-4);
  padding-inline: var(--space-card-medium);
  border-block-start: 1px solid var(--color-outline-variant);
}


/* ---------------------------------------------------------------------------------------------
   7. Motion (D-SEM-16, canonical §7.3). Enter with ease-emphasized; leave at short-3 with
   ease-emphasized-accelerate. Native dialogs animate open and close with @starting-style and
   allow-discrete display and overlay; elsewhere the exit runs where the browser supports it and
   is instant otherwise. base.css switches every transition off under reduced motion, so states
   change at once; never wait for transitionend.
   --------------------------------------------------------------------------------------------- */

.oa-dialog {
  transition-property: opacity, scale, display, overlay;
  transition-duration: var(--duration-short-3);
  transition-timing-function: var(--ease-emphasized);
  transition-behavior: allow-discrete;
}

.oa-sheet,
.oa-modal,
.oa-side-sheet {
  transition-property: translate, display, overlay;
  transition-duration: var(--duration-short-4);
  transition-timing-function: var(--ease-emphasized);
  transition-behavior: allow-discrete;
}

dialog.oa-dialog:not([open]) {
  opacity: 0;
  scale: 0.95;
  transition-timing-function: var(--ease-emphasized-accelerate);
}

dialog:is(.oa-sheet, .oa-modal):not([open]) {
  translate: 0 100%;
  transition-duration: var(--duration-short-3);
  transition-timing-function: var(--ease-emphasized-accelerate);
}

dialog.oa-side-sheet:not([open]) {
  translate: var(--oa-side-sheet-from) 0;
  transition-duration: var(--duration-short-3);
  transition-timing-function: var(--ease-emphasized-accelerate);
}

@media (min-width: 48rem) {
  .oa-modal {
    transition-property: opacity, scale, display, overlay;
    transition-duration: var(--duration-short-3);
  }

  dialog.oa-modal:not([open]) {
    translate: none;
    opacity: 0;
    scale: 0.95;
  }
}

@starting-style {
  .oa-scrim,
  dialog[open]::backdrop {
    opacity: 0;
  }

  .oa-dialog {
    opacity: 0;
    scale: 0.95;
  }

  .oa-sheet,
  .oa-modal {
    translate: 0 100%;
  }

  .oa-side-sheet {
    translate: var(--oa-side-sheet-from) 0;
  }
}

@media (min-width: 48rem) {
  @starting-style {
    .oa-modal {
      translate: none;
      opacity: 0;
      scale: 0.95;
    }
  }
}


/* ---------------------------------------------------------------------------------------------
   8. Menu. Anchored list of actions or links: surface-raised, rounded-box, elevation-3,
   200–320px, 8px block padding, on the dropdown layer (D-CSN-23, D-ARC-24, D-ARC-26).
   The class carries the look only; .oa-menu__anchor places it, or a library (Radix, Floating UI)
   places its wrapper. Show it by removing the hidden attribute.
   --------------------------------------------------------------------------------------------- */

.oa-menu {
  box-sizing: border-box;
  z-index: var(--z-dropdown);
  inline-size: max-content;
  min-inline-size: var(--size-menu-min);
  max-inline-size: min(var(--container-menu), calc(100vw - 2 * var(--space-gutter))); /* never wider than the page frame: 288px at 320 */
  margin: 0;
  padding-block: var(--space-2);
  padding-inline: 0;
  list-style: none;
  border: 1px solid transparent;
  border-radius: var(--radius-box);
  background-color: var(--color-surface-raised);
  color: var(--color-on-surface);
  box-shadow: var(--shadow-elevation-3);
  overflow: hidden auto;
  overscroll-behavior: contain;
}

/* One row: at least 48px, 16px inline padding, 12px between icon, label, and check, body-lg. */
.oa-menu__item {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--size-menu-item);
  margin: 0;
  padding-block: 0; /* canonical §10.20: min-h-12 px-4 gap-3; the 48px minimum centers one line, so a row in another script (Arabic in an English menu) stays 48px */
  padding-inline: var(--space-row-inset);
  border: 0;
  background: none;
  color: var(--color-on-surface);
  font-family: inherit;
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.oa-menu__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-menu__item:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-menu__item:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-menu__item:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once, the release fades (canonical §2.7) */
}

/* Rows inside a clipping container take the inset ring (canonical §6.3). */
.oa-menu__item:focus-visible,
.oa-menu__item[data-demo-focus] {
  outline-offset: var(--size-focus-inset);
}

.oa-menu__item:is(:disabled, [aria-disabled="true"]) {
  color: color-mix(in srgb, var(--color-on-surface) calc(var(--opacity-state-disabled-content) * 100%), transparent);
  cursor: default;
}

.oa-menu__item:is(:disabled, [aria-disabled="true"])::before {
  opacity: 0;
}

/* Icons and the check are 20px whatever icon class they carry (D-ARC-22). */
.oa-menu__item :is(.oa-menu__icon, .oa-menu__check) {
  flex: none;
  font-size: var(--size-icon-md);
}

.oa-menu__icon {
  color: var(--color-on-surface-variant);
}

.oa-menu__label {
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

/* The check marks the current item of a disclosure list (aria-current) or a checked item of an
   action menu (aria-checked); it is the non-color cue (D-CAI-14). */
.oa-menu__check {
  color: var(--color-primary-ink);
  visibility: hidden;
}

.oa-menu__item:is([aria-current]:not([aria-current="false"]), [aria-checked="true"]) .oa-menu__check {
  visibility: visible;
}

.oa-menu__item:is(:disabled, [aria-disabled="true"]) :is(.oa-menu__icon, .oa-menu__check) {
  color: inherit;
}

.oa-menu__divider {
  display: block;
  block-size: 0;
  margin-block: var(--space-2);
  margin-inline: 0;
  border: 0;
  border-block-start: 1px solid var(--color-outline-variant);
  color: inherit; /* an <hr> keeps the browser's gray text color otherwise */
}


/* ---------------------------------------------------------------------------------------------
   9. Popover. A non-modal anchored panel for help or details: the menu container with 16px
   padding, a label-md title, body-md text, and an optional close button. Below 640px the same
   content opens as a bottom sheet (D-CSN-23, D-ARC-20).
   --------------------------------------------------------------------------------------------- */

.oa-popover {
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-tight);
  inline-size: max-content;
  min-inline-size: var(--size-menu-min);
  max-inline-size: min(var(--container-menu), calc(100vw - 2 * var(--space-gutter))); /* never wider than the page frame: 288px at 320 */
  margin: 0;
  padding: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-box);
  background-color: var(--color-surface-raised);
  color: var(--color-on-surface);
  box-shadow: var(--shadow-elevation-3);
}

.oa-popover__title {
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-popover:has(> .oa-popover__close) .oa-popover__title {
  padding-inline-end: var(--space-10);
}

.oa-popover__body {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* The 48px close button sits 4px from the top and inline end, so its icon meets the padding. */
.oa-popover .oa-popover__close {
  position: absolute;
  inset-block-start: var(--space-1);
  inset-inline-end: var(--space-1);
}


/* ---------------------------------------------------------------------------------------------
   10. Plain tooltip. inverse-surface and inverse-on-surface in both themes, 4px corners,
   4px 8px padding, at least 24px tall, up to 240px wide, body-sm, on the tooltip layer. It adds
   to a control that already has a name; never the title attribute (D-CSN-24, D-ARC-08, D-ARC-24,
   D-ARC-26). Show it by removing the hidden attribute: after --duration-delay-tooltip on mouse
   rest, at once on keyboard focus (the script reads the token).
   --------------------------------------------------------------------------------------------- */

.oa-tooltip {
  box-sizing: border-box;
  display: block;
  z-index: var(--z-tooltip);
  inline-size: max-content;
  max-inline-size: var(--container-tooltip);
  min-block-size: var(--space-6);
  margin: 0;
  padding-block: var(--space-1);
  padding-inline: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-4px);
  background-color: var(--color-inverse-surface);
  color: var(--color-inverse-on-surface);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  letter-spacing: var(--text-body-sm--letter-spacing);
  font-weight: var(--text-body-sm--font-weight);
  text-align: start;
  overflow-wrap: break-word;
}


/* ---------------------------------------------------------------------------------------------
   11. Anchoring without a library. The trigger and its overlay share an anchor element:
   menus and popovers sit under the trigger, aligned to its inline end, 4px apart, or above it
   with data-side="top" (near the bottom of the window, in footers); data-align="start" aligns
   them to the trigger's inline start. Tooltips sit above the trigger, centered, 4px apart, or below
   with data-side="bottom" (triggers near the top of the window); data-align="start" or "end"
   keeps them inside the window at a row's edges (D-CSN-23, D-CSN-24).
   Inside a scrolling region (a table region) an absolute overlay would be clipped: render it in
   the top layer with the popover attribute and let the script or library place it. The anchor
   rules skip [popover] overlays: in the top layer their offsets would be read against the window.
   --------------------------------------------------------------------------------------------- */

.oa-menu__anchor,
.oa-popover__anchor,
.oa-tooltip__anchor {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.oa-menu__anchor:not(.oa-menu__anchor--demo) > .oa-menu:not([popover]),
.oa-popover__anchor:not(.oa-popover__anchor--demo) > .oa-popover:not([popover]) {
  position: absolute;
  inset-block: calc(100% + var(--space-1)) auto;
  inset-inline: auto 0;
}

.oa-menu__anchor:not(.oa-menu__anchor--demo) > .oa-menu:not([popover])[data-side="top"],
.oa-popover__anchor:not(.oa-popover__anchor--demo) > .oa-popover:not([popover])[data-side="top"] {
  inset-block: auto calc(100% + var(--space-1));
}

.oa-menu__anchor:not(.oa-menu__anchor--demo) > .oa-menu:not([popover])[data-align="start"],
.oa-popover__anchor:not(.oa-popover__anchor--demo) > .oa-popover:not([popover])[data-align="start"] {
  inset-inline: 0 auto;
}

.oa-tooltip__anchor:not(.oa-tooltip__anchor--demo) > .oa-tooltip:not([popover]) {
  position: absolute;
  inset-block: auto calc(100% + var(--space-1));
  inset-inline: 50% auto;
  translate: -50% 0;
}

.oa-tooltip__anchor:not(.oa-tooltip__anchor--demo) > .oa-tooltip:not([popover]):dir(rtl) {
  translate: 50% 0;
}

.oa-tooltip__anchor:not(.oa-tooltip__anchor--demo) > .oa-tooltip:not([popover])[data-side="bottom"] {
  inset-block: calc(100% + var(--space-1)) auto;
}

.oa-tooltip__anchor:not(.oa-tooltip__anchor--demo) > .oa-tooltip:not([popover])[data-align="start"] {
  inset-inline: 0 auto;
  translate: none;
}

.oa-tooltip__anchor:not(.oa-tooltip__anchor--demo) > .oa-tooltip:not([popover])[data-align="end"] {
  inset-inline: auto 0;
  translate: none;
}

/* The top layer (popover attribute): fixed, and the script or library sets the coordinates. */
:is(.oa-menu, .oa-popover, .oa-tooltip)[popover] {
  position: fixed;
  inset-block: auto;
  inset-inline: auto;
}


/* ---------------------------------------------------------------------------------------------
   12. Anchored motion: menus and popovers fade and rise 4px over short-3 emphasized; tooltips
   fade over short-3 standard; exits fade over short-3 emphasized-accelerate (D-SEM-16).
   --------------------------------------------------------------------------------------------- */

.oa-menu,
.oa-popover {
  transition:
    opacity var(--duration-short-3) var(--ease-emphasized),
    translate var(--duration-short-3) var(--ease-emphasized),
    display var(--duration-short-3) allow-discrete,
    overlay var(--duration-short-3) allow-discrete;
}

.oa-tooltip {
  transition:
    opacity var(--duration-short-3) var(--ease-standard),
    display var(--duration-short-3) allow-discrete,
    overlay var(--duration-short-3) allow-discrete;
}

:is(.oa-menu, .oa-popover, .oa-tooltip)[hidden] {
  opacity: 0;
  transition-timing-function: var(--ease-emphasized-accelerate);
}

@starting-style {
  .oa-menu,
  .oa-popover {
    opacity: 0;
    translate: 0 var(--space-1);
  }

  .oa-tooltip {
    opacity: 0;
  }
}


/* ---------------------------------------------------------------------------------------------
   13. Documentation only. Never in a product.
   .oa-scrim--demo turns the scrim into an in-flow frame that stands in for the window behind a
   modal surface; the surface inside is a native dialog with the open attribute (section 2).
   The __anchor--demo modifiers lay the trigger and its open overlay out in the page flow, in the
   places the anchoring of section 11 gives them, so nothing overlaps the content that follows.
   --------------------------------------------------------------------------------------------- */

.oa-scrim--demo {
  position: relative;
  inset: auto;
  z-index: auto;
  display: grid;
  place-items: center;
  inline-size: 100%;
  min-inline-size: 0;
  padding-block: var(--space-10);
  padding-inline: var(--space-4);
  overflow: hidden;
}

.oa-scrim--demo:has(> .oa-sheet) {
  padding-block: var(--space-16) 0;
  padding-inline: 0;
}

.oa-scrim--demo > .oa-sheet {
  align-self: end;
}

.oa-scrim--demo:has(> .oa-side-sheet) {
  padding: 0;
  place-items: stretch end;
}

.oa-scrim--demo > .oa-side-sheet--start {
  justify-self: start;
}

@media (width < 48rem) {
  .oa-scrim--demo:has(> .oa-modal) {
    padding-block: var(--space-16) 0;
    padding-inline: 0;
  }

  .oa-scrim--demo > .oa-modal {
    align-self: end;
  }
}

.oa-menu__anchor--demo,
.oa-popover__anchor--demo {
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.oa-tooltip__anchor--demo {
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-1);
}

.oa-menu__anchor--demo:has(> [data-side="top"]),
.oa-popover__anchor--demo:has(> [data-side="top"]) {
  flex-direction: column-reverse;
}

.oa-tooltip__anchor--demo:has(> [data-side="bottom"]) {
  flex-direction: column;
}

.oa-menu__anchor--demo:has(> [data-align="start"]),
.oa-popover__anchor--demo:has(> [data-align="start"]),
.oa-tooltip__anchor--demo:has(> [data-align="start"]) {
  align-items: flex-start;
}

.oa-tooltip__anchor--demo:has(> [data-align="end"]) {
  align-items: flex-end;
}


/* ---------------------------------------------------------------------------------------------
   reference/css/site-nav.css
   --------------------------------------------------------------------------------------------- */

/*
 * site-nav.css — OAIT Design System 2.1.0 reference CSS, unit c-nav-site.
 *
 * Components: the site header of marketing and public pages (lock-up, main navigation from 1024px with
 * the current-page treatment, the end cluster, the 48px menu button), the phone menu sheet content that
 * sits inside the side sheet of overlay.css, the marketing footer (brand zone, link groups, the
 * Platforms group of oait.app, the legal bar with the endorsement line and the language switcher) and
 * the app footer row, the breadcrumb trail and the back link, pagination for data tables, and the
 * sticky action bar for phones.
 *
 * Implements: D-CSN-09, D-CSN-11, D-CSN-12, D-CSN-14 (sheet items), D-CSN-15, D-CSN-17, D-CSN-18,
 * D-CSN-50, D-LAY-03, D-LAY-04, D-LAY-14, D-LAY-15 (CLIENT CALL, default sticky), D-LAY-16, D-LAY-17,
 * D-BCP-09 and D-ARC-28 (the lock-up never hides; actions collapse first), D-BCP-13 (endorsement line),
 * D-BCP-29 (switcher placement), D-CAI-04 (CLIENT CALL, one extra filled md CTA in marketing headers),
 * D-ARC-05, D-ARC-10 (the glass recipe), D-ARC-20 (type), D-ARC-24, D-ARC-25, D-ARC-26, D-SEM-10,
 * D-SEM-11, D-SEM-12, D-SEM-15, D-COL-05, D-ARC-33.
 * Canonical: §1.4, §1.7, §2.5, §2.7, §4.3, §4.8, §4.9, §4.10, §6.2, §6.3, §6.4, §10.0, §10.13 (pagination),
 * §10.14, §10.16, §10.17 (breadcrumbs and back links), §10.29.
 *
 * Tokens read: --color-surface, --color-surface-container, --color-surface-container-high,
 *   --color-surface-container-highest, --color-on-surface, --color-on-surface-variant, --color-primary-container,
 * --color-on-primary-container, --color-primary-ink, --color-outline, --color-outline-variant;
 * --space-1, --space-2, --space-2-5, --space-3, --space-4, --space-6, --space-8, --space-10, --space-12,
 * --space-24, --space-gutter, --space-gutter-medium; --container-page; --size-header,
 * --size-touch-target, --size-list-row, --size-scroll-offset, --size-mark-xs; --radius-full,
 * --radius-8px; --z-header, --z-sticky, --z-behind; --font-weight-medium, --font-weight-semibold,
 * --font-weight-bold; --text-label-lg, --text-label-md, --text-title-md, --text-title-sm, --text-body-md
 * (each with its --line-height, --letter-spacing, and --font-weight); --opacity-state-hover,
 * --opacity-state-pressed; --duration-short-3, --ease-standard.
 *
 * Classes:
 *   .oa-site-header (+ __inner, __nav, __list, __link, __actions, __collapse (+ --md), __menu-btn)
 *   .oa-nav-sheet (+ __list, __item, __icon, __divider, __section)
 *   .oa-footer (+ --app; __inner, __brand, __about, __groups, __group, __group-title, __list, __link,
 *     __platforms, __legal, __legal-inner, __endorse, __legal-links, __legal-link, __lang)
 *   .oa-breadcrumb (+ __list, __item, __link, __sep, __current), .oa-back-link
 *   .oa-pagination (+ --more; __status, __controls, __btn, __page)
 *   .oa-action-bar (+ __summary, __title, __supporting)
 *   Documentation only, never in a product: .oa-site-header--demo, .oa-action-bar--demo.
 * States: [aria-current="page"], [aria-current="location"], [aria-disabled="true"], :hover (pointer
 * devices), :active, :focus-visible (base.css), [data-demo-focus] (documentation only).
 *
 * Relies on: base.css (reset, the focus ring, .oa-icon and --mirror, .oa-visually-hidden); button.css
 * (.oa-btn for the CTA, quiet actions, and "Show {count} more"; .oa-icon-btn for the menu button);
 * overlay.css (dialog.oa-side-sheet--end with .oa-dialog__header, __title, and __close around
 * .oa-nav-sheet; the .oa-menu classes a language list composes); brand-kit.css (.oa-lockup, .oa-lang,
 * and .oa-mark for the inline marks of the Platforms group).
 * Context property read: --oa-state (the state layer, CONTRIBUTING.md).
 * Recipes kept from canonical (not tokens): the glass, bg-surface/80 with Tailwind's backdrop-blur-xl
 * (24px) (canonical §2.5, §6.4, D-ARC-10); the 3px current-page bar with 3px top corners (canonical §6.2,
 * D-CSN-11); the 1.6fr brand column and the 448px sentence of the footer (D-CSN-15).
 * Safe-area insets are physical on purpose (canonical §4.10, D-LAY-17): those lines carry lint-ok.
 * Breakpoints are literal rem values: sm 40rem (640px), md 48rem (768px), lg 64rem (1024px); the short
 * viewport query is (max-height: 30rem) (D-LAY-17, D-ARC-30).
 */


/* ------------------------------------------------------------------------------------------------
   1. Page scroll padding. A sticky header covers the top 72px of the window, so anchor targets and
   focused fields keep 96px clear of it (WCAG 2.4.11), plus the top inset of standalone apps
   (viewport-fit=cover), where the header grows by that inset; never also [id] { scroll-margin-top }:
   the two add up. Above a sticky action bar (81px plus the bottom inset) the bottom keeps the same
   --size-scroll-offset plus the inset, about the bar's height and 16px. Short windows turn both bars
   static, so the padding goes too (D-LAY-15, D-LAY-17, D-CSN-50, canonical §4.8, §4.10).
   ------------------------------------------------------------------------------------------------ */

html:has(.oa-site-header) {
  scroll-padding-block-start: calc(var(--size-scroll-offset) + var(--oa-safe-top));
}

@media (width < 64rem) {
  html:has(.oa-action-bar) {
    scroll-padding-block-end: calc(var(--size-scroll-offset) + var(--oa-safe-bottom));
  }
}

@media (max-height: 30rem) {
  html:has(.oa-site-header),
  html:has(.oa-action-bar) {
    scroll-padding-block: auto;
  }
}


/* ------------------------------------------------------------------------------------------------
   2. Site header (canonical §10.14, D-CSN-09, D-LAY-15). 72px at every width, sticky on the header
   layer, static on short windows, glass (bg-surface/80 with a 24px backdrop blur), no edge, no shadow.
   The header is the full-bleed parent: it pads the top and side safe-area insets; its inner row is the
   page frame (1280px with the gutters inside), so its edge lines up with the page below (D-LAY-04).
   ------------------------------------------------------------------------------------------------ */

.oa-site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  padding-block-start: var(--oa-safe-top);
  padding-inline: var(--oa-safe-start) var(--oa-safe-end);
  /* Glass on surface-container: the bar is one step darker than the page, which stays surface.
     90%, not the 80% of the glass recipe, so the "Sign in" label (primary-ink) keeps 4.88:1 when
     black content scrolls under the bar (canonical §10.14, D-CSN-54, D-CSN-55); backdrop-blur-xl
     is 24px. */
  background-color: color-mix(in srgb, var(--color-surface-container) 90%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--color-on-surface);
}

@media (max-height: 30rem) {
  .oa-site-header {
    position: static;
  }
}

.oa-site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--size-header);
  max-inline-size: var(--container-page);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

@media (min-width: 40rem) {
  .oa-site-header__inner {
    padding-inline: var(--space-gutter-medium);
  }
}

/* The lock-up never shrinks or hides: header actions collapse first (canonical §1.4, D-BCP-09). */
.oa-site-header__inner > .oa-lockup {
  flex: none;
}

/* Main navigation: hidden below 1024px (the menu sheet carries it), centered in the free space from
   1024px. Links sit 4px apart (D-CSN-09). A header with four or five links keeps the sheet up to
   1280px: with the switcher, the theme toggle and the sign-in pair, four links need 956px in English
   and about 982px in Arabic, and a 1024px window holds 961px beside a classic scrollbar (D-CSN-56).
   The rule counts the links, so a product sets nothing. */
.oa-site-header__nav {
  display: none;
}

.oa-site-header__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 64rem) {
  .oa-site-header__nav:not(:has(.oa-site-header__list > :nth-child(4))) {
    display: block;
    margin-inline: auto;
  }

  .oa-site-header__nav:not(:has(.oa-site-header__list > :nth-child(4))) ~ .oa-site-header__actions {
    margin-inline-start: 0;
  }
}

@media (min-width: 80rem) {
  .oa-site-header__nav {
    display: block;
    margin-inline: auto;
  }

  .oa-site-header__nav ~ .oa-site-header__actions {
    margin-inline-start: 0;
  }
}

/* Navigation link: a 48px pill, label-lg in on-surface-variant, the state layer on hover and press
   (canonical §10.14, D-CSN-11, D-ARC-20). */
.oa-site-header__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-touch-target);
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

/* Current page (aria-current="page"), or the section in view on a page that tracks its sections
   (aria-current="location"): the peach fill, on-surface text in bold, and a 3px primary-ink bar
   12px in from both ends and 4px above the bottom, with 3px top corners. The fill alone is 1.2:1
   against the header, so the bar and the weight carry the state (D-CSN-11, canonical §6.2). The bar
   is a border, so forced-colors mode keeps it. */
.oa-site-header__link:is([aria-current="page"], [aria-current="location"]) {
  background-color: var(--color-primary-container);
  color: var(--color-on-surface);
  font-weight: var(--font-weight-bold);
}

.oa-site-header__link:is([aria-current="page"], [aria-current="location"])::after {
  content: "";
  position: absolute;
  inset-inline: var(--space-3);
  inset-block-end: var(--space-1);
  border-block-end: 3px solid var(--color-primary-ink);
  border-start-start-radius: 3px; /* lint-ok: component constant, the indicator's 3px top corners (D-CSN-11) */
  border-start-end-radius: 3px; /* lint-ok: component constant, the indicator's 3px top corners (D-CSN-11) */
  pointer-events: none;
}

/* End cluster, 8px apart: the language switcher, the theme toggle where the product ships a dark
   theme (D-CSN-56), the sign-in pair, and the menu button while the navigation is in the sheet
   (canonical §10.14, D-CSN-09, D-CSN-55). It sits at the inline end. */
.oa-site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
}

/* Below 640px the language switcher and quiet actions move into the menu sheet, and so does the CTA
   when its label does not fit on one line at 360px in every language the product ships (all three in
   a trilingual product; canonical §10.14). Give those items this class; the sheet holds their twins. */
@media (width < 40rem) {
  .oa-site-header .oa-site-header__collapse {
    display: none;
  }
}

/* An item the 640px bar cannot hold beside the M lock-up stays in the sheet up to 768px. Measure
   the bar at 640px in every language the product ships; header actions collapse before the lock-up
   shrinks (canonical §1.4). This second step is the system's reading of §1.4, which names only the
   640px step. Global Jobs' "Sign in" takes this class. */
@media (width < 48rem) {
  .oa-site-header .oa-site-header__collapse--md {
    display: none;
  }
}


/* ------------------------------------------------------------------------------------------------
   3. Menu button: a 48px standard icon button (.oa-icon-btn of button.css) with the 24px menu icon,
   last in the end cluster (canonical §10.2, §10.14, D-CSN-12). It shows below 1024px; from 1024px it
   hides when the header shows its main navigation, so a header never loses its way to the
   navigation (canonical §11). With four or five links the navigation shows from 1280px, so the
   button stays until then (D-CSN-56).
   ------------------------------------------------------------------------------------------------ */

@media (min-width: 64rem) {
  .oa-site-header:has(.oa-site-header__nav):not(:has(.oa-site-header__list > :nth-child(4))) .oa-site-header__menu-btn {
    display: none;
  }
}

@media (min-width: 80rem) {
  .oa-site-header:has(.oa-site-header__nav) .oa-site-header__menu-btn {
    display: none;
  }
}


/* ------------------------------------------------------------------------------------------------
   4. Phone menu sheet content (canonical §10.14, D-CSN-12, D-CSN-14). The side sheet of overlay.css
   (dialog.oa-side-sheet.oa-side-sheet--end) gives the surface, the corners, the shadow, the scrim,
   the 24px padding with the safe-area insets, the slide, and the header row (.oa-dialog__header with
   the title "Menu" in title-lg and the 48px close button). .oa-nav-sheet follows that header, its
   parts 16px apart: the navigation items as 56px pills, a divider, the language row, then the
   actions 8px apart, a CTA that left the bar first as a full-width filled md button and the quiet
   actions as full-width outlined buttons.
   ------------------------------------------------------------------------------------------------ */

.oa-nav-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--color-on-surface);
}

.oa-nav-sheet__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Navigation item: the full 56px row is the indicator, as in the navigation drawer of app-nav.css.
   label-md at weight 500 in on-surface-variant at rest; current: the peach fill, on-surface at 700,
   and an optional 24px icon (.oa-nav-sheet__icon) that turns on-primary-container and FILL 1
   (canonical §8.2, §10.15, D-CSN-14, D-ARC-20, D-BCP-33). */
.oa-nav-sheet__item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--size-list-row);
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.oa-nav-sheet__item:is([aria-current="page"], [aria-current="location"]) {
  background-color: var(--color-primary-container);
  color: var(--color-on-surface);
  font-weight: var(--font-weight-bold);
}

.oa-nav-sheet__icon {
  flex: none;
}

.oa-nav-sheet__item:is([aria-current="page"], [aria-current="location"]) .oa-nav-sheet__icon {
  color: var(--color-on-primary-container);
  font-variation-settings: "FILL" 1;
}

/* A 1px outline-variant hairline between the items and the language row. */
.oa-nav-sheet__divider {
  block-size: 0;
  margin: 0;
  border: 0;
  border-block-start: 1px solid var(--color-outline-variant);
  color: inherit; /* not the browser's gray rule color */
}

/* The language row and the quiet actions; buttons with .oa-btn--wide fill the width. */
.oa-nav-sheet__section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}


/* ------------------------------------------------------------------------------------------------
   5. Footer (canonical §10.16, §1.7, D-CSN-15, D-CSN-52, D-CSN-54, D-BCP-42). One footer for every
   product: the brand zone, one or two product link groups, the Platforms panel, and the legal bar.
   surface-container, one step darker than the page, with a 1px outline-variant top edge. Main zone
   32px above and below (48px from 640px): one column below 768px with 24px gaps; from 768px the
   brand zone on its own row and the groups beside the Platforms panel below it; from 1280px one row,
   40px apart. The footer is the full-bleed parent: it pads the side insets, and the legal bar adds
   the bottom inset.
   ------------------------------------------------------------------------------------------------ */

.oa-footer {
  padding-inline: var(--oa-safe-start) var(--oa-safe-end);
  border-block-start: 1px solid var(--color-outline-variant);
  /* One step darker than the page, as the header is (D-CSN-54). */
  background-color: var(--color-surface-container);
  color: var(--color-on-surface);
}

.oa-footer__inner {
  display: grid;
  gap: var(--space-6);
  inline-size: 100%;
  max-inline-size: var(--container-page);
  margin-inline: auto;
  padding-block: var(--space-8);
  padding-inline: var(--space-gutter);
}

@media (min-width: 40rem) {
  .oa-footer__inner {
    padding-block: var(--space-12);
    padding-inline: var(--space-gutter-medium);
  }
}

/* Below 768px the groups wrapper is transparent to the grid, so the brand zone and each group are
   rows. From 768px the wrapper is a row under the brand zone: the product groups share the room
   left by the Platforms panel, which keeps the width of its two columns. From 1280px the footer is
   one row: the brand zone (1.6 parts), the product groups (1 part each), then the panel
   (canonical §10.16, D-CSN-52, D-CSN-54). */
.oa-footer__groups {
  display: contents;
}

@media (min-width: 48rem) {
  .oa-footer__groups {
    display: flex;
    align-items: flex-start;
    gap: var(--space-10);
  }

  .oa-footer__group {
    flex: 1 1 0;
  }
}

@media (min-width: 80rem) {
  .oa-footer__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-10);
  }

  .oa-footer__brand {
    flex: 1.6 1 0;
    min-inline-size: 0;
  }

  .oa-footer__groups {
    display: contents;
  }
}

/* Brand zone: the M lock-up, then one sentence 16px below it, at most 448px wide. */
.oa-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.oa-footer__about {
  max-inline-size: 28rem; /* 448px (D-CSN-15) */
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* Link group: a nav named by its visible title (title-sm), the links 8px below it. */
.oa-footer__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-inline-size: 0;
}

.oa-footer__group-title {
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-footer__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Footer link: 48px tall, label-lg in on-surface, no underline at rest, underlined on hover; the
   ring takes the text-link shape (8px) (canonical §10.16, §5.2). */
.oa-footer__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-touch-target);
  min-inline-size: var(--size-touch-target);
  border-radius: var(--radius-8px);
  color: var(--color-on-surface);
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
  text-decoration-line: none;
  text-underline-offset: 4px;
}

/* Platforms group, the last group of every footer: a panel one step darker than the footer
   (surface-container-high on surface-container) with card corners and 16px padding. Each family
   product is a row with its 24px mark, the name and, when the link leaves the product, a 16px
   north_east (mirrored in RTL), 10px apart. One column below 640px, two balanced columns from
   640px. From 768px the panel is 392px wide: two 172px rows, the 16px gap, and the padding. The row
   of the product the page belongs to links to its home and has no arrow (canonical §10.16,
   D-CSN-52, D-CSN-54). */
.oa-footer__group:has(> .oa-footer__platforms) {
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background-color: var(--color-surface-container-high);
}

.oa-footer__platforms {
  display: block;
  column-gap: var(--space-4);
}

.oa-footer__platforms > li {
  break-inside: avoid;
}

@media (min-width: 40rem) {
  .oa-footer__platforms {
    column-count: 2;
  }
}

@media (min-width: 48rem) {
  .oa-footer__group:has(> .oa-footer__platforms) {
    flex: 0 0 24.5rem; /* 392px: two columns of a Platforms row (D-CSN-54) */
  }
}

.oa-footer__platforms .oa-footer__link {
  gap: var(--space-2-5);
}

.oa-footer__platforms :is(svg, img, picture) {
  flex: none;
  inline-size: var(--size-mark-xs);
  block-size: var(--size-mark-xs);
}

/* Legal bar: its own top edge, 24px above and below (plus the bottom inset), a wrapping row in
   body-md on-surface-variant: the endorsement line, the legal links that exist, and the controls
   (the language switcher and, where the product ships a dark theme, the theme button, both with
   their labels) at the inline end, also when they wrap onto a line of their own. Below 640px the
   bar is centered: the endorsement line takes a line of its own and the rest follows on the line
   below it (canonical §10.16, §1.7, D-CSN-57). */
.oa-footer__legal {
  border-block-start: 1px solid var(--color-outline-variant);
  /* The darkest grade of the footer: page, bars, Platforms panel, legal bar (D-CSN-55). */
  background-color: var(--color-surface-container-highest);
}

/* A footer reduced to its legal bar (demo and utility pages) draws one hairline: the footer's own. */
.oa-footer > .oa-footer__legal:first-child {
  border-block-start: 0;
}

.oa-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-6);
  row-gap: var(--space-2);
  inline-size: 100%;
  max-inline-size: var(--container-page);
  margin-inline: auto;
  padding-block: var(--space-6) calc(var(--space-6) + var(--oa-safe-bottom));
  padding-inline: var(--space-gutter);
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

@media (min-width: 40rem) {
  .oa-footer__legal-inner {
    padding-inline: var(--space-gutter-medium);
  }
}

/* The endorsement line: "Powered by OAIT", one legal link to https://oait.app (the next rule's look,
   a 48px target), then "at" and "Global University", one legal link to https://gu.edu.lb (D-BCP-42). Its words sit in one span, so the
   link's flex box keeps the space before "OAIT"; "OAIT" sits in <bdi lang="en" translate="no">. */
.oa-footer__endorse {
  margin: 0;
}

/* Below 640px the legal bar is centered: the endorsement line takes a line of its own, and the legal
   links and the controls share the line below it when they fit; when they do not fit, the controls
   take the next line. Every line sits in the middle of the bar (D-CSN-57). */
@media (width < 40rem) {
  .oa-footer__legal-inner {
    justify-content: center;
    column-gap: var(--space-4);
    row-gap: 0;
    text-align: center;
  }

  .oa-footer__endorse {
    flex-basis: 100%;
  }

  .oa-footer__legal-links,
  .oa-footer__legal-inner > .oa-footer__lang {
    justify-content: center;
  }

  .oa-footer__legal-inner > .oa-footer__lang {
    margin-inline: 0;
  }
}

.oa-footer__endorse .oa-footer__legal-link bdi {
  font-weight: var(--font-weight-semibold); /* "OAIT" at 600, canonical §1.7 */
}

.oa-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Legal and app-footer links: body-md, on-surface-variant, underlined at rest (they sit with text),
   48px tall; the underline thickens on hover (canonical §2.7, §10.16). */
.oa-footer__legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* a short label keeps even spacing inside its 48px box */
  min-block-size: var(--size-touch-target);
  min-inline-size: var(--size-touch-target);
  border-radius: var(--radius-8px);
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  text-decoration-line: underline;
  text-underline-offset: 4px;
}

/* The controls: 8px apart, at the inline end. */
.oa-footer__lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-inline-start: auto;
}

/* App footer: one quiet in-flow row at the end of <main>, 32px after the content (40px from 768px);
   privacy and help links in body-md at weight 500. Never pinned (canonical §10.16). */
.oa-footer--app {
  margin-block-start: var(--space-8);
  padding: 0;
  border: 0;
  background-color: transparent;
}

.oa-footer--app .oa-footer__legal-link {
  font-weight: var(--font-weight-medium);
}

@media (min-width: 48rem) {
  .oa-footer--app {
    margin-block-start: var(--space-10);
  }
}


/* ------------------------------------------------------------------------------------------------
   6. Breadcrumbs and back links (canonical §10.17, D-CSN-17). Both sit in <nav aria-label=
   "Breadcrumb">. One level up: the back link, a mirrored 20px arrow_back and "Back to {place}" in
   label-lg primary-ink, 48px tall, underlined on hover. Two or more levels: an <ol> trail in body-md,
   links in on-surface-variant (48px targets), "/" separators 8px each side, the current page last as
   plain on-surface text; the trail wraps.
   ------------------------------------------------------------------------------------------------ */

/* 8px of padding at the inline end, taken back by the margin, so the focus ring clears the last
   letter and the label keeps its place. */
.oa-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch-target);
  min-inline-size: var(--size-touch-target);
  padding-inline-end: var(--space-2);
  margin-inline-end: calc(var(--space-2) * -1);
  border-radius: var(--radius-8px);
  color: var(--color-primary-ink);
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
  text-decoration-line: none;
  text-underline-offset: 4px;
}

.oa-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-inline-size: 0;
}

.oa-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* a short label keeps even spacing inside its 48px box */
  min-block-size: var(--size-touch-target);
  min-inline-size: var(--size-touch-target);
  border-radius: var(--radius-8px);
  color: var(--color-on-surface-variant);
  text-decoration-line: none;
  text-underline-offset: 4px;
}

.oa-breadcrumb__sep {
  margin-inline: var(--space-2);
  color: var(--color-on-surface-variant);
}

.oa-breadcrumb__current {
  color: var(--color-on-surface);
  overflow-wrap: anywhere;
}


/* Hover: links underline (no state layer on text links, canonical §2.7). */
@media (hover: hover) {
  .oa-footer__link:hover,
  .oa-back-link:hover,
  .oa-breadcrumb__link:hover {
    text-decoration-line: underline;
  }

  .oa-footer__legal-link:hover {
    text-decoration-thickness: 2px;
  }
}


/* ------------------------------------------------------------------------------------------------
   7. Pagination for data tables (canonical §10.13, D-CSN-18): a wrapping row with space between,
   "Showing {from}–{to} of {total}" at the start, and at the end a 48px previous circle, "Page {page} of
   {pages}" (at least 96px, centered, weight 500) and a 48px next circle. Circles: a 1px outline edge,
   a 24px mirrored chevron in on-surface-variant, the state layer. An unavailable direction is a span
   with aria-disabled="true": outline-variant edge, outline icon, no layer. Member lists use
   "Show {count} more" (an outlined md button, button.css) instead.
   ------------------------------------------------------------------------------------------------ */

.oa-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

/* "Show {count} more" under a member list: the outlined md button at its own width, at the start. */
.oa-pagination--more {
  justify-content: flex-start;
}

.oa-pagination__status {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-pagination__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.oa-pagination__page {
  min-inline-size: var(--space-24); /* 96px, Tailwind min-w-24 (D-CSN-18) */
  color: var(--color-on-surface);
  text-align: center;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
}

.oa-pagination__btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-pagination__btn[aria-disabled="true"] {
  border-color: var(--color-outline-variant);
  color: var(--color-outline);
  cursor: default;
}


/* ------------------------------------------------------------------------------------------------
   8. Sticky action bar (canonical §10.29, D-CSN-50). Phones only (below 1024px), for a page's one main
   action when it has scrolled away or lives in an aside: sticky at the bottom on the sticky layer,
   static on short windows, the glass with a 1px outline-variant top edge and no shadow, 12px above,
   12px plus the bottom inset below, 16px at the sides. A one-line summary (title-md, truncated, and
   body-md supporting text) and one filled lg button. Never on a screen with a navigation bar.
   ------------------------------------------------------------------------------------------------ */

.oa-action-bar {
  position: sticky;
  inset-block-end: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3) calc(var(--space-3) + var(--oa-safe-bottom));
  padding-inline: var(--space-4);
  border-block-start: 1px solid var(--color-outline-variant);
  /* The glass recipe bg-surface/80 with backdrop-blur-xl (canonical §2.5, §6.4, D-ARC-10). */
  background-color: color-mix(in srgb, var(--color-surface) 80%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--color-on-surface);
}

@media (min-width: 64rem) {
  .oa-action-bar:not(.oa-action-bar--demo) {
    display: none;
  }
}

@media (max-height: 30rem) {
  .oa-action-bar {
    position: static;
  }
}

.oa-action-bar__summary {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-inline-size: 0;
}

/* The summary is user content (a job title, a company): dir="auto" in the markup lets the ellipsis
   fall at the end of the text in either direction, and match-parent keeps it aligned with the page
   (canonical §14.2). */
.oa-action-bar__title,
.oa-action-bar__supporting {
  margin: 0;
  overflow: hidden;
  text-align: match-parent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-action-bar__title {
  color: var(--color-on-surface);
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-action-bar__supporting {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}


/* ------------------------------------------------------------------------------------------------
   9. State layers (canonical §2.7, D-COL-05, D-SEM-15): a ::before of currentColor under the label at
   --oa-state, 8% on hover (pointer devices only), 12% pressed and shown at once, faded back over
   short-3. No focus layer: the base ring shows focus. Nothing moves, lifts, or casts a shadow.
   ------------------------------------------------------------------------------------------------ */

/* All three hosts carry a 1px border (transparent on the links and sheet items, outline on the
   circles), so the layer covers the border box: no lighter rim on hover. */
.oa-site-header__link::before,
.oa-nav-sheet__item::before,
.oa-pagination__btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: var(--z-behind); /* under the label, inside the isolated control */
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-site-header__link:hover,
  .oa-nav-sheet__item:hover,
  .oa-pagination__btn:not([aria-disabled="true"]):hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-site-header__link:active,
.oa-nav-sheet__item:active,
.oa-pagination__btn:not([aria-disabled="true"]):active {
  --oa-state: var(--opacity-state-pressed);
}

/* Press shows at once; release fades back over short-3. */
.oa-site-header__link:active::before,
.oa-nav-sheet__item:active::before,
.oa-pagination__btn:active::before {
  transition: none;
}


/* ------------------------------------------------------------------------------------------------
   10. Glass fallbacks: opaque surface under reduced transparency, without backdrop-filter, and in
   forced colors, where the system Canvas replaces the fill and keeps no translucency (canonical §6.4,
   D-SEM-12). Print keeps the lock-up and the footer and drops the navigation chrome.
   ------------------------------------------------------------------------------------------------ */

@media (prefers-reduced-transparency: reduce) {
  .oa-site-header,
  .oa-action-bar {
    background-color: var(--color-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .oa-site-header {
    background-color: var(--color-surface-container);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .oa-site-header,
  .oa-action-bar {
    background-color: var(--color-surface);
  }

  .oa-site-header {
    background-color: var(--color-surface-container);
  }
}

@media (forced-colors: active) {
  .oa-site-header,
  .oa-action-bar {
    background-color: Canvas;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media print {
  .oa-site-header {
    position: static;
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .oa-site-header__nav,
  .oa-site-header__actions,
  .oa-action-bar,
  .oa-pagination__controls {
    display: none;
  }
}


/* ------------------------------------------------------------------------------------------------
   11. Documentation only, never in a product. --demo keeps a site header or a sticky action bar in
   the page flow (neither sticks nor rises above the documentation page's own chrome), and keeps the
   action bar visible from 1024px, so a documentation page can show several of each.
   ------------------------------------------------------------------------------------------------ */

.oa-site-header--demo,
.oa-action-bar--demo {
  position: relative;
  z-index: auto;
}


/* ---------------------------------------------------------------------------------------------
   reference/css/app-nav.css
   --------------------------------------------------------------------------------------------- */

/* =============================================================================
   app-nav.css · OAIT Design System 2.1.0 reference CSS · app navigation
   -----------------------------------------------------------------------------
   Components: app shell (member app, console, plain), top app bar, navigation
   bar, navigation rail, navigation drawer (with the console's phone "Menu"
   row), tabs (underline tabs and link tabs), stepper (in-app step header).

   Implements: D-CSN-13 (which navigation, shell grid), D-CSN-14 (navigation
   items and the current destination), D-CSN-16 (tabs), D-CSN-20 (stepper),
   D-CSN-31 (drawer group disclosures), D-LAY-09 (app and admin shells),
   D-LAY-14 (chrome sizes), D-LAY-17 (safe areas, dvh, keyboard), D-ARC-20
   (label styles), D-ARC-24 (indicator constants), D-ARC-28 (lock-up at 640px),
   D-COL-05 and D-ARC-02 (state layers, no focus layer), D-SEM-11 (inset ring),
   D-SEM-15 and D-SEM-16 (feedback and motion), D-BCP-33 (FILL 1 when current),
   D-SEM-10 (edges in forced colors), canonical 4.8, 4.10, 10.15, 10.17, 10.18.

   Tokens read: --color-surface, --color-surface-container,
   --color-surface-container-highest, --color-on-surface,
   --color-on-surface-variant, --color-primary-container,
   --color-on-primary-container, --color-primary-ink, --color-outline-variant;
   --size-header, --size-header-compact, --size-nav-bar, --size-nav-rail,
   --size-nav-drawer, --size-list-row, --size-touch-target, --size-focus-inset;
   --space-1, --space-2, --space-3, --space-4, --space-6, --space-12,
   --space-gutter, --space-gutter-medium, --space-stack-tight,
   --space-stack-loose, --space-stack-group; --container-page,
   --container-wide; --radius-full; --opacity-state-hover,
   --opacity-state-pressed; --duration-short-3, --duration-short-4,
   --ease-standard; --z-behind; --font-weight-medium, --font-weight-bold;
   type styles label-sm, label-md, headline-md (--text-<style> and its
   --line-height, --letter-spacing and --font-weight companions).
   Mixes with: .oa-lockup and .oa-lang (brand-kit.css), .oa-status-chip
   (chip.css), .oa-btn, .oa-icon-btn and .oa-actions--page (button.css),
   .oa-avatar (avatar-badge.css), .oa-side-sheet and .oa-dialog__* parts
   (overlay.css), .oa-snackbar-host--nav-bar (feedback.css).

   Classes: .oa-app-shell (--rail, --drawer; __nav, __main, __bar, __menu,
   __content) · .oa-top-app-bar (--compact; __start, __home, __context,
   __context-label, __end) · .oa-nav-bar, .oa-nav-rail (__list, __item,
   __indicator, __icon, __label) · .oa-nav-drawer (--sheet; __group,
   __group-btn, __group-label, __chevron, __list, __item, __icon, __label,
   __divider, __back) · .oa-tabs (--nav; __list, __tab, __icon, __panel) ·
   .oa-stepper (__header, __count, __title, __bar, __segment, __actions).

   Context properties: --oa-state (state-layer opacity, set on the hovered or
   pressed control and read by its layer), --oa-app-shell-height (the shell's
   block size; 100dvh unless a documentation frame sets it).

   md = 48rem (768px, --breakpoint-md), the navigation switch; sm = 40rem
   (640px, --breakpoint-sm). Media queries cannot read custom properties, so
   the breakpoints are written as their rem values (canonical 4.2).
   Safe-area insets are physical (left, right): the one place layout uses
   physical sides (canonical 4.10, D-LAY-17).
   ========================================================================== */


/* -----------------------------------------------------------------------------
   App shell: a 100dvh grid in which only <main> scrolls (D-LAY-09, D-CSN-13).
   Plain shell: header + main. --rail: the member app (navigation bar below
   md, rail from md). --drawer: a console (the "Menu" row below md, the 272px
   drawer column from md). Each row pads its own safe areas below md; from md
   the shell pads the side insets as a whole.
   -------------------------------------------------------------------------- */

.oa-app-shell {
  --oa-app-shell-height: 100dvh;
  display: grid;
  block-size: var(--oa-app-shell-height);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.oa-app-shell--rail {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.oa-app-shell--drawer {
  grid-template-rows: auto auto minmax(0, 1fr);
}

/* The rail or drawer column. Below md the member app has no column (the bar
   takes over); the console shows its "Menu" row here and keeps the drawer in
   a modal side sheet. */
.oa-app-shell__nav {
  display: none;
}

.oa-app-shell--drawer > .oa-app-shell__nav {
  display: block;
}

.oa-app-shell--drawer > .oa-app-shell__nav > .oa-nav-drawer {
  display: none;
}

/* The two regions that scroll are containing blocks, so an absolutely positioned child (a visually
   hidden legend, a stretched link) scrolls with them and never stretches the document under the
   shell: only <main> scrolls (canonical §4.8, D-LAY-09). */
.oa-app-shell__main,
.oa-app-shell__nav {
  position: relative;
}

.oa-app-shell__main {
  min-block-size: 0;
  min-inline-size: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: var(--space-1) var(--space-6);
  padding-inline: calc(var(--space-gutter) + var(--oa-safe-start)) calc(var(--space-gutter) + var(--oa-safe-end));
}

/* Without a bottom bar under it (consoles, plain shells) the main region is the row that meets
   the bottom edge, so it pads the bottom inset too; with the console's footer row now in flow at
   the end of main, nothing else does (canonical 4.10, D-CSN-13). */
.oa-app-shell:where(:not(.oa-app-shell--rail)) > .oa-app-shell__main {
  padding-block-end: calc(var(--space-6) + var(--oa-safe-bottom));
}

/* The app page inside <main>: capped at the page frame (consoles: wide),
   groups 24px apart, 32px from md (canonical 4.5, D-LAY-04). */
.oa-app-shell__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-loose);
  inline-size: 100%;
  max-inline-size: var(--container-page);
  margin-inline: auto;
}

.oa-app-shell--drawer .oa-app-shell__content {
  max-inline-size: var(--container-wide);
}

/* The bottom bar's grid row (member app). Hidden from md. */
.oa-app-shell__bar {
  min-inline-size: 0;
}

/* The console's phone "Menu" row: 48px, full width, a bottom hairline; it
   opens the drawer as a modal side sheet from the inline start (D-CSN-13). */
.oa-app-shell__menu {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--size-touch-target);
  margin: 0;
  padding-block: 0;
  padding-inline: calc(var(--space-4) + var(--oa-safe-start)) calc(var(--space-4) + var(--oa-safe-end));
  border: 1px solid transparent;
  border-block-end-color: var(--color-outline-variant);
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-on-surface-variant);
  font-family: inherit;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  text-align: start;
  cursor: pointer;
}

/* Full-bleed row: the ring is drawn inside it (canonical 6.3). */
.oa-app-shell__menu:is(:focus-visible, [data-demo-focus]) {
  outline-offset: var(--size-focus-inset);
}

@media (min-width: 48rem) {
  .oa-app-shell {
    padding-inline: var(--oa-safe-start) var(--oa-safe-end);
  }

  .oa-app-shell--rail {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .oa-app-shell--drawer {
    grid-template-columns: var(--size-nav-drawer) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .oa-app-shell > .oa-top-app-bar {
    grid-column: 1 / -1;
    padding-inline: 0;
  }

  /* The rail or drawer column scrolls on its own and, like main, meets the bottom edge. */
  .oa-app-shell__nav,
  .oa-app-shell--drawer > .oa-app-shell__nav {
    display: flex;
    flex-direction: column;
    min-block-size: 0;
    padding-block-end: var(--oa-safe-bottom);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .oa-app-shell--drawer > .oa-app-shell__nav > .oa-nav-drawer {
    display: flex;
  }

  .oa-app-shell__menu,
  .oa-app-shell__bar {
    display: none;
  }

  /* No shell has a bottom bar from md: main always meets the bottom edge. */
  .oa-app-shell > .oa-app-shell__main {
    padding-block: var(--space-2) calc(var(--space-12) + var(--oa-safe-bottom));
    padding-inline: var(--space-gutter-medium);
  }

  .oa-app-shell__content {
    gap: var(--space-stack-group);
  }
}

/* The console shell's tones (D-CSN-58): the bar and the drawer take the grade of the site header
   and footer, surface-container, and the page is the lighter sheet on it, surface, with a card
   corner at its top inline-start from md, where it meets the bar and the drawer. The sheet starts
   24px under the bar's row so its first line never touches the corner. The member shell keeps the
   page color throughout. */
.oa-app-shell--drawer,
.oa-app-shell--drawer > .oa-top-app-bar {
  background: var(--color-surface-container);
}

.oa-app-shell--drawer > .oa-app-shell__nav > .oa-nav-drawer {
  background: transparent;
}

.oa-app-shell--drawer > .oa-app-shell__main {
  padding-block-start: var(--space-6);
  background: var(--color-surface);
}

@media (min-width: 48rem) {
  .oa-app-shell--drawer > .oa-app-shell__main {
    border-start-start-radius: var(--radius-card);
  }
}

/* A shell is as tall as the window and only its regions scroll, so the page itself never does.
   The gutter the base layer keeps for the page's scrollbar (D-LAY-20) would show as an empty
   strip beside the bar, so a page whose body holds a shell gives it up (D-LAY-21). A product that
   wraps the shell in another element sets scrollbar-gutter: auto on <html> itself. */
:root:has(> body > .oa-app-shell) {
  scrollbar-gutter: auto;
}


/* -----------------------------------------------------------------------------
   Top app bar: a grid row that never scrolls away, the page color, no edge
   (D-CSN-13, D-LAY-14). 72px; --compact (shells with a bottom bar) is 64px
   below md. Start: the home link (the lock-up) and an optional context chip
   that truncates first. End: language switcher and account control.
   -------------------------------------------------------------------------- */

.oa-top-app-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: calc(var(--size-header) + var(--oa-safe-top));
  padding-block-start: var(--oa-safe-top);
  padding-inline: var(--oa-safe-start) var(--oa-safe-end);
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.oa-top-app-bar--compact {
  min-block-size: calc(var(--size-header-compact) + var(--oa-safe-top));
}

.oa-top-app-bar__start {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--space-3);
  min-inline-size: 0;
  padding-inline-start: var(--space-4);
}

/* Mixed onto the lock-up (brand-kit.css), which owns its layout (mark, name and sub-line on a
   grid): this class only keeps the link home from shrinking, so the chip gives way first. It
   sets no display, so the result does not depend on which file loads last. */
.oa-top-app-bar__home {
  flex: 0 0 auto;
  min-block-size: var(--size-touch-target);
  color: var(--color-on-surface);
  text-decoration: none;
}

/* Mixed onto the status chip (chip.css): it may shrink and truncate. The parent in the selector
   outranks chip.css's flex-shrink: 0 whatever the load order. */
.oa-top-app-bar__start > .oa-top-app-bar__context {
  flex: 0 1 auto;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
}

.oa-top-app-bar__context-label {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-top-app-bar__end {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  padding-inline-end: var(--space-1);
}

@media (min-width: 48rem) {
  .oa-top-app-bar--compact {
    min-block-size: calc(var(--size-header) + var(--oa-safe-top));
  }

  .oa-top-app-bar__start {
    padding-inline-start: var(--space-6);
  }

  .oa-top-app-bar__end {
    padding-inline-end: var(--space-4);
  }
}


/* -----------------------------------------------------------------------------
   Navigation bar (below md) and navigation rail (from md): destinations with
   an icon in an indicator pill above a label (D-CSN-14, D-ARC-20, D-ARC-24).
   Rest: label 500 on-surface-variant, outlined icon, no pill. Hover and press:
   the 8% / 12% layer on the indicator. Current (aria-current): primary-
   container pill, filled on-primary-container icon, on-surface label at 700.
   -------------------------------------------------------------------------- */

/* The bar hides while the on-screen keyboard is open: the script sets the
   hidden attribute, which base.css keeps hidden (D-LAY-17). */
.oa-nav-bar {
  display: block;
  min-block-size: calc(var(--size-nav-bar) + var(--oa-safe-bottom));
  padding-block: var(--space-3) calc(var(--space-4) + var(--oa-safe-bottom));
  padding-inline: calc(var(--space-2) + var(--oa-safe-start)) calc(var(--space-2) + var(--oa-safe-end));
  background: var(--color-surface-container);
  color: var(--color-on-surface-variant);
}

.oa-nav-rail {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  inline-size: var(--size-nav-rail);
  padding-block: var(--space-3) var(--space-6);
  background: var(--color-surface);
  color: var(--color-on-surface-variant);
}

.oa-nav-bar__list,
.oa-nav-rail__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-nav-bar__list > li {
  display: flex;
  flex: 1 1 0;
  min-inline-size: 0;
}

.oa-nav-rail__list {
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.oa-nav-bar__item,
.oa-nav-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-block-size: var(--size-touch-target);
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.oa-nav-bar__item {
  flex: 1 1 auto;
  min-inline-size: 0;
}

/* Rail destinations: 80px wide, at least 56px tall (component constants). */
.oa-nav-rail__item {
  inline-size: 80px;
  min-block-size: 56px;
}

/* Indicator pills: 64x32 in the bar, 56x32 in the rail (D-ARC-24). */
.oa-nav-bar__indicator,
.oa-nav-rail__indicator {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  block-size: 32px;
  border-radius: var(--radius-full);
}

.oa-nav-bar__indicator {
  inline-size: 64px;
}

.oa-nav-rail__indicator {
  inline-size: 56px;
}

.oa-nav-bar__indicator::before,
.oa-nav-rail__indicator::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

.oa-nav-bar__label,
.oa-nav-rail__label {
  max-inline-size: 100%;
  font-size: var(--text-label-sm);
  line-height: var(--text-label-sm--line-height);
  letter-spacing: var(--text-label-sm--letter-spacing);
  font-weight: var(--text-label-sm--font-weight);
  overflow-wrap: break-word;
}

.oa-nav-bar__item:is([aria-current="page"], [aria-current="true"]),
.oa-nav-rail__item:is([aria-current="page"], [aria-current="true"]) {
  color: var(--color-on-surface);
}

.oa-nav-bar__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-bar__indicator,
.oa-nav-rail__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-rail__indicator {
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-nav-bar__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-bar__label,
.oa-nav-rail__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-rail__label {
  font-weight: var(--font-weight-bold);
}


/* -----------------------------------------------------------------------------
   Navigation drawer (consoles, from md; inside the modal side sheet below md):
   padding 12px, 48px group disclosures, 56px pill items whose whole row is
   the indicator, a hairline, an outlined "Back to ..." button (D-CSN-13,
   D-CSN-14, D-CSN-31). The shell's column or the sheet sets its width.
   -------------------------------------------------------------------------- */

.oa-nav-drawer {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  padding: var(--space-3);
  background: var(--color-surface);
  color: var(--color-on-surface-variant);
}

/* Destinations that belong to no group, "Overview" first (D-CSN-58), sit in a list of their own
   above the groups. */
.oa-nav-drawer > .oa-nav-drawer__list {
  margin-block-end: var(--space-2);
}

/* A count on a destination (a badge after the label) keeps the row's inline end. */
.oa-nav-drawer__item > .oa-badge {
  flex: 0 0 auto;
}

/* Inside a modal side sheet: the sheet's surface and padding hold it. */
.oa-nav-drawer--sheet {
  padding: 0;
  background: transparent;
}

.oa-nav-drawer__group {
  display: flex;
  flex-direction: column;
}

.oa-nav-drawer__group + .oa-nav-drawer__group {
  margin-block-start: var(--space-1);
}

.oa-nav-drawer__group-btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--size-touch-target);
  margin: 0;
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-on-surface-variant);
  font-family: inherit;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  text-align: start;
  cursor: pointer;
}

.oa-nav-drawer__group-label {
  flex: 1 1 auto;
  min-inline-size: 0;
}

/* expand_more turns 180deg when open; never mirrored (canonical 10.25). */
.oa-nav-drawer__chevron {
  flex: 0 0 auto;
  transition: transform var(--duration-short-4) var(--ease-standard);
}

.oa-nav-drawer__group-btn[aria-expanded="true"] .oa-nav-drawer__chevron {
  transform: rotate(180deg);
}

.oa-nav-drawer__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-nav-drawer__item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--size-list-row);
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--color-on-surface-variant);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.oa-nav-drawer__icon {
  flex: 0 0 auto;
}

.oa-nav-drawer__label {
  flex: 1 1 auto;
  min-inline-size: 0;
}

.oa-nav-drawer__item:is([aria-current="page"], [aria-current="true"]) {
  background: var(--color-primary-container);
  color: var(--color-on-surface);
  font-weight: var(--font-weight-bold);
}

.oa-nav-drawer__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-drawer__icon {
  color: var(--color-on-primary-container);
}

/* An <hr>: its color is reset too, so no browser gray remains. */
.oa-nav-drawer__divider {
  block-size: 0;
  margin: var(--space-4);
  border: 0;
  border-block-start: 1px solid currentColor;
  color: var(--color-outline-variant);
}

/* Mixed onto an outlined, wide button (button.css): the way out of the
   console, with a mirrored arrow_back. Its label may wrap to a second line,
   but never inside the product name: base.css keeps every
   bdi[translate="no"] on one line, so "Global ID" never splits or
   scrambles in Arabic (canonical 1.2). */
.oa-nav-drawer__back {
  flex: 0 0 auto;
}


/* -----------------------------------------------------------------------------
   Tabs: underline tabs (D-CSN-16). 48px, 16px inline padding, label-md; rest
   on-surface-variant with the hover layer; selected primary-ink with a 3px
   primary-ink indicator inset 12px (3px top corners); the list scrolls
   sideways over a 1px outline-variant edge, so the ring is inset. --nav:
   tabs that change the address are a <nav> of links, drawn the same way.
   -------------------------------------------------------------------------- */

.oa-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-loose);
  min-inline-size: 0;
}

.oa-tabs__list {
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-block-end: 1px solid var(--color-outline-variant);
  list-style: none;
}

.oa-tabs__list > li {
  display: flex;
  flex: 0 0 auto;
}

.oa-tabs__tab {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch-target);
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-on-surface-variant);
  font-family: inherit;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-short-3) var(--ease-standard);
}

/* The list scrolls, so it clips: the ring is drawn inside the tab. */
.oa-tabs__tab:is(:focus-visible, [data-demo-focus]) {
  outline-offset: var(--size-focus-inset);
}

/* The indicator covers the tab's transparent bottom border, so it sits on
   the list's hairline (1px layout maths). */
.oa-tabs__tab::after {
  content: "";
  position: absolute;
  inset-inline: var(--space-3);
  inset-block-end: -1px;
  block-size: 3px; /* the 3px indicator (canonical 6.2) */
  border-start-start-radius: 3px; /* lint-ok: 3px top corners, canonical 10.17 component constant */
  border-start-end-radius: 3px; /* lint-ok: 3px top corners, canonical 10.17 component constant */
  background: transparent;
  pointer-events: none;
  transition: background-color var(--duration-short-4) var(--ease-standard);
}

.oa-tabs__icon {
  flex: 0 0 auto;
}

.oa-tabs__tab[aria-selected="true"],
.oa-tabs--nav .oa-tabs__tab[aria-current="page"] {
  color: var(--color-primary-ink);
}

.oa-tabs__tab[aria-selected="true"]::after,
.oa-tabs--nav .oa-tabs__tab[aria-current="page"]::after {
  background: var(--color-primary-ink);
}

.oa-tabs__panel {
  min-inline-size: 0;
}


/* -----------------------------------------------------------------------------
   Stepper: the step header of flows of three or more steps (D-CSN-20).
   "Step 2 of 4" (label-md, on-surface-variant), the step heading (headline-md,
   focused when the step changes), a 4px segmented bar (done and current
   primary-ink, upcoming surface-container-highest, aria-hidden), then the
   step and its actions: Continue (filled lg) first, Back (text or outlined
   md); stacked full width below 640px (through .oa-actions--page).
   -------------------------------------------------------------------------- */

.oa-stepper {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-loose);
  min-inline-size: 0;
}

.oa-stepper__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-tight);
}

.oa-stepper__count {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-stepper__title {
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--text-headline-md--font-weight);
  text-wrap: balance;
}

.oa-stepper__bar {
  display: flex;
  gap: var(--space-1);
  margin-block-start: var(--space-2);
}

/* One segment per step: 4px tall, full corners (component constant). */
.oa-stepper__segment {
  flex: 1 1 0;
  block-size: 4px;
  border-radius: var(--radius-full);
  background: var(--color-surface-container-highest);
}

.oa-stepper__segment[aria-current="step"],
.oa-stepper__segment:has(~ .oa-stepper__segment[aria-current="step"]) {
  background: var(--color-primary-ink);
}

/* Mixed onto .oa-actions.oa-actions--page (button.css), which lays the
   buttons out: Continue first, full width and stacked below 640px; in a row
   from 640px, 12px apart, in reading order (canonical 10.1, 10.18). */
.oa-stepper__actions {
  min-inline-size: 0;
}


/* -----------------------------------------------------------------------------
   State layers (canonical 2.7): hover only under (hover: hover), press at
   once, nothing moves. Bar and rail destinations draw the layer on their
   indicator; drawer items, group buttons, the Menu row and tabs on themselves.
   -------------------------------------------------------------------------- */

.oa-app-shell__menu::before,
.oa-nav-drawer__group-btn::before,
.oa-nav-drawer__item::before,
.oa-tabs__tab::before {
  content: "";
  position: absolute;
  inset: -1px; /* over the 1px transparent edge as well */
  z-index: var(--z-behind);
  border-radius: inherit;
  background: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-nav-bar__item:hover,
  .oa-nav-rail__item:hover,
  .oa-nav-drawer__item:hover,
  .oa-nav-drawer__group-btn:hover,
  .oa-app-shell__menu:hover,
  .oa-tabs__tab:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-nav-bar__item:active,
.oa-nav-rail__item:active,
.oa-nav-drawer__item:active,
.oa-nav-drawer__group-btn:active,
.oa-app-shell__menu:active,
.oa-tabs__tab:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-nav-bar__item:active .oa-nav-bar__indicator::before,
.oa-nav-rail__item:active .oa-nav-rail__indicator::before,
.oa-nav-drawer__item:active::before,
.oa-nav-drawer__group-btn:active::before,
.oa-app-shell__menu:active::before,
.oa-tabs__tab:active::before {
  transition-duration: 0ms; /* lint-ok: press shows at once (canonical 2.7) */
}


/* -----------------------------------------------------------------------------
   The current destination draws its icon filled (FILL 1, D-BCP-33), from the
   ARIA state, never a state class: the same axis setting as .oa-icon--filled
   in base.css. (base.css also keeps [hidden] hidden whatever display a class
   sets, which the bar, the drawer groups and the tab panels rely on.)
   -------------------------------------------------------------------------- */

.oa-nav-bar__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-bar__icon,
.oa-nav-rail__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-rail__icon,
.oa-nav-drawer__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-drawer__icon,
.oa-tabs__tab[aria-selected="true"] .oa-tabs__icon,
.oa-tabs--nav .oa-tabs__tab[aria-current="page"] .oa-tabs__icon {
  font-variation-settings: "FILL" 1;
}


/* -----------------------------------------------------------------------------
   Forced colors (D-SEM-10): fills disappear, so the current destination,
   the selected tab and the step bar draw in system colors.
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .oa-nav-bar__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-bar__indicator,
  .oa-nav-rail__item:is([aria-current="page"], [aria-current="true"]) .oa-nav-rail__indicator,
  .oa-nav-drawer__item:is([aria-current="page"], [aria-current="true"]) {
    border: 2px solid Highlight;
  }

  .oa-tabs__tab[aria-selected="true"]::after,
  .oa-tabs--nav .oa-tabs__tab[aria-current="page"]::after {
    forced-color-adjust: none;
    background: Highlight;
  }

  .oa-stepper__segment {
    forced-color-adjust: none;
    background: GrayText;
  }

  .oa-stepper__segment[aria-current="step"],
  .oa-stepper__segment:has(~ .oa-stepper__segment[aria-current="step"]) {
    background: Highlight;
  }
}


/* -----------------------------------------------------------------------------
   Print: navigation chrome is hidden and the shell becomes a document.
   -------------------------------------------------------------------------- */

@media print {
  .oa-app-shell {
    display: block;
    block-size: auto;
  }

  .oa-app-shell__main {
    overflow: visible;
  }

  .oa-app-shell__nav,
  .oa-app-shell__bar,
  .oa-app-shell__menu,
  .oa-nav-bar,
  .oa-nav-rail,
  .oa-nav-drawer,
  .oa-top-app-bar__end {
    display: none;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/feedback.css
   --------------------------------------------------------------------------------------------- */

/*
 * feedback.css — OAIT Design System 2.1.0 reference CSS, unit c-feedback.
 *
 * Components: snackbar (and its host), banner (with the form error summary), page strip,
 * linear progress, spinner, skeleton, in-content empty state, full-page state, status indicator.
 *
 * Implements: D-CSN-25, D-CSN-26, D-CSN-27, D-CSN-28, D-CSN-29, D-CSN-30, D-CSN-06 (placement only),
 * D-ARC-08 (snackbar on the inverse roles with an outline edge), D-ARC-10 (skeleton roles),
 * D-ARC-14 (radius names), D-ARC-17 (motion names), D-ARC-20 and D-ARC-21 (type styles),
 * D-ARC-23 (tile and icon sizes), D-ARC-26 (z-snackbar), D-ARC-35 (status dot sizes),
 * D-COL-05 and D-ARC-33 (state layers), D-COL-20 (focus-ring re-point), D-SEM-10 (edges),
 * D-SEM-16 (snackbar enter and exit), D-CAI-06 (the spinner in a banner action),
 * D-BCP-20 (copy lives in the docs).
 * Canonical: §2.6, §2.7, §2.8, §6.3, §7.3, §7.4, §10.0, §10.21–§10.24, §13.
 *
 * Tokens read: --color-inverse-surface, --color-inverse-on-surface, --color-inverse-primary,
 * --color-outline, --color-outline-variant, --color-focus-ring (re-pointed), --color-on-surface,
 * --color-on-surface-variant, --color-surface-container-high, --color-surface-container-highest,
 * --color-primary-ink, --color-secondary-container, --color-on-secondary-container,
 * --color-info, --color-info-container, --color-on-info-container, --color-success,
 * --color-success-container, --color-on-success-container, --color-warning, --color-warning-container,
 * --color-on-warning-container, --color-error, --color-error-container, --color-on-error-container,
 * --color-skeleton, --color-skeleton-highlight; --z-behind; --radius-12px, --radius-box, --radius-4px,
 * --radius-card, --radius-full, --radius-chip; --shadow-elevation-3; --z-snackbar;
 * --container-snackbar, --container-form; --size-touch-target, --size-button-sm, --size-icon-sm,
 * --size-icon-md, --size-icon-4xl, --size-tile-xl, --size-tile-2xl, --size-avatar-sm;
 * --space-1, --space-2, --space-2-5, --space-3, --space-3-5, --space-4, --space-5, --space-6,
 * --space-10, --space-12, --space-14, --space-24; --text-body-lg, --text-body-md, --text-body-sm,
 * --text-label-md, --text-label-sm, --text-title-lg, --text-headline-md, --text-code-xs (with their
 * --line-height, --letter-spacing, and --font-weight companions); --font-mono;
 * --opacity-state-hover, --opacity-state-pressed; --duration-short-3, --duration-medium-2;
 * --ease-standard, --ease-emphasized, --ease-emphasized-accelerate; --animate-spinner,
 * --animate-skeleton, --animate-live.
 *
 * Classes: .oa-snackbar-host (+ --nav-bar), .oa-snackbar (+ __message, __action, __close),
 * .oa-banner (+ --info, --success, --warning, --error, --neutral; __icon, __content, __title,
 * __message, __list, __actions, __action, __close), .oa-page-strip (+ --warning; __chip),
 * .oa-progress (+ --thin; __label, __value, __track, __indicator), .oa-spinner (+ --sm, --lg),
 * .oa-skeleton (+ --line, --title, --block, --circle), .oa-empty (+ __disc, __art, __title, __body,
 * __actions), .oa-state-page (+ __icon, __disc, __title, __body, __actions, __code),
 * .oa-status (+ --live, --success, --pending, --error, --off, --info, --lg, --sm; __dot, __label).
 *
 * Context properties read: --oa-state (state layer), --oa-link (set to currentColor in banners and
 * strips). Component-local: --oa-snackbar-host-offset, --oa-banner-line, --oa-progress-value,
 * --oa-spinner-size, --oa-spinner-stroke, --oa-spinner-arc, --oa-spinner-track, --oa-status-size,
 * --oa-status-color, --oa-status-halo.
 * Component constants from canonical (raw px allowed): progress 8px / 4px, spinner 20px / 2px and
 * 48px / 4px, status dot 12px with a 5px halo and 8px, skeleton lines 16px / 24px, the
 * illustration cap 160px, the 40ch measure of the empty-state body.
 */

/* ------------------------------------------------------------------------------------------ */
/* Snackbar host: one polite live region per page, mounted empty at load (canonical §10.21).    */
/* ------------------------------------------------------------------------------------------ */

.oa-snackbar-host {
  position: fixed;
  z-index: var(--z-snackbar);
  inset-inline: calc(var(--space-4) + var(--oa-safe-start)) calc(var(--space-4) + var(--oa-safe-end));
  inset-block-end: calc(var(--oa-snackbar-host-offset, var(--space-4)) + var(--oa-safe-bottom));
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

/* Above the phone navigation bar: calc(6rem + var(--oa-safe-bottom)), 16px over the 80px bar.
   Other bottom chrome (the sticky action bar, below 1024px) sets --oa-snackbar-host-offset to its
   height plus 16px while it shows. */
.oa-snackbar-host--nav-bar {
  --oa-snackbar-host-offset: var(--space-24);
}

@media (min-width: 48rem) {
  /* From 768px: 24px from the inline start and from the bottom, or above a sticky action bar that
     still shows (it lasts until 1024px); the rail replaces the navigation bar. */
  .oa-snackbar-host {
    inset-inline: calc(var(--space-6) + var(--oa-safe-start)) calc(var(--space-6) + var(--oa-safe-end));
    inset-block-end: calc(var(--oa-snackbar-host-offset, var(--space-6)) + var(--oa-safe-bottom));
  }

  .oa-snackbar-host--nav-bar {
    --oa-snackbar-host-offset: var(--space-6);
  }
}

/* While a snackbar shows over an app shell, the shell's scrolling region gains room at its end, so
   its last control can scroll clear of the bar and a focused control is never hidden under it
   (WCAG 2.4.11, canonical §4.10, §10.21). A shell whose main meets the bottom edge (no navigation
   bar under it) adds the bottom inset as well. */
:root:has(.oa-snackbar-host > .oa-snackbar:not([hidden])) .oa-app-shell__main {
  padding-block-end: calc(var(--space-6) + var(--size-scroll-offset));
  scroll-padding-block-end: var(--size-scroll-offset);
}

:root:has(.oa-snackbar-host > .oa-snackbar:not([hidden])) .oa-app-shell:where(:not(.oa-app-shell--rail)) > .oa-app-shell__main {
  padding-block-end: calc(var(--space-6) + var(--size-scroll-offset) + var(--oa-safe-bottom));
  scroll-padding-block-end: calc(var(--size-scroll-offset) + var(--oa-safe-bottom));
}

@media (min-width: 48rem) {
  :root:has(.oa-snackbar-host > .oa-snackbar:not([hidden])) .oa-app-shell > .oa-app-shell__main {
    padding-block-end: calc(var(--space-6) + var(--size-scroll-offset) + var(--oa-safe-bottom));
    scroll-padding-block-end: calc(var(--size-scroll-offset) + var(--oa-safe-bottom));
  }
}

@media print {
  .oa-snackbar-host {
    display: none;
  }
}

/* ------------------------------------------------------------------------------------------ */
/* Snackbar: inverse surface in both themes, outline edge, elevation-3 (D-CSN-25, D-ARC-08).   */
/* ------------------------------------------------------------------------------------------ */

.oa-snackbar {
  --color-focus-ring: var(--color-inverse-primary);
  pointer-events: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  inline-size: 100%;
  max-inline-size: var(--container-snackbar);
  min-block-size: var(--space-14);
  padding-block: var(--space-1);
  padding-inline: var(--space-4) var(--space-1);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-12px);
  background-color: var(--color-inverse-surface);
  color: var(--color-inverse-on-surface);
  box-shadow: var(--shadow-elevation-3);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  opacity: 1;
  transition: opacity var(--duration-short-3) var(--ease-emphasized);
}

/* Enter: fades in over short-3 (canonical §7.3). */
@starting-style {
  .oa-snackbar {
    opacity: 0;
  }
}

/* Exit: the script sets hidden, then removes the bar after --duration-short-3 (never on transitionend). */
.oa-snackbar[hidden] {
  display: none;
  opacity: 0;
  transition:
    opacity var(--duration-short-3) var(--ease-emphasized-accelerate),
    display var(--duration-short-3) allow-discrete;
}

.oa-snackbar__message {
  flex: 1 1 auto;
  min-inline-size: 0;
  margin: 0;
  padding-block: var(--space-2-5);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.oa-snackbar__action,
.oa-snackbar__close,
.oa-banner__action,
.oa-banner__close {
  position: relative;
  isolation: isolate;
  flex: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* State layer: currentColor at --oa-state over the control, below its label (canonical §2.7). It
   covers the border box (inset -1px over the 1px edge), so hover shows no lighter rim. */
.oa-snackbar__action::before,
.oa-snackbar__close::before,
.oa-banner__action::before,
.oa-banner__close::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-snackbar__action:hover,
  .oa-snackbar__close:hover,
  .oa-banner__action:hover,
  .oa-banner__close:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-snackbar__action:active,
.oa-snackbar__close:active,
.oa-banner__action:active,
.oa-banner__close:active {
  --oa-state: var(--opacity-state-pressed);
}

/* Press shows at once; release fades back over short-3. */
.oa-snackbar__action:active::before,
.oa-snackbar__close:active::before,
.oa-banner__action:active::before,
.oa-banner__close:active::before {
  transition: none;
}

/* One optional action: a 48px text button in inverse-primary, label-md. */
.oa-snackbar__action {
  min-block-size: var(--size-touch-target);
  padding-inline: var(--space-3-5);
  color: var(--color-inverse-primary);
  white-space: nowrap;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

/* The close button, always present: 48px circle, 24px close icon, named "Close message". */
.oa-snackbar__close {
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  padding: 0;
  color: var(--color-inverse-on-surface);
}

/* ------------------------------------------------------------------------------------------ */
/* Banner: one inline notice in five tones (D-CSN-26).                                         */
/* ------------------------------------------------------------------------------------------ */

/* The banner's first-line height as a length, so the 20px icon centers on the first line in
   every language (Latin 20px, Arabic 24.5px). Unsupported browsers fall back to 0px: icon on top. */
@property --oa-banner-line {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.oa-banner {
  --oa-link: currentColor;
  --oa-banner-line: 1lh;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  inline-size: 100%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-box);
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
  text-align: start;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-banner--neutral {
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
}

.oa-banner--info {
  background-color: var(--color-info-container);
  color: var(--color-on-info-container);
}

.oa-banner--success {
  background-color: var(--color-success-container);
  color: var(--color-on-success-container);
}

.oa-banner--warning {
  background-color: var(--color-warning-container);
  color: var(--color-on-warning-container);
}

.oa-banner--error {
  background-color: var(--color-error-container);
  color: var(--color-on-error-container);
}

.oa-banner__icon {
  flex: none;
  font-size: var(--size-icon-md);
  margin-block-start: max(0px, calc((var(--oa-banner-line) - var(--size-icon-md)) / 2));
}

.oa-banner__content {
  flex: 1 1 auto;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.oa-banner__title {
  margin: 0;
  color: inherit;
  text-wrap: balance;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-banner__message {
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* Error summary: one link per invalid field, each a standalone 48px link in the on-color. */
.oa-banner__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
}

/* A text button in the banner's on-color: 40px with its hit area extended to 48px. */
.oa-banner__action {
  min-block-size: var(--size-button-sm);
  padding-inline: var(--space-5);
  color: inherit;
  white-space: nowrap;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-banner__action::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block: -5px;
}

/* A retry action while it waits: aria-busy="true" with aria-disabled="true". Colors and focus stay
   and the state layer stays off; the spinner leads the waiting words ("Sending…"), its arc in the
   label color with no track, at the small button's icon size (D-CAI-06). */
.oa-banner__action:is([aria-busy="true"], [aria-disabled="true"]) {
  --oa-state: 0;
  cursor: default;
}

.oa-banner__action .oa-spinner {
  --oa-spinner-arc: currentColor;
  --oa-spinner-track: transparent;
  --oa-spinner-size: var(--size-icon-sm);
}

/* Dismissible banners only: a 48px close button at the inline end, 4px inside the inline-end
   padding edge; it reaches over the 12px block padding so its icon sits on the first line. */
.oa-banner__close {
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  margin-block: calc(var(--space-3) * -1);
  margin-inline-end: calc(var(--space-3) * -1);
  padding: 0;
  color: inherit;
}

/* ------------------------------------------------------------------------------------------ */
/* Page strip: DEMO, practice, and staging notices, full width under the header (D-CSN-26).    */
/* ------------------------------------------------------------------------------------------ */

.oa-page-strip {
  --oa-link: currentColor;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  inline-size: 100%;
  margin: 0;
  padding: var(--space-2) var(--space-4);
  border-block: 1px solid transparent;
  background-color: var(--color-info-container);
  color: var(--color-on-info-container);
  text-align: center;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* The private host screen (keep it off the projector). */
.oa-page-strip--warning {
  background-color: var(--color-warning-container);
  color: var(--color-on-warning-container);
}

/* The "DEMO" chip: the strip's colors reversed, a small status-chip shape. */
.oa-page-strip__chip {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  min-block-size: var(--space-6);
  padding-inline: var(--space-3);
  border-radius: var(--radius-chip);
  background-color: var(--color-on-info-container);
  color: var(--color-info-container);
  white-space: nowrap;
  font-size: var(--text-label-sm);
  line-height: var(--text-label-sm--line-height);
  letter-spacing: var(--text-label-sm--letter-spacing);
  font-weight: var(--text-label-sm--font-weight);
}

.oa-page-strip--warning .oa-page-strip__chip {
  background-color: var(--color-on-warning-container);
  color: var(--color-warning-container);
}

/* ------------------------------------------------------------------------------------------ */
/* Linear progress: primary-ink on surface-container-highest, never primary (D-CSN-28).        */
/* ------------------------------------------------------------------------------------------ */

.oa-progress {
  --oa-progress-value: 0%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  inline-size: 100%;
}

/* The value is always also in words: the words, then an optional figure at the inline end. */
.oa-progress__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-progress__value {
  color: var(--color-on-surface-variant);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

/* The role="progressbar" element: 8px, or 4px thin; forced colors give it an edge (end of file). */
.oa-progress__track {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  block-size: 8px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-highest);
}

.oa-progress--thin .oa-progress__track {
  block-size: 4px;
}

/* Grows from the inline start (from the right in Arabic); width over medium-2 emphasized. */
.oa-progress__indicator {
  display: block;
  block-size: 100%;
  inline-size: var(--oa-progress-value);
  max-inline-size: 100%;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-ink);
  transition: inline-size var(--duration-medium-2) var(--ease-emphasized);
}

/* ------------------------------------------------------------------------------------------ */
/* Spinner: a quarter arc in primary-ink on an outline-variant track, always with words; inside */
/* a button, button.css points the arc at the label color and drops the track (D-CAI-06).       */
/* ------------------------------------------------------------------------------------------ */

.oa-spinner,
.oa-spinner--sm {
  --oa-spinner-size: 20px;
  --oa-spinner-stroke: 2px;
}

.oa-spinner--lg {
  --oa-spinner-size: 48px;
  --oa-spinner-stroke: 4px;
}

.oa-spinner {
  /* A container whose ground is not a surface re-points these on its spinners with a selector of its
     own, as button.css does (.oa-btn .oa-spinner: the arc in the label color, no track, the icon's
     size) and as the banner action does above. */
  --oa-spinner-arc: var(--color-primary-ink);
  --oa-spinner-track: var(--color-outline-variant);
  box-sizing: border-box;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  inline-size: var(--oa-spinner-size);
  block-size: var(--oa-spinner-size);
  border: var(--oa-spinner-stroke) solid var(--oa-spinner-track);
  border-block-start-color: var(--oa-spinner-arc);
  border-radius: var(--radius-full);
  animation: var(--animate-spinner);
}

/* ------------------------------------------------------------------------------------------ */
/* Skeleton: blocks in the final layout, swept only while motion is allowed (D-CSN-29).         */
/* ------------------------------------------------------------------------------------------ */

.oa-skeleton {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-4px);
  background-color: var(--color-skeleton);
}

/* A body text line (16px); shorten the last lines of a paragraph to 80% and 60%. */
.oa-skeleton--line {
  block-size: 16px;
}

/* A title line (24px). */
.oa-skeleton--title {
  block-size: 24px;
}

/* A media block: give it the size or aspect ratio of what it stands for; it keeps a card's corners
   unless the final element has others. */
.oa-skeleton--block {
  border-radius: var(--radius-card);
}

/* An avatar or disc: 40px (avatar-sm) unless the final avatar is larger. */
.oa-skeleton--circle {
  flex: none;
  inline-size: var(--size-avatar-sm);
  block-size: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
}

@media (prefers-reduced-motion: no-preference) {
  .oa-skeleton {
    background-image: linear-gradient(90deg, var(--color-skeleton), var(--color-skeleton-highlight), var(--color-skeleton));
    background-size: 220% 100%;
    animation: var(--animate-skeleton);
  }
}

/* ------------------------------------------------------------------------------------------ */
/* In-content empty state (D-CSN-30): disc, title, body, one action.                           */
/* ------------------------------------------------------------------------------------------ */

.oa-empty {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.oa-empty__disc {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-tile-xl);
  block-size: var(--size-tile-xl);
  border-radius: var(--radius-full);
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
}

/* A product illustration may replace the disc: 160px or less, aria-hidden. */
.oa-empty__art {
  display: block;
  flex: none;
  max-inline-size: 160px;
  max-block-size: 160px;
}

.oa-empty__title {
  margin: 0;
  color: var(--color-on-surface);
  text-wrap: balance;
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

.oa-empty__body {
  max-inline-size: 40ch;
  margin: 0;
  color: var(--color-on-surface-variant);
  text-wrap: pretty;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-1);
}

/* ------------------------------------------------------------------------------------------ */
/* Full-page state (404, error, offline, not set up, expired link), inside the product shell.  */
/* ------------------------------------------------------------------------------------------ */

.oa-state-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  inline-size: 100%;
  max-inline-size: var(--container-form);
  margin-inline: auto;
  margin-block: auto;
  padding-block: var(--space-10);
  text-align: center;
}

/* The bare icon: icon-4xl in primary-ink. */
.oa-state-page__icon {
  flex: none;
  font-size: var(--size-icon-4xl);
  color: var(--color-primary-ink);
}

/* Problem states (not set up, expired link): a tile-2xl tonal disc with an icon-3xl icon. */
.oa-state-page__disc {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-tile-2xl);
  block-size: var(--size-tile-2xl);
  border-radius: var(--radius-full);
  background-color: var(--color-warning-container);
  color: var(--color-on-warning-container);
}

.oa-state-page__title {
  margin: 0;
  color: var(--color-on-surface);
  text-wrap: balance;
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--text-headline-md--font-weight);
}

.oa-state-page__body {
  margin: 0;
  color: var(--color-on-surface-variant);
  text-wrap: pretty;
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
}

/* One filled lg button first, full width below 640px, then an optional quieter action. */
.oa-state-page__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  inline-size: 100%;
}

.oa-state-page__actions > :first-child {
  align-self: stretch;
}

@media (min-width: 40rem) {
  .oa-state-page__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .oa-state-page__actions > :first-child {
    align-self: auto;
  }
}

/* The error code comes last and small; the code itself is mono and left to right. */
.oa-state-page__code {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  letter-spacing: var(--text-body-sm--letter-spacing);
  font-weight: var(--text-body-sm--font-weight);
}

.oa-state-page__code code {
  font-family: var(--font-mono);
  font-size: var(--text-code-xs);
  line-height: var(--text-code-xs--line-height);
  letter-spacing: var(--text-code-xs--letter-spacing);
  font-weight: var(--text-code-xs--font-weight);
}

/* ------------------------------------------------------------------------------------------ */
/* Status indicator: a dot and words; only real-time live states pulse (D-CSN-27).            */
/* ------------------------------------------------------------------------------------------ */

.oa-status {
  --oa-status-size: 8px;
  --oa-status-color: var(--color-outline);
  --oa-status-halo: var(--color-surface-container-highest);
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  max-inline-size: 100%;
}

.oa-status--sm {
  --oa-status-size: 8px;
}

.oa-status--lg {
  --oa-status-size: 12px;
  display: flex;
  gap: var(--space-3);
}

.oa-status--live,
.oa-status--success {
  --oa-status-color: var(--color-success);
  --oa-status-halo: var(--color-success-container);
}

.oa-status--pending {
  --oa-status-color: var(--color-warning);
  --oa-status-halo: var(--color-warning-container);
}

.oa-status--error {
  --oa-status-color: var(--color-error);
  --oa-status-halo: var(--color-error-container);
}

.oa-status--off {
  --oa-status-color: var(--color-outline);
  --oa-status-halo: var(--color-surface-container-highest);
}

.oa-status--info {
  --oa-status-color: var(--color-info);
  --oa-status-halo: var(--color-info-container);
}

/* Decorative (aria-hidden); centered on the first line of the words it stands beside. The dot sets
   no font-size, so 1lh is the line height of its status line in every language. */
.oa-status__dot {
  flex: none;
  box-sizing: border-box;
  inline-size: var(--oa-status-size);
  block-size: var(--oa-status-size);
  margin-block-start: max(0px, calc((1lh - var(--oa-status-size)) / 2));
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--oa-status-color);
  background-color: currentColor;
}

/* Large: a 5px halo in the container color, 5px in from the inline start so it never clips. */
.oa-status--lg .oa-status__dot {
  margin-inline-start: 5px;
  box-shadow: 0 0 0 5px var(--oa-status-halo);
}

/* Only a real-time live state pulses, on the large dot; it stands still under reduced motion. */
.oa-status--lg.oa-status--live .oa-status__dot {
  animation: var(--animate-live);
}

.oa-status__label {
  min-inline-size: 0;
}

/* ------------------------------------------------------------------------------------------ */
/* Forced colors: keep the parts whose meaning is a fill visible.                             */
/* ------------------------------------------------------------------------------------------ */

@media (forced-colors: active) {
  .oa-progress__track {
    border: 1px solid CanvasText;
  }

  .oa-progress__indicator {
    forced-color-adjust: none;
    background-color: Highlight;
  }

  .oa-spinner {
    forced-color-adjust: none;
    border-color: GrayText;
    border-block-start-color: Highlight;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/marketing.css
   --------------------------------------------------------------------------------------------- */

/*
 * marketing.css: marketing blocks of the OAIT Design System 2.1.0.
 *
 * Components: hero and compact page hero, trust strip, decoration kit (shapes, hand-drawn underline),
 * section header, feature card, stat tile and stat grid, steps row, CTA band (the inverse band) and
 * its glows, FAQ, and Pause control.
 *
 * Implements: canonical §10.27, §10.11, §10.18 (steps row), §10.23 (status dot), §10.25 (FAQ), §7.5,
 * §7.6, §9, §11 row 1; D-CSN-05, D-CSN-08, D-CSN-19, D-CSN-27, D-CSN-31, D-CSN-35, D-CSN-36, D-CSN-37,
 * D-SEM-07, D-SEM-12, D-SEM-17, D-SEM-19, D-BCP-17, D-BCP-37, D-LAY-07, D-LAY-08, D-ARC-07, D-ARC-20,
 * D-ARC-23, D-ARC-25, D-ARC-27, C-4, C-5, V-1.
 *
 * Composes (other units' blocks, used in markup only): .oa-panel (+ --hero, --feature, --inverse),
 * .oa-card, .oa-tile, .oa-accordion (c-containers); .oa-btn, .oa-dot-pill, .oa-link (c-actions);
 * .oa-field (c-inputs); .oa-status (+ --lg, --success, --pending; __dot) (c-feedback); .oa-eyebrow,
 * .oa-icon, .oa-visually-hidden, [data-motion="paused"] (base).
 *
 * Tokens read: --color-primary, --color-on-primary, --color-primary-ink, --color-inverse-primary,
 * --color-inverse-on-surface-variant, --color-on-surface, --color-on-surface-variant,
 * --color-outline-variant, --color-surface-container-low, --color-surface-container-lowest,
 * --color-pastel-peach, --color-pastel-lavender, --color-pastel-mint, --color-pastel-sand,
 * --color-secondary, --color-success, --color-success-container, --color-on-success-container,
 * --color-warning-container, --color-on-warning-container, --color-error-container,
 * --color-on-error-container; --text-hero-lg, --text-hero-md, --text-lead, --text-title-lg,
 * --text-title-sm, --text-body-lg, --text-body-md, --text-label-md, --text-numeral-lg (each with its
 * --line-height, --letter-spacing, and --font-weight companions), --font-weight-medium;
 * --space-1, -2, -3, -4, -6, -8, -10, -28, --space-card, --space-card-medium, --space-grid,
 * --space-section-head, --space-split, --space-split-expanded, --space-stack-group;
 * --container-reading, --container-measure; --size-tile-lg, --size-tile-md, --size-touch-target;
 * --radius-full, --radius-box, --radius-card; --opacity-decor, --opacity-decor-soft,
 * --opacity-state-hover, --opacity-state-pressed; --animate-rise, --animate-drift,
 * --animate-drift-slow; --duration-short-3, --ease-standard; --z-behind.
 * Context properties: --oa-state (set on :hover and :active of the Pause control; documentation
 * pages force it inline). Component-local: --oa-shape-size, --oa-shape-fill, --oa-shape-mask.
 *
 * Classes: .oa-hero (+ --compact; __text, __title, __accent, __lead, __actions, __form, __trust,
 * __trust--safety, __art, __stage), .oa-trust-strip (+ __item), .oa-shape (+ --circle, --squircle,
 * --blob, --clover, --cookie, --flower, --sunny, --peach, --lavender, --mint, --sand, --soft,
 * --turn-12, --turn-18, --drift, --drift-slow), .oa-underline, .oa-section-header (+ --center,
 * --action; __text, __title, __lead, __action, __status), .oa-feature-card,
 * .oa-stat (+ --success, --warning, --error; __label, __value, __note, __icon), .oa-stat-grid,
 * .oa-steps (+ __step, __disc, __num, __title, __body), .oa-cta-band (+ __glow, __glow--secondary,
 * __actions, __principles, __principle, __icon, __name, __desc), .oa-faq (+ __list), .oa-pause.
 *
 * Breakpoints are written as rem literals because custom properties do not work in media queries:
 * 40rem = --breakpoint-sm (640px), 64rem = --breakpoint-lg (1024px).
 */

/* ---------------------------------------------------------------------------------------------
 * Hero (canonical §10.27, §4.4, §4.5; D-CSN-35, D-LAY-08, C-5)
 * The surface is the tonal panel of panel.css, which also positions, isolates, and clips it for the
 * shapes: <section class="oa-panel oa-panel--hero oa-hero">. The compact page hero uses the
 * feature padding: <section class="oa-panel oa-panel--feature oa-hero oa-hero--compact">.
 * ------------------------------------------------------------------------------------------- */

.oa-hero {
  display: grid;
  align-items: center;
  gap: var(--space-split);
}

@media (min-width: 64rem) {
  .oa-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-split-expanded);
  }
}

/* The compact page hero: one column, no art, a hero-md title (canonical §3.5 "long heroes"). */
.oa-hero--compact {
  display: block;
}

.oa-hero__text {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-6);
  min-inline-size: 0;
  animation: var(--animate-rise);
}

.oa-hero--compact .oa-hero__text {
  max-inline-size: var(--container-reading);
}

.oa-hero__title {
  margin: 0;
  max-inline-size: 13em;
  font-size: var(--text-hero-lg);
  line-height: var(--text-hero-lg--line-height);
  letter-spacing: var(--text-hero-lg--letter-spacing);
  font-weight: var(--text-hero-lg--font-weight);
  text-wrap: balance;
}

.oa-hero--compact .oa-hero__title {
  font-size: var(--text-hero-md);
  line-height: var(--text-hero-md--line-height);
  letter-spacing: var(--text-hero-md--letter-spacing);
  font-weight: var(--text-hero-md--font-weight);
}

/* The second beat of a two-beat statement (D-BCP-17), on a line of its own so a long first beat
   never breaks around it; the box hugs the words, so the hand-drawn underline spans the beat. */
.oa-hero__accent {
  position: relative;
  display: block;
  inline-size: fit-content;
  max-inline-size: 100%;
  color: var(--color-primary-ink);
}

.oa-hero__lead {
  margin: 0;
  max-inline-size: 30em;
  font-size: var(--text-lead);
  line-height: var(--text-lead--line-height);
  letter-spacing: var(--text-lead--letter-spacing);
  font-weight: var(--text-lead--font-weight);
  color: var(--color-on-surface-variant);
  text-wrap: pretty;
}

/* CTA row: the page button pair of button.css (.oa-actions.oa-actions--page): filled lg first,
   then outlined lg, 12px apart; full width and stacked, the filled one on top, below 640px.
   The row sits 32px under the lead (24px gap + 8px). */
.oa-hero__actions {
  align-self: stretch;
  margin-block-start: var(--space-2);
}

/* Sign-up form in the action slot (Tamakkan): the field grows, the button sits at its end with the
   bottoms aligned; below 640px both are full width, the button under the field. */
.oa-hero__form {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: var(--space-3);
  margin-block-start: var(--space-2);
}

@media (min-width: 40rem) {
  .oa-hero__form {
    flex-direction: row;
    align-items: end;
  }

  .oa-hero__form > :first-child {
    flex: 1 1 auto;
    min-inline-size: 0;
  }
}

.oa-hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  color: var(--color-on-surface-variant);
}

.oa-hero__trust > .oa-icon {
  flex: none;
  color: var(--color-primary-ink);
}

/* Safety claims ("Free for job seekers", "Never pay to apply") take the success ink. */
.oa-hero__trust--safety > .oa-icon {
  color: var(--color-success);
}

/* The art column is the product slot, at most 480px (canonical §10.27). */
.oa-hero__art {
  position: relative;
  justify-self: center;
  inline-size: 100%;
  max-inline-size: 30rem; /* 480px, a component constant (canonical §10.27; container-art is a 1.1 token request) */
  min-inline-size: 0;
  animation: var(--animate-rise);
}

/* The entrance is a one-shot that ends within 5 seconds (canonical §7.5), so a pause never holds
   it: under a paused ancestor (a Pause region drawn around the whole hero, a page-wide pause) a
   column that has not finished rising shows its resting style at once instead of the first,
   invisible frame of oa-rise; pressing Play lets an unfinished entrance run again. */
[data-motion="paused"] :is(.oa-hero__text, .oa-hero__art) {
  animation-duration: 0s; /* lint-ok: a paused one-shot completes at once (canonical §7.4: the base style is the resting state) */
}

/* The motion region inside the art column: the product's art, the drifting shapes, and the Pause
   control. It sits inside the rising column, so pausing it never freezes the entrance. */
.oa-hero__stage {
  position: relative;
  aspect-ratio: 4 / 3;
}

.oa-hero__stage > .oa-pause {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
}

/* ---------------------------------------------------------------------------------------------
 * Trust strip (canonical §11 row 1): 3–4 items, a 20px icon and one line each.
 * ------------------------------------------------------------------------------------------- */

.oa-trust-strip {
  display: grid;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .oa-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .oa-trust-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

.oa-trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  color: var(--color-on-surface-variant);
}

.oa-trust-strip__item > .oa-icon {
  flex: none;
  color: var(--color-primary-ink);
}

/* ---------------------------------------------------------------------------------------------
 * Decoration kit (canonical §9; D-BCP-37, D-SEM-07): pastel shapes behind content.
 * Size with --oa-shape-size (72–340px; a clamp() such as clamp(96px, 34%, 160px) lets a shape scale
 * with an art column); place with logical insets in the markup. Shapes stay square (aspect-ratio).
 * ------------------------------------------------------------------------------------------- */

.oa-shape {
  --oa-shape-size: 160px;
  position: absolute;
  z-index: var(--z-behind);
  display: block;
  inline-size: var(--oa-shape-size);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background-color: var(--oa-shape-fill, var(--color-pastel-peach));
  opacity: var(--opacity-decor);
  pointer-events: none;
}

.oa-shape--circle {
  border-radius: var(--radius-full);
}

.oa-shape--squircle {
  border-radius: 25%; /* the kit's squircle: a quarter of its size */
}

.oa-shape--blob {
  border-radius: 42% 58% 55% 45%; /* the kit's organic blob */
}

/* The four scalloped and lobed masks from assets/shapes/, embedded so the file works from any
   folder. Never below 32px (D-SEM-07). */
.oa-shape--clover,
.oa-shape--cookie,
.oa-shape--flower,
.oa-shape--sunny {
  border-radius: 0;
  -webkit-mask: var(--oa-shape-mask) center / contain no-repeat;
  mask: var(--oa-shape-mask) center / contain no-repeat;
}

.oa-shape--clover {
  --oa-shape-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M84.6 84.6 L83 86 L81.2 87.2 L79.2 88.1 L77.1 88.7 L74.9 89.1 L72.6 89.2 L70.3 89.1 L68.1 88.8 L65.9 88.3 L63.7 87.8 L61.7 87.1 L59.8 86.5 L57.9 85.8 L56.2 85.2 L54.6 84.7 L53 84.3 L51.5 84.1 L50 84 L48.5 84.1 L47 84.3 L45.4 84.7 L43.8 85.2 L42.1 85.8 L40.2 86.5 L38.3 87.1 L36.3 87.8 L34.1 88.3 L31.9 88.8 L29.7 89.1 L27.4 89.2 L25.1 89.1 L22.9 88.7 L20.8 88.1 L18.8 87.2 L17 86 L15.4 84.6 L14 83 L12.8 81.2 L11.9 79.2 L11.3 77.1 L10.9 74.9 L10.8 72.6 L10.9 70.3 L11.2 68.1 L11.7 65.9 L12.2 63.7 L12.9 61.7 L13.5 59.8 L14.2 57.9 L14.8 56.2 L15.3 54.6 L15.7 53 L15.9 51.5 L16 50 L15.9 48.5 L15.7 47 L15.3 45.4 L14.8 43.8 L14.2 42.1 L13.5 40.2 L12.9 38.3 L12.2 36.3 L11.7 34.1 L11.2 31.9 L10.9 29.7 L10.8 27.4 L10.9 25.1 L11.3 22.9 L11.9 20.8 L12.8 18.8 L14 17 L15.4 15.4 L17 14 L18.8 12.8 L20.8 11.9 L22.9 11.3 L25.1 10.9 L27.4 10.8 L29.7 10.9 L31.9 11.2 L34.1 11.7 L36.3 12.2 L38.3 12.9 L40.2 13.5 L42.1 14.2 L43.8 14.8 L45.4 15.3 L47 15.7 L48.5 15.9 L50 16 L51.5 15.9 L53 15.7 L54.6 15.3 L56.2 14.8 L57.9 14.2 L59.8 13.5 L61.7 12.9 L63.7 12.2 L65.9 11.7 L68.1 11.2 L70.3 10.9 L72.6 10.8 L74.9 10.9 L77.1 11.3 L79.2 11.9 L81.2 12.8 L83 14 L84.6 15.4 L86 17 L87.2 18.8 L88.1 20.8 L88.7 22.9 L89.1 25.1 L89.2 27.4 L89.1 29.7 L88.8 31.9 L88.3 34.1 L87.8 36.3 L87.1 38.3 L86.5 40.2 L85.8 42.1 L85.2 43.8 L84.7 45.4 L84.3 47 L84.1 48.5 L84 50 L84.1 51.5 L84.3 53 L84.7 54.6 L85.2 56.2 L85.8 57.9 L86.5 59.8 L87.1 61.7 L87.8 63.7 L88.3 65.9 L88.8 68.1 L89.1 70.3 L89.2 72.6 L89.1 74.9 L88.7 77.1 L88.1 79.2 L87.2 81.2 L86 83 Z'/%3E%3C/svg%3E");
}

.oa-shape--cookie {
  --oa-shape-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 1.4 L52.1 1.7 L54.1 2.6 L56.1 4 L57.8 5.7 L59.4 7.4 L61 9 L62.5 10.3 L64.2 11.1 L65.9 11.5 L67.9 11.5 L70.1 11.3 L72.5 11 L74.9 10.9 L77.3 11.1 L79.4 11.7 L81.2 12.8 L82.6 14.4 L83.6 16.4 L84.2 18.7 L84.5 21.1 L84.6 23.4 L84.8 25.6 L85.1 27.6 L85.9 29.3 L87 30.8 L88.5 32.1 L90.3 33.3 L92.3 34.6 L94.2 36.1 L95.9 37.7 L97.2 39.5 L97.9 41.6 L97.9 43.7 L97.4 45.9 L96.3 48 L95 50 L93.6 51.9 L92.3 53.7 L91.3 55.4 L90.8 57.2 L90.7 59 L91 61 L91.6 63.1 L92.3 65.4 L92.8 67.7 L93.1 70.1 L92.9 72.3 L92.1 74.3 L90.8 76 L88.9 77.3 L86.8 78.2 L84.5 78.9 L82.2 79.5 L80 80 L78.2 80.7 L76.6 81.7 L75.4 83.1 L74.4 84.8 L73.4 86.8 L72.5 89 L71.4 91.1 L70.1 93.1 L68.5 94.6 L66.6 95.7 L64.5 96.1 L62.3 95.9 L60 95.3 L57.8 94.3 L55.7 93.2 L53.7 92.3 L51.8 91.6 L50 91.4 L48.2 91.6 L46.3 92.3 L44.3 93.2 L42.2 94.3 L40 95.3 L37.7 95.9 L35.5 96.1 L33.4 95.7 L31.5 94.6 L29.9 93.1 L28.6 91.1 L27.5 89 L26.6 86.8 L25.6 84.8 L24.6 83.1 L23.4 81.7 L21.8 80.7 L20 80 L17.8 79.5 L15.5 78.9 L13.2 78.2 L11.1 77.3 L9.2 76 L7.9 74.3 L7.1 72.3 L6.9 70.1 L7.2 67.7 L7.7 65.4 L8.4 63.1 L9 61 L9.3 59 L9.2 57.2 L8.7 55.4 L7.7 53.7 L6.4 51.9 L5 50 L3.7 48 L2.6 45.9 L2.1 43.7 L2.1 41.6 L2.8 39.5 L4.1 37.7 L5.8 36.1 L7.7 34.6 L9.7 33.3 L11.5 32.1 L13 30.8 L14.1 29.3 L14.9 27.6 L15.2 25.6 L15.4 23.4 L15.5 21.1 L15.8 18.7 L16.4 16.4 L17.4 14.4 L18.8 12.8 L20.6 11.7 L22.7 11.1 L25.1 10.9 L27.5 11 L29.9 11.3 L32.1 11.5 L34.1 11.5 L35.8 11.1 L37.5 10.3 L39 9 L40.6 7.4 L42.2 5.7 L43.9 4 L45.9 2.6 L47.9 1.7 Z'/%3E%3C/svg%3E");
}

.oa-shape--flower {
  --oa-shape-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 1 L52.1 1.3 L54.2 2.1 L56.1 3.3 L57.9 4.9 L59.6 6.9 L61 8.9 L62.3 11.1 L63.4 13.1 L64.5 15 L65.6 16.6 L66.7 17.9 L68 18.8 L69.5 19.5 L71.1 19.8 L73.1 19.9 L75.2 19.9 L77.6 19.9 L80.1 19.9 L82.6 20.2 L85 20.6 L87.4 21.3 L89.4 22.4 L91.1 23.8 L92.4 25.5 L93.3 27.5 L93.6 29.7 L93.5 32 L93 34.4 L92.1 36.7 L91.1 39 L89.9 41.2 L88.7 43.2 L87.6 45.1 L86.7 46.8 L86.2 48.4 L86 50 L86.2 51.6 L86.7 53.2 L87.6 54.9 L88.7 56.8 L89.9 58.8 L91.1 61 L92.1 63.3 L93 65.6 L93.5 68 L93.6 70.3 L93.3 72.5 L92.4 74.5 L91.1 76.2 L89.4 77.6 L87.4 78.7 L85 79.4 L82.6 79.8 L80.1 80.1 L77.6 80.1 L75.2 80.1 L73.1 80.1 L71.1 80.2 L69.5 80.5 L68 81.2 L66.7 82.1 L65.6 83.4 L64.5 85 L63.4 86.9 L62.3 88.9 L61 91.1 L59.6 93.1 L57.9 95.1 L56.1 96.7 L54.2 97.9 L52.1 98.7 L50 99 L47.9 98.7 L45.8 97.9 L43.9 96.7 L42.1 95.1 L40.4 93.1 L39 91.1 L37.7 88.9 L36.6 86.9 L35.5 85 L34.4 83.4 L33.3 82.1 L32 81.2 L30.5 80.5 L28.9 80.2 L26.9 80.1 L24.8 80.1 L22.4 80.1 L19.9 80.1 L17.4 79.8 L15 79.4 L12.6 78.7 L10.6 77.6 L8.9 76.2 L7.6 74.5 L6.7 72.5 L6.4 70.3 L6.5 68 L7 65.6 L7.9 63.3 L8.9 61 L10.1 58.8 L11.3 56.8 L12.4 54.9 L13.3 53.2 L13.8 51.6 L14 50 L13.8 48.4 L13.3 46.8 L12.4 45.1 L11.3 43.2 L10.1 41.2 L8.9 39 L7.9 36.7 L7 34.4 L6.5 32 L6.4 29.7 L6.7 27.5 L7.6 25.5 L8.9 23.8 L10.6 22.4 L12.6 21.3 L15 20.6 L17.4 20.2 L19.9 19.9 L22.4 19.9 L24.8 19.9 L26.9 19.9 L28.9 19.8 L30.5 19.5 L32 18.8 L33.3 17.9 L34.4 16.6 L35.5 15 L36.6 13.1 L37.7 11.1 L39 8.9 L40.4 6.9 L42.1 4.9 L43.9 3.3 L45.8 2.1 L47.9 1.3 Z'/%3E%3C/svg%3E");
}

.oa-shape--sunny {
  --oa-shape-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M98.4 50 L98.2 51.6 L97.6 53.1 L96.7 54.6 L95.6 56 L94.5 57.3 L93.5 58.6 L92.6 59.9 L92.1 61.3 L91.9 62.7 L92 64.2 L92.2 65.9 L92.5 67.6 L92.7 69.4 L92.8 71.1 L92.5 72.7 L91.9 74.2 L90.9 75.5 L89.7 76.5 L88.1 77.3 L86.5 78 L84.8 78.6 L83.3 79.2 L82 79.9 L80.8 80.8 L79.9 82 L79.2 83.3 L78.6 84.8 L78 86.5 L77.3 88.1 L76.5 89.7 L75.5 90.9 L74.2 91.9 L72.7 92.5 L71.1 92.8 L69.4 92.7 L67.6 92.5 L65.9 92.2 L64.2 92 L62.7 91.9 L61.3 92.1 L59.9 92.6 L58.6 93.5 L57.3 94.5 L56 95.6 L54.6 96.7 L53.1 97.6 L51.6 98.2 L50 98.4 L48.4 98.2 L46.9 97.6 L45.4 96.7 L44 95.6 L42.7 94.5 L41.4 93.5 L40.1 92.6 L38.7 92.1 L37.3 91.9 L35.8 92 L34.1 92.2 L32.4 92.5 L30.6 92.7 L28.9 92.8 L27.3 92.5 L25.8 91.9 L24.5 90.9 L23.5 89.7 L22.7 88.1 L22 86.5 L21.4 84.8 L20.8 83.3 L20.1 82 L19.2 80.8 L18 79.9 L16.7 79.2 L15.2 78.6 L13.5 78 L11.9 77.3 L10.3 76.5 L9.1 75.5 L8.1 74.2 L7.5 72.7 L7.2 71.1 L7.3 69.4 L7.5 67.6 L7.8 65.9 L8 64.2 L8.1 62.7 L7.9 61.3 L7.4 59.9 L6.5 58.6 L5.5 57.3 L4.4 56 L3.3 54.6 L2.4 53.1 L1.8 51.6 L1.6 50 L1.8 48.4 L2.4 46.9 L3.3 45.4 L4.4 44 L5.5 42.7 L6.5 41.4 L7.4 40.1 L7.9 38.7 L8.1 37.3 L8 35.8 L7.8 34.1 L7.5 32.4 L7.3 30.6 L7.2 28.9 L7.5 27.3 L8.1 25.8 L9.1 24.5 L10.3 23.5 L11.9 22.7 L13.5 22 L15.2 21.4 L16.7 20.8 L18 20.1 L19.2 19.2 L20.1 18 L20.8 16.7 L21.4 15.2 L22 13.5 L22.7 11.9 L23.5 10.3 L24.5 9.1 L25.8 8.1 L27.3 7.5 L28.9 7.2 L30.6 7.3 L32.4 7.5 L34.1 7.8 L35.8 8 L37.3 8.1 L38.7 7.9 L40.1 7.4 L41.4 6.5 L42.7 5.5 L44 4.4 L45.4 3.3 L46.9 2.4 L48.4 1.8 L50 1.6 L51.6 1.8 L53.1 2.4 L54.6 3.3 L56 4.4 L57.3 5.5 L58.6 6.5 L59.9 7.4 L61.3 7.9 L62.7 8.1 L64.2 8 L65.9 7.8 L67.6 7.5 L69.4 7.3 L71.1 7.2 L72.7 7.5 L74.2 8.1 L75.5 9.1 L76.5 10.3 L77.3 11.9 L78 13.5 L78.6 15.2 L79.2 16.7 L79.9 18 L80.8 19.2 L82 20.1 L83.3 20.8 L84.8 21.4 L86.5 22 L88.1 22.7 L89.7 23.5 L90.9 24.5 L91.9 25.8 L92.5 27.3 L92.8 28.9 L92.7 30.6 L92.5 32.4 L92.2 34.1 L92 35.8 L91.9 37.3 L92.1 38.7 L92.6 40.1 L93.5 41.4 L94.5 42.7 L95.6 44 L96.7 45.4 L97.6 46.9 L98.2 48.4 Z'/%3E%3C/svg%3E");
}

.oa-shape--peach {
  --oa-shape-fill: var(--color-pastel-peach);
}

.oa-shape--lavender {
  --oa-shape-fill: var(--color-pastel-lavender);
}

.oa-shape--mint {
  --oa-shape-fill: var(--color-pastel-mint);
}

.oa-shape--sand {
  --oa-shape-fill: var(--color-pastel-sand);
}

/* Shapes of 224px and more: --opacity-decor-soft (0.7). */
.oa-shape--soft {
  opacity: var(--opacity-decor-soft);
}

/* Rotation 0°, 12°, or 18° only. The rotate property composes with the drift keyframes. */
.oa-shape--turn-12 {
  rotate: 12deg;
}

.oa-shape--turn-18 {
  rotate: 18deg;
}

/* At most two drifting shapes per hero, inside the region of its Pause control (D-SEM-17). */
.oa-shape--drift {
  animation: var(--animate-drift);
}

.oa-shape--drift-slow {
  animation: var(--animate-drift-slow);
}

/* ---------------------------------------------------------------------------------------------
 * Hand-drawn underline (canonical §9): one per page, under the hero's accent beat.
 * ------------------------------------------------------------------------------------------- */

.oa-underline {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -0.2em;
  inline-size: 100%;
  block-size: 0.16em;
  overflow: visible;
  color: var(--color-primary);
  pointer-events: none;
}

/* Arabic lines are taller (line-height 1.45), so the stroke moves up to keep it under the words. */
.oa-underline:lang(ar) {
  inset-block-end: 0.04em;
}

[dir="rtl"] .oa-underline {
  transform: scaleX(-1);
}

/* ---------------------------------------------------------------------------------------------
 * Section header (canonical §10.27; D-CSN-36, D-ARC-27): eyebrow → 12px → h2 → 16px → lead.
 * ------------------------------------------------------------------------------------------- */

.oa-section-header,
.oa-section-header__text {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-inline-size: var(--container-reading);
}

.oa-section-header .oa-eyebrow {
  margin-block: 0 var(--space-3);
}

.oa-section-header__title {
  margin: 0;
  font-size: var(--text-hero-md);
  line-height: var(--text-hero-md--line-height);
  letter-spacing: var(--text-hero-md--letter-spacing);
  font-weight: var(--text-hero-md--font-weight);
  text-wrap: balance;
}

.oa-section-header__lead {
  margin-block: var(--space-4) 0;
  max-inline-size: var(--container-measure);
  font-size: var(--text-lead);
  line-height: var(--text-lead--line-height);
  letter-spacing: var(--text-lead--letter-spacing);
  font-weight: var(--text-lead--font-weight);
  color: var(--color-on-surface-variant);
  text-wrap: pretty;
}

/* Centered: short intros and the closing statement. */
.oa-section-header--center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

/* Trailing action: the text block at the start, a standalone link at the end, bottom-aligned. */
.oa-section-header--action {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  max-inline-size: none;
}

.oa-section-header__action {
  flex: none;
}

/* The status variant: an .oa-status.oa-status--lg element (feedback.css draws the 12px dot and its
   5px halo) inside the h2, before its words; this rule only places it in the line. The words carry
   the status; the dot is decorative and static (--success, --pending; never --live, which pulses). */
.oa-section-header__status {
  display: inline-flex;
  vertical-align: middle;
  margin-inline-end: var(--space-3);
}

.oa-section-header__status > .oa-status__dot {
  margin-block-start: 0;
}

/* ---------------------------------------------------------------------------------------------
 * Feature card (canonical §10.10; D-CSN-05, D-ARC-20): an outlined card (.oa-card) holding a
 * 56px pastel tile (.oa-tile --lg), a title, a body, an optional meta line, and an optional link,
 * in one column at every width. The list of cards is a ul.oa-grid: base.css drops its bullets and
 * indent (the markup keeps role="list").
 * ------------------------------------------------------------------------------------------- */

/* The card's own column does the rest: blocks 16px apart, title and body 8px apart (card.css).
   Items keep their own width, so the link's ring hugs the link. */
.oa-feature-card {
  align-items: start;
}

/* Tile to title: 16px, 20px from 640px (D-CSN-05). */
@media (min-width: 40rem) {
  .oa-feature-card > .oa-tile {
    margin-block-end: var(--space-1);
  }
}

/* The meta line's lead word ("For") is emphasized in the title's ink, as oait draws it. */
.oa-feature-card > .oa-card__meta > strong {
  color: var(--color-on-surface);
}

/* The optional link sits at the foot of the card, so links line up across a grid row. */
.oa-feature-card > .oa-link {
  margin-block-start: auto;
}

/* ---------------------------------------------------------------------------------------------
 * Stat tile (canonical §10.27; D-CSN-37, D-ARC-20, D-ARC-25): a filled card holding one
 * <dt>/<dd> group of a <dl class="oa-stat-grid">.
 * ------------------------------------------------------------------------------------------- */

.oa-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
  margin: 0;
}

@media (min-width: 40rem) {
  .oa-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* From 1024px one column per tile, five at most. */
@media (min-width: 64rem) {
  .oa-stat-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

.oa-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-block-size: var(--space-28); /* min-h-28: 112px */
  min-inline-size: 0;
  padding: var(--space-card);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
  container-type: inline-size; /* the value's numeral shrinks to the tile, never wraps (below) */
}

@media (min-width: 40rem) {
  .oa-stat {
    padding: var(--space-card-medium);
  }
}

/* Label above the value; the optional 24px icon sits at the inline end of the label row. */
.oa-stat__label {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  color: var(--color-on-surface-variant);
}

.oa-stat__icon {
  flex: none;
  margin-block: -2px; /* the 24px icon keeps the 20px label line, so values align across a row */
  color: var(--color-on-surface-variant);
}

/* The numeral is numeral-lg (40px) and never wraps; in a tile narrower than its number (a two-column
   grid at 320px) it shrinks to 38% of the tile's content width, so "1,016" stays on one line at
   about 36px and is 40px again from 360px. A value of six characters or more uses numeral-md or a
   short form ("12k"). */
.oa-stat__value {
  margin: 0;
  font-size: var(--text-numeral-lg);
  font-size: min(var(--text-numeral-lg), 38cqi);
  line-height: var(--text-numeral-lg--line-height);
  letter-spacing: var(--text-numeral-lg--letter-spacing);
  font-weight: var(--text-numeral-lg--font-weight);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; /* a number never breaks inside itself ("1,01" then "6") */
}

.oa-stat__note {
  margin: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  color: var(--color-on-surface-variant);
}

/* Tonal only when the number is itself a status; always with a status icon and its word. */
.oa-stat--success {
  background-color: var(--color-success-container);
  color: var(--color-on-success-container);
}

.oa-stat--warning {
  background-color: var(--color-warning-container);
  color: var(--color-on-warning-container);
}

.oa-stat--error {
  background-color: var(--color-error-container);
  color: var(--color-on-error-container);
}

:is(.oa-stat--success, .oa-stat--warning, .oa-stat--error) :is(.oa-stat__label, .oa-stat__icon, .oa-stat__note) {
  color: inherit;
}

/* ---------------------------------------------------------------------------------------------
 * Steps row (canonical §10.18; D-CSN-19, D-ARC-20): an <ol> of 3–4 bare steps. Stacked 32px apart
 * with a connector down the disc column below 1024px; 3–4 columns with a connector across from
 * 1024px.
 * ------------------------------------------------------------------------------------------- */

.oa-steps {
  display: grid;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-steps__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--size-tile-lg) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-4);
}

.oa-steps__disc {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  inline-size: var(--size-tile-lg);
  block-size: var(--size-tile-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.oa-steps__num,
.oa-steps__title,
.oa-steps__body {
  grid-column: 2;
}

.oa-steps__num {
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-ink);
}

.oa-steps__title {
  margin: var(--space-1) 0 0;
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
  text-wrap: balance;
}

.oa-steps__body {
  margin: var(--space-2) 0 0;
  max-inline-size: 36ch;
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--text-body-lg--font-weight);
  color: var(--color-on-surface-variant);
  text-wrap: pretty;
}

/* The connector: 2px outline-variant, from 8px below one disc to 8px above the next. */
.oa-steps__step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--size-tile-lg) / 2 - 1px);
  inset-block-start: calc(var(--size-tile-lg) + var(--space-2));
  inset-block-end: calc(var(--space-2) - var(--space-8));
  inline-size: 2px; /* connector thickness, a component constant (canonical §10.18) */
  border-radius: var(--radius-full);
  background-color: var(--color-outline-variant);
}

@media (min-width: 64rem) {
  .oa-steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .oa-steps__step {
    grid-template-columns: minmax(0, 1fr);
  }

  .oa-steps__disc {
    grid-row: auto;
  }

  .oa-steps__num,
  .oa-steps__title,
  .oa-steps__body {
    grid-column: 1;
  }

  .oa-steps__num {
    margin-block-start: var(--space-4);
  }

  /* Across, at the discs' center: from 16px after one disc to 16px before the next. */
  .oa-steps__step:not(:last-child)::before {
    inset-block: calc(var(--size-tile-lg) / 2 - 1px) auto;
    inset-inline: calc(var(--size-tile-lg) + var(--space-4)) calc(var(--space-4) - var(--space-8));
    inline-size: auto;
    block-size: 2px;
  }
}

/* ---------------------------------------------------------------------------------------------
 * CTA band (canonical §10.27 "Inverse band", §10.11; D-CSN-08, D-ARC-07, V-1): the page's one
 * inverse panel: <section class="oa-panel oa-panel--inverse oa-panel--feature oa-cta-band">.
 * Everything inside writes the inverse roles explicitly; there is no subtree theme.
 * ------------------------------------------------------------------------------------------- */

/* The surface, the ring, and the link color come from .oa-panel--inverse (panel.css), which also
   positions, isolates, and clips the band for its glows. */
.oa-cta-band {
  display: flex;
  flex-direction: column;
  align-items: start;
}

/* Glows (canonical §9, D-SEM-12, D-BCP-37): two blurred discs behind the band's content, aria-hidden
   and clipped by the panel; 1.0.0 has no glow token, so the hue at 20% through color-mix and
   blur(64px) are documented art constants. Placed in the corners, away from the start-aligned text;
   where a disc still reaches text on a phone, the text keeps 4.5:1 (5.68:1 at the worst, computed). */
.oa-cta-band__glow {
  position: absolute;
  inset-block-start: -12rem; /* lint-ok: art constant, the disc's offset outside the panel (oait.app's top glow) */
  inset-inline-end: -8rem; /* lint-ok: art constant (oait.app's top glow) */
  z-index: var(--z-behind);
  inline-size: 28rem; /* lint-ok: art constant, a 448px disc (oait.app's top glow) */
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background-color: color-mix(in srgb, var(--color-primary) 20%, transparent); /* lint-ok: the glow recipe, the hue at 20% (canonical §9; opacity-glow is a 1.1 request) */
  filter: blur(64px); /* lint-ok: art constant, Tailwind blur-3xl (blur-glow is a 1.1 request) */
  pointer-events: none;
}

.oa-cta-band__glow--secondary {
  inset-block: auto -12rem; /* lint-ok: art constant (oait.app's bottom glow) */
  inset-inline: -8rem auto; /* lint-ok: art constant (oait.app's bottom glow) */
  inline-size: 26rem; /* lint-ok: art constant, a 416px disc (oait.app's bottom glow) */
  background-color: color-mix(in srgb, var(--color-secondary) 20%, transparent); /* lint-ok: the glow recipe, the hue at 20% (canonical §9) */
}

/* base.css draws .oa-eyebrow in the panel's --oa-link (inverse-primary here); the band states it,
   so its eyebrow never falls back to primary-ink (1.85:1 on the band). */
.oa-cta-band .oa-eyebrow {
  color: var(--color-inverse-primary);
}

.oa-cta-band .oa-section-header__lead {
  color: var(--color-inverse-on-surface-variant);
}

/* The action row is the page button pair of button.css (.oa-actions.oa-actions--page): at most one
   filled button and a text link, 32px under the header. */
.oa-cta-band__actions {
  align-self: stretch;
  margin-block-start: var(--space-stack-group);
}

.oa-cta-band__principles {
  display: grid;
  gap: var(--space-8) var(--space-10);
  align-self: stretch;
  margin: var(--space-section-head) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .oa-cta-band__principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .oa-cta-band__principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oa-cta-band__principle {
  display: flex;
  align-items: start;
  gap: var(--space-4);
}

/* A 48px tile drawn with a hairline in inverse-on-surface-variant (V-1), icon in inverse-primary. */
.oa-cta-band__icon {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: var(--size-tile-md);
  block-size: var(--size-tile-md);
  border: 1px solid var(--color-inverse-on-surface-variant);
  border-radius: var(--radius-box);
  color: var(--color-inverse-primary);
}

.oa-cta-band__name {
  margin: 0;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-cta-band__desc {
  margin: var(--space-1) 0 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
  color: var(--color-inverse-on-surface-variant);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------
 * FAQ (canonical §10.25, §11 row 1; D-CSN-31): a section header with an h2, then up to six
 * <details> rows of the accordion (.oa-accordion), 48px below.
 * ------------------------------------------------------------------------------------------- */

.oa-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-section-head);
}

.oa-faq__list {
  inline-size: 100%;
  max-inline-size: var(--container-reading);
}

/* ---------------------------------------------------------------------------------------------
 * Pause control (canonical §7.5, §10.2; D-SEM-17, C-4): the 48px outlined icon button that pauses
 * every loop in its region by setting data-motion="paused" on it. Hidden under reduced motion.
 * ------------------------------------------------------------------------------------------- */

.oa-pause {
  --oa-state: 0; /* never inherit a layer from a pressed or hovered container around it */
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-lowest);
  color: var(--color-on-surface-variant);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The layer covers the border box (inset -1px over the 1px hairline), so hover shows no lighter rim. */
.oa-pause::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: var(--z-behind);
  border-radius: inherit;
  background: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-pause:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-pause:active {
  --oa-state: var(--opacity-state-pressed);
}

/* Press shows at once; release fades over short-3 (canonical §7.2). */
.oa-pause:active::before {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .oa-pause {
    display: none;
  }
}

/* ---------------------------------------------------------------------------------------------
 * Print: decoration and motion controls never print (canonical §9).
 * ------------------------------------------------------------------------------------------- */

@media print {
  .oa-shape,
  .oa-cta-band__glow,
  .oa-pause {
    display: none;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/brand-kit.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/brand-kit.css
   Brand kit (unit c-brand-kit).

   Components
   - Mark (.oa-mark): a product mark or the Global University mark drawn inline in its frame, in the
     two inks --color-mark-ink and --color-mark-accent (canonical §1.3, §1.5).
   - Logo lock-up (.oa-lockup): mark + live-text name + optional sub-line, one link home at least
     48px tall, at sizes S, M and Stage (canonical §1.4).
   - Language switcher (.oa-lang): the three-language disclosure and the two-language direct link or
     button (canonical §10.28, §14.1).
   - Appearance (.oa-appearance): "System / Light / Dark" in settings, set on the segmented button of
     segmented.css (canonical §10.28, CLIENT CALL D-CSN-40).
   - Platform strip (.oa-platform-strip): a labeled group of 48px toggle tiles with mark-sm marks,
     the Pause control and "Explore this app: {name}" (canonical §10.27).

   Implements canonical §1.3, §1.4, §1.5, §2.10, §10.0, §10.20, §10.27, §10.28, §13, §14.2, and
   D-BCP-06, D-BCP-07, D-BCP-08, D-BCP-09, D-BCP-10, D-BCP-29, D-CAI-14, D-CSN-23, D-CSN-38,
   D-CSN-39, D-CSN-40, D-ARC-13, D-ARC-22, D-ARC-23, D-ARC-27, D-ARC-28, D-ARC-30, D-ARC-32, C-7,
   V-2, D-COL-05, D-SEM-10, D-SEM-11, D-SEM-15, D-SEM-16.

   Tokens read: --color-mark-accent (the wordmark's full stop; marks read --color-mark-ink and
   --color-mark-accent in their fill attributes), --color-on-surface, --color-on-surface-variant,
   --color-card-outlined-container, --color-outline-variant, --color-primary-container,
   --color-on-primary-container, --color-primary-ink (the chosen tile's edge);
   --size-mark-xs, --size-mark-sm, --size-mark-md, --size-mark-lg, --size-mark-xl, --size-mark-stage,
   --size-touch-target, --size-icon-md, --size-icon-lg; --space-1, --space-1-5, --space-2,
   --space-3; --radius-12px, --radius-box, --radius-full; --z-behind; --font-weight-medium,
   --font-weight-bold; --text-lockup-name-compact, --text-lockup-name, --text-lockup-name-stage,
   --text-label-sm, --text-label-md, --text-label-lg (each with its --line-height,
   --letter-spacing, and --font-weight), --text-body-md and --text-headline-md (size, line height,
   and tracking, at --font-weight-medium); --opacity-state-hover, --opacity-state-pressed;
   --duration-short-3; --ease-standard.
   Context properties read: --color-mark-ink (dark grounds re-point it to --color-on-card-art),
   --color-focus-ring (base.css ring), --oa-state (the state layer).

   Classes
   .oa-mark (+ --xs, --sm, --md (default), --lg, --xl)
   .oa-lockup (+ --s, --m, --stage; __mark, __name (+ --wordmark), __subline)
   .oa-lang (+ --two; __trigger, __current, __list, __option), .oa-theme-switch; documentation only:
   .oa-lang--demo.
     __list is set on .oa-menu and __option on .oa-menu__item (overlay.css draws both); __option
     has no rule of its own and stays as the switcher's hook.
   .oa-appearance (on .oa-segmented)
   .oa-platform-strip (+ __head, __label, __tiles, __tile, __explore)
   States: :hover (pointer devices), :active, :focus-visible and [data-demo-focus] (base.css ring),
   [aria-pressed="true"], [aria-expanded], [hidden], [data-side="top"] on the language list; the
   options' [aria-current="true"] and :disabled are the menu's (overlay.css).

   Relies on: base.css (reset, the ring, .oa-icon and --mirror, .oa-visually-hidden, [hidden]);
   overlay.css (.oa-menu, .oa-menu__item, .oa-menu__label, and .oa-menu__check draw the language
   list and its options); segmented.css (.oa-segmented and __btn under .oa-appearance); link.css
   (.oa-link--standalone for the Explore link); marketing.css (.oa-pause); button.css (.oa-icon-btn
   for the declined theme toggle).
   Breakpoints are literal rem values: sm 40rem (640px), md 48rem (768px). */


/* ---------------------------------------------------------------------------------------------
   1. Mark. An inline <svg> in its frame: viewBox="180 180 720 720" for every product mark,
   "120 120 840 840" for the Global University mark. Components size the frame box and never scale
   the drawing. Fills are written in the markup: fill="var(--color-mark-ink)" and
   fill="var(--color-mark-accent)"; the Games "X" keeps its artwork amber (D-BCP-08).
   data-product never themes a family product. Its one use on a family page is on an endorsed
   brand's own mark or lock-up element: Tamakkan's mark carries data-product="tamakkan" on its
   <svg> (oait.app's platform strip and footer), so its dot keeps the brand's violet; never on a
   family section, row or page (canonical §2.10, §15). The ink follows the ground: a container
   that stays dark in both themes re-points --color-mark-ink to --color-on-card-art (D-BCP-06,
   D-BCP-07, D-ARC-23, D-ARC-30). Never smaller than mark-xs (24px).
   --------------------------------------------------------------------------------------------- */

.oa-mark {
  display: block;
  flex: none;
  inline-size: var(--size-mark-md);
  block-size: var(--size-mark-md);
}

.oa-mark--xs {
  inline-size: var(--size-mark-xs);
  block-size: var(--size-mark-xs);
}

.oa-mark--sm {
  inline-size: var(--size-mark-sm);
  block-size: var(--size-mark-sm);
}

.oa-mark--md {
  inline-size: var(--size-mark-md);
  block-size: var(--size-mark-md);
}

.oa-mark--lg {
  inline-size: var(--size-mark-lg);
  block-size: var(--size-mark-lg);
}

.oa-mark--xl {
  inline-size: var(--size-mark-xl);
  block-size: var(--size-mark-xl);
}


/* ---------------------------------------------------------------------------------------------
   2. Logo lock-up. One link home: the mark, the name (live text, Latin inside <bdi lang="en"
   translate="no">), and an optional sub-line, laid out on a grid so the three parts can be siblings.
   The mark spans every row; the name and the sub-line sit in the middle rows, so a lock-up without
   a sub-line centers its name on the mark. The grid follows the page direction: the mark sits at
   the inline start, at the right in Arabic; never force dir="ltr". The gap is a quarter of the mark
   box. At least 48px tall; the ring follows a 12px corner. A link: no state layer, no underline
   (canonical §1.4, §2.7; D-BCP-09, D-BCP-10, D-ARC-27, D-ARC-28).

   Sizes re-point the local properties:
     S      32px mark, lockup-name-compact (18/24 600), no sub-line       headers below 640px
     M      40px mark, lockup-name (22/28 600), label-sm sub-line         headers from 640px, footers
     Stage  76px mark, lockup-name-stage (38/42 600), 28/36 500 sub-line   the 1920×1080 artboard
   The bare .oa-lockup is the header lock-up: S below 640px, M from 640px. --s, --m and --stage fix
   one size at every width. The name never hides; header actions collapse first.
   --------------------------------------------------------------------------------------------- */

.oa-lockup {
  --oa-lockup-mark: var(--size-mark-sm);
  --oa-lockup-name-size: var(--text-lockup-name-compact);
  --oa-lockup-name-line: var(--text-lockup-name-compact--line-height);
  --oa-lockup-name-tracking: var(--text-lockup-name-compact--letter-spacing);
  --oa-lockup-name-weight: var(--text-lockup-name-compact--font-weight);
  --oa-lockup-sub-display: none;
  --oa-lockup-sub-size: var(--text-label-sm);
  --oa-lockup-sub-line: var(--text-label-sm--line-height);
  --oa-lockup-sub-tracking: var(--text-label-sm--letter-spacing);
  --oa-lockup-sub-weight: var(--text-label-sm--font-weight);
  display: inline-grid;
  flex: none;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr auto auto 1fr;
  align-items: center;
  column-gap: calc(var(--oa-lockup-mark) / 4); /* clear-space rule: a quarter of the mark box */
  box-sizing: border-box;
  min-block-size: var(--size-touch-target);
  border-radius: var(--radius-12px);
  color: var(--color-on-surface);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.oa-lockup__mark {
  display: block;
  grid-column: 1;
  grid-row: 1 / -1;
  inline-size: var(--oa-lockup-mark);
  block-size: var(--oa-lockup-mark);
}

.oa-lockup__name {
  grid-column: 2;
  grid-row: 2;
  font-size: var(--oa-lockup-name-size);
  line-height: var(--oa-lockup-name-line);
  letter-spacing: var(--oa-lockup-name-tracking);
  font-weight: var(--oa-lockup-name-weight);
  white-space: nowrap;
}

/* An endorsed brand's wordmark in the name slot, at the same sizes. Tamakkan: "tamakkan." in
   lowercase at weight 700; the full stop is drawn here in --color-mark-accent, inside the <bdi> so
   it stays at the word's end in Arabic, and it is left out of the accessible name ("." / "").
   Tamakkan's lock-up carries data-product="tamakkan" on its own element (its pages carry it on
   <html> too), so the stop and the mark's dot are violet on any page (canonical §2.10, §15).
   Tracking stays the style's (canonical §1.4, §3.6). */
.oa-lockup__name--wordmark {
  font-weight: var(--font-weight-bold);
}

.oa-lockup__name--wordmark > bdi::after {
  content: ".";
  content: "." / "";
  color: var(--color-mark-accent);
}

.oa-lockup__subline {
  display: var(--oa-lockup-sub-display);
  grid-column: 2;
  grid-row: 3;
  color: var(--color-on-surface-variant);
  font-size: var(--oa-lockup-sub-size);
  line-height: var(--oa-lockup-sub-line);
  letter-spacing: var(--oa-lockup-sub-tracking);
  font-weight: var(--oa-lockup-sub-weight);
  white-space: nowrap;
}

/* The header lock-up grows to M from 640px (D-ARC-28). */
@media (min-width: 40rem) {
  .oa-lockup {
    --oa-lockup-mark: var(--size-mark-md);
    --oa-lockup-name-size: var(--text-lockup-name);
    --oa-lockup-name-line: var(--text-lockup-name--line-height);
    --oa-lockup-name-tracking: var(--text-lockup-name--letter-spacing);
    --oa-lockup-name-weight: var(--text-lockup-name--font-weight);
    --oa-lockup-sub-display: block;
  }
}

/* S at every width. */
.oa-lockup--s {
  --oa-lockup-mark: var(--size-mark-sm);
  --oa-lockup-name-size: var(--text-lockup-name-compact);
  --oa-lockup-name-line: var(--text-lockup-name-compact--line-height);
  --oa-lockup-name-tracking: var(--text-lockup-name-compact--letter-spacing);
  --oa-lockup-name-weight: var(--text-lockup-name-compact--font-weight);
  --oa-lockup-sub-display: none;
}

/* M at every width: footers. */
.oa-lockup--m {
  --oa-lockup-mark: var(--size-mark-md);
  --oa-lockup-name-size: var(--text-lockup-name);
  --oa-lockup-name-line: var(--text-lockup-name--line-height);
  --oa-lockup-name-tracking: var(--text-lockup-name--letter-spacing);
  --oa-lockup-name-weight: var(--text-lockup-name--font-weight);
  --oa-lockup-sub-display: block;
}

/* Stage: the 1920×1080 artboard, at artboard pixels. No type style holds the 28/36 500 sub-line, so
   it takes headline-md (28/36, its −0.01em tracking) at weight 500, as text-headline-md font-medium
   does in Tailwind (canonical §1.4). */
.oa-lockup--stage {
  --oa-lockup-mark: var(--size-mark-stage);
  --oa-lockup-name-size: var(--text-lockup-name-stage);
  --oa-lockup-name-line: var(--text-lockup-name-stage--line-height);
  --oa-lockup-name-tracking: var(--text-lockup-name-stage--letter-spacing);
  --oa-lockup-name-weight: var(--text-lockup-name-stage--font-weight);
  --oa-lockup-sub-display: block;
  --oa-lockup-sub-size: var(--text-headline-md);
  --oa-lockup-sub-line: var(--text-headline-md--line-height);
  --oa-lockup-sub-tracking: var(--text-headline-md--letter-spacing);
  --oa-lockup-sub-weight: var(--font-weight-medium);
}

/* Forced colors: every mark turns one color (canonical §13; brand delivery form). */
@media (forced-colors: active) {
  :is(.oa-mark, .oa-lockup__mark) :is(path, rect, polygon, circle) {
    fill: CanvasText;
  }
}


/* ---------------------------------------------------------------------------------------------
   3. Language switcher (canonical §10.28, §10.20, §14.1; D-BCP-29, D-CSN-39, C-7).
   Three or more languages: <div class="oa-lang"> holds a disclosure button (.oa-lang__trigger:
   translate + the current language in its own script + arrow_drop_down) and a list of every
   endonym (.oa-lang__list, links with hreflang in URL products, buttons in cookie products). Not an
   ARIA menu: Tab moves through the options, Escape closes. Below 768px the trigger is a 48×48
   icon-only button with a 24px translate; beside its label the icon is 20px.
   Two languages: .oa-lang.oa-lang--two is the link or button itself: translate + the other
   language's endonym (lang-tagged) + a visually hidden "Switch to Arabic" in the page language.
   Both are 48px pills in label-md on on-surface with the state layer, which covers the 1px border.
   The list composes the menu: class="oa-lang__list oa-menu", options
   class="oa-lang__option oa-menu__item" with .oa-menu__label and .oa-menu__check, so the two
   lists cannot drift. overlay.css draws the surface (surface-raised, rounded-box, elevation-3,
   200–320px), the 48px body-lg rows, the 20px primary-ink check of the current option (shown on
   aria-current="true"), the states, and the motion; this file only places the list: under the
   trigger at its inline end, 4px apart, or above it with data-side="top" (footers).
   --------------------------------------------------------------------------------------------- */

.oa-lang {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.oa-lang__trigger,
.oa-lang--two,
.oa-theme-switch {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-1-5);
  box-sizing: border-box;
  min-inline-size: var(--size-touch-target);
  min-block-size: var(--size-touch-target);
  margin: 0;
  padding-block: 0;
  padding-inline: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-on-surface);
  font-family: inherit;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none; /* Safari on iOS reads only the prefixed property */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.oa-lang--two,
.oa-theme-switch {
  gap: var(--space-2);
}

.oa-lang__trigger::before,
.oa-lang--two::before,
.oa-theme-switch::before {
  content: "";
  position: absolute;
  inset: -1px; /* the layer covers the 1px border box */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-lang__trigger:hover,
  .oa-lang--two:hover,
  .oa-theme-switch:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-lang__trigger:active,
.oa-lang--two:active,
.oa-theme-switch:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-lang__trigger:active::before,
.oa-lang--two:active::before,
.oa-theme-switch:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

/* The icons beside a label are 20px: translate first, arrow_drop_down last (C-7, D-ARC-22). */
.oa-lang__trigger > .oa-icon,
.oa-lang--two > .oa-icon,
.oa-theme-switch > .oa-icon {
  font-size: var(--size-icon-md);
}

/* Below 768px the three-language trigger is icon-only: 48×48, a 24px translate. Its name stays
   "Language: English" (aria-label), so the hidden label costs nothing (canonical §10.28). */
@media (width < 48rem) {
  .oa-lang__trigger {
    inline-size: var(--size-touch-target);
    padding-inline: 0;
  }

  .oa-lang__trigger > :not(:first-child) {
    display: none;
  }

  .oa-lang__trigger > .oa-icon:first-child {
    font-size: var(--size-icon-lg);
  }
}

/* In a site header both switchers are icons at every width (D-CSN-57): 48×48 with a 24px translate,
   like the theme toggle and the menu button beside them. The three-language trigger is named by its
   aria-label. The two-language link keeps its words for screen readers: its endonym and "Switch to
   Arabic" are hidden from sight, not removed. In a footer and in the menu sheet they keep their
   labels.
   The console's top app bar does the same (D-CSN-58). */
.oa-site-header .oa-lang__trigger,
.oa-site-header .oa-lang--two,
.oa-app-shell--drawer > .oa-top-app-bar .oa-lang__trigger,
.oa-app-shell--drawer > .oa-top-app-bar .oa-lang--two {
  inline-size: var(--size-touch-target);
  padding-inline: 0;
}

:is(.oa-site-header, .oa-app-shell--drawer > .oa-top-app-bar) .oa-lang__trigger > :not(:first-child) {
  display: none;
}

:is(.oa-site-header, .oa-app-shell--drawer > .oa-top-app-bar) .oa-lang--two > :not(.oa-icon) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:is(.oa-site-header, .oa-app-shell--drawer > .oa-top-app-bar) :is(.oa-lang__trigger, .oa-lang--two) > .oa-icon:first-child {
  font-size: var(--size-icon-lg);
}

/* The footer's theme button (D-CSN-57): the language switcher's pill with dark_mode and the words
   "Dark theme". It is the full form of the header's theme toggle, for footers of products that ship
   a dark theme. On: the family's selected look and the filled glyph (D-CAI-14); the words never
   change. */
.oa-theme-switch[aria-pressed="true"] {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-theme-switch[aria-pressed="true"] > .oa-icon {
  font-variation-settings: "FILL" 1;
}

/* The list's placement: under the trigger, aligned to its inline end, 4px apart (canonical §10.20).
   .oa-menu (overlay.css, earlier in the cascade) draws everything else: the surface, the layer,
   the rows, the check, and the enter and exit motion. The options carry .oa-lang__option only as the
   switcher's hook; .oa-menu__item draws them, and a disabled option (while a cookie product saves
   the choice) takes the menu's disabled recipe. */
.oa-lang__list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  margin-block-start: var(--space-1);
}

/* Footers and the bottom of a window: the list opens upward. */
.oa-lang__list[data-side="top"] {
  inset-block: auto 100%;
  margin-block: 0 var(--space-1);
}

/* Documentation only, never in a product: shows an open list in the page flow, under its trigger
   (or above it with data-side="top"), so the kitchen sink can show it without overlapping. */
.oa-lang--demo {
  flex-direction: column;
  align-items: flex-end;
}

.oa-lang--demo:has(> .oa-lang__list[data-side="top"]) {
  flex-direction: column-reverse;
}

.oa-lang--demo > .oa-lang__list {
  position: static;
}


/* ---------------------------------------------------------------------------------------------
   4. Appearance (canonical §10.28, §10.8; CLIENT CALL D-CSN-40). Set on the segmented group:
   <fieldset class="oa-segmented oa-segmented--stack oa-appearance" aria-labelledby="…">, three
   segments (value="system", "light", "dark") with aria-pressed. Below 640px the three segments
   stack in a column (segmented.css --stack), because three labels side by side do not fit a 320px
   window in any of the three languages ("Système, Clair, Sombre" lost 41px, the English group 12px;
   canonical §10.8: labels never wrap, they stack); from 640px the group hugs its labels in a row.
   Everything else is segmented.css.
   --------------------------------------------------------------------------------------------- */

.oa-segmented.oa-appearance {
  inline-size: 100%;
}

@media (min-width: 40rem) {
  .oa-segmented.oa-appearance {
    inline-size: fit-content;
  }
}


/* ---------------------------------------------------------------------------------------------
   5. Platform strip (canonical §10.27; D-CSN-38, D-ARC-23, V-2). A role="group" named by its
   visible label ("Our platforms"); the Pause control (.oa-pause, marketing.css) beside the label
   when the strip drives a moving card stack; 48×48 toggle tiles that wrap and center 8px apart;
   below them the standalone link "Explore this app: {name}" with north_east, in label-lg.
   Tiles: rounded-box, card-outlined-container with a 1px outline-variant edge (the mark identifies
   the tile, V-2), the state layer of on-surface-variant over the border box; chosen
   (aria-pressed="true"): primary-container with the family's selected edge, a 2px primary-ink line
   drawn inset (no layout shift; D-ARC-32), the forced-colors Highlight edge below. Each holds a
   mark-sm (32px) mark and is named by aria-label.
   --------------------------------------------------------------------------------------------- */

.oa-platform-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.oa-platform-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.oa-platform-strip__label {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
}

.oa-platform-strip__tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.oa-platform-strip__tile {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  place-items: center;
  box-sizing: border-box;
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-box);
  background-color: var(--color-card-outlined-container);
  color: var(--color-on-surface-variant);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-short-3) var(--ease-standard),
    border-color var(--duration-short-3) var(--ease-standard),
    box-shadow var(--duration-short-3) var(--ease-standard);
}

.oa-platform-strip__tile::before {
  content: "";
  position: absolute;
  inset: -1px; /* the layer covers the 1px border box */
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-platform-strip__tile:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-platform-strip__tile:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-platform-strip__tile:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

/* Chosen: the fill plus the selected edge, the cue that is not color alone (canonical §10.0
   "Selected", §13): the fill is 1.23:1 against the light page, the edge 5.50:1 on the fill. */
.oa-platform-strip__tile[aria-pressed="true"] {
  border-color: transparent;
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  box-shadow: inset 0 0 0 2px var(--color-primary-ink);
}

.oa-platform-strip__tile > .oa-mark {
  inline-size: var(--size-mark-sm);
  block-size: var(--size-mark-sm);
}

/* The Explore link is a standalone link (link.css) set in label-lg. */
.oa-platform-strip__explore {
  font-size: var(--text-label-lg);
  line-height: var(--text-label-lg--line-height);
  letter-spacing: var(--text-label-lg--letter-spacing);
  font-weight: var(--text-label-lg--font-weight);
}

/* Forced colors drop the fill and the inset edge (box-shadow): the chosen tile keeps a 2px
   Highlight border. */
@media (forced-colors: active) {
  .oa-platform-strip__tile[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
}


/* ---------------------------------------------------------------------------------------------
   reference/css/product.css
   --------------------------------------------------------------------------------------------- */

/* OAIT Design System 2.1.0 · reference/css/product.css
   Product signature components (unit c-product). Product components keep to their product: the
   ID card and the QR pass are Global ID's, the job card is Global Jobs', the game tiles and the
   stage are Global Games', the result card and the HBDI result are Tamakkan's. The passport card
   and its stack are a family illustration (canonical §9, §15).

   Components
   - ID card (.oa-id-card): Global ID's credential. English front, Arabic back, the flip, the eight
     person types through data-person-type, the side through data-side, flat faces for print and
     side-by-side views (--flat), square printed CR80 faces.
   - Platform passport card (.oa-passport-card) and the card stack (.oa-card-stack): one card per
     product (or a sample person), the fanned stack with its swap, float, sheen, seal, tilt and glare.
   - QR pass (.oa-qr-pass): the scan pass on its product panel; ready, folded (--folded), loading
     (aria-busy) and failed; the live "Ready to scan" dot, breathing corners, the 30-second ring.
   - Job card (.oa-job-card): parts added to the shared outlined clickable card (.oa-card).
   - Game tiles: the passport score (.oa-points), the leaderboard (.oa-leaderboard) of rank rows
     (.oa-rank-row), the booth card (.oa-booth-card) on the shared accordion.
   - Stage (.oa-stage): the 1920×1080 projector artboard, its header row and scenes.
   - Result card (.oa-result-card) and the HBDI quadrant result (.oa-hbdi): Tamakkan, lettered
     quadrants through data-quadrant.

   Implements canonical §15, §10.30, §9 (platform passport card, product-only illustration), §5.4,
   §6.1, §7.4–§7.8, §2.8, §2.9, §2.11, §3.5, §3.6, §11 (templates 3 and 11), §14.2, and D-CSN-42,
   D-CSN-43, D-CSN-44, D-CSN-45, D-CSN-46, D-CSN-47, D-BCP-38, D-BCP-39, D-COL-18, D-COL-19,
   D-COL-20, D-COL-21, D-SEM-06, D-SEM-09, D-SEM-18, D-SEM-20, D-SEM-21, D-SEM-22, D-TYP-12,
   D-TYP-13, D-LAY-19, D-ARC-12, D-ARC-16, D-ARC-17, D-ARC-20, D-ARC-31, C-9, V-3, V-4.
   CLIENT CALLS: D-CSN-43 (one card geometry: 5.5cqw corners, shadow-art, family-color seal) and
   D-SEM-18 (the My ID card is calm: no float, no seal turn, the sheen once on appearing and after
   each flip) are applied as the defaults.

   Tokens read: --color-cat-<hue>-from, -mid, -to, --color-cat-<hue>-container,
   --color-on-cat-<hue>-container (orange, blue, green, plum, teal, indigo, burgundy, slate);
   --color-passport-security-*, -games-*, -jobs-*, -tamakkan-* (from, mid, to),
   --color-on-passport-jobs, --color-on-card-art; --color-surface, --color-on-surface,
   --color-on-surface-variant, --color-surface-container-low, --color-surface-container-high,
   --color-card-outlined-container, --color-outline-variant, --color-primary, --color-on-primary,
   --color-primary-container, --color-on-primary-container, --color-primary-ink,
   --color-success, --color-tertiary, --color-pastel-lavender, --color-pastel-mint,
   --color-pastel-sand, --color-on-pastel-*, --color-chart-2, -3, -5, -6, --color-focus-ring;
   --font-mono, --font-weight-medium, --font-weight-semibold, --font-weight-bold; the type styles
   hero-lg, display-md, display-sm, headline-md, title-lg, title-md, title-sm, body-lg, body-md,
   body-sm, label-md, label-sm, numeral-lg, numeral-md, code-sm, eyebrow and
   display-lg's tracking (each with its companions); --radius-full, --radius-chip, --radius-12px,
   --radius-box, --radius-28px, --radius-card, --radius-hero; --shadow-art, --shadow-elevation-1;
   --space-*; --size-touch-target, --size-chip-sm, --size-tile-sm, --size-list-row-two-line,
   --size-icon-xs, --size-icon-xl, --size-icon-3xl, --size-stage-width, --size-stage-height;
   --container-measure; --z-behind;
   --opacity-state-hover, --opacity-state-pressed; --duration-short-3, --duration-medium-2,
   --duration-extra-long-1, --duration-extra-long-3; --ease-standard, --ease-emphasized,
   --ease-spring; --animate-sheen, --animate-seal, --animate-float, --animate-live, --animate-breathe.

   Context properties read: --oa-state (the flip button's state layer); this file re-points
   --color-focus-ring and --oa-link on the QR pass panel (on-card-art) and --color-focus-ring on
   passport art (on-card-art; on-passport-jobs on the gold card).
   Component-local properties: --oa-id-card-from, -mid, -to, -back, -back-ink, -radius;
   --oa-passport-card-from, -mid, -to, -ink; --oa-card-stack-dir, -tilt-x, -tilt-y, -glare,
   -glare-x, -glare-y (the last five written by script); --oa-qr-pass-used (written by script);
   --oa-stage-scale (written by script where the browser cannot divide lengths);
   --oa-hbdi-fill, -ink, -mark.

   Classes: .oa-id-card (+ --flat; __inner, __face, __face--back, __flip, __top, __tile, __brand,
   __eyebrow, __place, __contactless, __chip, __kind, __middle, __photo, __identity, __name, __role,
   __affiliation, __unit, __program, __code, __bottom, __fact, __label, __number, __found, __seal;
   person types through data-person-type, the side through data-side="en|ar"),
   .oa-passport-card (+ --id, --security, --games, --tasks, --events, --tests, --jobs, --tamakkan;
   data-person-type for a sample person; __top, __tile, __brand, __eyebrow, __place, __contactless,
   __chip, __middle, __mark, __initials, __identity, __name, __category, __bottom, __fact, __label,
   __value, __seal, __glare), .oa-card-stack (+ __visual, __tilt, __controls; cards placed through
   data-place="front|next|previous|hidden"), .oa-qr-pass (+ --folded; __header, __status, __dot,
   __frame, __corner, __code, __matrix, __dots, __finder, __eye, __mark, __person, __name, __meta,
   __bar, __ring, __caption, __problem, __problem-text, __tile, __text, __title, __body; loading
   through aria-busy="true"), .oa-job-card (+ __company, __verified, __meta, __salary, __unit),
   .oa-points (+ __header, __heading, __title, __meta, __score, __value, __unit, __visits),
   .oa-leaderboard (+ __header, __title, __note, __list), .oa-rank-row (+ __rank, __body, __name,
   __bar, __score, __value, __unit), .oa-booth-card (+ __summary, __text, __name, __meta, __panel),
   .oa-stage (+ --preview; __artboard, __header, __event, __status, __live, __live-dot, __scene,
   __title, __lead), .oa-result-card (+ __title, __list, __row, __rank, __content, __name, __desc,
   __score), .oa-hbdi (+ __title, __badge, __layout, __radar, __grid, __shape, __point, __axis,
   __scores, __score, __key, __text, __name, __sub, __value, __subtitle, __majors, __major,
   __major-name, __chip, __reason;
   quadrants through data-quadrant="a|b|c|d").

   Relies on base.css (.oa-icon and its sizes, .oa-visually-hidden, the focus ring, [data-demo-focus],
   [data-motion="paused"], the reduced-motion switch), card.css (.oa-card, .oa-card__header,
   __title, __actions, __footer), link.css (.oa-title-link--stretched, .oa-link--standalone),
   button.css (.oa-btn, .oa-icon-btn), chip.css (.oa-status-chip, .oa-inline-status),
   avatar-badge.css (.oa-avatar), feedback.css (.oa-progress, .oa-banner), disclosure.css
   (.oa-accordion), list.css (.oa-kv), marketing.css (.oa-pause, .oa-stat) and brand-kit.css
   (.oa-lockup--stage).

   Card art sizes are container-query constants (cqw of the card's own width), not tokens: DTCG and
   design tools reject container units (D-SEM-06, D-TYP-13, D-LAY-19). Raw values here are those
   constants, the canonical component constants (the 236px code tile, the 22px ring, 3px corners,
   the 88px stage header row) and the art opacities the card anatomy names.
   Breakpoints are literal: sm 40rem (640px), lg 64rem (1024px). */


/* ---------------------------------------------------------------------------------------------
   1. Person types. Global ID binds the eight categorical hues to person types; any product that
   shows a person's type uses them, always with the type's word and icon (D-COL-18). The palette
   belongs to the ID card; a passport card showing a sample person maps it (section 4).
   Student is the default.
   --------------------------------------------------------------------------------------------- */

.oa-id-card,
:is(.oa-id-card, .oa-passport-card)[data-person-type="student"] {
  --oa-id-card-from: var(--color-cat-orange-from);
  --oa-id-card-mid: var(--color-cat-orange-mid);
  --oa-id-card-to: var(--color-cat-orange-to);
  --oa-id-card-back: var(--color-cat-orange-container);
  --oa-id-card-back-ink: var(--color-on-cat-orange-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="faculty"] {
  --oa-id-card-from: var(--color-cat-blue-from);
  --oa-id-card-mid: var(--color-cat-blue-mid);
  --oa-id-card-to: var(--color-cat-blue-to);
  --oa-id-card-back: var(--color-cat-blue-container);
  --oa-id-card-back-ink: var(--color-on-cat-blue-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="staff"] {
  --oa-id-card-from: var(--color-cat-green-from);
  --oa-id-card-mid: var(--color-cat-green-mid);
  --oa-id-card-to: var(--color-cat-green-to);
  --oa-id-card-back: var(--color-cat-green-container);
  --oa-id-card-back-ink: var(--color-on-cat-green-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="administrator"] {
  --oa-id-card-from: var(--color-cat-plum-from);
  --oa-id-card-mid: var(--color-cat-plum-mid);
  --oa-id-card-to: var(--color-cat-plum-to);
  --oa-id-card-back: var(--color-cat-plum-container);
  --oa-id-card-back-ink: var(--color-on-cat-plum-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="security"] {
  --oa-id-card-from: var(--color-cat-teal-from);
  --oa-id-card-mid: var(--color-cat-teal-mid);
  --oa-id-card-to: var(--color-cat-teal-to);
  --oa-id-card-back: var(--color-cat-teal-container);
  --oa-id-card-back-ink: var(--color-on-cat-teal-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="guest"] {
  --oa-id-card-from: var(--color-cat-indigo-from);
  --oa-id-card-mid: var(--color-cat-indigo-mid);
  --oa-id-card-to: var(--color-cat-indigo-to);
  --oa-id-card-back: var(--color-cat-indigo-container);
  --oa-id-card-back-ink: var(--color-on-cat-indigo-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="alumni"] {
  --oa-id-card-from: var(--color-cat-burgundy-from);
  --oa-id-card-mid: var(--color-cat-burgundy-mid);
  --oa-id-card-to: var(--color-cat-burgundy-to);
  --oa-id-card-back: var(--color-cat-burgundy-container);
  --oa-id-card-back-ink: var(--color-on-cat-burgundy-container);
}

:is(.oa-id-card, .oa-passport-card)[data-person-type="contractor"] {
  --oa-id-card-from: var(--color-cat-slate-from);
  --oa-id-card-mid: var(--color-cat-slate-mid);
  --oa-id-card-to: var(--color-cat-slate-to);
  --oa-id-card-back: var(--color-cat-slate-container);
  --oa-id-card-back-ink: var(--color-on-cat-slate-container);
}


/* ---------------------------------------------------------------------------------------------
   2. ID card (Global ID's credential; D-CSN-43, D-SEM-06, D-SEM-18, D-SEM-20). The card is its own
   inline-size container: every interior size is a cqw of its width. Aspect 1.586 (CR80), 5.5cqw
   corners on screen, shadow-art, a 1px transparent edge for forced colors (ID-1.09). The inner
   box turns in 3D under perspective(1600px): the English front (dir="ltr" lang="en" on every page)
   and the Arabic back (dir="rtl" lang="ar"), pre-turned. data-side="ar" turns it over extra-long-3
   (900ms) on the spring easing; under reduced motion the faces swap at once (base.css). The side
   is state: script swaps aria-hidden on the faces at the same moment, never on transitionend.
   --------------------------------------------------------------------------------------------- */

.oa-id-card {
  --oa-id-card-radius: 5.5cqw; /* component constant (D-SEM-06), not a token */
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  inline-size: 100%;
  perspective: 1600px;
  -webkit-text-size-adjust: 100%; /* card art scales with its card, not with text (D-APP-18) */
  text-size-adjust: 100%;
}

.oa-id-card__inner {
  position: relative;
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  transition: transform var(--duration-extra-long-3) var(--ease-spring);
}

.oa-id-card[data-side="ar"] > .oa-id-card__inner {
  transform: rotateY(180deg);
}

/* The face: 135° person-type gradient with stops at 0 / 58 / 100% (theme-invariant card art),
   6cqw padding, on-card-art text, three rows spread top to bottom. */
.oa-id-card__face {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 6cqw;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--oa-id-card-radius);
  background-color: var(--oa-id-card-mid);
  background-image: linear-gradient(135deg, var(--oa-id-card-from) 0%, var(--oa-id-card-mid) 58%, var(--oa-id-card-to) 100%);
  box-shadow: var(--shadow-art);
  color: var(--color-on-card-art);
  text-align: start;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* The back: the type's container tint and its ink (tokens.md: "back of the card"); it follows the
   theme through those two tokens, while the front gradient never changes (canonical §2.9). */
.oa-id-card__face--back {
  transform: rotateY(180deg);
  background-color: var(--oa-id-card-back);
  background-image: none;
  color: var(--oa-id-card-back-ink);
  line-height: 1.35;
}

/* Guilloche rings in the text color (::before) and the band of light (::after), under the
   content inside the isolated face. Shared with the passport card (section 4). */
.oa-id-card__face::before,
.oa-passport-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  background-image:
    repeating-radial-gradient(circle at 85% 15%, currentColor 0 1px, transparent 1px 9px),
    repeating-radial-gradient(circle at 10% 110%, currentColor 0 1px, transparent 1px 13px);
  opacity: 0.08;
  pointer-events: none;
}

.oa-id-card__face::after,
.oa-passport-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  background-image: linear-gradient(110deg, transparent 35%, var(--color-on-card-art) 48%, transparent 60%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  background-position: -60% 0; /* the resting place, off the card: the base style is the rest (canonical §7.4) */
  opacity: 0.28;
  pointer-events: none;
}

.oa-id-card__face--back::after {
  background-image: linear-gradient(250deg, transparent 35%, var(--color-on-card-art) 48%, transparent 60%);
}

/* Calm on functional screens (CLIENT CALL D-SEM-18): no float, no seal turn; the sheen crosses
   once when the card appears and once after each flip. The face that turns to the person gets the
   animation at that moment, so it runs again; one sweep is 3.85s of a 7s cycle (oa-sheen). */
.oa-id-card:not([data-side="ar"]) .oa-id-card__face:not(.oa-id-card__face--back)::after,
.oa-id-card[data-side="ar"] .oa-id-card__face--back::after {
  animation: var(--animate-sheen);
  animation-iteration-count: 1;
}

/* The flip: one transparent button laid over the card (not its parent, so the face that shows is
   read), named by the side it would show: "Show the Arabic side" / "Show the English side". The
   ring is the page's ring, 2px outside the card's corners; the 8% / 12% layer of the side's ink. */
.oa-id-card__flip {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--oa-id-card-radius);
  background: transparent;
  color: var(--color-on-card-art);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oa-id-card[data-side="ar"] > .oa-id-card__flip {
  color: var(--oa-id-card-back-ink);
}

.oa-id-card__flip::before {
  content: "";
  position: absolute;
  inset: -1px; /* over the 1px transparent edge as well: the layer covers the border box */
  border-radius: inherit;
  background-color: currentColor;
  opacity: var(--oa-state, 0);
  pointer-events: none;
  transition: opacity var(--duration-short-3) var(--ease-standard);
}

@media (hover: hover) {
  .oa-id-card__flip:hover {
    --oa-state: var(--opacity-state-hover);
  }
}

.oa-id-card__flip:active {
  --oa-state: var(--opacity-state-pressed);
}

.oa-id-card__flip:active::before {
  transition-duration: 0ms; /* lint-ok: a press shows at once; only hover and release fade (canonical §2.7, §7.2) */
}

/* Flat: one face, facing the page, read in full. Two flat cards draw both sides next to each other
   (the ID office's print page, documentation); a printed face is a flat card. */
.oa-id-card--flat {
  perspective: none;
}

.oa-id-card--flat > .oa-id-card__inner {
  transform-style: flat;
}

.oa-id-card--flat .oa-id-card__face--back {
  transform: none;
}


/* ---------------------------------------------------------------------------------------------
   3. Card-art parts, shared by the ID card and the passport card (D-CSN-43 card anatomy,
   D-BCP-38). Top row: the white 9cqw tile with the University mark (elevation-1), the eyebrow and
   its line, contactless, the gold chip. Middle row: photo, initials or product mark, then name and
   pill. Bottom row: two facts and the 12cqw seal. Text smaller than WCAG large text sits on a
   from-color backing at 40% (white then reaches 5.38:1 on the lightest stop of every person type;
   white/20 measured 3.97:1 on the student card, so the pills take the backing too).
   --------------------------------------------------------------------------------------------- */

.oa-id-card__top,
.oa-passport-card__top {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  min-inline-size: 0;
}

.oa-id-card__tile,
.oa-passport-card__tile {
  display: grid;
  flex: none;
  place-items: center;
  box-sizing: border-box;
  inline-size: 9cqw;
  block-size: 9cqw;
  border: 1px solid transparent;
  border-radius: 2.4cqw;
  background-color: var(--color-on-card-art);
  box-shadow: var(--shadow-elevation-1);
}

/* The University mark from its light master: gray and orange on the white tile in every theme
   (the ink follows the ground, canonical §1.3). */
.oa-id-card__tile > img,
.oa-passport-card__tile > img {
  inline-size: 6.2cqw;
  block-size: 6.2cqw;
}

.oa-id-card__brand,
.oa-passport-card__brand {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.4cqw;
  min-inline-size: 0;
}

.oa-id-card__eyebrow,
.oa-passport-card__eyebrow {
  font-size: 2.5cqw;
  line-height: 1.2;
  letter-spacing: var(--text-eyebrow--letter-spacing);
  font-weight: var(--text-eyebrow--font-weight);
  text-transform: uppercase;
}

.oa-id-card__eyebrow:lang(ar),
.oa-passport-card__eyebrow:lang(ar) {
  text-transform: none;
}

.oa-id-card__place,
.oa-passport-card__place {
  font-size: 2.1cqw;
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
  opacity: 0.8; /* the sub-line at 80% (card anatomy); it sits on the darkest stop */
}

.oa-id-card__contactless,
.oa-passport-card__contactless {
  font-size: 5cqw;
  opacity: 0.8;
}

/* The gold contact chip draws with the gold passport stops (D-BCP-38). */
.oa-id-card__chip,
.oa-passport-card__chip {
  flex: none;
  box-sizing: border-box;
  inline-size: 8.5cqw;
  block-size: 6.5cqw;
  border: 1px solid var(--color-passport-jobs-to);
  border-radius: 1.4cqw;
  background-image: linear-gradient(135deg, var(--color-passport-jobs-from) 0%, var(--color-passport-jobs-mid) 58%, var(--color-passport-jobs-to) 100%);
}

.oa-id-card__middle,
.oa-passport-card__middle {
  display: flex;
  align-items: center;
  gap: 4cqw;
  min-inline-size: 0;
}

/* The photo tile: the approved photo or the initials (canonical §9: 3cqw corners). */
.oa-id-card__photo,
.oa-passport-card__initials {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 19cqw;
  block-size: 19cqw;
  overflow: hidden;
  border-radius: 3cqw;
  color: var(--oa-id-card-from);
  font-size: 7.3cqw;
  line-height: 1;
  font-weight: var(--font-weight-bold);
}

/* The passport card's initials tile keeps the illustration's 4cqw corners (D-CSN-43 anatomy). */
.oa-passport-card__initials {
  border-radius: 4cqw;
}

.oa-id-card__photo::before,
.oa-passport-card__initials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  background-color: var(--color-on-card-art);
  opacity: 0.95;
}

.oa-id-card__photo > img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.oa-passport-card__mark {
  flex: none;
  inline-size: 19cqw;
  block-size: 19cqw;
}

.oa-id-card__identity,
.oa-passport-card__identity {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2cqw;
  min-inline-size: 0;
}

.oa-id-card__name,
.oa-passport-card__name {
  font-size: 6.6cqw;
  line-height: 1.1;
  letter-spacing: var(--text-display-lg--letter-spacing); /* −0.02em, the anatomy's name tracking */
  font-weight: var(--font-weight-bold);
  overflow-wrap: anywhere;
}

/* Small text on the gradient: the role pill, the passport's category pill, the affiliation lines
   and the fact labels sit on the from-color backing at 40%. */
.oa-id-card__role,
.oa-passport-card__category,
.oa-id-card__affiliation,
.oa-id-card__label,
.oa-passport-card__label {
  position: relative;
  isolation: isolate;
}

.oa-id-card__role::before,
.oa-passport-card__category::before,
.oa-id-card__affiliation::before,
.oa-id-card__label::before,
.oa-passport-card__label::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: inherit;
  background-color: var(--oa-id-card-from);
  opacity: 0.4;
}

.oa-passport-card__category::before,
.oa-passport-card__label::before {
  background-color: var(--oa-passport-card-from);
}

.oa-id-card__role,
.oa-passport-card__category {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  box-sizing: border-box;
  min-block-size: 5.3cqw;
  padding-block: 0.6cqw;
  padding-inline: 2.4cqw;
  border-radius: var(--radius-full);
  font-size: 2.8cqw;
  line-height: 1.2;
  font-weight: var(--font-weight-semibold);
}

.oa-id-card__role > .oa-icon {
  font-size: 3.2cqw;
}

.oa-id-card__affiliation {
  display: flex;
  flex-direction: column;
  gap: 0.4cqw;
  margin-inline-start: -1.2cqw;
  padding-block: 0.6cqw;
  padding-inline: 1.2cqw;
  border-radius: 1.2cqw;
}

.oa-id-card__unit {
  font-size: 2.5cqw;
  line-height: 1.25;
  font-weight: var(--font-weight-semibold);
}

.oa-id-card__program {
  font-size: 2.3cqw;
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}

.oa-id-card__bottom,
.oa-passport-card__bottom {
  display: flex;
  align-items: flex-end;
  gap: 6cqw;
  min-inline-size: 0;
}

.oa-id-card__fact,
.oa-passport-card__fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6cqw;
  min-inline-size: 0;
}

.oa-id-card__label,
.oa-passport-card__label {
  margin-inline-start: -1cqw;
  padding-block: 0.2cqw;
  padding-inline: 1cqw;
  border-radius: 0.9cqw;
  font-size: 2.2cqw;
  line-height: 1.2;
  letter-spacing: var(--text-eyebrow--letter-spacing);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.oa-id-card__label:lang(ar),
.oa-passport-card__label:lang(ar) {
  text-transform: none;
}

/* Mono values keep their cqw size and +0.06em (D-TYP-13); always inside <bdi dir="ltr">. */
.oa-id-card__number,
.oa-passport-card__value {
  font-family: var(--font-mono);
  font-size: 3.4cqw;
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

/* The holographic seal: 12cqw, a ring in family card-art colors, a white disc at 76% and the
   University mark at 62%. It turns (animate-seal) only in marketing hero art (the card stack).
   The landing's seal tints (gold, mint, blue, peach) have no theme-invariant tokens, so the ring
   draws the gold chip stop and the categorical -to stops, which never change with the theme
   (canonical §2.9); seal tokens are a 1.1 request. */
.oa-id-card__seal,
.oa-passport-card__seal {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 12cqw;
  block-size: 12cqw;
  margin-inline-start: auto;
}

.oa-id-card__seal::before,
.oa-passport-card__seal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  border-radius: var(--radius-full);
  background-image: conic-gradient(var(--color-cat-orange-to), var(--color-passport-jobs-from), var(--color-cat-green-to), var(--color-cat-blue-to), var(--color-cat-plum-to), var(--color-cat-orange-to));
}

.oa-id-card__seal::after,
.oa-passport-card__seal::after {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: var(--z-behind);
  border-radius: var(--radius-full);
  background-color: var(--color-on-card-art);
}

.oa-id-card__seal > img,
.oa-passport-card__seal > img {
  inline-size: 62%;
  block-size: 62%;
}

/* The Arabic back (Global ID's credential): names may take Kufi 800 there (canonical §3.3). */
.oa-id-card__face--back .oa-id-card__eyebrow {
  font-size: 3.1cqw;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 800; /* art exception: Kufi 800 on the card back (canonical §3.3) */
}

.oa-id-card__face--back .oa-id-card__name {
  font-size: 5.2cqw;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 800; /* art exception: Kufi 800 on the card back (canonical §3.3) */
}

/* On the back the role pill is the type's dark from-color with on-card-art text, so it reads in
   both themes; the kind pill is outlined in the back's ink. */
.oa-id-card__face--back .oa-id-card__role {
  background-color: var(--oa-id-card-from);
  color: var(--color-on-card-art);
}

.oa-id-card__face--back .oa-id-card__role::before,
.oa-id-card__face--back .oa-id-card__affiliation::before,
.oa-id-card__face--back .oa-id-card__label::before {
  content: none;
}

.oa-id-card__kind {
  display: inline-flex;
  flex: none;
  align-items: center;
  box-sizing: border-box;
  min-block-size: 5cqw;
  padding-block: 0.4cqw;
  padding-inline: 2.2cqw;
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  font-size: 2.1cqw;
  line-height: 1.35;
  font-weight: var(--font-weight-bold);
}

/* The scan-code slot on the back: a white 23cqw tile holding the rotating code, or a faint
   qr_code_2 that nobody could take for a code to scan. Its ink is the type's dark from-color. */
.oa-id-card__code {
  display: grid;
  flex: none;
  place-items: center;
  box-sizing: border-box;
  inline-size: 23cqw;
  block-size: 23cqw;
  padding: 1.4cqw;
  border: 1px solid transparent;
  border-radius: 2.6cqw;
  background-color: var(--color-on-card-art);
  color: var(--oa-id-card-from);
}

.oa-id-card__code > .oa-icon {
  font-size: 15cqw;
  opacity: 0.15;
}

.oa-id-card__code > svg {
  inline-size: 100%;
  block-size: 100%;
}

.oa-id-card__face--back .oa-id-card__label {
  font-size: 1.9cqw;
  letter-spacing: 0;
  font-weight: var(--font-weight-bold);
}

.oa-id-card__face--back .oa-id-card__number {
  font-size: 3.2cqw;
}

.oa-id-card__found {
  max-inline-size: 22cqw;
  margin-inline-start: auto;
  font-size: 1.75cqw;
  line-height: 1.5;
}


/* ---------------------------------------------------------------------------------------------
   4. Platform passport card (family illustration; D-BCP-38, D-COL-21, canonical §9). One product
   per card (oait's hero stack, app switchers, OG images) or a sample person on a marketing page:
   1.586, 5.5cqw corners, 6cqw padding, a 135° passport-* or cat-* gradient (225° in right-to-left
   pages), shadow-art, on-card-art text (on-passport-jobs on the gold card) on the first 58% of the
   gradient. Always aria-hidden="true" with one visually hidden sentence beside it.
   --------------------------------------------------------------------------------------------- */

.oa-passport-card {
  --oa-passport-card-from: var(--color-cat-orange-from);
  --oa-passport-card-mid: var(--color-cat-orange-mid);
  --oa-passport-card-to: var(--color-cat-orange-to);
  --oa-passport-card-ink: var(--color-on-card-art);
  --color-focus-ring: var(--color-on-card-art); /* a future focusable part on the art (V-4) */
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  inline-size: 100%;
  aspect-ratio: 1.586;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5.5% / 8.723%; /* 5.5cqw: a card cannot query its own width, so its corners are percentages of its 1.586 box */
  background-color: var(--oa-passport-card-mid);
  background-image: linear-gradient(135deg, var(--oa-passport-card-from) 0%, var(--oa-passport-card-mid) 58%, var(--oa-passport-card-to) 100%);
  box-shadow: var(--shadow-art);
  color: var(--oa-passport-card-ink);
  text-align: start;
  -webkit-text-size-adjust: 100%; /* card art scales with its card, not with text (D-APP-18) */
  text-size-adjust: 100%;
}

/* The 6cqw padding sits on the rows, which can read the card's width. */
.oa-passport-card > :is(.oa-passport-card__top, .oa-passport-card__middle, .oa-passport-card__bottom) {
  margin-inline: 6cqw;
}

.oa-passport-card > .oa-passport-card__top {
  margin-block-start: 6cqw;
}

.oa-passport-card > .oa-passport-card__bottom {
  margin-block-end: 6cqw;
}

.oa-passport-card:dir(rtl) {
  background-image: linear-gradient(225deg, var(--oa-passport-card-from) 0%, var(--oa-passport-card-mid) 58%, var(--oa-passport-card-to) 100%);
}

/* A sample person: the person-type palette (section 1). */
.oa-passport-card[data-person-type] {
  --oa-passport-card-from: var(--oa-id-card-from);
  --oa-passport-card-mid: var(--oa-id-card-mid);
  --oa-passport-card-to: var(--oa-id-card-to);
}

.oa-passport-card--id {
  --oa-passport-card-from: var(--color-cat-orange-from);
  --oa-passport-card-mid: var(--color-cat-orange-mid);
  --oa-passport-card-to: var(--color-cat-orange-to);
}

.oa-passport-card--security {
  --oa-passport-card-from: var(--color-passport-security-from);
  --oa-passport-card-mid: var(--color-passport-security-mid);
  --oa-passport-card-to: var(--color-passport-security-to);
}

.oa-passport-card--games {
  --oa-passport-card-from: var(--color-passport-games-from);
  --oa-passport-card-mid: var(--color-passport-games-mid);
  --oa-passport-card-to: var(--color-passport-games-to);
}

.oa-passport-card--tasks {
  --oa-passport-card-from: var(--color-cat-blue-from);
  --oa-passport-card-mid: var(--color-cat-blue-mid);
  --oa-passport-card-to: var(--color-cat-blue-to);
}

.oa-passport-card--events {
  --oa-passport-card-from: var(--color-cat-burgundy-from);
  --oa-passport-card-mid: var(--color-cat-burgundy-mid);
  --oa-passport-card-to: var(--color-cat-burgundy-to);
}

.oa-passport-card--tests {
  --oa-passport-card-from: var(--color-cat-green-from);
  --oa-passport-card-mid: var(--color-cat-green-mid);
  --oa-passport-card-to: var(--color-cat-green-to);
}

/* The gold Jobs card: the one dark-ink card; its ring re-points to on-passport-jobs (V-4). */
.oa-passport-card--jobs {
  --oa-passport-card-from: var(--color-passport-jobs-from);
  --oa-passport-card-mid: var(--color-passport-jobs-mid);
  --oa-passport-card-to: var(--color-passport-jobs-to);
  --oa-passport-card-ink: var(--color-on-passport-jobs);
  --color-focus-ring: var(--color-on-passport-jobs);
}

.oa-passport-card--tamakkan {
  --oa-passport-card-from: var(--color-passport-tamakkan-from);
  --oa-passport-card-mid: var(--color-passport-tamakkan-mid);
  --oa-passport-card-to: var(--color-passport-tamakkan-to);
}

/* The pointer glare (card stack only): a white light that follows a mouse. */
.oa-passport-card__glare {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  background-image: radial-gradient(circle at var(--oa-card-stack-glare-x) var(--oa-card-stack-glare-y), var(--color-on-card-art), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium-2) var(--ease-standard);
}


/* ---------------------------------------------------------------------------------------------
   5. Card stack (oait and Global ID landing hero art; D-SEM-20, canonical §7.6). Up to eight
   passport cards fanned behind the front one: front, next (+9%, +7%, 7°, 0.94), previous (−9%,
   −8%, −7°, 0.92), the rest hidden; x and rotation negated in right-to-left pages. Places swap
   over extra-long-1 (700ms) on the spring easing every interval-carousel (4200ms, by script); the
   stack floats 8px, the front card shines, the seals turn, a mouse tilts the stack (±8° Y, ±6° X)
   over medium-2 emphasized and moves the glare. Everything that loops sits in the region of one
   Pause control (data-motion="paused" stops it; D-SEM-17). Under reduced motion: no float, sheen,
   seal, swap motion, tilt or auto-advance; the Pause control hides (marketing.css).
   --------------------------------------------------------------------------------------------- */

.oa-card-stack {
  /* Written by script while a mouse moves over the stack (never on touch or under reduced motion). */
  --oa-card-stack-tilt-x: 0deg;
  --oa-card-stack-tilt-y: 0deg;
  --oa-card-stack-glare: 0;
  --oa-card-stack-glare-x: 50%;
  --oa-card-stack-glare-y: 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  inline-size: 100%;
}

/* 30rem is the art column's cap for the stack (D-LAY-19); 6% padding keeps the fan inside it, so
   the front card is 88% of the column, as oait draws it. */
.oa-card-stack__visual {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 30rem;
  padding: 6%;
  animation: var(--animate-float);
}

.oa-card-stack__tilt {
  --oa-card-stack-dir: 1;
  position: relative;
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--oa-card-stack-tilt-x)) rotateY(var(--oa-card-stack-tilt-y));
  transition: transform var(--duration-medium-2) var(--ease-emphasized);
}

.oa-card-stack__tilt:dir(rtl) {
  --oa-card-stack-dir: -1;
}

.oa-card-stack__tilt > .oa-passport-card {
  position: absolute;
  inset: 0;
  transition:
    transform var(--duration-extra-long-1) var(--ease-spring),
    opacity var(--duration-extra-long-1) var(--ease-spring);
}

.oa-card-stack__tilt > [data-place="front"] {
  z-index: 2;
  transform: translate3d(0, 0, 60px);
}

.oa-card-stack__tilt > [data-place="next"] {
  z-index: 1;
  transform: translate3d(calc(9% * var(--oa-card-stack-dir)), 7%, 0) rotate(calc(7deg * var(--oa-card-stack-dir))) scale(0.94);
}

.oa-card-stack__tilt > [data-place="previous"] {
  z-index: 1;
  transform: translate3d(calc(-9% * var(--oa-card-stack-dir)), -8%, 0) rotate(calc(-7deg * var(--oa-card-stack-dir))) scale(0.92);
}

.oa-card-stack__tilt > [data-place="hidden"] {
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, -4%, -40px) scale(0.86);
}

/* The loops of marketing hero art (D-SEM-17, D-SEM-20): sheen on the front card, seals turning. */
.oa-card-stack__tilt > [data-place="front"]::after {
  animation: var(--animate-sheen);
}

.oa-card-stack .oa-passport-card__seal::before {
  animation: var(--animate-seal);
}

.oa-card-stack__tilt > [data-place="front"] .oa-passport-card__glare {
  opacity: calc(0.28 * var(--oa-card-stack-glare));
}

.oa-card-stack__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}


/* ---------------------------------------------------------------------------------------------
   6. QR pass (Global ID; D-CSN-44, canonical §15). The family's scan pass on a product panel:
   rounded-hero, a 160° gradient of the orange card-art stops, on-card-art text (5.85:1 or more on
   every stop), shadow-art. Inside: the live "Ready to scan" dot, the Hide button (on-art), four
   3px corners breathing (animate-breathe, 2000ms) around the 236px white tile (28px corners,
   elevation-1) holding the 208px code, the person, and a 48px bar with the 22px countdown ring and
   "New code every 30 seconds". Focus rings and links on the panel re-point to on-card-art.
   Family products only. Its on-art Hide and Try again buttons turn white on white under an
   endorsed accent (D-ARC-12).
   --------------------------------------------------------------------------------------------- */

.oa-qr-pass {
  --oa-qr-pass-used: 0; /* written by script each second: the share of the 30 seconds used */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3-5);
  box-sizing: border-box;
  inline-size: 100%;
  margin: 0;
  padding: var(--space-3-5) var(--space-4) var(--space-2-5);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-hero);
  background-color: var(--color-cat-orange-from);
  background-image: linear-gradient(160deg, var(--color-cat-orange-from) 0%, var(--color-cat-orange-mid) 60%, var(--color-cat-orange-mid) 100%);
  box-shadow: var(--shadow-art);
  color: var(--color-on-card-art);
}

.oa-qr-pass:not(.oa-qr-pass--folded) {
  --color-focus-ring: var(--color-on-card-art);
  --oa-link: var(--color-on-card-art);
}

.oa-qr-pass__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  align-self: stretch;
}

.oa-qr-pass__header > .oa-btn {
  margin-inline-start: auto;
}

/* "Ready to scan": a live status, a 10px dot pulsing in its own color while the pass is ready
   (animate-live, loop-status 2000ms), still under reduced motion beside its words. */
.oa-qr-pass__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-chip-sm);
  margin: 0;
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
}

.oa-qr-pass__dot {
  flex: none;
  inline-size: 10px;
  block-size: 10px;
  border-radius: var(--radius-full);
  background-color: currentColor;
  animation: var(--animate-live);
}

.oa-qr-pass > .oa-banner {
  align-self: stretch;
}

/* The viewfinder: four 3px corners, 40px long (Global ID's 36px is off the 4px scale), 12px
   around the white tile, breathing. */
.oa-qr-pass__frame {
  position: relative;
  padding: var(--space-3);
}

.oa-qr-pass__corner {
  position: absolute;
  inline-size: var(--space-10);
  block-size: var(--space-10);
  border: 0 solid currentColor;
  animation: var(--animate-breathe);
}

.oa-qr-pass__corner:nth-of-type(1) {
  inset-block-start: 0;
  inset-inline-start: 0;
  border-block-start-width: 3px;
  border-inline-start-width: 3px;
  border-start-start-radius: var(--radius-box);
}

.oa-qr-pass__corner:nth-of-type(2) {
  inset-block-start: 0;
  inset-inline-end: 0;
  border-block-start-width: 3px;
  border-inline-end-width: 3px;
  border-start-end-radius: var(--radius-box);
}

.oa-qr-pass__corner:nth-of-type(3) {
  inset-block-end: 0;
  inset-inline-start: 0;
  border-block-end-width: 3px;
  border-inline-start-width: 3px;
  border-end-start-radius: var(--radius-box);
}

.oa-qr-pass__corner:nth-of-type(4) {
  inset-block-end: 0;
  inset-inline-end: 0;
  border-block-end-width: 3px;
  border-inline-end-width: 3px;
  border-end-end-radius: var(--radius-box);
}

/* The code tile: 236px white (on-card-art in both themes), 14px padding, 28px corners,
   elevation-1; the 208px code and the University mark tile at its center stack on one cell. */
.oa-qr-pass__code {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 236px;
  block-size: 236px;
  padding: var(--space-3-5);
  border: 1px solid transparent;
  border-radius: var(--radius-28px);
  background-color: var(--color-on-card-art);
  box-shadow: var(--shadow-elevation-1);
  color: var(--color-cat-orange-from);
}

.oa-qr-pass__code > * {
  grid-area: 1 / 1;
}

.oa-qr-pass__matrix {
  inline-size: 100%;
  block-size: 100%;
}

/* Round dark modules, finders with orange centers (D-BCP-39): theme-invariant card-art inks. */
.oa-qr-pass__dots {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.86;
  stroke-linecap: round;
}

.oa-qr-pass__finder {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.oa-qr-pass__eye {
  fill: var(--color-cat-orange-to);
}

/* The University mark at the center: a white tile of about 4% of the code's area (8% at most). */
.oa-qr-pass__mark {
  box-sizing: border-box;
  inline-size: 18%;
  block-size: 18%;
  padding: 2%;
  border-radius: var(--radius-12px);
  background-color: var(--color-on-card-art);
}

.oa-qr-pass__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-0-5);
  margin: 0;
  text-align: center;
}

.oa-qr-pass__name {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
  overflow-wrap: anywhere;
}

.oa-qr-pass__name:lang(ar) {
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-qr-pass__meta {
  margin: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-qr-pass__meta bdi {
  font-family: var(--font-mono);
  font-size: var(--text-code-sm);
  line-height: var(--text-code-sm--line-height);
  letter-spacing: var(--text-code-sm--letter-spacing);
  font-weight: var(--text-code-sm--font-weight);
}

/* The bottom bar: 48px, a hairline of the panel's ink at 22% above it. */
.oa-qr-pass__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  align-self: stretch;
  box-sizing: border-box;
  min-block-size: var(--size-touch-target);
  padding-block-start: var(--space-1);
}

.oa-qr-pass__bar::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 1px;
  background-color: currentColor;
  opacity: 0.22;
}

.oa-qr-pass__bar > .oa-link {
  margin-inline-start: auto;
}

.oa-qr-pass__caption {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  letter-spacing: var(--text-body-sm--letter-spacing);
  font-weight: var(--font-weight-medium);
}

/* The 22px countdown ring: a 2.5px arc draining over the 30 seconds of one code. Script writes
   --oa-qr-pass-used (0 to 1) each second; the arc moves over medium-2 emphasized (canonical §7.3,
   determinate progress); under reduced motion it jumps and the words stay. 56.549 = 2π × 9. */
.oa-qr-pass__ring {
  flex: none;
  inline-size: 22px;
  block-size: 22px;
  rotate: -90deg;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.oa-qr-pass__ring > circle:first-child {
  stroke-opacity: 0.3;
}

.oa-qr-pass__ring > circle + circle {
  stroke-dasharray: 56.549;
  stroke-dashoffset: calc(56.549 * var(--oa-qr-pass-used));
  stroke-linecap: round;
  transition: stroke-dashoffset var(--duration-medium-2) var(--ease-emphasized);
}

/* Loading: the panel with "Getting your scan code…" (aria-busy="true"). */
.oa-qr-pass[aria-busy="true"] {
  flex-direction: row;
  justify-content: center;
  gap: var(--space-3);
  min-block-size: var(--space-28);
  padding: var(--space-6) var(--space-4);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg--line-height);
  letter-spacing: var(--text-body-lg--letter-spacing);
  font-weight: var(--font-weight-medium);
}

/* The code could not be made: the words on the panel, with Try again (on-art). */
.oa-qr-pass__problem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-inline-size: 236px;
  margin: 0;
  padding-block: var(--space-6);
  text-align: center;
}

.oa-qr-pass__problem > .oa-icon {
  font-size: var(--size-icon-3xl);
}

.oa-qr-pass__problem-text {
  margin: 0;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

/* Folded by the person: a primary-container bar (the panel's 32px corners), the 48px primary tile
   with qr_code_2, the title and its line, and Show. No art shadow: it is a bar, not art. */
.oa-qr-pass--folded {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3-5);
  padding: var(--space-3-5);
  padding-inline-start: var(--space-4);
  background-color: var(--color-primary-container);
  background-image: none;
  box-shadow: none;
  color: var(--color-on-primary-container);
}

.oa-qr-pass__tile {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--size-touch-target);
  block-size: var(--size-touch-target);
  border-radius: var(--radius-box);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.oa-qr-pass__tile > .oa-icon {
  font-size: var(--size-icon-xl);
}

.oa-qr-pass__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-inline-size: 0;
}

.oa-qr-pass__title {
  margin: 0;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-qr-pass__body {
  margin: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

/* The text keeps at least 96px beside Show; on a narrower pass (a 320px window) Show wraps under it
   at the inline end, so the title never takes three lines. */
.oa-qr-pass--folded > .oa-qr-pass__text {
  flex-basis: var(--space-24);
}

.oa-qr-pass--folded > .oa-btn {
  margin-inline-start: auto;
}


/* ---------------------------------------------------------------------------------------------
   7. Job card (Global Jobs; D-CSN-45, D-ARC-20). The parts the job card adds to the outlined
   clickable card (.oa-card with a stretched .oa-title-link, card.css): the company line beside
   the 48px organization avatar with the verified icon, the meta line with a 16px location_on, the
   salary in title-sm with its unit in body-md. The save button sits in .oa-card__actions, above
   the stretched link, nudged 8px into the corner so its glyph lines up with the card's padding.
   --------------------------------------------------------------------------------------------- */

.oa-job-card .oa-card__header {
  align-items: center;
}

.oa-job-card .oa-card__actions {
  margin-block: calc(var(--space-2) * -1);
  margin-inline-end: calc(var(--space-2) * -1);
}

.oa-job-card__company {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--space-1-5);
  min-inline-size: 0;
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--font-weight-medium);
  overflow-wrap: anywhere;
}

.oa-job-card__verified {
  flex: none;
  color: var(--color-success);
  font-size: var(--size-icon-xs);
  font-variation-settings: "FILL" 1;
}

.oa-job-card__meta {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-job-card__meta > .oa-icon {
  flex: none;
  margin-block-start: var(--space-0-5);
  font-size: var(--size-icon-xs);
}

.oa-job-card__salary {
  margin: 0;
  color: var(--color-on-surface);
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-job-card__unit {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}


/* ---------------------------------------------------------------------------------------------
   8. Game tiles (Global Games; D-CSN-46, C-9, D-TYP-12). The passport score is a tonal primary
   card with one hero number (hero-lg, tabular); points and visit tiles are stat tiles
   (marketing.css .oa-stat). The leaderboard is a filled card of rank rows: rank and score in
   numeral-md tabular, the name in title-sm, a 4px bar under the name, "points" in body-sm. The
   booth card is an accordion item (disclosure.css) whose summary is a two-line row.
   --------------------------------------------------------------------------------------------- */

.oa-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
  box-sizing: border-box;
  margin: 0;
  padding: var(--space-card);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

.oa-points__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.oa-points__heading {
  display: flex;
  flex: 1 1 10rem;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.oa-points__title {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-points__meta,
.oa-points__visits {
  margin: 0;
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-points__score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0;
}

.oa-points__value {
  font-size: var(--text-hero-lg);
  line-height: var(--text-hero-lg--line-height);
  letter-spacing: var(--text-hero-lg--letter-spacing);
  font-weight: var(--text-hero-lg--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-points__unit {
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-leaderboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
  box-sizing: border-box;
  margin: 0;
  padding-block: var(--space-card);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
}

.oa-leaderboard__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-tight);
  padding-inline: var(--space-card);
}

.oa-leaderboard__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

.oa-leaderboard__title > .oa-icon {
  color: var(--color-primary-ink);
}

.oa-leaderboard__note {
  margin: 0;
  max-inline-size: var(--container-measure);
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-leaderboard__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-leaderboard__list > li + li {
  border-block-start: 1px solid var(--color-outline-variant);
}

/* A rank row: a two-line list row (72px), not pressable: rank in a 32px column, the avatar
   (a Games character may stand in for a person; decorative beside the name), the name and its bar,
   the score at the inline end with its unit in words. */
.oa-rank-row {
  display: grid;
  grid-template-columns: var(--size-chip-sm) auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-4);
  box-sizing: border-box;
  min-block-size: var(--size-list-row-two-line);
  padding-block: var(--space-2);
  padding-inline: var(--space-row-inset);
}

.oa-rank-row__rank,
.oa-rank-row__value {
  font-size: var(--text-numeral-md);
  line-height: var(--text-numeral-md--line-height);
  letter-spacing: var(--text-numeral-md--letter-spacing);
  font-weight: var(--text-numeral-md--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-rank-row__rank {
  min-inline-size: var(--size-chip-sm);
  text-align: center;
}

/* In a leaderboard the rows share the list's columns, so ranks, bars and scores line up whatever
   the length of a name or a unit ("1 point", "4 points"). Without subgrid each row keeps its own
   columns, as above. */
@supports (grid-template-columns: subgrid) {
  .oa-leaderboard__list {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    column-gap: var(--space-4);
  }

  .oa-leaderboard__list > .oa-rank-row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
}

.oa-rank-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-inline-size: 0;
}

/* Names sit in <bdi>: they keep their own direction inside the row's, so a Latin name in an
   Arabic row still starts beside the avatar. */
.oa-rank-row__name {
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
  overflow-wrap: anywhere;
}

.oa-rank-row__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
}

.oa-rank-row__unit {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  letter-spacing: var(--text-body-sm--letter-spacing);
  font-weight: var(--text-body-sm--font-weight);
}

/* Booth card: the summary is a two-line row (72px) with the 56px tile, the name (title-sm), its
   meta (body-md), and a status chip; the panel holds key–value rows and one 48px button.
   Below 640px (sm) the summary is a grid whose chip sits under the name and its place, with the
   tile and the chevron spanning both lines, so the name keeps the row's width and breaks only
   between words; from 640px the four parts share one line (the accordion's flex row). */
.oa-booth-card__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "tile text icon"
    "tile chip icon";
  row-gap: var(--space-2);
  justify-content: flex-start;
  min-block-size: var(--size-list-row-two-line);
  padding-block: var(--space-2);
}

.oa-booth-card__summary > .oa-tile {
  grid-area: tile;
}

.oa-booth-card__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  grid-area: text;
  min-inline-size: 0;
}

.oa-booth-card__summary > .oa-status-chip {
  grid-area: chip;
  justify-self: start;
}

.oa-booth-card__summary > .oa-accordion__icon {
  grid-area: icon;
}

@media (min-width: 40rem) {
  .oa-booth-card__summary {
    display: flex;
  }
}

.oa-booth-card__name {
  overflow-wrap: break-word;
}

.oa-booth-card__meta {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-booth-card__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-stack);
  max-inline-size: none;
  padding-inline-end: var(--space-row-inset);
}

.oa-booth-card__panel > .oa-kv {
  align-self: stretch;
}


/* ---------------------------------------------------------------------------------------------
   9. Stage (Global Games' projector stage; D-SEM-22, D-CSN-46, canonical §11 template 11). A
   fixed 1920×1080 artboard, scaled to fit and letterboxed: min(100cqw / 1920px, 100cqh / 1080px)
   where the browser divides lengths, otherwise --oa-stage-scale written by script. 72px safe area,
   an 88px header row, one scene at a time, text 28px or more at artboard pixels, tabular numbers,
   7:1 or more in the dark theme (the stage page sets data-theme="dark" on <html>), every radius
   alias doubled, no controls on the public screen. --preview draws it in a 16:9 frame inside a page.
   The lock-up's mark is drawn inline in the mark inks (canonical §1.3), so it turns white with the
   stage's theme whatever the system setting; never a <picture> that follows prefers-color-scheme.
   --------------------------------------------------------------------------------------------- */

.oa-stage {
  --oa-stage-scale: 1; /* script writes the fitted scale where the browser cannot divide lengths */
  position: fixed;
  inset: 0;
  overflow: hidden;
  container-type: size;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
}

.oa-stage--preview {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-box);
}

.oa-stage__artboard {
  position: absolute;
  inset-block-start: 50%;
  left: 50%; /* the tolerated centering pair: left 50% with a −50% translate */
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  box-sizing: border-box;
  inline-size: var(--size-stage-width);
  block-size: var(--size-stage-height);
  padding: var(--space-stage-safe);
  overflow: hidden;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  translate: -50% -50%;
  scale: var(--oa-stage-scale);
}

/* Where lengths divide (CSS typed arithmetic), the stage fits itself: the artboard reads the scale
   against the .oa-stage container (the window, or the preview frame). */
@supports (scale: calc(1px / 1px)) {
  .oa-stage {
    --oa-stage-scale: min(100cqw / var(--size-stage-width), 100cqh / var(--size-stage-height));
  }
}

/* The stage glow: two soft lights of the orange fill and cedar green (art; D-COL-21). */
.oa-stage__artboard::before,
.oa-stage__artboard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  pointer-events: none;
}

.oa-stage__artboard::before {
  background-image: radial-gradient(1100px 700px at 8% -10%, var(--color-primary), transparent 60%);
  opacity: 0.2;
}

.oa-stage__artboard::after {
  background-image: radial-gradient(900px 700px at 105% 110%, var(--color-tertiary), transparent 60%);
  opacity: 0.13;
}

.oa-stage__header {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-8);
  min-block-size: 88px; /* the header row (canonical §11 template 11) */
}

.oa-stage__event {
  margin: 0;
  font-size: var(--text-display-sm);
  line-height: var(--text-display-sm--line-height);
  letter-spacing: var(--text-display-sm--letter-spacing);
  font-weight: var(--text-display-sm--font-weight);
}

.oa-stage__status {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-2);
  padding-inline: var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-high);
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--text-headline-md--font-weight);
}

.oa-stage__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-inline-start: auto;
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--text-headline-md--font-weight);
}

/* The live dot at stage scale (twice the 12px large dot); it pulses only while the stage is live
   and stands still under reduced motion beside its word. */
.oa-stage__live-dot {
  flex: none;
  inline-size: var(--space-6);
  block-size: var(--space-6);
  border-radius: var(--radius-full);
  background-color: currentColor;
  color: var(--color-success);
  animation: var(--animate-live);
}

.oa-stage__scene {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-6);
  min-block-size: 0;
}

.oa-stage__title {
  margin: 0;
  font-size: var(--text-display-md);
  line-height: var(--text-display-md--line-height);
  letter-spacing: var(--text-display-md--letter-spacing);
  font-weight: var(--text-display-md--font-weight);
}

.oa-stage__lead {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--text-headline-md--font-weight);
}

/* The leaderboard on the stage: radius aliases doubled (D-SEM-22), names display-sm, ranks and
   scores numeral-lg, "points" at the 28px stage minimum beside the score. */
.oa-stage .oa-leaderboard {
  gap: var(--space-6);
  padding-block: calc(var(--space-card-medium) * 2);
  border-radius: calc(var(--radius-card) * 2);
}

.oa-stage .oa-leaderboard__header {
  padding-inline: calc(var(--space-card-medium) * 2);
}

.oa-stage .oa-leaderboard__title {
  font-size: var(--text-display-md);
  line-height: var(--text-display-md--line-height);
  letter-spacing: var(--text-display-md--letter-spacing);
  font-weight: var(--text-display-md--font-weight);
}

.oa-stage .oa-leaderboard__note {
  max-inline-size: none;
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--font-weight-medium);
}

.oa-stage .oa-rank-row {
  grid-template-columns: var(--space-12) auto minmax(0, 1fr) auto;
  column-gap: var(--space-8);
  padding-inline: calc(var(--space-card-medium) * 2);
}

.oa-stage .oa-rank-row__rank {
  min-inline-size: var(--space-12);
}

@supports (grid-template-columns: subgrid) {
  .oa-stage .oa-leaderboard__list {
    column-gap: var(--space-8);
  }

  .oa-stage .oa-leaderboard__list > .oa-rank-row {
    grid-template-columns: subgrid;
  }
}

.oa-stage .oa-rank-row__rank,
.oa-stage .oa-rank-row__value {
  font-size: var(--text-numeral-lg);
  line-height: var(--text-numeral-lg--line-height);
  letter-spacing: var(--text-numeral-lg--letter-spacing);
  font-weight: var(--text-numeral-lg--font-weight);
}

.oa-stage .oa-rank-row__name {
  font-size: var(--text-display-sm);
  line-height: var(--text-display-sm--line-height);
  letter-spacing: var(--text-display-sm--letter-spacing);
  font-weight: var(--text-display-sm--font-weight);
}

.oa-stage .oa-rank-row__score {
  flex-direction: row;
  align-items: baseline;
  gap: var(--space-3);
}

.oa-stage .oa-rank-row__unit {
  font-size: var(--text-headline-md);
  line-height: var(--text-headline-md--line-height);
  letter-spacing: var(--text-headline-md--letter-spacing);
  font-weight: var(--font-weight-medium);
}


/* ---------------------------------------------------------------------------------------------
   10. Result card (Tamakkan; D-CSN-47). A filled card of ranked list rows: a 32px rank disc in
   primary-container (Tamakkan's violet under data-product="tamakkan"), the name (title-sm) and
   its line (body-md), the score at the inline end in primary-ink, numeral-md tabular (C-9).
   --------------------------------------------------------------------------------------------- */

.oa-result-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
  box-sizing: border-box;
  margin: 0;
  padding: var(--space-card);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
}

.oa-result-card__title {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-result-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-result-card__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--space-4);
}

.oa-result-card__rank {
  display: grid;
  place-items: center;
  inline-size: var(--size-chip-sm);
  block-size: var(--size-chip-sm);
  border-radius: var(--radius-full);
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  font-size: var(--text-label-md);
  line-height: var(--text-label-md--line-height);
  letter-spacing: var(--text-label-md--letter-spacing);
  font-weight: var(--text-label-md--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-result-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.oa-result-card__name {
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-result-card__desc {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}

.oa-result-card__score {
  color: var(--color-primary-ink);
  font-size: var(--text-numeral-md);
  line-height: var(--text-numeral-md--line-height);
  letter-spacing: var(--text-numeral-md--letter-spacing);
  font-weight: var(--text-numeral-md--font-weight);
  font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------------------------------------------
   11. HBDI quadrant result (Tamakkan; D-CSN-47, V-3, CLIENT CALL row 22). Quadrants A–D are always
   lettered. Each quadrant has a fill and its on-color (the key tile, the chip) and a chart hue
   used only as a mark on the card surface (radar marks, the major card's 4px inline-start edge):
   A chart-2 on pastel-lavender, B chart-3 on pastel-mint, C chart-6 on cat-burgundy-container,
   D chart-5 on pastel-sand. Letters take the fill's on-color; chart hues never sit on the fills.
   --------------------------------------------------------------------------------------------- */

.oa-hbdi {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-loose);
  margin: 0;
  color: var(--color-on-surface);
}

/* The quadrant attribute is read only inside the HBDI result, so no other component's
   data-quadrant picks up these colors. */
.oa-hbdi [data-quadrant="a"] {
  --oa-hbdi-fill: var(--color-pastel-lavender);
  --oa-hbdi-ink: var(--color-on-pastel-lavender);
  --oa-hbdi-mark: var(--color-chart-2);
}

.oa-hbdi [data-quadrant="b"] {
  --oa-hbdi-fill: var(--color-pastel-mint);
  --oa-hbdi-ink: var(--color-on-pastel-mint);
  --oa-hbdi-mark: var(--color-chart-3);
}

.oa-hbdi [data-quadrant="c"] {
  --oa-hbdi-fill: var(--color-cat-burgundy-container);
  --oa-hbdi-ink: var(--color-on-cat-burgundy-container);
  --oa-hbdi-mark: var(--color-chart-6);
}

.oa-hbdi [data-quadrant="d"] {
  --oa-hbdi-fill: var(--color-pastel-sand);
  --oa-hbdi-ink: var(--color-on-pastel-sand);
  --oa-hbdi-mark: var(--color-chart-5);
}

.oa-hbdi__title {
  margin: 0;
  font-size: var(--text-title-lg);
  line-height: var(--text-title-lg--line-height);
  letter-spacing: var(--text-title-lg--letter-spacing);
  font-weight: var(--text-title-lg--font-weight);
}

/* The dominant style: a flat primary block, 12px corners, no gradient (D-CSN-47, C-9). */
.oa-hbdi__badge {
  align-self: flex-start;
  margin: 0;
  padding-block: var(--space-3);
  padding-inline: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-12px);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-hbdi__layout {
  display: grid;
  gap: var(--space-grid);
}

@media (min-width: 64rem) {
  .oa-hbdi__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

/* The radar is a chart: on card-outlined-container, one of the three grounds the build checks
   (V-3); the four scores are also in the score cards. Axes stay where they are in Arabic. */
.oa-hbdi__radar {
  margin: 0;
  padding: var(--space-card);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-card);
  background-color: var(--color-card-outlined-container);
}

.oa-hbdi__radar > svg {
  display: block;
  inline-size: 100%;
  max-inline-size: 340px; /* the radar's cap, as Tamakkan draws it today (D-CSN-47) */
  block-size: auto;
  margin-inline: auto;
  overflow: visible;
}

.oa-hbdi__grid {
  fill: none;
  stroke: var(--color-outline-variant);
  stroke-width: 1;
}

.oa-hbdi__shape {
  fill: none;
  stroke: var(--color-on-surface-variant);
  stroke-width: 2;
  stroke-linejoin: round;
}

.oa-hbdi__point {
  fill: var(--oa-hbdi-mark);
}

.oa-hbdi__axis {
  fill: var(--color-on-surface);
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
}

.oa-hbdi__scores {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .oa-hbdi__scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A quadrant score card: an outlined compact card, the 40px lettered key tile (12px corners) in
   the quadrant's fill, name (title-sm) and line (body-sm, sentence case), the score at the inline
   end (numeral-md tabular, C-9). */
.oa-hbdi__score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  box-sizing: border-box;
  min-block-size: var(--size-list-row-two-line);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-card);
  background-color: var(--color-card-outlined-container);
}

.oa-hbdi__key {
  display: grid;
  place-items: center;
  inline-size: var(--size-tile-sm);
  block-size: var(--size-tile-sm);
  border-radius: var(--radius-12px);
  background-color: var(--oa-hbdi-fill);
  color: var(--oa-hbdi-ink);
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-hbdi__text {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.oa-hbdi__name,
.oa-hbdi__major-name {
  margin: 0;
  font-size: var(--text-title-sm);
  line-height: var(--text-title-sm--line-height);
  letter-spacing: var(--text-title-sm--letter-spacing);
  font-weight: var(--text-title-sm--font-weight);
  overflow-wrap: anywhere;
}

.oa-hbdi__sub {
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  letter-spacing: var(--text-body-sm--letter-spacing);
  font-weight: var(--text-body-sm--font-weight);
}

.oa-hbdi__value {
  font-size: var(--text-numeral-md);
  line-height: var(--text-numeral-md--line-height);
  letter-spacing: var(--text-numeral-md--letter-spacing);
  font-weight: var(--text-numeral-md--font-weight);
  font-variant-numeric: tabular-nums;
}

.oa-hbdi__subtitle {
  margin: 0;
  font-size: var(--text-title-md);
  line-height: var(--text-title-md--line-height);
  letter-spacing: var(--text-title-md--letter-spacing);
  font-weight: var(--text-title-md--font-weight);
}

.oa-hbdi__majors {
  display: grid;
  gap: var(--space-grid);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .oa-hbdi__majors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .oa-hbdi__majors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A recommended major: an outlined card with a 4px edge in the quadrant's chart hue on its inline
   start (on the right in Arabic), the name, the quadrant chip and the reasoning (body-md). */
.oa-hbdi__major {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-stack-tight);
  box-sizing: border-box;
  padding: var(--space-card);
  border: 1px solid var(--color-outline-variant);
  border-inline-start: 4px solid var(--oa-hbdi-mark);
  border-radius: var(--radius-card);
  background-color: var(--color-card-outlined-container);
}

.oa-hbdi__chip {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-block-size: var(--space-6);
  padding-inline: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  background-color: var(--oa-hbdi-fill);
  color: var(--oa-hbdi-ink);
  font-size: var(--text-label-sm);
  line-height: var(--text-label-sm--line-height);
  letter-spacing: var(--text-label-sm--letter-spacing);
  font-weight: var(--text-label-sm--font-weight);
}

.oa-hbdi__reason {
  margin: 0;
  color: var(--color-on-surface-variant);
  font-size: var(--text-body-md);
  line-height: var(--text-body-md--line-height);
  letter-spacing: var(--text-body-md--letter-spacing);
  font-weight: var(--text-body-md--font-weight);
}


/* ---------------------------------------------------------------------------------------------
   12. Breakpoint padding and print. Forced colors need no rule of their own: the art gradients
   drop out there, and every face, panel and card keeps its 1px edge (transparent at rest), so its
   outline stays (D-SEM-10).
   --------------------------------------------------------------------------------------------- */

@media (min-width: 40rem) {
  .oa-points,
  .oa-result-card {
    padding: var(--space-card-medium);
  }

  .oa-leaderboard {
    padding-block: var(--space-card-medium);
  }

  .oa-leaderboard__header {
    padding-inline: var(--space-card-medium);
  }

  .oa-rank-row {
    padding-inline-start: var(--space-row-inset-medium);
  }

  .oa-hbdi__major,
  .oa-hbdi__radar {
    padding: var(--space-card-medium);
  }
}

/* Printed card faces: the CR80 page (85.6 × 54mm, no margin), one face per page, square corners
   (the die-cut makes the 3.18mm corner; 3.7cqw only if the printer cannot print to the edge),
   no art shadow, no sheen, the background printed (D-SEM-06, D-ARC-31, D-LAY-19). */
@page gid-card {
  size: 85.6mm 54mm;
  margin: 0;
}

@media print {
  .oa-id-card--flat {
    page: gid-card;
    break-after: page;
    inline-size: 85.6mm;
  }

  .oa-id-card__face {
    border-radius: 0;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .oa-id-card__face::after,
  .oa-id-card__flip {
    display: none;
  }

  .oa-passport-card,
  .oa-qr-pass {
    box-shadow: none;
  }
}
