.talks {
    position: relative;
    z-index: var(--layer-bottom);
    padding-block: var(--size-3);
}
/* Mobile styles - fixed positioning for full-width coverage */
@media (max-width: 599px) {
  #conference-nav {
    position: fixed;
    top: 56px; /* Mobile header height */
    left: 0;
    right: 0;
    z-index: var(--layer-top);
    background: var(--layer-surface);
    border-bottom: 1px solid var(--outline-variant);
    text-align: center;
  }
}

/* Desktop styles - contained within main content area */
@media (min-width: 600px) {
  #conference-nav {
    position: sticky;
    top: 0;
    z-index: var(--layer-middle);
    background: var(--layer-surface);
    border-bottom: 1px solid var(--outline-variant);
    text-align: center;
    margin-bottom: var(--size-4);
    /* Remove fixed positioning - let it flow within the main content */
  }
  
  /* Adjust the dynamic margin target to account for different desktop behavior */
  .scroll-container [data-dynamic-margin-target="content"] {
    margin-top: 0 !important; /* Remove the calculated margin on desktop */
  }
}

/* Talk date headers - sticky behavior */
.talk-date-header {
  position: sticky;
  top: 313px; /* Stick below the navigation container */
  background: var(--layer-background);
  z-index: 200;
  padding-block: var(--size-2);
  padding-inline: var(--size-3);
  margin-inline: calc(-1 * var(--size-3)); /* Extend to full width */
  border-bottom: 1px solid var(--outline-variant);
}

/* Ensure headers push each other */
.talk-date-header + .talk-card {
  margin-top: var(--size-2);
}

/* Add shadow when stuck */
.talk-date-header.stuck {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
