/* Marine Biology Masterclass theme "Open Water Review": overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The engine is designed dark with warm paper sections; this
   theme is a white magazine page, so everything that carried a dark ground, an uppercase mono label, or the
   warm accent is redrawn here: header, buttons, page heroes, cards, tables, forms, the unit reader, and the
   account pages. The second half styles the landing page (theme/home.php, classes h-*). */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 18px/1.65 var(--sans); font-feature-settings: "kern" 1; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.012em; line-height: 1.04; }
h1 { font-size: clamp(40px, 5vw, 72px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: 1.6rem; line-height: 1.12; }
b, strong { font-weight: 500; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--lagoon); color: #fff; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; }
.wrap { max-width: calc(1280px + 2 * var(--gutter)); padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(880px + 2 * var(--gutter)); }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow { font: 500 .84rem/1.3 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--lagoon); }
.lead, .light .lead { font-size: 1.15rem; line-height: 1.55; color: var(--grey); }
.credit { font: 400 12.5px/1.45 var(--sans); letter-spacing: 0; color: var(--grey); }
.credit a { color: inherit; }
.link-arrow { font: 500 1rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--lagoon); border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-decoration-color: rgba(30, 122, 134, .45); text-underline-offset: .2em; }
.link-arrow:hover { opacity: 1; text-decoration-color: currentColor; }
.link-arrow .icon { width: 1.1em; height: 1.1em; }
/* text links are Lagoon; links that are whole cards or menu items keep the text colour */
.prose a:not(.btn), .unit-text a:not(.btn), .faq-a a, .lead a, .notice a:not(.btn), .auth-card p a, .field .hint a, .kv a, .legal-box a, .aid-body a:not(.btn), .panel p a:not(.btn), .form p a, .section p > a:not(.btn):not(.link-arrow), .fee-footnote a, .disclaimer a { color: var(--lagoon); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover, .unit-text a:not(.btn):hover { color: var(--lagoon-deep); }
.rule, .light .rule { border-color: var(--line); }

/* ---------------------------------------------------------------- buttons */
.btn { border: 1.5px solid var(--ink); border-radius: 2px; font: 500 17px/1.2 var(--sans); letter-spacing: 0; padding: 13px 26px; min-height: 52px; color: var(--ink); background: transparent; gap: 10px; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light, .btn-dark { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.btn-light:hover, .btn-dark:hover { background: var(--lagoon-deep); border-color: var(--lagoon-deep); color: #fff; }
.btn-ghost, .btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover, .btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn .icon { width: 1.15em; height: 1.15em; }
/* on a photograph: white primary, white outline */
.page-hero.has-img .btn-light, .reader-hero .btn-light, .reader-end .btn-light, .h-cover .btn-light, .h-final .btn-light, .h-deep .btn-light, .h-community-over .btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.page-hero.has-img .btn-light:hover, .reader-hero .btn-light:hover, .reader-end .btn-light:hover, .h-cover .btn-light:hover, .h-final .btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.page-hero.has-img .btn-ghost, .reader-hero .btn-ghost, .reader-end .btn-ghost, .h-cover .btn-ghost, .h-final .btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.page-hero.has-img .btn-ghost:hover, .reader-hero .btn-ghost:hover, .reader-end .btn-ghost:hover, .h-cover .btn-ghost:hover, .h-final .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.page-hero.has-img :focus-visible, .reader-hero :focus-visible, .h-cover :focus-visible, .h-final :focus-visible, .h-deep :focus-visible, .h-community-over :focus-visible, .site-footer :focus-visible, .has-overlay-header .site-header:not(.is-scrolled) :focus-visible { outline-color: #fff; }

/* ----------------------------------------------------------------- header */
.site-header { height: var(--header-h); background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .2s, border-color .2s, color .2s; }
.has-overlay-header .site-header { position: fixed; background: transparent; border-color: transparent; color: #fff; }
.has-overlay-header .site-header.is-scrolled { background: #fff; color: var(--ink); border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { gap: 28px; }
.brand { flex: 0 0 auto; color: inherit; }
.logo { height: 44px; width: auto; }
.brand .logo-light { display: none; }
.has-overlay-header .site-header:not(.is-scrolled) .logo-dark { display: none; }
.has-overlay-header .site-header:not(.is-scrolled) .logo-light { display: block; }
.nav { flex: 1 1 auto; gap: 6px; margin-left: 0; }
.nav-top { font: 400 16px/1 var(--sans); color: inherit; padding: 12px; border-radius: 2px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.nav-top::after { width: 6px; height: 6px; border-width: 1.5px; margin-left: 0; opacity: 1; transform: translateY(-2px) rotate(45deg); }
.nav-top:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-menu { top: calc(100% + 6px); min-width: 270px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(16, 41, 58, .16); padding: 10px 0; color: var(--ink); }
.nav-menu a { padding: 9px 20px; font-size: 16px; line-height: 1.35; color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--mist-soft); color: var(--ink); outline-offset: -3px; }
.header-cta { margin-left: auto; gap: 18px; }
.nav-login { font: 400 16px/1 var(--sans); color: inherit; }
.has-overlay-header .site-header:not(.is-scrolled) .btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.has-overlay-header .site-header:not(.is-scrolled) .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.burger { width: 42px; height: 42px; border: 1.5px solid currentColor; border-radius: 2px; color: inherit; }
.burger span { background: currentColor; }
.mobile-menu { background: #fff; color: var(--ink); padding: 28px 0 48px; }
.mm-group { border-color: var(--line); }
.mm-group .eyebrow { font: 400 26px/1.1 var(--serif); color: var(--ink); text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.mm-group a { font: 400 18px/1.4 var(--sans); padding: 7px 0; border-bottom: 1px solid var(--line); }
.mm-group a:last-child { border-bottom: 0; }
.mm-cta { grid-template-columns: 1fr; max-width: 420px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(72px, 8vw, 110px) 0; }
.section.light { background: #fff; color: var(--ink); }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p, .light .section-head p { font-size: 1.1rem; color: var(--grey); }
.flash { background: var(--mist-soft); border-bottom: 1px solid var(--line); color: var(--ink); }
.flash-error { background: #f8ecef; border-color: #e6c2ca; }

/* -------------------------------------------------------------- page hero */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); margin: 14px 0 18px; max-width: 14em; }
.page-hero .lead { max-width: 40em; }
.page-hero.has-img { color: #fff; border-bottom: 0; padding: clamp(110px, 13vw, 170px) 0 clamp(48px, 6vw, 80px); background: var(--navy); }
.page-hero.has-img::before { filter: none; }
.page-hero.has-img::after { background: linear-gradient(90deg, rgba(7, 27, 41, .86) 0%, rgba(7, 27, 41, .55) 55%, rgba(7, 27, 41, .2) 100%), linear-gradient(0deg, rgba(5, 20, 31, .5) 0%, rgba(5, 20, 31, 0) 50%); }
.page-hero.has-img .eyebrow { color: var(--lagoon-light); }
.page-hero.has-img .lead { color: #e6eef0; }

/* ------------------------------------------------------- split, checks, cards */
.split-body p, .light .split-body p { color: var(--ink); font-size: 1.03rem; }
.split-media .credit { position: static; display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--grey); }
.checks { gap: 0; margin: 26px 0 32px; }
.checks li { padding: 12px 0; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks .icon, .light .checks .icon { color: var(--lagoon); }
.checks b { font-weight: 600; }
.cards-3 { border: 0; }
.aud { background: transparent; border-right: 1px solid var(--line); padding: 0 clamp(20px, 3vw, 40px); }
.aud:first-child { padding-left: 0; }
.aud:last-child { padding-right: 0; border-right: 0; }
.aud:hover { background: transparent; color: inherit; }
.aud:hover p, .aud:hover li { color: var(--ink); }
.aud .icon, .aud li .icon { display: none; }
.aud h3 { font-size: 32px; line-height: 1.1; margin-bottom: 16px; }
.aud p { font-size: 18px; color: var(--ink); }
.aud ul { border-top: 0; padding-top: 0; margin-top: 22px; gap: 0; font-size: 16px; color: var(--ink); }
.aud li { padding: 8px 0; border-top: 1px solid var(--line); white-space: normal; }
.steps { gap: 8px 36px; background: none; border: 0; }
.step { background: transparent; border-top: 1px solid var(--ink); padding: 14px 0 20px; }
.step-no { margin-bottom: 10px; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--lagoon); font: 400 44px/1 var(--serif); }
.step h3 { font: 500 19px/1.3 var(--sans); margin-bottom: 6px; letter-spacing: 0; }
.step p { font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.week, .week > div { border-color: var(--line); }
.week .d { font: 500 .72rem/1 var(--sans); letter-spacing: .06em; color: var(--grey); }
.week b { font-weight: 400; }
.week span { color: var(--grey); }
.week .on { background: var(--mist-soft); }
.features { gap: 40px; }
.feature .icon { display: none; }
.feature h3 { font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.feature p, .light .feature p { color: var(--ink); font-size: 17px; line-height: 1.55; }
.stats { border-color: var(--line); margin: 0 0 48px; }
.stats div { padding: 18px 24px 22px 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.stats b { color: var(--ink); font: 400 clamp(56px, 6vw, 96px)/1 var(--serif); letter-spacing: -.02em; margin-bottom: 8px; }
.stats span { font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.cert-shot img, .light .cert-shot img { border: 0; box-shadow: 0 1px 2px rgba(16, 41, 58, .12), 0 24px 48px rgba(16, 41, 58, .18); }
.kv { grid-template-columns: 170px 1fr; font-size: 1rem; }
.kv dt { font: 500 15px/1.7 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.notice { border-left: 3px solid var(--lagoon); background: var(--mist-soft); }
.notice.warn { border-color: var(--bad); }
.contact-faq { background: var(--mist-soft); border-color: var(--line); }
.contact-faq h3 { font-weight: 400; }
.contact-faq p { color: var(--ink); }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 1px solid var(--ink); }
.unit-group-head h3, .unit-group-head h2.h3-look { font-size: clamp(30px, 3vw, 40px); }
.unit-group-head .eyebrow { color: var(--grey); }
.unit-row { border-bottom: 1px solid var(--line); }
a.unit-row:hover, .unit-row:target { background: var(--mist-soft); box-shadow: -14px 0 0 var(--mist-soft), 14px 0 0 var(--mist-soft); }
.unit-row:target { box-shadow: -14px 0 0 var(--mist-soft), 14px 0 0 var(--mist-soft), -17px 0 0 var(--lagoon); }
.unit-row .no { font: 500 .76rem/1 var(--sans); letter-spacing: .08em; color: var(--lagoon); }
.unit-row h4, .unit-row h3 { font-size: 1.5rem; }
.unit-row p { color: var(--ink); font-size: .95rem; }
.unit-row p em { color: var(--grey); }
.unit-more, .sample-pdf { color: var(--grey); }
.unit-more:hover, .sample-pdf:hover { color: var(--lagoon); }
.topic-badges li { color: var(--grey); border-color: var(--line); background: var(--mist-soft); }
.spot-box { background: var(--mist-soft); border-color: var(--line); border-left-color: var(--lagoon); }
.spot-label { color: var(--lagoon); font: 500 .72rem/1 var(--sans); letter-spacing: .06em; }
.spot span { color: var(--grey); }
.spot .avatar { aspect-ratio: 1; object-position: 50% 25%; }
.sample-cta { background: var(--lagoon); color: #fff; }
.sample-cta:hover { background: var(--lagoon-deep); }
.sample-cta .icon { color: #fff; }
.sample-cta span { color: #e6eef0; }
.unit-row .pk { font: 400 .82rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey); }
.unit-pager { border-color: var(--line); }
.unit-pager a { font-size: 1.2rem; }
.unit-pager a span { font: 500 .74rem/1.8 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--grey); }

/* ------------------------------------------------------------ researchers */
.researchers { gap: 56px 32px; }
.avatar { aspect-ratio: 3 / 4; object-position: 50% 25%; filter: grayscale(1) contrast(1.06); background: var(--mist-soft); }
.avatar-mono { font: 400 3rem/1 var(--serif); color: var(--grey); border: 1px solid var(--line); background: var(--mist-soft); }
.researcher-body { border-top: 0; padding-top: 14px; margin-top: 0; }
.researcher h3 { font-size: 24px; line-height: 1.15; margin-bottom: 6px; }
.researcher-inst { font-size: 13.5px; line-height: 1.45; color: var(--grey); margin-bottom: 10px; }
.researcher p { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.researcher-body .eyebrow { color: var(--grey); font-size: .78rem; }
.disclaimer, .section:not(.light) .disclaimer { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--grey); max-width: 60em; margin: 56px 0 18px; }
.research .disclaimer:first-child, .section .wrap > .disclaimer:first-child { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 44px; }

/* --------------------------------------------------------------- packages */
.packages { gap: 0; align-items: stretch; }
.package { display: flex; flex-direction: column; background: transparent; border: 0; border-left: 1px solid var(--line); padding: 6px clamp(20px, 3vw, 40px) 0; }
.package:first-child { border-left: 0; padding-left: 0; }
.package:last-child { padding-right: 0; }
.package.is-featured { background: transparent; border-color: var(--line); }
.package-flag { order: 0; position: static; background: none; color: var(--lagoon); font: 500 15.5px/1.65 var(--sans); letter-spacing: 0; text-transform: none; padding: 0; margin: 0 0 4px; }
.package h2, .package h3 { order: 1; font-size: 34px; line-height: 1.1; min-height: 0; margin: 0; display: block; }
.package:not(.is-featured) h3 { margin-top: calc(15.5px * 1.65 + 4px); }
.package > .eyebrow:not(.package-units-label) { order: 2; font: 400 16px/1.5 var(--sans); color: var(--grey); text-transform: none; letter-spacing: 0; margin: 4px 0 16px; }
.fee { order: 3; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 22px; padding: 0; border: 0; }
.fee-label { flex-basis: 100%; font: 500 .72rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.fee-now { font: 400 clamp(56px, 5.4vw, 84px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 19px/1 var(--sans); color: var(--grey); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.package-note { order: 4; color: var(--ink); font-size: 17px; line-height: 1.55; min-height: 0; margin: 0 0 18px; }
.fee-aid { order: 5; margin: 0 0 14px; color: var(--grey); }
.fee-aid span { color: var(--lagoon); }
.fee-aid:hover { color: var(--ink); }
.package-incl { order: 6; margin: 0 0 28px; gap: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); flex: 1 0 auto; }
.package-incl li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); }
.package-incl li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 9px; height: 5px; border-left: 1.6px solid var(--lagoon); border-bottom: 1.6px solid var(--lagoon); transform: rotate(-45deg); }
.package > .btn { order: 7; display: inline-flex; width: auto; align-self: flex-start; }
.package .btn-ghost { border-color: var(--ink); color: var(--ink); }
.package-units-label { order: 8; border-top: 1px solid var(--line); margin: 28px 0 10px; padding-top: 22px; }
.package-units { order: 9; gap: 0; font-size: 15.5px; }
.package-units li a { grid-template-columns: 2em 1fr 14px; border: 0; border-top: 1px solid var(--line); background: none; padding: 8px 0; font-weight: 400; line-height: 1.35; }
.package-units li a::after { color: var(--lagoon); }
.package-units li a:hover, .package-units li a:focus-visible { background: var(--mist-soft); border-color: var(--line); }
.package-units li a > span { font: italic 400 20px/1 var(--serif); color: var(--lagoon); }
.package-units li.gap { margin-top: 18px; }
.topic-badge { font: 500 .68rem/1 var(--sans); letter-spacing: .1em; color: var(--lagoon); border-color: var(--lagoon); }   /* was .56rem = 9px, too small to read on a phone */
.fee-footnote { text-align: left; color: var(--grey); font-size: 15px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 48px; max-width: 60em; }
.aid-note { border-color: var(--lagoon); background: rgba(30, 122, 134, .06); }
.aid-note p { color: var(--ink); }
.aid-note h3 { font-weight: 400; }
.aid-note.is-granted { border-color: var(--ok); background: rgba(47, 125, 91, .08); }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 48px 40px; }
.testimonial, .section:not(.light) .testimonial { border: 0; background: transparent; padding: 0; }
.testimonial blockquote { font: italic 400 clamp(22px, 1.9vw, 27px)/1.38 var(--serif); margin: 0 0 22px; }
.testimonial blockquote::before { content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin-bottom: 22px; font-size: 0; line-height: 0; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border-top: 0; padding-top: 0; font-size: 14.5px; line-height: 1.45; color: var(--grey); }
.t-avatar { width: 46px; height: 46px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: var(--mist); color: var(--ink); font: 400 17px/1 var(--serif); letter-spacing: .04em; }
.testimonial figcaption strong { color: var(--ink); font-weight: 500; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--grey); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 40px; }
.post-card-img { aspect-ratio: 4 / 3; background: var(--mist-soft); margin-bottom: 16px; }
.post-card .eyebrow { font: 400 14.5px/1.4 var(--sans); color: var(--grey); letter-spacing: 0; text-transform: none; }
.post-card h3 { font-size: 26px; line-height: 1.16; margin: 6px 0 12px; }
.post-card p, .section:not(.light) .post-card p { font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.post-card:hover h3 { text-decoration-color: var(--lagoon); }
.pager a, .pager span { border-color: var(--line); 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-color: var(--line); }
.post-cover .credit { color: rgba(255, 255, 255, .9); }
.post-meta { border-color: var(--line); }
.prose .citation .cite-doi { color: var(--lagoon); }
.prose .citation .cite-note { color: var(--grey); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 0; border-bottom: 1px solid var(--line); }
.faq details, .light .faq details { border-bottom: 0; border-top: 1px solid var(--line); }
.faq summary { font: 400 clamp(21px, 2vw, 26px)/1.25 var(--serif); padding: 22px 56px 22px 0; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1.5px; background: var(--lagoon); transform: none; font: 0/0 a; transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--lagoon-deep); }
.faq-a, .light .faq-a { color: var(--ink); font-size: 18px; line-height: 1.65; max-width: 62ch; padding: 0 0 26px; }

/* ------------------------------------------------------------- newsletter */
.newsletter { position: relative; background: transparent; border: 1px solid var(--ink); outline: 1px dashed #8fa3ac; outline-offset: -14px; padding: 56px clamp(28px, 5vw, 72px); gap: 24px 56px; align-items: end; }
.newsletter h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.newsletter p { color: var(--ink); font-size: 17px; line-height: 1.55; max-width: 30em; }
.newsletter-form { gap: 10px; }
.newsletter-form input[type=email] { border: 1px solid var(--line); border-bottom: 2px solid var(--ink); background: var(--mist-soft); color: var(--ink); font-size: 18px; height: 52px; border-radius: 0; }
.newsletter-form input[type=email]::placeholder { color: #6b7e88; }
.newsletter-form input[type=email]:focus { border-color: var(--line); border-bottom-color: var(--ink); outline: 3px solid var(--lagoon); outline-offset: 2px; }
.newsletter-form .btn { height: 52px; }
.cta-final h2 { font-weight: 400; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #dce6e9; border-top: 0; padding: 72px 0 0; font-size: 16px; }
.footer-grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px; }
.logo-footer { height: 50px; margin-bottom: 22px; }
.footer-brand p { color: #dce6e9; font-size: 15px; line-height: 1.55; max-width: 28em; }
.footer-contact { color: #dce6e9; grid-template-columns: 70px 1fr; }
.footer-contact dt { font: 500 .7rem/2.1 var(--sans); letter-spacing: .08em; color: #9fb2bb; }
.footer-contact dd, .footer-contact a { color: #dce6e9; }
.footer-contact a:hover { color: #fff; }
.footer-col .eyebrow { font: 400 20px/1.2 var(--serif); color: #fff; text-transform: none; letter-spacing: 0; margin-bottom: 10px; }
.footer-col a { color: #dce6e9; font-size: 15px; line-height: 1.4; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); color: #dce6e9; font-size: 14.5px; margin-top: 56px; }
.footer-bottom a { color: #dce6e9; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

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

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

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

/* ------------------------------------------------------------ unit reader */
.reader-hero { background: var(--navy); }
.reader-hero img.bg { filter: brightness(.6); }
.reader-hero { color: #fff; }                       /* the engine's hero inherits --ink, which is dark in this theme */
.reader-hero h1 { color: #fff; }
.reader-hero .eyebrow { color: var(--lagoon-light); }
.reader-hero .sub { font: italic 400 1.45rem/1.35 var(--serif); color: #e6eef0; }
.reader-hero .credit { color: rgba(255, 255, 255, .85); }
.reader { background: #fff; color: var(--ink); }
.toc a { border-color: var(--line); color: var(--grey); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--ink); }
.unit-text h2 { border-bottom: 1px solid var(--ink); }
.unit-text h4 { font: italic 500 1.05rem/1.3 var(--sans); }
.unit-text .secno { font: 400 .6em/1 var(--sans); color: var(--grey); }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--mist-soft); }
.unit-text .fn, .unit-text figcaption { color: var(--grey); }
.unit-text table, .unit-text th { border-color: var(--ink); }
.box { background: #fff; border-color: var(--ink); }
.box-kind { font: 500 .72rem/1.2 var(--sans); letter-spacing: .14em; }
.box-title { font-weight: 500; }
.box-keyequation { --bx: #1e7a86; --bx-l: #e4f1f2; }
.box-law, .box-laws { --bx: #10293a; --bx-l: #e9eef1; }
.box-derivation { --bx: #10293a; --bx-l: #e9eef1; }
.box-example { --bx: #2f7d5b; --bx-l: #e8f3ee; }
.box-excursion { --bx: #7d5a3c; --bx-l: #f4eee8; }
.box-research { --bx: #2d4a7a; --bx-l: #e8edf5; }
.box-research .box-kind, .box-research .box-inst { color: #c9d6ea; }
.box-research .box-name { font-weight: 400; }
.box-keypoints { --bx: #a97c22; --bx-l: #f8f2e4; }
.box-keypoints .box-kind, .box-questions .box-kind { color: #8a6318; }
.box-check { --bx: #9c3d52; --bx-l: #f8ecef; }
.box-check .check-result { border-top-color: rgba(156, 61, 82, .25); }
.box-interactive { --bx: #243b53; --bx-l: #edf1f5; }
.ia-slider input[type=range] { accent-color: #243b53; }
.ia-btn.on { background: #243b53; border-color: #243b53; }
.paperlink { border-color: var(--line); }
.paperlink span { font: 500 .7rem/1 var(--sans); letter-spacing: .08em; color: var(--grey); }
.reader-end { background: var(--ink); color: #fff; }
.reader-end h3, .reader-end h2 { font-weight: 400; }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%); }
.lit-list li { border-color: var(--line); }
.lit-list a.t { font-weight: 400; }
.lit-list .m { color: var(--grey); }

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

/* ----------------------------------------------------------------- cookie */
.cookie { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(16, 41, 58, .22); }
.cookie p { color: var(--ink); }
.cookie .btn-ghost { border-color: var(--ink); color: var(--ink); }

/* ================================================================ home page */
/* The landing page (theme/home.php): one issue of a nature magazine. Cover, static alumni row, intro with
   drop cap, excerpt plate, hairline-divided columns, full-bleed spreads with long captions, contributors'
   page, Bodoni fees, Mist certificate band, community spread with pull quotes, subscription card, final call. */
.h-display { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.012em; margin-bottom: 28px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.h-caption, .h-caption p { font-size: 14px; line-height: 1.5; color: var(--ink); }
.h-caption p { margin: 0 0 .4em; max-width: 62ch; }
.h-caption .credit, .h-credit { font-size: 12.5px; line-height: 1.45; color: var(--grey); margin: 0; }
.h-caption .credit a, .h-credit a { color: var(--grey); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.h-caption .credit a:hover, .h-credit a:hover { color: var(--ink); }
.h-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.h-sec-head .h-display { margin-bottom: 0; }
.h-sec-head p { max-width: 32em; margin: 0 0 6px; }
.h-ruled { border-top: 0; padding-top: 0; }
.h-ruled::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: clamp(72px, 8vw, 110px); }
.h-topics.h-ruled::before { width: calc(100% - 2 * var(--gutter)); max-width: 1280px; margin-inline: auto; }
.h-points { list-style: none; margin: 0; padding: 0; max-width: 44em; }
.h-points li { border-top: 1px solid var(--line); padding: 14px 0; font-size: 18px; line-height: 1.55; }
.h-points li:last-child { border-bottom: 1px solid var(--line); }
.h-points b { font-weight: 500; }
.h-link { font-weight: 500; color: var(--lagoon); text-decoration: underline; text-decoration-color: rgba(30, 122, 134, .45); text-underline-offset: .2em; }
.h-link:hover { text-decoration-color: currentColor; }

/* 1. cover */
.h-cover { position: relative; min-height: max(100vh, 760px); display: flex; flex-direction: column; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.h-cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.h-cover-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 27, 41, .7) 0%, rgba(7, 27, 41, .38) 17%, rgba(7, 27, 41, 0) 34%), linear-gradient(0deg, rgba(5, 20, 31, .86) 0%, rgba(5, 20, 31, .55) 26%, rgba(5, 20, 31, 0) 52%); }
.h-cover-foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 25fr) minmax(0, 46fr) minmax(0, 6fr) minmax(0, 23fr); align-items: end; padding: 0 var(--gutter) 54px; max-width: 1600px; width: 100%; margin-inline: auto; }
.h-cover-copy { grid-column: 2; }
.h-cover-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.3vw, 66px); line-height: 1.02; letter-spacing: -.012em; margin: 0 0 18px; text-wrap: balance; }
.h-cover-name { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: .005em; line-height: 1.2; margin-bottom: 14px; color: rgba(255, 255, 255, .88); }
.h-cover-sub { font-size: 19px; line-height: 1.5; max-width: 31em; margin: 0 0 26px; }
.h-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 0; padding: 0; font-size: 15.5px; }
.h-checks li { display: flex; align-items: center; gap: 8px; }
.h-checks .icon { width: 16px; height: 16px; stroke-width: 2; }
.h-cover-lines { grid-column: 4; list-style: none; margin: 0; padding: 0; }
.h-cover-lines li { border-top: 1px solid rgba(255, 255, 255, .6); }
.h-cover-lines li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .6); }
.h-cover-lines a { display: block; padding: 12px 0 14px; color: #fff; text-decoration: none; font-size: 17px; line-height: 1.35; }
.h-cover-lines a:hover { text-decoration: underline; text-underline-offset: .2em; }
.h-cover-lines b { display: block; font-weight: 500; font-size: 14px; letter-spacing: .01em; margin-bottom: 3px; opacity: .9; }
.h-cover-credit { position: absolute; right: 12px; bottom: 54px; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .88); max-height: 70%; }
.h-cover-credit a { color: inherit; }

/* 2. alumni */
.h-alumni { padding: 44px var(--gutter) 52px; border-bottom: 1px solid var(--line); text-align: center; }
.h-alumni-title { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--grey); margin: 0 0 24px; letter-spacing: 0; line-height: 1.4; }
.h-logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 46px; max-width: 1360px; margin: 0 auto; padding: 0; }
.h-logo { display: block; width: var(--w); height: var(--h); background: var(--ink); opacity: .66; -webkit-mask: var(--src) center/contain no-repeat; mask: var(--src) center/contain no-repeat; }

/* 3. intro */
.h-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); padding-top: 120px; padding-bottom: 120px; align-items: start; }
.h-intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.h-intro-photo figcaption, .h-how-photo figcaption, .h-spread-photo figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.h-intro-body .h-display { max-width: 11em; margin-top: -6px; }
.h-longread { columns: 2; column-gap: 44px; column-rule: 1px solid var(--line); margin-bottom: 40px; font-size: 19px; }
.h-longread p { margin: 0 0 1em; }
.h-dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 400; font-size: 5.6em; line-height: .78; margin: .07em .09em 0 -.02em; color: var(--ink); }
@supports (initial-letter: 4) { .h-dropcap::first-letter { float: none; initial-letter: 4; margin: 0 .14em 0 0; font-size: inherit; line-height: inherit; } }

/* 4. excerpt */
.h-excerpt { padding-top: 20px; padding-bottom: 120px; }
.h-plate { margin: 0; }
.h-plate-img { position: relative; background: #000; }
.h-plate-img img { width: 100%; height: clamp(420px, 58vw, 780px); object-fit: cover; }
.h-plate-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .45) 30%, rgba(0, 0, 0, 0) 58%); }
.h-plate-title { position: absolute; left: 0; right: 0; bottom: 44px; margin-inline: auto; color: #fff; z-index: 1; }
.h-plate-unit { font-size: 17px; margin: 0 0 6px; }
.h-plate-title h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.6vw, 104px); line-height: .98; letter-spacing: -.02em; max-width: 10em; margin: 0; }
.h-plate figcaption { padding-top: 14px; }
.h-excerpt-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); margin-top: 56px; }
.h-standfirst { font-size: 21px; line-height: 1.5; color: var(--grey); max-width: 36em; margin: 0 0 24px; }
.h-excerpt-para { font-family: var(--serif); font-size: 24px; line-height: 1.6; max-width: 34em; margin: 0 0 36px; }
.h-excerpt-note { font-size: 17px; color: var(--grey); margin: 0 0 24px; max-width: 36em; }
.h-questions { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.h-questions h3 { font-family: var(--sans); font-weight: 500; font-size: 17px; margin: 0 0 14px; letter-spacing: 0; }
.h-questions ol { list-style: none; counter-reset: q; margin: 0; padding: 0; }
.h-questions li { counter-increment: q; position: relative; padding: 12px 0 14px 46px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.h-questions li::before { content: counter(q); position: absolute; left: 0; top: 4px; font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--lagoon); }

/* 5. audiences */
.h-audiences { padding-bottom: 110px; }
.h-aud-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.h-aud { padding: 0 clamp(20px, 3vw, 40px); }
.h-aud:first-child { padding-left: 0; }
.h-aud:last-child { padding-right: 0; }
.h-aud + .h-aud { border-left: 1px solid var(--line); }
.h-aud h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin: 0 0 16px; }
.h-aud p { font-size: 18px; }
.h-aud ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.45; }
.h-aud li { padding: 8px 0; border-top: 1px solid var(--line); }

/* 6. how it works */
.h-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-right: var(--gutter); padding-bottom: 120px; max-width: 1600px; margin-inline: auto; }
.h-how-photo { margin: 0; }
.h-how-photo img { width: 100%; height: clamp(420px, 52vw, 760px); object-fit: cover; object-position: 30% 50%; }
.h-how-photo figcaption { padding-left: var(--gutter); padding-right: 8px; }
.h-how-body { padding-top: 8px; max-width: 700px; }
.h-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; margin: 0; padding: 0; }
.h-steps li { counter-increment: s; border-top: 1px solid var(--ink); padding: 14px 0 20px; }
.h-steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--lagoon); margin-bottom: 10px; }
.h-steps h3 { font-family: var(--sans); font-weight: 500; font-size: 19px; line-height: 1.3; margin: 0 0 6px; letter-spacing: 0; }
.h-steps p { font-size: 16.5px; line-height: 1.55; margin: 0; }

/* 7. topics */
.h-topics { padding-bottom: 90px; }
.h-topics > .h-sec-head { margin-bottom: 56px; }
.h-spread { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-bottom: 100px; }
.h-spread-flip { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.h-spread-flip .h-spread-photo { order: 2; }
.h-spread-photo { margin: 0; }
.h-spread-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.h-part { font-size: 15.5px; font-weight: 500; color: var(--lagoon); margin: 0 0 8px; }
.h-spread-text h3 { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 16px; }
.h-teaser { font-size: 18px; line-height: 1.55; margin: 0 0 22px; }
.h-contents { list-style: none; margin: 0; padding: 0; }
.h-contents li { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.35; }
.h-contents li:last-child { border-bottom: 1px solid var(--line); }
.h-contents .n { flex: 0 0 1.9em; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--lagoon); }
.h-contents a { color: inherit; text-decoration: none; }
.h-contents a:hover { text-decoration: underline; text-underline-offset: .2em; }
.h-deep { position: relative; background: #0b0c0e; color: #fff; overflow: hidden; isolation: isolate; }
.h-deep > img, .h-deep > picture.h-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -1; }
.h-deep-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; min-height: min(56vw, 820px); padding-top: 90px; padding-bottom: 56px; align-items: start; }
.h-deep .h-part, .h-deep .h-contents .n { color: var(--lagoon-light); }
.h-deep .h-contents li { border-color: rgba(255, 255, 255, .28); }
.h-deep .h-teaser { color: #e6eef0; }
.h-deep-caption { grid-column: 1; align-self: end; justify-self: start; margin-top: 56px; max-width: 420px; font-size: 14px; line-height: 1.5; color: #e6eef0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .35); }
.h-deep-caption p { margin: 0 0 .4em; }
.h-deep-caption .credit, .h-deep-caption .credit a { color: #b9c6cd; }
.h-topics-more { margin: 48px auto 0; }

/* 8. research */
.h-research { padding-top: 120px; padding-bottom: 110px; }
.h-contributors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; }
.h-contrib-intro .h-display { font-size: clamp(36px, 3.4vw, 50px); margin-bottom: 20px; }
.h-contrib-intro p { font-size: 17px; line-height: 1.55; }
.h-research .researcher .avatar { aspect-ratio: 3 / 4; }

/* 9. tuition */
.h-tuition { padding-bottom: 110px; }

/* 10. certificate */
.h-cert-band { background: var(--mist); padding: 110px 0; }
.h-cert { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.h-cert-sheet img { width: 100%; height: auto; box-shadow: 0 1px 2px rgba(16, 41, 58, .12), 0 24px 48px rgba(16, 41, 58, .18); transform: rotate(-1.2deg); background: #fff; }
.h-cert-body .h-display { margin-bottom: 20px; }
.h-cert-body .h-points { margin-bottom: 32px; }
.h-cert-body .h-points li { border-color: #b9c8cd; }
.h-cert-body .h-link { color: var(--ink); }

/* 11. community */
.h-community { padding-bottom: 110px; }
.h-community-spread { position: relative; color: #fff; margin: 0; }
.h-community-photo { display: grid; background: var(--navy); }
.h-community-photo > *, .h-community-photo > picture.h-pic > img { grid-area: 1 / 1; }
.h-community-photo > img, .h-community-photo > picture.h-pic > img { width: 100%; height: auto; align-self: stretch; min-height: clamp(640px, 62vw, 900px); object-fit: cover; object-position: 50% 40%; }
.h-community-shade { background: linear-gradient(0deg, rgba(6, 24, 36, .92) 0%, rgba(6, 24, 36, .74) 36%, rgba(6, 24, 36, .34) 58%, rgba(6, 24, 36, 0) 78%); }
.h-community-over { align-self: end; padding-top: 120px; padding-bottom: 56px; position: relative; }
.h-community-over .h-display { margin-bottom: 16px; }
.h-comm-intro { font-size: 19px; max-width: 34em; margin: 0 0 40px; }
.h-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(255, 255, 255, .5); }
.h-figures div { display: flex; flex-direction: column-reverse; padding: 18px 24px 0 0; }
.h-figures div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .5); }
.h-figures dd { margin: 0; font-family: var(--serif); font-size: clamp(56px, 7vw, 112px); line-height: 1; letter-spacing: -.02em; }
.h-figures dt { font-size: 16px; margin-top: 8px; }
.h-community-spread figcaption { background: #fff; padding-top: 12px; font-size: 12.5px; color: var(--grey); position: relative; z-index: 2; }
.h-community-spread figcaption p { margin: 0; max-width: none; }
.h-community-spread figcaption a { color: var(--grey); }
.h-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 80px; }
.h-feature h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.h-feature p { font-size: 17px; line-height: 1.55; margin: 0; }
.h-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; padding-top: 96px; }
.h-quotes-title { grid-column: 1 / -1; font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); line-height: 1.1; margin: 0 0 -8px; }
.h-comm-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 48px auto 0; }

/* 12. blog */
.h-blog { padding-bottom: 110px; }
.h-blog .posts { margin-bottom: 40px; }

/* 13. faq */
.h-faq { max-width: calc(940px + 2 * var(--gutter)); padding-bottom: 90px; }
.h-faq .faq { margin-bottom: 32px; }

/* 14. subscribe */
.h-subscribe { padding-bottom: 110px; }
.h-subscribe .newsletter { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.h-subscribe .newsletter h2 { padding-right: 90px; }
.h-sub-form label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.h-sub-stamp { position: absolute; top: 30px; right: 30px; width: 92px; height: 92px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.h-sub-stamp rect { stroke-dasharray: 2 4; stroke-width: 2.2; }

/* 15. final */
.h-final { position: relative; min-height: min(86vh, 820px); display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; isolation: isolate; background: #0b3a45; }
.h-final > img, .h-final > picture.h-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.h-final-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 26, 36, .84) 0%, rgba(5, 26, 36, .66) 48%, rgba(5, 26, 36, .12) 80%); }
.h-final-inner { padding-top: 120px; padding-bottom: 120px; }
.h-final h2 { font-family: var(--serif); font-size: clamp(48px, 7vw, 112px); line-height: .98; letter-spacing: -.02em; max-width: 9em; margin: 0 0 36px; }
.h-final-credit { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0 auto; font-size: 12px; color: rgba(255, 255, 255, .9); }
.h-final-credit a { color: inherit; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .h-contributors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-contrib-intro { grid-column: 1 / -1; max-width: 40em; }
  .h-cover-foot { grid-template-columns: minmax(0, 22fr) minmax(0, 48fr) minmax(0, 4fr) minmax(0, 26fr); }
}
@media (max-width: 1080px) {
  .packages { max-width: none; }
  .package, .package:first-child, .package:last-child { padding: 36px 0 40px; border-left: 0; border-top: 1px solid var(--line); }
  .package:first-child { border-top: 0; padding-top: 0; }
  .package:not(.is-featured) h3 { margin-top: 0; }
  .header-cta .btn { display: none; }
  .researchers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .h-intro { grid-template-columns: 1fr; }
  .h-intro-photo { max-width: 560px; }
  .h-longread { columns: 1; }
  .h-how { grid-template-columns: 1fr; padding-right: 0; }
  .h-how-body { padding-inline: var(--gutter); max-width: none; }
  .h-steps { gap: 0 32px; }
  .h-spread, .h-spread-flip { grid-template-columns: 1fr; }
  .h-spread-flip .h-spread-photo { order: 0; }
  .h-spread-text { max-width: 640px; }
  .h-cert { grid-template-columns: 1fr; }
  .h-cert-sheet { max-width: 640px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .h-cover-foot { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .h-cover-copy, .h-cover-lines { grid-column: 1; }
  .h-cover-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .h-cover-lines li:last-child { border-bottom: 0; }
  .h-sec-head { grid-template-columns: 1fr; }
  .h-excerpt-body { grid-template-columns: 1fr; }
  .h-questions { border-left: 0; padding-left: 0; }
  .h-aud-cols { grid-template-columns: 1fr; }
  .h-aud, .h-aud:first-child, .h-aud:last-child { padding: 28px 0; }
  .h-aud + .h-aud { border-left: 0; border-top: 1px solid var(--line); }
  .h-deep > img, .h-deep > picture.h-pic > img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 80% 45%; }
  .h-deep-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .h-deep-caption { grid-column: 1; justify-self: start; margin-top: 32px; }
  .h-contributors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
  .h-features, .h-quotes { grid-template-columns: 1fr; }
  .h-quotes { gap: 44px; }
  .h-subscribe .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .logo { height: 34px; }
  .aud { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .aud:first-child { padding-top: 0; }
  .aud:last-child { border-bottom: 0; }
  .stats div { border-bottom: 1px solid var(--line); padding: 14px 0 10px; }
  .stats div + div { border-left: 0; padding-left: 0; }
  .stats div:last-child { border-bottom: 0; }
  .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: 1fr; }
  .page-hero.has-img { padding-top: clamp(96px, 16vw, 130px); }
  .unit-group-head { flex-wrap: wrap; gap: 6px 20px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .h-cover { min-height: 0; background: #08202e; }
  .h-cover-photo img { height: min(100vh, 760px); bottom: auto; object-position: 58% 50%; }
  .h-cover-shade { background: linear-gradient(180deg, rgba(7, 27, 41, .66) 0%, rgba(7, 27, 41, .2) 20%, rgba(7, 27, 41, 0) 30%), linear-gradient(0deg, #08202e 0%, #08202e calc(100% - min(100vh, 760px)), rgba(8, 32, 46, .9) calc(100% - min(100vh, 760px) + 60px), rgba(8, 32, 46, 0) calc(100% - min(100vh, 760px) + 300px)); }
  .h-cover-foot { margin-top: max(36vh, 250px); }
  .h-cover-copy h1 { font-size: 40px; }
  .h-cover-sub { font-size: 18px; }
  .h-cover-lines { grid-template-columns: 1fr; }
  .h-cover-lines li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .6); }
  .h-cover-credit { position: static; writing-mode: horizontal-tb; transform: none; padding: 0 var(--gutter) 22px; max-height: none; }
  .h-intro, .h-audiences, .h-topics, .h-research, .h-tuition, .h-blog, .h-faq { padding-top: 72px; padding-bottom: 72px; }
  .h-ruled::before { margin-bottom: 72px; }
  .h-intro.h-ruled, .h-audiences.h-ruled, .h-topics.h-ruled, .h-research.h-ruled, .h-tuition.h-ruled, .h-blog.h-ruled, .h-faq.h-ruled { padding-top: 0; }
  .h-excerpt, .h-how, .h-community, .h-subscribe { padding-bottom: 72px; }
  .h-cert-band { padding: 72px 0; }
  .h-excerpt-para { font-size: 21px; }
  .h-steps { grid-template-columns: 1fr; }
  .h-spread { margin-bottom: 64px; }
  .h-community-photo > img, .h-community-photo > picture.h-pic > img { min-height: 560px; }
  .h-community-shade { background: linear-gradient(0deg, rgba(6, 24, 36, .94) 0%, rgba(6, 24, 36, .8) 60%, rgba(6, 24, 36, .3) 85%, rgba(6, 24, 36, .1) 100%); }
  .h-community-over { padding-top: 220px; padding-bottom: 32px; }
  .h-figures { grid-template-columns: 1fr; }
  .h-figures div, .h-figures div + div { padding: 14px 0 6px; border-left: 0; }
  .h-figures div + div { border-top: 1px solid rgba(255, 255, 255, .5); }
  .h-figures dd { font-size: 60px; }
  .h-contributors { grid-template-columns: 1fr; }
  .h-research .researcher { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
  .h-research .researcher-body { padding-top: 0; }
  .newsletter { padding: 40px 24px 36px; outline-offset: -10px; }
  .h-sub-stamp { width: 56px; height: 56px; top: 22px; right: 22px; }
  .h-subscribe .newsletter h2 { padding-right: 64px; }
  .h-final { min-height: 620px; }
  .h-final-shade { background: linear-gradient(0deg, rgba(5, 26, 36, .85) 0%, rgba(5, 26, 36, .55) 60%, rgba(5, 26, 36, .25) 100%); }
  .footer-grid { grid-template-columns: 1fr; }
  .h-alumni { padding: 36px var(--gutter) 40px; }
  .h-logos { gap: 18px 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--gutter); }
  body { font-size: 17px; }
  .newsletter-form input[type=email] { border-right: 1px solid var(--line); }
  .verify-form input { border-right: 1px solid var(--line); }
  .researchers { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* WebP sources: the <picture> wrapper around the landing-page photographs takes no box of its own. */
picture.h-pic { display: contents; }
