/* Quantum Mechanics Masterclass theme "Orbitals": overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The engine is designed dark with warm paper sections and
   uppercase mono labels; this theme is a white product page with Mist bands, Bodoni Moda headings, Albert Sans
   text, hairlines, and Phase Blue as the one accent, so everything that carried a dark ground, a mono label,
   or the warm accent is redrawn here: header, buttons, page heroes, cards, tables, forms, the unit reader, and
   the account pages. The second half styles the landing page (theme/home.php). */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: auto; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.06; }
h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.2; }
b, strong { font-weight: 600; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: calc(1200px + 2 * var(--gut)); padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gut)); }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow { font: 600 .86rem/1.4 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--blue); }
.lead, .light .lead { font-size: 1.12rem; line-height: 1.6; color: var(--slate); }
.credit { font: 400 13px/1.45 var(--sans); letter-spacing: 0; color: var(--slate); }
.credit a { color: inherit; }
.link-arrow, .text-link { display: inline; font: 500 1rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.link-arrow:hover, .text-link:hover { opacity: 1; color: var(--blue); }
.link-arrow .icon { width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-left: .3em; }
.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, .section p > a:not(.btn):not(.link-arrow):not(.text-link), .fee-footnote a, .disclaimer a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover, .unit-text a:not(.btn):hover { color: var(--ink); }
.rule, .light .rule { border-color: var(--line); }
.after { margin: 44px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn { border: 1px solid var(--ink); border-radius: 2px; font: 500 16px/1.2 var(--sans); letter-spacing: .01em; padding: 0 26px; min-height: 50px; gap: 10px; color: var(--ink); background: transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light, .btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light:hover, .btn-dark:hover { background: var(--blue); border-color: var(--blue); 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: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { padding: 12px 18px; line-height: 1.3; min-height: 50px; }
.btn .icon { width: 18px; height: 18px; }
/* on a dark ground (reader hero, reader end, page heroes with a picture): white primary, white outline */
.page-hero.has-img .btn-light, .reader-hero .btn-light, .reader-end .btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.page-hero.has-img .btn-light:hover, .reader-hero .btn-light:hover, .reader-end .btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.page-hero.has-img .btn-ghost, .reader-hero .btn-ghost, .reader-end .btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.page-hero.has-img .btn-ghost:hover, .reader-hero .btn-ghost:hover, .reader-end .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.page-hero.has-img :focus-visible, .reader-hero :focus-visible, .reader-end :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* ----------------------------------------------------------------- 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(255, 255, 255, .96); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px); transition: none; }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { gap: 36px; justify-content: space-between; }
.brand { flex: 0 0 auto; }
.logo { height: 44px; width: auto; }
.nav { flex: 0 1 auto; gap: 6px; margin-left: auto; }
.nav-top { font: 500 15.5px/1 var(--sans); color: var(--ink); padding: 10px 12px; border-radius: 2px; letter-spacing: 0; display: flex; align-items: center; gap: 7px; }
.nav-top::after { width: 6px; height: 6px; border-width: 1.3px; 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 { transform: translateY(1px) rotate(225deg); }
.nav-top:hover { color: var(--blue); }
.nav-menu { top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(21, 32, 58, .08); padding: 10px 0; color: var(--ink); transform: none; }
.nav-menu a { padding: 8px 20px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--mist); color: var(--blue); outline-offset: -3px; }
.header-cta { margin-left: 0; gap: 20px; }
.nav-login { font: 500 15.5px/1 var(--sans); color: var(--ink); }
.nav-login:hover { color: var(--blue); text-decoration: none; }
.burger { width: 44px; height: 40px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); }
.burger span { background: currentColor; left: 12px; right: 12px; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span { top: 19px; }
.mobile-menu { background: #fff; color: var(--ink); padding: 20px 0 48px; }
.mm-group { border-color: var(--line); padding: 16px 0; }
.mm-group .eyebrow { font: 500 22px/1.15 var(--serif); color: var(--ink); text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.mm-group a { font: 400 17px/1.4 var(--sans); padding: 7px 0; }
.mm-cta { grid-template-columns: 1fr; max-width: 420px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(68px, 8vw, 120px) 0; }
.section.light { background: #fff; color: var(--ink); }
.section.mist { background: var(--mist); }
.section.tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { gap: 20px; margin-bottom: clamp(40px, 4vw, 56px); max-width: 760px; }
.section-head p, .light .section-head p { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 40em; }
.flash { background: var(--mist); border-bottom: 1px solid var(--line); color: var(--ink); }
.flash-error { background: #fbecea; border-color: #f0c3bd; }

/* -------------------------------------------------------------- page hero */
.page-hero { padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--mist) 100%); color: var(--ink); }
.page-hero h1 { font-size: clamp(40px, 4.6vw, 64px); margin: 14px 0 18px; max-width: 14em; }
.page-hero .lead { max-width: 40em; }
.page-hero.has-img { color: #fff; border-bottom: 0; padding: clamp(96px, 12vw, 150px) 0 clamp(48px, 6vw, 72px); background: var(--ink); }
.page-hero.has-img::before { filter: grayscale(1) brightness(.62) contrast(1.02); }
.page-hero.has-img::after { background: linear-gradient(90deg, rgba(21, 32, 58, .88) 0%, rgba(21, 32, 58, .6) 55%, rgba(21, 32, 58, .25) 100%), linear-gradient(0deg, rgba(21, 32, 58, .5) 0%, rgba(21, 32, 58, 0) 50%); }
.page-hero.has-img .eyebrow { color: #afc2ec; }
.page-hero.has-img .lead { color: #e6eaf0; }

/* ------------------------------------------------------- split, checks, cards */
.split { gap: clamp(36px, 6vw, 88px); }
.split-body h2 { margin-bottom: 26px; }
.split-body p, .light .split-body p { color: var(--slate); font-size: 18px; }
.split-media img { aspect-ratio: 4 / 3; border-radius: 3px; }
.split-media .credit { position: static; display: block; margin-top: 10px; }
.checks { gap: 14px; margin: 28px 0 30px; }
.checks li { grid-template-columns: 22px 1fr; gap: 14px; line-height: 1.55; }
.checks .icon, .light .checks .icon { color: var(--blue); width: 22px; height: 22px; margin-top: 1px; stroke-width: 1.6; }
.checks b { font-weight: 600; }
.cards-3 { border: 0; gap: 28px; }
.aud { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 36px 32px 30px; }
.aud:last-child { border-right: 1px solid var(--line); }
.aud:hover { background: #fff; color: var(--ink); }
.aud:hover p, .aud:hover li, .aud:hover .eyebrow { color: var(--slate); }
.aud .icon, .aud:hover .icon { width: 42px; height: 42px; color: var(--blue); margin-bottom: 22px; }
.aud h3 { font-size: 24px; margin-bottom: 14px; }
.aud p { font-size: 16px; color: var(--slate); }
.aud ul { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; gap: 8px; font-size: 15.5px; color: var(--ink); }
.aud li { white-space: normal; }
.aud li .icon, .aud:hover li .icon { width: 17px; height: 17px; margin: 0; color: var(--blue); }
.steps { gap: 0; background: none; border: 0; border-top: 1px solid var(--ink); }
.step { background: transparent; padding: 30px 32px 36px 0; border-bottom: 1px solid var(--line); }
.step:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.step-no { margin-bottom: 14px; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--blue); font: 500 48px/1 var(--serif); }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--slate); }
.week, .week > div { border-color: var(--line); }
.week .d { font: 600 .74rem/1 var(--sans); letter-spacing: .04em; color: var(--slate); text-transform: none; }
.week b { font-weight: 500; }
.week span { color: var(--slate); }
.week .on { background: var(--mist); }
.features { gap: 40px 28px; }
.feature .icon { display: none; }
.feature h3 { font-size: 24px; margin-bottom: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.feature p, .light .feature p { color: var(--slate); font-size: 16px; line-height: 1.6; }
.stats { border: 0; margin: 0 0 48px; gap: 24px; }
.stats div { border-top: 1px solid var(--ink); padding: 14px 0 0; }
.stats b { color: var(--ink); font: 500 clamp(38px, 3.5vw, 50px)/1 var(--serif); margin-bottom: 10px; }
.stats span { font: 400 14.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.cert-shot img, .light .cert-shot img { border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(21, 32, 58, .25); }
.kv { grid-template-columns: 170px 1fr; font-size: 1rem; }
.kv dt { font: 600 14.5px/1.7 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.notice { border-left: 3px solid var(--blue); background: var(--mist); }
.notice.warn { border-color: var(--bad); }
.contact-faq { background: var(--mist); border-color: var(--line); border-radius: 3px; }
.contact-faq h3 { font-weight: 500; }
.contact-faq p { color: var(--slate); }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 1px solid var(--ink); }
.unit-group-head h3 { font-size: clamp(28px, 3vw, 36px); }
.unit-group-head .eyebrow { color: var(--slate); }
.unit-row { border-bottom: 1px solid var(--line); }
a.unit-row:hover, .unit-row:target { background: var(--mist); box-shadow: -14px 0 0 var(--mist), 14px 0 0 var(--mist); }
.unit-row:target { box-shadow: -14px 0 0 var(--mist), 14px 0 0 var(--mist), -17px 0 0 var(--blue); }
.unit-row .no { font: 600 .8rem/1 var(--sans); letter-spacing: .04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.unit-row h4 { font-size: 1.45rem; }
.unit-row p { color: var(--slate); font-size: .95rem; }
.unit-more, .sample-pdf { color: var(--slate); }
.unit-more:hover, .sample-pdf:hover { color: var(--blue); }
.topic-badges li { color: var(--slate); border-color: var(--line); background: #fff; }
.spot-box { background: #fff; border-color: var(--line); border-left-color: var(--blue); border-radius: 3px; }
.spot-label { color: var(--blue); font: 600 .74rem/1 var(--sans); letter-spacing: .03em; text-transform: none; }
.spot span { color: var(--slate); }
.spot .avatar-mono { background: var(--mist); }
.sample-cta { background: var(--ink); color: #fff; border-radius: 2px; }
.sample-cta:hover { background: var(--blue); }
.sample-cta .icon { color: #fff; }
.sample-cta span { color: #dce1e8; }
.unit-row .pk { font: 500 .82rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.unit-pager { border-color: var(--line); }
.unit-pager a { font-size: 1.2rem; }
.unit-pager a span { font: 600 .76rem/1.8 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--slate); }
.learn-card { background: #fff; border-color: var(--line); border-radius: 3px; }
.learn-card:hover { border-color: var(--ink); }
.learn-units { color: var(--slate); border-color: var(--line); }

/* ------------------------------------------------------------ researchers */
.researchers { gap: 44px 28px; }
.avatar { aspect-ratio: 4 / 5; object-position: 50% 22%; filter: saturate(.85); border-radius: 3px; background: var(--mist); }
.avatar-mono { font: 400 3rem/1 var(--serif); color: var(--slate); border: 1px solid var(--line); background: var(--mist); }
.researcher-body { border-top: 0; padding-top: 18px; margin-top: 0; }
.researcher h3 { font-size: 23px; line-height: 1.15; margin-bottom: 6px; }
.researcher-inst { font-size: 14px; line-height: 1.45; color: var(--blue); margin-bottom: 10px; }
.researcher p { font-size: 14.5px; line-height: 1.55; color: var(--slate); }
.researcher-body .eyebrow { color: var(--slate); font-size: .8rem; font-weight: 500; }
.disclaimer, .section:not(.light) .disclaimer { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--slate); max-width: 80ch; margin: 48px 0 0; }
.research .disclaimer:first-child, .section .wrap > .disclaimer:first-child { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 44px; }

/* --------------------------------------------------------------- packages */
.packages { gap: 28px; max-width: 1100px; margin: 0 auto; align-items: start; }
.package { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 36px 32px 32px; }
.package.is-featured { background: #fff; border: 1.5px solid var(--ink); margin-top: -16px; padding-top: 52px; }
.package-flag { left: -1.5px; right: -1.5px; top: -1.5px; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; text-align: center; padding: 9px 0; border-radius: 3px 3px 0 0; }
.package > .eyebrow:not(.package-units-label) { order: 2; font: 400 15.5px/1.5 var(--sans); color: var(--slate); text-transform: none; letter-spacing: 0; margin: 6px 0 20px; }
.package h2, .package h3 { order: 1; font-size: 28px; line-height: 1.15; min-height: 0; margin: 0; display: block; }
.package-note { order: 3; color: var(--slate); font-size: 15.5px; line-height: 1.55; min-height: 0; margin: 0 0 18px; }
.fee { order: 4; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 18px; padding: 0 0 20px; border-top: 0; border-bottom: 1px solid var(--line); }
.fee-label { flex-basis: 100%; font: 600 .74rem/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--slate); margin-bottom: 10px; }
.fee-now { font: 500 48px/1 var(--serif); color: var(--ink); }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 18px/1 var(--sans); color: var(--slate); text-decoration: line-through; text-decoration-thickness: 1px; }
.fee-aid { order: 5; margin: -6px 0 14px; color: var(--slate); }
.fee-aid span { color: var(--blue); }
.fee-aid:hover { color: var(--ink); }
.package-incl { order: 6; margin: 0 0 28px; gap: 9px; font-size: 15px; line-height: 1.45; color: var(--ink); flex: 1 0 auto; }
.package-incl li { position: relative; padding-left: 28px; }
.package-incl li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }
.package > .btn { order: 7; }
.package .btn-ghost { border-color: var(--ink); color: var(--ink); }
.package-units-label { order: 8; border-top: 1px solid var(--line); margin: 28px 0 10px; padding-top: 22px; font-weight: 600; color: var(--slate); }
.package-units { order: 9; gap: 0; font-size: 15px; }
.package-units li a { grid-template-columns: 2em 1fr 14px; border: 0; border-top: 1px solid var(--line); background: none; padding: 8px 0; font-weight: 400; line-height: 1.35; }
.package-units li a::after { color: var(--blue); }
.package-units li a:hover, .package-units li a:focus-visible { background: var(--mist); border-color: var(--line); }
.package-units li a > span { font: 400 18px/1 var(--serif); color: var(--blue); font-variant-numeric: tabular-nums; }
.package-units li.gap { margin-top: 18px; }
.topic-badge { font: 600 .75rem/1 var(--sans); letter-spacing: .06em; color: var(--blue); border-color: var(--blue); }
.fee-footnote { text-align: center; color: var(--slate); font-size: 14.5px; line-height: 1.55; margin: 40px auto 0; max-width: 70ch; }
.aid-note { border-color: var(--blue); background: rgba(35, 80, 160, .06); border-radius: 3px; }
.aid-note p { color: var(--slate); }
.aid-note h3 { font-weight: 500; }
.aid-note.is-granted { border-color: var(--ok); background: rgba(47, 125, 91, .08); }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 28px; }
.testimonial, .section:not(.light) .testimonial { border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 34px 32px 30px; }
.testimonial blockquote { font: 400 20px/1.5 var(--serif); margin: 0 0 30px; }
.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-top: 0; padding-top: 0; font-size: 14.5px; line-height: 1.4; color: var(--slate); gap: 16px; }
.t-avatar { width: 50px; height: 50px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: #fff; border: 1px solid var(--blue); color: var(--blue); font: 400 17px/1 var(--serif); letter-spacing: .04em; }
.testimonial figcaption strong { color: var(--ink); font-weight: 600; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--slate); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 40px 28px; }
.post-card-img { aspect-ratio: 3 / 2; background: var(--mist); border-radius: 3px; margin-bottom: 20px; }
.post-card-img img { filter: saturate(.9); }
.post-card .eyebrow { font: 500 14px/1.4 var(--sans); color: var(--blue); letter-spacing: 0; text-transform: none; }
.post-card h3 { font-size: 25px; line-height: 1.2; margin: 8px 0 12px; }
.post-card p, .section:not(.light) .post-card p { font-size: 15.5px; line-height: 1.6; color: var(--slate); }
.post-card:hover h3 { text-decoration-color: var(--blue); }
.pager a, .pager span { border-color: var(--line); color: var(--ink); border-radius: 2px; }
.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-color: var(--line); }
.topic-links a:hover { border-color: var(--blue); color: var(--blue); }
.post-cover { border-radius: 3px; }
.post-cover .credit { color: rgba(255, 255, 255, .9); }
.post-meta { border-color: var(--line); }
.prose .citation .cite-doi { color: var(--blue); }
.prose .citation .cite-note { color: var(--slate); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--ink); }
.faq details, .light .faq details { border-bottom: 1px solid var(--line); }
.faq summary { font: 400 22px/1.3 var(--serif); padding: 24px 44px 24px 0; }
.faq summary::after { content: ""; right: 4px; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat; font: 0/0 a; transform: translateY(-50%); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq-a, .light .faq-a { color: var(--slate); font-size: 17px; line-height: 1.65; max-width: 68ch; padding: 0 0 26px; }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 0; border-radius: 3px; background: var(--mist); padding: 52px 56px; gap: 40px 56px; }
.newsletter h2 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 12px; }
.newsletter p { color: var(--slate); }
.newsletter-form { gap: 10px; }
.newsletter-form input[type=email] { border: 1px solid #aeb6c3; border-radius: 2px; background: #fff; color: var(--ink); font-size: 16px; height: 50px; padding: 0 16px; }
.newsletter-form input[type=email]::placeholder { color: #7a8595; }
.newsletter-form input[type=email]:focus { border-color: #aeb6c3; outline: 2px solid var(--blue); outline-offset: 1px; }
.newsletter-form .btn { height: 50px; }
.cta-final { padding: 150px 0 160px; background: #fff; border-top: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(38px, 5vw, 64px); max-width: 16em; margin: 0 auto; }
.cta-final .cta-cloud { position: absolute; left: 50%; top: 50%; width: min(720px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.cta-final .cta-inner { position: relative; }
.cta-final .h-actions { margin-top: 32px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #c9d0dc; border-top: 0; padding: 80px 0 0; font-size: 15px; }
.footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.logo-footer { height: 52px; margin-bottom: 20px; }
.footer-brand p { color: #c9d0dc; font-size: 15px; line-height: 1.55; max-width: 30ch; }
.footer-contact { color: #c9d0dc; grid-template-columns: 70px 1fr; }
.footer-contact dt { font: 600 .72rem/2.1 var(--sans); letter-spacing: .04em; text-transform: none; color: #8f9ab0; }
.footer-contact dd, .footer-contact a { color: #e7ebf2; }
.footer-contact a:hover { color: #fff; }
.footer-col .eyebrow { font: 600 15px/1.3 var(--sans); color: #fff; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.footer-col a { color: #e7ebf2; font-size: 15px; line-height: 1.4; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2e3a57; color: #c9d0dc; font-size: 13.5px; margin-top: 56px; }
.footer-bottom a { color: #e7ebf2; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ forms */
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; max-width: 500px; }
.auth-card h1 { font-size: 2.3rem; margin: 10px 0 14px; }
.auth-card p { color: var(--slate); }
.field label { font: 600 14.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea { border: 1px solid #aeb6c3; background: #fff; color: var(--ink); border-radius: 2px; height: 50px; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #aeb6c3; outline: 2px solid var(--blue); outline-offset: 1px; }
.field input[disabled] { background: var(--mist); color: var(--slate); }
.field .hint { color: var(--slate); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--blue); }
.pw-toggle, .link-button, .auth-card .field .hint a { color: var(--blue); }
.auth-switch { border-color: var(--line); }
.country-picker .cp-flag, .cp-list li img { box-shadow: 0 0 0 1px rgba(21, 32, 58, .12); }
.cp-list { border-color: var(--line); box-shadow: 0 12px 30px rgba(21, 32, 58, .12); }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--mist); }
.verify-form input { background: #fff; border: 1px solid #aeb6c3; border-radius: 2px 0 0 2px; color: var(--ink); font: 500 1.05rem/1 var(--sans); letter-spacing: .1em; }
.verify-form input:focus { border-color: #aeb6c3; outline: 2px solid var(--blue); outline-offset: 1px; }
.credential { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 3px; color: var(--ink); }
.credential .eyebrow { color: var(--blue); }
.credential .valid { color: var(--ok); border-color: var(--ok); font: 600 .78rem/1 var(--sans); letter-spacing: .02em; text-transform: none; }
.credential .facts, .credential th, .credential td { border-color: var(--line); }
.credential .facts b { font-weight: 600; }
.credential th { font: 600 .74rem/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--slate); }
.credential td:first-child { color: var(--slate); font: 400 .82rem/1 var(--sans); }
.copyline input { background: var(--mist); border-color: var(--line); color: var(--ink); font-family: var(--mono-real); }
.doc-card { background: #fff; border-color: var(--line); border-radius: 3px; }
.doc-card img { border-color: var(--line); }
.doc-card p { color: var(--slate); }
.coupon-form input { border-color: #aeb6c3; font: 500 .9rem/1.2 var(--sans); letter-spacing: .06em; }
.coupon-code { color: var(--slate); font-family: var(--mono-real); }
.tag-chip { background: var(--ink); color: #fff; }
.rating-opt span { border-color: var(--line); }
.rating-opt:hover span { border-color: var(--ink); }
.rating-opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.rating-opt input:checked + span small { color: #e9eef8; }
.rating-opt b { font-weight: 500; }
.upgrade-opt { border-color: var(--line); }
.upgrade-opt:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.upgrade-opt b { font-weight: 500; }
.upgrade-badge { background: var(--blue); }
.upgrade-price strong { font-weight: 500; }

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--slate); }
.tabs { box-shadow: inset 0 -1px 0 var(--line); }
.tabs a { font: 500 .9rem/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(--blue); }
.account-body .wrap > .notice { background: var(--mist); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--blue); }
.account-body .wrap > .notice-bad { border-left-color: var(--bad); }
.save-ok { color: var(--ok); }
.save-bad { color: var(--bad); }
.dialog { border-top: 3px solid var(--blue); border-radius: 3px; box-shadow: 0 24px 60px rgba(21, 32, 58, .3); }
.dialog h2 { font-weight: 500; }
.dialog p { color: var(--slate); }
.dialog-back { background: rgba(21, 32, 58, .55); }
.progress-strip, .progress-strip div { border-color: var(--line); }
.progress-strip b { font-weight: 500; }
.progress-strip span { font: 400 .78rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.bar { background: var(--line); }
.bar i { background: var(--blue); }
.ucard { background: #fff; border-color: var(--line); border-radius: 3px; }
.ucard.is-open { background: #fff; border-color: var(--ink); }
.ucard.is-locked { background: var(--mist); }
.ucard.is-locked h3, .ucard.is-locked .ucard-no { color: var(--dim); }
.ucard-no { font-weight: 500; }
.ucard-no small { font: 600 .66rem/1 var(--sans); letter-spacing: .06em; color: var(--dim); }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--slate); }
.ucard-more:hover { color: var(--blue); }
.ucard-score:not(.is-done) b { color: var(--dim); }
.pill { font: 600 .7rem/1 var(--sans); letter-spacing: .04em; text-transform: none; border-color: var(--line-strong); color: var(--ink); border-radius: 2px; }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.wait { color: var(--slate); }
.pill.bad { border-color: var(--bad); color: var(--bad); }
.exam-result.is-failed { border-color: var(--bad); }
.exam-score { color: var(--ink); font-family: var(--serif); font-weight: 500; }
.exam-score small, .exam-score span { color: var(--slate); }
.verdict { font: 600 .9rem/1 var(--sans); letter-spacing: .02em; text-transform: none; border-radius: 2px; }
.verdict.bad { background: var(--bad); }
.verdict.ok { background: var(--ok); }
.panel { background: #fff; border-color: var(--line); border-radius: 3px; }
.panel p { color: var(--slate); }
.panel.is-key { border-color: var(--ink); }
.paper-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.account-body, .account-head { background: var(--mist); }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-color: var(--line); }
.quiz-head p { color: var(--slate); }
.q { background: #fff; border-color: var(--line); border-radius: 3px; }
.q-no { font: 600 .72rem/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--slate); }
.q-text { font-weight: 500; }
.opt { border-color: var(--line); border-radius: 2px; }
.opt:hover { border-color: var(--line-strong); }
.opt .k { border-color: var(--line-strong); font: 600 .78rem/1 var(--sans); border-radius: 2px; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.opt:has(input:checked) .k { background: var(--blue); color: #fff; border-color: var(--blue); }
.opt:has(input:focus-visible) { outline-color: var(--blue); }
.explain { background: var(--mist); border-left: 2px solid var(--blue); color: var(--ink); }
.explain b { color: var(--slate); font: 600 .72rem/1 var(--sans); letter-spacing: .04em; text-transform: none; }
.quiz-foot { background: rgba(255, 255, 255, .94); border-color: var(--line); }
.quiz-foot .state { font: 400 .82rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.scorebox { border-color: var(--ink); border-radius: 3px; }
.scorebox .big { font-weight: 500; }
.scorebox .big small { color: var(--slate); }
.timer { background: #fff; border-color: var(--ink); font: 600 .78rem/1 var(--sans); letter-spacing: .04em; text-transform: none; border-radius: 2px; }
.timer b { font: 500 1.6rem/1 var(--serif); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.timer.is-low { border-color: var(--bad); color: var(--bad); }
.breakdown td, .breakdown th { border-color: var(--line); }
.breakdown th { font: 600 .74rem/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--slate); }
.q-figure img { filter: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ unit reader */
.reader-hero { background: var(--ink); color: #fff; }
.reader-hero img.bg { filter: grayscale(1) brightness(.55); }
.reader-hero .eyebrow { color: #afc2ec; }
.reader-hero .sub { font: italic 400 1.4rem/1.35 var(--serif); color: #e6eaf0; }
.reader-hero .credit { color: rgba(255, 255, 255, .85); }
.reader { background: #fff; color: var(--ink); }
.toc a { border-color: var(--line); color: var(--slate); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--blue); }
.unit-text h2 { border-bottom: 1px solid var(--ink); }
.unit-text h4 { font: italic 600 1.05rem/1.3 var(--sans); }
.unit-text .secno { font: 500 .6em/1 var(--sans); color: var(--slate); }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--mist); }
.unit-text .fn, .unit-text figcaption { color: var(--slate); }
.unit-text table, .unit-text th { border-color: var(--ink); }
.box { background: #fff; border-color: var(--ink); border-radius: 3px; }
.box-kind { font: 600 .72rem/1.2 var(--sans); letter-spacing: .08em; }
.box-title { font-weight: 600; }
.box-keyequation { --bx: #2350a0; --bx-l: #e9eef8; }
.box-law, .box-laws { --bx: #15203a; --bx-l: #eceff4; }
.box-derivation { --bx: #15203a; --bx-l: #eceff4; }
.box-example { --bx: #2f7d5b; --bx-l: #e8f3ee; }
.box-excursion { --bx: #7a5a44; --bx-l: #f4efea; }
.box-research { --bx: #142e68; --bx-l: #e8ecf5; }
.box-research .box-kind, .box-research .box-inst { color: #c3cfe8; }
.box-research .box-name { font-weight: 500; }
.box-keypoints { --bx: #9a7a2a; --bx-l: #f7f2e4; }
.box-keypoints .box-kind, .box-questions .box-kind { color: #7d6220; }
.box-check { --bx: #b23a2e; --bx-l: #fbecea; }
.box-check .check-result { border-top-color: rgba(178, 58, 46, .25); }
.box-interactive { --bx: #566174; --bx-l: #f2f4f7; }
.ia-slider input[type=range] { accent-color: #2350a0; }
.ia-btn.on { background: #15203a; border-color: #15203a; }
.ia-stage { border-radius: 3px; }
.paperlink { border-color: var(--line); }
.paperlink span { font: 600 .72rem/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--slate); }
.reader-end { background: var(--ink); color: #fff; border-radius: 3px; }
.reader-end h3 { font-weight: 500; }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%); }
.lit-list li { border-color: var(--line); }
.lit-list a.t { font-weight: 500; }
.lit-list .m { color: var(--slate); }

/* ------------------------------------------------------- prose and pages */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 2rem; }
.prose blockquote { font: italic 400 1.4rem/1.45 var(--serif); border-left: 2px solid var(--blue); }
.legal-updated { font: 500 .8rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.legal-box { background: var(--mist); border-color: var(--line); border-radius: 3px; }
.prose th { font: 600 .84rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.prose td { border-color: var(--line); }
.stack-table tr { border-color: var(--line); }
.stack-table td::before { font: 600 .72rem/1.9 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--slate); }
.resource { border-color: var(--line); }
.resource:hover { background: var(--mist); }
.resource-name { font-weight: 500; }
.resource p { color: var(--slate); }
.resource-host { color: var(--blue); }
.resource-note { color: var(--slate); }
.resource-note .icon { color: var(--blue); }
.eq-card { background: var(--mist); border-color: var(--line); border-radius: 3px; }
.eq-card h4 { font-weight: 600; }
.eq-card p { color: var(--slate); }
.eq-toc { border-color: var(--line); border-radius: 3px; }
.eq-toc a span { font: 600 .8rem/1 var(--sans); color: var(--slate); }
.pathway-map td, .pathway-map th { border-color: var(--line); }
.aid-body > p { color: var(--slate); }
.aid-contact { color: var(--slate) !important; }
.aid-apply-aside { border-top-color: var(--ink); color: var(--slate); }
.aid-apply-aside h3 { font-weight: 500; }
.aid-apply-aside a { color: var(--blue); }
.aid-form fieldset { background: var(--mist); border-color: var(--line); border-radius: 3px; }
.aid-form legend { font-weight: 500; }
.aid-form legend span { background: var(--blue); color: #fff; }
.aid-location { background: var(--mist); border-color: var(--line); }
.aid-location em { color: var(--slate); }
.aid-err { color: var(--bad); }
.aid-submit span { color: var(--slate); }
.aid-wrong summary { color: var(--slate); }
.geo-test-badge { box-shadow: 0 4px 18px rgba(21, 32, 58, .3); }

/* ----------------------------------------------------------------- cookie */
.cookie { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 20px 60px rgba(21, 32, 58, .18); }
.cookie p { color: var(--slate); }
.cookie .btn-ghost { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .step:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .packages { max-width: 560px; }
  .package.is-featured { margin-top: 0; }
  .newsletter { padding: 40px 32px; }
}
@media (max-width: 860px) {
  .kv { grid-template-columns: 1fr; }   /* the engine stacks label and value under 860px; the two-column rule above must not override it */
  .logo { height: 38px; }
  .cards-3 { gap: 20px; }
  .aud { border-bottom: 1px solid var(--line); }
  .aud:last-child { border-bottom: 1px solid var(--line); }
  .split-media img { aspect-ratio: 4 / 3; }
  .stats div { border-bottom: 0; padding: 14px 0 0; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2n) { padding-left: 0; border-left: 0; }
  .step { padding-right: 0; }
  .aud, .testimonial, .package { padding: 28px 22px 24px; }
  .package.is-featured { padding-top: 48px; }
  .newsletter { padding: 32px 20px; }
  .faq summary { font-size: 19px; }
  .cta-final { padding: 100px 0 110px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-set + .marquee-set { display: none; }
  .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding: 0 16px; }
  .marquee-clip { -webkit-mask-image: none; mask-image: none; }
}

/* ================================================================ home page */
/* The landing page (theme/home.php): hero with the orbital table, Mist alumni band, level scheme, cards, steps,
   topic cards with orbitals, fee cards, drawn certificate, page stack, Solvay photograph, FAQ, newsletter, final call. */
.h-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin: 32px 0 0; }
.h-actions.center { justify-content: center; }
.h-note { font-size: 16px; color: var(--slate); margin: 22px 0 0; max-width: 36em; }
.eq { display: inline-block; vertical-align: middle; overflow: visible; }
.eq-inline .eq { vertical-align: -.28em; height: 1.25em; width: auto; }
i { font-style: italic; }

/* 1. hero */
.h-hero { padding: 44px 0 56px; background: linear-gradient(180deg, #fff 0%, #fff 62%, var(--mist) 100%); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 52px; align-items: center; }
.h-hero h1 { display: block; margin: 0; font-size: inherit; }
.h-hero-name { display: block; font: italic 400 26px/1.3 var(--serif); color: var(--blue); margin-bottom: 18px; }
.h-hero-headline { display: block; font-size: clamp(42px, 4.3vw, 62px); line-height: 1.06; font-weight: 500; letter-spacing: -.015em; }
.h-hero-sub { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 33em; margin: 26px 0 0; }
.h-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.h-checks li { display: flex; align-items: center; gap: 9px; }
.h-checks .icon { color: var(--blue); width: 20px; height: 20px; stroke-width: 1.8; }

/* the orbital table */
.orbitals { margin: 0; }
.orb-table { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); gap: 8px;
  grid-template-areas:
   ".  h1  h2  h3  h4"
   "r1 c10 .   i   i"
   "r2 c20 c21 i   i"
   "r3 c30 c31 c32 ."
   "r4 c40 c41 c42 c43"; }
.ax { font-family: var(--serif); color: var(--ink); font-size: 20px; line-height: 1.1; display: flex; align-items: center; }
.ax small { font-family: var(--sans); font-size: 13px; color: var(--slate); margin-left: 8px; }
.ax i, .oi-q i, .oi-e i, .orbitals figcaption i, .levels figcaption i { font-family: var(--serif); font-style: italic; font-size: 1.08em; padding-right: .08em; }
.ax-col { justify-content: flex-start; padding: 0 0 6px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.ax-row { font-size: 15px; font-family: var(--sans); color: var(--slate); justify-content: flex-start; border-right: 1px solid var(--line); padding-right: 6px; white-space: nowrap; }
.orb-cell { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 3px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.orb-cell canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; opacity: 1; transition: opacity .7s ease; }
.orb-cell:hover, .orb-cell:focus-visible { border-color: var(--line); box-shadow: 0 6px 18px rgba(21, 32, 58, .08); }
.orb-cell[aria-pressed="true"] { border-color: var(--ink); }
.cell-label { position: absolute; left: 8px; top: 6px; font-family: var(--serif); font-size: 16px; color: var(--ink); pointer-events: none; }
.js-anim .orb-cell canvas { opacity: 0; }
.js-anim .orb-cell.drawn canvas { opacity: 1; }
.orb-info { grid-area: i; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 4px 0 22px; border-left: 1px solid var(--line); min-width: 0; }
.oi-name { font-family: var(--serif); font-size: 54px; line-height: 1; margin: 0 0 10px; }
.oi-q { font-size: 17px; margin: 0 0 6px; }
.oi-nodes, .oi-e { font-size: 15px; color: var(--slate); margin: 0 0 4px; line-height: 1.45; }
.oi-e { color: var(--ink); }
.oi-w { color: var(--slate); font-size: 13.5px; }
.oi-m { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.oi-m:empty { display: none; }
.oi-m button { min-width: 36px; height: 36px; padding: 0 6px; border: 1px solid var(--line); background: #fff; border-radius: 2px; font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer; }
.oi-m button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.oi-m-label { width: 100%; font-size: 13px; color: var(--slate); margin-bottom: 2px; }
.orbitals figcaption { margin: 18px 0 0 52px; font-size: 14px; line-height: 1.55; color: var(--slate); max-width: 62ch; }

/* 2. alumni */
.alumni { padding: 40px 0 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); overflow: hidden; }
.h-alumni-title { font: 500 15px/1.4 var(--sans); color: var(--slate); text-align: center; margin: 0 0 24px; letter-spacing: .01em; }
.marquee-clip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { animation-duration: 70s; }
.marquee-set { gap: 64px; padding-right: 64px; }
.marquee img { height: 34px; max-width: none; filter: grayscale(1) brightness(0); opacity: .5; }
.marquee-clip:hover .marquee { animation-play-state: paused; }

/* 3. intro: the level scheme */
.levels { margin: 0; background: var(--mist); padding: 36px 34px 26px; border-radius: 3px; }
.levels-svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.lv-line { stroke: var(--ink); stroke-width: 1.3; }
.lv-faint { stroke: #9aa3b2; stroke-width: .8; }
.lv-ion { stroke: #9aa3b2; stroke-width: 1; stroke-dasharray: 4 4; }
.lv-n { font-size: 14px; fill: var(--ink); }
.lv-e { font-size: 13px; fill: var(--slate); }
.lv-arrow { stroke-width: 2.2; }
.lv-note { font-size: 13px; fill: var(--slate); }
.lv-lam { font-size: 12.5px; fill: var(--slate); }
.lv-tick { stroke: #9aa3b2; stroke-width: 1; }
.levels figcaption { font-size: 14px; line-height: 1.55; color: var(--slate); margin-top: 14px; }

/* 5. steps */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.h-steps li { padding: 30px 32px 36px 0; border-bottom: 1px solid var(--line); }
.h-steps li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { display: block; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--blue); margin-bottom: 18px; }
.h-steps h3 { font-size: 23px; margin-bottom: 10px; }
.h-steps p { font-size: 16px; color: var(--slate); margin: 0; }

/* 6. topics */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.group { background: #fff; border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; overflow: hidden; }
.group-art { position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.group-art canvas { position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.art-label { position: absolute; left: 16px; bottom: 12px; font: italic 400 15px/1 var(--serif); color: var(--slate); }
.group-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.group-range { font-size: 14.5px; font-weight: 600; color: var(--blue); margin: 0 0 8px; }
.group h3 { font-size: 27px; margin-bottom: 14px; }
.group-body > p:not(.group-range) { font-size: 16px; color: var(--slate); }
.group-eq { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; margin: 4px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eq-name { font-size: 13.5px; color: var(--slate); }
.eq-math { font-size: 19px; color: var(--ink); min-height: 2.1em; display: flex; align-items: center; }
.eq-math .eq { max-width: 100%; height: auto; }
.eq-wide { font-size: 15px; }
.unit-list { margin: 0; padding: 0 0 0 2.1em; font-size: 15px; line-height: 1.5; color: var(--ink); }
.unit-list li { margin: 0 0 6px; padding-left: 4px; }
.unit-list li::marker { color: var(--slate); font-variant-numeric: tabular-nums; }
.unit-list a { color: inherit; text-decoration: none; }
.unit-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.all-units { margin: 40px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.all-units summary { cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.all-units summary::-webkit-details-marker { display: none; }
.all-units summary::after { content: ""; width: 12px; height: 12px; flex: none; margin-left: 20px; background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat; transition: transform .2s; }
.all-units[open] summary::after { transform: rotate(45deg); }
.unit-summaries { columns: 2; column-gap: 56px; margin: 0 0 26px; padding: 0 0 0 1.9em; font-size: 15px; color: var(--slate); }
.unit-summaries li { break-inside: avoid; margin: 0 0 16px; }
.unit-summaries b { display: block; color: var(--ink); font-weight: 600; }

/* 9. certificate (drawn, until the sample exists) */
.cert-shot { display: flex; justify-content: center; }
.cert { position: relative; overflow: hidden; width: 100%; max-width: 560px; aspect-ratio: 1.414; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(21, 32, 58, .25); padding: 7% 9%; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; outline: 1px solid var(--line); outline-offset: -14px; }
.cert-cloud { position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.cert > p, .cert-foot { position: relative; margin: 0; }
.cert-kicker { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); margin: 0 0 6px; }
.cert-org { font-size: 13px; color: var(--blue); margin: 0 0 6% !important; font-weight: 600; }
.cert-line { font-size: 12.5px; color: var(--slate); max-width: 34em; }
.cert-name { font: italic 400 clamp(24px, 3vw, 38px)/1.2 var(--serif); margin: 4px 0 6px !important; padding: 0 24px 4px; border-bottom: 1px solid var(--ink); }
.cert-foot { display: flex; justify-content: space-between; width: 100%; margin-top: 8%; font-size: 11px; color: var(--slate); text-align: left; line-height: 1.4; }
.cert-foot b { color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.cert-foot span:last-child { text-align: right; }

/* 10. sample unit: the page stack */
.pages { position: relative; display: block; min-height: 620px; text-decoration: none; color: var(--ink); }
.page { position: absolute; width: 74%; aspect-ratio: 595 / 842; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(21, 32, 58, .3); }
img.page { height: auto; }
.page-3 { left: 22%; top: 26px; transform: rotate(5deg); }
.page-2 { left: 13%; top: 12px; transform: rotate(2deg); }
.page-1 { left: 4%; top: 0; z-index: 2; transition: transform .2s; }
span.page-1 { padding: 9% 9% 0; display: flex; flex-direction: column; overflow: hidden; }
.pages:hover .page-1, .pages:focus-visible .page-1 { transform: translateY(-4px); }
.pg-unit { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.pg-title { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.12; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pg-text { font-size: clamp(10.5px, .95vw, 12.5px); line-height: 1.6; color: #2b3550; margin-bottom: 10px; hyphens: auto; text-align: justify; }
.pg-eq { display: flex; align-items: center; justify-content: center; position: relative; font-size: clamp(15px, 1.5vw, 19px); margin: 4px 0 12px; }
.pg-eqn { position: absolute; right: 0; font-size: 11.5px; color: var(--slate); }
.sample-card { border-left: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; margin: 28px 0 0; }
.sample-card h3 { font-size: 27px; margin: 0 0 10px; }
.sample-card > p { color: var(--slate); font-size: 16px; }
.oq-head { font-weight: 600; font-size: 15.5px; margin: 22px 0 10px !important; color: var(--ink) !important; }
.oq { margin: 0; padding: 0 0 0 1.5em; font-size: 15.5px; line-height: 1.55; }
.oq li { margin: 0 0 9px; padding-left: 4px; }
.oq li::marker { color: var(--blue); font-weight: 600; }

/* 12. community */
.community-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: end; margin-bottom: 56px; }
.community-top .section-head { margin-bottom: 0; }
.h-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.h-stats div { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 14px; }
.h-stats dd { order: -1; margin: 0; font-family: var(--serif); font-size: clamp(38px, 3.5vw, 50px); line-height: 1; font-weight: 500; white-space: nowrap; }
.h-stats dt { font-size: 14.5px; color: var(--slate); margin-top: 10px; line-height: 1.4; min-height: 2.8em; }
.wide-photo { margin: 0 0 56px; }
.wide-photo img { width: 100%; aspect-ratio: 2.4; object-fit: cover; object-position: 50% 45%; border-radius: 3px; filter: grayscale(1) contrast(.95); }
.wide-photo figcaption { font-size: 13px; color: var(--slate); margin-top: 10px; }
.wide-photo figcaption a { color: var(--slate); }

/* responsive, home page */
@media (max-width: 1180px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .orbitals { max-width: 680px; }
}
@media (max-width: 920px) {
  .h-steps { grid-template-columns: 1fr 1fr; }
  .h-steps li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .h-steps li:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .groups { grid-template-columns: 1fr; }
  .community-top { grid-template-columns: 1fr; gap: 48px; }
  .unit-summaries { columns: 1; }
  .pages { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 520px; }
}
@media (max-width: 600px) {
  .h-hero { padding: 32px 0 44px; }
  .h-hero-name { font-size: 21px; margin-bottom: 12px; }
  .h-hero-sub { font-size: 17px; }
  .h-checks { gap: 8px 20px; font-size: 15px; }
  .orb-table { grid-template-columns: 34px repeat(4, minmax(0, 1fr)); gap: 5px;
    grid-template-areas:
     ".  h1  h2  h3  h4"
     "r1 c10 .   .   ."
     "r2 c20 c21 .   ."
     "r3 c30 c31 c32 ."
     "r4 c40 c41 c42 c43"
     "i  i   i   i   i"; }
  .ax { font-size: 17px; }
  .ax small { display: none; }
  .ax-row { font-size: 12.5px; padding-right: 4px; }
  .cell-label { font-size: 13px; left: 5px; top: 3px; }
  .orb-info { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; margin-top: 8px; }
  .oi-name { font-size: 40px; }
  .orbitals figcaption { margin-left: 0; }
  .h-steps { grid-template-columns: 1fr; }
  .h-steps li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .h-steps li { padding-right: 0; }
  .levels { padding: 24px 16px 18px; }
  .lv-n { font-size: 18px; } .lv-e { font-size: 16px; } .lv-note { font-size: 16px; } .lv-lam { font-size: 14.5px; }
  .group-body { padding: 24px 22px; }
  .h-stats { grid-template-columns: 1fr; gap: 20px; }
  .h-stats dt { min-height: 0; }
  .wide-photo img { aspect-ratio: 1.6; }
  .cert-line { font-size: 10.5px; }
  .cert-org { font-size: 11px; }
  .cert-foot { font-size: 9.5px; }
}
