/*
 * MACS Future Skills Academy — theme layer, loaded last on every page (after calm.css).
 *
 * Design: the soft, rounded layout from before the studio / 3D redesign (borderless cards with large radii, pill
 * buttons, tall coloured track cards with lab mock-ups, bento features), in the blue-and-white colour scheme with a
 * dark toggle. Outfit headings, Plus Jakarta Sans body text.
 *   Tokens (light, dark, always-dark panels, "paper")  →  sections 1 to 5: the layout and the bulb touches
 *   →  light switch and older-class mapping  →  inner pages, demo page, course-thumbnail colours
 *   →  blue-and-white components, header breakpoints, courses page, dashboard  →  final adjustments.
 * The studio / 3D version of this file is kept in _to_delete/backup-before-blue/macs-studio-blue.css.
 */
:root {
  color-scheme: light;
  --mx-navy: #0A2A6B; --mx-gold: #0B4FD6; --mx-teal: #2F6BFF; --mx-sky: #2F6BFF; --mx-bulb: #F2B632;
  --mx-bg: #FFFFFF; --mx-card: #FFFFFF; --mx-surface: #F1F5FC; --mx-surface-2: #E4ECF9; --mx-line: #D3DDEE;
  --mx-ink: #0A1F44; --mx-text: #33415C; --mx-muted: #56637E; --mx-panel: #0A2A6B;
  --mx-accent: #0B4FD6; --mx-teal-ink: #0B4FD6; --mx-gold-ink: #0A2A6B; --mx-navy-ink: #0A2A6B; --mx-gold-tint: #E4ECF9; --mx-tint: #E4ECF9;
  --mx-fill: #0B4FD6; --mx-on-fill: #FFFFFF; --mx-fill-hover: #083CA8;
  --mx-t1: #0A2A6B; --mx-t2: #0B4FD6; --mx-t3: #1B3F8F; --mx-t4: #2F6BFF;
  --mx-r: 28px; --mx-r-sm: 18px;
  --mx-shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 18px 40px -22px rgba(10, 31, 68, .3);
  --mx-ease: cubic-bezier(.2, .8, .2, 1); --mx-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --mx-head: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif; --mx-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mx-display: var(--mx-head); --mx-mono: var(--mx-body);
}
html[data-theme="dark"], .mx-cta, .mx-quiz, .lm-footer {
  color-scheme: dark;
  --mx-bg: #071226; --mx-card: #0C1B36; --mx-surface: #10244A; --mx-surface-2: #16305F; --mx-line: #24406F;
  --mx-ink: #F2F6FF; --mx-text: #C5D0E6; --mx-muted: #94A4C4; --mx-panel: #10244A;
  --mx-accent: #7FAAFF; --mx-teal: #5285FF; --mx-gold: #5285FF; --mx-sky: #5285FF;
  --mx-teal-ink: #7FAAFF; --mx-gold-ink: #B5CCFF; --mx-navy-ink: #B5CCFF; --mx-gold-tint: #10244A; --mx-tint: #10244A;
  --mx-fill: #2F6BFF; --mx-on-fill: #FFFFFF; --mx-fill-hover: #5285FF;
  --mx-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 48px -26px rgba(0, 0, 0, .85);
}
.mx-cta, .mx-quiz, .lm-footer { --mx-bg: #0A2A6B; --mx-card: #0E347F; --mx-surface: #123B8C; --mx-line: #2A55AC; }
html[data-theme="dark"] .mx-cta, html[data-theme="dark"] .mx-quiz, html[data-theme="dark"] .lm-footer { --mx-bg: #0C1B36; --mx-card: #10244A; --mx-surface: #16305F; --mx-line: #24406F; }
/* "Paper": sample screens stay light in both modes. */
.mx-mock, .mx-win, .mx-cert, .mx-chat, .mx-paper {
  color-scheme: light;
  --mx-bg: #fff; --mx-card: #fff; --mx-surface: #F1F5FC; --mx-surface-2: #E4ECF9; --mx-line: #D3DDEE; --mx-ink: #0A1F44; --mx-text: #33415C; --mx-muted: #56637E;
  --mx-accent: #0B4FD6; --mx-teal-ink: #0B4FD6; --mx-gold-ink: #0A2A6B; --mx-navy-ink: #0A2A6B; --mx-gold-tint: #E4ECF9; --mx-tint: #E4ECF9; --mx-fill: #0B4FD6; --mx-on-fill: #fff; --mx-fill-hover: #083CA8;
}

/* Aliases used by the older style sheets. Declared on every scope so they follow that scope's tokens. */
:root, html[data-theme="dark"], .mx-cta, .mx-quiz, .lm-footer, .mx-mock, .mx-win, .mx-cert, .mx-chat, .mx-paper {
  --mx-blue: var(--mx-accent); --mx-deep: var(--mx-ink);
  --lm-navy: var(--mx-ink); --lm-ink: var(--mx-ink); --lm-navy-light: var(--mx-muted); --lm-accent: var(--mx-teal-ink); --lm-accent-hover: var(--mx-accent); --lm-mint-deep: var(--mx-accent);
  --lm-muted: var(--mx-muted); --lm-border: var(--mx-line); --lm-mist: var(--mx-surface); --lm-rule: var(--mx-line);
  --brand-navy: var(--mx-ink); --brand-navy-light: var(--mx-muted); --brand-bg-light: var(--mx-bg); --brand-text-dark: var(--mx-ink); --brand-text-muted: var(--mx-muted);
}


/* ---- 1. type and colour ---------------------------------------------------------------------- */
html { scroll-padding-top: 96px; }
body { font-family: var(--mx-body) !important; color: var(--mx-text); background: var(--mx-card); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .lm-h2, .lm-page-title, .mx-h { font-family: var(--mx-head) !important; color: var(--mx-ink); letter-spacing: -.02em; }
h1, h2 { font-weight: 600 !important; }
h3, h4 { font-weight: 500 !important; }
.text-brand-navy, .lm-h2 { color: var(--mx-ink) !important; }
.lm-h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.06; letter-spacing: -.03em; }
.lm-page-title { font-weight: 600 !important; letter-spacing: -.03em; }
.text-brand-textMuted, .lm-sub, .text-slate-600, .text-slate-500 { color: var(--mx-muted) !important; }
.lm-sub { font-size: 17px; }
.bg-brand-bgLight { background: var(--mx-card) !important; }
a { text-underline-offset: 3px; }
::selection { background: #F3DFA6; color: var(--mx-ink); }
:focus-visible { outline: 3px solid var(--mx-teal-ink) !important; outline-offset: 2px; border-radius: 8px; }
.lm-mark, .mx-mark { color: var(--mx-teal-ink); background: none; box-shadow: none; padding: 0; transition: text-shadow .6s; }
.mx-two-tone { display: block; color: var(--mx-teal-ink); }
.lm-kicker { color: var(--mx-teal-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--mx-line) !important; }
.lm-kicker-dot { background: var(--mx-teal); }
.lm-band-mist, .mx-band { background: var(--mx-bg) !important; }
.font-black { font-weight: 700 !important; }

/* ---- 2. buttons: pills ------------------------------------------------------------------------ */
.lm-b, .lm-btn, .lm-hbtn, .mx-btn {
  border-radius: 999px !important; font-weight: 600; letter-spacing: -.005em;
  transition: transform .2s var(--mx-ease), box-shadow .2s var(--mx-ease), background-color .2s ease, color .2s ease, border-color .2s ease !important;
}
.lm-b { padding: 15px 26px; }
.lm-b-sm { padding: 11px 18px; }
.lm-b-mint, .lm-btn-accent, .lm-hbtn-mint, .mx-btn { background: var(--mx-gold) !important; color: var(--mx-navy) !important; border: 0 !important; box-shadow: 0 10px 24px -12px rgba(208, 160, 48, .9) !important; }
.lm-b-mint:hover, .lm-btn-accent:hover, .lm-hbtn-mint:hover, .mx-btn:hover { background: var(--mx-navy) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(208, 160, 48, .25), 0 12px 28px -12px rgba(208, 160, 48, .9) !important; }
.lm-b-navy, .lm-btn-navy, .lm-hbtn-navy { background: var(--mx-ink) !important; color: var(--mx-bg) !important; border: 0 !important; box-shadow: none !important; }
.lm-b-navy:hover, .lm-btn-navy:hover, .lm-hbtn-navy:hover { background: var(--mx-teal-ink) !important; transform: translateY(-2px); }
.lm-b-line, .lm-btn-ghost, .lm-hbtn-ghost { background: var(--mx-card) !important; color: var(--mx-ink) !important; border: 1px solid var(--mx-line) !important; box-shadow: none !important; }
.lm-b-line:hover, .lm-btn-ghost:hover, .lm-hbtn-ghost:hover { border-color: var(--mx-ink) !important; transform: translateY(-2px); }
.lm-b-glass { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .4) !important; }
.lm-b-glass:hover { background: rgba(255, 255, 255, .24) !important; }
.lm-b:active, .lm-btn:active, .lm-hbtn:active { transform: translateY(1px) scale(.98); }
.mx-arrow { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(8, 40, 96, .12); margin-right: -10px; transition: transform .3s var(--mx-ease); }
.lm-b:hover .mx-arrow { transform: translateX(3px); }
.lm-b-line .mx-arrow { background: var(--mx-surface); }
.lm-input, .lm-lead-card select, .lm-select { border: 1px solid var(--mx-line) !important; border-radius: 14px !important; color: var(--mx-ink); background: var(--mx-card); }
.lm-input:focus, .lm-lead-card select:focus { border-color: var(--mx-teal-ink) !important; box-shadow: 0 0 0 4px rgba(8, 176, 168, .18) !important; outline: none; }

/* ---- cards: soft grey surfaces --------------------------------------------------------------- */
.lm-course-card, .lm-post-card { border: 0 !important; border-radius: var(--mx-r) !important; background: var(--mx-card); box-shadow: inset 0 0 0 1px var(--mx-line) !important; transition: transform .4s var(--mx-ease), box-shadow .4s var(--mx-ease) !important; }
.lm-course-card:hover, .lm-post-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px transparent, var(--mx-shadow) !important; }
.lm-course-card .lm-thumb { margin: 10px 10px 0; border-radius: 20px; height: 176px; background: var(--mx-tint) !important; overflow: hidden; }
.lm-course-card .lm-thumb::after { display: none; }
.lm-course-card .lm-thumb img { transition: transform .8s var(--mx-ease); }
.lm-course-card:hover .lm-thumb img { transform: scale(1.05); }
.lm-course-card .lm-hours { background: rgba(255, 255, 255, .92) !important; color: var(--mx-ink) !important; font-weight: 600; backdrop-filter: blur(6px); }
.lm-course-card .lm-badge { background: var(--mx-ink) !important; color: var(--mx-bg) !important; }
.lm-course-card h3 { font-weight: 600 !important; font-size: 1.22rem; }
.lm-course-card h3 a, .lm-post-card h2 a { color: var(--mx-ink); background-image: none !important; }
.lm-course-card .lm-meta > span:last-child:not(:first-child):not(.lm-cat) { color: var(--mx-teal-ink); background: var(--mx-tint); }
.lm-cat { color: var(--mx-muted) !important; }
.lm-price { color: var(--mx-ink) !important; font-weight: 700; font-family: var(--mx-head); }
.lm-price s { color: var(--mx-muted); }
.lm-chip { border: 1px solid var(--mx-line); color: var(--mx-ink); background: var(--mx-card); font-weight: 600; border-radius: 999px; }
a.lm-chip:hover, button.lm-chip:hover, .lm-chip[aria-current="page"], .lm-chip.is-active { background: var(--mx-ink); color: var(--mx-bg); border-color: var(--mx-ink); }
.lm-panel, .lm-service, .mx-card { border: 0 !important; border-radius: var(--mx-r) !important; background: var(--mx-surface) !important; box-shadow: none !important; transition: transform .4s var(--mx-ease), background .3s; }
.lm-service:hover, .mx-card:hover { transform: translateY(-4px); background: var(--mx-surface-2) !important; }
.lm-service-icon { background: var(--mx-card) !important; color: var(--mx-teal-ink) !important; border-radius: 14px !important; }
.lm-service h3 { color: var(--mx-ink) !important; }
.lm-faq { border: 0 !important; border-radius: 22px !important; background: var(--mx-surface) !important; box-shadow: none !important; }
.lm-faq + .lm-faq { margin-top: 10px; }
.lm-faq summary { color: var(--mx-ink); font-weight: 600; font-family: var(--mx-head); font-size: 17px; }
.lm-faq summary:hover { background: transparent !important; }
.lm-faq summary::after { background: var(--mx-card) !important; color: var(--mx-ink) !important; }
.lm-faq[open] { background: var(--mx-gold-tint) !important; }
.lm-faq-a { color: var(--mx-text); }
.lm-lead-card { border: 0 !important; border-radius: var(--mx-r) !important; background: var(--mx-card) !important; box-shadow: var(--mx-shadow) !important; }
.lm-lead-card h2, .lm-lead-card label { color: var(--mx-ink) !important; }
.lm-lead-card label { font-weight: 600; font-size: 13px; }

/* ---- testimonials --------------------------------------------------------------------------- */
.lm-tcard { border: 0 !important; border-radius: var(--mx-r) !important; background: var(--mx-surface) !important; box-shadow: none !important; transition: transform .4s var(--mx-ease); }
.lm-tcard:hover { transform: translateY(-4px); }
.lm-round-btn { border: 1px solid var(--mx-line) !important; color: var(--mx-ink) !important; }
.lm-round-btn:hover { background: var(--mx-ink) !important; color: var(--mx-bg) !important; border-color: var(--mx-ink) !important; }

/* ---- header: "Why Macs?" strip + centred navigation ------------------------------------------- */
.mx-usp { background: var(--mx-navy); color: #E3E8F2; font-size: 13px; overflow: hidden; }
.mx-usp-track { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 9px 16px; white-space: nowrap; max-width: 80rem; margin: 0 auto; }
.mx-usp-track > span { display: inline-flex; align-items: center; gap: 8px; }
.mx-usp-track i { color: var(--mx-gold); font-size: 12px; }
.mx-usp-why { color: #fff; font-weight: 600; }
.mx-usp-dup { display: none !important; }
@media (max-width: 1100px) {
  .mx-usp-track { justify-content: flex-start; width: max-content; max-width: none; animation: mxTicker 30s linear infinite; }
  .mx-usp-dup { display: inline-flex !important; }
  .mx-usp-track > span { padding-right: 28px; }
  .mx-usp-track { gap: 0; }
  .mx-usp-track > span:first-child { display: none; }
}

.lm-header { background: rgba(255, 255, 255, .9) !important; backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent !important; }
.lm-header.is-scrolled { border-bottom-color: var(--mx-line) !important; box-shadow: none !important; }
.lm-header nav.hidden.xl\:flex { gap: 4px !important; }
.lm-nav { color: var(--mx-ink) !important; font-weight: 500; font-size: 14.5px; padding: 8px 11px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.mx-quiz .mx-quiz-score { color: var(--mx-gold) !important; }
.lm-nav::after { display: none !important; }
.lm-nav:hover { background: var(--mx-surface); }
.lm-nav.nav-active { background: var(--mx-gold-tint); color: var(--mx-accent) !important; }
a.lm-nav[aria-label="Cart"] { padding: 10px 12px; }
.lm-hbtn { padding: 10px 18px; font-size: 14px; }
.lm-dd-menu { border-radius: 18px !important; border: 1px solid var(--mx-line) !important; box-shadow: var(--mx-shadow) !important; }
.lm-mnav { border-radius: 12px; font-weight: 500; }
.lm-drawer { border-radius: 0 0 24px 24px; }

/* ---- footer ----------------------------------------------------------------------------------- */
.lm-footer { background: var(--mx-navy) !important; border-radius: 36px 36px 0 0; box-shadow: inset 0 3px 0 var(--mx-gold); }

.mx-foot-place { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mx-gold); font-weight: 600; }
.lm-footer .lm-foot-h { color: var(--mx-gold) !important; }
.lm-footer .lm-foot-list a, .lm-footer .lm-mission { color: #D3DDEE; }
.lm-footer a:hover { color: #fff; }
.whatsapp-float { box-shadow: 0 12px 28px -10px rgba(10, 27, 60, .45) !important; }

/* ---- 3. motion ------------------------------------------------------------------------------- */
html.mx-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--mx-ease), transform .8s var(--mx-ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.mx-motion [data-reveal="left"] { transform: translateX(-36px); }
html.mx-motion [data-reveal="pop"] { transform: translateY(18px) scale(.96); }
html.mx-motion [data-reveal].is-in { opacity: 1; transform: none; }
.mx-progress { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }

@keyframes mxFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
@keyframes mxTicker { to { transform: translateX(-50%); } }
@keyframes mxShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes mxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(8, 176, 168, .55); } 50% { box-shadow: 0 0 0 8px rgba(8, 176, 168, 0); } }
@keyframes mxFill { from { width: 0; } }
@keyframes mxType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---- home: hero (centred) ---------------------------------------------------------------------- */
.mx-hero { position: relative; overflow: hidden; padding: 64px 0 40px; background: var(--mx-card); text-align: center; }
.mx-hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(8, 176, 168, .14), transparent 70%); pointer-events: none; }
.mx-hero > * { position: relative; }
.mx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--mx-card); box-shadow: inset 0 0 0 1px var(--mx-line), 0 8px 20px -14px rgba(10, 27, 60, .35); font-size: 14px; color: var(--mx-ink); font-weight: 500; }
.mx-pill-dots { display: inline-flex; }
.mx-pill-dots b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; border: 2px solid #fff; margin-left: -8px; font-family: var(--mx-head); }
.mx-pill-dots b:first-child { margin-left: 0; background: var(--mx-navy); }
.mx-pill-dots b:nth-child(2) { background: var(--mx-teal-ink); }
.mx-pill-dots b:nth-child(3) { background: var(--mx-gold); color: var(--mx-navy); }
.mx-pill strong { color: var(--mx-teal-ink); font-weight: 700; }
.mx-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.04; font-weight: 600 !important; letter-spacing: -.035em; color: var(--mx-ink); text-wrap: balance; max-width: 18ch; hyphens: manual; margin: 26px auto 0; }
.mx-hero h1 .mx-mark { color: var(--mx-teal-ink); }
.mx-hero .mx-lead { font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--mx-muted); max-width: 40rem; line-height: 1.6; margin: 20px auto 0; }
.mx-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.mx-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--mx-muted); }
.mx-trust li { display: inline-flex; align-items: center; gap: 7px; }
.mx-trust i { color: var(--mx-teal-ink); }
.mx-rotate { display: inline-block; color: var(--mx-teal-ink); font-weight: 600; }
.mx-rotate.is-out { opacity: 0; transform: translateY(-.3em); transition: opacity .25s, transform .25s; }
.mx-rotate.is-in { opacity: 1; transform: none; transition: opacity .35s var(--mx-ease), transform .35s var(--mx-bounce); }
.mx-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--mx-tint); font-weight: 600; font-size: 13px; color: var(--mx-deep); }
.mx-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--mx-blue); animation: mxPulse 2.4s infinite; }

