/* FootballAPIs — one hand-written stylesheet, no framework. Tokens are documented in DESIGN.md. */

/* ---------------------------------------------------------------------------
   Fonts: self-hosted Geist + Geist Mono (OFL). Fallback faces are metric-matched
   to the system fonts so the swap doesn't shift layout. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Arimo"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 102%;
  ascent-override: 98.5%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Menlo"), local("DejaVu Sans Mono"), local("Liberation Mono"), local("Courier New");
  size-adjust: 100%;
  ascent-override: 100.5%;
  descent-override: 29.5%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------------------
   Tokens */

:root {
  color-scheme: dark;

  /* Colour (dark is the brand and the default; light overrides follow this block) */
  --bg: #0a0a0a;
  --bg-clear: rgba(10, 10, 10, 0);
  --surface-1: #111111;
  --surface-2: #171717;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-input: var(--link-line);
  --hover-line: rgba(255, 255, 255, 0.3);
  --hover-line-strong: rgba(255, 255, 255, 0.32);
  --input-line-hover: rgba(255, 255, 255, 0.55);
  --hover-wash: rgba(255, 255, 255, 0.04);
  --hover-wash-2: rgba(255, 255, 255, 0.05);
  --fade-edge: rgba(255, 255, 255, 0.1);
  --fade-edge-clear: rgba(255, 255, 255, 0);
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #8f8f8f;
  --text-dim: #808080;
  --accent: #c6f432;
  --accent-hover: #d6f86a;
  --accent-text-on: #0a0a0a;
  --accent-ink: var(--accent);
  --accent-ink-hover: var(--accent-hover);
  --accent-border: var(--accent);
  --accent-border-hover: var(--accent-hover);
  --selected-ring: none;
  --accent-soft: rgba(198, 244, 50, 0.08);
  --accent-line: rgba(198, 244, 50, 0.4);
  --focus: var(--accent);
  --selection: rgba(198, 244, 50, 0.25);
  --link-line: rgba(255, 255, 255, 0.4);
  --success: var(--accent-ink);
  --warn: #e3b55b;
  --warn-soft: rgba(227, 181, 91, 0.07);
  --warn-line: rgba(227, 181, 91, 0.32);
  --unknown: var(--text-3);
  --unknown-line: rgba(255, 255, 255, 0.2);
  /* beehiiv paints its form on an opaque #0a0a0a; in light this frames it as a deliberate dark inset. */
  --nl-panel: transparent;
  --nl-panel-radius: 0;

  /* Type */
  --font-sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.2vw, 3.125rem);
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.75rem;
  --fs-mono: 0.8125rem;
  --lh-tight: 1.04;
  --lh-heading: 1.15;
  --lh-body: 1.65;
  --lh-mono: 1.55;
  --track-display: -0.045em;
  --track-h1: -0.035em;
  --track-h2: -0.025em;
  --track-h3: -0.012em;
  --track-label: 0.04em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: 5rem;

  /* Layout */
  --wrap: 1200px;
  --measure: 65ch;
  --gutter: 1.5rem;

  /* Radii, borders, glow */
  --radius-pill: 999px;
  --radius-panel: 12px;
  --radius-input: 8px;
  --radius-sm: 6px;
  --hairline: 1px solid var(--border);
  --hairline-strong: 1px solid var(--border-strong);
  --glow-hero: radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(40% 50% at 70% 10%, rgba(198, 244, 50, 0.045), transparent 70%);
  --shadow-menu: 0 12px 32px rgba(0, 0, 0, 0.5);

  /* Motion */
  --dur-fast: 120ms;
  --dur: 160ms;
  --dur-slow: 200ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Light theme. Applied when the device prefers light (unless the visitor chose dark), or when the
   visitor chose light with the header toggle (theme.js sets html[data-theme]). Works without JS.
   The two blocks must stay identical: scripts/contrast-check.mjs fails if they differ. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fafaf7;
    --bg-clear: rgba(250, 250, 247, 0);
    --surface-1: #ffffff;
    --surface-2: #efefe9;
    --border: #e3e3dc;
    --border-strong: #d0d0c7;
    --border-input: #85857c;
    --hover-line: #a3a399;
    --hover-line-strong: #a3a399;
    --input-line-hover: #66665e;
    --hover-wash: rgba(17, 17, 16, 0.04);
    --hover-wash-2: rgba(17, 17, 16, 0.05);
    --fade-edge: rgba(17, 17, 16, 0.08);
    --fade-edge-clear: rgba(17, 17, 16, 0);
    --text: #111110;
    --text-2: #55554e;
    --text-3: #62625b;
    --text-dim: #62625b;
    --accent-hover: #b8e622;
    --accent-ink: #4a5e00;
    --accent-ink-hover: #364500;
    --accent-border: #5b7300;
    --accent-border-hover: #4a5e00;
    --selected-ring: inset 0 0 0 1px #5b7300;
    --accent-soft: rgba(74, 94, 0, 0.08);
    --accent-line: #6f8a14;
    --focus: #4a5e00;
    --selection: rgba(198, 244, 50, 0.6);
    --link-line: rgba(17, 17, 16, 0.5);
    --warn: #855400;
    --warn-soft: rgba(133, 84, 0, 0.07);
    --warn-line: rgba(133, 84, 0, 0.4);
    --unknown-line: rgba(17, 17, 16, 0.35);
    --nl-panel: #0a0a0a;
    --nl-panel-radius: var(--radius-panel);
    --glow-hero: radial-gradient(40% 50% at 70% 10%, rgba(198, 244, 50, 0.12), transparent 70%);
    --shadow-menu: 0 12px 32px rgba(17, 17, 16, 0.12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafaf7;
  --bg-clear: rgba(250, 250, 247, 0);
  --surface-1: #ffffff;
  --surface-2: #efefe9;
  --border: #e3e3dc;
  --border-strong: #d0d0c7;
  --border-input: #85857c;
  --hover-line: #a3a399;
  --hover-line-strong: #a3a399;
  --input-line-hover: #66665e;
  --hover-wash: rgba(17, 17, 16, 0.04);
  --hover-wash-2: rgba(17, 17, 16, 0.05);
  --fade-edge: rgba(17, 17, 16, 0.08);
  --fade-edge-clear: rgba(17, 17, 16, 0);
  --text: #111110;
  --text-2: #55554e;
  --text-3: #62625b;
  --text-dim: #62625b;
  --accent-hover: #b8e622;
  --accent-ink: #4a5e00;
  --accent-ink-hover: #364500;
  --accent-border: #5b7300;
  --accent-border-hover: #4a5e00;
  --selected-ring: inset 0 0 0 1px #5b7300;
  --accent-soft: rgba(74, 94, 0, 0.08);
  --accent-line: #6f8a14;
  --focus: #4a5e00;
  --selection: rgba(198, 244, 50, 0.6);
  --link-line: rgba(17, 17, 16, 0.5);
  --warn: #855400;
  --warn-soft: rgba(133, 84, 0, 0.07);
  --warn-line: rgba(133, 84, 0, 0.4);
  --unknown-line: rgba(17, 17, 16, 0.35);
  --nl-panel: #0a0a0a;
  --nl-panel-radius: var(--radius-panel);
  --glow-hero: radial-gradient(40% 50% at 70% 10%, rgba(198, 244, 50, 0.12), transparent 70%);
  --shadow-menu: 0 12px 32px rgba(17, 17, 16, 0.12);
}

