/* Shared search access and dedicated Search page; other page layouts stay scoped. */
.header-search { width: clamp(240px, 21vw, 340px); }
.search-form .search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.search-input-row { display: flex; gap: 0; min-width: 0; margin: 0 0 7px 7px; box-shadow: -7px 7px 0 var(--lime), 0 5px 12px #24282b16; }
.search-form input { min-width: 0; width: 100%; border: 1px solid #a8afa9; border-radius: 0; background: var(--paper); color: var(--ink); padding: 12px; min-height: 44px; font: 16px/1.3 var(--sans); }
.search-form input::placeholder { color: #585e59; opacity: 1; }
.search-form button { flex: 0 0 auto; border: 1px solid var(--red); background: var(--red); color: var(--paper); padding: 12px 14px; font: 600 14px/1.3 var(--sans); min-height: 44px; }
.search-form button:hover { background: #ad240e; border-color: #ad240e; }
.search-form input:focus { outline: none; border-color: var(--red); }
.search-form input:focus-visible, .search-form button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--red); outline-offset: 3px; }
.site-header .header-search-link { display: none; border-bottom: 4px solid var(--lime); padding-block: 10px 6px; }
@media (min-width: 761px) and (max-width: 1199px) {
  .site-header .header-search { display: none; }
  .site-header .header-search-link { display: inline-flex; white-space: nowrap; }
  .site-header .primary-navigation { gap: clamp(16px, 2.2vw, 25px); }
  .site-header { gap: 20px; }
}
@media (min-width: 1200px) {
  .site-header .primary-navigation { gap: clamp(22px, 2.3vw, 36px); }
  .site-header .nav-link { white-space: nowrap; }
  .site-header .request-call { margin-left: 6px; }
}
@media (max-width: 760px) {
  .site-header .header-search { width: 100%; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--light-grey); }
}
.search-page { color: var(--ink); background: var(--off-white); }
.search-hero { padding: 48px var(--gutter); background: var(--ink); color: var(--off-white); }
.search-hero h1 { color: var(--lime); font: 400 clamp(48px, 5.5vw, 80px)/1.08 var(--serif); letter-spacing: -.045em; }
.search-hero-rule { display: block; background: var(--red); width: 88px; height: 4px; margin: 24px 0; }
.search-hero p { font-size: 18px; line-height: 1.65; }
.search-content { width: 100%; max-width: 1200px; margin: auto; padding: 44px var(--gutter) 64px; }
.search-page-form { max-width: 840px; padding: 8px 0; }
.search-page-form .search-input-row { gap: 0; }
.search-page-form .button { margin: 0; box-shadow: none; min-width: 0; }
.search-status { margin-block: 28px; line-height: 1.6; font-size: 17px; overflow-wrap: anywhere; }
.search-results { list-style: none; padding: 0; max-width: 840px; }
.search-results li { background: var(--paper); border-left: 4px solid var(--lime); padding: 24px 28px; margin-bottom: 20px; box-shadow: 0 3px 14px #24282b0c; }
.search-result-type { color: var(--red); font: 600 13px/1.4 var(--sans); letter-spacing: .04em; margin-bottom: 10px; }
.search-results h2 { font: 400 clamp(26px, 2.8vw, 34px)/1.2 var(--serif); margin-bottom: 14px; }
.search-results h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.search-results h2 a:hover { color: var(--red); }
.search-results p:last-child { font-size: 17px; line-height: 1.7; }
.search-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 24px 0; }
.search-browse { margin-top: 40px; padding-top: 28px; border-top: 1px solid #c1c6be; }
.search-browse h2 { font: 400 30px/1.2 var(--serif); margin-bottom: 16px; }
.search-browse ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 0; }
.search-browse a { display: inline-block; padding-block: 12px; text-decoration: underline; text-underline-offset: 4px; line-height: 1.5; }
.search-browse a:hover { color: var(--red); }
.search-noscript, #search-error { max-width: 70ch; line-height: 1.7; }
@media (max-width: 760px) {
  .search-hero { padding-block: 36px; }
  .search-content { padding-top: 28px; }
  .search-results li { padding: 22px 20px; }
  .search-browse ul { grid-template-columns: minmax(0, 1fr); }
}
/* Full input when there is room; a direct Search FTS link on smaller desktops. */
@media (min-width: 761px) and (max-width: 1399px) {
 .site-header .header-search { display: none; }
 .site-header .header-search-link { display: inline-flex; }
 .site-header .primary-navigation { gap: 24px; }
}
@media (min-width: 1400px) {
 .site-header .header-search { width: clamp(240px, 20vw, 340px); }
 .site-header .primary-navigation { gap: 26px; }
}
