:root {
  --ink: #0f172a;
  --muted: #526176;
  --line: #dfe7ef;
  --blue: #0369a1;
  --green: #0f766e;
  --bg: #f7f9fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.6 system-ui,
    "Segoe UI",
    sans-serif;
}
header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: 1400px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
}
.brand span {
  color: var(--green);
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.jump {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
select,
input,
button {
  font: inherit;
}
select,
input[type="number"] {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: white;
  padding: 8px;
  max-width: 100%;
}
button {
  cursor: pointer;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: white;
  color: var(--blue);
  padding: 8px 12px;
}
button:hover {
  background: #f0f9ff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}
main,
footer {
  max-width: 1400px;
  margin: auto;
  padding: 32px 28px;
}
footer {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 750;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
}
h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  margin: 8px 0 16px;
}
.muted,
.caption,
.stamp {
  color: var(--muted);
}
.caption,
.stamp {
  font-size: 12px;
}
.stamp {
  margin: 9px 0;
}
.notice {
  padding: 14px 18px;
  background: #eff8ff;
  border: 1px solid #cce8f9;
  border-radius: 10px;
  color: #075985;
  margin: 18px 0;
}
.warning {
  background: #fffbeb;
  border-color: #f5df9a;
  color: #854d0e;
}
.hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0;
}
.hero-price {
  min-width: 190px;
  text-align: right;
}
.big {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-size: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 5px 9px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 22px;
  overflow: auto;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
  scroll-margin-top: 90px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.fact {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
}
.fact strong {
  display: block;
  font-size: 18px;
  margin-top: 5px;
}
.fact span {
  font-size: 12px;
  color: var(--muted);
}
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-row {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.rank-row:last-child {
  border: 0;
}
.row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}
.rank {
  color: #64748b;
  font-size: 12px;
  min-width: 22px;
}
.row a {
  font-weight: 750;
}
.count {
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 7px;
  background: #edf2f7;
  margin: 10px 0;
  border-radius: 7px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #0284c7;
}
.portfolio .bar {
  background: #0d9488;
}
.allocations {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
}
.variant {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12px;
}
.variant + .variant {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  color: var(--blue);
  padding: 8px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #edf2f7;
  padding: 9px 4px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td:last-child,
th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow: auto;
}
svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  gap: 16px;
}
.chart-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.weights {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.weight-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  align-items: center;
  gap: 12px;
}
.weight-row input[type="range"] {
  width: 100%;
  accent-color: #0d9488;
}
.strip {
  display: flex;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
}
.strip span:nth-child(3n + 1) {
  background: #0284c7;
}
.strip span:nth-child(3n + 2) {
  background: #0d9488;
}
.strip span:nth-child(3n) {
  background: #818cf8;
}
.metric {
  font-size: 26px;
  font-weight: 750;
  color: var(--green);
}
.source {
  overflow-wrap: anywhere;
}
.identity {
  font-family: ui-monospace, monospace;
}
.sources li {
  padding: 5px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.empty {
  padding: 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
}
.peer {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.peer a {
  font-size: 12px;
  background: #eaf4fa;
  padding: 5px 10px;
  border-radius: 5px;
}
.local {
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  border: 1px solid #fed7aa;
  padding: 8px 12px;
  border-radius: 7px;
  margin-bottom: 18px;
}
.status {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 950px) {
  .detail-grid,
  .grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  main,
  footer {
    padding: 22px 14px;
  }
  nav {
    padding: 13px 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .jump {
    width: 100%;
    margin: 0;
  }
  .jump select {
    width: 80%;
  }
  h1 {
    font-size: 27px;
  }
  .hero {
    flex-direction: column;
  }
  .hero-price {
    text-align: left;
  }
  .card {
    padding: 18px;
  }
  .weight-row {
    grid-template-columns: 65px 1fr 84px;
  }
  .facts {
    gap: 8px;
  }
  .fact {
    padding: 12px;
  }
  .tabs {
    gap: 20px;
  }
  .row {
    gap: 8px;
  }
  .count {
    font-size: 14px;
  }
}

.run-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 550px) {
  .run-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
