/* ============================================================
   Monarch Crops -- one stylesheet for monarchlabs.org.

   Tokens and chrome are Monarch's (teal / charcoal / white, Haas + Plex
   Mono). The component layers underneath -- buttons, focus, links, the
   .mz-* forms, the heading ladder -- are mZero's, recoloured through the
   tokens. Every published page loads this file; the two programme
   homepages add assets/program-home.css for their choreography.
   ============================================================ */

/* iOS Safari inflates text in some containers on rotation unless this is
   pinned; without it a landscape iPhone can reflow mid-page. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Two typefaces, served locally. Light for display headings, Roman for
   text, Medium for <strong> and section heads. Nothing on the site is bold. */
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/IBMPlexMono-Regular-Latin1-v2.5.0.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0020-007E,U+00A0-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122,U+2212,U+FB01-FB02}
@font-face{font-family:"Neue Haas Grotesk Display Pro";src:url("../fonts/HaasGrotDispR-45Light.woff2") format("woff2");font-weight:200 300;font-style:normal;font-display:swap}
@font-face{font-family:"Neue Haas Grotesk Display Pro";src:url("../fonts/HaasGrotDispR-55Roman.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Neue Haas Grotesk Display Pro";src:url("../fonts/HaasGrotDispR-65Medium.woff2") format("woff2");font-weight:500 600;font-style:normal;font-display:swap}

:root{
  /* Monarch's colours, read off the homepage comp (Monarch.ai, artboard 2).
       --brand-teal  what the hero footage's ground is graded to
       --teal-deep   the graded clip's top edge; the hero's own background
       --teal-body   the homepage body fill under the tiles
       --band        the charcoal every other page sits on */
  --brand-teal:#419293;
  --teal-deep:#296061;
  --teal-body:#46a5a6;
  --band:#222222;

  /* The interior surface and its inks. The greys step down from white and
     each clears AA on the band (dim 13:1, mut 5.9:1, muted 4.6:1 -- muted is
     for mono meta at 12px and up only). */
  --bg:var(--band);
  --panel:#1a1a1a;
  --ink:#ffffff;
  --ink-legal:#999999;
  --dim:#e0e0e0;
  --mut:#999999;
  --muted:#7a7a7a;

  /* One hairline. */
  --line:rgba(255,255,255,.14);
  --line-strong:rgba(255,255,255,.24);

  /* The accent is Monarch's body teal: 5.4:1 on the band, so it can carry
     small type. --brand-teal (4.4:1) cannot, and white on either teal fails
     for body copy -- teal never carries 18px prose. */
  --accent:var(--teal-body);
  --accent-ink:#222222;
  --link-underline:rgba(70,165,166,.45);
  --error:#ff8585;

  --mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:"Neue Haas Grotesk Display Pro","Neue Haas Grotesk Text Pro","Haas Grotesk","Helvetica Neue",Helvetica,Arial,sans-serif;

  /* Page shell: interior pages use this measure and gutter. The chrome
     (masthead, menu, footer, hero line, partners) uses the fluid band gutter
     Monarch's comp was drawn with. */
  --shell:1240px;
  --col:900px;          /* the reading column inside the shell */
  --gutter:28px;
  --gutter-band:clamp(20px,4vw,64px);

  /* Type scale. */
  --fs-display:clamp(36px,5vw,64px);   /* page h1, hero statements */
  --fs-section:clamp(34px,4.5vw,56px); /* feature h2 */
  --fs-sub:clamp(22px,2.4vw,28px);     /* h2 in prose, form section heads */
  --fs-lede:22px;
  --fs-body:18px;
  --fs-small:16px;
  --fs-micro:15px;
  --fs-label:12px;
  --fs-tile:clamp(15px,1.25vw,18px);   /* the homepage tile copy */

  --ease:cubic-bezier(.4,0,.2,1);
  --ease-chrome:cubic-bezier(.16,.8,.3,1);
}


@media(max-width:720px){
  :root{--gutter:16px}
}

/* Smooth scrolling is scoped to :focus-within so it applies to in-page anchor
   clicks but not to the initial load. scroll-behavior:smooth on the root
   suppresses the browser's own #fragment jump when the page reflows during
   font loading, which left every deep link stranded at the top of the page. */
@media (prefers-reduced-motion: no-preference){
  html:focus-within{scroll-behavior:smooth}
}
@media (prefers-reduced-motion: reduce){
  html,html:focus-within{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
}

*,*::before,*::after{box-sizing:border-box}

body{
  margin:0;
  /* Flat charcoal. The old mint bloom at the top belonged to the mint
     accent; on Monarch's palette it read as a stain. */
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:var(--fs-body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
::selection{background:var(--accent);color:var(--accent-ink)}
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
.skip-link{
  position:fixed;left:var(--gutter);top:10px;z-index:1000;
  padding:10px 14px;border-radius:6px;
  background:var(--accent);color:var(--accent-ink);
  font-family:var(--sans);font-size:14px;font-weight:500;text-decoration:none;
  transform:translateY(calc(-100% - 18px));
  transition:transform .16s var(--ease);
}
.skip-link:focus{transform:translateY(0);outline:2px solid var(--ink);outline-offset:2px}

/* ------------------------------------------------------------
   Page shell
   Header, main and footer all resolve to the same left edge.
   The header/footer rules stay full-bleed; their CONTENT aligns
   with the content column via the padding formula below.
   ------------------------------------------------------------ */
.shell,
.shell-col{
  padding-inline:max(var(--gutter), calc((100% - var(--col)) / 2));
}

/* The shell is one column: header, a single content element, footer. On a page
   with little in it -- login, onboarding -- the footer used to stop where the
   content stopped and float mid-viewport with the background running on below
   it. A minimum height on the body plus an auto top margin on the footer sits
   it on the bottom edge instead. Long pages are untouched: an auto margin only
   absorbs space that is left over, and past one viewport there is none.

   Scoped to bodies that carry a footer, which is every page but atlas.html and
   community-model.html -- those two are full-viewport app shells at
   height:100vh with overflow:hidden, and have no footer to push. The scoped
   footer selector also has to outrank `footer{margin:0}` further down. */
body:has(> footer){
  min-height:100vh;
  min-height:100dvh;
  display:flex;flex-direction:column;
}
body:has(> footer) > footer{margin-top:auto}

/* A column flex container stretches its items across the cross axis only while
   their inline margins are not auto -- and `main` below, plus docs.html's
   .layout, centre themselves with margin:0 auto. So they stopped stretching and
   fell back to fit-content, which never resolves below min-content: privacy.html
   holds a table with min-width:460px inside an overflow-x:auto wrapper, so its
   min-content is 492px and `main` took 492px on a 375px phone. The wrapper then
   had all the room it needed and never scrolled, so the whole page scrolled
   sideways instead and the right edge of every paragraph was cut off, on every
   phone size. A definite width restores block behaviour; max-width still caps
   these and the auto margins still centre them. min-width:0 is NOT the fix --
   flexbox's automatic minimum size applies to the main axis, which is vertical
   here. The skip link is left out on purpose: it is position:fixed, and a width
   would stretch it across the viewport when focused.

   box-sizing is spelled out rather than assumed: careers.html is the one page
   with no global border-box reset and this file sets none, so there the width
   landed outside the gutter padding and pushed the page 32px wide at every
   phone size. */
body:has(> footer) > header,
body:has(> footer) > main,
body:has(> footer) > footer,
body:has(> footer) > .layout{width:100%;box-sizing:border-box}

main{
  /* Pages with a narrower reading measure set --measure in their own
     :root. They cannot override `main` directly. This file loads last. */
  max-width:var(--measure, var(--shell));
  width:100%;min-width:0;box-sizing:border-box;
  margin:0 auto;
  padding-inline:var(--gutter);
  /* One vertical rhythm for interior pages. index.html opens with a
     full-viewport hero and resets this to 0. */
  padding-block:clamp(64px,9vh,88px) clamp(96px,14vh,120px);
}

/* An inner reading measure: narrow prose/forms nest INSIDE the
   shell so the shell edge never moves between pages. */
.measure-prose{max-width:760px}
.measure-form{max-width:520px;margin-inline:auto}
.measure-wide{max-width:960px}

/* ------------------------------------------------------------
   Buttons: one system.
   `.button` is the portal's class name, aliased here so the signed-in
   workspace uses the same geometry as the public site.
   ------------------------------------------------------------ */
.btn,.button{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;height:44px;padding:0 22px;
  /* The same 8px as .mz-control below. These were a full pill, which read as a
     different family from the fields they sit under -- a 42px-tall pill is a
     21px radius against the field's 8px, directly beneath it on every form.
     login.html's own .login-btn was already drawn at 8px. */
  border-radius:8px;
  font-family:var(--sans);font-size:14px;font-weight:500;
  text-decoration:none;border:none;cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,255,255,.06);
  transition:transform .12s var(--ease),background-color .18s var(--ease),
             color .18s var(--ease),box-shadow .18s var(--ease);
}
.btn:hover,.button:hover{
  box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.35);
}
.btn:active,.button:active{transform:scale(.98)}
.btn:disabled,.button:disabled{cursor:not-allowed;opacity:.45;transform:none}

.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:#5ab3b4;color:var(--accent-ink)}
.btn-secondary,.button{background:rgba(255,255,255,.06);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.btn-secondary:hover,.button:hover{background:rgba(255,255,255,.1)}
.button.primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.button.primary:hover:not(:disabled){background:#5ab3b4;color:var(--accent-ink)}

/* ------------------------------------------------------------
   Focus: one visible ring everywhere, keyboard only
   ------------------------------------------------------------ */
:where(a,button,summary,[tabindex]):focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
  border-radius:4px;
}
main[tabindex="-1"]:focus{outline:none}

/* Underlined text links use the Careers email treatment everywhere: mint text,
   a quiet mint rule at rest, a full-strength rule on hover, and the shared
   keyboard-focus ring above. Component/button/navigation links remain in their
   own systems and are deliberately not selected here. */
.shot figcaption a,
.statement .source a,
.support a,
.mz-form-lede a,
.mz-form-notice a,
.check a,
.mz-check a,
.answer a,
.login-note a,
.session-guide a,
.consent a,
.content section a:not(.card):not(.btn),
.identity-link:not([aria-disabled="true"]),
.shipping-status,
.upload-get,
.back-link{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px solid var(--link-underline);
  transition:border-bottom-color .18s var(--ease);
}
.shot figcaption a:hover,
.statement .source a:hover,
.support a:hover,
.mz-form-lede a:hover,
.mz-form-notice a:hover,
.check a:hover,
.mz-check a:hover,
.answer a:hover,
.login-note a:hover,
.session-guide a:hover,
.consent a:hover,
.content section a:not(.card):not(.btn):hover,
.identity-link:not([aria-disabled="true"]):hover,
.shipping-status:hover,
.upload-get:hover,
.back-link:hover{
  color:var(--accent);
  border-bottom-color:var(--accent);
  opacity:1;
}
/* Form fields get a plain grey focus, not the mint ring. */
input:focus,input:focus-visible,
select:focus,select:focus-visible,
textarea:focus,textarea:focus-visible{
  outline:none;
  border-color:rgba(255,255,255,.35);
  box-shadow:0 0 0 2px rgba(70,165,166,.25);
}

/* ------------------------------------------------------------
   Forms: Request Access is the canonical form language.

   The `.mz-*` classes are intentionally opt-in. Public application forms,
   authenticated portal controls and operational forms can share one visual
   system without changing the behaviour of unrelated inputs or widgets.
   ------------------------------------------------------------ */
.mz-form{--mz-input:#1a1a1a;font-family:var(--sans)}

.mz-form-section{
  padding:0 0 34px;
  margin:0 0 34px;
  border:0;
  border-bottom:1px solid var(--line);
}
/* shipping-form.html wraps its sections in a <fieldset> it disables while the
   record loads, so a direct-child selector never reaches them and the last
   section kept the divider meant to separate it from a following one --
   drawing a second hairline 54px above the actions row's own border. */
.mz-form>.mz-form-section:last-of-type,
.mz-form>fieldset>.mz-form-section:last-of-type{margin-bottom:0;padding-bottom:0;border-bottom:0}
.mz-section-heading{
  margin:0 0 24px;
  font-family:var(--mono);
  font-size:11px;
  font-weight:400;
  letter-spacing:.12em;
  line-height:1.4;
  text-transform:uppercase;
  color:var(--accent);
}
.mz-section-copy{
  max-width:620px;
  margin:-14px 0 24px;
  color:var(--dim);
  font-size:14px;
  line-height:1.55;
}
.mz-form-head{margin-bottom:0}

.mz-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  margin:0 0 24px;
  padding:0;
  border:0;
}
.mz-field:last-child{margin-bottom:0}
/* A field the script hides (a part of the form that depends on an earlier answer) must stay hidden: display:flex above would otherwise override the hidden attribute. */
.mz-field[hidden]{display:none}
.mz-label,
.mz-field>label,
.mz-field>legend{
  display:block;
  margin:0;
  font-family:var(--sans);
  font-size:14px;
  font-weight:400;
  letter-spacing:0;
  line-height:1.5;
  text-transform:none;
  color:var(--dim);
}
.mz-hint{
  margin:0;
  color:var(--dim);
  font-size:13px;
  line-height:1.4;
  opacity:.8;
}

.mz-control{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  outline:none;
  background:var(--mz-input);
  color:var(--ink);
  font-family:var(--sans);
  /* The body role of the type ladder, not a literal: a field's value is read
     the same way as the prose around it. Clears the 16px iOS
     no-zoom-on-focus threshold. */
  font-size:var(--fs-body);
  /* Definite, not `normal`. A select's intrinsic content box is shorter than
     an input's, so with `normal` the two boxes came out 50px and 46px -- side
     by side in a .mz-pair that reads as a misalignment even when their tops
     agree. A number both control types resolve the same way puts every field
     on one height. */
  line-height:1.2;
  transition:border-color .15s var(--ease),box-shadow .15s var(--ease),background-color .15s var(--ease);
}
.mz-control::placeholder{color:var(--dim);opacity:.28}
.mz-control:focus,.mz-control:focus-visible{
  outline:none;
  border-color:rgba(255,255,255,.35);
  box-shadow:0 0 0 2px rgba(70,165,166,.25);
}
.mz-control[aria-invalid="true"]{border-color:var(--error)}
.mz-control:disabled,.mz-control[readonly]{cursor:not-allowed;opacity:.5}
select.mz-control{
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
}
select.mz-control option{background:#141416;color:var(--ink)}
textarea.mz-control{min-height:130px;resize:vertical;line-height:1.55}

/* Each option is a 44px row for the touch target while its label is ~20px of
   text, so a 12px gap read as ~36px of air once the options stacked. The row
   height does the separating; the gap only has to keep the hit areas apart. */
.mz-checks{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.mz-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-height:44px;
  margin:0;
  padding:2px 0;
  color:var(--ink);
  cursor:pointer;
}
.mz-check>input{
  width:18px;
  height:18px;
  min-width:18px;
  margin-top:2px;
  accent-color:var(--ink);
  cursor:pointer;
}
.mz-check>input:focus,
.mz-check>input:focus-visible{outline:2px solid var(--ink);outline-offset:-3px;box-shadow:none}
.mz-check>span{font-size:14px;line-height:1.45;color:var(--ink)}
.mz-check-confirmation{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:14px}

.mz-form-note{
  margin-top:2px;
  padding:14px 16px;
  border-left:2px solid var(--accent);
  background:var(--panel);
  color:var(--dim);
  font-size:13px;
  line-height:1.55;
}
.mz-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:8px}
.mz-form-error{
  margin-top:16px;
  padding:8px 12px;
  border-left:2px solid var(--error);
  background:rgba(255,133,133,.07);
  color:#ffc2c2;
  font-size:13px;
  line-height:1.45;
}
.mz-form-error:empty{display:none}
.mz-form-message{
  min-height:20px;
  margin:0;
  color:var(--dim);
  font-size:13px;
  line-height:1.45;
}
.mz-form-message.error{
  margin-top:16px;
  padding:8px 12px;
  border-left:2px solid var(--error);
  background:rgba(255,133,133,.07);
  color:#ffc2c2;
}
.mz-form-message:empty{display:none}
.mz-form-success{
  display:none;
  margin-bottom:40px;
  padding:24px;
  border:1px solid var(--accent);
  border-radius:8px;
}
.mz-form-success h3{margin-bottom:6px}
.mz-form-success p{color:var(--dim);font-size:14px}
.mz-form-success.show{display:block}

.mz-file-control{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:8px;
  background:var(--mz-input,#1a1a1a);
  transition:border-color .15s var(--ease),background-color .15s var(--ease);
}
.mz-file-control:hover,.mz-file-control.dragging{border-color:var(--line-strong)}
.mz-file-control:focus,.mz-file-control:focus-visible{
  outline:none;
  border-color:rgba(255,255,255,.35);
}

/* ------------------------------------------------------------
   Guided forms -- opt-in, on top of the language above

   A long form on one centred column with four type roles, sections that
   open as they are answered, and errors stated in place. Opt in by putting
   .mz-form-page on <main> and .mz-form-guided on the <form>; everything
   here is scoped to that class, so the portal and onboarding keep the
   quieter 11px mono heading they were drawn with.

   The four roles, and nothing between them:
     --fs-display  the title
     --fs-sub      section heads
     --fs-body     all prose and every field -- lede, section copy, labels,
                   legends, values, the status line
     --fs-label    mono meta -- the required marker, subfield captions, the
                   waiting note

   These pages had run to ten sizes, most a point or two apart: lede 22,
   section copy 14, label 14, hint 13, required 12, value 16, status 13,
   notice 14. Nothing was being said by the difference.
   ------------------------------------------------------------ */
.mz-form-page,
.portal-page,
.faq-page{
  /* Just the gutter. `main` above already caps at --shell and centres itself
     with margin:0 auto, so adding the shell-centring maths here centred it
     twice: past 1240px the padding grew with the viewport and ate the content
     box, collapsing this 900px column to 524px at 1900px wide and sliding it
     right. The formula belongs on a full-width element, which this is not. */
  padding-inline:var(--gutter);
  /* The closing measure is the flow's, not a separate page-bottom scale. It
     used to be clamp(64px,9vh,104px) -- 81px against a 54px band at a 900px
     viewport -- and on the two pages that END in an action (access.html's
     Submit, the portal's bucket link) that put the button visibly off-centre
     between its own rule and the footer's. 6vh here is the same clamp the
     guided form's sections use, so the two track each other at every height. */
  padding-block:clamp(72px,11vh,132px) clamp(48px,6vh,68px);
  display:grid;grid-template-columns:minmax(0,var(--col));justify-content:center;
  gap:clamp(44px,6.5vh,76px);
}
.mz-form-page>.mz-form-head h1,
.faq-page>.mz-form-head h1{margin:0 0 clamp(22px,2.8vh,32px)}
.mz-form-lede{margin:0;max-width:620px;color:var(--ink);font-size:var(--fs-body);line-height:1.55}
/* access.html runs a second lede under the first. At margin:0 the two ran
   together as one block, so the sign-in line read as a fourth sentence of the
   paragraph above it rather than a separate offer. */
.mz-form-lede+.mz-form-lede{margin-top:clamp(16px,2vh,22px)}

.mz-form-guided .mz-section-copy,
.mz-form-guided .mz-label,
.mz-form-guided .mz-field>label,
.mz-form-guided .mz-field>legend,
.mz-check>span{font-size:var(--fs-body);line-height:1.55}

/* Mono meta. --fs-label is 12px, so these are the one deliberate step down. */
.mz-form-guided .mz-form-note,
.mz-form-guided .mz-hint,
.mz-form-guided .mz-required::after,
.mz-form-guided .mz-gate-note{
  font-family:var(--mono);font-size:var(--fs-label);letter-spacing:.06em;
  line-height:1.5;color:var(--mut);opacity:1;
}
.mz-form-guided .mz-required::after{content:" (required)"}

/* Section heads carry the accent at Medium. 600 maps to the same
   HaasGrotDispR-65Medium file as 500, so this is a real weight rather than a
   synthesised bold. They are the only landmarks in a long scroll, so they
   take the ladder's section-head step instead of the 11px mono. */
.mz-form-guided .mz-section-heading{
  margin:0 0 16px;
  font-family:var(--sans);font-size:var(--fs-sub);font-weight:600;
  letter-spacing:-.02em;line-height:1.25;text-transform:none;color:var(--accent);
}
/* 34px between sections and 24px under a heading were drawn against an 11px
   mono heading. At --fs-sub, and with a section that may be showing nothing
   but its heading and a waiting note, they read tight. */
.mz-form-guided{--mz-section-gap:clamp(48px,6vh,68px)}
.mz-form-guided .mz-form-section{padding-bottom:var(--mz-section-gap);margin-bottom:var(--mz-section-gap)}
.mz-form-guided .mz-form-section.mz-form-section-compact-after{
  --mz-section-compact-gap:clamp(22px,3vh,32px);
  padding-bottom:var(--mz-section-compact-gap);margin-bottom:var(--mz-section-compact-gap);
}
.mz-form-guided>.mz-form-section:last-of-type,
.mz-form-guided>fieldset>.mz-form-section:last-of-type{padding-bottom:0;margin-bottom:0;border-bottom:0}
.mz-form-no-dividers .mz-form-section{border-bottom:0}
/* The capacity note is context, not an alert. The panel and the accent bar
   gave it more weight than the question it belongs to, so it drops to the
   mono meta step the hints use and carries the accent as colour instead.
   This sits after the mono group above, which would otherwise mute it. */
.mz-form-guided .mz-form-note{
  margin-top:10px;padding:0;border-left:0;background:none;
  color:var(--accent);
}
.mz-form-guided .mz-section-copy{margin:0 0 clamp(28px,3.4vh,38px);max-width:66ch}

/* Two short entries share a row where they belong together. The pair owns
   the rhythm rather than the fields inside it: .mz-field:last-child zeroes
   its own margin, which on a collapsed pair left 24px between the two
   halves and nothing at all between one pair and the next. */
.mz-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0 0 24px}
.mz-pair>.mz-field{margin:0}

/* A pair's two labels are rarely the same length, so one of them wraps --
   "Legal name of institution or company (required)" takes two lines where
   "Department or laboratory (required)" takes one -- and .mz-field packs its
   children from the top, so the two controls started at different heights.
   The grid item already stretches to the row, so an auto margin above the
   control spends that spare height on the gap instead: labels stay
   top-aligned, controls line up on the row's bottom edge. Below 760px the
   pair is one column per row, so there is no spare height and the margin
   does nothing. Dropped while the pair is showing an error, because
   .mz-field-error sits directly after the control -- with the margin on, the
   clean field's control would bottom-align against the error text rather
   than against its neighbour's control. */
.mz-pair:not(:has(.mz-field-error))>.mz-field>.mz-control,
.mz-subgrid:not(:has(.mz-field-error))>.mz-field>.mz-control{margin-top:auto}
.mz-subgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px 24px}
.mz-subgrid>.mz-field{margin:0}

/* Short choices read across the row rather than down it. Opt in per group:
   a consent paragraph must stay stacked, a Yes/No pair should not. */
/* 32px between options read as one run of text at these label lengths --
   "No, but we have reliable access to one" sat almost against the option
   beside it. The column gap is the widest of the three measures so the
   choices separate faster horizontally than they stack vertically. */
.mz-checks-inline{flex-direction:row;flex-wrap:wrap;gap:18px 56px}

/* A section still waiting keeps its heading, so the shape of the form stays
   visible, and hides its fields until the one above it is answered. */
.mz-form-guided .mz-form-section.locked .mz-fields{display:none}
.mz-form-guided .mz-form-section.locked .mz-section-heading,
.mz-form-guided .mz-form-section.locked .mz-section-copy{opacity:.4}
.mz-form-guided .mz-gate-note{display:none;margin:0;text-transform:uppercase}
/* Research carries no section copy, so its note inherited only the heading's
   16px while every other section's note sat on the copy's 31px -- the waiting
   line changed height depending on whether the section happened to have a
   sentence. The note now sits on the same measure either way; the margins
   collapse, so this wins over the heading's smaller one. */
.mz-form-guided .mz-section-heading+.mz-gate-note{margin-top:clamp(28px,3.4vh,38px)}
.mz-form-guided .mz-form-section.locked .mz-gate-note{display:block}
/* Only the first locked section says it. Every section below it is locked too,
   so "complete the section above" pointed at something the reader cannot act
   on either -- the same sentence four times, three of them untrue. The note
   rides the boundary and moves down on its own as each section opens. */
.mz-form-guided .mz-form-section.locked~.mz-form-section.locked .mz-gate-note{display:none}

/* The browser paints these with accent-color:var(--ink), which on this
   background makes an unchecked radio a solid white disc and a checked one a
   white ring around a white dot -- and an unchecked checkbox a solid white
   square. The states are nearly the same shape. Drawn explicitly instead, so
   checked is unmistakable. Not scoped to .mz-form-guided: the defect is in
   every form on the site, the portal's upload destination included. */
.mz-check>input[type="radio"],
.mz-check>input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  width:20px;height:20px;min-width:20px;margin-top:.22em;
  border:1px solid var(--line-strong);background:transparent;
  display:grid;place-content:center;
  transition:border-color .15s var(--ease);
}
.mz-check>input[type="radio"]{border-radius:50%}
.mz-check>input[type="checkbox"]{border-radius:4px}
.mz-check>input[type="radio"]::before{
  content:"";width:10px;height:10px;border-radius:50%;background:var(--accent);
  transform:scale(0);transition:transform .12s var(--ease);
}
/* A tick, drawn from two borders on a rotated box. */
.mz-check>input[type="checkbox"]::before{
  content:"";width:11px;height:6px;margin-top:-2px;
  border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);
  transform:rotate(-45deg) scale(0);transition:transform .12s var(--ease);
}
.mz-check>input[type="radio"]:hover,
.mz-check>input[type="checkbox"]:hover{border-color:rgba(255,255,255,.42)}
.mz-check>input[type="radio"]:checked,
.mz-check>input[type="checkbox"]:checked{border-color:var(--accent)}
.mz-check>input[type="radio"]:checked::before{transform:scale(1)}
.mz-check>input[type="checkbox"]:checked::before{transform:rotate(-45deg) scale(1)}
.mz-check>span{color:var(--dim)}
.mz-check:has(input:checked)>span{color:var(--ink)}
.mz-check:has(input:disabled){cursor:not-allowed;opacity:.58}

