/* Game Theory Masterclass theme "Quiet Matrix" (design option 2): overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The tokens turn the engine's dark ground into white paper, so the
   engine's "dark" and "light" sections are the same white page. What is redrawn here: the type (Ancizar Sans 700
   headings, 17 px text, tabular lining figures, no monospace, no tracked capitals, sentence case), the design's
   language (1 px Grey 15 hairlines as the only separators, 1.5 px black buttons, square corners, no shadows, one red
   that marks equilibria, the recommended masterclass, and primary buttons), the white sticky header and the white
   footer, the page heroes, the tuition columns, forms, the unit reader and its boxes, the account pages. The second
   half styles the landing page (theme/home.php): the 12-column grid with the hanging title column, the entry game
   solved by backward induction, the curriculum drawn as one game tree, and the comparison of the three masterclasses. */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 17px/1.5 var(--sans); font-variant-numeric: lining-nums; font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.005em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
b, strong { font-weight: 700; }
i, em { font-style: italic; }
sub, sup { font-size: .68em; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.2em; }
sup { top: -.5em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gutter)); }
.skip { background: var(--ink); color: #fff; font-weight: 500; }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 700 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.lead, .light .lead { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 34em; }
.credit { font: 400 14px/1.45 var(--sans); letter-spacing: 0; color: var(--g60); }
.credit a { color: inherit; }
.link-arrow { font: 500 17px/1.4 var(--sans); letter-spacing: 0; text-transform: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; gap: .35em; }
.link-arrow:hover { opacity: 1; text-decoration-thickness: 2px; }
.link-arrow .icon { display: none; }
.rule, .light .rule { border-top: 1px solid var(--g15); }
.icon { stroke-width: 1.3; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------------------------------------------------------------- buttons */
.btn { min-height: 48px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: 0; font: 500 17px/1.2 var(--sans); letter-spacing: 0; gap: 10px; color: var(--ink); background: transparent; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-light, .light .btn-light, .reader .btn-light, .reader-end .btn-light, .paper-card .btn-light, .auth-card .btn-light, .dialog .btn-light, .page-hero .btn-light, .reader-hero .btn-light, .header-cta .btn-light, .mm-cta .btn-light, .newsletter-form .btn-light { background: var(--red); color: #fff; border-color: var(--red); }
.btn-light:hover, .light .btn-light:hover, .reader .btn-light:hover, .reader-end .btn-light:hover, .header-cta .btn-light:hover, .mm-cta .btn-light:hover, .newsletter-form .btn-light:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost, .light .btn-ghost, .reader .btn-ghost, .header-cta .btn-ghost, .mm-cta .btn-ghost, .page-hero .btn-ghost, .reader-hero .btn-ghost, .reader-end .btn-ghost, .cookie .btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover, .light .btn-ghost:hover, .reader .btn-ghost:hover, .reader-end .btn-ghost:hover, .cookie .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #333; border-color: #333; color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 16px; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn[disabled], .btn.is-disabled { opacity: .45; }
.btn-block { padding-left: 14px; padding-right: 14px; }
.hero-actions { gap: 16px; align-items: center; }
.hero-actions .link-arrow { align-self: center; }
.qm-acts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.qm-lnk { font-weight: 500; color: var(--ink); }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; font: 400 16px/1.4 var(--sans); color: var(--g60); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-btn:hover { color: var(--ink); }

/* ----------------------------------------------------------------- header */
/* White, sticky on every page including the landing page (the engine's overlay mode is turned off), a 1 px Grey 15 rule
   under it. The brand is the square mark of the chosen logo beside the wordmark; the footer carries the full logo. */
.site-header, .has-overlay-header .site-header, .has-overlay-header .site-header.is-scrolled { position: sticky; top: 0; left: auto; right: auto; height: var(--header-h); background: #fff; color: var(--ink); border-bottom: 1px solid var(--g15); backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { gap: 40px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo { height: 44px; width: auto; }
.logo-mark { height: 36px; width: 36px; }
.wordmark { font: 700 20px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; }
.nav { margin-left: 0; margin-right: auto; gap: 8px; }
.nav-top { font: 500 16px/1 var(--sans); color: var(--ink); padding: 12px 12px; letter-spacing: 0; display: inline-flex; align-items: center; gap: 8px; }
.nav-top::after { width: 6px; height: 6px; border-width: 1.5px; margin-left: 0; opacity: 1; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.nav-group:hover .nav-top, .nav-group.is-open .nav-top, .nav-group:focus-within .nav-top, .nav-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-group.is-open .nav-top::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu { top: 100%; left: -4px; min-width: 260px; background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 8px 0; transform: none; transition: opacity .12s, visibility .12s; }
.nav-menu a { padding: 8px 16px; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: transparent; color: var(--ink); text-decoration: underline; outline-offset: -3px; }
.header-cta { gap: 24px; }
.nav-login { font: 500 16px/1 var(--sans); color: var(--ink); }
.nav-login:hover { text-decoration: underline; }
.burger { width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: 0; }
.burger span { background: var(--ink); height: 1.5px; }
.mobile-menu { background: #fff; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 20px 0 30px; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.mm-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mm-group { padding: 0; border: 0; }
.mm-group .eyebrow { font: 700 17px/1.3 var(--sans); color: var(--ink); margin-bottom: 8px; }
.mm-group a { font: 400 17px/1.4 var(--sans); padding: 6px 0; color: var(--ink); }
.mm-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.light { background: #fff; color: var(--ink); }
.section.tight { padding: clamp(44px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--g15); }
.section-head { gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 860px; }
.section-head p, .light .section-head p { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 34em; }
.flash { background: var(--panel-2); color: var(--ink); border-bottom: 1px solid var(--g15); font-size: 16px; }
.flash-error { background: #fbe9eb; color: var(--red-dark); border-color: #efc2c7; }

/* -------------------------------------------------------------- page hero */
/* White paper over a 1 px black rule, the title at 44 px; a photograph, when the page has one, is a greyscale plate
   beside the title in an exact grid rectangle, as the plates of the landing page. */
.page-hero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--g15); padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero::before, .page-hero.has-img::before, .page-hero::after, .page-hero.has-img::after { content: none; }
.page-hero .wrap::before { content: ""; display: block; border-top: 1px solid var(--ink); margin-bottom: 32px; }
.page-hero .eyebrow { color: var(--g60); font-weight: 500; }
.page-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.08; margin: 12px 0 18px; max-width: 14em; color: var(--ink); text-wrap: balance; }
.page-hero .lead { color: var(--ink); }
.page-hero.has-img .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 clamp(32px, 5vw, 80px); align-items: center; }
.page-hero.has-img .wrap::before { grid-column: 1 / -1; }
.page-hero.has-img .wrap::after { content: ""; display: block; grid-column: 2; grid-row: 2 / span 6; width: 100%; aspect-ratio: 4 / 3; max-height: 340px; background: var(--hero-img) center/cover; filter: grayscale(1) contrast(1.04); }
.page-hero.has-img .wrap > * { grid-column: 1; }
.page-hero.has-figure .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 clamp(32px, 5vw, 80px); align-items: center; }
.page-hero.has-figure .wrap::before { grid-column: 1 / -1; }
.page-hero.has-figure .wrap > * { grid-column: 1; }
.page-hero.has-figure .wrap > .page-hero-figure { grid-column: 2; grid-row: 2 / span 6; }
@media (max-width: 1040px) {
  .page-hero.has-img .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero.has-img .wrap::after { display: none; }
  .page-hero.has-figure .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero.has-figure .wrap > .page-hero-figure { grid-column: 1; grid-row: auto; margin-top: 28px; }
}

/* ------------------------------------------------------- split, checks, cards */
.split-body h2 { margin-bottom: .6em; }
.split-body p, .light .split-body p { color: var(--ink); font-size: 17px; }
.split-media img { aspect-ratio: auto; filter: grayscale(1) contrast(1.04); }
.split-media .credit { position: static; display: block; margin-top: 12px; }
.checks { gap: 0; margin: 1.5em 0 1.8em; max-width: 60ch; border-top: 1px solid var(--g15); }
.checks li { grid-template-columns: 1fr; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--g15); }
.checks .icon, .light .checks .icon { display: none; }
.checks b { font-weight: 700; }
.cards-3 { border: 0; gap: 0; }
.aud { padding: 0 24px; border: 0; border-left: 1px solid var(--g15); background: transparent; }
.aud:first-child { padding-left: 0; border-left: 0; }
.aud:hover { background: transparent; color: inherit; }
.aud p, .aud:hover p, .aud:hover li { color: var(--ink); }
.aud .icon { display: none; }
.aud h3 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.aud p { font-size: 17px; }
.aud ul { border-top: 0; padding-top: 0; margin-top: 24px; gap: 0; color: var(--ink); font-size: 16px; }
.aud li { white-space: normal; align-items: baseline; gap: 0; border-top: 1px solid var(--g15); padding: 8px 0; }
.aud li .icon { display: none; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); background: none; border: 0; }
.step { background: transparent; padding: 0; display: grid; grid-template-columns: 72px 1fr; gap: 0 0; align-content: start; }
.step-no { margin: 0; display: block; grid-column: 1; grid-row: 1 / span 2; }
.step h3, .step p { grid-column: 2; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); font: 700 34px/28px var(--sans); letter-spacing: 0; display: block; }
.step h3 { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
.step p { color: var(--ink); font-size: 16px; line-height: 1.5; }
.week { border: 1px solid var(--g15); }
.week > div { border-right: 1px solid var(--g15); }
.week .d { font: 700 .85rem/1 var(--sans); letter-spacing: 0; color: var(--g60); text-transform: none; }
.week b { font: 700 1.05rem/1.25 var(--sans); }
.week span { color: var(--g60); }
.week .on { background: var(--panel-2); }
.features { gap: 40px var(--gap); }
.feature { border-top: 1px solid var(--g15); padding-top: 16px; }
.feature:first-child { border-top-color: var(--ink); }
.feature .icon { display: none; }
.feature h3 { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
.feature p, .light .feature p { color: var(--ink); font-size: 16px; }
.stats { border: 0; margin: 44px 0 56px; gap: var(--gap); }
.stats div { padding: 16px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--ink); }
.stats b { font: 700 44px/48px var(--sans); letter-spacing: 0; color: var(--ink); margin-bottom: 0; font-variant-numeric: tabular-nums; }
.stats span { font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); max-width: 16em; margin-top: 4px; }
.cert-shot img, .light .cert-shot img { border: 1px solid var(--ink); box-shadow: none; }
.kv dt { font: 700 .95rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.notice { border-left: 2px solid var(--ink); background: var(--panel-2); color: var(--ink); font-size: 1rem; }
.notice.warn { border-color: var(--red); background: #fbe9eb; }
.notice.important { background: #fdf3e8; border: 1px solid #e6c9a6; border-left: 3px solid #b86a1f; color: #5a3410; }
.contact-faq { background: transparent; border: 1px solid var(--ink); }
.contact-faq h3 { font: 700 1.3rem/1.2 var(--sans); letter-spacing: -.01em; }
.contact-faq p { color: var(--g60); }
.disclaimer, .section:not(.light) .disclaimer { margin-top: 56px; padding: 0; border: 0; max-width: 52em; font-size: 16px; line-height: 1.5; color: var(--g60); }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.unit-group-head h3, h2.h3-look { font: 700 26px/1.25 var(--sans); letter-spacing: -.01em; }
.unit-row { border-bottom: 1px solid var(--g15); padding: 22px 0; }
a.unit-row:hover, .unit-row:target { background: var(--panel-2); box-shadow: -14px 0 0 var(--panel-2), 14px 0 0 var(--panel-2); }
.unit-row:target { box-shadow: -14px 0 0 var(--panel-2), 14px 0 0 var(--panel-2), -16px 0 0 var(--red); }
.unit-row .no { font: 700 16px/1 var(--sans); letter-spacing: 0; color: var(--ink); text-transform: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-row[style*="align-items:start"] .no { height: 1.45rem; padding-top: 0; }
.unit-row h4, .unit-row h3 { font: 700 20px/1.3 var(--sans); letter-spacing: -.005em; }
.unit-row p { color: var(--ink); font-size: 16px; }
.unit-row p em { color: var(--g60); }
.unit-more, .sample-pdf { color: var(--ink); font-weight: 500; text-decoration: underline; }
.unit-more:hover, .sample-pdf:hover { color: var(--ink); }
.topic-badges li { border-radius: 0; border: 1px solid var(--g15); background: #fff; color: var(--g60); font-size: .84rem; }
.spot-box { background: transparent; border: 0; border-left: 1.5px solid var(--ink); padding: 4px 0 4px 16px; }
.spot-label { font: 700 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.spot span { color: var(--g60); }
.spot b { color: var(--ink); }
.spot .avatar { border-radius: 0; }
.sample-cta { background: var(--red); color: #fff; border-radius: 0; }
.sample-cta:hover { background: var(--red-dark); }
.sample-cta .icon { color: #fff; }
.sample-cta span { color: #f7d3d7; }
.unit-row .pk { font: 400 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.unit-pager { border-top: 1px solid var(--ink); }
.unit-pager a { font: 700 1.1rem/1.3 var(--sans); letter-spacing: 0; }
.unit-pager a span { font: 400 15px/1.8 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.learn-card { background: #fff; border: 1px solid var(--g15); }
.learn-card:hover { border-color: var(--ink); transform: none; }
.learn-body h3 { font: 700 1.5rem/1.15 var(--sans); letter-spacing: -.01em; }

/* ------------------------------------------------------------ researchers */
/* Greyscale portraits at 3:4 as in the design; name in 700, affiliation in Grey 60. The engine's grid keeps two
   columns on phones (owner's rule); only the gaps change here. */
.researchers { gap: 56px var(--gap); }
.avatar { width: 100%; aspect-ratio: 3 / 4; border: 0; padding: 0; background: var(--panel-2); filter: grayscale(1) contrast(1.04); object-fit: cover; object-position: center 22%; }
.avatar-mono { font: 700 2.6rem/1 var(--sans); color: var(--g60); border: 1px solid var(--g15); background: #fff; letter-spacing: 0; }
.researcher-body { border-top: 0; padding-top: 16px; margin-top: 0; }
.researcher h3 { font-size: 20px; line-height: 1.4; margin-bottom: 4px; letter-spacing: 0; color: var(--ink); }
.researcher-inst { font: 400 16px/1.5 var(--sans); color: var(--g60); margin: 0 0 12px; }
.researcher p { font-size: 16px; line-height: 1.5; color: var(--ink); }
.researcher-body .eyebrow { font: 400 16px/1.5 var(--sans); color: var(--g60); }
.researcher:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* --------------------------------------------------------------- packages */
/* The three masterclasses as columns separated by hairlines, as the comparison table of the design: no frames, the
   recommended one under a 4 px red rule with the flag in red. The flag sits in the flow, the same size on every card
   and invisible on the non-featured ones, so the titles, week lines, and fees stay level. The Enrol button follows the
   price tag (engine order); the engine's button height and .tier-plus rules are left alone. */
.packages { gap: 0; align-items: stretch; }
.package, .light .package { display: flex; flex-direction: column; padding: 0 var(--gap) 8px; border: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--g15); background: #fff; color: var(--ink); position: relative; }
.package:first-child { border-left: 0; padding-left: 0; }
.package.is-featured, .light .package.is-featured { background: #fff; border-top: 4px solid var(--red); margin-top: -3px; }
.package-flag { position: static; align-self: flex-start; background: transparent; color: var(--red); font: 500 16px/24px var(--sans); letter-spacing: 0; text-transform: none; padding: 0; margin: 16px 0 4px; }
.package-flag.is-placeholder { visibility: hidden; }
.package > .eyebrow:not(.package-units-label) { font: 400 16px/1.5 var(--sans); color: var(--g60); margin: 0 0 2px; }
.package h2, .package h3 { font: 700 26px/32px var(--sans); letter-spacing: -.005em; margin: 0 0 12px; min-height: 2.5em; display: flex; align-items: flex-end; }
.package-note { color: var(--ink); font-size: 16px; line-height: 1.5; min-height: 7.5em; margin: 0 0 8px; }
.fee { border: 0; border-top: 1px solid var(--ink); padding: 16px 0 0; margin: 12px 0 20px; gap: 4px 12px; align-items: baseline; }
.fee-label { font: 400 16px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); margin-bottom: 8px; }
.fee-now { font: 700 44px/48px var(--sans); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 20px/1 var(--sans); color: var(--g60); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.fee-aid { margin: -4px 0 16px; color: var(--ink); font-weight: 500; font-size: 16px; }
.fee-aid span { color: var(--red); }
.fee-aid:hover { text-decoration: underline; }
.package > .btn { margin: 0 0 24px; }
.package.is-featured > .btn-light { background: var(--red); border-color: var(--red); }
.package-incl { margin: 0 0 20px; gap: 0; font-size: 16px; color: var(--ink); }
.package-incl li { border-top: 1px solid var(--g15); padding: 8px 0; }
.package-incl li::before { content: none; }
.package-units-label { border-top: 1px solid var(--g15); margin: 0 0 6px; padding-top: 16px; color: var(--ink); font: 700 16px/1.4 var(--sans); }
.package-units { gap: 0; margin: 0; font-size: 16px; }
.package-units li a { grid-template-columns: 28px 1fr 14px; border: 0; border-top: 1px solid var(--g15); background: none; padding: 8px 0; font-weight: 400; line-height: 1.4; transition: none; color: var(--ink); }
.package-units li a::after { color: var(--red); }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; border-color: var(--g15); text-decoration: underline; }
.package-units li a > span { font: 400 16px/1.4 var(--sans); color: var(--g60); font-variant-numeric: tabular-nums; }
.package-units li.gap { margin-top: 14px; }
.topic-badge { font: 500 11px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--red); border: 1px solid var(--red); padding: 2px 6px; }
.fee-footnote { margin-top: 32px; font-size: 16px; color: var(--g60); text-align: left; max-width: 56em; }
.aid-note { border: 1px solid var(--ink); background: #fff; }
.aid-note h3 { font-size: 1.2rem; }
.aid-note p { color: var(--ink); }
.aid-note.is-granted { border-color: var(--ok); background: #eef6f0; }
@media (max-width: 1080px) {
  .packages { max-width: 620px; }
  .package, .package:first-child { border-left: 0; padding: 0 0 8px; margin-top: 40px; }
  .package.is-featured { margin-top: 40px; }
  .package h2, .package h3 { min-height: 0; }
  .package-note { min-height: 0; }
}

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 0 var(--gap); }
.testimonial, .section:not(.light) .testimonial { border: 0; border-top: 1px solid var(--g15); background: transparent; padding: 16px 0 28px; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 16px; font: 400 17px/1.5 var(--sans); letter-spacing: 0; color: var(--ink); flex: 1; }
.testimonial blockquote::before { content: none; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border: 0; padding: 0; font: 400 16px/1.5 var(--sans); color: var(--g60); }
.t-avatar { width: 44px; height: 44px; border-radius: 0; filter: grayscale(1); }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: #fff; color: var(--ink); border: 1px solid var(--ink); font: 700 15px/1 var(--sans); letter-spacing: .02em; }
.testimonial figcaption strong { color: var(--ink); font-weight: 700; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--g60); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 40px var(--gap); }
.post-card { border-top: 1px solid var(--g15); padding-top: 20px; }
.post-card-img { aspect-ratio: 16 / 10; background: var(--panel-2); margin-bottom: 18px; }
.post-card-img img { filter: grayscale(1) contrast(1.04); }
.post-card:hover .post-card-img img { transform: none; }
.post-card .eyebrow { font: 400 16px/1.5 var(--sans); color: var(--g60); }
.post-card h3 { font: 700 26px/32px var(--sans); letter-spacing: -.005em; margin: 8px 0 .5em; }
.post-card p, .section:not(.light) .post-card p { font-size: 16px; color: var(--ink); }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.pager a, .pager span { border: 1px solid var(--g15); color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic-links a, .section:not(.light) .topic-links a { border-radius: 0; border: 1px solid var(--g15); color: var(--ink); }
.topic-links a:hover { border-color: var(--ink); }
.post-meta { border-bottom: 1px solid var(--g15); }
.post-cover { background: var(--panel-2); }
.prose .citation .cite-doi { color: var(--ink); }
.prose .citation .cite-note { color: var(--g60); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--g15); }
.faq details, .light .faq details { border-bottom: 1px solid var(--g15); }
.faq summary { font: 500 20px/28px var(--sans); letter-spacing: 0; padding: 16px 48px 16px 0; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq summary::after { content: "+"; right: 0; top: 50%; transform: translateY(-50%); font: 400 26px/32px var(--sans); transition: none; }
.faq details[open] summary::after { content: "\2212"; transform: translateY(-50%); }
.faq-a, .light .faq-a { color: var(--ink); font-size: 17px; max-width: 40em; padding: 16px 48px 24px 0; border-top: 1px solid var(--ink); }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: transparent; padding: 32px 0; gap: 36px; align-items: center; }
.newsletter h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; margin-bottom: 6px; }
.newsletter p { color: var(--ink); font-size: 16px; }
.newsletter-form { gap: 0; }
.newsletter-form input[type=email] { height: 48px; background: #fff; border: 1.5px solid var(--ink); border-right: 0; border-radius: 0; color: var(--ink); font: 400 17px/1.2 var(--sans); padding: 0 16px; }
.newsletter-form input[type=email]::placeholder { color: #767676; }
.newsletter-form input[type=email]:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.newsletter-form .btn { height: 48px; background: var(--ink); border-color: var(--ink); color: #fff; }
.newsletter-form .btn:hover { background: #333; border-color: #333; }
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.015em; max-width: 12em; margin: 0 auto 30px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--ink); padding: 48px 0 0; font-size: 16px; line-height: 1.5; }
.footer-grid { grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 2.25fr)); gap: 40px var(--gap); }
.footer-brand .brand { display: inline-flex; }
.logo-footer { height: 72px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--g60); font-size: 16px; max-width: 24em; }
.footer-contact { color: var(--g60); font-size: 16px; grid-template-columns: 68px 1fr; }
.footer-contact dt { font: 700 15px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.footer-contact dd, .footer-contact a { color: var(--g60); }
.footer-contact a:hover { color: var(--ink); }
.footer-col { gap: 4px; }
.footer-col .eyebrow { font: 700 16px/24px var(--sans); color: var(--ink); margin-bottom: 8px; }
.footer-col a { font-size: 16px; color: var(--ink); padding: 2px 0; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--g15); color: var(--ink); font-size: 16px; padding-bottom: 40px; }
.footer-bottom a { color: var(--ink); }
.footer-bottom a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { margin: 0; }

/* ------------------------------------------------------------------ forms */
.auth-card { background: #fff; color: var(--ink); max-width: 500px; border: 1px solid var(--ink); }
.auth-card h1 { font-size: 2.2rem; margin: 10px 0 14px; }
.auth-card p { color: var(--ink); }
.field label { font: 700 16px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; height: 48px; font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.field input[disabled] { background: var(--panel-2); color: var(--g60); border-color: var(--g15); }
.field .hint { color: var(--g60); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--ink); }
.pw-toggle, .link-button, .auth-card .field .hint a { color: var(--ink); font-weight: 500; text-decoration: underline; }
.auth-switch { border-top: 1px solid var(--g15); }
.cp-list { border: 1px solid var(--ink); box-shadow: none; }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--panel-2); }
.verify-form input { background: #fff; border: 1.5px solid var(--ink); border-right: 0; border-radius: 0; color: var(--ink); font: 500 17px/1 var(--sans); letter-spacing: .06em; height: 52px; }
.verify-form input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.verify-form .btn { height: 52px; }
.credential { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-top: 4px solid var(--red); }
.credential .eyebrow { color: var(--ink); }
.credential h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.credential .valid { color: var(--ok); border: 1px solid var(--ok); font: 700 15px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.credential .facts { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--g15); }
.credential .facts b { font: 700 1.3rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink); }
.credential th { font: 700 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); border-bottom: 1px solid var(--ink); }
.credential td { border-color: var(--g15); }
.credential td:first-child { font: 400 16px/1 var(--sans); color: var(--g60); font-variant-numeric: tabular-nums; }
.copyline input { background: #fff; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); font: 400 .9rem/1 var(--mono-real); }
.doc-cards { gap: var(--gap); }
.doc-card { background: #fff; border: 1px solid var(--ink); }
.doc-card img { border: 1px solid var(--g15); }
.doc-card p { color: var(--ink); }
.coupon-form input { border: 1.5px solid var(--ink); border-radius: 0; font: 500 16px/1.2 var(--sans); letter-spacing: .06em; }
.coupon-code { color: var(--g60); }
.coupon-error { color: var(--red-dark); }
.coupon-applied { color: var(--ok); }
.tag-chip { background: var(--ink); color: #fff; }
.rating-opt span { border: 1px solid var(--g15); }
.rating-opt:hover span { border-color: var(--ink); }
.rating-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rating-opt input:checked + span small { color: #cfcfcf; }
.rating-opt b { font: 700 1.6rem/1 var(--sans); }
.upgrade-opt { border: 1px solid var(--g15); }
.upgrade-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.upgrade-opt b { font: 700 1.1rem/1.25 var(--sans); letter-spacing: 0; }
.upgrade-badge { background: var(--red); font: 700 .7rem/1 var(--sans); letter-spacing: .04em; }
.upgrade-price strong { font: 700 1.6rem/1 var(--sans); letter-spacing: -.01em; }

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--g60); }
.tabs { box-shadow: inset 0 -1px 0 var(--g15); }
.tabs a { font: 500 16px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); border-bottom: 2px solid transparent; }
.tabs a.is-active, .tabs a:hover { color: var(--ink); border-color: var(--ink); }
.account-body .wrap > .notice { background: var(--panel-2); color: var(--ink); border: 0; border-left: 2px solid var(--ink); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--ink); }
.account-body .wrap > .notice-bad { border-left-color: var(--red); background: #fbe9eb; }
.save-ok { color: var(--ok); }
.save-bad { color: var(--red-dark); }
.dialog-back { background: rgba(0, 0, 0, .55); }
.dialog { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-top: 4px solid var(--red); box-shadow: none; }
.dialog h2 { font: 700 1.7rem/1.15 var(--sans); letter-spacing: -.01em; }
.dialog p { color: var(--ink); }
.progress-strip { border: 1px solid var(--ink); }
.progress-strip div { border-right: 1px solid var(--g15); }
.progress-strip b { font: 700 2rem/1.1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.progress-strip span { font: 400 .9rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.bar { background: var(--g15); height: 2px; }
.bar i { background: var(--red); }
.ucard { background: #fff; border: 1px solid var(--g15); }
.ucard.is-open { background: #fff; border: 1px solid var(--ink); box-shadow: inset 0 3px 0 var(--red); }
.ucard.is-locked { background: transparent; }
.ucard.is-locked h3, .ucard.is-locked .ucard-no { color: var(--g60); }
.ucard-no { font: 700 2.3rem/1 var(--sans); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ucard-no small { font: 400 .8rem/1 var(--sans); letter-spacing: 0; color: var(--g60); }
.ucard h3 { font-size: 1.25rem; }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--g60); }
.ucard-more:hover { color: var(--ink); }
.pill { font: 500 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; border: 1px solid var(--ink); color: var(--ink); }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.wait { color: var(--g60); border-color: var(--g15); }
.pill.bad { border-color: var(--red); color: var(--red-dark); }
.verdict { font: 700 .95rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.verdict.bad { background: var(--red); }
.verdict.ok { background: var(--ok); }
.exam-score { font: 700 3.4rem/1 var(--sans); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.exam-score small { color: var(--g60); }
.exam-result.is-passed { border-color: var(--ok); }
.score { font: 700 1.2rem/1 var(--sans); }
.panel { background: #fff; border: 1px solid var(--g15); }
.panel h2 { font-size: 1.7rem; }
.panel p { color: var(--ink); }
.panel.is-key { border: 1px solid var(--ink); }
.paper-card { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-bottom: 1px solid var(--ink); }
.quiz-head p { color: var(--ink); }
.q { background: #fff; border: 1px solid var(--g15); }
.q-no { font: 400 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.q-text { font: 500 1.2rem/1.4 var(--sans); letter-spacing: 0; }
.opt { border: 1px solid var(--g15); border-radius: 0; }
.opt:hover { border-color: var(--ink); }
.opt .k { border: 1px solid var(--ink); border-radius: 0; font: 700 .85rem/1 var(--sans); }
.opt:has(input:checked) { border-color: var(--ink); background: #fff; }
.opt:has(input:checked) .k { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt:has(input:focus-visible) { outline-color: var(--ink); }
.opt.is-right { background: #eef6f0; }
.opt.is-wrong { background: #fbe9eb; }
.explain { background: var(--panel-2); border-left: 2px solid var(--ink); color: var(--ink); }
.explain b { font: 700 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.quiz-foot { background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ink); backdrop-filter: none; }
.quiz-foot .state { font: 400 .9rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.scorebox { border: 1px solid var(--ink); }
.scorebox .big { font: 700 3.6rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scorebox .big small { color: var(--g60); }
.timer { background: #fff; border: 1px solid var(--ink); font: 400 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.timer b { font: 700 1.6rem/1 var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.timer.is-low { border-color: var(--red); color: var(--red-dark); }
.breakdown td, .breakdown th { border-color: var(--g15); }
.breakdown th { font: 700 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.q-figure img { filter: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ unit reader */
/* White paper: title, subtitle, and actions over a hairline, without the unit's photograph on the page (the PDF keeps
   it on its title page). */
.reader-hero { background: #fff; border-bottom: 1px solid var(--g15); }
.reader-hero img.bg, .reader-hero .credit { display: none; }
.reader-hero .wrap { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); max-width: var(--wrap); }
.reader-hero .wrap::before { content: ""; display: block; border-top: 1px solid var(--ink); margin-bottom: 32px; }
.reader-hero .wrap > * { max-width: 46em; }
.reader-hero .eyebrow { color: var(--g60); font-weight: 500; }
.reader-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.08; color: var(--ink); margin: 12px 0 14px; }
.reader-hero .sub { font: 400 20px/1.5 var(--sans); color: var(--g60); }
.reader { background: #fff; color: var(--ink); }
.toc { font-size: 16px; }
.toc .eyebrow { font: 700 16px/1.3 var(--sans); color: var(--ink); }
.toc a { border-left: 1px solid var(--g15); color: var(--g60); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--ink); }
.unit-text { font-size: 17.5px; line-height: 1.65; }
.unit-text h2 { font: 700 2rem/1.15 var(--sans); letter-spacing: -.01em; border-bottom: 1px solid var(--ink); padding-bottom: .3em; }
.unit-text h3 { font: 700 1.4rem/1.25 var(--sans); letter-spacing: -.005em; }
.unit-text h4 { font: 700 1.05rem/1.3 var(--sans); font-style: normal; }
.unit-text .secno { font: 400 .7em/1 var(--sans); color: var(--g60); vertical-align: .12em; letter-spacing: 0; }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--panel-2); }
.unit-text .fn, .unit-text figcaption { color: var(--g60); }
.unit-text figure img { border: 0; }
.unit-text table { border: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.unit-text th { border-bottom: 1px solid var(--ink); }
.box { background: #fff; border: 1px solid var(--ink); }
.box-kind { font: 700 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.box-title { font: 700 1.02rem/1.3 var(--sans); }
/* Box colours, the same as in the unit PDFs (theme/theme.tex): a strong tone for bars and rules, a light tint as ground.
   Red for the Key Result (the design's notation for a result that holds), black for theorems, grey for proofs. */
.box-keyequation { --bx: #e2001a; --bx-l: #fdeef0; }
.box-law, .box-laws { --bx: #000000; --bx-l: #f4f4f4; }
.box-derivation { --bx: #444444; --bx-l: #f4f4f4; }
.box-derivation .box-head { background: var(--bx-l); color: var(--bx); border-bottom: 1px solid var(--bx); }
.box-example { --bx: #1f7a3d; --bx-l: #eaf5ee; border: 0; border-top: 2px solid var(--bx); }
.box-excursion { --bx: #666666; --bx-l: #f4f4f4; border: 0; border-left: 2px solid var(--bx); }
.box-excursion .box-title { font-style: normal; }
.box-research { --bx: #1f2a44; --bx-l: #eef0f5; border: 1px solid var(--bx); }
.box-research .box-kind, .box-research .box-inst { color: #d6dbe8; }
.box-research .box-name { font: 700 1.45rem/1.15 var(--sans); letter-spacing: -.01em; }
.box-research .box-inst { font: 400 1rem/1.3 var(--sans); }
.box-keypoints { --bx: #8a6a1f; --bx-l: #faf4e6; border: 0; border-top: 2px solid var(--bx); border-bottom: 1px solid var(--bx); }
.box-keypoints .box-kind, .box-questions .box-kind { color: #8a6a1f; }
.box-check { --bx: #8e3b66; --bx-l: #f8eef3; }
.box-check .opt { border-radius: 0; }
.box-interactive { --bx: #2e6496; --bx-l: #eaf1f8; }
.ia-slider input[type=range] { accent-color: #2e6496; }
.ia-btn { border-radius: 0; }
.paperlink { border-top: 1px solid var(--g15); }
.paperlink span { font: 700 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.reader-end { background: var(--panel-2); color: var(--ink); border: 0; }
.reader-end h3, .reader-end h2 { font: 700 1.6rem/1.15 var(--sans); letter-spacing: -.01em; }
.reader-end div[style] { color: var(--g60) !important; }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%); }
.lit-list li { border-bottom: 1px solid var(--g15); }
.lit-list a.t { font: 700 1.2rem/1.3 var(--sans); letter-spacing: 0; }
.lit-list .m { color: var(--g60); }

/* ------------------------------------------------------- prose and pages */
.prose { font-size: 17.5px; line-height: 1.65; }
.prose h2 { font: 700 2rem/1.15 var(--sans); letter-spacing: -.01em; }
.prose h3 { font: 700 1.3rem/1.3 var(--sans); letter-spacing: 0; }
.prose blockquote { font: 400 1.25rem/1.5 var(--sans); border-left: 1.5px solid var(--ink); }
.legal-updated { font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.legal-box { background: #fff; border: 1px solid var(--ink); }
.prose th { font: 700 16px/1.3 var(--sans); letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--ink); }
.prose td { border-color: var(--g15); }
.stack-table tr { border-color: var(--g15); }
.stack-table td::before { font: 700 .85rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--g60); }
.resource { border-color: var(--g15); }
.resource:hover { background: var(--panel-2); }
.resource-name { font: 700 1.2rem/1.3 var(--sans); letter-spacing: 0; }
.resource p { color: var(--ink); }
.resource-host { color: var(--ink); font-weight: 500; }
.resource-note { color: var(--g60); }
.resource-note .icon { color: var(--ink); }
.eq-grid { gap: var(--gap); }
.eq-card { background: #fff; border: 1px solid var(--g15); }
.eq-card h4, .eq-card h3 { font: 700 1.02rem/1.3 var(--sans); }
.eq-card p { color: var(--g60); }
.eq-toc { border: 1px solid var(--g15); }
.eq-toc a span { font: 400 1rem/1 var(--sans); color: var(--g60); }
.pathway-map td, .pathway-map th { border-color: var(--g15); }
.aid-body > p { color: var(--ink); }
.aid-contact { color: var(--g60) !important; }
.aid-apply-aside { border-top: 1px solid var(--ink); color: var(--g60); }
.aid-apply-aside h3 { color: var(--ink); }
.aid-apply-aside a { color: var(--ink); }
.aid-form fieldset { background: #fff; border: 1px solid var(--g15); }
.aid-form legend { font: 700 1.5rem/1.2 var(--sans); letter-spacing: -.01em; }
.aid-form legend span { background: var(--ink); color: #fff; font: 700 .95rem/34px var(--sans); border-radius: 0; }
.aid-location { background: var(--panel-2); border: 0; }
.aid-location em { color: var(--g60); }
.aid-err { color: var(--red-dark); }
.aid-submit span, .aid-wrong summary { color: var(--g60); }
.geo-test-badge { box-shadow: none; border: 1px solid var(--ink); }

/* ----------------------------------------------------------------- cookie */
.cookie { background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; font-size: 16px; }
.cookie p { color: var(--ink); }

/* ----------------------------------------------------------------- motion */
/* The design moves once: the entry game is solved on load. Nothing drifts, nothing reveals on scroll. */
.reveal { opacity: 1; transform: none; transition: none; }
.marquee { animation: none; }

/* ================================================================ home page */
/* The landing page (theme/home.php): a 12-column grid with 24 px gutters; every section opens with a 1 px black rule
   across all columns, its title hangs in columns 1 to 3, the content runs from column 4 to 12. */
.qm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.qm-grid > :where(p, div, ul, ol, table, dl, figure, a) { grid-column: 4 / -1; }
.qm-sec { padding-bottom: 128px; }
.qm-sec > .qm-grid::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--ink); margin-bottom: 24px; }
.hang { grid-column: 1 / span 3; font: 700 34px/40px var(--sans); letter-spacing: -.01em; padding-right: 24px; margin: 0 0 48px; }
.hang-small { font-size: 20px; line-height: 28px; margin-bottom: 0; }
.qm-lead { font-size: 20px; line-height: 30px; }
.qm-grid p + p { margin-top: 16px; }
.qm-grid p { margin-bottom: 0; }

/* 1 Hero: text left, the entry game right, solved by backward induction on load */
.qm-hero .qm-grid { align-items: center; min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); padding: 56px 0 64px; }
@media (min-height: 1000px) { .qm-hero .qm-grid { min-height: 880px; } }
.qm-hero-t { grid-column: 1 / span 6; align-self: center; }
.qm-hero h1 { display: block; font-size: inherit; margin: 0; max-width: none; letter-spacing: 0; }
.qm-hero .hero-name { display: block; font: 500 20px/28px var(--sans); letter-spacing: 0; margin-bottom: 24px; color: var(--ink); }
.qm-hero .hero-head { display: block; font: 700 72px/76px var(--sans); letter-spacing: -.015em; max-width: 7em; }
.qm-hero-sub { font-size: 20px; line-height: 30px; max-width: 30em; margin: 32px 0 40px; }
.qm-ck { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--g60); font-size: 16px; }
.qm-hero-g { grid-column: 7 / -1; align-self: center; margin: 0; }
.gt { width: 100%; height: auto; overflow: visible; display: block; }
.gt text { font-size: 18px; fill: var(--ink); font-family: var(--sans); transition: fill .45s ease; }
.gt .who { font-weight: 700; }
.gt .pay { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gt .e { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; transition: stroke .45s ease, stroke-width .45s ease; }
.gt .n { fill: var(--ink); transition: fill .45s ease; }
.gt-tall { display: none; }
.bi.st1 .e-fight { stroke: var(--g60); stroke-dasharray: 3 6; }
.bi.st1 .a-fight, .bi.st1 .p-fight { fill: var(--g60); }
.bi.st2 .e-stay { stroke: var(--g60); stroke-dasharray: 3 6; }
.bi.st2 .a-stay, .bi.st2 .p-stay { fill: var(--g60); }
.bi.st3 .e-enter, .bi.st3 .e-acc { stroke: var(--red); stroke-width: 3; }
.bi.st3 .n { fill: var(--red); }
.bi.st3 .p-acc { fill: var(--red); font-weight: 700; }
.qm-hero-g figcaption { margin-top: 24px; padding-left: 24px; }
.bi-legend { font-size: 16px; color: var(--g60); margin: 0; }
.bi-steps { counter-reset: bi; margin: 16px 0 16px; padding: 0; list-style: none; border-top: 1px solid var(--g15); }
.bi-steps li { counter-increment: bi; display: grid; grid-template-columns: 32px 1fr; padding: 8px 0; border-bottom: 1px solid var(--g15); font-size: 17px; opacity: 0; transition: opacity .45s ease; }
.bi-steps li::before { content: counter(bi); font-weight: 700; }
.bi.st1 .s1, .bi.st2 .s2, .bi.st3 .s3 { opacity: 1; }
.bi-steps .s3 { color: var(--red); font-weight: 700; }

/* 2 Alumni: a static two-row logo grid in black */
.qm-alumni { padding: 40px 0 112px; }
.qm-alumni .hang { align-self: start; }
.qm-logos { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 40px 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.qm-logos img { height: 34px; width: 100%; object-fit: contain; object-position: left center; filter: grayscale(1) brightness(0); }

/* 3 About the program: paragraphs in columns 4 to 9, the three points as a ruled table in 10 to 12 */
.qm-intro-t { grid-column: 4 / span 6; }
.points { grid-column: 10 / -1; border-collapse: collapse; align-self: start; font-size: 16px; line-height: 24px; }
.points tr { display: block; border-top: 1px solid var(--g15); padding: 12px 0; }
.points tr:last-child { border-bottom: 1px solid var(--g15); }
.points th { display: block; text-align: left; font-weight: 700; padding: 0; }
.points td { display: block; padding: 0; }
.qm-intro-t .qm-acts { margin-top: 32px; }

/* 4 Curriculum: the sixteen units on one game tree with the three tier rings, then two plates */
.qm-cur-intro { grid-column: 4 / span 6; }
.ctree-wrap { display: contents; }
.ctree { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(19, minmax(0, 1fr)); margin: 72px 0 0; padding: 0 0 72px; list-style: none; }
.cu { position: relative; }
.cu::after { content: ""; position: absolute; left: 0; right: 0; top: 332px; border-top: 1.5px solid var(--ink); z-index: 0; }
.cu:first-child::after { left: 50%; }
.cu:last-child::after { right: 50%; }
.cu-btn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; text-decoration: none; }
.cu-label { display: block; height: 312px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: start; font-size: 16px; line-height: 20px; overflow: hidden; }
.cu-label b { font-weight: 700; margin-bottom: 8px; display: inline-block; font-variant-numeric: tabular-nums; }
.cu-btn:hover .cu-label { text-decoration: underline; text-underline-offset: 3px; }
.cu-node { display: block; flex: none; width: 10px; height: 10px; margin-top: 16px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; transition: background-color .15s; }
.cu-btn[aria-pressed="true"] .cu-node { background: var(--ink); }
.cu-btn[aria-pressed="true"] .cu-label { font-weight: 700; }
.ct .cu-btn { padding-top: 326px; }
.ct .cu-node { width: 14px; height: 14px; margin-top: 0; border: 2px solid var(--red); }
.ct .cu-btn[aria-pressed="true"] .cu-node { background: var(--red); }
.ct-label { position: absolute; top: 356px; left: calc(50% - 7px); white-space: nowrap; font-size: 16px; line-height: 24px; color: var(--g60); }
.ct-label b { display: block; color: var(--ink); font-weight: 700; }
.ct-last .ct-label { left: auto; right: calc(50% - 7px); text-align: right; }
.cu-btn:hover .ct-label b { text-decoration: underline; text-underline-offset: 3px; }
.ctree-cap { grid-column: 4 / span 7; margin: 24px 0 0; min-height: 90px; font-size: 20px; line-height: 30px; border-top: 1px solid var(--g15); padding-top: 16px; }
.ctree-cap b { font-weight: 700; }
.ctree-cap a { font-weight: 500; }
.ctree-more { grid-column: 4 / -1; margin: 8px 0 0; font-size: 16px; }
.plates { display: contents; }
.plate { margin: 96px 0 0; }
.plate img { width: 100%; height: 424px; object-fit: cover; filter: grayscale(1); }
.plate figcaption { margin-top: 12px; font-size: 16px; line-height: 24px; max-width: 40em; }
.plate .credit { display: block; color: var(--g60); }
.plate-vn { grid-column: 4 / span 3; }
.plate-vn img { object-position: center 20%; }
.plate-ex { grid-column: 7 / -1; }

/* 5 Who is this program for? Three columns with Grey 15 vertical rules; the check lists level (owner's rule) */
.qm-aud { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qm-aud-col { padding: 0 24px; border-left: 1px solid var(--g15); display: flex; flex-direction: column; }
.qm-aud-col:first-child { padding-left: 0; border-left: 0; }
.qm-aud-col h3 { font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.qm-aud-col p { margin: 0; flex: 1; }
.facts { margin: 24px 0 0; padding: 0; list-style: none; font-size: 16px; }
.facts li { border-top: 1px solid var(--g15); padding: 8px 0; }

/* 6 How does it work? Six numbered steps in two columns */
.qm-steps { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 40px var(--gap); margin: 0; padding: 0; list-style: none; }
.qm-steps li { display: grid; grid-template-columns: 72px 1fr; max-width: 34em; }
.step-n { font: 700 34px/28px var(--sans); font-variant-numeric: tabular-nums; }
.qm-steps h3 { font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.qm-steps p { margin: 0; }

/* 7 Research: the engine's cards, 4 by 2, portraits 3:4 */
.qm-res-intro { grid-column: 4 / span 6; }
.qm-research .researchers { grid-column: 4 / -1; margin-top: 48px; }
.qm-research .disclaimer { grid-column: 4 / span 7; }
.qm-research .qm-after { grid-column: 4 / -1; }

/* 8 Tuition Fee: the engine's three cards as the design's comparison columns */
.qm-fee-intro { grid-column: 4 / span 6; }
.qm-tuition .packages { grid-column: 4 / -1; margin-top: 48px; }
.qm-tuition .fee-footnote { grid-column: 4 / span 7; }
.qm-tuition .aid-note { grid-column: 4 / -1; margin-top: 48px; }

/* 9 Certificate: the sample (or a typeset mock before the sample exists) and the three points as a table */
.cert-mock { grid-column: 4 / span 5; aspect-ratio: 1.414 / 1; border: 1px solid var(--ink); padding: 28px 32px 24px; display: flex; flex-direction: column; align-self: start; background: #fff; }
.cert-mock.is-image { padding: 0; aspect-ratio: auto; border: 1px solid var(--ink); }
.cert-mock img { width: 100%; height: auto; display: block; }
.cm-head { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.cm-year { font-weight: 400; color: var(--g60); }
.cm-kind { font-size: 26px; line-height: 32px; font-weight: 700; margin: 24px 0 0; }
.cm-small { font-size: 16px; line-height: 24px; color: var(--g60); margin: 0 !important; }
.cm-name { font-size: 34px; line-height: 44px; font-weight: 500; margin: 4px 0 !important; border-bottom: 1px solid var(--g15); }
.cm-tier { font-size: 20px; line-height: 28px; font-weight: 700; margin: 0 !important; }
.cm-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-size: 16px; font-variant-numeric: tabular-nums lining-nums; }
.cm-lbl { color: var(--g60); margin-right: 8px; }
.cm-tree { width: 64px; height: 44px; }
.cm-tree line { stroke-width: 1.5; }
.cm-tree .cm-g { stroke: var(--g60); stroke-dasharray: 2 3; }
.cm-tree .cm-r { stroke: var(--red); stroke-width: 2; }
.cm-tree circle { fill: var(--red); }
.cert-text { grid-column: 9 / -1; padding-left: 24px; }
.cert-text p { margin: 0; }
.points-cert { margin: 24px 0 32px; width: 100%; }

/* 10 Sample unit: three typeset page previews (the built page images once the unit exists), the summary, the questions */
.pages { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); text-decoration: none; margin-bottom: 56px; color: var(--ink); }
.pg { container-type: inline-size; display: block; aspect-ratio: 1 / 1.414; border: 1px solid var(--ink); overflow: hidden; background: #fff; transition: border-color .15s; }
.pg img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pg-in { display: flex; flex-direction: column; height: 100%; padding: 8cqw 8cqw 6cqw; }
.pages:hover .pg { border-color: var(--red); }
.pg-run { display: block; font-size: 2.6cqw; line-height: 1.4; color: var(--g60); border-bottom: 1px solid var(--g15); padding-bottom: 1.5cqw; margin-bottom: 5cqw; }
.pg-unit { display: block; font-size: 4cqw; color: var(--g60); margin-top: 4cqw; }
.pg-title { display: block; font-size: 7.4cqw; line-height: 1.12; font-weight: 700; margin-top: 1.5cqw; }
.pg-sub { display: block; font-size: 3.4cqw; line-height: 1.3; color: var(--g60); margin-top: 2cqw; font-style: italic; }
.pg-rule { display: block; width: 20%; border-top: 2px solid var(--ink); margin: 5cqw 0 4cqw; }
.pg-h { display: block; font-size: 4cqw; line-height: 1.3; font-weight: 700; margin: 3cqw 0 1.5cqw; }
.pg-text { display: block; font-size: 2.9cqw; line-height: 1.5; hyphens: auto; }
.pg-text + .pg-text { margin-top: 1.5cqw; }
.pg-def { display: block; font-size: 2.9cqw; line-height: 1.5; margin: 3cqw 0; padding: 2.5cqw 0 2.5cqw 4cqw; border-left: 2px solid var(--ink); }
.pg-list { margin: 1cqw 0 0; padding: 0; list-style: none; counter-reset: pq; }
.pg-list li { counter-increment: pq; display: grid; grid-template-columns: 5cqw 1fr; font-size: 2.9cqw; line-height: 1.5; padding: 1.5cqw 0; border-top: 1px solid var(--g15); }
.pg-list li::before { content: counter(pq); font-weight: 700; }
.pg-matrix { width: 100%; border-collapse: collapse; margin: 3cqw 0 1cqw; font-size: 2.9cqw; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pg-matrix th, .pg-matrix td { border: 1px solid var(--ink); padding: 1.6cqw 2cqw; text-align: center; font-weight: 400; }
.pg-matrix th { border: 0; color: var(--g60); }
.pg-matrix td.eq { background: #fdeef0; color: var(--red); font-weight: 700; }
.pg-cap { display: block; font-size: 2.5cqw; line-height: 1.4; color: var(--g60); margin-top: 1cqw; }
.pg-box { display: block; font-size: 2.9cqw; line-height: 1.5; margin: 4cqw 0 3cqw; padding: 3cqw; border: 1px solid var(--g15); }
.pg-box b { display: block; margin-bottom: 1cqw; }
.pg-num { display: block; margin-top: auto; font-size: 2.6cqw; color: var(--g60); text-align: right; padding-top: 3cqw; }
.sample-text { grid-column: 4 / span 5; }
.sample-text h3 { font-size: 26px; line-height: 32px; margin: 0; }
.sample-meta { font-size: 16px; color: var(--g60); margin: 8px 0 16px !important; }
.first-par { font-size: 20px; line-height: 30px; margin: 24px 0 32px !important; }
.sample-note { font-size: 16px; color: var(--g60); margin: 16px 0 24px !important; }
.sample-q { grid-column: 9 / -1; padding-left: 24px; }
.sample-q h3 { font-size: 20px; line-height: 28px; margin: 0 0 12px; }
.qlist { counter-reset: q; margin: 0; padding: 0; list-style: none; }
.qlist li { counter-increment: q; display: grid; grid-template-columns: 32px 1fr; border-top: 1px solid var(--g15); padding: 12px 0; }
.qlist li:last-child { border-bottom: 1px solid var(--g15); }
.qlist li::before { content: counter(q); font-weight: 700; }

/* 11 Participants: the figures in one row, the testimonials, the three community features */
.qm-part-intro { grid-column: 4 / span 6; }
.figures { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 48px 0 0; }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--ink); padding-top: 16px; }
.figures dd { font-size: 44px; line-height: 48px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.figures dt { font-size: 16px; color: var(--g60); margin-top: 4px; }
.sub-hang { grid-column: 1 / span 3; font-size: 20px; line-height: 28px; font-weight: 700; margin: 96px 0 0; padding-right: 24px; }
.quotes, .qm-features { grid-column: 4 / -1; margin: 96px 0 0; padding: 0; list-style: none; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--gap); }
.quotes li { display: flex; flex-direction: column; border-top: 1px solid var(--g15); padding-top: 16px; }
.quotes blockquote { margin: 0; order: 0; }
.quotes blockquote p { margin: 0; }
.q-who { display: contents; }
.q-ini { order: -1; font-size: 26px; line-height: 32px; font-weight: 700; margin-bottom: 12px; }
.q-who span:not(.q-ini) { order: 1; font-size: 16px; line-height: 24px; color: var(--g60); }
.q-who span:nth-child(2) { margin-top: 16px; }
.qm-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.qm-features li { border-top: 1px solid var(--g15); padding-top: 16px; }
.qm-features li:first-child { border-top-color: var(--ink); }
.qm-features h4 { font-size: 20px; line-height: 28px; margin: 0 0 8px; }
.qm-features p { margin: 0; }
.qm-after { grid-column: 4 / -1; margin: 40px 0 0; }

/* 12 Blog: three posts as a list, no images */
.qm-posts { grid-column: 4 / -1; margin: 0; padding: 0; list-style: none; }
.qm-posts li { display: grid; grid-template-columns: 2fr 7fr; gap: var(--gap); border-top: 1px solid var(--g15); padding: 24px 0; }
.qm-posts li:last-child { border-bottom: 1px solid var(--g15); }
.qm-posts li:first-child { border-top: 0; padding-top: 0; }
.qm-post-meta { font-size: 16px; line-height: 24px; margin: 0; color: var(--g60); }
.qm-post-body h3 { font-size: 26px; line-height: 32px; margin: 0 0 8px; }
.qm-post-body h3 a { text-decoration: none; }
.qm-post-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.qm-post-body p { max-width: 40em; margin: 0; }
.more { margin: 24px 0 0; }

/* 13 FAQ: the engine's disclosures in columns 4 to 11 */
.qm-faqs { grid-column: 4 / span 8; }
.qm-faqs .faq { border-top: 0; }
.qm-faqs .faq details:first-child summary { padding-top: 4px; }

/* 14 Newsletter: one row between two black rules */
.qm-nl { padding-bottom: 128px; }
.nl-row { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 32px 0; align-items: end; }
.nl-row .hang { align-self: start; }
.nl-text { grid-column: 4 / span 4; align-self: start; margin: 0; }
.nl-form { grid-column: 8 / -1; padding-left: 24px; }
.nl-form .nl-label { display: block; font-size: 16px; color: var(--g60); margin-bottom: 8px; }
.nl-form .newsletter-form { display: flex; }

/* 15 Final call to action with the solved tree */
.qm-final { padding-bottom: 128px; }
.qm-final .qm-grid { align-items: center; }
.final-text { grid-column: 1 / span 7; }
.qm-final h2 { font-size: 72px; line-height: 76px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 40px; max-width: 9em; }
.final-tree { grid-column: 9 / -1; width: 100%; }
.final-tree line.off { stroke: var(--g60); stroke-dasharray: 3 6; }
.final-tree text.off { fill: var(--g60); }
.final-tree line.on { stroke: var(--red); stroke-width: 3.5; }
.final-tree circle.on { fill: var(--red); stroke: none; }
.final-tree text.on { fill: var(--red); font-weight: 700; }
.final-tree .pay { font-size: 28px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav-top { padding: 12px 8px; }
  .header-inner { gap: 24px; }
  .ctree { display: block; margin-top: 48px; padding-bottom: 0; grid-column: 4 / -1; }
  .cu::after { left: 4.25px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px solid var(--ink); }
  .cu:first-child::after { left: 4.25px; top: 20px; }
  .cu:last-child::after { right: auto; bottom: auto; height: 28px; }
  .cu-btn { flex-direction: row; align-items: flex-start; gap: 24px; padding: 8px 0; }
  .cu-label { display: grid; grid-template-columns: 36px 1fr; writing-mode: horizontal-tb; transform: none; height: auto; order: 2; font-size: 17px; line-height: 24px; }
  .cu-label b { margin: 0; }
  .cu-node { order: 1; margin-top: 7px; }
  .ct .cu-btn { padding-top: 16px; padding-bottom: 16px; }
  .ct .cu-node { margin: 5px -2px 0; }
  .ct-label, .ct-last .ct-label { position: static; order: 2; text-align: left; }
  .ct-label b { display: inline; margin-right: 8px; }
  .ctree-cap { grid-column: 4 / -1; }
  .cu .ctree-cap { margin: 0 0 16px 70px; min-height: 0; font-size: 17px; line-height: 26px; }
  .package, .light .package { padding: 0 16px 8px; }
  .package:first-child { padding-left: 0; }
}
@media (max-width: 1100px) {
  .qm-hero .qm-grid { min-height: 0; padding: 48px 0 72px; row-gap: 56px; }
  .qm-hero-t, .qm-hero-g { grid-column: 1 / -1; }
  .qm-hero-g { max-width: 680px; }
  .qm-hero-g figcaption { padding-left: 0; }
  .qm-grid > *, .ctree-cap, .ctree-more, .plate-vn, .plate-ex, .qm-intro-t, .points, .qm-cur-intro, .qm-aud, .qm-steps, .qm-res-intro, .qm-fee-intro, .cert-mock, .cert-text, .pages, .sample-text, .sample-q, .qm-part-intro, .figures, .quotes, .qm-features, .qm-posts, .qm-faqs, .nl-text, .nl-form, .final-text, .final-tree, .qm-research .researchers, .qm-research .disclaimer, .qm-tuition .packages, .qm-tuition .fee-footnote, .qm-tuition .aid-note, .qm-after, .qm-logos { grid-column: 1 / -1; }
  .hang { padding-right: 0; margin-bottom: 32px; }
  .sub-hang { margin-bottom: 24px; }
  .qm-alumni .hang { margin-bottom: 24px; }
  .ctree { grid-column: 1 / -1; }
  .points { margin-top: 32px; }
  .cert-text, .sample-q, .nl-form { padding-left: 0; }
  .cert-mock { max-width: 560px; margin-bottom: 40px; }
  .sample-q { margin-top: 40px; }
  .quotes, .qm-features { margin-top: 0; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-text { margin: 0 0 24px; }
  .plate { margin-top: 56px; }
  .plate img { height: auto; aspect-ratio: 3 / 2; }
  .plate-vn img { aspect-ratio: 3 / 4; max-width: 240px; }
  .final-tree { max-width: 420px; margin-top: 40px; }
  .qm-tuition .packages { margin-top: 0; }
}
@media (max-width: 860px) {
  .researchers, .qm-research .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The program page's nine steps: one column on narrow screens (the theme's three-column rule above would otherwise
     outrank the engine's phone rule, since this file loads after engine/css/site.css). QA fix 2026-11-28. */
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wordmark { font-size: 18px; }
  .qm-hero .hero-head { font-size: 44px; line-height: 48px; }
  .qm-hero-sub { font-size: 18px; line-height: 27px; margin: 24px 0 32px; }
  .gt-wide { display: none; }
  .gt-tall { display: block; }
  .gt text { font-size: 17px; }
  .gt .pay { font-size: 19px; }
  .hang { font-size: 26px; line-height: 32px; }
  .hang-small { font-size: 20px; }
  .qm-sec, .qm-alumni, .qm-nl, .qm-final { padding-bottom: 88px; }
  .qm-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
  .qm-logos img { height: 28px; }
  .qm-aud { grid-template-columns: 1fr; gap: 32px; }
  .qm-aud-col, .qm-aud-col:first-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--g15); }
  .qm-aud-col:first-child { border-top: 0; padding-top: 0; }
  .qm-steps { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 32px; }
  .qm-steps li { grid-template-columns: 48px 1fr; }
  .researchers, .qm-research .researchers { gap: 40px 16px; }
  .researcher h3 { font-size: 18px; line-height: 24px; }
  .cert-mock { padding: 16px 18px 14px; }
  .cert-mock.is-image { padding: 0; }
  .cm-kind { font-size: 20px; line-height: 26px; margin-top: 12px; }
  .cm-name { font-size: 24px; line-height: 32px; }
  .cm-tier { font-size: 16px; line-height: 22px; }
  .cm-small, .cm-head, .cm-foot { font-size: 13px; line-height: 18px; }
  .cm-tree { width: 44px; height: 30px; }
  .pages { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 40px; padding-bottom: 8px; }
  .pg { flex: 0 0 74%; scroll-snap-align: start; }
  .final-tree .pay { font-size: 40px; }
  .final-tree { max-width: 320px; }
  .first-par { font-size: 18px; line-height: 28px; }
  .figures { grid-template-columns: 1fr; }
  .figures dd { font-size: 34px; line-height: 40px; }
  .figures dt { font-size: 15px; line-height: 21px; }
  .quotes, .qm-features { grid-template-columns: 1fr; gap: 32px; }
  .qm-posts li { grid-template-columns: 1fr; gap: 8px; }
  .qm-post-body h3 { font-size: 22px; line-height: 28px; }
  .faq summary { font-size: 18px; line-height: 26px; }
  .faq-a, .light .faq-a { padding-right: 0; }
  .qm-final h2 { font-size: 44px; line-height: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .newsletter-form, .nl-form .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input[type=email] { border-right: 1.5px solid var(--ink); }
  .stats { grid-template-columns: 1fr; }
  .stats div { padding-top: 16px; }
}
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .qm-acts .btn, .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .bi-steps li { opacity: 1; }
}
