/* ─────────────────────────────────────────────────────────────────────────
   eaa.css — European Accessibility Act landing page
   Joe Gullo · Kirby 5+ template family `eaa`
   Extends brand.css tokens and matches joegullo.com/about/site brand standards:
   Inter for all headings and body, JetBrains Mono for data, eyebrows and
   labels, white/slate surfaces, AAA focus indicators inherited from brand.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --eaa-ground: #ffffff;            /* brand surface (white) */
  --eaa-ink: var(--text-primary);
  --eaa-rule: #e5e7eb;               /* brand default border */
  --eaa-rule-soft: #eef2f6;
  --eaa-card: #ffffff;
  --eaa-card-warm: #f8fafc;       /* brand raised surface */

  /* Enforcement-posture scale — a single-hue (blue) LIGHTNESS ramp, so it
     stays distinguishable under colour-blindness (deuter/protan/tritan keep
     lightness). Adjacent tiles are >=3:1 apart (active/watch 3.0:1,
     watch/inforce 3.2:1) and every label meets WCAG AA text contrast. */
  --tier-active:  #142f3c;        /* darkest — white text 14:1 */
  --tier-active-tx: #ffffff;
  --tier-watch:   #56798d;        /* mid slate — white text 4.65:1 */
  --tier-watch-tx: #ffffff;
  --tier-inforce: #cdd9e2;        /* pale slate — ink text 10:1 */
  --tier-inforce-tx: #1d2b35;

  /* Basis flags (fines table) */
  --basis-stat: #1f6b4f;          /* statutory — green */
  --basis-stat-bg: #e7f4ee;
  --basis-rep: #8a5a14;           /* reported — amber/ink */
  --basis-rep-bg: #f6eddd;

  --maxw: 1080px;
  --measure: 68ch;
}

/* ── Reset within the doc ──────────────────────────────────────────────── */
.eaa { box-sizing: border-box; }
.eaa *, .eaa *::before, .eaa *::after { box-sizing: inherit; }
/* Page wrapper (was body.eaa-body). Renamed from .eaa-body so the content-body
   component below (.eaa-body) no longer collides with the wrapper — otherwise
   `.eaa-body p` would match every paragraph on the page and override the
   component paragraph margins (lede, eyebrow, deck), collapsing the rhythm. */
.eaa-page {
  margin: 0;
  background: var(--eaa-ground);
  color: var(--eaa-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}

.eaa a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.eaa a:hover { color: var(--brand-hover); }
.eaa :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.eaa-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  font: 600 14px/1 var(--font-sans);
  border-radius: 0 0 8px 0;
}
.eaa-skip:focus { left: 0; }

/* ── Layout shell ──────────────────────────────────────────────────────── */
.eaa-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Two-column briefing shell: content + sticky contents rail */
.eaa-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  column-gap: 52px;
}
.eaa-main { min-width: 0; }
@media (max-width: 980px) {
  .eaa-layout { grid-template-columns: 1fr; padding: 0 24px; }
}

.eaa-section { padding: 64px 0; border-top: 1px solid var(--eaa-rule); scroll-margin-top: 24px; }
@media (max-width: 760px) { .eaa-section { padding: 48px 0; } }

