/* GTFS Scorecard — civic report card aesthetic.
   Warm paper ground, ink type, route-line motif. Mobile-first.
   Severity and grades always carry text; color is reinforcement only. */

:root {
  --paper: #f5efe2;
  --paper-deep: #ece3cf;
  --ink: #20241f;
  --ink-soft: #4c5247;
  --line: #cfc4a9;
  --green: #204e3a;        /* primary civic green */
  --green-bright: #2e6e51;
  --grade-a: #1d5c40;
  --grade-b: #2c5f70;
  --grade-c: #8a5a14;
  --grade-d: #9c4511;
  --grade-f: #8e2a23;
  --error: #8e2a23;
  --warning: #7a5310;
  --info: #44525e;
  --card: #fbf7ee;
  --focus: #1a4ed8;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(32 36 31 / 0.08), 0 4px 14px rgb(32 36 31 / 0.07);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;
  --board: #102a20;        /* dark pine ground for the status board */
  --board-2: #163a2c;
  --amber: #e7a531;        /* signal accent */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(at 15% 0%, rgb(255 255 255 / 0.55), transparent 45%),
    var(--paper);
}

.wrap {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1.1rem;
}

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-bright); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 120ms ease;
}
.skip-link:focus { top: 0; color: var(--paper); }

/* ---------- header / footer ---------- */

.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  padding-block: 1rem 0.8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 6px var(--paper);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

.site-footer {
  margin-top: 4rem;
  border-top: 3px solid var(--ink);
  background: var(--paper-deep);
  padding-block: 1.4rem 2.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

main { padding-top: 1.6rem; }
main:focus { outline: none; }
.loading { color: var(--ink-soft); }

/* ---------- route-line motif ---------- */

.route-rule {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2.4rem 0 1.2rem;
  border: 0;
}
.route-rule::before, .route-rule::after { content: none; }
.route-rule .seg {
  flex: 1;
  height: 3px;
  background: var(--ink);
}
.route-rule .stopdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  flex: none;
}

/* ---------- agency picker ---------- */

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.2rem 0 0.6rem;
}
.page-lede {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.8rem;
}

.picker-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin: 0 0 1.1rem;
}
.agency-search {
  flex: 1 1 18rem;
  font: inherit;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.agency-search:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--ink);
}
.agency-count { margin: 0; color: var(--ink-soft); font-size: 0.88rem; white-space: nowrap; }
.no-match { color: var(--ink-soft); }
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

.agency-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
/* .agency-card sets display:grid, which would beat [hidden]'s display:none. */
.agency-card[hidden] { display: none; }

.agency-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  transition: transform 140ms ease, border-color 140ms ease;
}
.agency-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.agency-card h2 { margin: 0 0 0.15rem; font-size: 1.12rem; line-height: 1.3; }
.agency-card h2 a { text-decoration: none; color: var(--ink); }
.agency-card h2 a::after { content: ""; position: absolute; inset: 0; }
.agency-card h2 a:hover { text-decoration: underline; }
.agency-card .meta { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.grade-chip {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
}

.grade-a { background: var(--grade-a); }
.grade-b { background: var(--grade-b); }
.grade-c { background: var(--grade-c); }
.grade-d { background: var(--grade-d); }
.grade-f { background: var(--grade-f); }

/* ---------- scorecard hero ---------- */

.score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.grade-stamp {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  width: 6rem;
  height: 6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px rgb(245 239 226 / 0.55), var(--shadow);
  transform: rotate(-4deg);
}

.score-hero .overall { margin: 0.35rem 0 0; color: var(--ink-soft); }
.score-hero .overall strong { color: var(--ink); font-size: 1.05rem; }
.snapshot-note { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.disclaimer { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--ink-soft); max-width: 34rem; font-style: italic; }
.legend { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; max-width: 40rem; }
.legend-row { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.7rem; align-items: start; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}

/* ---------- top fixes ---------- */

.fixes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: fix;
}
.fix-card {
  counter-increment: fix;
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1rem 3.4rem;
}
.fix-card::before {
  content: counter(fix);
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--green);
}
.fix-card .fix-action { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.02rem; }
.fix-card .fix-why { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.fix-card .fix-effort {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  color: var(--ink-soft);
}

.all-clear {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--grade-a);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0;
}

/* ---------- categories ---------- */

.cat-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 38rem) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

