/* NewGrad Radar public site. Neo-brutalist: warm paper, black ink, 2px outlines with hard
   offset shadows, one highlighter-yellow accent. No external requests: the display font is
   self-hosted (Space Grotesk, SIL OFL 1.1, fonts/OFL.txt); body text uses system fonts. */
@font-face {
  font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f4f1ea; --surface: #ffffff; --surface-2: #faf8f3; --surface-3: #ebe6da;
  --fg: #111111; --fg-2: #2e2b26; --muted: #57534a; --line: #dcd6c8; --line-strong: #b9b2a2;
  --ink: #111111; --shadow-c: #111111;
  --yellow: #ffe03a; --on-yellow: #111111; --blue: #2f5bea; --link: #2549c8;
  --band-bg: #111111; --band-label: #ffe03a; --band-value: #ffffff; --band-sub: #cfc9ba;
  --bar: #111111; --bar-soft: #968e7b; --track: #ebe6da; --peak: #ffe03a;
  --lvl-1: #d9d2c1; --lvl-2: #a39b88; --lvl-3: #625c4f; --lvl-4: #111111; --lvl-none: #f0d56a;
  --focus: #2f5bea;
  --radius: 8px; --radius-sm: 6px;
  --shadow: 4px 4px 0 var(--shadow-c); --shadow-sm: 3px 3px 0 var(--shadow-c);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #16140f; --surface: #1f1c16; --surface-2: #1b1913; --surface-3: #2a261e;
    --fg: #f3efe4; --fg-2: #ddd6c6; --muted: #b0a896; --line: #38332a; --line-strong: #585143;
    --ink: #e9e3d3; --shadow-c: #ffe03a;
    --blue: #9fb5ff; --link: #9fb5ff;
    --band-bg: #0b0a07; --band-label: #ffe03a; --band-value: #ffffff; --band-sub: #bdb5a3;
    --bar: #f3efe4; --bar-soft: #7d7562; --track: #2a261e;
    --lvl-1: #4a4538; --lvl-2: #7d7666; --lvl-3: #b5ad9b; --lvl-4: #f3efe4; --lvl-none: #a88f2a;
    --focus: #ffe03a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--fg); }
h1 { font-size: 2.6rem; line-height: 1.1; letter-spacing: -.025em; font-weight: 700;
  margin: 0 0 12px; }
h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700;
  margin: 44px 0 14px; }
h3 { font-size: 1.08rem; font-weight: 700; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 1.3em; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--on-yellow);
  padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--radius); z-index: 20;
  font-weight: 700; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.hl { background: var(--yellow); color: var(--on-yellow); padding: 0 .14em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* header and footer */
.site-header { background: var(--surface); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; min-height: 66px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg);
  font: 700 1.22rem/1.2 var(--display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; width: 22px; height: 22px; padding: 4px; box-sizing: content-box;
  color: var(--on-yellow); background: var(--yellow); border: 2px solid var(--ink);
  border-radius: var(--radius-sm); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -8px; }
.nav a { color: var(--fg); padding: 5px 10px; border: 2px solid transparent;
  border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.nav a:hover { border-color: var(--ink); text-decoration: none; }
.nav a[aria-current=page] { background: var(--yellow); color: var(--on-yellow);
  border-color: var(--ink); }
main.wrap { padding-top: 40px; padding-bottom: 24px; min-height: 60vh; }
.site-footer { border-top: 2px solid var(--ink); background: var(--surface); margin-top: 56px;
  padding: 24px 0 40px; font-size: .84rem; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--fg); text-decoration: underline; }

/* hero, stat blocks, cards */
.hero { margin-bottom: 24px; }
.lede { color: var(--fg-2); font-size: 1.06rem; max-width: 64ch; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px;
  margin: 22px 0 8px; }
.stat { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.stat .label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); }
.stat .value { font: 700 1.9rem/1.2 var(--display); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .sub { font-size: .8rem; color: var(--muted); }
/* the home page's four numbers: one black band */
.stats.band { gap: 0; background: var(--band-bg); border: 2px solid var(--ink);
  border-radius: var(--radius); margin-top: 28px; overflow: hidden; }
.band .stat { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 22px;
  border-left: 1px solid #3a3730; }
.band .stat:first-child { border-left: 0; }
.band .stat .label { color: var(--band-label); }
.band .stat .value { color: var(--band-value); font-size: 2.3rem; }
.band .stat .sub { color: var(--band-sub); }
.card .stat { box-shadow: var(--shadow-sm); }
.card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); }
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.panel.pad { padding: 18px 20px; }
.crumb { font-size: .9rem; font-weight: 600; margin-bottom: 16px; display: inline-block; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem;
  margin: 4px 0 0; padding: 0; list-style: none; }
