@font-face { font-family: Inter; src: url("/fonts/InterLatin-v1.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { font-family: Inter, system-ui, sans-serif; color: hsl(var(--ink)); background: hsl(var(--surface)); color-scheme: light; line-height: 1.5; }
:root.dark { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
.brand img { display: block; width: 36px; height: 36px; flex: 0 0 36px; }
/* Shared public top bar (standards 01, "Pages before sign-in"): a rounded bar that floats and stays at the top, 56 px. */
.topbar { position: sticky; top: 8px; z-index: 5; margin: 8px 16px 0; }
.bar { position: relative; min-height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 16px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); }
.brand { display: flex; align-items: center; gap: 8px; margin-right: 8px; color: inherit; text-decoration: none; }
.brand strong { color: hsl(var(--brand-text)); }
.links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto 0 0; padding: 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: hsl(var(--ink)); text-decoration: none; font-size: 14px; }
.links a:hover { background: hsl(var(--brand-tint)); }
.links a[aria-current="page"] { color: hsl(var(--brand-text)); background: hsl(var(--brand-tint)); }
.bar #preview { color: hsl(var(--muted)); font-size: 14px; }
.bar button.ghost, .bar button.icon-button { margin: 0; background: transparent; color: hsl(var(--ink)); border-color: hsl(var(--border)); display: inline-flex; align-items: center; gap: 8px; }
.bar button.ghost:hover, .bar button.icon-button:hover { background: hsl(var(--brand-tint)); }
.bar .icon-button { min-width: 44px; justify-content: center; padding: 8px; }
.bar a.button { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .bar #preview { display: none; }
  .bar { gap: 8px; padding: 0 8px 0 12px; }
  .brand { margin-right: auto; }
  .brand strong { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }   /* visually hidden, still the link's name (#493) */
  .js .links { display: none; position: absolute; left: -1px; right: -1px; top: 60px; flex-direction: column; align-items: stretch; margin: 0; padding: 8px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: 0 8px 24px hsl(var(--ink) / .12); }
  .js .links.open { display: flex; }
  .js .links a { width: 100%; }
}
@media (min-width: 768px) { #menu-toggle { display: none; } }
.site-footer { max-width: 1080px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted)); font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer #footer { flex: 1 1 100%; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: hsl(var(--brand-text)); }
main { max-width: 1080px; margin: 48px auto; padding: 0 24px; }
h1 { font-size: 32px; max-width: 760px; line-height: 1.25; font-weight: 600; }
h2 { font-size: 24px; margin-top: 40px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
.eyebrow { letter-spacing: .08em; font-size: 12px; color: hsl(var(--muted)); }
aside { border-left: 4px solid hsl(var(--warning)); background: hsl(var(--panel)); padding: 16px; margin: 32px 0; }
article { min-width: 0; padding: 24px; background: hsl(var(--panel)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow-wrap: anywhere; }
label { display: block; margin: 16px 0 8px; }
select, textarea, button { font: inherit; }
select, textarea { padding: 8px; border: 1px solid hsl(var(--input-border)); border-radius: var(--radius); background: hsl(var(--surface)); color: hsl(var(--ink)); max-width: 100%; }
select { min-height: 44px; }
input[type="text"], input[type="email"], input[type="number"] { font: inherit; min-height: 44px; padding: 8px; border: 1px solid hsl(var(--input-border)); border-radius: var(--radius); background: hsl(var(--surface)); color: hsl(var(--ink)); max-width: 100%; }
#agreement input[type="text"], #agreement input[type="email"] { display: block; width: 100%; }
label.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 8px 0; cursor: pointer; }
label.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: hsl(var(--brand-fill)); }
a.doc-link { display: inline-flex; align-items: center; min-height: 44px; color: hsl(var(--brand-text)); }
textarea { width: 100%; min-height: 144px; font-family: monospace; }
button { background: hsl(var(--brand-fill)); color: white; border: 1px solid transparent; min-height: 44px; padding: 8px 16px; border-radius: var(--radius); cursor: pointer; margin: 8px 8px 8px 0; }
a.button { display: inline-flex; align-items: center; background: hsl(var(--brand-fill)); color: white; min-height: 44px; padding: 8px 16px; border-radius: var(--radius); text-decoration: none; }
a:focus-visible, a.button:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
[hidden] { display: none !important; }
button:hover, a.button:hover { background: hsl(var(--brand-fill-hover)); }
button:disabled { cursor: wait; opacity: .65; }
button:active:not(:disabled), a.button:active { box-shadow: inset 0 3px 0 hsl(0 0% 0% / .3); }    /* pressed differs from hover, also by shape, not colour alone */
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
#status { min-height: 24px; }
.job { padding: 16px; border-bottom: 1px solid hsl(var(--border)); overflow-wrap: anywhere; }
@media (max-width: 640px) { .topbar { margin: 8px 8px 0; } main { padding: 0 16px; margin: 32px auto; } article { padding: 16px; } }

.skip-link { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); padding: 8px 16px; background: hsl(var(--surface)); color: hsl(var(--brand-text)); border: 2px solid hsl(var(--brand)); border-radius: var(--radius); z-index: 10; }
.skip-link:focus { transform: none; }
.danger-zone { margin-top: 16px; padding: 12px; border: 1px solid hsl(var(--danger)); border-radius: var(--radius); }
.danger-zone h3 { margin-top: 0; }
.danger-zone button { background: hsl(var(--surface)); color: hsl(var(--danger)); border-color: hsl(var(--danger)); }
.danger-zone button:hover { background: hsl(var(--panel)); }