/* ---- home: track cards (tall, coloured, with a lab mock-up) ------------------------------------ */
.mx-tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.mx-track { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 22px; border-radius: 30px; color: #fff; text-decoration: none; overflow: hidden; background: var(--c); isolation: isolate; transition: transform .5s var(--mx-ease), box-shadow .5s var(--mx-ease); }
.mx-track:nth-child(1) { --c: var(--mx-t1); }
.mx-track:nth-child(2) { --c: var(--mx-t2); min-height: 400px; }
.mx-track:nth-child(3) { --c: var(--mx-t3); min-height: 460px; }
.mx-track:nth-child(4) { --c: var(--mx-t4); min-height: 420px; }
.mx-track::before { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -120px; border-radius: 50%; background: rgba(255, 255, 255, .1); z-index: -1; transition: transform .8s var(--mx-ease); }
.mx-track:hover { transform: translateY(-10px); box-shadow: 0 30px 50px -30px var(--c); }
.mx-track:hover::before { transform: scale(1.25); }
.mx-track-label { font-size: 13px; color: rgba(255, 255, 255, .9); font-weight: 600; }
.mx-track h3 { color: #fff !important; font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.05; font-weight: 600 !important; letter-spacing: -.03em; margin-top: 6px; max-width: 9ch; }
.mx-track-go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; transition: background .3s, transform .4s var(--mx-ease); }
.mx-track-go i { transform: rotate(-45deg); transition: transform .4s var(--mx-ease); }
.mx-track:hover .mx-track-go { background: var(--mx-card); color: var(--c); }
.mx-track:hover .mx-track-go i { transform: rotate(0); }
.mx-track p { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .88); line-height: 1.5; max-width: 24ch; }
.mx-mock { margin-top: auto; background: var(--mx-card); color: var(--mx-ink); border-radius: 18px; padding: 14px; font-size: 12px; box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .45); transform: rotate(var(--r, -3deg)) translateY(12px); transition: transform .6s var(--mx-ease); animation: mxFloat 7s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1.6s); }
.mx-track:hover .mx-mock { animation-play-state: paused; transform: rotate(0) translateY(0); }
.mx-mock-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-family: var(--mx-head); font-size: 13px; margin-bottom: 10px; }
.mx-mock-h small { font-weight: 600; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--mx-gold-tint); color: var(--mx-gold-ink); }
.mx-mock-h small.ok { background: #E7F6F5; color: #055F5A; }
.mx-mock table { width: 100%; border-collapse: collapse; }
.mx-mock td { padding: 5px 0; border-top: 1px solid var(--mx-line); color: var(--mx-text); }
.mx-mock td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--mx-ink); font-weight: 600; }
.mx-mock-bar { height: 8px; border-radius: 8px; background: var(--mx-surface-2); overflow: hidden; margin: 6px 0 10px; }
.mx-mock-bar i { display: block; height: 100%; border-radius: 8px; background: var(--c, var(--mx-blue)); animation: mxFill 1.6s var(--mx-ease) both; }
.mx-mock-row { display: flex; justify-content: space-between; color: var(--mx-text); }
.mx-mock-row b { color: var(--mx-ink); }
.mx-mock-grid { display: grid; grid-template-columns: 22px repeat(3, 1fr); border: 1px solid var(--mx-line); border-radius: 8px; overflow: hidden; font-variant-numeric: tabular-nums; }
.mx-mock-grid span { padding: 4px 6px; border-right: 1px solid var(--mx-line); border-bottom: 1px solid var(--mx-line); text-align: right; }
.mx-mock-grid span.h { background: var(--mx-surface); color: var(--mx-muted); text-align: center; font-weight: 600; }
.mx-mock-grid span.sel { outline: 2px solid var(--c, var(--mx-blue)); outline-offset: -2px; font-weight: 700; color: var(--mx-ink); }
.mx-mock-fx { margin-bottom: 8px; padding: 5px 8px; border-radius: 8px; background: var(--mx-surface); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--mx-deep); }
.mx-mock-fx span { display: inline-block; animation: mxType 2.2s steps(14) infinite alternate; }
@media (max-width: 1023px) { .mx-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mx-track, .mx-track:nth-child(n) { min-height: 380px; } }
@media (max-width: 560px) {
  .mx-tracks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .mx-tracks::-webkit-scrollbar { display: none; }
  .mx-track { scroll-snap-align: start; }
  html.mx-motion .mx-track[data-reveal] { opacity: 1; transform: none; }
}

