.header-inner > .tb-search-trigger {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-inline-start: auto;
    color: var(--accent, #315dea);
    background: #f4f7fd;
    border: 1px solid #d8e2f3;
    border-radius: 50%;
}
.header-inner > .tb-search-trigger:hover { background: #eaf0ff; }
@media (min-width: 1101px) {
    .site-header .header-inner {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        width: min(1320px, calc(100% - 40px));
        column-gap: clamp(8px, 1vw, 16px);
    }
    .header-inner > .tb-search-trigger { order: 0; margin: 0; }
    .header-inner > #primary-navigation { column-gap: clamp(6px, .7vw, 12px); }
}
@media (min-width: 1101px) and (max-width: 1320px) {
    .site-header .header-inner { width: calc(100% - 32px); column-gap: 8px; }
    .header-inner > #primary-navigation { column-gap: 6px; }
    .header-inner > #primary-navigation > a { font-size: 12px; padding-inline-start: 16px; }
}
@media (min-width: 1101px) and (max-width: 1199px) {
    .site-header .header-inner { width: calc(100% - 20px); column-gap: 5px; }
    .site-header .brand { font-size: 22px; gap: 6px; }
    .site-header .brand small { font-size: 8px; max-width: 10em; white-space: normal; line-height: 1.2; }
    .header-inner > #primary-navigation { column-gap: 3px; }
    .header-inner > #primary-navigation > a { padding-inline-start: 14px; letter-spacing: -.01em; }
}
@media (max-width: 1100px) {
    .header-inner > .tb-search-trigger + .menu-toggle { margin-inline-start: 0; }
}
@media (max-width: 1100px) and (scripting: none) {
    .site-header { position: static; }
}
@media (max-width: 360px) {
    .site-header .header-inner { width: calc(100% - 24px); column-gap: 6px; }
    .header-inner > .menu-toggle { padding-inline: 10px; gap: 6px; }
}
.tb-search-trigger:focus-visible, .tb-search-panel :focus-visible, .tb-search-dialog button:focus-visible {
    outline: 2px solid var(--accent, #315dea);
    outline-offset: 3px;
}
.tb-search-panel {
    width: 100%;
    max-width: 900px;
    color: var(--ink, #192536);
    box-sizing: border-box;
}
.tb-search-panel *, .tb-search-dialog { box-sizing: border-box; }
#tb-search { margin: 0 0 clamp(16px, 2vw, 26px); scroll-margin-top: 9rem; }
.tb-search-dialog #tb-search { margin: 0; }
.tb-search-form { margin: 0; }
.tb-search-line {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px;
    background: #fff;
    border: 1px solid #c7d5ee;
    border-radius: 14px;
}
.tb-search-line:focus-within { border-color: var(--accent, #315dea); }
.tb-search-line > input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 7px 10px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 8px;
}
.tb-search-line > input[type="search"]:focus { outline: 0; box-shadow: none; }
.tb-search-line > input::placeholder { color: #596a82; opacity: 1; }
.tb-search-submit, .tb-search-apply {
    appearance: none;
    padding: 8px 16px;
    font: inherit;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: var(--accent, #315dea);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.tb-search-submit:hover, .tb-search-apply:hover { background: #254bc9; }
.tb-search-submit { flex: 0 0 auto; white-space: nowrap; }
.tb-search-panel .tb-search-filters {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    color: inherit;
}
.tb-search-panel .tb-search-filters > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 3px 0;
    border: 0;
    background: none;
    color: #354a66;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.tb-search-panel .tb-search-filters > summary::after { display: none; content: none; }
.tb-search-panel .tb-search-filters > summary::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
}
.tb-search-panel .tb-search-filters[open] > summary::before { transform: rotate(45deg); }
.tb-search-panel .tb-search-filters fieldset { border: 0; margin: 7px 0 10px; padding: 0; }
.tb-search-filters legend, .tb-search-type { font-size: .875rem; font-weight: 600; }
.tb-search-countries { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; }
.tb-search-countries label {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 3px 8px;
    background: #f5f7fb;
    border: 1px solid #dde4ef;
    border-radius: 12px;
    font-size: .875rem;
    cursor: pointer;
}
.tb-search-countries input { margin: 0; accent-color: var(--accent, #315dea); }
.tb-search-type { display: flex; align-items: center; gap: 8px; width: fit-content; }
.tb-search-type select {
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #c8d4e5;
    border-radius: 8px;
    font: inherit;
    color: inherit;
    background: #fff;
}
.tb-search-apply { margin-top: 7px; }
.tb-search-panel .tb-search-status { margin: 14px 0 5px; font-size: .9rem; color: #4c5e76; }
.tb-search-panel .tb-search-results {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tb-search-results > li { margin: 0; padding: 10px 0; border-bottom: 1px solid #e3e8ef; }
.tb-search-meta { display: block; color: #556780; font-size: .78rem; line-height: 1.45; }
.tb-search-results > li > a { color: #234aa7; font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
.tb-search-results > li > p { margin: 4px 0 0; color: #3f4f65; font-size: .9rem; line-height: 1.5; }
.tb-search-pages { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: .9rem; }
.tb-search-pages a { color: #234aa7; text-decoration: underline; text-underline-offset: .15em; }
.tb-search-panel [hidden], .tb-search-status:empty, .tb-search-results:empty, .tb-search-pages:empty { display: none; }
.tb-search-dialog:not([open]) { display: none; }
.tb-search-dialog {
    width: min(620px, calc(100% - 24px));
    max-width: none;
    max-height: 80vh;
    max-height: 85dvh;
    margin: auto;
    padding: clamp(16px, 3vw, 26px);
    color: var(--ink, #192536);
    background: #fff;
    border: 1px solid #d4deed;
    border-radius: 18px;
    box-shadow: 0 16px 70px rgba(25, 43, 73, .18);
    overflow-y: auto;
    overflow-wrap: anywhere;
}
.tb-search-dialog::backdrop { background: rgba(17, 32, 54, .38); }
.tb-search-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tb-search-dialog-bar > button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #31445e;
    background: #f1f5fa;
    border: 0;
    border-radius: 50%;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