.note { border: 2px solid var(--ink); border-left-width: 6px; background: var(--surface);
  padding: 10px 14px; border-radius: var(--radius); color: var(--fg-2); font-size: .88rem; }
.todo { border-left-color: #c78a00; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 36px; }
.prose li { margin-bottom: 6px; }
.prose dt { font-weight: 700; margin-top: 14px; }
.prose dd { margin: 2px 0 0; color: var(--fg-2); }

/* chips */
.chip { display: inline-flex; align-items: center; padding: 0 7px; border-radius: var(--radius-sm);
  font-size: .72rem; font-weight: 700; line-height: 1.6; letter-spacing: .02em;
  background: var(--surface); color: var(--fg); border: 1.5px solid var(--ink); white-space: nowrap; }
.chip.remote { color: var(--link); border-color: currentColor; }
.chip.new { background: var(--yellow); color: var(--on-yellow); border-color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em; }
.chip.peak { background: var(--yellow); color: var(--on-yellow); }

/* filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 14px; padding: 18px; margin: 8px 0 18px; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-2); }
input[type=search], select { height: 42px; padding: 0 12px; font: inherit; font-size: .95rem;
  color: var(--fg); background: var(--surface-2); border: 2px solid var(--ink);
  border-radius: var(--radius-sm); width: 100%; min-width: 0; }
input[type=search]::placeholder { color: var(--muted); }
input[type=search]:focus-visible, select:focus-visible { border-radius: var(--radius-sm); }
.toggles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface);
  font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--ink); margin: 0; width: 16px; height: 16px; }
.toggle:has(input:checked) { background: var(--yellow); color: var(--on-yellow);
  box-shadow: var(--shadow-sm); }
.toggle:has(input:checked) input { accent-color: #111; }
.toggle:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn { font: inherit; font-size: .9rem; font-weight: 700; min-height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 2px solid var(--ink); background: var(--yellow);
  color: var(--on-yellow); cursor: pointer; box-shadow: var(--shadow-sm); }
.btn:hover:not(:disabled) { box-shadow: 4px 4px 0 var(--shadow-c); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-c); }
.btn:disabled { background: var(--surface-3); color: var(--muted); border-color: var(--line-strong);
  box-shadow: none; cursor: default; }
.btn.link { border: 0; background: none; color: var(--link); padding: 0 4px; box-shadow: none;
  font-weight: 600; min-height: 32px; transform: none; }
.btn.link:hover { text-decoration: underline; }
.resultbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.resultbar strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); font: 700 1.05rem/1.4 var(--display);
  margin-bottom: 4px; }

/* job list: one outlined container, thin dividers, no per-row boxes */
.jobs { list-style: none; margin: 0; padding: 0; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--radius); }
.job { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid;
  grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.job:last-child { border-bottom: 0; }
.job-title { font-weight: 700; color: var(--fg); font-size: 1rem; line-height: 1.4; }
.job-title:hover { color: var(--fg); }
.job-head { min-width: 0; }
.job-head .chip { margin-left: 8px; vertical-align: 1px; }
.job-co { font-size: .92rem; }
.job-co a { color: var(--fg-2); font-weight: 600; }
.job-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 0;
  padding: 0; list-style: none; color: var(--muted); font-size: .87rem; }