/* ---- home: bento features ---------------------------------------------------------------------- */
.mx-bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mx-bento > * { grid-column: span 3; }
.mx-bento > .cms-highlight { grid-column: span 3; }
@media (min-width: 1024px) {
  .mx-bento > .mx-b-wide { grid-column: span 4; }
  .mx-bento > .mx-b-narrow { grid-column: span 2; }
}
@media (max-width: 767px) { .mx-bento > *, .mx-bento > .cms-highlight { grid-column: 1 / -1; } }
.mx-b { position: relative; overflow: hidden; min-height: 260px; border-radius: var(--mx-r); background: var(--mx-surface); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .3s, transform .5s var(--mx-ease); }
.mx-b:hover { background: var(--mx-surface-2); transform: translateY(-4px); }
.mx-b h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.12; font-weight: 600 !important; letter-spacing: -.025em; max-width: 16ch; position: relative; }
.mx-b h3 em { font-style: normal; display: block; color: var(--mx-teal-ink); }
.mx-b p { margin-top: 10px; color: var(--mx-muted); font-size: 14.5px; max-width: 34ch; position: relative; }
.mx-b-art { position: absolute; top: 24px; right: 24px; }
@media (max-width: 1023px) { .mx-b { justify-content: flex-start; } .mx-b-art { position: relative; top: auto; right: auto; margin: 0 0 22px auto; } .mx-win { width: min(300px, 100%); } }
.mx-b-wide .mx-b-art ~ h3, .mx-b-wide .mx-b-art ~ p { max-width: min(34ch, calc(100% - 330px)); }
@media (max-width: 1023px) { .mx-b-wide .mx-b-art ~ h3, .mx-b-wide .mx-b-art ~ p { max-width: none; } }
.mx-b-big { font-family: var(--mx-head); font-size: clamp(3.2rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--mx-accent); }
/* portal window art */
.mx-win { width: 300px; background: var(--mx-card); border-radius: 16px; box-shadow: var(--mx-shadow); padding: 12px; font-size: 11.5px; transform: rotate(2deg); transition: transform .6s var(--mx-ease); }
.mx-b:hover .mx-win { transform: rotate(0) translateY(-4px); }
.mx-win-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.mx-win-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mx-line); }
.mx-win-dots i:first-child { background: #F2A7A7; } .mx-win-dots i:nth-child(2) { background: #F4D58D; } .mx-win-dots i:nth-child(3) { background: #A9D8B0; }
.mx-win-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--mx-line); color: var(--mx-text); }
.mx-win-row b { color: var(--mx-ink); font-variant-numeric: tabular-nums; }
.mx-win-btn { margin-top: 8px; display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--mx-gold); color: var(--mx-navy); font-weight: 600; }
/* certificate art */
.mx-cert { width: 150px; height: 108px; border-radius: 12px; background: var(--mx-card); box-shadow: var(--mx-shadow); display: grid; place-items: center; transform: rotate(-6deg); transition: transform .6s var(--mx-bounce); }
.mx-b:hover .mx-cert { transform: rotate(3deg) scale(1.05); }
.mx-cert::before { content: ''; position: absolute; inset: 10px; border: 1.5px solid var(--mx-gold); border-radius: 6px; opacity: .5; }
.mx-cert i { font-size: 34px; color: var(--mx-gold-ink); }
.mx-chat { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.mx-chat span { padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--mx-card); box-shadow: var(--mx-shadow); font-size: 12.5px; color: var(--mx-ink); }
.mx-chat span:nth-child(2) { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: var(--mx-navy); color: #fff; }

/* dashboard highlight cards inside the bento */
.cms-highlights, .mx-highlights { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cms-highlight { padding: 28px; border-radius: var(--mx-r); background: var(--mx-surface); min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .3s, transform .5s var(--mx-ease); }
.cms-highlight:hover { background: var(--mx-surface-2); transform: translateY(-4px); }
.cms-highlight h3 { font-weight: 500 !important; font-size: 1.4rem; color: var(--mx-ink); letter-spacing: -.02em; }
.cms-highlight p { color: var(--mx-muted); font-size: 14.5px; margin-top: 8px; }

/* ---- stats ----------------------------------------------------------------------------------- */
.mx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.mx-stat { padding: 24px; border-radius: 24px; background: var(--mx-surface); }
.mx-stat b { display: block; font-family: var(--mx-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.04em; color: var(--mx-blue); line-height: 1; }
.mx-stat > span { display: block; margin-top: 8px; font-weight: 500; color: var(--mx-ink); font-size: 14px; }

/* ---- quiz ------------------------------------------------------------------------------------ */
.mx-quiz { border-radius: 36px; background: var(--mx-deep); color: #fff; padding: clamp(26px, 4.5vw, 52px); position: relative; overflow: hidden; }
.mx-quiz::after { content: ''; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(208, 160, 48, .4), transparent); pointer-events: none; }
.mx-quiz > * { position: relative; z-index: 1; }
.mx-quiz .lm-h2, .mx-quiz h2, .mx-quiz h3 { color: #fff !important; }
.mx-quiz .mx-eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.mx-quiz .mx-eyebrow i { background: var(--mx-sky); }
.mx-quiz .text-brand-textMuted, .mx-quiz p { color: #CFDCF3 !important; }
.mx-quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mx-quiz-dots { display: flex; gap: 6px; }
.mx-quiz-dots i { width: 28px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); transition: background .3s; }
.mx-quiz-dots i.is-done { background: var(--mx-sky); }
.mx-quiz h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500 !important; margin: 20px 0; }
.mx-quiz-opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mx-quiz-opts button { text-align: left; padding: 16px 20px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .1); font-weight: 600; color: #fff; cursor: pointer; transition: transform .25s var(--mx-ease), background .2s; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.mx-quiz-opts button:hover:not([disabled]) { transform: translateY(-3px); background: rgba(255, 255, 255, .18); }
.mx-quiz-opts button.is-right { background: #E7F6F5; color: #055F5A; box-shadow: none; }
.mx-quiz-opts button.is-wrong { background: #FDECEC; color: #7F1D1D; box-shadow: none; animation: mxShake .4s; }
.mx-quiz-opts button[disabled] { cursor: default; }
.mx-quiz-why { margin-top: 14px; font-weight: 500; min-height: 1.5em; }
.mx-quiz-score { font-family: var(--mx-head); font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; color: var(--mx-gold); letter-spacing: -.05em; line-height: 1; }
.mx-quiz .lm-b-line { background: var(--mx-card) !important; border-color: #fff !important; }

/* ---- steps ----------------------------------------------------------------------------------- */
.mx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: mx; }
.mx-steps li { position: relative; padding: 26px; border-radius: 26px; background: var(--mx-card); counter-increment: mx; box-shadow: inset 0 0 0 1px var(--mx-line); transition: transform .5s var(--mx-ease), box-shadow .5s; }
.mx-steps li:hover { transform: translateY(-4px); box-shadow: var(--mx-shadow); }
.mx-steps li::before { content: none; }
.mx-steps h3 { font-size: 1.2rem; font-weight: 600 !important; }
.mx-steps p { color: var(--mx-muted); font-size: 14px; margin-top: 6px; }

/* ---- CTA + call-back form ------------------------------------------------------------------------ */
.mx-cta { position: relative; overflow: hidden; border-radius: 36px; background: var(--mx-navy); color: #fff; padding: clamp(26px, 5vw, 60px); }
.mx-cta::before { content: ''; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -280px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.mx-cta > * { position: relative; }
.mx-cta h2 { color: #fff !important; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 600 !important; letter-spacing: -.035em; line-height: 1.05; }
.mx-cta p { color: #E1ECFF; }
.mx-cta .lm-b-line { border-color: #fff !important; }
.mx-cta-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .mx-cta-grid { grid-template-columns: 1fr minmax(0, 470px); } }
.mx-cta-list { display: grid; gap: 10px; margin-top: 22px; }
.mx-cta-list li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 500; }
.mx-cta-list i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mx-gold); color: var(--mx-navy); font-size: 11px; }

/* ---- section heading with action ------------------------------------------------------------------ */
.mx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 34px; }

/* ---- 4. dashboard content blocks (lib/branchSite/cms.js) ------------------------------------- */
.mx-banners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cms-banner { position: relative; overflow: hidden; border-radius: var(--mx-r); background: var(--mx-tint); min-height: 220px; display: flex; align-items: flex-end; }
.cms-banner:not(:has(img)) { min-height: 0; align-items: stretch; background: linear-gradient(120deg, var(--mx-tint), var(--mx-surface)); }
.cms-banner:not(:has(img)) .cms-banner-text { margin: 0; max-width: none; width: 100%; border-radius: 0; background: transparent; box-shadow: none; padding: 26px 28px; }
.cms-banner:not(:has(img)) .cms-banner-text h3 { font-size: 1.45rem; }
.cms-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--mx-ease); }
.cms-banner:hover img { transform: scale(1.05); }
.cms-banner-text { position: relative; margin: 16px; padding: 18px 20px; background: rgba(255, 255, 255, .95); border-radius: 20px; max-width: 30rem; box-shadow: var(--mx-shadow); }
.cms-banner-text h3 { font-weight: 600 !important; font-size: 1.2rem; color: var(--mx-ink); }
.cms-banner-text p { color: var(--mx-muted); font-size: 14px; margin-top: 4px; }
.cms-banner-btn { display: inline-flex; margin-top: 12px; font-weight: 600; color: var(--mx-navy); background: var(--mx-gold); padding: 9px 16px; border-radius: 999px; transition: background .2s; }
.cms-banner-btn:hover { background: var(--mx-navy); color: #fff; }
.cms-faculty, .mx-faculty { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cms-person { padding: 26px; text-align: center; border-radius: var(--mx-r); background: var(--mx-surface); transition: transform .5s var(--mx-ease), background .3s; }
.cms-person:hover { transform: translateY(-4px); background: var(--mx-surface-2); }
.cms-person-photo { width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--mx-card); display: grid; place-items: center; font-weight: 600; font-family: var(--mx-head); font-size: 34px; color: var(--mx-accent); box-shadow: 0 0 0 3px var(--mx-gold); }
.cms-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.cms-person-name { font-weight: 600; font-family: var(--mx-head); font-size: 1.15rem; color: var(--mx-ink); }
.cms-person-role { font-weight: 600; color: var(--mx-teal-ink); font-size: 14px; }
.cms-person-meta { color: var(--mx-muted); font-size: 13px; margin-top: 4px; }
.cms-person-bio { color: var(--mx-text); font-size: 14px; margin-top: 10px; }
.cms-person-courses { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.cms-person-courses li { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mx-card); color: var(--mx-ink); }
.cms-person-link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--mx-blue); text-decoration: underline; }
.cms-news-list, .mx-news { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cms-news { overflow: hidden; display: flex; flex-direction: column; border-radius: var(--mx-r); background: var(--mx-card); box-shadow: inset 0 0 0 1px var(--mx-line); transition: transform .5s var(--mx-ease), box-shadow .5s; }
.cms-news:hover { transform: translateY(-5px); box-shadow: var(--mx-shadow); }
.mx-band .cms-news { box-shadow: none; }
.cms-news-img img { width: calc(100% - 20px); margin: 10px 10px 0; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.cms-news-body { padding: 20px 22px 24px; }
.cms-news-body h2, .cms-news-body h3 { font-weight: 600 !important; font-size: 1.2rem; line-height: 1.25; margin: 8px 0 6px; }
.cms-news-body h2 a, .cms-news-body h3 a { color: var(--mx-ink); }
.cms-news-body h2 a:hover, .cms-news-body h3 a:hover { color: var(--mx-blue); }
.cms-news-body p { color: var(--mx-muted); font-size: 14px; }
.cms-news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--mx-muted); }
.cms-news-meta span { background: var(--mx-gold-tint); color: var(--mx-gold-ink); padding: 3px 10px; border-radius: 999px; }
.cms-news-meta .cms-pin { background: var(--mx-ink); color: var(--mx-bg); }
.cms-draft { background: #FEF3C7 !important; color: #78350F !important; }
.cms-news-hero { width: 100%; border-radius: var(--mx-r); }
.cms-pdf { font-weight: 600; color: var(--mx-blue); text-decoration: underline; }
.mx-preview-ribbon { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10000; background: #FEF3C7; color: #78350F; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(120, 53, 15, .5); }

/* ---- prose (policies, about story, news body) ------------------------------------------------- */
.lm-prose, .mx-prose { color: var(--mx-text); line-height: 1.75; }
.lm-prose h2, .mx-prose h2 { color: var(--mx-ink); font-weight: 600; }
.lm-prose a, .mx-prose a { color: var(--mx-blue); text-decoration: underline; }
.mx-prose h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.mx-prose h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; color: var(--mx-ink); }
.mx-prose p, .mx-prose ul, .mx-prose ol { margin: .7em 0; }
.mx-prose ul { list-style: disc; padding-left: 1.3em; }
.mx-prose ol { list-style: decimal; padding-left: 1.3em; }

/* ---- confetti ------------------------------------------------------------------------------- */
.mx-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 10001; }

/* ---- utilities ------------------------------------------------------------------------------- */
html.scroll-smooth { scroll-behavior: smooth; }
/* Carousel arrows: plain horizontal arrows (the site-wide arrow glyph points up-right) */
.lm-round-btn .fa-solid.fa-arrow-right::before { -webkit-mask: none; mask: none; background: none; content: "\f061"; width: auto; height: auto; vertical-align: 0; }
.lm-round-btn:hover .fa-arrow-right { transform: translateX(2px); }


/* ==== 5. Bulb theme (the bulb in the MACS logo) ==================================================== */
/* small UI bulb (js/fun.js MX.bulbIcon) */
.mx-bi { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }
.mx-bi .mx-bi-glass { fill: transparent; stroke: currentColor; transition: fill .35s, stroke .35s; }
.mx-bi .mx-bi-base { fill: currentColor; }
.mx-bi .mx-bi-rays { stroke: var(--mx-gold); opacity: 0; transform-origin: 12px 9px; transform: scale(.6); transition: opacity .35s, transform .45s var(--mx-bounce); }
.is-lit > .mx-bi .mx-bi-glass, .mx-bi.is-lit .mx-bi-glass, a:hover > .mx-bi .mx-bi-glass, button:hover > .mx-bi .mx-bi-glass { fill: var(--mx-gold); stroke: var(--mx-gold-ink); }
.is-lit > .mx-bi .mx-bi-rays, .mx-bi.is-lit .mx-bi-rays, a:hover > .mx-bi .mx-bi-rays, button:hover > .mx-bi .mx-bi-rays { opacity: 1; transform: scale(1); }

/* eyebrow = the logo's teal dot + gold wire */
.mx-eyebrow { background: var(--mx-gold-tint) !important; color: var(--mx-ink) !important; padding-left: 12px; }
.mx-eyebrow i { position: relative; width: 9px !important; height: 9px !important; background: var(--mx-teal) !important; margin-right: 22px; animation: none !important; }
.mx-eyebrow i::after { content: ''; position: absolute; left: 9px; top: 3.5px; width: 18px; height: 2px; border-radius: 2px; background: var(--mx-gold); transform-origin: left; transform: scaleX(0); transition: transform .8s .2s var(--mx-ease); }
html.mx-ready .mx-eyebrow i::after, html:not(.mx-motion) .mx-eyebrow i::after { transform: scaleX(1); }
.mx-quiz .mx-eyebrow { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }

/* hero: hanging lamp you can switch on */
.mx-hero { transition: background-color .6s; }
.mx-hero::after { content: ''; position: absolute; top: -120px; right: max(0px, calc(50% - 640px)); width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, rgba(208, 160, 48, .30), rgba(208, 160, 48, .08) 55%, transparent 72%); opacity: 0; transform: scale(.6); transition: opacity .7s, transform 1s var(--mx-ease); pointer-events: none; z-index: 0; }
.mx-hero.is-lit::after { opacity: 1; transform: scale(1); }
.mx-hero.is-lit h1 .mx-mark { text-shadow: 0 0 28px rgba(208, 160, 48, .45); }
.mx-lamp { position: absolute; z-index: 3; top: 0; right: max(18px, calc(50% - 610px)); width: 170px; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 50% 0; animation: mxSwing 5.5s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.mx-lamp:focus-visible { outline-offset: 6px; }
.mx-lamp-cord { display: block; width: 3px; height: var(--cord, 118px); margin: 0 auto; background: var(--mx-gold); border-radius: 0 0 3px 3px; transition: height .25s var(--mx-bounce); }
.mx-lamp:active .mx-lamp-cord { height: calc(var(--cord, 118px) + 14px); }
.mx-lamp-bulb { position: relative; display: block; width: 150px; margin: -22px auto 0; }
.mx-lamp-bulb img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transform: rotate(180deg); filter: grayscale(.85) brightness(1.08) opacity(.7); transition: filter .45s; }
.mx-lamp.is-lit .mx-lamp-bulb img { filter: none; }
.mx-lamp-glow { position: absolute; left: 50%; top: 60%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 102, .85), rgba(208, 160, 48, .25) 55%, transparent 70%); opacity: 0; transform: scale(.4); transition: opacity .45s, transform .6s var(--mx-bounce); }
.mx-lamp.is-lit .mx-lamp-glow { opacity: 1; transform: scale(1); }
.mx-lamp-rays { position: absolute; left: 50%; top: 58%; width: 200px; height: 200px; margin: -100px 0 0 -100px; opacity: 0; transition: opacity .4s; }
.mx-lamp-rays i { position: absolute; left: 50%; top: 0; width: 3px; height: 22px; margin-left: -1.5px; border-radius: 3px; background: var(--mx-gold); transform-origin: 50% 100px; }
.mx-lamp.is-lit .mx-lamp-rays { opacity: 1; animation: mxSpin 18s linear infinite; }
.mx-lamp-tip { position: absolute; top: calc(var(--cord, 118px) + 60px); right: 150px; white-space: nowrap; font: 600 12px/1 var(--mx-body); color: var(--mx-ink); background: var(--mx-card); padding: 7px 11px; border-radius: 999px; box-shadow: var(--mx-shadow); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.mx-lamp:hover .mx-lamp-tip, .mx-lamp:focus-visible .mx-lamp-tip, .mx-lamp.is-off .mx-lamp-tip { opacity: 1; transform: none; }
.mx-lamp.is-flicker .mx-lamp-bulb img { animation: mxFlicker .9s steps(1) both; }
@keyframes mxSwing { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
@keyframes mxSpin { to { transform: rotate(360deg); } }
@keyframes mxFlicker { 0% { filter: none; } 12% { filter: grayscale(.85) opacity(.7); } 22% { filter: none; } 30% { filter: grayscale(.85) opacity(.7); } 48% { filter: none; } 100% { filter: none; } }
@media (max-width: 1100px) { .mx-lamp { right: 10px; width: 100px; --cord: 56px; } .mx-lamp-bulb { width: 96px; margin-top: -14px; } .mx-lamp-tip { display: none; } .mx-lamp-glow { width: 150px; height: 150px; margin: -75px 0 0 -75px; } .mx-lamp-rays { transform: scale(.65); } }
@media (max-width: 640px) { .mx-hero { padding-top: 124px; } .mx-lamp { width: 72px; --cord: 14px; right: 50%; margin-right: -36px; } .mx-lamp-bulb { width: 72px; margin-top: -8px; } .mx-hero::after { right: 50%; margin-right: -320px; top: -330px; } }

/* track cards: the corner button is a bulb that lights on hover */
.mx-track-go { font-size: 22px; }
.mx-track-go .mx-bi .mx-bi-glass { stroke: #fff; }
.mx-track-go .mx-bi .mx-bi-base { fill: #fff; }
.mx-track:hover .mx-track-go { background: var(--mx-card) !important; }
.mx-track:hover .mx-track-go .mx-bi .mx-bi-glass { fill: var(--mx-gold); stroke: var(--mx-gold-ink); }
.mx-track:hover .mx-track-go .mx-bi .mx-bi-base { fill: var(--mx-ink); }
.mx-track:hover .mx-track-go .mx-bi .mx-bi-rays { opacity: 1; transform: scale(1); }
.mx-piece { position: absolute; width: 46px; height: 46px; right: 26px; bottom: 150px; opacity: .22; transform: rotate(18deg); transition: transform .7s var(--mx-bounce), opacity .4s; pointer-events: none; z-index: -1; }
.mx-track:hover .mx-piece { transform: rotate(-12deg) translate(-8px, -14px) scale(1.15); opacity: .45; }

/* steps: each number sits in a bulb that switches on as it scrolls in */
.mx-steps li::before { display: none; }
.mx-step-bulb { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--mx-head); font-weight: 600; font-size: 15px; color: var(--mx-muted); }
.mx-step-bulb .mx-bi { width: 48px; height: 48px; color: var(--mx-ink); }
.mx-step-bulb .mx-bi .mx-bi-glass { stroke-width: 1.4; }
html.mx-motion .mx-steps li .mx-bi .mx-bi-glass { transition-delay: calc(var(--i, 0) * .25s + .3s); }
html.mx-motion .mx-steps li .mx-bi .mx-bi-rays { transition-delay: calc(var(--i, 0) * .25s + .35s); }
.mx-steps li.is-in .mx-bi .mx-bi-glass, html:not(.mx-motion) .mx-steps li .mx-bi .mx-bi-glass { fill: var(--mx-gold); stroke: var(--mx-gold-ink); }
.mx-steps li.is-in .mx-bi .mx-bi-rays, html:not(.mx-motion) .mx-steps li .mx-bi .mx-bi-rays { opacity: 1; transform: scale(1); }

/* quiz progress: bulbs that light for right answers */
.mx-quiz-dots { gap: 4px; }
.mx-quiz-dots .mx-bi { width: 30px; height: 30px; color: rgba(255, 255, 255, .45); }
.mx-quiz-dots .is-now .mx-bi { color: #fff; }
.mx-quiz-dots .is-right .mx-bi .mx-bi-glass { fill: var(--mx-gold); stroke: var(--mx-gold); }
.mx-quiz-dots .is-right .mx-bi { color: var(--mx-gold); }
.mx-quiz-dots .is-right .mx-bi .mx-bi-rays { opacity: 1; transform: scale(1); }
.mx-quiz-dots span { display: inline-flex; transition: transform .4s var(--mx-bounce); }
.mx-quiz-dots .is-right { transform: translateY(-3px); }
.mx-quiz-lit { display: flex; gap: 8px; margin: 6px 0 4px; font-size: 40px; color: rgba(255, 255, 255, .4); }
.mx-quiz-lit .is-right { color: var(--mx-gold); }

/* bright-idea tips strip */
.mx-tip { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 24px; background: var(--mx-gold-tint); }
.mx-tip-bulb { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--mx-card); font-size: 28px; color: var(--mx-ink); border: 0; cursor: pointer; transition: transform .3s var(--mx-bounce), box-shadow .3s; }
.mx-tip-bulb:hover { transform: rotate(-10deg) scale(1.06); box-shadow: 0 0 0 8px rgba(208, 160, 48, .25); }
.mx-tip-text { flex: 1; min-width: 0; }
.mx-tip-text b { display: block; font-family: var(--mx-head); font-weight: 600; color: var(--mx-gold-ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.mx-tip-text span { display: block; color: var(--mx-ink); font-weight: 500; margin-top: 2px; transition: opacity .25s, transform .25s; }
.mx-tip-text span.is-out { opacity: 0; transform: translateY(6px); }
.mx-tip .lm-b { flex-shrink: 0; }
@media (max-width: 640px) { .mx-tip { flex-wrap: wrap; } .mx-tip .lm-b { width: 100%; } }

/* flying bulb (added to cart), pops and celebration overlay */
.mx-fly { position: fixed; z-index: 10002; width: 44px; height: 44px; left: 0; top: 0; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(8, 40, 96, .3)); }
.mx-fly img { width: 100%; height: 100%; }
.mx-pop { position: fixed; z-index: 10002; width: 0; height: 0; pointer-events: none; }
.mx-pop img { position: absolute; width: 56px; height: 56px; left: -28px; top: -40px; animation: mxPopUp 1.3s var(--mx-ease) forwards; }
.mx-pop .mx-pop-glow { position: absolute; width: 150px; height: 150px; left: -75px; top: -87px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 102, .75), transparent 70%); animation: mxGlow 1.3s ease-out forwards; }
.mx-pop .mx-pop-rays { position: absolute; width: 120px; height: 120px; left: -60px; top: -72px; animation: mxRays 1.1s ease-out forwards; }
.mx-pop .mx-pop-rays i, .mx-burst-rays i { position: absolute; left: 50%; top: 0; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 3px; background: var(--mx-gold); transform-origin: 50% 60px; }
@keyframes mxPopUp { 0% { transform: translateY(14px) scale(.3); opacity: 0; } 25% { transform: translateY(0) scale(1.1); opacity: 1; } 45% { transform: scale(1); } 100% { transform: translateY(-46px) scale(.9); opacity: 0; } }
@keyframes mxGlow { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes mxRays { 0% { transform: scale(.4) rotate(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25) rotate(25deg); opacity: 0; } }
.mx-cart-lit { animation: mxCartLit 1s var(--mx-bounce); }
.mx-cart-lit i { color: var(--mx-gold-ink) !important; }
@keyframes mxCartLit { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(208, 160, 48, .6); } 40% { transform: scale(1.25) rotate(-8deg); box-shadow: 0 0 0 10px rgba(208, 160, 48, 0); } 100% { transform: scale(1); } }
.mx-celebrate { position: fixed; inset: 0; z-index: 10003; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255, 238, 190, .55), rgba(8, 40, 96, .0) 60%); animation: mxFadeOut 3.2s ease forwards; }
.mx-celebrate-in { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: mxRise 3.2s var(--mx-ease) forwards; }
.mx-celebrate-in .mx-burst { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.mx-celebrate-in .mx-burst::before { content: ''; position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 102, .9), rgba(208, 160, 48, .25) 55%, transparent 72%); }
.mx-celebrate-in .mx-burst img { position: relative; width: 120px; height: auto; }
.mx-burst-rays { position: absolute; inset: -10px; animation: mxSpin 6s linear infinite; }
.mx-burst-rays i { transform-origin: 50% 95px; height: 22px; }
.mx-celebrate-in p { font-family: var(--mx-head); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--mx-ink); background: var(--mx-card); padding: 10px 22px; border-radius: 999px; box-shadow: var(--mx-shadow); }
@keyframes mxFadeOut { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mxRise { 0% { transform: scale(.4) translateY(40px); opacity: 0; } 18% { transform: scale(1.05); opacity: 1; } 28% { transform: scale(1); } 80% { transform: none; opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }

/* buttons: a soft light ripple where you click */
.lm-b, .lm-btn, .lm-hbtn { position: relative; overflow: hidden; isolation: isolate; }
.mx-ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 224, 140, .7); pointer-events: none; animation: mxRipple .6s ease-out forwards; }
@keyframes mxRipple { to { transform: scale(28); opacity: 0; } }

