@import url("../home.css");

.talks-shell {
  max-width: 860px;
}

.talks-header {
  max-width: 700px;
  margin-bottom: 3.25rem;
}

.talks-nav {
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.talks-header .deck {
  max-width: 56ch;
}

.talk-list {
  display: grid;
  gap: 2rem;
}

.talk-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.talk-copy {
  padding: 1.35rem 1.5rem 1.5rem;
}

.talk-meta {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.talk-copy h3,
.meetup-block h2 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.3;
}

.talk-copy h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.talk-copy p:not(.talk-meta):not(.talk-links) {
  max-width: 64ch;
}

.talk-links {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.talk-screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.talk-screens picture {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.talk-screens img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .talk-screens {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meetup-block {
  padding: 1.75rem;
  border-radius: 10px;
  background: var(--accent-pale);
}

.meetup-block .eyebrow {
  margin-bottom: 0.65rem;
}

.meetup-block h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.meetup-block > p:not(.eyebrow):not(.meetup-link) {
  max-width: 60ch;
}

.meetup-link {
  margin-top: 1.25rem;
}

@media (max-width: 620px) {
  .talks-header {
    margin-bottom: 2.5rem;
  }

  .talks-nav {
    margin-bottom: 2rem;
  }

  .talk-copy {
    padding: 1.1rem 1.125rem 1.25rem;
  }

  .talk-copy h3 {
    font-size: 1.125rem;
  }

  .meetup-block {
    padding: 1.35rem 1.125rem;
  }

  .meetup-link .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Right-hand jump nav: quick scan of every video by year/venue/title,
   mirroring the optional right sidebar pattern used on article pages. */
.talks-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.talks-aside {
  flex: 0 0 15rem;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.talks-jumpnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.talks-jumpnav li + li {
  margin-top: 1rem;
}

.talks-jumpnav a {
  display: block;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
  color: var(--body-text, var(--ink));
}

.talks-jumpnav a:hover {
  border-left-color: var(--accent);
}

.talks-jumpnav-year {
  display: block;
  font: 700 0.78rem/1.4 var(--font-display);
  color: var(--ink);
}

.talks-jumpnav-place {
  display: block;
  margin-top: 0.1rem;
  font: 500 0.7rem/1.4 var(--font-display);
  color: var(--muted);
}

.talks-jumpnav-title {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .talks-layout {
    flex-direction: column;
  }

  .talks-aside {
    position: static;
    width: 100%;
    flex: none;
  }

  .talks-jumpnav ul {
    max-height: none;
    overflow: visible;
  }
}

@media print {
  .video-frame {
    display: none;
  }

  .talks-aside {
    display: none;
  }
}
