/* ==========================================================================
   0. SELF-HOSTED FONTS (variable woff2, latin subset — replaces the mockup's
   Google Fonts link; DESIGN.md §2.3). font-display swap keeps text visible.
   ========================================================================== */
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dmsans.woff2') format('woff2');
}

/* ==========================================================================
   UCAGS DESIGN SYSTEM — v1.0 (Amaya, webnet-designer)
   Universal College of Applied & General Studies — pure-PHP rebuild
   --------------------------------------------------------------------------
   Original CSS, written for this project (no Astra/Elementor/ElementsKit/
   JKit/Tutor/Metform code — obligations ledger binding).
   Consumed directly by PHP templates via app/public/assets/css/main.css.

   Structure:
     1. Tokens (primitives → semantic)
     2. Base & reset
     3. Typography & section scaffolding
     4. Buttons & links
     5. Shells: topbar / header / nav / offcanvas
     6. Hero & page band
     7. Homepage section components
     8. Cards: course / event / testimonial / program
     9. Archive: toolbar / chips / pagination
    10. Course page: facts / curriculum accordion / lesson lists
    11. Auth: login card, register form, captcha
    12. Forms (global field system)
    13. Feedback: alerts, toasts, badges, progress, states
    14. Dashboard (student)
    15. Instructor profile
    16. Admin core (shell for Stage E)
    17. Utilities
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* ---- Brand primitives: purple ramp (anchored #592C88 @ 700) ---- */
  --purple-50:  #F9F7FC;
  --purple-100: #F0EAF7;
  --purple-200: #E0D5EE;
  --purple-300: #C9B2DF;
  --purple-400: #AE8DCB;
  --purple-500: #8C61C0;   /* live hover purple  */
  --purple-600: #7B4FA1;   /* live hover purple  */
  --purple-700: #592C88;   /* BRAND PRIMARY      */
  --purple-800: #47236C;
  --purple-900: #371B52;
  --purple-950: #251238;

  /* ---- Brand primitives: yellow ramp (anchored #FFC53A @ 400) ---- */
  --yellow-50:  #FFF9EB;
  --yellow-100: #FFF1CB;
  --yellow-200: #FFE59D;
  --yellow-300: #FFD865;
  --yellow-400: #FFC53A;   /* BRAND ACCENT       */
  --yellow-500: #EDAF18;
  --yellow-600: #D1970F;
  --yellow-700: #A9770C;
  --yellow-800: #7D580A;
  --yellow-900: #5A4007;

  /* ---- Neutrals / ink ---- */
  --ink:        #292929;   /* live body text     */
  --ink-soft:   #5C5670;   /* secondary text (6.9:1 on white) */
  --ink-faint:  #6E6880;   /* meta text (5.6:1 on white) */
  --line:       #EAEAEA;   /* live form border   */
  --line-strong:#CECECE;   /* live form focus    */
  --bg:         #FFFFFF;
  --bg-alt:     #F7F5FA;   /* warm purple-gray section ground */
  --bg-band:    #ECEAF0;   /* gray CTA band      */

  /* ---- Supporting brand hues ---- */
  --indigo:     #36348E;   /* live auth buttons + links      */
  --indigo-strong:#2B2977;
  --green:      #2B7258;   /* live accent green / success    */
  --green-soft: #E7F2ED;
  --warning:    #9A5B08;
  --warning-soft: #FFF3DD;
  --danger:     #B3261E;
  --danger-soft:#FCEBEA;
  --info-soft:  #EEEBF8;

  /* ---- Semantic aliases (use these in components) ---- */
  --brand:        var(--purple-700);
  --brand-strong: var(--purple-800);
  --brand-soft:   var(--purple-100);
  --on-brand:     #FFFFFF;
  --accent:       var(--yellow-400);
  --on-accent:    var(--ink);
  --text:         var(--ink);
  --text-soft:    var(--ink-soft);
  --link:         var(--indigo);
  --focus-ring:   0 0 0 3px rgba(89, 44, 136, .32);

  /* ---- Typography ---- */
  --font-display: 'Cormorant', 'Times New Roman', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', Arial, sans-serif;

  --fs-50:  0.75rem;    /* 12px meta, captions   */
  --fs-100: 0.8125rem;  /* 13px small            */
  --fs-200: 0.875rem;   /* 14px eyebrow, buttons */
  --fs-300: 0.9375rem;  /* 15px body (live size) */
  --fs-400: 1rem;       /* 16px forms, UI        */
  --fs-500: 1.125rem;   /* 18px lead             */
  --fs-600: 1.375rem;   /* 22px card titles (display font) */
  --fs-700: 1.75rem;    /* 28px                  */
  --fs-800: clamp(1.875rem, 1.2rem + 2.4vw, 2.25rem);  /* 30–36 section H2 */
  --fs-900: clamp(2.25rem, 1.4rem + 3.2vw, 3rem);      /* 36–48 inner H1   */
  --fs-hero: clamp(2.625rem, 1.5rem + 4.6vw, 3.5rem);  /* 42–56 hero       */
  --fs-giant: clamp(2.75rem, 2rem + 3vw, 4rem);        /* counter digits   */

  --lh-tight: 1.08;     /* display headings      */
  --lh-snug:  1.25;
  --lh-body:  1.7;

  /* ---- Spacing (4px base) ---- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-8: 2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;    --sp-16: 4rem;    --sp-20: 5rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);   /* section rhythm */
  --container: 75rem;                        /* 1200px */
  --container-wide: 82.5rem;                 /* 1320px admin/archive */
  --gutter: clamp(1.25rem, 4vw, 2rem);

  /* ---- Radii ---- */
  --radius-xs: 3px;
  --radius-sm: 5px;      /* buttons, chips, inputs (live squared feel) */
  --radius-md: 9px;      /* cards */
  --radius-lg: 16px;     /* auth cards, panels */
  --radius-pill: 999px;

  /* ---- Elevation (purple-tinted) ---- */
  --shadow-1: 0 1px 2px rgba(37,18,56,.05), 0 3px 10px rgba(37,18,56,.07);
  --shadow-2: 0 4px 14px rgba(37,18,56,.09), 0 14px 34px rgba(37,18,56,.12);
  --shadow-3: 0 8px 24px rgba(37,18,56,.14), 0 24px 60px rgba(37,18,56,.18);
  --shadow-accent: 0 6px 18px rgba(255,197,58,.35);

  /* ---- Motion ---- */
  --dur-fast: 150ms;
  --dur: 260ms;
  --dur-slow: 450ms;
  --ease: cubic-bezier(.22, .7, .3, 1);

  /* ---- Z-index ladder ---- */
  --z-topbar: 100;
  --z-header: 200;
  --z-dropdown: 300;
  --z-offcanvas: 400;
  --z-modal: 500;
  --z-toast: 600;

  /* ---- Breakpoints (documented; used in media queries below) ----
     --bp-xs: 480px  --bp-sm: 640px  --bp-md: 768px
     --bp-lg: 1024px --bp-xl: 1200px --bp-2xl: 1440px          */
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--purple-200); color: var(--purple-900); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-toast);
  background: var(--brand); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) 0; font-size: var(--fs-200);
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   3. TYPOGRAPHY & SECTION SCAFFOLDING
   ========================================================================== */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--purple-900);
  letter-spacing: .01em;
}
.display--caps { text-transform: uppercase; letter-spacing: .045em; }
h1, .h1 { font-size: var(--fs-900); }
h2, .h2 { font-size: var(--fs-800); }
h3, .h3 { font-size: var(--fs-700); }
h4, .h4 { font-size: var(--fs-600); }
.lead { font-size: var(--fs-500); color: var(--text-soft); line-height: 1.65; }
.meta { font-size: var(--fs-100); color: var(--ink-faint); }
.overline-white { color: rgba(255,255,255,.92); }
p + p { margin-top: var(--sp-4); }

