/* ═══════════════════════════════════════════════════════════════════════════
   Athenor Academy — Application layout & page styles
   © 2026 Squareflow Agency Athens. All rights reserved.
   Colour, type, radius, elevation and motion come from athenor-tokens.css.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --athenor-section: #262a60;
  --athenor-section-glow: #353b80;
  --athenor-section-ghost: #4c5397;
  --athenor-mesh: radial-gradient(60% 55% at 78% 22%, rgba(181,171,252,0.55), transparent 70%), radial-gradient(50% 50% at 30% 80%, rgba(38,42,96,0.16), transparent 70%), radial-gradient(45% 45% at 90% 85%, rgba(150,138,224,0.35), transparent 70%);

  /* ── Responsive architecture (Stage E.3 Task 7) ──────────────────────────
     Fluid tokens: one smooth interpolation from small phones to ultrawide,
     with deliberate min + max. Prefer these over per-breakpoint jumps. */
  --page-x: clamp(18px, 5.5vw, 96px);        /* horizontal page gutter        */
  --page-x-tight: clamp(16px, 4vw, 40px);    /* dense contexts (admin, cards) */
  --section-y: clamp(56px, 9vw, 140px);      /* gap between marketing sections*/
  --stack-y: clamp(24px, 4vw, 44px);         /* gap between in-page blocks     */
  --card-pad: clamp(18px, 1.4vw + 12px, 28px);
  --content-max: 1180px;                     /* app content column max         */
  --content-wide: 1680px;                    /* marketing / mega               */
  --reading-width: 68ch;
  --gap-btn: clamp(8px, 1.5vw, 12px);        /* button-group gap               */

  /* Fluid type scale — extends the h1/h2/h3 clamps below. */
  --text-display: clamp(36px, 20px + 5vw, 76px);
  --text-h1: clamp(30px, 22px + 2.6vw, 56px);
  --text-h2: clamp(24px, 19px + 1.7vw, 40px);
  --text-h3: clamp(19px, 17px + 0.7vw, 24px);
  --text-lead: clamp(16px, 15px + 0.4vw, 19px);

  /* Viewport-height unit — 100dvh where supported (mobile toolbar aware),
     100vh everywhere else. Used by full-height shells (auth, player, admin,
     dialogs). See @supports override below. */
  --vh100: 100vh;
  --vh100-min: 100vh;                        /* svh where supported — never taller than the small viewport */
}
@supports (height: 100dvh) {
  :root { --vh100: 100dvh; --vh100-min: 100svh; }
}
/* Athenor ships a single committed light design. Pin the UA colour-scheme so
   native controls (<button>, <select>, <input>, scrollbars, form borders) use
   light system colours even when the OS is in dark mode — otherwise a bare
   <button>'s text resolves to the dark-mode `ButtonText` (white) and any label
   that inherits from it (e.g. the course-detail curriculum module headings)
   becomes white-on-light and unreadable. Root-cause fix for that class of bug. */
html { scroll-behavior: smooth; color-scheme: light; }
body { background: var(--color-bg); color: var(--color-text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* Task 8 (WCAG 2.2 AA) — visually hidden but present for assistive tech; used
   for live-region announcements (e.g. the admin bulk-selection count) that
   have no useful sighted rendering of their own. */
.athenor-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Task 8 — "Skip to main content": clipped like .athenor-sr-only until
   keyboard-focused (the same hiding technique, not off-screen positioning —
   an element positioned outside the viewport via a negative offset is not
   reliably reached by sequential Tab navigation in every engine), then
   becomes a normal fixed, visible control pinned above everything else. */
.athenor-skip-link { position: fixed; top: 0; left: 0; z-index: 9999; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; background: var(--color-accent); color: #FEFEFD; font-size: 14px; font-weight: 600; text-decoration: none; }
.athenor-skip-link:focus { width: auto; height: auto; padding: 10px 18px; overflow: visible; clip: auto; border-radius: 8px; white-space: normal; }
h1 { font-size: clamp(34px, 24px + 2.9vw, 72px); letter-spacing: -0.01em; line-height: 1.08; }
h2 { font-size: clamp(30px, 22px + 1.9vw, 48px); letter-spacing: -0.005em; line-height: 1.15; }
h3 { font-size: clamp(21px, 18px + 0.6vw, 26px); }
@media (max-width: 767px) { body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── Responsive architecture (Task 7) ─────────────────────────────────────
   A single content-container helper + a handful of content-failure
   breakpoints. Component rules live near their component; page-level
   structural fixes for the design-tool markup are grouped here. */
img, video, canvas, svg { max-width: 100%; }
img, video { height: auto; }

/* Auth shell — the design ships a fixed 2-col grid (brand panel | form). It
   collapses to a single centred column before the form column gets squeezed;
   the decorative brand panel is dropped rather than stacked. */
/* brand panel layout + height owned here (the generator stripped the inline
   display/min-height so the media query below can actually drop it) */
/* very short screens (landscape phones): let the form scroll instead of
   vertically centring it out of reach */


/* ── Mobile CTA action group (Task 7.1 §2) ────────────────────────────────
   A paired / grouped PRIMARY + SECONDARY call-to-action row. Horizontal on
   tablet + desktop; below the phone breakpoint it becomes one full-width
   button per row with a consistent vertical gap. Apply ONLY to genuine CTA
   groups — never to header icon clusters, table row actions, toolbars,
   pagination, quiz options or other compact/utility controls. */
.athenor-actions { display: flex; flex-wrap: wrap; gap: var(--gap-btn); align-items: center; }
@media (max-width: 480px) {
  .athenor-actions { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; align-self: stretch; }
  .athenor-actions > .btn,
  .athenor-actions > button,
  .athenor-actions > a { width: 100%; white-space: normal; }
  /* a lone icon-only control inside a group (rare) keeps its size */
  .athenor-actions > .btn-icon { width: 44px; align-self: center; }
}

/* ── Checkout — full-width application layout (Stage E.4 Task 1C §1) ──────
   Form column genuinely expands to fill available width (no narrow
   max-width cap left over from an earlier centered-container design);
   the order summary stays in a fixed, readable 320–420px column. Below
   768 it collapses to a single column — the aside naturally falls after
   the form in source order, no JS reordering needed. */

/* Entrances of anything readable (menus, popovers, toasts) rise and are uncovered by a clip-path curtain — they never fade, so text is at
   full contrast on every frame. (A fade is only for decorative layers, which carry no text.) */
@keyframes athenor-fade-up { from { clip-path: inset(-24px -24px 100% -24px); transform: translateY(8px); } to { clip-path: inset(-24px -24px -24px -24px); transform: none; } }
@keyframes athenor-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes athenor-rise { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes athenor-spin { to { transform: rotate(360deg); } }
.athenor-menu-item { transition: background-color .16s ease, color .16s ease; }
.athenor-menu-item svg { transition: stroke .16s ease; }
.athenor-menu-item:hover, a.athenor-menu-item:hover { background: var(--athenor-tint); color: var(--color-text); }
.athenor-menu-item:hover svg { stroke: var(--color-accent); }
.athenor-menu-item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Admin shell (Figma · Admin / A1 Shell & overview; frontend/.build/pages.mjs adminShellHTML)
   A light sidebar of the panel's pages (collapsible to icons; a drawer below 1024), a top bar with search, the system
   status, notifications and the account; <main> opens with the page head.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --adm-sb: 260px; --adm-hd: 72px; --adm-gutter: clamp(16px, 2.5vw, 40px); }
.adm-collapsed { --adm-sb: 76px; }
body:has(.adm-app) { background: var(--ath-color-canvas); }
.adm-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 71; display: flex; flex-direction: column; width: var(--adm-sb);
  background: var(--ath-color-subtle); border-right: 1px solid var(--ath-color-border);
  transition: width var(--ath-duration-standard) var(--ath-ease-standard), transform var(--ath-duration-standard) var(--ath-ease-standard);
}
.adm-sb-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ath-space-2); min-height: var(--adm-hd); padding: 0 var(--ath-space-3) 0 var(--ath-space-4); }
.adm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ath-color-text); text-decoration: none; }
.adm-brand__mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ath-color-action); color: var(--ath-color-text-on-action); font: var(--ath-weight-regular) 18px / 1 var(--ath-font-serif); }
.adm-brand__text { display: flex; flex-direction: column; min-width: 0; }
.adm-brand__name { font: var(--ath-weight-regular) 22px / 1 var(--ath-font-serif); }
.adm-brand__tag { margin-top: 3px; font-size: 10px; font-weight: var(--ath-weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--ath-color-text-secondary); white-space: nowrap; }
.adm-sb-collapse { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); color: var(--ath-color-text-secondary); cursor: pointer; }
.adm-sb-collapse:hover { color: var(--ath-color-text); border-color: var(--ath-color-border-strong); }
.adm-sb-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: var(--ath-space-2) var(--ath-space-3); }
.adm-sb-group { margin: var(--ath-space-3) 0 var(--ath-space-1); padding: 0 var(--ath-space-3); font-size: var(--ath-text-caption); font-weight: var(--ath-weight-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--ath-color-text-secondary); }
.adm-sb-group:first-child { margin-top: 0; }
.adm-sb-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.adm-sb-item {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 38px; padding: 0 var(--ath-space-3);
  border-radius: var(--ath-radius-md); color: var(--ath-color-text); text-decoration: none; font-size: 15px;
}
.adm-sb-item svg { color: var(--ath-color-text-secondary); }
.adm-sb-item:hover { background: var(--ath-color-selected); }
.adm-sb-item[aria-current="page"] { background: var(--ath-color-selected); color: var(--ath-color-recognition); font-weight: var(--ath-weight-bold); box-shadow: inset 3px 0 0 var(--ath-color-action); }
.adm-sb-item[aria-current="page"] svg { color: var(--ath-color-action); }
.adm-sb-item:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: -2px; }
.adm-sb-item .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-sb-count { min-width: 22px; padding: 0 7px; border-radius: var(--ath-radius-full); background: var(--ath-color-warning-surface); color: var(--ath-color-text); font: var(--ath-weight-bold) 12px / 22px var(--ath-font-sans); text-align: center; }
.adm-sb-foot { display: flex; flex-direction: column; gap: var(--ath-space-3); padding: var(--ath-space-3) var(--ath-space-3) var(--ath-space-4); border-top: 1px solid var(--ath-color-border); }
.adm-sb-user { display: flex; align-items: center; gap: var(--ath-space-3); padding: 0 var(--ath-space-1); min-width: 0; }
.adm-sb-user__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.adm-sb-user__id strong, .adm-sb-user__id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-sb-user__id small { font-size: 13px; color: var(--ath-color-text-secondary); }
.adm-sys { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 var(--ath-space-2); font-size: 13px; color: var(--ath-color-text-secondary); }
.adm-sys__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ath-color-text-secondary); }
.adm-sys[data-state="ok"] .adm-sys__dot { background: var(--ath-color-success); }
.adm-sys[data-state="ok"].adm-sys--top { color: var(--ath-color-success); }
.adm-sys[data-state="attention"] .adm-sys__dot { background: var(--ath-color-error); }
.adm-sys[data-state="attention"] { color: var(--ath-color-error); }
/* collapsed: icons only, the name as a tooltip-free accessible label (the link text stays in the DOM) */
.adm-collapsed .adm-sb-head { flex-direction: column; justify-content: center; gap: 8px; padding: var(--ath-space-3) 0; }
.adm-collapsed .adm-brand__text, .adm-collapsed .adm-sb-group, .adm-collapsed .adm-sb-user__id, .adm-collapsed .adm-sys [data-sys-text] { display: none; }
.adm-collapsed .adm-sb-item { grid-template-columns: 20px; justify-content: center; padding: 0; }
.adm-collapsed .adm-sb-item .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.adm-collapsed .adm-sb-count { position: absolute; top: 2px; right: 6px; min-width: 18px; padding: 0 5px; line-height: 18px; font-size: 11px; }
.adm-collapsed .adm-sb-user, .adm-collapsed .adm-sys { justify-content: center; padding: 0; }

.adm-body { margin-left: var(--adm-sb); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; transition: margin-left var(--ath-duration-standard) var(--ath-ease-standard); }
.adm-topbar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: var(--ath-space-4); min-height: var(--adm-hd); padding: 0 var(--adm-gutter);
  background: color-mix(in srgb, var(--ath-color-canvas) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ath-color-border);
}
.adm-menu-btn, .adm-topbar-brand { display: none; }
.adm-topbar-search { display: flex; align-items: center; gap: 10px; flex: 0 1 440px; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); color: var(--ath-color-text-secondary); }
.adm-topbar-search:focus-within { outline: 2px solid var(--ath-color-focus); outline-offset: 1px; }
.adm-topbar-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ath-color-text); }
.adm-topbar-actions { display: flex; align-items: center; gap: var(--ath-space-3); margin-left: auto; }
.adm-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--ath-radius-md); background: none; color: var(--ath-color-text-secondary); cursor: pointer; }
.adm-icon-btn:hover, .adm-icon-btn[aria-expanded="true"] { background: var(--ath-color-selected); color: var(--ath-color-text); }
.adm-acct { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px 4px 4px; border: 0; border-radius: var(--ath-radius-full); background: none; color: var(--ath-color-text); cursor: pointer; font: inherit; }
.adm-acct:hover, .adm-acct[aria-expanded="true"] { background: var(--ath-color-selected); }
.adm-acct-id { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.adm-acct-id > span:first-child { font-weight: var(--ath-weight-bold); }
.adm-acct-id > span:last-child { font-size: 12px; color: var(--ath-color-text-secondary); }
.adm-acct > svg { color: var(--ath-color-text-secondary); }
.adm-usermenu-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-usermenu-id small { overflow-wrap: anywhere; white-space: normal; }

.adm-main { flex: 1; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1440px; padding: var(--ath-space-6) var(--adm-gutter) var(--ath-space-8); }
.adm-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ath-space-4); }
.adm-page-head__text { min-width: 0; }
.adm-page-title { margin: 0; font-size: clamp(28px, 22px + 1.2vw, 40px); line-height: 1.15; overflow-wrap: anywhere; }
.adm-page-sub { margin: var(--ath-space-2) 0 0; color: var(--ath-color-text-secondary); }
.adm-page-actions { display: flex; flex-wrap: wrap; gap: var(--ath-space-2); }
.adm-boot { display: grid; place-items: center; min-height: 50vh; }

