/* ==========================================================================
   app.css: Al Safwan Academy design system (research-ux.md section 6).
   Loaded on every /academy page by layouts/academy.html.eex, before the page
   files (pages.css P1, player.css P2, account.css P3) and the kit files.

   Shared file: page agents reuse these classes; they don't edit this file.
   See /academy/_styleguide (outside production) for every component.

   1 Fonts  2 Tokens  3 Base  4 Layout  5 Type  6 Buttons  7 Forms
   8 Choice rows, chips, tags  9 Cards and tiles  10 Accordion, tabs
   11 Progress  12 Toast, sheet, menu  13 Breadcrumbs, empty, panel
   14 App shell  15 Legacy classes used by the kits  16 Utilities  17 Print
   ========================================================================== */

/* 1 Fonts: Inter (SIL Open Font License), variable 400-700, Latin + Latin Extended. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/academy-assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/academy-assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2 Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  /* Greys and one orange. #e85d1f never carries text (3.49:1). */
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #6b6b6b;
  --line: #e5e5e5;
  --line-strong: #8a8a8a;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;
  --grey-200: #e5e5e5;
  --accent: #e85d1f;
  --accent-strong: #d14314;
  --accent-hover: #b93a10;
  --accent-wash: #fdf1ea;
  --danger: #b42318;
  --danger-wash: #fef3f2;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (phone first; desktop values at 1024px below). */
  --fs-display: 1.875rem;  --lh-display: 2.25rem;  /* 30/36 → 40/48 */
  --fs-h1: 1.625rem;       --lh-h1: 2rem;          /* 26/32 → 32/40 */
  --fs-h2: 1.25rem;        --lh-h2: 1.75rem;       /* 20/28 → 24/32 */
  --fs-h3: 1.0625rem;      --lh-h3: 1.5rem;        /* 17/24 → 18/26 */
  --fs-lead: 1.0625rem;    --lh-lead: 1.625rem;    /* 17/26 → 18/28 */
  --fs-lesson: 1.0625rem;  --lh-lesson: 1.6875rem; /* 17/27 → 17/28 */
  --fs-body: 1rem;         --lh-body: 1.5rem;
  --fs-meta: 0.875rem;     --lh-meta: 1.25rem;
  --fs-eyebrow: 0.8125rem; --lh-eyebrow: 1.125rem; /* 13px: the smallest text a learner reads */

  /* 8px grid */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --section: 64px;          /* marketing sections; 96px on desktop */
  --section-app: 32px;      /* dashboard and player; 48px on desktop */
  --gutter: 16px;           /* 24px tablet, 32px desktop */
  --max: 1200px;
  --measure: 720px;         /* lesson column */

  --r-control: 8px;
  --r-panel: 12px;
  --r-pill: 999px;
  --shadow-pop: 0 12px 32px -8px rgba(23, 23, 23, .18), 0 2px 6px rgba(23, 23, 23, .06);
  /* Focus: a solid 2px #d14314 ring 2px outside the control (4.6:1 on white, WCAG 2.4.11/1.4.11). */
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-strong);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t-sheet: 250ms;

  --header-h: 56px;         /* 64px on desktop */
  --control-h: 48px;
  --tap: 44px;

  /* Legacy names the kits' CSS, academy.css and the primers use (01-tokens.css of the
     main site), mapped onto the Academy's values so lesson content keeps working. */
  --paper: var(--surface);
  --rule: var(--line);
  --grey: #8a8a8a;
  --grey-text: var(--ink-3);
  --field: var(--surface-3);
  --accent-ink: var(--accent-strong);
  --accent-dark: var(--accent-hover);
  --accent-soft: var(--accent-wash);
  --on-accent: #ffffff;
  --signal: var(--accent);
  --t-xl: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
  --t-l: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-m: 1.125rem;
  --t-body: 1rem;
  --t-s: .875rem;
  --lh-tight: 1.15;
  --lh-head: 1.25;
  --lh-body: 1.5;
  --track-display: -0.015em;
  --track-head: -0.01em;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --col-gap: 16px;
  --radius: 8px;
  --dur: 200ms;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) {
  :root {
    --fs-display: 2.5rem;  --lh-display: 3rem;
    --fs-h1: 2rem;         --lh-h1: 2.5rem;
    --fs-h2: 1.5rem;       --lh-h2: 2rem;
    --fs-h3: 1.125rem;     --lh-h3: 1.625rem;
    --fs-lead: 1.125rem;   --lh-lead: 1.75rem;
    --lh-lesson: 1.75rem;
    --section: 96px;
    --section-app: 48px;
    --gutter: 32px;
    --header-h: 64px;
    --col-gap: 24px;
  }
}