/* ── Contents rail (sticky) ────────────────────────────────────────────── */
.eaa-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 86px;
}
@media (max-width: 980px) { .eaa-toc { display: none; } }
.eaa-toc-label {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 12px 14px;
}
.eaa-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--eaa-rule); }
.eaa-toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  align-items: baseline;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font: 500 13px/1.3 var(--font-sans);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}
.eaa-toc a .tn { font: 600 10.5px/1.3 var(--font-mono); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.eaa-toc a:hover { color: var(--brand); }
.eaa-toc a[aria-current="true"] { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.eaa-toc a[aria-current="true"] .tn { color: var(--brand); }
.eaa-toc a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.eaa-toc-cta {
  margin: 16px 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--font-sans);
  color: var(--brand);
  text-decoration: none;
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
.eaa-toc-cta:hover { border-color: var(--brand); background: var(--brand-light); }
.eaa-toc-cta:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ── Inline citation markers ───────────────────────────────────────────── */
.eaa-ref { font: 600 0.64em/1 var(--font-mono); vertical-align: super; margin-left: 1px; white-space: nowrap; }
.eaa-ref a { color: var(--brand); text-decoration: none; padding: 0 1px; border-radius: 2px; }
.eaa-ref a:hover { text-decoration: underline; text-underline-offset: 2px; }
.eaa-ref a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.eaa-section:first-of-type { border-top: 0; }

.eaa-eyebrow {
  font: 600 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0; /* neutralise the default <p> margin so the label hugs the H2 (8px via .eaa-h2 margin-top) */
}
.eaa-eyebrow .num {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Section vertical rhythm: eyebrow → 8px → H2 → 20px → content (lede/body),
   16px between paragraphs. The eyebrow label hugs the heading; the heading is
   clearly separated from its body. */
.eaa-h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
  color: var(--eaa-ink);
  text-wrap: balance;
}
.eaa-lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: var(--measure);
  margin: 20px 0 0;
  text-wrap: pretty;
}
.eaa-body { margin-top: 20px; }
.eaa-body p { font-size: 16.5px; line-height: 1.68; color: var(--text-secondary); max-width: var(--measure); text-wrap: pretty; margin: 0 0 16px; }
.eaa-body p:last-child { margin-bottom: 0; }
.eaa-statement-cta { margin: 24px 0 0; }
.eaa-body p strong { color: var(--eaa-ink); font-weight: 600; }

/* ── Header / hero ─────────────────────────────────────────────────────── */
.eaa-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--eaa-rule);
}
.eaa-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font: 700 18px/1 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--eaa-ink);
  text-decoration: none;
}
.eaa-wordmark .tld {
  font: 500 13px/1 var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0;
}
.eaa-topnav { display: flex; gap: 14px; align-items: center; }
.eaa-topnav a {
  font: 500 13.5px/1 var(--font-sans);
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 5px;
}
.eaa-topnav a:hover { color: var(--brand); }
.eaa-topnav .eaa-cta-sm {
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.eaa-topnav .eaa-cta-sm:hover { background: var(--brand-hover); color: #fff; }
@media (max-width: 720px) { .eaa-topnav .nav-link { display: none; } }

.eaa-hero { padding: 64px 0 48px; }
.eaa-hero-kicker {
  font: 600 12.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
}
.eaa-hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.eaa-hero .eaa-hero-deck {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 26px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.eaa-hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.eaa-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 7px;
  font: 600 15px/1 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .14s, border-color .14s, color .14s;
}
/* `.eaa` prefix raises specificity above the generic `.eaa a` link colour
   (buttons are <a> elements), so the button text colours win. */
.eaa .eaa-btn-primary { background: var(--brand); color: #fff; }
.eaa .eaa-btn-primary:hover { background: var(--brand-hover); color: #fff; }
.eaa .eaa-btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--eaa-ink); }
.eaa .eaa-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.eaa-btn .arrow { font-family: var(--font-mono); }

/* Hero fact strip */
.eaa-facts {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--eaa-rule);
  border: 1px solid var(--eaa-rule);
  border-radius: 12px;
  overflow: hidden;
}
.eaa-fact { background: var(--eaa-card-warm); padding: 22px 22px 24px; }
.eaa-fact .k {
  font: 600 11px/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.eaa-fact .v {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 10px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.eaa-fact .s { font: 500 12.5px/1.4 var(--font-sans); color: var(--text-secondary); margin-top: 6px; }
@media (max-width: 860px) { .eaa-facts { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .eaa-facts { grid-template-columns: 1fr; } }

/* ── Timeline ──────────────────────────────────────────────────────────── */
.eaa-timeline { margin-top: 40px; display: grid; gap: 0; }
.eaa-tl-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--eaa-rule-soft);
  align-items: start;
}
.eaa-tl-row:first-child { border-top: 0; }
.eaa-tl-date {
  font: 600 14px/1.3 var(--font-mono);
  color: var(--brand);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.eaa-tl-row[data-now="true"] .eaa-tl-date::after {
  content: "now";
  display: inline-block;
  margin-left: 8px;
  font: 700 9px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brand);
  color: #fff;
  padding: 3px 5px;
  border-radius: 3px;
  vertical-align: middle;
}
.eaa-tl-body h3 { font: 600 17px/1.3 var(--font-sans); margin: 0; letter-spacing: -0.01em; }
.eaa-tl-body p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 6px 0 0; max-width: 60ch; }
/* Grouped rows that share one date */
.eaa-tl-multi { display: grid; gap: 0; }
.eaa-tl-multi .tl-item + .tl-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--eaa-rule-soft); }
.eaa-tl-multi .tl-item h3 { font: 600 17px/1.3 var(--font-sans); margin: 0; letter-spacing: -0.01em; }
.eaa-tl-multi .tl-item p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 6px 0 0; max-width: 60ch; }
@media (max-width: 640px) {
  .eaa-tl-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Cards / scope grids ───────────────────────────────────────────────── */
.eaa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.eaa-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 820px) { .eaa-grid-2, .eaa-grid-3 { grid-template-columns: 1fr; } }

