/* ATS stylesheet. One signature element (the stage rail); everything else stays quiet. */

/* Fonts are self-hosted (SIL Open Font License) so the app makes no third-party requests. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('/static/fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/static/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --ink: #18222d;
  --ink-2: #4a5866;
  --ink-3: #6f7c89;
  --line: #dce2e8;
  --line-strong: #c3ccd5;
  --teal: #0d5c6b;
  --teal-hover: #094856;
  --teal-tint: #e3eff1;
  --brick: #a2433f;
  --brick-tint: #f8e8e6;
  --marigold: #c58a08;
  --marigold-ink: #6b4a00;
  --marigold-tint: #fbefd2;
  --focus: #1a8fa3;

  /* Sequential stage scale: light to deep teal, then marigold for a completed hire. */
  --s1: #a9c9d0;
  --s2: #80b1bb;
  --s3: #5797a4;
  --s4: #307d8c;
  --s5: #13606f;
  --s6: #d9a21b;

  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Atkinson Hyperlegible', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 39px; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }
.wrap--wide { max-width: 1380px; }
.wrap--narrow { max-width: 480px; }

/* ---------- top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1380px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.is-public .topbar__inner { max-width: 1120px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.brand__mark i { display: block; width: 5px; border-radius: 1px; }
.brand__mark i:nth-child(1) { height: 7px; background: var(--s2); }
.brand__mark i:nth-child(2) { height: 12px; background: var(--s4); }
.brand__mark i:nth-child(3) { height: 18px; background: var(--s6); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand__sub { color: var(--ink-3); font-size: 15px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.account { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.account__name { color: var(--ink-2); }
.account__role { color: var(--ink-3); font-size: 13px; }
.account form { margin: 0; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--font-body); padding: 11px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-3); }
.btn--danger { background: var(--surface); color: var(--brick); border-color: #e2b9b5; }
.btn--danger:hover { background: var(--brick-tint); color: var(--brick); border-color: var(--brick); }
.btn--sm { padding: 7px 11px; font-size: 14px; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; margin-top: -2px; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px;
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.textarea { min-height: 120px; resize: vertical; }
.textarea--tall { min-height: 260px; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5866' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field--error .input, .field--error .select, .field--error .textarea, .field--error .file { border-color: var(--brick); }
.error-text { color: var(--brick); font-size: 14px; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }

.file { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 22px; background: var(--surface); text-align: center; }
.file:hover, .file:focus-within { border-color: var(--teal); background: var(--teal-tint); }
.file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__title { font-weight: 700; }
.file__hint { color: var(--ink-3); font-size: 14px; }
.file__chosen { margin-top: 6px; color: var(--teal); font-weight: 700; word-break: break-all; }

/* ---------- flash ---------- */
.flash { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 24px; border: 1px solid; font-size: 15px; }
.flash--success { background: var(--teal-tint); border-color: #b8d8de; color: #0b4652; }
.flash--error { background: var(--brick-tint); border-color: #ecc5c1; color: #7d2f2c; }
.flash--info { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.two-col > .panel, .app-layout > .panel { margin-top: 0; }
.panel__title { font-size: 18px; margin-bottom: 14px; }
.panel--flush { padding: 0; overflow: hidden; }

/* ---------- the stage rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; list-style: none; margin: 0; padding: 0; }
.rail__seg { position: relative; height: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.rail__seg:first-child { border-radius: 5px 0 0 5px; }
.rail__seg:last-child { border-radius: 0 5px 5px 0; }
.rail__label { display: block; position: absolute; top: 16px; left: 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.rail__seg.is-done, .rail__seg.is-current { box-shadow: none; }
.rail__seg:nth-child(1).is-done, .rail__seg:nth-child(1).is-current { background: var(--s1); }
.rail__seg:nth-child(2).is-done, .rail__seg:nth-child(2).is-current { background: var(--s2); }
.rail__seg:nth-child(3).is-done, .rail__seg:nth-child(3).is-current { background: var(--s3); }
.rail__seg:nth-child(4).is-done, .rail__seg:nth-child(4).is-current { background: var(--s4); }
.rail__seg:nth-child(5).is-done, .rail__seg:nth-child(5).is-current { background: var(--s5); }
.rail__seg:nth-child(6).is-done, .rail__seg:nth-child(6).is-current { background: var(--s6); }
.rail__seg.is-current .rail__label { color: var(--ink); font-weight: 700; }
.rail--labels { padding-bottom: 28px; }
.rail--labels .rail__seg:last-child .rail__label { left: auto; right: 0; }
.rail--rejected .rail__seg.is-done { background: #cfd6dc; }
.rail--rejected .rail__seg.is-current { background: var(--brick); }
.rail--muted .rail__seg.is-done, .rail--muted .rail__seg.is-current { background: #cfd6dc; }
.rail--muted .rail__seg.is-current { background: var(--ink-3); }
.rail--compact .rail__seg { height: 8px; }
.rail-cell { min-width: 170px; }
.rail-cell__label { display: block; font-size: 14px; margin-top: 7px; font-weight: 700; }
.rail--big .rail__seg { height: 14px; }
.rail--big .rail__seg:first-child { border-radius: 7px 0 0 7px; }
.rail--big .rail__seg:last-child { border-radius: 0 7px 7px 0; }
.rail--big .rail__label { top: 22px; font-size: 14px; }
.rail--big.rail--labels { padding-bottom: 36px; }

/* ---------- stage pill ---------- */
.stage { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.stage::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.stage--applied::before { background: var(--s1); }
.stage--screening::before { background: var(--s2); }
.stage--shortlisted::before { background: var(--s3); }
.stage--interview::before { background: var(--s4); }
.stage--offer::before { background: var(--s5); }
.stage--hired::before { background: var(--s6); }
.stage--rejected { color: var(--brick); }
.stage--rejected::before { background: var(--brick); }

.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status--open { color: #0b4652; background: var(--teal-tint); border-color: #b8d8de; }
.status--on_hold { color: var(--marigold-ink); background: var(--marigold-tint); border-color: #ecd193; }
.status--closed { color: var(--ink-2); background: var(--paper); border-color: var(--line-strong); }
.tag-applied { font-size: 13px; font-weight: 700; color: #0b4652; background: var(--teal-tint); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* ---------- tables ---------- */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 700; font-size: 13px; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .check { width: 44px; padding-right: 0; }
.table .row-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.table .row-title:hover { color: var(--teal); text-decoration: underline; }
.table .sub { display: block; color: var(--ink-3); font-size: 14px; }
.table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
.is-rejected-row td { color: var(--ink-3); }
.is-rejected-row .row-title { color: var(--ink-2); }
.zero { color: var(--line-strong); }
.alert-num { color: var(--brick); font-weight: 700; }

/* ---------- tabs ---------- */
.tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 0; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { color: var(--ink); font-weight: 700; border-bottom-color: var(--teal); }
.tabs .count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg a { padding: 7px 12px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line-strong); }
.seg a[aria-current='page'] { background: var(--ink); color: #fff; }

/* ---------- page headers ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 31px; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.back { display: inline-block; font-size: 15px; margin-bottom: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* ---------- public: job board ---------- */
.hero { padding: 28px 0 36px; }
.hero h1 { font-size: 49px; letter-spacing: -0.025em; max-width: 22ch; }
.hero__lede { font-size: 19px; color: var(--ink-2); margin: 14px 0 28px; max-width: 56ch; }
.search { display: grid; grid-template-columns: 1fr 200px 200px auto; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.search .input, .search .select { border-color: transparent; background-color: var(--paper); }
.joblist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.jobrow { border-bottom: 1px solid var(--line); }
.jobrow a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.jobrow a:hover .jobrow__title { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }
.jobrow__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.jobrow__summary { color: var(--ink-2); margin: 4px 0 8px; max-width: 70ch; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--ink-2); }
.meta__dept { color: var(--teal); font-weight: 700; }
.jobrow__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--ink-3); font-size: 14px; }
.results-count { color: var(--ink-3); font-size: 15px; margin: 32px 0 10px; display: flex; justify-content: space-between; }
.empty { text-align: center; padding: 56px 24px; color: var(--ink-2); }
.empty h2 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }

/* ---------- public: job detail ---------- */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.job-title { font-size: 44px; letter-spacing: -0.025em; margin: 6px 0 14px; max-width: 24ch; }
.prose { max-width: 68ch; font-size: 17px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--teal); }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.sticky { position: sticky; top: 24px; }
.apply { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line-strong); max-width: 68ch; }
.apply h2 { font-size: 28px; margin-bottom: 6px; }
.apply__as { color: var(--ink-2); margin-bottom: 24px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.callout h3 { margin-bottom: 6px; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 24px auto 0; }
.auth h1 { font-size: 31px; margin-bottom: 8px; }
.auth__lede { color: var(--ink-2); margin-bottom: 24px; }
.auth__switch { margin-top: 20px; text-align: center; color: var(--ink-2); font-size: 15px; }
.auth--staff .panel { border-top: 4px solid var(--ink); }

/* ---------- candidate: my applications ---------- */
.apps { list-style: none; margin: 0; padding: 0; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 16px 40px; align-items: center; }
.app + .app { margin-top: 12px; }
.app__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.app__title:hover { color: var(--teal); }
.app__now { font-weight: 700; margin-bottom: 10px; }

/* ---------- staff: pipeline ---------- */
.req-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 28px; }
.req-strip__now { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.req-strip__now strong { color: var(--ink); font-family: var(--font-display); font-size: 20px; margin-right: 6px; }
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 15px; }
.bulkbar .select { width: auto; min-width: 170px; padding-top: 7px; padding-bottom: 7px; font-size: 15px; }
.bulkbar__count { color: var(--ink-2); margin-right: auto; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* ---------- staff: application detail ---------- */
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.resume-frame { width: 100%; height: 78vh; min-height: 560px; border: 0; display: block; background: #e8ecef; }
.resume-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.resume-none { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 15px; }
.details dt { color: var(--ink-3); }
.details dd { margin: 0; word-break: break-word; }
.pager { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-3); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; font-size: 15px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: -6px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline .t-stage::after { border-color: var(--teal); background: var(--teal); }
.timeline .t-note::after { border-color: var(--marigold); }
.timeline__when { display: block; color: var(--ink-3); font-size: 13px; }
.timeline__note { margin-top: 6px; background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; white-space: pre-wrap; }
.cover { white-space: pre-wrap; }

/* ---------- HR dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 32px; }
.kpi { padding: 18px 20px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi__n { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi__label { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.kpi__sub { font-size: 13px; color: var(--ink-3); }
.kpi--alert .kpi__n { color: var(--brick); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; }
.counts { display: grid; grid-template-columns: repeat(6, 34px); gap: 2px; font-variant-numeric: tabular-nums; font-size: 15px; }
.counts span { text-align: center; padding: 3px 0; border-radius: 4px; }
.counts .has { font-weight: 700; }
.counts-head { display: grid; grid-template-columns: repeat(6, 34px); gap: 2px; }
.counts-head span { text-align: center; }
.counts-head span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.counts-head span:nth-child(1)::before { background: var(--s1); }
.counts-head span:nth-child(2)::before { background: var(--s2); }
.counts-head span:nth-child(3)::before { background: var(--s3); }
.counts-head span:nth-child(4)::before { background: var(--s4); }
.counts-head span:nth-child(5)::before { background: var(--s5); }
.counts-head span:nth-child(6)::before { background: var(--s6); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.funnel { list-style: none; margin: 0; padding: 0; }
.funnel li { display: grid; grid-template-columns: 100px minmax(0, 1fr) 48px 52px; gap: 12px; align-items: center; padding: 7px 0; font-size: 15px; }
.funnel__bar { display: block; height: 22px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.funnel__fill { display: block; height: 100%; border-radius: 4px; min-width: 2px; }
.funnel li:nth-child(1) .funnel__fill { background: var(--s1); }
.funnel li:nth-child(2) .funnel__fill { background: var(--s2); }
.funnel li:nth-child(3) .funnel__fill { background: var(--s3); }
.funnel li:nth-child(4) .funnel__fill { background: var(--s4); }
.funnel li:nth-child(5) .funnel__fill { background: var(--s5); }
.funnel li:nth-child(6) .funnel__fill { background: var(--s6); }
.funnel__n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.funnel__pct { text-align: right; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feed li:last-child { border-bottom: 0; }
.feed__when { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* ---------- team ---------- */
details.inline-form summary { cursor: pointer; color: var(--teal); font-size: 14px; list-style: none; }
details.inline-form summary::-webkit-details-marker { display: none; }
details.inline-form[open] summary { margin-bottom: 8px; }
details.inline-form form { display: flex; gap: 8px; }
details.inline-form .input { padding: 7px 10px; font-size: 15px; min-width: 180px; }

/* ---------- error page ---------- */
.error-page { max-width: 560px; margin: 48px auto; }
.error-page__code { font-family: var(--font-display); font-size: 15px; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi:nth-child(5) { border-left: 0; }
  .kpi:nth-child(n+5) { border-top: 1px solid var(--line); }
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sticky { position: static; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .input { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .req-strip { grid-template-columns: minmax(0, 1fr); }
  .brand__sub { display: none; }
  .account__name, .account__role { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 20px 16px 64px; }
  .topbar__inner { padding: 0 16px; gap: 12px; height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -8px; }
  .account { margin-left: auto; }
  h1, .page-head h1 { font-size: 27px; }
  .hero h1 { font-size: 36px; }
  .job-title { font-size: 32px; }
  .hero__lede { font-size: 17px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .jobrow a { grid-template-columns: minmax(0, 1fr); }
  .jobrow__side { align-items: flex-start; text-align: left; flex-direction: row; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .panel { padding: 18px; }
  .funnel li { grid-template-columns: 84px minmax(0, 1fr) 36px 44px; gap: 8px; }
  .resume-frame { height: 70vh; min-height: 420px; }
  .rail--labels .rail__label { display: none; }
  .rail--labels .rail__seg.is-current .rail__label { display: block; }
  .rail--labels { padding-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