.job-pay { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.job-side { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: .84rem;
  color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.job-side .age { display: block; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 0;
  font-size: .9rem; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-2); background: var(--surface-3); white-space: nowrap;
  border-bottom: 2px solid var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .zero { color: var(--muted); }

/* bar charts (shared with pipeline/site.py's H-1B and federal sections) */
.hbars { display: grid; grid-template-columns: max-content 1fr max-content; gap: 6px 12px;
  align-items: center; font-size: .88rem; }
.hbars .lbl { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.hbars .val { color: var(--fg-2); font-variant-numeric: tabular-nums; text-align: right; }
.track { background: var(--track); border-radius: 4px; height: 14px; overflow: hidden; }
.fill { background: var(--bar); height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px;
  align-items: end; }
.col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.col .v { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.col .area { height: 180px; width: 100%; display: flex; align-items: flex-end;
  border-bottom: 2px solid var(--ink); }
.col .b { width: 100%; max-width: 44px; margin: 0 auto; background: var(--bar-soft);
  border-radius: 4px 4px 0 0; min-height: 2px; }
.col.peak .b { background: var(--peak); border: 2px solid var(--ink); border-bottom: 0; }
.col.peak .v { color: var(--fg); font-weight: 700; }
.col .m { font-size: .78rem; color: var(--fg-2); }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin-top: 14px; font-size: .85rem; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none;
  outline: 1px solid var(--line-strong); }
.mix { display: grid; grid-template-columns: max-content 1fr max-content; gap: 8px 12px;
  align-items: center; font-size: .88rem; }
.mix .lbl { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.mix .val { color: var(--fg-2); font-variant-numeric: tabular-nums; text-align: right; }
.stack { display: flex; gap: 2px; height: 16px; }
.stack span { display: block; height: 100%; min-width: 3px; }
.stack span:first-child { border-radius: 4px 0 0 4px; }
.stack span:last-child { border-radius: 0 4px 4px 0; }
.stack span:only-child { border-radius: 4px; }
.l-I { background: var(--lvl-1); } .l-II { background: var(--lvl-2); }
.l-III { background: var(--lvl-3); } .l-IV { background: var(--lvl-4); }
.l-none { background: var(--lvl-none); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.report { white-space: pre-wrap; font: .82rem/1.55 var(--mono); margin: 0; padding: 16px 20px;
  color: var(--fg-2); overflow-x: auto; }

/* policy tracker */
.entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.entry h3 { margin: 0 0 4px; }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 26px; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.25rem; }
  .brand { font-size: 1.1rem; }
  .nav { margin: 0 -6px; gap: 2px; }
  .nav a { padding: 4px 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 12px; }
  .stat .value { font-size: 1.45rem; }
  .stats.band { gap: 0; }
  .band .stat { padding: 14px; border-left: 0; }
  .band .stat:nth-child(even) { border-left: 1px solid #3a3730; }
  .band .stat:nth-child(n+3) { border-top: 1px solid #3a3730; }
  .band .stat .value { font-size: 1.7rem; }
  .card { padding: 16px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .filters .field.wide { grid-column: 1 / -1; }
  .job { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .job-side { grid-column: 1; grid-row: 3; text-align: left; white-space: normal; }
  .job-meta { grid-row: 2; }
  .job-side .age { display: inline; }
  .job-side .age::before { content: " · "; }
  .hide-sm { display: none; }
  th, td { padding: 9px 10px; }
  .cols { gap: 3px; }
  .col .v { font-size: .66rem; }
  .col .m { font-size: .68rem; }
  .col .area { height: 140px; }
  .hbars { grid-template-columns: minmax(0, max-content) 1fr max-content; }
}
@media (max-width: 400px) {
  .filters { grid-template-columns: 1fr; }
  .nav { gap: 0; }
  .nav a { padding: 4px 6px; font-size: .88rem; }
  .stat .label { letter-spacing: .05em; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .toggle, .nav a { transition: transform .08s ease, box-shadow .08s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled) { transform: none; }
}
@media print { .filters, .nav, .pager { display: none; } }

/* New roles page and RSS follow links */
.follow { margin: 10px 0 14px; font-size: .92rem; font-weight: 600; }
.follow a { text-decoration: underline; }
h2 .count { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 8px;
  letter-spacing: .02em; }
