/* The Agent Incident Register. Builds on /styles.css (tokens, nav, badge, btn, textlink, list, ink). */

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.air {
  --graphite: #6e665d;                                         /* the site's graphite, a shade darker: 4.6:1 on paper (WCAG AA) */
  --pen: #cf3a2b;                                              /* the editor's red pen, used once */
  --partial: color-mix(in srgb, var(--ink) 30%, var(--paper));
  font-variant-numeric: tabular-nums;
}
.air section, .air [id] { scroll-margin-top: 80px; }
button.textlink { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }

/* icons and one-colour flags */
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flag { width: 18px; height: 12px; flex: none; fill: currentColor; }
.iconlink { display: inline-flex; align-items: center; gap: 7px; }
.iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.iconbtn span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); transition: text-decoration-color 160ms ease; }
.iconbtn .ic--done, .iconbtn.is-done .ic--idle { display: none; }
.iconbtn.is-done .ic--done { display: block; }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover span { text-decoration-color: var(--ink); } }
.nav__cta { white-space: nowrap; }
/* 24px tap targets without moving anything */
.air .nav__lang { padding: 6px 5px; margin: -6px -5px; }
.air .nav__cta { padding-block: 4px; margin-block: -4px; }
@media (max-width: 520px) {
  /* stacked: Contact above, the language below, so each grows away from the other */
  .air .nav__cta { padding: 6px 0 0; margin: -6px 0 0; }
  .air .nav__lang { padding: 1px 6px 10px; margin: -1px -6px -10px; }
}
.nav__less { display: none; }