.cat-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.cat-card h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.cat-card .weight { font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.cat-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.3rem 0 0.1rem;
}
.cat-score .outof { font-size: 0.85rem; font-family: var(--font-body); color: var(--ink-soft); font-weight: 400; }

.meter {
  height: 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 0.35rem 0 0.6rem;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--green-bright);
  border-radius: inherit;
}

.cat-card .summary { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.cat-card.unmeasured { background: transparent; box-shadow: none; border-style: dashed; }
.cat-card.unmeasured .status-note {
  margin: 0.4rem 0 0.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- findings ---------- */

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.filterbar button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
}
.filterbar button:hover { border-color: var(--ink); }
.filterbar button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- over-time trend ---------- */
.trend-chart {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--green);
  margin: 0 0 1.2rem;
}
.trend-spark { width: 100%; height: 64px; display: block; }
.trend-sub { font-size: 1rem; margin: 0 0 0.6rem; }
.delta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; max-width: 26rem; }
.delta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
.delta-cat { font-weight: 600; }
.delta { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-up { color: var(--green); }
.delta-down { color: var(--error); }
.delta-flat { color: var(--ink-soft); }

.findings-count { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 0.8rem; }

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.finding {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
}
.finding-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.sev {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  border: 1.5px solid currentColor;
}
.sev-error { color: var(--error); }
.sev-warning { color: var(--warning); }
.sev-info { color: var(--info); }
.finding .count { font-size: 0.82rem; color: var(--ink-soft); }
.finding .what { margin: 0 0 0.25rem; font-weight: 600; }
.finding .why { margin: 0 0 0.45rem; font-size: 0.9rem; color: var(--ink-soft); }
.finding .how { margin: 0; font-size: 0.9rem; }
.finding .how strong { color: var(--green); }
.finding .code { font-size: 0.74rem; color: var(--ink-soft); }
.finding .fix-guide { color: var(--green); font-weight: 600; white-space: nowrap; }

/* ---------- feed details / about ---------- */

.feed-details {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.feed-details dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0; }
.feed-details dt { font-weight: 600; }
.feed-details dd { margin: 0; overflow-wrap: anywhere; }

.backlink { display: inline-block; margin-bottom: 1.2rem; font-size: 0.92rem; }

.error-box {
  background: var(--card);
  border: 1.5px solid var(--error);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

/* ---------- program rollups ---------- */

.picker-aside { margin-top: 1.6rem; font-size: 0.95rem; }

.program-list { list-style: none; padding: 0; margin: 0; }
.program-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.program-row h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.program-row > div { flex: 1; }
.program-fix { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Follow (directory) and remove (cohort) controls. The follow button sits above
   the full-card link overlay so it stays clickable. */
.follow {
  position: relative;
  z-index: 1;
  align-self: center;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.follow:hover { border-color: var(--ink); }
.follow[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.cohort-remove {
  align-self: center;
  font: inherit;
  font-size: 0.8rem;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.pill-warn, .pill-ok {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
}
.pill-warn { background: #f3e0d4; color: var(--grade-d); }
.pill-ok { background: #dceadf; color: var(--grade-a); }

/* ---------- self-serve submission form ---------- */

.submit-form { max-width: 34rem; margin-top: 1.4rem; }
.submit-form .field { margin: 0 0 1.2rem; }
.submit-form label, .submit-form legend { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.submit-form fieldset {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.submit-form fieldset label { font-weight: 400; margin-top: 0.6rem; }
.submit-form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.submit-form input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.submit-form .req { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.submit-form .hint { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); }
.submit-button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}
.submit-button:hover { background: var(--green-bright); }
.submit-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.submit-button:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 0.4rem; font-size: 0.95rem; }
.form-status-err { color: var(--error); font-weight: 600; }
.form-status-ok { color: var(--grade-a); font-weight: 600; }

/* ---------- embeddable badge ---------- */

.badge-section img { display: block; margin: 0.4rem 0 0.9rem; }
.badge-embed-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.badge-embed {
  width: 100%;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.badge-embed:focus { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- reveal animation (load only, reduced-motion safe) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal:nth-child(2) { animation-delay: 60ms; }
  .reveal:nth-child(3) { animation-delay: 120ms; }
  .reveal:nth-child(4) { animation-delay: 180ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- print: a CSM can hand this across the table ---------- */

@media print {
  .site-header, .site-footer, .filterbar, .skip-link, .backlink { display: none; }
  body { background: #fff; }
  .agency-card, .fix-card, .finding, .cat-card { box-shadow: none; }
}

/* ===================================================================
   Scorecard status board — the per-agency hero, shared by the app and
   the static pages. Color reinforces; the grade letter is the signal.
   =================================================================== */
.board-hero {
  position: relative; overflow: hidden;
  margin: 0 0 1.6rem;
  border-radius: var(--radius);
  color: var(--paper);
  background:
    radial-gradient(110% 80% at 92% -20%, rgb(231 165 49 / 0.16), transparent 55%),
    radial-gradient(90% 90% at -10% 120%, rgb(46 110 81 / 0.45), transparent 60%),
    var(--board);
  padding: clamp(1.3rem, 4vw, 2.2rem);
}
.board-hero::before { /* faint LED scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(rgb(0 0 0 / 0.14) 0 1px, transparent 1px 4px);
}
.board-inner { position: relative; z-index: 1; }
.board-kicker {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--amber);
  display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
}
.board-kicker .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 9px var(--amber); animation: blip 2s steps(1) infinite; }
@keyframes blip { 50% { opacity: .25; } }
.board-title { font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 .2rem; }
.board-sub { font-family: var(--font-mono); font-size: .8rem; color: #bcccbd; margin: 0 0 1.6rem; }

.grade-block { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.reel {
  --reel-h: 104px;
  width: 86px; height: var(--reel-h); flex: none; border-radius: 12px; overflow: hidden;
  position: relative; background: #14110c;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.06), 0 16px 34px -16px #000;
}
.reel::after { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px;
  background: rgb(0 0 0 / 0.55); z-index: 2; }
.reel-strip {
  display: grid; grid-auto-rows: var(--reel-h);
  transform: translateY(0);
  animation: flapTo 1.7s cubic-bezier(.2,.85,.25,1) .35s both;
}
@keyframes flapTo { to { transform: translateY(var(--flap-end, 0)); } }
.reel-strip span { display: grid; place-items: center; color: var(--paper);
  font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; }

.score-block .score-big { font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.score-block .score-of { font-family: var(--font-mono); color: #9fb2a2; font-size: 1rem; }
.score-block .score-trend { font-family: var(--font-mono); font-size: .82rem; margin: .45rem 0 0; color: #bcccbd; }
.score-block .chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chip { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .32rem .65rem; border-radius: 999px; border: 1px solid rgb(244 236 217 / 0.22); color: #e6dcc2; }
.chip.ok { color: #bfe6cf; border-color: rgb(46 110 81 / 0.6); }
.chip.warn { color: #f1d9a6; border-color: rgb(231 165 49 / 0.55); }

/* category platforms — departure-board "track" rows */
.platforms { margin: 0; }
.platform {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; align-items: start;
  padding: .95rem 0; border-bottom: 1.5px dashed var(--line);
}
.platform .trk { font-family: var(--font-mono); font-weight: 500; color: var(--ink-soft); padding-top: .15rem; }
.platform .pmain { min-width: 0; }
.platform .ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.platform .pname { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; }
.platform .pscore { font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.platform .pscore .outof { color: var(--ink-soft); font-weight: 500; font-size: .8rem; }
.platform.neutral .pscore { font-size: .72rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft); }
.platform .pbar { width: 100%; height: 9px; margin: .5rem 0 .45rem; border-radius: 99px;
  background: var(--paper-deep); overflow: hidden; }
.platform .pbar > span { display: block; height: 100%; border-radius: 99px; }
.platform .pstat { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* top fixes as service alerts */
.alerts { margin: 0; }
.alert { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 0; border-bottom: 1.5px dashed var(--line); }
.alert .badge { align-self: start; font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: .32rem .55rem; border-radius: 7px;
  background: var(--error); color: #fff; white-space: nowrap; }
.alert .badge.sev-warning { background: var(--warning); }
.alert .badge.sev-info { background: var(--info); }
.alert .afix { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin: 0 0 .3rem; }
.alert .awhy { margin: 0 0 .45rem; color: var(--ink-soft); }
.alert .aeta { font-family: var(--font-mono); font-size: .76rem; color: var(--green-bright); margin: 0; }

@media (max-width: 640px) {
  .platform { grid-template-columns: 1.8rem 1fr; gap: .7rem; }
}