/* ---------------------------------------------------------------------------
   Base */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover,
a:focus-visible {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-ink);
}
.link-accent {
  color: var(--accent-ink);
}
.link-accent:hover {
  color: var(--accent-ink-hover);
}

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

::selection {
  background: var(--selection);
  color: var(--text);
}

h1,
h2,
h3 {
  font-weight: var(--weight-semibold);
  line-height: var(--lh-heading);
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--track-h1);
  margin: 0 0 var(--space-5);
}
h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--track-h2);
  margin: var(--space-8) 0 var(--space-4);
}
h3 {
  font-size: var(--fs-h3);
  letter-spacing: var(--track-h3);
  margin: 0 0 var(--space-3);
}

p,
li {
  text-wrap: pretty;
}
p {
  margin: 0 0 var(--space-4);
}
main p,
main li {
  max-width: var(--measure);
}
ul,
ol {
  padding-left: 1.25rem;
}
li + li {
  margin-top: var(--space-1);
}
li::marker {
  color: var(--text-3);
}

strong {
  font-weight: var(--weight-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-2);
  border: var(--hairline);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-sm);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--text-3);
}
.small {
  font-size: var(--fs-small);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-text-on);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}
.skip-link:focus {
  top: var(--space-3);
  color: var(--accent-text-on);
}

/* ---------------------------------------------------------------------------
   Header */

