/* ===== Module page v2 (scripts/module-page-v2.js) =====
 * The postcard template for HTML & CSS, Python and JavaScript module pages.
 * Tokens are the Levels trail's (levels-trail.css :root) and the Class
 * Progress page's (teacher/class-progress.css); a value that isn't in either
 * isn't used here. Bump MODULE_PAGE_ASSET_VERSION in build-corpus.js when this
 * file changes.
 */
body.mp-page {
    --font-display: 'Baloo 2', 'Fredoka', cursive;
    --font-body: 'Nunito Sans', system-ui, sans-serif;
    --font-script: 'Caveat', cursive;
    /* Code: the Practice activity's stack (practice.css --font-mono). */
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Courier New', monospace;

    --paper: #FBF6EA;
    --paper-line: #E6DCC4;
    --paper-rule: #D8CDB2;
    --paper-sunk: #E3D9C0;
    --paper-muted: #8A7A5A;
    --paper-gold: #B7791F;
    --ink: #2B1C50;
    --purple: #7C2BF5;
    --purple-hover: #8F45FF;
    --gold: #FBBF24;
    --gold-light: #FDE68A;
    --lime: #A9E77A;
    --low-ink: #E06A24;
    --sky: #96C4D8;
    --card: #33255A;
    --lavender: #C4B5FD;
    --on-dark: #E4D9FF;
    --on-dark-meta: #B3A2D8;
    --press: 0 4px 0 rgba(0, 0, 0, .2);
    --card-shadow: 0 12px 24px rgba(11, 16, 32, .24), 0 2px 0 rgba(0, 0, 0, .06);

    margin: 0;
    background: #2B1D4B;
    color: #fff;
    font-family: var(--font-body);
}
.mp-main { display: block; overflow-x: clip; }
.mp-root { min-height: 60vh; }
.mp-wrap { max-width: 1288px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.mp-top { position: relative; z-index: 2; padding-top: 4px; }
.mp-after { padding-bottom: 56px; }

.mp-page a { color: var(--lavender); }
.mp-page a:hover { color: #fff; }
.mp-page :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ── Breadcrumb ── */
.mp-crumbs { font-size: 14px; font-weight: 700; color: var(--on-dark-meta); margin: 0 0 22px; }
.mp-crumbs a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; }
.mp-crumbs [aria-hidden] { margin: 0 8px; }
.mp-crumb-here { color: var(--on-dark); }

/* ── Postcard ── */
.mp-hero { display: flex; justify-content: center; }
.mp-card {
    position: relative; width: 100%; box-sizing: border-box;
    background: var(--paper); border: 1px solid var(--paper-line); border-radius: 6px;
    box-shadow: var(--card-shadow); color: var(--ink);
}
.mp-card-hero {
    max-width: 1000px; transform: rotate(-.6deg); padding: 30px 34px 28px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px;
}
.mp-badge {
    position: absolute; z-index: 4; top: -14px; left: -14px; width: 30px; height: 30px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 2px 0 var(--paper-gold), 0 0 0 3px rgba(251, 191, 36, .22);
    color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1; padding-top: 2px;
}
.mp-hero-main { flex: 1 1 360px; min-width: 0; }
.mp-rule { align-self: stretch; border-left: 2px dashed var(--paper-rule); }
.mp-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 900; letter-spacing: 1.6px; color: var(--paper-gold); }
.mp-title { margin: 0 0 22px; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.05; text-wrap: balance; color: var(--ink); }

