:root {
  --act-green: #006b54;
  --act-green-dark: #004f3f;
  --act-lime: #6bbf4b;
  --act-orange: #f9a21a;
  --act-pale: #f1f6e2;
  --act-paper: #ffffff;
  --act-ink: #111111;
  --act-muted: #4d5853;
  --act-line: #006b54;
  --act-danger: #a72a2a;
}

html {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

body {
  color: var(--act-ink);
  background: var(--act-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

:where(
  button,
  input,
  select,
  textarea,
  code,
  img,
  iframe,
  canvas,
  table,
  .card,
  .route-badge,
  .metric-pill,
  .grade-badge,
  .limited-route-tag,
  .route-chip,
  .cal-day,
  .presentation,
  .metric,
  .stat,
  .finding,
  .callout,
  .definition,
  .methodology-note,
  .privacy-note,
  .student-impact,
  .school-methodology,
  [class*="-card"],
  [class*="-panel"],
  [class*="-pill"],
  [class*="-badge"]
) {
  border-radius: 0 !important;
}

h1,
h2,
h3,
h4,
.hero h1,
.hero h2,
.hero h3,
.cover h1,
.cover h2,
.article > p,
.dek,
.remarks-body p,
.remarks-body li {
  font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4 {
  color: var(--act-ink);
  font-weight: 850;
  letter-spacing: -0.025em;
}

h1 {
  line-height: 1.05;
}

h2,
h3 {
  line-height: 1.15;
}

a {
  color: var(--act-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--act-green-dark);
}

:focus-visible {
  outline: 4px solid var(--act-orange) !important;
  outline-offset: 3px;
}

.muted,
.lede,
.dek,
.byline,
.meta,
.sub,
.freshness,
figcaption {
  color: var(--act-muted);
}

.topline,
.topbar {
  height: 10px;
  background: var(--act-green);
}

body > header:not(.hero) {
  padding: 22px 24px;
  border: 0;
  border-bottom: 8px solid var(--act-orange);
  background: var(--act-green);
  color: #fff;
}

body > header:not(.hero) :is(h1, h2, h3),
body > header:not(.hero) .muted,
body > header:not(.hero) p {
  color: #fff;
}

.header-nav {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
}

.header-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid #fff;
  border-right-width: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.header-nav a:last-child {
  border-right-width: 2px;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--act-ink);
  background: var(--act-lime);
}

.header-nav a[aria-current="page"] {
  border-color: var(--act-orange);
  color: var(--act-ink);
  background: var(--act-orange);
}

.hero {
  border: 0;
  border-top: 8px solid var(--act-orange);
  border-bottom: 10px solid var(--act-lime);
  color: #fff;
  background: var(--act-green) !important;
  background-image: none !important;
}

.hero :is(h1, h2, h3),
.hero .eyebrow,
.hero .kicker,
.hero .byline,
.hero .dek,
.hero .hero-subtitle {
  color: #fff;
  font-weight: 900;
}

.hero-nav a,
.hero .back {
  color: #fff;
  font-weight: 800;
}

.hero-nav {
  padding-bottom: 16px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.65);
}

.hero :where(.trend-panel, .metric, .shift-note, .status-note) {
  border: 3px solid var(--act-ink);
  color: var(--act-ink);
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.hero :where(.trend-panel, .metric, .shift-note, .status-note) :is(h2, h3, p, span, strong) {
  color: inherit;
}

.eyebrow,
.kicker,
[class$="-kicker"] {
  color: var(--act-green);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body > section,
main > section,
.article > section,
.section {
  border-top: 4px solid var(--act-green);
}

body > section,
main > section {
  padding-top: 22px;
}

:where(section, article) > h2:first-child,
.section-heading h2,
.panel-heading h2 {
  padding-left: 12px;
  border-left: 10px solid var(--act-orange);
}

.sub-h {
  padding: 8px 10px;
  border-left: 8px solid var(--act-lime);
  color: var(--act-ink);
  background: var(--act-pale);
  font-size: 15px;
  font-weight: 900;
}

:where(
  .card,
  .api-health-section,
  .api-health-card,
  .api-health-chart-card,
  .bunching-chart-card,
  .coverage-card,
  .v2-report-hero,
  .v2-missed-service,
  .v2-factor-chart,
  .agency-hero,
  .methodology-note,
  .student-impact,
  .school-methodology,
  .ask-panel,
  .archive-intro,
  .privacy-note,
  .metric-strip article,
  .map-card,
  .crowding-card,
  .routes-card,
  .methodology,
  .presentation,
  .metric,
  .stat,
  .finding,
  .callout,
  .definition,
  .remarks,
  .title-vi-primer,
  .records-update
) {
  border: 3px solid var(--act-green) !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.cards {
  gap: 0;
  border-top: 3px solid var(--act-green);
  border-left: 3px solid var(--act-green);
}

.cards .card {
  margin: 0;
  border-top: 0 !important;
  border-left: 0 !important;
}

.card .label,
.metric span,
.stat span {
  color: var(--act-muted);
  font-size: 13px;
  font-weight: 800;
  opacity: 1;
}

.card .val,
.metric strong,
.stat strong {
  color: var(--act-green-dark);
  font-weight: 900;
}

.v2-grade-block,
.agency-grade-block,
.service-conclusion {
  background: var(--act-green) !important;
  background-image: none !important;
}

.v2-grade,
.agency-grade {
  border: 4px solid #fff;
  box-shadow: none !important;
}

.v2-hero-copy h1,
.v2-grade-breakdown > h2 {
  color: var(--act-green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.v2-report-period,
.v2-section-question,
.api-health-kicker,
.bunching-kicker,
.section-kicker,
.panel-kicker,
.school-kicker,
.ask-eyebrow,
.history-eyebrow {
  color: var(--act-green-dark);
}

.v2-factor summary:hover .v2-factor-heading > strong,
.v2-factor-number {
  color: var(--act-green-dark);
}

.v2-factor-heading > small {
  color: #345047;
}

.v2-missed-scale > div,
.agency-scale > div {
  border: 2px solid var(--act-green);
  background: var(--act-pale);
  box-shadow: none;
}

table {
  border: 3px solid var(--act-green);
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 9px 10px;
  border: 1px solid #a8cbbf;
}

th,
thead th {
  color: #fff;
  background: var(--act-green);
  font-weight: 850;
}

tbody tr:hover,
tr.route-row:hover,
tr.route-row.is-open,
.kpi-route-row:hover,
.kpi-route-row.is-open {
  background: var(--act-pale);
}

tr.route-detail > td,
tr.kpi-route-detail > td {
  background: #fff;
  border-bottom: 4px solid var(--act-green);
}

.bounded-table-wrap,
.table-wrap,
.route-table-wrap {
  border-radius: 0;
}

.bounded-table-wrap {
  border: 3px solid var(--act-green);
}

.bounded-table-wrap table {
  border: 0;
}

button,
input,
select,
textarea,
.api-health-link,
.route-week-btn,
.rdgrid-map-btn,
.report-action,
.site-button {
  min-height: 42px;
  border: 2px solid var(--act-green);
  border-radius: 0;
  color: var(--act-ink);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

button,
.api-health-link,
.route-week-btn,
.rdgrid-map-btn,
.report-action,
.site-button {
  cursor: pointer;
}

button:hover,
button:focus-visible,
.api-health-link:hover,
.route-week-btn:hover,
.rdgrid-map-btn:hover,
.report-action:hover,
.site-button:hover,
.site-button:focus-visible {
  border-color: var(--act-green-dark);
  color: var(--act-ink);
  background: var(--act-lime);
}

button[aria-pressed="true"],
.report-view-switch button[aria-pressed="true"],
.kpi-volume-toggle button.is-active,
.cal-cur {
  border-color: var(--act-green) !important;
  color: #fff !important;
  background: var(--act-green) !important;
}

input,
select,
textarea {
  padding: 9px 10px;
}

input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  accent-color: var(--act-green);
}

code {
  border: 1px solid #b9d2c9;
  color: var(--act-green-dark);
  background: var(--act-pale) !important;
}

details {
  border: 3px solid var(--act-green);
  background: #fff;
}

details + details {
  border-top: 0;
}

details > summary {
  position: relative;
  min-height: 54px;
  padding: 14px 62px 14px 16px !important;
  list-style: none;
  color: var(--act-ink) !important;
  background: var(--act-pale);
  font-size: 16px !important;
  font-weight: 900 !important;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before {
  content: "" !important;
  position: absolute;
  top: 50%;
  right: 22px;
  z-index: 1;
  width: 0;
  height: 0;
  border-top: 7px solid var(--act-green-dark);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transform: translateY(-25%);
  pointer-events: none;
}

details > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid var(--act-green);
  color: var(--act-green-dark);
  background: #fff;
  transform: translateY(-50%);
}

details[open] > summary {
  border-bottom: 3px solid var(--act-green);
  background: var(--act-lime);
}

details[open] > summary::after {
  content: "";
  color: var(--act-ink);
  background: var(--act-orange);
}

details[open] > summary::before {
  border-top: 0;
  border-bottom: 7px solid var(--act-ink);
  transform: translateY(-75%);
}

.v2-factor-chevron {
  display: none;
}

.v2-factor-list {
  border: 3px solid var(--act-green);
  background: var(--act-pale);
}

.v2-factor-list > .v2-factor {
  border: 0;
  border-bottom: 1px solid #a8cbbf;
}

.v2-factor-list > .v2-factor:last-child {
  border-bottom: 0;
}

body.report-card-v2 #grade-history {
  border-top: 0;
}

.expand-cell {
  min-width: 48px;
  color: transparent !important;
  font-size: 0 !important;
}

.expand-cell::after {
  content: "▾";
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid var(--act-green);
  color: var(--act-green-dark);
  background: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

:is(.route-row.is-open, .kpi-route-row.is-open) .expand-cell::after {
  content: "▴";
  color: var(--act-ink);
  background: var(--act-orange);
}

.route-badge,
.metric-pill,
.grade-badge,
.limited-route-tag,
.route-chip,
.api-health-status,
.estimate-label {
  border-width: 2px !important;
  font-weight: 900;
}

.cal {
  width: max-content;
  max-width: 100%;
  padding: 12px;
  border: 3px solid var(--act-orange);
  color: var(--act-ink);
  background: #fff;
}

.cal-nav {
  gap: 4px;
  margin-bottom: 10px;
}

.cal-title {
  min-width: 106px;
  color: var(--act-ink);
  font-size: 16px;
  font-weight: 900;
}

.cal-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 2px solid #fff;
  color: #fff;
  background: var(--act-green-dark);
  font-size: 18px;
  line-height: 1;
}

.cal-btn:hover:not(:disabled),
.cal-btn:focus-visible:not(:disabled) {
  border-color: var(--act-green-dark);
  color: var(--act-ink);
  background: var(--act-lime);
}

.cal-btn:disabled {
  border-color: #a8b8b1;
  color: #6b7873;
  background: #e2e9e6;
  opacity: 1;
}

.cal-grid {
  grid-template-columns: repeat(7, 34px);
  gap: 4px;
}

.cal-dow {
  padding: 4px 0;
  color: var(--act-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.cal-day {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid #ccd8d3;
  color: var(--act-muted);
  background: #eef2f0;
  font-size: 14px;
  font-weight: 750;
}

.cal-has {
  border: 2px solid var(--act-green);
  color: var(--act-green-dark);
  background: #fff;
  font-weight: 900;
}

.cal-has:hover:not(.cal-cur),
.cal-has:focus-visible:not(.cal-cur) {
  border-color: var(--act-green-dark);
  color: var(--act-ink);
  background: var(--act-lime);
}

.cal .cal-cur {
  border-color: var(--act-green-dark) !important;
  color: var(--act-ink) !important;
  background: var(--act-orange) !important;
}

.cal-none {
  border-color: #d7dfdc;
  color: #66736e;
  background: #eef2f0;
}

.cal-empty {
  border: 0;
  background: transparent;
}

.hm-grid,
.rdgrid {
  gap: 1px;
  background: #cbd6d2;
}

#route-day-grid {
  overflow-x: auto;
  padding-bottom: 4px;
}

.rdgrid {
  min-width: 860px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(7, minmax(88px, 1fr));
}

.hm-cell,
.rdgrid-cell,
.rdgrid-hcol {
  border-radius: 0;
}

.rdgrid-rlabel {
  padding: 6px 8px;
  color: var(--act-ink);
  background: #f1f5f3;
  overflow: visible;
  white-space: normal;
}

.rdgrid-p50 {
  color: #344b43;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.rdgrid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.rdgrid-corner,
.rdgrid-hcol,
.rdgrid-cell {
  min-width: 0;
}

.rdgrid-map-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  width: auto;
  min-height: 34px;
  max-width: none;
  margin: 0;
  padding: 6px 9px;
  overflow: visible;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-50%);
}

.rdgrid-rlabel:hover .rdgrid-map-btn,
.rdgrid-map-btn:focus-visible {
  max-width: none;
  padding: 6px 9px;
  opacity: 1;
  pointer-events: auto;
}

footer,
.footer {
  margin-top: 56px;
  padding: 24px;
  border: 0;
  border-top: 8px solid var(--act-orange);
  color: #fff;
  background: var(--act-green-dark);
}

footer a,
.footer a {
  color: #fff;
  font-weight: 800;
}

.presentation {
  border-width: 0 0 4px !important;
  border-color: var(--act-green) !important;
}

.presentation:hover,
.presentation:focus-visible {
  background: var(--act-pale) !important;
}

.presentation .arrow {
  display: none;
}

.plot img,
figure img {
  border: 3px solid var(--act-green) !important;
  box-shadow: none !important;
}

.cover {
  padding: 30px 26px;
  border: 0;
  border-bottom: 10px solid var(--act-lime);
  color: #fff;
  background: var(--act-green);
}

.cover :is(h1, h2, h3, p, .kicker, .meta, .sub) {
  color: #fff;
}

.live-map-page {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: var(--act-green-dark);
}

.live-map-page .site-banner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-top: 8px solid var(--act-lime);
  border-bottom: 6px solid var(--act-orange);
  color: #fff;
  background: var(--act-green);
}

.live-map-page .site-banner h1,
.live-map-page .site-banner p {
  color: #fff;
}

.live-map-page .eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--act-orange);
  font-size: 13px;
}

.live-map-page .site-banner h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.live-map-page .attribution {
  margin: 7px 0 0;
  font-size: 15px;
}

.live-map-page .attribution a {
  color: #fff;
}

.live-map-page .site-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 560px;
}

.live-map-page .site-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.live-map-page .site-button:hover,
.live-map-page .site-button:focus-visible {
  border-color: var(--act-orange);
  color: var(--act-ink);
  background: var(--act-orange);
}

.live-map-page .map-frame {
  display: flex;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-top: 0;
  background: var(--act-pale);
}

.live-map-page iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--act-pale);
}

@media (max-width: 820px) {
  body > header:not(.hero) {
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .live-map-page .site-banner {
    grid-template-columns: 1fr;
  }

  .live-map-page .site-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .live-map-page .site-button {
    flex: 0 1 auto;
  }
}

@media (max-width: 560px) {
  body > header:not(.hero) {
    padding: 18px 16px;
  }

  .header-nav a {
    flex: 1 1 46%;
    border-right-width: 2px;
    border-bottom-width: 0;
  }

  .header-nav a:last-child,
  .header-nav a:nth-last-child(2):nth-child(odd) {
    border-bottom-width: 2px;
  }

  .live-map-page .site-banner {
    padding: 16px;
  }

  details > summary {
    padding-left: 12px !important;
  }
}

@media print {
  .topline,
  .topbar,
  .hero,
  .cover,
  footer,
  .footer,
  th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
