/* Math Lab "Pro Pass" offer pop-up (ml-promo.1.js). */
.ml-promo{--p-navy:#0B1F38;--p-ink:#0F2A4A;--p-teal:#2EC4B6;--p-teal-d:#0B7A7A;--p-lime:#C8F04B;--p-soft:#A9C1DC;--p-text:#E4EDF7;--p-dim:#8FA7C3;
 position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;
 background:rgba(6,16,32,.7);opacity:0;transition:opacity .2s ease;font-family:var(--ml-body,"IBM Plex Sans",Inter,system-ui,sans-serif)}
.ml-promo.is-open{opacity:1}
.ml-promo *{box-sizing:border-box}
.mlp-card{position:relative;width:min(880px,100%);min-height:540px;max-height:calc(100vh - 32px);overflow:auto;border-radius:28px;background:var(--p-navy);color:var(--p-text);
 display:flex;box-shadow:0 40px 100px rgba(0,0,0,.5);transform:translateY(14px) scale(.98);transition:transform .25s ease}
.ml-promo.is-open .mlp-card{transform:none}
.mlp-grid{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.mlp-x{position:absolute;right:16px;top:16px;z-index:2;width:44px;height:44px;border-radius:22px;border:1px solid #22426A;background:rgba(11,31,56,.85);color:var(--p-text);display:flex;align-items:center;justify-content:center;cursor:pointer}
.mlp-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.mlp-card:focus{outline:none}
.mlp-x:hover{background:#14304F}
.mlp-main{position:relative;flex:1;padding:50px 24px 40px 54px;display:flex;flex-direction:column;gap:22px}
.mlp-eyebrow{margin:0;display:flex;align-items:center;gap:10px;font:500 12px/1 var(--ml-mono,"IBM Plex Mono",monospace);letter-spacing:.16em;color:var(--p-lime)}
.mlp-eyebrow span{width:8px;height:8px;border-radius:4px;background:var(--p-lime)}
.ml-promo h2{margin:0;font-family:var(--ml-display,"Bricolage Grotesque","Space Grotesk",system-ui,sans-serif);font-weight:650;font-size:48px;line-height:1.04;letter-spacing:-.02em;color:#fff}
.mlp-sub{margin:0;max-width:360px;font-size:16px;line-height:1.55;color:var(--p-soft)}
.mlp-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;max-width:420px;font-size:14.5px}
.mlp-list li{display:flex;align-items:center;gap:10px}
.mlp-list svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:var(--p-teal);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mlp-actions{margin-top:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.mlp-go{height:54px;padding:0 28px;border:0;border-radius:27px;background:var(--p-lime);color:var(--p-navy);cursor:pointer;display:inline-flex;align-items:center;gap:10px;
 font:700 17px/1 var(--ml-display,"Bricolage Grotesque","Space Grotesk",system-ui,sans-serif);transition:transform .15s ease,box-shadow .15s ease}
.mlp-go:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(200,240,75,.25)}
.mlp-go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.mlp-later{height:44px;padding:0 6px;border:0;background:none;color:var(--p-soft);font:500 15px/1 inherit;font-family:inherit;cursor:pointer}
.mlp-later:hover{color:#fff}
.mlp-note{margin:0;font-size:13px;color:var(--p-dim)}
.mlp-in{border:0;padding:0;background:none;color:var(--p-lime);font:inherit;text-decoration:underline;cursor:pointer}
.mlp-go:focus-visible,.mlp-later:focus-visible,.mlp-in:focus-visible,.mlp-x:focus-visible{outline:3px solid var(--p-teal);outline-offset:3px}
.mlp-side{position:relative;width:320px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding-right:40px}
.mlp-pass{position:relative;width:260px;border-radius:22px;background:#fff;color:var(--p-ink);transform:rotate(4deg);box-shadow:0 24px 50px rgba(0,0,0,.35);overflow:hidden}
.mlp-pass-top{display:grid;grid-template-columns:1fr auto;row-gap:6px;padding:22px 22px 18px;background:var(--p-ink);color:#fff}
.mlp-pass-top b{font:700 16px/1 var(--ml-display,"Bricolage Grotesque",system-ui,sans-serif)}
.mlp-pass-top i{font-style:normal;padding:3px 9px;border-radius:999px;background:var(--p-lime);color:var(--p-navy);font:500 11px/1.2 var(--ml-mono,"IBM Plex Mono",monospace);letter-spacing:.1em}
.mlp-pass-top small{grid-column:1/-1;font:500 11px/1 var(--ml-mono,"IBM Plex Mono",monospace);letter-spacing:.14em;color:var(--p-soft)}
.mlp-pass-num{padding:26px 22px 30px}
.mlp-pass-num strong{display:block;font:700 100px/.9 var(--ml-display,"Bricolage Grotesque",system-ui,sans-serif);letter-spacing:-.04em;color:var(--p-ink)}
.mlp-pass-num span{font:600 20px/1.3 var(--ml-display,"Bricolage Grotesque",system-ui,sans-serif);color:var(--p-teal-d)}
.mlp-pass-cut{position:relative;margin:0 18px;border-top:2px dashed #D6E2EE}
.mlp-pass-cut::before,.mlp-pass-cut::after{content:"";position:absolute;top:-13px;width:24px;height:24px;border-radius:12px;background:var(--p-navy)}
.mlp-pass-cut::before{left:-30px}.mlp-pass-cut::after{right:-30px}
.mlp-pass-foot{display:flex;justify-content:space-between;align-items:center;padding:16px 22px 18px}
.mlp-pass-foot small{display:block;font:500 10px/1 var(--ml-mono,"IBM Plex Mono",monospace);letter-spacing:.14em;color:#5A6F88;margin-bottom:5px}
.mlp-pass-foot b{font-size:14px}
.mlp-pass-foot svg{width:70px;height:36px;fill:var(--p-ink)}
@media (max-width:760px){
 .mlp-card{flex-direction:column-reverse;min-height:0;border-radius:24px}
 .mlp-main{padding:8px 22px 20px;gap:16px}
 .mlp-side{width:auto;padding:58px 0 4px}
 .mlp-pass{width:250px;transform:rotate(-3deg)}
 .mlp-pass-top{padding:14px 18px;row-gap:0}.mlp-pass-top small{display:none}
 .mlp-pass-num{display:flex;align-items:baseline;gap:10px;padding:14px 18px 16px}
 .mlp-pass-num strong{display:inline;font-size:72px}
 .mlp-pass-cut,.mlp-pass-foot{display:none}
 .ml-promo h2{font-size:31px}.ml-promo h2 br{display:none}
 .mlp-sub{font-size:14px}.mlp-list{gap:10px 14px;font-size:13px}
 .mlp-actions{flex-direction:column;align-items:stretch;gap:4px}.mlp-go{justify-content:center}
 .mlp-note{text-align:center;font-size:12px}
}
@media (prefers-reduced-motion:reduce){.ml-promo,.mlp-card,.mlp-go{transition:none}}
@media print{.ml-promo{display:none!important}}

/* ---- Light themes (Paper & Ink) ---- */
.ml-promo[data-theme] .mlp-card{background:#FFFFFF;color:#24405F;box-shadow:0 40px 100px rgba(6,16,32,.35)}
.ml-promo[data-theme] .mlp-grid pattern path{stroke:#E8EFF6}
.ml-promo[data-theme] .mlp-grid>path{stroke:#2EC4B6;stroke-opacity:.45}
.ml-promo[data-theme] .mlp-eyebrow{color:#0B7A7A}
.ml-promo[data-theme] .mlp-eyebrow span{background:#2EC4B6}
.ml-promo[data-theme] h2{color:#0F2A4A}
.ml-promo[data-theme] .mlp-sub{color:#3D5573}
.ml-promo[data-theme] .mlp-list svg{stroke:#0B7A7A}
.ml-promo[data-theme] .mlp-go{background:#0F2A4A;color:#FFFFFF}
.ml-promo[data-theme] .mlp-go svg{stroke:#C8F04B}
.ml-promo[data-theme] .mlp-go:hover{box-shadow:0 10px 24px rgba(15,42,74,.25)}
.ml-promo[data-theme] .mlp-later{color:#3D5573}.ml-promo[data-theme] .mlp-later:hover{color:#0F2A4A}
.ml-promo[data-theme] .mlp-note{color:#5A6F88}
.ml-promo[data-theme] .mlp-in{color:#0B7A7A}
.ml-promo[data-theme] .mlp-x{border-color:#D6E2EE;background:#F3F7FB;color:#0F2A4A}
.ml-promo[data-theme] .mlp-x:hover{background:#E3ECF5}
/* Light: navy ticket on a white card */
.ml-promo[data-theme="light"] .mlp-pass{background:#0F2A4A;color:#FFFFFF}
.ml-promo[data-theme="light"] .mlp-pass-top{background:#0B7A7A}
.ml-promo[data-theme="light"] .mlp-pass-top small{color:#D4F1EE}
.ml-promo[data-theme="light"] .mlp-pass-num strong{color:#C8F04B}
.ml-promo[data-theme="light"] .mlp-pass-num span{color:#FFFFFF}
.ml-promo[data-theme="light"] .mlp-pass-cut{border-top-color:#2E4D73}
.ml-promo[data-theme="light"] .mlp-pass-cut::before,.ml-promo[data-theme="light"] .mlp-pass-cut::after{background:#FFFFFF}
.ml-promo[data-theme="light"] .mlp-pass-foot small{color:#A9C1DC}
.ml-promo[data-theme="light"] .mlp-pass-foot svg{fill:#FFFFFF}
/* Mixed: white content, navy side panel, white ticket */
.ml-promo[data-theme="mixed"] .mlp-side{background:#0F2A4A;padding:0 34px;width:330px}
.ml-promo[data-theme="mixed"] .mlp-x{border-color:#2E4D73;background:#0F2A4A;color:#FFFFFF}
.ml-promo[data-theme="mixed"] .mlp-pass-top{background:#0B7A7A}
.ml-promo[data-theme="mixed"] .mlp-pass-cut::before,.ml-promo[data-theme="mixed"] .mlp-pass-cut::after{background:#0F2A4A}
@media (max-width:760px){
 .ml-promo[data-theme="mixed"] .mlp-side{width:auto;padding:58px 0 22px}
 .ml-promo[data-theme="mixed"] .mlp-main{padding-top:20px}
}

/* ---- Guard against the site's general button / svg styles ---- */
.ml-promo .mlp-card button{min-width:0!important;min-height:0!important;margin:0!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;-webkit-appearance:none;appearance:none}
.ml-promo .mlp-card button:hover,.ml-promo .mlp-card button:active{box-shadow:none!important}
.ml-promo .mlp-card .mlp-later{background:transparent!important;border:0!important;padding:0 6px!important;height:44px!important;color:#3D5573!important;font-size:15px!important;font-weight:500!important}
.ml-promo .mlp-card .mlp-later:hover{color:#0F2A4A!important;text-decoration:underline}
.ml-promo .mlp-card .mlp-in{background:transparent!important;border:0!important;padding:0!important;height:auto!important;display:inline!important;color:#0B7A7A!important;font-size:inherit!important;font-weight:600!important;text-decoration:underline!important;vertical-align:baseline}
.ml-promo .mlp-card .mlp-go{box-shadow:0 8px 20px rgba(15,42,74,.18)!important}
.ml-promo .mlp-card .mlp-x{width:44px!important;height:44px!important;padding:0!important;border-radius:22px!important;display:flex!important;align-items:center;justify-content:center;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.35)!important;color:#FFFFFF!important}
.ml-promo .mlp-card .mlp-x:hover{background:rgba(255,255,255,.2)!important}
.ml-promo .mlp-card .mlp-x svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:#FFFFFF!important;stroke-width:2.4!important;stroke-linecap:round;visibility:visible!important;opacity:1!important}
.ml-promo .mlp-card .mlp-x svg path{stroke:#FFFFFF!important;fill:none!important}
.ml-promo .mlp-card .mlp-go{background:#0F2A4A!important;color:#FFFFFF!important;border:0!important;padding:0 28px!important;height:54px!important;border-radius:27px!important}
.ml-promo .mlp-card .mlp-go:hover{background:#163A63!important}
.ml-promo .mlp-card .mlp-go svg,.ml-promo .mlp-card .mlp-go svg path{display:block!important;fill:none!important;stroke:#C8F04B!important;stroke-width:2.6!important}
.ml-promo .mlp-list svg,.ml-promo .mlp-list svg path{display:block!important;fill:none!important;stroke:#0B7A7A!important;stroke-width:2.4!important}
