/* ═══════════════════════════════════════════════════════════════
   OL-UI-000120 — Front-end brochure theme (Core 1.0.73.110)
   WHAT:  The admin look on the learner and public pages: cream page,
          white cards with a thin warm border and 18px corners, Cormorant
          Garamond headings, Montserrat text on one type scale, navy hero
          bands, gold kickers, pill status chips, one gold primary button,
          navy outline secondary buttons, navy/gold selected chips.
   WHY:   The owner asked for "the sort of theme you have on admin" on the
          front end, and had reported pages that felt cramped, mixed sizes,
          text cut off and poor phone layouts.
   NOTE:  Loaded by layouts/public.blade.php only (body.ol-front), after the
          Appearance stylesheet and before page builder / custom CSS.
          Colours are --ol-fe-* tokens from tokens.css, so light, dark and
          "system" switch together. Page builder content (.ol-page, e.g. the
          home page .olh slider) is never restyled: generic rules exclude it.
          Sign-in / error pages use layouts/auth (§5 of oleren-premium.css).
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Page, tokens for the shared components ───────────────── */
/* The compatibility tokens (--deep, --signal, …) resolve to the Appearance
   colours at :root; inside the front-end chrome and learner pages they are
   re-pointed to the brochure palette. Builder content keeps the originals. */
