:root {
  --ink: #182033;
  --muted-ink: #687187;
  --line: #dce2ec;
  --canvas: #ffffff;
  --wash: #f6f8fc;
  --accent: #1d4ed8;
  --accent-soft: #dbe7ff;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.content-shell,
.nav-shell {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid rgb(220 226 236 / 80%);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-mark {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--muted-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.hero-section {
  padding: 8.5rem 0 7.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 12%, var(--accent-soft), transparent 26rem),
    linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.hero-content {
  width: min(calc(100% - 3rem), 1440px);
  max-width: 1440px;
}

.eyebrow,
.section-index {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 1440px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
}

.authors {
  margin: 2rem 0 0;
  color: var(--muted-ink);
  font-size: 1rem;
  font-weight: 500;
}

.content-section {
  padding: 6.5rem 0;
}

.muted-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-index {
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
}

.content-placeholder {
  width: 100%;
  border: 1px dashed #c7d0e0;
  border-radius: 0.75rem;
  background-color: rgb(255 255 255 / 68%);
}

.abstract-content {
  max-width: 900px;
  color: #3f4a5e;
  font-size: 1.05rem;
  line-height: 1.85;
}

.abstract-content p {
  margin: 0;
}

.abstract-content p + p {
  margin-top: 1.35rem;
}

.benchmark-subsection,
.training-subsection {
  max-width: 960px;
}

.benchmark-subsection h3,
.training-subsection h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.subsection-intro {
  max-width: 760px;
  margin: 0.75rem 0 2.25rem;
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.benchmark-figure {
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgb(24 32 51 / 5%);
}

.benchmark-figure + .benchmark-figure {
  margin-top: 2rem;
}

.subsection-divider {
  height: 1px;
  margin: 4.5rem 0;
  background: var(--line);
}

.benchmark-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
}

.benchmark-figure figcaption {
  padding: 1rem 0.25rem 0.15rem;
  color: #3f4a5e;
  font-size: 0.95rem;
  line-height: 1.65;
}

.case-comparison {
  display: grid;
  gap: 4.5rem;
  margin-top: 2.25rem;
}

.comparison-intro {
  margin-bottom: 1.25rem;
}

.comparison-toolbar,
.case-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.comparison-toolbar {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--wash);
}

.comparison-toolbar label {
  font-size: 0.88rem;
  font-weight: 700;
}

.comparison-toolbar select,
.case-controls button {
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #b9c6dd;
  border-radius: 0.45rem;
  color: var(--accent);
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.comparison-toolbar select {
  min-width: 7rem;
}

.comparison-toolbar select:disabled {
  cursor: wait;
}

.case-controls button:hover {
  background: var(--accent-soft);
}

.comparison-toolbar select:focus-visible,
.case-controls button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

#comparison-status,
.sample-count {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.8rem;
  line-height: 1.5;
}

#comparison-status {
  margin-left: auto;
}

.case-controls {
  margin-top: 1.25rem;
}

.comparison-case {
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.comparison-case:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.case-label {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-details {
  display: grid;
  gap: 1rem;
}

.case-details p {
  margin: 0;
  color: #3f4a5e;
  font-size: 0.94rem;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.field-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.audio-group-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.audio-group {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--wash);
}

.audio-group h4 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.audio-group.proposed {
  border-color: #91cbb3;
  background: #f2faf6;
}

.audio-group.proposed h4 {
  color: #157c55;
}

.proposed-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  background: #d9f0e4;
  font-size: 0.72rem;
}

.audio-clip-grid {
  display: grid;
  gap: 0.65rem;
}

.audio-clip {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.audio-clip[hidden] {
  display: none;
}

.audio-clip span {
  color: var(--muted-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.audio-clip audio {
  width: 100%;
  height: 2.25rem;
}

.comparison-fallback,
.comparison-error {
  margin: 1.5rem 0 0;
  color: var(--muted-ink);
}

.site-footer {
  padding: 2.25rem 0;
  color: var(--muted-ink);
  background: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 700px) {
  .content-shell,
  .nav-shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: 4rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }

  .site-mark {
    font-size: 0.7rem;
  }

  .hero-section {
    padding: 5.5rem 0 5rem;
  }

  .content-section {
    padding: 4.25rem 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
  }

  .case-header {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  #comparison-status {
    width: 100%;
    margin-left: 0;
  }

  .audio-group-comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

}