.eaa-card {
  background: var(--eaa-card);
  border: 1px solid var(--eaa-rule);
  border-radius: 12px;
  padding: 26px 26px 28px;
}
.eaa-card h3 {
  font: 600 17px/1.25 var(--font-sans);
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eaa-card .tag {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 7px;
  border-radius: 4px;
}
.eaa-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.eaa-card li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.eaa-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand-blue);
}
.eaa-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); margin: 12px 0 0; }

/* Exemption callout */
.eaa-callout {
  margin-top: 22px;
  border: 1px solid var(--eaa-rule);
  border-left: 4px solid var(--brand);
  background: var(--eaa-card-warm);
  border-radius: 0 10px 10px 0;
  padding: 22px 24px;
}
.eaa-callout h3 { font: 600 16px/1.3 var(--font-sans); margin: 0 0 8px; }
.eaa-callout p { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 64ch; }
.eaa-callout p + p { margin-top: 10px; }

/* ── Map (geo-grid cartogram) ──────────────────────────────────────────── */
.eaa-map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.eaa-map-shell {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .eaa-map-shell { grid-template-columns: 1fr; gap: 32px; } }

.eaa-cartogram {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  aspect-ratio: 9 / 8;
}
.eaa-tile-cell { display: flex; min-width: 0; }
.eaa-tile-cell > .eaa-tile { width: 100%; height: 100%; }
a.eaa-tile { text-decoration: none; cursor: pointer; }
.eaa-tile {
  position: relative;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 0;
  cursor: default;
  font-family: var(--font-mono);
  transition: transform .12s, box-shadow .12s;
}
.eaa-tile .code { font: 700 clamp(11px, 1.4vw, 15px)/1 var(--font-mono); letter-spacing: 0.02em; }
.eaa-tile .dot { display: none; }
.eaa-tile[data-tier="active"]  { background: var(--tier-active);  color: var(--tier-active-tx); }
.eaa-tile[data-tier="watch"]   { background: var(--tier-watch);   color: var(--tier-watch-tx); }
.eaa-tile[data-tier="inforce"] { background: var(--tier-inforce); color: var(--tier-inforce-tx); }
/* Only linked tiles (every member state) get the clickable affordances:
   pointer cursor, lift, and a corner ↗ on hover/focus. */
a.eaa-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); z-index: 2; }
a.eaa-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; z-index: 3; }
a.eaa-tile::after {
  content: "\2197"; /* ↗ */
  position: absolute; top: 3px; right: 5px;
  font-size: 10px; line-height: 1; opacity: 0; transition: opacity .12s;
}
a.eaa-tile:hover::after, a.eaa-tile:focus-visible::after { opacity: 0.9; }

/* "Select any country…" instruction above the map */
.eaa-map-hint {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 20px;
  font: 600 13px/1.4 var(--font-mono);
  letter-spacing: 0.01em;
  color: var(--brand);
}
.eaa-map-hint span { font-size: 16px; line-height: 1; }

