/* Value Stream Conference with AI dual-dropdown header, page tree, deliberate hero lines, and six-step workflow. */

.hub-navigation--with-ai {
  --hub-menu-tile-width: 21rem;
}

.site-header--with-ai,
.with-ai-header-layout,
.with-ai-header-layout__main,
.hub-navigation--with-ai {
  overflow: visible;
}

.with-ai-header-layout {
  display: grid;
  width: 100%;
  grid-template-columns: 4.5rem minmax(0, 1fr);
}

.with-ai-header-layout__main {
  min-width: 0;
  grid-column: 2;
}

.hub-navigation--with-ai {
  display: grid;
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: var(--section-header-height);
  margin: 0 auto;
  align-items: stretch;
  justify-content: start;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, var(--hub-menu-tile-width)));
}

.hub-navigation--with-ai .hub-navigation__menu {
  width: 100%;
  min-width: 0;
  flex: none;
}

.hub-navigation--with-ai .hub-navigation__menu-trigger {
  min-width: 0;
}

.hub-navigation--with-ai .hub-navigation__menu + .hub-navigation__menu .hub-navigation__menu-trigger {
  border-left: 0;
}

.hub-navigation__menu--with-ai .hub-navigation__dropdown {
  width: clamp(22rem, 34vw, 29rem);
  max-height: min(34rem, calc(100svh - 5.5rem));
  overflow-y: auto;
  scrollbar-width: thin;
}

.with-ai-navigation .subtopic-sidebar__panel {
  position: fixed;
  top: var(--workshop-header-height);
  bottom: 0;
  left: 0;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
}

.with-ai-navigation .with-ai-navigation__mark {
  font-size: 0.62rem;
  letter-spacing: 0.055em;
}

.with-ai-navigation .workshop-sidebar__group-link,
.with-ai-navigation .workshop-sidebar__link {
  min-height: 3.5rem;
}

.with-ai-navigation .workshop-sidebar__group-label {
  max-width: 12.75rem;
}

.with-ai-hero {
  overflow: visible;
}

.with-ai-hero .with-ai-hero__title {
  width: max-content;
  max-width: none;
}

.with-ai-hero__title-line {
  display: block;
}

.with-ai-hero__title-line--follow-through {
  white-space: nowrap;
}

.ai-capability-grid > article,
.with-ai-theme [id] {
  scroll-margin-top: calc(var(--section-header-height) + 1.5rem);
}

@media (min-width: 44rem) {
  .hub-navigation--with-ai .site-brand__text strong {
    white-space: nowrap;
  }

  .hub-navigation--with-ai .hub-navigation__menu-chevron {
    flex: 0 0 1.45rem;
  }
}

@media (max-width: 52rem) {
  .with-ai-header-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .with-ai-header-layout__main {
    grid-column: 1;
  }

  .hub-navigation--with-ai {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-navigation--with-ai .hub-navigation__menu {
    width: 100%;
    flex-basis: auto;
  }

  .hub-navigation--with-ai .hub-navigation__menu--with-ai .hub-navigation__dropdown {
    right: 0;
    left: auto;
  }

  .with-ai-navigation .subtopic-sidebar__panel {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
  }

  .with-ai-hero .with-ai-hero__title {
    width: 100%;
  }

  .with-ai-hero__title-line--follow-through {
    white-space: normal;
  }
}

@media (max-width: 38rem) {
  .hub-navigation--with-ai {
    grid-template-columns: 1fr;
  }

  .hub-navigation--with-ai .hub-navigation__menu + .hub-navigation__menu .hub-navigation__menu-trigger {
    border-top: 1px solid rgba(8, 39, 68, 0.12);
    border-left: 0;
  }

  .site-header--with-ai .hub-navigation__dropdown {
    right: auto;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .site-header--with-ai .hub-navigation__menu--with-ai .hub-navigation__dropdown {
    max-height: calc(100svh - (2 * var(--section-header-height)) - 1rem);
  }

  .with-ai-hero .with-ai-hero__title {
    max-width: none;
  }

  .ai-capability-grid > article,
  .with-ai-theme [id] {
    scroll-margin-top: calc((2 * var(--section-header-height)) + 1rem);
  }
}
