/* Alloy: graphite and copper. Chosen 2026-11-24 to look like neither Quadrant nor Job Skills.
   Tokens checked when chosen (WCAG 2.1): text 5.8:1 or more on paper and surface in both themes;
   --line and --mark 3:1 or more on surface; band text 8.7:1 or more on the band. */
:root {
  color-scheme: light dark;
  --paper: #f6f5f3; --surface: #ffffff; --surface-2: #eeece8; --ink: #16181c; --muted: #5b6068;
  --line: #8a8f97; --hair: #dcd9d3; --accent: #9a4416; --steel: #2f5d8a; --mark: #c0612b;
  --band: #1b1e23; --band-ink: #f1efea; --band-muted: #b8bcc3; --focus: #2f5d8a;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121417; --surface: #1b1e23; --surface-2: #23272d; --ink: #ecebe7; --muted: #a3a8b0;
    --line: #6c727b; --hair: #30353c; --accent: #e8945e; --steel: #86b2dc; --mark: #d9773f;
    --band: #0b0c0e; --focus: #86b2dc;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: clip; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: 1.25rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 9; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--band); color: var(--band-ink); border-bottom: 3px solid var(--mark); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.brand { color: var(--band-ink); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { color: var(--band-ink); }
.brand small { display: block; font-weight: 400; font-size: .78rem; color: var(--band-muted); letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: var(--band-muted); text-decoration: none; padding: 8px 10px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mark); }
.top :focus-visible { outline-color: var(--band-ink); }
.tag-admin { margin-left: auto; font-size: .8rem; color: var(--band-muted); }

main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.foot { max-width: 1100px; margin: 0 auto; padding: 12px 16px 32px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--hair); }

.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.tile b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: .9rem; }

form.search { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 12px 0 20px; }
form.search .field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; }
label { font-weight: 600; font-size: .9rem; }
input[type=search], input[type=password], select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.check { display: flex; gap: 6px; align-items: center; font-weight: 400; }
button { font: inherit; font-weight: 600; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--surface); cursor: pointer; }
button.ghost { background: transparent; color: var(--accent); }

.scroll { overflow-x: auto; position: relative; }   /* keeps .sr-only cells inside the box */
table { border-collapse: collapse; width: 100%; background: var(--surface); }
caption { text-align: left; font-weight: 600; padding: 0 0 6px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }

ul.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.results li { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 14px; }
.who { font-weight: 600; }
.meta { color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: .8rem; color: var(--muted); margin-left: 6px; }
.pill.cross { border-color: var(--steel); color: var(--steel); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 3.2em; gap: 2px 10px; align-items: center; }
.bars .lbl { grid-column: 1 / -1; font-size: .95rem; }
.bars .track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bars .fill { display: block; height: 100%; background: var(--mark); }
.bars .val { font-size: .85rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.note { border-left: 3px solid var(--steel); padding: 8px 12px; background: var(--surface); }
.error { border-left: 3px solid #b3261e; padding: 8px 12px; background: var(--surface); }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.lede { font-size: 1.05rem; max-width: 72ch; }
.papers { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; }
.papers li { margin: 2px 0; }
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
form.stack .field { display: flex; flex-direction: column; gap: 4px; }
form.stack button { align-self: flex-start; }
textarea, input[type=text] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
legend { padding: 0 4px; }

/* Call coverage grid: areas down, team across. Words in every marked cell, so colour is never the
   only signal. */
.covgrid th[scope="col"] { vertical-align: bottom; min-width: 7.5rem; }
.covgrid th[scope="col"] .meta { display: block; font-weight: normal; font-size: .8rem; }
.covgrid th[scope="row"] { text-align: left; font-weight: normal; min-width: 12rem; }
.covgrid td.cov { text-align: center; font-size: .85rem; white-space: nowrap; }
.covgrid td.full { background: var(--steel); color: var(--paper); font-weight: 600; }
.covgrid td.part { box-shadow: inset 0 0 0 2px var(--steel); color: var(--ink); }
.covgrid td.gap { text-align: left; white-space: normal; color: var(--ink);
  box-shadow: inset 3px 0 0 var(--mark); }
.covgrid caption { caption-side: top; text-align: left; padding-bottom: 6px; }

/* Connections: campus-by-campus counts. Shade grows with the count (true to scale from the
   largest cell); the number is always printed, so shade is never the only signal. */
.conngrid { border-collapse: collapse; }
.conngrid th[scope="row"] { text-align: left; font-weight: normal; white-space: nowrap; padding-right: 8px; }
.conngrid thead th { vertical-align: bottom; font-weight: normal; font-size: .8rem; padding: 4px 2px; }
.conngrid .vert { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
.conngrid td { text-align: center; min-width: 2.4rem; padding: 0; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--steel) var(--fill, 0%), var(--surface)); }
.conngrid td a { display: block; padding: 6px 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.conngrid td a:hover, .conngrid td a:focus-visible { text-decoration: underline; }
.conngrid td.self { background: var(--surface-2); }
.conngrid td.none { color: var(--muted); padding: 6px 4px; }
.conngrid td.all { background: var(--surface-2); }
.pill.fit { border-color: var(--accent); color: var(--accent); font-weight: 600; }