.site-header {
  border-bottom: var(--hairline);
  background: var(--bg);
  position: relative;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 3.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: var(--weight-semibold);
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  min-height: 2.75rem;
}
.brand:hover {
  color: var(--text);
}
.brand-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}
.nav {
  list-style: none;
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
}
.nav li + li {
  margin-top: 0;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
}
.nav a:hover {
  color: var(--text);
}
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-menu {
  display: none;
  position: relative;
}
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  color: var(--text);
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: var(--hairline-strong);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur) var(--ease);
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary:hover,
.nav-menu[open] summary {
  border-color: var(--hover-line);
}
.nav-menu .nav {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  flex-direction: column;
  min-width: 13rem;
  padding: var(--space-2);
  background: var(--surface-1);
  border: var(--hairline-strong);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-menu);
}
.nav-menu .nav a {
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  padding: 0.5rem 0.75rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Theme button (Auto / Light / Dark). Rendered hidden; theme.js shows it. Shows the current mode's icon. */
.theme-toggle,
.theme-toggle:hover {
  flex: none;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  border: var(--hairline-strong);
  color: var(--text-2);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--hover-line);
}
.theme-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.theme-toggle[data-mode="auto"] .theme-icon-auto,
.theme-toggle[data-mode="light"] .theme-icon-light,
.theme-toggle[data-mode="dark"] .theme-icon-dark {
  display: block;
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .nav-menu {
    display: block;
  }
}

/* ---------------------------------------------------------------------------
   Page structure */

/* main.wrap: beats .wrap's padding shorthand so the bottom gap above the newsletter band applies. */
main.wrap {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-4);
  max-width: var(--measure);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
}

/* Landing hero: the only place with a glow */
.hero-home {
  max-width: 56rem;
  padding: var(--space-8) 0 var(--space-6);
}
.hero-home::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--space-6)) -50vw 0;
  background: var(--glow-hero);
  pointer-events: none;
}
.hero-home h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  margin-bottom: var(--space-5);
  max-width: 15ch;
}
.hero-home .lead {
  font-size: 1.25rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-6) 0;
}
.hero-link {
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.hero-checked {
  font-size: var(--fs-small);
  color: var(--text-3);
  margin: 0;
}
.hero-checked time {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.section {
  margin-top: var(--space-section);
}
.section > h2:first-child {
  margin-top: 0;
}
.section-intro {
  color: var(--text-2);
}
/* The rule behind a list or summary, in one small muted line. */
.rule-line {
  font-size: var(--fs-small);
  color: var(--text-3);
  margin: 0 0 var(--space-4);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-bottom: var(--space-4);
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
  margin: 0 0 var(--space-3);
}

.notice {
  color: var(--text);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  max-width: var(--measure);
}
.notice strong {
  color: var(--warn);
}
.panel {
  border: var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--surface-1);
  padding: var(--space-5);
  max-width: 40rem;
}
.note {
  color: var(--text-2);
  border-left: 2px solid var(--border-strong);
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  max-width: var(--measure);
}
.disclosure {
  font-size: var(--fs-small);
  color: var(--text-2);
  border-left: 2px solid var(--warn-line);
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
}
.disclaimer {
  font-size: var(--fs-small);
  color: var(--text-2);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: var(--space-3) 0;
  margin: var(--space-5) 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-3);
}
.breadcrumbs li + li {
  margin-top: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin: 0 var(--space-2) 0 var(--space-1);
  color: var(--text-dim);
}
.breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   Buttons */

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: var(--accent-text-on);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}
.button:hover,
button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-border-hover);
  color: var(--accent-text-on);
}
.button-secondary,
.button.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.button-secondary:hover,
.button.button-secondary:hover {
  background: var(--hover-wash);
  border-color: var(--hover-line-strong);
  color: var(--text);
}
.button-sm {
  padding: 0.35rem 0.85rem;
  font-size: var(--fs-xs);
}
button:disabled,
button:disabled:hover {
  cursor: not-allowed;
  background: transparent;
  color: var(--text-3);
  border-color: var(--border-strong);
}
.text-button,
.text-button:hover {
  background: none;
  border: 0;
  min-height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: var(--fs-small);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.text-button:hover {
  color: var(--text);
  text-decoration-color: var(--text-2);
}

/* ---------------------------------------------------------------------------
   Form controls */

input[type="search"],
input[type="email"],
select {
  width: 100%;
  font: inherit;
  font-size: var(--fs-small);
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 0.55rem 0.75rem;
  min-height: 2.5rem;
  transition: border-color var(--dur) var(--ease);
}
input[type="search"]:hover,
input[type="email"]:hover:not(:disabled),
select:hover {
  border-color: var(--input-line-hover);
}
input::placeholder {
  color: var(--text-3);
  opacity: 1;
}
input:focus-visible,
select:focus-visible {
  outline-offset: 1px;
  border-color: transparent;
}
input:disabled {
  cursor: not-allowed;
  color: var(--text-3);
}
select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}
select option {
  background: var(--surface-1);
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   Badges */

.badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  white-space: nowrap;
  color: var(--text-2);
  vertical-align: 0.06em;
}
.badge-yes {
  color: var(--success);
  border-color: var(--accent-line);
}
.badge-no {
  color: var(--text-2);
}
.badge-trial {
  color: var(--warn);
  border-color: var(--warn-line);
}
.badge-unknown {
  color: var(--unknown);
  border-color: var(--unknown-line);
  border-style: dashed;
}
.badge-neutral {
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   Filters toolbar */

.filters {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: var(--space-4) 0;
  margin: 0 0 var(--space-3);
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) auto minmax(11rem, 0.8fr);
  gap: var(--space-4) var(--space-5);
  align-items: end;
}
.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.filter-title {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
  margin-bottom: var(--space-2);
  padding: 0;
}

