/* hs1 (16 Nov 2026): header site search. Panel, header buttons and the full results page (/site-search.aspx). */

:root {
  --hhs-blue: #0b4aa2;
  --hhs-ink: #111827;
  --hhs-muted: #6b7280;
  --hhs-line: rgba(17, 24, 39, .10);
  --hhs-hover: #eef4fc;
}

/* ---------- header buttons ---------- */

/* desktop masthead: a round button beside the fixed menu button (top right) */
.hhs-trigger--masthead {
  position: fixed;
  top: 3px;
  right: 40px;
  z-index: 999;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #0057b7;
  color: var(--hhs-blue);
  text-decoration: none;
  font-size: 13px;
}
.hhs-trigger--masthead:hover,
.hhs-trigger--masthead:focus-visible {
  background: var(--hhs-hover);
  color: var(--hhs-blue);
  text-decoration: none;
}
/* the masthead row is centred; on narrower desktops keep its last pill clear of the two buttons */
@media (min-width: 1025px) and (max-width: 1299px) {
  #site-masthead .headconinner { padding-right: 84px; }
}

.hhs-trigger:focus-visible,
.compact-sitesearch a:focus-visible,
.hhm-action:focus-visible {
  outline: 2px solid var(--hhs-blue);
  outline-offset: 2px;
}

/* ---------- the panel ---------- */
html.hhs-open { overflow: hidden; }

.hhs[hidden] { display: none !important; }
.hhs {
  position: fixed;
  inset: 0;
  z-index: 10060;              /* above the side menu (10050) */
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}
.hhs__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .55);
}
.hhs__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 120px);
  margin: 72px auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .30);
  overflow: hidden;
}

.hhs__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--hhs-line);
}
.hhs__icon { color: var(--hhs-blue); font-size: 16px; flex: 0 0 auto; }
.hhs .hhs__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 4px;
  border: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 17px;              /* 16px+ keeps iOS from zooming */
  color: var(--hhs-ink);
  font-family: inherit;
}
.hhs__input::-webkit-search-cancel-button { display: none; }
.hhs__input::placeholder { color: #9ca3af; }
.hhs .hhs__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 10px;
  border: 1px solid var(--hhs-line);
  background: #f9fafb;
  color: var(--hhs-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.hhs .hhs__close:hover { background: var(--hhs-hover); }
.hhs .hhs__close:focus-visible { outline: 2px solid var(--hhs-blue); outline-offset: 2px; }

.hhs.is-loading .hhs__bar { background: linear-gradient(90deg, #fff 0%, var(--hhs-hover) 50%, #fff 100%) 0 100% / 200% 2px no-repeat; animation: hhs-load 1s linear infinite; }
@keyframes hhs-load { from { background-position: 100% 100%; } to { background-position: -100% 100%; } }
@media (prefers-reduced-motion: reduce) { .hhs.is-loading .hhs__bar { animation: none; } }

.hhs__msg {
  margin: 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hhs-muted);
}
.hhs__msg[hidden] { display: none; }

.hhs__results {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.hhs__results:empty { display: none; }
.hhs__group { padding: 6px 0; }
.hhs__group + .hhs__group { border-top: 1px solid var(--hhs-line); }
.hhs__ghead {
  padding: 8px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hhs-muted);
}
.hhs a.hhs__opt {
  display: block;
  padding: 9px 18px;
  text-decoration: none;
  color: var(--hhs-ink);
  border-left: 3px solid transparent;
}
.hhs a.hhs__opt:hover,
.hhs a.hhs__opt.is-active {
  background: var(--hhs-hover);
  border-left-color: var(--hhs-blue);
  text-decoration: none;
}
.hhs__t {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
}
.hhs__m {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--hhs-muted);
}
.hhs mark {
  background: none;
  color: var(--hhs-blue);
  font-weight: 700;
  padding: 0;
}

.hhs__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--hhs-line);
  background: #f9fafb;
  font-size: 13px;
}
.hhs__foot a { color: var(--hhs-blue); font-weight: 600; text-decoration: none; }
.hhs__foot a:hover, .hhs__foot a:focus-visible { text-decoration: underline; }
.hhs__foot a[hidden] { display: none; }
.hhs__planner { margin-left: auto; }

/* phones: the panel sits at the top, full width */
@media (max-width: 719px) {
  .hhs__panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0 0 16px 16px;
  }
  .hhs__planner { margin-left: 0; }
}

/* ---------- full results page ---------- */
.hhs-page {
  max-width: 860px;
  margin: 24px auto 48px;
  padding: 0 16px;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: var(--hhs-ink);
}
.hhs-page__title {
  margin: 8px 0 16px;
  font-size: 26px;
  color: var(--hhs-blue);
  text-transform: none;
}
.hhs-page__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--hhs-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .08);
}
.hhs-page__box:focus-within { border-color: var(--hhs-blue); box-shadow: 0 0 0 3px rgba(11, 74, 162, .15); }
.hhs-page__box .fa-magnifying-glass { color: var(--hhs-blue); }
.hhs-page .hhs-page__box input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  border: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 17px;
  font-family: inherit;
  color: var(--hhs-ink);
}
.hhs-page .hhs-page__go {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--hhs-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.hhs-page .hhs-page__go:focus-visible { outline: 2px solid var(--hhs-blue); outline-offset: 2px; }

.hhs-page__summary { margin: 18px 0 4px; font-size: 14px; color: var(--hhs-muted); }
.hhs-page__note,
.hhs-page__hint,
.hhs-page__empty { margin: 18px 0 6px; font-size: 15px; line-height: 1.6; }
.hhs-page__browse { margin: 8px 0; font-size: 15px; }
.hhs-page__browse a { color: var(--hhs-blue); font-weight: 600; }

.hhs-page__group { margin-top: 26px; }
.hhs-page__gtitle {
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hhs-line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hhs-muted);
}
.hhs-page__count {
  display: inline-block;
  min-width: 22px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--hhs-hover);
  color: var(--hhs-blue);
  font-size: 12px;
  letter-spacing: 0;
  text-align: center;
}
.hhs-page__list { list-style: none; margin: 0; padding: 0; }
.hhs-page__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hhs-line);
}
.hhs-page__thumb { flex: 0 0 112px; }
.hhs-page__thumb img {
  display: block;
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.hhs-page__text { min-width: 0; }
.hhs-page__ititle {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: none;
}
.hhs-page__ititle a { color: var(--hhs-blue); text-decoration: none; }
.hhs-page__ititle a:hover, .hhs-page__ititle a:focus-visible { text-decoration: underline; }
.hhs-page__meta { margin-top: 3px; font-size: 13px; color: var(--hhs-muted); }
.hhs-page__snip { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #374151; }
.hhs-page mark { background: #fff3c4; color: inherit; padding: 0 1px; border-radius: 2px; }

@media (max-width: 719px) {
  .hhs-page { margin-top: 12px; }
  .hhs-page__title { font-size: 22px; }
  .hhs-page__thumb { flex-basis: 84px; }
  .hhs-page__thumb img { width: 84px; height: 63px; }
  .hhs-page .hhs-page__go { padding: 0 14px; }
}

/* the site's global heading styles (spacing, justify, display fonts) must not reach the result list */
.hhs-page .hhs-page__gtitle,
.hhs-page .hhs-page__ititle,
.hhs .hhs__t {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
}
.hhs-page .hhs-page__gtitle { line-height: 1.4; letter-spacing: .06em; }
.hhs-page .hhs-page__ititle { line-height: 1.35; }
.hhs-page .hhs-page__title { text-align: left; }
.hhs-page__count { line-height: 1.5; vertical-align: 1px; }