/* Eyebrow — the recurring brand gesture: yellow tick + rule + caps */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-200); font-weight: 500;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--purple-600); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent); }
.eyebrow--on-dark { color: var(--accent); }
.eyebrow--on-dark::after { content: ""; width: 44px; height: 1px; background: rgba(255,255,255,.35); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--band { background: var(--bg-band); }
.section--purple { background: linear-gradient(135deg, var(--purple-800), var(--purple-700) 55%, var(--purple-600)); color: #fff; }
.section--purple h2, .section--purple h3 { color: #fff; }
.section--purple .lead { color: rgba(255,255,255,.85); }
.section-head { max-width: 44rem; margin-bottom: var(--sp-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--accent); }
.section-head p { margin-top: var(--sp-4); }

/* ==========================================================================
   4. BUTTONS & LINKS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px;                       /* tap target */
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-200); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Brand purple → yellow inversion on hover (live brand behavior) */
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); }

.btn--yellow { background: var(--accent); color: var(--on-accent); }
.btn--yellow:hover, .btn--yellow:focus-visible { background: var(--brand); color: #fff; }

.btn--indigo { background: var(--indigo); color: #fff; }        /* auth CTAs (live indigo) */
.btn--indigo:hover, .btn--indigo:focus-visible { background: var(--accent); color: var(--on-accent); }

.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--brand); color: #fff; }

.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.btn--sm { min-height: 38px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-100); letter-spacing: .1em; }
.btn--lg { min-height: 52px; padding: var(--sp-4) var(--sp-8); }
.btn--block { width: 100%; }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--yellow.is-loading::after, .btn--outline.is-loading::after { border-color: rgba(89,44,136,.3); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Text link with yellow sweep underline */
.text-link {
  color: var(--link); text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  transition: background-size var(--dur) var(--ease), color var(--dur);
  padding-bottom: 2px;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 2px; color: var(--brand); }

/* ==========================================================================
   5. SHELLS — TOPBAR / HEADER / NAV / OFFCANVAS
   ========================================================================== */
.topbar { background: var(--purple-900); color: rgba(255,255,255,.85); font-size: var(--fs-100); position: relative; z-index: var(--z-topbar); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 38px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; padding: 0; }
.topbar__links a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-2); }
.topbar__links a:hover { color: var(--accent); }
.topbar__links .sep { color: rgba(255,255,255,.3); }
.topbar__social { display: flex; gap: var(--sp-2); }
.topbar__social a {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: rgba(255,255,255,.85); transition: background var(--dur-fast), color var(--dur-fast);
}
.topbar__social a:hover { background: var(--accent); color: var(--ink); }
.icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 22px; height: 22px; }

/* Header — white on public pages */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur);
}
.site-header.is-stuck { box-shadow: var(--shadow-1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand--on-dark img { filter: brightness(0) invert(1); }  /* white crest version */

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-3) var(--sp-4); min-height: 44px;
  font-size: var(--fs-300); font-weight: 500; color: var(--ink); text-decoration: none;
  border-radius: var(--radius-sm); position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: 6px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link .caret { width: 10px; height: 10px; fill: currentColor; transition: transform var(--dur); }

/* Faculty mega-dropdown (CSS open on hover/focus; JS enhances on production) */
.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: 0; z-index: var(--z-dropdown);
  min-width: 300px; padding: var(--sp-4);
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu-title { font-size: var(--fs-100); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding: var(--sp-2) var(--sp-3); }
.nav__menu a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-300);
}
.nav__menu a:hover { background: var(--purple-50); color: var(--brand); }
.nav__menu a .icon { color: var(--purple-500); }
.nav__menu-foot { border-top: 1px solid var(--line); margin-top: var(--sp-3); padding: var(--sp-3); display: flex; justify-content: space-between; align-items: center; }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--ink); transition: background var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--purple-100); color: var(--brand); }
.hamburger { display: grid; }
.hamburger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 2.5px 0; transition: transform var(--dur); }

