/* Homepage search intelligence: compact, accessible additions to the existing hero. */
body.fsl-home-v2 .search-container {
  padding-bottom: 18px;
}

body.fsl-home-v2 #find-schools-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  line-height: 1.2;
  white-space: normal;
  transition: background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

body.fsl-home-v2 #find-schools-button:focus-visible,
body.fsl-home-v2 .nearby-toggle:focus-visible,
body.fsl-home-v2 .nearby-search-panel button:focus-visible,
body.fsl-home-v2 .training-type-help summary:focus-visible,
body.fsl-home-v2 .nearby-results a:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.35);
  outline-offset: 2px;
}

body.fsl-home-v2 #find-schools-button:disabled,
body.fsl-home-v2 .nearby-search-panel button:disabled {
  cursor: wait;
  opacity: 0.62;
}

body.fsl-home-v2 .search-assist-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 10px;
  color: #334155;
  font-family: "Open Sans", Arial, sans-serif;
}

body.fsl-home-v2 .training-type-help,
body.fsl-home-v2 .nearby-toggle {
  flex: 0 1 auto;
}

body.fsl-home-v2 .training-type-help summary,
body.fsl-home-v2 .nearby-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #075985;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

body.fsl-home-v2 .training-type-help summary {
  list-style: none;
}

body.fsl-home-v2 .training-type-help summary::-webkit-details-marker {
  display: none;
}

body.fsl-home-v2 .training-type-help summary:hover,
body.fsl-home-v2 .nearby-toggle:hover {
  color: #003f66;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.fsl-home-v2 .training-type-help summary svg,
body.fsl-home-v2 .nearby-toggle svg,
body.fsl-home-v2 .nearby-search-panel__location svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.fsl-home-v2 .training-type-help__content {
  max-width: 620px;
  margin: 7px auto 2px;
  padding: 10px 12px;
  border: 1px solid #dbe5ee;
  border-radius: 9px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
}

body.fsl-home-v2 .training-type-help__content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

body.fsl-home-v2 .training-type-help__content p + p {
  margin-top: 4px;
}

body.fsl-home-v2 .nearby-search-panel {
  margin-top: 9px;
  padding: 12px;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: #f8fafc;
}

body.fsl-home-v2 .nearby-search-panel[hidden],
body.fsl-home-v2 .nearby-results[hidden],
body.fsl-home-v2 .popular-locations[hidden],
body.fsl-home-v2 .hero-featured-schools[hidden] {
  display: none !important;
}

body.fsl-home-v2 .nearby-search-panel .search-label {
  margin-bottom: 6px;
  font-size: 13px;
}

body.fsl-home-v2 .nearby-search-panel__controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
}

body.fsl-home-v2 .nearby-search-panel input,
body.fsl-home-v2 .nearby-search-panel button {
  min-height: 44px;
  border-radius: 8px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
}

body.fsl-home-v2 .nearby-search-panel input {
  height: 44px;
  border: 1px solid #b9c7d5;
  color: #0f172a;
}

body.fsl-home-v2 .nearby-search-panel input:focus {
  border-color: #0369a1;
  outline: 2px solid rgba(3, 105, 161, 0.22);
  outline-offset: 1px;
  box-shadow: none;
}

body.fsl-home-v2 .nearby-search-panel__button,
body.fsl-home-v2 .nearby-search-panel__location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #0369a1;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.fsl-home-v2 .nearby-search-panel__button {
  background: #0369a1;
  color: #fff;
}

body.fsl-home-v2 .nearby-search-panel__button:hover {
  background: #075985;
  border-color: #075985;
}

body.fsl-home-v2 .nearby-search-panel__location {
  background: #fff;
  color: #075985;
}

body.fsl-home-v2 .nearby-search-panel__location:hover {
  background: #eaf6fc;
}

body.fsl-home-v2 .nearby-search-panel__or {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body.fsl-home-v2 .nearby-search-panel__status {
  min-height: 0;
  margin: 7px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

body.fsl-home-v2 .nearby-search-panel__status:empty {
  display: none;
}

body.fsl-home-v2 .nearby-search-panel__status.is-error {
  color: #9f1239;
}

body.fsl-home-v2 .nearby-results {
  max-width: 920px;
  margin: 12px auto 0;
  padding: 10px 14px 12px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 12px;
  background: rgba(6, 16, 32, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  text-align: left;
}

body.fsl-home-v2 .nearby-results__heading {
  margin: 0 0 5px;
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

body.fsl-home-v2 .nearby-results__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.fsl-home-v2 .nearby-results__list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.fsl-home-v2 .nearby-results__list a {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 7px 3px;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

body.fsl-home-v2 .nearby-results__list a:hover {
  color: #bae6fd !important;
}

body.fsl-home-v2 .nearby-results__list a strong {
  flex: 0 0 auto;
}

body.fsl-home-v2 .nearby-results__list a span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
}

body.fsl-home-v2 .popular-locations__label {
  max-width: 100%;
}

body.fsl-home-v2 .trust-strip__list strong {
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  body.fsl-home-v2 .search-container {
    padding-bottom: 14px;
  }

  body.fsl-home-v2 .search-assist-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 2px;
    margin-top: 2px;
  }

  body.fsl-home-v2 .training-type-help summary,
  body.fsl-home-v2 .nearby-toggle {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 8px;
    font-size: 14px;
  }

  body.fsl-home-v2 .training-type-help__content {
    margin-top: 2px;
  }

  body.fsl-home-v2 .nearby-search-panel__controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.fsl-home-v2 .nearby-search-panel__or {
    display: none;
  }

  body.fsl-home-v2 .nearby-search-panel input,
  body.fsl-home-v2 .nearby-search-panel button {
    width: 100%;
    min-height: 48px;
    margin: 0;
  }

  body.fsl-home-v2 .nearby-results {
    margin-top: 10px;
    padding: 9px 11px 10px;
  }

  body.fsl-home-v2 .nearby-results__list a {
    display: block;
    padding: 8px 2px;
    text-align: center;
  }

  body.fsl-home-v2 .nearby-results__list a strong,
  body.fsl-home-v2 .nearby-results__list a span {
    display: block;
  }

  body.fsl-home-v2 .nearby-results__list a span {
    margin-top: 2px;
    font-size: 13px;
  }

  body.fsl-home-v2 .popular-locations__label {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fsl-home-v2 #find-schools-button,
  body.fsl-home-v2 .training-type-help summary,
  body.fsl-home-v2 .nearby-toggle,
  body.fsl-home-v2 .nearby-search-panel button {
    transition: none;
  }
}
