/* router-school.css — Router School data extension.

   Scope contract: ONLY Router School data primitives — the programme crest,
   measurement cells, gate pass/fail marks, ladder rungs and the progressive
   ledger filter. No palette, no font faces, no shell, header, footer, hero,
   button or generic card rules: those come from the canonical Clockwork Owl
   stylesheets (css/main.css, css/page-banners.css, css/research-bands.css).
   Every value resolves to a canonical token. */

/* Programme crest — the mark beside a page-banner title. */
.rs-crest {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

/* Measured values read as data; unmeasured values read as absent. */
.rs-metric {
  font-family: var(--herman-font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rs-note {
  color: var(--herman-color-text-subtle);
  font-size: 12px;
}

/* Gate outcomes. Colour carries the canonical semantic tokens; the glyph
   carries the meaning on its own so the table is readable without colour. */
.rs-gate-pass { color: var(--herman-color-positive); font-family: var(--herman-font-mono); }
.rs-gate-fail { color: var(--herman-color-danger); font-family: var(--herman-font-mono); }

/* Curriculum ladder rung index. */
.rs-rung {
  font-family: var(--herman-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--herman-color-brass);
}

/* Progressive ledger filter — the controls are injected by js/site.js and are
   absent (along with these rules' effect) when scripting is unavailable. */
.rs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0 4px;
}

.rs-filter-label {
  font-family: var(--herman-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--herman-color-text-subtle);
}

.rs-filter-chip {
  font-family: var(--herman-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--herman-color-border);
  background: transparent;
  color: var(--herman-color-text-muted);
  cursor: pointer;
}

.rs-filter-chip[aria-pressed="true"] {
  border-color: var(--herman-color-brass);
  color: var(--herman-color-brass);
}

.rs-is-filtered { display: none; }

/* Six recorded stages use a balanced 3 × 2 curriculum; cards stay canonical. */
.rs-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .rs-stage-grid { grid-template-columns: 1fr; }
}