/* Errors: the field says what is wrong, in place, and the line by the button
   says how many there are. */
.mz-field-error{
  margin-top:10px;font-family:var(--mono);font-size:var(--fs-label);
  letter-spacing:.06em;line-height:1.5;color:var(--error);
}
.mz-form-guided .mz-control[aria-invalid="true"]{
  border-color:var(--error);box-shadow:0 0 0 1px rgba(255,133,133,.28);
}
.mz-form-guided .mz-field:has([aria-invalid="true"])>.mz-label,
.mz-form-guided .mz-field:has([aria-invalid="true"])>.mz-hint,
.mz-form-guided .mz-field:has([aria-invalid="true"])>legend{color:var(--error)}

.mz-form-guided .mz-form-actions{
  margin-top:var(--mz-section-gap);padding-top:var(--mz-section-gap);
  border-top:1px solid var(--line);
}
/* A form that drops its section dividers should not keep the one above the
   actions row: it is the only rule left on the page, so it reads as a stray
   line rather than the close of a series. Same specificity as the rule above,
   so it has to sit after it. The margin and the padding were one measure each
   side of that rule -- with no rule between them they stack to 108px and the
   button drifts off the form, so only the margin survives. */
.mz-form-no-dividers .mz-form-actions{border-top:0;padding-top:0}
.mz-form-guided .mz-form-actions .btn{
  min-width:260px;height:60px;padding-inline:36px;
  font-size:var(--fs-body);font-weight:500;
}
/* Following the actions row, the notice sets the space UNDER the submit, and
   at 31px against the band's own 54px above it the button sat high in its
   band. Elsewhere the notice keeps its own quieter measure. */