/* Native radios/checkboxes stay in the DOM (keyboard + screen reader semantics) and
   are visually replaced by the pill that follows them. */
.toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
}
.segmented label {
  position: relative;
}
.segmented span {
  display: block;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented span:hover {
  color: var(--text);
}
.segmented .toggle-input:checked + span {
  background: var(--accent);
  color: var(--accent-text-on);
  box-shadow: var(--selected-ring);
}
.segmented .toggle-input:focus-visible + span,
.chip .toggle-input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.chip-group {
  border: 0;
  margin: var(--space-4) 0 0;
  padding: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-2) var(--space-4);
  align-items: start;
}
.chip-group legend {
  float: left;
  padding-top: 0.45rem;
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  position: relative;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border: var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.chip span::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  border: 1px solid var(--text-3);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip span:hover {
  color: var(--text);
  border-color: var(--hover-line);
}
.chip .toggle-input:checked + span {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.chip .toggle-input:checked + span::before {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.filter-notes {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-3);
  display: grid;
  gap: var(--space-1);
}
.filter-notes li + li {
  margin-top: 0;
}

.filter-status {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}
.result-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-panel);
  color: var(--text-2);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Tables */

/* The wrapper scrolls sideways, never the page. position: relative makes it the containing
   block for absolutely positioned descendants (the .sr-only labels in cells), which would
   otherwise escape its overflow and widen the page. */
.table-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: var(--space-3);
  border: var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-small);
}
.data-table caption {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  color: var(--text-3);
  caption-side: top;
  border-bottom: var(--hairline);
}
/* Caption text stays in view (and wraps to the visible width) while the table scrolls sideways. */
.caption-text {
  display: block;
  position: sticky;
  left: var(--space-4);
  max-width: calc(100vw - 2 * var(--gutter) - 2 * var(--space-4) - 2px);
}
.data-table th,
.data-table td {
  padding: 0.6rem var(--space-4);
  border-bottom: var(--hairline);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  background: var(--surface-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
  white-space: nowrap;
  vertical-align: bottom;
}
.data-table tbody th {
  font-weight: var(--weight-medium);
}
.data-table tbody tr:last-child > * {
  border-bottom: 0;
}
.data-table tbody > tr > * {
  transition: background-color var(--dur-fast) var(--ease);
}
.data-table tbody tr:hover > * {
  background: var(--surface-1);
}
.data-table tbody th a {
  text-decoration-color: var(--border-strong);
}
.data-table tbody th a:hover {
  text-decoration-color: var(--accent-ink);
}
.data-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Sticky first column */
.compare th:first-child,
.matrix th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  box-shadow: inset -1px 0 0 var(--border);
  min-width: 13rem;
}
.compare thead th:first-child,
.matrix thead th:first-child {
  z-index: 3;
  background: var(--surface-1);
}
.compare tbody tr:hover th:first-child,
.matrix tbody tr:hover th:first-child {
  background: var(--surface-1);
}
.compare td,
.compare tbody th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  vertical-align: middle;
}
.compare .api {
  min-width: 13rem;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.tick-head {
  text-align: center !important;
}
.tick {
  text-align: center !important;
  font-family: var(--font-mono);
}
.tick-yes {
  color: var(--text);
}
.tick-unknown {
  color: var(--text-3);
}
.tick-no {
  color: var(--text-dim);
}
.legend {
  color: var(--text-3);
  font-size: var(--fs-small);
  margin: var(--space-3) 0;
}
.legend .tick-yes,
.legend .tick-unknown,
.legend .tick-no {
  font-family: var(--font-mono);
}
.legend-chip {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  margin-right: 0.2em;
}

.matrix thead th a {
  color: var(--text-2);
  text-decoration: none;
  /* 44px tap target; the negative margin keeps the visual size and layout unchanged. */
  display: inline-block;
  padding: 0.85rem 0.5rem;
  margin: -0.85rem -0.5rem;
}
.matrix thead th a:hover {
  color: var(--text);
}
.matrix .cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  white-space: nowrap;
}
.cell-yes {
  color: var(--success);
}
.cell-no {
  color: var(--text-dim);
}
.cell-unknown {
  color: var(--text-3);
}