/* Header — solid purple variant (LMS / course pages, live behavior) */
.site-header--solid { background: var(--brand); border-bottom-color: rgba(255,255,255,.14); }
.site-header--solid .nav__link { color: #fff; }
.site-header--solid .icon-btn { color: #fff; }
.site-header--solid .icon-btn:hover { background: rgba(255,255,255,.14); color: var(--accent); }
.site-header--solid .hamburger span { background: #fff; }

/* Offcanvas drawer — CSS-only open state via checkbox (JS replaces in production) */
.offcanvas-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.offcanvas {
  position: fixed; inset: 0 0 0 auto; width: min(21rem, 86vw); z-index: var(--z-offcanvas);
  background: var(--purple-900); color: #fff; padding: var(--sp-6);
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.offcanvas-toggle:checked ~ .offcanvas { transform: translateX(0); }
.offcanvas__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-6); }
.offcanvas nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-2); color: rgba(255,255,255,.92);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-400); font-weight: 500;
}
.offcanvas nav a:hover { color: var(--accent); padding-left: var(--sp-3); transition: padding var(--dur-fast); }
.offcanvas__sub a { padding-left: var(--sp-8); font-size: var(--fs-300); }
.offcanvas .btn { margin-top: var(--sp-6); }
.offcanvas-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-offcanvas) - 1); background: rgba(37,18,56,.55); opacity: 0; visibility: hidden; transition: opacity var(--dur); }
.offcanvas-toggle:checked ~ .offcanvas-backdrop { opacity: 1; visibility: visible; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .hamburger, .offcanvas, .offcanvas-backdrop, .offcanvas-toggle { display: none; }
}
@media (max-width: 1023px) {
  .topbar__links li:nth-child(n+4) { display: none; } /* keep phone + email + login on small */
}

/* ==========================================================================
   6. HERO & PAGE BAND
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--purple-950); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(37,18,56,.88) 0%, rgba(37,18,56,.62) 45%, rgba(89,44,136,.42) 100%);
}
.hero__content { max-width: 40rem; padding-block: clamp(5rem, 14vw, 9.5rem); color: #fff; }
.hero__content .lead { color: rgba(255,255,255,.88); margin-top: var(--sp-5); max-width: 34rem; }
.hero__title { color: #fff; font-size: var(--fs-hero); margin-top: var(--sp-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
.hero__stats { display: flex; gap: var(--sp-10); margin-top: var(--sp-10); flex-wrap: wrap; }
.hero .funfact__num { color: #fff; }
.hero .funfact__num .suffix { color: var(--accent); }
.hero .funfact__label { color: rgba(255,255,255,.78); }

/* Inner-page band (purple, breadcrumbs + H1) */
.page-band { position: relative; background: linear-gradient(120deg, var(--purple-900), var(--purple-700) 60%, var(--purple-600)); color: #fff; overflow: hidden; }
.page-band::before {   /* crest watermark — echoes footer motif */
  content: ""; position: absolute; right: -2rem; bottom: -3.5rem; width: 15rem; height: 15rem;
  background: radial-gradient(closest-side, rgba(255,255,255,.1), transparent 70%);
  transform: rotate(12deg);
}
.page-band__inner { padding-block: clamp(3rem, 7vw, 4.5rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; font-size: var(--fs-100); color: rgba(255,255,255,.75); }
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: rgba(255,255,255,.4); }
.page-band h1 { color: #fff; margin-top: var(--sp-3); }

/* ==========================================================================
   7. HOMEPAGE SECTION COMPONENTS
   ========================================================================== */
/* Purple 4-column feature band */
.feature-band { background: var(--brand); color: #fff; }
.feature-band__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-10); }
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.feature__icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.12); color: var(--accent);
}
.feature h3 { color: #fff; font-size: var(--fs-400); font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.feature p { font-size: var(--fs-100); color: rgba(255,255,255,.75); margin-top: var(--sp-2); }
@media (min-width: 768px) { .feature-band__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .feature-band__grid { grid-template-columns: repeat(4, 1fr); } }

/* Why-choose-us: image duo + checklist + counters */
.duo { position: relative; display: grid; gap: var(--sp-4); }
.duo img { border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.duo__play {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--ink); box-shadow: var(--shadow-accent);
  transition: transform var(--dur) var(--ease);
}
.duo__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.duo__badge {
  position: absolute; right: -8px; bottom: -16px; padding: var(--sp-2) var(--sp-4);
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  font-size: var(--fs-100); letter-spacing: .12em; text-transform: uppercase;
}
@media (min-width: 768px) { .duo { grid-template-columns: 1.2fr .9fr; } }

.checklist { display: grid; gap: var(--sp-3); list-style: none; padding: 0; margin-top: var(--sp-6); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; font-weight: 500; font-size: var(--fs-300); }
.checklist .icon { color: var(--green); margin-top: 4px; width: 18px; height: 18px; }

.funfacts { display: flex; flex-wrap: wrap; gap: var(--sp-10) var(--sp-16); margin-top: var(--sp-8); }
.funfact { position: relative; padding-left: var(--sp-5); }
.funfact::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--accent); }
.funfact__num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-giant); line-height: 1; color: var(--brand); }
.funfact__num .suffix { color: var(--purple-500); }
.funfact__label { font-size: var(--fs-200); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: var(--sp-2); }

/* Icon rows (No Attendance / Online Education / Qualifications) */
.iconrow { display: grid; gap: var(--sp-6); }
.iconrow__item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); }
.iconrow__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--purple-100); color: var(--brand);
}
.iconrow__item h3 { font-family: var(--font-body); font-size: var(--fs-400); font-weight: 700; }
.iconrow__item p { color: var(--text-soft); font-size: var(--fs-300); margin-top: var(--sp-1); }

