/* Page structure: sticky top bar, masthead, then the sections in reading order.
   Live numbers first, the chart as the hero, then the detail panels, then background. */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--topbar-h);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.jump {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--s1);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  font-size: 12px;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.jump::-webkit-scrollbar {
  display: none;
}

.jump a {
  flex: none;
  display: flex;
  align-items: center;
  min-height: var(--topbar-h);
  padding: 0 var(--s3);
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.jump a:hover {
  color: var(--ink);
}

.jump a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--fix);
}

@media (max-width: 640px) {
  .brand {
    display: none;
  }
  .jump a {
    padding: 0 10px;
  }
}

/* ---------- masthead ---------- */
.masthead {
  padding-block: var(--s5) var(--s4);
}

@media (max-width: 640px) {
  .masthead {
    padding-block: var(--s4) var(--s3);
  }
  .masthead > .wrap > .eyebrow {
    display: none;
  }
  .lead {
    font-size: 16px;
  }
}

.masthead h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: var(--s1);
}

.lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin: var(--s4) 0 0;
  font-size: 17px;
  line-height: 1.4;
}

.lead .where {
  font-weight: 600;
}

/* ---------- main flow ---------- */
main {
  padding-bottom: var(--s6);
}

main > section,
main > .groups,
main > .cols {
  margin-top: var(--s5);
}

main > .ahead {
  margin-top: var(--s4);
}

main > .groups:first-child {
  margin-top: 0;
}

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s6);
}

.cols > section {
  min-width: 0;
}

@media (max-width: 860px) {
  .groups {
    grid-template-columns: 1fr;
  }
  .cols {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
}

/* ---------- about + footer ---------- */
footer {
  margin-top: var(--s6);
  border-top: 1px solid var(--rule);
  padding-block: var(--s4) var(--s7);
  font-size: 12.5px;
  color: var(--ink-2);
}

footer ul {
  list-style: none;
  margin: var(--s2) 0 var(--s3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
}

footer a {
  color: inherit;
}

footer p {
  margin: 0;
}

/* ---------- follow links under the lead ---------- */
.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s3);
}

.follow .eyebrow {
  margin: 0 var(--s2) 0 0;
}

.follow .btn {
  min-width: 36px;
  padding: 6px;
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
  text-decoration: none;
}

.follow .btn:hover {
  color: var(--ink);
  border-color: var(--rule);
}

@media (max-width: 420px) {
  .follow .handle {
    display: none;
  }
}

.follow .btn .icon {
  width: 20px;
  height: 20px;
}
