.talks-preview-banner {
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  margin: 0 0 1.25rem;
  background: var(--color-highlight);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
}

.talks-page-header {
  margin-bottom: 1rem;
}

.talks-page-header h1 {
  margin-bottom: 0.35rem;
}

.talks-season-label {
  margin: 0;
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 600;
}

.talks-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  background: var(--color-bg);
  padding-top: 0.25rem;
}

.talks-jump-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.talks-jump-nav a:hover {
  border-color: var(--color-primary);
  background: var(--color-highlight);
}

.talks-section {
  scroll-margin-top: calc(var(--header-height) + 3rem);
  margin-bottom: 2rem;
}

.talks-section-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--color-primary-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero — extends the shared .card base (style.css) with its own
   gradient background, thicker accent border, and roomier padding
   to stand out as the page's featured item. */
.talk-hero {
  background: linear-gradient(135deg, var(--color-next) 0%, var(--color-surface) 100%);
  border: 2px solid var(--color-next-border);
  padding: 1.5rem;
}

.talk-hero--complete {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.talk-hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.talk-hero-date {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.talk-hero-time::before {
  content: ' · ';
  font-weight: 400;
  color: var(--color-muted);
}

.talk-hero-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.talk-hero--complete .talk-hero-title {
  font-size: 1.15rem;
  font-weight: 400;
  font-family: var(--font-sans);
  color: var(--color-text);
}

.talk-hero-speaker {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
}

.talk-hero-description-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text);
}

.talk-hero-actions {
  margin: 1.25rem 0 0;
}

/* Pills */
.talk-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  background: var(--color-primary);
  color: #fff;
}

.talk-pill--quiz { background: var(--color-pill-quiz); }
.talk-pill--agm { background: var(--color-accent); }
.talk-pill--event { background: var(--color-pill-event); }

/* Row list */
.talk-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.talk-row {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.talk-row:last-child {
  border-bottom: none;
}

.talk-row-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.4;
}

.talk-row-time {
  display: block;
  font-weight: 400;
  margin-top: 0.15rem;
}

.talk-row-title {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
}

.talk-row-speaker {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

.talk-row-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.talk-row--past .talk-row-title,
.talk-row--past .talk-row-date {
  color: var(--color-muted);
}

.talk-row--past .talk-row-speaker {
  color: var(--color-muted);
}

/* Past accordion */
.talks-past-details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 1rem;
}

.talks-past-summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  color: var(--color-primary-dark);
  list-style: none;
}

.talks-past-summary::-webkit-details-marker {
  display: none;
}

.talks-past-summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
}

.talks-past-details[open] .talks-past-summary::before {
  transform: rotate(90deg);
}

.talk-row-list--past {
  padding-bottom: 0.5rem;
}

.talks-venue {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .talk-row {
    grid-template-columns: 11rem 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .talk-hero {
    padding: 2rem;
  }

  .talk-hero-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .talk-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas:
      'label label'
      'date date'
      'title title'
      'speaker speaker'
      'desc desc'
      'actions actions';
    gap: 0 2rem;
  }

  .talk-hero-label { grid-area: label; }
  .talk-pill { grid-area: label; justify-self: end; align-self: start; }
  .talk-hero-date { grid-area: date; }
  .talk-hero-title { grid-area: title; }
  .talk-hero-speaker { grid-area: speaker; }
  .talk-hero-description { grid-area: desc; }
  .talk-hero-actions { grid-area: actions; }
}
