/* Public search: the header link also works without JavaScript. */
#site-search-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-block: 6px; margin-inline: 8px 12px; padding: 0 13px; border: 1px solid #cddce7; border-radius: 9px; background: #f4f9fc; color: #214b69; text-decoration: none; font-size: 14px; font-weight: bold; }
#site-search-trigger svg { width: 20px; height: 20px; }
#site-search-trigger:hover { background: #e6f2fb; border-color: #7bb1d4; }
.tr-search-dialog, .tr-search-page { color: #192e3e; font-family: Roboto, Arial, sans-serif; text-align: start; }
.tr-search-dialog *, .tr-search-page * { box-sizing: border-box; }
.tr-search-dialog { box-sizing: border-box; width: min(680px, calc(100% - 32px)); max-width: none; max-height: 84dvh; margin: 8dvh auto auto; padding: 28px; border: 1px solid #dbe5ed; border-radius: 18px; background: #fff; box-shadow: 0 24px 100px #152d4b40; overflow-y: auto; overscroll-behavior: contain; }
.tr-search-dialog:not([open]) { display: none; }
.tr-search-dialog::backdrop { background: #10253799; backdrop-filter: blur(3px); }
html.tr-search-open { overflow: hidden; }
.tr-search-dialog [hidden], .tr-search-page [hidden] { display: none !important; }
.tr-search-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.tr-search-heading h2, .tr-search-page h1 { margin: 0; font-size: 25px; line-height: 1.3; letter-spacing: -.5px; }
.tr-search-heading p, .tr-search-page > p { margin: 7px 0 0; color: #607483; font-size: 14px; }
.tr-search-close, .tr-search-clear { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f0f4f7; color: #526775; cursor: pointer; font: inherit; }
.tr-search-close svg { width: 20px; height: 20px; }
.tr-search-form { display: flex; align-items: stretch; gap: 9px; margin: 0; }
.tr-search-input-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-block: 0; padding-inline: 14px 10px; border: 1px solid #afc5d5; border-radius: 10px; background: #fff; }
.tr-search-input-wrap:focus-within { border-color: #2182c3; box-shadow: 0 0 0 3px #2182c320; }
.tr-search-input-wrap > svg { flex-shrink: 0; width: 22px; height: 22px; color: #67849b; }
.tr-search-input-wrap input { min-width: 0; width: 100%; height: 52px; padding: 0; border: 0; outline: none; box-shadow: none; background: transparent; color: #192e3e; font: inherit; font-size: 16px; }
.tr-search-input-wrap input::placeholder { color: #768b9a; opacity: 1; }
#site-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tr-search-clear { width: 28px; height: 28px; font-size: 22px; }
.tr-search-submit { border: 1px solid #176caa; border-radius: 10px; background: #176caa; padding: 0 19px; color: #fff; font: inherit; font-size: 14px; font-weight: bold; cursor: pointer; }
.tr-search-submit:hover { background: #115787; }
.tr-search-topics { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e7edf2; }
.tr-search-topics p { margin: 0 0 12px; color: #607483; font-size: 12px; font-weight: bold; letter-spacing: .5px; }
.tr-search-topics > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-search-topics a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #dce7ee; border-radius: 8px; color: #34566f; background: #f6f9fc; text-decoration: none; font-size: 13px; }
.tr-search-topics a:hover { border-color: #8ab6d4; background: #edf6fc; }
.tr-search-topics a span { color: #7a96a9; }
.tr-search-status { margin: 22px 0 10px; color: #607483; font-size: 13px; }
.tr-search-results { display: grid; list-style: none; padding: 0; margin: 0; }
.tr-search-results li { margin: 0; padding: 0; border-bottom: 1px solid #e7edf2; }
.tr-search-result { display: block; padding: 15px 12px; border-radius: 8px; color: #192e3e; text-decoration: none; }
.tr-search-result:hover, .tr-search-result:focus-visible { background: #f0f7fc; }
.tr-search-result-category { display: block; margin-bottom: 3px; color: #647f91; font-size: 11px; letter-spacing: .3px; }
.tr-search-result-title { display: block; font-size: 16px; font-weight: bold; line-height: 1.4; }
.tr-search-result-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: #647483; font-size: 13px; line-height: 1.5; }
.tr-search-result mark { background: #ddedf9; color: inherit; border-radius: 2px; }
.tr-search-all { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 15px; background: #eef6fc; color: #176caa; border-radius: 8px; font-size: 14px; font-weight: bold; text-decoration: none; }
.tr-search-all:hover { background: #dfedf8; }
.tr-search-empty-hint { color: #647483; font-size: 14px; margin: 0 0 16px; }
.tr-search-retry, .tr-search-pagination a { display: inline-block; border: 1px solid #cbdde9; border-radius: 8px; background: #f4f9fc; padding: 8px 15px; color: #176caa; cursor: pointer; font: inherit; text-decoration: none; }
.tr-search-page { margin-top: 8px; padding: 28px; background: #fff; border: 1px solid #dce5eb; border-radius: 12px; }
.tr-search-page .tr-search-form { margin: 24px 0; }
.tr-search-page .tr-search-result { padding: 20px 10px; }
.tr-search-page .tr-search-result-title { font-size: 18px; }
.tr-search-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 25px; font-size: 14px; }
.tr-search-pagination span { color: #647483; }
#site-search-trigger:focus-visible, .tr-search-dialog :focus-visible, .tr-search-page :focus-visible { outline: 3px solid #368dc8; outline-offset: 3px; }
.tr-search-input-wrap input:focus-visible { outline: none; }
:is(.tr-search-dialog, .tr-search-page):dir(rtl) :is(h1, h2, .tr-search-topics p, .tr-search-result-category) { letter-spacing: normal; }
:is(.tr-search-dialog, .tr-search-page):dir(rtl) :is(.tr-search-all, .tr-search-topics a) > span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
@media (max-width: 600px) {
    #site-search-trigger { padding: 0; width: 38px; min-height: 38px; margin-inline: 4px 8px; }
    #site-search-trigger span { display: none; }
    .tr-search-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 24px); margin-top: 12px; padding: 20px 16px; border-radius: 13px; }
    .tr-search-heading { gap: 10px; margin-bottom: 18px; }
    .tr-search-heading h2, .tr-search-page h1 { font-size: 22px; }
    .tr-search-heading p { font-size: 13px; }
    .tr-search-form { flex-wrap: wrap; }
    .tr-search-input-wrap { flex-basis: 100%; }
    .tr-search-submit { width: 100%; min-height: 42px; }
    .tr-search-page { padding: 20px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
    .tr-search-dialog[open] { animation: tr-search-appear .15s ease-out; }
    @keyframes tr-search-appear { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
}
