/* Graph Theory Masterclass theme "Hairline" (design option 2): overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The tokens turn the engine's dark ground into white paper, so both
   the engine's "dark" and its "light" sections are the same white page. What is redrawn here: the type (Chivo 700
   headings with tight tracking, Chivo text, 300 numerals, no monospace, no tracked capitals, sentence case), the
   design's language (1 px Edge Grey hairlines as the only separators, 1 px Ink frames and buttons, square corners,
   no shadows, Field #F0F2F4 as the one tinted band, one Cobalt accent), the white header and the white footer, the
   page heroes, buttons, the tuition columns, forms, the unit reader and its boxes, the account pages. The second
   half styles the landing page (theme/home.php): the 12-column grid with its label column and the graph drawings
   of every section. */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 17px/1.55 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.3vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: -.005em; }
b, strong { font-weight: 700; }
i, em { font-style: italic; }
sub, sup { font-size: .68em; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.2em; }
sup { top: -.5em; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.wrap { padding: 0 var(--pad); }
.wrap-narrow { max-width: calc(860px + 2 * var(--pad)); }
.skip { background: var(--ink); color: #fff; font-weight: 700; }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 700 .95rem/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.lead, .light .lead { font-size: clamp(1.06rem, 1.3vw, 1.19rem); line-height: 1.5; color: var(--ink); max-width: 36em; }
.credit { font: 400 14px/1.45 var(--sans); letter-spacing: 0; color: var(--slate); }
.credit a { color: inherit; }
.link-arrow { font: 700 1rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; border: 0; padding: 0; color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; gap: .35em; }
.link-arrow:hover { opacity: 1; text-decoration-thickness: 2px; }
.link-arrow .icon { display: none; }
.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(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.btn):hover, .faq-a a:hover { text-decoration-thickness: 2px; }
.rule, .light .rule { border-top: 1px solid var(--edge); }
.icon { stroke-width: 1.3; }
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn { min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0; font: 700 16px/1.2 var(--sans); letter-spacing: 0; gap: 10px; color: var(--ink); background: transparent; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-light, .light .btn-light, .reader .btn-light, .reader-end .btn-light, .paper-card .btn-light, .auth-card .btn-light, .dialog .btn-light, .page-hero .btn-light, .reader-hero .btn-light, .header-cta .btn-light, .mm-cta .btn-light, .newsletter-form .btn-light { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.btn-light:hover, .light .btn-light:hover, .reader .btn-light:hover, .reader-end .btn-light:hover, .header-cta .btn-light:hover, .mm-cta .btn-light:hover, .newsletter-form .btn-light:hover { background: var(--cobalt-deep); border-color: var(--cobalt-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(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover, .light .btn-ghost:hover, .reader .btn-ghost:hover, .reader-end .btn-ghost:hover, .cookie .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.btn-dark:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn[disabled], .btn.is-disabled { opacity: .45; }
.btn-block { padding-left: 14px; padding-right: 14px; }
.hero-actions { gap: 12px 16px; align-items: center; }
.hero-actions .link-arrow { align-self: center; }
.gt-acts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.gt-lnk { font-weight: 700; color: var(--cobalt); }
.gt-lnk:hover { text-decoration-thickness: 2px; }

/* ----------------------------------------------------------------- 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, .97); color: var(--ink); border-bottom: 1px solid var(--edge); backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { gap: 40px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo { height: 44px; width: auto; }
.logo-mark { height: 40px; width: 40px; }
.wordmark { font: 800 21px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.nav { margin-left: 0; margin-right: auto; gap: 4px; }
.nav-top { font: 400 16px/1 var(--sans); color: var(--ink); padding: 12px; letter-spacing: 0; display: inline-flex; align-items: center; gap: 8px; }
.nav-top::after { width: 5px; height: 5px; border-width: 1px; margin-left: 0; opacity: 1; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.nav-group:hover .nav-top, .nav-group.is-open .nav-top, .nav-group:focus-within .nav-top, .nav-top:hover { color: var(--cobalt); }
.nav-group.is-open .nav-top::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu { top: 100%; min-width: 250px; background: #fff; color: var(--ink); border: 1px solid var(--ink); padding: 8px 0; transform: none; transition: opacity .12s, visibility .12s; }
.nav-menu a { padding: 8px 18px; font: 400 16px/1.4 var(--sans); color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: transparent; color: var(--cobalt); text-decoration: underline; outline-offset: -3px; }
.header-cta { gap: 24px; }
.nav-login { font: 400 16px/1 var(--sans); color: var(--ink); }
.nav-login:hover { color: var(--cobalt); text-decoration: underline; }
.burger { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 0; }
.burger span { background: var(--ink); height: 1px; }
.mobile-menu { background: #fff; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 20px 0 30px; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.mm-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mm-group { padding: 0; border: 0; }
.mm-group .eyebrow { font: 700 1.05rem/1.3 var(--sans); color: var(--ink); margin-bottom: 8px; }
.mm-group a { font: 400 1.02rem/1.4 var(--sans); padding: 6px 0; color: var(--ink); }
.mm-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.light { background: #fff; color: var(--ink); }
.section.tight { padding: clamp(44px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--edge); }
.section-head { gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 860px; }
.section-head p, .light .section-head p { font-size: 19px; color: var(--ink); max-width: 36em; }
.flash { background: var(--field); color: var(--ink); border-bottom: 1px solid var(--edge); font-size: 1rem; }
.flash-error { background: #f8eeed; color: var(--bad); border-color: #e7c9c5; }

/* -------------------------------------------------------------- page hero */
/* White paper under a 1 px rule; a photograph, when the page has one, is a plate beside the title in a 1 px Edge Grey
   frame, greyscale as every picture of the design. */
.page-hero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--edge); padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero::before, .page-hero.has-img::before, .page-hero::after, .page-hero.has-img::after { content: none; }
.page-hero .eyebrow { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin: 12px 0 18px; max-width: 13em; color: var(--ink); text-wrap: balance; }
.page-hero .lead { color: var(--ink); }
.page-hero.has-img .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.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: 340px; background: var(--hero-img) center/cover; border: 1px solid var(--edge); filter: grayscale(1) contrast(1.05); }
.page-hero.has-img .wrap > * { grid-column: 1; }
.page-hero.has-figure .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 clamp(32px, 5vw, 80px); align-items: center; }
.page-hero.has-figure .wrap > * { grid-column: 1; }
.page-hero.has-figure .wrap > .page-hero-figure { grid-column: 2; grid-row: 1 / span 6; }
@media (max-width: 1040px) {
  .page-hero.has-img .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero.has-img .wrap::after { display: none; }
  .page-hero.has-figure .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-hero.has-figure .wrap > .page-hero-figure { grid-column: 1; grid-row: auto; margin-top: 28px; }
}

/* ------------------------------------------------------- split, checks, cards */
.split-body h2 { margin-bottom: .6em; }
.split-body p, .light .split-body p { color: var(--ink); font-size: 17px; }
.split-media img { aspect-ratio: auto; border: 1px solid var(--edge); filter: grayscale(1) contrast(1.05); }
.split-media .credit { position: static; display: block; margin-top: 12px; }
.checks { gap: 12px; margin: 1.5em 0 1.8em; max-width: 60ch; }
.checks li { grid-template-columns: 1fr; gap: 0; position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.checks .icon, .light .checks .icon { display: none; }
.checks b { font-weight: 700; }
.cards-3 { border: 0; gap: var(--gut); }
.aud { padding: 0; border: 0; background: transparent; }
.aud:hover { background: transparent; color: inherit; }
.aud p, .aud:hover p, .aud:hover li { color: var(--ink); }
.aud .icon { display: none; }
.aud h3 { font-size: 19px; margin-bottom: 12px; }
.aud p { font-size: 16px; }
.aud ul { border-top: 0; padding-top: 0; margin-top: 18px; gap: 6px; color: var(--ink); font-size: 15px; }
.aud li { white-space: normal; align-items: baseline; gap: .6em; position: relative; padding-left: 20px; }
.aud li::before { content: ""; position: absolute; left: 0; top: .3em; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M1.5 6.5l3 3 6-7'/%3E%3C/svg%3E") no-repeat center/contain; }
.aud li .icon { display: none; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gut); background: none; border: 0; }
.step { background: transparent; padding: 18px 0 0; border-top: 1px solid var(--ink); }
.step-no { margin: 0 0 14px; display: block; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); font: 300 clamp(44px, 4vw, 56px)/1 var(--sans); letter-spacing: -.02em; display: block; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink); font-size: 16px; line-height: 1.5; }
.week { border: 1px solid var(--edge); }
.week > div { border-right: 1px solid var(--edge); }
.week .d { font: 700 .85rem/1 var(--sans); letter-spacing: 0; color: var(--slate); text-transform: none; }
.week b { font: 700 1.05rem/1.25 var(--sans); }
.week span { color: var(--slate); }
.week .on { background: var(--field); }
.features { gap: 40px var(--gut); }
.feature .icon { display: none; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p, .light .feature p { color: var(--ink); font-size: 16px; }
.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; justify-content: flex-end; }
.stats b { font: 300 clamp(56px, 6vw, 88px)/1 var(--sans); letter-spacing: -.035em; color: var(--ink); margin-bottom: 0; }
.stats span { font: 400 16px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); max-width: 14em; margin-top: 10px; }
.cert-shot img, .light .cert-shot img { border: 1px solid var(--edge); box-shadow: none; padding: 14px; background: #fff; outline: 1px solid var(--ink); outline-offset: 0; }
.kv dt { font: 700 .9rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.notice { border-left: 2px solid var(--cobalt); background: var(--field); color: var(--ink); font-size: 1rem; }
.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); }
.contact-faq h3 { font: 700 1.3rem/1.2 var(--sans); letter-spacing: -.015em; }
.contact-faq p { color: var(--slate); }
.disclaimer, .section:not(.light) .disclaimer { margin-top: 52px; padding: 0; border: 0; max-width: 52em; font-size: 14px; line-height: 1.5; color: var(--slate); }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.unit-group-head h3, h2.h3-look { font: 700 1.6rem/1.15 var(--sans); letter-spacing: -.02em; }
.unit-row { border-bottom: 1px solid var(--edge); padding: 22px 0; }
a.unit-row:hover, .unit-row:target { background: var(--field); box-shadow: -14px 0 0 var(--field), 14px 0 0 var(--field); }
.unit-row:target { box-shadow: -14px 0 0 var(--field), 14px 0 0 var(--field), -16px 0 0 var(--cobalt); }
.unit-row .no { font: 400 .85rem/1 var(--sans); letter-spacing: 0; color: var(--slate); text-transform: none; white-space: nowrap; }
.unit-row[style*="align-items:start"] .no { height: 1.45rem; padding-top: 0; }
.unit-row h4, .unit-row h3 { font: 700 1.25rem/1.25 var(--sans); letter-spacing: -.015em; }
.unit-row p { color: var(--ink); font-size: 16px; }
.unit-row p em { color: var(--slate); }
.unit-more, .sample-pdf { color: var(--cobalt); font-weight: 700; }
.unit-more:hover, .sample-pdf:hover { color: var(--cobalt); }
.topic-badges li { border-radius: 0; border: 1px solid var(--edge); background: #fff; color: var(--slate); font-size: .84rem; }
.spot-box { background: transparent; border: 0; border-left: 1px solid var(--cobalt); padding: 4px 0 4px 16px; }
.spot-label { font: 700 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--cobalt); }
.spot span { color: var(--slate); }
.spot b { color: var(--ink); }
.spot .avatar { border-radius: 0; }
.sample-cta { background: var(--cobalt); color: #fff; border-radius: 0; }
.sample-cta:hover { background: var(--cobalt-deep); }
.sample-cta .icon { color: #fff; }
.sample-cta span { color: #dbe3f8; }
.unit-row .pk { font: 400 .9rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.unit-pager { border-top: 1px solid var(--ink); }
.unit-pager a { font: 700 1.1rem/1.3 var(--sans); letter-spacing: -.01em; }
.unit-pager a span { font: 400 .9rem/1.8 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.learn-card { background: #fff; border: 1px solid var(--edge); }
.learn-card:hover { border-color: var(--ink); transform: none; }
.learn-body h3 { font: 700 1.5rem/1.15 var(--sans); letter-spacing: -.02em; }

/* ------------------------------------------------------------ researchers */
/* Square colour portraits, 120 px (the landing page shows them at the card's width); name in 700, institution in
   Slate. The engine's grid keeps two columns on phones (owner's rule); only the gaps change here. */
.researchers { gap: 56px var(--gut); }
.avatar { width: 120px; max-width: 100%; aspect-ratio: 1; border: 0; padding: 0; background: var(--field); filter: none; object-fit: cover; object-position: 50% 25%; }
.avatar-mono { font: 300 2.6rem/1 var(--sans); color: var(--slate); border: 1px solid var(--edge); background: #fff; letter-spacing: 0; }
.researcher-body { border-top: 0; padding-top: 18px; margin-top: 0; }
.researcher h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: -.01em; color: var(--ink); }
.researcher-inst { font: 400 15px/1.4 var(--sans); color: var(--slate); margin-bottom: 8px; }
.researcher p { font-size: 15px; line-height: 1.5; color: var(--ink); }
.researcher-body .eyebrow { font: 400 15px/1.4 var(--sans); color: var(--slate); }
.researcher:hover h3 { text-decoration-color: var(--cobalt); color: var(--cobalt); text-underline-offset: 4px; }

/* --------------------------------------------------------------- packages */
/* The three masterclasses as columns separated by hairlines, as in the design: no frames, the recommended one with a
   2 px Cobalt top rule. The flag sits in the flow, the same size on every card and invisible on the non-featured
   ones, so the titles, week lines, and fees stay level. The Enrol button follows the price tag (engine order). */
.packages { gap: 0; align-items: stretch; }
.package, .light .package { display: flex; flex-direction: column; padding: 0 var(--gut) 8px; border: 0; border-left: 1px solid var(--edge); background: #fff; color: var(--ink); position: relative; }
.package:first-child { border-left: 0; padding-left: 0; }
.package.is-featured, .light .package.is-featured { background: #fff; box-shadow: inset 0 2px 0 var(--cobalt); }
.package-flag { position: static; align-self: flex-start; background: transparent; color: var(--cobalt); font: 700 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; padding: 0; margin: 28px 0 10px; }
.package-flag.is-placeholder { visibility: hidden; }
.package > .eyebrow:not(.package-units-label) { font: 400 15px/1.4 var(--sans); color: var(--slate); margin: 0 0 4px; }
.package h2, .package h3 { font: 700 24px/1.15 var(--sans); letter-spacing: -.015em; margin: 0 0 8px; min-height: 2.3em; display: flex; align-items: flex-end; }
.package-note { color: var(--ink); font-size: 15px; line-height: 1.5; min-height: 7.5em; margin: 0 0 6px; }
.fee { border: 0; padding: 0; margin: 12px 0 18px; gap: 4px 10px; align-items: baseline; }
.fee-label { font: 400 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); margin-bottom: 8px; }
.fee-now { font: 300 56px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 22px/1 var(--sans); color: var(--slate); text-decoration: line-through; text-decoration-thickness: 1px; }
.fee-aid { margin: -4px 0 16px; color: var(--cobalt); font-weight: 700; font-size: 15px; }
.fee-aid span { color: var(--cobalt); }
.fee-aid:hover { color: var(--cobalt); text-decoration: underline; }
.package > .btn { margin: 0 0 20px; }
.package-incl { margin: 0 0 20px; gap: 7px; font-size: 15px; color: var(--ink); }
.package-incl li { position: relative; padding-left: 20px; }
.package-incl li::before { content: ""; position: absolute; left: 0; top: .3em; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M1.5 6.5l3 3 6-7'/%3E%3C/svg%3E") no-repeat center/contain; }
.package-units-label { border-top: 1px solid var(--edge); margin: 0 0 6px; padding-top: 16px; color: var(--ink); font: 700 .95rem/1.3 var(--sans); }
.package-units { gap: 0; margin: 0; font-size: 15.5px; }
.package-units li a { grid-template-columns: 24px 1fr 14px; border: 0; border-top: 1px solid var(--edge); background: none; padding: 8px 0; font-weight: 400; line-height: 1.35; transition: none; color: var(--ink); }
.package-units li a::after { color: var(--cobalt); }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; border-color: var(--edge); color: var(--cobalt); text-decoration: underline; }
.package-units li a > span { font: 300 15.5px/1.5 var(--sans); color: var(--slate); font-variant-numeric: tabular-nums; }
.package-units li.gap { margin-top: 14px; }
.topic-badge { font: 700 .66rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--cobalt); border: 1px solid var(--cobalt); padding: 2px 6px; }
.fee-footnote { margin-top: 40px; font-size: 15px; color: var(--slate); text-align: left; max-width: 56em; }
.aid-note { border: 1px solid var(--cobalt); background: #fff; }
.aid-note h3 { font-size: 1.2rem; }
.aid-note p { color: var(--ink); }
.aid-note.is-granted { border-color: var(--ok); background: #eef6f0; }
@media (min-width: 1081px) and (max-width: 1099px) {
  /* three cards in a row down to 1081 px: the third note wraps to one more line here, so the Enrol buttons stay level */
  .package-note { min-height: 9em; }
}
@media (max-width: 1080px) {
  .packages { max-width: 620px; }
  .package, .package:first-child { border-left: 0; border-top: 1px solid var(--edge); padding: 32px 0 8px; }
  .package.is-featured { box-shadow: inset 0 2px 0 var(--cobalt); border-top-color: transparent; }
  .package h2, .package h3 { min-height: 0; }
  .package-note { min-height: 0; }
}

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 0 var(--gut); }
.testimonial, .section:not(.light) .testimonial { border: 0; border-top: 1px solid var(--edge); background: transparent; padding: 28px 0 28px; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 20px; font: 400 1.25rem/1.45 var(--sans); letter-spacing: -.005em; color: var(--ink); flex: 1; }
.testimonial blockquote::before { content: none; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border: 0; padding: 0; font: 400 15px/1.4 var(--sans); color: var(--slate); }
.t-avatar { width: 48px; height: 48px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: #fff; color: var(--ink); border: 1px solid var(--ink); font: 700 15px/1 var(--sans); letter-spacing: .02em; }
.testimonial figcaption strong { color: var(--ink); font-weight: 700; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--slate); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 40px var(--gut); }
.post-card { border-top: 1px solid var(--ink); padding-top: 20px; color: var(--ink); }
.post-card-img { aspect-ratio: 16 / 10; background: var(--field); border: 1px solid var(--edge); margin-bottom: 18px; }
.post-card:hover .post-card-img img { transform: none; }
.post-card .eyebrow { font: 400 15px/1.4 var(--sans); color: var(--slate); }
.post-card h3 { font: 700 22px/1.15 var(--sans); letter-spacing: -.015em; margin: 8px 0 .5em; }
.post-card p, .section:not(.light) .post-card p { font-size: 16px; color: var(--ink); }
.post-card:hover h3 { color: var(--cobalt); text-decoration: underline; }
.pager a, .pager span { border: 1px solid var(--edge); color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic-links a, .section:not(.light) .topic-links a { border-radius: 0; border: 1px solid var(--edge); color: var(--ink); }
.topic-links a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.post-meta { border-bottom: 1px solid var(--edge); }
.post-cover { background: var(--field); border: 1px solid var(--edge); }
.prose .citation .cite-doi { color: var(--cobalt); }
.prose .citation .cite-note { color: var(--slate); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--edge); }
.faq details, .light .faq details { border-bottom: 1px solid var(--edge); }
.faq summary { font: 700 19px/1.35 var(--sans); letter-spacing: 0; padding: 22px 48px 22px 0; }
.faq summary:hover { color: var(--cobalt); }
.faq summary::after { content: ""; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; transform: none; background: linear-gradient(currentColor, currentColor) center/18px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center/1.5px 18px no-repeat; transition: transform .25s; font: 0/0 a; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a, .light .faq-a { color: var(--ink); font-size: 17px; max-width: 40em; padding: 0 48px 26px 0; }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 0; background: var(--field); padding: 40px var(--gut); gap: 36px; align-items: center; }
.newsletter h2 { font-size: 24px; letter-spacing: -.015em; margin-bottom: 6px; }
.newsletter p { color: var(--ink); font-size: 16px; }
.newsletter-form { gap: 12px; }
.newsletter-form input[type=email] { height: 48px; background: #fff; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); font: 400 16px/1.2 var(--sans); padding: 0 14px; }
.newsletter-form input[type=email]::placeholder { color: var(--slate); }
.newsletter-form input[type=email]:focus { border-color: var(--ink); outline: 2px solid var(--cobalt); outline-offset: 2px; }
.newsletter-form .btn { height: 48px; }
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 14em; margin: 0 auto 30px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--ink); padding: 64px 0 0; font-size: 15px; }
.footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 48px var(--gut); }
.footer-brand .brand { display: inline-flex; }
.logo-footer { height: 72px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--slate); font-size: 15px; max-width: 24em; }
.footer-contact { color: var(--slate); font-size: 15px; grid-template-columns: 64px 1fr; }
.footer-contact dt { font: 700 .85rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.footer-contact dd, .footer-contact a { color: var(--slate); }
.footer-contact a:hover { color: var(--cobalt); }
.footer-col { gap: 7px; }
.footer-col .eyebrow { font: 700 15px/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; }
.footer-col a { font-size: 15px; color: var(--ink); }
.footer-col a:hover { color: var(--cobalt); text-decoration: underline; }
.footer-bottom { margin-top: 56px; border-top: 1px solid var(--edge); color: var(--slate); font-size: 14px; padding-bottom: 40px; }
.footer-bottom a { color: var(--ink); }
.footer-bottom a:hover { color: var(--cobalt); text-decoration: underline; }

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

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--slate); }
.tabs { box-shadow: inset 0 -1px 0 var(--edge); }
.tabs a { font: 700 .95rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); border-bottom: 2px solid transparent; }
.tabs a.is-active, .tabs a:hover { color: var(--ink); border-color: var(--cobalt); }
.account-body .wrap > .notice { background: var(--field); color: var(--ink); border: 0; border-left: 2px solid var(--cobalt); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--cobalt); }
.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(0, 0, 0, .55); }
.dialog { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-top: 1px solid var(--ink); box-shadow: none; }
.dialog h2 { font: 700 1.7rem/1.15 var(--sans); letter-spacing: -.02em; }
.dialog p { color: var(--ink); }
.progress-strip { border: 1px solid var(--ink); }
.progress-strip div { border-right: 1px solid var(--edge); }
.progress-strip b { font: 300 2rem/1.1 var(--sans); letter-spacing: -.02em; }
.progress-strip span { font: 400 .85rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.bar { background: var(--edge); height: 2px; }
.bar i { background: var(--cobalt); }
.ucard { background: #fff; border: 1px solid var(--edge); }
.ucard.is-open { background: #fff; border: 1px solid var(--cobalt); box-shadow: inset 0 2px 0 var(--cobalt); }
.ucard.is-locked { background: transparent; }
.ucard.is-locked h3, .ucard.is-locked .ucard-no { color: var(--edge); }
.ucard-no { font: 300 2.3rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.ucard-no small { font: 400 .75rem/1 var(--sans); letter-spacing: 0; color: var(--slate); }
.ucard h3 { font-size: 1.25rem; }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--slate); }
.ucard-more:hover { color: var(--cobalt); }
.pill { font: 700 .8rem/1 var(--sans); letter-spacing: 0; text-transform: none; border: 1px solid var(--ink); color: var(--ink); }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.wait { color: var(--slate); border-color: var(--edge); }
.pill.bad { border-color: var(--bad); color: var(--bad); }
.verdict { font: 700 .95rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.verdict.bad { background: var(--bad); }
.verdict.ok { background: var(--ok); }
.exam-score { font: 300 3.4rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.exam-score small { color: var(--slate); }
.exam-result.is-passed { border-color: var(--ok); }
.score { font: 700 1.2rem/1 var(--sans); }
.panel { background: #fff; border: 1px solid var(--edge); }
.panel h2 { font-size: 1.7rem; }
.panel p { color: var(--ink); }
.panel.is-key { border: 1px solid var(--ink); }
.paper-card { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-bottom: 1px solid var(--ink); }
.quiz-head p { color: var(--ink); }
.q { background: #fff; border: 1px solid var(--edge); }
.q-no { font: 400 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.q-text { font: 700 1.15rem/1.4 var(--sans); letter-spacing: -.005em; }
.opt { border: 1px solid var(--edge); border-radius: 0; }
.opt:hover { border-color: var(--ink); }
.opt .k { border: 1px solid var(--ink); border-radius: 0; font: 700 .85rem/1 var(--sans); }
.opt:has(input:checked) { border-color: var(--cobalt); background: #fff; }
.opt:has(input:checked) .k { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.opt:has(input:focus-visible) { outline-color: var(--cobalt); }
.opt.is-right { background: #eef6f0; }
.opt.is-wrong { background: #f8eeed; }
.explain { background: var(--field); border-left: 2px solid var(--cobalt); color: var(--ink); }
.explain b { font: 700 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.quiz-foot { background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ink); backdrop-filter: none; }
.quiz-foot .state { font: 400 .9rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.scorebox { border: 1px solid var(--ink); }
.scorebox .big { font: 300 3.6rem/1 var(--sans); letter-spacing: -.03em; }
.scorebox .big small { color: var(--slate); }
.timer { background: #fff; border: 1px solid var(--ink); font: 400 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
.timer b { font: 300 1.6rem/1 var(--sans); letter-spacing: -.01em; }
.timer.is-low { border-color: var(--bad); color: var(--bad); }
.breakdown td, .breakdown th { border-color: var(--edge); }
.breakdown th { font: 700 .9rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.q-figure img { filter: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ unit reader */
/* White paper: title, subtitle, and actions under a hairline, without the unit's photograph on the page (the PDF
   keeps it on its title page). */
.reader-hero { background: #fff; border-bottom: 1px solid var(--edge); }
.reader-hero img.bg, .reader-hero .credit { display: none; }
.reader-hero .wrap { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(44px, 5vw, 64px); max-width: var(--wrap); }
.reader-hero .wrap > * { max-width: 46em; }
.reader-hero .eyebrow { color: var(--slate); font-weight: 400; }
.reader-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); color: var(--ink); margin: 14px 0 14px; }
.reader-hero .sub { font: 400 1.25rem/1.4 var(--sans); color: var(--slate); }
.reader { background: #fff; color: var(--ink); }
.toc { font-size: .95rem; }
.toc .eyebrow { font: 700 1rem/1.3 var(--sans); color: var(--ink); }
.toc a { border-left: 1px solid var(--edge); color: var(--slate); }
.toc a:hover, .toc a.is-active { color: var(--cobalt); border-color: var(--cobalt); }
.unit-text { font-size: 17.5px; line-height: 1.7; }
.unit-text h2 { font: 700 2rem/1.15 var(--sans); letter-spacing: -.02em; border-bottom: 1px solid var(--ink); padding-bottom: .3em; }
.unit-text h3 { font: 700 1.4rem/1.25 var(--sans); letter-spacing: -.015em; }
.unit-text h4 { font: 700 1.05rem/1.3 var(--sans); font-style: normal; }
.unit-text .secno { font: 300 .7em/1 var(--sans); color: var(--slate); vertical-align: .12em; letter-spacing: 0; }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--field); }
.unit-text .fn, .unit-text figcaption { color: var(--slate); }
.unit-text figure img { border: 0; }
.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: 700 .85rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.box-title { font: 700 1.02rem/1.3 var(--sans); }
/* Box colours, the same as in the unit PDFs (theme/theme.tex): a strong tone for bars and rules, a light tint as ground. */
.box-keyequation { --bx: #1f4fd8; --bx-l: #eaeffb; }
.box-law, .box-laws { --bx: #000000; --bx-l: #f0f2f4; }
.box-derivation { --bx: #3a4148; --bx-l: #f5f6f8; }
.box-derivation .box-head { background: var(--bx-l); color: var(--bx); border-bottom: 1px solid var(--bx); }
.box-example { --bx: #1f7a3d; --bx-l: #eaf5ee; border: 0; border-top: 2px solid var(--bx); }
.box-excursion { --bx: #5b626c; --bx-l: #f0f2f4; border: 0; border-left: 2px solid var(--bx); }
.box-excursion .box-title { font-style: normal; }
.box-research { --bx: #163ba8; --bx-l: #e6ebf8; border: 1px solid var(--bx); }
.box-research .box-kind, .box-research .box-inst { color: #d6def5; }
.box-research .box-name { font: 700 1.45rem/1.15 var(--sans); letter-spacing: -.015em; }
.box-research .box-inst { font: 400 1rem/1.3 var(--sans); }
.box-keypoints { --bx: #8a6a1f; --bx-l: #faf4e6; border: 0; border-top: 2px solid var(--bx); border-bottom: 1px solid var(--bx); }
.box-keypoints .box-kind, .box-questions .box-kind { color: #8a6a1f; }
.box-check { --bx: #8e3b66; --bx-l: #f8eef3; }
.box-check .opt { border-radius: 0; }
.box-interactive { --bx: #1f2a44; --bx-l: #f3f5f9; }
.ia-slider input[type=range] { accent-color: #1f2a44; }
.ia-btn { border-radius: 0; }
.paperlink { border-top: 1px solid var(--edge); }
.paperlink span { font: 700 .85rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.reader-end { background: var(--field); color: var(--ink); border: 0; }
.reader-end h3, .reader-end h2 { font: 700 1.6rem/1.15 var(--sans); letter-spacing: -.02em; }
.reader-end div[style] { color: var(--slate) !important; }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%); }
.lit-list li { border-bottom: 1px solid var(--edge); }
.lit-list a.t { font: 700 1.2rem/1.3 var(--sans); letter-spacing: -.015em; }
.lit-list .m { color: var(--slate); }

/* ------------------------------------------------------- prose and pages */
.prose { font-size: 17.5px; line-height: 1.7; }
.prose h2 { font: 700 2rem/1.15 var(--sans); letter-spacing: -.02em; }
.prose h3 { font: 700 1.3rem/1.3 var(--sans); letter-spacing: -.015em; }
.prose blockquote { font: 400 1.25rem/1.5 var(--sans); border-left: 1px solid var(--ink); }
.legal-updated { font: 400 .95rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.legal-box { background: #fff; border: 1px solid var(--ink); }
.prose th { font: 700 .95rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--ink); }
.prose td { border-color: var(--edge); }
.stack-table tr { border-color: var(--edge); }
.stack-table td::before { font: 700 .85rem/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); }
.resource { border-color: var(--edge); }
.resource:hover { background: var(--field); }
.resource-name { font: 700 1.2rem/1.3 var(--sans); letter-spacing: -.015em; }
.resource p { color: var(--ink); }
.resource-host { color: var(--cobalt); font-weight: 700; }
.resource-note { color: var(--slate); }
.resource-note .icon { color: var(--cobalt); }
.eq-grid { gap: var(--gut); }
.eq-card { background: #fff; border: 1px solid var(--edge); }
.eq-card h4, .eq-card h3 { font: 700 1.02rem/1.3 var(--sans); }
.eq-card p { color: var(--slate); }
.eq-toc { border: 1px solid var(--edge); }
.eq-toc a span { font: 300 1rem/1 var(--sans); color: var(--slate); }
.pathway-map td, .pathway-map th { border-color: var(--edge); }
.aid-body > p { color: var(--ink); }
.aid-contact { color: var(--slate) !important; }
.aid-apply-aside { border-top: 1px solid var(--ink); color: var(--slate); }
.aid-apply-aside h3 { color: var(--ink); }
.aid-apply-aside a { color: var(--cobalt); }
.aid-form fieldset { background: #fff; border: 1px solid var(--edge); }
.aid-form legend { font: 700 1.5rem/1.2 var(--sans); letter-spacing: -.02em; }
.aid-form legend span { background: var(--cobalt); color: #fff; font: 700 .95rem/34px var(--sans); border-radius: 0; }
.aid-location { background: var(--field); border: 0; }
.aid-location em { color: var(--slate); }
.aid-err { color: var(--bad); }
.aid-submit span, .aid-wrong summary { color: var(--slate); }
.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); }

/* ----------------------------------------------------------------- motion */
/* The design answers the visitor (hover and focus) and lights one vertex once on load; nothing drifts or reveals. */
.reveal { opacity: 1; transform: none; transition: none; }
.marquee { animation: none; }

/* ================================================================ home page */
/* The landing page (theme/home.php): a 12-column grid with 32 px gutters, the label of every section in columns 1 to 2
   with the name of its pictogram under it, heading and copy from column 3 and never wider than eight columns, full-width
   1 px Edge Grey rules between the sections. Every pictogram is 1 px Ink with 6 px vertices and encodes its content. */
.gt-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.gt-sec { padding: 112px 0; border-top: 1px solid var(--edge); }
.gt-sec.gt-field { background: var(--field); border-top-color: var(--field); }
.gt-lab { grid-column: 1 / 3; padding-top: 6px; }
.lab-n { font: 700 17px/1.35 var(--sans); margin: 0; letter-spacing: 0; }
.lab-p { font-size: 15px; line-height: 1.4; color: var(--slate); margin: 4px 0 0; }
.lab-g { margin-top: 18px; }
.gt-head { grid-column: 3 / 11; }
.gt-head h2 { margin: 0; }
.gt-head .lead { margin: 20px 0 0; }
.gt-after { grid-column: 3 / 11; margin: 48px 0 0; }
.gt-foot { grid-column: 3 / 11; margin: 40px 0 0; font-size: 15px; color: var(--slate); }
.gt-meta { font-size: 15px; color: var(--slate); margin: 0; }
.pname { font-size: 14px; line-height: 1.35; color: var(--slate); margin: 10px 0 0; }
/* pictograms: 1 px Ink, 6 px vertices, identical everywhere */
.g line, .g path { stroke: var(--ink); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.g circle { fill: var(--ink); transition: fill .2s; }
.g text { font: italic 400 11px var(--sans); fill: var(--ink); }
.ck { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.3; transform: translateY(1px); }
.gt-vlist { list-style: none; margin: 28px 0 30px; padding: 0; }
.gt-vlist li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.gt-vlist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.gt-cklist { list-style: none; margin: 0; padding: 0; }
.gt-cklist li { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; }

/* 1 Hero: the dodecahedron and a Hamilton cycle, drawn by theme.js */
.gt-hero { padding: 64px 0 56px; }
.gt-hero-t { grid-column: 1 / 7; align-self: center; padding-bottom: 12px; }
.gt-hero h1 { display: block; font-size: inherit; margin: 0; max-width: none; letter-spacing: 0; }
.gt-hero .hero-name { display: block; font: 700 19px/1.3 var(--sans); letter-spacing: 0; margin-bottom: 28px; color: var(--ink); }
.gt-hero .hero-head { display: block; font-weight: 800; font-size: clamp(56px, 6.8vw, 112px); line-height: .95; letter-spacing: -.035em; max-width: 7.2em; }
.gt-hero-sub { font-size: 19px; line-height: 1.5; max-width: 30em; margin: 32px 0 32px; }
.gt-ck { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 16px; }
.gt-ck li { display: flex; align-items: baseline; gap: 9px; }
.gt-hero-g { grid-column: 7 / 13; justify-self: end; width: 100%; max-width: 600px; margin: 0; }
.hc { width: 100%; aspect-ratio: 1; display: block; }
.gt-hero-g figcaption { margin-top: 20px; padding-left: 4px; }
.cap-main { display: block; font-size: 17px; min-height: 3.1em; transition: opacity .3s; }
.cap-main.out { opacity: 0; }
.cap-sub { display: block; font-size: 15px; color: var(--slate); margin-top: 2px; }

/* 2 Alumni: a static greyscale grid with hairlines, 8 per row */
.gt-alumni { padding: 56px 0; }
.gt-alumni .gt-lab { padding-top: 22px; }
.gt-logos { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--edge); border-left: 1px solid var(--edge); list-style: none; margin: 0; padding: 0; }
.gt-logos li { display: flex; align-items: center; justify-content: center; height: 84px; padding: 14px; border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.gt-logos img { max-height: 34px; max-width: 100%; width: auto; height: auto; filter: grayscale(1) contrast(1.1); opacity: .85; }

/* 3 About the program */
.gt-intro-t { grid-column: 3 / 8; }
.gt-intro-t h2 { margin: 0 0 28px; }
.gt-intro-t p { margin: 0 0 18px; max-width: 34em; }
.gt-intro-f { grid-column: 8 / 13; align-self: start; padding: 8px 0 0 var(--gut); margin: 0; }
.gt-intro-f img { width: 100%; height: auto; display: block; }
.gt-intro-f figcaption { font-size: 14px; line-height: 1.45; color: var(--slate); margin-top: 12px; }
.gt-intro-f .credit { display: block; margin-top: 4px; }

/* 4 Audiences: heading, paragraph, check list; the lists level (owner's rule) */
.gt-auds { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.gt-aud { padding: 0 32px; border-left: 1px solid var(--edge); display: flex; flex-direction: column; }
.gt-aud:first-child { padding-left: 0; border-left: 0; }
.gt-aud h3 { margin: 0 0 12px; font-size: 19px; }
.gt-aud p { margin: 0; flex: 1; }
.gt-aud .gt-cklist { margin-top: 18px; }

/* 5 How it works: a breadth-first search over the six steps. Layer k of the drawing stands above step k + 1. The
   drawing stretches to the page width (preserveAspectRatio none); strokes do not scale and the vertices are round dots
   of zero length, so nothing distorts. The static state is the finished search; with motion allowed, a wave of Cobalt
   runs through the layers and the shortest route to the last vertex is drawn, again every 11 s while on screen. */
.gt-bfs { grid-column: 1 / -1; margin-top: 64px; }
.bfs { display: block; width: 100%; height: 208px; overflow: visible; }
.bfs line { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bx line { stroke: var(--edge); stroke-width: 1; }
.bt line { stroke: var(--cobalt); stroke-width: 1.5; }
.bp line { stroke: var(--cobalt); stroke-width: 4; }
.bv line { stroke: var(--cobalt); stroke-width: 10px; }
.bv line.end { stroke-width: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .bt line, .bp line { stroke-dasharray: 1; }
  .bt line { animation: bfs-edge 11s calc(var(--d) * .6s - .6s) infinite both; }
  .bp line { animation: bfs-edge 11s calc(3.2s + var(--d) * .2s) infinite both; }
  .bv line { animation: bfs-vertex 11s calc(var(--d) * .6s) infinite both; }
  .gt-bfs:not(.on) line { animation-play-state: paused; }
}
@keyframes bfs-edge {
  0% { stroke-dashoffset: 1; opacity: 1; }
  5%, 82% { stroke-dashoffset: 0; opacity: 1; }
  90%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes bfs-vertex {
  0% { stroke: var(--ink); }
  2% { stroke: var(--cobalt); stroke-width: 18px; }
  6%, 82% { stroke: var(--cobalt); }
  90%, 100% { stroke: var(--ink); }
}
.gt-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--gut); margin: 28px 0 0; padding: 0; list-style: none; }
.sn { display: block; font: 300 56px/1 var(--sans); letter-spacing: -.02em; margin-bottom: 18px; }
.gt-step h3 { margin: 0 0 10px; font-size: 18px; }
.gt-step p { font-size: 16px; line-height: 1.5; margin: 0; }

/* 6 Topics: three rows, one drawing per unit group, all on the same 280 px square with the same strokes and vertices */
.gt-trows { grid-column: 1 / -1; margin-top: 64px; border-top: 1px solid var(--edge); }
.gt-trow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); padding: 48px 0; border-bottom: 1px solid var(--edge); }
.gt-tp { grid-column: 1 / 4; margin: 0; max-width: 280px; }
.tfig { display: block; width: 100%; height: auto; overflow: visible; }
.tfig line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tfig circle { fill: var(--ink); }
.ico circle { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ico .c0 { fill: var(--cobalt); }
.ico .c1 { fill: var(--red); }
.ico .c2 { fill: var(--yellow); }
.ico .c3 { fill: #fff; }
.rgg line { stroke: var(--edge); }
.rgg circle { fill: var(--edge); }
.rgg .gc { stroke: var(--cobalt); fill: var(--cobalt); }
.paley .rd line { stroke: var(--red); }
.paley .bl line { stroke: var(--cobalt); }
.gt-tp .pname { margin-top: 18px; }
.gt-tt { grid-column: 4 / 12; }
.gt-tt h3 { font-size: 24px; margin: 0; }
.gt-tt .gt-meta { margin: 4px 0 14px; }
.gt-tt > p:not(.gt-meta) { max-width: 38em; margin: 0; }
.gt-ulist { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gut); margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--edge); }
.gt-ulist li { border-bottom: 1px solid var(--edge); }
.u { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 11px 0; font: 400 17px/1.4 var(--sans); color: var(--ink); text-align: left; }
.un { font-weight: 300; min-width: 1.6em; color: var(--slate); }
.u:hover .ut, .u.open .ut, .u:hover .un, .u.open .un, .u:focus-within .ut { color: var(--cobalt); }
.ut { flex: 1 1 auto; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.ut:hover, .ut:focus-visible { text-decoration-color: currentColor; }
.u.open .ut { font-weight: 700; }
.ux { position: relative; flex: 0 0 auto; align-self: center; width: 28px; height: 28px; margin: -4px 0; padding: 0; background: none; border: 1px solid var(--edge); border-radius: 0; cursor: pointer; color: var(--ink); }
.ux::before, .ux::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.ux::before { width: 12px; height: 1px; }
.ux::after { width: 1px; height: 12px; transition: transform .15s; }
.ux[aria-expanded="true"]::after { transform: translate(-50%, -50%) scaleY(0); }
.ux:hover, .ux:focus-visible, .u.open .ux { border-color: var(--cobalt); color: var(--cobalt); }
.us { padding: 0 0 14px calc(1.6em + 14px); font-size: 16px; line-height: 1.5; margin: 0; }
.us a { font-weight: 700; }

/* 7 Sample unit on Field: three typeset pages of Unit 3 (the built page images once the unit exists), the questions */
.gt-pages { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin-top: 56px; color: var(--ink); text-decoration: none; }
.pg { aspect-ratio: 1 / 1.414; background: #fff; border: 1px solid var(--edge); overflow: hidden; transition: border-color .15s; }
.gt-pages:hover .pg { border-color: var(--ink); }
.pg img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pg-in { height: 100%; padding: 20px 24px 12px; display: flex; flex-direction: column; font-size: 10px; line-height: 1.48; }
.pg-h { display: flex; justify-content: space-between; color: var(--slate); font-size: 9px; border-bottom: 1px solid var(--edge); padding-bottom: 6px; margin-bottom: 18px; }
.pg-no { font-size: 11px; font-weight: 700; color: var(--cobalt); margin: 0; }
.pg-title { font: 800 22px/1.05 var(--sans); letter-spacing: -.02em; margin: 6px 0 14px; }
.pg-s { font: 700 13px/1.25 var(--sans); margin: 0 0 10px; }
.pg-body { margin: 0 0 9px; hyphens: auto; }
.pg-thm { border-left: 1px solid var(--ink); padding: 2px 0 2px 10px; margin: 4px 0 12px; }
.pg-thm p { margin: 0; }
.pg-fig { margin-top: auto; padding-top: 4px; }
.pg-fig svg { width: 118px; height: auto; display: block; }
.pg-fig .pfig { width: 96px; }
.pg-cap { font-size: 9px; color: var(--slate); margin: 4px 0 0; }
.pg-f { text-align: center; font-size: 9px; color: var(--slate); margin: auto 0 0; padding-top: 8px; }
.pg-fig + .pg-f { margin-top: 0; }
.gt-sam-t { grid-column: 3 / 10; margin-top: 56px; }
.gt-sam-t h3 { font-size: 24px; margin: 0 0 10px; }
.gt-sam-t > p:not(.gt-meta) { max-width: 38em; margin: 0; }
.gt-sam-t .gt-meta { margin-top: 28px; }
.gt-qlist { counter-reset: q; margin: 12px 0 36px; padding: 0; list-style: none; border-top: 1px solid var(--edge); }
.gt-qlist li { counter-increment: q; display: grid; grid-template-columns: 2.2em 1fr; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.gt-qlist li::before { content: counter(q); font-weight: 300; color: var(--slate); }
.gt-sam-note { font-size: 15px; color: var(--slate); margin: 0 0 20px; }

/* 8 Research: the engine's researcher cards from column 3, the portraits in colour at the card's width */
.gt-research .researchers { grid-column: 3 / 13; margin-top: 56px; }
.gt-research .avatar { width: 100%; aspect-ratio: 4 / 5; object-position: 50% 30%; }
.gt-research .researcher:hover .avatar { opacity: .92; }
.gt-research .disclaimer { grid-column: 3 / 11; }

/* 9 Tuition Fee: K8, K12, K16 above the three columns of the engine's cards */
.gt-kn-row { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.gt-kn-row figure { margin: 0; padding: 24px var(--gut) 0; border-left: 1px solid var(--edge); }
.gt-kn-row figure:first-child { border-left: 0; padding-left: 0; }
.gt-kn-row .kn { width: 240px; max-width: 100%; height: auto; display: block; }
.gt-kn-row .kn line { transition: stroke .25s; }
.gt-kn-row figure:hover .kn line { stroke: var(--cobalt); }
.gt-kn-row figure:hover .kn circle { fill: var(--cobalt); }
.gt-tuition .packages { grid-column: 3 / 13; }
.gt-tuition .fee-footnote { grid-column: 3 / 11; }
.gt-tuition .aid-note { grid-column: 3 / 13; }

/* 10 Certificate: the sample in a hairline frame */
.gt-cert-f { grid-column: 3 / 8; border: 1px solid var(--ink); padding: 14px; align-self: start; margin: 0; }
.gt-cert-f img { width: 100%; height: auto; display: block; border: 1px solid var(--edge); }
.gt-cert { border: 1px solid var(--edge); padding: 40px 36px 28px; text-align: center; }
.c-b { font-weight: 700; font-size: 15px; margin: 0; }
.c-t { font: 800 30px/1.05 var(--sans); letter-spacing: -.02em; margin: 20px 0 22px; }
.c-s { font-size: 14px; color: var(--slate); max-width: 26em; margin: 0 auto; }
.c-n { font: 300 34px/1.2 var(--sans); margin: 10px 0 12px; border-bottom: 1px solid var(--edge); display: inline-block; padding: 0 20px 6px; }
.c-f { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 32px; font-size: 12px; color: var(--slate); text-align: left; }
.c-f span:last-child { text-align: right; }
.c-f b { color: var(--ink); font-weight: 700; }
.seal { width: 64px; height: 64px; }
.gt-cert-t { grid-column: 9 / 13; }
.gt-cert-t h2 { margin: 0 0 22px; }
.gt-cert-t p { margin: 0; }
.gt-cert-t .gt-acts { margin-top: 8px; }

/* 11 Community: the star K(1,41) over the three figures and the features */
.gt-starw { grid-column: 3 / 13; margin-top: 64px; }
.gt-starw .star { width: 100%; height: auto; display: block; }
.gt-figs { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gut); margin-top: 24px; }
.fv { font: 300 clamp(56px, 6vw, 88px)/1 var(--sans); letter-spacing: -.035em; margin: 0; }
.fl { font-size: 16px; margin: 10px 0 0; }
.gt-feats { grid-column: 3 / 13; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--edge); padding-top: 40px; }
.gt-feat { padding-right: 32px; }
.gt-feat h3 { margin: 0 0 10px; }
.gt-feat p { font-size: 16px; margin: 0; }

/* 12 Blog: the engine's cards with their covers, three in a row */
.gt-blog .posts { grid-column: 3 / 13; margin-top: 48px; }

/* 13 FAQ: the engine's details list in columns 3 to 10 */
.gt-faqs { grid-column: 3 / 11; margin-top: 48px; }
.gt-faqs .faq { border-top: 1px solid var(--edge); }

/* 14 Newsletter on Field */
.gt-nl { padding: 56px 0; }
.gt-nl .gt-lab { padding-top: 12px; }
.gt-nl .lab-n { font-size: 19px; }
.gt-nl-t { grid-column: 3 / 7; font-size: 16px; align-self: center; }
.gt-nl-t p { margin: 0; }
.gt-nl-f { grid-column: 8 / 13; align-self: center; }
.gt-nl .newsletter-form input[type=email] { background: #fff; }

/* 15 Final call to action with a closed knight's tour; with motion allowed the tour is drawn while on screen */
.gt-cta { padding: 136px 0 128px; border-top: 1px solid var(--edge); }
.gt-cta-t { grid-column: 1 / 9; }
.gt-cta h2 { font-weight: 800; font-size: clamp(48px, 6vw, 96px); line-height: .95; letter-spacing: -.035em; margin: 0 0 44px; max-width: 9em; }
.gt-cta-g { grid-column: 9 / 13; align-self: center; margin: 0; max-width: 440px; }
.knight { display: block; width: 100%; height: auto; }
.ke line { stroke: var(--edge); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.kv circle { fill: var(--ink); }
.kt { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .kt { stroke-dasharray: 1; animation: tour 16s linear infinite both; }
  .gt-cta-g:not(.on) .kt { animation-play-state: paused; }
}
@keyframes tour {
  0% { stroke-dashoffset: 1; opacity: 1; }
  55%, 88% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav { gap: 0; }
  .nav-top { padding: 12px 8px; }
  .header-inner { gap: 24px; }
  .gt-hero-t { grid-column: 1 / 8; }
  .gt-hero-g { grid-column: 8 / 13; }
  .gt-logos { grid-template-columns: repeat(4, 1fr); }
  .gt-steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; margin-top: 40px; }
  .gt-kn-row figure { padding: 24px 20px 0; }
  .gt-kn-row .kn { width: 200px; }
  .package, .light .package { padding: 0 20px 8px; }
  .package:first-child { padding-left: 0; }
}
@media (max-width: 1080px) {
  .gt-kn-row { display: none; }
  .gt-tuition .packages { margin: 56px 0 0; }
}
@media (max-width: 980px) {
  .gt-grid { display: block; }
  .gt-lab { margin-bottom: 16px; padding-top: 0; }
  .lab-p { margin-top: 2px; }
  .gt-hero-g { max-width: 520px; margin: 48px auto 0; }
  .gt-head .lead { margin-top: 16px; }
  .gt-intro-f { margin-top: 40px; max-width: 520px; padding: 0; }
  .gt-auds { grid-template-columns: 1fr; margin-top: 40px; }
  .gt-aud { padding: 32px 0; border-left: 0; border-top: 1px solid var(--edge); }
  .gt-aud:first-child { padding-top: 32px; }
  .gt-tp { margin-bottom: 32px; }
  .gt-trow { display: block; }
  .gt-cert-t { margin-top: 48px; }
  .gt-nl-t { margin: 6px 0 20px; }
  .gt-cta-g { margin-top: 48px; }
  .gt-research .researchers, .gt-tuition .packages, .gt-tuition .fee-footnote, .gt-tuition .aid-note, .gt-research .disclaimer { grid-column: auto; }
}
@media (max-width: 860px) {
  .gt-research .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .gt-sec { padding: 72px 0; }
  .gt-hero { padding: 36px 0 48px; }
  .gt-hero .hero-name { margin-bottom: 18px; font-size: 17px; }
  .gt-hero .hero-head { font-size: clamp(46px, 13.4vw, 64px); }
  .gt-hero-sub { font-size: 17.5px; margin: 24px 0; }
  .gt-acts .btn { flex: 1 1 auto; }
  .gt-hero-g { margin-top: 36px; }
  .lead, .light .lead { font-size: 17.5px; }
  .gt-logos { grid-template-columns: repeat(2, 1fr); }
  .gt-logos li { height: 72px; }
  .gt-bfs { margin-top: 40px; }
  .bfs { height: 150px; }
  .bv line { stroke-width: 7px; }
  .bv line.end { stroke-width: 11px; }
  .gt-steps { grid-template-columns: 1fr; row-gap: 32px; margin-top: 32px; }
  .sn { font-size: 36px; margin-bottom: 8px; }
  .gt-ulist { grid-template-columns: 1fr; }
  .gt-pages { grid-template-columns: 1fr; max-width: 420px; }
  .gt-pages .pg:not(:first-child) { display: none; }
  .gt-cert { padding: 28px 16px 20px; }
  .c-t { font-size: 24px; }
  .c-n { font-size: 28px; }
  .gt-figs { grid-template-columns: 1fr; row-gap: 28px; margin-top: 16px; }
  .gt-feats { grid-template-columns: 1fr; row-gap: 28px; margin-top: 48px; }
  .gt-feat { padding-right: 0; }
  .faq summary { font-size: 17px; }
  .faq-a, .light .faq-a { padding-right: 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type=email] { border-right: 1px solid var(--ink); }
  .gt-cta { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .researchers, .gt-research .researchers { gap: 40px 16px; }
  .avatar { width: 96px; }
  .stats { grid-template-columns: 1fr; gap: 28px 0; }
}
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
}
@media (max-width: 420px) {
  .gt-acts .btn, .hero-actions .btn { width: 100%; }
  .wordmark { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
