body.supply-page {
  background-color: #0e0e0e;
}

body.supply-page::before,
body.supply-page::after {
  display: none;
}

.supply-page main {
  padding-bottom: 48px;
  background: #0e0e0e;
}

.supply-sheet {
  display: flex;
  flex-direction: column;
  width: min(1440px, calc(100% - 80px));
  margin: 12px auto 0;
  padding: 12px 0 72px;
}

.supply-hero { order: 0; }
.holder-top { order: 0; }
#holders { order: 1; }
.stat-row { order: 2; }
.supply-nav { order: 3; }
.supply-section { order: 4; }

.supply-hero {
  max-width: 46rem;
}

.holder-top {
  margin-top: 28px;
}

.holder-top .q {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.holder-top .stance-cards li {
  background: #161616;
  padding: 0;
}

.holder-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px 16px 18px;
  color: inherit;
  text-decoration: none;
}

.holder-card:hover,
.holder-card:visited {
  color: inherit;
  text-decoration: none;
}

.holder-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
}

.holder-pic {
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  flex: 0 0 58px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #111;
  border: 1px solid rgba(247, 147, 26, 0.34);
}

.holder-pic.holder-face {
  object-position: center;
}

.holder-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.holder-crown {
  width: 15px;
  height: 11px;
  flex: none;
  color: #e8c56a;
}

.holder-pic.holder-mark {
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.holder-pic.holder-flag {
  width: 72px;
  height: 48px;
  min-width: 72px;
  max-width: 72px;
  min-height: 48px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: fill;
  background: transparent;
}

.supply-back {
  margin: 36px 0 4px;
}

.supply-back .btn-secondary {
  width: auto;
}

.holder-top .stance-cards li:nth-child(5)::after {
  animation-delay: 8.4s;
}

@media (min-width: 1100px) {
  .holder-top .stance-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.slice-board {
  margin-top: 8px;
}

.slice-board table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.slice-board caption {
  caption-side: bottom;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.slice-board th {
  padding: 8px 10px;
  border-bottom: 1px solid #2a2a2a;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.slice-board td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.slice-board td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.slice-board tr.is-band td {
  color: var(--text);
  font-weight: 500;
}

#holders .pie-stage svg g.is-on path {
  stroke: #fff6ea;
  stroke-width: 1.15;
}

#holders .pie-stage svg g.is-kin path {
  stroke: #f6f1e8;
  stroke-width: 0.45;
}

.supply-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.supply-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(44px, 6vw, 72px);
}

.supply-lead {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.supply-lead + .supply-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.supply-section {
  scroll-margin-top: 128px;
  margin-top: 64px;
}

#holders {
  margin-top: 20px;
}

#holders h2 {
  margin-bottom: 4px;
  font-size: clamp(32px, 4vw, 48px);
}

.supply-section h2 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
}

.supply-section .lede,
.supply-section p {
  max-width: 44rem;
}

.supply-section p {
  color: var(--muted);
  line-height: 1.65;
}

.supply-section p strong {
  color: var(--text);
  font-weight: 500;
}

.q-label {
  margin: 0;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.stat {
  padding: 16px 16px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  background: #161616;
}

.stat b {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.supply-nav {
  position: sticky;
  top: 76px;
  z-index: 30;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 36px 0 0;
  padding: 8px 0 10px;
  scrollbar-width: none;
  background: #0e0e0e;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.supply-nav::-webkit-scrollbar { display: none; }

.supply-nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.supply-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.meter {
  margin: 22px 0;
  max-width: 44rem;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.meter-top span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meter-track,
.htrack,
.range {
  height: 10px;
  border-radius: 99px;
  background: #2a2a2a;
  overflow: hidden;
}

.meter-track span,
.htrack span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c46d08, var(--orange));
}

.meter p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hmeta {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hrow:hover .hmeta,
.hrow:focus-within .hmeta {
  display: block;
}

.fold {
  margin-top: 18px;
  max-width: 100%;
}

.fold summary {
  width: fit-content;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.fold summary:hover { color: var(--orange-hover); }

.fold[open] summary { margin-bottom: 12px; }

.sheet-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e0e0e;
}

.sheet {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.sheet th,
.sheet td {
  padding: 12px 14px;
  border-bottom: 1px solid #2a2a2a;
  text-align: left;
  vertical-align: top;
}

.sheet th {
  color: var(--muted);
  font-weight: 500;
}

.sheet td:first-child {
  color: var(--text);
}

.sheet tr:last-child td { border-bottom: 0; }

.sheet .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.callout {
  max-width: 44rem;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #2a2a2a;
  border-left: 2px solid var(--orange);
  border-radius: 12px;
  background: #161616;
  color: var(--text);
}

.pie-card {
  margin: 18px 0 8px;
  padding: 28px 22px 20px;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  background: #161616;
}

#holders .pie-card {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#holders .pie-layout {
  align-items: center;
  justify-content: center;
  width: 100%;
}

#holders .pie-stage,
#holders .pie-legend {
  align-self: center;
}

.pie-layout {
  display: grid;
  gap: 22px;
  align-items: center;
}

.pie-stage {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 1;
}

#holders .pie-stage {
  width: min(100%, 420px);
}

.pie-stage svg path.is-on {
  filter: brightness(1.18) drop-shadow(0 0 10px rgba(247, 147, 26, 0.55));
}

.pie-disc,
.pie-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pie-disc[hidden],
.pie-stage svg[hidden] { display: none; }

.pie-disc {
  border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent 66%, #000 67.2%);
  mask: radial-gradient(farthest-side, transparent 66%, #000 67.2%);
}

.pie-stage svg {
  position: absolute;
  inset: 0;
  height: 100%;
}

.pie-stage svg path {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.pie-stage svg path.is-dim,
.pie-stage svg g.is-dim { opacity: 0.28; }

.pie-stage svg g.is-shut {
  opacity: 0;
  pointer-events: none;
}

#holders .pie-stage svg path,
#holders .pie-stage svg g {
  transition: none;
  filter: none;
}

.pie-stage svg .face-main,
.pie-stage svg .face-sub {
  pointer-events: none;
}

.pie-stage svg .face-main {
  font-family: "Instrument Serif", Georgia, serif;
  fill: #f6f1e8;
}

.pie-stage svg .face-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: 2.05px;
  letter-spacing: 0.03px;
  fill: #f6f1e8;
}

.pie-stage svg .is-dark { fill: #1a140e; }

#holders .pie-legend {
  width: min(100%, 34rem);
  max-width: 100%;
  margin-inline: auto;
}

#holders .is-family {
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 3px solid var(--family);
}

