/* Racial Bias in AI Hiring Systems: research-paper web view */

:root {
  --bg: #ffffff;
  --surface: #f6f5f1;
  --text: #1b1b1b;
  --muted: #555a61;
  --faint: #868b93;
  --rule: #dcdbd4;
  --rule-strong: #1b1b1b;
  --link: #1d4f8f;
  --accent: #9b2c24;
  --c1: #35679a;
  --c2: #b0473a;
  --c3: #b8862b;
  --c4: #3c8b82;
  --c5: #8a8f98;
  --m-audit: #1d4f8f;
  --m-rule: #7fa7d6;
  --m-trans: #c29a45;
  --m-pend: #e8d7a6;
  --m-none: #ebeae4;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141619;
    --surface: #1d2024;
    --text: #e7e5e0;
    --muted: #aeb2b8;
    --faint: #80858d;
    --rule: #33373d;
    --rule-strong: #e7e5e0;
    --link: #8fb8ea;
    --accent: #e3857a;
    --c1: #7ea6d6;
    --c2: #e08a7c;
    --c3: #ddb25c;
    --c4: #6fc2b6;
    --c5: #9aa0a8;
    --m-audit: #8fb8ea;
    --m-rule: #4a78ad;
    --m-trans: #b88d3d;
    --m-pend: #5f5332;
    --m-none: #2a2d32;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #141619;
  --surface: #1d2024;
  --text: #e7e5e0;
  --muted: #aeb2b8;
  --faint: #80858d;
  --rule: #33373d;
  --rule-strong: #e7e5e0;
  --link: #8fb8ea;
  --accent: #e3857a;
  --c1: #7ea6d6;
  --c2: #e08a7c;
  --c3: #ddb25c;
  --c4: #6fc2b6;
  --c5: #9aa0a8;
  --m-audit: #8fb8ea;
  --m-rule: #4a78ad;
  --m-trans: #b88d3d;
  --m-pend: #5f5332;
  --m-none: #2a2d32;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.crumbs { display: flex; gap: 6px; align-items: center; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--text); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.crumbs .here { overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
  font: inherit; font-size: 13px; color: var(--muted);
  background: none; border: 1px solid var(--rule); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; white-space: nowrap;
}
@media (max-width: 480px) { .topbar-actions a.icon-btn { display: none; } }
.icon-btn:hover { color: var(--text); border-color: var(--faint); }

/* ---------- layout ---------- */
.page {
  max-width: 1180px; margin: 0 auto; padding: 40px 16px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
}
@media (min-width: 1100px) {
  .page { grid-template-columns: 210px minmax(0, 720px); gap: 64px; justify-content: center; }
}

/* ---------- table of contents ---------- */
.toc { display: none; font-family: var(--sans); font-size: 14px; }
@media (min-width: 1100px) {
  .toc { display: block; position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
}
.toc-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc ol ol { padding-left: 14px; }
.toc a { display: block; padding: 3px 0 3px 10px; color: var(--muted); border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--text); border-left-color: var(--accent); }

.toc-mobile { font-family: var(--sans); font-size: 15px; border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 32px; }
.toc-mobile summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.toc-mobile ol { margin: 0; padding: 0 14px 12px 34px; }
.toc-mobile ol ol { padding: 0 0 0 18px; }
.toc-mobile li { margin: 4px 0; }
@media (min-width: 1100px) { .toc-mobile { display: none; } }

/* ---------- title block ---------- */
.titleblock { margin-bottom: 36px; }
.kicker { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
h1 { font-size: 2.15rem; line-height: 1.2; margin: 0 0 18px; font-weight: 700; letter-spacing: -0.01em; }
.authors { font-size: 1.1rem; margin: 0; }
.affil, .meta { font-family: var(--sans); font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.meta { margin-top: 10px; }

.abstract {
  margin: 28px 0 10px; padding: 18px 20px;
  background: var(--surface); border-top: 2px solid var(--rule-strong);
}
.abstract h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; font-weight: 700; }
.abstract p { margin: 0; font-size: 17px; }
.keywords { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.keywords strong { color: var(--text); }

/* ---------- body text ---------- */
article section { margin-top: 44px; }
h2.sec { font-size: 1.5rem; line-height: 1.3; margin: 0 0 14px; font-weight: 700; }
h3.sub { font-size: 1.18rem; line-height: 1.35; margin: 30px 0 10px; font-weight: 700; }
.secnum { color: var(--faint); font-weight: 600; margin-right: .45em; font-variant-numeric: tabular-nums; }
article p { margin: 0 0 1em; }
article p.lead-in::first-letter { font-size: 1em; }
.cite { white-space: nowrap; }
sup.fnref { font-family: var(--sans); font-size: .7em; line-height: 0; }
sup.fnref a { padding: 0 1px; }
cite, .title-it { font-style: italic; }

.callout {
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  background: var(--surface); border-left: 3px solid var(--accent);
  padding: 12px 16px; margin: 0 0 22px;
}
.callout p { margin: 0; }

/* ---------- figures ---------- */
figure.fig {
  margin: 30px 0 32px; padding: 16px 0 0;
  border-top: 1px solid var(--rule);
}
figure.fig > figcaption, .tbl caption {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--muted);
  margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); text-align: left;
}
.fig-label { color: var(--text); font-weight: 700; margin-right: .3em; }
.fig-source { display: block; margin-top: 4px; color: var(--faint); }
.fig-title { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 0 0 8px; }