/* notifications — the panel and the page share one item */
.adm-notif { width: min(420px, calc(100vw - 32px)); }
.adm-notif__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.adm-notif__empty { margin: 0; padding: var(--ath-space-4) 12px; color: var(--ath-color-text-secondary); }
.adm-form-stack { display: flex; flex-direction: column; gap: var(--ath-space-4); }
.adm-form-stack > * { margin: 0; }
.adm-msg-to { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--ath-space-4); font-weight: var(--ath-weight-bold); }
.adm-card-h__actions { display: flex; flex-wrap: wrap; gap: var(--ath-space-2); }
.adm-perm { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.adm-perm__note { display: block; font-size: var(--ath-text-caption); }
.adm-tbl tr.is-changed td { background: var(--ath-color-warning-surface); }
.adm-maint { display: flex; flex-direction: column; gap: var(--ath-space-4); max-width: 560px; }
.adm-maint .adm-field { max-width: 280px; }
.adm-notice { display: flex; align-items: flex-start; gap: var(--ath-space-3); padding: 14px 12px; border-top: 1px solid var(--ath-color-border); }
.adm-notice:first-child { border-top: 0; }
.adm-notice__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ath-color-text-secondary); }
.adm-notice--warn .adm-notice__dot { background: var(--ath-color-warning); }
.adm-notice--danger .adm-notice__dot { background: var(--ath-color-error); }
.adm-notice__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.adm-notice__body small { font-size: 13px; color: var(--ath-color-text-secondary); }
.adm-notice__act { flex: none; }
.adm-notices { padding: var(--ath-space-2) var(--ath-space-4); }
.adm-notices .adm-notice { align-items: center; }

/* below 1024: the sidebar is a drawer behind "Menu"; the top bar keeps the brand and the account */
@media (max-width: 1023px) {
  .adm-body { margin-left: 0; }
  .adm-sidebar { width: min(300px, 86vw); transform: translateX(-100%); box-shadow: var(--ath-shadow-overlay); }
  .adm-sidebar[data-open="1"] { transform: none; }
  .adm-collapsed .adm-sidebar { width: min(300px, 86vw); }
  .adm-sb-collapse { display: none; }
  .adm-collapsed .adm-brand__text, .adm-collapsed .adm-sb-group, .adm-collapsed .adm-sb-user__id { display: revert; }
  .adm-collapsed .adm-sb-head { flex-direction: row; justify-content: space-between; padding: 0 var(--ath-space-3) 0 var(--ath-space-4); }
  .adm-collapsed .adm-sb-item { grid-template-columns: 20px minmax(0, 1fr) auto; justify-content: stretch; padding: 0 var(--ath-space-3); }
  .adm-collapsed .adm-sb-item .lbl { position: static; width: auto; height: auto; clip: auto; }
  .adm-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); color: var(--ath-color-text); font: var(--ath-weight-bold) 15px var(--ath-font-sans); cursor: pointer; }
  .adm-topbar-brand { display: block; font: var(--ath-weight-regular) 22px / 1 var(--ath-font-serif); color: var(--ath-color-text); text-decoration: none; }
  .adm-acct-id, .adm-acct > svg, .adm-sys--top { display: none; }
  .adm-acct { padding: 4px; }
}
@media (max-width: 767px) {
  .adm-topbar { gap: var(--ath-space-2); }
  .adm-topbar-search { display: none; }
}
.adm-page-kicker { margin: 0 0 var(--ath-space-2); font-size: var(--ath-text-caption); font-weight: var(--ath-weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--ath-color-recognition); }
.adm-link { font-weight: var(--ath-weight-bold); color: var(--ath-color-action); text-underline-offset: 3px; }
.adm-strong, .adm-strong-link { font-weight: var(--ath-weight-bold); }
.adm-strong-link { color: var(--ath-color-text); text-decoration: none; }
.adm-strong-link:hover { color: var(--ath-color-action); text-decoration: underline; }
.adm-muted-line { font-size: 13px; color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }

/* Dashboard (Figma · Admin / Dashboard): sections side by side, each loading and failing on its own */
.adm-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.adm-dash-grid:empty { display: none; }
/* half-width cards: their tables fit the card from a tablet up (a phone keeps the documented sideways scroll) */
@media (min-width: 768px) { .adm-dash-grid .adm-tbl { min-width: 0; } }
.adm-dash-section { display: flex; flex-direction: column; gap: var(--ath-space-3); padding-bottom: var(--ath-space-4); }
.adm-dash-section > [data-body] { padding: 0 var(--ath-space-4); }
.adm-dash-section .adm-card-h { padding-bottom: 0; }
.adm-dash-section .adm-card-h .adm-link { align-self: flex-start; }
.adm-dash-loading { display: flex; flex-direction: column; gap: 14px; padding: var(--ath-space-4) var(--ath-space-2); }
.adm-dash-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3); padding: var(--ath-space-4); border-left: 3px solid var(--ath-color-error); border-radius: var(--ath-radius-md); background: var(--ath-color-error-surface); }
.adm-dash-error p { margin: 0; flex: 1 1 240px; }
.adm-notice__act { border: 0; background: none; padding: 0; font: inherit; font-weight: var(--ath-weight-bold); color: var(--ath-color-action); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adm-meter { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.adm-meter .adm-bar { width: 60px; }
.adm-meter--start { justify-content: flex-start; }
.adm-meter--start .adm-bar { width: 90px; }
.adm-mcard-amount { margin-top: 4px; font-size: 17px; }
.adm-cleanup-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-cleanup-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; overflow-wrap: anywhere; }

.adm-scrim { position: fixed; inset: 0; z-index: 70; background: var(--ath-color-scrim); }
.adm-card { background: var(--ath-color-surface); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-lg); }
.adm-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: var(--ath-space-5) var(--ath-space-5) 0; }
.adm-card-h h2 { margin: 0; font: var(--ath-weight-bold) 20px / 1.3 var(--ath-font-sans); }
.adm-card-h .sub { margin-top: 4px; font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-section > .adm-card-h--flush { padding: 0; }
.adm-prose { color: var(--ath-color-text); line-height: 1.7; }
.adm-prose > :first-child { margin-top: 0; }
.adm-prose > :last-child { margin-bottom: 0; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--ath-space-4); }
/* Figma · Admin KPI card: label, the figure, then what it is compared with; a decision queue is tinted */
.adm-kpi { display: flex; flex-direction: column; gap: 10px; padding: var(--ath-space-5); border: 1px solid var(--ath-color-border); box-shadow: none; color: var(--ath-color-text); text-decoration: none; }
.adm-kpi .lbl { font-size: 12px; font-weight: var(--ath-weight-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--ath-color-text-secondary); }
.adm-kpi .val { font: var(--ath-weight-regular) clamp(26px, 20px + 1vw, 34px) / 1.1 var(--ath-font-serif); overflow-wrap: anywhere; }
.adm-kpi .dlt { font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-kpi--link:hover { border-color: var(--ath-color-action); }
.adm-kpi--link:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: 2px; }
/* Analytics (Figma · Admin / Dashboard, Revenue): the period's figure, its change against the period before (a rise that is
   good is green, one that is bad red, a neutral one plain) and the period's shape under it */
.adm-kpi .dlt { display: flex; flex-wrap: wrap; gap: 0 6px; }
@media (min-width: 1024px) { .adm-kpis--grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-kpi__meta { font-size: 13px; color: var(--ath-color-text-secondary); }
.adm-kpi__meta[hidden] { display: none; }
.adm-kpi__spark { display: block; height: 32px; margin-top: auto; }
.adm-kpi__spark:empty { display: none; }
.adm-spark { display: block; width: 100%; height: 32px; overflow: visible; }
.adm-spark__line { fill: none; stroke: var(--ath-color-action); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-spark__area { fill: var(--ath-color-action); opacity: .1; }
.adm-delta { font-weight: var(--ath-weight-bold); color: var(--ath-color-text-secondary); }
.adm-delta--up, .adm-delta--down { white-space: nowrap; }
.adm-delta.is-good { color: var(--ath-color-success); }
.adm-delta.is-bad { color: var(--ath-color-error); }
.adm-delta__vs { color: var(--ath-color-text-secondary); }
/* a segmented choice (the period, the chart's metric): one pressed at a time */
.adm-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); }
.adm-seg__opt { min-height: 36px; padding: 0 12px; border: 0; border-radius: calc(var(--ath-radius-md) - 3px); background: none; font: inherit; font-size: 14px; color: var(--ath-color-text-secondary); cursor: pointer; white-space: nowrap; }
.adm-seg__opt:hover { background: var(--ath-color-subtle); color: var(--ath-color-text); }
.adm-seg__opt[aria-pressed="true"] { background: var(--ath-color-selected); color: var(--ath-color-recognition); font-weight: var(--ath-weight-bold); }
.adm-seg__opt:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: 1px; }
.adm-page-actions { align-items: center; }
@media (max-width: 767px) { .adm-seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; } }
/* the trend: the period's total and change, the chart, its data */
.adm-trend { gap: var(--ath-space-3); }
.adm-trend__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-size: 14px; }
.adm-chart { display: flex; flex-direction: column; gap: var(--ath-space-3); min-width: 0; }
.adm-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ath-color-text-secondary); }
.adm-chart__key { display: inline-flex; align-items: center; gap: 8px; }
.adm-chart__swatch { width: 18px; height: 0; border-top: 3px solid var(--ath-color-action); border-radius: 2px; }
.adm-chart__key--prev .adm-chart__swatch { border-top: 2px dashed var(--ath-color-text-secondary); }
.adm-chart__plot { position: relative; min-width: 0; border-radius: var(--ath-radius-md); touch-action: pan-y; }
.adm-chart__plot:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: 4px; }
.adm-chart__svg { display: block; overflow: visible; }
.adm-chart__grid { stroke: var(--ath-color-border); stroke-width: 1; }
.adm-chart__tick { fill: var(--ath-color-text-secondary); font: 12px var(--ath-font-sans); }
.adm-chart__stop { stop-color: var(--ath-color-action); stop-opacity: .22; }
.adm-chart__stop--end { stop-opacity: 0; }
.adm-chart__line { fill: none; stroke: var(--ath-color-action); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.adm-chart__line--prev { stroke: var(--ath-color-text-secondary); stroke-width: 1.75; stroke-dasharray: 5 5; opacity: .7; }
.adm-chart__point { fill: var(--ath-color-surface); stroke: var(--ath-color-action); stroke-width: 2; }
.adm-chart__cursor line { stroke: var(--ath-color-text-secondary); stroke-width: 1; stroke-dasharray: 3 3; }
.adm-chart__dot { fill: var(--ath-color-action); stroke: var(--ath-color-surface); stroke-width: 2; }
.adm-chart__dot--prev { fill: var(--ath-color-surface); stroke: var(--ath-color-text-secondary); }
.adm-chart__tip { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; min-width: 180px; padding: 10px 12px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-card); font-size: 13px; pointer-events: none; }
.adm-chart__tip[hidden] { display: none; }
.adm-chart__tip.is-left { transform: translateX(-100%); }
.adm-chart__tip-title { font-weight: var(--ath-weight-bold); }
.adm-chart__tip-row { display: flex; justify-content: space-between; gap: 16px; color: var(--ath-color-text-secondary); }
.adm-chart__tip-row strong { color: var(--ath-color-text); }
.adm-chart__tip-row--prev strong { font-weight: var(--ath-weight-regular); }
.adm-chart__data summary { width: fit-content; font-size: 14px; font-weight: var(--ath-weight-bold); color: var(--ath-color-action); cursor: pointer; }
.adm-chart__data[open] summary { margin-bottom: var(--ath-space-3); }
.adm-chart__data .adm-tbl-wrap { max-height: 320px; overflow: auto; }
/* ranked bars (revenue by course, by country): name and value, the bar as the share of the largest, a line under it */
.adm-rank { display: flex; flex-direction: column; gap: var(--ath-space-4); margin: 0; padding: var(--ath-space-2) var(--ath-space-1); list-style: none; }
.adm-rank__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-rank__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ath-space-3); }
.adm-rank__name { min-width: 0; overflow-wrap: anywhere; }
.adm-rank__value { white-space: nowrap; }
.adm-rank__bar { display: block; height: 8px; overflow: hidden; border-radius: var(--ath-radius-full); background: var(--ath-color-subtle); }
.adm-rank__bar svg { display: block; width: 100%; height: 100%; }
.adm-rank__bar rect { fill: var(--ath-color-action); }
.adm-rank__meta { font-size: 13px; color: var(--ath-color-text-secondary); }
/* a set of figures with a note under some of them (checkout and interest) */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--ath-space-3); margin: 0; padding: var(--ath-space-2) var(--ath-space-1); }
.adm-stat { display: flex; flex-direction: column; gap: 4px; padding: var(--ath-space-4); border-radius: var(--ath-radius-md); background: var(--ath-color-subtle); }
.adm-stat dt { font-size: 13px; color: var(--ath-color-text-secondary); }
.adm-stat dd { margin: 0; }
.adm-stat__value { font: var(--ath-weight-regular) 26px / 1.1 var(--ath-font-serif); }
.adm-stat__note { font-size: 13px; color: var(--ath-color-text-secondary); }
@media (max-width: 767px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .adm-kpi { padding: var(--ath-space-4); gap: 6px; }
}
/* ── Admin records (Figma · Admin / A2 Users — the table pattern every admin list shares) ─────────────────────────────────
   Filter chips, a toolbar (search, filters, the result count), a dark bulk bar once rows are selected, the table — and
   below 768 the same records as cards (admin.js dataTable() flips at the breakpoint; one state for both). */
