/* ── MakeWPCompliant components ───────────────────────────────────────────
   Loaded last. Every background behind text here is a flat token colour —
   see the rule at the top of tokens.css and the reason it exists.
   ───────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════
   Masthead
   ═══════════════════════════════════════════════════════════════════════ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-border);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; border-radius: var(--radius-sm); }
/* The wordmark is three leaf spans rather than a text node with one coloured
   child in the middle of it.

   The two-tone version — `Make<span>WP</span>Compliant` — gave `.brand-word`
   both its own text and a child painting a different colour inside its box.
   In a sticky header that axe intermittently resolved as "background colour
   could not be determined because it partially overlaps other elements": an
   undecidable result on a pair that is actually 14:1. Every part now owns its
   own colour and its own opaque background, so there is nothing to resolve. */
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-part { color: var(--on-ink); background: var(--ink); }
.brand-part.brand-wp { color: var(--gold); }   /* 7.4:1 on --ink */
.brand:hover .brand-part { color: #fff; }
.brand:hover .brand-part.brand-wp { color: var(--gold); }

/* ── Primary navigation ─────────────────────────────────────────────────
   Six items plus a call to action does not fit next to the wordmark until
   about 1040px, so the drawer breakpoint sits there rather than at the more
   usual 900. */

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font: 600 .92rem/1 var(--font-sans);
  color: var(--on-ink);
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--ink-3); }
.nav-toggle .bar { transition: opacity .14s ease, transform .14s ease; }
.nav-toggle[aria-expanded="true"] .bar-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-bot { transform: translateY(-5px) rotate(-45deg); }

.primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3px;
}
.primary-nav li { margin: 0; }
.primary-nav a:not(.btn) {
  display: block;
  padding: 9px 11px;
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 500;
  color: var(--on-ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:not(.btn):hover { color: #fff; background: var(--ink-2); }
.primary-nav a.is-current {
  color: #fff;
  background: var(--ink-2);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.nav-cta { margin-left: 8px; }

@media (max-width: 1039px) {
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink-2);
    border-bottom: 1px solid var(--ink-border);
    padding: 12px 24px 20px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a:not(.btn) { padding: 12px 12px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav { margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  font: 600 .95rem/1.25 var(--font-sans);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--accent-deep); border-color: var(--border-input); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* On an ink band the secondary button needs its own treatment; the light one
   would disappear into the navy. */
.btn-onink { background: transparent; color: var(--on-ink); border-color: var(--on-ink-mute); }
.btn-onink:hover { background: var(--ink-2); color: #fff; border-color: var(--on-ink); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════
   Section furniture
   ═══════════════════════════════════════════════════════════════════════ */

/* The eyebrow and its short gold rule are the seal motif — the one repeated
   ornament on the site. */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font: 600 .76rem/1.3 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 9px;
  background: var(--gold);
  border-radius: 2px;
}
:is(.section-ink, .hero, .page-header, .cta-band) .eyebrow { color: var(--gold); }
:is(.section-ink, .hero, .page-header, .cta-band) .eyebrow::after { background: var(--gold); }

.section-head { max-width: 46rem; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head p:last-child { margin-bottom: 0; }

.prose > * + h2 { margin-top: 2.1em; }
.prose > * + h3 { margin-top: 1.7em; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }

/* ── Page header (interior pages) ───────────────────────────────────── */

.page-header {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(34px, 5vw, 56px) 0 clamp(40px, 5.5vw, 62px);
}
.page-header h1 { color: var(--on-ink); max-width: 20ch; }
.page-header .lead { color: var(--on-ink-soft); max-width: 60ch; }
.page-header-wide h1 { max-width: 28ch; }

.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .86rem;
}
.breadcrumb li { margin: 0; color: var(--on-ink-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--on-ink-mute); }
.breadcrumb a:not(.btn) { color: var(--on-ink-soft); text-decoration: none; }
.breadcrumb a:not(.btn):hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--on-ink); }

/* ═══════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(48px, 6.5vw, 84px) 0 0;
}
.hero-grid { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 52px; }
}
.hero h1 { color: var(--on-ink); max-width: 16ch; }
.hero-lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); color: var(--on-ink-soft); max-width: 54ch; }
.hero-lead strong { color: var(--on-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--on-ink-mute); }

/* The "what we do instead" panel beside the hero copy. */
.hero-panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.hero-panel h2 { font-size: 1.05rem; color: var(--on-ink); margin-bottom: 14px; }
.swap-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.swap-list li { margin: 0; display: grid; gap: 3px; }
.swap-from {
  font-size: .88rem;
  color: var(--on-ink-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.swap-to { font-size: .96rem; color: var(--on-ink); font-weight: 500; }
.swap-to::before { content: "→ "; color: var(--gold); font-weight: 700; }

/* ── Proof strip ────────────────────────────────────────────────────────
   Sits at the foot of the hero. An accessibility vendor's own audit result
   is the single most persuasive thing on the page, so it is not buried. */

.proof-strip {
  margin-top: clamp(38px, 5vw, 58px);
  border-top: 1px solid var(--ink-border);
  padding: 22px 0 26px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .proof-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof-item { display: grid; gap: 3px; }
.proof-value {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.proof-label { font-size: .87rem; color: var(--on-ink-soft); }
.proof-foot { margin-top: 4px; font-size: .84rem; color: var(--on-ink-mute); }
.proof-foot a:not(.btn) { color: var(--on-ink-soft); }
.proof-foot a:not(.btn):hover { color: var(--focus-ink); }

/* ═══════════════════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
/* A card's heading level follows the document outline, so a card can carry an
   h3 or an h4 depending on where it sits. Both get the same size. */
.card h3, .card h4 { font-size: 1.16rem; margin-bottom: .4em; }
.card h3 a:not(.btn), .card h4 a:not(.btn) { text-decoration: none; }
.card h3 a:not(.btn):hover, .card h4 a:not(.btn):hover { text-decoration: underline; }
.card p { font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
.card-accent { border-left-color: var(--accent); }
.card-alert  { border-left-color: var(--alert); }
.card-good   { border-left-color: var(--good); }

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { border-color: var(--border-strong); border-left-color: var(--accent); box-shadow: var(--shadow-md); }
.card-link h3, .card-link h4 { color: var(--link); }
.card-link:hover h3, .card-link:hover h4 { color: var(--link-hover); text-decoration: underline; }
.card-more { margin-top: auto; padding-top: 14px; font-size: .88rem; font-weight: 600; color: var(--accent-deep); }
.card-more::after { content: " →"; }

:is(.section-ink, .hero, .page-header, .cta-band) .card {
  background: var(--ink-2);
  border-color: var(--ink-border);
  border-left-color: var(--gold);
  box-shadow: none;
}
:is(.section-ink, .hero, .page-header, .cta-band) .card h3, :is(.section-ink, .hero, .page-header, .cta-band) .card h4 { color: var(--on-ink); }
:is(.section-ink, .hero, .page-header, .cta-band) .card p, :is(.section-ink, .hero, .page-header, .cta-band) .card li { color: var(--on-ink-soft); }

/* ── Callout ────────────────────────────────────────────────────────── */

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout + .callout { margin-top: 20px; }
/* Keep the heading level correct for the document outline, but not at the
   full h2 scale — inside a callout that dwarfs the body copy. */
.callout > h2 { font-size: 1.15rem; margin-bottom: .5em; }
.callout > h3 { font-size: 1.05rem; }
.callout-alert { border-left-color: var(--alert); background: var(--alert-soft); }
.callout-good  { border-left-color: var(--good);  background: var(--good-soft); }
.callout-plain { border-left-color: var(--border-strong); }

/* ── Pull statement ─────────────────────────────────────────────────── */

.statement {
  margin: clamp(28px, 4vw, 44px) 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}
:is(.section-ink, .hero, .page-header, .cta-band) .statement { color: var(--on-ink); }

/* ═══════════════════════════════════════════════════════════════════════
   Lists
   ═══════════════════════════════════════════════════════════════════════ */

/* A long inventory of things we look at — dense, two or three columns.
   The bottom margin matters: these lists are usually followed by prose, and
   `gap` does not create space *after* the last row. */
.inventory { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 9px 26px; }
@media (min-width: 620px) { .inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .inventory-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inventory li {
  margin: 0;
  padding-left: 18px;
  position: relative;
  font-size: .96rem;
  color: var(--text-soft);
}
.inventory li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 1px;
  background: var(--accent-line);
}
:is(.section-ink, .hero, .page-header, .cta-band) .inventory li { color: var(--on-ink-soft); }
:is(.section-ink, .hero, .page-header, .cta-band) .inventory li::before { background: var(--gold); }

/* A checked list — things included, things we do. */
.checklist { margin: 0 0 1.1em; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { margin: 0; padding-left: 30px; position: relative; color: var(--text-soft); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .34em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--good-soft);
  border: 1px solid var(--good-line);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: .62em;
  width: 5px; height: 9px;
  border: solid var(--good);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* The negative counterpart, for "what we are not", "what we will not do" and
   lists of defects. A green tick beside "an accessibility overlay" in a list
   headed *What we are not* reads as agreement — no automated check will ever
   catch that, and looking at a screenshot will.

   Both markers are drawn with borders rather than glyph content, so neither
   gets announced. The heading carries the meaning; the marker only has to stop
   contradicting it. */
.crosslist { margin: 0 0 1.1em; padding: 0; list-style: none; display: grid; gap: 10px; }
.crosslist li { margin: 0; padding-left: 30px; position: relative; color: var(--text-soft); }
.crosslist li::before {
  content: "";
  position: absolute;
  left: 0; top: .34em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--alert-soft);
  border: 1px solid var(--alert-line);
}
.crosslist li::after {
  content: "";
  position: absolute;
  left: 5px; top: calc(.34em + 8px);
  width: 8px; height: 0;
  border-top: 2px solid var(--alert);
}

/* ── The "if X, we fix X" repair pairs ──────────────────────────────── */

.repairs { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 2px; }
.repairs li {
  margin: 0;
  display: grid;
  gap: 2px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.repairs li:first-child { border-top: 1px solid var(--border); }
@media (min-width: 760px) {
  .repairs li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
}
.repair-problem { color: var(--muted); font-size: .96rem; }
.repair-fix { color: var(--text); font-weight: 600; font-size: .99rem; }
:is(.section-ink, .hero, .page-header, .cta-band) .repairs li { border-color: var(--ink-border); }
:is(.section-ink, .hero, .page-header, .cta-band) .repair-problem { color: var(--on-ink-mute); }
:is(.section-ink, .hero, .page-header, .cta-band) .repair-fix { color: var(--on-ink); }

/* ═══════════════════════════════════════════════════════════════════════
   Attribution — which layer does a finding belong to
   ═══════════════════════════════════════════════════════════════════════ */

.layers { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 10px; }
.layer {
  display: grid;
  gap: 3px 16px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
@media (min-width: 700px) { .layer { grid-template-columns: 8.5rem minmax(0, 1fr); } }
.layer-name {
  font: 600 .8rem/1.3 var(--font-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.layer-what { color: var(--text-soft); font-size: .96rem; }

/* ═══════════════════════════════════════════════════════════════════════
   Numbered process steps
   ═══════════════════════════════════════════════════════════════════════ */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 4px; }
.steps > li {
  counter-increment: step;
  margin: 0;
  display: grid;
  gap: 4px 22px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.steps > li:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 780px) { .steps > li { grid-template-columns: 4.5rem minmax(0, 1fr); } }
.step-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-line);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step-body h3 { margin-bottom: .35em; }
.step-body p:last-child { margin-bottom: 0; }
.step-optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font: 600 .72rem/1.5 var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════
   Deadlines
   ═══════════════════════════════════════════════════════════════════════ */

.deadline-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .deadline-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.deadline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--alert);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.deadline-date {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--alert);
  margin: 0 0 2px;
}
.deadline-rule {
  font: 600 .78rem/1.4 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.deadline-who { color: var(--text-soft); font-size: .96rem; margin: 0; }
.deadline-away { margin: 10px 0 0; font-size: .87rem; color: var(--muted); }

:is(.section-ink, .hero, .page-header, .cta-band) .deadline-card { background: var(--ink-2); border-color: var(--ink-border); border-top-color: var(--gold); }
:is(.section-ink, .hero, .page-header, .cta-band) .deadline-date { color: var(--gold); }
:is(.section-ink, .hero, .page-header, .cta-band) .deadline-rule { color: var(--on-ink-mute); }
:is(.section-ink, .hero, .page-header, .cta-band) .deadline-who  { color: var(--on-ink-soft); }
:is(.section-ink, .hero, .page-header, .cta-band) .deadline-away { color: var(--on-ink-mute); }

/* ── Reference table ────────────────────────────────────────────────── */

/* The wrapper scrolls, so the page body never scrolls sideways — but the table
   is sized to FIT a phone rather than to depend on that scroll.

   A `min-width: 34rem` here was wider than a 390px viewport, which pushed two
   columns outside the wrapper's box. axe could then only report those cells as
   "background could not be determined because it's partially obscured" — 44
   undecidable results standing in for one ordinary layout problem, plus a real
   scrollable-region-focusable violation. Fitting the content is the fix. The
   scroll is the fallback for 320px and for body text at 200%, and the wrapper
   carries role="region" + tabindex="0" so it stays reachable when it happens. */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table-heading { margin-top: clamp(30px, 4vw, 44px); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table caption {
  text-align: left;
  font-size: .9rem;
  color: var(--muted);
  padding-bottom: 10px;
}
.data-table caption strong { color: var(--text); }
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table thead th {
  font: 600 .78rem/1.4 var(--font-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border-strong);
}
.data-table tbody th { font-weight: 600; color: var(--text); }
.data-table td { color: var(--text-soft); }
.data-table .cell-date { color: var(--alert); font-weight: 600; }
/* Nowrap only where there is room for it. On a phone the date wraps to two
   lines rather than forcing the whole table into a scroll. */
@media (min-width: 560px) {
  .data-table th, .data-table td { padding: 12px 18px 12px 0; }
  .data-table thead th, .data-table .cell-date { white-space: nowrap; }
}
/* Focusing the region should look focused. */
.table-wrap:focus-visible { outline-offset: 4px; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
/* Set by the finder when a row matches the visitor's answers. */
.data-table tr.is-match th,
.data-table tr.is-match td { background: var(--alert-soft); }

/* ── Deadline finder ────────────────────────────────────────────────── */

.finder {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-md);
}
.finder-q { border: 0; margin: 0 0 22px; padding: 0; }
.finder-q:last-of-type { margin-bottom: 0; }
.finder-q legend {
  padding: 0;
  margin-bottom: 12px;
  font: 600 1rem/1.35 var(--font-sans);
  color: var(--text);
}
.finder-q .field-hint { display: block; margin: -6px 0 12px; }

.choices { display: grid; gap: 8px; }
@media (min-width: 700px) { .choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .95rem;
  color: var(--text-soft);
}
.choice:hover { background: var(--accent-soft); }
.choice input { margin: .22em 0 0; flex: 0 0 auto; accent-color: var(--accent); width: 17px; height: 17px; }
.choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 500; }

.finder-result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.finder-result h3 { margin-bottom: .4em; }
.finder-answer {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--alert);
  margin: 0 0 6px;
}
.finder-rule { margin: 0 0 14px; font-size: .95rem; color: var(--muted); }
.finder-note { color: var(--text-soft); font-size: .97rem; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════════════
   Source notes — regulatory citations
   ═══════════════════════════════════════════════════════════════════════ */

.source-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-soft);
}
.source-note p { font-size: .9rem; margin-bottom: .7em; }
.source-note p:last-child { margin-bottom: 0; }
.source-note ul { margin: 0 0 .8em; padding-left: 1.2em; font-size: .9rem; }
:is(.section-ink, .hero, .page-header, .cta-band) .source-note { background: var(--ink-2); color: var(--on-ink-soft); }
:is(.section-ink, .hero, .page-header, .cta-band) .source-note p { color: var(--on-ink-soft); }

/* ═══════════════════════════════════════════════════════════════════════
   FAQ — native details/summary, keyboard-operable with no JavaScript
   ═══════════════════════════════════════════════════════════════════════ */

.faq-list { display: grid; gap: 2px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--link); }
.faq-item > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  margin-top: .35em;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .16s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: .6em; }
.faq-answer { padding: 0 4px 22px; max-width: 68ch; }
.faq-answer > :last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   Split layout — body plus aside
   ═══════════════════════════════════════════════════════════════════════ */

.split { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
  .split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-aside-first > :first-child { order: 2; }
}

/* A sidebar that follows you down a long page. */
@media (min-width: 940px) {
  .sticky-aside { position: sticky; top: 92px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════════════ */

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}

.field { margin: 0 0 22px; display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: .94rem; color: var(--text); }
.req { color: var(--alert); }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: 400 1rem/1.5 var(--font-sans);
  color: var(--text);
  background: var(--surface);
  /* --border-input, not --border: this is the visible boundary of a control
     and WCAG 1.4.11 wants 3:1 against the surface behind it. */
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 9em; }

/* The select keeps its native arrow.
   A custom chevron means `appearance: none` plus a background-image — and any
   background-image makes axe report "background color could not be determined"
   and file the control as an *incomplete*, the undecidable bucket this site
   exists not to have. The platform arrow is also the control users already
   recognise, and it renders correctly at every zoom level and in forced-colors
   mode without help. Restyling it buys nothing worth that. */
.field select { padding-right: 34px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--alert); border-width: 2px; }

.field-hint { font-size: .87rem; color: var(--muted); }
.field-error { font-size: .89rem; font-weight: 600; color: var(--alert); }
.field-error::before { content: "⚠ "; }

.form-row { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.form-actions .meta { margin: 0; font-size: .88rem; color: var(--muted); }

.fieldset-group { border: 0; margin: 0 0 18px; padding: 0; }
.fieldset-group > legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .94rem; color: var(--text); }

/* Off-screen, honestly labelled, and NOT inside aria-hidden — a focusable
   control inside aria-hidden="true" is axe's aria-hidden-focus violation. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── Alerts ─────────────────────────────────────────────────────────── */

.alert {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  margin-bottom: 24px;
}
.alert h2 { font-size: 1.1rem; margin-bottom: .35em; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-error { background: var(--alert-soft); border-color: var(--alert-line); border-left-color: var(--alert); }
.alert-error h2 { color: var(--alert); }
.alert-info { background: var(--accent-soft); border-color: var(--accent-line); border-left-color: var(--accent); }
.alert-good { background: var(--good-soft); border-color: var(--good-line); border-left-color: var(--good); }
.alert ul { margin: .6em 0 0; padding-left: 1.2em; }

/* ═══════════════════════════════════════════════════════════════════════
   CTA band
   ═══════════════════════════════════════════════════════════════════════ */

.cta-band { background: var(--ink); color: var(--on-ink); padding: clamp(46px, 6vw, 72px) 0; }
.cta-band h2 { color: var(--on-ink); max-width: 22ch; }
.cta-band p { color: var(--on-ink-soft); max-width: 60ch; }
.cta-inner { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; }
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-actions { justify-content: flex-end; } }

/* A compact version for mid-page. */
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 22px 24px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.cta-inline h2, .cta-inline h3 { font-size: 1.15rem; margin: 0 0 .25em; }
.cta-inline p { margin: 0; font-size: .95rem; }
.cta-inline > div { min-width: min(100%, 22rem); flex: 1 1 22rem; }

/* ═══════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-soft);
  padding: clamp(44px, 5.5vw, 66px) 0 28px;
  border-top: 4px solid var(--gold);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; } }

.footer-brand p { color: var(--on-ink-mute); font-size: .93rem; max-width: 34ch; margin-top: 14px; }

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-col li { margin: 0; }
/* :not(.btn) is mandatory here — a bare `.footer-col a` rule outranks
   `.btn-primary` and quietly turns the CTA text low-contrast grey. */
.footer-col a:not(.btn) { color: var(--on-ink-soft); text-decoration: none; font-size: .93rem; }
.footer-col a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-cta .btn { margin-top: 18px; }

.footer-meta {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-border);
  display: grid;
  gap: 10px;
  font-size: .86rem;
  color: var(--on-ink-mute);
}
.footer-meta a:not(.btn) { color: var(--on-ink-soft); }
.footer-meta a:not(.btn):hover { color: #fff; }
@media (min-width: 800px) {
  .footer-meta { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
}

.disclaimer {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-border);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--on-ink-mute);
  max-width: 92ch;
}

/* ═══════════════════════════════════════════════════════════════════════
   Scroll reveal — additive only; without JS everything is already visible
   ═══════════════════════════════════════════════════════════════════════ */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
