/* Report card: the signature component */
.reportcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.reportcard__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 3px double var(--border);
}
.reportcard__head h3 { margin: 0; }
.reportcard__head p { margin: 0; color: var(--muted); font-size: .875rem; }
/* Remove any extra wrapper box around the table inside the card */
.reportcard > div:not(.reportcard__head),
.reportcard .table-wrap,
.reportcard .table-scroll,
.reportcard .tablewrap {
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.reportcard table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.reportcard caption {
  padding: .75rem 1.25rem;
  text-align: left;
  caption-side: top;
}
.reportcard th,
.reportcard td {
  padding: .7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.reportcard th:first-child,
.reportcard td:first-child {
  min-width: 9rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.reportcard thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.reportcard .mark {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.reportcard td.comment { color: var(--muted); font-size: .925rem; }
.reportcard tbody tr:last-child td { border-bottom: 0; }

/* Hero headline and layout */
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
  min-width: 0;
}
.hero__body { min-width: 0; }
@media (min-width: 861px) {
  .hero--split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* Hero name card */
.namecard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.namecard dt { color: var(--muted); font-size: .875rem; }
.namecard dd { margin: 0; font-weight: 600; }
.namecard .stat__value { word-break: break-all; }

/* Market split: stacked full width, table above chart */
#market .split { align-items: start; grid-template-columns: minmax(0, 1fr); }
#market .split > * { min-width: 0; }

/* Report card on phones: stacked rows */
@media (max-width: 640px) {
  .reportcard table,
  .reportcard tbody,
  .reportcard tr,
  .reportcard td,
  .reportcard caption { display: block; width: 100%; }
  .reportcard thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .reportcard tbody tr { border-bottom: 1px solid var(--border); padding: .6rem 0; }
  .reportcard tbody tr:last-child { border-bottom: 0; }
  .reportcard td { border-bottom: 0; padding: .2rem 1.25rem; }
  .reportcard tbody tr:last-child td { border-bottom: 0; }
  .reportcard td:first-child { font-weight: 600; }
}

/* Search intent table on phones: stacked cards with labels */
@media (max-width: 640px) {
  .intent-table,
  .intent-table tbody,
  .intent-table tr,
  .intent-table td,
  .intent-table caption {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .intent-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .intent-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .5rem .75rem;
    margin: 0 0 .75rem;
  }
  .intent-table td { border: 0; padding: .35rem 0; }
  .intent-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
  }
}

/* Enrollment by grade chart */
.gradechart { width: 100%; height: auto; max-width: 560px; display: block; margin: 0 auto; }
.gradechart .bar-track { fill: var(--border); }
.gradechart .bar-fill { fill: var(--brand); }
.gradechart text { fill: var(--ink); font-size: 13px; font-family: inherit; }
.gradechart .lbl-muted { fill: var(--muted); }

.finding-list { margin: 0; padding-left: 1.25rem; }
.finding-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.finding-list li:last-child { border-bottom: 0; }
.finding-list .tag { margin-right: .4rem; }