/** Drupal local tasks remain Drupal-managed; this wrapper owns their spacing and appearance. */
.fs-local-tasks {
  margin-block: 0 var(--fs-space-4);
  padding-top: 5px;
  padding-bottom: 5px;
}

.fs-local-tasks .tabs {
  margin: 0;
}

/* The title component supplies the gap above the tabs. */
.fs-local-tasks .tabs-primary {
  margin: 0;
}

.fs-local-tasks .tabs-wrapper .nav-tabs {
  display: flex;
  /* Bootstrap's flex-column utility is !important; override it within this component. */
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

.fs-local-tasks .tabs-wrapper .nav-tabs > .nav-item {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.fs-local-tasks .tabs-wrapper .nav-item > .nav-link {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 20px;
  border: 1px solid #c8cdd3;
  border-radius: 999px;
  background: #fff;
  color: #20242a;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.fs-local-tasks .tabs-wrapper .nav-item:not(.active) > .nav-link:hover {
  border-color: #9ca3aa;
  background: #f5f6f7;
  color: #111;
}

.fs-local-tasks .tabs-wrapper .nav-item.active > .nav-link,
.fs-local-tasks .tabs-wrapper .nav-item > .nav-link.active,
.fs-local-tasks .tabs-wrapper .nav-item > .nav-link.is-active,
.fs-local-tasks .tabs-wrapper .nav-item > .nav-link[aria-current="page"] {
  border-color: #20242a;
  background: #eef0f2;
  color: #111;
  font-weight: 700;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.fs-local-tasks .tabs-wrapper .nav-link:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

/* Bootstrap's collapsible tabs hide inactive links on mobile; keep them as wrapping pills. */
.fs-local-tasks .tabs-wrapper.is-collapsible .nav-tabs > .nav-item {
  display: flex;
  order: initial;
}

.fs-local-tasks .tabs-wrapper .tab-toggle {
  display: none;
}

.fs-local-tasks .tabs ul {
  margin-bottom: 0;
}