.adm-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.adm-tbl th { position: sticky; top: 0; padding: 14px 16px; background: var(--ath-color-subtle); border-bottom: 1px solid var(--ath-color-border); text-align: left; font-size: 12px; font-weight: var(--ath-weight-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--ath-color-text-secondary); white-space: nowrap; }
.adm-tbl th:first-child, .adm-tbl td:first-child { padding-left: var(--ath-space-5); }
.adm-tbl th:last-child, .adm-tbl td:last-child { padding-right: var(--ath-space-5); }
.adm-tbl td { padding: 14px 16px; border-bottom: 1px solid var(--ath-color-border); vertical-align: middle; }
.adm-tbl tbody tr:hover { background: var(--ath-color-subtle); }
.adm-tbl tbody tr:last-child td { border-bottom: 0; }
.adm-tbl tbody tr.is-sel { background: var(--ath-color-selected); }
.adm-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-tbl .muted, .adm-muted { color: var(--ath-color-text-secondary); }
.adm-nowrap { white-space: nowrap; }
.adm-flow { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.adm-flow li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.adm-flow li > span { color: var(--ath-color-action); font-weight: var(--ath-weight-bold); }
.adm-access { display: inline-flex; align-items: center; gap: 6px; color: var(--ath-color-text-secondary); }
.adm-access--yes { color: var(--ath-color-success); font-weight: var(--ath-weight-bold); }
/* Figma · Permission denied: the refusal as the page itself, centred in the content area */
.adm-denied { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ath-space-3); max-width: 560px; margin: clamp(32px, 10vh, 120px) auto 0; }
.adm-denied .adm-page-sub { margin: 0 0 var(--ath-space-2); }
.adm-wrap { overflow-wrap: anywhere; }
.adm-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-code--strong { font-weight: var(--ath-weight-bold); font-size: 14px; }
.adm-text-success { color: var(--ath-color-success); font-weight: var(--ath-weight-bold); }
.adm-figure { font: var(--ath-weight-regular) 28px / 1.1 var(--ath-font-serif); }
.adm-who { display: flex; align-items: center; gap: 10px; }
.adm-who__avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--ath-color-selected); }
.adm-form-stack { display: flex; flex-direction: column; gap: 14px; }
.adm-form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.adm-card-note.adm-card-note--page { padding: 0; max-width: 80ch; }
/* Figma · Reports · Library: a card per report — its name, what it holds, its export */
.adm-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.adm-report { display: flex; flex-direction: column; gap: 10px; padding: var(--ath-space-5); }
.adm-report__title { margin: 0; font: var(--ath-weight-bold) 20px / 1.3 var(--ath-font-sans); }
.adm-report__text { flex: 1; margin: 0; color: var(--ath-color-text-secondary); }
.adm-report__action { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
/* a record's facts (Figma · User detail · Profile): label, then the value */
.adm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--ath-space-4) var(--ath-space-6); margin: 0; padding: var(--ath-space-4) var(--ath-space-5) var(--ath-space-5); }
.adm-facts > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-facts dt { font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-facts dd { margin: 0; font-weight: var(--ath-weight-bold); overflow-wrap: anywhere; }
.adm-card-note { margin: 0; padding: var(--ath-space-2) var(--ath-space-5) var(--ath-space-4); font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; font-weight: var(--ath-weight-bold); color: var(--ath-color-action); text-decoration: none; }
.adm-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-back + .adm-page-head { margin-top: calc(-1 * var(--ath-space-3)); }
.adm-text-danger { min-height: 40px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: var(--ath-weight-bold); color: var(--ath-color-error); cursor: pointer; }
.adm-text-danger:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-tbl .sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.adm-tbl .sort:hover { color: var(--ath-color-text); }
.adm-person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-person a, .adm-person strong { font-weight: var(--ath-weight-bold); color: var(--ath-color-text); text-decoration: none; overflow-wrap: anywhere; }
.adm-person a:hover { color: var(--ath-color-action); text-decoration: underline; }
.adm-person small { font-size: 13px; color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }
.adm-course-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-thumb { display: block; flex: none; width: 56px; height: 36px; overflow: hidden; border-radius: var(--ath-radius-sm); background: var(--ath-color-selected); }
.adm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the phone presentation of a record list */
.adm-mlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.adm-mcard { display: flex; flex-direction: column; gap: 12px; padding: var(--ath-space-4); border-top: 1px solid var(--ath-color-border); }
.adm-mcard.is-sel { background: var(--ath-color-selected); }
.adm-mlist > .adm-mcard:first-child { border-top: 0; }
.adm-mcard-h { display: flex; align-items: flex-start; gap: 12px; }
.adm-mcard-h > .adm-check { margin-top: 3px; }
.adm-mcard-id { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 15px; }
.adm-mcard-id a { font-weight: var(--ath-weight-bold); color: var(--ath-color-text); text-decoration: none; overflow-wrap: anywhere; }
.adm-mcard-id .muted { font-size: 13px; overflow-wrap: anywhere; }
.adm-mcard-sub { font-size: 13px; color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }
.adm-mcard-meta { display: grid; grid-template-columns: minmax(0, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.adm-mcard-meta > div { display: contents; }
.adm-mcard-meta dt { color: var(--ath-color-text-secondary); }
.adm-mcard-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.adm-mcard-meta dd .adm-badge { white-space: normal; }
.adm-mcard .adm-menu { right: 0; top: calc(100% + 4px); }

/* the bulk bar (Figma: dark, the selection count then its actions as text buttons) */
.adm-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: var(--ath-space-4) var(--ath-space-5) 0; padding: 12px 18px; border-radius: var(--ath-radius-md); background: var(--ath-color-inverse); color: var(--ath-color-text-on-inverse); }
.adm-selbar:not(:has(strong)) { background: none; color: var(--ath-color-text); padding: 0; }
.adm-selbar strong { font-size: 15px; }
.adm-selbar-acts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.adm-selbar .btn, .adm-selbar .ath-btn { min-height: 36px; padding: 0; border: 0; background: none; color: inherit; font-weight: var(--ath-weight-bold); font-size: 15px; box-shadow: none; }
.adm-selbar .btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-selbar .btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.adm-selbar [data-clear-sel] { margin-left: auto; }
.adm-selbar .btn.is-danger { color: color-mix(in srgb, var(--ath-color-error) 55%, var(--ath-color-text-on-inverse)); }
.adm-selall-m { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
@media (min-width: 768px) { .adm-selall-m { display: none; } }
@media (max-width: 767px) {
  /* Task 7.3 §8 — once something is selected, the bulk bar pins to the bottom of the viewport (safe-area aware);
     `body.adm-selbar-open` reserves the room so it never covers the last card. */
  .adm-selbar { margin: var(--ath-space-3) var(--ath-space-4) 0; }
  .adm-selbar--active {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    margin: 0; border-radius: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .adm-selbar--active .adm-selbar-acts { order: 3; flex: 1 1 100%; }
  body.adm-selbar-open .adm-main { padding-bottom: 120px; }
}
/* read-only lists (tableCard) ship BOTH a <table> and a card list — CSS picks one */
.adm-card--dual .adm-mlist { display: none; }
@media (max-width: 767px) {
  .adm-card--dual .adm-tbl-wrap { display: none; }
  .adm-card--dual .adm-mlist { display: flex; }
}
/* status (Figma · Tag: a mark and the word — never colour alone) */
.adm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid currentColor; border-radius: var(--ath-radius-full); font-size: 13px; font-weight: var(--ath-weight-bold); line-height: 1.4; white-space: nowrap; color: var(--ath-color-text-secondary); background: var(--ath-color-surface); }
.adm-badge > svg { flex: none; }
/* a status reads as a label: its first letter up (the words stay lower-case where a sentence uses them) */
.adm-badge__text { display: inline-block; }
.adm-badge__text::first-letter { text-transform: uppercase; }
.adm-badge--active { color: var(--ath-color-success); background: var(--ath-color-success-surface); }
.adm-badge--draft { color: var(--ath-color-text); border-color: var(--ath-color-warning); background: var(--ath-color-warning-surface); }
.adm-badge--danger { color: var(--ath-color-error); background: var(--ath-color-error-surface); }
.adm-badge--info { color: var(--ath-color-info); background: var(--ath-color-info-surface); }
.adm-badge--wrap { white-space: normal; }
.adm-bar { height: 6px; min-width: 70px; overflow: hidden; border-radius: var(--ath-radius-full); background: var(--ath-color-selected); }
.adm-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ath-color-action); }
.adm-btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: var(--ath-radius-md); }
.adm-btn-sm.btn-icon { width: 40px; height: 40px; padding: 0; }
/* selection: the design system's checkbox (Figma · Checkbox), with the partial-selection (indeterminate) state */
.adm-check {
  appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-sm); background: var(--ath-color-surface);
  vertical-align: middle; cursor: pointer;
}
.adm-check:hover { border-color: var(--ath-color-action); }
.adm-check:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: 2px; }
.adm-check:checked, .adm-check:indeterminate { border-color: var(--ath-color-action); background: var(--ath-color-action); }
.adm-check:checked::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ath-color-text-on-action); border-bottom: 2px solid var(--ath-color-text-on-action); transform: rotate(-45deg) translate(0.5px, -1px); }
.adm-check:indeterminate::before { content: ""; width: 9px; height: 2px; border-radius: 1px; background: var(--ath-color-text-on-action); }
.adm-check:disabled { opacity: .45; cursor: not-allowed; }
.adm-check[type="radio"] { border-radius: 50%; }
.adm-check[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--ath-color-surface); }
.adm-check[type="radio"]:checked::before { content: none; }
/* toolbar: search, filters, the count */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: var(--ath-space-4) var(--ath-space-5); }
.adm-toolbar .input, .adm-toolbar select { min-height: 44px; font-size: 15px; }
.adm-toolbar select.input { width: auto; padding-right: 32px; color: var(--ath-color-text); }
.adm-search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); color: var(--ath-color-text-secondary); }
.adm-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ath-color-text); }
.adm-search:focus-within { outline: 2px solid var(--ath-color-focus); outline-offset: 1px; }
.adm-count { margin-left: auto; font-size: 14px; color: var(--ath-color-text-secondary); }
/* filter chips (Figma: "All users · 2,846") — honest toggle buttons */
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--ath-space-5) var(--ath-space-5) 0; }
.adm-tab { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-full); background: var(--ath-color-surface); font: inherit; font-size: 15px; font-weight: var(--ath-weight-bold); color: var(--ath-color-text); cursor: pointer; }
.adm-tab:hover { border-color: var(--ath-color-action); }
.adm-tab[aria-pressed="true"] { border-color: var(--ath-color-action); background: var(--ath-color-selected); color: var(--ath-color-recognition); }
.adm-tab:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: 2px; }
.adm-tab__count { font-weight: var(--ath-weight-regular); }
/* row actions (§15.1: portaled to <body> by dataTable(), so never clipped by the table's scroll) */
.adm-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; max-width: 280px; padding: var(--ath-space-2); background: var(--ath-color-elevated); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-lg); box-shadow: var(--ath-shadow-overlay); }
.adm-menu a, .adm-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--ath-radius-md); background: none; font: inherit; font-size: 15px; color: var(--ath-color-text); text-align: left; text-decoration: none; cursor: pointer; }
.adm-menu a:hover, .adm-menu button:hover, .adm-menu a:focus-visible, .adm-menu button:focus-visible { background: var(--ath-color-subtle); outline: none; }
.adm-menu .danger { color: var(--ath-color-error); }
.adm-menu .danger:hover { background: var(--ath-color-error-surface); }
/* ── Record detail (Figma · Admin drawers): a right-hand drawer; on a phone, a full-screen sheet ── */
.adm-sheet-backdrop { position: fixed; inset: 0; z-index: 210; display: flex; justify-content: flex-end; background: var(--ath-color-scrim); }
.adm-sheet { display: flex; flex-direction: column; width: min(520px, 100%); height: 100%; max-height: 100dvh; background: var(--ath-color-surface); box-shadow: var(--ath-shadow-overlay); outline: none; transition: transform var(--ath-duration-standard) var(--ath-ease-standard); }
.adm-sheet-h { display: flex; align-items: flex-start; gap: 12px; flex: none; padding: var(--ath-space-5) var(--ath-space-6) var(--ath-space-3); }
.adm-sheet-h__text { flex: 1 1 auto; min-width: 0; }
.adm-sheet-close { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: var(--ath-weight-bold); color: var(--ath-color-action); cursor: pointer; }
.adm-sheet-close:hover { text-decoration: underline; text-underline-offset: 3px; }
.adm-sheet-h h2 { margin: 0; font: var(--ath-weight-regular) 28px / 1.2 var(--ath-font-serif); overflow-wrap: anywhere; }
.adm-sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 var(--ath-space-6) var(--ath-space-5); }
.adm-sheet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; flex: none; padding: var(--ath-space-4) var(--ath-space-6) calc(var(--ath-space-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--ath-color-border); }
@media (max-width: 767px) {
  .adm-sheet-backdrop { justify-content: stretch; }
  .adm-sheet { width: 100%; height: var(--vh100, 100dvh); max-height: none; }
  .adm-sheet-h, .adm-sheet-body { padding-inline: var(--ath-space-4); }
  .adm-sheet-actions { flex-direction: column; align-items: stretch; padding-inline: var(--ath-space-4); }
  .adm-sheet-actions > .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .adm-sheet { transition: none; } }
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(40px, 6vw, 72px) var(--ath-space-5); text-align: center; }
.adm-empty h3 { margin: 6px 0 0; font: var(--ath-weight-regular) 24px / 1.25 var(--ath-font-serif); }
.adm-empty p { margin: 0; max-width: 46ch; color: var(--ath-color-text-secondary); }
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-field > label { font-size: 15px; font-weight: var(--ath-weight-bold); color: var(--ath-color-text); }
.adm-field .hint { font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }
.adm-section { display: flex; flex-direction: column; gap: 18px; padding: var(--ath-space-5); }
.adm-section-h { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--ath-color-border); }
.adm-section-h h2, .adm-section-h h3 { margin: 0; font: var(--ath-weight-bold) 20px / 1.3 var(--ath-font-sans); }
.adm-section--danger { border-color: color-mix(in srgb, var(--ath-color-error) 40%, var(--ath-color-border)); }
.adm-subsection { display: flex; flex-direction: column; gap: var(--ath-space-3); padding-top: var(--ath-space-5); border-top: 1px solid var(--ath-color-border); }
.adm-subsection h3 { margin: 0; font: var(--ath-weight-bold) 17px / 1.3 var(--ath-font-sans); }
.adm-subsection > p { margin: 0; }
.adm-stack { display: flex; flex-direction: column; gap: 20px; }
.adm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-actions--split { justify-content: space-between; }
.adm-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.adm-dl dt { color: var(--ath-color-text-secondary); }
.adm-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-dl code, .adm-code { font: 13px var(--ath-font-mono); overflow-wrap: anywhere; }
.adm-alert { margin: 0; padding: 12px 16px; border-left: 3px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-md); background: var(--ath-color-subtle); }
.adm-alert--warn { border-left-color: var(--ath-color-warning); background: var(--ath-color-warning-surface); }
.adm-alert--error { border-left-color: var(--ath-color-error); background: var(--ath-color-error-surface); }
.adm-text-error { color: var(--ath-color-error); }
.adm-form-msg { font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-note { margin: 0; font-size: 14px; }
.adm-file-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-file-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); }
.adm-file-list .adm-scorm { flex-direction: column; align-items: stretch; }
.adm-scorm__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.adm-scorm__report { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }
.adm-scorm__report p { margin: 0; }
.adm-scorm__reasons { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 1.25em; }
.adm-guide { padding: 12px 16px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); font-size: 14px; }
.adm-guide > summary { cursor: pointer; font-weight: var(--ath-weight-bold); }
.adm-guide > p { margin: 12px 0 0; }
.adm-guide > ol { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding-left: 1.4em; }
.adm-file-input { max-width: 360px; }
/* the instructor's page (ACCOUNT-08 follow-up): photo beside its actions, the signature on a paper-white ground as on a certificate */
.adm-field--wide { grid-column: 1 / -1; }
/* Certificates · a course's digital certificate: the source per language version, the texts per language, the alignments */
.adm-cs-sources { display: grid; gap: var(--ath-space-2); margin: 0; padding: 0; border: 0; }
.adm-check-row { display: flex; align-items: flex-start; gap: var(--ath-space-3); padding: var(--ath-space-3) var(--ath-space-4); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); cursor: pointer; }
.adm-check-row:has(:checked) { border-color: var(--ath-color-action); background: var(--ath-color-selected); }
.adm-check-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-check-row small { font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-cs-variants, .adm-cs-aligns { display: flex; flex-direction: column; gap: var(--ath-space-3); margin: 0; padding: 0; list-style: none; }
.adm-cs-variant { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: var(--ath-space-4); padding-top: var(--ath-space-3); border-top: 1px solid var(--ath-color-border); }
.adm-cs-variant > p { margin: 0; }
.adm-cs-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--ath-space-5); }
.adm-cs-lang { display: flex; flex-direction: column; gap: var(--ath-space-3); min-width: 0; margin: 0; padding: var(--ath-space-4); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); }
.adm-cs-lang > legend { padding: 0 var(--ath-space-2); font-weight: var(--ath-weight-bold); }
.adm-cs-align { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) auto; align-items: end; gap: var(--ath-space-3); padding-bottom: var(--ath-space-3); border-bottom: 1px solid var(--ath-color-border); }
.adm-cs-align > .adm-text-danger { min-height: 44px; }
@media (max-width: 640px) { .adm-cs-variant { grid-template-columns: minmax(0, 1fr); } .adm-cs-align { grid-template-columns: minmax(0, 1fr); } }
.adm-instructor-photo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ath-space-5); }
.adm-instructor-photo__body { display: flex; flex-direction: column; gap: var(--ath-space-2); min-width: 0; }
.adm-instructor-photo__body h3 { margin: 0; font: var(--ath-weight-bold) 17px / 1.3 var(--ath-font-sans); }
.adm-instructor-photo__body p { margin: 0; }
.adm-signature { display: flex; align-items: center; justify-content: center; max-width: 480px; min-height: 120px; padding: var(--ath-space-5); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); background: var(--ath-white); }
.adm-signature img { display: block; max-width: 100%; max-height: 120px; }
.adm-page-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--ath-space-3); }
.adm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-crumbs a { color: var(--ath-color-action); text-decoration: none; }
.adm-crumbs a:hover { text-decoration: underline; }
.adm-crumbs + .adm-page-head { margin-top: calc(-1 * var(--ath-space-2)); }
/* a long record page's section bar (Figma · Editor tabs): sticky under the top bar, Save at its end */
.adm-section-nav { position: sticky; top: var(--adm-hd); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-inline: calc(-1 * var(--adm-gutter)); padding: 8px var(--adm-gutter); border-bottom: 1px solid var(--ath-color-border); background: color-mix(in srgb, var(--ath-color-canvas) 94%, transparent); backdrop-filter: blur(8px); }
.adm-section-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.adm-section-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 3px solid transparent; font-weight: var(--ath-weight-bold); color: var(--ath-color-text); text-decoration: none; }
.adm-section-nav a:hover { color: var(--ath-color-action); }
.adm-section-nav a[aria-current="true"] { border-bottom-color: var(--ath-color-action); color: var(--ath-color-recognition); }
.adm-section-nav__save { display: inline-flex; align-items: center; gap: 12px; }
main.adm-main [id] { scroll-margin-top: calc(var(--adm-hd) + 72px); }
@media (max-width: 767px) { .adm-section-nav { position: static; } }
.adm-section-h p { margin: 0; font-size: 14px; color: var(--ath-color-text-secondary); }
.adm-switch { position: relative; flex: none; width: 44px; height: 26px; border: 0; border-radius: var(--ath-radius-full); background: var(--ath-color-border-strong); cursor: pointer; transition: background var(--ath-duration-fast) var(--ath-ease-standard); }
.adm-switch[aria-checked="true"] { background: var(--ath-color-action); }
.adm-switch > span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); transition: left var(--ath-duration-fast) var(--ath-ease-standard); }
.adm-switch[aria-checked="true"] > span { left: 21px; }
/* ═══════════════════════════════════════════════════════════════════════════
   Home (Figma · Public / Home)
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-hero { background: radial-gradient(60% 90% at 85% 10%, color-mix(in srgb, var(--ath-color-action) 14%, transparent), transparent 70%), radial-gradient(50% 80% at 5% 100%, color-mix(in srgb, var(--ath-color-recognition) 8%, transparent), transparent 70%); }
.ath-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 120px); align-items: center; padding-block: clamp(56px, 8vw, 136px); }
.ath-hero__copy { display: flex; flex-direction: column; gap: var(--ath-space-5); max-width: 640px; }
.ath-hero__copy .ath-kicker { margin-bottom: 0; }
.ath-hero__title { margin: 0; font-size: clamp(38px, 26px + 3vw, 64px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.ath-hero__lead { margin: 0; font-size: clamp(17px, 1.2vw + 12px, 20px); line-height: 1.55; color: var(--ath-color-text-secondary); max-width: 52ch; }
.ath-hero-search { display: flex; flex-direction: column; gap: var(--ath-space-2); }
.ath-hero-search__row { display: flex; gap: var(--ath-space-2); }
.ath-hero-search__row .ath-input { flex: 1; min-width: 0; }
.ath-hero__media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--ath-radius-xl); overflow: hidden; box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card); }
.ath-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
@media (max-width: 1023px) { .ath-hero__grid { grid-template-columns: 1fr; } .ath-hero__media { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) { .ath-hero-search__row { flex-direction: column; } }

.ath-partners { border-block: 1px solid var(--ath-color-border); background: color-mix(in srgb, var(--ath-color-surface) 80%, transparent); }
.ath-partners__inner { display: flex; flex-direction: column; gap: var(--ath-space-4); padding-block: clamp(28px, 3vw, 44px); }
.ath-partners__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.ath-partners__head .ath-kicker { margin: 0; color: var(--ath-color-text-secondary); }
.ath-partners__lead { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-partners__band { display: flex; align-items: center; gap: var(--ath-space-4); }
.ath-marquee__track--partners { animation-duration: 40s; }
.ath-marquee__track--partners li { padding-inline: 20px; }
.ath-marquee__track--partners li::before { display: none; }
/* partner logos: one ink, one height (the files are monochrome, transparent, 160 px tall for sharp 2x) */
.ath-partner-logo { display: block; width: auto; height: 48px; max-width: none; opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ath-partner-logo { filter: invert(1); } }
:root[data-theme="dark"] .ath-partner-logo { filter: invert(1); }

