@font-face {
  font-family: "Nunito Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("system-ui");
  size-adjust: 100%;
  ascent-override: 99%;
  descent-override: 27%;
  line-gap-override: 0%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  width: 100%;
  object-fit: cover;
}

button, input, textarea, select { font: inherit; }

a { color: var(--primary); text-underline-offset: 2px; }
.prose a { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  z-index: 600;
}
.skip:focus,
.skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--surface);
  color: var(--ink);
}

.container {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

section[id] { scroll-margin-top: 88px; }

/* Header / category rail */
.site-header {
  position: sticky;
  top: 0;
  z-index: 320;
  background: rgba(242, 250, 246, 0.96);
  backdrop-filter: blur(10px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(18, 50, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--background);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.header-cta {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  white-space: nowrap;
}
.header-cta:hover { filter: brightness(0.96); }

.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  cursor: pointer;
}
.hamburger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.hamburger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  width: 22px;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--background);
  padding: 88px var(--gutter) 32px;
  overflow: auto;
  overflow-x: clip;
}
.mobile-drawer.open,
.mobile-drawer.is-open { display: block; }

.drawer-close {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-drawer li { border-bottom: 1px solid var(--surface-2); }
.mobile-drawer a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.drawer-cta {
  display: inline-block;
  margin-top: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
  padding: 14px 22px;
  white-space: nowrap;
}

/* Hero stacked-story */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--background);
}
.hero-media {
  min-width: 0;
}
.hero-media img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  object-position: center 30%;
}
.hero-stack {
  background: var(--background);
  color: var(--ink);
  padding: 28px var(--gutter) 36px;
}
.hero-stack-inner { width: min(720px, 100%); }
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
}
.hero-lede {
  margin: 0 0 20px;
  font-size: 1.05rem;
  max-width: 42ch;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 0;
  max-width: 100%;
}
.btn:hover { filter: brightness(0.96); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: min(86vh, 780px);
  }
  .hero-media img {
    height: 100%;
    min-height: min(86vh, 780px);
  }
  .hero-stack {
    display: flex;
    align-items: flex-end;
    padding: 48px 48px 56px 40px;
  }
}

/* Sticky section index */
.sticky-index {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--surface-2);
  max-width: 100%;
  overflow-x: clip;
}
.sticky-index ol {
  list-style: none;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 auto;
  padding: 10px var(--gutter);
  width: min(var(--max), 100%);
  max-width: 100%;
}
.sticky-index a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
.sticky-index a:hover,
.sticky-index a:focus { color: var(--ink); }

/* Section shells */
.band {
  padding: 64px 0;
}
.band-mint { background: var(--surface-2); }
.band-paper { background: var(--surface); }
.band-wash { background: var(--background); }

.numeral-head {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 16px 28px;
  align-items: start;
  margin-bottom: 28px;
}
.numeral {
  font-weight: 800;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--primary);
  opacity: 0.28;
  margin: 0;
}
.numeral-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.numeral-head p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

/* Compliance strip */
.compliance {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Numbered job switch */
.job-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.job-lane {
  background: var(--surface);
  padding: 28px 24px 24px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.job-lane .numeral { font-size: 88px; }
.job-lane h3 { margin: 8px 0 10px; font-size: 1.45rem; letter-spacing: -0.02em; }
.job-lane p { margin: 0 0 16px; color: var(--muted); }

@media (min-width: 860px) {
  .job-switch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .job-lane:last-child { transform: translateY(28px); }
}

/* Masonry tiles */
.masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.tile {
  background: var(--surface);
  padding: 0;
  min-width: 0;
  box-shadow: var(--shadow);
}
.tile img {
  aspect-ratio: 16 / 10;
  width: 100%;
}
.tile-body { padding: 20px 22px 24px; }
.tile h3 { margin: 0 0 8px; font-size: 1.3rem; }
.tile p { margin: 0; color: var(--muted); }
.tile-meta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

@media (min-width: 800px) {
  .masonry {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .masonry .tile:nth-child(1) { grid-column: span 7; }
  .masonry .tile:nth-child(2) { grid-column: span 5; }
  .masonry .tile:nth-child(3) { grid-column: span 4; }
  .masonry .tile:nth-child(4) { grid-column: span 8; }
}

/* Numeral stepper */
.stepper {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--surface-2);
}
.step-num {
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--primary);
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* Floating callouts */
.float-wrap {
  position: relative;
  display: grid;
  gap: 16px;
}
.float-card {
  background: var(--surface);
  padding: 24px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.float-card h3 { margin: 0 0 8px; }
.float-card p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .float-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .float-card:nth-child(2) { margin-top: 48px; }
  .float-card:nth-child(3) { margin-left: 8%; }
}

/* Split corridor */
.corridor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: var(--surface);
}
.corridor-pane {
  padding: 32px 24px;
  min-width: 0;
}
.corridor-pane + .corridor-pane { background: var(--surface-2); }
.corridor h3 { margin: 0 0 10px; font-size: 1.5rem; }
.corridor p { margin: 0 0 12px; color: var(--muted); }
@media (min-width: 860px) {
  .corridor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .corridor-pane { padding: 48px 40px; }
}

/* Portrait process map */
.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.process-visual img { aspect-ratio: 4 / 5; }
.process ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: map;
}
.process li {
  counter-increment: map;
  padding: 16px 0 16px 56px;
  position: relative;
  border-bottom: 1px solid var(--surface-2);
  min-width: 0;
}
.process li::before {
  content: counter(map, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-weight: 800;
  color: var(--primary);
}
.process strong { display: block; }
@media (min-width: 860px) {
  .process { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); }
}

