/* Theme tokens: light by default, dark under <html data-theme="dark"> (set before first paint by the inline script in Layout). Components only use these. */
:root {
  --bg: #f7f7f7; /* one step off white, so white cards read as layers */
  --card: #fff;
  --soft: #f5f5f5;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --ink: #171717; /* headings, titles, strong text */
  --text: #171717;
  --text-2: #404040;
  --muted: #737373;
  --placeholder: #a3a3a3;
  --btn: #171717;
  --btn-hover: #2e2e2e;
  --on-btn: #fff;
  --accent: #2563eb;
  --bar: #2563eb; /* chart mark, validated against the light surface */
  --green: #15803d;
  --red: #dc2626;
  --yes-bg: #f0fdf4;
  --no-bg: #fef2f2;
  --ring: rgba(0, 0, 0, 0.08);
  --dot: rgba(0, 0, 0, 0.09);
  --focus: rgba(23, 23, 23, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 24px 48px -16px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glow-warm: rgba(251, 186, 140, 0.6); /* hero sky: peach, blue, lavender */
  --glow-cool: rgba(147, 197, 253, 0.55);
  --glow-violet: rgba(196, 181, 253, 0.45);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --card: #191919;
  --soft: #212121;
  --line: #242424;
  --line-2: #2e2e2e;
  --ink: #fafafa;
  --text: #ebebeb;
  --text-2: #c2c2c2;
  --muted: #9b9b9b;
  --placeholder: #6e6e6e;
  --btn: #fafafa;
  --btn-hover: #e0e0e0;
  --on-btn: #171717;
  --accent: #60a5fa;
  --bar: #3b82f6; /* chart mark, validated against the dark card */
  --green: #4ade80;
  --red: #f87171;
  --yes-bg: rgba(34, 197, 94, 0.12);
  --no-bg: rgba(239, 68, 68, 0.12);
  --ring: rgba(255, 255, 255, 0.1);
  --dot: rgba(255, 255, 255, 0.07);
  --focus: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  --glass: rgba(25, 25, 25, 0.72);
  --glow-warm: rgba(251, 146, 60, 0.1);
  --glow-cool: rgba(59, 130, 246, 0.16);
  --glow-violet: rgba(139, 92, 246, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.facet h2, .about h3, .foot h2 { font: 600 13px var(--sans); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2 { color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: -0.025em; }

/* ---------- frame ---------- */
main { max-width: 1380px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; width: calc(100% - 32px); max-width: 1348px; margin: 12px auto 0; padding: 10px 12px 10px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 600 17px var(--sans); letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.top nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; font-size: 14px; }
.top nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; transition: color 0.15s, background 0.15s; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--soft); font-weight: 500; }
/* Segmented sun | moon; the active half is the current theme. Hidden until the script has run: without JS it can't work. */
.theme { display: none; gap: 2px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; }
[data-theme] .theme { display: inline-flex; }
.theme svg { box-sizing: content-box; width: 14px; height: 14px; padding: 5px; border-radius: 999px; }
[data-theme="light"] .theme .sun, [data-theme="dark"] .theme .moon { background: var(--soft); color: var(--ink); }
main { padding-top: 20px; padding-bottom: 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 32px 56px; align-items: center;
  padding: clamp(28px, 4.5vw, 52px) clamp(20px, 4.5vw, 56px); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px;
  /* soft sky glows (bottom right, behind the snapshot) over a dot grid that fades out from the top-right corner */
  background:
    radial-gradient(55% 80% at 92% 104%, var(--glow-warm), transparent 72%),
    radial-gradient(50% 75% at 58% 112%, var(--glow-cool), transparent 72%),
    radial-gradient(45% 70% at 100% 0%, var(--glow-violet), transparent 72%),
    radial-gradient(90% 130% at 100% 0%, transparent, var(--card) 75%),
    radial-gradient(var(--dot) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--card);
  box-shadow: var(--shadow-sm);
}
h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); }
.intro { color: var(--muted); font-size: 17px; max-width: 68ch; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; margin-bottom: 18px; padding: 0 8px 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; box-shadow: var(--shadow-sm); }
.pill:hover { background: var(--soft); }
.pill .chev { rotate: -90deg; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-platforms a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none; box-shadow: var(--shadow-sm); }
.hero-platforms a:hover { background: var(--soft); }
.hero-platforms span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
/* pay snapshot: one headline figure, then median pay by field as a single-series bar list */
.snapshot { margin: 0; padding: 20px 20px 14px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); backdrop-filter: blur(14px) saturate(1.3); }
.snapshot figcaption, .snap-label { color: var(--muted); font-size: 13px; }
.figure { margin: 2px 0 0; color: var(--ink); font: 600 52px/1.05 var(--sans); letter-spacing: -0.03em; }
.figure small { margin-left: 2px; color: var(--muted); font-size: 20px; font-weight: 500; letter-spacing: 0; }
.range { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.snap-label { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.bars { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bars a { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); align-items: center; gap: 10px; min-height: 30px; margin: 0 -6px; padding: 0 6px; border-radius: 6px; color: var(--text); font-size: 13px; text-decoration: none; }
.bars a:hover, .bars a:focus-visible { background: var(--soft); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-area { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { flex: none; width: calc(var(--w) * (100% - 3.5em)); min-width: 4px; height: 8px; background: var(--bar); border-radius: 0 4px 4px 0; }

/* ---------- selects ---------- */
/* The closed control is styled everywhere. Chromium's customizable select (appearance: base-select) also styles the
   open list like the rest of the UI; other browsers keep their native list. */
select { appearance: none; padding-right: 30px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23898989' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; cursor: pointer; }
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: inline-flex; align-items: center; padding-right: 8px; background-image: none; }
  select::picker-icon {
    content: ""; flex: none; width: 14px; height: 14px; margin-left: auto; padding-left: 8px; background: var(--muted); transition: rotate 0.15s;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  select:open::picker-icon { rotate: 180deg; }
  /* open downward and flip only when it doesn't fit (Chromium defaults to whichever side has more room) */
  ::picker(select) { position-try-order: normal; margin: 4px 0; padding: 4px; max-height: min(320px, 60vh); scrollbar-width: thin; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); }
  option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: 14px; white-space: nowrap; cursor: pointer; }
  option:hover, option:focus-visible { background: var(--soft); color: var(--ink); outline: none; }
  option:checked { font-weight: 500; }
  .sort select::picker(select) { position-area: block-end span-inline-start; position-try-fallbacks: flip-block; } /* it sits at the right edge */
  option::checkmark { order: 1; margin-left: auto; padding-left: 12px; color: var(--ink); }
}

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px 24px; align-items: start; }
.toolbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); box-shadow: var(--shadow-sm); }
.search:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px var(--focus); }
.search input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; color: var(--text); font: 15px var(--sans); outline: none; }
.search input::placeholder { color: var(--placeholder); }
.search kbd { padding: 0 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 500 12px/20px var(--sans); }
.search:focus-within kbd { display: none; }
@media (hover: none) { .search kbd { display: none; } }
.saved-btn, .sort { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: 500 14px var(--sans); box-shadow: var(--shadow-sm); cursor: pointer; }
.saved-btn:hover { background: var(--soft); }
.sort span { color: var(--muted); font-weight: 400; }
.sort select { height: 32px; padding-left: 0; background-color: transparent; border: 0; color: var(--ink); font: 500 14px var(--sans); }
.saved-panel { position: absolute; z-index: 5; top: 50px; right: 0; width: min(420px, 100%); display: grid; gap: 2px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); }
.saved-panel[hidden] { display: none; }
.saved-panel a { padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.saved-panel a:hover { background: var(--soft); }
.saved-panel p { margin: 8px 10px; color: var(--muted); font-size: 14px; }

.side { position: sticky; top: 12px; min-width: 0; padding: 16px 16px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.ft { position: absolute; opacity: 0; pointer-events: none; }
.ft-label { display: none; }
.ft:focus-visible + .ft-label { outline: 2px solid var(--ink); outline-offset: 2px; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; color: var(--ink); font-weight: 600; font-size: 15px; }
.side-head a { color: var(--muted); font-size: 13px; text-decoration: none; }
.side-head a:hover { color: var(--ink); }
.facet { border-top: 1px solid var(--line); padding: 14px 0; }
.facet h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; letter-spacing: 0; }
.facet h2 small { font-weight: 400; color: var(--muted); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font: 600 10px var(--sans); }
.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.field select { width: 100%; min-width: 0; height: 36px; padding-left: 10px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 14px var(--sans); box-shadow: var(--shadow-sm); }
.check { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; cursor: pointer; }
.check input { appearance: none; display: grid; place-content: center; width: 16px; height: 16px; margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--shadow-sm); cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.check input::before { content: ""; width: 10px; height: 10px; background: var(--on-btn); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; scale: 0; transition: scale 0.12s; }
.check input:checked { background: var(--btn); border-color: var(--btn); }
.check input:checked::before { scale: 1; }
.check:hover input:not(:checked) { border-color: var(--muted); }
@media (forced-colors: active) { .check input { appearance: auto; } }
.check .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.apply-filters { margin-top: 8px; width: 100%; height: 36px; background: var(--btn); color: var(--on-btn); border: 0; border-radius: 6px; font: 500 14px var(--sans); }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.results-head h2 { margin: 0; font-size: 28px; }
.results-head h2 span { color: var(--muted); }
.elig-note { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.elig-note[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font-size: 13px; }
.chips a { color: var(--muted); text-decoration: none; }
.chips a:hover { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink) !important; font-weight: 500; box-shadow: var(--shadow-sm); }

/* ---------- table ---------- */
.table { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.row { border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > summary { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px 140px 32px 92px; gap: 16px; align-items: center; padding: 14px 20px; list-style: none; cursor: pointer; transition: background 0.15s; }
.row > summary::-webkit-details-marker { display: none; }
.row > summary:hover, .row[open] > summary { background: var(--soft); box-shadow: inset 2px 0 0 var(--ink); }
.row > summary:hover .chev { color: var(--ink); }
.c-platform { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.logo { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--c); color: #fff; font: 700 12px var(--sans); letter-spacing: -0.04em; box-shadow: inset 0 0 0 1px var(--ring); }
.c-role { display: grid; gap: 4px; min-width: 0; }
.c-role .title { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 600; }
.chev { flex: none; color: var(--muted); transition: transform 0.15s; }
.row[open] .chev { transform: rotate(180deg); }
.c-role .sub { overflow: hidden; font-size: 13px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.c-elig { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mark { display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 999px; }
.mark:empty { display: none; }
.mark.yes { color: var(--green); background: var(--yes-bg); }
.mark.no { color: var(--red); background: var(--no-bg); }
.flag { display: inline-block; width: 20px; height: 14px; border-radius: 2px; vertical-align: middle; box-shadow: 0 0 0 1px var(--ring); }
.flags { display: inline-flex; align-items: center; gap: 4px; }
.ww { display: inline-flex; align-items: center; gap: 6px; }

.c-pay { text-align: right; color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.save { display: grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.save:hover { background: var(--line); color: var(--ink); }
.save[aria-pressed="true"] { color: var(--ink); }
.save[aria-pressed="true"] path { fill: currentColor; }
.apply { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--btn); color: var(--on-btn); border-radius: 6px; font: 500 14px var(--sans); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow); transition: background 0.15s; }
.apply:hover { background: var(--btn-hover); }
.apply .ico { display: grid; place-items: center; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 12px 20px 20px 186px; background: var(--soft); }
.about h3 { margin: 12px 0 6px; }
.about .lists { columns: 2 220px; column-gap: 24px; margin-top: 12px; } /* short lists stack instead of waiting below a long one */
.about .lists section { break-inside: avoid; padding-bottom: 6px; }
.about .lists h3 { margin-top: 0; } /* margins collapse unevenly at column tops */
.about p { margin: 0 0 12px; max-width: 70ch; color: var(--text-2); }
.about p a { color: var(--accent); font-weight: 500; }
.about ul { margin: 0 0 8px; padding-left: 18px; color: var(--text-2); }
.about-side { display: grid; gap: 8px; align-self: start; margin-top: 12px; }
.actions { display: flex; gap: 8px; }
.actions .apply { flex: 1; }
.save-text { display: inline-flex; gap: 6px; width: auto; height: 36px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: 500 14px var(--sans); box-shadow: var(--shadow-sm); }
.description { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); font-size: 14px; white-space: pre-wrap; }
.facts { margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.empty { margin: 0; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty a { color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 8px; font-size: 14px; }
.pager a, .pager .current { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.pager a:hover { background: var(--soft); }
.pager .current { background: var(--btn); color: var(--on-btn); border-color: var(--btn); font-weight: 500; }
.pager .gap { color: var(--muted); }
.showing { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- data pages ---------- */
.scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
td a { color: var(--ink); text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
tr:last-child td { border-bottom: 0; }
h2 { font-size: 26px; margin: 36px 0 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.stats div { flex: 1 1 200px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; color: var(--ink); font: 600 26px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 13px; max-width: 80ch; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; width: calc(100% - 32px); max-width: 1348px; margin: 0 auto 16px; padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.foot-brand .note { margin: 12px 0 0; max-width: 36ch; }
.foot h2 { margin: 4px 0 12px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }

/* ---------- about, contact, privacy ---------- */
.prose { max-width: 70ch; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose a { color: var(--ink); }

/* ---------- motion (skipped when the visitor asks for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .row::details-content { block-size: 0; overflow: clip; transition: block-size 0.22s ease, content-visibility 0.22s allow-discrete; }
  .row[open]::details-content { block-size: auto; }
  .description.loading { animation: pulse 1.2s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.45; } }
.description.loading { color: var(--muted); }

/* ---------- hero stacks once the snapshot no longer fits beside the heading ---------- */
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- table rows as cards until the fixed columns fit beside the sidebar (~1240px) ---------- */
@media (max-width: 1240px) {
  .row > summary {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "platform pay pay" "role role role" "elig save apply";
    gap: 10px 8px; padding: 16px;
  }
  .c-platform { grid-area: platform; }
  .c-role { grid-area: role; }
  .c-elig { grid-area: elig; }
  .c-pay { grid-area: pay; align-self: center; }
  .save { grid-area: save; }
  .apply { grid-area: apply; }
  .about { grid-template-columns: minmax(0, 1fr); padding: 6px 16px 18px; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .top nav { order: 1; flex-wrap: nowrap; width: calc(100% + 10px); margin-left: -10px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 85%, transparent); } /* brand and theme toggle share the first row; links swipe */
  .top nav a { white-space: nowrap; }
  .theme { margin-left: auto; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; padding: 0 14px; }
  .ft-label { display: flex; align-items: center; gap: 8px; height: 44px; color: var(--ink); font-weight: 500; cursor: pointer; }
  .ft:not(:checked) ~ .side-body { display: none; }
  .ft:checked + .ft-label { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
  .side-head { display: none; }
  .facet:first-of-type { border-top: 0; }
  .figure { font-size: 44px; }
  .saved-panel { left: 0; right: auto; width: 100%; }
  .saved-btn, .sort { flex: 1 1 0; justify-content: center; }
}

/* ---------- phones: each field label sits above its bar so the bars keep their length ---------- */
@media (max-width: 560px) {
  .bars a { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 4px; padding-bottom: 4px; }
}