.eaa-legend { display: grid; gap: 14px; }
.eaa-legend-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.eaa-legend-swatch { width: 22px; height: 22px; border-radius: 5px; margin-top: 2px; }
.eaa-legend-swatch[data-tier="active"]  { background: var(--tier-active); }
.eaa-legend-swatch[data-tier="watch"]   { background: var(--tier-watch); }
.eaa-legend-swatch[data-tier="inforce"] { background: var(--tier-inforce); border: 1px solid var(--eaa-rule); }
.eaa-legend-item .lt { font: 600 14px/1.3 var(--font-sans); color: var(--eaa-ink); }
.eaa-legend-item .ld { font: 500 13px/1.45 var(--font-sans); color: var(--text-secondary); margin-top: 3px; }
.eaa-legend-item .lc { font: 600 11px/1 var(--font-mono); color: var(--text-muted); margin-top: 6px; letter-spacing: 0.04em; }

.eaa-map-note {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 64ch;
  border-top: 1px solid var(--eaa-rule-soft);
  padding-top: 18px;
}

/* ── Country index (A–Z browse) ────────────────────────────────────────── */
.eaa-cindex { margin-top: 32px; }
.eaa-cindex-label {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.eaa-cindex-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.eaa-cindex-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--eaa-rule);
  border-radius: 8px;
  background: var(--eaa-card);
  font: 600 13px/1.2 var(--font-sans);
  color: var(--eaa-ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.eaa-cindex-list a .cc { font: 700 11px/1 var(--font-mono); color: var(--brand); letter-spacing: 0.04em; }
.eaa-cindex-list a:hover { border-color: var(--brand); background: var(--brand-light); }
.eaa-cindex-list a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ── Country flags (decorative SVGs via flag-icons; name stays the label) ─ */
.fi.eaa-flag-sm {
  display: inline-block;
  width: 21px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid var(--eaa-rule);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  vertical-align: middle;
}
.fi.eaa-flag-sm::before { content: none; }
.eaa-table .c-country .fi.eaa-flag-sm { margin-right: 9px; }

/* Country names in the fines table link to their detail pages */
.eaa-table .c-country a { color: var(--brand); text-decoration: none; }
.eaa-table .c-country a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eaa-table .c-country a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* ── Fines table ───────────────────────────────────────────────────────── */
/* Fits the content column at any width — no horizontal scroll. Fixed layout
   distributes the four columns and lets long values wrap. */
.eaa-table-wrap { margin-top: 36px; overflow: hidden; border: 1px solid var(--eaa-rule); border-radius: 12px; background: var(--eaa-card); }
table.eaa-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.eaa-table th, .eaa-table td { overflow-wrap: anywhere; }
.eaa-table th:nth-child(1) { width: 32%; }
.eaa-table th:nth-child(2) { width: 30%; }
.eaa-table th:nth-child(3) { width: 22%; }
.eaa-table th:nth-child(4) { width: 16%; }
.eaa-table caption { text-align: left; padding: 16px 20px; font: 500 13px/1.5 var(--font-sans); color: var(--text-muted); border-bottom: 1px solid var(--eaa-rule-soft); }
.eaa-table th, .eaa-table td { text-align: left; padding: 14px 18px; vertical-align: top; }
.eaa-table thead th {
  font: 600 11px/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--eaa-rule);
  background: var(--eaa-card-warm);
}
.eaa-table tbody tr { border-top: 1px solid var(--eaa-rule-soft); }
.eaa-table tbody tr:first-child { border-top: 0; }
.eaa-table .c-country { font: 600 15px/1.3 var(--font-sans); color: var(--eaa-ink); }
.eaa-table .c-country .law { display: block; font: 500 11.5px/1.3 var(--font-mono); color: var(--text-muted); margin-top: 3px; letter-spacing: 0; }
.eaa-table .c-max { font: 600 14.5px/1.4 var(--font-sans); color: var(--eaa-ink); font-variant-numeric: tabular-nums; }
.eaa-table .c-auth { font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.eaa-basis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.eaa-basis[data-b="stat"] { color: var(--basis-stat); background: var(--basis-stat-bg); }
.eaa-basis[data-b="rep"]  { color: var(--basis-rep);  background: var(--basis-rep-bg); }
.eaa-basis::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.eaa-table-foot { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); padding: 16px 20px; border-top: 1px solid var(--eaa-rule); max-width: none; }
@media (max-width: 600px) {
  .eaa-table th, .eaa-table td { padding: 10px 8px; }
  .eaa-table .c-country { font-size: 13px; }
  .eaa-table .c-max { font-size: 12.5px; }
  .eaa-table .c-auth, .eaa-table thead th { font-size: 10.5px; }
  .eaa-table .c-country .law { font-size: 10.5px; }
  /* Drop the pill's decorative dot on small screens (status is already in the
     label text, so this stays colour-blind-safe) and let it shrink to fit. */
  .eaa-basis { font-size: 9px; padding: 4px 6px; letter-spacing: 0.02em; gap: 0; }
  .eaa-basis::before { display: none; }
}