/* Postage stamp + postmark */
.mp-stamp { float: right; position: relative; width: 70px; margin: -8px -6px 30px 30px; transform: rotate(4deg); }
.mp-stamp-pic { background: #fff; padding: 4px; border: 2px dashed var(--paper-rule); border-radius: 3px; }
.mp-stamp-pic img { display: block; width: 100%; height: auto; }
.mp-postmark {
    position: absolute; left: -26px; bottom: -24px; width: 58px; height: 58px; border-radius: 50%;
    border: 2px solid rgba(138, 122, 90, .55); display: flex; align-items: center; justify-content: center; text-align: center;
    font-size: 9px; font-weight: 900; letter-spacing: 1.4px; line-height: 1.15; color: var(--paper-muted); transform: rotate(-12deg);
}
.mp-stamp-lg { width: 78px; margin: -10px -8px 40px 56px; }
.mp-postmark-lg { left: -36px; bottom: -30px; width: 70px; height: 70px; flex-direction: column; font-size: 8.5px; letter-spacing: 1.3px; line-height: 1.2; }
.mp-pm-rule { display: block; width: 44px; border-top: 1px solid rgba(138, 122, 90, .6); margin: 3px 0; }

/* Buttons: the Class Progress purple (cp-welcome-btn) */
.mp-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box;
    min-height: 56px; border: 0; border-radius: 14px; background: var(--purple); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 22px; text-decoration: none; cursor: pointer;
    box-shadow: var(--press); transition: transform .12s, background .12s;
}
.mp-page .mp-btn { color: #fff; }
.mp-btn:hover { background: var(--purple-hover); transform: translateY(-2px); }
.mp-chips { position: relative; margin: 16px 0 0; padding-top: 14px; border-top: 2px dashed var(--paper-rule); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mp-chip-row { flex-basis: 100%; display: flex; justify-content: center; }
.mp-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--paper-line); background: #fff; font-family: var(--font-script); font-size: 22px; font-weight: 700; text-decoration: none;
}
.mp-page .mp-chip { color: var(--purple); }
.mp-page .mp-chip:hover { color: var(--purple-hover); border-color: var(--paper-rule); }

