:root {
  color-scheme: light;
  --paper: #f6f7f9;
  --site: #fff;
  --surface: #fff;
  --surface2: #f6f7f9;
  --ink: #182037;
  --muted: #4a4d58;
  --rule: #d1d2d7;
  --accent: #2c8fff;
  --link: #1d6fd3;
  --up: #0b7a6c;
  --down: #4a4d58;
  --chrome: #0d1324;
  --chrome-ink: #b2b4bc;
  --shadow: 0 4px 12px #18203714;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0d1324;
    --site: #141b31;
    --surface: #1a2340;
    --surface2: #1f2a4a;
    --ink: #f6f7f9;
    --muted: #b2b4bc;
    --rule: #2a3868;
    --accent: #4893f2;
    --link: #7db6ff;
    --up: #1dd9c2;
    --down: #b2b4bc;
    --chrome: #070b16;
    --chrome-ink: #b2b4bc;
    --shadow: 0 8px 24px #0006;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 Poppins,
    system-ui,
    sans-serif;
}
a {
  color: var(--link);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
p + p {
  margin-top: 0.9rem;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
code {
  overflow-wrap: anywhere;
}
header {
  background: var(--chrome);
  color: #fff;
}
header .top {
  max-width: 1160px;
  margin: auto;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.38rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 128px;
  height: auto;
  filter: brightness(0) invert(1);
}
.brand span {
  font-weight: 400;
  color: var(--chrome-ink);
  font-size: 1rem;
  margin-left: 0.6rem;
}
nav {
  max-width: 1160px;
  margin: auto;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.2rem 1.5rem 0;
  scrollbar-width: thin;
}
nav a,
nav .navgroup {
  flex: none;
  padding: 0.5rem 0 0.9rem;
  color: var(--chrome-ink);
  text-decoration: none;
  font-size: 0.88rem;
}
nav a:hover,
nav a[aria-current] {
  color: #fff;
}
nav a[aria-current] {
  border-bottom: 3px solid var(--accent);
}
nav .navgroup {
  font-size: 0.73rem;
  opacity: 0.65;
  margin-left: auto;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 2rem 1.5rem 5rem;
  min-height: 65vh;
}
main > section {
  margin-bottom: 1.35rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--link);
}
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(350px, 0.9fr);
  gap: 1.4rem;
  align-items: stretch;
  margin: 1.5rem 0 2rem;
}
.story {
  padding: 2.2rem 1rem 1rem 0;
}
.story h1 {
  margin: 0.65rem 0 1rem;
}
.lede {
  font-size: 1.06rem;
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.panel,
.class-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.headline {
  background: var(--surface);
}
.big {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 1.15rem 0;
}
.deltas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.deltas > div {
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.deltas small {
  color: var(--muted);
}
.deltas strong {
  font-size: 0.9rem;
}
.deltas span {
  font-size: 0.72rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.class-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 185px;
}
.class-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.class-value {
  font-size: 1.8rem;
  font-weight: 600;
}
.class-card .badge {
  width: max-content;
  margin-top: 0.3rem;
}
.arrow {
  margin-top: auto;
  color: var(--link);
  font-size: 0.83rem;
}
.records .class-card {
  min-height: 130px;
}
.pagehead {
  max-width: 760px;
  margin: 1rem 0 2rem;
}
.pagehead h1 {
  margin-bottom: 0.8rem;
}
.pagehead p {
  color: var(--muted);
}
.pagehead .eyebrow {
  margin-bottom: 0.65rem;
}
.class-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.class-head .deltas {
  min-width: min(460px, 60%);
}
.empty {
  border-style: dashed;
  color: var(--muted);
}
.movers > div {
  display: grid;
  grid-template-columns: 100px 1fr 110px;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0;
}
.move-track {
  position: relative;
  display: block;
  height: 10px;
  background: var(--surface2);
  border-radius: 5px;
}
.move-track:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  height: 16px;
  border-left: 1px solid var(--rule);
}
.move-fill {
  position: absolute;
  top: 1px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
}
.move-fill.positive {
  left: 50%;
  background: #1dd9c2;
}
.move-fill.negative {
  right: 50%;
  background: #8b8e99;
}
.movers b {
  text-align: right;
  font-size: 0.8rem;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.chart line {
  stroke: var(--rule);
}
.chart text {
  fill: var(--muted);
  font:
    11px "JetBrains Mono",
    monospace;
}
.credit {
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}
.compare {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.compare > div {
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
  display: flex;
  flex-direction: column;
}
.compare b {
  font-size: 1.5rem;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.75rem;
}
td:nth-child(2) {
  min-width: 180px;
}
.notice-text {
  font-weight: 600;
  color: var(--link);
  margin-top: 1rem;
}
footer {
  background: var(--site);
  border-top: 1px solid var(--rule);
  padding: 1.6rem max(1.5rem, calc((100vw - 1160px) / 2));
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  gap: 1rem;
}
footer a {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .headline {
    order: -1;
  }
  .story {
    padding: 0.5rem 0;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .navgroup {
    display: none !important;
  }
  .class-head {
    display: block;
  }
  .class-head .deltas {
    min-width: 0;
    margin-top: 1rem;
  }
  .compare {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .brand img {
    width: 105px;
  }
  .brand span {
    white-space: nowrap;
    font-size: 0.82rem;
    margin-left: 0;
  }
  .top > .badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    white-space: nowrap;
  }
  main {
    padding: 1.3rem 1rem 3rem;
  }
  header .top {
    padding: 1rem;
  }
  nav {
    padding-left: 1rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .class-card {
    min-height: 145px;
  }
  .deltas {
    gap: 0.2rem;
  }
  .deltas strong {
    font-size: 0.72rem;
  }
  .deltas span {
    font-size: 0.65rem;
  }
  .movers > div {
    grid-template-columns: 75px 1fr 88px;
    gap: 0.4rem;
    font-size: 0.75rem;
  }
  .movers b {
    font-size: 0.65rem;
  }
  footer {
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
  }
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.source-directory {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.source-directory li {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0;
  overflow-wrap: anywhere;
}
.source-directory h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.source-directory dl {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: 0.3rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
}
.source-directory dt { color: var(--muted); }
.source-directory dd { margin: 0; }

.range {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin: 0.7rem 0 1rem;
}
.range button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.range button:first-child {
  border-radius: 6px 0 0 6px;
}
.range button:last-child {
  border-radius: 0 6px 6px 0;
}
.range button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}
.range-charts [hidden] {
  display: none;
}

.sparkline {
  width: 100%;
  height: 50px;
  margin: 0.35rem 0;
}
.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.sparkline.ratio polyline {
  stroke: var(--down);
  stroke-dasharray: 5 4;
}

.card-credit {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}
.navhint {
  display: none;
  color: var(--chrome-ink);
  font-size: 0.64rem;
  padding: 0 1rem 0.3rem;
}
@media (max-width: 550px) {
  .navhint {
    display: block;
  }
}