body.ol-front { background: var(--ol-fe-page); color: var(--ol-fe-text); }
body.ol-front:has(#main > .ol-page) { background: var(--c-bg); }
.ol-front :is(.site-header, .public-drawer, .site-footer, #main > :not(.ol-page)) {
  --c-bg: var(--ol-fe-page);
  --sand: var(--ol-fe-page);
  --c-surface: var(--ol-fe-surface);
  --paper: var(--ol-fe-surface);
  --c-surface-2: var(--ol-fe-surface-2);
  --c-border: var(--ol-fe-border);
  --line: var(--ol-fe-border);
  --line-soft: var(--ol-fe-divider);
  --line-strong: var(--ol-fe-border-strong);
  --c-text: var(--ol-fe-text);
  --text: var(--ol-fe-text);
  --c-text-muted: var(--ol-fe-muted);
  --text-muted: var(--ol-fe-muted);
  --c-text-faint: var(--ol-fe-muted);
  --text-faint: var(--ol-fe-muted);
  --c-link: var(--ol-fe-link);
  --ol-kicker: var(--ol-fe-kicker);
  --ink: var(--ol-fe-title);
}
.ol-mode-light .ol-front :is(.site-header, .public-drawer, .site-footer, #main > :not(.ol-page)),
.ol-mode-system .ol-front :is(.site-header, .public-drawer, .site-footer, #main > :not(.ol-page)) {
  --c-primary: var(--ol-brand-navy);
  --c-primary-hover: var(--ol-brand-navy-deep);
  --deep: var(--ol-brand-navy);
  --deep-soft: var(--ol-brand-navy-deep);
  --deep-wash: rgba(32,56,100,.06);
  --c-accent: var(--ol-gold-antique);
  --c-accent-hover: var(--ol-gold-text);
  --signal: var(--ol-gold-antique);
  --signal-dim: var(--ol-gold-text);
  --signal-wash: #F6EEDC;
  --c-accent-soft: #F6EEDC;
}
@media (prefers-color-scheme: dark) {
  .ol-mode-system .ol-front :is(.site-header, .public-drawer, .site-footer, #main > :not(.ol-page)) {
    --c-primary: var(--ol-navy-300); --c-primary-hover: #A3C2F1; --deep: var(--ol-gold-light); --deep-soft: var(--ol-gold);
    --deep-wash: rgba(241,212,138,.08); --c-accent: var(--ol-bronze-300); --c-accent-hover: #E7BC65; --signal: var(--ol-gold);
    --signal-dim: var(--ol-gold-light); --signal-wash: rgba(241,212,138,.10); --c-accent-soft: rgba(241,212,138,.10);
  }
}
.ol-mode-dark .ol-front :is(.site-header, .public-drawer, .site-footer, #main > :not(.ol-page)) {
  --deep: var(--ol-gold-light); --deep-soft: var(--ol-gold); --deep-wash: rgba(241,212,138,.08);
  --signal: var(--ol-gold); --signal-dim: var(--ol-gold-light); --signal-wash: rgba(241,212,138,.10); --c-accent-soft: rgba(241,212,138,.10);
}

/* ─── 2. Type: one scale, display headings, gold kickers ───────── */
:root .ol-front #main :is(h1, h2, h3):not(.ol-page *) { color: var(--ol-fe-title); font-family: var(--ol-font-heading, var(--font-display)); font-weight: 600; letter-spacing: -.005em; overflow-wrap: break-word; }
:root .ol-front #main h1:not(.ol-page *) { font-size: var(--fs-36); line-height: 1.12; }
:root .ol-front #main h2:not(.ol-page *) { font-size: var(--fs-28); line-height: 1.18; }
:root .ol-front #main h3:not(.ol-page *) { font-size: var(--fs-22); line-height: 1.25; }
:root .ol-front #main :is(h4, h5, h6):not(.ol-page *) { color: var(--ol-fe-title); }
:root .ol-front #main :is(.eyebrow, .metric-label):not(.ol-page *) { display: block; margin: 0 0 6px; color: var(--ol-fe-kicker); font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-12); font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
:root .ol-front #main .lead:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-16); line-height: 1.6; max-width: 62ch; }
:root .ol-front #main :is(.muted, .text-muted, .faint, .hint):not(.ol-page *) { color: var(--ol-fe-muted); }
:root .ol-front #main :is(.small, small):not(.ol-page *) { font-size: var(--fs-14); }
:root .ol-front #main .xs:not(.ol-page *) { font-size: var(--fs-12); }
:root .ol-front #main p:not(.ol-page *) { line-height: 1.6; }
:root .ol-front #main a:not(.btn):not([class]):not(.ol-page *) { color: var(--ol-fe-link); }
@media (max-width: 640px) {
  :root .ol-front #main h1:not(.ol-page *) { font-size: var(--fs-28); }
  :root .ol-front #main h2:not(.ol-page *) { font-size: var(--fs-22); }
  :root .ol-front #main h3:not(.ol-page *) { font-size: var(--fs-18); }
}

/* ─── 3. Header, account menu, phone menu, footer ─────────────── */
:root .ol-front .site-header { background: var(--ol-fe-header-bg); border-bottom: 1px solid var(--ol-fe-border); box-shadow: 0 1px 0 rgba(13,27,51,.02); }
:root .ol-front .public-header-shell { min-height: 72px; gap: 16px; }
:root .ol-front .public-nav-surface { border-radius: 999px; }
:root .ol-front .public-header-actions .btn-primary { min-height: 44px; padding-inline: 20px; }
:root .ol-front .public-account-trigger { min-height: 44px; border-color: var(--ol-fe-border); background: var(--ol-fe-surface); color: var(--ol-fe-title); }
:root .ol-front .public-account-name { font-size: var(--fs-14); font-weight: 600; }
:root .ol-front .public-account-popover { background: var(--ol-fe-surface); border: 1px solid var(--ol-fe-border); border-radius: 16px; box-shadow: var(--ol-fe-shadow-hover); padding: 8px; }
:root .ol-front :is(.public-account-link, .public-account-signout) { min-height: 44px; border-radius: 10px; color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 600; }
:root .ol-front :is(.public-account-link, .public-account-signout):hover { background: var(--ol-fe-surface-2); color: var(--ol-fe-title); }
:root .ol-front .public-account-link .icon { color: var(--ol-fe-kicker); }
:root .ol-front .public-account-signout { color: var(--ol-fe-muted); }
:root .ol-front .public-menu-toggle { width: 44px; height: 44px; border-radius: 12px; border-color: var(--ol-fe-border); background: var(--ol-fe-surface); color: var(--ol-fe-title); }
:root .ol-front .public-drawer-close { width: 44px; height: 44px; }
:root .ol-front .public-drawer :is(.public-drawer-account-links a, .public-drawer-signout, .public-menu-link-drawer) { min-height: 44px; }

:root .ol-front .site-footer { margin-top: 64px; padding-block: 28px; background: var(--ol-fe-surface); border-top: 1px solid var(--ol-fe-border); color: var(--ol-fe-muted); font-size: var(--fs-14); }
:root .ol-front .site-footer a { color: var(--ol-fe-link); font-size: var(--fs-14); font-weight: 500; text-decoration: none; }
:root .ol-front .site-footer a:hover { text-decoration: underline; }
:root .ol-front .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
:root .ol-front .site-footer .faint { color: var(--ol-fe-muted); }
:root .ol-front:has(#main > .ol-page) .site-footer { margin-top: 0; }

/* ─── 4. Shared components (never inside builder content) ─────── */
:root .ol-front #main .shell:not(.ol-page *) { min-width: 0; }
:root .ol-front #main :is(.card, .ol-card):not(.ol-page *) {
  background: var(--ol-fe-surface);
  border: 1px solid var(--ol-fe-border);
  border-radius: var(--ol-fe-radius);
  box-shadow: var(--ol-fe-shadow);
  color: var(--ol-fe-text);
}
:root .ol-front #main :is(.card:not(.card-flush), .ol-card):not(.ol-page *) { padding: 28px; }
:root .ol-front #main .card .card:not(.ol-page *) { box-shadow: none; }
:root .ol-front #main :is(.card-hover, .card-lift):hover:not(.ol-page *) { box-shadow: var(--ol-fe-shadow-hover); border-color: var(--ol-fe-border-strong); transform: none; }
:root .ol-front #main .card-soft:not(.ol-page *) { background: var(--ol-fe-surface-2); border-color: var(--ol-fe-divider); box-shadow: none; }
:root .ol-front #main :is(.card-head, .card-foot):not(.ol-page *) { border-color: var(--ol-fe-divider); background: transparent; }

/* Buttons: gold pill (primary), navy outline (secondary), quiet text. */
:root .ol-front :is(#main, .site-header, .public-drawer) .btn:not(.ol-page *) { font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-14); font-weight: 650; letter-spacing: .01em; min-height: 44px; border-radius: 999px; padding: 12px 22px; line-height: 1.2; }
:root .ol-front :is(#main, .site-header, .public-drawer) .btn-sm:not(.ol-page *) { padding: 10px 18px; }
:root .ol-front :is(#main, .site-header, .public-drawer) .btn-lg:not(.ol-page *) { font-size: var(--fs-16); padding: 14px 28px; }
:root .ol-front :is(#main, .site-header, .public-drawer) .btn-primary:not(.ol-page *) {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ol-btn-gold-text);
  background: var(--ol-btn-gold); border-color: transparent; color: var(--ol-btn-gold-text);
  box-shadow: 0 6px 16px -10px rgba(191,143,0,.65);
}
:root .ol-front :is(#main, .site-header, .public-drawer) .btn-primary:hover:not(.ol-page *) { background: var(--ol-btn-gold-hover); color: var(--ol-btn-gold-text); }
:root .ol-front #main :is(.btn-ghost, .btn-secondary, .btn:not([class*="btn-"])):not(.ol-page *) {
  --btn-bg: transparent; --btn-bd: var(--ol-fe-btn2-border); --btn-fg: var(--ol-fe-btn2-fg);
  background: transparent; border: 1px solid var(--ol-fe-btn2-border); color: var(--ol-fe-btn2-fg);
}
:root .ol-front #main :is(.btn-ghost, .btn-secondary, .btn:not([class*="btn-"])):hover:not(.ol-page *) { background: var(--ol-fe-btn2-hover-bg); color: var(--ol-fe-btn2-fg); box-shadow: none; }
:root .ol-front #main .btn-quiet:not(.ol-page *) { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ol-fe-link); background: transparent; border-color: transparent; color: var(--ol-fe-link); padding-inline: 12px; }
:root .ol-front #main .btn-quiet:hover:not(.ol-page *) { background: var(--ol-fe-btn2-hover-bg); color: var(--ol-fe-link); }
:root .ol-front #main .btn.is-disabled:not(.ol-page *) { opacity: .55; }
:root .ol-front #main .back-link:not(.ol-page *) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ol-fe-link); font-size: var(--fs-14); font-weight: 600; text-decoration: none; }

/* Pill status chips */
:root .ol-front #main .badge:not(.ol-page *) { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 12px; border-radius: 999px; border: 0; font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; text-transform: none; }
:root .ol-front #main :is(.badge-neutral, .badge-signal, .badge-info):not(.ol-page *) { background: var(--ol-fe-chip-bg); color: var(--ol-fe-chip-fg); }
:root .ol-front #main .badge-success:not(.ol-page *) { background: var(--ol-fe-ok-bg); color: var(--ol-fe-ok-fg); }

/* Fields */
:root .ol-front #main :is(.input, .select, .textarea):not(.ol-page *) { min-height: 48px; border: 1px solid var(--ol-fe-border-strong); border-radius: 12px; background: var(--ol-fe-surface); color: var(--ol-fe-text); font-size: var(--fs-16); }
:root .ol-front #main :is(.input, .select, .textarea):focus:not(.ol-page *) { border-color: var(--ol-gold-antique); box-shadow: 0 0 0 3px rgba(191,143,0,.2); outline: 0; }
:root .ol-front #main .label:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 600; }
:root .ol-front #main .field:not(.ol-page *) { margin-bottom: 18px; }

/* Progress bars: thin cream track, gold fill. */
:root .ol-front #main progress:not(.ol-page *) { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--ol-fe-track); overflow: hidden; }
:root .ol-front #main progress:not(.ol-page *)::-webkit-progress-bar { background: var(--ol-fe-track); border-radius: 999px; }
:root .ol-front #main progress:not(.ol-page *)::-webkit-progress-value { background: var(--ol-fe-fill); border-radius: 999px; }
:root .ol-front #main progress:not(.ol-page *)::-moz-progress-bar { background: var(--ol-fe-fill); border-radius: 999px; }

/* Alerts and empty states */
:root .ol-front #main .alert:not(.ol-page *) { border-radius: 14px; font-size: var(--fs-14); }
:root .ol-front #main :is(.ol-empty, .learning-empty):not(.ol-page *) { padding: 40px 24px; text-align: center; }
:root .ol-front #main .ol-empty > b { display: block; margin-bottom: 6px; color: var(--ol-fe-title); font-size: var(--fs-16); }
:root .ol-front #main .ol-empty > p { margin: 0 auto; max-width: 42ch; color: var(--ol-fe-muted); font-size: var(--fs-14); }
:root .ol-front #main .learning-empty .feature-icon { margin: 0 auto 12px; }

/* Navy square badge with a gold glyph (icon slots) */
:root .ol-front #main :is(.feature-icon, .ol-public-course-card-mark, .assessment-rule-icon, .assessment-result-icon, .ol-learner-quick-actions .feature-icon):not(.ol-page *) {
  display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ol-badge-bg); border: 1px solid var(--ol-badge-border); color: var(--ol-badge-fg);
}

/* Page heads */
:root .ol-front #main :is(.page-head, .learning-page-head, .ol-learner-page-intro, .page-intro):not(.ol-page *) { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 32px 0 24px; }
:root .ol-front #main :is(.page-head, .learning-page-head, .ol-learner-page-intro, .page-intro) > div:first-child:not(.ol-page *) { min-width: 0; flex: 1 1 auto; max-width: 100%; }
:root .ol-front #main :is(.page-head, .learning-page-head, .ol-learner-page-intro, .page-intro) > .btn:not(.ol-page *) { flex: none; }
:root .ol-front #main :is(.page-head, .learning-page-head, .ol-learner-page-intro, .page-intro) :is(h1, h2):not(.ol-page *) { margin: 0 0 8px; }
:root .ol-front #main :is(.page-head, .learning-page-head, .ol-learner-page-intro, .page-intro) :is(.lead, p.muted):not(.ol-page *) { margin: 0; }
:root .ol-front #main section.page-intro:not(.ol-page *) { display: block; }
:root .ol-front #main .section:not(.ol-page *) { padding-top: 8px; padding-bottom: 24px; }

/* ─── 5. Learner identity (profile header + tabs) ─────────────── */
:root .ol-front .ol-profile-identity:not(.ol-page *) { margin: 24px 0 0; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); }
:root .ol-front .ol-profile-cover:not(.ol-page *) { min-height: 132px; background: var(--ol-fe-hero-bg); }
:root .ol-front .ol-profile-cover:not(.has-image):not(.ol-page *)::after { opacity: .35; }
:root .ol-front .ol-profile-cover-shade:not(.ol-page *) { background: linear-gradient(to top, rgba(13,27,51,.35), transparent 70%); }
:root .ol-front .ol-profile-cover-action:not(.ol-page *) { min-height: 44px; min-width: 44px; justify-content: center; border-color: rgba(241,212,138,.45); background: rgba(13,27,51,.55); color: #FBF8F3; font-size: var(--fs-12); }
:root .ol-front .ol-profile-identity-body:not(.ol-page *) { min-height: 88px; padding: 16px 28px 16px 148px; gap: 16px; }
:root .ol-front .ol-profile-photo-wrap:not(.ol-page *) { left: 28px; top: -48px; }
:root .ol-front .avatar.ol-profile-photo:not(.ol-page *) { width: 104px; height: 104px; border: 4px solid var(--ol-fe-surface); box-shadow: 0 0 0 1px var(--ol-fe-border-strong), 0 8px 20px rgba(13,27,51,.18); font-size: var(--fs-28); }
:root .ol-front .ol-profile-photo-action:not(.ol-page *) { width: 36px; height: 36px; border-color: var(--ol-fe-surface); background: var(--ol-brand-navy); color: var(--ol-gold-light); }
:root .ol-front .ol-profile-photo-action:not(.ol-page *)::before { content: ""; position: absolute; inset: -4px; }
:root .ol-front #main .ol-profile-name-block h1:not(.ol-page *) { margin: 0 0 4px; font-size: var(--fs-28); }
:root .ol-front #main .ol-profile-name-block p:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-14); }
:root .ol-front .ol-profile-admin-link:not(.ol-page *) { flex: none; }
:root .ol-front .ol-profile-tabs:not(.ol-page *) { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--ol-fe-divider); overflow: visible; }
:root .ol-front .ol-profile-tabs a:not(.ol-page *) { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ol-fe-border); border-radius: 999px; background: var(--ol-fe-surface); color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 600; white-space: nowrap; }
:root .ol-front .ol-profile-tabs a:hover:not(.ol-page *) { border-color: var(--ol-fe-border-strong); background: var(--ol-fe-surface-2); color: var(--ol-fe-title); }
:root .ol-front .ol-profile-tabs a.is-active:not(.ol-page *) { background: var(--ol-fe-chip-active-bg); border-color: var(--ol-fe-chip-active-border); color: var(--ol-fe-chip-active-fg); }
:root .ol-front .ol-profile-tabs a.is-active:not(.ol-page *)::after { content: none; }
:root .ol-front .profile-settings-shell:not(.ol-page *) { padding-bottom: 24px; }
:root .ol-front .ol-profile-content-stack:not(.ol-page *) { margin-top: 24px; }
@media (max-width: 640px) {
  :root .ol-front .ol-profile-identity:not(.ol-page *) { margin-top: 16px; }
  :root .ol-front .ol-profile-cover:not(.ol-page *) { min-height: 84px; }
  :root .ol-front .ol-profile-cover-action span:not(.ol-page *) { display: none; }
  :root .ol-front .ol-profile-cover-action:not(.ol-page *) { top: 12px; right: 12px; width: 44px; padding: 0; }
  :root .ol-front .ol-profile-identity-body:not(.ol-page *) { display: flex; align-items: center; min-height: 0; padding: 12px 16px 14px 104px; text-align: left; }
  :root .ol-front .ol-profile-photo-wrap:not(.ol-page *) { left: 16px; top: -36px; transform: none; }
  :root .ol-front .avatar.ol-profile-photo:not(.ol-page *) { width: 76px; height: 76px; border-width: 3px; font-size: var(--fs-22); }
  :root .ol-front .ol-profile-photo-action:not(.ol-page *) { width: 30px; height: 30px; right: -4px; bottom: 0; }
  :root .ol-front #main .ol-profile-name-block h1:not(.ol-page *) { font-size: var(--fs-22); }
  :root .ol-front #main .ol-profile-name-block p:not(.ol-page *) { font-size: var(--fs-12); }
  :root .ol-front .ol-profile-admin-link:not(.ol-page *) { display: none; }
  /* Tabs: a tidy wrapped set of pills, every word whole, 44px tall to tap. */
  :root .ol-front .ol-profile-tabs:not(.ol-page *) { gap: 6px; padding: 12px 12px 14px; }
  :root .ol-front .ol-profile-tabs a:not(.ol-page *) { min-height: 44px; padding: 8px 14px; flex: 1 1 auto; justify-content: center; }
}

/* ─── 6. My learning (dashboard) ──────────────────────────────── */
:root .ol-front .ol-learner-dashboard:not(.ol-page *) { padding-bottom: 24px; }
:root .ol-front .ol-learner-org:not(.ol-page *) { margin-bottom: 20px; }
:root .ol-front .ol-learner-stats:not(.ol-page *) { gap: 16px; margin-bottom: 20px; }
:root .ol-front .ol-learner-stat:not(.ol-page *) { flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); }
:root .ol-front .ol-learner-stat > div:not(.ol-page *) { min-width: 0; }
:root .ol-front .ol-learner-stat .stat-label:not(.ol-page *) { color: var(--ol-fe-kicker); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; overflow-wrap: normal; word-break: normal; hyphens: none; }
:root .ol-front .ol-learner-stat .stat-value:not(.ol-page *) { margin-top: 4px; color: var(--ol-fe-title); font-size: var(--fs-28); font-weight: 700; line-height: 1.1; }
:root .ol-front .ol-learner-dashboard-grid:not(.ol-page *) { gap: 20px; }
:root .ol-front .ol-learner-panel:not(.ol-page *) { padding: 24px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); min-width: 0; }
:root .ol-front .ol-learner-panel__head:not(.ol-page *) { align-items: flex-end; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ol-fe-divider); }
:root .ol-front #main .ol-learner-panel__head h2:not(.ol-page *) { margin: 0; font-size: var(--fs-22); }
:root .ol-front .ol-learner-panel__head .btn:not(.ol-page *) { flex: none; }
:root .ol-front .ol-learner-course-row:not(.ol-page *) { gap: 20px; padding: 16px 0; border-top: 1px solid var(--ol-fe-divider); }
:root .ol-front .ol-learner-panel__head + .ol-learner-course-row:not(.ol-page *) { border-top: 0; padding-top: 4px; }
:root .ol-front #main .ol-learner-course-row h3:not(.ol-page *) { margin: 0; font-size: var(--fs-18); line-height: 1.3; }
:root .ol-front .ol-learner-course-row .mono:not(.ol-page *) { font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-14); font-weight: 700; color: var(--ol-fe-title); font-variant-numeric: tabular-nums; }
:root .ol-front .ol-learner-course-row progress:not(.ol-page *) { margin: 10px 0 8px; }
:root .ol-front .ol-learner-course-row .xs:not(.ol-page *) { font-size: var(--fs-12); }
:root .ol-front .ol-learner-course-row > .btn:not(.ol-page *) { flex: none; min-width: 120px; }
:root .ol-front .ol-learner-quick-row:not(.ol-page *) { min-height: 64px; gap: 14px; padding: 12px 14px; border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface-2); color: var(--ol-fe-text); }
:root .ol-front .ol-learner-quick-row:hover:not(.ol-page *) { border-color: var(--ol-fe-border-strong); box-shadow: none; }
:root .ol-front .ol-learner-quick-row .feature-icon:not(.ol-page *) { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; }
:root .ol-front .ol-learner-quick-row b:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 650; line-height: 1.4; }
:root .ol-front .ol-learner-quick-row small:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-12); line-height: 1.4; }
:root .ol-front .ol-learner-quick-row > .icon:last-child:not(.ol-page *) { flex: none; color: var(--ol-fe-kicker); }
:root .ol-front .ol-learner-quick-row .spacer:not(.ol-page *) { min-width: 0; }
:root .ol-front .ol-learner-empty:not(.ol-page *) { gap: 14px; padding: 20px; border-radius: 14px; background: var(--ol-fe-surface-2); }
:root .ol-front #main .ol-learner-empty h3:not(.ol-page *) { font-size: var(--fs-18); }
:root .ol-front #main .ol-learner-panel .stack-sm > p:not(.ol-page *) { margin: 0; }
:root .ol-front .ol-learner-quick-actions:not(.ol-page *) { gap: 16px; margin-top: 20px; }
:root .ol-front .ol-learner-quick-actions > a:not(.ol-page *) { min-height: 76px; gap: 14px; padding: 16px 18px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); color: var(--ol-fe-text); }
:root .ol-front .ol-learner-quick-actions > a:hover:not(.ol-page *) { border-color: var(--ol-fe-border-strong); box-shadow: var(--ol-fe-shadow-hover); }
:root .ol-front .ol-learner-quick-actions b:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 650; }
:root .ol-front .ol-learner-quick-actions small:not(.ol-page *) { font-size: var(--fs-12); color: var(--ol-fe-muted); }
@media (max-width: 900px) {
  :root .ol-front .ol-learner-stats:not(.ol-page *) { gap: 12px; }
}
@media (max-width: 640px) {
  :root .ol-front .ol-learner-stat:not(.ol-page *) { padding: 16px; gap: 10px; }
  :root .ol-front .ol-learner-stat .feature-icon:not(.ol-page *) { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
  :root .ol-front .ol-learner-stat .stat-label:not(.ol-page *) { letter-spacing: .06em; }
  :root .ol-front .ol-learner-stat .stat-value:not(.ol-page *) { font-size: var(--fs-22); }
  :root .ol-front .ol-learner-panel:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front .ol-learner-course-row:not(.ol-page *) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  :root .ol-front .ol-learner-course-row__main:not(.ol-page *) { flex: 1 1 100%; }
  :root .ol-front .ol-learner-course-row > .btn:not(.ol-page *) { flex: 1 1 100%; }
  :root .ol-front .ol-learner-quick-actions:not(.ol-page *) { grid-template-columns: 1fr 1fr; gap: 12px; }
  :root .ol-front .ol-learner-quick-actions > a:not(.ol-page *) { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  :root .ol-front .ol-learner-quick-actions .feature-icon:not(.ol-page *) { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
}

/* ─── 7. My courses / My assessments cards ────────────────────── */
:root .ol-front .learning-course-grid:not(.ol-page *) { gap: 20px; }
:root .ol-front #main .learning-course-card:not(.ol-page *) { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
:root .ol-front #main .learning-course-card > .row:first-child:not(.ol-page *) { flex-wrap: wrap; gap: 8px; }
:root .ol-front #main .learning-course-card > .row:first-child > div:not(.ol-page *) { display: flex; flex-wrap: wrap; gap: 6px; }
:root .ol-front #main .learning-course-card h2:not(.ol-page *) { margin: 4px 0 0; font-size: var(--fs-22); }
:root .ol-front #main .learning-course-card > p:not(.ol-page *) { margin: 0; font-size: var(--fs-14); }
:root .ol-front .learning-progress:not(.ol-page *) { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
:root .ol-front .learning-progress .mono:not(.ol-page *) { font-family: var(--ol-font-body, var(--font-ui)); font-weight: 700; color: var(--ol-fe-title); font-variant-numeric: tabular-nums; }
:root .ol-front .learning-progress .small.strong:not(.ol-page *) { color: var(--ol-fe-title); }
:root .ol-front #main .learning-course-card > .row.mt-4:not(.ol-page *) { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--ol-fe-divider); gap: 12px; align-items: center; }
:root .ol-front #main .learning-course-card .card-soft:not(.ol-page *) { padding: 16px; border-radius: 14px; }
:root .ol-front #main .learning-course-card .card-soft b:not(.ol-page *) { display: block; color: var(--ol-fe-title); font-size: var(--fs-14); }
@media (max-width: 640px) {
  :root .ol-front #main .learning-course-card:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front #main .learning-course-card > .row.mt-4:not(.ol-page *) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :root .ol-front #main .learning-course-card > .row.mt-4 .btn:not(.ol-page *) { width: 100%; }
}

/* ─── 8. Course page (learner course home) ────────────────────── */
:root .ol-front .ol-course-experience-hero:not(.ol-page *) { background: var(--ol-fe-hero-bg); min-height: 0; border-bottom: 1px solid rgba(212,168,74,.35); }
:root .ol-front .ol-course-experience-hero:not(.has-poster) .ol-course-experience-hero-overlay:not(.ol-page *) { display: none; }
:root .ol-front .ol-course-experience-hero.has-poster .ol-course-experience-hero-overlay:not(.ol-page *) { background: linear-gradient(90deg, rgba(13,27,51,.94) 0%, rgba(13,27,51,.78) 55%, rgba(13,27,51,.45) 100%); }
:root .ol-front .ol-course-experience-hero-inner:not(.ol-page *) { padding-top: 48px; padding-bottom: 48px; }
:root .ol-front #main .ol-course-experience-hero :is(h1):not(.ol-page *) { color: var(--ol-fe-hero-title); max-width: 28ch; margin: 0 0 12px; font-size: var(--fs-48); line-height: 1.05; }
:root .ol-front #main .ol-course-experience-hero .eyebrow:not(.ol-page *) { color: var(--ol-fe-hero-kicker); }
:root .ol-front #main .ol-course-experience-hero .lead:not(.ol-page *) { color: var(--ol-fe-hero-text); font-size: var(--fs-18); max-width: 60ch; }
:root .ol-front .ol-course-hero-meta:not(.ol-page *) { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border: 1px solid var(--ol-fe-hero-chip-border); border-radius: 999px; background: var(--ol-fe-hero-chip-bg); color: var(--ol-fe-hero-title); font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em; }
:root .ol-front .ol-course-experience-layout:not(.ol-page *) { gap: 32px; padding-top: 32px; }
:root .ol-front .ol-course-experience-main > section:not(.ol-page *) { margin-bottom: 32px; }
:root .ol-front .ol-course-experience-copy:not(.ol-page *), :root .ol-front .ol-course-experience-curriculum:not(.ol-page *), :root .ol-front .ol-course-experience-assessments:not(.ol-page *) { padding: 28px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); }
:root .ol-front #main .ol-course-experience-copy h2:not(.ol-page *) { margin: 0 0 12px; }
:root .ol-front .learning-rich-text:not(.ol-page *) { color: var(--ol-fe-text); font-size: var(--fs-16); line-height: 1.7; }
:root .ol-front .ol-course-experience-section-head:not(.ol-page *) { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
:root .ol-front #main .ol-course-experience-section-head h2:not(.ol-page *) { margin: 0; }
:root .ol-front .ol-course-curriculum-list:not(.ol-page *) { display: grid; gap: 10px; }
:root .ol-front .ol-course-curriculum-section:not(.ol-page *) { border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface); overflow: hidden; }
:root .ol-front .ol-course-curriculum-section + .ol-course-curriculum-section:not(.ol-page *) { border-top: 1px solid var(--ol-fe-divider); }
:root .ol-front .ol-course-curriculum-section > summary:not(.ol-page *) { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; cursor: pointer; list-style: none; }
:root .ol-front .ol-course-curriculum-section > summary:not(.ol-page *)::-webkit-details-marker { display: none; }
:root .ol-front .ol-course-curriculum-section[open] > summary:not(.ol-page *) { background: var(--ol-fe-surface-2); border-bottom: 1px solid var(--ol-fe-divider); }
:root .ol-front .ol-course-curriculum-section > summary strong:not(.ol-page *) { display: block; color: var(--ol-fe-title); font-size: var(--fs-16); font-weight: 650; line-height: 1.35; }
:root .ol-front .ol-course-curriculum-section > summary small:not(.ol-page *) { display: block; color: var(--ol-fe-muted); font-size: var(--fs-12); }
:root .ol-front .ol-course-curriculum-section > summary > .icon:not(.ol-page *) { flex: none; color: var(--ol-fe-kicker); }
:root .ol-front :is(.ol-course-curriculum-section-index, .ol-course-curriculum-state):not(.ol-page *) { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ol-fe-border-strong); background: var(--ol-fe-surface); color: var(--ol-fe-title); font-size: var(--fs-12); font-weight: 700; }
:root .ol-front :is(.ol-course-curriculum-section-index.is-complete, .ol-course-curriculum-lesson.is-complete .ol-course-curriculum-state):not(.ol-page *) { border-color: transparent; background: var(--ol-brand-navy); color: var(--ol-gold-light); }
:root .ol-front .ol-course-curriculum-lessons:not(.ol-page *) { display: grid; gap: 0; padding: 4px 8px 8px; }
:root .ol-front .ol-course-curriculum-lesson:not(.ol-page *) { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 10px 10px 8px; border-radius: 12px; border-bottom: 1px solid var(--ol-fe-divider); background: transparent; color: var(--ol-fe-text); text-decoration: none; }
:root .ol-front .ol-course-curriculum-lesson:last-child:not(.ol-page *) { border-bottom: 0; }
:root .ol-front a.ol-course-curriculum-lesson:hover:not(.ol-page *) { background: var(--ol-fe-surface-2); }
:root .ol-front .ol-course-curriculum-lesson b:not(.ol-page *) { display: block; color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 650; line-height: 1.4; }
:root .ol-front .ol-course-curriculum-lesson small:not(.ol-page *) { display: block; color: var(--ol-fe-muted); font-size: var(--fs-12); }
:root .ol-front .ol-course-curriculum-lesson > .icon:not(.ol-page *) { flex: none; color: var(--ol-fe-kicker); }
:root .ol-front .ol-course-curriculum-lesson .spacer:not(.ol-page *), :root .ol-front .ol-course-curriculum-section > summary .spacer:not(.ol-page *) { min-width: 0; }
:root .ol-front .ol-course-curriculum-lesson.is-locked:not(.ol-page *) { opacity: .8; }
:root .ol-front .ol-course-assessment-list:not(.ol-page *) { display: grid; gap: 10px; }
:root .ol-front .ol-course-assessment-row:not(.ol-page *) { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface-2); color: var(--ol-fe-text); text-decoration: none; }
:root .ol-front .ol-course-assessment-row > span:first-child:not(.ol-page *) { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--ol-badge-bg); color: var(--ol-badge-fg); }
:root .ol-front .ol-course-assessment-row b:not(.ol-page *) { display: block; color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 650; }
:root .ol-front .ol-course-assessment-row small:not(.ol-page *) { display: block; color: var(--ol-fe-muted); font-size: var(--fs-12); }
:root .ol-front .ol-course-assessment-row > .icon:last-child:not(.ol-page *) { flex: none; color: var(--ol-fe-kicker); }
/* Course card (right rail): progress first, one gold action, facts. */
:root .ol-front .ol-course-experience-card:not(.ol-page *) { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); }
:root .ol-front .ol-course-experience-card-media:not(.has-image):not(.ol-page *) { display: none; }
:root .ol-front .ol-course-experience-card-media.has-image:not(.ol-page *) { min-height: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
:root .ol-front .ol-course-experience-card > .row:not(.ol-page *) { align-items: baseline; }
:root .ol-front .ol-course-experience-card > .row .strong:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-16); font-weight: 650; }
:root .ol-front .ol-course-experience-card > .row .mono:not(.ol-page *) { font-family: var(--ol-font-heading, var(--font-display)); font-size: var(--fs-36); font-weight: 600; line-height: 1; color: var(--ol-fe-title); font-variant-numeric: lining-nums tabular-nums; }
:root .ol-front #main .ol-course-experience-card > p:not(.ol-page *) { margin: 0; font-size: var(--fs-14); }
:root .ol-front .ol-course-experience-primary:not(.ol-page *) { width: 100%; min-height: 48px; }
:root .ol-front .ol-course-experience-card-facts:not(.ol-page *) { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ol-fe-divider); }
:root .ol-front .ol-course-experience-card-facts > span:not(.ol-page *) { display: flex; align-items: center; gap: 10px; color: var(--ol-fe-text); font-size: var(--fs-14); }
:root .ol-front .ol-course-experience-card-facts .icon:not(.ol-page *) { color: var(--ol-fe-kicker); }
:root .ol-front .ol-course-experience-jump:not(.ol-page *) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ol-fe-link); font-size: var(--fs-14); font-weight: 650; text-decoration: none; }
:root .ol-front .ol-course-experience-card-status:not(.ol-page *) { color: var(--ol-fe-title); font-weight: 650; }
:root .ol-front .ol-course-preview-banner:not(.ol-page *) { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--ol-fe-border); border-radius: 14px; background: var(--ol-fe-surface-2); }
@media (max-width: 900px) {
  :root .ol-front #main .ol-course-experience-hero h1:not(.ol-page *) { font-size: var(--fs-36); }
}
@media (max-width: 680px) {
  :root .ol-front .ol-course-experience-hero:not(.ol-page *) { min-height: 0; }
  :root .ol-front .ol-course-experience-hero-inner:not(.ol-page *) { padding-top: 32px; padding-bottom: 28px; }
  :root .ol-front #main .ol-course-experience-hero h1:not(.ol-page *) { font-size: var(--fs-28); }
  :root .ol-front #main .ol-course-experience-hero .lead:not(.ol-page *) { font-size: var(--fs-16); }
  :root .ol-front .ol-course-experience-layout:not(.ol-page *) { gap: 20px; padding-top: 20px; }
  :root .ol-front .ol-course-experience-card:not(.ol-page *) { grid-template-columns: 1fr; padding: 20px 16px; }
  :root .ol-front .ol-course-experience-copy:not(.ol-page *), :root .ol-front .ol-course-experience-curriculum:not(.ol-page *), :root .ol-front .ol-course-experience-assessments:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front .ol-course-experience-main > section:not(.ol-page *) { margin-bottom: 20px; }
  :root .ol-front .ol-course-curriculum-lessons:not(.ol-page *) { padding: 4px 4px 6px; }
  :root .ol-front .ol-course-curriculum-section > summary:not(.ol-page *) { padding: 12px; gap: 12px; }
}