/* You Apply / We Connect stacked cards (negative-margin overlap gesture) */
.apply-connect { display: grid; gap: 0; }
.apply-card { position: relative; }
.apply-card__media { overflow: hidden; }
.apply-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.apply-card__body { background: var(--brand); color: #fff; padding: var(--sp-6); }
.apply-card--offset { margin-top: calc(-1 * var(--sp-8)); position: relative; z-index: 2; }
.apply-card--offset .apply-card__body { background: var(--purple-800); }
.apply-card__body h3 { color: #fff; font-size: var(--fs-500); }
.apply-card__body p { color: rgba(255,255,255,.82); font-size: var(--fs-300); margin-top: var(--sp-2); }
.apply-card__body .btn { margin-top: var(--sp-4); }
@media (min-width: 768px) { .apply-connect { max-width: 30rem; margin-left: auto; } }

/* Purple contact-form panel (photo + form) */
.contact-panel { display: grid; }
.contact-panel__media { position: relative; min-height: 260px; }
.contact-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel__body { background: var(--brand); color: #fff; padding: clamp(2rem, 5vw, 4rem); }
.contact-panel__body .lead { color: rgba(255,255,255,.85); }
.contact-panel .field label { color: rgba(255,255,255,.9); }
.contact-panel .input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.contact-panel .input::placeholder { color: rgba(255,255,255,.55); }
.contact-panel .input:focus-visible { border-color: var(--accent); }
@media (min-width: 900px) { .contact-panel { grid-template-columns: .9fr 1.1fr; } }

/* Accreditation logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-10); align-items: center; justify-content: center; margin-top: var(--sp-8); }
.logo-strip img { height: 44px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; transition: filter var(--dur), opacity var(--dur); }
.logo-strip img:hover { filter: none; opacity: 1; }

/* Gray CTA band */
.band-cta { text-align: center; }
.band-cta h2 { margin-top: var(--sp-4); }
.band-cta p { max-width: 46rem; margin: var(--sp-4) auto 0; color: var(--text-soft); }
.band-cta .btn { margin-top: var(--sp-8); }

/* ==========================================================================
   8. CARDS — COURSE / EVENT / TESTIMONIAL / PROGRAM
   ========================================================================== */
.course-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--purple-200); }

/* Parameterized branded cover — replaces the repeated placeholder image.
   Faculty hue rotates via --cover-hue; program crest is the logo mark. */
.course-card__cover {
  --cover-hue: var(--purple-700);
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center; text-align: center; padding: var(--sp-6);
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(255,255,255,.16), transparent 45%),
    linear-gradient(150deg, color-mix(in srgb, var(--cover-hue) 88%, #fff 12%), var(--cover-hue) 55%, color-mix(in srgb, var(--cover-hue) 82%, #000 18%));
  color: #fff;
}
.course-card__cover img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-inline: auto; }
.course-card__cover .cover-program { font-size: var(--fs-100); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-top: var(--sp-4); }
.course-card__cover .cover-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-600); line-height: 1.15; margin-top: var(--sp-1); }
.course-card__cover--photo img.logo-mark { position: absolute; top: var(--sp-4); left: var(--sp-4); height: 34px; }
.course-card__cover--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-card__cover--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,18,56,.14), rgba(37,18,56,.66)); }
.course-card__cover--photo .cover-stack { position: relative; z-index: 1; }

/* Batch chip — Cormorant numeral, yellow notch (memorable batch mark) */
.batch-chip {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 1;
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--accent); color: var(--ink);
  border-radius: var(--radius-xs); padding: 4px 10px 5px;
  font-size: var(--fs-100); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.batch-chip .num { font-family: var(--font-display); font-size: var(--fs-400); font-weight: 700; line-height: 1; }

.course-card__body { display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); padding: var(--sp-5); }
.course-card__faculty { font-size: var(--fs-100); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-600); font-weight: 500; }
.course-card__title { font-size: var(--fs-500); line-height: var(--lh-snug); }
.course-card__title a { color: var(--purple-900); text-decoration: none; }
.course-card__title a:hover { color: var(--brand); }
.course-card__meta { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-100); color: var(--ink-faint); }
.avatar-dot {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--purple-100); color: var(--brand);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-300);
}
.course-card__facts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-100); color: var(--ink-soft); }
.course-card__facts span { display: inline-flex; align-items: center; gap: 5px; }
.course-card__facts .icon { color: var(--purple-500); }
.course-card__footer { margin-top: auto; padding-top: var(--sp-2); }

/* Event cards */
.event-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--dur), transform var(--dur) var(--ease); }
.event-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.event-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.04); }
.event-card__date {
  position: absolute; left: var(--sp-4); top: var(--sp-4); z-index: 1;
  background: var(--accent); color: var(--ink); border-radius: var(--radius-xs);
  padding: 6px 10px; text-align: center; line-height: 1.15;
}
.event-card__date .d { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-600); }
.event-card__date .m { display: block; font-size: var(--fs-50); letter-spacing: .14em; text-transform: uppercase; }
.event-card__body { padding: var(--sp-5); }
.event-card__body h3 { font-size: var(--fs-500); }
.event-card__body h3 a { color: var(--purple-900); text-decoration: none; }
.event-card__body h3 a:hover { color: var(--brand); }
.event-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-100); color: var(--ink-faint); }
.event-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-card__meta .icon { color: var(--purple-500); }
.event-card--row { display: grid; grid-template-columns: 96px 1fr; }
.event-card--row .event-card__media { aspect-ratio: auto; min-height: 100%; }

/* Events layout: 1 large + 2 small stacked (live homepage pattern) */
.events-layout { display: grid; gap: var(--sp-6); align-items: start; }
.events-side { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .events-layout { grid-template-columns: 2fr 1fr; } }

/* Testimonial card (initial avatar, stars — live pattern, tokenized) */
.testimonial-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-6); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: var(--sp-4); }
.testimonial-card::before {
  content: "\201C"; position: absolute; top: var(--sp-2); right: var(--sp-5);
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--purple-100);
}
.testimonial-card__stars { display: flex; gap: 3px; color: var(--yellow-500); }
.testimonial-card__stars .icon { width: 15px; height: 15px; }
.testimonial-card blockquote { font-size: var(--fs-300); color: var(--text-soft); }
.testimonial-card__who { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.testimonial-card__who strong { display: block; font-size: var(--fs-300); }
.testimonial-card__who .meta { margin-top: 0; }

/* Program card (faculty/program landing grids) */
.program-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--dur), transform var(--dur) var(--ease); }
.program-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.program-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-3); align-content: start; }

