:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --ink: #08090b;
  --muted: #5c584f;
  --line: #e4e2dc;
  --grid: #eceae4;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100%;
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
aside {
  width: 292px;
  flex: none;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 0 28px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.menu-kicker {
  margin: 0 16px 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.names-open,
.names-close,
.scrim { display: none; }
.menu-count {
  margin: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
}
nav button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  padding: 8px 16px;
  cursor: pointer;
}
nav button[aria-current="true"] { background: #fff; }
nav button:hover { background: #fff; }
.menu-id {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.menu-mark {
  width: 16px;
  height: 16px;
  flex: none;
}
.menu-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border: 0;
  display: block;
}
nav .nm { min-width: 0; }
nav .mx {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
header { padding: 26px 32px 8px; }
.series {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex: none;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mult {
  margin: 0;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lede {
  margin: 10px 0 0;
  max-width: 40rem;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 12px;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch {
  box-sizing: content-box;
  width: 22px;
  height: 0;
  border-top-style: solid;
  display: inline-block;
}
.legend span:nth-child(1) .swatch { border-color: #2F7D4A; }
.legend span:nth-child(2) .swatch { border-color: #2C6CB0; }
.legend span:nth-child(3) .swatch { border-color: #A68534; }
.dot {
  box-sizing: content-box;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #08090b;
  display: inline-block;
}
.scale { margin-left: auto; }
.plot {
  position: relative;
  flex: 1;
  min-height: 440px;
  margin: 12px 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
svg:focus { outline: none; }
svg:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
.card {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid #e4e2dc;
  color: #08090b;
  padding: 10px 12px 11px;
  min-width: 188px;
}
.card[hidden] { display: none; }
.card strong {
  display: block;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
}
.card p { margin: 2px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 760px) {
  html, body {
    height: var(--app-height, 100dvh);
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
  }
  body { flex-direction: column; }
  aside {
    display: none;
    position: fixed;
    z-index: 30;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--bg);
    padding-top: 12px;
  }
  body.names-open aside { display: flex; }
  .menu-count { flex: none; }
  #menu { flex: 1; min-height: 0; overflow: auto; }
  .names-close {
    display: inline-flex;
    align-items: center;
    flex: none;
    margin: 0 12px 10px 0;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
  }
  .scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 9, 11, 0.28);
    cursor: pointer;
  }
  body.names-open .scrim { display: block; }
  main { min-height: 0; overflow: hidden; }
  header { flex: none; padding: 12px 14px 0; }
  .series {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  .row { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .identity { flex: 1; gap: 8px; }
  .logo { width: 16px; height: 16px; }
  h1 {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mult { font-size: 15px; }
  .names-open {
    display: inline-flex;
    align-items: center;
    flex: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
  }
  .lede, .legend { display: none; }
  .plot { min-height: 0; margin: 8px 12px 12px; overflow: hidden; }
}
