/* agileintegrations.net — one stylesheet for the whole consulting site. Mobile-first, no build step, NO WEBFONT and no
   external request of any kind: this tree's image sets CSP_STYLE_HOSTS/CSP_FONT_SRC to "" (site.Dockerfile), so a third-party
   font would be blocked; the system stacks below ARE the design. TestThirdPartyOriginInventory greps the RAW text for the
   at-rule's name, so do not spell that word here (2026-09-13).
   THE EXPERTS voice (docs/SITE_REDESIGN_R24_2026_09_16.md): cool paper, one ink-blue accent, sans
   headings; every text/background pair is AA in both themes (mind/test_consulting_site.py computes them from these tokens);
   one spacing rhythm, type scale, flat cards, page frame and focus rule shared with embark.day.
   ⚠️ TESTS PARSE THE TOKEN BLOCKS BY REGEX OVER THE RAW FILE, COMMENTS INCLUDED: the first
   root-selector-plus-brace to the first closing brace is read as the light tokens. Never spell that
   selector followed by a brace in prose up here. */

/* ---------- tokens ---------- */

:root {
  color-scheme: light;
  /* COOL paper — the single clearest split from the hub's warm paper */
  --bg:        #f6f7f8;
  --bg-alt:    #eceef1;
  --surface:   #ffffff;
  --ink:       #15181c;
  --ink-soft:  #383f47;
  --muted:     #576069;
  --line:      #dde1e6;
  --line-soft: #e8ebef;
  /* component boundaries where the border is the only visual cue (WCAG 1.4.11):
     measured 3.64:1 on --bg and 3.90:1 on --surface. --line stays for hairline dividers. */
  --line-strong: #79828c;
  /* INK BLUE — evidence, not enthusiasm: 8.97:1 on --bg, 9.62:1 on --surface, white on it 9.62:1 */
  --accent:    #14486e;
  --accent-ink:#ffffff;
  --accent-bg: #e6eef5;
  --code-bg:   #f0f2f5;
  --code-ink:  #1f2429;
  /* pressed accent — measured 12.04:1 on --bg, 12.90:1 on --surface */
  --accent-strong: #0e3450;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* ONE spacing rhythm */
  --s1: 0.35rem; --s2: 0.6rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.25rem; --s6: 3.5rem;
  /* ONE type scale — no one-off sizes */
  --t-micro: 0.75rem; --t-small: 0.8125rem; --t-fine: 0.875rem; --t-body: 1.0625rem;
  --measure: 68ch;
  --wrap: 72rem;
  --radius: 6px;
  --elev: 0 1px 2px rgb(23 24 26 / 5%), 0 8px 28px rgb(23 24 26 / 7%);
}

