html, body { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f6f7fb;
}
main.results-page-shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.results-page-content { flex: 1 0 auto; }
.hero {
  background:
    radial-gradient(1200px 420px at 10% 10%, rgba(13,110,253,.16), transparent 55%),
    radial-gradient(900px 360px at 90% 20%, rgba(25,135,84,.14), transparent 55%),
    #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
[data-trig].trig-fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-trig].trig-fade-up.trig { opacity: 1; transform: translateY(0); }
[data-trig].trig-zoom-in {
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .6s ease, transform .6s ease;
}
[data-trig].trig-zoom-in.trig { opacity: 1; transform: translateY(0) scale(1); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.small-muted { color: rgba(33,37,41,.65); }
.table thead th { white-space: nowrap; }
.score-pill { min-width: 56px; display: inline-flex; justify-content: center; }
.spark svg { display: block; }
.sticky-top-2 { top: .75rem; }
.kpi-card { border: 1px solid rgba(0,0,0,.08); }
.glass {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.06);
}
.section-title {
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(33,37,41,.65);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  font-size: .85rem;
}
.badge-soft { background: rgba(13,110,253,.08); border: 1px solid rgba(13,110,253,.18); color: rgba(13,110,253,.9); }
.badge-soft-success { background: rgba(25,135,84,.10); border: 1px solid rgba(25,135,84,.22); color: rgba(25,135,84,.95); }
.badge-soft-danger { background: rgba(220,53,69,.10); border: 1px solid rgba(220,53,69,.22); color: rgba(220,53,69,.95); }
.badge-soft-warning { background: rgba(255,193,7,.14); border: 1px solid rgba(255,193,7,.30); color: rgba(102,77,3,.95); }
.shadow-soft { box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.chart-wrap { position: relative; height: 240px; }
.chart-wrap-sm { position: relative; height: 180px; }
.results-id-field .input-group-text,
.results-id-field .form-control,
.results-view-btn { min-height: 42px; }
.results-id-field .input-group-text { white-space: nowrap; }
.results-footer {
  width: 100%;
  margin: 1.25rem auto 0;
  padding: .95rem 1rem .9rem;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.98));
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  text-align: center;
}
.results-footer .copy { font-weight: 700; color: #0f172a; line-height: 1.25; font-size: 1rem; }
.results-footer .school-link { color: #1d4ed8; text-decoration: none; }
.results-footer .school-link:hover { text-decoration: underline; }
.results-footer .credit-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem .6rem;
  margin-top: .45rem;
  color: #64748b;
  font-size: .9rem;
}
.results-footer .footer-chip {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(248,250,252,.92);
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}
.results-footer .footer-credit { gap: .42rem; background: rgba(248,250,252,.96); border-color: rgba(148,163,184,.28); color: #334155; }
.results-footer .footer-chip i { color: #0ea5e9; }
.results-footer .footer-link { color: #1d4ed8; text-decoration: none; font-weight: 700; white-space: nowrap; }
.results-footer .footer-link:hover { text-decoration: underline; }
.results-footer .credit-dot { color: #cbd5e1; font-size: .75rem; line-height: 1; }
@media (max-width: 575.98px) {
  .results-footer { padding: .85rem .85rem .8rem; }
  .results-footer .copy { font-size: .94rem; }
  .results-footer .credit-line { gap: .35rem .5rem; font-size: .84rem; }
}
