.teoe-press-search { --teoe-search-border: var(--teoe-divider, #d8d8d2); display:block; }
.teoe-press-search__form { margin: 0 0 1rem; }
.teoe-press-search__form > label { display:block; margin-bottom:.35rem; font-weight:700; }
.teoe-press-search__controls { display:flex; gap:.6rem; align-items:flex-start; }
.teoe-press-search__predictive, .teoe-search-form__predictive { position:relative; flex:1 1 auto; min-width:0; }
.teoe-press-search__input { width:100%; min-height:44px; padding:.7rem .8rem; border:1px solid var(--teoe-search-border); border-radius:.3rem; }
.teoe-press-search__submit { min-height:44px; padding:.65rem 1rem; cursor:pointer; }
.teoe-press-search__tabs { display:flex; flex-wrap:wrap; gap:.45rem; margin:0 0 .35rem; }
.teoe-press-search__tab { min-height:44px; padding:.55rem .8rem; border:1px solid var(--teoe-search-border); border-radius:.3rem; background:#fff; color:inherit; cursor:pointer; }
.teoe-press-search__tab[aria-selected="true"] { font-weight:700; text-decoration:underline; text-underline-offset:.18em; }
.teoe-press-search__tab:focus-visible, .teoe-press-search__input:focus-visible, .teoe-press-search__submit:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.teoe-press-search__status { min-height:1.5rem; margin:.5rem 0; }
.teoe-press-search__message { display:block; margin:.5rem 0; }
.teoe-press-search__results { min-height:8rem; }
.teoe-press-search__group + .teoe-press-search__group { margin-top:2rem; }
.teoe-press-search__group-title { margin:0 0 .8rem; padding-bottom:.4rem; border-bottom:2px solid var(--teoe-search-border); }
.teoe-press-search-result { padding:0 0 1rem; margin:0 0 1rem; border-bottom:1px solid var(--teoe-search-border); }
.teoe-press-search-result__title { margin:0 0 .3rem; font-size:1.2rem; }
.teoe-press-search-result__meta { margin:0 0 .3rem; font-size:.875rem; font-weight:700; }
.teoe-press-search-result__excerpt { margin:0; }
.teoe-press-search__pagination { display:flex; gap:.75rem; align-items:center; margin-top:1.2rem; }
.teoe-press-search__pagination button { min-height:44px; padding:.55rem .85rem; }
.teoe-press-search__suggestions, .teoe-search-form__suggestions { position:absolute; z-index:9999; inset:calc(100% + .2rem) 0 auto 0; max-height:22rem; overflow:auto; padding:.25rem; border:2px solid var(--teoe-search-border); border-radius:.3rem; background:#fff; box-shadow:0 .55rem 1.3rem rgba(0,0,0,.16); }
.teoe-press-search__suggestion, .teoe-search-form__suggestion { display:block; width:100%; min-height:44px; border:0; padding:.55rem .65rem; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.teoe-press-search__suggestion:hover, .teoe-press-search__suggestion:focus-visible, .teoe-search-form__suggestion:hover, .teoe-search-form__suggestion:focus-visible { background:rgba(0,0,0,.07); }
.teoe-press-search-form { display:flex; gap:.4rem; align-items:flex-start; }
.teoe-press-search-form .search-field { min-height:44px; width:100%; }
.teoe-press-search-form .search-submit { min-height:44px; }
@media (max-width: 34rem) {
  .teoe-press-search__controls { flex-direction:column; }
  .teoe-press-search__submit { width:100%; }
  .teoe-press-search-form { flex-direction:column; }
  .teoe-press-search-form .search-submit { width:100%; }
}
@media (forced-colors: active) {
  .teoe-press-search__tab[aria-selected="true"] { border:2px solid Highlight; }
}

/* The header magnifying-glass predictive list needs its own visible container.
   Match the 2px utility-menu separation rather than letting suggestions blend
   into the surrounding search panel. */
.header-search__panel .teoe-search-form__suggestions {
  border: 2px solid var(--teoe-divider, #005ea8);
}

/* Every result identifies the page/context where it was found. The main result
   may deep-link to a specific item; this separate link opens the parent page
   normally, without the focused fragment. */
.teoe-press-search-result__location { margin:.55rem 0 0; font-size:.9rem; }
.teoe-press-search-result__location span { font-weight:700; }

.teoe-press-search__tab[aria-current="page"] { font-weight:700; text-decoration:underline; text-underline-offset:.18em; }
.teoe-press-search__suggestion[aria-selected="true"] { outline:2px solid currentColor; }