/* THREE STATES (THEME-1): OS dark unless the visitor chose light, and the visitor's dark. Identical blocks. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme:dark;
  --bg:#0e1114; --bg-alt:#14181c; --surface:#161a1f; --ink:#e6eaee; --ink-soft:#ccd3da;
  --muted:#9aa4af; --line:#252b32; --line-soft:#1d2228; --line-strong:#6d7883; --accent:#7fbde8;
  --accent-ink:#08131c; --accent-bg:#132635; --code-bg:#12161a; --code-ink:#dde3e9; --accent-strong:#a8d4f2;
  --elev:0 1px 2px rgb(0 0 0 / 40%), 0 8px 28px rgb(0 0 0 / 45%);
} }
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#0e1114; --bg-alt:#14181c; --surface:#161a1f; --ink:#e6eaee; --ink-soft:#ccd3da;
  --muted:#9aa4af; --line:#252b32; --line-soft:#1d2228; --line-strong:#6d7883; --accent:#7fbde8;
  --accent-ink:#08131c; --accent-bg:#132635; --code-bg:#12161a; --code-ink:#dde3e9; --accent-strong:#a8d4f2;
  --elev:0 1px 2px rgb(0 0 0 / 40%), 0 8px 28px rgb(0 0 0 / 45%);
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; }
/* A focus scroll clears the corner launcher (60 px) and the Ask composer (155 px): 10rem is 160 px. */
@media (max-width: 46rem) { html { scroll-padding-bottom: 10rem; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

/* ⚠️ HEADINGS ARE SANS HERE, ON PURPOSE (2026-09-16, lane SITE-REDESIGN): a serif-led page in warm paper reads as a
   publication, a sans-led page in cool paper as a specification; --serif stays defined for the brand name in the header. */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 650; line-height: 1.18; letter-spacing: -0.021em; margin: 0 0 var(--s2); text-wrap: balance; }

h1 { font-size: clamp(1.95rem, 5.6vw, 3rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.4rem, 3.8vw, 1.85rem); margin-top: 0; }
h3 { font-size: 1.125rem; letter-spacing: -0.014em; }
h4 { font-size: var(--t-body); }

p, ul, ol, dl, table, pre, figure { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

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

strong { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.125rem; }

.measure { max-width: var(--measure); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Spam-trap field on the lead/quote forms (2026-09-11): deliberately NOT reachable by anyone, sighted or on a screen
   reader (aria-hidden, tabindex="-1"), so only a bot that fills every input in the DOM meets it. Off-screen, not
   display:none, which some crawlers skip. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header + nav ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.head-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  align-self: flex-start;
}
.brand img { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--accent); }
.sides { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; font-size: .9375rem; }
.sides .nav-link { padding-block: 0; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.1rem;
  font-size: .9375rem;
}

.nav-link {
  display: inline-block;
  padding: .25rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 650; }

/* the caret only means something where the menu is actually collapsed */
.caret { display: none; font-size: .75em; color: var(--muted); }

/* menu: on small screens it is simply a visible, wrapping list */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  margin: 0.15rem 0 .35rem;
  padding: 0 0 0 .1rem;
  font-size: .875rem;
}
.menu a {
  display: inline-block;
  padding: .1rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu a:hover,
.menu a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

@media (min-width: 52rem) {
  .head-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: .9rem;
  }
  .brand { align-self: auto; }
  .nav-list { gap: 1.5rem; align-items: center; }
  .caret { display: inline; }

  .has-menu { position: relative; }

  .menu {
    position: absolute;
    top: 100%;
    left: -0.85rem;
    z-index: 40;
    display: block;
    width: max-content;
    max-width: min(20rem, calc(100vw - 2rem));
    margin: 0;
    padding: .4rem 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
  }
  .menu a {
    display: block;
    padding: .35rem .85rem;
    border-bottom: 0;
    color: var(--ink-soft);
  }
  .menu a:hover,
  .menu a:focus-visible { background: var(--accent-bg); color: var(--accent); }

  /* keyboard-operable: focus anywhere inside opens it, so does hover */
  .has-menu:hover > .menu,
  .has-menu:focus-within > .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  /* Escape dismisses it, WCAG 1.4.13 (menu.js) */
  .has-menu.shut > .menu { opacity: 0; visibility: hidden; }
}

/* ---------- main + sections ---------- */

main { display: block; }

.section { padding-block: 2.5rem; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); }

.hero { padding-block: 2.75rem 2.25rem; }

/* a LABEL, not decoration — the way a figure is captioned in a paper */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s3);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--accent); flex: none; }

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.contract {
  font-family: var(--mono);
  font-size: clamp(.9375rem, 3.4vw, 1.125rem);
  line-height: 1.5;
  color: var(--ink);
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: .9375rem;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
}
.btn:hover { background: var(--accent-bg); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FLAT at rest — resting elevation is what makes a page look like a template */
.card {
  position: relative;
  display: block;
  height: 100%;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
}
a.card:hover,
a.card:focus-visible { border-color: var(--accent); box-shadow: var(--elev); }
a.card:hover::before,
a.card:focus-visible::before { background: var(--accent); }
.card h3 { margin-bottom: .35rem; }
a.card h3 { color: var(--accent); }
.card p { margin-bottom: .5rem; color: var(--ink-soft); font-size: .9688rem; }
.card p:last-child { margin-bottom: 0; }
.card .verbs {
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--muted);
  margin: 0;
}
.card .flag {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .05rem .55rem;
  margin-bottom: .5rem;
}