/* ─── 9. Lesson page ──────────────────────────────────────────── */
:root .ol-front .learning-lesson-toolbar:not(.ol-page *) { margin-top: 24px; }
:root .ol-front #main .learning-lesson-page:not(.ol-page *) { padding: 32px; }
:root .ol-front #main .learning-lesson-page h1:not(.ol-page *) { margin: 0 0 10px; }
:root .ol-front .learning-content-stack:not(.ol-page *) { display: grid; gap: 24px; margin-top: 24px; }
:root .ol-front .learning-content-block:not(.ol-page *) { padding-top: 24px; border-top: 1px solid var(--ol-fe-divider); }
:root .ol-front #main .learning-content-block h2:not(.ol-page *) { margin: 0 0 12px; font-size: var(--fs-22); }
:root .ol-front .learning-rich-text :is(ul, ol):not(.ol-page *) { padding-left: 1.25rem; }
:root .ol-front .learning-rich-text li + li:not(.ol-page *) { margin-top: 6px; }
:root .ol-front .learning-completion-action:not(.ol-page *) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface-2); }
:root .ol-front .learning-completion-action b:not(.ol-page *) { color: var(--ol-fe-title); }
:root .ol-front :is(.lesson-progress-note, .download-card, .assignment-attempt):not(.ol-page *) { border-color: var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface-2); }
:root .ol-front .learning-lesson-nav .btn:not(.ol-page *) { max-width: 100%; white-space: normal; text-align: left; }
@media (max-width: 640px) {
  :root .ol-front #main .learning-lesson-page:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front .learning-lesson-toolbar:not(.ol-page *) { margin-top: 16px; }
  :root .ol-front .learning-completion-action:not(.ol-page *) { padding: 16px; }
  :root .ol-front .learning-completion-action .btn:not(.ol-page *), :root .ol-front .learning-completion-action form:not(.ol-page *) { width: 100%; }
  :root .ol-front .learning-lesson-nav > *:not(.ol-page *) { flex: 1 1 100%; }
}