/* Worksheet paper stack */
.mp-sheet-wrap { flex: 0 0 auto; margin: 0 auto; padding: 4px 22px 14px 4px; }
.mp-sheet { display: block; position: relative; width: 238px; height: 337px; }
.mp-sheet-back1, .mp-sheet-back2, .mp-sheet-front { position: absolute; inset: 0; border-radius: 2px; box-shadow: 0 10px 22px rgba(11, 16, 32, .3); }
.mp-sheet-back2 { background: var(--paper-sunk); transform: translate(7%, 2.5%) rotate(3deg); }
.mp-sheet-back1 { background: var(--paper); transform: translate(3.5%, 1.2%) rotate(1.5deg); }
.mp-sheet-front { overflow: hidden; background: #fff; box-shadow: 0 12px 26px rgba(11, 16, 32, .45); transition: transform .18s, box-shadow .18s; }
.mp-sheet:hover .mp-sheet-front { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(11, 16, 32, .55); }
.mp-sheet-scale { display: block; width: 794px; height: 1123px; transform: scale(.3); transform-origin: 0 0; }
.mp-sheet-page { box-sizing: border-box; width: 794px; height: 1123px; padding: 48px 48px 40px; background: #fff; color: var(--ink); display: flex; flex-direction: column; font-family: var(--font-body); }
.mp-sheet-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 3px solid var(--purple); }
.mp-sheet-head b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.mp-sheet-head span { font-size: 13px; font-weight: 700; color: var(--paper-muted); }
.mp-sheet-fields { display: grid; gap: 8px; width: 190px; }
.mp-sheet-fields span { border-bottom: 1px solid var(--ink); height: 18px; font-size: 12px; }
.mp-sheet-h { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; }
.mp-sheet-h i { width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font: 900 14px var(--font-body); }
.mp-sheet-h b { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.mp-sheet-qs { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.mp-sheet-qs li { display: flex; align-items: center; gap: 16px; border: 1px solid var(--paper-rule); border-radius: 8px; padding: 9px 12px; }
.mp-sq-t { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.4; }
.mp-sq-o { width: 290px; flex: none; display: flex; gap: 12px; font-size: 13px; font-family: var(--font-mono); }
.mp-sq-c { flex: 1; display: flex; align-items: center; gap: 7px; }
.mp-sq-c i { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 900 11px var(--font-body); flex: none; }
.mp-sheet-pairs { display: grid; gap: 9px; }
.mp-sheet-pairs div { display: flex; gap: 40px; align-items: center; }
.mp-sheet-pairs span { flex: 1; border: 1px solid var(--paper-rule); border-radius: 8px; padding: 9px 12px; font: 600 13px var(--font-mono); white-space: nowrap; overflow: hidden; }
.mp-sheet-pairs i { flex: 1; height: 38px; border: 1px dashed var(--paper-rule); border-radius: 8px; }

/* ── Online band: the activity sky ── */
.mp-sky { position: relative; overflow: hidden; margin-top: -190px; background: var(--sky); }
.mp-sky-shade { position: absolute; left: 0; right: 0; top: 0; height: 110px; background: linear-gradient(180deg, rgba(11, 16, 32, .5), rgba(11, 16, 32, 0)); }
.mp-cloud { position: absolute; height: auto; }
.mp-cloud-1 { left: 3%; top: 46px; width: 96px; opacity: .95; }
.mp-cloud-2 { left: 46%; top: 178px; width: 70px; opacity: .85; }
.mp-cloud-3 { left: 38%; bottom: 96px; width: 64px; opacity: .85; }
.mp-cloud-4 { right: 2%; top: 64px; width: 84px; opacity: .95; }
.mp-cloud-5 { right: 2%; bottom: 52px; width: 104px; }
.mp-sky-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--strip) repeat-x left bottom / auto 60px; }
.mp-sky-inner { position: relative; max-width: 1288px; margin: 0 auto; padding: 274px 24px 120px; box-sizing: border-box; }

.mp-card-online { scroll-margin-top: 90px; }
.mp-card-online {
    max-width: 1080px; transform: rotate(.6deg); padding: 30px 34px;
    display: grid; grid-template-columns: minmax(0, 340px) 2px minmax(0, 1fr); align-items: center; gap: 28px 36px;
}
.mp-online-text h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; text-wrap: balance; color: var(--ink); }
.mp-online-text p { margin: 0 0 26px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.mp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: center; min-width: 0; }
.mp-tabcol { display: grid; gap: 16px; align-content: start; min-width: 0; }
.mp-tabcol-h { font-size: 12px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; color: var(--paper-muted); }
.mp-tab {
    position: relative; min-width: 0; height: 58px; box-sizing: border-box; padding: 0 7px 7px; display: flex; align-items: flex-end;
    border-radius: 6px; cursor: pointer; font: inherit; text-align: left; background: var(--paper);
    border: 1px solid var(--paper-line); box-shadow: 0 4px 10px rgba(11, 16, 32, .12); opacity: .85;
    transform: rotate(var(--tilt, 0deg)); transition: transform .15s;
}
.mp-tab:hover { transform: translateY(-4px) rotate(var(--tilt, 0deg)); }
.mp-tab.is-on { border: 2px solid var(--g2); transform: translateY(-8px) rotate(var(--tilt, 0deg)); box-shadow: 0 14px 26px rgba(11, 16, 32, .3); z-index: 1; opacity: 1; }
.mp-tab-gem { position: absolute; top: 6px; right: 6px; width: 18px; height: 22px; padding: 2px; box-sizing: border-box; background: #fff; border: 1.5px dashed var(--paper-rule); border-radius: 2px; }
.mp-gem { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(135deg, var(--g1), var(--g2) 52%, var(--g3)); }
.mp-gem::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .3); clip-path: polygon(0 0, 100% 0, 0 70%); }
.mp-gem::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .14); clip-path: polygon(100% 30%, 100% 100%, 20% 100%); }
.mp-tab-name { position: relative; font-family: var(--font-script); font-weight: 700; font-size: 19px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: var(--paper-gold); }

/* Activity previews: the real activity page, as students see it, in an inert 1120x780 frame scaled to the card */
.mp-demo { grid-column: 1 / -1; margin-top: 6px; border-radius: 16px; overflow: hidden; background: var(--sky); box-shadow: 0 10px 22px rgba(11, 16, 32, .16); }
.mp-panel[hidden] { display: none; }
.mp-frame { position: relative; width: 100%; aspect-ratio: 1120 / 780; overflow: hidden; background: var(--sky); }
.mp-frame iframe { position: absolute; left: 0; top: 0; width: 1120px; height: 780px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: none; background: var(--sky); }