.ath-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--ath-space-4); }
.ath-topic {
  display: flex; flex-direction: column; gap: var(--ath-space-2); min-height: 132px; padding: var(--ath-space-5);
  border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline);
  color: var(--ath-color-text); text-decoration: none;
  transition: box-shadow var(--ath-duration-standard) var(--ath-ease-standard), transform var(--ath-duration-standard) var(--ath-ease-standard);
}
.ath-topic:hover { color: var(--ath-color-text); box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card); transform: translateY(calc(-1 * var(--ath-distance-xs))); }
.ath-topic__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--ath-radius-md); background: var(--ath-color-selected); color: var(--ath-color-recognition); }
.ath-topic__name { margin-top: auto; font-weight: var(--ath-weight-bold); font-size: 17px; }
.ath-topic__count { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-topic--skeleton { background: var(--ath-color-subtle); box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   Catalogue (Figma · Public / Catalogue)
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-catalogue__body { padding-block: var(--ath-space-6) clamp(56px, 6vw, 96px); }
.ath-catalogue__cats { margin-bottom: var(--ath-space-6); }
.ath-catalogue__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 3vw, 48px); align-items: start; }
.ath-course-grid--catalogue { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ath-catalogue__pager { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: var(--ath-space-7); }
.ath-catalogue__range { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
@media (max-width: 1199px) { .ath-catalogue__layout { grid-template-columns: 240px minmax(0, 1fr); } }
/* Catalogue · Loading — the skeleton filters stand where the filters will be; a phone gets the cards only */
.ath-filters-skeleton { display: flex; flex-direction: column; gap: 14px; }
.ath-filters-skeleton > .ath-skeleton-line--title:not(:first-child) { margin-top: var(--ath-space-4); }
.ath-page-head__search--skeleton { width: min(560px, 100%); height: 48px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); }
@media (max-width: 1023px) { .ath-catalogue__layout { grid-template-columns: 1fr; } .ath-catalogue__skeleton-filters { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Course page (Figma · Public / Course page)
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-course-head { background: color-mix(in srgb, var(--ath-color-subtle) 90%, transparent); border-bottom: 1px solid var(--ath-color-border); }
.ath-course-head__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(32px, 4vw, 56px); }
.ath-course-head__copy { display: flex; flex-direction: column; gap: var(--ath-space-3); min-width: 0; }
.ath-course-head__title { margin: var(--ath-space-2) 0 0; font-size: clamp(34px, 24px + 2.4vw, 56px); line-height: 1.1; text-wrap: balance; }
.ath-course-head__subtitle { margin: 0; font-size: clamp(19px, 1.2vw + 12px, 22px); color: var(--ath-color-text); }
.ath-course-head__desc { margin: 0; max-width: 60ch; color: var(--ath-color-text-secondary); font-size: 17px; }
.ath-course-head__facts { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-course-head__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ath-course-head__badges .ath-badge svg { width: 14px; height: 14px; }
.ath-course-head__learners { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-course-head__variants { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: var(--ath-text-small); }
.ath-course-head__variants > span { color: var(--ath-color-text-secondary); }
.ath-course-head__variants ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; }
.ath-course-head__variants [aria-current] { font-weight: var(--ath-weight-bold); }
.ath-course-head__note { margin: 0; max-width: 60ch; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-course-head__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--ath-radius-lg); overflow: hidden; background: var(--ath-color-selected); box-shadow: var(--ath-shadow-hairline); }
.ath-course__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: var(--ath-space-6) clamp(56px, 6vw, 96px); }
.ath-course__layout > .ath-enrol { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--ath-header-h) + 76px); }
.ath-course__content { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; }
.ath-course-section { padding-block: var(--ath-space-6); border-bottom: 1px solid var(--ath-color-border); scroll-margin-top: calc(var(--ath-header-h) + 72px); }
.ath-course-section:last-child { border-bottom: 0; }
.ath-course-section__title { margin: 0 0 var(--ath-space-5); font-size: clamp(26px, 20px + 1vw, 32px); }
@media (max-width: 1023px) {
  .ath-course-head__grid { grid-template-columns: 1fr; }
  .ath-course__layout { grid-template-columns: 1fr; }
  .ath-course__layout > .ath-enrol, .ath-course__content { grid-column: 1; grid-row: auto; position: static; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   My learning (Figma · Learner / My learning) — my-courses.html
   Welcome + title, the "continue" card, the status filter, then the learner's
   courses as design-system cards grouped In progress / Completed.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-learning__head { display: flex; flex-direction: column; gap: var(--ath-space-2); margin: 0; }
.ath-learning__welcome { font: var(--ath-weight-regular) var(--ath-text-body) / var(--ath-leading-body) var(--ath-font-sans); color: var(--ath-color-text-secondary); }
.ath-learning__title { font-size: clamp(32px, 24px + 1.6vw, 52px); line-height: 1.15; }
.ath-learning__summary { margin: var(--ath-space-3) 0 0; color: var(--ath-color-text-secondary); }
.ath-learning__filter { margin-block: clamp(32px, 4vw, 48px) var(--ath-space-6); }
.ath-course-grid--learning { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ath-chip__count { margin-left: 6px; font-weight: var(--ath-weight-regular); color: var(--ath-color-text-secondary); }

/* Continue card: image · course + progress · Resume */
.ath-continue {
  display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr) auto; align-items: center; gap: var(--ath-space-6);
  margin-top: clamp(28px, 3vw, 40px); padding: var(--ath-space-5); border-radius: var(--ath-radius-lg);
  background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card);
}
.ath-continue__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ath-radius-md); background: var(--ath-color-selected); }
.ath-continue__body { display: flex; flex-direction: column; gap: var(--ath-space-2); min-width: 0; }
.ath-continue__body .ath-kicker { margin-bottom: 0; }
.ath-continue__title { margin: 0; font-size: var(--ath-text-heading-2); line-height: var(--ath-leading-heading-2); overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .ath-continue { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
  .ath-continue__action { grid-column: 2; justify-self: start; }
}
@media (max-width: 639px) {
  .ath-continue { grid-template-columns: 1fr; gap: var(--ath-space-4); padding: var(--ath-space-4); }
  .ath-continue__action { grid-column: auto; width: 100%; }
}

/* Moodle's progress: bar + "60% complete", or the honest note when there is no number */
.ath-progress-row { display: flex; align-items: center; gap: var(--ath-space-3); max-width: 420px; margin-top: var(--ath-space-1); }
.ath-progress-row .ath-progress { flex: 1; }
.ath-progress-row__value { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); white-space: nowrap; }
.ath-progress-row__note { margin: var(--ath-space-1) 0 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   Certificates & credentials (Figma · Learner / Certificates, Certificates · Detail)
   credentials.html, credential-detail.html — what Moodle issued, each with its
   verification link; the detail adds the certificate, sharing and the holder's choice.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-cred-head__stats { display: flex; gap: var(--ath-space-5); margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-cred-head__stats strong { margin-right: 4px; font: var(--ath-weight-regular) var(--ath-text-heading-2) / 1 var(--ath-font-serif); color: var(--ath-color-text); }
.ath-cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--ath-space-5); margin: 0; padding: 0; list-style: none; }