/* ==========================================================================
   9. ARCHIVE — TOOLBAR / CHIPS / PAGINATION
   ========================================================================== */
/* Filter toolbar overlaps the purple band — the recurring overlap gesture */
.toolbar-wrap { position: relative; z-index: 3; margin-top: calc(-1 * var(--sp-10)); }
.toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-2); padding: var(--sp-4);
  display: grid; gap: var(--sp-4);
}
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr auto; align-items: center; } }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: #fff;
  font-size: var(--fs-100); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); text-decoration: none; cursor: pointer;
  transition: all var(--dur-fast);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { font-size: var(--fs-50); background: rgba(89,44,136,.12); border-radius: var(--radius-pill); padding: 1px 8px; color: var(--brand); }
.chip[aria-pressed="true"] .count { background: rgba(255,255,255,.2); color: #fff; }

.grid-courses { display: grid; gap: var(--sp-6); margin-top: var(--sp-8); }
@media (min-width: 640px) { .grid-courses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-courses { grid-template-columns: repeat(3, 1fr); } }

/* Result meta row */
.results-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

.pagination { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-10); }
.pagination__label { font-size: var(--fs-100); color: var(--ink-faint); margin-right: auto; }
.page-link {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--sp-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: var(--fs-300); text-decoration: none;
  transition: all var(--dur-fast);
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ==========================================================================
   10. COURSE PAGE — FACTS / CURRICULUM / LESSON LISTS
   ========================================================================== */
.facts-grid { display: grid; gap: var(--sp-4); }
.fact { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); }
.fact__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--purple-100); color: var(--brand); }
.fact__label { font-size: var(--fs-100); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.fact__value { font-weight: 700; font-size: var(--fs-300); color: var(--purple-900); margin-top: 2px; }
@media (min-width: 640px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }

/* Curriculum accordion — <details> native, JS enhances */
.accordion { display: grid; gap: var(--sp-3); }
.session { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--dur); }
.session[open] { border-color: var(--purple-300); }
.session > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); min-height: 64px;
}
.session > summary::-webkit-details-marker { display: none; }
.session > summary:hover { background: var(--purple-50); }
.session__chev { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--purple-100); color: var(--brand); transition: transform var(--dur) var(--ease); }
.session__chev .icon { width: 14px; height: 14px; }
.session[open] .session__chev { transform: rotate(180deg); background: var(--brand); color: #fff; }
.session__title { flex: 1; min-width: 0; }
.session__title strong { display: block; font-size: var(--fs-400); color: var(--purple-900); }
.session__title .meta { margin-top: 2px; }
.session__progress { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.session__body { border-top: 1px solid var(--line); padding: var(--sp-2) var(--sp-3) var(--sp-3); }

.lesson-list { display: grid; gap: var(--sp-1); list-style: none; padding: 0; }
.lesson {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.lesson:hover { background: var(--purple-50); }
.lesson__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-sm); }
.lesson__icon--pdf    { background: var(--danger-soft); color: var(--danger); }
.lesson__icon--pptx   { background: var(--warning-soft); color: var(--warning); }
.lesson__icon--video  { background: var(--purple-100); color: var(--brand); }
.lesson__icon--doc    { background: var(--green-soft); color: var(--green); }
.lesson__main { flex: 1; min-width: 0; }
.lesson__name { font-weight: 500; font-size: var(--fs-300); color: var(--ink); }
.lesson__meta { font-size: var(--fs-100); color: var(--ink-faint); margin-top: 1px; }
.lesson__action { flex: none; }
.is-done .lesson__name { color: var(--ink-faint); }
.is-done .lesson__icon { background: var(--green-soft); color: var(--green); }
.lesson--locked { opacity: .6; }
.lesson--locked:hover { background: transparent; }

.material-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-100); font-weight: 500; color: var(--link); text-decoration: none; }
.material-link:hover { color: var(--brand); text-decoration: underline; }

/* Course sidebar enroll/status card */
.enroll-card { position: sticky; top: calc(var(--z-header) + 1rem + 76px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-1); overflow: hidden; }
.enroll-card__cover { aspect-ratio: 16 / 9; }
.enroll-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.enroll-card__price { font-size: var(--fs-100); letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.enroll-card__list { display: grid; gap: var(--sp-3); list-style: none; padding: 0; font-size: var(--fs-300); }
.enroll-card__list li { display: flex; gap: var(--sp-3); align-items: center; color: var(--text-soft); }
.enroll-card__list .icon { color: var(--green); }

/* Two-column course layout */
.course-layout { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 1024px) { .course-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

/* Announcement card */
.announce { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); background: var(--info-soft); border: 1px solid var(--purple-200); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); }
.announce .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; }
.announce strong { color: var(--purple-900); }
.announce .meta { margin-top: 2px; }

/* ==========================================================================
   11. AUTH — LOGIN CARD / REGISTER
   ========================================================================== */