/* reading progress = the logo's wire: gold line, teal dot, bulb at the end */
.mx-progress { transform: none !important; width: 0; height: 3px; background: var(--mx-gold) !important; transition: width .1s linear; }
.mx-progress::after { content: ''; position: absolute; right: -5px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--mx-teal); }

/* header logo: crisp SVG, bulb glows on hover */
.mx-logo { height: 46px; width: auto; transition: filter .3s; }
@media (min-width: 768px) { .mx-logo { height: 56px; } }
a:hover > .mx-logo { filter: drop-shadow(0 0 10px rgba(208, 160, 48, .45)); }
.mx-logo-foot { height: 64px; width: auto; }

/* 404: the light went out */
.mx-404-bulb { width: 120px; margin: 0 auto 10px; display: block; animation: mxBroken 3.2s steps(1) infinite; }
@keyframes mxBroken { 0%, 8%, 12%, 40%, 44%, 100% { filter: grayscale(1) opacity(.5); } 10%, 42% { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .mx-lamp, .mx-lamp.is-lit .mx-lamp-rays, .mx-404-bulb { animation: none !important; }
  .mx-fly, .mx-pop, .mx-celebrate, .mx-ripple { display: none !important; }
}

/* ---- reduced motion: everything calm ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.mx-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mx-usp-track { width: auto; overflow-x: auto; }
}



/* ==== Light switch (header bulb) and older utility classes mapped to the tokens ==================== */
/* the light switch */
.mx-theme { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; padding: 0; background: var(--mx-surface); color: var(--mx-ink); font-size: 21px; cursor: pointer; transition: box-shadow .35s, background .35s, transform .35s var(--mx-bounce); -webkit-tap-highlight-color: transparent; }
.mx-theme:hover { transform: rotate(-12deg); box-shadow: 0 0 0 5px rgba(208, 160, 48, .16), 0 0 26px rgba(208, 160, 48, .5); }
.mx-theme:active { transform: scale(.9); }
html[data-theme="light"] .mx-theme { background: var(--mx-gold-tint); }
@supports (view-transition-name: none) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: mxSpill .75s var(--mx-ease); }
}
@keyframes mxSpill { from { clip-path: circle(0 at var(--mx-tx, 50%) var(--mx-ty, 0)); } to { clip-path: circle(150vmax at var(--mx-tx, 50%) var(--mx-ty, 0)); } }

