/* Isolated shared-header addition. Load after existing theme and page styles. */
.site-header.has-guide-search {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) auto;
  grid-template-areas: "brand search badge" "nav nav nav";
  align-items: center;
  gap: 8px 24px;
}
.site-header.has-guide-search > .brand { grid-area: brand; min-width: 0; }
.site-header.has-guide-search > .guide-search { grid-area: search; }
.site-header.has-guide-search > .area-badge { grid-area: badge; max-width: 160px; margin-left: 0; }
.site-header.has-guide-search > .site-nav { grid-area: nav; min-width: 0; margin-left: 0; justify-content: flex-start; }
.site-header.has-guide-search > .site-nav a { overflow-wrap: anywhere; }
.guide-search { position: relative; min-width: 0; width: 100%; max-width: 620px; justify-self: end; color: #172b3a; }
.guide-search__label { display: block; margin-bottom: 5px; color: #172b3a; font-size: 13px; line-height: 1.4; font-weight: 700; }
.guide-search__control { position: relative; min-width: 0; }
.guide-search #guide-location-query { display: block; min-width: 0; width: 100%; min-height: 44px; padding: 10px 68px 10px 12px; border: 1px solid #6b8292; border-radius: 8px; background: #fff; color: #172b3a; font-size: 16px; line-height: 1.4; }
.guide-search #guide-location-query::placeholder { color: #526676; opacity: 1; }
.guide-search #guide-location-query:disabled { background: #eef2f5; color: #526676; cursor: not-allowed; opacity: 1; }
.guide-search__clear { position: absolute; top: 0; right: 0; min-width: 56px; min-height: 44px; padding: 7px 9px; border: 0; border-radius: 0 7px 7px 0; background: #edf5f1; color: #065b36; font-size: 13px; font-weight: 700; }
.guide-search__help, .guide-search__status { margin-top: 5px; color: #526676; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.guide-search__status:empty { margin-top: 0; }
.guide-search__help a { color: #065b36; text-underline-offset: 2px; }
.guide-search__results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: min(52vh, 360px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px; list-style: none; border: 1px solid #6b8292; border-radius: 8px; background: #fff; color: #172b3a; box-shadow: 0 8px 24px rgba(6, 19, 29, .18); }
.guide-search__results > li { margin: 0; padding: 0; }
.guide-search__option { display: block; min-height: 44px; padding: 10px; border: 2px solid transparent; border-radius: 4px; color: #172b3a; font-size: 15px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.guide-search__option:hover { background: #edf5f1; text-decoration: underline; }
.guide-search__option[aria-selected="true"] { border-color: #087344; background: #d7f3e3; color: #172b3a; }
.guide-search input:focus-visible, .guide-search button:focus-visible, .guide-search a:focus-visible { outline: 3px solid #245f8f; outline-offset: 3px; }
.guide-search [hidden] { display: none !important; }
@media (max-width: 760px) {
  .site-header.has-guide-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 108px);
    grid-template-areas: "brand badge" "search search" "nav nav";
    gap: 10px 12px;
  }
  .site-header.has-guide-search > .brand { width: 190px; max-width: 100%; }
  .site-header.has-guide-search > .area-badge { width: 100%; max-width: 108px; justify-self: end; }
  .site-header.has-guide-search > .guide-search { max-width: none; justify-self: stretch; }
  .site-header.has-guide-search > .site-nav { gap: 2px 16px; }
}
@media (forced-colors: active) {
  .guide-search__option[aria-selected="true"] { border-color: Highlight; color: HighlightText; background: Highlight; }
  .guide-search input:focus-visible, .guide-search button:focus-visible, .guide-search a:focus-visible { outline-color: Highlight; }
}

/* Reserve the status slot across loading, ready, and search feedback states. */
.guide-search__status, .guide-search__status:empty { min-height: 2.9em; margin-top: 5px; }
