.sm-search-toggle { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; color: #003366; border: 1px solid #d6e2ec; border-radius: 10px; background: #fff; font-size: 1rem; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.sm-search-toggle:hover, .sm-search-toggle[aria-expanded="true"] { color: #003366; background: #e6f0fa; border-color: #b7cde0; }
.sm-site-search { position: fixed; inset: var(--sm-search-top,100px) 16px auto; margin: 0 auto; width: min(760px,calc(100% - 32px)); max-width: 760px; max-height: var(--sm-search-height,75dvh); box-sizing: border-box; padding: 0; border: 0; border-radius: 18px; background: #fff; color: #17394f; box-shadow: 0 24px 70px rgba(0,34,68,.22); overflow: auto; overscroll-behavior: contain; }
.sm-site-search:not([open]) { display: none; }
.sm-site-search::backdrop { background: rgba(8,26,44,.55); backdrop-filter: blur(6px); }
.sm-site-search *, .sm-site-search *::before { box-sizing: border-box; }
.sm-site-search :where(a,button,input) { scroll-margin: 12px; }
.sm-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.sm-search-heading h2 { margin: 0; color: #003366; font: 700 1.2rem/1.4 Montserrat,sans-serif; }
.sm-search-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f2f6f9; color: #34536a; font-size: 20px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.sm-search-close:hover { background: #cd163f; color: #fff; }
.sm-search-form { padding: 14px 24px 0; }
.sm-search-form label { display: block; margin-bottom: 8px; color: #526a7b; font-size: .9375rem; line-height: 1.5; }
.sm-search-field { display: flex; align-items: center; border: 0; border-radius: 12px; background: #f2f6f9; padding: 4px 4px 4px 16px; gap: 8px; transition: background-color .2s ease, box-shadow .2s ease; }
.sm-search-field:focus-within { background: #fff; box-shadow: 0 0 0 1px rgba(0,51,102,.18), 0 1px 6px rgba(0,34,68,.06); }
.sm-search-field input, .sm-search-field input[type="search"] { width: 100%; min-width: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: #16314a; font: inherit; font-size: 1rem; min-height: 44px; -webkit-appearance: none; appearance: none; box-shadow: none; outline: none; }
.sm-search-field input:focus, .sm-search-field input:focus-visible { outline: none; border: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.sm-search-field input::-webkit-search-cancel-button, .sm-search-field input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.sm-search-field input:focus { outline: none; }
.sm-search-field button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 10px; background: #003366; color: #fff; cursor: pointer; transition: background-color .2s ease; }
.sm-search-field button:hover { background: #cd163f; }
.sm-search-status { margin: 0; padding: 12px 24px; color: #526a7b; font-size: .875rem; line-height: 1.5; }
.sm-search-results { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 2px; }
.sm-search-results li + li { border-top: 0; }
.sm-search-results a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; text-decoration: none; transition: background-color .2s ease; }
.sm-search-results a:hover, .sm-search-results a:focus-visible { background: #f4f8fb; }
.sm-search-result-type { font-size: .75rem; font-weight: 700; color: #00758a; line-height: 1.5; }
.sm-search-result-title { color: #003366; font-size: 1rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.sm-search-result-excerpt { color: #526a7b; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.sm-search-footer { padding: 16px 24px 20px; border-top: 0; background: transparent; }
.sm-search-footer[hidden] { display: none; }
.sm-search-all { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; color: #003366; font-weight: 600; }
.sm-search-is-open #sm-fab { visibility: hidden; }
.sm-search-is-open { overflow: hidden; }
@media (max-width: 1024px) { .sm-header-actions { gap: 8px; } }
@media (max-width: 480px) {
    .site-header .sm-header-layout { gap: 6px; }
    .site-header .logo-box { gap: 4px; }
    .site-header .logo-text { font-size: .75rem; }
    .site-header .logo-icon { flex-basis: 26px; width: 26px; }
    .site-header .logo-icon img { width: 26px; }
    .sm-header-actions .btn { padding-inline: 8px !important; font-size: .7rem !important; }
    .sm-site-search { inset-inline: 8px; width: calc(100% - 16px); border-radius: 14px; }
    .sm-search-heading { padding: 16px 16px 0; }
    .sm-search-form { padding: 12px 16px 0; }
    .sm-search-status { padding: 12px 16px; }
    .sm-search-results { padding-inline: 6px; }
    .sm-search-footer { padding-inline: 16px; }
}
@media (max-width: 359px) { .site-header .logo-text { display: none; } .site-header .custom-logo { max-width: 65px; } }