.chart { position: relative; height: 320px; width: 100%; }
.chart.tall { height: 430px; }
.chart.short { height: 230px; }
@media (max-width: 600px) { .chart { height: 260px; } .chart.tall { height: 380px; } .chart.short { height: 200px; } }

.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--sans); font-size: 14px; margin: 0 0 12px;
}
.btn {
  font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 5px;
  padding: 5px 12px; cursor: pointer;
}
.btn:hover { border-color: var(--faint); }
.btn[aria-pressed="true"], .btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.controls input[type="range"] { flex: 1 1 160px; min-width: 120px; accent-color: var(--accent); }
.readout { font-variant-numeric: tabular-nums; color: var(--muted); }
.readout strong { color: var(--text); }

.fig img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0 30px; -webkit-overflow-scrolling: touch; }
table.tbl { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl caption { caption-side: top; border-bottom: none; margin: 0 0 8px; padding: 0; }
.tbl thead th { border-top: 1.5px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); font-weight: 600; }
.tbl th, .tbl td { padding: 7px 10px; text-align: left; vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 1.5px solid var(--rule-strong); }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.tbl-note { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* ---------- findings ---------- */
.findings { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 22px; }
@media (min-width: 640px) { .findings { grid-template-columns: 1fr 1fr; } }
.finding { border-top: 2px solid var(--rule-strong); padding-top: 10px; }
.finding .big { display: block; font-family: var(--sans); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.finding p { font-size: 16px; margin: 4px 0 0; }

/* ---------- proxy illustration ---------- */
.proxy-grid { display: grid; grid-template-columns: 1fr; gap: 12px; font-family: var(--sans); font-size: 14px; }
@media (min-width: 640px) { .proxy-grid { grid-template-columns: 1fr 1fr; } }
.proxy-grid label { display: flex; flex-direction: column; gap: 4px; }
.proxy-lbl { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.proxy-grid select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 5px; padding: 6px 8px; width: 100%;
}
.proxy-grid select:disabled { opacity: .45; }
.omit { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 1px 8px; cursor: pointer; }
.omit[aria-pressed="true"] { color: var(--bg); background: var(--muted); border-color: var(--muted); }
.proxy-out { font-family: var(--sans); font-size: 14.5px; margin-top: 14px; min-height: 64px; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 52px; gap: 8px; align-items: center; margin: 5px 0; }
.bar-track { height: 12px; background: var(--surface); border: 1px solid var(--rule); }
.bar-fill { height: 100%; width: 0; background: var(--c5); transition: width .5s ease; }
.bar-row.top .bar-fill { background: var(--accent); }
.bar-row .pct { text-align: right; font-variant-numeric: tabular-nums; }
.verdict { margin-top: 8px; color: var(--muted); }

/* ---------- map ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--rule); }
.cat-audit { --fill: var(--m-audit); }
.cat-rule { --fill: var(--m-rule); }
.cat-trans { --fill: var(--m-trans); }
.cat-pend { --fill: var(--m-pend); }
.cat-none { --fill: var(--m-none); }
.legend i { background: var(--fill); }
.map-wrap { position: relative; width: 100%; }
.map-wrap svg { display: block; width: 100%; height: auto; }
.map-wrap .state { fill: var(--fill); stroke: var(--bg); stroke-width: 1; cursor: pointer; transition: fill .3s ease; }
.map-wrap .state:hover { stroke: var(--text); stroke-width: 1.5; }
.map-wrap .state.selected { stroke: var(--text); stroke-width: 2.2; }
.map-loading { font-family: var(--sans); font-size: 14px; color: var(--faint); padding: 40px 0; text-align: center; }
.map-loading.hidden { display: none; }
.map-detail { font-family: var(--sans); font-size: 14.5px; line-height: 1.55; background: var(--surface); padding: 12px 14px; margin-top: 10px; min-height: 60px; }
.map-detail p { margin: 0 0 6px; }
.map-detail .d-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 6px; }
.map-detail .d-state { font-weight: 700; color: var(--text); }
.map-detail .d-tag { font-size: 12.5px; color: var(--muted); }
.map-detail .d-tag i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; background: var(--fill); border: 1px solid var(--rule); }
.map-tip {
  position: fixed; z-index: 30; pointer-events: none; opacity: 0;
  font-family: var(--sans); font-size: 13px; background: var(--text); color: var(--bg);
  padding: 5px 8px; border-radius: 4px; transition: opacity .1s;
}
.map-tip.on { opacity: 1; }
.map-tip span { display: block; opacity: .8; font-size: 12px; }

/* ---------- notes, references ---------- */
.notes ol { padding-left: 1.4em; font-size: 16.5px; }
.notes li { margin-bottom: .5em; }
.refs { list-style: none; padding: 0; margin: 0; font-size: 16.5px; }
.refs li { padding-left: 2em; text-indent: -2em; margin: 0 0 .7em; overflow-wrap: anywhere; }
.refs li:target { background: var(--surface); }
.small-refs li { font-size: 15.5px; }
.flag { font-family: var(--sans); font-size: 12.5px; color: var(--accent); white-space: nowrap; }

.citebox { font-family: var(--sans); font-size: 14.5px; background: var(--surface); padding: 12px 16px; overflow-wrap: anywhere; }
.citebox p { margin: 0 0 6px; }
.version { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.version li { margin: 3px 0; }

footer.site-foot {
  max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px;
  border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13.5px; color: var(--faint);
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  h2.sec { font-size: 1.32rem; }
  .page { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .toc, .toc-mobile, .controls, .omit, .btn, .map-tip { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .page { display: block; padding: 0; }
  a { color: #000; }
  figure.fig, .table-wrap { break-inside: avoid; }
}
