
/* Keep task navigation and contextual help legible across device widths. */
#app .slide-tabs-nav.mobile-task-nav .nav-item {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 2px;
}

#app .slide-tabs-nav.mobile-task-nav .nav-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app .slide-tabs-nav .nav-item:focus-visible,
#app .docs-container .docs-quick-link:focus-visible {
  outline: 2px solid var(--theme-color, #355cc2);
  outline-offset: -3px;
}

#app .docs-container > .docs-inner {
  grid-template-areas: "title" "description" "search" "help" "content";
}

#app .docs-container .docs-quick-links {
  grid-area: help;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  min-width: 0;
  margin-top: 0.125rem;
}

#app .docs-container .docs-quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--border-color, #e4e7ec);
  border-radius: 0.625rem;
  color: var(--text-color, #222b3a);
  text-decoration: none;
  font-size: 0.875rem;
}

#app .docs-container .docs-quick-link:hover {
  border-color: var(--theme-color, #355cc2);
  background-color: rgba(var(--theme-color-rgb, 53, 92, 194), 0.09);
}

#app .docs-container a.doc-item {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 680px) {
  #app .docs-container > .docs-inner {
    grid-template-areas: "title search" "description search" "help help" "content content";
  }
}

@media (max-width: 768px) {
  #app .slide-tabs-container {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  #app .slide-tabs-container {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}