/* ─── 10. Assessments: overview and result ────────────────────── */
:root .ol-front .assessment-learner-overview:not(.ol-page *) { padding-top: 32px; }
:root .ol-front #main .assessment-learner-hero:not(.ol-page *) { gap: 20px; }
:root .ol-front #main .assessment-learner-hero h1:not(.ol-page *) { margin: 0; }
:root .ol-front #main .assessment-learner-hero > .row:first-child > .row:not(.ol-page *) { gap: 8px; }
:root .ol-front .assessment-learner-rule-grid:not(.ol-page *) { gap: 12px; }
:root .ol-front .assessment-learner-rule-grid > div:not(.ol-page *) { gap: 12px; padding: 16px; border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface-2); }
:root .ol-front #main .assessment-learner-rule-grid .assessment-rule-icon:not(.ol-page *) { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
:root .ol-front .assessment-learner-rule-grid small:not(.ol-page *) { color: var(--ol-fe-kicker); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:root .ol-front .assessment-learner-rule-grid b:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-14); }
:root .ol-front .assessment-learner-rule-grid em:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-12); font-style: normal; }
:root .ol-front .assessment-start-button:not(.ol-page *) { min-height: 48px; }
:root .ol-front .assessment-history-row:not(.ol-page *) { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 4px; border-bottom: 1px solid var(--ol-fe-divider); color: var(--ol-fe-text); text-decoration: none; }
:root .ol-front .assessment-history-row:last-child:not(.ol-page *) { border-bottom: 0; }
:root .ol-front .assessment-history-row b:not(.ol-page *) { display: block; color: var(--ol-fe-title); font-size: var(--fs-14); }
:root .ol-front .assessment-history-row small:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-12); }
:root .ol-front .assessment-history-row > span:last-child:not(.ol-page *) { flex: none; color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 650; }
:root .ol-front .assessment-result-page:not(.ol-page *) { padding-top: 32px; }
:root .ol-front #main .assessment-result-card:not(.ol-page *) { align-items: center; padding: 40px 28px; }
:root .ol-front #main .assessment-result-card .assessment-result-icon:not(.ol-page *) { flex-basis: 56px; width: 56px; height: 56px; border-radius: 16px; }
:root .ol-front #main .assessment-result-card .stat-value:not(.ol-page *) { font-family: var(--ol-font-heading, var(--font-display)); font-size: var(--fs-48); font-weight: 600; line-height: 1; color: var(--ol-fe-title); font-variant-numeric: lining-nums tabular-nums; }
:root .ol-front .assessment-result-actions:not(.ol-page *) { justify-content: center; gap: 10px; }
:root .ol-front #main .assessment-review-card:not(.ol-page *) { margin-top: 24px; }
:root .ol-front .assessment-review-item:not(.ol-page *) { border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface); }
:root .ol-front .assessment-review-summary:not(.ol-page *) { min-height: 60px; color: var(--ol-fe-text); }
:root .ol-front .assessment-review-summary b:not(.ol-page *) { color: var(--ol-fe-title); }
:root .ol-front .assessment-review-number:not(.ol-page *) { background: var(--ol-badge-bg); color: var(--ol-badge-fg); }
:root .ol-front .assessment-review-policy:not(.ol-page *) { border-radius: 999px; background: var(--ol-fe-chip-bg); color: var(--ol-fe-chip-fg); font-size: var(--fs-12); font-weight: 700; }
:root .ol-front .assessment-review-option:not(.ol-page *) { border-color: var(--ol-fe-divider); border-radius: 12px; }
@media (max-width: 640px) {
  :root .ol-front .assessment-learner-overview:not(.ol-page *), :root .ol-front .assessment-result-page:not(.ol-page *) { padding-top: 20px; }
  :root .ol-front #main .assessment-result-card:not(.ol-page *) { padding: 28px 16px; }
  :root .ol-front .assessment-result-actions .btn:not(.ol-page *) { flex: 1 1 100%; }
  :root .ol-front .assessment-start-button:not(.ol-page *) { width: 100%; }
  :root .ol-front .assessment-review-summary .badge:not(.ol-page *) { white-space: normal; }
}