.mz-form-guided .mz-form-actions+.mz-form-notice{margin-top:var(--mz-section-gap)}
.mz-form-notice{margin-top:clamp(28px,3.4vh,38px);max-width:70ch;color:var(--dim);font-size:var(--fs-body);line-height:1.55}

@media(max-width:760px){
  .mz-pair{grid-template-columns:minmax(0,1fr);gap:24px}
}
@media(max-width:600px){
  .mz-pair{gap:22px;margin-bottom:22px}
}
@media(max-width:720px){
  .mz-form-guided .mz-form-actions{align-items:stretch;flex-direction:column}
  /* Half the column, not all of it: a full-bleed submit read as a banner
     across the bottom of the form rather than a button. fit-content is the
     floor -- "Submit shipping details" needs more than half of a 390px screen,
     and at a flat 50% the label wrapped inside the 60px button. */
  .mz-form-guided .mz-form-actions .btn{width:50%;min-width:fit-content}
}

@media(max-width:600px){
  .mz-form-section{padding-bottom:30px;margin-bottom:30px}
  .mz-field{margin-bottom:22px}
}

/* ------------------------------------------------------------
   Type scale
   ------------------------------------------------------------ */
.page-title{
  font-size:var(--fs-display);font-weight:300;
  letter-spacing:-.035em;line-height:1.05;
}
.page-lede{
  font-size:var(--fs-lede);color:var(--dim);
  line-height:1.55;margin-top:18px;max-width:620px;
}
.eyebrow{
  font-family:var(--mono);font-size:var(--fs-label);
  letter-spacing:.22em;text-transform:uppercase;color:var(--mut);
}

