.sch {
  --chart-ink: #2e3a4b;
  --chart-muted: #536171;
  --chart-line: #e1e5ea;
  --semester-one: #476d91;
  --semester-two: #4b7060;
  --semester-three: #896344;
  --semester-one-tint: #e8eef4;
  --semester-two-tint: #e9f0ea;
  --semester-three-tint: #f4ede5;
  width: min(57.5rem, calc(100% - 2rem));
  margin: clamp(1rem, 3vw, 2rem) auto 3rem;
  padding: clamp(1.4rem, 4vw, 2.5rem) clamp(.9rem, 3vw, 1.75rem);
  border: 1px solid var(--chart-line);
  border-radius: 1.25rem;
  background: #f5f6f7;
  color: var(--chart-ink);
}
.sch h1 { font-size: clamp(1.45rem, 1.1rem + 1.65vw, 2rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.3; }
.sch h2 { margin: 2rem 0 .7rem; font-size: 1.15rem; font-weight: 800; }
.sch h2 small { display: inline-block; margin-inline-start: .35rem; font-size: .8125rem; font-weight: 500; color: var(--chart-muted); }
.sch h3 { margin: 0 0 .45rem; font-size: .9rem; }
.sub { margin: .4rem 0 1.4rem; color: var(--chart-muted); font-size: .9rem; }
.stats, .sumlegend, .legend, .tags { margin: 0; padding: 0; list-style: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.stats li { border-top: .28rem solid; border-radius: .85rem; padding: .85rem 1rem; background: white; }
.stats .c1 { border-color: #8da593; }
.stats .c2 { border-color: #c6a07c; }
.stats .c3 { border-color: #b9c0cb; }
.stats b { display: block; font-size: 2rem; font-weight: 850; line-height: 1.15; }
.stats span { color: var(--chart-muted); font-size: .875rem; }
.sum, .pend { display: grid; gap: 1rem; padding: 1rem 1.15rem; border-radius: 1rem; background: white; }
.stack { display: flex; gap: .2rem; min-height: 2.4rem; }
.stack > div {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: .5rem;
  padding: .2rem;
  color: white;
  text-align: center;
  font-weight: 720;
  font-size: .8125rem;
  line-height: 1.2;
}
.stack .a { background: var(--semester-one); }
.stack .b { background: var(--semester-two); }
.stack .c { background: var(--semester-three); }
.sumlegend, .legend, .tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.sumlegend, .legend { color: var(--chart-muted); font-size: .8125rem; }
.sumlegend i { display: inline-block; width: .65rem; height: .65rem; margin-inline-end: .25rem; border-radius: .16rem; }
.legend { margin-bottom: .65rem; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: .45rem; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.chip.p { background: var(--semester-one); color: white; }
.chip.p.opt { background: white; color: var(--semester-one); box-shadow: inset 0 0 0 1px var(--semester-one); }
.chip.gm { background: white; color: var(--semester-three); box-shadow: inset 0 0 0 1px var(--semester-three); }
.school-plan-mark { margin-inline-start: .08rem; color: var(--semester-three); font-weight: 750; }
.school-scroll { overflow-x: auto; border: 1px solid var(--chart-line); border-radius: .9rem; background: white; }
.school-table { width: 100%; min-width: 34rem; border-spacing: 0; table-layout: fixed; font-size: .9rem; }
.school-table th, .school-table td { padding: .45rem .4rem; }
.school-table thead th:first-child { width: 7.3rem; }
.school-table thead th:first-child, .school-table th[scope="row"] {
  position: sticky;
  left: 0;
  padding-inline: .75rem;
  background: white;
  text-align: left;
}
.school-table thead .semester { background: white; }
.school-table thead .semester span { display: block; padding: .48rem .22rem; border-radius: .5rem; background: var(--semester-tint); }
.semester-1 { --semester-tint: var(--semester-one-tint); }
.semester-2 { --semester-tint: var(--semester-two-tint); }
.semester-3 { --semester-tint: var(--semester-three-tint); }
.school-table td { border-inline-start: 2px solid white; background: color-mix(in srgb, var(--semester-tint) 58%, white); }
.school-table td > div { display: grid; justify-items: center; gap: .25rem; min-height: 1.6rem; align-content: center; }
.school-table tbody tr:not(.school-district) > * { border-top: 1px solid var(--chart-line); }
.school-district th { padding: .65rem .75rem .3rem; color: var(--chart-muted); font-size: .8125rem; text-align: left; }
.school-table a, .tags a { text-decoration-color: transparent; text-underline-offset: .18em; }
.school-table a:hover, .school-table a:focus-visible, .tags a:hover, .tags a:focus-visible { text-decoration-color: currentColor; }
.school-table-note, .notes { margin-top: .55rem; color: var(--chart-muted); font-size: .8125rem; }
.school-scroll-hint { display: none; }
.pend h3 { color: var(--chart-muted); }
.tags { gap: .36rem; }
.tags a { display: block; border-radius: 999px; padding: .22rem .66rem; background: #eef0f3; font-size: .875rem; }
.tags-restricted a { background: var(--semester-three-tint); }
.notes { margin-top: 1rem; padding: .7rem .85rem; border-radius: .65rem; background: #ffffffb3; }

@media (max-width: 38rem) {
  .stats { grid-template-columns: 1fr; gap: .5rem; }
  .stats li { display: flex; align-items: baseline; gap: .65rem; padding: .65rem .8rem; }
  .stats b { font-size: 1.55rem; white-space: nowrap; }
  .school-scroll-hint { display: inline; }
}
