/* 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;
  }
}