/* Credential card */
.ath-credential {
  display: flex; flex-direction: column; gap: var(--ath-space-3); height: 100%; padding: var(--ath-space-5);
  border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline);
}
.ath-credential__tags { display: flex; flex-wrap: wrap; gap: var(--ath-space-2); }
.ath-credential__head { display: flex; align-items: flex-start; gap: var(--ath-space-4); }
.ath-credential__seal { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ath-color-selected); color: var(--ath-color-recognition); }
.ath-credential__seal--image { background: none; }
.ath-credential__seal--image img { width: 44px; height: 44px; object-fit: contain; }
.ath-credential__seal--lens { width: 48px; height: 48px; background: none; }   /* the certificate seal (Lens) — its own ground */
.ath-credential__heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ath-credential__title { margin: 0; font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); overflow-wrap: anywhere; }
.ath-credential__title:focus { outline: none; }
.ath-credential__meta { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }
.ath-credential__id { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-credential__id code, .ath-cred-detail code { font: 13px / 1.5 var(--ath-font-mono); color: var(--ath-color-text); overflow-wrap: anywhere; }
.ath-credential__portable { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-credential__portable--ok { color: var(--ath-color-success); }
.ath-credential__note { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-credential__actions { display: flex; flex-direction: column; gap: var(--ath-space-3); margin-top: auto; padding-top: var(--ath-space-3); }

/* Ready / in progress / achievements: one list card, rows divided */
.ath-cred-list { margin: 0; padding: 0 var(--ath-space-5); list-style: none; border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-cred-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3) var(--ath-space-5); padding: var(--ath-space-4) 0; }
.ath-cred-row + .ath-cred-row { border-top: 1px solid var(--ath-color-border); }
.ath-cred-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1 1 260px; }
.ath-cred-row__title { font-weight: var(--ath-weight-bold); overflow-wrap: anywhere; }
.ath-cred-row__meta { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-cred-row__criteria { margin: 4px 0 0; padding-left: 18px; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }

/* Detail: the credential card beside its details */
.ath-cred-detail .ath-credential__tags { margin-bottom: var(--ath-space-3); }
.ath-cred-detail__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(24px, 3vw, 40px); align-items: start; margin-top: clamp(28px, 3vw, 40px); }
.ath-credential--detail { gap: var(--ath-space-4); height: auto; }
.ath-cred-detail__verify a { color: var(--ath-color-action); }
.ath-cred-detail__holder { padding-top: var(--ath-space-4); border-top: 1px solid var(--ath-color-border); }
.ath-cred-detail__aside { display: flex; flex-direction: column; gap: var(--ath-space-5); }
@media (max-width: 1023px) { .ath-cred-detail__layout { grid-template-columns: 1fr; } }

/* The credential plate — shown when Moodle has no certificate PDF for this credential */
.ath-cred-plate {
  display: flex; flex-direction: column; align-items: center; gap: var(--ath-space-2); padding: clamp(24px, 4vw, 44px) var(--ath-space-5);
  border: 1px solid var(--ath-color-recognition); border-radius: var(--ath-radius-md); background: var(--ath-color-selected); text-align: center;
}
.ath-cred-plate__badge { width: 96px; height: 96px; object-fit: contain; }
.ath-cred-plate__kicker { font: var(--ath-weight-bold) var(--ath-text-label) / var(--ath-leading-label) var(--ath-font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ath-color-recognition); }
.ath-cred-plate__name { font: var(--ath-weight-regular) clamp(26px, 20px + 1.2vw, 34px) / 1.2 var(--ath-font-serif); overflow-wrap: anywhere; }
.ath-cred-plate__title { font: var(--ath-weight-regular) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-serif); overflow-wrap: anywhere; }
.ath-cred-plate__meta { font: 13px / 1.5 var(--ath-font-mono); color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }

/* Side panels: details, criteria, the portable (Open Badges 3.0) credential */
.ath-cred-panel { display: flex; flex-direction: column; gap: var(--ath-space-3); padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-cred-panel__title { margin: 0; font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-cred-panel__sub { margin: var(--ath-space-2) 0 0; font: var(--ath-weight-bold) var(--ath-text-body) / var(--ath-leading-body) var(--ath-font-sans); }
.ath-cred-panel__text { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-cred-panel__warn { margin: 0; padding: 8px 12px; border-radius: var(--ath-radius-md); background: var(--ath-color-warning-surface); color: var(--ath-color-text); font-size: var(--ath-text-small); }
.ath-cred-panel__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--ath-text-small); }
.ath-cred-panel__action { align-self: flex-start; }

/* ═══════════════════════════════════════════════════════════════════════════
   Notifications (Figma · Learner / Notifications) — notifications.html
   One card: category filters and "Mark all as read", the list, the settings link. From 1024px the filters, the
   unread count and the settings link are a column beside the list, which takes the rest of the width; a
   notification's text keeps a reading measure.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-notify { border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); overflow: hidden; }
.ath-notify__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3); padding: var(--ath-space-4) var(--ath-space-5); border-bottom: 1px solid var(--ath-color-border); }
.ath-notify__filters { min-width: 0; flex: 1 1 100%; }
.ath-notify__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-2); flex: 1 1 100%; }
.ath-notify__count { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-notify__group + .ath-notify__group { border-top: 1px solid var(--ath-color-border); }
.ath-notify__group-title { margin: 0; padding: var(--ath-space-4) var(--ath-space-5) var(--ath-space-1); font: var(--ath-weight-bold) var(--ath-text-small) / 1.4 var(--ath-font-sans); color: var(--ath-color-text-secondary); }
.ath-notify__list { margin: 0; padding: 0 var(--ath-space-2) var(--ath-space-2); list-style: none; }
.ath-notify__foot { padding: var(--ath-space-2) var(--ath-space-5); border-top: 1px solid var(--ath-color-border); }
.ath-notify .ath-empty-state { border: 0; }

/* one notification: the whole row leads where it is about; the read / unread toggle beside it */
.ath-notify-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--ath-space-1); border-radius: var(--ath-radius-md); }
.ath-notify-item.is-unread { background: color-mix(in srgb, var(--ath-color-selected) 55%, transparent); }
.ath-notify-item.is-unread::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ath-color-action); }
.ath-notify-item__main { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: var(--ath-space-4); padding: var(--ath-space-3) var(--ath-space-3) var(--ath-space-3) var(--ath-space-5); border-radius: var(--ath-radius-md); color: var(--ath-color-text); text-decoration: none; }
a.ath-notify-item__main:hover { background: var(--ath-color-subtle); color: var(--ath-color-text); }
a.ath-notify-item__main:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: -2px; }
.ath-notify-item__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--ath-radius-md); background: var(--ath-color-subtle); color: var(--ath-color-text-secondary); }
.ath-notify-item__icon--courses, .ath-notify-item__icon--discussions { background: var(--ath-color-selected); color: var(--ath-color-recognition); }
.ath-notify-item__icon--live { background: var(--ath-color-success-surface); color: var(--ath-color-success); }
.ath-notify-item__icon--certificates { background: var(--ath-color-warning-surface); color: var(--ath-color-text); }
.ath-notify-item__icon--payments { background: var(--ath-color-info-surface); color: var(--ath-color-info); }
.ath-notify-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 72ch; }
.ath-notify-item__title { line-height: 1.35; overflow-wrap: anywhere; }
.ath-notify-item.is-unread .ath-notify-item__title { font-weight: var(--ath-weight-bold); }
.ath-notify-item__text { font-size: var(--ath-text-small); line-height: 1.5; color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }
.ath-notify-item__meta { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-notify-item__cat { font-weight: var(--ath-weight-bold); color: var(--ath-color-recognition); }
.ath-notify-item__action { font-weight: var(--ath-weight-bold); color: var(--ath-color-action); }
.ath-notify-item__toggle { margin-right: var(--ath-space-2); color: var(--ath-color-text-secondary); }
.ath-notify-item.is-unread .ath-notify-item__toggle { color: var(--ath-color-action); }
@media (min-width: 1024px) {
  .ath-notify { display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "bar body" "foot body"; }
  .ath-notify__bar { grid-area: bar; flex-direction: column; align-items: stretch; gap: var(--ath-space-4); padding: var(--ath-space-4); border-bottom: 0; border-right: 1px solid var(--ath-color-border); }
  .ath-notify__filters { flex: none; flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; padding: 0; }
  .ath-notify__filters .ath-chip--toggle { justify-content: space-between; padding: 0 var(--ath-space-3); border-color: transparent; border-radius: var(--ath-radius-md); background: none; }
  .ath-notify__filters .ath-chip--toggle:hover { border-color: transparent; background: var(--ath-color-subtle); }
  .ath-notify__filters .ath-chip--toggle[aria-pressed="true"] { background: var(--ath-color-selected); }
  .ath-notify__status { flex: none; flex-direction: column; align-items: flex-start; gap: var(--ath-space-1); padding: var(--ath-space-4) var(--ath-space-3) 0; border-top: 1px solid var(--ath-color-border); }
  .ath-notify__status .ath-btn { margin-left: calc(-1 * var(--ath-space-3)); }
  .ath-notify__foot { grid-area: foot; padding: var(--ath-space-2) var(--ath-space-4) var(--ath-space-4) calc(var(--ath-space-4) + var(--ath-space-3)); border-top: 0; border-right: 1px solid var(--ath-color-border); }
  .ath-notify__body { grid-area: body; min-width: 0; padding-block: var(--ath-space-2); }
}
@media (max-width: 479px) {
  .ath-notify__bar, .ath-notify__foot, .ath-notify__group-title { padding-inline: var(--ath-space-4); }
  .ath-notify__list { padding-inline: var(--ath-space-1); }
  .ath-notify-item__main { grid-template-columns: 32px minmax(0, 1fr); gap: var(--ath-space-3); padding-left: var(--ath-space-4); }
  .ath-notify-item__icon { width: 32px; height: 32px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Lesson player (Figma · Learner / Lesson player) — player.html
   Inside the site: the bar (breadcrumb, Grades, Notes & resources, the curriculum
   toggle, Moodle's progress) and the activity on the left, the curriculum card on
   the right (sticky, scrolling on its own); below 1024 the curriculum is a drawer.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-player-page { min-height: 100vh; min-height: var(--vh100, 100vh); display: flex; flex-direction: column; }
.ath-player { flex: 1; display: flex; flex-direction: column; }
.ath-player-state { flex: 1; display: grid; place-items: center; min-height: 60vh; padding: clamp(40px, 8vh, 96px) var(--ath-gutter); }
.ath-player-state__box { display: flex; flex-direction: column; align-items: center; gap: var(--ath-space-4); max-width: 560px; text-align: center; outline: none; }
.ath-player-state__title { margin: 0; font-size: clamp(26px, 20px + 1.2vw, 32px); }
.ath-player-state__text { margin: 0; max-width: 44ch; color: var(--ath-color-text-secondary); }
.ath-player-state .athenor-actions { justify-content: center; }
.ath-spinner { display: inline-grid; place-items: center; }
.ath-spinner__ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ath-color-selected); border-top-color: var(--ath-color-action); animation: athenor-spin .8s linear infinite; }

.ath-pl-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "bar nav" "main nav";
  align-items: start; gap: 0 clamp(24px, 3vw, 48px); padding-block: clamp(24px, 3vw, 40px) clamp(48px, 5vw, 80px);
}
.ath-pl-layout[data-curriculum="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "main"; }

/* the bar: breadcrumb · tools · toggle, then progress */
.ath-pl-bar { grid-area: bar; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "crumb crumb crumb" "progress tools toggle"; align-items: center; gap: var(--ath-space-3) var(--ath-space-2); margin-bottom: var(--ath-space-5); }
.ath-pl-crumb { grid-area: crumb; min-width: 0; }
.ath-pl-crumb a { overflow-wrap: anywhere; }
.ath-pl-hright { grid-area: tools; position: relative; display: flex; align-items: center; gap: var(--ath-space-2); }
.ath-pl-curriculum-toggle { grid-area: toggle; }
.ath-pl-hbtn.btn { min-height: 40px; padding: 6px 14px; gap: 8px; font-size: var(--ath-text-small); }
.ath-pl-progress { grid-area: progress; display: flex; align-items: center; gap: var(--ath-space-3); min-width: 0; max-width: 640px; margin-right: var(--ath-space-4); }
.ath-pl-progress-bar { flex: 1 1 auto; min-width: 40px; height: 6px; border-radius: var(--ath-radius-full); background: var(--ath-color-selected); overflow: hidden; }
.ath-pl-progress-fill { height: 100%; border-radius: inherit; background: var(--ath-color-action); transition: width .45s var(--ath-ease-standard); }
.ath-pl-progress-text { flex: 0 1 auto; min-width: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); font-variant-numeric: tabular-nums; }
.ath-pl-progress-text [data-progress-text] { color: var(--ath-color-text); font-weight: var(--ath-weight-bold); }
.ath-pl-progress-text .btn { min-height: 32px; padding: 2px 10px; font-size: 13px; }
.ath-pl-complete { display: inline-flex; align-items: center; gap: 4px; color: var(--ath-color-success); }
/* Moodle's course completion beside the progress: on a narrow bar the check alone, the words kept for assistive technology */
.ath-pl-cc-icon { display: none; }
@media (max-width: 639px) {
  .ath-pl-bar .ath-pl-cc-icon { display: block; }
  .ath-pl-bar .ath-pl-cc-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .ath-pl-progress-fill { transition: none; } }

/* compact tools menu (Grades, Notes & resources, My Courses) */
.ath-pl-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 45; min-width: 240px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card);
}
.ath-pl-menu[hidden] { display: none; }
.ath-pl-menu-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--ath-radius-md); background: transparent; font: inherit; color: var(--ath-color-text); text-align: left; text-decoration: none; cursor: pointer; }
.ath-pl-menu-item:hover, .ath-pl-menu-item[aria-pressed="true"] { background: var(--ath-color-subtle); color: var(--ath-color-text); }