/* ------------------------------------------------------------
   Heading ladder: three roles, one definition.

     h1  page title    --fs-display  36→64px   300
     h2  section head  --fs-sub      22→28px   400
     h3  sub-head                       17px   500

   Weight drops and tracking loosens as the steps get smaller, so
   rank reads from size and colour rather than from boldness.

   Component headings (card titles, figure labels, the homepage's
   statement heads) legitimately sit outside this ladder and override
   it with class selectors, which outrank these element rules whatever
   the load order. What pages must NOT do is restate the ladder itself
   with the same values — that is how it drifted apart before.
   ------------------------------------------------------------ */
h1{font-size:var(--fs-display);font-weight:300;letter-spacing:-.035em;line-height:1.05}
h2{font-size:var(--fs-sub);font-weight:400;letter-spacing:-.02em;line-height:1.25}
h3{font-size:17px;font-weight:500;letter-spacing:-.01em;line-height:1.35}

/* ------------------------------------------------------------
   Components carried over from the homepage
   ------------------------------------------------------------ */
.stats .stat{transition:background .2s var(--ease)}
.stats .stat:hover{background:rgba(255,255,255,.03)}

.summary-item{transition:transform .2s var(--ease),background .2s var(--ease)}
.summary-item:hover{transform:translateY(-2px);background:rgba(255,255,255,.02)}

.feature-visual{transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
.feature-visual:hover{
  border-color:var(--line-strong);
  box-shadow:0 16px 48px rgba(0,0,0,.4);
}

/* ===================== masthead ===================== */
/* The wordmark sits over the footage rather than in a bar, with the menu
   button at the right-hand gutter and nothing else. The masthead itself lets
   clicks through to the page; only the mark and the menu take them. */
.masthead{
  position:absolute;top:0;left:0;right:0;z-index:20;
  display:flex;justify-content:center;
  /* The comp sets the letters 92px down at 1920 wide. */
  --masthead-top:calc(clamp(30px,4.8vw,92px) + env(safe-area-inset-top, 0px));
  padding-top:var(--masthead-top);
  padding-inline:var(--gutter-band);
  pointer-events:none;
}
.masthead-mark{display:block;pointer-events:auto}
.masthead-mark:focus-visible{outline:2px solid var(--ink);outline-offset:6px}
/* 310px wide at 1920 in the comp, the wings hanging below the letters. */
.masthead img,
.footer-mark{
  display:block;
  width:clamp(190px,16.15vw,310px);
  height:auto;
}

/* ===================== menu ===================== */
/* Two bars at the right-hand gutter, level with the letters of the mark.
   Pressed, the bars turn into a cross and the two links drop in beneath them,
   right-aligned, white, at the body size, straight on the page -- there is no
   panel behind them. site.js toggles it; without the script the links stay
   hidden and the same ones are in the footer. */
.menu{
  position:absolute;
  top:var(--masthead-top);
  right:var(--gutter-band);
  display:flex;flex-direction:column;align-items:flex-end;
  pointer-events:auto;
}
.menu-toggle{
  --bar-gap:clamp(8px,.62vw,12px);
  --bar-size:clamp(22px,1.25vw,24px);
  /* Three quarters of the stroke of the mark's letters (which is 2.9px at
     the mark's 310px): .007 of its width, so 2.2px at 1920 and 1.3px on a
     phone. J tried the full stroke (too heavy) and half (too thin). */
  --bar-h:calc(clamp(190px,16.15vw,310px) * .007);
  position:relative;
  display:flex;flex-direction:column;justify-content:center;gap:var(--bar-gap);
  width:var(--bar-size);height:var(--bar-size);
  /* The button is small, so its hit area is padded out to 44px. */
  padding:calc((44px - var(--bar-size)) / 2);
  box-sizing:content-box;
  margin:0;border:0;background:none;
  cursor:pointer;
  /* The pair is centred on the letters' midline: the letters run from the
     top of the mark to 27.5px down at 310px wide, so their centre is
     .048 of the mark's width below its top, and the 44px button is centred
     on that. */
  margin-top:calc(clamp(190px,16.15vw,310px) * .048 - 22px);
  /* ...snapped to a whole pixel where the browser can, so both bars start on
     a device-pixel boundary and render the same weight. Browsers without
     round() keep the line above. */
  margin-top:round(calc(clamp(190px,16.15vw,310px) * .048 - 22px), 1px);
  margin-right:calc(-1 * (44px - var(--bar-size)) / 2);
}
.menu-toggle span{
  display:block;height:var(--bar-h);height:round(var(--bar-h), 1px);width:100%;
  background:var(--ink);border-radius:1px;
  transition:transform .3s var(--ease-chrome);
}
/* The two bars close on the centre and cross. */
.menu.open .menu-toggle span:first-child{transform:translateY(calc((var(--bar-gap) + var(--bar-h)) / 2)) rotate(45deg)}
.menu.open .menu-toggle span:last-child{transform:translateY(calc(-1 * (var(--bar-gap) + var(--bar-h)) / 2)) rotate(-45deg)}
.menu-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:6px}
/* On dense screens the snap is to the device pixel, not the CSS pixel, so a
   1.3px bar becomes 4 device pixels on a 3x phone rather than collapsing to
   1px. */
@media (min-resolution:2dppx){
  .menu-toggle{margin-top:round(calc(clamp(190px,16.15vw,310px) * .048 - 22px), .5px)}
  .menu-toggle span{height:round(var(--bar-h), .5px)}
}
@media (min-resolution:3dppx){
  .menu-toggle{margin-top:round(calc(clamp(190px,16.15vw,310px) * .048 - 22px), calc(1px / 3))}
  .menu-toggle span{height:round(var(--bar-h), calc(1px / 3))}
}
/* The open menu is mZero's mobile card: a charcoal panel with a hairline
   edge, 12px corners and a soft shadow, dropped 10px under the button and
   anchored to its right edge, the links stacked inside it with the arrow at
   the far side. It fades and slides 8px into place where the browser has
   @starting-style, and simply appears where it does not. */
.menu-links{
  position:absolute;top:calc(100% + 10px);right:0;z-index:1;
  display:flex;flex-direction:column;align-items:stretch;gap:2px;
  min-width:clamp(200px,12.5vw,240px);
  padding:8px 6px 12px;
  background:#141416;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  box-shadow:0 24px 44px rgba(0,0,0,.5);
  opacity:1;transform:none;
  transition:opacity .2s ease,transform .2s ease,display .2s allow-discrete;
}
@starting-style{
  .menu-links{opacity:0;transform:translateY(-8px)}
}
.menu-links[hidden]{display:none;opacity:0;transform:translateY(-8px)}
/* The footer nav's size and tracking, so the two read as the same voice. */
.menu-links a{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:13px 14px;
  border-radius:8px;
  color:var(--ink);
  font-family:var(--mono);
  font-size:var(--fs-body);
  line-height:1.3;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  transition:background-color .2s ease;
}
.menu-links a:hover{background:rgba(255,255,255,.06)}
.menu-links a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.menu-arrow{display:block;height:.6em;width:auto;flex:none}

/* ===================== hero ===================== */
/* The clip fills the first screen edge to edge, plays once, and holds its last
   frame. The footage is a macro already
   cropped by its own frame, so covering costs nothing: it crops a little more
   off whichever axis is long, and on a phone it keeps the moth's body rather
   than showing a thin strip. */
.hero{
  position:relative;
  min-height:100svh;
  overflow:hidden;
  background:var(--teal-deep);
}
/* Fallback for browsers without svh: 100vh is close enough and only affects
   the first paint on mobile toolbars. */
@supports not (height:100svh){ .hero{min-height:100vh} }