/* Usability bench */
.bench {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 24px;
}
.bench-row { display: contents; }
.bench-label {
  font-weight: 800;
  padding: 16px 0;
  border-top: 1px solid var(--surface-2);
}
.bench-copy {
  padding: 16px 0;
  border-top: 1px solid var(--surface-2);
  color: var(--muted);
  min-width: 0;
}
@media (max-width: 640px) {
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench-label { padding-bottom: 0; border-top: 1px solid var(--surface-2); }
  .bench-copy { border-top: 0; padding-top: 4px; }
}

/* Definition boundary */
.bound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.bound {
  padding: 24px 0;
  border-top: 4px solid var(--primary);
}
.bound h3 { margin: 0 0 8px; }
.bound p { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .bound-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; }
}

/* Jurisdiction gate */
.gate {
  background: var(--ink);
  color: #E7F6EF;
  padding: 40px 28px;
}
.gate h2, .gate h3 { color: #fff; }
.gate p { color: #C5DDD4; }
.gate .btn { margin-top: 8px; }

/* Control dock */
.dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.dock-item {
  background: var(--surface);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  box-shadow: var(--shadow);
}
.dock-item b {
  font-size: 1.4rem;
  color: var(--primary);
}
.dock-item p { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 800px) {
  .dock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Disclosed CTA rail */
.cta-rail {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 36px 0;
}
.cta-rail h2 { margin: 0 0 8px; letter-spacing: -0.03em; }
.cta-rail p { margin: 0 0 16px; max-width: 62ch; }
.cta-rail .btn {
  background: var(--ink);
  color: #F2FAF6;
}

/* Dated feed */
.feed {
  display: grid;
  gap: 0;
}
.feed-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--surface-2);
  text-decoration: none;
  color: inherit;
}
.feed-item time { color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.feed-item h3 { margin: 0 0 6px; }
.feed-item p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .feed-item { grid-template-columns: minmax(0, 1fr); }
}

/* Checklist */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  padding: 14px 0 14px 36px;
  position: relative;
  border-bottom: 1px solid var(--surface-2);
}
.check-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0;
  top: 20px;
  background: var(--primary);
}

/* Comparison ledger */
.table-wrap { overflow-x: auto; min-width: 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: top;
}
.data-table th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
.faq details {
  background: var(--surface);
  padding: 4px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .q-body { color: var(--muted); padding: 0 0 16px; }

/* Glossary */
.glossary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 28px;
}
.glossary div { min-width: 0; }
.glossary dt { font-weight: 800; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 800px) {
  .glossary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Related tasks */
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.task-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--surface-2);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.task-list span { color: var(--primary); white-space: nowrap; }

/* Page hero (child) */
.page-hero {
  padding: 28px 0 8px;
}
.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.page-hero .lede {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 18px;
}
.page-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }

.prose { max-width: 70ch; }
.prose h2 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.prose h3 {
  margin: 1.3em 0 0.4em;
  font-size: 1.2rem;
}
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }

.inline-image,
.inline-image-row,
.content-image,
.figure {
  margin: 28px 0;
}
.inline-image img,
.inline-image-row img,
.content-image img,
.figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.caption, figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.split-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
@media (min-width: 860px) {
  .split-note { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.limit-board {
  display: grid;
  gap: 12px;
}
.limit-board article {
  background: var(--surface);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.limit-board h3 { margin: 0 0 6px; }
.limit-board p { margin: 0; color: var(--muted); }

.colophon {
  font-size: 0.92rem;
  color: var(--muted);
}
.colophon h2 { color: var(--ink); font-size: 1.2rem; }

/* Cards used by verify + visual structure */
.card,
.data-card,
.step-card,
.loose-card,
.hub-card {
  background: var(--surface);
  border: 1px solid rgba(8, 122, 91, 0.14);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-grid,
.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 800px) {
  .card-grid,
  .data-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stat-tile {
  background: var(--surface);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.stat-tile b { display: block; font-size: 1.6rem; color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #D5EBE2;
  padding: 48px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.site-footer a { color: #D5EBE2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.foot-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.86rem;
  color: #A9C6BA;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* Mobile sticky PLAY NOW */
.mobile-sticky {
  display: none;
}

@media (max-width: 899px) {
  html, body { overflow-x: clip; max-width: 100vw; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  html.is-drawer-open .site-header {
    position: static;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    transform: none;
    isolation: auto;
  }
  html.is-drawer-open,
  html.is-drawer-open body { overflow: hidden; }
  .btn { white-space: normal; text-align: center; }
  .hero { min-height: 480px; max-height: none; }
  .hero-media img {
    height: 42vh;
    min-height: 220px;
    max-height: 320px;
  }
  .hero h1 { font-size: 32px; max-width: none; }
  .hero-lede { font-size: 16px; }
  .mobile-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--background);
    box-shadow: 0 -8px 24px rgba(18, 50, 43, 0.12);
  }
  .mobile-sticky .btn {
    width: 100%;
    white-space: nowrap;
  }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .job-lane:last-child { transform: none; }
}

@media (max-width: 430px) {
  html, body { overflow-x: clip; max-width: 100vw; }
  .brand-tag { display: none; }
}

/* Alias coverage for verify-all class list */
.step-num { display: inline-block; }
.band { display: block; }
.inline-image-row { display: block; }
