/* Reviewed workbook comparison. Shared palette and type follow the existing site. */
.checkup-comparison {
  margin-block: 2rem;
  min-width: 0;
}
.checkup-table-legend,
.checkup-table-hint {
  margin: 0 0 .5rem;
  font-size: var(--text-small);
  color: var(--muted);
}
.checkup-table-hint {
  margin-bottom: 1rem;
  max-width: 75ch;
}
.checkup-table-scroll {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  overflow: auto;
  border: 1px solid var(--line);
  scrollbar-color: var(--muted) var(--soft);
  scroll-margin-top: 7.5rem;
}
.checkup-table-scroll:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}
.checkup-table {
  width: 100%;
  min-width: 72rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.checkup-table caption {
  padding: 1.25rem 1rem;
  background: var(--soft);
  color: var(--navy);
  text-align: left;
  font-size: 1.125rem;
  font-weight: 700;
  text-wrap: balance;
}
.checkup-col-category { width: 18%; }
.checkup-col-test { width: 32%; }
.checkup-col-programs { width: 10%; }
.checkup-table th,
.checkup-table td {
  padding: .875rem .75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.checkup-table tr > :last-child { border-right: 0; }
.checkup-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.checkup-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
}
.checkup-table thead th {
  padding-inline: .5rem;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: normal;
}
.checkup-table .checkup-category {
  background: var(--white);
  vertical-align: top;
  text-align: left;
  font-weight: 600;
}
.checkup-table .checkup-test {
  background: var(--white);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  white-space: pre-line;
}
.checkup-table .checkup-inclusion {
  background: var(--white);
  color: var(--navy);
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
}
.checkup-table .checkup-table-section th {
  background: var(--white);
  text-align: left;
  color: var(--navy);
  font-weight: 700;
}
.checkup-table tbody + tbody tr:first-child > * {
  border-top: .5rem solid var(--soft);
}
.checkup-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  /* Keep every program visible on a typical phone without scaling text below
     12px. Very narrow screens retain a small, accessible scroll area. */
  .checkup-table {
    min-width: 20rem;
    font-size: .75rem;
    line-height: 1.5;
  }
  .checkup-col-category { width: 22%; }
  .checkup-col-test { width: 33%; }
  .checkup-col-programs { width: 9%; }
  .checkup-table th,
  .checkup-table td {
    padding: .5rem .1875rem;
  }
  .checkup-table thead th {
    padding-inline: .1875rem;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .checkup-table caption {
    padding: .875rem .5rem;
    font-size: 1rem;
  }
  .checkup-table-scroll { max-height: 72vh; }
}
@media print {
  .checkup-table-scroll { overflow: visible; max-height: none; border: 0; }
  .checkup-table { min-width: 0; font-size: 9pt; table-layout: auto; }
  .checkup-table thead { position: static; }
  .checkup-table th,
  .checkup-table td { padding: .4rem; }
  .checkup-table-hint { display: none; }
}
