#gold-test-set { scroll-margin-top: 88px; }
.composition-tabs {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0,1.4fr) repeat(2,minmax(0,1fr));
  gap: clamp(6px,1vw,16px);
  padding: 0 clamp(9px,1.3vw,20px);
  background: #191a18;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.composition-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 2px 8px;
  background: transparent;
  text-align: left;
  font-size: clamp(12px, 1.1vw, 16px);
}
#gold-test-set .composition-tabs button { color: #bdbdb3; }
#gold-test-set .composition-tabs [aria-selected="true"] { color: white; border-bottom-color: var(--orange); }
#gold-test-set .composition-tabs button:focus-visible { outline-offset: -3px; }
#composition-panel:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.sc-with-pie {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 68px);
}
#composition-pie {
  justify-self: center;
  width: min(100%, 222px);
}
#split-counts .pie-swatch { margin-inline-end: .65em; }
#split-counts { max-width: 850px; table-layout: fixed; }
#split-counts thead th:first-child { width: 54%; }
#split-counts thead th:nth-child(2) { width: 24%; }
#split-counts tbody th { font-size: inherit; color: var(--ink); }
.sc-tool-actions { display: block; padding-inline-start: 1.5em; font-size: .9em; color: var(--bs-muted); }
.sc-caption {
  font-size: clamp(14px, 1.3vw, 19px);
  text-align: left;
  font-weight: 500;
  margin-bottom: 12px;
}
@media (max-width: 540px) {
  #gold-test-set .composition-tabs button { padding: 6px 0; min-height: 42px; font-size: 12px; }
}
@media (max-width: 680px) {
  .sc-with-pie { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  #composition-pie { width: clamp(120px, 34vw, 180px); }
}
