/* The Chicago Police Department portal. CPD look (the motor pool screen's family): navy #1E2C5E with the real star,
   the two-row checkered band, upright Barlow Semi Condensed headings over Arimo (Arial's metrics, like the department's
   own paperwork). Light only, like real department paperwork. One corner (2px) everywhere; no shadows on panels, no
   gradients, no glows. Colour only for real states (suspended, pending, approved) and the one data blue in charts. */

@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 500; font-display: swap; src: url('fonts/bsc-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url('fonts/bsc-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('fonts/bsc-700.woff2') format('woff2'); }
@font-face { font-family: 'Arimo'; font-weight: 400 700; font-display: swap; src: url('fonts/arimo.woff2') format('woff2'); }

:root {
  /* brand */
  --navy: #1e2c5e;
  --navy-2: #16214a;
  --navy-tint: #e8ecf5;
  --navy-line: #c3cbdf;
  --mist: #c9d3ea;
  /* ink and paper */
  --ink: #141b2b;
  --ink-2: #3d4759;
  --ink-3: #5a6476;
  --bg: #eef1f5;
  --paper: #fcfcfd;
  --line: #d6dbe4;
  --line-2: #e5e8ee;
  --hover: #f3f5f9;
  /* data (dataviz-validated against the paper) and states */
  --data: #3b6fb6;
  --data-soft: #9db7dc;
  --red: #b42318;
  --red-bg: #fbeeec;
  --amber: #8a5300;
  --amber-bg: #fcf3e3;
  --green: #1d6f36;
  --green-bg: #ebf5ee;
  /* shape and type */
  --r: 2px;
  --head: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Arimo', Arial, Helvetica, sans-serif;
  --nav-w: 236px;
  --top-h: 60px;
  --band-h: 16px;
  /* layers */
  --z-top: 20;
  --z-menu: 30;
  --z-dialog: 40;
  --z-toast: 50;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p, .notice .body, .timeline .d { text-wrap: pretty; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy-line); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.15; color: var(--ink); }