/* older utility classes used across the pages, mapped to the tokens so both modes work */
.bg-white { background-color: var(--mx-card) !important; }
.bg-slate-50, .bg-gray-50 { background-color: var(--mx-surface) !important; }
section.bg-white, section.bg-slate-50, section.bg-gray-50, main.bg-white, main > div.bg-white, body.bg-white, .bg-brand-bgLight { background-color: transparent !important; }
#mobile-drawer { background-color: var(--mx-bg) !important; }
.bg-slate-100, .bg-gray-100, .bg-slate-200 { background-color: var(--mx-surface) !important; }
.text-slate-900, .text-slate-800, .text-slate-700, .text-gray-900, .text-gray-800, .text-gray-700, .text-brand-navy, .text-brand-textDark, .text-black { color: var(--mx-ink) !important; }
.text-slate-600, .text-slate-500, .text-slate-400, .text-gray-600, .text-gray-500, .text-gray-400, .text-brand-textMuted { color: var(--mx-muted) !important; }
.border-slate-100, .border-slate-200, .border-slate-300, .border-gray-100, .border-gray-200, .border-gray-300 { border-color: var(--mx-line) !important; }
.bg-brand-navy { background-color: var(--mx-ink) !important; color: var(--mx-bg) !important; }
.bg-brand-accent { background-color: var(--mx-gold) !important; color: #0A0D14 !important; }
/* older component colours */
.lm-badge, .lm-balanced i { color: var(--mx-bg); }
.lm-faq-a { color: var(--mx-text) !important; }
.lm-answer { border-radius: var(--mx-r-sm); border-color: var(--mx-line) !important; border-left: 2px solid var(--mx-gold) !important; background: transparent !important; color: var(--mx-text) !important; }
.lm-skip-link { background: var(--mx-ink); color: var(--mx-bg); }
html nav[aria-label="Course categories"] .lm-chip[aria-current], html .lm-chip[aria-current="page"], html .lm-chip.is-active { background: var(--mx-ink) !important; color: var(--mx-bg) !important; border-color: var(--mx-ink) !important; box-shadow: none !important; }
/* small dark fills from the older sheets: use the ink so they show in both modes */
.lm-split .c0, .lm-split-legend .c0, .lm-cmp-fill.c0 { background: var(--mx-ink); }
.lm-calc-nav a.active, .lm-portal-tabs a[aria-current="page"], .lm-path-n { background: var(--mx-ink); color: var(--mx-bg); }
html[data-theme="dark"] .lm-res.is-key, html[data-theme="dark"] .lm-cta-calm, html[data-theme="dark"] .lm-cta-panel, html[data-theme="dark"] .lm-ticker { box-shadow: inset 0 0 0 1px var(--mx-line); }
.lm-b-line, .lm-btn-ghost, .lm-hbtn-ghost { box-shadow: none !important; }

/* ==== 10. Inner pages: subtle motion ============================================================== */
.mx-title-in { animation: mxTitleIn 1s var(--mx-ease) both; }
@keyframes mxTitleIn { from { opacity: 0; transform: translateY(.35em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-.2em -.1em -.3em -.1em); } }
/* the logo's wire draws under the title and ends in a small bulb that switches on */
.mx-title-wire { display: flex; align-items: center; gap: 6px; margin: 18px 0 6px; color: var(--mx-muted); font-size: 20px; max-width: 220px; }
.text-center > .mx-title-wire, .lm-ruled-center .mx-title-wire, .text-center .mx-title-wire { margin-left: auto; margin-right: auto; }
.mx-title-wire i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--mx-teal), var(--mx-gold)); transform-origin: left; animation: mxWire .9s .3s var(--mx-ease) both; }
@keyframes mxWire { from { transform: scaleX(0); } }
.mx-title-wire .mx-bi { animation: mxWireBulb .5s 1s var(--mx-bounce) both; }
@keyframes mxWireBulb { from { opacity: 0; transform: scale(.5); } }
/* a soft pool of light follows the pointer across the page heading */
.mx-spot { position: relative; isolation: isolate; }
.mx-spot::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(208, 160, 48, .13), transparent 65%); }
.mx-spot:hover::after { opacity: 1; }
/* small touches */
.lm-faq-a { animation: mxFaqIn .45s var(--mx-ease) both; }
@keyframes mxFaqIn { from { opacity: 0; transform: translateY(-6px); } }
.lm-chapter[open] > :not(summary) { animation: mxFaqIn .4s var(--mx-ease) both; }
.lm-service-icon, .lm-course-card .lm-thumb img, .cms-person-photo { transition: transform .6s var(--mx-ease); }
.lm-service:hover .lm-service-icon { transform: translateY(-3px) rotate(-6deg); }
.cms-person:hover .cms-person-photo { transform: scale(1.04); }
.lm-foot-list a, .lm-dd-menu a { transition: color .25s, padding-left .3s var(--mx-ease); }
.lm-foot-list a:hover { padding-left: 4px; }
.lm-chip { transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--mx-ease); }
a.lm-chip:hover, button.lm-chip:hover { transform: translateY(-2px); }
.lm-input { transition: border-color .25s, box-shadow .25s, background-color .25s; }
.lm-sk { animation: mxSk 1.6s ease-in-out infinite; background: var(--mx-surface) !important; border-radius: 8px; }
@keyframes mxSk { 50% { opacity: .45; } }
html.mx-motion [data-reveal] { transform: translateY(18px); transition-duration: .7s; }
@media (prefers-reduced-motion: reduce) { .mx-spot::after { display: none; } }
/* 3D: the statement sits clear of the staircase */

/* ==== 11. /demo landing page ====================================================================== */
.mx-demo-grid { display: grid; gap: 0; grid-template-columns: 1.35fr 1fr 1fr; border-top: 1px solid var(--mx-line); border-left: 1px solid var(--mx-line); }
.mx-demo-card { position: relative; display: flex; flex-direction: column; padding: 26px 26px 30px; min-height: 420px; border-right: 1px solid var(--mx-line); border-bottom: 1px solid var(--mx-line); transition: background-color .3s, box-shadow .3s; }
.mx-demo-card:hover { background: var(--mx-card); box-shadow: inset 0 3px 0 var(--mx-teal); }
.mx-demo-card:nth-child(even):hover { box-shadow: inset 0 3px 0 var(--mx-gold); }
.mx-demo-n { font: 400 11.5px/1 var(--mx-mono); color: var(--mx-gold-ink); margin-bottom: 48px; }
html .mx-demo-card h3 { font-family: var(--mx-display) !important; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -.015em; margin: 12px 0 14px; }
.mx-demo-card h3 em { display: block; font-style: italic; color: var(--mx-teal-ink); }
.mx-demo-card:nth-child(even) h3 em { color: var(--mx-gold-ink); }
.mx-demo-card > p:not(.mx-eyebrow) { color: var(--mx-muted); max-width: 44ch; }
.mx-demo-list { display: grid; gap: 10px; margin: 20px 0 0; color: var(--mx-ink); font-size: 15px; }
.mx-demo-list li { display: flex; align-items: center; gap: 10px; }
.mx-demo-list .mx-bi { font-size: 20px; }
.mx-demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: auto; padding-top: 28px; }
.mx-cta .mx-demo-row { margin-top: 0; padding-top: 0; }
@media (max-width: 1023px) { .mx-demo-grid { grid-template-columns: 1fr; } .mx-demo-card { min-height: 0; } .mx-demo-n { margin-bottom: 28px; } }


/* ==== 13. Course pages: coloured text follows the thumbnail (js/fun.js courseTheme) ================ */
/* fun.js sets --mx-teal-ink, --mx-navy-ink and --mx-gold-ink on <main>; these rules point the page's text at them. */
#main-content { transition: color .4s; }
.mx-themed .lm-cp-hero h1 { color: var(--mx-navy-ink); transition: color .6s; }
.mx-themed h2, .mx-themed .lm-cp-for h3 { color: var(--mx-navy-ink); }
.mx-themed .lm-cp-stats strong, .mx-themed .lm-cp-stats b, .mx-themed .lm-cp-fee-total dd, .mx-themed .lm-cp-level { color: var(--mx-gold-ink); }
.mx-themed .lm-cp-nav a[aria-current], .mx-themed .lm-cp-nav a.is-active, .mx-themed .lm-cp-nav a:hover { color: var(--mx-teal-ink); }
.mx-themed .lm-cp-ask a, .mx-themed .lm-crumbs a:hover { color: var(--mx-teal-ink); }
.mx-themed .lm-ch-title:hover { color: var(--mx-teal-ink); }


