:root {
  color: #191919;
  background: #e9e8e4;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 3rem 1.25rem;
  line-height: 1.55;
}

.paper {
  width: min(100%, 82rem);
  min-height: calc(100vh - 6rem);
  margin: 0 auto;
  padding: 3.5rem 4.5rem 2.5rem;
  background: #fffefa;
  border: 1px solid #d2d0ca;
  box-shadow: 0 0.8rem 2.4rem rgb(0 0 0 / 8%);
}

.controls,
.status,
th,
.table-caption,
.metric-direction,
.provenance summary,
.notice {
  font-family: Arial, Helvetica, sans-serif;
}

.report-header {
  text-align: center;
}

h1 {
  max-width: 48rem;
  margin: 0.5rem auto 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.authors {
  margin: 1.6rem 0 0.25rem;
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

.overview-note {
  margin: 2.5rem auto 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid #c7c3b8;
  border-left: 0.28rem solid #555149;
  background: #f4f2eb;
}

.overview-note p {
  margin: 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.65;
}

.notice {
  margin: 1.5rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #8c877b;
  background: #f3f0e8;
  font-size: 0.78rem;
}

.notice strong {
  margin-right: 0.4rem;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #c8c6c0;
  font-size: 0.75rem;
}

.controls label {
  font-weight: 700;
}

select,
button {
  min-height: 2rem;
  border: 1px solid #555;
  border-radius: 0;
  background: #fffefa;
  color: #191919;
  font: inherit;
}

select {
  padding: 0.25rem 1.8rem 0.25rem 0.45rem;
}

button {
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #ebe8df;
}

.updated-at {
  margin-left: auto;
  color: #666;
}

.status {
  padding: 2rem 0;
  color: #555;
  font-size: 0.82rem;
  text-align: center;
}

.status.error {
  color: #8a1919;
}

.report-section {
  margin-top: 2.7rem;
}

.report-section > h2 {
  display: flex;
  gap: 0.7rem;
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid #222;
  font-size: 1.2rem;
  font-weight: 600;
}

.report-section > h2 span {
  min-width: 1.2rem;
}

.section-intro {
  max-width: 48rem;
  margin: 0.65rem 0 1.2rem;
  color: #444;
  font-size: 0.9rem;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.track-panel {
  min-width: 0;
}

.track-header {
  display: flex;
  min-height: 3.1rem;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.track-header h3 {
  margin: 0;
  font-size: 1.08rem;
  font-variant: small-caps;
  letter-spacing: 0.045em;
}

.track-header label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.track-header select {
  max-width: 10rem;
  min-height: 1.8rem;
  font-weight: 400;
}

.table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  margin: 1.25rem 0 2rem;
  border-collapse: collapse;
  border-top: 1.5px solid #222;
  border-bottom: 1.5px solid #222;
  font-size: 0.84rem;
}

.summary-table {
  table-layout: fixed;
  margin-top: 0;
  font-size: 0.73rem;
}

.summary-table .system-col {
  width: 25%;
}

.summary-table .team-col {
  width: 20%;
}

.summary-table .quality-col {
  width: 13%;
}

.summary-table .speed-col {
  width: 23%;
}

.summary-table .sample-col {
  width: 19%;
}

.summary-table th,
.summary-table td {
  padding: 0.5rem 0.4rem;
}

.summary-table tbody tr {
  height: 4.25rem;
}

.summary-table td {
  vertical-align: middle;
}

.summary-value,
.detail-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sample-button {
  min-height: 1.65rem;
  width: 100%;
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
}

.sample-button:disabled {
  color: #777;
  cursor: default;
}

.empty-track {
  min-height: 8rem;
  margin: 0;
  padding: 1.2rem 0;
  border-top: 1.5px solid #222;
  border-bottom: 1.5px solid #222;
  color: #666;
  font-size: 0.82rem;
}

.detail-table {
  min-width: 74rem;
  font-size: 0.75rem;
}

.detail-table th,
.detail-table td {
  min-width: 6.2rem;
}

.detail-table th:first-child,
.detail-table td:first-child {
  min-width: 12rem;
}

.detail-table th:nth-child(2),
.detail-table td:nth-child(2) {
  min-width: 8rem;
}

.metric-heading span,
.detail-coverage {
  display: block;
  margin-top: 0.15rem;
  color: #666;
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}

.result-table caption {
  padding: 0 0 0.55rem;
  text-align: left;
}

.table-caption {
  font-size: 0.76rem;
  line-height: 1.45;
}

.table-caption strong {
  color: #111;
}

th,
td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #d1cfc9;
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 1px solid #222;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.method-name {
  font-weight: 600;
}

.method-summary,
.secondary {
  display: block;
  margin-top: 0.15rem;
  color: #666;
  font-size: 0.76rem;
  line-height: 1.4;
}

.status-label {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

.metric-family {
  margin-top: 1.8rem;
}

.metric-family h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

.metric-direction {
  display: block;
  margin-top: 0.1rem;
  color: #666;
  font-size: 0.72rem;
}

.provenance {
  margin-top: 0.3rem;
}

.provenance summary {
  color: #444;
  cursor: pointer;
  font-size: 0.7rem;
}

.provenance dl {
  display: grid;
  grid-template-columns: max-content minmax(12rem, 1fr);
  gap: 0.15rem 0.55rem;
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
}

.provenance dt {
  color: #666;
}

.provenance dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.listening-set {
  margin-top: 1.5rem;
}

.listening-set h3 {
  margin: 0;
  font-size: 1rem;
}

.listening-set > p {
  margin: 0.25rem 0 0.8rem;
  color: #555;
  font-size: 0.84rem;
}

audio {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  body {
    padding: 0;
  }

  .paper {
    min-height: 100vh;
    padding: 2rem 1.15rem;
    border: 0;
    box-shadow: none;
  }

  .controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .updated-at {
    margin-left: 0;
  }

  h1 {
    margin-top: 2.4rem;
  }

  th,
  td {
    padding: 0.45rem;
  }
}

@media (max-width: 1050px) {
  .track-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  :root,
  body {
    background: white;
  }

  body {
    padding: 0;
  }

  .paper {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .controls,
  .track-header label,
  .sample-button,
  audio {
    display: none;
  }
}