.pricing {
  min-width: 32rem;
}
.pricing th,
.pricing td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.pricing th:nth-child(1) {
  width: 24%;
}
.pricing th:nth-child(2) {
  width: 30%;
}
.pricing td:nth-child(3) {
  color: var(--text-2);
}
.pricing .price-short {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   Provider page */

.provider,
.guide {
  display: block;
  max-width: 60rem;
}
.provider-head {
  padding: var(--space-5) 0 var(--space-2);
}
.provider-head .lead {
  margin-bottom: var(--space-3);
}
.keyfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--space-5) 0 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.keyfacts > div {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  min-width: 0;
}
.keyfacts > div + div {
  border-left: var(--hairline);
  padding-left: var(--space-4);
}
.keyfacts dt,
.meta-list dt,
.types dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
}
.keyfacts dd {
  margin: var(--space-2) 0 0;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.keyfacts dd .muted {
  display: block;
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
  font-family: var(--font-sans);
}
.keyfacts .fact-small {
  font-size: var(--fs-mono);
}

.meta-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  font-size: var(--fs-small);
}
.meta-list > div {
  display: contents;
}
.meta-list dt {
  padding-top: 0.15rem;
}
.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-2);
}

/* Sections are separated by whitespace, not rules. */
.provider > section,
.guide > section:not(.hero) {
  margin-top: var(--space-8);
}
.provider > section > h2:first-child,
.guide > section:not(.hero) > h2:first-child {
  margin-top: 0;
}

.used-in {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-small);
  color: var(--text-2);
}

.league-flags {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  column-gap: var(--space-6);
  margin: var(--space-4) 0;
}
.league-flags li,
.types > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: var(--hairline);
  margin: 0;
}
.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  column-gap: var(--space-6);
  margin: var(--space-4) 0;
}
.types dd {
  margin: 0;
  text-align: right;
  font-size: var(--fs-small);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.sources {
  list-style: none;
  padding: 0;
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}
.sources a {
  color: var(--text-2);
  text-decoration-color: var(--border-strong);
}
.sources a:hover {
  color: var(--text);
}
/* Per fact group "Checked <date> · Sources" lines */
.check-line,
.check-note {
  font-size: var(--fs-small);
  color: var(--text-3);
  max-width: var(--measure);
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
}
.check-note {
  margin-bottom: var(--space-2);
}
.check-line a {
  color: var(--text-2);
  text-decoration-color: var(--border-strong);
}
.check-line a:hover {
  color: var(--text);
}
.check-line time,
.check-status time {
  font-size: var(--fs-mono);
}
.source-groups {
  margin: var(--space-4) 0 0;
}
.source-groups > div {
  padding: var(--space-2) 0;
  border-bottom: var(--hairline);
}
.source-groups dt {
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
}
.check-status {
  font-weight: var(--weight-regular);
  color: var(--text-3);
  margin-left: var(--space-2);
}
.source-groups dd {
  margin: var(--space-1) 0 0;
}
.source-groups .sources {
  margin: 0;
}
.freshness {
  font-size: var(--fs-small);
  color: var(--text-3);
  margin: 0 0 var(--space-3);
}
.dagger {
  color: var(--text-3);
  margin-left: 0.15em;
}
.verified {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text);
  margin-top: var(--space-4);
}