/* the curriculum card (Figma "Curriculum") */
.ath-pl-nav { grid-area: nav; display: flex; flex-direction: column; min-height: 0; background: var(--ath-color-surface); }
.ath-pl-nav[data-mode="column"] {
  position: sticky; top: calc(var(--ath-header-h) + 16px); max-height: calc(100vh - var(--ath-header-h) - 32px);
  border-radius: var(--ath-radius-lg); box-shadow: var(--ath-shadow-hairline); overflow: hidden;
}
.ath-pl-nav[data-mode="column"][data-open="false"] { display: none; }
.ath-pl-nav[data-mode="drawer"] {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(88vw, 360px);
  box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card); transform: translateX(101%); visibility: hidden;
  transition: transform .2s var(--ath-ease-standard), visibility 0s linear .2s;
}
.ath-pl-nav[data-mode="drawer"][data-open="true"] { transform: none; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ath-pl-nav[data-mode="drawer"] { transition: none; } }
.ath-pl-nav-head { display: flex; flex-direction: column; gap: 4px; padding: var(--ath-space-5) var(--ath-space-5) var(--ath-space-4); border-bottom: 1px solid var(--ath-color-border); }
.ath-pl-nav-head__top { display: flex; align-items: center; justify-content: space-between; gap: var(--ath-space-2); }
.ath-pl-nav-head__top .btn-icon { margin: -8px -10px -8px 0; }
.ath-pl-nav-title { font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-pl-nav-course { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }
.ath-pl-nav-notice { margin: 6px 0 0; font-size: 13px; }
.ath-pl-nav-notice .btn { min-height: 28px; padding: 2px 10px; font-size: 13px; }
.ath-pl-nav-scroll { flex: 1; min-height: 0; overflow: auto; padding: var(--ath-space-2) var(--ath-space-3) var(--ath-space-5); overscroll-behavior: contain; }

.ath-curr-list { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-direction: column; gap: 2px; }
.ath-curr-section + .ath-curr-section, .ath-curr-section + .ath-curr-locked, .ath-curr-locked + .ath-curr-section { border-top: 1px solid var(--ath-color-border); }
.ath-curr-section__toggle {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--ath-space-2); min-height: 44px; padding: 12px 8px;
  border: 0; border-radius: var(--ath-radius-md); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ath-curr-section__toggle:hover { background: var(--ath-color-subtle); }
.ath-curr-section__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ath-curr-section__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ath-text-caption); font-weight: var(--ath-weight-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--ath-color-text-secondary); }
.ath-curr-section__kicker--done { color: var(--ath-color-success); }
.ath-curr-section__kicker--current { color: var(--ath-color-recognition); }
.ath-curr-section__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ath-curr-section__title { font-weight: var(--ath-weight-bold); font-size: 15px; overflow-wrap: anywhere; }
.athenor-player-chevron { color: var(--ath-color-text-secondary); }
[aria-expanded="true"] > .athenor-player-chevron { transform: rotate(180deg); }
.ath-curr-item {
  width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 9px 8px;
  border: 0; border-radius: var(--ath-radius-md); background: transparent; font: inherit; font-size: var(--ath-text-small); color: var(--ath-color-text); text-align: left; cursor: pointer;
}
.ath-curr-item:hover { background: var(--ath-color-subtle); }
.ath-curr-item[aria-current] { background: var(--ath-color-selected); box-shadow: inset 3px 0 0 var(--ath-color-action); }
.ath-curr-item--locked { color: var(--ath-color-text-secondary); cursor: default; }
.ath-curr-item--locked:hover { background: transparent; }
.ath-curr-item__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ath-curr-item__title { line-height: 1.35; overflow-wrap: anywhere; }
.ath-curr-item__meta { font-size: var(--ath-text-caption); color: var(--ath-color-text-secondary); }
.ath-curr-item__icon { color: var(--ath-color-text-secondary); }
.ath-curr-item[aria-current] .ath-curr-item__icon { color: var(--ath-color-action); }
.ath-curr-mark { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--ath-color-border-strong); border-radius: 50%; color: var(--ath-color-text-secondary); }
.ath-curr-mark--complete { border-color: var(--ath-color-success); background: var(--ath-color-success); color: var(--ath-color-surface); }
.ath-curr-mark--failed { border-color: var(--ath-color-warning); color: var(--ath-color-warning); }
[aria-current] .ath-curr-mark--incomplete { border-color: var(--ath-color-action); color: var(--ath-color-action); }
.ath-curr-mark--incomplete > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ath-curr-mark--untracked { border: 0; }
.ath-curr-mark--untracked > span { width: 6px; height: 6px; border-radius: 50%; background: var(--ath-color-border-strong); }
[aria-current] .ath-curr-mark--untracked > span { width: 8px; height: 8px; background: var(--ath-color-action); }
.ath-curr-locked { padding: 12px 8px; }
.ath-curr-locked__why { margin-top: 4px; font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-curr-discussion { margin-top: var(--ath-space-3); padding-top: var(--ath-space-3); border-top: 1px solid var(--ath-color-border); }

/* the activity */
.ath-pl-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: var(--ath-space-6); }
.ath-pl-region { outline: none; }
.ath-pl-region:focus-visible { outline: 2px solid var(--ath-color-focus); outline-offset: 4px; border-radius: var(--ath-radius-md); }
.ath-pl-tags { display: flex; flex-wrap: wrap; gap: var(--ath-space-2); margin-bottom: var(--ath-space-3); }
.ath-pl-title { margin: 0 0 var(--ath-space-3); max-width: 40ch; font-size: clamp(30px, 22px + 1.8vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
.ath-pl-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: var(--ath-space-5); border-bottom: 1px solid var(--ath-color-border); font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-pl-body { padding-top: var(--ath-space-6); }
/* reading: the text keeps a reading measure; what is not running text (images, video, tables, a Rise lesson's interactive
   blocks) uses the column (athenor-app.css · the Rise lesson) */
.ath-pl-resources { max-width: 80ch; }
.ath-pl-body[data-kind="reading"] .athenor-player-prose :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, pre) { max-width: 80ch; }
.ath-pl-body[data-kind="reading"] .athenor-player-prose p:has(> img:only-child, > a:only-child > img:only-child, > video, > iframe) { max-width: none; }
.ath-pl-note { margin: 0; color: var(--ath-color-text-secondary); }
.ath-pl-note .btn { margin-left: 8px; }
.ath-pl-muted { color: var(--ath-color-text-secondary); }
.ath-pl-pass { color: var(--ath-color-success); }
.ath-pl-warning { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: var(--ath-space-5); padding: 12px 16px; border-radius: var(--ath-radius-md); background: var(--ath-color-warning-surface); color: var(--ath-color-text); font-size: var(--ath-text-small); }
.ath-pl-locked { display: flex; flex-direction: column; gap: 10px; max-width: 80ch; margin-top: var(--ath-space-6); padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-selected); }
.ath-pl-locked__title { display: flex; align-items: center; gap: 8px; margin: 0; font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-pl-locked__text { margin: 0 0 12px; }
.ath-launch-card__text { display: flex; flex-direction: column; gap: 4px; }
.ath-launch-card__text .ath-kicker { margin: 0; }
.ath-launch-card__title { font-weight: var(--ath-weight-bold); }
.ath-launch-card__note { max-width: 56ch; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
* + .ath-launch-card { margin-top: var(--ath-space-5); }
.ath-pl-resources { margin-top: var(--ath-space-7); padding-top: var(--ath-space-5); border-top: 1px solid var(--ath-color-border); }
.ath-pl-resources__title { margin: 0 0 var(--ath-space-3); font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-pl-resources__list { display: flex; flex-direction: column; }
.ath-pl-resource { display: flex; justify-content: space-between; align-items: center; gap: var(--ath-space-3); padding: 12px 0; border-top: 1px solid var(--ath-color-border); color: var(--ath-color-text); text-decoration: none; }
.ath-pl-resource:hover { color: var(--ath-color-recognition); }
.ath-pl-resource__name { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.ath-pl-resource__name svg { flex: none; color: var(--ath-color-action); }
.ath-pl-resource__meta { flex: none; font-size: 13px; color: var(--ath-color-text-secondary); white-space: nowrap; }

/* gradebook (in place of the activity) */
.ath-pl-grades-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3); margin-bottom: var(--ath-space-4); }
.ath-pl-grades-head .ath-pl-title { margin: 0; }
.ath-pl-grades { overflow-x: auto; }
.ath-pl-grades table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ath-pl-grades th, .ath-pl-grades td { padding: 12px 10px; text-align: left; }
.ath-pl-grades thead th { border-bottom: 1px solid var(--ath-color-border); font-size: 13px; font-weight: var(--ath-weight-regular); color: var(--ath-color-text-secondary); }
.ath-pl-grades tbody th { font-weight: var(--ath-weight-regular); }
.ath-pl-grades tbody [data-course-total] th { font-weight: var(--ath-weight-bold); }
.ath-pl-grades__feedback td { padding: 0 10px 14px; }
.ath-pl-grades__feedback td > div { padding-left: 12px; border-left: 3px solid var(--ath-color-border); }
.ath-pl-grades__feedback a { display: block; font-size: var(--ath-text-small); }
.ath-pl-grades__kicker { font-size: var(--ath-text-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--ath-color-text-secondary); }

/* Previous · the ONE primary step · Next (Figma: under the activity) */
.ath-pl-footer { padding-top: var(--ath-space-5); border-top: 1px solid var(--ath-color-border); }
.ath-pl-footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ath-space-3); }
.ath-pl-footer-main { display: flex; min-width: 0; max-width: 460px; margin-left: auto; }
.ath-pl-footer-main:empty { display: none; }
.ath-pl-footer-main:empty + .ath-pl-footer-end { margin-left: auto; }
.ath-pl-footer-main > .btn { min-width: 0; max-width: 100%; }
.ath-pl-footer-end { display: flex; }
.ath-pl-footer-end:empty { display: none; }
.ath-pl-footer .btn { gap: 8px; }
.ath-pl-footer .ath-pl-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* notes / resources / transcript: closed by default, an on-demand sheet (never a permanent column) */
.ath-pl-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; width: min(400px, 100%); display: flex; flex-direction: column; min-height: 0;
  background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card);
}
.ath-pl-sheet[hidden] { display: none; }
.ath-pl-sheet-head { display: flex; align-items: center; padding: 0 4px 0 8px; border-bottom: 1px solid var(--ath-color-border); }
.ath-pl-sheet-head [role="tablist"] { display: flex; flex: 1; min-width: 0; }
.ath-pl-tab { flex: 1; min-height: 48px; margin-bottom: -1px; padding: 14px 8px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); cursor: pointer; }
.ath-pl-tab[aria-selected="true"] { border-bottom-color: var(--ath-color-action); color: var(--ath-color-text); font-weight: var(--ath-weight-bold); }
.athenor-player-panel-tab { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: var(--ath-space-4); padding: var(--ath-space-5); font-size: var(--ath-text-small); }
.ath-pl-sheet-kicker { font-size: var(--ath-text-caption); font-weight: var(--ath-weight-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--ath-color-text-secondary); }
.ath-pl-notes { min-height: 160px; font-size: var(--ath-text-small); }
.ath-pl-notes-earlier { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ath-color-border); }
.ath-pl-notes-entry { display: flex; flex-direction: column; gap: 4px; }

/* choose a course (more than one enrolment, no course in the link) */
.ath-pl-picker { display: flex; flex-direction: column; align-items: center; gap: var(--ath-space-4); width: min(640px, 100%); }
.ath-pl-picker__list { width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.ath-pl-picker__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3); padding: var(--ath-space-4) 0; border-top: 1px solid var(--ath-color-border); }
.ath-pl-picker__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ath-pl-picker__title { font-weight: var(--ath-weight-bold); overflow-wrap: anywhere; }

@media (max-width: 1023px) {
  .ath-pl-layout, .ath-pl-layout[data-curriculum="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "main"; }
  .ath-pl-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "crumb crumb" "progress tools" "toggle toggle"; }
  .ath-pl-curriculum-toggle { width: 100%; }
}
@media (max-width: 639px) {
  .ath-pl-footer-row { flex-direction: column; align-items: stretch; }
  .ath-pl-footer-row .btn, .ath-pl-footer-main { width: 100%; max-width: none; margin-left: 0; }
  .ath-pl-footer-end { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Checkout (Figma · Public / Apply) — cart.html, checkout.html, payment-success.html
   The focused header, the steps, the form on the left, the order summary on the right.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-header--focused .ath-header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.ath-header__back, .ath-header__help { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: var(--ath-weight-bold); text-decoration: none; }
.ath-header__back { justify-self: start; color: var(--ath-color-action); }
.ath-header__help { justify-self: end; color: var(--ath-color-text); }
/* Figma · Learner / Onboarding — the wordmark and "Skip for now" */
.ath-header--focused.ath-header--onboarding .ath-header__bar { grid-template-columns: minmax(0, 1fr) auto; }
.ath-header__skip { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; color: var(--ath-color-action); font-weight: var(--ath-weight-bold); text-decoration: underline; text-underline-offset: 3px; }
.ath-header__back:hover, .ath-header__help:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) { .ath-header__back span, .ath-header__help span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.ath-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ath-space-3); margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; list-style: none; }
.ath-stepper__item, .ath-stepper__item > a { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); text-decoration: none; }
.ath-stepper__mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ath-color-border-strong); font-size: 13px; font-weight: var(--ath-weight-bold); }
.ath-stepper__item.is-current { color: var(--ath-color-text); font-weight: var(--ath-weight-bold); }
.ath-stepper__item.is-current .ath-stepper__mark { border: 2px solid var(--ath-color-action); color: var(--ath-color-action); }
.ath-stepper__item.is-done .ath-stepper__mark { border-color: var(--ath-color-action); background: var(--ath-color-action); color: var(--ath-color-text-on-action); }
.ath-stepper__item > a:hover .ath-stepper__label { text-decoration: underline; }
.ath-stepper__label { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) { .ath-stepper { grid-template-columns: auto minmax(0, auto) auto; justify-content: space-between; }
  .ath-stepper__item:not(.is-current) .ath-stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.ath-checkout { padding-block: clamp(28px, 3.5vw, 48px) clamp(56px, 6vw, 96px); }
.ath-checkout__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ath-checkout__main { display: flex; flex-direction: column; gap: var(--ath-space-3); min-width: 0; max-width: 680px; }
.ath-checkout__title { margin: 0; font-size: clamp(32px, 24px + 1.6vw, 44px); line-height: 1.15; }
.ath-checkout__lead { margin: 0 0 var(--ath-space-4); color: var(--ath-color-text-secondary); }
.ath-checkout__form { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.ath-checkout__section { display: flex; flex-direction: column; gap: var(--ath-space-4); }
.ath-checkout__h2 { margin: 0; font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.ath-field__optional { font-weight: var(--ath-weight-regular); color: var(--ath-color-text-secondary); }
.ath-checkout__promo { text-transform: uppercase; }
.ath-checkout__promo::placeholder { text-transform: none; }
.ath-checkout__terms { font-size: var(--ath-text-small); }
.ath-checkout__submit { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ath-space-3); }
.ath-checkout__submit [data-pay] { min-height: 52px; padding-inline: 28px; gap: 8px; font-size: var(--ath-text-body); }
.ath-checkout__secure { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-checkout-note { display: flex; gap: 14px; align-items: flex-start; padding: var(--ath-space-4) var(--ath-space-5); border-radius: var(--ath-radius-md); background: var(--ath-color-selected); }
.ath-checkout-note svg { flex: none; margin-top: 2px; color: var(--ath-color-recognition); }
.ath-checkout-note > div { display: flex; flex-direction: column; gap: 4px; }
.ath-checkout-note > div > span { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-checkout-note--warn { background: var(--ath-color-warning-surface); font-size: 13px; line-height: 1.5; }
.ath-checkout-note--warn svg { color: var(--ath-color-warning); }
.ath-checkout-methods { display: flex; flex-direction: column; gap: 10px; }
.ath-checkout-method { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--ath-color-border-strong); border-radius: var(--ath-radius-md); background: var(--ath-color-surface); cursor: pointer; }
.ath-checkout-method:has(input:checked) { border: 2px solid var(--ath-color-action); padding: 11px 15px; background: var(--ath-color-selected); }
.ath-checkout-method__name { font-weight: var(--ath-weight-bold); }
.ath-checkout-method__note { font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-checkout-card { display: flex; flex-direction: column; gap: var(--ath-space-4); padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }

/* Order summary (Figma: a card beside the form, sticky) */
.ath-order { position: sticky; top: calc(var(--ath-header-h) + 16px); display: flex; flex-direction: column; gap: var(--ath-space-4); padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-order__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ath-space-3); padding-bottom: var(--ath-space-4); border-bottom: 1px solid var(--ath-color-border); }
.ath-order__title { margin: 0; font: var(--ath-weight-bold) var(--ath-text-body) / var(--ath-leading-body) var(--ath-font-sans); }
.ath-order__head-total { margin-left: auto; font-weight: var(--ath-weight-bold); }
.ath-order__toggle { display: none; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ath-color-action); font: var(--ath-weight-bold) var(--ath-text-small) var(--ath-font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ath-order__body { display: flex; flex-direction: column; gap: var(--ath-space-4); }
.ath-checkout .ath-seg__option { flex: 1; justify-content: center; }
.ath-order__items { display: flex; flex-direction: column; gap: var(--ath-space-3); }
.ath-order__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ath-order__thumb { width: 52px; height: 36px; border-radius: var(--ath-radius-sm); background: var(--ath-color-selected); }
.ath-order__item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ath-order__item-title { font-weight: var(--ath-weight-bold); overflow-wrap: anywhere; }
.ath-order__item-meta { font-size: var(--ath-text-caption); color: var(--ath-color-text-secondary); }
.ath-order__item-price { font-weight: var(--ath-weight-bold); white-space: nowrap; }
.ath-order__rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-top: var(--ath-space-4); border-top: 1px solid var(--ath-color-border); font-size: var(--ath-text-small); }
.ath-order__head + .ath-order__rows { padding-top: 0; border-top: 0; }
.ath-order__rows > div { display: flex; justify-content: space-between; gap: var(--ath-space-3); }
.ath-order__rows dt { color: var(--ath-color-text-secondary); }
.ath-order__rows dd { margin: 0; text-align: right; }
.ath-order__saving { color: var(--ath-color-success); }
.ath-order__total { padding-top: var(--ath-space-3); border-top: 1px solid var(--ath-color-border); font-size: var(--ath-text-body); }
.ath-order__total dt, .ath-order__total dd { color: var(--ath-color-text); font-weight: var(--ath-weight-bold); }
.ath-order__total dd { font-size: var(--ath-text-title); }
.ath-order__note { margin: 0; font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-order__guarantee { display: flex; gap: 8px; margin: 0; font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-order__guarantee svg, .ath-order__benefits svg { flex: none; margin-top: 2px; color: var(--ath-color-success); }
.ath-order__benefits { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: var(--ath-space-4) 0 0; border-top: 1px solid var(--ath-color-border); list-style: none; font-size: 13px; }
.ath-order__benefits li { display: flex; gap: 8px; }

.ath-order__secure { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; font-size: 13px; color: var(--ath-color-text-secondary); text-align: center; }
.ath-order__secure span { display: inline-flex; align-items: center; gap: 6px; }
.ath-order__cta { min-height: 52px; gap: 8px; }

/* Cart items (step 1): image · details · price, the actions underneath */
.ath-cart-list { display: flex; flex-direction: column; gap: var(--ath-space-4); margin: var(--ath-space-4) 0 0; padding: 0; list-style: none; }
.ath-cart-item { display: grid; grid-template-columns: minmax(140px, 30%) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); padding: var(--ath-space-4); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-cart-item__media { position: relative; display: block; align-self: start; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ath-radius-md); background: var(--ath-color-selected); }
.ath-cart-item__body { display: flex; flex-direction: column; gap: var(--ath-space-2); min-width: 0; }
.ath-cart-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--ath-space-4); }
.ath-cart-item__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ath-cart-item__title { font: var(--ath-weight-regular) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-serif); color: var(--ath-color-text); text-decoration: none; overflow-wrap: anywhere; }
.ath-cart-item__title:hover { color: var(--ath-color-recognition); }
.ath-cart-item__subtitle, .ath-cart-item__desc { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-cart-item__price { font-size: var(--ath-text-title); font-weight: var(--ath-weight-bold); white-space: nowrap; }
.ath-cart-item__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-cart-item__cert { color: var(--ath-color-recognition); }
.ath-cart-item__owned { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3); padding: 12px 16px; border-radius: var(--ath-radius-md); background: var(--ath-color-success-surface); font-size: var(--ath-text-small); }
.ath-cart-item__owned > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ath-color-success); }
.ath-cart-item__actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: var(--ath-space-3); border-top: 1px solid var(--ath-color-border); }
@media (max-width: 639px) { .ath-cart-item { grid-template-columns: minmax(0, 1fr); } }