.auth-wrap { display: grid; place-items: center; padding-block: var(--sp-16); }
.auth-card {
  width: 100%; max-width: 26rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); padding: clamp(1.75rem, 4vw, 2.5rem);
}
.auth-card__crest { display: grid; place-items: center; margin-bottom: var(--sp-5); }
.auth-card__crest img { height: 44px; filter: grayscale(1) opacity(.85); }
.auth-card__title { font-size: var(--fs-700); }
.auth-card__sub { color: var(--text-soft); font-size: var(--fs-300); margin-top: var(--sp-2); }
.auth-card form { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.auth-card__row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.auth-card__alt { text-align: center; font-size: var(--fs-300); color: var(--text-soft); margin-top: var(--sp-5); }
.auth-card--gate { max-width: 27rem; }
.gate-note { display: flex; gap: var(--sp-3); background: var(--yellow-50); border: 1px solid var(--yellow-300); border-radius: var(--radius-md); padding: var(--sp-4); font-size: var(--fs-300); color: var(--ink); }
.gate-note .icon { color: var(--yellow-700); flex: none; margin-top: 3px; }

/* ==========================================================================
   12. FORMS
   ========================================================================== */
.form-grid { display: grid; gap: var(--sp-5); }
.form-grid--2col { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form-grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--sp-2); }
.label { font-size: var(--fs-300); font-weight: 700; color: var(--purple-900); }
.req { color: var(--danger); }
.hint { font-size: var(--fs-100); color: var(--ink-faint); }
.error-text { font-size: var(--fs-100); color: var(--danger); display: inline-flex; align-items: center; gap: 5px; }
.error-text .icon { width: 13px; height: 13px; }

.input, .select, .textarea {
  width: 100%; min-height: 46px;
  padding: var(--sp-3) var(--sp-4);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C5670' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: var(--sp-8); }
.input::placeholder, .textarea::placeholder { color: #9A94A6; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { border-color: var(--brand); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(179,38,30,.25); }
.input:disabled { background: var(--bg-alt); color: var(--ink-faint); cursor: not-allowed; }

.check { display: inline-flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-300); color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Honeypot: removed from AT + visually hidden; bots that fill it are dropped */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* Math captcha row */
.captcha-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.captcha-challenge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--purple-50); border: 1px dashed var(--purple-300);
  border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-4);
  font-weight: 700; color: var(--purple-900); user-select: none;
}
.captcha-challenge .icon { color: var(--brand); }
.captcha-row .input { width: 6.5rem; text-align: center; letter-spacing: .2em; }

/* ==========================================================================
   13. FEEDBACK — ALERTS / TOASTS / PILLS / PROGRESS / STATES
   ========================================================================== */
.alert { display: flex; gap: var(--sp-4); align-items: flex-start; border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-300); border: 1px solid transparent; }
.alert .icon { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.alert strong { display: block; }
.alert--info    { background: var(--info-soft);    border-color: var(--purple-200); color: var(--purple-900); }
.alert--info .icon { color: var(--brand); }
.alert--success { background: var(--green-soft);   border-color: #BFDFD2; color: var(--green); }
.alert--success .icon { color: var(--green); }
.alert--warning { background: var(--warning-soft); border-color: #F2D9AC; color: var(--warning); }
.alert--warning .icon { color: var(--warning); }
.alert--danger  { background: var(--danger-soft);  border-color: #F0B9B6; color: var(--danger); }
.alert--danger .icon { color: var(--danger); }

.toast {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: var(--z-toast);
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--purple-900); color: #fff; border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-3); max-width: 24rem;
  font-size: var(--fs-300);
}
.toast .icon { color: var(--accent); flex: none; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: var(--radius-pill); font-size: var(--fs-100); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--enrolled  { background: var(--purple-100); color: var(--purple-800); }
.pill--completed { background: var(--green-soft); color: var(--green); }
.pill--pending   { background: var(--warning-soft); color: var(--warning); }
.pill--active    { background: var(--green-soft); color: var(--green); }
.pill--draft     { background: var(--bg-band); color: var(--ink-soft); }
.pill--danger    { background: var(--danger-soft); color: var(--danger); }

.progress { display: grid; gap: var(--sp-2); }
.progress__track { height: 8px; background: var(--purple-100); border-radius: var(--radius-pill); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--purple-600), var(--brand)); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease); }
.progress__label { display: flex; justify-content: space-between; font-size: var(--fs-100); color: var(--ink-faint); }

/* Empty / loading / error / success states */
.state { text-align: center; padding: var(--sp-12) var(--sp-6); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: #fff; }
.state__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--sp-4); border-radius: 50%; background: var(--purple-100); color: var(--brand); }
.state__icon .icon { width: 26px; height: 26px; }
.state--error .state__icon { background: var(--danger-soft); color: var(--danger); }
.state--success .state__icon { background: var(--green-soft); color: var(--green); }
.state h3 { font-size: var(--fs-500); }
.state p { color: var(--text-soft); max-width: 30rem; margin: var(--sp-2) auto var(--sp-5); }
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--bg-alt) 25%, var(--purple-100) 45%, var(--bg-alt) 65%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   14. DASHBOARD (STUDENT)
   ========================================================================== */
