/* Number Theory Masterclass theme "White Gallery, LaTeX Type": overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The tokens turn the engine's dark ground into the white wall, so both
   the engine's "dark" and its "light" sections are the same white room. What is redrawn here: the type (LM Roman 17
   display, LM Roman 10 for h3 and labels, Source Sans 3 text, no tracked capitals, sentence case), the gallery language
   (1 px ink frames with a faint echo line, hairlines, 2 px radius on buttons only, no shadows), the white header and the
   pale footer, the page heroes with a hung plate, buttons, the tuition vitrines, forms, the unit reader and its boxes,
   the account pages. The second half styles the landing page (theme/home.php: pieces, frames, wall labels, rooms). */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 1.125rem/1.6 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -.005em; }
h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 4.8vw, 4.2rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.3rem; }
b, strong { font-weight: 600; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gut)); }
.skip { background: var(--teal); color: #fff; }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 600 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.lead, .light .lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.credit { font: 400 .86rem/1.35 var(--sans); letter-spacing: 0; color: var(--grey); }
.credit a { color: inherit; }
.link-arrow { font: 600 1.04rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; gap: .35em; }
.link-arrow:hover { opacity: 1; color: var(--teal-deep); }
.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, .footer-brand a, .split-body p a, .section-head p a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rule, .light .rule { border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- buttons */
.btn { min-height: 48px; padding: .7em 1.45em; border: 1px solid var(--teal); border-radius: 2px; font: 600 1.04rem/1.2 var(--sans); letter-spacing: 0; gap: .5em; color: var(--teal); background: transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn-light, .light .btn-light, .reader .btn-light, .reader-end .btn-light, .paper-card .btn-light, .auth-card .btn-light, .dialog .btn-light, .page-hero .btn-light, .reader-hero .btn-light, .header-cta .btn-light, .mm-cta .btn-light { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-light:hover, .light .btn-light:hover, .reader .btn-light:hover, .reader-end .btn-light:hover, .header-cta .btn-light:hover, .mm-cta .btn-light:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost, .light .btn-ghost, .reader .btn-ghost, .header-cta .btn-ghost, .mm-cta .btn-ghost, .page-hero .btn-ghost, .reader-hero .btn-ghost, .reader-end .btn-ghost, .cookie .btn-ghost { color: var(--teal); border-color: var(--teal); background: transparent; }
.btn-ghost:hover, .light .btn-ghost:hover, .reader .btn-ghost:hover, .reader-end .btn-ghost:hover { background: var(--wash); color: var(--teal-deep); border-color: var(--teal); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: .45em 1.05em; font-size: .98rem; }
.btn .icon { width: 1.1em; height: 1.1em; }
.hero-actions { gap: 14px 18px; align-items: center; }
.hero-actions .link-arrow { align-self: center; }

/* ----------------------------------------------------------------- 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(--rule); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: none; }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { gap: 24px; }
.brand { flex: 0 0 auto; }
.logo { height: 40px; width: auto; }
.nav { margin-left: auto; gap: 4px; }
.nav-top { font: 500 1.04rem/1 var(--sans); color: var(--ink); padding: 12px; letter-spacing: 0; display: inline-flex; align-items: center; gap: 8px; }
.nav-top::after { width: 6px; height: 6px; border-width: 1.3px; margin-left: 0; opacity: .7; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.nav-group:hover .nav-top, .nav-group.is-open .nav-top, .nav-group:focus-within .nav-top, .nav-top:hover { color: var(--teal); }
.nav-group.is-open .nav-top::after { transform: rotate(-135deg) translateY(-1px); }
.nav-menu { top: calc(100% + 10px); min-width: 270px; background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 10px 0; transform: none; transition: opacity .12s, visibility .12s; }
.nav-menu a { padding: 9px 20px; font: 400 1rem/1.4 var(--sans); color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--wash); color: var(--teal); outline-offset: -3px; }
.header-cta { gap: 18px; }
.nav-login { font: 500 1.04rem/1 var(--sans); color: var(--ink); }
.nav-login:hover { color: var(--teal); text-decoration: none; }
.burger { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 2px; }
.burger span { background: var(--ink); }
.mobile-menu { background: #fff; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 20px 0 30px; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); }
.mm-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mm-group { padding: 0; border: 0; }
.mm-group .eyebrow { font: 700 1.08rem/1.3 var(--serif); color: var(--ink); margin-bottom: 8px; }
.mm-group a { font: 400 1.05rem/1.4 var(--sans); padding: 6px 0; color: var(--ink-2); }
.mm-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.light { background: var(--wall); color: var(--ink); }
.section.tight { padding: clamp(48px, 6vw, 84px) 0; }
.section.light + .section.light, .section + .section { border-top: 1px solid var(--rule); }
.section-head { gap: 16px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 860px; }
.section-head p, .light .section-head p { font-size: clamp(1.1rem, 1.35vw, 1.25rem); color: var(--ink-2); max-width: 40em; }
.flash { background: var(--wash); color: var(--teal-deep); border-bottom: 1px solid var(--rule); font-size: 1rem; }
.flash-error { background: #f8eeed; color: var(--bad); }

/* -------------------------------------------------------------- page hero */
/* A white room with the title on the left; a photograph, when the page has one, hangs beside it as a framed plate. */
.page-hero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--rule); padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); overflow: visible; }
.page-hero .eyebrow { color: var(--teal); }
.page-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.2rem); margin: 14px 0 18px; max-width: 13em; color: var(--ink); text-wrap: balance; }
.page-hero .lead { color: var(--ink-2); }
.page-hero.has-img .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero.has-img::before, .page-hero.has-img::after { content: none; }
.page-hero.has-img .wrap::after { content: ""; display: block; grid-column: 2; grid-row: 1 / span 6; width: 100%; aspect-ratio: 4 / 3; max-height: 360px; background: var(--hero-img) center/cover; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; }
.page-hero.has-img .wrap > * { grid-column: 1; }
@media (max-width: 1040px) {
  .page-hero.has-img .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero.has-img .wrap::after { display: none; }
}