/* ---------- code ---------- */

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  overflow-x: auto;
  font-size: .8438rem;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
pre code { font-size: inherit; background: none; padding: 0; border: 0; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: .05em .3em;
}

pre .c { color: var(--muted); }

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

table {
  width: 100%;
  font-variant-numeric: tabular-nums;
  min-width: 28rem;
  border-collapse: collapse;
  margin: 0;
  font-size: .9375rem;
}
caption {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t-small);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line-soft);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--line-soft);
}
th { font-weight: 650; color: var(--ink); }
thead th {
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child td { border-bottom: 0; }
td code, th code { background: none; border: 0; padding: 0; }

/* ---------- lists ---------- */

.plain { list-style: none; padding: 0; }

.stack-top { margin-top: 1.25rem; }

.checks { list-style: none; padding: 0; max-width: var(--measure); }
.checks li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .5rem;
}
/* a TICK, never a bullet or a number */
.checks li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .7em;
  width: .5rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 2rem 2.5rem;
  font-size: .9375rem;
  color: var(--muted);
}
.site-foot h2 {
  font-size: var(--t-small);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 40rem) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .foot-cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: var(--accent); }
.legal { margin: 2rem 0 0; max-width: var(--measure); font-size: .875rem; }
.theme-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: var(--s3) 0 0; font-size: var(--t-fine); }
.theme-pick button { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .15rem .6rem; cursor: pointer; }
.theme-pick [aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
@media (forced-colors: active) { /* High Contrast drops the accent fill: the palette's "selected" pair marks the pressed theme button
  and the current link. forced-color-adjust: none keeps the label (left on, a Canvas backplate blanks it); the ring is CanvasText. */
  .theme-pick [aria-pressed=true], .nav-link[aria-current=page] { forced-color-adjust: none; color: HighlightText; background: Highlight;
    border-color: Highlight; outline-color: CanvasText; }
  .nav-link[aria-current=page] { padding-inline: .4rem; }
}

/* ── Form fields (from embark.day's buy.html, 2026-08-04): tokens only, so both themes come for free;
   focus is never removed, so a keyboard reader always sees where they are. */
.buy-form { max-width: 34rem; }
.field { margin: 0 0 1.6rem; }
.field label, .label-ish { display: block; font-weight: 600; margin-bottom: .4rem; }
.field input[type="email"], .field input[type="number"] {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.amount input:focus-visible + span, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
::placeholder { color: var(--muted); opacity: 1; }

.amounts { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.amount { position: relative; margin: 0; }
.amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount span {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.6rem; cursor: pointer;
  text-align: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
}
.amount span small { color: var(--muted); font-size: 0.8rem; }
/* checked: a border and a background, never colour alone (WCAG 1.4.1). */
.amount input:checked + span {
  border-color: var(--accent); border-width: 2px; padding: calc(.75rem - 1px) calc(.6rem - 1px);
  background: var(--accent-bg);
}

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: .65rem 1.1rem; border-radius: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

.status { margin: .9rem 0 0; font-size: .9375rem; min-height: 1.4em; }
.status.err { color: var(--ink); font-weight: 600; }
.status.err::before { content: "⚠ "; }

.keyrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .35rem 0 .9rem; }
.keyrow code {
  flex: 1 1 20rem; padding: .6rem .7rem; font-size: 1.0625rem; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
}
.steps { max-width: var(--measure); padding-left: 1.2rem; }
.steps li { margin-bottom: .5rem; }
/* The one nav item that is an action rather than a destination. Bordered, not colour-only. */
.nav-cta {
  padding: .3rem .7rem; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent-bg); text-decoration: none;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--accent); color: var(--accent-ink); }

/* ── Consulting site additions ──
   `.ticks` is a checked list used for "what you get" and, deliberately, for "where we are a bad fit" —
   the marker is a bullet, not a tick glyph, so an honest-limits list is not typographically dressed up
   as a benefits list. */
.ticks { max-width: var(--measure); padding-left: 1.2rem; }
.ticks li { margin-bottom: .55rem; }
.ticks li strong { color: var(--ink); }

