/* Shared public header and footer behavior for both languages. */
.header a,
.header button,
.header .navbar-brand img,
.footer a {
    border-radius: 4px;
}

html[lang="en"] .header .headerMenuBox > li > a {
    border-radius: 0;
}

.header a:focus,
.header button:focus,
.header .navbar-brand:focus img,
.footer a:focus {
    outline: 2px solid #00587f;
    outline-offset: 3px;
}

.header .navbar-inverse .navbar-nav .dropdown-menu > li.open > a {
    color: #000;
    background-color: #eee;
}

.header .navbar-brand:focus {
    outline: none;
}

.header .littleHeader .Capp {
    padding-top: 4px;
    padding-bottom: 4px;
}

.footerBox {
    --footer-row-gap: 8px;
    row-gap: var(--footer-row-gap);
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footerBox::before,
.footerBox::after {
    display: none;
}

.footerBox > div:first-child,
.footerBox #aa_frame {
    display: flex;
    flex-direction: column;
    row-gap: var(--footer-row-gap);
}

.footerBox > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.footerBox > div:last-child {
    margin: 0;
    flex: 0 0 auto;
    text-align: left;
}

.footerBox #aa_frame > * {
    margin: 0;
    line-height: 0;
}

.footerBox #aa_frame img {
    vertical-align: top;
}

.footerBox #aa_frame .IconStyle img {
    padding-top: 0;
    padding-bottom: 0;
}

.footerBox #aa_frame .IconStyle {
    white-space: nowrap;
}

.footerBox .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--footer-row-gap);
    margin: 0;
}

.footerBox .footer-policy-links a {
    margin: 0;
}

/* Keep an unpopulated statistics row from adding a second row gap. */
@supports selector(:has(*)) {
    .footerBox .footer-statistics:not(:has(.LableOnline:not(:empty))) {
        display: none;
    }
}

/* Hosted search uses native controls without third-party scripts. */
.hosted-search {
    padding-block: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}
.hosted-search .searchLabel {
    margin: 0;
}
.hosted-search-controls {
    display: flex;
    gap: 0.5rem;
    width: 350px;
    max-width: 100%;
}
.hosted-search-controls input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    border: 1px solid #767676;
    padding: 0.375rem 0.5rem;
    color: #1a1a1a;
    background: #fff;
    font: inherit;
}
.hosted-search-controls input::placeholder,
.searchBoxGoogle::placeholder {
    color: #595959;
    opacity: 1;
}
.hosted-search-controls button {
    flex: 0 0 auto;
    min-height: 36px;
    border: 1px solid #00587f;
    padding: 0.375rem 0.75rem;
    color: #fff;
    background: #00587f;
    font: inherit;
    cursor: pointer;
}
.hosted-search-controls input:focus,
.hosted-search-controls button:focus {
    outline: 2px solid #ffdf00;
    outline-offset: 3px;
}
.searchBoxGoogle:focus,
.searchGoogle:focus {
    outline: 2px solid #00587f;
    outline-offset: 3px;
}
.searchGoogle {
    cursor: pointer;
    min-width: 24px;
    min-height: 24px;
}