/* Confirmation (step 3) and "payment not completed" */
.ath-confirm, .ath-cancelled { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ath-space-3); max-width: 720px; }
.ath-confirm__icon, .ath-cancelled__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; }
.ath-confirm__icon { background: var(--ath-color-success-surface); color: var(--ath-color-success); }
.ath-cancelled__icon { background: var(--ath-color-subtle); color: var(--ath-color-text-secondary); }
.ath-confirm__items { display: flex; flex-direction: column; gap: var(--ath-space-3); width: 100%; margin: var(--ath-space-3) 0; padding: 0; list-style: none; }
.ath-confirm__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--ath-space-4); padding: var(--ath-space-4); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-confirm__item-title { font-weight: var(--ath-weight-bold); overflow-wrap: anywhere; }
.ath-cancelled .athenor-actions { margin-top: var(--ath-space-2); }
.ath-cancelled__help { flex-wrap: wrap; justify-content: space-between; align-items: center; width: 100%; margin-top: var(--ath-space-5); }
.ath-order__text { margin: 0; color: var(--ath-color-text-secondary); }
@media (max-width: 479px) { .ath-confirm__item { grid-template-columns: minmax(0, 1fr); } .ath-confirm__item .ath-order__thumb { display: none; } }

.ath-checkout__trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--ath-space-5); margin-top: clamp(48px, 6vw, 80px); }
.ath-checkout__trust-item { display: flex; flex-direction: column; gap: 6px; padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-checkout__trust-item > span:last-child { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-checkout__trust-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--ath-radius-md); background: var(--ath-color-selected); color: var(--ath-color-recognition); }
@media (max-width: 1023px) {
  .ath-checkout__layout { grid-template-columns: minmax(0, 1fr); }
  .ath-order { position: static; order: -1; gap: 0; }
  .ath-order--open { order: 0; gap: var(--ath-space-4); }
  .ath-order__head { flex-wrap: wrap; align-items: center; padding-bottom: 0; border-bottom: 0; }
  .ath-order__toggle { display: inline-flex; align-items: center; }
  .ath-order[data-open] .ath-order__head { padding-bottom: var(--ath-space-4); border-bottom: 1px solid var(--ath-color-border); }
  .ath-order[data-open] .ath-order__body { margin-top: var(--ath-space-4); }
  .ath-order:not([data-open]) .ath-order__body { display: none; }
  .ath-order--open .ath-order__head { padding-bottom: var(--ath-space-4); border-bottom: 1px solid var(--ath-color-border); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sign in, Register, password and email screens (Figma · Public / Sign in, Register,
   Forgot / Set new password, Verify email) — one card inside the site.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-auth { flex: 1; display: grid; justify-items: center; align-content: start; padding: clamp(32px, 6vw, 72px) var(--ath-gutter) clamp(48px, 7vw, 96px); }
.ath-auth__card { display: flex; flex-direction: column; gap: var(--ath-space-4); width: 100%; max-width: 440px; padding: clamp(24px, 4vw, 40px); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-auth__title { margin: 0; font-size: clamp(28px, 22px + 1.2vw, 34px); line-height: 1.2; }
.ath-auth__lead { margin: calc(-1 * var(--ath-space-2)) 0 0; color: var(--ath-color-text-secondary); }
.ath-auth__social .btn { gap: 10px; }
.ath-auth__divider { display: flex; align-items: center; gap: var(--ath-space-3); font-size: 13px; color: var(--ath-color-text-secondary); }
.ath-auth__divider::before, .ath-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--ath-color-border); }
.ath-auth__form { display: flex; flex-direction: column; gap: var(--ath-space-4); }
.ath-auth__form[hidden] { display: none; }
.ath-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ath-space-3); margin-bottom: 6px; }
.ath-auth__label-row label { margin: 0; font-weight: var(--ath-weight-bold); font-size: var(--ath-text-small); }
.ath-auth__label-row a { font-size: var(--ath-text-small); font-weight: var(--ath-weight-bold); color: var(--ath-color-action); }
.ath-auth__pw { position: relative; }
.ath-auth__pw .ath-input { padding-right: 52px; }
.ath-auth__pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); }
.ath-pw-rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.ath-pw-rule { display: flex; align-items: center; gap: 8px; color: var(--ath-color-text-secondary); }
.ath-pw-rule.is-met { color: var(--ath-color-text); }
.ath-pw-rule__mark { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--ath-color-border-strong); border-radius: 50%; font-size: 10px; color: var(--ath-color-surface); }
.ath-pw-rule.is-met .ath-pw-rule__mark { border-color: var(--ath-color-success); background: var(--ath-color-success); }
.ath-pw-rules > li:not(.ath-pw-rule) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ath-auth__switch { margin: 0; padding-top: var(--ath-space-4); border-top: 1px solid var(--ath-color-border); font-size: var(--ath-text-small); }
.ath-auth__switch a, .ath-auth__back { color: var(--ath-color-action); font-weight: var(--ath-weight-bold); }
.ath-auth__back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; font-size: var(--ath-text-small); }
.ath-auth__note { margin: 8px 0 0; font-size: 12px; text-align: center; color: var(--ath-color-text-secondary); }
.ath-auth__banner { padding: 14px 16px; border-radius: var(--ath-radius-md); font-size: var(--ath-text-small); line-height: 1.5; overflow-wrap: anywhere; }
.ath-auth__banner strong { display: block; }
.ath-auth__banner a { color: inherit; font-weight: var(--ath-weight-bold); }
.ath-auth__banner--error { background: var(--ath-color-error-surface); color: var(--ath-color-error); }
.ath-auth__banner--success { background: var(--ath-color-success-surface); color: var(--ath-color-success); }
.ath-auth__banner--info { background: var(--ath-color-selected); color: var(--ath-color-text); }
.ath-auth__banner--warning { border-left: 3px solid var(--ath-color-warning); background: var(--ath-color-warning-surface); color: var(--ath-color-text); }
.ath-auth__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ath-auth__verify { display: flex; flex-direction: column; gap: var(--ath-space-4); }
.ath-auth__verify[hidden] { display: none; }
.ath-auth__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ath-color-selected); color: var(--ath-color-recognition); }
.ath-auth__email { margin: 0; overflow-wrap: anywhere; }
.ath-auth__email[hidden] { display: none; }
.ath-auth__hint { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-auth__actions { display: flex; flex-direction: column; gap: var(--ath-space-3); }
.ath-auth__link-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ath-color-action); font: var(--ath-weight-bold) var(--ath-text-small) var(--ath-font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ath-auth__inline-form { display: flex; gap: var(--ath-space-2); }
.ath-auth__inline-form .ath-input { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Verify a credential (Figma · Public / Verify a credential · Valid, Not found,
   Revoked, Expired, Hidden) — verify-credential.html
   One column: the form, then the answer as a tinted card (the verdict in words with its mark).
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-verify { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.ath-verify__main { display: flex; flex-direction: column; gap: var(--ath-space-3); max-width: 720px; margin-inline: auto; }
.ath-verify__main > .ath-kicker { margin: 0; }
.ath-verify__title { margin: 0; font-size: clamp(32px, 24px + 1.6vw, 48px); line-height: 1.15; text-wrap: balance; }
.ath-verify__lead { margin: 0 0 var(--ath-space-3); color: var(--ath-color-text-secondary); }
.ath-verify__form { display: flex; flex-direction: column; gap: 6px; }
.ath-verify__row { display: flex; flex-wrap: wrap; gap: var(--ath-space-2); margin-top: 4px; }
.ath-verify__row .ath-input { flex: 1 1 240px; min-width: 0; }
.ath-verify__output:empty { display: none; }
.ath-verify__output { margin-top: var(--ath-space-5); }
.ath-btn-spinner { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor; animation: athenor-spin .8s linear infinite; vertical-align: -3px; }

.ath-verify__card { display: flex; flex-direction: column; gap: var(--ath-space-4); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--ath-color-border); border-left-width: 4px; border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); }
.ath-verify__card--valid { border-color: var(--ath-color-success); background: var(--ath-color-success-surface); }
.ath-verify__card--danger { border-color: var(--ath-color-error); background: var(--ath-color-error-surface); }
.ath-verify__card--warn { border-color: var(--ath-color-warning); background: var(--ath-color-warning-surface); }
.ath-verify__card--empty { border-style: dashed; border-left-width: 1px; }
.ath-verify__verdict { display: inline-flex; align-items: center; gap: 8px; font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-verify__card--valid .ath-verify__verdict { color: var(--ath-color-success); }
.ath-verify__card--danger .ath-verify__verdict { color: var(--ath-color-error); }
.ath-verify__card--warn .ath-verify__verdict { color: var(--ath-color-warning); }
.ath-verify__head { display: flex; align-items: flex-start; gap: var(--ath-space-4); }
.ath-verify__seal { flex: none; width: 72px; height: 72px; }
.ath-verify__badge { flex: none; width: 72px; height: 72px; padding: 6px; border-radius: var(--ath-radius-md); background: var(--ath-color-surface); object-fit: contain; }
.ath-verify__heading { margin: 0; font-size: var(--ath-text-heading-2); line-height: var(--ath-leading-heading-2); overflow-wrap: anywhere; outline: none; }
.ath-verify__dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: var(--ath-text-small); }
.ath-verify__dl dt { color: var(--ath-color-text-secondary); }
.ath-verify__dl dd { margin: 0; font-weight: var(--ath-weight-bold); overflow-wrap: anywhere; }
.ath-verify__dl code { font: 13px / 1.5 var(--ath-font-mono); }
.ath-verify__muted { font-weight: var(--ath-weight-regular); color: var(--ath-color-text-secondary); }
.ath-verify__note { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); max-width: 60ch; }
.ath-verify__fine { margin: 0; font-size: 12px; color: var(--ath-color-text-secondary); }
.ath-verify__wrap { overflow-wrap: anywhere; }
.ath-verify__criteria h3, .ath-verify__portable h3, .ath-verify__holder h3 { margin: 0 0 6px; font: var(--ath-weight-bold) var(--ath-text-body) / var(--ath-leading-body) var(--ath-font-sans); }
.ath-verify__criteria ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--ath-text-small); }
.ath-verify__portable { display: flex; flex-direction: column; gap: var(--ath-space-2); padding-top: var(--ath-space-4); border-top: 1px solid var(--ath-color-border); }
.ath-verify__dev { margin: 0; padding: 8px 12px; border-radius: var(--ath-radius-md); background: var(--ath-color-warning-surface); font-size: 13px; }
.ath-verify__facts { margin: 0; font-size: var(--ath-text-small); }
.ath-verify__fact { display: flex; justify-content: space-between; gap: var(--ath-space-3); padding: 10px 0; border-top: 1px solid var(--ath-color-border); }
.ath-verify__fact dt { color: var(--ath-color-text-secondary); }
.ath-verify__fact dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: var(--ath-weight-bold); }
.ath-verify__fact.is-good dd > span { color: var(--ath-color-success); }
.ath-verify__holder { display: flex; flex-direction: column; gap: 6px; margin-top: var(--ath-space-3); }
.ath-verify__check-result { margin: 0; font-size: var(--ath-text-small); }
@media (max-width: 479px) { .ath-verify__dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ath-verify__dl dd + dt { margin-top: 10px; } }