#holders .is-family > button span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

#holders .is-family > ul {
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
}

#holders .is-family li button {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 22px;
}

#holders .is-family li button span,
#holders .is-family li strong {
  font-size: 14px;
}

#holders .is-family li strong {
  color: var(--muted);
  font-weight: 450;
}

#holders .pie-legend strong {
  color: var(--text);
  text-align: right;
}

#holders .pie-legend button,
#holders .pie-legend .is-group > button {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  justify-content: start;
  gap: 8px 16px;
  width: 100%;
  margin: 0;
  padding: 8px 8px;
  border-radius: 10px;
}

#holders .legend-family {
  display: grid;
  grid-template-columns: 14px 11.5rem auto;
  gap: 8px 18px;
  align-items: center;
  margin: 10px 0 2px;
  padding: 8px 8px 2px;
  color: var(--text);
  font-size: 15px;
}

#holders .legend-family strong {
  color: var(--text);
  text-align: right;
  font-weight: 500;
}

#holders .legend-gap {
  width: 14px;
  height: 14px;
}

#holders .is-family > ul {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

#holders .is-family button {
  padding-top: 8px;
  padding-bottom: 8px;
}

.legend-label {
  margin: 10px 0 4px 26px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#holders .pie-legend .is-child {
  display: none;
  margin-left: 14px;
}

#holders .pie-legend .is-child.is-open {
  display: block;
}

.pie-legend .is-child button {
  padding-top: 7px;
  padding-bottom: 7px;
}

.pie-center {
  position: absolute;
  inset: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

#holders .pie-center {
  inset: 33%;
}

.pie-center b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--orange);
}

#holders .pie-center b,
#holders .pie-center b.is-long {
  font-size: 22px;
}

.pie-center span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pie-legend button {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pie-legend button:hover,
.pie-legend button.is-hot,
.pie-legend button[aria-pressed="true"] {
  border-color: rgba(247, 147, 26, 0.55);
  background: rgba(247, 147, 26, 0.12);
}

.slice-pop {
  display: none;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 147, 26, 0.35);
  border-radius: 12px;
  background: #0e0e0e;
}

.pie-legend li:hover .slice-pop,
.pie-legend li:focus-within .slice-pop,
.pie-legend li.is-hot .slice-pop {
  display: block;
}

.slice-pop p {
  margin: 0;
  max-width: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.slice-pop p + p { margin-top: 8px; }

.pie-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.pie-legend strong {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.pie-card figcaption,
.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hgroup {
  margin-top: 28px;
}

.hgroup h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hrow {
  max-width: 44rem;
  margin: 0 0 14px;
}

.hrow-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}

.hrow-top b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.range { position: relative; overflow: visible; }

.range span {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.split {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.pane {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #161616;
}

.pane h3 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--orange);
}

.pane ul,
.check-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.pane li + li,
.check-list li + li { margin-top: 8px; }

.flow-compare {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin: 18px 0;
}

.flow-compare article {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #161616;
  border: 1px solid var(--border);
}

.flow-compare b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}

.flow-compare span {
  display: block;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.flow-compare i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #c46d08, var(--orange));
}

.sources {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sources li {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.sources a { color: var(--orange); }

@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .flow-compare { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .pie-layout { grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr); align-items: center; justify-content: start; }
  #holders .pie-layout {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(280px, 420px) max-content;
    justify-content: center;
    align-items: center;
    gap: 12px 64px;
  }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .supply-sheet { width: min(1440px, calc(100% - 40px)); }
  .pie-legend button,
  #holders .pie-legend button,
  #holders .pie-legend .is-group > button {
    grid-template-columns: 14px minmax(0, 1fr);
  }
  .pie-legend strong,
  #holders .pie-legend strong,
  #holders .legend-family strong {
    grid-column: 2;
    text-align: left;
  }
  #holders .legend-family {
    grid-template-columns: 14px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pie-stage svg path { transition: none; }
}