/* ── THE EXPERTS' SIGNATURE COMPONENT: a FINDING (2026-09-16, lane SITE-REDESIGN, RESET L3.463).
   A claim, and under the rule where it LOSES. Both sides or it is not a finding: the copy's own
   discipline, now visible in the typography as well as in the sentence.
   The mono kicker names what was measured; `.against` is the half a brochure would have cut. */
.findings { list-style: none; padding: 0; margin: var(--s4) 0 0; max-width: var(--measure); }
.finding {
  padding: 0 0 var(--s3) var(--s3); margin: 0 0 var(--s3);
  border-left: 2px solid var(--line-strong); border-bottom: 1px solid var(--line-soft);
}
.finding:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.kicker {
  display: block; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s1);
}
.finding .against {
  display: block; margin-top: var(--s2); color: var(--muted); font-size: var(--t-fine);
}
.finding b, .finding .figure {
  font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink);
}

/* Buttons and the CTA pill: the product site's shapes, so both read as one company. */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: .65rem 1.1rem; border-radius: 6px; margin: .25rem .4rem .25rem 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.keybox { max-width: 44rem; padding: 1.25rem; background: var(--bg-alt); border: 1px solid var(--line);
          border-radius: 8px; }
.note { font-size: .875rem; color: var(--muted); max-width: var(--measure); margin: .6rem 0 0; }
.steps { max-width: var(--measure); padding-left: 1.2rem; }
.steps li { margin-bottom: .5rem; }

/* ── The lead forms (2026-09-10; selects HARDEN-r66-CONSULT N1, capped UX-HARDEN-1): one look for every
   control, never wider than its column, so the AA check covers them and no select outgrows 320 px. */
.field input[type="text"], .field textarea, .field select {
  width: 100%; max-width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: .6; }
.optional { color: var(--muted); font-weight: 400; font-size: .875rem; }

/* ---------- print (HARDEN-r71 N1; r73: no heading ends a sheet, equations keep their columns; r75: the footer never prints alone) ---------- */
@media print {
  :root:root { color-scheme: light; }
  body {
    --bg:#fff; --bg-alt:#fff; --surface:#fff; --ink:#15181c; --ink-soft:#383f47; --muted:#576069;
    --line:#dde1e6; --line-soft:#e8ebef; --line-strong:#79828c; --accent:#14486e; --accent-ink:#fff;
    --accent-bg:#e6eef5; --code-bg:#f0f2f5; --code-ink:#1f2429; --accent-strong:#0e3450; --elev:none;
  }
  .site-nav, .sides .nav-link, .theme-pick, .skip, .askw-root, .site-foot p:nth-child(-n+2) { display: none !important; }
  .table-wrap, pre { overflow: visible; }
  table { min-width: 0; font-size: .8125rem; }
  th, td { padding: .4rem .5rem; overflow-wrap: anywhere; }
  thead th { white-space: normal; }
  pre { white-space: pre-wrap; }
  pre { font-size: .6875rem; }
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  tr, pre, figure, .finding { break-inside: avoid; }
  .site-foot { padding-block: 0; break-before: avoid; }
  .legal { break-inside: avoid; }
  main { display: contents; }
  /* r86 (CUTFIX-r86c): the Events page's last finding, kept whole above, prints with the footer. Chromium honours the
     footer's break-before only by moving the block right before it at its own level (r79: `main` flows), so the last
     week and its last list flow too; their children carry the boxes' inset, border and spacing (other sheets unchanged) */
  section[id^="week-"]:last-child, section[id^="week-"]:last-child > .findings:last-child { display: contents; }
  section[id^="week-"]:last-child > *, section[id^="week-"]:last-child > .findings:last-child > li { margin-inline: 1.125rem; }
  section[id^="week-"]:last-child > h2:first-child { margin-inline: 0; padding: 2.5rem 1.125rem 0; border-top: 1px solid var(--line-soft); }
  section[id^="week-"]:last-child > .findings:last-child > li { max-width: var(--measure); }
  section[id^="week-"]:last-child > .findings:last-child > li:first-child { margin-top: var(--s4); }
  section[id^="week-"]:last-child > .findings:last-child > li:last-child { margin-bottom: 2.5rem; }
}