summary { cursor: pointer; color: hsl(var(--brand-text)); padding: 8px 0; }
summary:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
pre { padding: 16px; background: hsl(var(--panel)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }

.field-error { color: hsl(var(--danger)); font-size: 14px; }
#request-page:focus { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
#request-page-error:empty { display: none; }
[aria-invalid="true"] { border-color: hsl(var(--danger)); }
#language { display: inline-flex; align-items: center; gap: 8px; }
#language span { color: inherit; font-size: inherit; flex-basis: auto; order: 0; }
#language .globe { flex: 0 0 18px; }
#language-short { display: none; }
@media (max-width: 640px) { #language-long { display: none; } #language-short { display: inline; } }

.notice-strong { border-left: 4px solid hsl(var(--brand)); padding: 8px 12px; background: hsl(var(--panel)); font-weight: 600; }
#agreement select { display: block; width: 100%; }
#order-form-preview { margin: 8px 0 16px; }
#order-form-preview table { width: 100%; border-collapse: collapse; }
#order-form-preview th, #order-form-preview td { border: 1px solid hsl(var(--border)); padding: 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
#order-form-preview th { background: hsl(var(--panel)); }
#agreement-problems { color: hsl(var(--danger-text, var(--danger))); }
#agreement-problems ul { margin: 4px 0 12px; padding-left: 24px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: hsl(var(--danger)); }      /* after the field rules, which have the higher specificity */
#agreement [aria-invalid="true"] { border-width: 2px; }
/* Windows high contrast and other forced-colour modes replace every colour, so the red border of an invalid field is lost: a dashed border keeps the cue. */
@media (forced-colors: active) { input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-style: dashed; } }
/* A tick box has no border to colour, so an invalid one gets an outline (red; dashed where forced colours replace the red). */
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid hsl(var(--danger)); outline-offset: 2px; }
@media (forced-colors: active) { input[type="checkbox"][aria-invalid="true"] { outline-style: dashed; outline-width: 3px; } }

/* The acceptance form: groups with a legend each; two columns on a wide screen, one on a phone. */
#agreement fieldset { margin: 16px 0; padding: 12px 16px 16px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); }
#agreement legend { padding: 0 8px; font-weight: 600; }
#agreement .form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; }
#agreement .form-grid > p { margin: 0; }
#agreement .form-grid label { display: block; margin-bottom: 4px; }
#agreement .form-grid button { margin-right: 8px; }
@media (min-width: 48rem) {
  #agreement .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #agreement .form-grid > p.wide { grid-column: 1 / -1; }
}
#agreement .form-grid br { display: none; }      /* the label sits on its own box: no blank line between them */

/* A wide table in a legal text scrolls inside its own box on a phone; the page never scrolls sideways (seads-test, staging c99b485). */
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
.table-scroll table { border-collapse: collapse; }
.table-scroll th, .table-scroll td { border: 1px solid hsl(var(--border)); padding: 8px; text-align: left; vertical-align: top; }