/* ---------- hero: title on the left, the board on the right ---------- */
.air-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  width: var(--col);
  margin: 0 auto;
  padding: clamp(112px, 16vh, 168px) 0 clamp(40px, 6vh, 64px);
}
.air-hero__title {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.05em;
}
/* "The" steps back so the three words carry the title */
.air-hero__the {
  display: block;
  margin: 0 0 0.16em 0.03em;
  font-size: 0.3em;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
/* "Incident", underlined once in red pen, tucked just behind the letters so the line spacing stays even */
.pen { position: relative; display: inline-block; isolation: isolate; }
.zig {
  position: absolute;
  z-index: -1;
  left: -0.02em;
  bottom: -0.01em;
  width: calc(100% + 0.04em);
  height: 0.24em;
  overflow: visible;
  pointer-events: none;
}
.zig path { fill: none; stroke: var(--pen); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .zig path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pen-draw 820ms cubic-bezier(0.55, 0, 0.3, 1) 420ms forwards; }
}
@keyframes pen-draw { to { stroke-dashoffset: 0; } }
.air-hero__lede {
  margin: 32px 0 0;
  max-width: 34ch;
  font-size: 20px;
  line-height: 1.4;
  color: var(--graphite);
}
/* what the register is, in the words people search with, under the name */
.air-hero__sub {
  display: block;
  margin-top: 0.7em;
  max-width: 26ch;
  font-size: max(17px, 0.2em);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
.air-stats { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 36px 0 0; }
.air-asof { margin: 16px 0 0; font-size: 14px; color: var(--graphite); }
.air-asof .textlink { font-size: inherit; margin-left: 4px; }
.air-stats span { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--graphite); }
.air-stats strong { font-size: clamp(36px, 3.4vw, 50px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; color: var(--ink); }
.air-hero .hero__actions { margin-top: 36px; }

/* the safety board, drawn as one wide swipe of marker ink */
.board {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 480px;
  isolation: isolate;
  container-type: inline-size;
  padding: clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 48px) clamp(26px, 3vw, 38px);
  color: var(--paper);
}
.board > :not(.board__ink) { position: relative; z-index: 1; }
.board .board__ink {
  inset: 0;
  z-index: 0;
  border-radius: 0.6em 1.6em 0.9em 2.2em / 1.4em 0.7em 1.8em 0.9em;
  transform: rotate(-1.1deg);
  filter: url(#marker);
}
.board__label {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}
/* the count fills the slab but never leaves it: wide counts set smaller (about 0.6em per digit) */
.board__num {
  margin: 8px 0 18px -0.06em;
  font-size: min(clamp(148px, 17vw, 264px), calc(100cqi / (var(--digits, 2) * 0.6)));
  line-height: 0.82;
  font-weight: 500;
  letter-spacing: -0.07em;
}
.board__last {
  display: block;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--paper) 30%, transparent);
  transition: text-decoration-color 160ms ease;
}
.board__last span { display: block; margin-bottom: 2px; color: color-mix(in srgb, var(--paper) 62%, transparent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .board__last:hover { text-decoration-color: var(--paper); } }
.board--clean .board__last { text-decoration: none; }

/* ---------- seismograph: one stroke per incident, height = severity ---------- */
.seis { width: var(--col); margin: 0 auto; padding: 0 0 clamp(48px, 8vh, 80px); }
.seis__readout {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 48px;
  font-size: 15px;
  line-height: 1.35;
}
.seis__hint { color: var(--graphite); }
.seis__readout a { min-width: 0; }
.seis__id { flex: none; color: var(--graphite); }
.seis__t { font-weight: 500; }
.seis__plot { position: relative; height: clamp(96px, 12vw, 156px); padding-bottom: 24px; cursor: crosshair; touch-action: pan-y; }
.seis__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seis__base { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.seis__l {
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 200ms ease, stroke-width 200ms ease;
}
.seis__l--proof_of_concept { stroke: var(--graphite); }
.seis__l--lab_test { stroke: var(--graphite); stroke-dasharray: 2 3; }
.seis.is-active .seis__l { opacity: 0.28; }
.seis.is-active .seis__l.is-on { opacity: 1; stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .seis.will-draw .seis__l { transform: scaleY(0); }
  .seis.is-drawing .seis__l {
    transform: scaleY(1);
    transition: transform 520ms var(--ease-out) calc(var(--k) * 11ms), opacity 200ms ease, stroke-width 200ms ease;
  }
}
.seis__years { position: absolute; inset: auto 0 0 0; height: 20px; }
.seis__year {
  position: absolute;
  bottom: 0;
  padding-left: 6px;
  border-left: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1;
  color: var(--graphite);
  white-space: nowrap;
}
.seis__year b { margin-left: 6px; font-weight: 500; color: var(--ink); }
.seis__key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 13px; color: var(--graphite); }
.seis__key span { display: inline-flex; align-items: center; gap: 8px; }
.seis__key .seis__pace { display: inline; margin-left: auto; color: var(--ink); }
.seis__pace strong { font-weight: 500; }
.k { display: inline-block; width: 2px; height: 12px; border-radius: 1px; background: var(--ink); }
.k--proof_of_concept { background: var(--graphite); }
.k--lab_test { background: repeating-linear-gradient(var(--graphite) 0 2px, transparent 2px 4px); }

/* ---------- sections ---------- */
.air-sec {
  width: var(--col);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 112px) 0;
  border-top: 1px solid var(--rule);
}
.air-sec--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
}
.air-sec__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.air-h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.air-finding {
  margin: 28px 0 0;
  max-width: 19ch;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.air-note { margin: 16px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.air-sec--split .air-sec__head .air-note { margin-top: 20px; }
/* the heading and its finding stay in view while the long column scrolls past */
.air-sec--split > .air-sec__head { position: sticky; top: 104px; align-self: start; }
p .textlink, .air-note .textlink { font-size: inherit; }

/* ---------- guardrail bars ---------- */
.grs { list-style: none; margin: 0; padding: 0; }
.grs li { border-top: 1px solid var(--rule); }
.grs li:last-child { border-bottom: 1px solid var(--rule); }
.gr {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) minmax(0, 1.1fr) 3.2em;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gr__code { font-size: 14px; color: var(--graphite); }
.gr__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: transform 200ms var(--ease-out); }
.gr__q { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--graphite); }
.gr__bar { position: relative; height: 10px; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.gr__fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.gr__fill--partial { background: var(--partial); }
.grs__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 14px; font-size: 13px; color: var(--graphite); }
.grs__key span { display: inline-flex; align-items: center; gap: 8px; }
.grs__key-end { margin-left: auto; }
.sw { display: inline-block; width: 18px; height: 8px; border-radius: 2px; background: var(--ink); }
.sw--partial { background: var(--partial); }
.gr__pct { font-size: 17px; font-weight: 500; text-align: right; }
div.gr { cursor: default; }
@media (hover: hover) and (pointer: fine) { .gr:hover .gr__name { transform: translateX(4px); } }