.ath-verify__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--ath-space-5); max-width: 960px; margin: clamp(48px, 6vw, 80px) auto 0; }
.ath-verify__info-item { display: flex; flex-direction: column; gap: 6px; padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-verify__info-item h3 { margin: 0; font: var(--ath-weight-bold) var(--ath-text-body) / var(--ath-leading-body) var(--ath-font-sans); }
.ath-verify__info-item p { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-verify__info-item a { color: var(--ath-color-action); font-weight: var(--ath-weight-bold); }

/* ═══════════════════════════════════════════════════════════════════════════
   404, server error and maintenance (Figma · Public / 404, Server error, Maintenance)
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-status-page { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--ath-space-3); padding-block: clamp(56px, 10vw, 128px); text-align: center; }
.ath-status-page__code { margin: 0; font: var(--ath-weight-regular) clamp(56px, 40px + 4vw, 88px) / 1 var(--ath-font-serif); color: var(--ath-color-action); }
.ath-status-page__title { margin: 0; max-width: 20ch; font-size: clamp(30px, 22px + 1.8vw, 44px); line-height: 1.15; text-wrap: balance; }
.ath-status-page__text { margin: 0; max-width: 52ch; color: var(--ath-color-text-secondary); }
.ath-status-page__search { display: flex; flex-direction: column; gap: 6px; width: min(100%, 480px); margin-top: var(--ath-space-4); text-align: left; }
.ath-status-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ath-space-2) var(--ath-space-5); margin-top: var(--ath-space-3); }
.ath-status-page__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ath-color-action); font-weight: var(--ath-weight-bold); }
.ath-status-page .athenor-actions { justify-content: center; margin-top: var(--ath-space-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   Legal (Figma · Public / Legal · Privacy policy, Terms of use, Cookie policy)
   The documents and "On this page" on the left (sticky), the policy at a reading measure.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-legal { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.ath-legal__aside { position: sticky; top: calc(var(--ath-header-h) + 24px); display: flex; flex-direction: column; gap: var(--ath-space-5); }
.ath-legal__docs { display: flex; flex-wrap: wrap; gap: var(--ath-space-2); }
.ath-legal__docs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-full); background: var(--ath-color-surface); color: var(--ath-color-text); font-size: var(--ath-text-small); text-decoration: none; }
.ath-legal__docs a[aria-current] { border-color: var(--ath-color-recognition); background: var(--ath-color-selected); color: var(--ath-color-recognition); font-weight: var(--ath-weight-bold); }
.ath-legal__toc-title { margin: 0 0 var(--ath-space-2); font-size: var(--ath-text-caption); font-weight: var(--ath-weight-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--ath-color-text-secondary); }
.ath-legal__toc ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.ath-legal__toc li { counter-increment: toc; }
.ath-legal__toc a { display: flex; gap: 6px; min-height: 40px; align-items: center; padding: 6px 12px; border-radius: var(--ath-radius-md); color: var(--ath-color-text); font-size: var(--ath-text-small); text-decoration: none; }
.ath-legal__toc a::before { content: counter(toc) "."; color: var(--ath-color-text-secondary); }
.ath-legal__toc a:hover { background: var(--ath-color-subtle); }
.ath-legal__doc { display: flex; flex-direction: column; gap: var(--ath-space-3); max-width: 72ch; min-width: 0; }
.ath-legal__doc > .ath-kicker { margin: 0; }
.ath-legal__title { margin: 0; font-size: clamp(34px, 26px + 1.6vw, 48px); line-height: 1.15; }
.ath-legal__meta { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-legal__tools { margin: var(--ath-space-2) 0 var(--ath-space-4); }
.ath-legal__section { scroll-margin-top: calc(var(--ath-header-h) + 24px); }
.ath-legal__section h2 { margin: var(--ath-space-4) 0 var(--ath-space-2); font-size: var(--ath-text-heading-2); line-height: var(--ath-leading-heading-2); }
.ath-legal__section p { margin: 0; line-height: 1.7; color: var(--ath-color-text); }
.ath-legal__top { align-self: flex-start; margin-top: var(--ath-space-5); }
@media (max-width: 1023px) {
  .ath-legal { grid-template-columns: minmax(0, 1fr); }
  .ath-legal__aside { position: static; }
}
@media print {
  .ath-header, .ath-footer, [data-site-header], [data-site-footer], .ath-legal__aside, .ath-legal__tools, .ath-legal__top { display: none !important; }
  .ath-legal { display: block; padding: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Content pages — About, Corporate (no separate Figma screens: the home page's
   patterns): media, collage, stats, statement, banner.
   ═══════════════════════════════════════════════════════════════════════════ */
.ath-media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ath-radius-lg); background: var(--ath-color-selected); }
.ath-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ath-media--wide { aspect-ratio: 21 / 9; }
.ath-collage { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--ath-space-4); align-items: end; }
.ath-collage > .ath-media:first-child { aspect-ratio: 4 / 5; }
.ath-collage > .ath-media:last-child { aspect-ratio: 1 / 1; }
.ath-split--reverse > .ath-media { order: -1; }
.ath-about__title, .ath-content-title { margin: 0 0 var(--ath-space-4); font-size: clamp(36px, 26px + 2.4vw, 60px); line-height: 1.08; text-wrap: balance; }
.ath-split__copy > .ath-section__lead + .ath-section__lead { margin-top: var(--ath-space-3); }
.ath-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: var(--ath-space-4); margin: var(--ath-space-6) 0 0; padding-top: var(--ath-space-5); border-top: 1px solid var(--ath-color-border); }
.ath-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.ath-stats dt { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-stats dd { margin: 0; font: var(--ath-weight-regular) clamp(28px, 22px + 1vw, 36px) / 1 var(--ath-font-serif); color: var(--ath-color-recognition); }
.ath-statement__text { margin: 0 auto; max-width: 26ch; font: var(--ath-weight-regular) clamp(30px, 22px + 2vw, 52px) / 1.2 var(--ath-font-serif); text-align: center; text-wrap: balance; }
.ath-statement__text span { color: var(--ath-color-recognition); }
.ath-banner { position: relative; display: grid; align-items: end; min-height: clamp(320px, 40vw, 520px); margin-top: clamp(40px, 5vw, 72px); overflow: hidden; color: var(--ath-white, #fff); }
.ath-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ath-banner__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 38, 0) 20%, rgba(20, 18, 38, .78) 100%); }
.ath-banner__content { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-4); padding-block: clamp(32px, 5vw, 64px); }
.ath-banner__text { margin: 0; max-width: 24ch; font: var(--ath-weight-regular) clamp(26px, 20px + 1.6vw, 40px) / 1.2 var(--ath-font-serif); color: #fff; }
@media (max-width: 900px) { .ath-split--reverse > .ath-media { order: 0; } }
/* Corporate: features, the example organisation dashboard, the quote, onboarding */
.ath-corporate__ctas { margin-top: var(--ath-space-5); }
.ath-corporate__facts { margin-top: var(--ath-space-4); }
.ath-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--ath-space-5); }
.ath-feature { display: flex; flex-direction: column; gap: 6px; padding: var(--ath-space-5); border-radius: var(--ath-radius-lg); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline); }
.ath-feature h3 { margin: 0; font: var(--ath-weight-bold) var(--ath-text-title) / var(--ath-leading-title) var(--ath-font-sans); }
.ath-feature p { margin: 0; color: var(--ath-color-text-secondary); }
.ath-demo__example { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-demo { display: flex; flex-direction: column; gap: var(--ath-space-5); padding: clamp(16px, 2.4vw, 28px); border-radius: var(--ath-radius-xl); background: var(--ath-color-surface); box-shadow: var(--ath-shadow-hairline), var(--ath-shadow-card); }
.ath-demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ath-space-3); }
.ath-demo__crumb { display: flex; gap: 8px; font-weight: var(--ath-weight-bold); }
.ath-demo__crumb span:last-child { color: var(--ath-color-text-secondary); font-weight: var(--ath-weight-regular); }
.ath-demo__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--ath-space-4); margin: 0; }
.ath-demo__kpis > div { padding: var(--ath-space-4); border-radius: var(--ath-radius-md); background: var(--ath-color-subtle); }
.ath-demo__kpis dt { font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-demo__kpis dd { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0; }
.ath-demo__kpis dd span:first-child { font: var(--ath-weight-regular) 30px / 1 var(--ath-font-serif); }
.ath-demo__kpis dd span:last-child { font-size: 13px; color: var(--ath-color-success); }
.ath-demo__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--ath-space-4); }
.ath-demo__panel { display: flex; flex-direction: column; gap: var(--ath-space-3); padding: var(--ath-space-4); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-md); }
.ath-demo__row { display: flex; justify-content: space-between; gap: var(--ath-space-3); font-size: var(--ath-text-small); }
.ath-demo__row span:first-child { font-weight: var(--ath-weight-bold); }
.ath-demo__row span:last-child, .ath-demo__axis span { color: var(--ath-color-text-secondary); font-weight: var(--ath-weight-regular); }
.ath-demo__chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.ath-demo__chart span { flex: 1; height: var(--v); border-radius: 3px 3px 0 0; background: var(--ath-color-action); opacity: .8; }
.ath-demo__path { display: flex; flex-direction: column; gap: 6px; }
.ath-demo__table { overflow-x: auto; }
.ath-demo__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--ath-text-small); }
.ath-demo__table th, .ath-demo__table td { padding: 10px 8px; border-top: 1px solid var(--ath-color-border); text-align: left; }
.ath-demo__table th { border-top: 0; color: var(--ath-color-text-secondary); font-weight: var(--ath-weight-regular); }
.ath-demo__progress { display: flex; align-items: center; gap: 8px; }
.ath-demo__progress .ath-progress { flex: 1; min-width: 60px; }
.ath-onboarding { display: flex; flex-direction: column; gap: var(--ath-space-4); margin: var(--ath-space-4) 0 0; padding: 0; list-style: none; }
.ath-onboarding li { display: flex; align-items: baseline; gap: var(--ath-space-4); }

/* ═════════════════════════════════════════════════════════════════════
   Contact — who to write to beside the form, then the common questions.
   ═════════════════════════════════════════════════════════════════════ */
.ath-contact { padding-block: clamp(48px, 7vw, 104px) 0; }
.ath-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 112px); align-items: start; }
.ath-contact__info { display: flex; flex-direction: column; gap: var(--ath-space-6); }
.ath-contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--ath-space-5); margin: 0; }
.ath-contact__list dt { font-weight: var(--ath-weight-bold); }
.ath-contact__list dd { margin: 4px 0 0; color: var(--ath-color-text-secondary); overflow-wrap: anywhere; }
.ath-contact__address { font-style: normal; color: var(--ath-color-text-secondary); }
.ath-contact__address strong { display: block; color: var(--ath-color-text); }
.ath-contact__form { display: flex; flex-direction: column; gap: var(--ath-space-4); padding: clamp(20px, 3vw, 40px); border: 1px solid var(--ath-color-border); border-radius: var(--ath-radius-xl); background: var(--ath-color-surface); }
.ath-contact__form textarea { resize: vertical; }
.ath-contact__msg { margin: 0; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
.ath-contact__msg.is-error { color: var(--ath-color-error); }
.ath-contact__msg a { color: inherit; font-weight: var(--ath-weight-bold); }
.ath-contact__done { display: flex; flex-direction: column; align-items: center; gap: var(--ath-space-3); padding: var(--ath-space-5); text-align: center; }
.ath-contact__done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ath-color-success-surface); color: var(--ath-color-success); }
.ath-contact__done-title { margin: 0; font-size: 22px; }
.ath-contact__done-text { margin: 0; max-width: 42ch; color: var(--ath-color-text-secondary); }
.ath-contact #faq { padding-block: clamp(56px, 8vw, 112px); }

/* ═════════════════════════════════════════════════════════════════════
   Completion — Moodle's course completion: the outcome first, then what is still
   pending and the certificates (learner-area patterns; no separate Figma screen).
   ═════════════════════════════════════════════════════════════════════ */
.ath-completion { max-width: 960px; }
.ath-completion__hero { display: flex; flex-direction: column; align-items: center; gap: var(--ath-space-4); text-align: center; }
.ath-completion__done { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ath-color-success-surface); color: var(--ath-color-success); }
.ath-completion__title { margin: 0; font-size: clamp(32px, 24px + 1.6vw, 52px); line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.ath-completion__lead { margin: 0; max-width: 52ch; color: var(--ath-color-text-secondary); }
.ath-completion__total { margin: 0; font-weight: var(--ath-weight-bold); }
.ath-completion__progress { display: flex; flex-direction: column; gap: var(--ath-space-2); width: min(400px, 100%); }
.ath-completion__progress-text { margin: 0; font-weight: var(--ath-weight-bold); }
.ath-completion__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 420px)); justify-content: center; gap: var(--ath-space-5); margin-top: clamp(40px, 5vw, 64px); }
.ath-completion__cards:empty { display: none; }
.ath-completion__criteria { margin-top: clamp(40px, 5vw, 64px); }
.ath-completion__cert > .ath-btn { align-self: flex-start; margin-top: var(--ath-space-2); }
.ath-completion__seal { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--ath-space-2); border-radius: 50%; background: var(--ath-color-selected); color: var(--ath-color-recognition); }
.ath-completion__seal--lens { width: 56px; height: 56px; background: none; }
/* a long list of requirements reads down two columns on wide screens, in Moodle's order */
.ath-completion__list { columns: 2 320px; column-gap: var(--ath-space-7); margin: var(--ath-space-2) 0 0; padding: 0; list-style: none; }
.ath-completion__criterion { display: grid; grid-template-columns: 20px 1fr; gap: var(--ath-space-3); align-items: start; margin-bottom: var(--ath-space-3); break-inside: avoid; }
.ath-completion__mark { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--ath-color-border-strong); border-radius: 50%; }
.ath-completion__criterion.is-done .ath-completion__mark { border-color: var(--ath-color-success); background: var(--ath-color-success-surface); color: var(--ath-color-success); }
.ath-completion__label { display: block; font-weight: var(--ath-weight-bold); }
.ath-completion__meta { display: block; font-size: var(--ath-text-small); color: var(--ath-color-text-secondary); }
