.ds-section { font-family: inherit; color: var(--ink); }
.ds-section *, .ds-section *::before, .ds-section *::after { box-sizing: border-box; }
:where(.ds-overview, .ds-explorer) :is(h3, h4, p, figure, ol) { margin: 0; }
.ds-section button { font: inherit; }
.ds-wrap { width: 100%; margin: 0 auto; }
.ds-overview { padding: clamp(18px,2.5vw,34px); background: var(--paper); border: 1px solid var(--ink); }
.ds-intro { max-width: 90ch; line-height: 1.55; font-size: clamp(13px,1.15vw,17px); color: var(--ink); }
.ds-kpis { margin-top: clamp(22px,2.8vw,37px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ds-kpi { margin: 0; padding: clamp(16px,1.9vw,27px); background: #efefec; border: 1px solid #c9c9c3; border-radius: 2px; box-shadow: inset 0 1px 0 white; }
.ds-kpi > div { display: flex; align-items: center; gap: 9px; }
.ds-kpi > div span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 2px; background: #efdfd1; color: var(--line); }
.ds-kpi svg { width: 17px; height: 17px; }
.ds-kpi h3 { font-weight: 530; font-size: clamp(12px,1.15vw,16px); color: #363630; }
.ds-kpi b { display: block; font-weight: 580; font-size: clamp(32px,3.9vw,54px); letter-spacing: -.07em; line-height: 1.03; margin-top: 16px; font-variant-numeric: tabular-nums; }
.ds-explorer { padding: clamp(23px,3vw,42px) clamp(16px,2.5vw,34px); color: #f7f7f5; background: #191a18; border: 1px solid var(--ink); border-top: 0; }
.ds-explorer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(20px,2.8vw,36px); }
.ds-explorer-head h3 { font-size: clamp(28px,3vw,43px); font-weight: 450; line-height: 1.1; letter-spacing: -.035em; }
.ds-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid rgb(255 255 255 /.15); }
.ds-tab { position: relative; text-align: left; border: 0; color: #bdbdb3; background: none; padding: 8px 9px 15px 0; cursor: pointer; font-size: clamp(13px,1.2vw,18px); }
.ds-tab[aria-selected="true"] { color: white; }
.ds-tab::after { content: ""; position: absolute; height: 3px; bottom: -1px; left: 0; right: 15px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.ds-tab[aria-selected="true"]::after { transform: scaleX(1); }
.ds-section :focus-visible { outline: 2px solid #ffb477; outline-offset: 3px; }
.ds-panel { margin-top: 20px; padding-bottom: 12px; border: 1px solid rgb(255 255 255 /.11); border-radius: 2px; background: rgb(255 255 255 /.025); overflow: hidden;  }
.ds-panel[hidden] { display: none; }
.ds-panel-head { min-height: 54px; padding: 15px clamp(15px,2.4vw,32px); border-bottom: 1px solid rgb(255 255 255 /.10); display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; background: rgb(255 255 255 /.025); }
.ds-panel-head h4 { font-weight: 600; font-size: clamp(15px,1.28vw,19px); }
.ds-panel-head span { font-size: 12px; color: #c5c5bc; }
.ds-pair-breakdown { display: grid; grid-template-columns: minmax(150px,.9fr) minmax(250px,1.6fr); gap: clamp(24px,4vw,70px); padding: clamp(20px,2.8vw,38px) clamp(15px,2.4vw,32px); align-items: center; }
.ds-pair-pie { width: min(100%,245px); aspect-ratio: 1; justify-self: center; }
.ds-pair-pie[hidden], .ds-pair-legend .pie-swatch[hidden], .ds-rate-pie[hidden], .ds-median-pie[hidden] { display: none; }
.ds-pair-pie[hidden] + .ds-pair-legend { grid-column: 1 / -1; }
.ds-pair-legend { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; color: #f4f3ed; font-size: clamp(12px,1.16vw,16px); }
.ds-pair-legend th, .ds-pair-legend td { padding: 9px 0; text-align: right; white-space: nowrap; }
.ds-pair-legend tr > :first-child { text-align: left; }
.ds-pair-legend thead th { padding-top: 0; padding-bottom: 10px; font-size: 12px; font-weight: 520; color: #c0bfb5; }
.ds-pair-legend tbody tr { border-top: 1px solid rgb(255 255 255 /.10); }
.ds-pair-legend tbody th { font-weight: 510; }
.ds-pair-legend td:last-child { padding-left: clamp(8px,2vw,25px); color: #c6c6bb; }
.ds-pair-legend .pie-swatch { display: inline-block; width: .7em; height: .7em; margin-right: .55em; vertical-align: .04em; }
.ds-table-scroll { max-width: 100%; overflow-x: auto; padding: 14px clamp(15px,2.4vw,32px); }
.ds-table { border-collapse: collapse; width: 100%; color: #f4f3ed; font-size: 14px; font-variant-numeric: tabular-nums; }
.ds-table caption { text-align: left; padding: 0 0 9px; color: #dad9d0; font-size: 15px; font-weight: 560; }
.ds-table td, .ds-table th { padding: 10px 8px; border-bottom: 1px solid rgb(255 255 255 /.10); text-align: right; white-space: nowrap; }
.ds-table tr > :first-child { padding-left: 0; text-align: left; }
.ds-table thead th { color: #c0bfb5; font-size: 12px; font-weight: 520; }
.ds-table tbody th { font-weight: 530; }
.ds-visibility td { width: 25%; }
.ds-rate { display: inline-flex; gap: clamp(5px,1vw,12px); align-items: center; justify-content: end; }
.ds-rate-pie { display: inline-block; width: clamp(27px,2.85vw,39px); aspect-ratio: 1; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 /.13); }
.ds-histograms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 18px clamp(15px,2.4vw,32px) 0; }
.ds-hist figcaption { display: grid; gap: 3px; font-size: 14px; padding-bottom: 12px; }
.ds-hist figcaption span { font-size: 12px; color: #c6c5b9; }
.ds-hist figcaption > span { min-height: 20px; }
.ds-medians { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; }
.ds-median-rate { display: inline-flex; align-items: center; gap: 5px; }
.ds-median-rate b { font-weight: 550; color: #f4f3ed; }
.ds-median-pie { width: 20px; aspect-ratio: 1; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 /.13); }
.ds-hist-plot { position: relative; height: clamp(85px,9vw,128px); display: flex; align-items: flex-end; gap: 1px; border-bottom: 1px solid #8d8e83; }
.ds-hist-plot > span { height: 100%; display: flex; align-items: flex-end; flex: 1; gap: 1px; }
.ds-hist-plot > span i { flex: 1; min-width: 0; }
.ds-gold { background: #e0791f; }
.ds-silver { background: #78a0d9; }
.ds-median { border-left: 1px dashed; position: absolute; bottom: 0; top: 0; }
.ds-med-g { color: #e7944c; }
.ds-med-s { color: #a0c2ee; }
.ds-ticks { position: relative; height: 22px; margin: 3px 14px 0; color: #c5c5b9; font-size: 11px; }
.ds-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ds-legend { padding: 10px clamp(15px,2.4vw,32px); display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; color: #d3d3c9; }
.ds-legend i { width: 10px; height: 10px; }
.ds-legend > span { margin-left: 8px; }
@media (max-width:700px) {
  .ds-kpis { gap: 6px; }
  .ds-kpi { padding: 12px 9px; border-radius: 2px; }
  .ds-kpi > div { flex-direction: column; align-items: start; gap: 6px; }
  .ds-kpi b { font-size: clamp(23px,5.5vw,34px); margin-top: 9px; }
  .ds-legend { row-gap: 5px; }
  .ds-tabs { grid-template-columns: 1fr 1fr; }
  .ds-tab { min-height: 40px; }
  .ds-table td, .ds-table th { padding: 8px 6px; }
  .ds-histograms { grid-template-columns: 1fr; }
}
@media (max-width:550px) {
  .ds-pair-breakdown { grid-template-columns: minmax(0,1fr); gap: 21px; }
  .ds-pair-pie { width: min(49vw,185px); }
  .ds-rate { flex-direction: column; gap: 4px; }
  .ds-visibility td, .ds-visibility th { padding-inline: 3px; }
  .ds-visibility td, .ds-visibility thead th:not(:first-child) { text-align: center; }
  .ds-visibility thead th { white-space: normal; }
}