.hero-media{
  position:absolute;
  inset:0;
  /* The poster also sits behind the element as a background. Calling play()
     drops the element's own poster attribute, and with no decoded frame yet
     the element paints nothing -- which reads as a black flash. */
  background:var(--teal-deep) url("/assets/monarch/hero-poster.jpg") center/cover no-repeat;
}
.hero-media video{
  display:block;width:100%;height:100%;
  object-fit:cover;
  /* Fades up over the poster once a frame has actually been decoded, so a
     phone that never loads the footage simply keeps the poster. */
  opacity:0;
  transition:opacity .5s ease;
}
.hero-media video.ready{opacity:1}

/* Once the moth has left the frame (10.9s in, measured off the clip) site.js
   marks the hero done and the footage fades out. What it fades onto is the
   clip's own last frame, rebuilt as a gradient: the stops are that frame's row
   averages at 0, 25, 50 and 72% of its height (#2a6162, #377f80, #43989a,
   #48a5a6), so the only thing the fade removes is the horizontal vignette and
   the grain. The bottom stop is the body teal, so the hero still meets the
   section below without a seam. The poster and the deep-teal ground are
   swapped out under the still-opaque video first, so nothing else shows through. */
/* Two layers over the vertical gradient rebuild the lens falloff as well: the
   frame is lighter through its centre (#4fafba against a #469ca7 row average
   at mid-height) and darker at both edges (#347879). */
.hero.done,
.hero.done .hero-media{
  background:
    radial-gradient(ellipse 60% 80% at 50% 62%, rgba(120,220,245,.24), rgba(120,220,245,0) 72%),
    radial-gradient(ellipse 100% 130% at 50% 60%, rgba(0,35,36,0) 38%, rgba(0,35,36,.42) 100%),
    linear-gradient(to bottom,
      var(--teal-deep) 0%, #377f80 25%, #43989a 50%, var(--teal-body) 72%, var(--teal-body) 100%);
}
.hero.done .hero-media video{opacity:0;transition:opacity 1.6s ease}

/* The graded clip's bottom edge is a horizontal vignette -- #398384 at the
   corners against #4fb6b7 in the middle, averaging to the body teal -- so a
   flat colour butted against it would seam at both ends. This fade absorbs the
   difference over the last sliver of the frame. */
.hero-media::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:22%;
  background:linear-gradient(to bottom, rgba(70,165,166,0), var(--teal-body));
  pointer-events:none;
}

.hero-line{
  position:absolute;z-index:10;left:0;right:0;
  /* The comp centres the two lines a little below the middle of the frame:
     583px down a 1064px hero. */
  top:54.8%;transform:translateY(-50%);
  margin:0;
  padding-inline:var(--gutter-band);
  margin-inline:auto;
  /* mZero's hero line (.ah-q on its homepage), value for value: Plex Mono,
     17 to 20px, regular, 1.6 line-height, centred in a 900px measure. At 20px
     the question is about 620px long, so it holds to one line. */
  max-width:min(900px, 92vw);
  font-family:var(--mono);
  font-size:clamp(17px,1.9vw,20px);
  font-weight:400;
  letter-spacing:0;
  line-height:1.6;
  text-align:center;
  text-wrap:balance;
  color:var(--ink);
  /* No shadow or glow: plain white, as the comp sets it. */
}

/* A hairline dropping out of the frame: the only scroll cue on the page.
   The comp draws it from 931 to 1023 in a 1064px hero. */
.hero-cue{
  position:absolute;z-index:10;left:50%;
  bottom:clamp(28px,4vh,44px);
  width:1px;height:clamp(52px,8.6vh,92px);
  background:linear-gradient(to bottom, rgba(255,255,255,.8), rgba(255,255,255,.3));
  transform:translateX(-50%);
  pointer-events:none;
}

/* ===================== the body ===================== */
/* Flat body teal from the foot of the hero to the footer, on the homepage
   only. Every other page sits on the charcoal band. Monarch's pages lay
   themselves out, so `main.full` steps out of the interior measure above. */
main.full{max-width:none;padding:0;background:transparent}
.page-home main{background:var(--teal-body)}

/* ===================== the two programme tiles ===================== */
/* The comp at 1920: tiles 1576 x 876 (172px in from each side), 118px below
   the hero, 148px apart, 28px corners, and 270px of air before the partner
   caption. Everything here is a fraction of the viewport so it holds at any
   width, with the phone sizes below. */
.programs{
  padding-block:clamp(48px,6.15vw,118px) 0;
}
.tiles{
  display:flex;flex-direction:column;
  gap:clamp(40px,7.7vw,148px);
  margin:0;
  padding:0 clamp(20px,8.96vw,172px);
  list-style:none;
}
/* The slot holds the tile's place in the flow while the tile itself is
   scaled, so the zoom never pulls the sections after it up and down. */
.tile-slot{display:block}
.tile{
  position:relative;
  display:block;
  aspect-ratio:1576 / 876;
  border-radius:clamp(16px,1.46vw,28px);
  overflow:hidden;
  background:#1a1a1a;
  color:var(--ink);
  text-decoration:none;
  /* Zooms in from the bottom: scaled about its own bottom centre, so the
     bottom edge holds and the tile grows upward into the viewport. */
  transform-origin:50% 100%;
  /* Safari rounds the corners of a transformed, overflow-hidden box only
     with this; without it the video ignores the radius mid-zoom. */
  -webkit-mask-image:-webkit-radial-gradient(#fff,#000);
}
.tile--light{background:#c9c9c9;color:#222222}
.tile-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
/* pZero's clip is delivered black-and-grey in the file itself (see
   docs/EDITING.md), not filtered here -- a filter on a playing video costs on
   phones and is not applied to the poster by every browser. */

/* The text sits in the lower-left, as the comp draws it: 55px in from the
   left edge and 74px up from the bottom on a 1576px tile. */
.tile-text{
  position:absolute;left:0;bottom:0;
  padding:0 clamp(18px,3.5cqw,56px) clamp(20px,4.7cqw,74px) clamp(18px,3.5cqw,56px);
  max-width:min(100%,calc(var(--tile-copy-max,474px) + 2 * clamp(18px,3.5cqw,56px)));
}
.tile{container-type:inline-size}
/* The footer nav's size and tracking (mono caps at the body size), so the
   programme names read as the same voice as the links to them. */
.tile-label{
  margin:0 0 clamp(12px,1.4cqw,22px);
  font-family:var(--mono);
  font-size:var(--fs-body);
  letter-spacing:.06em;
  text-transform:uppercase;
}
/* mZero's card sub-line: 15 to 18px Haas Roman at 1.5. */
.tile-copy{
  margin:0;
  font-size:var(--fs-tile);
  line-height:1.5;
  text-wrap:pretty;
}
/* The same arrow as the menu's (assets/arrow.svg, inlined), in the tile's
   own text colour. */
.tile-arrow{
  display:block;
  margin-top:clamp(14px,1.7cqw,26px);
  height:clamp(13px,1.25cqw,20px);width:auto;
}
/* mZero's clip runs from mid-grey to near-black under the text; a soft
   darkening at the foot keeps the white copy readable at every frame. */
.tile--dark::after{
  content:"";position:absolute;inset:auto 0 0 0;height:55%;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events:none;
}
/* pZero's beetles are dark on a pale ground and cross the lower third; the
   same guard in reverse keeps the dark copy readable when one passes behind. */
.tile--light::after{
  content:"";position:absolute;inset:auto 0 0 0;height:55%;
  background:linear-gradient(to top, rgba(222,222,222,.85), rgba(222,222,222,0));
  pointer-events:none;
}
.tile-text{z-index:1}
@media (prefers-reduced-motion: no-preference){
  .tile-arrow{transition:transform .4s var(--ease-chrome)}
}
.tile:hover .tile-arrow,
.tile:focus-visible .tile-arrow{transform:translateX(6px)}
.tile:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

/* ---- the push/zoom in from the bottom ----
   As a tile travels from just below the viewport to a little under half way
   up it, it scales from .62 to 1 about its bottom edge. The progress is the
   scroll position itself, so scrolling back down reverses it. With
   scroll-driven animations this is one declaration; without them site.js sets
   the same transform from a scroll handler (see .tile.js-zoom). Neither runs
   where motion is unwelcome. */
@keyframes tile-rise{
  from{transform:scale(.62) translateY(6%)}
  to{transform:none}
}
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .tile{
      animation:tile-rise linear both;
      animation-timeline:view();
      animation-range:entry 0% cover 42%;
    }
  }
  .tile.js-zoom{will-change:transform}
}

/* ===================== partners ===================== */
/* The row runs as a marquee. Where motion is unwelcome it wraps to a static
   block instead. */
.partners{
  /* The comp: 270px from the second tile to the caption at 1920. */
  padding-block:clamp(72px,14vw,270px) clamp(88px,8.4vw,160px);
}
.partners-note{
  margin:0 auto clamp(44px,4.4vw,84px);
  padding-inline:var(--gutter-band);
  max-width:calc(780px + 2 * var(--gutter-band));
  /* mZero's partner caption (.partners-note on its homepage): mono, 1.6
     line-height, a touch of tracking. Colour stays Monarch's. Set a notch
     above mZero's 13px so the banner carries at the width it runs at. */
  font-family:var(--mono);
  font-size:15px;
  line-height:1.6;
  letter-spacing:.02em;
  /* Held at .84 because below that it stops holding on the teal. */
  color:rgba(255,255,255,.84);
  text-align:center;text-wrap:balance;
}
.partners-marquee{
  overflow:hidden;
  /* Nothing enters or leaves the row at a hard edge. */
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
}
.partners-track{display:flex;width:max-content;animation:partners-run 64s linear infinite}
/* Half the gap on each side, so the seam between two copies measures the same
   as the gaps inside one. */