/* Enforcement reality banner */
.eaa-reality {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--basis-rep-bg);
  border: 1px solid #e6d6b8;
  border-radius: 10px;
  padding: 18px 22px;
}
.eaa-reality .badge {
  font: 700 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--basis-rep);
  background: #fff;
  border: 1px solid #e6d6b8;
  padding: 6px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.eaa-reality p { font-size: 14px; line-height: 1.6; color: #6b4e15; margin: 0; max-width: 72ch; }
.eaa-reality p strong { color: #533c0f; }

/* ── Steps / next ──────────────────────────────────────────────────────── */
.eaa-steps { margin-top: 36px; display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; counter-reset: step; }
@media (max-width: 720px) { .eaa-steps { grid-template-columns: 1fr; } }
.eaa-step {
  background: var(--eaa-card);
  border: 1px solid var(--eaa-rule);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.eaa-step .n {
  font: 600 13px/1 var(--font-mono);
  color: var(--brand);
  background: var(--brand-light);
  width: 30px; height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eaa-step h3 { font: 600 16.5px/1.3 var(--font-sans); margin: 14px 0 0; letter-spacing: -0.01em; }
.eaa-step p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 8px 0 0; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.eaa-cta-band {
  margin: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) { .eaa-cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }
.eaa-cta-band h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.eaa-cta-band p { color: var(--dk-text-secondary); font-size: 16px; line-height: 1.55; margin: 14px 0 0; max-width: 56ch; }
.eaa-cta-band .eaa-btn-primary { background: #fff; color: var(--brand); }
.eaa-cta-band .eaa-btn-primary:hover { background: var(--brand-light); color: var(--brand); }
.eaa-cta-band .eaa-btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.eaa-cta-band .eaa-btn-ghost:hover { border-color: #fff; color: #fff; }
.eaa-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Sources ───────────────────────────────────────────────────────────── */
.eaa-sources { margin-top: 32px; display: grid; gap: 2px; }
.eaa-source {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--eaa-rule-soft);
  align-items: baseline;
}
.eaa-source:first-child { border-top: 0; }
.eaa-source { scroll-margin-top: 24px; transition: background .3s ease; border-radius: 8px; }
.eaa-source:target { background: var(--brand-light); box-shadow: 0 0 0 8px var(--brand-light); }
.eaa-source:target .st { color: var(--brand); }
.eaa-source .sn { font: 600 12px/1.4 var(--font-mono); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.eaa-source .st { font: 600 14.5px/1.4 var(--font-sans); color: var(--eaa-ink); }
.eaa-source .sd { font: 500 13px/1.5 var(--font-sans); color: var(--text-secondary); margin-top: 3px; }
.eaa-source a { font: 500 12.5px/1.4 var(--font-mono); word-break: break-all; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.eaa-footer { border-top: 1px solid var(--eaa-rule); padding: 40px 0 64px; }
.eaa-footer p { font-size: 13px; line-height: 1.6; color: var(--text-muted); max-width: 78ch; margin: 0; }
.eaa-footer p + p { margin-top: 10px; }
.eaa-footer .updated {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: inline-block;
}

/* Visually-hidden (for table captions / sr labels) */
.eaa-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Print ─────────────────────────────────────────────────────────────── */
/* ── Dark mode ─────────────────────────────────────────────────────────────
   The site sets data-theme="dark" on <html> (cookie jg_theme). Re-point the
   EAA tokens to the established dark palette so every token-based surface,
   border, text and badge flips automatically; the few hard-coded components
   are handled explicitly below. Brand dark palette per joegullo.com/about/site:
   headings #f1f5f9, body #e2e8f0/#cbd5e1, muted #a8b5c4, links #7cb8f7,
   dark surface #0f172a. */
[data-theme="dark"] .eaa {
  --eaa-ground: #0f172a;
  --eaa-ink: #f1f5f9;
  --eaa-rule: #334155;
  --eaa-rule-soft: #28384a;
  --eaa-card: #1e293b;
  --eaa-card-warm: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #a8b5c4; /* established brand dark-muted — 7:1 AAA on cards/ground */
  --border-strong: #475569;
  /* Remap the brand accent to the dark-mode brand blue so every --brand text /
     border / focus accent (kicker, citations, TOC, table links, eyebrows…)
     becomes legible on the dark ground. The few places that use --brand as a
     solid background (primary button, CTA band, timeline “now” badge) are
     pinned explicitly below so they stay high-contrast. */
  --brand: var(--brand-blue);
  --brand-hover: var(--brand-blue-hover);
  --brand-light: rgba(124, 184, 247, 0.16);
  /* Tier ramp re-tuned for a dark ground (light→mid→dark blue); a tile border
     guarantees delineation since adjacent fills sit closer in lightness. */
  --tier-active: #7cb8f7;  --tier-active-tx: #0b1b2b;
  --tier-watch: #4f80a0;   --tier-watch-tx: #ffffff;
  --tier-inforce: #34485e; --tier-inforce-tx: #cbd5e1;
  --basis-stat: #6ee7b7;   --basis-stat-bg: #102a1e;
  --basis-rep: #e3b667;    --basis-rep-bg: #2a2410;
}
[data-theme="dark"] .eaa a { color: var(--brand-blue); }
[data-theme="dark"] .eaa a:hover { color: var(--brand-blue-hover); }
[data-theme="dark"] .eaa-eyebrow,
[data-theme="dark"] .eaa-map-hint { color: var(--brand-blue); }
[data-theme="dark"] .eaa-step .n { color: var(--brand-blue); background: rgba(124,184,247,0.16); }
[data-theme="dark"] .eaa .eaa-btn-primary { background: var(--brand-blue); color: #0b1b2b; }
[data-theme="dark"] .eaa .eaa-btn-primary:hover { background: var(--brand-blue-hover); color: #0b1b2b; }
[data-theme="dark"] .eaa-tile { border: 1px solid #3b4f66; }
/* Tiles are <a>, so the dark link colour above would override their labels —
   restore the per-tier label colour with higher specificity. */
[data-theme="dark"] .eaa-tile[data-tier="active"]  { color: var(--tier-active-tx); }
[data-theme="dark"] .eaa-tile[data-tier="watch"]   { color: var(--tier-watch-tx); }
[data-theme="dark"] .eaa-tile[data-tier="inforce"] { color: var(--tier-inforce-tx); }
[data-theme="dark"] .eaa-callout { border-left-color: var(--brand-blue); }
[data-theme="dark"] .eaa-reality { border-color: #5a4a1f; }
[data-theme="dark"] .eaa-reality .badge { background: #1e293b; border-color: #5a4a1f; }
[data-theme="dark"] .eaa-reality p { color: #e8d3a0; }
[data-theme="dark"] .eaa-reality p strong { color: #f3e4c2; }
/* Keep the CTA band a solid brand-navy panel with a white button (literals,
   since --brand is remapped to blue in dark). */
[data-theme="dark"] .eaa-cta-band { background: #294557; }
[data-theme="dark"] .eaa-cta-band .eaa-btn-primary { background: #fff; color: #294557; }
[data-theme="dark"] .eaa-cta-band .eaa-btn-primary:hover { background: #dce5ec; color: #294557; }
/* Timeline “now” badge: dark text on the (now light-blue) brand chip. */
[data-theme="dark"] .eaa-tl-row[data-now="true"] .eaa-tl-date::after { color: #0b1b2b; }

@media print {
  .eaa-page { background: #fff; }
  .eaa-topnav, .eaa-skip, .eaa-cta-band .eaa-cta-actions { display: none; }
  .eaa-section { padding: 28px 0; border-color: #ccc; break-inside: avoid; }
  .eaa-tile { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .eaa-card, .eaa-step, .eaa-table-wrap { break-inside: avoid; }
  a { color: #000; }
  .eaa-source a::after, .eaa-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  .eaa *, .eaa *::before, .eaa *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
