/* Hiring: requisitions, candidate board, scorecards, offers, and the public careers page.
   Tokens from app.css only. Hiring teams get a compact, scannable workspace; candidates get a warm, open page. */

.hi-seg { margin-bottom: var(--s5); }
.hi-gap { margin-top: var(--s3); }
.hi-align-start { align-items: start; }
.hi-border-top { border-top: 1px solid var(--border); }
.hi-h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: var(--s2); text-transform: none; }
.hi-head-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.hi-head-status { margin-left: auto; display: inline-flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.hi-note { background: var(--surface-2); }
.hi-note h3 { margin-bottom: var(--s2); }
.hi-who { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 0; }
.hi-who .icon { flex: none; margin-top: 2px; color: var(--accent-text); }

/* rows */
.hi-row-link { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; color: var(--text); }
.hi-row-link:hover { text-decoration: none; }
.hi-row-link:hover .title { color: var(--accent-text); }
.hi-row-text { display: flex; flex-direction: column; min-width: 0; }
.hi-row-text .title { overflow: hidden; text-overflow: ellipsis; }
.hi-inline-list > li { padding-left: 0; padding-right: 0; }
.hi-req-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.hi-count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center;
  font: 600 12px/1 var(--font); background: var(--surface-3); color: var(--text-2); flex: none; }
.hi-pipe { display: flex; width: 120px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 1px; flex: none; }
.hi-pipe-seg { display: block; height: 100%; }
.hi-pipe-empty { flex: 1; }
.hi-when { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); flex: none; line-height: 1; }
.hi-when-day { font: 700 16px/1 var(--font-display); color: var(--text); }
.hi-when-mon { font: 600 10.5px/1.2 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* stage colours: always with a word */
.hi-stage { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font);
  background: var(--neutral-soft); color: var(--neutral); white-space: nowrap; }
.hi-stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hi-stage-screening, .hi-pipe-seg.hi-stage-screening { background: var(--info-soft); color: var(--info); }
.hi-stage-interview_1, .hi-stage-interview_2, .hi-stage-assessment { background: var(--accent-soft); color: var(--accent-text); }
.hi-stage-offer { background: var(--warn-soft); color: var(--warn); }
.hi-stage-hired { background: var(--good-soft); color: var(--good); }
.hi-stage-rejected { background: var(--danger-soft); color: var(--danger); }
.hi-pipe-seg.hi-stage-applied { background: var(--faint); }
.hi-pipe-seg.hi-stage-screening { background: var(--info); }
.hi-pipe-seg.hi-stage-interview_1 { background: var(--accent); opacity: .65; }
.hi-pipe-seg.hi-stage-interview_2, .hi-pipe-seg.hi-stage-assessment { background: var(--accent); }
.hi-pipe-seg.hi-stage-offer { background: var(--warn); }

/* the board: columns scroll sideways inside their own container */
.hi-board-wrap { position: relative; overflow-x: auto; contain: inline-size; width: 100%; padding-bottom: var(--s2); margin-bottom: var(--s5); border-radius: var(--r-lg); }
.hi-board-wrap:focus-visible { outline: none; box-shadow: var(--focus); }
.hi-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--s3); min-width: min-content; }
.hi-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 180px; }
.hi-col-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3); }
.hi-col-n { font: 600 12px/1 var(--font); color: var(--muted); }
.hi-col-body { padding: 0 var(--s2) var(--s2); display: flex; flex-direction: column; gap: var(--s2); }
.hi-col-empty { font-size: 12.5px; color: var(--faint); text-align: center; padding: var(--s4) 0; margin: 0; }
.hi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 6px; }
.hi-card.anon { border-style: dashed; }
.hi-card-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.hi-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.hi-card-meta .icon { vertical-align: -2px; }
.hi-move { display: flex; gap: 6px; margin-top: 2px; }
.hi-move .input { height: 32px; font-size: 12.5px; padding-top: 0; padding-bottom: 0; min-width: 0; flex: 1; }
.hi-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hi-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }

/* disclosure */
.hi-new > summary, .hi-closed > summary { cursor: pointer; list-style: none; border-bottom: 0; }
.hi-new[open] > summary, .hi-closed[open] > summary { border-bottom: 1px solid var(--border); }
.hi-new > summary::-webkit-details-marker, .hi-closed > summary::-webkit-details-marker { display: none; }
.hi-summary-plus { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.hi-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent-text); padding: 6px 0; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.hi-more > summary::-webkit-details-marker { display: none; }
.hi-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); font-size: 13px; }
.hi-more[open] > summary::before { content: "−"; }
.hi-more[open] > summary { margin-bottom: var(--s3); }

/* facts */
.hi-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s4) var(--s5); margin: 0; }
.hi-facts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.hi-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.hi-big { font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hi-kv { grid-template-columns: minmax(84px, max-content) minmax(0, 1fr); }
.hi-kv dd { overflow-wrap: anywhere; }
.hi-quote { margin: 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--lavender); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; font-size: 14px; color: var(--text-2); white-space: pre-line; }
.hi-stage-form .input { width: auto; min-width: 0; }
.hi-stage-form select.input { flex: 0 1 170px; }
.hi-decision { padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.hi-decision:last-of-type { border-bottom: 0; }
.hi-decision p { margin: 4px 0 0; }
.hi-letter { white-space: pre-wrap; font: 14px/1.6 var(--font); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s4); margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.hi-flags ul { margin: 6px 0 0; padding-left: 18px; }
.hi-live-flags:empty { display: none; }
.hi-live-flags { font-size: 13px; color: var(--warn); }
.hi-advert h3 { font-size: 15px; margin: var(--s4) 0 var(--s2); }
.hi-advert h3:first-child { margin-top: 0; }
.hi-advert ul { padding-left: 20px; margin: 0; display: grid; gap: 4px; }
.hi-advert p { margin: 0; }
.hi-job-facts, .cr-facts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hi-msg-dir { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--muted); flex: none; }
.hi-msg-dir.in { background: var(--accent-soft); color: var(--accent-text); }
.hi-note-row { align-items: flex-start !important; }
.hi-eo-filter { margin-left: auto; min-width: 0; flex: 0 1 260px; }
.hi-eo-filter .input { height: 34px; }
.hi-eo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hi-eo li { display: flex; gap: var(--s2); font-size: 14px; }

/* scheduling */
.hi-panel-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.hi-panel-pick legend { margin-bottom: var(--s2); padding: 0; }
.hi-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px var(--s3); max-height: 220px; overflow-y: auto; padding: var(--s2); border: 1px solid var(--border); border-radius: var(--r); }
.hi-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.hi-slot { position: relative; cursor: pointer; }
.hi-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hi-slot span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r); font-size: 12.5px; color: var(--muted); background: var(--surface); }
.hi-slot strong { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.hi-slot input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.hi-slot input:focus-visible + span { box-shadow: var(--focus); }
.hi-crit, .hi-panel-pick, .cr-apply fieldset { min-width: 0; }

/* scorecards */
.hi-crit { border: 1px solid var(--border); border-radius: var(--r); padding: var(--s3) var(--s4) var(--s4); margin: 0; display: grid; gap: var(--s3); }
.hi-crit legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.hi-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hi-scale-opt { position: relative; cursor: pointer; min-width: 0; }
.hi-scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hi-scale-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--border-strong); border-radius: 10px; text-align: center; min-height: 52px; justify-content: center; background: var(--surface); }
.hi-scale-opt strong { font-size: 14px; }
.hi-scale-opt small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.hi-scale-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.hi-scale-opt input:focus-visible + span { box-shadow: var(--focus); }
.hi-score-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s3); }
.hi-score-list p { margin: 4px 0 0; }
.hi-rating { font: 600 12px/1 var(--font); padding: 5px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.hi-rating.r4, .hi-rating.r3 { background: var(--good-soft); color: var(--good); }
.hi-rating.r1 { background: var(--warn-soft); color: var(--warn); }
.hi-summary { display: grid; gap: var(--s2); }
.hi-sum-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: var(--s3); align-items: center; font-size: 13.5px; }
.hi-sum-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-sum-val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

@media (max-width: 600px) {
  .hi-pipe { display: none; }
  .hi-req-row { flex-wrap: wrap; }
  .hi-req-row .hi-row-link { flex-basis: 100%; }
  .hi-req-row .hi-count { margin-left: 48px; }
  .hi-board { grid-auto-columns: 78vw; }
  .hi-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hi-head-status { margin-left: 0; }
  .hi-stage-form select.input { flex-basis: 100%; }
  .hi-eo-filter { flex-basis: 100%; }
  .hi-sum-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hi-sum-row .hi-meter { grid-column: 1 / -1; grid-row: 2; }
}