/* ---------- register controls ---------- */
.reg__count { margin: 0; font-size: 15px; color: var(--graphite); }
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; }
.ctl input, .ctl select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease;
}
.ctl select { padding-right: 32px; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a7167' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.ctl input:focus, .ctl select:focus { outline: none; border-color: var(--ink); }
.ctl input::placeholder { color: #a59c90; }
.ctl__search { flex: 1 1 140px; }
/* sized to its label, not its longest option: the open list still shows full names */
.ctl__sel--g select { width: 10.5em; }
.ctl__sel--sort select { width: 9.5em; }
.ctl__search input { width: 100%; }
.ctl__sel--set { display: none; }
.ctl__seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.ctl__seg button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--graphite);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.ctl__seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .ctl__seg button[aria-pressed="false"]:hover { color: var(--ink); } }

.reg__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 28px 0 10px; font-size: 13px; color: var(--graphite); }
.reg__legend span { display: inline-flex; align-items: center; gap: 7px; }
.reg__legend .fp__m { height: 12px; }
.reg__legend-end { margin-left: auto; }
.reg__empty { padding: 32px 0; color: var(--graphite); }
.reg__regions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.reg__regions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  transition: border-color 160ms ease;
}
.reg__regions b { font-weight: 500; color: var(--graphite); }
.reg__regions a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.reg__regions a[aria-current] b { color: color-mix(in srgb, var(--paper) 62%, transparent); }
.reg__regions .ic--globe { stroke-width: 1.2; }
.reg__clean { max-width: 52ch; margin: 28px 0 0; font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; }
.reg__regions-label { margin-right: 4px; font-size: 14px; color: var(--graphite); }
@media (hover: hover) and (pointer: fine) { .reg__regions a:not([aria-current]):hover { border-color: var(--ink); } }
.rows[data-limit] > .row--more { display: none; }
.reg__more { display: flex; justify-content: center; margin-top: 28px; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
}
.more:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .more:hover { border-color: var(--ink); } }

/* ---------- register rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.row { border-top: 1px solid var(--rule); }
.row__link {
  display: grid;
  grid-template-columns: 6.4em 5.4em minmax(0, 1fr) auto auto 3em;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}
.row__id, .row__date { font-size: 14px; color: var(--graphite); white-space: nowrap; }
.row__title { display: block; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; transition: transform 200ms var(--ease-out); }
.row__sub { display: block; margin-top: 3px; font-size: 14px; color: var(--graphite); }
.row__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  vertical-align: 1px;
}
.row__conf { font-size: 15px; font-weight: 500; text-align: right; }
.rg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  vertical-align: 1px;
  color: var(--ink);
}
.rg .flag { width: 14px; height: 10px; }
.row__why { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--graphite); }
@media (hover: hover) and (pointer: fine) {
  .row__link:hover .row__title { transform: translateX(4px); }
}

/* guardrail fingerprint: eight marks, G1 to G8 */
.fp { display: inline-flex; gap: 3px; }
.fp__m { display: inline-block; width: 7px; height: 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ink); }
.fp__m--failed { background: var(--ink); }
.fp__m--partial { background: linear-gradient(to top, var(--ink) 50%, transparent 50%); }
.fp__m--held { box-shadow: inset 0 0 0 1px var(--ink); }
.fp__m--na { box-shadow: inset 0 0 0 1px var(--rule); }
.fp--lg { gap: 4px; }
.fp--lg .fp__m { width: 10px; height: 24px; }