/* Build with AI prompt panel */
.prompt {
  border: var(--hairline-strong);
  border-radius: var(--radius-panel);
  background: var(--surface-1);
  margin: var(--space-4) 0;
  overflow: hidden;
}
.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border-bottom: var(--hairline);
  background: var(--surface-2);
  min-height: 2.75rem;
}
.prompt-head h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
}
.copy-btn {
  padding: 0 1rem;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.copy-btn:hover {
  background: var(--hover-wash-2);
  border-color: var(--hover-line-strong);
  color: var(--text);
}
.copy-btn[data-state="copied"],
.copy-btn[data-state="copied"]:hover {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.prompt-text {
  margin: 0;
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  border-radius: 0;
}

/* ---------------------------------------------------------------------------
   Lists, rows and cards */

/* Hairline rows: the default way to list things. */
.rows {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  border-top: var(--hairline);
}
.rows > li {
  margin: 0;
  padding: var(--space-4) 0;
  border-bottom: var(--hairline);
}
.rows h2,
.rows h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-h3);
  letter-spacing: var(--track-h3);
}
.rows h2 a,
.rows h3 a {
  text-decoration: none;
}
.rows h2 a:hover,
.rows h3 a:hover {
  text-decoration: underline;
}
.rows p {
  margin: var(--space-1) 0 0;
  color: var(--text-2);
}
.row-meta {
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* Link rows with an arrow (guide index on the homepage) */
.link-rows {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  column-gap: var(--space-6);
}
.link-rows li {
  margin: 0;
  border-bottom: var(--hairline);
}
.link-rows a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.link-rows a span:last-child {
  color: var(--text-3);
  transition: color var(--dur-slow) var(--ease);
}
.link-rows a:hover span:last-child {
  color: var(--accent-ink);
}

/* Cards: only where they genuinely group things (guide picks). */
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
  align-items: start;
}
.card {
  border: var(--hairline);
  border-radius: var(--radius-panel);
  padding: var(--space-5);
  background: var(--surface-1);
  margin: 0;
}
.card h3 {
  font-size: 1.125rem;
}
.card h3 a {
  text-decoration: none;
}
.card h3 a:hover {
  text-decoration: underline;
}
.card p {
  margin: var(--space-2) 0;
}
.picks {
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}
/* Even pick counts go two-up so a 3-column row never leaves one card alone. */
.picks-even {
  grid-template-columns: repeat(auto-fill, minmax(min(24rem, 100%), 1fr));
}
.facts-list {
  padding-left: 1.1rem;
  margin: var(--space-3) 0;
  font-size: var(--fs-small);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.caveats {
  border-top: var(--hairline);
  padding-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-2);
  margin: var(--space-3) 0;
}
.caveats ul {
  margin: var(--space-1) 0 0;
  padding-left: 1.1rem;
}
.caveat-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--warn);
  margin: 0 !important;
}

.link-list {
  columns: 2 16rem;
  column-gap: var(--space-6);
}
.link-list li {
  break-inside: avoid;
}

.checklist {
  list-style: none;
  padding: 0;
  border-top: var(--hairline);
}
.checklist li {
  position: relative;
  margin: 0;
  padding: var(--space-3) 0 var(--space-3) 1.75rem;
  border-bottom: var(--hairline);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
}
.steps li {
  margin-bottom: var(--space-2);
}

.changelog {
  list-style: none;
  padding: 0;
  border-top: var(--hairline);
  max-width: var(--measure);
}
.changelog li {
  margin: 0;
  padding: var(--space-5) 0;
  border-bottom: var(--hairline);
}
.changelog h2 {
  font-size: var(--fs-h3);
  letter-spacing: var(--track-h3);
  margin: 0 0 var(--space-2);
}
.changelog time {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
  color: var(--text-2);
  margin-bottom: var(--space-1);
}
.changelog p {
  margin: 0;
  color: var(--text-2);
}

/* ---------------------------------------------------------------------------
   Newsletter: beehiiv embed (an iframe) + an always-visible fallback link.
   No box of our own around the form; min-height reserves room so the page doesn't jump. */

.nl-signup {
  width: 100%;
  max-width: 30rem;
  min-width: 0;
}
.nl-embed {
  min-height: 5.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--nl-panel);
  border-radius: var(--nl-panel-radius);
}
.nl-embed iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  background: transparent;
}
.nl-embed noscript a,
.nl-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.nl-fallback {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-small);
}
.nl-fallback a {
  color: var(--text-2);
  text-decoration-color: var(--border-strong);
}
.nl-fallback a:hover {
  color: var(--text);
}
.nl-page {
  margin-top: var(--space-6);
}
.nl-page h2 {
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-3);
}