/* ------------------------------------------------------------------ public careers page */
.careers-body { background: var(--bg); }
.cr-top { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s8); background: var(--night); color: #fff; }
.cr-brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--lavender); }
.cr-brand:hover { text-decoration: none; }
.cr-brand strong { display: block; color: #fff; font: 600 16px/1.1 var(--font-display); }
.cr-brand-sub { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(217, 204, 255, .7); }
.cr-nav { margin-left: auto; display: flex; gap: var(--s4); }
.cr-nav a { color: rgba(233, 228, 250, .85); font-weight: 500; font-size: 14px; padding: 6px 0; }
.cr-nav a:hover { color: #fff; }
.cr-main { max-width: 1080px; margin: 0 auto; padding: var(--s8) var(--s6) var(--s12); }
.cr-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--hero-border); padding: var(--s12) var(--s10); }
.cr-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.025em; max-width: 18ch; margin: var(--s3) 0; }
.cr-hero p { max-width: 58ch; color: var(--text-2); font-size: 16.5px; margin: 0; position: relative; }
.cr-orbit { position: absolute; right: -90px; top: -80px; width: 420px; height: 420px; color: var(--watermark); pointer-events: none; }
.cr-orbit svg { width: 100%; height: 100%; }
.cr-section { margin-top: var(--s10); }
.cr-section > h2 { font-size: 22px; margin-bottom: var(--s4); }
.cr-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.cr-job { display: flex; align-items: center; gap: var(--s4); padding: var(--s5) var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.cr-job:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-2); }
.cr-job-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cr-job-title { font: 600 18px/1.3 var(--font-display); }
.cr-job-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.cr-job-meta > * + *::before { content: "·"; margin-right: 8px; color: var(--faint); }
.cr-salary { font-weight: 600; color: var(--accent-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-arrow { color: var(--faint); flex: none; }
.cr-empty { padding: var(--s8); text-align: center; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--muted); }
.cr-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.cr-values > div { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-2); }
.cr-values h3 { font-size: 15px; margin-bottom: var(--s2); }
.cr-values p { margin: 0; font-size: 14px; color: var(--text-2); }
.cr-back { margin: 0 0 var(--s4); }
.cr-back a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.cr-job-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: var(--s8); align-items: start; }
.cr-article h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: var(--s2) 0 var(--s4); }
.cr-article h3 { margin-top: var(--s5); }
.cr-advert { margin-top: var(--s6); font-size: 15.5px; line-height: 1.65; }
.cr-narrow { max-width: 720px; }
.cr-narrow p { color: var(--text-2); }
.cr-apply { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s6); box-shadow: var(--shadow-2); position: sticky; top: var(--s5); }
.cr-apply h2 { font-size: 20px; margin-bottom: 4px; }
.cr-apply .form { margin-top: var(--s4); }
.cr-eo { border: 1px solid var(--border); border-radius: var(--r); padding: var(--s3) var(--s4); }
.cr-eo summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 24px; }
.cr-eo[open] summary { margin-bottom: var(--s3); }
.cr-eo .field + .field { margin-top: var(--s3); }
.cr-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cr-done { max-width: 560px; margin: var(--s10) auto; text-align: center; }
.cr-done .illus { width: 96px; height: 96px; color: var(--accent); margin: 0 auto var(--s4); }
.cr-done p { color: var(--text-2); margin: var(--s3) 0 var(--s6); }
.cr-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); max-width: 1080px; margin: 0 auto; padding: var(--s6); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .cr-job-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-apply { position: static; }
  .cr-values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cr-top { padding: var(--s3) var(--s4); }
  .cr-main { padding: var(--s5) var(--s4) var(--s10); }
  .cr-hero { padding: var(--s8) var(--s5); }
  .cr-hero h1 { font-size: 30px; }
  .cr-article h1 { font-size: 28px; }
  .cr-job { padding: var(--s4); flex-wrap: wrap; gap: var(--s2); }
  .cr-job-main { flex-basis: calc(100% - 30px); }
  .cr-salary { order: 3; }
  .cr-apply { padding: var(--s5) var(--s4); }
}