/* ─── 11. Certificates, verification ──────────────────────────── */
:root .ol-front .profile-settings-shell.page-pad > article.card:not(.ol-page *) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
:root .ol-front #main .profile-settings-shell.page-pad > article.card h3:not(.ol-page *) { margin: 0 0 4px; }
:root .ol-front #main .profile-settings-shell.page-pad > article.card p:not(.ol-page *) { margin: 0; }
:root .ol-front #main .profile-settings-shell.page-pad > article.card .mono:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-12); letter-spacing: .04em; }
:root .ol-front #main .profile-settings-shell.page-pad > article.card > .row:not(.ol-page *) { gap: 10px; align-items: center; }
:root .ol-front .shell-wide.page-pad > .row:first-child:not(.ol-page *) { gap: 16px; align-items: flex-end; margin-top: 24px; }
:root .ol-front #main .shell-wide.page-pad > .row:first-child h1:not(.ol-page *) { margin: 0 0 6px; }
:root .ol-front #main .shell-wide.page-pad > .row:first-child .mono:not(.ol-page *) { margin: 0; color: var(--ol-fe-muted); font-size: var(--fs-14); }
:root .ol-front #main .shell-wide.page-pad > .row:first-child > .row:not(.ol-page *) { gap: 10px; }
:root .ol-front #main .cert-view:not(.ol-page *) { padding: 16px; background: var(--ol-fe-surface-2); }
:root .ol-front #main .shell-wide.page-pad > p.small:not(.ol-page *) { overflow-wrap: anywhere; }
:root .ol-front #main .verify-card:not(.ol-page *) { margin-top: 32px; padding: 40px 32px; }
:root .ol-front #main .verify-card .grid:not(.ol-page *) { gap: 16px; }
:root .ol-front #main .verify-card .grid > div:not(.ol-page *) { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--ol-fe-divider); border-radius: 12px; background: var(--ol-fe-surface-2); min-width: 0; }
:root .ol-front #main .verify-card .grid strong:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-16); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  :root .ol-front .profile-settings-shell.page-pad > article.card > .row:not(.ol-page *) { width: 100%; justify-content: space-between; }
  :root .ol-front #main .shell-wide.page-pad > .row:first-child > .row .btn:not(.ol-page *) { flex: 1 1 auto; }
  :root .ol-front #main .verify-card:not(.ol-page *) { padding: 28px 16px; }
  :root .ol-front #main .verify-card .grid:not(.ol-page *) { grid-template-columns: 1fr; }
}