.partners-row{
  display:flex;align-items:center;gap:clamp(56px,6.2vw,96px);
  margin:0;padding:0 clamp(28px,3.1vw,48px);list-style:none;
}
/* The marks ship as white line-art on transparent; brightness(0) takes any
   colour to black, so they come down to dark artwork on the teal without a
   second set of files. */
.partners-row a{display:block}
.partners-row img{display:block;zoom:var(--logo-zoom,1.25);opacity:.72;filter:brightness(0)}
@keyframes partners-run{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}
@media (prefers-reduced-motion: reduce){
  .partners-track{animation:none;width:auto;justify-content:center;flex-wrap:wrap}
  .partners-track [aria-hidden="true"]{display:none}
  .partners-row{flex-wrap:wrap;justify-content:center;row-gap:28px}
  .partners-marquee{overflow:visible;-webkit-mask-image:none;mask-image:none}
}

/* ===================== footer ===================== */
/* The mark holds the left edge and three link columns stand at the other, so
   the footer grows sideways as links are added rather than piling up as
   centred rows. Column headings are 12px mono in --muted (4.6:1, which the
   token allows at 12px and up); the links themselves are 15px white caps, the
   same voice as the menu card. A hairline closes the block off from the legal
   line. The phone rules are at the end of the stylesheet. */
footer{
  position:relative;z-index:1;
  background:var(--band);
  color:#ffffff;
  text-align:left;
  padding-block:clamp(72px,6.8vw,130px) clamp(48px,4.4vw,80px);
  padding-bottom:calc(clamp(48px,4.4vw,80px) + env(safe-area-inset-bottom, 0px));
}
.footer-inner{
  width:min(100% - 2 * var(--gutter-band), var(--shell));margin:0 auto;
  /* The row rhythm, declared once: the link columns and the legal line below
     them both lay out on it, so Privacy sits under the last column's first
     letter rather than at the container's edge. */
  --footer-lead:clamp(196px,23.5vw,380px);
  --footer-tracks:minmax(var(--footer-lead), 1fr) repeat(3, 124px);
  --footer-gap:clamp(28px,5.6vw,88px);
}
/* Four things on one row -- the mark and the three columns -- each sized to its
   own content, with the free width shared equally between them. Pushing the
   columns to the far edge instead left a dead gulf beside the mark; spreading
   them gives the row an even rhythm and sets the last column flush right. */
.footer-top{
  display:grid;
  /* The mark's track takes every spare pixel, so it stays at the left edge and
     the three content-sized columns stay one group at a set gap on the right,
     rather than being spread apart with the slack shared between them. */
  /* The three link tracks are one fixed width rather than content-sized, so
     the columns START on an even rhythm. Sized to content they did not: the
     gap was constant but "CHALLENGES" is half again as wide as "LABS", so the
     eye read the intervals as 134px and then 163px. 124px clears the widest
     label (CHALLENGES is about 99px at 15px mono with .06em). */
  grid-template-columns:var(--footer-tracks);
  align-items:start;
  row-gap:clamp(40px,4.5vw,72px);
  column-gap:var(--footer-gap);
}
.footer-top > .footer-mark{justify-self:start}
/* Between the phone rules and about 900px the mark's floor plus three 124px
   tracks plus a vw-scaled gap add up to more than the shell, and the last
   column ran off the edge. The lead and the gap step down through that band
   rather than the columns narrowing, so the rhythm above 900px is untouched. */
@media(max-width:900px){
  .footer-inner{--footer-lead:clamp(150px,20vw,220px);--footer-gap:clamp(22px,3.2vw,44px)}
}

