/* Interactive behaviours the compiled utility stylesheet does not cover.
   Everything visual comes from site.css (the design system); this file only
   handles menu open/close mechanics. */

.rw-menu-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}

.rw-menu:hover > .rw-menu-panel,
.rw-menu:focus-within > .rw-menu-panel,
.rw-menu-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rw-menu:hover > .rw-menu-trigger svg,
.rw-menu:focus-within > .rw-menu-trigger svg {
  transform: rotate(180deg);
}

.rw-acc-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Respect the site's smooth-scroll offset under the sticky header. */
:target {
  scroll-margin-top: 6rem;
}

/* Compact team-page finder panel. */
.team-hero-compact {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.team-hero-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.team-hero-kicker .eyebrow {
  margin: 0;
}

.team-intent-card {
  overflow: hidden;
}

.team-intent-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  list-style: none;
}

.team-intent-summary::-webkit-details-marker {
  display: none;
}

.team-intent-toggle {
  border: 1px solid color-mix(in oklab, var(--brand) 45%, transparent);
  border-radius: 999px;
  color: var(--moss);
  flex: 0 0 auto;
  font-size: .75rem;
  line-height: 1;
  padding: .45rem .75rem;
}

.team-intent-content {
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  display: grid;
  gap: .85rem;
  margin-top: .75rem;
  padding-top: .85rem;
}

.team-intent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.team-intent-actions a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 2.35rem;
  text-align: center;
}

.team-filter-form label {
  min-width: 0;
}

.team-filter-actions {
  align-self: end;
}

.team-filter-actions button {
  white-space: nowrap;
}

.team-filter-actions p {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .team-hero-compact {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .team-intent-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-filter-form {
    align-items: end;
    grid-template-columns: minmax(11rem, 1.25fr) minmax(8rem, .75fr) minmax(11rem, 1fr) minmax(13rem, 1.2fr) auto;
  }

  .team-filter-actions {
    flex-wrap: nowrap;
  }
}

@supports not (color: color-mix(in oklab, white, black)) {
  .team-intent-toggle {
    border-color: rgba(132, 205, 86, .45);
  }

  .team-intent-content {
    border-top-color: rgba(145, 135, 104, .35);
  }
}
