:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --muted: #000000;
  --line: #d9dee5;
  --panel: #ffffff;
  --accent: #1b6b63;
  --bad: #9d2f2f;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

body :where(h1, h2, h3, p, figcaption, th, td, span, strong, a, footer) {
  color: #000 !important;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 50px 24px 36px;
  text-align: center;
}

.hero__inner,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto 16px;
  font-size: 2.72rem;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.authors {
  margin: 0 auto;
  max-width: 900px;
}

.author-list,
.affiliation {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.22rem;
}

.affiliation {
  color: var(--muted);
  font-size: 1.12rem;
}

.section {
  padding: 34px 0 24px;
}

.section__copy {
  max-width: 900px;
}

.section__copy p {
  margin-bottom: 18px;
  color: var(--muted);
}

.section--legend {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section h2 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.section p,
footer {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.score-note {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
  margin: 18px auto 0;
}

.media-figure,
.method-figure {
  margin-bottom: 0;
}

.media-figure video,
.method-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f7f8;
}

.media-figure figcaption,
.method-figure figcaption {
  margin-top: 8px;
  color: #000 !important;
  font-size: 0.92rem;
}

.method-figure figcaption {
  display: block;
  width: 100%;
  text-align: justify;
  text-align-last: auto;
  text-justify: inter-word;
}

.section--method {
  display: grid;
  gap: 24px;
}

.method-figure {
  max-width: 676.2px;
  margin-right: auto;
  margin-left: auto;
}

.method-figure figcaption {
  max-width: 676.2px;
}

.evaluation-tables {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.mining-summary {
  margin-top: 22px;
}

.mining-summary:empty {
  display: none;
}

.mining-summary__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.mining-summary__copy h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.mining-summary__copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mining-summary__copy p:last-child {
  margin-bottom: 0;
}

.mining-summary__metrics {
  display: grid;
  gap: 12px;
}

.mining-summary__overall {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mining-summary__overall span {
  color: var(--muted);
  font-size: 0.86rem;
}

.mining-summary__overall strong {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.1;
}

.mining-summary__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mining-summary__table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mining-summary__table-wrap th,
.mining-summary__table-wrap td {
  padding: 7px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.mining-summary__table-wrap tr:last-child th,
.mining-summary__table-wrap tr:last-child td {
  border-bottom: 0;
}

.mining-summary__table-wrap th:last-child,
.mining-summary__table-wrap td:last-child {
  border-right: 0;
}

.mining-summary__table-wrap thead th,
.mining-summary__table-wrap tbody th {
  background: #eef4f7;
  color: var(--ink);
  font-weight: 700;
}

.summary-table h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.summary-table__description {
  max-width: 900px;
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-table__wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.summary-table table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.summary-table th,
.summary-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: top;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
  border-bottom: 0;
}

.summary-table th:last-child,
.summary-table td:last-child {
  border-right: 0;
}

.summary-table thead th,
.summary-table tbody th {
  background: #eef4f7;
  color: var(--ink);
  font-weight: 700;
}

.summary-table tbody th {
  min-width: 140px;
  text-align: center;
}

.metric-value {
  display: block;
  white-space: nowrap;
}

.metric-value span {
  color: var(--muted);
}

.metric-value.is-empty {
  color: var(--muted);
}

.summary-table__note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.colorbar {
  width: min(420px, 100%);
  margin-bottom: 0;
}

.colorbar img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.colorbar figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.samples {
  display: grid;
  gap: 42px;
  padding-bottom: 44px;
}

.demo-group {
  display: grid;
  gap: 22px;
}

.demo-group > h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.18;
}

.project-page-section {
  display: grid;
  gap: 28px;
}

.project-page-section + .project-page-section {
  margin-top: 8px;
}

.project-page-section > h3 {
  margin: 6px 0 -8px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.sample {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.sample__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.sample h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.sample h3 {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sample__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 280px;
}

.pill {
  min-width: 0;
  border: 1px solid #b9c5d0;
  border-radius: 6px;
  padding: 6px 10px;
  background: #eef4f7;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tracks {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.tracks--references {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tracks--methods {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.track {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.spectrogram {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 7.5;
  object-fit: fill;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111;
}

.track__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 22px;
}

.track__label {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__status {
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.76rem;
  font-weight: 700;
}

.track__prediction {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.track__score {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.is-correct {
  background: #e4f3ef;
  color: var(--accent);
}

.is-wrong {
  background: #f8e8e8;
  color: var(--bad);
}

audio {
  width: 100%;
  max-width: 100%;
}

footer {
  padding: 28px 0 42px;
  font-size: 0.9rem;
}

.acknowledgements,
.attributions {
  margin-bottom: 24px;
}

.acknowledgements h2,
.attributions h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.attributions p {
  margin-bottom: 12px;
}

.attributions__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.attributions__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.82rem;
}

.attributions__table th,
.attributions__table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.attributions__table th {
  background: #eef4f7;
  font-weight: 700;
}

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

.attributions__table a {
  color: var(--accent);
  font-weight: 700;
}

.attributions__table span {
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    padding: 42px 20px 30px;
  }

  h1 {
    font-size: 2.08rem;
  }

  .section--legend,
  .sample__head {
    display: block;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .sample__meta {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 10px;
  }

  .tracks--references {
    grid-template-columns: 1fr;
  }

  .tracks--methods {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero__inner,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    max-width: 340px;
    font-size: 1.5rem;
    line-height: 1.18;
  }

  .author-list,
  .affiliation {
    overflow-wrap: anywhere;
    font-size: 1.06rem;
  }

  .affiliation {
    font-size: 1rem;
  }

  .section h2,
  .demo-group > h2 {
    font-size: 1.38rem;
  }

  .project-page-section > h3 {
    font-size: 1.12rem;
  }

  .summary-table table {
    min-width: 760px;
  }

  .colorbar {
    width: 100%;
  }

  .colorbar figcaption {
    text-align: center;
  }

  .sample {
    padding: 14px;
  }

  .sample__meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tracks--methods {
    grid-template-columns: 1fr;
  }
}
