/* ========== Global Typography & Layout ========== */

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

h2 {
  margin-top: 2.5rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.2rem;
}

.authors {
  text-align: center;
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

.affiliation {
  text-align: center;
  font-size: 0.95rem;
  margin: 0.25rem 0 1rem 0;
  color: #555;
}

.links {
  text-align: center;
  margin-bottom: 2rem;
}

.links a {
  text-decoration: none;
  color: #005dab;
  margin: 0 0.5rem;
}

.links a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 2rem;
}

.figure {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}

pre {
  background-color: #f9f9f9;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.section-subtle {
  color: #555;
  font-size: 0.95rem;
}




.hero-layout {
  max-width: 1600px;
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); /* abstract a bit wider */
  gap: 2rem;
  align-items: center;
}

.hero-abstract h2 {
  margin-top: 0; /* keep the heading tight to the top */
}

.hero-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-image {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

/* Stack abstract and teaser on small screens */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

/* ========== Video Grid (3 rows x 2 columns) ========== */

#video {
  max-width: 1600px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

#video h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* 2 videos per row, 3 rows */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Collapse to one column on small screens */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Video card styling (unchanged from your original) */
.video-box {
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.video-box iframe,
.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  object-fit: cover;
}

.video-caption {
  margin: 0;
  padding: 0.6rem 0.8rem 0.8rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  border-top: 1px solid #eee;
}


/* ========== Audio Section ========== */

.audio-group-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

/* Base 3-column grid for header + rows */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;   /* row / column gap */
  align-items: center;
}

.audio-grid.header {
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Make audio players full width in their cell */
.player {
  width: 100%;
}
