/* Conservative alignment of legacy subpages with the refreshed homepage. */
html, body, button, form, input, textarea, pre {
    font-size: clamp(14px, .78125vw, 15px);
}

h1, .title {
    font-size: clamp(30px, 2.2917vw, 44px);
}

h2, .lead, .x-large {
    font-size: clamp(19px, 1.40625vw, 27px);
}

h3, h4, h5, h6, .lead2, .large {
    font-size: clamp(16px, 1.0417vw, 20px);
}

.small { font-size: clamp(11px, .625vw, 12px); }
.x-small { font-size: clamp(10px, .5729vw, 11px); }
.menu a { font-size: 14px; }

.content {
    width: min(calc(100% - 128px), 1440px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.content.full {
    width: min(calc(100% - 96px), 1600px);
    padding-right: 0;
    padding-left: 0;
}

.page-top .content {
    width: min(calc(100% - 96px), 1600px);
}

/* Match the refreshed homepage navigation without changing legacy page content. */
.header *, .header *::before, .header *::after { box-sizing: border-box; }
.header { min-height: 0; border-bottom: 0; }
.header .header-space1, .header .header-space2 { display: none; }
.header .header-logo-menu { min-height: 0; }
.header .content.full {
    width: min(calc(100% - 96px), 1600px);
    margin: auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.header a.logo {
    width: 215px;
    height: 72px;
    min-width: 215px;
    float: none;
    background-position: left center;
}
.header .menu { float: none; height: auto; min-height: 0; align-items: center; }
.header .menu a { font-size: 14px; line-height: 1.2; padding: 17px 14px; }
.header .menu a.lang { margin-left: 10px; padding: 17px; }
.header .dropdown-navlink:focus-within > nav { opacity: 1; visibility: visible; }
.header .dropdown-navlink nav a { font-size: 14px; padding: 14px 18px; }

@media screen and (max-width: 1100px) {
    .content, .content.full { width: calc(100% - 64px); }
    .header .content.full { width: calc(100% - 64px); padding: 16px 0; }
    .header a.logo { width: 190px; height: 64px; min-width: 190px; }
    .header .menu { display: block; }
    .header .mobile-header-2 { height: 44px; }
    .header .menu a.hamico { width: 44px; height: 44px; padding: 0; }
    .header .menu.mobile {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        padding: 26px 32px 20px;
        background: #fff;
        box-shadow: 0 15px 20px #23323c22;
    }
    .header .menu.mobile .mobile-header-2 { margin-bottom: 20px; }
    .header .menu.mobile .hamico { margin-right: 0; }
    .header .menu.mobile a:not(.hamico) { padding: 15px 18px; background: #f5f6f7; }
    .header .menu.mobile a.lang { margin-left: 0; background: #4d95c2; }
    .header .logo.mobile { position: relative; }
}

@media screen and (max-width: 540px) {
    .content, .content.full { width: calc(100% - 40px); }
    .header .content.full { width: calc(100% - 40px); padding: 12px 0; }
    .header a.logo { width: 165px; min-width: 165px; height: 57px; }
    .header .menu.mobile { padding: 18px 20px; }
}