/* 3 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 80px; }
body.ax { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.ax main { flex: 1 0 auto; }
:where(.ax) h1, :where(.ax) h2, :where(.ax) h3, :where(.ax) h4, :where(.ax) p, :where(.ax) figure, :where(.ax) blockquote, :where(.ax) dl, :where(.ax) dd { margin: 0; }
:where(.ax) h1, :where(.ax) h2, :where(.ax) h3, :where(.ax) h4 { font-weight: 600; color: var(--ink); text-wrap: balance; }
:where(.ax) ul[role="list"], :where(.ax) ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:where(.ax) :is(img, svg, video) { max-width: 100%; }
:where(.ax) img { height: auto; display: block; }
:where(.ax) a { color: inherit; }
:where(.ax) a:not([class]), .ax-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease); }
:where(.ax) a:not([class]):hover, .ax-link:hover { color: var(--accent-strong); }
:where(.ax) button { font: inherit; color: inherit; }
:where(.ax) :focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }
/* Search matches: a calm grey wash, never an error colour. */
:where(.ax) mark { background: var(--surface-3); color: inherit; font-weight: 600; text-decoration: none; padding: 0 2px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
:where(.ax) ::selection { background: var(--accent-wash); color: var(--ink); }
:where(.ax) hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:where(.ax) [hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-control); text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 12px; }