/* ─── 12. Profile, security, organisations ────────────────────── */
:root .ol-front #main .ol-profile-content-stack > .card h2:not(.ol-page *) { margin: 0 0 8px; }
:root .ol-front .ol-profile-media-editor:not(.ol-page *) { padding: 20px; border: 1px solid var(--ol-fe-divider); border-radius: 14px; background: var(--ol-fe-surface-2); }
:root .ol-front #main .ol-profile-media-editor h3:not(.ol-page *) { font-size: var(--fs-18); }
:root .ol-front #main .ol-profile-content-stack .list-row:not(.ol-page *) { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--ol-fe-divider); }
:root .ol-front #main .ol-profile-content-stack .list-row:last-child:not(.ol-page *) { border-bottom: 0; }
:root .ol-front #main .ol-profile-content-stack .list-row b:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-14); }
:root .ol-front #main .ol-profile-content-stack .list-row .xs:not(.ol-page *) { text-transform: capitalize; }
:root .ol-front #main .grid.ol-profile-content-stack:not(.ol-page *) { gap: 20px; }
:root .ol-front #main .grid.ol-profile-content-stack > * + *:not(.ol-page *) { margin-top: 0; }
@media (max-width: 640px) {
  :root .ol-front #main .ol-profile-content-stack > .card:not(.ol-page *), :root .ol-front #main .grid.ol-profile-content-stack > .card:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front #main .ol-profile-content-stack .btn[type="submit"]:not(.ol-page *) { width: 100%; }
}