.dash-hero { background: linear-gradient(120deg, var(--purple-900), var(--purple-700) 62%, var(--purple-600)); color: #fff; }
.dash-hero__inner { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.dash-hero h1 { color: #fff; font-size: var(--fs-800); }
.dash-hero .meta { color: rgba(255,255,255,.7); }
.stat-chips { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-chips { grid-template-columns: repeat(4, 1fr); } }
.stat-chip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-5); display: grid; gap: var(--sp-2); position: relative; overflow: hidden; }
.stat-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stat-chip__num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-700); color: var(--brand); line-height: 1; }
.stat-chip__label { font-size: var(--fs-100); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* Enrolled course row */
.course-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-4); transition: box-shadow var(--dur), border-color var(--dur); }
.course-row:hover { box-shadow: var(--shadow-1); border-color: var(--purple-200); }
.course-row__thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 11; position: relative; display: grid; place-items: center; background: linear-gradient(150deg, var(--purple-600), var(--purple-800)); }
.course-row__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-row__thumb .thumb-fallback { filter: brightness(0) invert(1); height: 30px; width: auto; position: relative; }
.course-row__main { display: grid; gap: var(--sp-3); align-content: start; min-width: 0; }
.course-row__top { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: flex-start; flex-wrap: wrap; }
.course-row h3 { font-size: var(--fs-500); }
.course-row h3 a { color: var(--purple-900); text-decoration: none; }
.course-row h3 a:hover { color: var(--brand); }
.course-row__actions { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
@media (min-width: 700px) { .course-row { grid-template-columns: 150px 1fr; } }

/* ==========================================================================
   15. INSTRUCTOR PROFILE
   ========================================================================== */
.profile-head { display: grid; gap: var(--sp-6); align-items: center; }
.profile-avatar {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden; position: relative;
  display: grid; place-items: center; background: linear-gradient(150deg, var(--purple-500), var(--purple-800));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 3rem;
  border: 4px solid var(--accent); flex: none;
}
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-stats { display: flex; gap: var(--sp-8); flex-wrap: wrap; }
.profile-stat strong { font-family: var(--font-display); font-size: var(--fs-700); color: #fff; display: block; line-height: 1; }
.profile-stat span { font-size: var(--fs-100); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (min-width: 768px) { .profile-head { grid-template-columns: auto 1fr; } }

/* ==========================================================================
   16. ADMIN CORE (Stage E shell — same tokens, darker chrome)
   ========================================================================== */
.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 1fr; background: var(--bg-alt); }
.admin-sidebar { display: none; background: var(--purple-950); color: rgba(255,255,255,.85); padding: var(--sp-5); }
.admin-sidebar__brand { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-6); }
.admin-sidebar__brand img { height: 34px; filter: brightness(0) invert(1); }
.admin-sidebar nav a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--radius-sm); color: rgba(255,255,255,.8); text-decoration: none; font-size: var(--fs-300); }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar nav a.is-current { background: var(--brand); color: #fff; }
.admin-sidebar nav a.is-current .icon { color: var(--accent); }
.admin-main { display: grid; align-content: start; gap: var(--sp-6); padding: var(--sp-6); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-5); }
.admin-title { font-size: var(--fs-500); }
@media (min-width: 1024px) {
  .admin-shell { grid-template-columns: 260px 1fr; }
  .admin-sidebar { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card__body { padding: var(--sp-5); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-300); min-width: 640px; }
.table th { text-align: left; font-size: var(--fs-100); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: var(--sp-3) var(--sp-4); border-bottom: 2px solid var(--line); background: var(--bg-alt); white-space: nowrap; }
.table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--purple-50); }
.tabs { display: flex; gap: var(--sp-1); border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tab { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-300); font-weight: 500; color: var(--text-soft); border-bottom: 2px solid transparent; margin-bottom: -2px; text-decoration: none; }
.tab:hover { color: var(--brand); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--accent); font-weight: 700; }

/* ==========================================================================
   17. UTILITIES
   ========================================================================== */