/* One-minute explainer, on the sky */
.mp-teach { margin-top: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 48px; align-items: start; color: var(--ink); }
.mp-teach h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--ink); }
.mp-teach h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); }
.mp-teach p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.mp-script { margin: 0 0 16px !important; font-family: var(--font-script); font-weight: 700; font-size: 23px !important; line-height: 1.2 !important; color: var(--paper-gold) !important; }
.mp-script-gold { color: var(--gold) !important; margin-bottom: 26px !important; }
.mp-teach code, .mp-qcard code { font-family: var(--font-mono); }
.mp-teach code { color: var(--ink); background: rgba(255, 255, 255, .6); border-radius: 4px; padding: 0 4px; }
.mp-mistakes { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 16px; line-height: 1.5; }
.mp-mistakes li { display: flex; gap: 10px; }
.mp-mistakes [aria-hidden] { color: var(--low-ink); }

/* ── Where it fits ── */
.mp-where { margin-top: 72px; }
.mp-where-head { display: flex; align-items: center; gap: 20px; margin: 0 0 6px; }
.mp-where-head h2 { margin: 0; flex: 0 0 auto; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.mp-where-head h2 a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mp-trail-a { flex: none; pointer-events: none; }
.mp-pager { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.mp-pager-card {
    position: relative; z-index: 1; flex: 1 1 0; min-width: 220px; text-decoration: none; background: var(--paper); border: 1px solid var(--paper-line);
    border-radius: 6px; padding: 14px 16px; color: var(--ink); transform: rotate(-1.5deg); box-shadow: 0 10px 22px rgba(11, 16, 32, .16);
    display: flex; align-items: center; gap: 14px; transition: transform .15s;
}
.mp-page .mp-pager-card { color: var(--ink); }
.mp-pager-card:hover { transform: rotate(0deg) translateY(-3px); }
.mp-pager-next { transform: rotate(-1deg); justify-content: space-between; }
.mp-dot { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--purple); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); display: flex; align-items: center; justify-content: center; }
.mp-pager-k { display: block; font-size: 12px; font-weight: 900; letter-spacing: 1.6px; color: var(--paper-muted); }
.mp-pager-t { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; margin-top: 4px; }
.mp-here { position: relative; z-index: 1; flex: 1 1 0; min-width: 240px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 2px dashed rgba(251, 191, 36, .55); border-radius: 10px; color: #fff; }
.mp-here svg { flex: none; }
.mp-here-k { display: block; font-size: 12px; font-weight: 900; letter-spacing: 1.6px; color: var(--gold); }
.mp-here-t { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; margin-top: 3px; }
.mp-discover { margin: 40px 0 0; text-align: center; }
.mp-discover a { position: relative; display: inline-flex; align-items: center; min-height: 56px; font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--on-dark); text-decoration: none; }
.mp-discover b { color: var(--lime); font-size: 1.25em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.mp-trail-b { position: absolute; right: 100%; top: 50%; margin-right: 10px; transform: translateY(-91%); pointer-events: none; }

/* ── Questions (no answers) ── */
.mp-learn { margin-top: 144px; }
.mp-learn h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.mp-qgrid { columns: 2 380px; column-gap: 20px; }
.mp-qcard { break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; margin: 0 0 20px; background: var(--card); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 18px 20px; }
.mp-qcard h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: #fff; }
.mp-qlist { margin: 0; padding: 0 0 0 22px; display: grid; gap: 14px; font-size: 15px; line-height: 1.45; color: var(--on-dark); }
.mp-qlist b { color: #fff; }
.mp-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.mp-opt { display: inline-flex; gap: 8px; align-items: baseline; color: var(--on-dark); }
.mp-opt i { font-style: normal; font-weight: 900; color: var(--on-dark-meta); }
.mp-qcard code { color: #fff; }
.mp-qcard pre { margin: 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; color: #fff; white-space: pre; background: rgba(16, 8, 34, .45); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 8px 12px; overflow-x: auto; }
.mp-hint { margin: 6px 0 0; font-size: 14px; color: var(--on-dark-meta); }
.mp-terms-lead { margin: 0 0 8px; font-size: 14px; color: var(--on-dark-meta); }
.mp-terms { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-terms li { background: rgba(16, 8, 34, .45); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; padding: 4px 10px; }
.mp-pairs { display: grid; gap: 10px; }
.mp-pair { display: grid; gap: 4px; }
.mp-pair-note { font-size: 13px; color: var(--on-dark-meta); }
.mp-spots { display: grid; gap: 14px; }
.mp-spot-head { margin: 0 0 6px; font-size: 14px; font-weight: 900; color: #fff; }
.mp-line { display: block; padding: 0 6px; }
.mp-line b { display: inline-block; width: 18px; color: var(--on-dark-meta); }

/* ── Give this to my class pop-up (auth-modal.css / teacher-signin.css supply the card) ── */
.mp-am .am-card { text-align: center; }
.mp-am .mp-am-step[hidden] { display: none; }
.mp-am .mp-am-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.mp-am .mp-am-msg { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--low-ink); }
.mp-am .mp-am-msg:empty { display: none; }

/* Class picker + busy state */
.mp-am .mp-am-classes { display: grid; gap: 8px; margin: 0 0 6px; text-align: left; }
.mp-am .mp-am-class {
    display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; border: 2px solid var(--paper-rule); border-radius: 10px;
    background: #fff; color: var(--ink); font: 800 16px var(--font-body); text-align: left; cursor: pointer;
}
.mp-am .mp-am-class:hover { border-color: var(--purple); }
.mp-am .mp-am-new { border-style: dashed; color: var(--purple); }
.mp-am.is-busy .am-card { opacity: .6; pointer-events: none; }
.mp-am .am-legal { margin: 12px 0 0; font-size: 12px; opacity: .75; }

/* "Send to a colleague" fallback panel (content/share-page.js) */
.share-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.share-panel {
    position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 10px; padding: 14px 16px; box-sizing: border-box;
    background: var(--paper); border: 1px solid var(--paper-line); border-radius: 8px; box-shadow: 0 20px 44px rgba(11, 16, 32, .35); color: var(--ink);
}
.share-panel[hidden] { display: none; }
.share-panel-label { margin: 0 0 4px; font-size: 11px; letter-spacing: 1.5px; font-weight: 900; color: var(--paper-muted); text-transform: uppercase; }
.share-panel-note { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 1.45; }
.share-panel textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 10px 12px; border: 2px solid var(--paper-rule); border-radius: 10px; background: #fff; color: var(--ink); font: 600 14px var(--font-body); }
.share-panel-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.share-panel-btn { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--paper-rule); background: #fff; color: var(--ink); font: 800 14px var(--font-body); cursor: pointer; }
.share-panel-btn.is-primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.share-panel-btn.is-primary:hover { background: var(--purple-hover); }

/* ── Small screens ── */
@media (max-width: 860px) {
    .mp-card-online { grid-template-columns: minmax(0, 1fr); }
    .mp-card-online > .mp-rule { display: none; }
    .mp-where-head { flex-direction: column; align-items: flex-start; }
    .mp-trail-a { display: none; }
    .mp-discover a { font-size: 24px; }
    .mp-trail-b { display: none; }
}
@media (max-width: 640px) {
    .mp-wrap, .mp-sky-inner { padding-left: 16px; padding-right: 16px; }
    .mp-card-hero { padding: 24px 20px; }
    .mp-card-hero > .mp-rule { display: none; }
    .mp-card-online { padding: 24px 20px; }
    .mp-title { font-size: 28px; }
    .mp-tabs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .mp-tabcol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-tabcol-h { grid-column: 1 / -1; }
    .mp-teach { margin-top: 64px; }
    .mp-learn { margin-top: 96px; }
    .mp-qgrid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-btn, .mp-tab, .mp-pager-card, .mp-sheet-front { transition: none; }
}
@media print { .mp-page { background: #fff; } }
