/* ST Masterclass theme "Overtone Manifold, LaTeX Type" (design option 11): overrides of the engine styles
   (assets/theme/site.css). Loaded after engine/css/site.css and tokens.css.

   The engine is designed with a black ground, warm paper sections, Cormorant headings, and uppercase mono labels.
   This design is a physics chart printed on white: Chart White page, Paper Tint bands with Fog hairlines, Latin Modern
   Roman titles and text as in a well-set LaTeX document, Commissioner for the interface, square corners, no uppercase
   labels, and the seven overtone hues only on lines, washes, dots, and rings. The first half redraws the engine's
   shared parts (header, buttons, page heroes, cards, tables, forms, the unit reader, the account); the second half
   styles the landing page (theme/home.php) and the drawings it inlines from theme/svg. */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 18px/1.62 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.06; letter-spacing: 0; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font: 700 18px/1.3 var(--text); letter-spacing: 0; }
b, strong { font-weight: 700; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--n5); }
::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(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gut)); }
.skip { background: var(--ink); color: #fff; border-radius: 2px; }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 500 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.lead, .light .lead { font-size: 20px; line-height: 1.55; color: #2d3247; max-width: 38em; }
.credit, .credit a { font: 400 13.5px/1.45 var(--text); letter-spacing: 0; color: var(--slate); }
.link-arrow { font: 500 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; border-bottom: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--slate); text-underline-offset: .3em; gap: .4em; }
.link-arrow:hover { opacity: 1; text-decoration-color: var(--n5); }
.link-arrow .icon { width: 1em; height: 1em; }
.prose a:not(.btn), .unit-text a:not(.btn), .faq-a a, .lead a, .notice a:not(.btn), .auth-card p a, .field .hint a, .kv a, .legal-box a, .aid-body a:not(.btn), .panel p a:not(.btn), .form p a, .fee-footnote a, .disclaimer a, .aid-contact a, .aid-apply-aside a, .split-body p a, .section-head p a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover, .faq-a a:hover { text-decoration-color: var(--n5); }
.rule, .light .rule { border-color: var(--fog); }
.icon { stroke-width: 1.4; }