/* ─── 13. Public course catalogue ─────────────────────────────── */
:root .ol-front .ol-public-catalogue-hero:not(.ol-page *) { padding: 64px 0 48px; background: var(--ol-fe-hero-bg); border-bottom: 1px solid rgba(212,168,74,.35); }
:root .ol-front #main .ol-public-catalogue-hero h1:not(.ol-page *) { color: var(--ol-fe-hero-title); font-size: var(--fs-48); line-height: 1.05; max-width: 20ch; }
:root .ol-front #main .ol-public-catalogue-hero .eyebrow:not(.ol-page *) { color: var(--ol-fe-hero-kicker); }
:root .ol-front #main .ol-public-catalogue-hero .lead:not(.ol-page *) { color: var(--ol-fe-hero-text); font-size: var(--fs-18); }
:root .ol-front .ol-public-catalogue-stat:not(.ol-page *) { min-width: 168px; padding: 18px 22px; border: 1px solid var(--ol-fe-hero-chip-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-hero-chip-bg); backdrop-filter: none; }
:root .ol-front .ol-public-catalogue-stat strong:not(.ol-page *) { font-family: var(--ol-font-heading, var(--font-display)); font-size: var(--fs-48); font-weight: 600; line-height: 1; color: var(--ol-fe-hero-title); font-variant-numeric: lining-nums; }
:root .ol-front .ol-public-catalogue-stat span:not(.ol-page *) { color: var(--ol-fe-hero-text); font-size: var(--fs-14); }
:root .ol-front .ol-public-catalogue-section:not(.ol-page *) { padding-top: 0; padding-bottom: 24px; }
:root .ol-front .ol-public-catalogue-search:not(.ol-page *) { position: relative; z-index: 2; margin-top: -28px; gap: 10px; padding: 12px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow-hover); }
:root .ol-front .ol-public-catalogue-searchbox:not(.ol-page *) { min-height: 48px; padding: 0 4px 0 14px; border: 1px solid var(--ol-fe-border-strong); border-radius: 12px; }
:root .ol-front .ol-public-catalogue-searchbox .icon:not(.ol-page *) { color: var(--ol-fe-kicker); }
:root .ol-front #main .ol-public-catalogue-searchbox .input:not(.ol-page *) { min-height: 46px; border: 0; box-shadow: none; }
:root .ol-front .ol-public-catalogue-chips:not(.ol-page *) { flex-wrap: wrap; gap: 8px; padding: 20px 0 0; overflow: visible; }
:root .ol-front .ol-public-catalogue-chip:not(.ol-page *) { min-height: 44px; padding: 8px 16px; border: 1px solid var(--ol-fe-border); border-radius: 999px; background: var(--ol-fe-surface); color: var(--ol-fe-title); font-size: var(--fs-14); font-weight: 600; }
:root .ol-front .ol-public-catalogue-chip span:not(.ol-page *) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ol-fe-chip-bg); color: var(--ol-fe-chip-fg); font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-12); font-weight: 700; }
:root .ol-front .ol-public-catalogue-chip:hover:not(.ol-page *) { border-color: var(--ol-fe-border-strong); background: var(--ol-fe-surface-2); color: var(--ol-fe-title); }
:root .ol-front .ol-public-catalogue-chip.is-active:not(.ol-page *) { background: var(--ol-fe-chip-active-bg); border-color: var(--ol-fe-chip-active-border); color: var(--ol-fe-chip-active-fg); }
:root .ol-front .ol-public-catalogue-chip.is-active span:not(.ol-page *) { background: rgba(241,212,138,.18); color: var(--ol-fe-chip-active-fg); }
:root .ol-front .ol-public-catalogue-result-head:not(.ol-page *) { margin: 32px 0 16px; }
:root .ol-front .ol-public-course-grid:not(.ol-page *) { gap: 20px; }
:root .ol-front .ol-public-course-card:not(.ol-page *) { border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface); box-shadow: var(--ol-fe-shadow); }
:root .ol-front .ol-public-course-card:hover:not(.ol-page *) { transform: none; border-color: var(--ol-fe-border-strong); box-shadow: var(--ol-fe-shadow-hover); }
:root .ol-front .ol-public-course-card-main:not(.ol-page *) { flex-direction: column; gap: 14px; padding: 24px 24px 16px; }
:root .ol-front #main .ol-public-course-card h3:not(.ol-page *) { margin: 10px 0 8px; font-size: var(--fs-22); line-height: 1.2; }
:root .ol-front #main .ol-public-course-card p:not(.ol-page *) { color: var(--ol-fe-muted); font-size: var(--fs-14); line-height: 1.6; }
:root .ol-front .ol-public-course-categories span:not(.ol-page *) { padding: 3px 10px; border-radius: 999px; background: var(--ol-fe-chip-bg); color: var(--ol-fe-chip-fg); font-size: var(--fs-12); font-weight: 700; }
:root .ol-front .ol-public-course-card-meta:not(.ol-page *) { margin: 0 24px; padding: 14px 0; border-top: 1px solid var(--ol-fe-divider); color: var(--ol-fe-muted); font-size: var(--fs-14); }
:root .ol-front .ol-public-course-card-meta strong:not(.ol-page *) { color: var(--ol-fe-title); font-size: var(--fs-18); font-weight: 700; font-variant-numeric: tabular-nums; }
:root .ol-front .ol-public-course-card-meta .icon:not(.ol-page *) { color: var(--ol-fe-kicker); }
:root .ol-front .ol-public-course-card-actions:not(.ol-page *) { gap: 10px; padding: 4px 24px 24px; }
:root .ol-front .ol-public-catalogue-commerce:not(.ol-page *) { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--ol-fe-border); border-radius: var(--ol-fe-radius); background: var(--ol-fe-surface-2); }
:root .ol-front #main .ol-public-catalogue-commerce h2:not(.ol-page *) { margin: 0 0 6px; font-size: var(--fs-22); }
@media (max-width: 680px) {
  :root .ol-front .ol-public-catalogue-hero:not(.ol-page *) { padding: 36px 0 52px; }
  :root .ol-front #main .ol-public-catalogue-hero h1:not(.ol-page *) { font-size: var(--fs-36); }
  :root .ol-front #main .ol-public-catalogue-hero .lead:not(.ol-page *) { font-size: var(--fs-16); }
  :root .ol-front .ol-public-catalogue-stat:not(.ol-page *) { display: flex; align-items: baseline; gap: 10px; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
  :root .ol-front .ol-public-catalogue-stat strong:not(.ol-page *) { font-size: var(--fs-36); }
  :root .ol-front .ol-public-catalogue-search:not(.ol-page *) { margin-top: -32px; padding: 12px; }
  :root .ol-front .ol-public-catalogue-search > .btn:not(.ol-page *) { width: 100%; }
  :root .ol-front .ol-public-catalogue-chips:not(.ol-page *) { gap: 6px; }
  :root .ol-front .ol-public-course-card-main:not(.ol-page *) { padding: 20px 16px 12px; }
  :root .ol-front .ol-public-course-card-meta:not(.ol-page *) { margin: 0 16px; }
  :root .ol-front .ol-public-course-card-actions:not(.ol-page *) { padding: 4px 16px 20px; }
  :root .ol-front .ol-public-catalogue-commerce:not(.ol-page *) { padding: 20px 16px; }
}

/* ─── 14. Shop (commerce catalogue), checkout, orders, invoice ── */
:root .ol-front #main .commerce-credit-grid:not(.ol-page *), :root .ol-front #main .grid.grid-3.gap-4:not(.ol-page *) { gap: 20px; }
:root .ol-front #main .card.card-lift:not(.ol-page *) { display: flex; flex-direction: column; gap: 10px; }
:root .ol-front #main .card.card-lift > :is(h2, h3, p):not(.ol-page *) { margin: 0; }
:root .ol-front #main .card.card-lift > h2:not(.ol-page *) { font-size: var(--fs-22); }
:root .ol-front #main .card.card-lift > h3:not(.ol-page *) { font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-22); font-weight: 700; color: var(--ol-fe-title); font-variant-numeric: tabular-nums; }
:root .ol-front #main .card.card-lift > p.muted:not(.ol-page *) { font-size: var(--fs-14); }
:root .ol-front #main .card.card-lift > .btn:not(.ol-page *), :root .ol-front #main .card.card-lift > .row:last-child:not(.ol-page *) { margin-top: auto; }
:root .ol-front #main .card.card-lift > .row:last-child:not(.ol-page *) { flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ol-fe-divider); }
:root .ol-front #main .card.card-lift > p.xs:not(.ol-page *) { color: var(--ol-fe-kicker); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:root .ol-front #main .commerce-credit-amount:not(.ol-page *) { font-family: var(--ol-font-heading, var(--font-display)); font-size: var(--fs-48); line-height: 1; color: var(--ol-fe-title); font-variant-numeric: lining-nums; }
:root .ol-front #main form.card.row:not(.ol-page *) { flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; }
:root .ol-front #main form.card.row > .input:not(.ol-page *) { flex: 1 1 240px; min-width: 0; }
:root .ol-front #main .checkout-layout:not(.ol-page *) { gap: 20px; align-items: start; }
:root .ol-front #main .checkout-layout > .card > h2 + h2:not(.ol-page *) { margin-top: 12px; font-family: var(--ol-font-heading, var(--font-display)); font-size: var(--fs-36); font-variant-numeric: lining-nums; }
:root .ol-front #main .checkout-layout h3:not(.ol-page *) { font-size: var(--fs-18); }
:root .ol-front #main .checkout-payment-card .btn-primary:not(.ol-page *) { width: 100%; min-height: 48px; }
:root .ol-front #main .invoice-card:not(.ol-page *) { padding: 32px; }
:root .ol-front #main .invoice-card .data-table:not(.ol-page *) { width: 100%; }
:root .ol-front #main .invoice-total-row--grand:not(.ol-page *) { color: var(--ol-fe-title); }
/* Order detail lines */
:root .ol-front #main .card.stack-sm > .row.row-between:not(.ol-page *) { align-items: baseline; padding: 6px 0; border-top: 1px solid var(--ol-fe-divider); }
:root .ol-front #main .card.stack-sm > .row.row-between h2:not(.ol-page *) { margin: 0; font-family: var(--ol-font-body, var(--font-ui)); font-size: var(--fs-22); font-weight: 700; font-variant-numeric: tabular-nums; }
:root .ol-front #main .ol-fe-orders ~ *:not(.ol-page *), :root .ol-front #main .section + .section:not(.ol-page *) { margin-top: 0; }
:root .ol-front #main main.section > .card + .card:not(.ol-page *) { margin-top: 16px; }
/* List rows (orders): a table on computers, one compact row per record on phones. */
:root .ol-front #main table.ol-list:not(.ol-page *) { width: 100%; }
:root .ol-front #main table.ol-list th:not(.ol-page *) { color: var(--ol-fe-kicker); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ol-fe-divider); }
:root .ol-front #main table.ol-list td:not(.ol-page *) { border-bottom: 1px solid var(--ol-fe-divider); vertical-align: middle; font-size: var(--fs-14); }
:root .ol-front #main table.ol-list tbody tr:last-child td:not(.ol-page *) { border-bottom: 0; }
:root .ol-front #main table.ol-list :is(th, td):not(.ol-page *) { padding: 14px 20px; overflow-wrap: normal; }
:root .ol-front #main table.ol-list .ol-list-title:not(.ol-page *) { display: block; color: var(--ol-fe-title); font-weight: 650; }
:root .ol-front #main table.ol-list .ol-list-sub:not(.ol-page *) { display: block; margin-top: 2px; color: var(--ol-fe-muted); font-size: var(--fs-12); }
:root .ol-front #main table.ol-list td[data-role="amount"]:not(.ol-page *) { font-weight: 700; color: var(--ol-fe-title); white-space: nowrap; font-variant-numeric: tabular-nums; }
:root .ol-front #main table.ol-list td[data-role="action"]:not(.ol-page *) { text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  :root .ol-front #main .ol-list-wrap:not(.ol-page *) { overflow: visible; }
  :root .ol-front #main table.ol-list:not(.ol-page *), :root .ol-front #main table.ol-list > tbody:not(.ol-page *) { display: block; }
  :root .ol-front #main table.ol-list > thead:not(.ol-page *) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root .ol-front #main table.ol-list > tbody > tr:not(.ol-page *) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; align-items: center; padding: 16px; border-bottom: 1px solid var(--ol-fe-divider); }
  :root .ol-front #main table.ol-list > tbody > tr:last-child:not(.ol-page *) { border-bottom: 0; }
  :root .ol-front #main table.ol-list > tbody > tr > td:not(.ol-page *) { display: block; padding: 0; border: 0; min-width: 0; }
  :root .ol-front #main table.ol-list > tbody > tr > td:not(.ol-page *)::before { content: none; }
  :root .ol-front #main table.ol-list td[data-role="title"]:not(.ol-page *) { grid-column: 1 / -1; }
  :root .ol-front #main table.ol-list td[data-role="amount"]:not(.ol-page *) { grid-column: 1; font-size: var(--fs-16); }
  :root .ol-front #main table.ol-list td[data-role="status"]:not(.ol-page *) { grid-column: 2; justify-self: end; }
  :root .ol-front #main table.ol-list td[data-role="action"]:not(.ol-page *) { grid-column: 1 / -1; text-align: left; }
  :root .ol-front #main table.ol-list td[data-role="action"] .btn:not(.ol-page *) { width: 100%; }
  :root .ol-front #main table.ol-list > tbody > tr.ol-list-empty:not(.ol-page *) { display: block; }
  :root .ol-front #main .page-head > .btn:not(.ol-page *) { width: auto; }
  :root .ol-front #main .checkout-layout > .card:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front #main .card.card-lift:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front #main .card.card-lift > .row:last-child .btn:not(.ol-page *) { flex: 1 1 auto; }
  :root .ol-front #main .invoice-card:not(.ol-page *) { padding: 20px 16px; }
  :root .ol-front #main .invoice-card .table-wrap:not(.ol-page *) { overflow-x: auto; }
}