p { margin: 0 0 10px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.ic.sm { width: 15px; height: 15px; vertical-align: -3px; }
.muted { color: var(--ink-3); }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the frame: navy bar, checker band, sidebar, page ---------- */
.top { position: sticky; top: 0; z-index: var(--z-top); background: var(--navy); color: #ffffff; }
.top-in { height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 20px 0 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; }
.brand > span { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--mist); margin-top: 4px; white-space: nowrap; }
.band { height: var(--band-h); background: repeating-conic-gradient(var(--navy) 0 25%, #ffffff 0 50%) 0 0 / 16px 16px; border-bottom: 1px solid var(--navy); }
.grow { flex: 1; }
.find-btn { display: flex; align-items: center; gap: 10px; width: min(380px, 34vw); height: 36px; padding: 0 12px; border: 1px solid #34437a;
  background: #26356b; color: var(--mist); border-radius: var(--r); cursor: pointer; text-align: left; }
.find-btn:hover { border-color: #4a5a95; color: #ffffff; }
.find-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-btn kbd { font: 11px var(--body); border: 1px solid #4a5a95; border-radius: var(--r); padding: 1px 5px; color: var(--mist); }
.me-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 4px; border: 0; background: transparent; color: #ffffff; cursor: pointer; border-radius: var(--r); }
.me-btn:hover { background: #26356b; }
.me-btn img { width: 30px; height: 30px; border-radius: 50%; background: #34437a; }
.me-name { text-align: left; line-height: 1.2; }
.me-name b { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.me-name small { color: var(--mist); font-size: 12px; white-space: nowrap; }

.frame { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100dvh - var(--top-h) - var(--band-h)); }
.nav { background: var(--bg); border-right: 1px solid var(--line); padding: 14px 10px 24px; position: sticky; top: calc(var(--top-h)); align-self: start;
  height: calc(100dvh - var(--top-h)); overflow-y: auto; }
.nav-group { margin: 14px 8px 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.nav-group:first-child { margin-top: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; margin: 1px 0; color: var(--ink-2); text-decoration: none;
  border-radius: var(--r); border-left: 3px solid transparent; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--navy-tint); color: var(--navy); border-left-color: var(--navy); font-weight: 700; }
.nav a .n { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--navy); color: #ffffff; border-radius: var(--r); }
.nav-foot { margin: 22px 8px 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.nav-foot img { width: 128px; display: block; margin-bottom: 8px; opacity: 0.95; }

main { min-width: 0; }
.page { max-width: 1280px; margin: 0 auto; padding: 26px 32px 64px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; letter-spacing: -0.005em; }
.page-head .sub { color: var(--ink-2); margin-top: 6px; max-width: 75ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13px; margin-bottom: 8px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); }

/* ---------- panels, layout helpers ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.panel-head h2 { font-size: 19px; }
.panel-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.cols > div > .panel + .panel { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line { padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.line:last-child { border-bottom: 0; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid #b7c0cf;
  background: var(--paper); color: var(--ink); border-radius: var(--r); cursor: pointer; font-weight: 700; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--hover); border-color: #9aa5b8; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.danger { color: var(--red); border-color: #e2b4af; }
.btn.danger:hover { background: var(--red-bg); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--navy); }
.btn.quiet:hover { background: var(--navy-tint); }
.btn.small { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #ffffff; height: 44px; padding: 0 20px; font-size: 15px; }
.btn.discord:hover { background: #4752c4; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .label { font-weight: 700; font-size: 13px; color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--red); }
.input, select.input, textarea.input { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #aeb8c9; border-radius: var(--r); background: #ffffff; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.input::placeholder { color: #6b7486; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--navy); }
.seg { display: inline-flex; border: 1px solid #b7c0cf; border-radius: var(--r); overflow: hidden; background: var(--paper); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-right: 1px solid #d0d6e0; background: transparent; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #ffffff; font-weight: 700; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 160px; }
.filters .search { min-width: 240px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2);
  font-weight: 700; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .n { color: var(--ink-3); font-weight: 400; margin-left: 4px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.tbl th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tbl th button[aria-sort] { color: var(--ink); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover td { background: var(--hover); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl a, .plain-list a, .timeline a { text-decoration: none; }
.tbl a:hover, .plain-list a:hover, .timeline a:hover { text-decoration: underline; }
.tbl .group td { background: var(--bg); font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 7px 12px; }
.tbl .dim td { color: var(--ink-3); }
.tbl td.wrap { white-space: normal; min-width: 220px; }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img.av { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); flex: none; }
.who .nm { min-width: 0; }
.who .nm b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.who .nm small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who a { text-decoration: none; }
.who a:hover b { text-decoration: underline; }
.mark { width: 20px; height: 20px; flex: none; vertical-align: -5px; }
.mark.lg { width: 28px; height: 28px; }
.rankline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.star-no { font-weight: 700; }

/* states as text, never colour alone */
.state { font-weight: 700; white-space: nowrap; }
.state.red { color: var(--red); }
.state.amber { color: var(--amber); }
.state.green { color: var(--green); }
.state.grey { color: var(--ink-3); }
.state.navy { color: var(--navy); }
.flag { display: inline-flex; gap: 6px; align-items: center; color: var(--amber); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.flag.red { color: var(--red); }
.flag .ic { width: 15px; height: 15px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--navy); background: var(--paper);
  border-radius: var(--r); margin-bottom: 16px; }
.note.warn { border-left-color: var(--amber); background: var(--amber-bg); }
.note.bad { border-left-color: var(--red); background: var(--red-bg); }
.note.ok { border-left-color: var(--green); background: var(--green-bg); }
.note .ic { margin-top: 1px; }
.note .grow { min-width: 0; }

/* ---------- empty, loading, errors ---------- */
.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty .ic { width: 28px; height: 28px; color: var(--ink-3); display: block; margin: 0 auto 10px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.sk { background: var(--line-2); border-radius: var(--r); height: 14px; margin: 10px 0; }
.sk.w60 { width: 60%; } .sk.w40 { width: 40%; } .sk.w80 { width: 80%; } .sk.tall { height: 120px; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.55; } }
}

/* ---------- facts (definition lists) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; margin: 0; }
.facts > div { padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.facts dt { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 3px; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.facts dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.taglist span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- the officer's file ---------- */
.file-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 22px; }
.file-head .av { width: 76px; height: 76px; border-radius: 50%; background: var(--line-2); }
.file-head h1 { font-size: 30px; }
.file-head .ranks { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink-2); font-weight: 700; flex-wrap: wrap; }
.file-head .ids { display: flex; gap: 18px; margin-top: 8px; color: var(--ink-2); flex-wrap: wrap; font-size: 13.5px; }
.file-head .ids b { color: var(--ink); }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 420px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--ink-3); font-size: 13px; }
.timeline .t { font-weight: 700; }
.timeline .d { color: var(--ink-2); margin-top: 2px; }
.timeline .m { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }

/* ---------- the weekly hours chart (dataviz: one series, bars <= 24px, 4px rounded tops from a square baseline,
   hairline grid, tooltip on hover and focus, a table view) ---------- */
.chart { position: relative; padding: 8px 18px 6px; }
.chart svg { display: block; width: 100%; height: 190px; overflow: visible; }
.chart .grid line { stroke: var(--line-2); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-size: 11px; font-family: var(--body); }
.chart .bar { fill: var(--data); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:focus { outline: none; }
.chart g.b:hover .bar, .chart g.b:focus-within .bar { fill: #2d5a99; }
.chart .req line { stroke: var(--ink-2); stroke-width: 1; }
.chart .req text { fill: var(--ink-2); font-size: 11px; font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #ffffff; padding: 6px 9px; border-radius: var(--r); font-size: 12px; white-space: nowrap;
  transform: translate(-50%, -100%); margin-top: -8px; z-index: 2; }
.tip b { display: block; font-size: 13.5px; }

/* ---------- directives ---------- */
.dir-index .type-head td { background: var(--bg); font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--ink); padding: 8px 12px; }
.dir-num { font-weight: 700; white-space: nowrap; }
.dir-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.page > div > .note + .dir-layout, .page > div > .note + .note { margin-top: 12px; }
/* A directive, laid out like CPD's own (G01-03; every directive since): a bordered header table with the star, the
   department, the title in bold capitals and the type and number top right, two staggered rows of light-blue checker
   (#009FD7 on the real ones), ISSUE DATE / EFFECTIVE DATE / RESCINDS / INDEX CATEGORY; Arial-metric type, black on
   white; a yellow bar and a faint watermark on rescinded, draft and superseded copies. */
.dir-doc { position: relative; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r); color: #111111; overflow: hidden; }
.dir-doc.wm::after { content: attr(data-wm); position: absolute; left: 50%; top: 340px; transform: translate(-50%, 0) rotate(-30deg); font: 700 110px/1 var(--body);
  color: rgba(17, 17, 17, 0.05); letter-spacing: 0.04em; pointer-events: none; white-space: nowrap; }
.dir-head { margin: 22px 24px 0; border: 1.5px solid #111111; }
.dh-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px 8px; }
.dh-top img { width: 64px; height: 64px; filter: grayscale(1) contrast(1.05); }
.dh-name { font-family: var(--body); font-size: 14px; }
.dh-name h1 { font-family: var(--body); font-weight: 700; font-size: 19px; line-height: 1.25; margin-top: 3px; letter-spacing: 0; }
.dh-num { font-family: var(--body); font-weight: 700; font-size: 15px; align-self: start; padding-top: 4px; white-space: nowrap; }
.dh-check { height: 12px; background: repeating-conic-gradient(#009fd7 0 25%, #ffffff 0 50%) 0 0 / 12px 12px; border-top: 1px solid #111111; border-bottom: 1px solid #111111; }
.dh-rows { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 13.5px; }
.dh-rows th, .dh-rows td { border-top: 1px solid #111111; padding: 5px 10px; text-align: left; vertical-align: top; }
.dh-rows th { font-weight: 700; white-space: nowrap; width: 1%; }
.dh-rows td + th { border-left: 1px solid #111111; }
.dh-rescinded { background: #fff3a6; border-top: 1px solid #111111; padding: 6px 10px; font-weight: 700; text-align: center; font-size: 13.5px; }
.dir-body { padding: 8px 24px 24px; font-size: 15.5px; line-height: 1.65; max-width: 880px; font-family: var(--body); }
.dir-body ins { font-style: italic; text-decoration: underline double; text-underline-offset: 3px; }
.dir-body .dnote { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 4px; margin: 8px 0 12px 2.6em; }
.dir-body .dnote b { font-weight: 700; }
.dir-body .dnote > div p:last-child { margin-bottom: 0; }
.dir-body a.iref { color: inherit; }
.dir-body li.hit > .tx, .dir-body .dsec.hit > h2 { background: var(--amber-bg); }
.dir-end { padding: 4px 24px 22px; font-family: var(--body); font-size: 14.5px; max-width: 880px; }
.dir-revnote { margin: 0 0 18px; }
.dir-sig { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin: 26px 0 8px; }
.dir-sig .supt { min-width: 220px; }
.dir-sig .sig-name { font-weight: 700; }
.dir-addenda { margin-top: 18px; }
.dir-addenda ol { margin: 6px 0 0; padding-left: 2.2em; }
.dir-changed { padding: 10px 24px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); background: var(--hover); }
.dir-index .tbl .group td { background: #e3f2fa; color: #0b2c3d; font-family: var(--body); font-weight: 700; font-size: 13.5px; border-top: 1px solid #b9dcee; }
.dir-num.addendum { padding-left: 1.6em; font-weight: 400; }
.dir-body p { margin: 0 0 10px; }
.dir-body .dsec { margin-top: 22px; scroll-margin-top: 90px; }
.dir-body h2 { font-family: var(--body); font-weight: 700; font-size: 15.5px; margin: 0 0 10px; display: grid; grid-template-columns: 2.6em 1fr; }
.dir-body ol, .dir-body ul { list-style: none; margin: 4px 0 10px; padding: 0; }
.dir-body li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); margin: 0 0 7px; scroll-margin-top: 90px; }
.dir-body li > ol, .dir-body li > ul, .dir-body li > .after { grid-column: 2; }
.dir-body li .mk { font-weight: 700; }
.dir-body li.bul { grid-template-columns: 1.4em minmax(0, 1fr); }
.dir-body li.bul::before { content: ''; width: 5px; height: 5px; background: var(--ink-2); border-radius: 50%; margin: 0.65em 0 0 0.3em; }
.dir-body li.bul .tx { grid-column: 2; }
.dir-body .tx p { margin: 6px 0 0; }
.dir-body li:target > .tx { background: var(--amber-bg); }
.dir-body .dtable { overflow-x: auto; margin: 6px 0 14px; }
.dir-body table { border-collapse: collapse; font-size: 14px; min-width: 60%; }
.dir-body th, .dir-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.dir-body th { background: var(--bg); }
.dir-foot { padding: 12px 24px; border-top: 1px solid var(--line); color: var(--ink-2); font: 12.5px/1.5 var(--body); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.dir-foot .right { text-align: right; }
.dir-side { position: sticky; top: calc(var(--top-h) + 16px); }
.dir-side .panel-body { padding: 12px 14px; }
.toc { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.toc li { display: grid; grid-template-columns: 2.2em 1fr; padding: 4px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--navy); text-decoration: underline; }
.ackbar { display: flex; gap: 14px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--navy-tint); }
.ackbar.done { background: var(--green-bg); }
.ackbar .grow { min-width: 0; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.editor textarea.input { min-height: 540px; font: 13.5px/1.6 Consolas, 'Courier New', monospace; tab-size: 2; }
.editor .preview { max-height: 720px; overflow: auto; }
.markup-help { font-size: 12.5px; color: var(--ink-2); }
.markup-help code { font: 12px Consolas, monospace; background: var(--bg); padding: 1px 4px; border-radius: var(--r); }
.snippet { color: var(--ink-2); font-size: 13px; margin-top: 2px; }

/* ---------- the bulletin ---------- */
.bulletin-date { font-family: var(--head); font-weight: 500; font-size: 18px; color: var(--ink-2); }
.notice { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.notice:last-child { border-bottom: 0; }
.notice h3 { font-size: 18px; }
.notice .by { color: var(--ink-3); font-size: 12.5px; margin: 3px 0 8px; }
.notice .body { white-space: pre-line; color: var(--ink); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 10px 18px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; align-items: center; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list .grow { min-width: 0; }
.plain-list small { color: var(--ink-3); display: block; }
.big-line { font-size: 15px; color: var(--ink-2); }
.big-line b { color: var(--ink); }

/* ---------- conversations (complaints, tickets, applications) ---------- */
.thread { list-style: none; margin: 0; padding: 0; }
.thread .msg { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.thread .msg:last-child { border-bottom: 0; }
.thread .msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px; }
.thread .msg-head time { margin-left: auto; font-size: 12px; }
.thread .msg-body { white-space: pre-line; overflow-wrap: anywhere; }
.thread .msg.system { background: var(--hover); color: var(--ink-2); font-size: 13px; padding-top: 9px; padding-bottom: 9px; }
.thread .msg.system .msg-head { margin-bottom: 0; }
.thread .msg.internal { background: var(--amber-bg); }
.reply { padding: 14px 18px; border-top: 1px solid var(--line); }
.reply .field { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 14px; padding: 14px 18px; margin: 0; }
.kv.qa { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
.kv.qa dd { margin-bottom: 10px; }
.kv dt { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.kv dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.form-doc { background: #ffffff; border: 1px solid var(--line); border-radius: var(--r); }
.form-doc .fd-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 2px solid var(--navy); }
.form-doc .fd-head img { width: 52px; height: 52px; }
.form-doc .fd-head .t { font-family: var(--body); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.form-doc .fd-head .d { font-size: 12.5px; color: var(--ink-2); }
.form-doc .fd-head .no { font-weight: 700; white-space: nowrap; }
.form-doc .fd-band { background: var(--bg); padding: 6px 20px; font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.ratings { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ratings th, .ratings td { padding: 7px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.ratings td.r { font-weight: 700; }
.ratings tr > :first-child { padding-left: 18px; width: 300px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.choice-row .check { margin: 0; }
.civ-nav { display: flex; gap: 4px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; }
.civ-nav a { padding: 12px 12px 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.civ-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.gate-more { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.gate-main .gate-more + .small { margin-top: 10px; }
.page.narrow { max-width: 980px; }
.btn.discord.small { height: 32px; padding: 0 12px; font-size: 13px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); }
.steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.steps li + li { border-left: 1px solid var(--line-2); }
.steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--navy); color: #ffffff; font-size: 12px; }
.small { font-size: 13px; }
.pick-list { display: grid; gap: 2px; margin: -6px 0 12px; max-height: 240px; overflow-y: auto; }
.pick-list .res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.pick-list .res:hover, .pick-list .res:focus-visible { background: var(--navy-tint); }
.pick-list .res small { margin-left: auto; white-space: nowrap; }
.inbox-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--navy); color: #ffffff; font-size: 12px; font-weight: 700; text-align: center; }

/* ---------- the Recruit Guide and its knowledge check ---------- */
.g-sec .panel-head h2 { display: flex; gap: 10px; align-items: center; }
.g-num { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--navy); color: #ffffff; font: 700 12.5px var(--body); }
.g-sec .panel-body > * + * { margin-top: 10px; }
.g-sec p { margin: 0; max-width: 72ch; }
.g-steps, .g-list { margin: 0; padding-left: 22px; max-width: 72ch; }
.g-steps li, .g-list li { margin: 4px 0; padding-left: 2px; }
.g-keys { border-collapse: collapse; font-size: 14px; }
.g-keys th, .g-keys td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.g-keys th { white-space: nowrap; font-weight: 400; }
.g-keys tr:last-child th, .g-keys tr:last-child td { border-bottom: 0; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r); background: var(--paper);
  font: 700 12.5px var(--body); color: var(--ink); text-align: center; line-height: 1.5; }
.g-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; background: var(--amber-bg); border-left: 3px solid var(--amber); max-width: 72ch; }
.g-note .ic { margin-top: 3px; color: var(--amber); }
.g-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.g-side { position: sticky; top: calc(var(--top-h) + 16px); }
.g-side .panel-body .plain-list li { padding: 8px 0; }
.g-checks { list-style: none; margin: 0; padding: 0 0 6px; }
.g-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 18px; }
.g-checks li .ic { margin-top: 3px; color: var(--ink-3); flex: none; }
.g-checks li.done .ic { color: var(--green); }
.g-checks small { display: block; color: var(--ink-3); font-size: 12.5px; }
.g-checks.wide li { align-items: center; border-bottom: 1px solid var(--line-2); padding: 10px 18px; }
.g-checks.wide li:last-child { border-bottom: 0; }
.quiz { list-style: none; margin: 0 0 90px; padding: 0; display: grid; gap: 12px; }
.quiz fieldset { border: 0; margin: 0; padding: 14px 18px; min-width: 0; }
.quiz legend { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.quiz legend + * { clear: left; }
.quiz .opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; margin-left: 24px; border-radius: var(--r); cursor: pointer; }
.quiz .opt:hover { background: var(--hover); }
.quiz .opt input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--navy); flex: none; }
.quiz .opt:has(input:checked) { background: var(--navy-tint); }
.quiz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 12px; align-items: center; padding: 12px max(16px, calc((100vw - 1280px) / 2 + 32px));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(30, 44, 94, 0.08); }
.quiz.marked { margin-bottom: 24px; }
.quiz.marked > li { padding: 14px 18px; }
.quiz.marked .q { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.quiz.marked .q b { flex: 1; }
.quiz.marked ul { list-style: none; margin: 0 0 0 34px; padding: 0; }
.quiz.marked ul li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; color: var(--ink-2); }
.quiz.marked ul li .ic { margin-top: 3px; flex: none; color: var(--line); }
.quiz.marked ul li.correct { color: var(--ink); font-weight: 700; }
.quiz.marked .ic-gap { display: inline-block; width: 16px; flex: none; }
.quiz.marked ul li.correct .ic { color: var(--green); }
.quiz.marked ul li.chosen:not(.correct) .ic { color: var(--red); }
.quiz.marked ul li small { color: var(--red); font-weight: 400; margin-left: 4px; }
.quiz.marked .why { margin: 8px 0 0 34px; padding-top: 8px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.quiz.marked > li.wrong { border-left: 3px solid var(--red); }

/* ---------- appeals, promotions ---------- */
.appeal-line { margin-top: 4px; font-size: 13px; }
.quote { padding: 10px 12px; margin-bottom: 12px; background: var(--bg); border-left: 3px solid var(--line); white-space: pre-line; overflow-wrap: anywhere; }
.quote b { display: block; margin-bottom: 4px; font-size: 12.5px; }
details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary h2::after { content: ' +'; color: var(--ink-3); font-weight: 400; }
details.panel[open] > summary h2::after { content: ' -'; }

/* ---------- dialogs, menus, toasts ---------- */
dialog.dlg { border: 1px solid var(--line); border-radius: var(--r); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); color: var(--ink);
  background: var(--paper); box-shadow: 0 18px 50px rgba(20, 30, 60, 0.22); }
dialog.dlg.wide { width: min(760px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(20, 27, 43, 0.45); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.dlg-head h2 { font-size: 21px; }
.dlg-head .x { margin-left: auto; }
.dlg-body { padding: 18px 20px 6px; overflow-y: auto; max-height: calc(100dvh - 200px); }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.dlg-foot .left { margin-right: auto; color: var(--ink-3); font-size: 12.5px; align-self: center; }
.menu { position: fixed; z-index: var(--z-menu); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(20, 30, 60, 0.16);
  min-width: 220px; padding: 6px; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  text-align: left; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: grid; gap: 8px; }
.toast { background: var(--ink); color: #ffffff; padding: 11px 14px; border-radius: var(--r); max-width: 420px; display: flex; gap: 10px; align-items: flex-start; }
.toast.bad { background: var(--red); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise 0.18s ease-out; } @keyframes rise { from { transform: translateY(6px); opacity: 0; } } }

/* quick search */
.finder { width: min(640px, calc(100vw - 32px)); }
.finder .input { height: 46px; font-size: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 18px; }
.finder .input:focus { outline: none; }
.finder .results { max-height: 420px; overflow-y: auto; padding: 6px; }
.finder .results h4 { margin: 10px 10px 4px; font-size: 12px; color: var(--ink-3); }
.finder .res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.finder .res[aria-selected="true"], .finder .res:hover { background: var(--navy-tint); }
.finder .res small { color: var(--ink-3); margin-left: auto; white-space: nowrap; }

/* ---------- sign-in ---------- */
/* sign-in: one column across the whole page under the band, the star and the button in the middle */
.gate { display: flex; flex-direction: column; align-items: center; min-height: calc(100dvh - var(--top-h) - var(--band-h)); background: var(--paper);
  padding: 0 20px; text-align: center; }
.gate-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 460px; padding: 56px 0 32px; }
.gate-star { width: 112px; height: 112px; margin-bottom: 22px; }
.gate-main h1 { font-size: 38px; }
.gate-main .lead { font-size: 16px; color: var(--ink-2); margin: 12px 0 28px; max-width: 40ch; }
.gate-main .note { text-align: left; width: 100%; }
.gate-main .btn.discord { width: 100%; max-width: 340px; }
.gate-main .small { font-size: 13px; color: var(--ink-3); margin-top: 18px; max-width: 46ch; }
.gate-foot { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 22px 0 28px; color: var(--ink-3); font-size: 12.5px;
  border-top: 1px solid var(--line-2); width: 100%; max-width: 760px; text-align: left; }
.gate-foot img { width: 120px; }

/* ---------- small screens: the sections become a row under the band, tables become blocks ---------- */
@media (max-width: 1100px) {
  .cols, .dir-layout { grid-template-columns: minmax(0, 1fr); }
  .dir-side, .g-side { position: static; }
  .g-layout { grid-template-columns: minmax(0, 1fr); }
  .g-layout .g-side { order: -1; }
  .editor { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .nav { position: sticky; top: var(--top-h); z-index: 10; height: auto; display: flex; gap: 2px; overflow-x: auto; padding: 6px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-group, .nav-foot { display: none; }
  .nav a { flex: none; height: 34px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--navy); background: transparent; }
  .page { padding: 18px 16px 48px; }
  .filters .input { flex: 1 1 150px; min-width: 0; }
  .filters .search { flex-basis: 100%; }
  .find-btn { width: 40px; padding: 0; justify-content: center; }
  .find-btn span, .find-btn kbd { display: none; }
  .me-name { display: none; }
  .brand-sub { display: none; }
  .gate-main { padding: 36px 0 24px; }
  .gate-star { width: 88px; height: 88px; }
  .gate-main h1 { font-size: 30px; }
  .gate-foot { flex-direction: column; text-align: center; }
  .civ-nav { padding: 0 6px; gap: 0; }
  .civ-nav a { padding: 12px 9px 10px; font-size: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line-2); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .form-doc .fd-head { grid-template-columns: 40px 1fr; }
  .form-doc .fd-head img { width: 40px; height: 40px; }
  .form-doc .fd-head .no { grid-column: 1 / -1; }
  .file-head { grid-template-columns: auto 1fr; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .dh-rows, .dh-rows tbody, .dh-rows tr { display: block; }
  .dh-rows th, .dh-rows td { display: inline-block; border-left: 0 !important; }
  .dh-rows tr { border-top: 1px solid #111111; }
  .dh-rows th, .dh-rows td { border-top: 0; }
  .fields-2, .fields-3 { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: flex; flex-direction: column; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  .tbl.stack td.lead { order: -1; }
  .tbl.stack td:empty { display: none; }
  .tbl.stack td { display: flex; gap: 12px; justify-content: space-between; padding: 3px 0; border: 0; text-align: right; }
  .tbl.stack td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; font-weight: 700; text-align: left; }
  .tbl.stack td.lead { display: block; text-align: left; padding-bottom: 6px; }
  .tbl.stack td.lead::before { content: none; }
  .tbl.stack .group td { display: block; text-align: left; }
  .tbl.stack .group td::before { content: none; }
  .tbl.stack .num { text-align: right; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .top-in { gap: 10px; padding: 0 12px; }
  .page-head h1 { font-size: 25px; }
  .dir-head { margin: 14px 12px 0; }
  .dh-top { grid-template-columns: 44px minmax(0, 1fr); }
  .dh-top img { width: 44px; height: 44px; }
  .dh-num { grid-column: 1 / -1; padding-top: 0; }
  .dh-name h1 { font-size: 16px; }
  .dir-body { padding: 6px 14px 18px; font-size: 15px; }
  .dir-body li, .dir-body h2 { grid-template-columns: 2.1em minmax(0, 1fr); }
  .dir-body .dnote { margin-left: 0; grid-template-columns: minmax(0, 1fr); }
  .dir-end { padding: 4px 14px 18px; }
  .dir-sig { grid-template-columns: minmax(0, 1fr); }
  .ackbar { flex-wrap: wrap; padding: 14px 16px; }
  .ackbar .grow { flex: 1 1 calc(100% - 40px); }
  .ackbar .btn { width: 100%; }
  .file-head { padding: 16px; gap: 14px; }
  .file-head .av { width: 56px; height: 56px; }
  .file-head h1 { font-size: 24px; }
}

@media print {
  .top, .band, .nav, .ackbar, .dir-side, .page-head .actions, .file-actions, .crumb, .note, .dir-changed { display: none !important; }
  .dir-layout { display: block; }
  .dh-check { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .frame { display: block; }
  body { background: #ffffff; }
  .dir-doc { border: 0; }
}

/* ---------- recruitment: the board's stages, "Your path", the guides, the interview sheet ---------- */
.flow { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); overflow-x: auto; }
.flow button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2);
  font-weight: 700; white-space: nowrap; border-radius: var(--r); cursor: pointer; flex: none; }
.flow button:hover { background: var(--hover); color: var(--ink); }
.flow button[aria-selected="true"] { background: var(--navy); color: #ffffff; }
.flow-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--r); background: var(--line-2); color: var(--ink-2); font-size: 12px; }
.flow-n.due { background: var(--navy); color: #ffffff; }
.flow button[aria-selected="true"] .flow-n { background: #34437a; color: #ffffff; }
.flow button[aria-selected="true"] .flow-n.due { background: #ffffff; color: var(--navy); }
.flow-arrow { color: var(--ink-3); }
.flow-gap { flex: 1; min-width: 16px; }
.stage-about { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; color: var(--ink-2); }
.stage-about p { margin: 0; }
.block { display: block; }
.next b { display: block; font-weight: 700; }
.next small, .who-app small, .prog small { display: block; color: var(--ink-3); font-size: 12px; }
.who-app a { text-decoration: none; }
.who-app a:hover b { text-decoration: underline; }
.who-app b { color: var(--ink); }
.tbl td.end { width: 1%; white-space: nowrap; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.reqs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.reqs li { padding: 1px 0; color: var(--ink); }
.reqs li.ok { color: var(--green); }
.tbl td.wrap { min-width: 220px; }

.path-panel .panel-head .right a { font-weight: 700; }
.path-wrap { padding: 16px 18px 6px; overflow-x: auto; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.path li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.path li::after { content: ''; flex: 1; height: 2px; min-width: 10px; margin-right: 8px; background: var(--line); }
.path li:last-child::after { content: none; }
.path li.done { color: var(--ink-2); }
.path li.done::after { background: var(--navy); }
.path li.now { color: var(--navy); }
.path-n { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink-3); font: 700 12px var(--body); }
.path li.done .path-n { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.path li.now .path-n { border-color: var(--navy); background: var(--navy-tint); color: var(--navy); }
.path-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path-body { padding-top: 10px; }
.path-body p { margin: 0 0 8px; max-width: 75ch; }
.path-now { font-size: 15px; }
.path-body .reqs { margin-top: 4px; }

.path-map { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.path-map li { background: var(--paper); padding: 14px 14px 12px; }
.pm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pm-head b { font: 600 16px/1.15 var(--head); }
.path-map .path-n { background: var(--navy); border-color: var(--navy); color: #ffffff; width: 24px; height: 24px; }
.path-map p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.path-map small { font-size: 12px; font-weight: 700; color: var(--ink); }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-list { display: grid; gap: 2px; position: sticky; top: calc(var(--top-h) + 16px); }
.guide-list a { display: block; padding: 10px 12px; border-left: 3px solid transparent; border-radius: var(--r); color: var(--ink-2); text-decoration: none; }
.guide-list a b { display: block; color: var(--ink); }
.guide-list a small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.guide-list a:hover { background: var(--hover); }
.guide-list a[aria-current] { background: var(--navy-tint); border-left-color: var(--navy); }
.guide-list a[aria-current] b { color: var(--navy); }
.guide .lead-p { font-size: 15px; color: var(--ink-2); }

details.how { margin: 12px 0 16px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); }
details.how summary { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-weight: 700; cursor: pointer; color: var(--navy); }
.how-body { padding: 0 18px 16px; }
.how-body > * + * { margin-top: 10px; }
.how-body p { margin: 0; }

.sheet .ask { margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line-2); background: var(--bg); border-radius: var(--r); }
.sheet .ask summary { font-weight: 700; cursor: pointer; }
.sheet .ask ol { margin: 8px 0 2px; padding-left: 20px; }
.sheet .ask li { margin: 3px 0; }
.areas { border: 1px solid var(--line-2); border-radius: var(--r); }
.area { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.area + .area { border-top: 1px solid var(--line-2); }
.area b { display: block; }
.area small { display: block; color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 1100px) {
  .path-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .path li::after { content: none; }
  .path-map { grid-template-columns: minmax(0, 1fr); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-list { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .guide-list a { flex: none; border-left: 0; border-bottom: 3px solid transparent; }
  .guide-list a small { display: none; }
  .guide-list a[aria-current] { border-bottom-color: var(--navy); }
  .tbl.stack td.end { width: auto; }
  .tbl.stack td.end::before { content: none; }
  .acts { justify-content: flex-start; flex-wrap: wrap; }
  .tbl td.wrap { min-width: 0; }
  .area { flex-wrap: wrap; }
}

/* The interview page: the sheet beside their application, which stays in view while the sheet scrolls */
.who-app small { white-space: nowrap; }
.flow-sep { flex: none; width: 1px; height: 24px; margin: 0 6px; background: var(--line); }
.iv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 16px; align-items: start; }
.iv-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.iv-sheet .fd-band:first-of-type { border-top: 0; }
.iv-area { padding: 12px 20px 14px; }
.iv-before { margin: 0; padding-left: 18px; color: var(--ink-2); }
.iv-qs { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; }
.iv-qs b { display: block; font-weight: 700; }
.iv-qs small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.iv-mark { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.iv-mark small { color: var(--ink-2); font-size: 13px; }
.iv-closing { margin: 0; }
.iv-result .field { margin-top: 12px; }
.path-act { margin-top: 10px; }
.g-subjects { list-style: none; margin: 0; padding: 4px 18px 10px; display: grid; gap: 8px; }
.g-subjects b { display: block; font-weight: 700; font-size: 13.5px; }
.g-subjects small { color: var(--ink-3); font-size: 12.5px; }
.quiz-filter { margin-top: 16px; }
.quiz-subject { margin-top: 14px; }
.quiz-subject:first-child { margin-top: 0; }
.quiz-subject h2 { margin: 0; font-size: 17px; }
.quiz.marked .why a { white-space: nowrap; }
@media (max-width: 1100px) {
  .iv-layout { grid-template-columns: minmax(0, 1fr); }
  .iv-side { position: static; max-height: none; order: -1; }
}