/* severity: five rising bars */
.sev { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.sev i { width: 4px; border-radius: 1px; background: var(--rule); }
.sev i:nth-child(1) { height: 6px; }
.sev i:nth-child(2) { height: 9px; }
.sev i:nth-child(3) { height: 12px; }
.sev i:nth-child(4) { height: 15px; }
.sev i:nth-child(5) { height: 18px; }
.sev i.on { background: var(--ink); }

/* ---------- signals ---------- */
.sig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); list-style: none; margin: 40px 0 0; padding: 0; }
.sig__item { display: grid; grid-template-columns: minmax(3.6em, auto) minmax(0, 1fr); column-gap: 20px; align-content: start; padding: 24px 0 28px; border-top: 1px solid var(--rule); }
.sig__stat { grid-row: span 3; font-size: clamp(36px, 3.6vw, 48px); line-height: 0.95; font-weight: 500; letter-spacing: -0.045em; }
.sig__claim { font-size: 17px; line-height: 1.4; }
.sig__pop { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--graphite); }
.sig__src { grid-column: 2; margin-top: 6px; font-size: 14px; color: var(--graphite); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule); }
@media (hover: hover) and (pointer: fine) { .sig__src:hover { text-decoration-color: var(--ink); color: var(--ink); } }

/* ---------- method ---------- */
.prose { max-width: 64ch; }
.prose h3 { margin: 48px 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; line-height: 1.6; }
.defs { margin: 16px 0 20px; }
.defs div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.defs div:last-child { border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 500; }
.defs dt span { display: inline-block; width: 2.4em; color: var(--graphite); font-weight: 400; }
.defs dd { margin: 0; color: var(--graphite); }
.weights { list-style: none; margin: 16px 0 20px; padding: 0; }
.weights li { display: grid; grid-template-columns: 8em 3.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.weights li:last-child { border-bottom: 1px solid var(--rule); }
.weights li span:first-child { font-weight: 500; }
.weights li span:last-child { color: var(--graphite); }
.weights--sev li { grid-template-columns: 10em 0 minmax(0, 1fr); }
.log-wrap { margin: 20px 0 8px; }
.log__last { font-weight: 500; }
.log { width: 100%; margin: 12px 0 0; border-collapse: collapse; font-size: 14px; }
.log th, .log td { padding: 8px 0 8px 12px; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: bottom; }
.log th { font-size: 13px; font-weight: 400; line-height: 1.25; color: var(--graphite); }
.log th:first-child, .log td:first-child { padding-left: 0; text-align: left; color: var(--graphite); }

/* ---------- use, cite, forms ---------- */
.use { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.use h3, .form h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.cite { margin: 0 0 10px; padding: 16px 0; border-block: 1px solid var(--rule); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.dl { margin: 0; }
.dl .list__meta { white-space: normal; }
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--graphite); }
.form label em { font-style: normal; color: var(--graphite); }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color 160ms ease;
}
.form input { height: 48px; }
.form textarea { resize: vertical; min-height: 88px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form input::placeholder { color: #a59c90; }
.form__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form button.btn { border: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.form button.btn[disabled] { opacity: 0.5; pointer-events: none; }
.form__msg { margin: 0; font-size: 15px; }

/* ---------- the offer: subscribe, and the protocol chip ---------- */
.air-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.offer__copy .air-finding { max-width: 24ch; }
.offer__copy .air-note { margin-top: 20px; }
.lead { display: grid; gap: 28px; align-content: start; margin-top: 32px; max-width: 520px; }
.lead__form, .lead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lead__field { flex: 1 1 240px; }
.lead__field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color 160ms ease;
}
.lead__field input:focus { outline: none; border-color: var(--ink); }
.lead__field input::placeholder { color: #a59c90; }
.lead .btn { height: 48px; border: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.lead .btn[disabled] { opacity: 0.5; pointer-events: none; }
.lead__form .form__msg, .lead__site .form__msg { flex-basis: 100%; }
.lead__done { display: grid; gap: 32px; }
.lead__ok { margin: 0; font-size: 17px; line-height: 1.5; }
.lead__site { display: grid; gap: 12px; padding: 24px 24px 22px; border: 1px solid var(--rule); border-radius: 16px; }
.lead__site h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.lead__site .air-note { margin: 0 0 6px; }
.lead__site .air-note strong { font-weight: 500; color: var(--ink); }
.offer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.badge--line { padding: 5px 13px; font-size: 14px; color: var(--ink); }

/* "Optional", set in marker ink: it swipes on when the panel appears, then the word pops up */
.lead__tag { margin: 0 0 2px; }
.tagink { position: relative; display: inline-block; padding: 0.12em 0.5em 0.16em; font-size: 17px; font-weight: 400; letter-spacing: 0.01em; color: var(--paper); }
.tagink .ink { inset: 0; --rot: -1.2deg; }
.tagink__t { position: relative; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .tagink .ink { animation: ink-swipe 560ms var(--ease-out) 120ms both; }
  .tagink__t { animation: tag-pop 420ms cubic-bezier(0.34, 1.4, 0.64, 1) 420ms both; }
}
@keyframes ink-swipe { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -4% -30% 0); } }
@keyframes tag-pop { from { opacity: 0; transform: translateY(0.45em) scale(0.92); } to { opacity: 1; transform: none; } }

/* the report button: a slow light turns inside the ink, warm like the paper with a trace of the red
   pen, and a little of it spills outside; on hover it wakes up */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.magic { position: relative; display: inline-flex; flex: none; isolation: isolate; border-radius: 6px; }
.magic::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 9px;
  background: conic-gradient(from var(--spin), transparent 0 52%, rgba(207, 58, 43, 0.55) 66%, rgba(237, 232, 223, 0.7) 76%, transparent 90%);
  filter: blur(9px);
  opacity: 0.35;
  pointer-events: none;
  animation: magic-spin 5s linear infinite;
  transition: opacity 420ms ease, filter 420ms ease;
}
.magic .btn { position: relative; overflow: hidden; isolation: isolate; }
.magic .btn::before {
  content: "";
  position: absolute;
  inset: -120% -40%;
  z-index: -1;
  background: conic-gradient(from var(--spin), transparent 0 50%, rgba(207, 58, 43, 0.5) 64%, rgba(237, 232, 223, 0.38) 75%, transparent 88%);
  filter: blur(8px);
  opacity: 0.5;
  animation: magic-spin 5s linear infinite;
  transition: opacity 420ms ease;
}
.magic .btn::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 5px; background: var(--ink); opacity: 0.55; }
.magic:hover::before, .magic:focus-within::before { opacity: 0.7; filter: blur(12px); }
.magic:hover .btn::before, .magic:focus-within .btn::before { opacity: 1; }
.magic .btn:hover { opacity: 1; }
@keyframes magic-spin { to { --spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .magic::before, .magic .btn::before { animation: none; } }
.lead__ok:focus { outline: none; }
.lead__ok--check { display: flex; align-items: center; gap: 6px; }
.lead__ok .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.lead__ok strong { font-weight: 500; }
.lead__hint { margin: -2px 0 0; font-size: 13px; color: var(--graphite); }

/* the EE Agent Safety Protocol as a chip: precise where the board is hand-drawn */
.offer__chip { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.chip { display: block; width: 100%; height: auto; overflow: visible; }
.chip__body { fill: #4a433c; }
.chip text { font-family: var(--font); font-weight: 500; text-anchor: middle; dominant-baseline: central; fill: var(--paper); }
.chip__cell rect:first-child { stroke-width: 1; transition: stroke 200ms ease, fill 200ms ease; }
.chip__g rect:first-child { fill: #5a524a; stroke: rgba(237, 232, 223, 0.18); }
.chip__g text { font-size: 16px; }
.chip__e rect:first-child { fill: #524b44; stroke: rgba(237, 232, 223, 0.12); }
.chip__e text { font-size: 12px; fill-opacity: 0.66; }
.chip__s rect:first-child { fill: #4f4841; stroke: rgba(237, 232, 223, 0.18); }
.chip__fence { fill: none; stroke: rgba(237, 232, 223, 0.32); stroke-dasharray: 3 4; }
.chip__s text { font-size: 40px; }
.chip .chip__mark { font-size: 13px; font-weight: 600; text-anchor: start; letter-spacing: 0.06em; fill-opacity: 0.85; }
/* always on: a green status light with a slow beam */
.chip__led { fill: #6ee59a; filter: drop-shadow(0 0 3px rgba(110, 229, 154, 0.9)); }
.chip__beam { fill: #6ee59a; transform-box: fill-box; transform-origin: center; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chip__beam { animation: beam 2.4s ease-out infinite; }
}
@keyframes beam { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3.4); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .chip__cell:hover rect:first-child { stroke: rgba(237, 232, 223, 0.6); }
}
.offer__chip figcaption { max-width: 44ch; margin: 28px auto 0; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.offer__chip figcaption strong { font-weight: 500; color: var(--ink); }
.offer__chip figcaption .textlink { font-size: inherit; }

.air-close { width: var(--col); margin: 0 auto; padding: clamp(56px, 9vh, 96px) 0 clamp(64px, 10vh, 112px); border-top: 1px solid var(--rule); }
.air-close p { margin: 0; max-width: 46ch; font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; }
.air-foot { flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--rule); }
.air-foot a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.air-foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.air-foot__links a { white-space: nowrap; }

/* ---------- region pages: the local rules, with their sources ---------- */
.law__src { margin: 0; padding-left: 1.3em; font-size: 15px; line-height: 1.5; }
.law__src li { margin-bottom: 8px; padding-left: 4px; }
.law__src li::marker { color: var(--graphite); }

/* ---------- statistics ---------- */
.kf { list-style: none; margin: 0; padding: 0; counter-reset: kf; }
.kf__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--rule); }
.kf__item:last-child { border-bottom: 1px solid var(--rule); }
.kf__text { margin: 0; max-width: 56ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; letter-spacing: -0.015em; }
.kf__src { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; letter-spacing: 0; color: var(--graphite); overflow-wrap: anywhere; }
.kf .iconbtn { margin-top: 4px; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(9em, 1.1fr) minmax(0, 1.6fr) 3em 3.5em; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.bars li:last-child { border-bottom: 1px solid var(--rule); }
.bars__label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.bars__label .flag { width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.bars__hint { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--graphite); }
.bars__bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--rule) 55%, transparent); overflow: hidden; }
.bars__bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.bars__n { text-align: right; font-variant-numeric: tabular-nums; }
.bars__pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--graphite); }
@media (max-width: 720px) {
  .kf__item { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: minmax(0, 1fr) 2.5em 3.2em; row-gap: 8px; }
  .bars__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- incident page ---------- */
.inc { width: var(--col); margin: 0 auto; padding: clamp(104px, 14vh, 136px) 0 clamp(40px, 6vh, 64px); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--graphite); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.inc__title { margin: 20px 0 0; max-width: 22ch; font-size: clamp(36px, 4.8vw, 68px); line-height: 0.98; font-weight: 500; letter-spacing: -0.042em; }
.inc__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.inc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.inc__summary { margin: 0; max-width: 40ch; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -0.012em; }
.inc__details { margin: 20px 0 0; max-width: 62ch; line-height: 1.6; color: var(--graphite); }
.inc__dispute { margin: 20px 0 0; max-width: 62ch; padding: 14px 0; border-block: 1px solid var(--rule); line-height: 1.5; }
.inc__lesson { margin: 44px 0 0; padding-left: 22px; border-left: 2px solid var(--ink); }
.inc__lesson p { margin: 8px 0 0; max-width: 34ch; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; }
.inc__h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.inc__lesson .inc__h2 { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--graphite); }
.inc__h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.inc__sec { margin-top: 64px; }
.inc__sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.inc__sec-meta { font-size: 14px; color: var(--graphite); }

