/* ------------------------------------------------------------------
 * StreamAlign demo page — custom styles on top of Bulma
 * ------------------------------------------------------------------ */

body {
  font-family: 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #222;
}

.hero-body {
  padding: 2rem 1.5rem 1rem;
}

.publication-title {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.publication-subtitle {
  color: #555;
  margin-top: 0.25rem;
}

.notice-card {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 1.75rem;
  background: #fff8e6;
  border: 1px solid #f0d68a;
  border-radius: 8px;
  color: #7a5a00;
  font-size: 1rem;
  line-height: 1.5;
}

.section {
  padding: 1.5rem 1.5rem;
}

.section-title {
  margin-bottom: 1rem !important;
  font-weight: 600;
}

/* ---------- Audio comparison table ---------- */

.audio-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.audio-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.audio-table thead th {
  background: #fafafa;
  color: #333;
  font-weight: 600;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.audio-table tbody td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.audio-table tbody tr:last-child td {
  border-bottom: none;
}

.audio-table tbody tr:hover {
  background: #fafbfc;
}

/* Sticky first column so the sample label stays visible while scrolling */
.audio-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  border-right: 1px solid #e5e5e5;
}

.audio-table thead .sticky-col {
  background: #fafafa;
  z-index: 3;
}

.audio-table .sample-col {
  text-align: left;
  min-width: 140px;
  max-width: 170px;
  white-space: normal;
}

.sample-label {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
}

.sample-text {
  font-size: 0.72rem;
  color: #666;
  font-style: italic;
  white-space: normal;
  line-height: 1.35;
}

.model-meta {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #888;
  margin-top: 1px;
}

/* Column-group tinting to make groupings visible */
.group-non-streaming  { background: #f5f7fb !important; }
.group-streaming      { background: #f4faf6 !important; }
.group-text-informed  { background: #fbf6f1 !important; }
.group-topline        { background: #f7f4fb !important; }
.group-baseline       { background: #fafafa !important; }
.group-ours           { background: #fff6ec !important; }

.audio-table thead .group-ours {
  color: #b15a00;
}

/* Audio element sizing (native fallback before JS enhancement) */
.audio-table audio {
  width: 115px;
  height: 36px;
  vertical-align: middle;
}

/* ---------- Compact custom audio player ---------- */
.audio-player {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 115px;
  vertical-align: middle;
}

.ap-btn {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #b15a00;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  line-height: 1;
}

.ap-btn:hover { background: #934900; }
.ap-btn:focus-visible { outline: 2px solid #b15a00; outline-offset: 1px; }

.ap-bar {
  flex: 1 1 auto;
  min-width: 20px;
  height: 5px;
  background: #e3e3e3;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.ap-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #b15a00;
  border-radius: 3px;
}

.ap-time {
  flex: 0 0 auto;
  font-size: 0.6rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.footer {
  padding: 1.25rem 1.5rem;
  background: #fafafa;
  border-top: 1px solid #eee;
}
