/* Home-only adjustments on top of the Relume stylesheet.
   The directory search is the live index, styled like the Relume field.
   Dropdowns and the mobile menu work without the Relume runtime. */

.gnm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gnm-relume-search {
  width: min(36rem, 100%);
}

.gnm-dir-search {
  position: relative;
  margin: 0;
}

.gnm-dir-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gnm-dir-search .form-submit-wrapper {
  margin-top: var(--gap-element-small, 1rem);
}

.gnm-dir-search input {
  width: 100%;
  background-color: var(--input-fill);
  border-color: var(--input-border);
  border-radius: var(--input-radius);
  border-style: solid;
  border-width: var(--input-border-width);
  color: var(--input-text);
  font-family: var(--font-family-body);
  font-size: var(--button-font-size);
  padding: 0.85rem 1rem;
}

.gnm-dir-search input:focus-visible {
  outline: 2px solid var(--button-fill);
  outline-offset: 2px;
}

.gnm-dir-results {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  max-height: 22rem;
  margin: 0.45rem 0 0;
  padding: 0.35rem;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--scheme-border);
  border-radius: var(--radius-medium);
  background: var(--scheme-background);
}

.gnm-dir-results[hidden] {
  display: none;
}

.gnm-dir-results a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-small);
  color: inherit;
  text-decoration: none;
}

.gnm-dir-results a:hover,
.gnm-dir-results a[aria-selected="true"] {
  background: var(--scheme-background-secondary);
}

.gnm-dir-result-meta,
.gnm-dir-empty {
  color: var(--scheme-text-muted);
  font-size: 0.85rem;
}

.gnm-dir-result-meta {
  display: block;
  margin-top: 0.15rem;
}

.gnm-dir-empty {
  padding: 0.75rem 0.85rem;
}

#geo-suggest {
  margin: 0;
}

#geo-suggest a {
  color: inherit;
  text-decoration: underline;
}

.nav-link-dropdown:hover > .nav-link-dropdown-panel,
.nav-link-dropdown:focus-within > .nav-link-dropdown-panel {
  display: flex;
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  [data-sid="1"] .nav-menu.r-3 {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
  }

  [data-sid="1"] .nav-menu.r-3.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.faq-question[aria-expanded="true"] + .faq-answer,
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