.footer-mark{display:block;width:var(--footer-lead);max-width:100%;height:auto}
.footer-col{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.footer-col-title{
  margin:0 0 2px;
  font-family:var(--mono);
  font-size:var(--fs-label);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.footer-col a{
  font-family:var(--mono);
  font-size:var(--fs-micro);
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  color:#ffffff;
  transition:opacity .25s ease;
}
.footer-col a:hover{opacity:.7}
/* The legal line sits on the same tracks as the columns above it: the notice
   under the mark, the policy in the last column's track, so it starts on
   PAPERS' left edge instead of hanging off the container's right one. Both are
   set at the column headings' size -- they are the same order of information,
   and at 15px they were reading louder than the headings they sit under.
   #999999 is 5.6:1 on the band, which carries 12px mono. */
.footer-legal{
  display:grid;
  grid-template-columns:var(--footer-tracks);
  column-gap:var(--footer-gap);
  align-items:baseline;
  margin:clamp(44px,4.2vw,72px) 0 0;
  padding-top:clamp(20px,1.9vw,30px);
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:var(--fs-label);
  letter-spacing:0;
  color:var(--ink-legal);
}
/* The dot only earns its place when the two sit on one centred line, which is
   the phone layout. */
.footer-legal .sep{display:none}
/* Three links. Each takes the track of the column it sits under -- the team
   page under Programs, the update under Company, the policy under More --
   rather than stacking in the last one. */
.footer-legal .footer-team{grid-column:2;justify-self:start}
.footer-legal .footer-update{grid-column:3;justify-self:start}
.footer-legal .footer-policy{grid-column:4;justify-self:start}

/* ===================== the mission page ===================== */
/* One column of text over the wing scales. The comp set it at 26px in a
   856px column with a blank line between paragraphs and the first line 280px
   down at 1920; J found that large against the homepage, so it is set at the
   site's body size (20px at 1920, the footer's) on the same measure -- 33em,
   about 55 characters a line -- which centres a 660px column. The photograph is fixed behind the whole page -- as a
   fixed element carrying an <img>, not background-attachment, which iOS
   ignores -- and the footer is the same charcoal, so the page ends as the
   homepage does. */
.page-mission{background:var(--band)}
.mission-bg{
  position:fixed;inset:0;z-index:0;
  background:var(--band);
  pointer-events:none;
}
.mission-bg img{
  display:block;width:100%;height:100%;
  object-fit:cover;object-position:center;
}
main.mission{
  position:relative;z-index:1;
  /* mZero's reading measure for a lede or an answer: 640px. The FAQ page
     sits on the same column. */
  max-width:calc(640px + 2 * var(--gutter-band));
  margin:0 auto;
  /* The floor keeps the first line clear of the open menu on a phone, where
     the two links reach about 130px down. */
  padding:clamp(180px,14.6vw,280px) var(--gutter-band) clamp(120px,9.4vw,180px);
  font-size:var(--fs-body);
  line-height:1.7;
  letter-spacing:0;
}
.mission-text{
  margin:0;
  font-size:1em;
  font-weight:400;
  line-height:inherit;
  letter-spacing:inherit;
}
/* The question leads the page at mZero's page-title size and weight; it had
   been set as a first paragraph, which is how the comp drew it. */
h1.mission-text{
  margin:0 0 clamp(22px,2.8vh,32px);
  /* The interior display title runs past --fs-display: 90px over an 85px
     line at the top (J's spec, 2026-09-28), scaling down on the same ratio.
     Yield's h1 carries the identical treatment in its own file. */
  font-size:clamp(40px,6.25vw,90px);
  font-weight:300;
  line-height:.945;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.mission-text + .mission-text{margin-top:14px}
h1.mission-text + .mission-text{margin-top:0}
.mission a{
  color:inherit;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.18em;
  transition:opacity .25s ease;
}
.mission a:hover{opacity:.7}
.mission a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.nowrap{white-space:nowrap}

/* ===================== frequently asked questions ===================== */
/* mZero's centred column and expandable cards, using Monarch's type and
   charcoal. Native details keep every answer available without JavaScript. */
.page-faq main{background:transparent}
/* The mission page's 640px column, so the two interior pages read at one
   measure; the cards span it and the answers run the card's width. */
main.faq-page{
  max-width:calc(640px + 2 * var(--gutter-band));
  margin:0 auto;
  /* The same top edge as the mission page, so the two titles sit at one
     height when moving between them. */
  padding:clamp(180px,14.6vw,280px) var(--gutter-band) clamp(120px,9.4vw,180px);
}
.faq-heading{margin-bottom:clamp(44px,5vw,76px)}
/* mZero's page title and lede. */
.faq-heading h1{
  margin:0;
  font-size:var(--fs-display);
  font-weight:300;
  line-height:1.05;
  letter-spacing:-.035em;
  text-wrap:balance;
}
/* Ruled rows rather than cards: the questions read as the careers page's
   lists do, on the column with nothing boxing them. A row carries a hairline
   above it; the last of a run carries one below, which on the FAQ means the
   row before each section label as well as the final one. */
.faq-list{display:flex;flex-direction:column}
.faq-list details{border-top:1px solid var(--line)}
.faq-list > details:last-child,
.faq-list details:has(+ .faq-section){border-bottom:1px solid var(--line)}
.faq-list summary{
  display:flex;justify-content:space-between;align-items:center;gap:24px;
  padding:26px 0;
  list-style:none;
  cursor:pointer;
  font-size:21px;
  font-weight:400;
  line-height:1.3;
  letter-spacing:-.012em;
  transition:color .15s ease;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::marker{content:""}
.faq-list summary:hover{color:var(--accent)}
.faq-list summary:focus-visible{outline-offset:3px}
/* The sign is drawn from two rules, not typed: it loses its upright when the
   row opens, so a closed row reads + and an open one reads -. */
.faq-toggle{
  position:relative;
  flex:0 0 16px;width:16px;height:28px;
  color:var(--accent);
}
.faq-toggle::before,.faq-toggle::after{content:"";position:absolute;background:currentColor}
.faq-toggle::before{left:1px;top:13px;width:14px;height:1px}
.faq-toggle::after{left:7px;top:7px;width:1px;height:14px}
.faq-list details[open] .faq-toggle::after{display:none}
.faq-answer{
  padding:0 0 28px;
  font-size:16px;
  line-height:1.6;
  color:var(--dim);
  overflow-wrap:break-word;
}
.faq-answer p{margin:0 0 14px}
.faq-answer strong{font-weight:500}
.faq-answer p:last-child{margin-bottom:0}
.faq-answer a{color:var(--ink);text-underline-offset:.2em}
.faq-answer a:hover{text-decoration-thickness:2px}

/* ===================== responsive ===================== */
@media(max-width:820px){
  /* Taller tiles on a narrow screen: the 1.8:1 comp shape would leave the
     clip a thin band and the text with nowhere to sit. */
  .tile{aspect-ratio:4 / 5}
  .tile-text{max-width:100%}
  .partners-row{zoom:.8}
}

@media(max-width:680px){
  .hero-line br{display:none}
}
@media(max-width:560px){
  /* mZero's phone size for the same line. */
  .hero-line{font-size:clamp(19px,5.6vw,23px);line-height:1.5}
  .tile-arrow{height:14px}
  /* Phone: the card spans gutter to gutter, as mZero's does, and the links
     step up to 16px. */
  .menu-links{width:calc(100vw - 2 * var(--gutter-band));min-width:0;top:calc(100% + 32px)}  /* clears the mark's wings */
  .menu-links a{font-size:16px}
  .faq-list summary{padding:22px 0;gap:16px}
  .faq-answer{padding:0 0 24px}
}

/* ===================== chrome shared by every page ===================== */
/* Monarch's masthead floats over footage on the homepage, the mission page,
   the FAQ and the two programme homepages, which were all drawn with it
   absolute. Interior pages -- forms, portal, labs, about, privacy -- carry
   `chrome-inflow` on <body>: the masthead then takes its own height so the
   page's own top padding starts below the mark. The menu keeps the same
   offset either way because it is positioned inside the masthead. */
body.chrome-inflow .masthead{
  position:relative;
  padding-bottom:clamp(22px,2.6vw,40px);
}
body.chrome-inflow main{padding-top:clamp(40px,5vh,64px)}

/* The programme strip: which programme this page belongs to, and its pages.
   Mono caps at the small step, on the interior measure. On the programme
   homepages it sits at the top of the first band after the hero. */
.program-nav{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 28px;
  width:min(100% - 2 * var(--gutter-band), var(--shell));
  margin:0 auto;
  padding:clamp(16px,2vw,26px) 0;
  border-bottom:1px solid var(--line);
  font-family:var(--mono);
  font-size:var(--fs-small);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.program-nav-name{color:var(--accent);margin-right:clamp(8px,2vw,24px)}
.program-nav a{color:var(--dim);text-decoration:none;transition:color .16s var(--ease)}
.program-nav a:hover{color:var(--ink)}
.program-nav a[aria-current="page"]{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.4em}
@media(max-width:560px){
  .program-nav{gap:8px 18px;font-size:14px}
}

/* A programme's section of the shared FAQ. */
.faq-section{
  margin:clamp(56px,6vw,96px) 0 clamp(20px,2.4vw,32px);
  font-family:var(--mono);font-size:var(--fs-body);font-weight:400;
  letter-spacing:.06em;text-transform:uppercase;color:var(--accent);
}

/* The programme homepages lay themselves out edge to edge -- hero, bands,
   marquee -- so they step out of the interior reading measure and padding
   that every other page inherits from `main`. */
.page-program main{max-width:none;width:100%;padding:0;background:transparent}
/* Their own chrome sits over the hero, as on Monarch's homepage. */
.page-program .program-nav{margin-top:clamp(16px,2vw,26px)}

/* The policy sits on the legal line, in the legal line's ink. */
.footer-legal a{color:inherit;text-decoration:none;transition:opacity .25s ease}
.footer-legal a:hover{opacity:.7}

/* ===================== the CTA band ===================== */
/* A page's way on, from J's "homepage CTA" comp (2660px canvas, a 2x capture
   of a 1220px window): a full-bleed band 27.25vw tall, a scale photograph
   filling it, one line and the links out. It began as the homepage's
   .home-problems and now serves six pages, so it lives here in the shared
   chrome rather than in problems.css.
   The comp shows the photo at ~30% over the charcoal, and that is baked into
   every cta-*.jpg, so nothing here dims them -- re-tone means re-render, and
   scripts/build-cta-bands.py is what renders them. Headline Haas 55 at
   ~31.5px, links Plex Mono caps at the body size, 25px apart, white, centred. */
.cta-band{
  position:relative;overflow:hidden;isolation:isolate;
  display:grid;place-items:center;
  min-height:clamp(300px,27.25vw,640px);
  padding:clamp(56px,5vw,96px) var(--gutter-band);
  background:var(--band);color:#ffffff;text-align:center;
}
.cta-band-bg{
  position:absolute;inset:0;z-index:-1;width:100%;height:100%;
  object-fit:cover;object-position:50% 59%; /* the comp's slice of the frame */
}
.cta-band h2{
  margin:0;
  font-size:clamp(26px,2.52vw,43px);font-weight:400;
  line-height:1.2;letter-spacing:0;text-wrap:balance;
}
/* Scoped to the band rather than written flat: a page that resets its own
   prose margins -- .papers-page zeroes :where(h2, h3, p, ol) -- matches this
   paragraph at the same weight, and its stylesheet loads after this one. That
   dropped the 25px between the line and its links on /papers alone. */
.cta-band .cta-band-links{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:10px clamp(28px,3.4vw,56px);
  margin:clamp(16px,2.05vw,32px) 0 0;
  font-family:var(--mono);font-size:var(--fs-body);font-weight:400;
  letter-spacing:0;line-height:1.5;text-transform:uppercase;
}
.cta-band-links a{color:inherit;text-decoration:none;transition:opacity .25s ease}
/* A band with one way out is one hit area, as the homepage's is. A band that
   offers two cannot be, so there each link takes only its own text. */
.cta-band-links a:only-child::after{content:"";position:absolute;inset:0}
.cta-band-links a:hover{opacity:.7}
.cta-band:has(a:focus-visible){outline:2px solid #ffffff;outline-offset:-6px}
/* Drawn, not typed: the Latin-1 Plex Mono subset has no U+2197 (as on /crops). */
.cta-band .link-arrow{
  display:inline-block;width:.7em;height:.7em;margin-left:.45em;vertical-align:baseline;
  fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:square;
}
/* Every page but the homepage keeps a measure on its main -- `main.full` does
   not help, because both `main.mission` and `.page-program main` are written
   after it at the same weight and win -- so the band steps out to the viewport
   edges itself. Negative inline margins rather than 100vw: 100vw counts the
   scrollbar and would scroll the page sideways.
   `body main` outranks those two page rules, which is what it takes to drop
   main's bottom padding and sit the band on the footer, where it lands on the
   homepage for free. */
.cta-band--bleed{
  margin-inline:calc(50% - 50vw);
  /* The page's closing rhythm, which main's bottom padding used to hold
     between the last of the content and the footer. Zeroing that padding sits
     the band on the footer but also ran the copy straight into it, which shows
     worst on /mission where the band follows a paragraph. The homepage wants
     none of this -- there the band abuts the partner band by design, which is
     why it is on the bleed modifier and not on .cta-band. */
  margin-top:clamp(96px,14vh,120px);
}
body main:has(> .cta-band--bleed){padding-bottom:0}

/* ===================== the FAQ's own rhythm ===================== */
/* The FAQ shares the guided form's page rule, which lays its children out as a
   grid with a 58px row gap. On a form that gap IS the rhythm between sections;
   on the FAQ it stacked on top of the margins the heading and the section
   headings already carry, so every boundary on the page ran 58px wider than it
   was drawn: 130px under the lede, 145px above "Disease prevention" and 90px
   under it. The FAQ lays itself out in normal flow and spends its own margins,
   which is what those clamps were set against. */
main.faq-page{display:block}

/* ===================== partner marks on the band ===================== */
/* One shared set of dark line-art masters. Monarch's homepage sits them on the
   teal band and takes them to black; the two program pages sit them on the
   charcoal band, so there the same masters invert to white silhouettes. */
.page-program .partners-row img{filter:brightness(0) invert(1)}

/* ===================== the masthead's two actions ===================== */
/* The menu moves to the left gutter and the two things a visitor comes here to
   do sit at the right one, as outlined buttons: Join (apply to the network)
   and Login (sign in to it). The mark stays centred between them.
   The bars keep their 44px hit area; the buttons take their own. */
.menu{left:var(--gutter-band);right:auto;align-items:flex-start}
.menu-links{left:0;right:auto}
.menu-toggle{margin-right:0;margin-left:calc(-1 * (44px - var(--bar-size)) / 2)}

.masthead-actions{
  position:absolute;
  top:var(--masthead-top);
  right:var(--gutter-band);
  display:flex;align-items:center;gap:clamp(8px,.7vw,12px);
  pointer-events:auto;
  /* Centred on the letters' midline, the same maths the menu bars use, less
     half this control's own height. */
  margin-top:calc(clamp(190px,16.15vw,310px) * .048 - 15px);
  margin-top:round(calc(clamp(190px,16.15vw,310px) * .048 - 15px), 1px);
}
.masthead-action{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:30px;padding:7px clamp(12px,1vw,16px);
  border:1px solid currentColor;border-radius:4px;
  font-family:var(--mono);
  font-size:clamp(10px,.72vw,12px);
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  transition:background-color .2s var(--ease-chrome), color .2s var(--ease-chrome);
}
.masthead-action:hover{background:var(--ink);color:var(--band)}
.masthead-action:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* On the pale crop plate the buttons take the plate's ink like everything else
   on that hero -- the border is currentColor, so it follows -- and their hover
   fills with it. */
.hero-plate-light .masthead-action{color:#222222}
.hero-plate-light .masthead-action:hover{background:#222222;color:#ffffff}
.hero-plate-light .masthead-action:focus-visible{outline-color:#222222}

/* The two actions are in the menu instead, below 720px: the mark and both
   buttons do not fit across a phone, and the mark is what the bar is for.
   They are drawn there as the buttons they are at the gutter -- outlined, 4px
   corners, centred, the same tracking -- sat side by side at the foot of the
   card under a hairline, so the card reads as five destinations and then the
   two things to do, rather than seven link rows. They keep a 44px target,
   which is why they are taller than the masthead's 30px pair.
   `.menu-links a` sets the row's display and padding, so these carry the
   element too or they lose on specificity and show at every width. */
.menu-actions{display:none}
@media(max-width:720px){
  .masthead-actions{display:none}
  .menu-actions{
    display:flex;gap:8px;
    /* 8px past the card's own 6px lines the buttons up with the link labels. */
    margin:6px 8px 0;padding-top:12px;
    border-top:1px solid rgba(255,255,255,.09);
  }
  .menu-links a.menu-action{
    flex:1 1 0;
    justify-content:center;
    min-height:44px;padding:7px 12px;
    border:1px solid currentColor;border-radius:4px;
    font-size:13px;letter-spacing:.12em;
  }
  /* The gutter buttons fill with the ink they are drawn in; on this card the
     text then takes the card's own charcoal rather than the band's. */
  .menu-links a.menu-action:hover{background:var(--ink);color:#141416}
  .menu-links a.menu-action:focus-visible{outline-offset:3px}
}

/* ===================== the masthead on a scroll up ===================== */
/* The bar is drawn at the top of the page and scrolls away with it. Past the
   first screen a scroll up pins it to the viewport; a scroll down takes it
   back out. assets/masthead-reveal.js puts `bar-pinned` and `bar-hidden` on
   <html>; everything the two states look like is here.
   Pinned it is a compact bar on the band: a smaller mark, the bars and the
   two buttons centred on it, and a hairline under it so it reads as chrome
   over whatever it is covering. */
html.bar-pinned .masthead{
  position:fixed;top:0;left:0;right:0;
  --masthead-top:calc(clamp(12px,1.1vw,18px) + env(safe-area-inset-top, 0px));
  padding-top:var(--masthead-top);
  padding-bottom:clamp(12px,1.1vw,18px);
  background:rgba(34,34,34,.92);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.1);
  pointer-events:auto;
  transition:transform .28s var(--ease-chrome);
}
html.bar-pinned .masthead img{width:clamp(150px,10.5vw,190px)}
/* Both are absolutely placed and optically centred on the full-size mark's
   letters; on the compact bar they centre on the bar itself instead. */
html.bar-pinned .menu,
html.bar-pinned .masthead-actions{top:50%;margin-top:0;transform:translateY(-50%)}
html.bar-hidden .masthead{transform:translateY(-101%)}
/* The bar is charcoal whatever it is over, so the pale-plate inversion stops
   at the moment it pins. */
html.bar-pinned .hero-plate-light .masthead img{filter:none}
html.bar-pinned .hero-plate-light .masthead-action{color:var(--ink)}
html.bar-pinned .hero-plate-light .menu-toggle span{background:var(--ink)}
/* An in-flow masthead leaves the document when it pins; the body stands in for
   its height so the page does not jump under the reader. Hero pages draw it
   absolute already and need none of this. */
html.bar-pinned body.chrome-inflow{padding-top:var(--bar-space,0px)}
@media (prefers-reduced-motion: reduce){
  html.bar-pinned .masthead{transition:none}
}

/* ===================== where the page ends and the footer starts ===================== */
/* The footer is the same charcoal as the page above it, so on every page that
   ends on the band -- the two program pages, sign-in, the FAQ, the documents --
   the last section ran straight into it and the footer's own mark read as part
   of the page. A hairline the width of the viewport ends the page.
   The homepage needs none of it: its body is the teal band, so the change of
   colour already draws the line. */
footer{border-top:1px solid var(--line)}
.page-home footer{border-top-color:transparent}
/* The two program pages lay themselves out edge to edge, so they ended on the
   band of figures with its rules 14px off that hairline. They close on a
   section's gap, which is what every other page leaves. */
.page-program main{padding-bottom:clamp(96px,13vh,150px)}

/* ===================== two details the phone pass turned up ===================== */
/* The partner caption sits on the homepage's teal band, where white at .84 is
   2.9:1 at 13px -- under AA, and the one piece of body copy on the site that
   was. The band already has an ink: the marks beside this line are taken to
   black on it. The caption takes the same one, at 5.1:1. The program pages
   keep white, because there the caption is on the charcoal band. */
.page-home .partners-note{color:#222222}

/* A jump to a fragment lands under the pinned bar otherwise -- the skip link
   is the one every page has. The value is the pinned bar's height plus a
   little air. */
[id]{scroll-margin-top:clamp(84px,9vh,104px)}

/* `.mz-checks` sets its own display, which outranks the browser's own rule for
   the hidden attribute (a type selector beats none of it). So a group the
   script had hidden went on rendering: on Request Access, with no program
   chosen yet, BOTH programs' assay lists were on screen at once, two "Other"
   boxes and all. Every component that is hidden by attribute states it. */
.mz-checks[hidden]{display:none}

/* ===================== word spacing in display type ===================== */
/* The display sizes are tracked at -.035em, and letter-spacing comes off the
   word space as well as the letter fit. At 36px on a phone that left the gaps
   between words narrower than the gaps inside them: "What if we could" read as
   "Whatif we could", and every page title did the same. The tracking is the
   type system's and stays; the space gets its width back.
   The program pages' own display line is tracked at -.021em and takes a
   proportionally smaller correction. */
h1,
.page-title{word-spacing:.06em}
.page-program .h-lead{word-spacing:.04em}

/* An italic species name is followed by a roman word often enough on the FAQ
   and in Lab support that its tight right sidebearing showed: "Aedes if" set
   as "Aedesif". The italic carries the sliver the space is missing. */
em.sp{margin-right:.06em}

/* ===================== the footer on a phone ===================== */
/* The mark holds the left edge over two of the three columns, and the columns
   hold underneath it, a size down -- the same composition as the wide footer
   rather than a centred one. Folding them to two columns instead left More
   alone on a third row beside an empty cell and ran the footer 200px longer;
   three keeps the desktop's structure and the cells keep their left edge, so
   the lists line up -- the centred pairs of the older phone footer did not,
   which is what made it read as loose fragments. "CHALLENGES" is the widest
   label and still clears its column at 320px. */
@media(max-width:680px){
  footer{padding-block:clamp(56px,12vw,80px) clamp(36px,8vw,56px)}
  .footer-top{
    --footer-col-gap:clamp(10px,3.2vw,20px);
    grid-template-columns:repeat(3,minmax(0,1fr));
    column-gap:var(--footer-col-gap);
    row-gap:clamp(24px,6vw,34px);
  }
  /* Half the row wide, at the left edge: with three equal tracks, 50% lands
     exactly on the middle of the Company column whatever the gap is, since
     1.5 tracks + one gap reduces to half the width. Two tracks wide read as
     too much logo. It still spans the row -- given `span 2` the first link
     column flows up beside it instead of starting a new row.
     The selector matches the wide rule's, or that one's justify-self wins. */
  .footer-top > .footer-mark{
    grid-column:1 / -1;justify-self:start;
    width:50%;
    margin-bottom:clamp(10px,3vw,18px);
  }
  .footer-col{gap:2px}
  .footer-col-title{font-size:var(--fs-label);letter-spacing:.1em;margin-bottom:6px}
  /* A thumb needs more than the cap height of a 13px line; the padding is what
     makes each link a target. Three columns bought the room for it. */
  .footer-col a{font-size:13px;letter-spacing:.04em;padding-block:12px}
  /* One line at the left edge, with the dot back between the two halves -- the
     tracks above it are too narrow here to hang the policy off one, and the
     mark and the columns both start at the gutter, so this does too. */
  .footer-legal{
    display:flex;justify-content:flex-start;flex-wrap:wrap;
    /* The grid's column gap carries over to the flex row and lands either side
       of the dot, on top of the dot's own margins. The dot sets its own space. */
    column-gap:0;
    margin-top:clamp(30px,7vw,44px);
    padding-top:clamp(18px,4.4vw,26px);
    font-size:var(--fs-label);
  }
  .footer-legal a{grid-column:auto;justify-self:auto}
  .footer-legal .sep{display:inline-block;margin-inline:10px;opacity:.75}
}

/* The program radios are a row on a wide screen, and the 18px in that gap is
   there for the line above and below when the row wraps. On a phone it always
   wraps, so the pair became two options 18px apart where every other stacked
   choice on the same form sits 2px apart. They stack like the rest. */
@media(max-width:600px){
  .mz-checks-inline{gap:2px}
}