/* The visitor's one action above the fold (#441). */
#hero-action { margin: 20px 0; }
.hero-button { font-size: 18px; padding: 12px 24px; }

/* A lab result longer than about fifteen rows scrolls in its own box (#493 8.3). */
.result-scroll { max-height: 24rem; max-width: 100%; overflow: auto; }
.result-scroll:focus-visible { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; }
.result-scroll table { border-collapse: collapse; }
.result-scroll th, .result-scroll td { border: 1px solid hsl(var(--border)); padding: 4px 8px; text-align: left; }
.result-scroll th { position: sticky; top: 0; background: hsl(var(--surface)); }

/* Easy to read (owner, platform standard 01): what people read at 16 px (the preview notice, a field's error), code and the footer at
   15 px; navigation and eyebrows are labels and keep their size. */
.bar #preview, .field-error { font-size: 16px; }
pre, .site-footer { font-size: 15px; }

/* The organization agreement as a guided flow (owner approval 14 Nov 2026, #534; platform standard 01; mock-up /design/agree).
   Scoped to #agreement: nothing else on the page changes. */
#agreement .fwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 16px; }
#agreement .fmap { position: sticky; top: 16px; padding: 16px; border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--surface)); }
#agreement .fmap ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#agreement .fmap li { display: flex; align-items: center; gap: 10px; min-height: 40px; color: hsl(var(--muted)); }
#agreement .fdot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid hsl(var(--border)); background: hsl(var(--surface)); }
#agreement .fmap li.done { color: hsl(var(--ink)); } #agreement .fmap li.done .fdot { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
#agreement .fmap li.now { color: hsl(var(--ink)); font-weight: 700; } #agreement .fmap li.now .fdot { border-color: hsl(var(--brand)); color: hsl(var(--brand-text)); }
#agreement .fleft { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid hsl(var(--border)); font-size: 15px; color: hsl(var(--muted)); }
#agreement .fbar { display: none; }
#agreement .flow { display: grid; gap: 14px; min-width: 0; }
#agreement .flow-card { border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 20px 24px; background: hsl(var(--surface)); }
#agreement .flow-card h3 { margin: 0 0 12px; font-size: 22px; }
#agreement .fnext { margin: 18px 0 0; padding-top: 12px; border-top: 1px dashed hsl(var(--border)); color: hsl(var(--muted)); }
#agreement .fnext:empty { display: none; }
#agreement .needs { padding: 12px 14px; border-radius: 10px; background: hsl(var(--brand-tint)); }
#agreement .step-problems:not(:empty) { margin-top: 14px; padding: 12px 14px; border-left: 4px solid hsl(var(--danger)); border-radius: 6px; background: hsl(var(--danger) / .06); }
#agreement .step-problems p { margin: 0 0 6px; font-weight: 600; }
#agreement .sofar { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 4px 16px; background: hsl(var(--panel)); }
#agreement .sofar summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
#agreement .review { margin: 0 0 8px; } #agreement .review > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid hsl(var(--border)); }
#agreement .review dt { color: hsl(var(--muted)); font-size: 15px; } #agreement .review dd { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#agreement .review dd > span { min-width: 0; overflow-wrap: anywhere; }
#agreement .linkish { flex: none; white-space: nowrap; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; color: hsl(var(--brand-text)); text-decoration: underline; cursor: pointer; }
#agreement .back { justify-self: start; text-decoration: none; font-weight: 600; }
#agreement .flow-next { min-height: 48px; width: 100%; font-weight: 600; }
#agreement .phone-only { display: none; }
#agreement .end { text-align: left; } #agreement .end h2 { margin-top: 8px; }
#agreement .confetti { position: relative; height: 0; } #agreement .confetti i { position: absolute; top: 0; width: 8px; height: 14px; border-radius: 2px; opacity: .85; }
#agreement .confetti i:nth-child(1) { left: 5%; background: hsl(0 80% 55%); transform: rotate(0deg) translateY(20px); }
#agreement .confetti i:nth-child(2) { left: 10%; background: hsl(47 80% 55%); transform: rotate(33deg) translateY(23px); }
#agreement .confetti i:nth-child(3) { left: 15%; background: hsl(94 80% 55%); transform: rotate(66deg) translateY(26px); }
#agreement .confetti i:nth-child(4) { left: 20%; background: hsl(141 80% 55%); transform: rotate(99deg) translateY(29px); }
#agreement .confetti i:nth-child(5) { left: 25%; background: hsl(188 80% 55%); transform: rotate(132deg) translateY(32px); }
#agreement .confetti i:nth-child(6) { left: 30%; background: hsl(235 80% 55%); transform: rotate(165deg) translateY(35px); }
#agreement .confetti i:nth-child(7) { left: 35%; background: hsl(282 80% 55%); transform: rotate(198deg) translateY(38px); }
#agreement .confetti i:nth-child(8) { left: 40%; background: hsl(329 80% 55%); transform: rotate(231deg) translateY(41px); }
#agreement .confetti i:nth-child(9) { left: 45%; background: hsl(16 80% 55%); transform: rotate(264deg) translateY(44px); }
#agreement .confetti i:nth-child(10) { left: 50%; background: hsl(63 80% 55%); transform: rotate(297deg) translateY(47px); }
#agreement .confetti i:nth-child(11) { left: 55%; background: hsl(110 80% 55%); transform: rotate(330deg) translateY(50px); }
#agreement .confetti i:nth-child(12) { left: 60%; background: hsl(157 80% 55%); transform: rotate(363deg) translateY(53px); }
#agreement .confetti i:nth-child(13) { left: 65%; background: hsl(204 80% 55%); transform: rotate(396deg) translateY(56px); }
#agreement .confetti i:nth-child(14) { left: 70%; background: hsl(251 80% 55%); transform: rotate(429deg) translateY(59px); }
#agreement .confetti i:nth-child(15) { left: 75%; background: hsl(298 80% 55%); transform: rotate(462deg) translateY(62px); }
#agreement .confetti i:nth-child(16) { left: 80%; background: hsl(345 80% 55%); transform: rotate(495deg) translateY(65px); }
#agreement .confetti i:nth-child(17) { left: 85%; background: hsl(32 80% 55%); transform: rotate(528deg) translateY(68px); }
#agreement .confetti i:nth-child(18) { left: 90%; background: hsl(79 80% 55%); transform: rotate(561deg) translateY(71px); }
@media (prefers-reduced-motion: no-preference) { #agreement .confetti i { animation: agreement-fall 2.4s ease-out both; } @keyframes agreement-fall { from { transform: translateY(-40px) rotate(0); opacity: 1; } } }
@media (max-width: 900px) {
  #agreement .fwrap { grid-template-columns: minmax(0, 1fr); } #agreement .fmap { display: none; }
  #agreement .fbar { display: grid; gap: 4px; font-size: 15px; } #agreement .fbar span { color: hsl(var(--muted)); }
  #agreement .phone-only { display: inline; } #agreement .wide-only { display: none; }
  #agreement .review > div { grid-template-columns: minmax(0, 1fr); }
}
#agreement .signed-as { margin: 0 0 12px; color: hsl(var(--muted)); font-size: 16px; }      /* one line, first step only (standard 01) */

/* Text sizes, one rule (owner, platform standard 01, #546): running text 16 px; code, the footer and labels 14 px. Last, so it decides. */
pre, .site-footer, .eyebrow { font-size: 14px; }

/* Signed in (standard 01, #601): the same flat 56 px bar as the learner pages, full width with a bottom border; the organisation at
   the left, the person (initials and "Awa T.") at the right; the public links and the early-access note are for visitors only. */
.signed-in .topbar { top: 0; margin: 0; }
.signed-in .bar { border-width: 0 0 1px; border-radius: 0; padding: 0 32px; }
.signed-in #bar-links, .signed-in #preview, .signed-in #menu-toggle { display: none; }
.org-in-bar { display: flex; align-items: center; gap: 8px; margin-right: auto; padding-left: 16px; border-left: 1px solid hsl(var(--border)); font-size: 14px; }
.org-in-bar label { margin: 0; }
.bar .who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: hsl(var(--ink)); text-decoration: none; min-height: 44px; }
.bar .avatar { width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--brand-tint)); color: hsl(var(--brand-text)); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
@media (max-width: 768px) { .signed-in .bar { padding: 0 16px; flex-wrap: wrap; } .bar .who .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