.grid { display: grid; gap: var(--sp-6); }
.grid--2, .grid--3, .grid--4 { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--sp-10); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--wide-right { grid-template-columns: 1fr; }
@media (min-width: 900px) { .split--wide-right { grid-template-columns: .9fr 1.1fr; } }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); } .mt-10 { margin-top: var(--sp-10); } .mt-12 { margin-top: var(--sp-12); }
.u-hide-mobile { display: none !important; }
@media (min-width: 1024px) { .u-hide-mobile { display: revert !important; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Subscribe band + footer — the negative-margin overlap signature */
.footer-stack { position: relative; background: var(--purple-900); margin-top: calc(var(--section-y) * .5); }
.subscribe { position: relative; z-index: 2; transform: translateY(clamp(2.5rem, 6vw, 4rem)); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.subscribe__panel {
  background: linear-gradient(120deg, var(--purple-500), var(--purple-600));
  border-radius: var(--radius-md); box-shadow: var(--shadow-2); color: #fff;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid; gap: var(--sp-6);
}
@media (min-width: 900px) { .subscribe__panel { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.subscribe h2 { color: #fff; margin-top: var(--sp-2); font-size: var(--fs-700); }
.subscribe p { color: rgba(255,255,255,.8); font-size: var(--fs-300); margin-top: var(--sp-2); }
.subscribe__form { display: flex; gap: var(--sp-3); }
.subscribe__form .input { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.subscribe__form .input::placeholder { color: rgba(255,255,255,.6); }
.subscribe__form .input:focus-visible { border-color: var(--accent); }
@media (max-width: 560px) { .subscribe__form { flex-direction: column; } }

.site-footer { background: var(--purple-900); color: rgba(255,255,255,.8); }
.site-footer::before { content: none; }
.footer-grid { display: grid; gap: var(--sp-10); padding-block: var(--sp-12) var(--sp-8); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; } }
.footer-brand img { height: 56px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: var(--fs-300); margin-top: var(--sp-5); }
.footer-brand a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-brand a:hover { color: var(--accent); }
.footer-col h3 { color: #fff; font-size: var(--fs-500); margin-bottom: var(--sp-5); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-col a:hover { color: var(--accent); padding-left: 4px; transition: padding var(--dur-fast); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: var(--sp-5); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-100); color: rgba(255,255,255,.6); }
.footer-bottom .topbar__social a { color: rgba(255,255,255,.7); }
.footer-bottom .topbar__social a:hover { color: var(--ink); }

/* ==========================================================================
   18. PRODUCTION ADDITIONS — stage C (T4).
   Design-system.css above is the untouched contract; everything below is
   production-only glue documented here (per DESIGN.md header note).
   ========================================================================== */

/* ---- CMS prose (generic pages carry migrated owner HTML) ---------------- */
.prose { color: var(--text); max-width: 74ch; }
.prose h2, .prose h3, .prose h4 { margin: var(--sp-8) 0 var(--sp-3); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-top: var(--sp-4); }
.prose img { border-radius: var(--radius-md); margin-block: var(--sp-5); height: auto; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: var(--sp-6); margin-block: var(--sp-4); }
.prose li { margin-block: var(--sp-1); }
.prose table { border-collapse: collapse; width: 100%; margin-block: var(--sp-5); font-size: var(--fs-300); }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--sp-2) var(--sp-3); text-align: left; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: var(--sp-5); color: var(--text-soft); margin-block: var(--sp-5); }
.prose iframe { max-width: 100%; border-radius: var(--radius-md); margin-block: var(--sp-5); aspect-ratio: 16 / 9; height: auto; }

/* ---- Search modal (DESIGN.md §4.1 — original, no libs) ------------------ */
.search-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: start center; padding: clamp(3rem, 10vh, 6rem) var(--sp-5) var(--sp-6);
  background: rgba(37, 18, 56, .62); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal__panel {
  width: min(38rem, 100%); background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-3); overflow: hidden;
  transform: translateY(-8px); transition: transform var(--dur) var(--ease);
}
.search-modal.is-open .search-modal__panel { transform: translateY(0); }
.search-modal__bar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.search-modal__bar .icon { color: var(--ink-faint); flex: none; }
.search-modal__input {
  flex: 1; border: 0; outline: none; min-height: 44px;
  font-size: var(--fs-500); color: var(--text); background: transparent;
}
.search-modal__input::placeholder { color: #9A94A6; }
.search-modal__close { flex: none; }
.search-modal__results { max-height: 46vh; overflow-y: auto; padding: var(--sp-2); }
.search-modal__results a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none;
}
.search-modal__results a:hover, .search-modal__results a.is-active { background: var(--purple-50); color: var(--brand); }
.search-modal__results .kind {
  flex: none; font-size: var(--fs-50); letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple-600); background: var(--purple-100); border-radius: var(--radius-xs); padding: 2px 8px;
}
.search-modal__results .search-modal__hint { padding: var(--sp-4); color: var(--ink-faint); font-size: var(--fs-300); }
body.search-open { overflow: hidden; }

/* ---- Lightbox (original; gallery images inside CMS prose) --------------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--sp-8);
  background: rgba(37, 18, 56, .86); opacity: 0; visibility: hidden; transition: opacity var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(64rem, 100%); max-height: 86vh; border-radius: var(--radius-md); box-shadow: var(--shadow-3); }
.lightbox .icon-btn { position: absolute; top: var(--sp-5); right: var(--sp-5); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.14); color: var(--accent); }

/* ---- Toast stack (flash messages render here) ---------------------------- */
.toast-stack { position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: var(--z-toast); display: grid; gap: var(--sp-3); }
.toast-stack .toast { position: static; animation: toast-in var(--dur) var(--ease); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ---- Error pages (branded, same tokens) ---------------------------------- */
.error-hero { display: grid; place-items: center; text-align: center; padding-block: clamp(5rem, 16vh, 9rem); }
.error-hero__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--brand); }
.error-hero p { color: var(--text-soft); max-width: 34rem; margin-inline: auto; }
.error-hero .btn { margin-top: var(--sp-6); }

/* ---- Breadcrumb chips on course band (inline-styled in mockup) ----------- */
.chip--on-dark { background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.3) !important; color: #fff !important; }

/* ---- JS state hooks (offcanvas / backdrop via site.js, not checkboxes) --- */
.offcanvas.is-open { transform: translateX(0); }
.offcanvas.is-open ~ .offcanvas-backdrop { opacity: 1; visibility: visible; }

/* ---- Cover stack uses spans in the PHP partials (valid inside <a>) ----- */
.cover-stack { display: grid; justify-items: center; }
.cover-stack .cover-program { display: block; }
.cover-stack .cover-name { display: block; }

/* ---- Lesson viewer (stage D) -------------------------------------------- */
.lesson-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1); }
.lesson-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson--current { background: var(--purple-50); }
.lesson--current .lesson__icon { background: var(--brand); color: #fff; }

/* ---- D-M1 fix: covers are links; the sweep underline must not paint
   through the Cormorant cover name --------------------------------------- */
.course-card__cover, .course-card__cover:hover, .course-card__cover:focus-visible { text-decoration: none; }

/* ---- D-m3: closed offcanvas must leave the tab order ---------------------- */
.offcanvas { visibility: hidden; }
.offcanvas.is-open { visibility: visible; }

/* ---- D-m4: accreditation logos get a white chip so dark marks stay AA
   against the purple band -------------------------------------------------- */
.logo-strip img { background: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }

/* ---- Hero background video (QA fix 2) — lazy-mounted by site.js --------- */
.hero__video {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.hero__video iframe {
  position: absolute; top: 50%; left: 50%;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  pointer-events: none; border: 0;
}

/* ==========================================================================
   19. RESPONSIVE POLISH (stage F — "neat and clean" pass)
   Small-screen rhythm fixes; the desktop design contract is untouched.
   ========================================================================== */

/* Logo strip chips: consistent footprint at narrow widths */
@media (max-width: 640px) {
  .logo-strip { gap: var(--sp-4); }
  .logo-strip img { min-height: 44px; min-width: 80px; object-fit: contain; }
}

/* Search modal: comfortable padding on small screens */
@media (max-width: 480px) {
  .search-modal { padding: var(--sp-4); }
  .search-modal__input { font-size: var(--fs-400); }
}

/* Course page: enroll-card doesn't need sticky below desktop (1-col stack) */
@media (max-width: 1023px) {
  .enroll-card { position: static; }
}

/* Events side cards: prevent date chip from overflowing the compact row */
@media (max-width: 480px) {
  .event-card--row { grid-template-columns: 1fr; }
  .event-card--row .event-card__media { aspect-ratio: 16 / 9; }
}

/* Feature band icon+text: tighter alignment on very narrow screens */
@media (max-width: 360px) {
  .feature { grid-template-columns: 1fr; }
  .feature__icon { margin-bottom: var(--sp-2); }
}

/* Auth card: prevent the captcha row from feeling cramped at 360 */
@media (max-width: 400px) {
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-row .input { width: 100%; }
}

/* Admin: bulk toolbar wraps at narrow widths (flex-wrap already set —
   ensure the Apply button stays visible after wrap) */
.admin-toolbar button[type="submit"] { flex-shrink: 0; }

/* Admin table action columns: keep buttons on one line */
.admin-table td:last-child, .table td:last-child { white-space: nowrap; }