/* ------------------------------------------------------- split, checks, cards */
.split-body h2 { margin-bottom: .6em; }
.split-body p, .light .split-body p { color: var(--ink-2); font-size: 1.125rem; }
.split-media img { aspect-ratio: auto; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; }
.split-media .credit { position: static; display: block; margin-top: 16px; }
.checks { gap: 0; margin: 1.6em 0 1.8em; max-width: 60ch; }
.checks li { grid-template-columns: 1fr; gap: 0; padding: .8em 0; border-top: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks .icon, .light .checks .icon { display: none; }
.checks b { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; margin-right: .25em; }
.cards-3 { border: 0; gap: clamp(28px, 3.5vw, 56px); }
.aud { padding: 0; border: 0; background: transparent; }
.aud:hover { background: transparent; color: inherit; }
.aud p, .aud:hover p, .aud:hover li { color: var(--ink-2); }
.aud .icon { display: none; }
.aud h3 { font-size: 1.4rem; margin-bottom: .6em; }
.aud p { font-size: 1.125rem; }
.aud ul { border-top: 0; padding-top: 0; margin-top: 1.1em; gap: .35em; color: var(--ink); font-size: 1.05rem; }
.aud li { white-space: normal; align-items: baseline; gap: .6em; }
.aud li .icon { display: block; width: .9em; height: .9em; color: var(--teal); position: relative; top: .1em; stroke-width: 1.6; }
.steps { grid-template-columns: 1fr; gap: 0; background: none; border: 0; margin-top: 1.6em; }
.step { background: transparent; padding: 16px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-no { margin: 0; display: block; grid-row: span 2; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--teal); font: 400 1.9rem/1 var(--display); display: block; }
.step h3 { font-size: 1.16rem; margin-bottom: .3em; }
.step p { color: var(--ink-2); font-size: 1.04rem; }
.week { border: 1px solid var(--rule); }
.week > div { border-right: 1px solid var(--rule); }
.week .d { font: 600 .9rem/1 var(--sans); letter-spacing: 0; color: var(--grey); text-transform: none; }
.week b { font: 700 1.1rem/1.25 var(--serif); }
.week span { color: var(--ink-2); }
.week .on { background: var(--wash); }
.features { gap: clamp(28px, 3.5vw, 56px); }
.feature .icon { display: none; }
.feature h3 { font-size: 1.3rem; margin-bottom: .5em; }
.feature p, .light .feature p { color: var(--ink-2); font-size: 1.125rem; }
.stats { border: 0; margin: 44px 0 56px; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 64px; }
.stats div { padding: 0; display: flex; flex-direction: column; }
.stats b { font: 400 clamp(2.6rem, 4vw, 3.6rem)/1.05 var(--display); color: var(--ink); margin-bottom: 4px; }
.stats span { font: 400 .98rem/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); max-width: 12em; }
.cert-shot img, .light .cert-shot img { border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; box-shadow: none; }
.kv dt { font: 600 .95rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.notice { border-left: 2px solid var(--teal); background: var(--wash); color: var(--ink); font-size: 1.04rem; }
.notice.warn { border-color: var(--bad); background: #f8eeed; }
.notice.important { background: #fdf3e8; border: 1px solid #e6c9a6; border-left: 3px solid #b86a1f; color: #5a3410; }
.contact-faq { background: transparent; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px; }
.contact-faq h3 { font: 700 1.3rem/1.25 var(--serif); }
.contact-faq p { color: var(--ink-2); }
.disclaimer, .section:not(.light) .disclaimer { margin-top: 52px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--rule); max-width: 60em; font-size: .95rem; font-style: italic; color: var(--grey); }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.unit-group-head h3 { font: 400 1.75rem/1.15 var(--display); }
.unit-row { border-bottom: 1px solid var(--rule); padding: 22px 0; }
a.unit-row:hover, .unit-row:target { background: var(--wash); box-shadow: -14px 0 0 var(--wash), 14px 0 0 var(--wash); }
.unit-row:target { box-shadow: -14px 0 0 var(--wash), 14px 0 0 var(--wash), -16px 0 0 var(--teal); }
.unit-row .no { font: 400 1.15rem/1 var(--serif); letter-spacing: 0; color: var(--teal); }
.unit-row[style*="align-items:start"] .no { height: 1.45rem; padding-top: 0; }
.unit-row h4 { font: 700 1.2rem/1.3 var(--serif); }
.unit-row p { color: var(--ink-2); font-size: 1rem; }
.unit-row p em { color: var(--grey); }
.unit-more, .sample-pdf { color: var(--teal); font-weight: 600; }
.unit-more:hover, .sample-pdf:hover { color: var(--teal-deep); }
.topic-badges li { border-radius: 2px; border: 1px solid var(--rule); background: #fff; color: var(--grey); font-size: .84rem; }
.spot-box { background: transparent; border: 0; border-left: 2px solid var(--teal); padding: 4px 0 4px 16px; }
.spot-label { font: 600 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--teal); }
.spot span { color: var(--grey); }
.sample-cta { background: var(--teal); color: #fff; border-radius: 2px; }
.sample-cta:hover { background: var(--teal-deep); }
.sample-cta .icon { color: #fff; }
.sample-cta span { color: #d6e6e6; }
.unit-row .pk { font: 600 .9rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.unit-pager { border-top: 1px solid var(--ink); }
.unit-pager a { font: 700 1.1rem/1.3 var(--serif); }
.unit-pager a span { font: 600 .9rem/1.8 var(--sans); letter-spacing: 0; text-transform: none; color: var(--teal); }
.learn-card { background: #fff; border: 1px solid var(--rule); }
.learn-card:hover { border-color: var(--ink); transform: none; }
.learn-body h3 { font: 400 1.75rem/1.15 var(--display); }

/* ------------------------------------------------------------ researchers */
/* The portrait hangs in a thin ink frame with a white mat, as a piece on the wall. */
.researchers { gap: 48px clamp(24px, 2.6vw, 40px); }
.avatar { width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--ink); padding: 6px; background: #fff; filter: grayscale(1) contrast(1.05); object-fit: cover; object-position: 50% 25%; }
.avatar-mono { font: 400 3rem/1 var(--display); color: var(--grey); border: 1px solid var(--ink); background: #fff; letter-spacing: 0; }
.researcher-body { border-top: 0; padding-top: 16px; margin-top: 0; }
.researcher h3 { font-size: 1.18rem; margin-bottom: .2em; }
.researcher-inst { font: 500 .95rem/1.35 var(--sans); color: var(--teal); margin-bottom: .5em; }
.researcher p { font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
.researcher-body .eyebrow { font-size: .92rem; color: var(--grey); }
.researcher:hover h3 { text-decoration-color: var(--teal); text-underline-offset: 4px; }

/* --------------------------------------------------------------- packages */
/* The three masterclasses as vitrines: one row between two ink rules, hairlines between the columns, the recommended
   masterclass on the teal wash. The names are set in LM Roman 17, the fees too. */
.packages { gap: 0; align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.package, .light .package { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border: 0; background: transparent; color: var(--ink); position: relative; }
.package + .package { border-left: 1px solid var(--rule); }
.package.is-featured, .light .package.is-featured { background: var(--wash); border-color: var(--rule); }
.package-flag { position: static; order: 0; align-self: flex-start; background: none; color: var(--teal); font: 400 1rem/1.6 var(--caps); letter-spacing: 0; text-transform: none; padding: 0; margin: 0 0 .5em; }
.package > .eyebrow:not(.package-units-label) { order: 2; font: 400 1.04rem/1.4 var(--sans); color: var(--grey); margin: 0 0 1.1em; }
.package h2, .package h3 { order: 1; font: 400 1.8rem/1.15 var(--display); margin: 0 0 .25em; min-height: 2.3em; display: block; }
.package-note { order: 3; color: var(--ink-2); font-size: 1.03rem; min-height: 0; margin: 0 0 1em; }
.fee { order: 4; border: 0; padding: 0; margin: 0 0 1.2em; gap: 4px 14px; align-items: baseline; }
.fee-label { font: 400 .98rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); margin-bottom: 8px; }
.fee-now { font: 400 clamp(2.5rem, 3.5vw, 3.2rem)/1 var(--display); color: var(--ink); }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 1.1rem/1 var(--sans); color: var(--grey); text-decoration: line-through; }
.fee-aid { order: 5; margin: -6px 0 16px; color: var(--teal); font-weight: 600; font-size: .98rem; }
.fee-aid span { color: var(--teal); }
.fee-aid:hover { color: var(--teal-deep); text-decoration: underline; }
.package > .btn { order: 9; margin-top: auto; }
.package-incl { order: 6; margin: 0 0 1.4em; gap: .35em; font-size: 1rem; color: var(--ink); }
.package-incl li { position: relative; padding-left: 1.4em; }
.package-incl li::before { content: ""; position: absolute; left: 1px; top: .4em; width: .65em; height: .35em; border-left: 1.6px solid var(--teal); border-bottom: 1.6px solid var(--teal); transform: rotate(-45deg); }
.package-units-label { order: 7; border-top: 1px solid var(--rule); margin: 0 0 10px; padding-top: 18px; color: var(--grey); font: 600 .95rem/1.3 var(--sans); }
.package-units { order: 8; gap: 0; margin: 0 0 1.8em; font-size: .98rem; }
.package-units li a { grid-template-columns: 2em 1fr 14px; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 7px 0; font-weight: 400; line-height: 1.35; transition: none; color: var(--ink); }
.package-units li a::after { color: var(--teal); }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; border-color: var(--teal); color: var(--teal); }
.package-units li a > span { font: 400 .95rem/1.5 var(--serif); color: var(--teal); }
.package-units li.gap { margin-top: 14px; }
.topic-badge { font: 400 .78rem/1 var(--caps); letter-spacing: .02em; text-transform: none; color: var(--teal); border: 1px solid var(--teal); border-radius: 2px; padding: 2px 6px; }
.fee-footnote { margin-top: 26px; font-size: .98rem; color: var(--grey); text-align: left; max-width: 56em; }
.fee-footnote a { color: var(--teal); font-weight: 600; }
.aid-note { border: 1px solid var(--teal); border-radius: 2px; background: var(--wash); }
.aid-note h3 { font-size: 1.2rem; }
.aid-note p { color: var(--ink-2); }
.aid-note.is-granted { border-color: var(--ok); background: #eef6f0; }
@media (max-width: 1080px) {
  .packages { border: 0; max-width: 620px; }
  .package h2, .package h3 { min-height: 0; }
  .package, .light .package { border: 1px solid var(--ink); }
  .package + .package { border-left: 1px solid var(--ink); margin-top: 20px; }
}

/* ----------------------------------------------------------- testimonials */
/* Initials in a thin ring, the quotation in LM Roman italic, no card. */
.testimonials { gap: 56px clamp(28px, 3.5vw, 56px); }
.testimonial, .section:not(.light) .testimonial { border: 0; background: transparent; padding: 0; display: grid; grid-template-columns: 52px 1fr; gap: 4px 18px; align-content: start; }
.testimonial blockquote { grid-column: 2; order: 1; margin: 0; font: italic 400 1.12rem/1.55 var(--serif); color: var(--ink); flex: none; }
.testimonial blockquote::before { content: none; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { display: contents; border: 0; padding: 0; font: 400 .94rem/1.4 var(--sans); }
.t-avatar { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: #fff; color: var(--ink); border: 1px solid var(--ink); font: 400 1.12rem/1 var(--display); letter-spacing: 0; }
.testimonial figcaption > div { grid-column: 2; order: 2; color: var(--grey); }
.testimonial figcaption strong { display: inline; font-weight: 600; color: var(--ink); }
.testimonial figcaption strong::after { content: ", "; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--grey); }
.testimonial .t-date { display: block; font-size: .9rem; }

/* ------------------------------------------------------------------- blog */
.posts { gap: clamp(28px, 3.5vw, 56px); }
.post-card { border-top: 1px solid var(--ink); padding-top: 22px; }
.post-card-img { aspect-ratio: 16 / 10; background: var(--wash); border: 1px solid var(--rule); margin-bottom: 18px; }
.post-card:hover .post-card-img img { transform: none; }
.post-card .eyebrow { font: 400 .94rem/1.4 var(--sans); color: var(--grey); }
.post-card h3 { font: 400 1.55rem/1.15 var(--display); margin: 8px 0 .55em; }
.post-card p, .section:not(.light) .post-card p { font-size: 1.03rem; color: var(--ink-2); }
.post-card:hover h3 { color: var(--teal); text-decoration: none; }
.pager a, .pager span { border: 1px solid var(--rule); color: var(--ink); border-radius: 2px; }
.pager a:hover { border-color: var(--teal); color: var(--teal); }
.pager .is-current { background: var(--teal); border-color: var(--teal); color: #fff; }
.topic-links a, .section:not(.light) .topic-links a { border-radius: 2px; border: 1px solid var(--rule); color: var(--ink-2); }
.topic-links a:hover { border-color: var(--teal); color: var(--teal); }
.post-meta { border-bottom: 1px solid var(--rule); }
.post-cover { background: var(--wash); border: 1px solid var(--rule); }
.prose .citation .cite-doi { color: var(--teal); }
.prose .citation .cite-note { color: var(--grey); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--ink); }
.faq details, .light .faq details { border-bottom: 1px solid var(--rule); }
.faq summary { font: 700 clamp(1.08rem, 1.4vw, 1.22rem)/1.35 var(--serif); padding: 20px 44px 20px 0; }
.faq summary:hover { color: var(--teal); }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; background: var(--teal); transform: none; transition: transform .25s; font: 0/0 a; }
.faq summary::before { width: 16px; height: 1.4px; margin-top: -.7px; }
.faq summary::after { width: 16px; height: 1.4px; margin-top: -.7px; transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-a, .light .faq-a { color: var(--ink-2); font-size: 1.08rem; max-width: 44em; padding: 0 0 22px; }

/* ------------------------------------------------------------- newsletter */
/* A teal wash band with the form at its right. */
.newsletter { border: 0; background: var(--wash); padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px); gap: 40px; align-items: center; }
.newsletter h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: .4em; }
.newsletter p { color: var(--ink-2); max-width: 30em; }
.newsletter-form { gap: 10px; }
.newsletter-form input[type=email] { height: 48px; background: #fff; border: 1px solid var(--field); border-radius: 2px; color: var(--ink); font: 400 1.05rem/1.2 var(--sans); padding: 0 14px; }
.newsletter-form input[type=email]::placeholder { color: #7a818d; }
.newsletter-form input[type=email]:focus { border-color: var(--teal); outline: none; }
.newsletter-form .btn { height: 48px; }
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); max-width: 14em; margin: 0 auto 30px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--foot); color: var(--ink); border-top: 1px solid var(--rule); padding: 64px 0 0; font-size: .98rem; }
.footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 48px 28px; }
.logo-footer { height: 44px; margin-bottom: 18px; }
.footer-brand p { color: var(--grey); font-size: .98rem; max-width: 26em; }
.footer-contact { color: var(--ink-2); font-size: .95rem; grid-template-columns: 64px 1fr; }
.footer-contact dt { font: 600 .9rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.footer-contact dd, .footer-contact a { color: var(--ink-2); }
.footer-contact a:hover { color: var(--teal); }
.footer-col { gap: 8px; }
.footer-col .eyebrow { font: 600 1rem/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; }
.footer-col a { font-size: .98rem; color: var(--ink-2); }
.footer-col a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom { margin-top: 44px; border-top: 1px solid var(--rule); color: var(--grey); font-size: .9rem; }
.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--teal); text-decoration: underline; }

/* ------------------------------------------------------------------ forms */
/* The sign-in card is a frame on the wall: 1 px ink line with the faint echo line outside it. */
.auth-card { background: #fff; color: var(--ink); max-width: 500px; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px auto; }
.auth-card h1 { font-size: 2.3rem; margin: 10px 0 14px; }
.auth-card p { color: var(--ink-2); }
.field label { font: 600 .95rem/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 var(--field); background: #fff; color: var(--ink); border-radius: 2px; height: 48px; font-size: 1.05rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 1px; }
.field input[disabled] { background: var(--paper-2); color: var(--grey); }
.field .hint { color: var(--grey); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--teal); }
.pw-toggle, .link-button, .auth-card .field .hint a { color: var(--teal); font-weight: 600; }
.auth-switch { border-top: 1px solid var(--rule); }
.cp-list { border: 1px solid var(--ink); box-shadow: none; }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--wash); }
.verify-form input { background: #fff; border: 1px solid var(--field); border-right: 0; border-radius: 2px 0 0 2px; color: var(--ink); font: 600 1.05rem/1 var(--sans); letter-spacing: .08em; height: 54px; }
.verify-form input:focus { border-color: var(--teal); outline: none; }
.verify-form .btn { height: 54px; border-radius: 0 2px 2px 0; }
.credential { background: #fff; color: var(--ink); border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px 0; border-top-width: 1px; }
.credential .eyebrow { color: var(--teal); }
.credential h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.credential .valid { color: var(--ok); border: 1px solid var(--ok); border-radius: 2px; font: 600 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.credential .facts { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.credential .facts b { font: 400 1.4rem/1.2 var(--display); color: var(--ink); }
.credential th { font: 600 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); border-bottom: 1px solid var(--ink); }
.credential td { border-color: var(--rule); }
.credential td:first-child { font: 400 .95rem/1 var(--serif); color: var(--teal); }
.copyline input { background: #fff; border: 1px solid var(--field); border-radius: 2px 0 0 2px; color: var(--ink); font: 400 .9rem/1 var(--mono-real); }
.doc-cards { gap: 32px; }
.doc-card { background: #fff; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px; }
.doc-card img { border: 1px solid var(--rule); }
.doc-card p { color: var(--ink-2); }
.coupon-form input { border: 1px solid var(--field); border-radius: 2px; font: 600 .95rem/1.2 var(--sans); letter-spacing: .06em; }
.coupon-code { color: var(--grey); }
.coupon-error { color: var(--bad); }
.coupon-applied { color: var(--ok); }
.tag-chip { background: var(--teal); color: #fff; border-radius: 2px; }
.rating-opt span { border: 1px solid var(--field); border-radius: 2px; }
.rating-opt:hover span { border-color: var(--teal); }
.rating-opt input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.rating-opt input:checked + span small { color: #d6e6e6; }
.rating-opt b { font: 400 1.6rem/1 var(--display); }
.upgrade-opt { border: 1px solid var(--field); border-radius: 2px; }
.upgrade-opt:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.upgrade-opt b { font: 700 1.15rem/1.25 var(--serif); }
.upgrade-badge { background: var(--teal); border-radius: 2px; font: 600 .7rem/1 var(--sans); letter-spacing: .04em; }
.upgrade-price strong { font: 400 1.5rem/1 var(--display); }

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--grey); }
.tabs { box-shadow: inset 0 -1px 0 var(--rule); }
.tabs a { font: 600 .98rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); border-bottom: 2px solid transparent; }
.tabs a.is-active, .tabs a:hover { color: var(--teal); border-color: var(--teal); }
.account-body .wrap > .notice { background: var(--wash); color: var(--ink); border: 0; border-left: 2px solid var(--teal); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--teal); }
.account-body .wrap > .notice-bad { border-left-color: var(--bad); background: #f8eeed; }
.save-ok { color: var(--ok); }
.save-bad { color: var(--bad); }
.dialog-back { background: rgba(26, 29, 36, .55); }
.dialog { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-top: 1px solid var(--ink); box-shadow: none; outline: 1px solid var(--echo); outline-offset: 7px; }
.dialog h2 { font: 400 1.9rem/1.15 var(--display); }
.dialog p { color: var(--ink-2); }
.progress-strip { border: 1px solid var(--ink); }
.progress-strip div { border-right: 1px solid var(--rule); }
.progress-strip b { font: 400 1.9rem/1.1 var(--display); }
.progress-strip span { font: 600 .9rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.bar { background: var(--rule); height: 3px; }
.bar i { background: var(--teal); }
.ucard { background: #fff; border: 1px solid var(--rule); }
.ucard.is-open { background: var(--wash); border-color: var(--teal); }
.ucard.is-locked { background: transparent; }
.ucard.is-locked h3, .ucard.is-locked .ucard-no { color: var(--dim); }
.ucard-no { font: 400 2.1rem/1 var(--display); color: var(--ink); }
.ucard-no small { font: 600 .8rem/1 var(--sans); letter-spacing: 0; color: var(--grey); }
.ucard h3 { font-size: 1.3rem; }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--grey); }
.ucard-more:hover { color: var(--teal); }
.pill { font: 600 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.wait { color: var(--grey); }
.pill.bad { border-color: var(--bad); color: var(--bad); }
.verdict { font: 600 .95rem/1 var(--sans); letter-spacing: 0; text-transform: none; border-radius: 2px; }
.verdict.bad { background: var(--bad); }
.verdict.ok { background: var(--ok); }
.exam-score { font: 400 3.4rem/1 var(--display); color: var(--ink); letter-spacing: 0; }
.exam-score small { color: var(--grey); }
.exam-result.is-passed { border-color: var(--ok); }
.score { font: 400 1.25rem/1 var(--display); }
.panel { background: #fff; border: 1px solid var(--rule); }
.panel h2 { font-size: 1.9rem; }
.panel p { color: var(--ink-2); }
.panel.is-key { border-color: var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px 8px 30px; }
.paper-card { background: #fff; color: var(--ink); border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px; }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-bottom: 1px solid var(--ink); }
.quiz-head p { color: var(--ink-2); }
.q { background: #fff; border: 1px solid var(--rule); }
.q-no { font: 600 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.q-text { font: 700 1.2rem/1.4 var(--serif); }
.opt { border: 1px solid var(--rule); border-radius: 2px; }
.opt:hover { border-color: var(--ink); }
.opt .k { border: 1px solid var(--field); border-radius: 2px; font: 600 .85rem/1 var(--sans); }
.opt:has(input:checked) { border-color: var(--teal); background: var(--wash); }
.opt:has(input:checked) .k { background: var(--teal); color: #fff; border-color: var(--teal); }
.opt:has(input:focus-visible) { outline-color: var(--teal); }
.opt.is-right { background: #eef6f0; }
.opt.is-wrong { background: #f8eeed; }
.explain { background: var(--paper-2); border-left: 2px solid var(--teal); color: var(--ink); }
.explain b { font: 600 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.quiz-foot { background: rgba(255, 255, 255, .94); border-top: 1px solid var(--ink); }
.quiz-foot .state { font: 600 .9rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.scorebox { border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px 8px 38px; }
.scorebox .big { font: 400 3.6rem/1 var(--display); }
.scorebox .big small { color: var(--grey); }
.timer { background: #fff; border: 1px solid var(--ink); font: 600 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.timer b { font: 400 1.6rem/1 var(--display); letter-spacing: 0; }
.timer.is-low { border-color: var(--bad); color: var(--bad); }
.breakdown td, .breakdown th { border-color: var(--rule); }
.breakdown th { font: 600 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.q-figure img { filter: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ unit reader */
/* A white room: the title on the left, the unit's photograph hung beside it as a plate. */
.reader-hero { background: #fff; border-bottom: 1px solid var(--rule); }
.reader-hero img.bg { position: absolute; right: var(--gut); top: 50%; left: auto; width: min(32vw, 420px); height: auto; aspect-ratio: 4 / 3; max-height: 70%; transform: translateY(-50%); object-fit: cover; filter: none; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; }
.reader-hero .wrap { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(44px, 5vw, 64px); max-width: var(--wrap); }
.reader-hero .wrap > * { max-width: 58%; }
.reader-hero .eyebrow { color: var(--teal); }
.reader-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); color: var(--ink); margin: 14px 0 14px; }
.reader-hero .sub { font: italic 400 1.3rem/1.4 var(--serif); color: var(--ink-2); }
.reader-hero .credit { color: var(--grey); right: var(--gut); }
@media (max-width: 1040px) {
  .reader-hero img.bg { display: none; }
  .reader-hero .wrap > * { max-width: none; }
}
.reader { background: #fff; color: var(--ink); }
.toc { font-size: .95rem; }
.toc .eyebrow { font: 700 1rem/1.3 var(--serif); color: var(--ink); }
.toc a { border-left: 1px solid var(--rule); color: var(--grey); }
.toc a:hover, .toc a.is-active { color: var(--teal); border-color: var(--teal); }
.unit-text { font-size: 1.1rem; line-height: 1.7; }
.unit-text h2 { font: 400 2.1rem/1.15 var(--display); border-bottom: 1px solid var(--ink); padding-bottom: .3em; }
.unit-text h3 { font: 700 1.45rem/1.25 var(--serif); }
.unit-text h4 { font: 700 1.1rem/1.3 var(--serif); font-style: normal; }
.unit-text .secno { font: 400 .65em/1 var(--serif); color: var(--teal); vertical-align: .15em; }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--paper-2); }
.unit-text .fn, .unit-text figcaption { color: var(--grey); }
.unit-text figure img { border: 1px solid var(--rule); }
.unit-text table { border: 1px solid var(--ink); }
.unit-text th { border-bottom: 1px solid var(--ink); }
.box { background: #fff; border: 1px solid var(--ink); }
.box-kind { font: 600 .9rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.box-title { font: 700 1.05rem/1.3 var(--serif); }
.box-keyequation { --bx: #0d5c63; --bx-l: #eef5f5; }
.box-law, .box-laws { --bx: #1a1d24; --bx-l: #f5f7f8; }
.box-derivation { --bx: #3a3f4a; --bx-l: #f5f7f8; }
.box-derivation .box-head { background: var(--bx-l); color: var(--bx); border-bottom: 1px solid var(--bx); }
.box-example { --bx: #2e6b4e; --bx-l: #ecf4ef; border: 0; border-top: 2px solid var(--bx); }
.box-excursion { --bx: #596070; --bx-l: #f0f2f4; border: 0; border-left: 3px solid var(--bx); }
.box-research { --bx: #6b3a5b; --bx-l: #f5eef3; border: 1px solid var(--bx); }
.box-research .box-kind, .box-research .box-inst { color: #e9d6e2; }
.box-research .box-name { font: 400 1.6rem/1.15 var(--display); }
.box-research .box-inst { font: italic 400 1.05rem/1.3 var(--serif); }
.box-keypoints { --bx: #8a6a1f; --bx-l: #faf4e6; border: 0; border-top: 2px solid var(--bx); border-bottom: 1px solid var(--bx); }
.box-keypoints .box-kind, .box-questions .box-kind { color: #8a6a1f; }
.box-check { --bx: #8e3b66; --bx-l: #f8eef3; }
.box-check .opt { border-radius: 2px; }
.box-interactive { --bx: #1f2a44; --bx-l: #f3f5f9; }
.ia-slider input[type=range] { accent-color: #1f2a44; }
.ia-btn { border-radius: 2px; }
.paperlink { border-top: 1px solid var(--rule); }
.paperlink span { font: 600 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.reader-end { background: var(--wash); color: var(--ink); border: 1px solid var(--rule); }
.reader-end h3 { font: 400 1.7rem/1.15 var(--display); }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%); }
.lit-list li { border-bottom: 1px solid var(--rule); }
.lit-list a.t { font: 700 1.2rem/1.3 var(--serif); }
.lit-list .m { color: var(--grey); }

/* ------------------------------------------------------- prose and pages */
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font: 400 2.1rem/1.15 var(--display); }
.prose h3 { font: 700 1.3rem/1.3 var(--serif); }
.prose blockquote { font: italic 400 1.25rem/1.5 var(--serif); border-left: 1px solid var(--ink); }
.legal-updated { font: 400 .95rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.legal-box { background: #fff; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 1.6em 8px; }
.prose th { font: 700 .98rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--ink); }
.prose td { border-color: var(--rule); }
.stack-table tr { border-color: var(--rule); }
.stack-table td::before { font: 600 .85rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.resource { border-color: var(--rule); }
.resource:hover { background: var(--wash); }
.resource-name { font: 700 1.2rem/1.3 var(--serif); }
.resource p { color: var(--ink-2); }
.resource-host { color: var(--teal); font-weight: 600; }
.resource-note { color: var(--grey); }
.resource-note .icon { color: var(--teal); }
.eq-grid { gap: 24px; }
.eq-card { background: #fff; border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; margin: 8px; }
.eq-card h4 { font: 700 1.05rem/1.3 var(--serif); }
.eq-card p { color: var(--grey); }
.eq-toc { border: 1px solid var(--rule); }
.eq-toc a span { font: 400 .95rem/1 var(--serif); color: var(--teal); }
.pathway-map td, .pathway-map th { border-color: var(--rule); }
.aid-body > p { color: var(--ink-2); }
.aid-contact { color: var(--grey) !important; }
.aid-apply-aside { border-top: 1px solid var(--ink); color: var(--grey); }
.aid-apply-aside h3 { color: var(--ink); }
.aid-apply-aside a { color: var(--teal); }
.aid-form fieldset { background: #fff; border: 1px solid var(--rule); }
.aid-form legend { font: 400 1.65rem/1.2 var(--display); }
.aid-form legend span { background: var(--teal); color: #fff; font: 600 .95rem/34px var(--sans); border-radius: 50%; }
.aid-location { background: var(--wash); border: 0; }
.aid-location em { color: var(--grey); }
.aid-err { color: var(--bad); }
.aid-submit span, .aid-wrong summary { color: var(--grey); }
.geo-test-badge { box-shadow: none; border: 1px solid var(--ink); }

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

/* ----------------------------------------------------------------- motion */
/* The design has no motion on load. */
.reveal { opacity: 1; transform: none; transition: none; }
.marquee { animation: none; }

/* ================================================================ home page */
/* The landing page (theme/home.php): a hero room, then rooms that alternate between split rooms (text beside the piece)
   and wall rooms (the piece hung centred, its label beside it at the lower edge, the content below). A piece is a thin
   ink frame with a faint outer echo line holding a LaTeX theorem environment; its museum wall label gives title, who
   and when, one sentence, and the unit. Mathematics is typeset TeX as inline SVG in currentColor. */
.eq { color: var(--ink); line-height: 0; text-align: center; }
.eq svg { max-width: 100%; height: auto; display: inline-block; }
.im { display: inline; font-size: 1.1em; height: auto; overflow: visible; }
.eq-hero { font-size: clamp(24px, 3.35vw, 48px); }
.eq-l { font-size: clamp(21px, 2.5vw, 33px); }
.eq-m { font-size: clamp(17px, 2vw, 26px); }
.eq-s { font-size: clamp(15px, 1.75vw, 23px); }
.eq-xs { font-size: clamp(15px, 1.3vw, 18px); text-align: left; }
.eq-final { font-size: clamp(13px, 1.6vw, 20px); color: var(--grey); }
.g-tick { width: .9em; height: .9em; flex: none; color: var(--teal); position: relative; top: .1em; }
.text-link { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; font-weight: 600; }
.text-link:hover { color: var(--teal-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 1.8em; }
.actions-center { justify-content: center; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: .6em; align-items: baseline; margin: .35em 0; }

/* pieces */
.piece { margin: 0; }
.frame { border: 1px solid var(--ink); outline: 1px solid var(--echo); outline-offset: 7px; background: #fff; margin: 8px; }
.thm { padding: clamp(26px, 3.4vw, 52px) clamp(22px, 3.4vw, 56px); font-family: var(--serif); font-size: clamp(1.08rem, 1.25vw, 1.22rem); line-height: 1.5; color: var(--ink); }
.thm p { margin: 0; }
.thm p + p, .thm .disp + p { margin-top: .75em; }
.thm-p { font-style: italic; }
.thm-h { font-style: normal; }
.thm-h b { font-weight: 700; }
.thm-r .thm-h i { font-style: italic; }
.disp { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 2.6em; align-items: center; margin: 1.05em 0; }
.disp .eq { grid-column: 2; }
.eqno { grid-column: 3; text-align: right; font-style: normal; font-family: var(--serif); }
.eqref { color: var(--teal); text-decoration: none; font-style: normal; }
.eqref:hover { text-decoration: underline; }
.wl { display: flex; flex-direction: column; gap: 3px; margin: 26px 8px 0; max-width: 420px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: .97rem; line-height: 1.45; color: var(--grey); }
.wl-title { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.wl-who { font-style: italic; }
.wl-text { margin-top: 6px; color: var(--ink-2); }
.wl-unit { margin-top: 6px; color: var(--teal); font-weight: 600; }
.wl-open { display: block; font-style: normal; font-weight: 400; font-family: var(--caps); font-size: .98rem; color: var(--teal); margin-top: 1px; }
.piece-wall { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 clamp(32px, 4vw, 64px); align-items: end; margin: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.piece-wall .wl { margin: 0 0 8px; }

/* hero room */
.g-hero { padding: clamp(44px, 6vh, 76px) 0 clamp(56px, 8vh, 96px); }
.g-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.g-hero h1 { font-size: inherit; margin: 0; max-width: none; }
.g-hero-name { display: block; font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.2; color: var(--teal); margin-bottom: .5em; letter-spacing: 0; }
.g-hero-headline { display: block; font-family: var(--display); font-size: clamp(2.7rem, 4.8vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em; }
.g-hero-sub { font-size: clamp(1.15rem, 1.4vw, 1.3rem); color: var(--ink-2); max-width: 32em; margin: 1.3em 0 0; }
.g-hero-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 1.9em 0 0; padding: 0; font-size: 1.02rem; }
.g-hero-checks li { display: flex; align-items: baseline; gap: .5em; }
.piece-hero .thm { padding: clamp(34px, 4.4vw, 64px) clamp(22px, 3vw, 48px); }
.piece-hero .disp { margin: 1.3em 0 .4em; }

/* alumni */
.g-alumni { padding: 34px 0 44px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: visible; }
.g-alumni-title { font: 500 1rem/1.4 var(--sans); color: var(--grey); margin: 0 0 22px; letter-spacing: 0; }
.g-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 36px; align-items: center; }
.g-logos img { height: 34px; width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; }

/* rooms */
.room { padding: clamp(80px, 10vw, 136px) 0 0; scroll-margin-top: var(--header-h); }
.room-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.room-body h2 { margin-bottom: .6em; }
.room-body > p { max-width: 36em; color: var(--ink-2); }
.room-body .lead { color: var(--grey); }
.room-intro { max-width: 40em; }
.room-intro h2 { margin-bottom: .5em; }
.room-intro p { color: var(--ink-2); margin: 0; font-size: 1.125rem; }
.room-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.points { list-style: none; margin: 1.6em 0 1.8em; padding: 0; }
.points li { padding: .8em 0; border-top: 1px solid var(--rule); }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points b { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; margin-right: .25em; }
.after { margin: 44px 0 0; }

/* audiences */
.g-audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px); }
.g-aud h3 { margin-bottom: .6em; font-size: 1.4rem; }
.g-aud p { color: var(--ink-2); }
.g-aud .ticks { margin-top: 1.1em; }

/* steps */
.g-steps { list-style: none; margin: 1.6em 0 0; padding: 0; }
.g-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.g-steps li:last-child { border-bottom: 1px solid var(--rule); }
.g-step-n { font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--teal); }
.g-steps h3 { font-size: 1.16rem; margin-bottom: .3em; }
.g-steps p { margin: 0; color: var(--ink-2); font-size: 1.04rem; }

/* topics */
.g-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px); }
.g-topic { display: flex; flex-direction: column; }
.plate { margin: 0 0 22px; }
.plate img { width: 100%; height: 230px; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--rule); }
.plate figcaption { font-size: .86rem; color: var(--grey); padding: 8px 0 0; line-height: 1.35; min-height: 3.2em; }
.topic-range { color: var(--teal); font-weight: 600; margin: 0 0 .3em; }
.g-topic h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; margin-bottom: .5em; }
.g-topic > p { color: var(--ink-2); }
.topic-eq { margin: auto 0 0; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.topic-eq span { font-size: .92rem; color: var(--grey); font-style: italic; }
.unit-list summary { cursor: pointer; padding: 14px 0; color: var(--teal); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.unit-list summary::-webkit-details-marker { display: none; }
.unit-list summary::before { content: ""; width: 8px; height: 8px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.unit-list[open] summary::before { transform: rotate(45deg); }
.unit-list ol { margin: 0; padding: 0 0 0 1.6em; }
.unit-list li { margin: 0 0 .9em; padding-left: .3em; }
.unit-list li::marker { color: var(--teal); font-family: var(--serif); }
.u-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.u-title:hover { color: var(--teal); text-decoration: underline; }
.u-sum { display: block; color: var(--grey); font-size: .98rem; line-height: 1.45; }

/* certificate and sample sheet */
.frame-doc { background: #fff; }
.cert { padding: 16px; }
.cert-inner { border: 1px solid var(--teal); outline: 1px solid rgba(13, 92, 99, .35); outline-offset: -6px; padding: clamp(24px, 3.4vw, 46px) clamp(16px, 3vw, 40px); text-align: center; }
.cert p { margin: 0; }
.cert-brand { font-family: var(--caps); font-size: 1.1rem; color: var(--teal); }
.cert-kind { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: .35em 0 .9em !important; }
.cert-small { font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--grey); }
.cert-name { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 2rem); margin: .25em auto .4em !important; padding-bottom: .15em; border-bottom: 1px solid var(--rule); max-width: 14em; }
.cert-course { font-family: var(--display); font-size: 1.4rem; margin: .2em 0 .25em !important; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 1.6em; font-size: .82rem; color: var(--grey); line-height: 1.4; }
.cert-foot b { color: var(--ink); font-weight: 600; }
.cert-seal { color: var(--teal); }
.cert-seal svg { width: 58px; height: 58px; }
.cert-img img { display: block; width: 100%; }
.piece-page .frame { max-width: 540px; }
.sheet { padding: clamp(28px, 3.6vw, 48px) clamp(24px, 3.2vw, 44px); font-family: var(--serif); color: var(--ink); font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.5; min-height: 480px; display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; font-size: .8em; color: var(--grey); border-bottom: 1px solid var(--ink); padding-bottom: .5em; margin-bottom: 2em; }
.sheet-head b { font-weight: 700; color: var(--ink); }
.sheet-unit { font-size: .9em; color: var(--grey); margin: 0 0 .4em; }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 1.9em; line-height: 1.1; margin: 0 0 .5em; }
.sheet-sub { font-style: italic; margin: 0 0 1.6em; color: var(--ink-2); }
.sheet-q { font-weight: 700; margin: 0 0 .5em; }
.sheet ol { margin: 0; padding-left: 1.5em; }
.sheet li { margin: 0 0 .5em; }
.sheet-folio { margin-top: auto; padding-top: 2em; text-align: center; font-size: .8em; color: var(--grey); }
.sheet-img img { display: block; width: 100%; }
.sample-card { border: 0; padding: 0; margin: 1.6em 0; }
.sample-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0 0 .4em; }
.sample-card p:last-child { margin: 0; color: var(--ink-2); }
.q-head { font-size: 1.15rem; margin: 1.4em 0 .6em; }
.questions { margin: 0; padding: 0 0 0 1.5em; color: var(--ink-2); }
.questions li { margin: .45em 0; padding-left: .3em; }
.questions li::marker { color: var(--teal); font-family: var(--serif); }
.sample-note { color: var(--grey); font-style: italic; }

/* community */
.figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 64px; margin: 44px 0 0; }
.figures div { display: flex; flex-direction: column; }
.figures dd { order: -1; margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1.05; }
.figures dt { font-size: .98rem; color: var(--grey); max-width: 12em; line-height: 1.35; }

/* FAQ room */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid > h2 { position: sticky; top: calc(var(--header-h) + 38px); }

/* newsletter band */
.g-newsletter { margin-top: clamp(80px, 10vw, 136px); padding: 64px 0; background: var(--wash); }
.nl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.g-newsletter h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: .4em; }
.g-newsletter p { color: var(--ink-2); margin: 0; max-width: 30em; }
.nl-label { display: block; font-size: .95rem; color: var(--grey); margin-bottom: 8px; }

/* final call to action */
.final { padding: clamp(88px, 12vw, 150px) 0; text-align: center; }
.final-cap { margin: 12px 0 0; color: var(--grey); font-style: italic; font-size: .98rem; }
.final h2 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); max-width: 14em; margin: 30px auto 0; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .nav, .nav-login { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1040px) {
  .g-hero-grid, .room-split, .room-head, .nl-row, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid > h2 { position: static; }
  .room-split-flip > .piece { order: 2; }
  .piece-wall { grid-template-columns: minmax(0, 1fr); }
  .piece-wall .wl { margin: 26px 8px 0; }
  .g-topics, .posts, .testimonials { grid-template-columns: minmax(0, 1fr); }
  .g-topics { gap: 64px; }
  .testimonials { gap: 36px; }
  .plate img { height: 260px; }
  .piece-page .frame { margin: 8px auto; }
}
@media (max-width: 900px) {
  .g-audiences, .cards-3, .features { grid-template-columns: minmax(0, 1fr); }
  .aud { border-bottom: 0; }
}
@media (max-width: 860px) {
  .logo { height: 34px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 36px 0 48px; }
  .stats div { border: 0; padding: 0; }
  .split-media img { aspect-ratio: auto; }
  .mm-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 1.06rem; }
  .g-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .researchers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 18px; }
  .researcher p { font-size: .93rem; }
  .figures { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wl { max-width: none; }
  .frame { margin: 6px; outline-offset: 5px; }
  .thm { padding: 22px 16px; }
  .disp { grid-template-columns: 0 minmax(0, 1fr) 2em; }
  .eq-hero { font-size: 22px; }
  .eq-l { font-size: 22px; }
  .eq-m { font-size: 18px; }
  .eq-s { font-size: 15px; }
  .actions .btn, .hero-actions .btn { flex: 1 1 100%; }
  .cert-foot { grid-template-columns: 1fr; justify-items: center; }
  .g-steps li, .step { grid-template-columns: 38px 1fr; gap: 4px 12px; }
  .testimonial { grid-template-columns: 44px 1fr; gap: 4px 14px; }
  .t-avatar { width: 44px; height: 44px; }
  .testimonial figcaption .t-avatar-mono { font-size: 1rem; }
  .newsletter { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .auth-card, .contact-faq, .legal-box, .eq-card, .doc-card, .paper-card, .panel.is-key { outline-offset: 5px; margin-left: 6px; margin-right: 6px; }
}
@media (max-width: 420px) {
  .researchers { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