/* ---------------------------------------------------------------- buttons */
.btn { min-height: 48px; padding: 10px 24px; border: 1.5px solid var(--ink); border-radius: 2px; font: 500 16px/1.25 var(--sans); letter-spacing: .01em; gap: 10px; transition: background-color .15s, color .15s, border-color .15s; }
.btn-light, .btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light:hover, .btn-dark:hover { background: #343a52; border-color: #343a52; color: #fff; }
.btn-ghost, .btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover, .btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 6px 18px; font-size: 15px; }
.btn-block { padding: 10px 16px; }
.btn .icon { width: 18px; height: 18px; }
.btn-text { font: 500 16px/1.4 var(--sans); text-decoration: underline; text-decoration-color: var(--slate); text-underline-offset: .3em; padding: 10px 2px; }
.btn-text:hover { text-decoration-color: var(--n5); }
.link-button { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.after { margin: 48px 0 0; }

/* ----------------------------------------------------------------- header */
.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: rgba(252, 252, 254, .94); border-bottom: 1px solid var(--fog); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { max-width: calc(var(--wrap) + 2 * var(--gut)); gap: 24px; }
.logo { height: 50px; width: auto; }
.nav { gap: 4px; margin-left: auto; }
.nav-top { display: flex; align-items: center; gap: 7px; font: 500 15.5px/1 var(--sans); color: var(--ink); padding: 10px 12px; letter-spacing: 0; border-radius: 2px; }
.nav-top::after { width: 6px; height: 6px; border-color: currentColor; border-width: 1.4px; margin-left: 0; opacity: 1; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-group:hover .nav-top::after, .nav-group.is-open .nav-top::after, .nav-group:focus-within .nav-top::after { transform: translateY(1px) rotate(225deg); }
.nav-menu { top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid var(--fog); border-top: 2px solid var(--ink); padding: 8px 0; box-shadow: 0 14px 30px -18px rgba(30, 34, 51, .35); transform: none; }
.nav-menu a { padding: 8px 18px; font: 400 16px/1.4 var(--text); color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--tint); color: var(--ink); outline-offset: -3px; }
.header-cta { gap: 18px; }
.nav-login { font: 500 15.5px/1 var(--sans); color: var(--ink); }
.nav-login:hover { text-decoration: none; color: var(--slate); }
.burger { display: none; width: auto; height: 42px; min-width: 42px; border: 1.5px solid var(--ink); border-radius: 2px; padding: 0 14px; align-items: center; gap: 10px; font: 500 15px/1 var(--sans); color: var(--ink); background: none; }
.burger span { position: static; display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { margin-bottom: 4px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.burger b { font-weight: 500; }
.burger .lines { display: flex; flex-direction: column; justify-content: center; }
.mobile-menu { background: var(--white); border-top: 1px solid var(--fog); padding: 8px 0 48px; }
.mm-group { border-color: var(--fog); padding: 14px 0; }
.mm-group .eyebrow { font: 500 18px/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; }
.mm-group a { font: 400 17px/1.4 var(--text); padding: 7px 12px; color: var(--ink); }
.mm-cta { grid-template-columns: 1fr; max-width: 420px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.light { background: var(--tint); color: var(--ink); border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); }
.section.light + .section.light { border-top: 0; }
.section.tight { padding: clamp(48px, 6vw, 84px) 0; }
.section-head { gap: 18px; margin-bottom: clamp(36px, 4vw, 56px); max-width: 46em; }
.section-head p, .light .section-head p { font-size: 19px; color: var(--slate); max-width: 38em; }
.flash { background: var(--tint); border-bottom: 1px solid var(--fog); color: var(--ink); font-family: var(--sans); }
.flash-error { background: #fbe9ec; border-color: #f0b9c2; }

/* -------------------------------------------------------------- page hero */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--fog); background: var(--white); }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 14px 0 20px; max-width: 14em; }
.page-hero .lead { color: #2d3247; }
/* A photograph behind the band is shown as a pale wash under the dark text, not darkened under white text. */
.page-hero.has-img::before { filter: none; opacity: .22; }
.page-hero.has-img::after { background: linear-gradient(90deg, rgba(252, 252, 254, .96) 0%, rgba(252, 252, 254, .78) 55%, rgba(252, 252, 254, .55) 100%); }
/* A typeset figure of the theme in the band: text left, drawing right. */
.page-hero.has-figure .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.page-hero.has-figure .eyebrow { grid-column: 1; }
.page-hero.has-figure h1 { grid-column: 1; }
.page-hero.has-figure .lead { grid-column: 1; }
.page-hero.has-figure .page-hero-figure { grid-column: 2; grid-row: 1 / span 3; }
.page-hero-figure svg, .page-hero-figure img { width: 100%; height: auto; }
.page-hero-figure figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }

/* ------------------------------------------------------- split, checks, cards */
.split { gap: clamp(40px, 6vw, 96px); }
.split-body h2 { margin-bottom: 22px; }
.split-body p, .light .split-body p { color: var(--ink); font-size: 18px; }
.split-body .eyebrow + h2 { margin-top: 10px; }
.split-media img { aspect-ratio: auto; }
.split-media .credit { position: static; display: block; margin-top: 8px; }
.split-media figure { margin: 0; }
.checks { gap: 14px; margin: 26px 0 32px; }
.checks li { grid-template-columns: 24px 1fr; gap: 10px; line-height: 1.55; }
.checks .icon, .light .checks .icon { color: var(--n4); width: 20px; height: 20px; stroke-width: 2; margin-top: 3px; }
.cards-3 { border: 0; gap: 0; }
.aud, .aud:last-child { background: transparent; border: 0; border-left: 1px solid var(--rule); padding: 0 clamp(20px, 3vw, 40px); color: inherit; }
.aud:first-child { padding-left: 0; border-left: 0; }
.aud:hover { background: transparent; color: inherit; }
.aud:hover p, .aud:hover li, .aud:hover .eyebrow { color: inherit; }
.aud .icon, .aud:hover .icon { color: var(--ink); }
.aud h3 { font-size: 22px; margin-bottom: 14px; }
.aud p { color: var(--ink); font-size: 18px; flex: 1; }
.aud ul { border-top: 0; padding-top: 0; margin-top: 18px; gap: 8px; font: 500 15px/1.45 var(--sans); color: var(--ink); }
.aud li { align-items: flex-start; white-space: normal; gap: 9px; }
.aud li .icon, .aud:hover li .icon { width: 16px; height: 16px; color: var(--n4); stroke-width: 1.8; margin-top: 3px; }

/* The steps: a hue bar over each (the six antinodes on the landing page, the nine steps of the program page). */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; background: none; border: 0; }
.step { background: transparent; padding: 18px 0 0; border-top: 2px solid var(--hue, var(--ink)); }
.step:nth-child(7n+1) { --hue: var(--n1); }
.step:nth-child(7n+2) { --hue: var(--n2); }
.step:nth-child(7n+3) { --hue: var(--n3); }
.step:nth-child(7n+4) { --hue: var(--n4); }
.step:nth-child(7n+5) { --hue: var(--n5); }
.step:nth-child(7n+6) { --hue: var(--n6); }
.step:nth-child(7n+7) { --hue: var(--n7); }
.step-no { display: flex; align-items: center; margin-bottom: 12px; }
.step .icon { display: none; }
.step-num b { display: inline; width: auto; height: auto; border-radius: 0; background: none; color: var(--slate); font: 500 15px/1 var(--sans); }
.step-num b::before { content: "Step\00a0"; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: #33384c; font-size: 16.5px; line-height: 1.55; }
.week { border-color: var(--fog); margin-top: 48px; }
.week > div { border-color: var(--fog); }
.week .d { font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.week b { font: 400 19px/1.25 var(--serif); }
.week span { color: #33384c; font-family: var(--text); }
.week .on { background: var(--tint); }
.features { gap: 28px clamp(28px, 4vw, 56px); }
.feature { border-top: 2px solid var(--ink); padding-top: 18px; }
.feature:nth-child(3n+1) { border-color: var(--n5); }
.feature:nth-child(3n+2) { border-color: var(--n4); }
.feature:nth-child(3n+3) { border-color: var(--n2); }
.feature .icon, .light .feature .icon { display: none; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p, .light .feature p { color: var(--ink); font-size: 17px; }
.stats { border: 0; margin: 34px 0 48px; gap: 0; display: grid; grid-template-columns: 1fr; }
.stats div { display: grid; grid-template-columns: minmax(150px, auto) 1fr; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.stats div:last-child { border-bottom: 1px solid var(--rule); }
.stats b { font: 400 52px/1 var(--text); letter-spacing: -.01em; color: var(--ink); margin: 0; }
.stats span { font: 400 17px/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--slate); }
.cert-shot img, .light .cert-shot img { border: 1px solid #cfd3de; box-shadow: 10px 10px 0 var(--tint), 10px 10px 0 1px var(--fog); }
.kv { font-size: 17px; }
.kv dt { font: 500 15px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.notice { border-left: 3px solid var(--n5); background: var(--tint); color: var(--ink); }
.notice.warn { border-color: var(--bad); }
.notice.important { background: #fdf0e6; border-color: #f0b48f; border-left: 4px solid var(--n2); color: #5a2410; }
.contact-faq { background: #fff; border-color: var(--fog); }
.contact-faq h3 { font: 400 22px/1.25 var(--serif); }
.contact-faq p { color: var(--slate); }
.disclaimer, .section:not(.light) .disclaimer { margin-top: 32px; padding: 0; border: 0; font-size: 15px; color: var(--slate); max-width: 52em; }

/* -------------------------------------------------------- curriculum, resources */
.unit-group-head { border-bottom: 1px solid var(--ink); }
.unit-group-head h3, h2.h3-look { font-size: clamp(26px, 2.6vw, 34px); }
.unit-row { border-color: var(--fog); }
a.unit-row:hover, .unit-row:target { background: #fff; box-shadow: -14px 0 0 #fff, 14px 0 0 #fff; }
.unit-row:target { box-shadow: -14px 0 0 #fff, 14px 0 0 #fff, -17px 0 0 var(--n5); }
.unit-row .no { font: 500 14px/1.4 var(--sans); letter-spacing: .02em; color: var(--slate); white-space: nowrap; }
.unit-row[style*="align-items:start"] .no { height: 1.4rem; padding-top: 0; }
.unit-row h4, .unit-row h3 { font-size: 22px; line-height: 1.25; }
.unit-row p { color: var(--ink); font-size: 16.5px; }
.unit-row p em { color: var(--slate); }
.unit-row .pk { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.topic-badges li { font: 500 13px/1.3 var(--sans); color: var(--slate); border-color: var(--rule); background: #fff; border-radius: 2px; }
.spot-box { background: #fff; border-color: var(--fog); border-left: 3px solid var(--n5); }
.spot-label { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.spot { color: var(--ink); }
.spot span { color: var(--slate); font-family: var(--text); }
.spot b { color: var(--ink); font: 500 15.5px/1.3 var(--sans); }
.spot .avatar-mono { background: var(--tint); color: var(--ink); border-color: var(--rule); font: 500 14px/1 var(--sans); }
.sample-cta { background: var(--ink); color: #fff; border-radius: 2px; }
.sample-cta:hover { background: #343a52; }
.sample-cta .icon { color: #fff; }
.sample-cta span { color: #c9ccd8; font-family: var(--sans); }
.sample-cta b { color: #fff; }
.unit-more, .sample-pdf { color: var(--slate); font-family: var(--sans); }
.unit-more:hover, .sample-pdf:hover { color: var(--ink); }
.unit-pager { border-color: var(--rule); }
.unit-pager a { font-family: var(--serif); font-size: 19px; }
.unit-pager a span { font: 500 14px/1.8 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.learn-card { background: #fff; border-color: var(--fog); }
.learn-card:hover { border-color: var(--ink); }
.learn-body p { color: var(--ink); }
.learn-units { color: var(--slate); border-color: var(--fog); }
.resource { border-color: var(--fog); }
.resource:hover { background: #fff; }
.resource-name { font: 400 21px/1.25 var(--serif); color: var(--ink); }
.resource p { color: var(--ink); }
.resource-host { color: var(--slate); font-family: var(--sans); }
.resource-note { color: var(--slate); }
.resource-note .icon { color: var(--n5); }
.eq-grid { gap: 20px; }
.eq-card { background: #fff; border-color: var(--fog); }
.eq-card h4, .eq-card h3 { font: 500 16px/1.3 var(--sans); color: var(--ink); }
.eq-card p { color: var(--slate); }
.eq-toc { border-color: var(--fog); background: #fff; }
.eq-toc a span { font: 400 15px/1 var(--text); color: var(--slate); }
.pathway-map td, .pathway-map th { border-color: var(--fog); }
.topic-links a, .section:not(.light) .topic-links a { border-color: var(--rule); border-radius: 2px; color: var(--ink); font-family: var(--sans); }
.topic-links a:hover { border-color: var(--ink); }

/* ------------------------------------------------------------ researchers */
/* The design's research list: a round colour portrait beside the text, two columns of rows with Fog rules. */
.researchers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); border-top: 1px solid var(--fog); }
.researcher { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--fog); height: auto; }
.avatar { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; filter: none; background: var(--fog); }
.avatar-mono { font: 500 28px/1 var(--sans); color: var(--ink); border: 0; letter-spacing: 0; }
.researcher-body { border-top: 0; padding-top: 0; margin-top: 0; }
.researcher h3 { font-size: 21px; margin-bottom: 4px; }
.researcher-inst { font: 400 15.5px/1.45 var(--text); color: var(--slate); margin-bottom: 8px; }
.researcher p { font-size: 17px; line-height: 1.55; color: var(--ink); margin-bottom: 8px; }
.researcher-body .eyebrow { margin-top: 0; padding-top: 0; font-size: 14.5px; }
.researcher:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--n5); }

/* --------------------------------------------------------------- packages */
/* The tiers of the design: three columns parted by a rule, the middle one framed in ink with its flag as a bar
   across the top. The flag is in the flow on every card (the engine prints an invisible placeholder on the other
   two), so the titles, week lines, and fees stay level; the Enrol button keeps the engine's place under the fee. */
.packages { gap: 0; align-items: stretch; }
.package { display: flex; flex-direction: column; background: transparent; border: 1.5px solid transparent; border-left: 1px solid var(--rule); padding: 0 clamp(20px, 2.6vw, 38px) 36px; }
.package:first-child { border-left-color: transparent; }
.package.is-featured { background: #fff; border: 1.5px solid var(--ink); }
.package.is-featured + .package { border-left-color: transparent; }
.package-flag { order: -1; position: static; display: block; margin: 0 calc(-1 * clamp(20px, 2.6vw, 38px)) 26px; background: var(--ink); color: #fff; font: 500 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; padding: 5px clamp(20px, 2.6vw, 38px); }
.package.is-featured .package-flag { margin-left: calc(-1 * clamp(20px, 2.6vw, 38px) - 1.5px); margin-right: calc(-1 * clamp(20px, 2.6vw, 38px) - 1.5px); }
.package-flag.is-placeholder { visibility: hidden; }
/* The string of each masterclass: one lobe per unit, tinted by its part of the curriculum (theme svg tier-N). */
.package::before { content: ""; display: block; order: 0; height: 52px; margin: 0 0 22px; background: url("../img/home/tier-1.svg") left center / contain no-repeat; }
.package:nth-child(2)::before { background-image: url("../img/home/tier-2.svg"); }
.package:nth-child(3)::before { background-image: url("../img/home/tier-3.svg"); }
.package > .eyebrow:not(.package-units-label) { order: 2; font: 500 15px/1.4 var(--sans); color: var(--slate); margin: 6px 0 16px; }
.package h2, .package h3 { order: 1; font-size: 26px; line-height: 1.2; min-height: 2.4em; margin: 0; align-items: flex-end; }
.package-note { order: 3; color: var(--ink); font-size: 16.5px; line-height: 1.55; min-height: 5.2em; margin: 0 0 6px; }
.fee { order: 4; border-top: 0; padding-top: 0; margin: 10px 0 16px; gap: 4px 14px; }
.fee-label { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); margin-bottom: 2px; }
.fee-now { font: 200 56px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.fee-cents { font-size: .5em; }
.fee-was { font: 500 17px/1 var(--sans); color: var(--slate); text-decoration-thickness: 1.5px; }
.package > .btn { order: 4; margin: 0 0 18px; }
.fee-aid { order: 5; color: var(--slate); font: 500 15px/1.4 var(--sans); margin: -8px 0 14px; }
.fee-aid span { color: var(--n5); }
.fee-aid:hover { color: var(--ink); }
.package-incl { order: 6; margin: 0 0 24px; gap: 8px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.package-incl li { position: relative; padding-left: 25px; }
.package-incl li::before { content: ""; position: absolute; left: 1px; top: .44em; width: 11px; height: 6px; border-left: 1.8px solid var(--n4); border-bottom: 1.8px solid var(--n4); transform: rotate(-45deg); }
.package-units-label { order: 8; margin: 6px 0 4px; padding-top: 22px; border-top: 1px solid var(--fog); font: 500 15px/1.4 var(--sans); color: var(--slate); }
.package-units { order: 9; gap: 0; font-size: 16px; }
.package-units li a { grid-template-columns: 40px 1fr; gap: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--fog); background: transparent; color: var(--ink); font-weight: 400; line-height: 1.4; align-items: baseline; }
.package-units li a::after { display: none; }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; border-color: var(--fog); text-decoration: underline; text-decoration-color: var(--n5); text-underline-offset: .2em; }
.package-units li a > span { font: 400 19px/1.3 var(--text); color: var(--ink); font-variant-numeric: tabular-nums; }
.package-units li.gap { margin-top: 0; }
.topic-badge { float: none; display: inline-block; margin: 0 8px 0 0; font: 500 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--n6); border: 1px solid var(--n6); border-radius: 2px; padding: 2px 5px; vertical-align: 2px; }
.fee-footnote { margin: 44px 0 0; font-size: 15.5px; color: var(--slate); text-align: left; max-width: 52em; }
.aid-note { border-color: var(--n5); background: #fff; }
.aid-note h3 { font-size: 22px; }
.aid-note p { color: var(--ink); }
.aid-note.is-granted { border-color: var(--n4); background: #fff; }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 0 clamp(28px, 4vw, 56px); }
.testimonial, .section:not(.light) .testimonial { padding: 26px 0 0; border: 0; border-top: 1px solid var(--ink); background: transparent; }
.testimonial blockquote { font: 400 18.5px/1.6 var(--text); margin: 0 0 24px; }
.testimonial blockquote::before { content: "\201C"; display: inline; font-size: inherit; line-height: inherit; margin: 0; color: inherit; }
.testimonial blockquote::after { content: "\201D"; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border: 0; padding: 0; font: 500 15px/1.35 var(--sans); gap: 14px; }
.t-avatar { width: 48px; height: 48px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: #fff; border: 1.5px solid var(--hue, var(--n1)); color: var(--ink); font: 500 14px/1 var(--sans); letter-spacing: 0; }
.testimonial:nth-child(3n+1) { --hue: var(--n1); }
.testimonial:nth-child(3n+2) { --hue: var(--n4); }
.testimonial:nth-child(3n+3) { --hue: var(--n6); }
.testimonial figcaption strong { font-weight: 500; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--slate); font-weight: 200; }

/* ------------------------------------------------------------------- blog */
.posts { gap: 40px clamp(28px, 4vw, 56px); }
.post-card-img { aspect-ratio: 340 / 196; border: 1px solid var(--fog); background: #fff; margin-bottom: 18px; }
.post-card .eyebrow { font-size: 14px; }
.post-card h3 { font-size: 21px; line-height: 1.25; margin: 8px 0 10px; }
.post-card p, .section:not(.light) .post-card p { color: #33384c; font-size: 16.5px; line-height: 1.55; }
.post-card:hover h3 { text-decoration-color: var(--n5); }
.pager a, .pager span { border-color: var(--rule); color: var(--ink); border-radius: 2px; font-family: var(--sans); }
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-cover { background: var(--tint); }
.post-meta { border-color: var(--fog); font-family: var(--sans); }
.prose .citation .cite-doi { color: var(--slate); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--ink); }
.faq details, .light .faq details { border-color: var(--fog); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 500 19px/1.35 var(--sans); }
.faq summary::after { content: ""; position: static; transform: none; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a, .light .faq-a { padding: 0 0 24px; color: var(--ink); font-size: 18px; max-width: 40em; }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 1px solid var(--fog); background: #fff; padding: clamp(32px, 5vw, 56px); gap: 28px clamp(40px, 7vw, 110px); align-items: end; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
/* On the landing page the newsletter is a Paper Tint band across the page. */
.newsletter-band { background: var(--tint); border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); padding: clamp(56px, 6vw, 80px) 0; }
.newsletter-band .newsletter { border: 0; background: transparent; padding: 0; }
.newsletter h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 12px; }
.newsletter p { color: #33384c; max-width: 32em; }
.newsletter-form { gap: 10px; }
.newsletter-form input[type=email] { height: 48px; border: 1.5px solid var(--ink); border-radius: 2px; background: #fff; padding: 0 16px; font: 400 17px var(--text); color: var(--ink); }
.newsletter-form input[type=email]::placeholder { color: #8a8fa2; }
.newsletter-form input[type=email]:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.newsletter-form .btn { height: 48px; }
.cta-final h2 { max-width: 13em; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #d9dce6; border-top: 0; padding: 64px 0 36px; font-size: 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; }
.foot-brand .logo-footer { height: 54px; width: auto; margin: 0; }
.foot-brand p { margin: 14px 0 0; max-width: 24em; color: #b9bdcc; font-size: 15.5px; }
.foot-brand .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-family: var(--sans); font-weight: 500; font-size: 15px; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-nav h2, .foot-credits h2, .foot-contact h2 { font: 500 15px/1.4 var(--sans); color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.footer-col { gap: 0; }
.footer-col a { color: #c9ccd8; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.foot-contact { margin-top: 30px; padding-top: 24px; border-top: 1px solid #3a4058; max-width: 24em; }
.footer-contact { grid-template-columns: 62px 1fr; gap: 6px 10px; margin: 0; font-size: 15px; color: #c9ccd8; max-width: none; }
.footer-contact dt { font: 500 13px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: #a5a9b9; }
.footer-contact dd, .footer-contact a { color: #c9ccd8; line-height: 1.5; }
.footer-contact a:hover { color: #fff; }
.foot-credits { margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a4058; font-size: 13px; color: #a5a9b9; }
.foot-credits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-credits a { color: #d9dce6; text-decoration: underline; text-decoration-color: #6b7088; }
.foot-bottom { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #3a4058; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font-size: 14px; color: #a5a9b9; }
.foot-bottom a { color: #d9dce6; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; margin-left: 22px; }
.footer-social a:first-child { margin-left: 0; }
.site-footer :focus-visible { outline-color: #8cc8f0; }

/* ------------------------------------------------------------------ forms */
.field label { font: 500 15px/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(--rule); border-radius: 2px; background: #fff; color: var(--ink); font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input[disabled] { background: var(--tint); color: var(--slate); }
.field .hint { color: var(--slate); font-family: var(--sans); }
.checkline { color: var(--ink); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--ink); }
.auth-card { background: #fff; color: var(--ink); border: 1px solid var(--fog); }
.auth-card h1 { font-size: 34px; margin: 10px 0 14px; }
.auth-card p { color: var(--ink); }
.auth-switch { border-color: var(--fog); }
.cp-list { background: #fff; color: var(--ink); border-color: var(--rule); box-shadow: 0 14px 34px rgba(30, 34, 51, .16); }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--tint); }
.pw-toggle { color: var(--slate); }
.dialog { background: #fff; color: var(--ink); border-top: 3px solid var(--ink); box-shadow: 0 24px 60px rgba(30, 34, 51, .3); }
.dialog h2 { font: 400 26px/1.2 var(--serif); }
.dialog p { color: var(--ink); }
.paper-card { background: #fff; color: var(--ink); border: 1px solid var(--fog); }
.rating-opt span { background: #fff; border-color: var(--rule); color: var(--ink); border-radius: 2px; }
.rating-opt b { font: 400 24px/1 var(--serif); }
.rating-opt small { color: var(--slate); font-family: var(--sans); }
.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: #c9ccd8; }
.rating-opt input:focus-visible + span { outline-color: var(--focus); }
.upgrade-opt { background: #fff; border-color: var(--rule); border-radius: 2px; }
.upgrade-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.upgrade-opt b { font: 400 20px/1.2 var(--serif); }
.upgrade-opt small { color: var(--slate); }
.upgrade-badge { background: var(--n2); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .04em; }
.upgrade-price strong { font: 400 22px/1 var(--serif); }
.upgrade-price s { color: var(--slate); }
.tag-chip { background: var(--ink); color: #fff; font-family: var(--sans); }
.coupon-box summary { color: var(--slate); }
.coupon-form input { background: #fff; color: var(--ink); border: 1.5px solid var(--rule); border-radius: 2px; font: 500 16px/1.2 var(--sans); letter-spacing: .06em; }
.coupon-form input::placeholder { color: #8a8fa2; }
.coupon-error { color: var(--n1); }
.coupon-applied { color: var(--n4); }
.coupon-code { font: 500 14px/1 var(--sans); letter-spacing: .06em; color: var(--slate); }
.legal-box { background: #fff; border-color: var(--fog); }
.legal-updated { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.prose { font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 23px; }
.prose blockquote { border-left: 2px solid var(--n6); font: italic 400 21px/1.5 var(--text); }
.prose th { font: 500 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; border-color: var(--ink); }
.prose td { border-color: var(--fog); }
.stack-table tr { border-color: var(--fog); }
.stack-table td::before { font: 500 13px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.aid-form fieldset { background: #fff; border-color: var(--fog); }
.aid-form legend { font: 400 26px/1.2 var(--serif); }
.aid-form legend span { background: var(--ink); color: #fff; font: 500 15px/34px var(--sans); }
.aid-form .field input[type=file] { background: #fff; }
.aid-err { color: var(--n1); }
.aid-submit span { color: var(--slate); }
.aid-location { background: #fff; border-color: var(--fog); font-family: var(--sans); }
.aid-location em { color: var(--slate); }
.aid-wrong summary { color: var(--slate); }
.aid-apply-aside { border-top-color: var(--ink); color: var(--ink); }
.aid-apply-aside h3 { color: var(--ink); }
.aid-apply-aside a { color: var(--ink); }
.aid-body > p { color: var(--ink); }
.aid-contact { color: var(--slate) !important; }
.aid-h1 { font-size: clamp(36px, 4.4vw, 54px); }
.geo-test-badge { font-family: var(--sans); }

/* ---------------------------------------------------------------- account */
.account-head h1 { font-size: clamp(34px, 4.2vw, 52px); }
.account-head p { color: var(--slate); }
.tabs { box-shadow: inset 0 -1px 0 var(--fog); gap: 28px; }
.tabs a { font: 500 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.tabs a.is-active, .tabs a:hover { color: var(--ink); border-color: var(--ink); }
.account-body .wrap > .notice { background: #fff; color: var(--ink); border: 1px solid var(--fog); border-left: 3px solid var(--n5); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--ink); }
.progress-strip { border-color: var(--fog); background: #fff; }
.progress-strip div { border-color: var(--fog); }
.progress-strip b { font: 400 30px/1.1 var(--serif); }
.progress-strip span { font: 400 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.bar { background: var(--fog); }
.bar i { background: var(--n5); }
.ucard { background: #fff; border-color: var(--fog); }
.ucard.is-open { border-color: var(--ink); background: #fff; }
.ucard.is-locked { background: transparent; }
.ucard.is-locked h3, .ucard.is-locked .ucard-no { color: var(--dim); }
.ucard-no { font: 400 34px/1 var(--serif); color: var(--ink); }
.ucard-no small { font: 500 13px/1 var(--sans); letter-spacing: 0; color: var(--slate); }
.ucard h3 { font-size: 22px; }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--slate); font-family: var(--sans); }
.ucard-more:hover { color: var(--ink); }
.ucard-score b { color: var(--ink); }
.pill { font: 500 12.5px/1 var(--sans); letter-spacing: .02em; text-transform: none; border-color: var(--rule); border-radius: 2px; }
.pill.ok { border-color: var(--n4); color: var(--n4); }
.pill.wait { color: var(--slate); }
.pill.bad { border-color: var(--n1); color: var(--n1); }
.verdict { font: 500 15px/1 var(--sans); letter-spacing: .02em; text-transform: none; border-radius: 2px; }
.verdict.ok { background: var(--n4); }
.verdict.bad { background: var(--n1); }
.score { font: 400 20px/1 var(--serif); }
.exam-score { color: var(--ink); font-family: var(--sans); }
.exam-score small, .exam-score span { color: var(--slate); }
.panel { background: #fff; border-color: var(--fog); }
.panel h2 { font-size: 28px; }
.panel p { color: var(--ink); }
.panel.is-key { border-color: var(--ink); }
.doc-card { background: #fff; border-color: var(--fog); }
.doc-card img { border-color: var(--fog); }
.doc-card p { color: var(--slate); }
.copyline input { background: #fff; border: 1.5px solid var(--rule); border-right: 0; color: var(--ink); font: 400 15px/1 var(--sans); }
.scorebox { border-color: var(--ink); background: #fff; }
.scorebox .big { font-family: var(--serif); font-weight: 400; }
.scorebox .big small { color: var(--slate); }
.breakdown td, .breakdown th { border-color: var(--fog); }
.breakdown th { font: 500 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-color: var(--fog); }
.quiz-head h1 { font-size: clamp(34px, 4vw, 48px); }
.quiz-head p { color: var(--slate); }
.q { background: #fff; border-color: var(--fog); }
.q-no { font: 500 13.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.q-text { font: 400 21px/1.4 var(--text); }
.opt { border-color: var(--rule); border-radius: 2px; }
.opt:hover { border-color: var(--ink); }
.opt .k { border-color: var(--rule); font: 500 13px/1 var(--sans); border-radius: 2px; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.opt:has(input:checked) .k { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt:has(input:focus-visible) { outline-color: var(--focus); }
.opt.is-right { border-color: var(--n4); background: #e9f5ee; }
.opt.is-right .k { background: var(--n4); border-color: var(--n4); }
.opt.is-wrong { border-color: var(--n1); background: #fcebee; }
.opt.is-wrong .k { background: var(--n1); border-color: var(--n1); }
.q.is-correct { border-left: 3px solid var(--n4); }
.q.is-incorrect { border-left: 3px solid var(--n1); }
.explain { background: var(--tint); border-left: 2px solid var(--n5); color: var(--ink); }
.explain b { font: 500 13.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.quiz-foot { background: rgba(252, 252, 254, .94); border-color: var(--fog); }
.quiz-foot .state { font: 500 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.timer { background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.timer b { font: 500 24px/1 var(--sans); letter-spacing: 0; }
.timer.is-low { border-color: var(--n1); color: var(--n1); }
.q-figure img { filter: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ unit reader */
/* The unit as a printed page: LM Roman text on white, the Paper Tint around it, boxes in the overtone hues. */
.reader-hero { background: var(--tint); border-bottom: 1px solid var(--fog); color: var(--ink); }
.reader-hero img.bg { filter: none; opacity: .2; }
.reader-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
.reader-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.reader-hero .sub { font: italic 400 21px/1.4 var(--text); color: #2d3247; }
.reader-hero .credit { color: var(--slate); }
.reader { background: var(--white); color: var(--ink); }
.toc { font-family: var(--sans); font-size: 14.5px; }
.toc a { border-left-color: var(--fog); color: var(--slate); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--ink); }
.unit-text { font: 400 18.5px/1.68 var(--text); }
.unit-text h2 { font-size: 34px; border-bottom: 1px solid var(--ink); }
.unit-text h3 { font-size: 24px; }
.unit-text h4 { font: 700 18px/1.3 var(--text); font-style: normal; }
.unit-text .secno { font: 400 .72em/1 var(--text); color: var(--slate); letter-spacing: 0; }
.unit-text code { font-family: var(--sans); background: var(--tint); }
.unit-text figcaption { font-size: 15px; color: var(--slate); }
.unit-text figcaption b { color: var(--ink); }
.unit-text table { border-color: var(--ink); font-size: 16px; }
.unit-text th { border-color: var(--ink); }
.box { border-color: var(--ink); background: #fff; }
.box-kind { font: 500 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.box-title { font: 500 16px/1.3 var(--sans); }
/* Box colours, the same as in the unit PDFs (theme/theme.tex): a strong hue for bars and rules, a light tint as ground. */
.box-keyequation { --bx: #D7263D; --bx-l: #FCEBEE; }
.box-law, .box-laws { --bx: #3A3FD4; --bx-l: #ECEDFB; }
.box-derivation { --bx: #1B98E0; --bx-l: #E8F4FC; }
.box-example { --bx: #2E9E5B; --bx-l: #E9F5EE; }
.box-excursion { --bx: #8C3BC9; --bx-l: #F4ECFA; }
.box-research { --bx: #1E2233; --bx-l: #F3F4F8; }
.box-research .box-kind { color: #c9ccd8; letter-spacing: 0; }
.box-research .box-name { font: 400 24px/1.15 var(--serif); }
.box-research .box-inst { font: italic 400 17px/1.3 var(--text); color: #c9ccd8; }
.box-keypoints { --bx: #B98A00; --bx-l: #FBF5E0; }
.box-keypoints .box-kind { color: #8a6700; }
.box-check { --bx: #C2491F; --bx-l: #FDEFE9; }
.box-check .check-result { border-top-color: rgba(194, 73, 31, .25); }
.box-interactive { --bx: #5A6075; --bx-l: #F3F4F8; }
.box-questions .box-kind { font: 500 16px/1.4 var(--sans); color: #8a6700; }
.paperlink { border-color: var(--fog); }
.paperlink span { font: 500 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.reader-end { background: var(--ink); color: #fff; border-radius: 2px; }
.reader-end h3, .reader-end h2 { font-size: 26px; }
.reader-end .btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.reader-end .btn-light:hover { background: var(--tint); border-color: var(--tint); }
.reader-end .btn-ghost { border-color: #fff; color: #fff; }
.reader-end .btn-ghost:hover { background: #fff; color: var(--ink); }
.preview-fade::after { background: linear-gradient(180deg, rgba(252, 252, 254, 0) 0%, var(--white) 88%); }
.lit-list li { border-color: var(--fog); }
.lit-list a.t { font: 400 21px/1.25 var(--serif); }
.lit-list .m { color: var(--slate); font-family: var(--sans); }
.ia-stage { border-color: var(--fog); }
.ia-slider input[type=range] { accent-color: var(--ink); }
.ia-btn { border-color: var(--rule); border-radius: 2px; font-family: var(--sans); }
.ia-btn.on { background: var(--ink); border-color: var(--ink); }
.ia-val, .ia-readout b { font-family: var(--sans); }

/* ----------------------------------------------------------------- verify */
.verify-form input { background: #fff; border: 1.5px solid var(--rule); border-right: 0; border-radius: 2px 0 0 2px; color: var(--ink); font: 500 17px/1 var(--sans); letter-spacing: .08em; }
.verify-form input:focus { border-color: var(--ink); }
.credential { background: #fff; color: var(--ink); border: 1px solid var(--fog); border-top: 3px solid var(--ink); }
.credential .eyebrow { color: var(--slate); }
.credential h1 { font-size: clamp(34px, 5vw, 56px); }
.credential .valid { font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--n4); border-color: var(--n4); border-radius: 2px; }
.credential .facts { border-color: var(--fog); }
.credential .facts b { font: 500 20px/1.2 var(--sans); color: var(--ink); }
.credential th { font: 500 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); border-color: var(--ink); }
.credential td { border-color: var(--fog); }
.credential td:first-child { font: 400 16px/1 var(--text); color: var(--slate); }

/* ----------------------------------------------------------------- cookie */
.cookie { background: #fff; color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 20px 60px rgba(30, 34, 51, .25); font-family: var(--sans); font-size: 15px; }
.cookie p { color: var(--ink); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav-top { padding: 10px 8px; }
}
/* Three columns from 1081 px: between 1081 and 1219 px the longer package notes wrap to four lines while the shortest
   stays at three, so every note gets the room of four lines there and the three Enrol buttons keep one top edge. */
@media (min-width: 1081px) and (max-width: 1219px) {
  .package-note { min-height: 6.2em; }
}
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .researchers { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 28px; }
  .package, .package:first-child { border-left: 1.5px solid transparent; border-top: 1px solid var(--rule); padding-top: 28px; }
  .package:first-child { border-top-color: transparent; padding-top: 0; }
  .package.is-featured { border: 1.5px solid var(--ink); padding-top: 0; }
  .package.is-featured + .package { border-top-color: transparent; }
  .package h2, .package h3 { min-height: 0; }
  .package-note { min-height: 0; }
  .package-flag.is-placeholder { display: none; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .logo { height: 38px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .researcher { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .avatar { width: 72px; height: 72px; }
  .stats div { grid-template-columns: 1fr; gap: 4px; }
  .stats b { font-size: 44px; }
  .aud, .aud:last-child { border-left: 0; border-bottom: 0; padding: 0; }
  .aud + .aud { border-top: 1px solid var(--rule); padding-top: 34px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { grid-template-columns: 1fr; }
  .page-hero.has-figure .wrap { grid-template-columns: 1fr; }
  .page-hero.has-figure .page-hero-figure { grid-column: 1; grid-row: auto; max-width: 520px; }
  .testimonials { gap: 40px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .burger { padding: 0 12px; }
  .header-cta .btn { display: none; }
  .researcher-inst { font-size: 14.5px; }
  .researcher p { font-size: 15.5px; }
  .researcher h3 { font-size: 18px; }
  .foot-nav { grid-template-columns: 1fr; }
  .fee-now { font-size: 48px; }
}

/* ======================================================================================================= */
/* The landing page (theme/home.php): the design's sections, rebuilt on engine data.                        */
/* ======================================================================================================= */

/* chart strokes shared by every drawing of the design (theme/svg) */
svg text { font-family: var(--text); fill: var(--slate); }
.axis, .tick { fill: none; stroke: var(--ink); stroke-width: 1; }
.f-label, .n-label { font-size: 15px; fill: var(--ink); }
.axis-name { font-size: 14px; fill: var(--slate); font-style: italic; }
svg .it { font-family: "STIX Formula", var(--text); font-style: italic; }
.env-fill { fill: var(--hue); fill-opacity: .13; stroke: none; }
.env { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.snap { fill: none; stroke: var(--hue); stroke-width: .9; stroke-opacity: .75; }
.bridge { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: square; }
.sl { stroke: var(--hue); stroke-width: 3.2; stroke-linecap: butt; }
.lobe { fill: var(--hue); fill-opacity: .16; stroke: none; }
.ros-fill { fill: var(--hue); fill-opacity: .15; }
.ros { fill: none; stroke: var(--ink); stroke-width: .7; stroke-opacity: .38; }
.ros-key { stroke-width: 1.3; stroke-opacity: 1; }
.snap6 { fill: none; stroke: var(--slate); stroke-width: .8; stroke-dasharray: 3 4; }
.env6 { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.node6 { fill: var(--white); stroke: var(--ink); stroke-width: 1.4; }
.anti-no { font-family: var(--sans); font-weight: 500; font-size: 21px; fill: var(--ink); text-anchor: middle; }
.wire-back { fill: none; stroke: var(--ink); stroke-width: .6; stroke-opacity: .22; }
.cell { fill: var(--hue); fill-opacity: .24; stroke: var(--hue); stroke-width: .8; }
.wire { fill: none; stroke: var(--ink); stroke-width: .75; }
.rim { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ws-fill { fill: var(--n5); fill-opacity: .1; }
.ws-key { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ws-line { fill: none; stroke: var(--ink); stroke-width: .6; stroke-opacity: .45; }
.dim-seen { stroke: var(--ink); stroke-width: 2; }
.dim-curled { stroke: var(--hue); stroke-width: 2.2; }
.dim-loop { fill: none; stroke: var(--ink); stroke-width: .9; }
.pc-haw { fill: none; stroke: var(--slate); stroke-width: 1.2; stroke-dasharray: 4 4; }
.pc-bh { fill: none; stroke: var(--slate); stroke-width: 1.2; stroke-dasharray: 1.5 3.5; }
.pc-page { fill: none; stroke: var(--n1); stroke-width: 2.6; }
.pc-label { font-size: 14px; fill: var(--slate); }
.pc-label-k { fill: var(--ink); }
.ck { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--n4); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* figures and equations */
.tex { display: inline-block; overflow: visible; height: auto; max-width: 100%; }
.fig-no { font-family: var(--sans); font-weight: 500; color: var(--ink); font-size: 14.5px; letter-spacing: .01em; margin-right: 4px; }
.h-credit { display: block; margin-top: 6px; font-size: 13.5px; color: var(--slate); }
.h-credit a { color: inherit; }
.fig { margin: 0; }
.fig figcaption, .h-cap { font-size: 15.5px; line-height: 1.55; color: var(--slate); }

/* ---------- hero ---------- */
.h-hero { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: clamp(28px, 4vh, 48px) var(--gut) 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 56px; align-items: center; min-height: calc(100vh - var(--header-h) - 92px); }
.h-hero h1 { font-size: inherit; margin: 0; max-width: none; }
.name-line { display: block; font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: 0; margin-bottom: 22px; color: var(--ink); }
.name-line::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: 12px; vertical-align: .3em; background: var(--spectrum); }
.headline { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.01em; }
.hero-sub { font-size: 21px; line-height: 1.55; max-width: 31em; margin: 28px 0 34px; color: #2d3247; }
.h-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; font: 500 15px/1.4 var(--sans); color: var(--slate); }
.h-checks li { display: flex; align-items: center; gap: 8px; }
.hero-fig { margin: 0; justify-self: end; width: 100%; max-width: min(660px, calc(100vh - 230px)); }
.cy-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.cy-stage .cy, .final-fig .cy { position: absolute; inset: 0; width: 100%; height: 100%; }
.cy-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.no-gl .cy-still { display: block; }
.no-gl .cy { display: none; }
.hero-cap { margin-top: 10px; text-align: right; font-size: 14px; line-height: 1.5; color: var(--slate); }
.hero-cap .fig-no { font-size: 13px; }
.hero-cap .tex { font-size: 15px; vertical-align: -.3em; margin-left: 2px; }

/* ---------- alumni ---------- */
.alumni { padding: 30px 0 34px; border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); overflow: visible; }
.alumni-h { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--slate); margin: 0 0 18px; text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 42px; list-style: none; margin: 0; padding: 0; }
/* The wordmarks in ink: the SVG is the mask of an ink block, as in the design. */
.logos .logo { display: block; height: 30px; max-width: 150px; background: var(--ink); opacity: .74; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 36em); justify-content: space-between; gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.fig-modes .modes { display: block; width: 100%; height: auto; margin-bottom: 26px; overflow: visible; }
.md-fill { fill: var(--hue); fill-opacity: .1; stroke: none; }
.md-env { fill: none; stroke: var(--hue); stroke-width: 1.3; }
.md-rest { stroke: var(--ink); stroke-width: .6; stroke-opacity: .28; }
.md-end { stroke: var(--ink); stroke-width: 2; }
.fig-overtones .overtones { width: 100%; height: auto; margin-bottom: 22px; overflow: visible; }
.fig-overtones figcaption { max-width: 44em; }
.intro-text h2 { margin-bottom: 28px; }
.intro-text { max-width: 36em; padding-top: 8px; }
.points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--ink); }
.points li:nth-child(1)::before { background: var(--n1); }
.points li:nth-child(2)::before { background: var(--n4); }
.points li:nth-child(3)::before { background: var(--n6); }

/* ---------- audiences (engine .cards-3 and .aud, restyled above) ---------- */
.rosette { width: 72px; height: 72px; margin: 0 0 18px -4px; }

/* ---------- how it works: six steps on the sixth harmonic ---------- */
.six-wrap { margin: 0 0 6px; }
.six { width: 100%; height: auto; }
.h-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 22px; }
.h-steps .step .lens { display: none; }
.h-steps .step-no { display: none; }
.h-steps .step h3 { font-size: 19px; margin-bottom: 10px; }

/* ---------- topics ---------- */
.part { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; padding: clamp(48px, 5vw, 72px) 0; border-top: 1px solid var(--fog); }
.part:first-of-type { border-top: 0; padding-top: 0; }
.part:nth-of-type(2) .part-fig { order: 2; }
.part-fig { margin: 0; }
.part-fig > svg, .part-fig > img { width: 100%; height: auto; margin-bottom: 20px; }
.part-fig .horizon { max-width: 340px; margin-left: auto; margin-right: auto; }
.part-fig .worldsheet { display: block; max-width: 250px; margin-left: auto; margin-right: auto; }
.cy-photo { max-width: 460px; margin-left: auto; margin-right: auto; mix-blend-mode: multiply; }
.part-range { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--slate); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.part-range::before { content: ""; width: 28px; height: 3px; background: var(--hue); flex: none; }
.part-text h3 { font-weight: 400; font-size: clamp(30px, 3vw, 40px); letter-spacing: 0; margin-bottom: 16px; }
.part-text > p:not(.part-range) { max-width: 34em; }
.units { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fog); }
.units li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; border-bottom: 1px solid var(--fog); padding: 11px 0; }
.u-no { font-family: var(--text); font-weight: 400; font-size: 21px; font-variant-numeric: tabular-nums; color: var(--ink); }
.u-t a { text-decoration: none; font-size: 18px; }
.u-t a:hover { text-decoration: underline; text-decoration-color: var(--n5); }

/* ---------- certificate ---------- */
.cert-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 110px); align-items: center; }
.cert-fig { margin: 0; }
.cert-fig img { width: 100%; height: auto; border: 1px solid #cfd3de; box-shadow: 10px 10px 0 var(--tint), 10px 10px 0 1px var(--fog); }
.cert-fig figcaption { margin-top: 22px; }
/* The drawn sample sheet, shown until bin/make_samples.php has rendered the real certificate. */
.cert-sheet { position: relative; aspect-ratio: 1.414 / 1; background: #fff; border: 1px solid #cfd3de; outline: 1px solid var(--fog); outline-offset: -12px; padding: 9% 10% 7%; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 10px 10px 0 var(--tint), 10px 10px 0 1px var(--fog); }
.cs-brand { font: 500 clamp(15px, 1.5vw, 19px)/1.3 var(--sans); margin: 0 0 4px; }
.cs-small { font-size: clamp(10px, .9vw, 12.5px); line-height: 1.45; color: var(--slate); margin: 2px 0; }
.cs-name { font: 200 clamp(24px, 2.6vw, 36px)/1.2 var(--sans); margin: 4px 0 6px; padding: 0 18px 4px; border-bottom: 1px solid var(--fog); }
.cs-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; font-size: clamp(9.5px, .85vw, 12px); color: var(--slate); line-height: 1.35; }
.cs-foot b { color: var(--ink); font: 500 1em/1.3 var(--sans); }
.seal { width: clamp(44px, 5vw, 64px); height: auto; fill: none; stroke: var(--n6); stroke-width: 1; }
.seal path:nth-child(2) { stroke: var(--n4); }
.seal path:nth-child(3) { stroke: var(--n1); }
.cert-text h2 { margin-bottom: 24px; }
.cert-text .actions { margin-top: 32px; }

/* ---------- sample unit ---------- */
.sample-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(40px, 7vw, 110px); align-items: center; }
.sheet-stack { position: relative; padding: 0 18px 18px 0; }
.sheet-stack::before { content: ""; position: absolute; inset: 18px 0 0 18px; background: #fff; border: 1px solid #d6d9e3; }
.sheet { position: relative; display: block; background: #fff; border: 1px solid #cfd3de; padding: clamp(24px, 3.4vw, 46px) clamp(22px, 3.6vw, 52px) 26px; font-size: 14.5px; line-height: 1.55; color: var(--ink); text-decoration: none; }
.sheet img { width: 100%; height: auto; display: block; }
.sheet.is-page { padding: 0; }
.sh-run { display: flex; justify-content: space-between; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--slate); border-bottom: 1px solid var(--fog); padding-bottom: 8px; margin-bottom: 22px; }
.sh-title { font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.sh-text { margin-bottom: 18px; }
.sh-box { background: var(--tint); border-left: 3px solid var(--n5); padding: 14px 18px; margin-bottom: 18px; }
.sh-box-h { font-family: var(--sans); font-weight: 500; font-size: 13px; margin: 0 0 6px; }
.sh-box ol { list-style: decimal; padding-left: 20px; margin: 0; font-size: 13.5px; display: grid; gap: 3px; }
.sh-pn { text-align: center; font-size: 12px; color: var(--slate); margin: 14px 0 0; }
.sample-text h2 { margin-bottom: 22px; }
.sample-text h3 { font-size: 22px; margin-bottom: 12px; }

/* ---------- community ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 110px); align-items: start; }
.co-text h2 { margin-bottom: 22px; }
.co-intro { max-width: 32em; }
.co-fig img { display: block; width: 100%; height: auto; margin-bottom: 16px; }
.co-grid + .features { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(40px, 7vw, 110px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .section-head a { color: var(--ink); }

/* ---------- final ---------- */
.final { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--fog); }
.final-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.final h2 { font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -.005em; margin-bottom: 22px; max-width: 11em; }
.final-text p { font-size: 20px; color: #33384c; margin-bottom: 32px; }
.final-fig { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 440px; justify-self: end; }

/* ---------- responsive, landing page ---------- */
@media (max-width: 1080px) {
  .h-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .six-wrap { display: none; }
  .h-steps .step .lens { display: block; width: 44px; height: 18px; margin: -9px 0 8px; }
}
@media (max-width: 900px) {
  .h-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .hero-fig { justify-self: center; max-width: 520px; }
  .intro-grid, .cert-grid, .sample-grid, .co-grid, .faq-grid, .final-grid, .part { grid-template-columns: 1fr; }
  .intro-text { order: -1; }
  .part:nth-of-type(2) .part-fig { order: 0; }
  .final-fig { justify-self: center; max-width: 340px; }
}
@media (max-width: 560px) {
  .h-steps { grid-template-columns: 1fr; }
  .hero-sub { font-size: 19px; }
  .sheet { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