/* 4 Layout ---------------------------------------------------------------- */
.ax-container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ax-container--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.ax-section { padding-block: var(--section); }
.ax-section--app { padding-block: var(--section-app); }
.ax-section + .ax-section { padding-top: 0; }
.ax-section--band { background: var(--surface-2); }
.ax-section--band + .ax-section, .ax-section + .ax-section--band { padding-top: var(--section); }
.ax-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-5); }
.ax-section__head > a, .ax-section__head > .ax-link { display: inline-flex; align-items: center; min-height: var(--tap); }
.ax-stack { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.ax-stack--sm { gap: var(--sp-2); }
.ax-stack--lg { gap: var(--sp-6); }
.ax-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.ax-grid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .ax-grid { gap: var(--sp-5); } .ax-grid--2, .ax-grid--3, .ax-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ax-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ax-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ax-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (min-width: 1024px) { .ax-grid--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); } }
.ax-split { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .ax-split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--sp-7); align-items: start; } .ax-split__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
/* Horizontal scroll row with snap (course cards on phones). */
.ax-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.ax-scroller::-webkit-scrollbar { display: none; }
.ax-scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) { .ax-scroller { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: var(--sp-5); } }
@media (min-width: 1024px) { .ax-scroller { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 5 Type ------------------------------------------------------------------ */
.ax-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 600; letter-spacing: -0.02em; }
.ax-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; letter-spacing: -0.015em; }
.ax-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -0.01em; }
.ax-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.ax-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: 56ch; }
.ax-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.ax-meta { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); }
.ax-eyebrow { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ax-eyebrow a { text-decoration: none; }
.ax-eyebrow a:hover { color: var(--ink); }
.ax-accent-text { color: var(--accent-strong); }
.ax-tnum, .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ax-facts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ax-facts > span { display: inline-flex; align-items: center; gap: 6px; }
.ax-facts .ax-icon { width: 16px; height: 16px; }
.ax-dots > * + *::before { content: "·"; margin-inline: 6px; color: var(--ink-3); }

/* Lesson and long-form text. */
.prose { font-size: var(--fs-lesson); line-height: var(--lh-lesson); max-width: var(--measure); color: var(--ink); }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-block-start: 2em; }
.prose h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-block-start: 1.75em; }
.prose h2 + *, .prose h3 + * { margin-block-start: .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-block-start: .4em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-strong); }
.prose blockquote { padding-inline-start: 1em; border-inline-start: 2px solid var(--line-strong); color: var(--ink-2); }
.prose figure img { border-radius: var(--r-panel); }
.prose figcaption { margin-block-start: .5em; font-size: var(--fs-meta); color: var(--ink-3); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.prose strong, .prose b { font-weight: 600; }

/* 6 Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-h); padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--surface-3); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-control); }
.btn .ax-icon { width: 18px; height: 18px; flex: none; }
.btn--primary, .btn--accent { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn--primary:hover, .btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--secondary { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: #333; border-color: #333; }
.btn--ghost { border-color: transparent; background: transparent; padding-inline: 12px; }
.btn--ghost:hover { background: var(--surface-3); }
.btn--text { border: 0; background: none; padding: 0; min-height: var(--tap); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.btn--text:hover { background: none; color: var(--accent-strong); }
.btn--danger { color: var(--danger); border-color: var(--danger); background: var(--surface); }
.btn--danger:hover { background: var(--danger-wash); }
.btn--sm { min-height: 44px; padding-inline: 14px; font-size: .9375rem; }
.btn--lg { min-height: 52px; padding-inline: 24px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--icon { width: var(--tap); min-height: var(--tap); padding: 0; border-color: transparent; background: transparent; }
.btn--icon:hover { background: var(--surface-3); }
.btn--icon .ax-icon { width: 22px; height: 22px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-row, .ax-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
@media (max-width: 479px) { .ax-actions--stack { flex-direction: column; align-items: stretch; } .ax-actions--stack .btn { width: 100%; } }
/* Plain button that looks like a link (sign-out, "Go through it again"). */
.ax-linkbutton { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ax-linkbutton:hover { color: var(--accent-strong); }

/* 7 Forms ----------------------------------------------------------------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink); }
.field__optional { font-weight: 400; color: var(--ink-3); }
.field__hint { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--danger); }
.field__error .ax-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.input, .select, .textarea { display: block; width: 100%; min-height: var(--control-h); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.4; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); appearance: none; -webkit-appearance: none; }
.textarea, textarea.input { padding-block: 12px; min-height: 120px; resize: vertical; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input--search { padding-left: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 20px; }
.input--search::-webkit-search-cancel-button { -webkit-appearance: none; }
/* The 6-digit code: big, spaced, numeric. */
.input--code { font-size: 1.75rem; font-weight: 600; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; min-height: 60px; padding-inline: 12px 0; max-width: 16rem; }
.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); } .form-grid--2 .field--wide { grid-column: 1 / -1; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.form-errors { border: 1px solid var(--danger); background: var(--danger-wash); color: var(--danger); border-radius: var(--r-control); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-meta); }
.form-errors ul { margin: var(--sp-1) 0 0; padding-inline-start: 1.2em; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding-block: 10px; cursor: pointer; font-size: var(--fs-body); line-height: 1.4; }
.check input[type="checkbox"], .check input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-strong); cursor: pointer; }
.check--small { font-size: var(--fs-meta); color: var(--ink-2); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }

/* 8 Choice rows, chips, tags ---------------------------------------------- */
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.choice:hover { border-color: var(--ink-2); }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.choice__check { margin-left: auto; width: 20px; height: 20px; color: var(--ink); opacity: 0; }
.choice:has(input:checked) { border: 2px solid var(--ink); padding: 11px 15px; background: var(--surface-3); }
.choice:has(input:checked) .choice__check { opacity: 1; }
.choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.choice-list { display: grid; gap: var(--sp-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-meta); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-current="true"], .chip[aria-current="page"], .chip[aria-pressed="true"], .chip.is-active, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-row { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chip-row { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; } }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-eyebrow); line-height: 1rem; font-weight: 500; color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.tag--accent { border-color: var(--accent-strong); color: var(--accent-strong); }
.tag--solid { background: rgba(23, 23, 23, .78); border-color: transparent; color: #fff; backdrop-filter: blur(4px); }
.tag .ax-icon { width: 14px; height: 14px; }

/* 9 Course card, topic tile, list row ------------------------------------- */
.course-card { position: relative; display: grid; gap: var(--sp-2); align-content: start; color: var(--ink); text-decoration: none; min-width: 0; }
.course-card__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: var(--surface-3); margin-bottom: var(--sp-2); }
.course-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms var(--ease); }
.course-card__chip { position: absolute; left: 10px; bottom: 10px; }
.course-card__topic { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.course-card__title { font-size: 1.125rem; line-height: 1.625rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__title a { text-decoration: none; color: inherit; }
.course-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-panel); }
.course-card__summary { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__facts { font-size: .8125rem; line-height: 1.125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.course-card__topic .course-card__tag { margin-inline-start: 8px; text-transform: none; letter-spacing: 0; vertical-align: 1px; }
.course-card__progress { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-meta); color: var(--ink-3); margin-top: var(--sp-1); font-variant-numeric: tabular-nums; }
.course-card__progress .progress { flex: 1; }
.course-card:hover .course-card__img { transform: scale(1.02); }
.course-card:hover .course-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.course-card:has(a:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 4px; border-radius: var(--r-panel); }
.course-card a:focus-visible { outline: none; }
/* Phone list variant: 96px square thumb, text beside. */
@media (max-width: 767px) {
  .course-card--row { grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--sp-4); row-gap: 2px; }
  .course-card--row .course-card__media { grid-row: 1 / span 6; align-self: start; width: 96px; height: 96px; aspect-ratio: auto; margin: 0; border-radius: 10px; }
  .course-card--row .course-card__chip { display: none; }
  .course-card--row .course-card__summary { -webkit-line-clamp: 1; }
}
.topic-tile { display: grid; gap: var(--sp-2); align-content: start; min-height: 132px; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.topic-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.topic-tile .ax-icon { width: 24px; height: 24px; color: var(--ink-3); margin-bottom: var(--sp-2); }
.topic-tile__name { font-size: 1rem; line-height: 1.375rem; font-weight: 600; }
.topic-tile__meta { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .topic-tile { padding: var(--sp-5); min-height: 148px; } }
/* A row in a list (My learning tabs, search results for lessons). */
.list { border-top: 1px solid var(--line); }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-4); align-items: center; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.list-row__title { font-weight: 600; }
.list-row__title a { text-decoration: none; }
.list-row__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.list-row__meta { font-size: var(--fs-meta); color: var(--ink-3); }
.list-row--thumb { grid-template-columns: 72px minmax(0, 1fr) auto; }
.list-row__thumb { width: 72px; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
@media (max-width: 479px) { .list-row--thumb { grid-template-columns: 56px minmax(0, 1fr); } .list-row--thumb .list-row__action { grid-column: 2; } .list-row__thumb { width: 56px; } }

/* 10 Accordion and tabs ---------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion > details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 56px; padding-block: 14px; cursor: pointer; list-style: none; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat; transition: transform var(--t-fast) var(--ease); }
.accordion details[open] > summary::after { transform: rotate(180deg); }
.accordion summary:hover { color: var(--ink-2); }
.accordion__body { padding-bottom: var(--sp-5); color: var(--ink-2); max-width: 64ch; display: grid; gap: var(--sp-3); }
.accordion__body > * { margin: 0; }
.tabs { display: flex; gap: var(--sp-5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--ink-3); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .tabs__n { font-size: var(--fs-eyebrow); background: var(--surface-3); border-radius: var(--r-pill); padding: 1px 7px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 11 Progress -------------------------------------------------------------- */
.progress { display: block; height: 4px; border-radius: 2px; background: var(--grey-200); overflow: hidden; min-width: 48px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 300ms var(--ease); }
.progress--thin { height: 3px; border-radius: 0; }
.ring { display: inline-grid; place-items: center; position: relative; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring__track { stroke: var(--grey-200); }
.ring__fill { stroke: var(--accent); transition: stroke-dashoffset 400ms var(--ease); }
.ring__label { position: absolute; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.ring--lg .ring__label { font-size: .875rem; }
.ax-progress-line { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ax-progress-line .progress { flex: 1; }

/* 12 Toast, sheet, menu ---------------------------------------------------- */
.toast-region { position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 32px), 440px); display: grid; gap: var(--sp-2); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: var(--sp-3); padding: 14px 16px; border-radius: var(--r-panel); background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); font-size: .9375rem; line-height: 1.4; pointer-events: auto; animation: ax-toast-in 250ms var(--ease); }
.toast .ax-icon { width: 20px; height: 20px; flex: none; color: var(--accent); }
.toast__body { flex: 1; }
.toast__body a { color: #fff; }
.toast__close { flex: none; border: 0; background: none; color: #bdbdbd; cursor: pointer; width: 28px; height: 28px; margin: -4px -6px -4px 0; display: grid; place-items: center; border-radius: 6px; }
.toast__close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.toast__close .ax-icon { width: 18px; height: 18px; color: inherit; }
.toast--alert { background: var(--surface); color: var(--danger); border: 1px solid var(--danger); }
.toast--alert .ax-icon { color: var(--danger); }
.toast--alert .toast__close { color: var(--ink-3); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; }
@keyframes ax-toast-in { from { opacity: 0; transform: translateY(8px); } }
/* Bottom sheet / side sheet: <dialog class="sheet">. */
.sheet { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--ink); }
.sheet::backdrop { background: rgba(23, 23, 23, .4); }
.sheet[open] { display: flex; align-items: flex-end; }
.sheet__panel { width: 100%; max-height: 85vh; overflow-y: auto; background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-pop); padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); animation: ax-sheet-up var(--t-sheet) var(--ease); }
.sheet__handle { width: 40px; height: 4px; border-radius: 2px; background: var(--grey-200); margin: 4px auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; margin-bottom: var(--sp-2); }
.sheet--full .sheet__panel { max-height: 100vh; height: 100%; border-radius: 0; padding-top: 0; }
@media (min-width: 768px) { .sheet--side[open] { justify-content: flex-end; align-items: stretch; } .sheet--side .sheet__panel { width: 400px; max-height: none; height: 100%; border-radius: 0; animation-name: ax-sheet-left; } }
@keyframes ax-sheet-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes ax-sheet-left { from { transform: translateX(24px); opacity: 0; } }
/* Dropdown menu: <details class="menu"><summary>…</summary><div class="menu__panel">…</div></details>. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-pop); display: grid; gap: 2px; }
.menu__panel--end { left: auto; right: 0; }
.menu__panel--wide { min-width: min(560px, calc(100vw - 32px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--sp-2); padding: 12px; }
.menu__item { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 8px 12px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.menu__item:hover, .menu__item:focus-visible { background: var(--surface-3); outline: none; }
.menu__item .ax-icon { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.menu__item small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; grid-column: 1 / -1; }
.menu__foot { grid-column: 1 / -1; }
.menu__label { padding: 8px 12px 4px; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; grid-column: 1 / -1; }

/* 13 Breadcrumbs, empty state, panel, notices ----------------------------- */
.crumbs { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "›"; color: var(--line-strong); }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--ink-2); }
.empty { display: grid; justify-items: start; gap: var(--sp-3); padding: var(--sp-6) 0; }
.empty .ax-icon { width: 32px; height: 32px; color: var(--ink-3); }
.empty__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.empty__text { color: var(--ink-2); max-width: 52ch; }
.empty--center { justify-items: center; text-align: center; }
.panel { background: var(--surface-2); border-radius: var(--r-panel); padding: var(--sp-5); }
.panel--white { background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 768px) { .panel { padding: var(--sp-6); } }
.notice { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-control); background: var(--surface-3); font-size: var(--fs-meta); color: var(--ink-2); }
.notice .ax-icon { width: 18px; height: 18px; flex: none; color: var(--ink-3); margin-top: 1px; }
.ax-greeting { font-size: var(--fs-meta); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.ax-greeting::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ax-steps { counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .ax-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ax-steps > li { counter-increment: step; display: grid; gap: var(--sp-2); }
.ax-steps > li::before { content: counter(step); font-size: 1.5rem; line-height: 1; font-weight: 600; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.ax-checklist { display: grid; gap: var(--sp-3); }
.ax-checklist > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.ax-checklist .ax-icon { width: 20px; height: 20px; color: var(--ink-3); margin-top: 2px; }
@media (min-width: 768px) { .ax-checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); } }

/* 14 App shell ------------------------------------------------------------- */
.ax-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.ax-header__bar { display: flex; align-items: center; gap: var(--sp-3); height: var(--header-h); }
.ax-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; min-height: var(--tap); flex: none; }
.ax-brand .ax-mark { width: 28px; height: 28px; }
.ax-brand__sub { font-weight: 400; color: var(--ink-3); }
.ax-nav { display: none; align-items: center; gap: 2px; margin-left: var(--sp-4); }
.ax-nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: var(--r-control); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .9375rem; cursor: pointer; }
.ax-nav__link:hover, .menu[open] > .ax-nav__link { color: var(--ink); background: var(--surface-3); }
.ax-nav__link[aria-current="page"] { color: var(--ink); }
.ax-nav__link .ax-icon { width: 16px; height: 16px; }
.ax-header__end { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.ax-search { display: none; position: relative; width: 260px; }
.ax-search .input { min-height: 40px; font-size: .9375rem; background-color: var(--surface-2); border-color: var(--line); }
.ax-search .input:focus { background-color: var(--surface); }
.ax-header__signin { display: none; }
.ax-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.ax-account > summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 4px; border-radius: var(--r-pill); }
.ax-account > summary:hover .ax-avatar { background: #333; }
.ax-account .menu__who { padding: 8px 12px 10px; font-size: var(--fs-meta); color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow-wrap: anywhere; }
.ax-account .menu__who b { display: block; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.ax-header__start-short { display: inline-flex; }
.ax-header__start-long { display: none; }
.ax-header .btn { min-height: 40px; padding-inline: 14px; font-size: .9375rem; }
.ax-header .btn--icon { width: var(--tap); min-height: var(--tap); padding: 0; }
@media (max-width: 1023px) { .ax-header .btn { min-height: var(--tap); } .ax-footer__brand .ax-brand { min-height: var(--tap); } }
/* The phone search row (opened by the search icon). */
.ax-searchbar { border-top: 1px solid var(--line); padding-block: var(--sp-3); }
.ax-searchbar form { display: flex; gap: var(--sp-2); }
.ax-searchbar .input { flex: 1; }
@media (min-width: 1024px) {
  .ax-nav { display: flex; }
  .ax-search { display: block; }
  .ax-header__search-toggle, .ax-header__menu-toggle, .ax-searchbar { display: none !important; }
  .ax-header__signin { display: inline-flex; }
  .ax-header__start-short { display: none; }
  .ax-header__start-long { display: inline-flex; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .ax-search { width: 200px; } }
@media (max-width: 479px) { .ax-header__end { gap: 2px; } .ax-header .ax-header__start { padding-inline: 12px; } .ax-header__bar { gap: var(--sp-2); } }
/* Phones: the mark + "Academy" (the full name is the link's title and label). */
@media (max-width: 419px) { .ax-brand__org { display: none; } }
/* Shell variants: focus (join, sign-in: logo + back only) and player (no header/footer). */
.ax--focus .ax-header { position: static; background: transparent; border-bottom: 0; backdrop-filter: none; }
.ax--focus { background: var(--surface-2); }
/* Phone menu sheet content */
.ax-sheetnav { display: grid; gap: 2px; }
.ax-sheetnav .menu__item { min-height: 48px; font-size: 1rem; }
.ax-sheetnav__label { padding: 16px 12px 6px; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.ax-sheetnav__actions { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); margin-top: var(--sp-3); border-top: 1px solid var(--line); }
/* Footer: quiet, grey-50. */
.ax-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: var(--sp-7) calc(var(--sp-6) + env(safe-area-inset-bottom)); font-size: var(--fs-meta); color: var(--ink-3); margin-top: auto; }
.ax-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .ax-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ax-footer__brand { display: grid; gap: var(--sp-2); align-content: start; }
.ax-footer__brand .ax-brand { min-height: 0; }
.ax-footer h2 { font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: var(--sp-3); }
.ax-footer ul { display: grid; gap: 2px; }
.ax-footer a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
@media (max-width: 767px) { .ax-footer a { min-height: var(--tap); } .ax-footer ul { gap: 0; } .crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); } .crumbs li:last-child:not(:first-child) { display: none; } }
.ax-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ax-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.ax-footer__main-site { font-weight: 500; color: var(--ink) !important; }
.ax-footer .ax-icon { width: 14px; height: 14px; }