.ig { list-style: none; margin: 0; padding: 0; }
.ig__row {
  display: grid;
  grid-template-columns: 10px 2.2em minmax(0, 11em) 6.5em minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.ig__row:last-child { border-bottom: 1px solid var(--rule); }
.ig__row .fp__m { width: 10px; height: 16px; align-self: start; margin-top: 2px; }
.ig__code { color: var(--graphite); }
.ig__name { font-weight: 500; }
.ig__status { color: var(--graphite); }
.ig__row--failed .ig__status { color: var(--ink); font-weight: 500; }
.ig__note { color: var(--ink); line-height: 1.45; }
.ig__row--na .ig__note, .ig__q { color: var(--graphite); }

.srcs { list-style: none; margin: 0; padding: 0; }
.src { padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.src:last-child { border-bottom: 1px solid var(--rule); }
.src__title { font-size: 17px; font-weight: 500; line-height: 1.35; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .src__title:hover { text-decoration-color: var(--ink); } }
.src__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--graphite); }
.src__quote { margin: 14px 0 0; padding-left: 16px; border-left: 1px solid var(--rule); max-width: 60ch; font-size: 15px; line-height: 1.55; color: var(--graphite); }
.src__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.src__tags .badge { font-size: 12px; padding: 2px 9px; }
.src__arch { margin-left: 6px; font-size: 13px; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.src__arch:hover { color: var(--ink); }

.hist { list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; }
.hist li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.hist li:last-child { border-bottom: 1px solid var(--rule); }
.hist__date, .hist__by { color: var(--graphite); }

.inc__aside { align-self: start; position: sticky; top: 88px; }
.sheet { margin: 0; }
.sheet div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.sheet div:last-child { border-bottom: 1px solid var(--rule); }
.sheet dt { color: var(--graphite); }
.sheet dd { margin: 0; }
.citebox { margin-top: 36px; }
.citebox .cite { font-size: 14px; }
.bib { margin-top: 14px; font-size: 14px; }
.bib summary { cursor: pointer; color: var(--graphite); }
.bib pre { margin: 10px 0; padding: 14px 0; border-block: 1px solid var(--rule); font: inherit; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.badge--rg { align-items: center; gap: 6px; color: var(--ink); transition: border-color 160ms ease; }
.badge .flag { width: 15px; height: 10px; }
@media (hover: hover) and (pointer: fine) { .badge--rg:hover { border-color: var(--ink); } }
.sheet__rg { display: block; font-size: 14px; line-height: 1.45; color: var(--graphite); }
.sheet__rg + .sheet__rg { margin-top: 10px; }
.sheet__rg a { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; font-size: 15px; color: var(--ink); }
.asidecta { display: block; margin-top: 36px; padding: 18px 0; border-block: 1px solid var(--rule); font-size: 15px; line-height: 1.4; color: var(--graphite); transition: color 160ms ease; }
.asidecta span { display: block; margin-bottom: 2px; font-weight: 500; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .asidecta:hover { color: var(--ink); } }
.pn { display: grid; gap: 16px; margin-top: 36px; }
.pn a { font-size: 15px; line-height: 1.35; }
.pn a span { display: block; margin-bottom: 2px; font-size: 13px; color: var(--graphite); }
.pn a:hover { color: var(--graphite); }

/* ---------- region pages ---------- */
.air-hero--region { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.air-hero--region .crumbs { margin-bottom: 32px; }
.air-hero__title--region { max-width: 12ch; font-size: clamp(44px, 5.6vw, 84px); line-height: 0.96; letter-spacing: -0.045em; }
.air-hero__flag { display: block; margin-bottom: 0.3em; }
.air-hero__flag .flag { width: 0.6em; height: 0.4em; }
.air-hero--region .air-hero__lede { max-width: 40ch; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .row__link { grid-template-columns: 6.2em minmax(0, 1fr) auto auto 3em; }
  .row__date { display: none; }
}
@media (max-width: 900px) {
  .air-hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(64px + 7vh); gap: 48px; }
  .air-hero__title { font-size: clamp(54px, 15vw, 96px); }
  .air-hero__lede { font-size: 18px; margin-top: 24px; }
  .board { max-width: 520px; }
  .air-sec--split { grid-template-columns: minmax(0, 1fr); }
  .air-sec--split > .air-sec__head { position: static; }
  .board { justify-self: start; }
  .air-finding { max-width: 24ch; }
  .sig { grid-template-columns: minmax(0, 1fr); }
  .inc__grid { grid-template-columns: minmax(0, 1fr); }
  .inc__aside { position: static; }
  .reg__legend-end { display: none; }
  .air-hero--region { grid-template-columns: minmax(0, 1fr); }
  .air-offer { grid-template-columns: minmax(0, 1fr); }
  .offer__chip { max-width: 380px; }
  .grs__key-end { display: none; }
}
@media (max-width: 640px) {
  .nav__more { display: none; }
  .nav__less { display: inline; }
  .row__link {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "id date . conf" "main main main main" "fp sev . .";
    gap: 6px 14px;
    padding: 16px 0 18px;
  }
  .row__id { grid-area: id; }
  .row__date { display: block; grid-area: date; }
  .row__main { grid-area: main; }
  .row__link .fp { grid-area: fp; margin-top: 6px; }
  .row__link .sev { grid-area: sev; margin-top: 6px; }
  .row__conf { grid-area: conf; font-size: 14px; }
  .gr { grid-template-columns: 2em minmax(0, 1fr) 3em; row-gap: 10px; }
  .gr__bar { grid-column: 2 / 4; grid-row: 2; }
  .gr__pct { grid-column: 3; grid-row: 1; }
  /* phones: search on top, then four selects two by two; four setting pills don't fit */
  .ctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctl__search { grid-column: 1 / -1; }
  .ctl__seg { display: none; }
  .ctl__sel--set { display: block; }
  .ctl input, .ctl select { font-size: 16px; } /* 16px keeps iOS from zooming into the field */
  .ctl select { padding-left: 12px; padding-right: 28px; background-position: right 10px center; }
  .ctl__sel select, .ctl__sel--g select, .ctl__sel--sort select { width: 100%; }
  .sig__item { grid-template-columns: minmax(0, 1fr); }
  .sig__stat { grid-row: auto; margin-bottom: 10px; }
  .sig__src { grid-column: 1; }
  .defs div, .weights li, .weights--sev li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .weights li span:nth-child(2):empty { display: none; }
  .ig__row { grid-template-columns: 10px 2em minmax(0, 1fr) auto; }
  .ig__note { grid-column: 3 / 5; }
  .hist li, .sheet div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .seis__readout { flex-direction: column; gap: 2px; min-height: 64px; }
  .air-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; }
  .air-stats span { flex-direction: column; gap: 4px; }
  .log { font-size: 13px; }
}
@media (max-width: 480px) {
  .air .pill__opt { display: none; } /* Method gives way so the language switch and Subscribe stay */
  /* the pill takes the room between EE and Subscribe instead of sitting dead centre */
  .air .nav { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; }
  .air .pill { justify-self: center; }
}
@media (max-width: 400px) {
  .air .pill a { padding-inline: 7px; }
}
@media (max-width: 340px) {
  .air .nav { font-size: 12px; }
  .air .pill a { padding-inline: 5px; }
  .log th, .log td { padding-left: 8px; }
  .log th { font-size: 12px; }
}
@media (max-width: 520px) {
  .board__num { font-size: min(clamp(132px, 44vw, 200px), calc(100cqi / (var(--digits, 2) * 0.6))); }
  .seis__year { font-size: 12px; }
  .air-close p { font-size: 18px; }
}
