/* Archaeology Masterclass theme "Sites" (design option 8): overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css.

   The engine is designed with a black ground, warm paper sections, Cormorant headings, and uppercase mono labels.
   This design is cool pale stone: Limestone page, white bands, Basalt text, Marcellus headings in sentence case,
   Albert Sans for everything else, no uppercase labels, flat cards with a hairline and a 4 px radius, no shadows,
   and Yellow Ochre only on buttons and locator pins (Deep Ochre for links and numbers on light grounds). The first
   half redraws the engine's shared parts (header, buttons, page heroes, cards, lists, forms, the unit reader, the
   account); the second half styles the landing page (theme/home.php): the hero and the full-width site bands. */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 17.5px/1.6 var(--sans); overflow-x: hidden; font-feature-settings: "kern" 1; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 5.2vw, 68px); }
h2 { font-size: clamp(34px, 4.2vw, 52px); }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font: 600 17px/1.35 var(--sans); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--basalt); color: #fff; }
:focus-visible { outline: 3px solid var(--ochre-deep); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .band :focus-visible, .community :focus-visible, .final :focus-visible, .site-footer :focus-visible, .package.is-featured :focus-visible, .reader-end :focus-visible, .has-overlay-header .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--ochre-hi); }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gut)); }
.skip { background: var(--ochre); color: var(--basalt); border-radius: 4px; font-weight: 600; }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 600 15px/1.4 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--ochre-deep); }
.lead, .light .lead { font-size: 19px; line-height: 1.55; color: var(--dust); max-width: 40em; }
.credit, .credit a { font: 400 12.5px/1.45 var(--sans); letter-spacing: 0; color: var(--dust); }
.link, .link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 600 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; border: 0; padding: 0; color: var(--ochre-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover, .link-arrow:hover { opacity: 1; color: var(--basalt); }
.link-arrow .icon { width: 1em; height: 1em; }
.link-light { color: var(--ochre-hi); }
.link-light:hover { color: #fff; }
.prose a:not(.btn), .unit-text a:not(.btn), .faq-a a, .lead a, .notice a:not(.btn), .auth-card p a, .field .hint a, .kv a, .legal-box a, .aid-body a:not(.btn), .panel p a:not(.btn), .form p a, .fee-footnote a, .disclaimer a, .aid-contact a, .aid-apply-aside a, .split-body p a, .section-head p a, .split-media figcaption a, .credit-inline a { color: var(--ochre-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover, .faq-a a:hover { color: var(--basalt); }
.rule, .light .rule { border-color: var(--rule); }
.icon { stroke-width: 1.6; }
b, strong { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.actions.center { justify-content: center; }
.after { margin: 44px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn { min-height: 50px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 4px; font: 600 16px/1.2 var(--sans); letter-spacing: 0; gap: 8px; transition: background-color .15s, border-color .15s, color .15s; }
.btn-light { background: var(--ochre); color: var(--basalt); border-color: var(--ochre); }
.btn-light:hover { background: var(--ochre-hi); border-color: var(--ochre-hi); color: var(--basalt); }
.btn-dark { background: var(--basalt); color: #fff; border-color: var(--basalt); }
.btn-dark:hover { background: var(--basalt-2); border-color: var(--basalt-2); color: #fff; }
.btn-ghost, .btn-outline { background: transparent; border-color: var(--basalt); color: var(--basalt); }
.btn-ghost:hover, .btn-outline:hover { background: var(--basalt); border-color: var(--basalt); color: #fff; }
/* on the dark grounds of the design the ghost button is a white outline */
.hero .btn-ghost, .page-hero.has-img .btn-ghost, .reader-hero .btn-ghost, .final .btn-ghost, .community .btn-ghost, .reader-end .btn-ghost, .site-footer .btn-ghost, .package.is-featured .btn-ghost, .has-overlay-header .site-header:not(.is-scrolled) .btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(27, 31, 35, .18); }
.hero .btn-ghost:hover, .page-hero.has-img .btn-ghost:hover, .reader-hero .btn-ghost:hover, .final .btn-ghost:hover, .community .btn-ghost:hover, .reader-end .btn-ghost:hover, .site-footer .btn-ghost:hover, .package.is-featured .btn-ghost:hover, .has-overlay-header .site-header:not(.is-scrolled) .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn-block { padding-left: 16px; padding-right: 16px; }
.btn .icon { width: 18px; height: 18px; }
.btn[disabled], .btn.is-disabled { opacity: .45; }
.link-button { color: var(--ochre-deep); }
.hero-actions { gap: 14px; margin-bottom: 0; }

/* ----------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; height: var(--header-h); background: rgba(250, 250, 248, .97); color: var(--basalt); border-bottom: 1px solid var(--rule); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .25s, color .25s, border-color .25s; }
.has-overlay-header .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.has-overlay-header .site-header.is-scrolled { background: rgba(250, 250, 248, .97); border-color: var(--rule); color: var(--basalt); backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-overlay-header .flash { padding-top: calc(var(--header-h) + 14px); }
.header-inner { max-width: 1600px; padding: 0 var(--gut); gap: 28px; }
.logo { height: 40px; width: auto; }
.brand .logo-light { display: none; }
.has-overlay-header .site-header:not(.is-scrolled) .brand .logo-dark { display: none; }
.has-overlay-header .site-header:not(.is-scrolled) .brand .logo-light { display: block; }
.nav { gap: 4px; margin-left: auto; }
.nav-top { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; font: 500 16px/1 var(--sans); color: inherit; letter-spacing: 0; border-radius: 4px; }
.nav-top:hover { background: rgba(127, 127, 127, .14); }
.nav-top::after { width: 6px; height: 6px; border-color: currentColor; border-width: 1.6px; margin-left: 0; opacity: 1; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-group:hover .nav-top::after, .nav-group.is-open .nav-top::after, .nav-group:focus-within .nav-top::after { transform: translateY(1px) rotate(225deg); }
.nav-menu { top: calc(100% + 6px); min-width: 270px; padding: 8px; background: #fff; color: var(--basalt); border: 0; border-radius: 6px; box-shadow: 0 14px 40px rgba(27, 31, 35, .18), 0 0 0 1px rgba(27, 31, 35, .06); transform: translateY(6px); }
.nav-menu a { padding: 10px 14px; border-radius: 4px; font: 400 15.5px/1.3 var(--sans); color: var(--basalt); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--limestone); color: var(--ochre-deep); outline-offset: -3px; }
.header-cta { gap: 18px; margin-left: 12px; }
.nav-login { font: 500 16px/1 var(--sans); color: inherit; }
.nav-login:hover { text-decoration: underline; text-underline-offset: 4px; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 4px; background: none; }
.burger span { left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 1px; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 22px; }
.mobile-menu { background: #fff; color: var(--basalt); border-top: 1px solid var(--rule); padding: 8px 0 48px; }
.mm-group { border-color: var(--rule); padding: 14px 0; }
.mm-group .eyebrow { font: 600 17px/1.3 var(--sans); color: var(--basalt); margin-bottom: 6px; }
.mm-group a { font: 400 17px/1.4 var(--sans); padding: 8px 8px; color: var(--basalt); border-radius: 4px; }
.mm-group a:hover { background: var(--limestone); color: var(--ochre-deep); }
.mm-cta { grid-template-columns: 1fr; max-width: 420px; }

/* --------------------------------------------------------------- sections */
.section { padding: var(--sec) 0; }
.section.light { background: var(--paper); color: var(--basalt); }
.section.tight { padding: 0 0 var(--sec); }
.section-head { gap: 18px; margin-bottom: 52px; max-width: 720px; }
.section-head p, .light .section-head p { font-size: 19px; color: var(--dust); max-width: 38em; }
.flash { background: #fff; border-bottom: 1px solid var(--rule); color: var(--basalt); }
.flash-error { background: #F8ECE6; border-color: #E8C6B4; }

/* -------------------------------------------------------------- page hero */
/* Inner pages open with a band of the design: a site photograph under the Basalt shade and white Marcellus, or,
   without a photograph, the pale stone ground under a hairline. */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); background: var(--limestone); }
.page-hero h1 { font-size: clamp(40px, 5.2vw, 68px); margin: 12px 0 18px; max-width: 16em; }
.page-hero .lead { color: var(--dust); }
.page-hero.has-img { color: #fff; border-bottom: 0; background: var(--basalt); min-height: 420px; display: flex; align-items: flex-end; padding-top: calc(var(--header-h) + 120px); }
.page-hero.has-img::before { filter: brightness(1.05) contrast(1.04) saturate(1.06); }
.page-hero.has-img::after { background: linear-gradient(180deg, rgba(20, 23, 26, .18) 0%, rgba(20, 23, 26, .42) 50%, rgba(20, 23, 26, .86) 100%); }
.page-hero.has-img .eyebrow { color: var(--ochre-hi); }
.page-hero.has-img .lead { color: rgba(255, 255, 255, .9); }
.page-hero.has-img .wrap { width: 100%; }
.page-hero.has-figure .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.page-hero.has-figure .eyebrow, .page-hero.has-figure h1, .page-hero.has-figure .lead { grid-column: 1; }
.page-hero.has-figure .page-hero-figure { grid-column: 2; grid-row: 1 / span 3; }
.page-hero-figure svg, .page-hero-figure img { width: 100%; height: auto; }

/* ------------------------------------------------------- split, checks, cards */
.split { grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); }
.split.flip { grid-template-columns: 1fr 1.05fr; }
.split-body h2 { margin-bottom: 24px; }
.split-body p, .light .split-body p { color: var(--basalt); font-size: 17.5px; }
.split-body > p { max-width: 62ch; }
.split-media { margin: 0; }
.split-media img { aspect-ratio: 4 / 3.4; border-radius: 4px; }
.split-media .photo { position: relative; border-radius: 4px; overflow: hidden; background: var(--rule); }
.split-media .photo img { width: 100%; }
.split-media .credit { position: static; display: block; margin-top: 10px; }
.split-media figcaption { font-size: 14.5px; color: var(--dust); margin-top: 12px; line-height: 1.5; }
.credit-inline { font-size: 12.5px; color: var(--dust); margin: 8px 0 0; }
.checks { gap: 14px; margin: 28px 0 30px; }
.checks li { grid-template-columns: 22px 1fr; gap: 12px; }
.checks .icon, .light .checks .icon { color: var(--ochre-deep); width: 20px; height: 20px; stroke-width: 2.2; margin-top: 4px; }
.checks b { font-weight: 600; }
.cards-3 { border: 0; border-top: 1px solid var(--rule); gap: 0; }
.aud, .aud:last-child { background: transparent; border: 0; border-left: 1px solid var(--rule); padding: 32px 36px 8px; color: inherit; }
.aud:first-child { border-left: 0; padding-left: 0; }
.aud:hover { background: transparent; color: inherit; }
.aud:hover p, .aud:hover li, .aud:hover .eyebrow { color: inherit; }
.aud > .icon { display: none; }
.aud h3 { font-size: 26px; margin-bottom: 14px; }
.aud p { color: #3B4045; font-size: 16.5px; flex: 1; }
.aud ul { border-top: 0; padding-top: 0; margin-top: 18px; gap: 9px; font: 400 16px/1.45 var(--sans); color: var(--basalt); }
.aud li { align-items: flex-start; white-space: normal; gap: 12px; }
.aud li .icon, .aud:hover li .icon { width: 18px; height: 18px; color: var(--ochre-deep); stroke-width: 2.2; margin-top: 3px; }

/* The steps: three columns parted by hairlines, big Marcellus numbers in Deep Ochre, no icons. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; row-gap: 0; background: none; border: 0; }
.step { background: transparent; padding: 34px 0; border-top: 1px solid var(--rule); }
.step-no { display: block; margin: 0 0 18px; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--ochre-deep); font: 400 56px/1 var(--serif); display: block; }
.step h3 { font: 600 20px/1.3 var(--sans); margin-bottom: 10px; }
.step p { color: #3B4045; font-size: 16.5px; max-width: 36ch; }
.week { border-color: var(--rule); margin-top: 48px; background: #fff; border-radius: 4px; }
.week > div { border-color: var(--rule); }
.week .d { font: 600 13px/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--ochre-deep); }
.week b { font: 400 20px/1.2 var(--serif); }
.week span { color: var(--dust); }
.week .on { background: var(--limestone); }
.features { gap: 28px; }
.feature { background: var(--limestone); padding: 28px 28px 22px; border-radius: 4px; }
.light .feature { background: var(--limestone); }
.feature .icon, .light .feature .icon { width: 34px; height: 34px; color: var(--ochre-deep); margin-bottom: 16px; }
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p, .light .feature p { color: #3B4045; font-size: 15.5px; }
.stats { border: 0; gap: 28px; margin: 0 0 56px; }
.stats div { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding: 20px 0 0; }
.stats b { font: 400 clamp(52px, 6vw, 80px)/1 var(--serif); color: var(--basalt); margin-bottom: 10px; }
.stats span { font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.cert-shot img, .light .cert-shot img { border: 1px solid var(--rule); border-radius: 4px; box-shadow: none; }
.kv { font-size: 16.5px; }
.kv dt { font: 600 14px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ochre-deep); }
.notice { border-left: 4px solid var(--ochre); background: #fff; color: var(--basalt); border-radius: 4px; }
.notice.warn { border-color: var(--bad); }
.notice.important { background: #F8ECE6; border-color: #E8C6B4; border-left: 4px solid #9C4F2B; color: #4A2816; }
.notice.important strong { color: #7A3A1E; }
.contact-faq { background: var(--limestone); border: 0; border-radius: 4px; }
.contact-faq h3 { font: 400 24px/1.2 var(--serif); }
.contact-faq p { color: var(--dust); }
.disclaimer, .section:not(.light) .disclaimer { margin: 52px 0 0; padding: 20px 24px; background: var(--paper); border: 0; border-left: 3px solid var(--rule); font-size: 15px; line-height: 1.5; color: var(--dust); max-width: 900px; }
.light .disclaimer { background: var(--limestone); }

/* -------------------------------------------------------- curriculum, resources */
.unit-group-head { border-bottom: 1px solid var(--basalt); }
.unit-group-head h3, h2.h3-look { font-size: clamp(26px, 2.6vw, 34px); }
.unit-row { border-color: var(--rule); }
a.unit-row:hover, .unit-row:target { background: var(--limestone); box-shadow: -14px 0 0 var(--limestone), 14px 0 0 var(--limestone); }
.unit-row:target { box-shadow: -14px 0 0 var(--limestone), 14px 0 0 var(--limestone), -17px 0 0 var(--ochre); }
.unit-row .no { font: 600 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ochre-deep); white-space: nowrap; }
.unit-row[style*="align-items:start"] .no { height: 1.5rem; padding-top: 0; }
.unit-row h4, .unit-row h3 { font-size: 24px; line-height: 1.2; }
.unit-row p { color: #3B4045; font-size: 16px; }
.unit-row p em { color: var(--dust); }
.unit-row .pk { font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.topic-badges li { font: 500 13px/1.3 var(--sans); color: var(--dust); border-color: var(--rule); background: var(--limestone); border-radius: 4px; }
.spot-box { background: var(--limestone); border-color: var(--rule); border-left: 3px solid var(--ochre); border-radius: 0 4px 4px 0; }
.spot-label { font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ochre-deep); }
.spot { color: var(--basalt); }
.spot span { color: var(--dust); }
.spot b { color: var(--basalt); font: 600 15.5px/1.3 var(--sans); }
.spot .avatar-mono { background: var(--basalt); color: var(--ochre-hi); border: 0; font: 400 14px/1 var(--serif); }
.sample-cta { background: var(--basalt); color: #fff; border-radius: 4px; }
.sample-cta:hover { background: var(--basalt-2); }
.sample-cta .icon { color: var(--ochre-hi); }
.sample-cta span { color: var(--on-dark-2); }
.sample-cta b { color: #fff; }
.unit-more, .sample-pdf { color: var(--dust); }
.unit-more:hover, .sample-pdf:hover { color: var(--basalt); }
.unit-pager { border-color: var(--rule); }
.unit-pager a { font-family: var(--serif); font-size: 21px; color: var(--basalt); }
.unit-pager a span { font: 600 14px/1.8 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.learn { gap: 28px; }
.learn-card { background: var(--limestone); border: 0; border-radius: 4px; overflow: hidden; }
.learn-card:hover { transform: none; }
.learn-img { position: relative; aspect-ratio: 16 / 11; background: var(--rule); }
.learn-img img { aspect-ratio: 16 / 11; }
.learn-card:hover .learn-img img { transform: none; }
.learn-body { padding: 26px 28px 30px; }
.learn-range { font-size: 15px; font-weight: 600; color: var(--ochre-deep); margin: 0 0 8px; }
.learn-body h3 { font-size: 28px; margin: 0 0 12px; min-height: 0; }
.learn-body > p { color: #3B4045; font-size: 16px; min-height: 0; margin: 0 0 18px; }
.learn-units { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 6px; display: grid; gap: 7px; font-size: 15.5px; line-height: 1.4; color: var(--basalt); list-style: none; }
.learn-units li { display: flex; gap: 12px; }
.learn-units a { text-decoration: none; color: inherit; }
.learn-units a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ochre-deep); }
.un { flex: none; width: 22px; text-align: right; font-variant-numeric: tabular-nums; color: var(--dust); }
.resource { border-color: var(--rule); border-radius: 4px; }
.resource:hover { background: var(--limestone); }
.resource-name { font: 400 24px/1.2 var(--serif); color: var(--basalt); }
.resource p { color: #3B4045; }
.resource-host { color: var(--ochre-deep); }
.resource-note { color: var(--dust); }
.resource-note .icon { color: var(--ochre-deep); }
.eq-card { background: var(--limestone); border: 0; border-radius: 4px; }
.eq-card h4, .eq-card h3 { font: 600 16px/1.3 var(--sans); color: var(--basalt); }
.eq-card p { color: var(--dust); }
.eq-toc { border: 1px solid var(--rule); background: #fff; border-radius: 4px; }
.eq-toc a span { font: 600 14px/1 var(--sans); color: var(--ochre-deep); }
.pathway-map td, .pathway-map th { border-color: var(--rule); }
.topic-links a, .section:not(.light) .topic-links a { border-color: var(--line-strong); border-radius: 4px; color: var(--basalt); font-weight: 500; font-size: 14px; }
.topic-links a:hover { border-color: var(--basalt); }

/* ------------------------------------------------------------ researchers */
/* Square portraits in a rounded mount, the name in Marcellus; a researcher without a portrait is shown with the
   site of the work, the initials in a Basalt disc, and a locator (theme/home.php). */
.researchers { gap: 44px 30px; }
.avatar { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; filter: grayscale(.15); background: var(--rule); border-radius: 4px; }
.avatar-mono { font: 400 44px/1 var(--serif); color: var(--dust); border: 1px solid var(--rule); background: var(--limestone); letter-spacing: .04em; }
.researcher-body { border-top: 0; padding-top: 18px; margin-top: 0; }
.researcher { color: var(--basalt); }
.researcher h3 { font-size: 23px; line-height: 1.15; margin-bottom: 6px; }
.researcher-inst { font: 400 14.5px/1.45 var(--sans); color: var(--dust); margin-bottom: 12px; }
.researcher p { font-size: 15.5px; line-height: 1.55; color: #33383D; margin-bottom: 10px; }
.researcher-body .eyebrow { font-size: 14px; color: var(--dust); }
.researcher:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--ochre-deep); }
.r-photo { position: relative; border-radius: 4px; overflow: hidden; background: var(--rule); aspect-ratio: 1; }
.r-photo img { width: 100%; height: 100%; object-fit: cover; }
.r-site .r-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 26, .05), rgba(20, 23, 26, .55)); }
.r-initials { position: absolute; left: 16px; top: 16px; z-index: 2; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 29px; background: var(--basalt); color: var(--ochre-hi); display: grid; place-items: center; font: 400 22px/1 var(--serif); letter-spacing: .03em; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.r-site-label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; gap: 8px; align-items: flex-start; color: #fff; font: 500 13px/1.3 var(--sans); }
.r-site-label .pin { width: 12px; height: 17px; color: var(--ochre); flex: none; }

/* --------------------------------------------------------------- packages */
/* The tiers of the design: flat Limestone cards, the middle one Basalt with an ochre flag and button, the fee in
   Marcellus. The flag is in the flow on every card (the engine prints an invisible placeholder on the other two),
   so the titles, week lines, and fees stay level; the Enrol button keeps the engine's place under the fee. */
.packages { gap: 24px; align-items: stretch; }
.package { display: flex; flex-direction: column; background: var(--paper); border: 0; border-radius: 4px; padding: 30px 34px 34px; }
.light .package { background: var(--limestone); }
.package.is-featured { background: var(--basalt); color: var(--on-dark); border: 0; }
.package-flag { position: static; display: block; align-self: flex-start; margin: 0 0 20px; background: var(--ochre); color: var(--basalt); font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; padding: 4px 12px; border-radius: 3px; }
.package-flag.is-placeholder { visibility: hidden; }
.package > .eyebrow:not(.package-units-label) { font: 400 15.5px/1.4 var(--sans); color: var(--dust); margin: 0 0 6px; }
.package.is-featured > .eyebrow:not(.package-units-label) { color: var(--on-dark-2); }
.package h2, .package h3 { font-size: 30px; line-height: 1.12; min-height: 2.25em; margin: 0 0 6px; align-items: flex-end; }
.package-note { color: #3B4045; font-size: 15.5px; line-height: 1.5; min-height: 4.6em; margin: 0 0 6px; }
.package.is-featured .package-note { color: var(--on-dark-2); }
.fee { border-top: 0; padding-top: 0; margin: 10px 0 18px; gap: 4px 14px; }
.fee-label { font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); margin-bottom: 2px; }
.package.is-featured .fee-label { color: var(--on-dark-2); }
.fee-now { font: 400 64px/1 var(--serif); color: var(--basalt); font-variant-numeric: tabular-nums; }
.package.is-featured .fee-now { color: #fff; }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 20px/1 var(--sans); color: var(--dust); text-decoration-thickness: 1.5px; }
.package.is-featured .fee-was { color: var(--on-dark-2); }
.package > .btn { margin: 0 0 18px; }
.package:not(.is-featured) > .btn { background: var(--basalt); border-color: var(--basalt); color: #fff; }
.package:not(.is-featured) > .btn:hover { background: var(--basalt-2); border-color: var(--basalt-2); }
.package.is-featured > .btn { background: var(--ochre); border-color: var(--ochre); color: var(--basalt); }
.package.is-featured > .btn:hover { background: var(--ochre-hi); border-color: var(--ochre-hi); }
.fee-aid { color: var(--dust); font: 600 15px/1.4 var(--sans); margin: -8px 0 14px; }
.fee-aid span { color: var(--ochre-deep); }
.fee-aid:hover { color: var(--basalt); }
.package.is-featured .fee-aid { color: var(--on-dark-2); }
.package.is-featured .fee-aid span { color: var(--ochre-hi); }
.package.is-featured .fee-aid:hover { color: #fff; }
.package-incl { margin: 4px 0 26px; gap: 9px; font-size: 15.5px; line-height: 1.45; color: var(--basalt); }
.package.is-featured .package-incl { color: var(--on-dark); }
.package-incl li { position: relative; padding-left: 28px; }
.package-incl li::before { content: ""; position: absolute; left: 1px; top: .42em; width: 12px; height: 6px; border-left: 2.2px solid var(--ochre-deep); border-bottom: 2.2px solid var(--ochre-deep); transform: rotate(-45deg); }
.package.is-featured .package-incl li::before { border-color: var(--ochre-hi); }
.package-units-label { margin: 0 0 14px; padding-top: 16px; border-top: 1px solid var(--rule); font: 600 15px/1.4 var(--sans); color: var(--basalt); }
.package.is-featured .package-units-label { border-color: rgba(255, 255, 255, .2); color: #fff; }
.package-units { gap: 7px; font-size: 15.5px; }
.package-units li a { grid-template-columns: 30px 1fr; gap: 0; padding: 0; border: 0; background: transparent; color: var(--basalt); font-weight: 400; line-height: 1.4; align-items: baseline; }
.package.is-featured .package-units li a { color: var(--on-dark); }
.package-units li a::after { display: none; }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; text-decoration: underline; text-underline-offset: 3px; color: var(--ochre-deep); }
.package.is-featured .package-units li a:hover, .package.is-featured .package-units li a:focus-visible { color: var(--ochre-hi); }
.package-units li a > span { font: 400 15.5px/1.4 var(--sans); color: var(--dust); font-variant-numeric: tabular-nums; }
.package.is-featured .package-units li a > span { color: var(--on-dark-2); }
.package-units li.gap { margin-top: 14px; }
.topic-badge { float: none; display: inline-block; margin: 0 8px 0 0; font: 600 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ochre-deep); border: 1px solid var(--ochre-deep); border-radius: 3px; padding: 2px 5px; vertical-align: 2px; }
.package.is-featured .topic-badge { color: var(--ochre-hi); border-color: var(--ochre-hi); }
.fee-footnote { margin: 36px auto 0; font-size: 15px; color: var(--dust); text-align: center; max-width: 680px; }
.aid-note { border: 1px solid var(--rule); background: #fff; border-left: 4px solid var(--ochre); border-radius: 4px; }
.aid-note h3 { font-size: 24px; }
.aid-note p { color: #3B4045; }
.aid-note.is-granted { border-color: var(--ok); background: #fff; }

/* On the Limestone ground (sections that are not .light) the flat cards are white instead of Limestone. */
.section:not(.light) .feature, .section:not(.light) .contact-faq, .section:not(.light) .legal-box, .section:not(.light) .eq-card, .section:not(.light) .sample-card, .section:not(.light) .learn-card, .section:not(.light) .spot-box, .section:not(.light) .topic-badges li, .section:not(.light) .week .on, .section:not(.light) .explain { background: #fff; }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 28px; }
.testimonial, .section:not(.light) .testimonial { padding: 30px 30px 26px; border: 0; background: var(--paper); border-radius: 4px; }
.light .testimonial { background: var(--limestone); }
.testimonial blockquote { font: 400 16.5px/1.6 var(--sans); margin: 0 0 24px; }
.testimonial blockquote::before { content: "\201C"; display: block; font: 400 54px/.6 var(--serif); color: var(--ochre); height: 26px; margin: 0; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border-top: 1px solid var(--rule); padding-top: 18px; font: 400 14.5px/1.4 var(--sans); gap: 14px; align-items: center; }
.t-avatar { width: 48px; height: 48px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: var(--basalt); border: 0; color: var(--ochre-hi); font: 400 17px/1 var(--serif); letter-spacing: .04em; }
.testimonial figcaption strong { font-weight: 600; font-size: 15px; color: var(--basalt); }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--dust); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 32px; }
.post-card-img { aspect-ratio: 4 / 3; border-radius: 4px; background: var(--limestone); margin-bottom: 18px; }
.post-card:hover .post-card-img img { transform: none; }
.post-card .eyebrow { font-size: 14.5px; margin: 0 0 8px; }
.post-card h3 { font-size: 25px; margin: 0 0 10px; }
.post-card p, .section:not(.light) .post-card p { color: #3B4045; font-size: 16px; }
.post-card:hover h3 { color: var(--ochre-deep); text-decoration-thickness: 1px; }
.pager a, .pager span { border-color: var(--line-strong); color: var(--basalt); border-radius: 4px; }
.pager a:hover { border-color: var(--basalt); }
.pager .is-current { background: var(--basalt); border-color: var(--basalt); color: #fff; }
.post-cover { background: var(--limestone); }
.post-meta { border-color: var(--rule); }
.prose .citation .cite-doi { color: var(--ochre-deep); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--rule); }
.faq details, .light .faq details { border-color: var(--rule); }
.faq summary { padding: 22px 44px 22px 2px; font: 600 18.5px/1.3 var(--sans); }
.faq summary:hover { color: var(--ochre-deep); }
.faq summary::after { content: ""; right: 2px; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat; font-size: 0; }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat; transform: translateY(-50%); }
.faq-a, .light .faq-a { padding: 0 40px 24px 2px; color: #3B4045; font-size: 17px; max-width: 52em; }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 0; border-top: 4px solid var(--ochre); background: var(--paper); padding: 44px 48px; gap: 40px; align-items: center; border-radius: 4px; }
.light .newsletter { background: var(--limestone); }
.newsletter h2 { font-size: 36px; margin-bottom: 10px; }
.newsletter p { color: var(--dust); font-size: 16.5px; }
.newsletter-form { gap: 10px; }
.newsletter-form input[type=email] { height: 50px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: #fff; padding: 0 16px; font: 400 16px var(--sans); color: var(--basalt); }
.newsletter-form input[type=email]::placeholder { color: var(--dim); }
.newsletter-form input[type=email]:focus { outline: 3px solid var(--ochre-deep); outline-offset: 1px; border-color: var(--basalt); }
.newsletter-form .btn { height: 50px; background: var(--basalt); border-color: var(--basalt); color: #fff; }
.newsletter-form .btn:hover { background: var(--basalt-2); border-color: var(--basalt-2); }
.cta-final h2 { max-width: 13em; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--basalt); color: var(--on-dark-2); border-top: 0; padding: 80px 0 34px; font-size: 15.5px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 60px; padding-bottom: 52px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot-brand .logo-footer { height: 54px; width: auto; margin: 0; }
.foot-brand p { margin: 16px 0 24px; max-width: 36ch; color: var(--on-dark-2); }
.foot-brand .btn { margin-bottom: 8px; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--basalt); text-decoration: none; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-col { display: block; }
.footer-col h2 { font: 600 15.5px/1.2 var(--sans); color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; line-height: 1.35; }
.footer-col a { color: var(--on-dark-2); font-size: 15.5px; }
.footer-contact { grid-template-columns: 64px 1fr; gap: 6px 10px; margin: 26px 0 0; font-size: 15px; color: var(--on-dark-2); max-width: 26em; }
.footer-contact dt { font: 600 13px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: #9A9FA3; }
.footer-contact dd, .footer-contact a { color: var(--on-dark-2); line-height: 1.5; }
.footer-contact a:hover { color: #fff; }
.foot-credits { padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 13px; line-height: 1.55; }
.foot-credits summary { cursor: pointer; color: #fff; font-weight: 600; font-size: 14.5px; }
.foot-credits[open] summary { margin-bottom: 12px; }
.foot-credits ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 48px; }
.foot-credits li { break-inside: avoid; margin-bottom: 4px; }
.foot-credits a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .3); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px 30px; flex-wrap: wrap; padding-top: 26px; font-size: 14.5px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; margin-left: 22px; }
.footer-social a:first-child { margin-left: 0; }
.social-icon { width: 17px; height: 17px; }
.site-footer :focus-visible { outline-color: var(--ochre-hi); }

/* ------------------------------------------------------------------ forms */
.field label { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--basalt); margin-bottom: 8px; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--basalt); font-size: 16.5px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--basalt); }
.field input[disabled] { background: var(--limestone); color: var(--dust); }
.field .hint { color: var(--dust); }
.checkline { color: var(--basalt); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--basalt); }
.auth-card { background: #fff; color: var(--basalt); border: 1px solid var(--rule); border-top: 4px solid var(--ochre); border-radius: 4px; }
.auth-card h1 { font-size: 36px; margin: 10px 0 14px; }
.auth-card p { color: #3B4045; }
.auth-switch { border-color: var(--rule); }
.cp-list { background: #fff; color: var(--basalt); border: 0; border-radius: 6px; box-shadow: 0 14px 40px rgba(27, 31, 35, .18), 0 0 0 1px rgba(27, 31, 35, .06); }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--limestone); }
.pw-toggle { color: var(--ochre-deep); }
.dialog { background: #fff; color: var(--basalt); border-top: 4px solid var(--ochre); border-radius: 4px; box-shadow: 0 24px 60px rgba(27, 31, 35, .3); }
.dialog h2 { font: 400 28px/1.15 var(--serif); }
.dialog p { color: #3B4045; }
.paper-card { background: #fff; color: var(--basalt); border: 1px solid var(--rule); border-radius: 4px; }
.rating-opt span { background: #fff; border-color: var(--line-strong); color: var(--basalt); border-radius: 4px; }
.rating-opt b { font: 400 26px/1 var(--serif); }
.rating-opt small { color: var(--dust); }
.rating-opt:hover span { border-color: var(--basalt); }
.rating-opt input:checked + span { background: var(--basalt); border-color: var(--basalt); color: #fff; }
.rating-opt input:checked + span small { color: var(--on-dark-2); }
.rating-opt input:focus-visible + span { outline-color: var(--ochre-deep); }
.upgrade-opt { background: #fff; border-color: var(--line-strong); border-radius: 4px; }
.upgrade-opt:has(input:checked) { border-color: var(--basalt); box-shadow: inset 0 0 0 1px var(--basalt); }
.upgrade-opt b { font: 400 22px/1.15 var(--serif); }
.upgrade-opt small { color: var(--dust); }
.upgrade-badge { background: var(--ochre); color: var(--basalt); font: 700 11px/1 var(--sans); letter-spacing: .04em; border-radius: 3px; }
.upgrade-price strong { font: 400 24px/1 var(--serif); }
.upgrade-price s { color: var(--dust); }
.tag-chip { background: var(--basalt); color: #fff; border-radius: 3px; }
.coupon-box summary { color: var(--dust); }
.coupon-form input { background: #fff; color: var(--basalt); border: 1.5px solid var(--line-strong); border-radius: 4px; font: 600 15px/1.2 var(--sans); letter-spacing: .06em; }
.coupon-form input::placeholder { color: var(--dim); }
.coupon-error { color: var(--bad); }
.coupon-applied { color: var(--ok); }
.coupon-code { font: 600 14px/1 var(--sans); letter-spacing: .06em; color: var(--dust); }
.legal-box { background: var(--limestone); border: 0; border-radius: 4px; }
.legal-updated { font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.prose { font-size: 17.5px; line-height: 1.68; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 25px; }
.prose blockquote { border-left: 3px solid var(--ochre); font: 400 23px/1.4 var(--serif); }
.prose th { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; border-color: var(--basalt); }
.prose td { border-color: var(--rule); }
.stack-table tr { border-color: var(--rule); }
.stack-table td::before { font: 600 13px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.aid-form fieldset { background: #fff; border-color: var(--rule); border-radius: 4px; }
.aid-form legend { font: 400 28px/1.15 var(--serif); }
.aid-form legend span { background: var(--basalt); color: #fff; font: 600 15px/34px var(--sans); }
.aid-form .field input[type=file] { background: #fff; }
.aid-err { color: var(--bad); }
.aid-submit span { color: var(--dust); }
.aid-location { background: #fff; border-color: var(--rule); border-radius: 4px; }
.aid-location em { color: var(--dust); }
.aid-wrong summary { color: var(--dust); }
.aid-apply-aside { border-top-color: var(--basalt); color: #3B4045; }
.aid-apply-aside h3, .aid-apply-aside a { color: var(--basalt); }
.aid-body > p { color: #3B4045; }
.aid-contact { color: var(--dust) !important; }
.aid-h1 { font-size: clamp(36px, 4.4vw, 56px); }

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

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-color: var(--rule); }
.quiz-head h1 { font-size: clamp(34px, 4vw, 50px); }
.quiz-head p { color: var(--dust); }
.q { background: #fff; border-color: var(--rule); border-radius: 4px; }
.q-no { font: 600 13.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.q-text { font: 600 21px/1.35 var(--sans); }
.opt { border-color: var(--line-strong); border-radius: 4px; }
.opt:hover { border-color: var(--basalt); }
.opt .k { border-color: var(--line-strong); font: 600 13px/1 var(--sans); border-radius: 4px; }
.opt:has(input:checked) { border-color: var(--basalt); background: var(--limestone); }
.opt:has(input:checked) .k { background: var(--basalt); color: #fff; border-color: var(--basalt); }
.opt:has(input:focus-visible) { outline-color: var(--ochre-deep); }
.opt.is-right { border-color: var(--ok); background: #EEF3E9; }
.opt.is-right .k { background: var(--ok); border-color: var(--ok); }
.opt.is-wrong { border-color: var(--bad); background: #F8ECE6; }
.opt.is-wrong .k { background: var(--bad); border-color: var(--bad); }
.q.is-correct { border-left: 3px solid var(--ok); }
.q.is-incorrect { border-left: 3px solid var(--bad); }
.explain { background: var(--limestone); border-left: 3px solid var(--ochre); color: var(--basalt); border-radius: 0 4px 4px 0; }
.explain b { font: 600 13.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.quiz-foot { background: rgba(244, 244, 241, .94); border-color: var(--rule); }
.quiz-foot .state { font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.timer { background: #fff; border: 1.5px solid var(--basalt); border-radius: 4px; font: 600 14px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.timer b { font: 600 24px/1 var(--sans); letter-spacing: 0; }
.timer.is-low { border-color: var(--bad); color: var(--bad); }
.q-figure img { filter: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ unit reader */
/* The unit on a white sheet, the boxes in the colours of theme/theme.tex. */
.reader-hero { background: var(--basalt); color: #fff; }
.reader-hero img.bg { filter: brightness(.55); }
.reader-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
.reader-hero h1 { font-size: clamp(36px, 5vw, 62px); }
.reader-hero .eyebrow { color: var(--ochre-hi); }
.reader-hero .sub { font: italic 400 22px/1.4 var(--sans); color: rgba(255, 255, 255, .88); }
.reader-hero .credit, .reader-hero .credit a { color: rgba(255, 255, 255, .7); }
.reader { background: var(--paper); color: var(--basalt); }
.toc { font-size: 14.5px; }
.toc a { border-left-color: var(--rule); color: var(--dust); }
.toc a:hover, .toc a.is-active { color: var(--basalt); border-color: var(--ochre); }
.unit-text { font: 400 17.5px/1.7 var(--sans); }
.unit-text h2 { font-size: 36px; border-bottom: 1px solid var(--basalt); }
.unit-text h3 { font-size: 26px; }
.unit-text h4 { font: 600 17px/1.3 var(--sans); font-style: normal; }
.unit-text .secno { font: 600 .6em/1 var(--sans); color: var(--ochre-deep); letter-spacing: 0; }
.unit-text code { background: var(--limestone); }
.unit-text figcaption { font-size: 14.5px; color: var(--dust); }
.unit-text figcaption b { color: var(--basalt); }
.unit-text table { border-color: var(--basalt); font-size: 15.5px; }
.unit-text th { border-color: var(--basalt); }
.box { border-color: var(--basalt); background: #fff; border-radius: 4px; }
.box-kind { font: 600 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.box-title { font: 600 16px/1.3 var(--sans); }
.box-keyequation { --bx: #85550B; --bx-l: #F7EEDD; }
.box-law, .box-laws { --bx: #1B1F23; --bx-l: #ECECE8; }
.box-derivation { --bx: #3E5A73; --bx-l: #EAF0F5; }
.box-example { --bx: #4F6B3A; --bx-l: #EEF3E9; }
.box-excursion { --bx: #9C4F2B; --bx-l: #F8ECE6; }
.box-research { --bx: #1B1F23; --bx-l: #F4F4F1; }
.box-research .box-kind { color: var(--on-dark-2); letter-spacing: 0; }
.box-research .box-name { font: 400 26px/1.1 var(--serif); }
.box-research .box-inst { font: italic 400 17px/1.3 var(--sans); color: var(--on-dark-2); }
.box-keypoints { --bx: #B07A2A; --bx-l: #FAF1E2; }
.box-keypoints .box-kind { color: #85550B; }
.box-check { --bx: #7A3E4F; --bx-l: #F6ECEF; }
.box-check .check-result { border-top-color: rgba(122, 62, 79, .25); }
.box-interactive { --bx: #2C6B6A; --bx-l: #E8F2F1; }
.box-questions .box-kind { font: 600 16px/1.4 var(--sans); color: var(--basalt); }
.paperlink { border-color: var(--rule); }
.paperlink span { font: 600 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); }
.reader-end { background: var(--basalt); color: #fff; border-radius: 4px; }
.reader-end h3, .reader-end h2 { font-size: 28px; }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--paper) 88%); }
.lit-list li { border-color: var(--rule); }
.lit-list a.t { font: 400 23px/1.2 var(--serif); color: var(--basalt); }
.lit-list .m { color: var(--dust); }
.ia-stage { border-color: var(--rule); border-radius: 4px; }
.ia-slider input[type=range] { accent-color: var(--basalt); }
.ia-btn { border-color: var(--line-strong); border-radius: 4px; }
.ia-btn.on { background: var(--basalt); border-color: var(--basalt); }

/* ----------------------------------------------------------------- verify */
.verify-form input { background: #fff; border: 1.5px solid var(--basalt); border-right: 0; border-radius: 4px 0 0 4px; color: var(--basalt); font: 600 17px/1 var(--sans); letter-spacing: .08em; }
.verify-form .btn { background: var(--basalt); border-color: var(--basalt); color: #fff; border-radius: 0 4px 4px 0; }
.credential { background: #fff; color: var(--basalt); border: 1px solid var(--rule); border-top: 4px solid var(--ochre); border-radius: 4px; }
.credential .eyebrow { color: var(--ochre-deep); }
.credential h1 { font-size: clamp(34px, 5vw, 58px); }
.credential .valid { font: 600 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ok); border-color: var(--ok); border-radius: 4px; }
.credential .facts { border-color: var(--rule); }
.credential .facts b { font: 600 20px/1.2 var(--sans); color: var(--basalt); }
.credential th { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dust); border-color: var(--basalt); }
.credential td { border-color: var(--rule); }
.credential td:first-child { font: 600 15px/1 var(--sans); color: var(--ochre-deep); }

/* ----------------------------------------------------------------- cookie */
.cookie { background: #fff; color: var(--basalt); border: 0; border-radius: 6px; box-shadow: 0 14px 40px rgba(27, 31, 35, .18), 0 0 0 1px rgba(27, 31, 35, .06); font-size: 15px; }
.cookie p { color: #3B4045; }
.cookie .btn-ghost { border-color: var(--basalt); color: var(--basalt); background: transparent; }
.geo-test-badge { font-family: var(--sans); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav-login { display: none; }
  .nav-top { padding: 0 9px; }
}
/* Three cards side by side between 1081 and 1279 px: the third title ("Advanced + Maritime Archaeology") runs to three
   lines and the tier notes to four, so the titles and notes reserve that height and the three Enrol buttons keep one
   top edge (QA 2026-11-29). */
@media (min-width: 1081px) and (max-width: 1279px) {
  .package h2, .package h3 { min-height: 3.36em; }
  .package-note { min-height: 6em; }
}
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { display: none; }
  .packages { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; gap: 34px; }
  .package h2, .package h3 { min-height: 0; }
  .package-note { min-height: 0; }
  .package-flag.is-placeholder { display: none; }
  .foot-top { grid-template-columns: 1fr; gap: 44px; }
  .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; border-top: 0; }
  .aud, .aud + .aud, .aud:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .learn, .testimonials, .posts { grid-template-columns: 1fr 1fr; }
  .learn .learn-card:last-child { grid-column: 1 / -1; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .logo { height: 36px; }
  .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
  .researcher h3 { font-size: 20px; }
  .r-initials { min-width: 46px; height: 46px; font-size: 18px; left: 12px; top: 12px; }
  .foot-credits ul { columns: 1; }
  .newsletter { padding: 32px 24px; }
  .newsletter-form { flex-direction: column; }
  .stats { gap: 0; }
  .stats div { border-color: var(--rule); border-bottom: 0; }
  .faq summary { font-size: 17px; }
  .page-hero.has-img { min-height: 360px; padding-top: calc(var(--header-h) + 80px); }
  .reader-hero .wrap { padding-bottom: 76px; }   /* room for the two-line photo credit under the buttons (QA 2026-11-29) */
  .step { padding: 24px 0; }
  .step-num b { font-size: 44px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .steps, .learn, .testimonials, .posts, .features { grid-template-columns: 1fr; }
  .learn .learn-card:last-child { grid-column: auto; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--gut); }
  .header-cta .btn { display: none; }
  .fee-now { font-size: 56px; }
  .researchers { gap: 30px 14px; }
}

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

/* ---------- locators and credits on the photographs ---------- */
.loc { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-size: 13.5px; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.loc .pin { width: 15px; height: 21px; color: var(--ochre); flex: none; margin-top: 1px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.loc b { display: block; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.loc span { display: block; color: rgba(255, 255, 255, .86); }
.loc .loc-co { margin-top: 3px; color: var(--ochre-hi); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.loc-chip { position: absolute; left: 14px; bottom: 14px; background: rgba(27, 31, 35, .78); padding: 9px 13px 9px 11px; border-radius: 4px; text-shadow: none; font-size: 13px; max-width: calc(100% - 28px); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.loc-chip b { font-size: 14px; }
.loc-chip .pin { width: 13px; height: 18px; }
.credit-band, .credit-hero { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); z-index: 3; }
.credit-band a, .credit-hero a { color: inherit; font: inherit; }
.credit-hero { bottom: 12px; }

/* ---------- hero: the Terracotta Army at full width ---------- */
.hero { position: relative; min-height: 100vh; min-height: max(100svh, 640px); display: flex; flex-direction: column; justify-content: center; align-items: stretch; color: #fff; background: var(--basalt); overflow: hidden; }
.hero::after { display: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: brightness(1.1) contrast(1.06) saturate(1.08); animation: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 23, 26, .88) 0%, rgba(20, 23, 26, .72) 30%, rgba(20, 23, 26, .25) 58%, rgba(20, 23, 26, 0) 75%), linear-gradient(180deg, rgba(20, 23, 26, .55) 0%, rgba(20, 23, 26, 0) 22%, rgba(20, 23, 26, 0) 62%, rgba(20, 23, 26, .78) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: 150px; }
.hero h1 { max-width: 760px; margin: 0 0 22px; font-size: inherit; }
.hero-name { display: block; font: 600 19px/1.3 var(--sans); letter-spacing: .01em; color: var(--ochre-hi); margin-bottom: 16px; }
.hero-headline { display: block; font: 400 clamp(46px, 6vw, 82px)/1.04 var(--serif); letter-spacing: 0; max-width: none; }
.hero-sub { max-width: 560px; font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, .9); margin-bottom: 32px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 0; border: 0; font: 400 16px/1.4 var(--sans); color: rgba(255, 255, 255, .9); list-style: none; }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks .icon { width: 20px; height: 20px; color: var(--ochre-hi); stroke-width: 2.2; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-fact { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); padding-left: 14px; border-left: 2px solid var(--ochre); }
.hero .credit { display: block; }

/* ---------- alumni marquee on Basalt ---------- */
.alumni { background: var(--basalt); color: var(--on-dark-2); padding: 26px 0 30px; border: 0; }
.alumni-label { text-align: center; font: 400 15px/1.4 var(--sans); margin: 0 0 16px; color: var(--on-dark-2); }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.alumni .marquee { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee-mask:hover .marquee { animation-play-state: paused; }
.alumni .marquee-set { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.alumni .marquee img { height: 32px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  .alumni .marquee { animation: none; width: auto; }
  .alumni .marquee-set { flex-wrap: wrap; justify-content: center; gap: 22px 40px; padding: 0 var(--gut); }
  .alumni .marquee-set[aria-hidden="true"] { display: none; }
  .marquee-mask { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- the full-width site bands ---------- */
.band { position: relative; height: clamp(500px, 82vh, 780px); overflow: hidden; color: #fff; background: var(--basalt); display: flex; align-items: flex-end; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band[aria-label="Pompeii"] .band-img { object-position: 50% 60%; }
.band[aria-label="Stonehenge"] .band-img { object-position: 50% 62%; }
.band[aria-label="Knossos"] .band-img { object-position: 50% 45%; }
.band[aria-label="Petra"] .band-img { object-position: 50% 40%; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 26, 0) 40%, rgba(20, 23, 26, .42) 66%, rgba(20, 23, 26, .86) 100%); }
.band-inner { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-bottom: 58px; }
.band-right .band-inner { flex-direction: row-reverse; }
.band-name { font-family: var(--serif); font-size: clamp(56px, 8.4vw, 124px); line-height: .95; margin: 0 0 18px; letter-spacing: .01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.band-fact { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; margin: 0; color: rgba(255, 255, 255, .93); }
.band .loc { flex: none; }

/* ---------- curriculum: the three cards and the list of all units ---------- */
.all-units { margin-top: 36px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.all-units summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.all-units summary::-webkit-details-marker { display: none; }
.all-units summary .chev { width: 14px; height: 10px; transition: transform .2s; }
.all-units[open] summary .chev { transform: rotate(180deg); }
.au-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 56px; padding: 8px 0 34px; list-style: none; margin: 0; }
.au-list li { display: flex; gap: 18px; }
.au-n { flex: none; font-family: var(--serif); font-size: 28px; line-height: 1.1; width: 38px; color: var(--ochre-deep); }
.au-list h4 { font: 600 17px/1.3 var(--sans); margin-bottom: 4px; }
.au-list h4 a { text-decoration: none; }
.au-list h4 a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ochre-deep); }
.au-list p { font-size: 15.5px; color: #4A5055; margin: 0; }

/* ---------- certificate: the sample or the design's typeset mock ---------- */
.cert-wrap { padding: 22px; background: var(--rule); border-radius: 4px; }
.cert-wrap .cert-shot img { border: 0; }
.cert { position: relative; aspect-ratio: 1.414 / 1; background: #FDFDFB; padding: clamp(22px, 4%, 44px) clamp(22px, 6%, 60px); border: 1px solid #CFCAB9; box-shadow: inset 0 0 0 7px #FDFDFB, inset 0 0 0 8px var(--ochre); text-align: center; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.cert p { margin: 0; }
.cert-brand { font-family: var(--serif); font-size: clamp(14px, 1.5vw, 18px); color: var(--ochre-deep); margin-bottom: 8px !important; }
.cert-title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 14px !important; }
.cert-small { font-size: clamp(11px, 1vw, 13px); color: var(--dust); }
.cert-name { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 30px); margin: 4px 0 6px !important; border-bottom: 1px solid var(--rule); padding-bottom: 6px; align-self: center; min-width: 55%; }
.cert-prog { font-weight: 600; font-size: clamp(12px, 1.2vw, 15px); margin-top: 4px !important; }
.cert-units { font-size: clamp(10.5px, .95vw, 12.5px); color: var(--dust); max-width: 46ch; margin: 8px auto 0 !important; line-height: 1.45; }
.cert-foot { display: flex; justify-content: space-between; margin-top: clamp(12px, 2.4vw, 26px); font-size: clamp(10px, .9vw, 12px); color: var(--dust); }
.cert-foot span { border-top: 1px solid #BDB8A8; padding-top: 5px; min-width: 34%; }
.cert-sample { position: absolute; right: -38px; top: 20px; transform: rotate(35deg); background: var(--basalt); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 44px; }

/* ---------- sample unit: a stack of pages ---------- */
.sample-split { align-items: start; }
.page-stack { position: relative; display: block; max-width: 520px; width: 100%; aspect-ratio: 595 / 842; text-decoration: none; color: var(--basalt); margin: 12px auto 0; }
.page { position: absolute; inset: 0; display: block; background: #fff; border: 1px solid var(--rule); border-radius: 2px; box-shadow: 0 18px 40px rgba(27, 31, 35, .12); }
.page-3 { transform: translate(28px, 22px) rotate(2.4deg); background: #F7F7F4; }
.page-2 { transform: translate(14px, 11px) rotate(1.2deg); background: #FBFBF9; }
.page-1 { display: flex; flex-direction: column; padding: 7% 9% 6%; overflow: hidden; transition: transform .25s; }
.page.is-img { padding: 0; overflow: hidden; }
.page.is-img img { width: 100%; height: 100%; object-fit: cover; }
.page-stack:hover .page-1 { transform: translateY(-4px); }
.pg-head { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dust); border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin-bottom: 6%; }
.pg-unit { font-size: 13px; font-weight: 600; color: var(--ochre-deep); }
.pg-title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; margin: 4px 0 5%; display: block; }
.pg-fig img { width: 100%; aspect-ratio: 680 / 463; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.pg-cap { font-size: 10.5px; color: var(--dust); margin: 6px 0 4%; line-height: 1.4; font-style: italic; display: block; }
.pg-text { font-size: clamp(10.5px, 1vw, 12.5px); line-height: 1.6; color: var(--basalt-2); text-align: left; hyphens: auto; display: block; }
.pg-num { margin-top: auto; align-self: center; font-size: 10.5px; color: var(--dust); }
.sample-card { background: var(--limestone); border: 0; border-radius: 4px; padding: 26px 28px; margin: 26px 0 28px; }
.sample-meta { font-size: 15px; font-weight: 600; color: var(--ochre-deep); margin-bottom: 6px; }
.sample-card h3 { font-size: 28px; margin: 0 0 10px; }
.sample-card > p { font-size: 16px; color: #3B4045; }
.oq-title { font-weight: 600; font-size: 16px; margin: 18px 0 8px !important; color: var(--basalt); }
.oq { counter-reset: q; display: grid; gap: 8px; font-size: 15.5px; list-style: none; margin: 0; padding: 0; }
.oq li { counter-increment: q; display: flex; gap: 12px; }
.oq li::before { content: counter(q); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--basalt); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; margin-top: 2px; }

/* ---------- community over Machu Picchu ---------- */
.community { color: var(--on-dark); background: var(--basalt); }
.community-bg img { filter: none; object-position: 50% 40%; }
.community-bg::after { display: none; }
.community-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 26, .9) 0%, rgba(20, 23, 26, .74) 45%, rgba(20, 23, 26, .45) 80%, rgba(20, 23, 26, .7) 100%); }
.community-inner { position: relative; z-index: 2; }
.community .section-head p { color: var(--on-dark-2); }
.community .stats div { border-top-color: rgba(255, 255, 255, .28); }
.community .stats b { color: #fff; }
.community .stats span { color: var(--on-dark-2); }
.community .feature { background: rgba(20, 23, 26, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.community .feature .icon { color: var(--ochre-hi); }
.community .feature h3 { color: #fff; }
.community .feature p { color: var(--on-dark-2); }
.community-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 56px; padding-bottom: 20px; }

/* ---------- final call to action over Angkor Wat ---------- */
.final { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--basalt); overflow: hidden; text-align: center; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.final-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(20, 23, 26, .35), rgba(20, 23, 26, .7) 80%); }
.final-inner { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 120px; }
.final h2 { font-size: clamp(40px, 5.4vw, 72px); max-width: 900px; margin: 0 auto 36px; line-height: 1.08; }
.final-foot { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; display: flex; justify-content: flex-start; text-align: left; }

/* ---------- the landing page on phones ---------- */
@media (max-width: 1020px) {
  .hero .br-lg { display: none; }
}
@media (max-width: 700px) {
  .hero { min-height: max(100svh, 720px); justify-content: flex-start; }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 23, 26, .7) 0%, rgba(20, 23, 26, .62) 50%, rgba(20, 23, 26, .9) 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
  .hero-name { font-size: 17px; }
  .hero-sub { font-size: 18px; }
  .hero-foot { position: relative; bottom: auto; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 48px; margin-top: auto; }
  .hero .credit { display: block; }
  .band { height: auto; min-height: 560px; }
  .band-inner, .band-right .band-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 50px; padding-top: 200px; }
  .au-list { grid-template-columns: 1fr; }
  .community-foot { flex-direction: column; align-items: flex-start; }
  .cert-wrap { padding: 12px; }
  .cert { aspect-ratio: auto; padding: 34px 22px 26px; }
  .cert-brand { font-size: 15px; }
  .cert-title { font-size: 24px; }
  .cert-name { font-size: 23px; }
  .cert-small, .cert-units, .cert-foot { font-size: 12px; }
  .cert-prog { font-size: 14px; }
  .cert-sample { right: -46px; top: 14px; font-size: 11px; }
  .page-stack { max-width: 92%; margin-left: 0; }
  .final-inner { padding-top: 80px; padding-bottom: 150px; }
  .credit-band, .credit-hero { left: 12px; right: 12px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-1, .btn, .nav-top::after { transition: none; }
}