/* ==== Blue and white: components, header breakpoints, courses page, dashboard ====================== */
.lm-footer { border-top: 0; }
.lm-footer .lm-foot-h { color: #B5CCFF !important; }
.mx-foot-place, .lm-footer .lm-foot-contact i { color: #B5CCFF !important; }
.lm-footer .lm-foot-list a:hover, .lm-footer a:hover { color: #FFFFFF; text-decoration: underline; }

/* bulbs stay gold when lit */
.is-lit > .mx-bi .mx-bi-glass, .mx-bi.is-lit .mx-bi-glass, a:hover > .mx-bi .mx-bi-glass, button:hover > .mx-bi .mx-bi-glass,
.mx-steps li.is-in .mx-bi .mx-bi-glass, html:not(.mx-motion) .mx-steps li .mx-bi .mx-bi-glass { fill: var(--mx-bulb); stroke: #8A6410; }
.mx-bi .mx-bi-rays { stroke: var(--mx-bulb); }
.mx-quiz-dots .is-right .mx-bi .mx-bi-glass { fill: var(--mx-bulb); stroke: var(--mx-bulb); }
.mx-quiz-dots .is-right .mx-bi, .mx-quiz-lit .is-right, .mx-quiz .mx-quiz-score { color: var(--mx-bulb) !important; }
html[data-theme="light"] .mx-theme { background: #FFF4D6; }
.mx-theme:hover { box-shadow: 0 0 0 5px rgba(242, 182, 50, .2); }

/* buttons, focus, selection: blue, no gold glow */
.lm-b-mint:hover, .lm-btn-accent:hover, .lm-hbtn-mint:hover, .mx-btn:hover { background: var(--mx-fill-hover) !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(11, 79, 214, .7) !important; }
.lm-b-mint .mx-arrow, .lm-btn-accent .mx-arrow { color: #fff; }
.mx-ripple { background: rgba(255, 255, 255, .45); }
::selection { background: #0B4FD6; color: #fff; }
:focus-visible { outline-color: #2F6BFF !important; }
.lm-input:focus, .lm-lead-card select:focus { border-color: #2F6BFF !important; box-shadow: 0 0 0 4px rgba(47, 107, 255, .18) !important; }
.is-tilt { background-image: none !important; transform: translateY(-4px) !important; }
.lm-faq[open] summary::after { background: var(--mx-fill) !important; color: #fff !important; box-shadow: none; }
.lm-course-card .lm-badge { background: var(--mx-fill) !important; color: #fff !important; }
.lm-badge, .lm-balanced i { color: #fff; }
.bg-brand-accent { background-color: var(--mx-fill) !important; color: #fff !important; }
.mx-cta-list i { box-shadow: inset 0 0 0 1px #B5CCFF; color: #B5CCFF; }
.mx-quiz-opts button.is-right { background: #1E9E6A; color: #fff; box-shadow: none; }
.mx-progress { background: var(--mx-fill) !important; }
.mx-progress::after { background: var(--mx-bulb); }
.mx-title-wire i { background: linear-gradient(90deg, #2F6BFF, #0A2A6B); }
html[data-theme="dark"] .mx-title-wire i { background: linear-gradient(90deg, #2F6BFF, #B5CCFF); }
.mx-eyebrow i::after { background: var(--mx-fill); }
.lm-answer { border-left-color: var(--mx-fill) !important; background: var(--mx-surface) !important; }
.mx-usp { background: var(--mx-panel); color: #DCE6FA; border-bottom: 0; }
.mx-usp-track i, .mx-usp-track > span:nth-child(odd) i { color: #B5CCFF; }
.mx-usp-why { color: #fff; }
html[data-theme="dark"] .mx-usp { background: #0C1B36; }
.lm-header { background: color-mix(in srgb, var(--mx-bg) 94%, transparent) !important; border-bottom: 1px solid var(--mx-line) !important; }
.lm-course-card:hover, .lm-post-card:hover, .cms-news:hover, .mx-steps li:hover, .lm-service:hover, .mx-card:hover, .mx-b:hover, .cms-highlight:hover, .cms-person:hover { box-shadow: inset 0 0 0 1px var(--mx-accent), var(--mx-shadow) !important; }
.lm-service-icon, .lm-service:nth-child(even) .lm-service-icon { color: var(--mx-accent) !important; box-shadow: inset 0 0 0 1px var(--mx-line); background: var(--mx-surface) !important; }
.lm-band-mist, .mx-band { background: var(--mx-surface) !important; border-block: 0; }
.whatsapp-float { box-shadow: 0 10px 24px -10px rgba(10, 31, 68, .45) !important; }
.mx-spot::after { display: none; }

/* header: the full menu from 1024px (it used to appear only from 1280px, which looked "missing" in a smaller window) */
.mx-desk { display: none; }
@media (min-width: 1024px) { .mx-desk { display: flex; } .mx-mob { display: none !important; } #mobile-drawer { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .lm-header nav.mx-desk { gap: 0 !important; }
  .lm-nav { font-size: 13.5px; padding: 8px 8px; }
  .lm-hbtn { padding: 8px 12px 9px; font-size: 11.5px; }
  .mx-desk.gap-3 { gap: 8px; }
  .mx-logo { height: 46px; }
}
.lm-avatar { background: var(--mx-fill) !important; color: #fff !important; }
#lm-avatar-mobile { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 13px/1 var(--mx-head); text-decoration: none; }
#lm-avatar-mobile[hidden] { display: none; }

/* home: a simple hero, no animation */
html .mx-hero:not(:has(.mx-lamp)) { background: linear-gradient(180deg, var(--mx-surface), var(--mx-bg)); border-bottom: 0; padding: 64px 0 40px; }
.mx-hero .mx-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; border: 0; margin-top: 26px; width: auto; }
.mx-hero .mx-trust::before, .mx-hero .mx-trust::after { display: none; }
.mx-hero .mx-trust li { padding: 0; border: 0 !important; }
.mx-hero .mx-trust i { color: var(--mx-accent); }
.mx-pill { justify-content: center; }
.mx-pill::before { background: var(--mx-fill); box-shadow: none; animation: none; }

/* courses page: the list starts higher on desktop; search is easy to spot */
#course-search-form { max-width: 46rem !important; }
#course-search { background: var(--mx-card) !important; border: 2px solid var(--mx-fill) !important; font-size: 16px !important; padding: 14px 22px !important; box-shadow: 0 8px 24px -14px rgba(11, 79, 214, .55); color: var(--mx-ink) !important; }
#course-search::placeholder { color: var(--mx-muted); }
#course-search:focus { box-shadow: 0 0 0 4px rgba(47, 107, 255, .2), 0 8px 24px -14px rgba(11, 79, 214, .55); }
#course-search-form .lm-btn { background: var(--mx-fill) !important; color: #fff !important; box-shadow: none !important; padding: 14px 28px !important; font-size: 13.5px; }
#course-search-form .lm-btn:hover { background: var(--mx-fill-hover) !important; }
@media (min-width: 1024px) {
  main section.lm-ruled:has(+ section #course-search-form) { padding: 22px 0 14px !important; border-bottom: 0 !important; }
  main section.lm-ruled:has(+ section #course-search-form) > div { max-width: 72rem; }
  main section.lm-ruled:has(+ section #course-search-form) > div > * + * { margin-top: 8px !important; }
  main section.lm-ruled:has(+ section #course-search-form) h1 { font-size: 2.3rem !important; }
  main section.lm-ruled:has(+ section #course-search-form) .mx-title-wire { display: none; }
  main section.lm-ruled:has(+ section #course-search-form) .lm-answer { max-width: 64rem; font-size: 13.5px; line-height: 1.5; padding: 10px 16px; text-align: center; border: 0 !important; background: transparent !important; color: var(--mx-muted) !important; }
  section:has(> div > #course-search-form) { padding: 10px 0 16px !important; border-bottom: 1px solid var(--mx-line) !important; }
  section:has(> div > #course-search-form) + section, section:has(#courses-grid) { padding-top: 28px !important; }
}
section:has(#courses-grid), main section.lm-ruled { background: var(--mx-bg) !important; }
.mx-news-block { border-top: 1px solid var(--mx-line); }
.mx-news-block > section:first-child { padding-bottom: 0 !important; }

/* student dashboard */
.mx-dash { padding: 44px 0 72px; background: var(--mx-surface); flex: 1; }
.mx-dash-head { text-align: center; margin-bottom: 34px; position: relative; }
.mx-dash-head .mx-label { color: var(--mx-accent); display: inline-flex; align-items: center; gap: 12px; }
.mx-dash-head .mx-label::before, .mx-dash-head .mx-label::after { content: ''; width: 22px; height: 2px; background: var(--mx-fill); border-radius: 2px; }
html .mx-dash-head h1 { font-family: var(--mx-head) !important; font-weight: 700 !important; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em !important; color: var(--mx-navy-ink); margin: 10px 0 6px; animation: none; }
.mx-dash-head p { color: var(--mx-muted); }
.mx-dash-out { position: absolute; right: 0; top: 0; font: 600 12.5px/1 var(--mx-head); padding: 9px 14px; border-radius: 8px; background: var(--mx-card); color: var(--mx-navy-ink); box-shadow: inset 0 0 0 1px var(--mx-line); cursor: pointer; border: 0; }
.mx-dash-out:hover { box-shadow: inset 0 0 0 1px var(--mx-accent); }
.mx-dash-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-tile { display: flex; flex-direction: column; background: var(--mx-card); border-radius: 12px; padding: 26px; box-shadow: inset 0 0 0 1px var(--mx-line), 0 10px 26px -20px rgba(10, 31, 68, .35); transition: transform .3s var(--mx-ease), box-shadow .3s; }
.mx-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--mx-accent), 0 16px 30px -20px rgba(10, 31, 68, .45); }
.mx-tile > i { font-size: 30px; color: var(--mx-accent); margin-bottom: 14px; }
html .mx-tile h2 { font-family: var(--mx-head) !important; font-weight: 700 !important; font-size: 1.15rem; letter-spacing: -.01em !important; color: var(--mx-navy-ink); }
.mx-tile p { color: var(--mx-muted); font-size: 14px; margin: 6px 0 20px; max-width: 30ch; }
.mx-tile .lm-b { margin-top: auto; justify-content: center; border-radius: 8px !important; width: 100%; }
.mx-tile small { display: block; margin-top: 10px; font-size: 12px; color: var(--mx-muted); min-height: 1.2em; }
.mx-dash-foot { text-align: center; margin-top: 30px; font-size: 12.5px; color: var(--mx-muted); }
.mx-dash-logout-m { display: none; }
@media (max-width: 860px) {
  .mx-dash { padding: 26px 0 48px; }
  .mx-dash-grid { grid-template-columns: 1fr; gap: 14px; }
  .mx-dash-head { text-align: left; margin-bottom: 20px; }
  .mx-dash-head .mx-label::before, .mx-dash-head .mx-label::after { display: none; }
  .mx-dash-out { display: none; }
  .mx-dash-logout-m { display: block; margin: 22px auto 0; background: none; border: 0; text-decoration: underline; color: var(--mx-navy-ink); font: 500 14px/1 var(--mx-body); cursor: pointer; }
  .mx-tile p { max-width: none; }
}
/* portal: clear "opening" message */
.lm-portal-msg p { color: var(--mx-ink); font-weight: 600; }



/* ==== Final adjustments for the rounded layout in blue and white =================================== */
/* buttons */
.lm-b-mint, .lm-btn-accent, .lm-hbtn-mint, .mx-btn, .bg-brand-navy { background: var(--mx-fill) !important; color: var(--mx-on-fill) !important; box-shadow: 0 10px 22px -12px rgba(11, 79, 214, .7) !important; }
.lm-b-mint .mx-arrow, .lm-btn-accent .mx-arrow { background: rgba(255, 255, 255, .2); color: #fff; }
.lm-b-line .fa-circle-play { color: var(--mx-accent) !important; }
.lm-b-line, .lm-btn-ghost, .lm-hbtn-ghost { background: var(--mx-card) !important; color: var(--mx-ink) !important; border: 1px solid var(--mx-line) !important; }
.lm-b-line:hover, .lm-btn-ghost:hover, .lm-hbtn-ghost:hover { border-color: var(--mx-accent) !important; }
.lm-b-navy, .lm-btn-navy, .lm-hbtn-navy { background: var(--mx-navy) !important; color: #fff !important; }
html[data-theme="dark"] .lm-b-navy, html[data-theme="dark"] .lm-btn-navy, html[data-theme="dark"] .lm-hbtn-navy { background: var(--mx-surface-2) !important; }
html nav[aria-label="Course categories"] .lm-chip[aria-current], html .lm-chip[aria-current="page"], html .lm-chip.is-active { background: var(--mx-fill) !important; color: #fff !important; border-color: var(--mx-fill) !important; }
.lm-chip { background: var(--mx-card); color: var(--mx-ink); }
/* header and menu */
.lm-nav.nav-active { background: var(--mx-surface-2); color: var(--mx-navy-ink) !important; }
.lm-nav:hover { background: var(--mx-surface); }
.lm-dd-menu { background: var(--mx-card) !important; }
.lm-dd-menu a, .lm-dd-menu button { color: var(--mx-ink) !important; }
.lm-dd-menu a:hover, .lm-dd-menu button:hover { background: var(--mx-surface) !important; }
.lm-mnav { color: var(--mx-ink) !important; }
.lm-drawer { background: var(--mx-bg) !important; border-color: var(--mx-line) !important; }
html[data-theme="dark"] .mx-logo { content: url(/images/macs-logo-white.svg); }
/* home hero: centred, no animation */
html .mx-hero:not(:has(.mx-lamp)) { padding: 60px 0 36px; }
.mx-hero::before { background: radial-gradient(closest-side, rgba(47, 107, 255, .16), transparent 70%); }
html .mx-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.06; letter-spacing: -.03em; max-width: 18ch; margin-left: auto; margin-right: auto; }
html .mx-hero:has(.lm-crumbs) h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.mx-hero h1 .mx-mark { display: block; color: var(--mx-accent); }
.mx-hero .mx-lead { margin-left: auto; margin-right: auto; }
.mx-hero-cta { justify-content: center; }
.mx-pill::before { display: none; }
.mx-pill-dots b:nth-child(3) { background: #2F6BFF; color: #fff; }
.mx-pill-dots b { border-color: var(--mx-card); }
/* track cards keep their white corner button */
.mx-track:hover .mx-track-go { background: #fff !important; color: var(--c); }
.mx-track:hover .mx-track-go .mx-bi .mx-bi-glass { fill: var(--mx-bulb); stroke: #8A6410; }
.mx-track:hover .mx-track-go .mx-bi .mx-bi-base { fill: var(--mx-navy); }
.mx-mock-h small { background: #E4ECF9; color: #0A2A6B; }
.mx-mock-h small.ok { background: #DFF5EA; color: #116B45; }
.mx-win-btn { background: #0B4FD6; color: #fff; }
.mx-cert::before { border-color: #F2B632; }
.mx-cert i { color: #B5830F; }
.mx-chat span:nth-child(2) { background: #0A2A6B; }
/* panels */
.mx-quiz::after { background: radial-gradient(closest-side, rgba(82, 133, 255, .45), transparent); }
.mx-quiz, .mx-cta { color: #DCE6FA; }
.mx-quiz .lm-h2, .mx-quiz h2, .mx-quiz h3, .mx-cta h2 { color: #fff !important; }
.mx-cta p, .mx-quiz p, .mx-quiz .text-brand-textMuted { color: #DCE6FA !important; }
.mx-quiz .mx-eyebrow { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.mx-quiz .lm-b-line, .mx-cta .lm-b-line { background: #fff !important; color: #0A2A6B !important; border-color: #fff !important; }
.mx-cta .lm-lead-card { background: #fff !important; --mx-ink: #0A1F44; --mx-text: #33415C; --mx-muted: #56637E; --mx-card: #fff; --mx-surface: #F1F5FC; --mx-line: #D3DDEE; --mx-navy-ink: #0A2A6B; --mx-teal-ink: #0B4FD6; color: #33415C; color-scheme: light; }
.mx-cta .lm-lead-card h3, .mx-cta .lm-lead-card label { color: #0A1F44 !important; }
.mx-cta .lm-lead-card p { color: #56637E !important; }
.lm-footer { border-radius: 36px 36px 0 0; }
.cms-banner-text { background: var(--mx-card); }
.mx-eyebrow { background: var(--mx-surface-2) !important; }
.mx-eyebrow i { background: var(--mx-fill) !important; }
.lm-faq[open] { background: var(--mx-surface-2) !important; }
.lm-faq summary::after { background: var(--mx-card) !important; }
.mx-tip { background: var(--mx-surface-2); }
.mx-tip-text b { color: var(--mx-accent); }
/* labels */
.mx-label, .mx-demo-n { font: 600 12px/1 var(--mx-head); letter-spacing: .12em; text-transform: uppercase; }
/* /demo landing: rounded cards */
.mx-demo-grid { gap: 16px; border: 0; }
.mx-demo-card { border: 0; border-radius: var(--mx-r); background: var(--mx-surface); min-height: 380px; transition: transform .4s var(--mx-ease), background-color .3s; }
.mx-demo-card:hover, .mx-demo-card:nth-child(even):hover { background: var(--mx-surface-2); box-shadow: none; transform: translateY(-4px); }
.mx-demo-n { color: var(--mx-accent); margin-bottom: 30px; }
html .mx-demo-card h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.12; font-weight: 600 !important; letter-spacing: -.025em; }
.mx-demo-card h3 em, .mx-demo-card:nth-child(even) h3 em { font-style: normal; color: var(--mx-accent); }
/* centred page headers */
.mx-hero .mx-title-wire, .lm-page-hero .mx-title-wire, .lm-ruled-center .mx-title-wire { margin-left: auto; margin-right: auto; }
.lm-crumbs.justify-center { justify-content: center; }
.lm-page-hero, .lm-ruled-center { text-align: center; }
.lm-page-hero { background: linear-gradient(180deg, var(--mx-surface), var(--mx-bg)); border-bottom: 0; }
.lm-page-hero .lm-page-lead { margin-left: auto; margin-right: auto; }
.lm-ruled-center .lm-answer, .lm-ruled-center .text-left { text-align: left; }
.mx-tile { border-radius: 20px; }
.mx-tile .lm-b { border-radius: 999px !important; }
.mx-demo-card .mx-eyebrow { align-self: flex-start; }
html { background: var(--mx-bg); }
html[data-theme="dark"] { --mx-bg: #0A1730; }


/* ==== Logo colours as tertiary accents, and the bulb theme =========================================== */
/* Blue stays the main colour. The bulb's teal and gold are the third colours: small accents, never large areas. */
:root { --mx-ter-teal: #08B0A8; --mx-ter-gold: #D0A030; --mx-ter-teal-ink: #067A74; --mx-ter-gold-ink: #8A6410; --mx-navy: #082860; --mx-t1: #082860; --mx-t2: #067A74; --mx-t3: #0B4FD6; --mx-t4: #8A6410; }
html[data-theme="dark"], .mx-cta, .mx-quiz, .lm-footer { --mx-ter-teal-ink: #4FD3CB; --mx-ter-gold-ink: #E2B347; }
.mx-mock, .mx-win, .mx-cert, .mx-chat, .mx-paper { --mx-ter-teal-ink: #067A74; --mx-ter-gold-ink: #8A6410; }
/* footer in the logo's navy */
.lm-footer, .lm-footer.bg-brand-navy, html[data-theme="dark"] .lm-footer { background: #082860 !important; --mx-bg: #082860; color: #D5DEF0 !important; box-shadow: inset 0 3px 0 var(--mx-ter-gold); }
.lm-footer .lm-foot-h { color: var(--mx-ter-gold-ink) !important; }
.mx-foot-place, .lm-footer .lm-foot-contact i { color: var(--mx-ter-teal-ink) !important; }
.lm-footer .lm-foot-list a, .lm-footer .lm-mission { color: #D5DEF0; }
.lm-footer .lm-foot-list a:hover, .lm-footer a:hover { color: #fff; text-decoration-color: var(--mx-ter-gold); }
.mx-usp { background: #082860; }
.mx-usp-track i, .mx-usp-track > span:nth-child(odd) i { color: #E2B347; }
.mx-usp-track > span:nth-child(even) i { color: #4FD3CB; }
.mx-cta, .mx-quiz { --mx-bg: #082860; }
/* small accents */
.mx-eyebrow i { background: var(--mx-ter-teal) !important; }
.mx-eyebrow i::after { background: var(--mx-ter-gold); }
.mx-pill-dots b:first-child { background: #082860; }
.mx-pill-dots b:nth-child(2) { background: var(--mx-ter-teal-ink); }
.mx-pill-dots b:nth-child(3) { background: var(--mx-ter-gold); color: #082860; }
.mx-b h3 em { color: var(--mx-ter-teal-ink); }
.mx-b:nth-child(even) h3 em { color: var(--mx-ter-gold-ink); }
.mx-b-big { color: var(--mx-accent); }
.mx-stat:nth-child(odd) b { color: var(--mx-ter-teal-ink); }
.mx-stat:nth-child(even) b { color: var(--mx-ter-gold-ink); }
.mx-step-bulb, .mx-tip-text b { color: var(--mx-ter-gold-ink); }
.mx-trust i { color: var(--mx-ter-teal-ink); }
.mx-rotate { color: var(--mx-ter-teal-ink); }
.lm-course-card .lm-badge { background: var(--mx-ter-gold) !important; color: #082860 !important; }
.lm-course-card .lm-meta > span:last-child:not(:first-child):not(.lm-cat) { color: var(--mx-ter-teal-ink); background: color-mix(in srgb, var(--mx-ter-teal) 14%, transparent); }
a.lm-chip:hover, button.lm-chip:hover { border-color: var(--mx-ter-teal); color: var(--mx-ter-teal-ink); background: var(--mx-card); }
.lm-faq[open] summary::after { background: var(--mx-ter-gold) !important; color: #082860 !important; }
.lm-service:nth-child(3n+2) .lm-service-icon { color: var(--mx-ter-teal-ink) !important; }
.lm-service:nth-child(3n) .lm-service-icon { color: var(--mx-ter-gold-ink) !important; }
.mx-cta-list i { box-shadow: none; background: var(--mx-ter-gold); color: #082860; }
.mx-demo-card:nth-child(2) h3 em, .mx-demo-card:nth-child(2) .mx-demo-n { color: var(--mx-ter-teal-ink); }
.mx-demo-card:nth-child(3) h3 em, .mx-demo-card:nth-child(3) .mx-demo-n { color: var(--mx-ter-gold-ink); }
.mx-tile:nth-child(2) > i { color: var(--mx-ter-gold-ink); }
.mx-tile:nth-child(3) > i { color: var(--mx-ter-teal-ink); }
.mx-dash-head .mx-label::before { background: var(--mx-ter-teal); }
.mx-dash-head .mx-label::after { background: var(--mx-ter-gold); }
::selection { background: var(--mx-ter-gold); color: #082860; }
/* the logo's wire: teal dot, gold line */
.mx-progress { background: var(--mx-ter-gold) !important; }
.mx-progress::after { background: var(--mx-ter-teal); }
.mx-title-wire i, html[data-theme="dark"] .mx-title-wire i { background: linear-gradient(90deg, var(--mx-ter-teal), var(--mx-ter-gold)); }
.lm-prose a, .mx-prose a, .lm-faq-a a { text-decoration-color: var(--mx-ter-gold); }
.lm-nav.nav-active { box-shadow: inset 0 -2px 0 var(--mx-ter-gold); }
/* light: buttons glow warm when you point at them; cards switch a small bulb on */
.lm-b-mint:hover, .lm-btn-accent:hover, .lm-hbtn-mint:hover, .mx-btn:hover { box-shadow: 0 0 0 4px rgba(208, 160, 48, .28), 0 10px 22px -12px rgba(11, 79, 214, .7) !important; }
.lm-course-card, .lm-post-card, .cms-news, .mx-tile { position: relative; }
.lm-course-card::before, .lm-post-card::before, .cms-news::before, .mx-tile::before { content: ''; position: absolute; z-index: 3; top: -14px; right: 18px; width: 34px; height: 34px; background: url(/images/macs-bulb.svg) center / contain no-repeat; opacity: 0; transform: translateY(8px) scale(.6) rotate(-12deg); transition: opacity .3s, transform .45s var(--mx-bounce); pointer-events: none; filter: drop-shadow(0 0 10px rgba(242, 182, 50, .7)); }
.lm-course-card:hover::before, .lm-post-card:hover::before, .cms-news:hover::before, .mx-tile:hover::before { opacity: 1; transform: none; }
.lm-course-card:hover, .lm-post-card:hover, .cms-news:hover { box-shadow: inset 0 0 0 1px var(--mx-ter-gold), var(--mx-shadow) !important; }
/* hanging lamp (home hero): gold cord, switches light / dark */
.mx-lamp-cord { background: var(--mx-ter-gold); }
.mx-lamp-rays i { background: var(--mx-ter-gold); }
.mx-lamp-tip { background: var(--mx-card); color: var(--mx-ink); }
.mx-hero.is-lit h1 .mx-mark { text-shadow: 0 0 26px rgba(208, 160, 48, .35); }
.mx-hero::after { right: max(-80px, calc(50% - 780px)); }
@media (max-width: 640px) { .mx-hero { padding-top: 118px !important; } }
/* back to top: a bulb that fills with light as you read down the page */
.mx-top { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 26px; background: var(--mx-card); color: var(--mx-ink); box-shadow: inset 0 0 0 1px var(--mx-line), var(--mx-shadow); opacity: 0; transform: translateY(14px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--mx-bounce), box-shadow .3s; }
.mx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mx-top::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--mx-ter-gold) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.mx-top:hover { box-shadow: inset 0 0 0 1px var(--mx-ter-gold), 0 0 22px rgba(242, 182, 50, .55); transform: translateY(-3px); }
.mx-top.is-lit .mx-bi .mx-bi-glass { fill: var(--mx-bulb); stroke: #8A6410; }
.mx-top.is-lit .mx-bi .mx-bi-rays { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .mx-top { transition: none; } }

/* header on desktop (1024px and wider): logo at the left edge, menu in the centre, buttons at the right edge */
@media (min-width: 1024px) {
  .lm-header > div { max-width: none !important; display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; padding-left: clamp(20px, 2.5vw, 44px) !important; padding-right: clamp(20px, 2.5vw, 44px) !important; }
  .lm-header > div > a:first-child { justify-self: start; }
  .lm-header > div > nav.mx-desk { justify-self: center; gap: 2px !important; }
  .lm-header > div > div.mx-desk { justify-self: end; }
  .mx-usp-track { max-width: none; }
}

/* My profile = the student's landing page: welcome line, three tiles, then account details */
#profile-root .mx-dash-grid { margin-top: 4px; }
#profile-root .mx-tile { background: var(--mx-surface); box-shadow: none; }
#profile-root .mx-tile:hover { background: var(--mx-surface-2); box-shadow: none; }
html #profile-root .lm-profile-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
/* course page: what is included (four points) and the topic breakdown */
.lm-cp-steps li strong { color: var(--mx-ink); }
.lm-sec h4 { color: var(--mx-navy-ink); font-family: var(--mx-head); font-weight: 600; }
.lm-sec ul li::marker { color: var(--mx-ter-teal); }
/* header: the current page is a light outline with blue text (no fill, no underline) */
.lm-header .lm-nav::after { display: none !important; }
.lm-header .lm-nav.nav-active { background: transparent !important; box-shadow: inset 0 0 0 1px var(--mx-line) !important; color: var(--mx-accent) !important; border-radius: 999px; text-decoration: none !important; border: 0 !important; }


/* ==== Typed line, parallax photos, themed cards ====================================================== */
/* quiz panel: its own navy in both modes (it used the page's ink colour, which is near-white in dark mode) */
.mx-quiz { background: linear-gradient(140deg, #0B347A, #082860 60%) !important; }
html[data-theme="dark"] .mx-quiz { background: linear-gradient(140deg, #16305F, #0C1B36 65%) !important; box-shadow: inset 0 0 0 1px #24406F; }
.mx-quiz .mx-eyebrow { color: #fff !important; }
.mx-quiz-opts button { color: #fff; }
.mx-quiz-why { color: #DCE6FA; }

/* home hero: second heading that types course names */
.mx-typed { margin: 14px auto 0; font-family: var(--mx-head); font-weight: 500; font-size: clamp(1.25rem, 2.9vw, 2.15rem); line-height: 1.25; letter-spacing: -.02em; color: var(--mx-ink); min-height: 1.25em; }
.mx-typed-pre { color: var(--mx-muted); font-weight: 400; }
.mx-typed-word { color: var(--mx-ter-teal-ink); }
.mx-typed-caret { display: inline-block; width: 3px; height: .95em; margin-left: 4px; border-radius: 2px; vertical-align: -.1em; background: var(--mx-ter-gold); animation: mxCaret 1s steps(1) infinite; }
@keyframes mxCaret { 50% { opacity: 0; } }
@media (max-width: 640px) { .mx-typed { min-height: 2.5em; } }
@media (prefers-reduced-motion: reduce) { .mx-typed-caret { animation: none; } }

/* parallax photo layer: a child of the section, moved a little on scroll by fun.js */
.mx-has-px { position: relative; isolation: isolate; overflow: hidden; }
.mx-has-px > :not(.mx-px):not(.mx-lamp) { position: relative; z-index: 1; }
.mx-px { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.mx-px i { position: absolute; left: 0; right: 0; top: -90px; bottom: -90px; background: center / cover no-repeat; opacity: 0; transition: opacity 1s; will-change: transform; }
.mx-px.is-in i { opacity: 1; }
.mx-px::after { content: ''; position: absolute; inset: 0; }
/* page headers: a soft blue-grey photo under a veil, so the title stays easy to read */
.mx-px-head i { filter: grayscale(1) contrast(.95); }
.mx-px-head.is-in i { opacity: .55; }
.mx-px-head::after { background: linear-gradient(180deg, color-mix(in srgb, var(--mx-surface) 78%, transparent), color-mix(in srgb, var(--mx-bg) 88%, transparent) 70%, var(--mx-bg)); }
html[data-theme="dark"] .mx-px-head.is-in i { opacity: .4; }
section.mx-has-px.lm-page-hero, section.mx-has-px.lm-ruled-center, section.mx-has-px.mx-hero { background: var(--mx-bg) !important; }
/* dark panels: the photo shows through navy */
.mx-px-dark::after { background: linear-gradient(110deg, color-mix(in srgb, var(--mx-bg) 96%, transparent) 25%, color-mix(in srgb, var(--mx-bg) 80%, transparent)); }
.mx-cta.mx-has-px::after { z-index: 1; }

/* home: the band between sections */
.mx-band-px { --mx-bg: #082860; --mx-ter-teal-ink: #4FD3CB; --mx-ter-gold-ink: #E2B347; background: #082860; color: #DCE6FA; padding: clamp(64px, 10vw, 128px) 0; text-align: center; }
html[data-theme="dark"] .mx-band-px { --mx-bg: #0C1B36; background: #0C1B36; }
.mx-band-px .mx-eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.mx-band-px h2 { font-family: var(--mx-head); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; color: #fff; margin: 18px auto 0; max-width: 18ch; text-wrap: balance; }
.mx-band-lead { margin: 14px auto 0; max-width: 34rem; color: #CFDCF3; }
.mx-band-chips { list-style: none; padding: 0; margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 54rem; }
.mx-band-chips a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; font-weight: 600; font-size: 14.5px; backdrop-filter: blur(6px); transition: transform .3s var(--mx-ease), background .3s, box-shadow .3s; }
.mx-band-chips a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px var(--mx-ter-gold), 0 0 22px rgba(242, 182, 50, .3); }
.mx-band-chips li:nth-child(odd) i { color: #4FD3CB; }
.mx-band-chips li:nth-child(even) i { color: #E2B347; }

/* cards: a short "filament" on the top edge (teal to gold) that runs the full width on hover, a faint warm
   light in the corner, and a hairline. Done with background layers so no pseudo-element is taken. */
html .lm-panel, html .lm-service, html .mx-card, html .mx-steps li, html .mx-b, html .cms-highlight, html .cms-person, html .mx-tile, html #profile-root .mx-tile, html .mx-demo-card:not(.mx-demo-dark):not(.mx-demo-main), html .lm-cp-steps li, html .lm-course-card, html .lm-post-card, html .cms-news, html .lm-lead-card, html .lm-cp-card {
  background:
    linear-gradient(90deg, var(--mx-ter-teal), var(--mx-ter-gold)) no-repeat 28px 0 / 46px 3px,
    radial-gradient(260px 160px at 100% 0, color-mix(in srgb, var(--mx-ter-gold) 13%, transparent), transparent 72%) no-repeat,
    linear-gradient(180deg, var(--mx-card), var(--mx-surface)) !important;
  box-shadow: inset 0 0 0 1px var(--mx-line), 0 16px 32px -26px rgba(10, 31, 68, .4) !important;
  transition: transform .45s var(--mx-ease), box-shadow .45s, background-size .6s var(--mx-ease) !important;
}
html .lm-panel:hover, html .lm-service:hover, html .mx-card:hover, html .mx-steps li:hover, html .mx-b:hover, html .cms-highlight:hover, html .cms-person:hover, html .mx-tile:hover, html #profile-root .mx-tile:hover, html .mx-demo-card:not(.mx-demo-dark):not(.mx-demo-main):hover, html .lm-cp-steps li:hover, html .lm-course-card:hover, html .lm-post-card:hover, html .cms-news:hover, html .lm-cp-card:hover {
  background-size: calc(100% - 56px) 3px, auto, auto !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mx-ter-gold) 60%, var(--mx-line)), 0 22px 40px -24px rgba(10, 31, 68, .5), 0 0 0 4px color-mix(in srgb, var(--mx-ter-gold) 10%, transparent) !important;
}
html[data-theme="dark"] .lm-panel, html[data-theme="dark"] .lm-service, html[data-theme="dark"] .mx-card, html[data-theme="dark"] .mx-steps li, html[data-theme="dark"] .mx-b, html[data-theme="dark"] .mx-tile, html[data-theme="dark"] .lm-course-card, html[data-theme="dark"] .lm-post-card, html[data-theme="dark"] .cms-news, html[data-theme="dark"] .lm-cp-steps li { box-shadow: inset 0 0 0 1px var(--mx-line), 0 18px 34px -24px rgba(0, 0, 0, .8) !important; }
/* long text cards (policies) and forms keep still */
html .lm-prose.mx-card:hover, html .lm-lead-card:hover { transform: none !important; }
/* steps: numbered, with a wire joining them on wide screens */
.mx-steps li { counter-increment: mxs; padding-top: 30px; }
.mx-steps { counter-reset: mxs; }
.mx-steps li h3::before { content: counter(mxs, decimal-leading-zero); display: block; font-family: var(--mx-head); font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; margin-bottom: 10px; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--mx-accent) 55%, transparent); }
.mx-steps li:hover h3::before { color: var(--mx-ter-gold); -webkit-text-stroke-color: transparent; transition: color .3s; }
/* icons in services and "what is included" sit in a tinted tile */
.lm-cp-steps i { background: color-mix(in srgb, var(--mx-ter-teal) 14%, var(--mx-card)) !important; color: var(--mx-ter-teal-ink) !important; box-shadow: none !important; }
.lm-cp-steps li:nth-child(even) i { background: color-mix(in srgb, var(--mx-ter-gold) 18%, var(--mx-card)) !important; color: var(--mx-ter-gold-ink) !important; }
/* questions: wire on the left when open */
html .lm-faq { box-shadow: inset 0 0 0 1px var(--mx-line) !important; background: var(--mx-card) !important; transition: box-shadow .3s, background .3s; }
html .lm-faq:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mx-ter-teal) 55%, var(--mx-line)) !important; }
html .lm-faq[open] { background: linear-gradient(180deg, var(--mx-ter-teal), var(--mx-ter-gold)) no-repeat 0 22px / 3px calc(100% - 44px), var(--mx-surface) !important; box-shadow: inset 0 0 0 1px var(--mx-line) !important; }
/* tip strip */
html .mx-tip { background: linear-gradient(90deg, color-mix(in srgb, var(--mx-ter-gold) 16%, var(--mx-card)), var(--mx-surface)) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mx-ter-gold) 35%, var(--mx-line)); }
@media (prefers-reduced-motion: reduce) { .mx-px i { transform: none !important; } }

/* headers with a photo: a soft halo behind the words keeps them sharp */
.mx-has-px.mx-hero h1, .mx-has-px.lm-page-hero h1, .mx-has-px.lm-ruled-center h1 { text-shadow: 0 0 22px var(--mx-bg), 0 0 44px var(--mx-bg); }
.mx-has-px.mx-hero .mx-lead, .mx-has-px .lm-page-lead, .mx-has-px.mx-hero .mx-typed, .mx-has-px.mx-hero .mx-trust { color: var(--mx-ink); text-shadow: 0 0 14px var(--mx-bg), 0 0 28px var(--mx-bg); }
.mx-hero.mx-has-px .mx-lamp { z-index: 2; }

/* captcha (Cloudflare Turnstile): takes no room unless Cloudflare shows its box */
.lm-captcha { margin: 0; }
.lm-captcha:not(:empty) iframe { margin: 10px 0 4px; }
.lm-captcha-float { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(320px, calc(100vw - 32px)); }
/* header, signed in: "My Profile" button and a small log-out button */
.lm-header .mx-logout { width: 38px; height: 38px; padding: 0 !important; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; color: var(--mx-muted); box-shadow: inset 0 0 0 1px var(--mx-line); cursor: pointer; }
.lm-header .mx-logout:hover { color: var(--mx-accent); box-shadow: inset 0 0 0 1px var(--mx-accent); }