.nl-band {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.nl-band-inner {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  align-items: center;
  gap: var(--space-3) var(--space-6);
}
.nl-band-head,
.nl-band-more {
  margin: 0;
}
.nl-band-more a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.nl-band-title {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
  margin-bottom: var(--space-1);
}
.nl-band-text {
  display: block;
  font-size: 1.125rem;
  font-weight: var(--weight-medium);
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   Plain-English summary box (provider pages) */

.summary-box {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  margin: 0 0 var(--space-2);
  padding: var(--space-5);
  background: var(--surface-1);
  border: var(--hairline);
  border-radius: var(--radius-panel);
}
.summary-box > div {
  display: contents;
}
.summary-box dt {
  font-weight: var(--weight-medium);
  color: var(--text-2);
}
.summary-box dd {
  margin: 0;
  max-width: var(--measure);
}

/* Collapsed detail sections (data types, sources) */
.more summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
}
.more summary:hover,
.more[open] summary {
  color: var(--text);
}
.more h3 {
  margin-top: var(--space-6);
}

/* ---------------------------------------------------------------------------
   Home: pick by what you need */

.need-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: var(--space-5) 0 var(--space-6);
}
.need-tabs li {
  margin: 0;
}
.need-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: var(--hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.need-tabs a:hover {
  color: var(--text);
  border-color: var(--hover-line);
}
.need-tabs a[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--hover-line);
}
.need-panel + .need-panel {
  margin-top: var(--space-7);
}
/* With tabs on, the tab names the panel, so its heading is only for screen readers. */
.tabs-on .need-panel > h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tabs-on .need-panel + .need-panel {
  margin-top: 0;
}
.need-panel:focus-visible {
  outline-offset: 6px;
}
.need-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: var(--space-4);
}
.need-cards > li {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--surface-1);
  border: var(--hairline);
  border-radius: var(--radius-panel);
}
.need-cards h4 {
  font-size: 1.1875rem;
  letter-spacing: var(--track-h3);
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-2);
}
.need-cards h4 a {
  text-decoration: none;
}
.need-cards h4 a:hover {
  text-decoration: underline;
}
.need-summary {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.card-facts {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-small);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-1) var(--space-4);
}
.card-facts > div {
  display: contents;
}
.card-facts dt {
  color: var(--text-3);
}
.card-facts dd {
  margin: 0;
}
.card-link {
  margin: auto 0 0;
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
}
.card-link a {
  display: inline-block;
  line-height: 2.75rem;
}
.compare-all {
  margin: var(--space-6) 0 0;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.plain-list li + li {
  margin-top: var(--space-2);
}
.plain-list time {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-5) var(--space-6);
}
.guide-list li {
  margin: 0;
}
.guide-list a {
  font-weight: var(--weight-medium);
}
.guide-list span {
  display: block;
  color: var(--text-2);
  font-size: var(--fs-small);
  margin-top: var(--space-1);
}

/* Compare: extra columns hide behind "Show more columns" once JS runs. */
.cols-compact .col-more {
  display: none;
}

/* Compare on mobile (mobile-first): provider cards, with the full table behind "Show full table".
   From 641px the table shows and the cards, toggle and swipe hint go away. Without JS the toggle
   is a link to #full-table (:target); with JS it toggles .is-open. */