/* ─── 15. Small pages: demos, unavailable, invitation, LTI, welcome ── */
:root .ol-front #main .card.demo-hero:not(.ol-page *) { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; background: var(--ol-fe-hero-bg); border-color: rgba(212,168,74,.35); color: var(--ol-fe-hero-text); }
:root .ol-front #main .card.demo-hero :is(h1):not(.ol-page *) { color: var(--ol-fe-hero-title); }
:root .ol-front #main .card.demo-hero .eyebrow:not(.ol-page *) { color: var(--ol-fe-hero-kicker); }
:root .ol-front #main .card.demo-hero .lead:not(.ol-page *) { color: var(--ol-fe-hero-text); }
:root .ol-front #main .demo-hero-mark:not(.ol-page *) { color: var(--ol-gold-light); font-size: var(--fs-48); }
:root .ol-front #main .demo-grid:not(.ol-page *) { gap: 20px; }
:root .ol-front #main .demo-card:not(.ol-page *) { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ol-fe-text); text-decoration: none; }
:root .ol-front #main .demo-card h2:not(.ol-page *) { margin: 10px 0 6px; font-size: var(--fs-22); }
:root .ol-front #main .demo-card-arrow:not(.ol-page *) { flex: none; color: var(--ol-fe-kicker); font-size: var(--fs-22); }
:root .ol-front #main .learning-shell > .card.center.learning-empty:not(.ol-page *) { margin-top: 40px; }
:root .ol-front #main .content-narrow > .card.center:not(.ol-page *) { margin-top: 40px; padding: 40px 28px; }
:root .ol-front #main .ol-lti-shell:not(.ol-page *) { padding-block: 48px; }
:root .ol-front #main .hero:not(.ol-page *) { padding: 64px 0 40px; }
:root .ol-front #main .hero h1:not(.ol-page *) { font-size: var(--fs-48); max-width: 20ch; }
:root .ol-front #main .hero .underline-signal:not(.ol-page *) { color: var(--ol-fe-kicker); }
:root .ol-front #main .hero-actions:not(.ol-page *) { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  :root .ol-front #main .card.demo-hero:not(.ol-page *) { margin-top: 20px; }
  :root .ol-front #main .demo-hero-mark:not(.ol-page *) { display: none; }
  :root .ol-front #main .hero:not(.ol-page *) { padding: 32px 0 24px; }
  :root .ol-front #main .hero h1:not(.ol-page *) { font-size: var(--fs-36); }
  :root .ol-front #main .hero-actions .btn:not(.ol-page *) { flex: 1 1 100%; }
  :root .ol-front #main .learning-shell > .card.center.learning-empty:not(.ol-page *), :root .ol-front #main .content-narrow > .card.center:not(.ol-page *) { margin-top: 20px; padding: 28px 16px; }
}

/* Long question prompts in the review list wrap instead of being cut off. */
:root .ol-front .assessment-review-summary-copy:not(.ol-page *), :root .ol-front .assessment-review-summary-copy > span:not(.ol-page *) { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; display: block; }
/* Small disclosure toggles are full 44px tap targets. */
:root .ol-front #main details > summary.small:not(.ol-page *) { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
/* Reference numbers: text-scale size, not 0.9em. */
:root .ol-front #main :is(p, span, strong, td).mono:not(.ol-page *) { font-size: var(--fs-14); }
:root .ol-front #main :is(p, span).mono.xs:not(.ol-page *) { font-size: var(--fs-12); }
/* Commerce page heads: the "← Back" link sits on its own line above the title. */
:root .ol-front #main .page-head > .back-link:not(.ol-page *) { flex: 1 1 100%; margin-bottom: -8px; }
:root .ol-front #main .page-head > .back-link + h1:not(.ol-page *) { flex: 1 1 auto; margin: 0; }
:root .ol-front #main .page-head > :is(h1, h2) + p:not(.ol-page *) { flex: 1 1 100%; margin-top: -8px; }
:root .ol-front #main .assessment-result-card > .row:not(.ol-page *) { justify-content: center; }

/* ─── 16. Course player lesson (learning/courses/lesson-player) ── */
/* Keep the player's own phone toolbar rules: the chip style above must not
   bring back the status chips it hides at ≤ 700px. */
@media (max-width: 700px) {
  :root .ol-front #main .ol-course-player-toolbar > .row:last-child .badge:not(.ol-page *) { display: none; }
  :root .ol-front .ol-course-player-location b:not(.ol-page *) { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
}
:root .ol-front .ol-course-player-toolbar:not(.ol-page *) { background: var(--ol-fe-header-bg); border-bottom-color: var(--ol-fe-border); }
:root .ol-front :is(.ol-course-player-menu, .ol-course-player-close):not(.ol-page *) { width: 44px; height: 44px; border-color: var(--ol-fe-border); border-radius: 12px; background: var(--ol-fe-surface); color: var(--ol-fe-title); }
:root .ol-front .ol-course-player-focus:not(.ol-page *) { min-height: 44px; border-color: var(--ol-fe-border); background: var(--ol-fe-surface); color: var(--ol-fe-title); }
:root .ol-front .ol-course-player-location b:not(.ol-page *) { color: var(--ol-fe-title); }
:root .ol-front .ol-course-player-sidebar:not(.ol-page *) { background: var(--ol-fe-surface); border-color: var(--ol-fe-border); }
:root .ol-front #main .ol-course-player-title-row h2:not(.ol-page *) { font-size: var(--fs-22); }
:root .ol-front .ol-course-player-time:not(.ol-page *) { border-color: var(--ol-fe-border); color: var(--ol-fe-muted); font-size: var(--fs-12); }
:root .ol-front :is(.ol-course-player-back, .ol-course-player-sidebar-foot a):not(.ol-page *) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ol-fe-link); font-size: var(--fs-14); font-weight: 600; text-decoration: none; }