/* 15 Legacy classes the kits' lessons and older templates use -------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: var(--sp-4); }
.muted { color: var(--ink-3); }
.table-wrap { overflow-x: auto; }
.figure img { width: 100%; object-fit: cover; border-radius: var(--r-panel); background: var(--surface-3); }
.figure figcaption { display: flex; justify-content: space-between; gap: var(--sp-4); padding-top: 8px; font-size: var(--fs-meta); color: var(--ink-3); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 56px; padding-block: 12px; list-style: none; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.375rem; font-weight: 400; color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--sp-5); color: var(--ink-2); }
.link--under { text-decoration: underline; text-underline-offset: 3px; }

/* 16 Utilities ------------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ax-icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ax-mark { display: block; flex: none; }
/* The Al Safwan Marine logo and the "logo | Academy" lockup (`alsafwan_logo/1`, `academy_lockup/1`). */
.ax-logo { display: block; flex: none; height: auto; max-width: 100%; }
.ax-lockup { --lockup-h: 32px; display: inline-flex; align-items: center; gap: calc(var(--lockup-h) * .375); color: var(--ink); line-height: 1; }
.ax-lockup__logo { height: var(--lockup-h); width: auto; }
.ax-lockup__rule { flex: none; width: 1px; height: calc(var(--lockup-h) * .8); background: var(--line-strong); }
.ax-lockup__word { font-weight: 500; font-size: calc(var(--lockup-h) * .56); letter-spacing: -0.01em; white-space: nowrap; }
.ax-center { text-align: center; }
.ax-w-measure { max-width: var(--measure); }
.ax-mt-0 { margin-top: 0; } .ax-mt-2 { margin-top: var(--sp-2); } .ax-mt-3 { margin-top: var(--sp-3); } .ax-mt-4 { margin-top: var(--sp-4); } .ax-mt-5 { margin-top: var(--sp-5); } .ax-mt-6 { margin-top: var(--sp-6); } .ax-mt-7 { margin-top: var(--sp-7); }
.ax-mb-2 { margin-bottom: var(--sp-2); } .ax-mb-4 { margin-bottom: var(--sp-4); } .ax-mb-5 { margin-bottom: var(--sp-5); }
@media (max-width: 767px) { .ax-hide-phone { display: none !important; } }
@media (min-width: 768px) { .ax-only-phone { display: none !important; } }
@media (max-width: 1023px) { .ax-only-desktop { display: none !important; } }
@media (min-width: 1024px) { .ax-hide-desktop { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .ax *, .ax *::before, .ax *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 17 Print ------------------------------------------------------------------ */
@media print {
  .ax-header, .ax-footer, .toast-region, .skip-link, .ax-no-print { display: none !important; }
  body.ax { background: #fff; display: block; }
  .ax a { text-decoration: none; }
  .ax-container { max-width: none; padding: 0; }
  @page { margin: 16mm; }
}

/* Launch-period band (shell/_launch): one quiet line above the header. */
.ax-launch { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: var(--ink, #171717); color: #f5f5f4; font-size: 13px; line-height: 1.4; text-align: center }
.ax-launch b { font-weight: 600; color: #fff }
.ax-launch a { color: #fff; text-decoration: underline; text-underline-offset: 3px }
.ax-launch__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent) }

/* "Continue with Google / Facebook" (ui/_email_form). */
.ax-oauth { display: grid; gap: 10px }
.ax-oauth__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px }
.ax-oauth__icon { flex: none }
.ax-oauth__or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted, #737373); font-size: 13px }
.ax-oauth__or::before, .ax-oauth__or::after { content: ""; flex: 1; height: 1px; background: var(--rule, #e5e5e5) }