.compare-cards {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-5);
  display: grid;
  gap: var(--space-3);
}
.compare-cards > li {
  margin: 0;
  max-width: none;
  padding: var(--space-2) var(--space-4) 0;
  background: var(--surface-1);
  border: var(--hairline);
  border-radius: var(--radius-panel);
}
.cc-name {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--track-h3);
}
.cc-name a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}
.compare-cards .card-facts {
  margin-bottom: 0;
}
/* "Show full table" always shows every column, so the column toggle only exists from 641px. */
.filter-status [data-columns] {
  display: none;
}
.show-table {
  margin: 0 0 var(--space-5);
}
.show-table .button {
  width: 100%;
}
.full-table {
  display: none;
}
.full-table:not(.has-toggle):target,
.full-table.is-open {
  display: block;
}
.swipe-hint {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-2);
  text-align: right;
}
.data-download {
  font-size: var(--fs-small);
  color: var(--text-2);
}
.data-download a {
  display: inline-block;
  padding: 0.6rem 0.25rem;
}
@media (min-width: 641px) {
  .compare-cards,
  .show-table,
  .swipe-hint {
    display: none;
  }
  .full-table {
    display: block;
  }
  .filter-status [data-columns]:not([hidden]) {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------------------
   Sponsor bar: small labelled ad tiles at the bottom of a page */

.sponsor-bar {
  margin: var(--space-section) 0 0;
  min-width: 0;
}
.sponsor-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--text-3);
  margin: 0 0 var(--space-3);
}
.sponsor-tiles {
  list-style: none;
  padding: 0 0 var(--space-1);
  margin: 0;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.sponsor-tiles li {
  margin: 0;
  flex: 1 0 16rem;
  max-width: 22rem;
}
.sponsor-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: var(--hairline);
  border-radius: var(--radius-panel);
  text-decoration: none;
  color: var(--text);
  height: 100%;
}
a.sponsor-tile:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-1);
}
.sponsor-logo {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-input);
  border-radius: var(--radius-input);
  color: var(--text-3);
  font-size: 1.125rem;
}
.sponsor-text {
  display: grid;
  min-width: 0;
}
.sponsor-name {
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
}
.sponsor-pitch {
  font-size: 0.875rem;
  color: var(--text-2);
}
.sponsor-preview {
  margin: var(--space-4) 0 0;
  max-width: 22rem;
}

/* ---------------------------------------------------------------------------
   Footer */

.site-footer {
  color: var(--text-3);
  font-size: var(--fs-small);
}
.footer-inner {
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-4) var(--space-7);
}
.site-footer p {
  margin: 0 0 var(--space-2);
  max-width: var(--measure);
}
.site-footer a {
  color: var(--text-2);
  text-decoration-color: var(--border-strong);
}
.site-footer a:hover {
  color: var(--text);
}
/* Inline links in footer sentences get a 44px-tall hit area without changing the line box. */
.site-footer p a {
  padding: 0.8rem 0;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}
.footer-links li {
  margin: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.footer-brand {
  color: var(--text-2);
}

/* ---------------------------------------------------------------------------
   Responsive */

@media (max-width: 900px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar .field-search {
    grid-column: 1 / -1;
  }
  .keyfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .keyfacts > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .keyfacts > div:nth-child(n + 3) {
    border-top: var(--hairline);
  }
  .nl-band-inner,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  :root {
    --space-section: 4rem;
  }
  .hero-home {
    padding: var(--space-7) 0 var(--space-5);
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
  /* Need tabs scroll sideways inside their own row instead of wrapping into a block. */
  .need-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
  }
  .summary-box {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-4);
  }
  .summary-box > div + div dt {
    margin-top: var(--space-3);
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .segmented {
    display: flex;
  }
  .segmented label {
    flex: 1 1 0;
  }
  .segmented span {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .chip-group {
    grid-template-columns: 1fr;
  }
  .chip-group legend {
    float: none;
    padding-top: 0;
  }
  /* 44px hit area: the label extends past the pill, the extra row gap keeps hit areas apart. */
  .chips {
    row-gap: var(--space-3);
  }
  .chip {
    padding: 5px 0;
    margin: -5px 0;
  }
  /* Right-edge fade while there is more table to the right; the "local" cover hides it at the end. */
  .table-wrap {
    background: linear-gradient(to left, var(--bg) 40%, var(--bg-clear)) right / 2.5rem 100% no-repeat local,
      linear-gradient(to left, var(--fade-edge), var(--fade-edge-clear)) right / 1.5rem 100% no-repeat scroll,
      var(--bg);
  }
  .compare th:first-child,
  .matrix th:first-child {
    min-width: 8.5rem;
    max-width: 9.5rem;
  }
  .data-table th,
  .data-table td {
    padding: 0.55rem 0.6rem;
  }
  /* Pricing fits the viewport: three wrapping columns, no sideways scroll. */
  .pricing {
    min-width: 0;
  }
  .pricing th:nth-child(1),
  .pricing th:nth-child(2) {
    width: 30%;
  }
  /* Key facts stay two-up with tighter spacing so the block fits in about one screen. */
  .keyfacts {
    margin-top: var(--space-4);
  }
  .keyfacts > div,
  .keyfacts > div + div {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
  }
  .keyfacts > div:nth-child(even) {
    padding-left: var(--space-3);
  }
  .keyfacts dd {
    margin-top: var(--space-1);
  }
  .meta-list {
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-3);
  }
  .types dd {
    text-align: left;
  }
  .types > div {
    flex-direction: column;
    gap: var(--space-1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
