@layer layout {
    .site-container {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    @media (min-width: 576px) {
        .site-container {
            max-width: 540px;
        }
    }

    @media (min-width: 768px) {
        .site-container {
            max-width: 720px;
        }
    }

    @media (min-width: 992px) {
        .site-container {
            max-width: 960px;
        }
    }

    @media (min-width: 1200px) {
        .site-container {
            max-width: 1140px;
        }
    }

    .layout-row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

    .layout-row--flush {
        margin-right: 0;
        margin-left: 0;
    }

    .layout-row--flush > .layout-col,
    .layout-row--flush > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    .layout-col-12,
    .layout-col,
    .layout-col-auto,
    .layout-col-sm-4,
    .layout-col-sm-6,
    .layout-col-sm-8,
    .layout-col-sm-auto,
    .layout-col-md-3,
    .layout-col-md-4,
    .layout-col-md-5,
    .layout-col-md-6,
    .layout-col-md-7,
    .layout-col-md-8,
    .layout-col-md-12,
    .layout-col-md,
    .layout-col-md-auto,
    .layout-col-lg-4,
    .layout-col-lg-5,
    .layout-col-lg-6,
    .layout-col-lg-8,
    .layout-col-lg,
    .layout-col-lg-auto,
    .layout-col-xl-4,
    .layout-col-xl {
        position: relative;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    .layout-col {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }

    .layout-col-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }

    .layout-col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    @media (min-width: 576px) {
        .layout-col-sm-auto {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
        }
    }

    @media (min-width: 576px) {
        .layout-col-sm-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
    }

    @media (min-width: 576px) {
        .layout-col-sm-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    @media (min-width: 576px) {
        .layout-col-sm-8 {
            flex: 0 0 66.666667%;
            max-width: 66.666667%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md {
            flex-basis: 0;
            flex-grow: 1;
            max-width: 100%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-auto {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-3 {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-5 {
            flex: 0 0 41.666667%;
            max-width: 41.666667%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-7 {
            flex: 0 0 58.333333%;
            max-width: 58.333333%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-8 {
            flex: 0 0 66.666667%;
            max-width: 66.666667%;
        }
    }

    @media (min-width: 768px) {
        .layout-col-md-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

    @media (min-width: 992px) {
        .layout-col-lg {
            flex-basis: 0;
            flex-grow: 1;
            max-width: 100%;
        }
    }

    @media (min-width: 992px) {
        .layout-col-lg-auto {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
        }
    }

    @media (min-width: 992px) {
        .layout-col-lg-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
    }

    @media (min-width: 992px) {
        .layout-col-lg-5 {
            flex: 0 0 41.666667%;
            max-width: 41.666667%;
        }
    }

    @media (min-width: 992px) {
        .layout-col-lg-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    @media (min-width: 992px) {
        .layout-col-lg-8 {
            flex: 0 0 66.666667%;
            max-width: 66.666667%;
        }
    }

    @media (min-width: 1200px) {
        .layout-col-xl {
            flex-basis: 0;
            flex-grow: 1;
            max-width: 100%;
        }
    }

    @media (min-width: 1200px) {
        .layout-col-xl-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
    }

    @media print {
        .site-container {
            min-width: 992px !important;
        }
    }

    @media (min-width: 1600px) {
        .layout-col-xxl-3,
        .layout-col-xxl-5 {
            position: relative;
            width: 100%;
            padding-right: 15px;
            padding-left: 15px;
        }
    }

    @media (min-width: 1600px) {
        .layout-col-xxl-3 {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }

    @media (min-width: 1600px) {
        .layout-col-xxl-5 {
            flex: 0 0 41.666667%;
            max-width: 41.666667%;
        }
    }

    .site-container {
        max-width: 1440px;
    }

    .site-body {
        display: flex;
        flex-direction: column;
    }

    .site-page {
        margin-bottom: auto;
        padding-bottom: 4rem;
    }

    .site-notice {
        background: #fff;
        text-align: center;
        padding: 0.35rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        font-size: 11px;
        text-transform: uppercase;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 0 20px 6px rgba(0, 0, 0, 0.25);
    }

    .site-header {
        background: var(--theme-color-dark);
        position: relative;
        z-index: 40;
    }

    .site-nav {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        margin-right: -15px;
        margin-left: -15px;
        padding: 0.5rem 1rem;
        color: var(--theme-color-white-medium);
    }

    .site-nav a {
        color: var(--theme-color-white-medium);
    }

    .site-nav a.site-menu__link--active {
        color: #fff;
    }

    .site-nav a:hover {
        color: var(--theme-color-white-solid);
    }

    .site-nav__brand {
        display: inline-block;
        padding-top: 0.3125rem;
        padding-bottom: 0.3125rem;
        margin-right: 1rem;
        font-size: 1.25rem;
        line-height: inherit;
        white-space: nowrap;
    }

    .site-nav__logo {
        width: auto;
        height: 33px;
    }

    .site-nav__toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
    }

    .site-nav__toggle-button {
        display: block;
        margin-bottom: 0;
        padding: 0.25rem 0.5rem;
        font-size: 1.25rem;
        line-height: 1;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0.25rem;
        cursor: pointer;
    }

    .site-nav__toggle-button:hover {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .site-nav__toggle-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
    }

    /* A checkbox, not <details>: a closed <details> hides its content whatever the CSS says in Firefox 115 and Safari 16.4, and
       this menu must show on a desktop. A <details> toggling its sibling left the menu closed in WebKit after a mouse click. */
    .site-nav__content {
        display: none;
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
    }

    .site-nav__toggle:checked ~ .site-nav__content {
        display: block;
    }

    .site-menu,
    .site-account {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        font-family: var(--font-heading);
        font-weight: 400;
    }

    .site-menu {
        margin-top: 1.5rem;
        margin-right: auto;
    }

    .site-account {
        flex-shrink: 0;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .site-menu__item {
        border-top: 1px solid var(--theme-color-white-delicate);
    }

    .site-menu__item:last-child {
        border-bottom: 1px solid var(--theme-color-white-delicate);
    }

    .site-menu__link {
        display: block;
        padding: 0.5rem 0;
    }

    .site-menu__link--active {
        font-weight: 600;
    }

    .site-account__link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0.5rem 0.75rem;
        font-weight: 600;
        border-radius: 8px;
        background-color: rgba(0, 0, 0, 0.15);
    }

    .site-nav a.site-account__link,
    .site-nav .site-account__link {
        color: var(--theme-color-white-solid);
    }

    .language-picker {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0 0 1rem 1rem;
        font-family: var(--font-heading);
        text-transform: uppercase;
    }

    .language-picker li {
        border-right: 1px solid rgba(255, 255, 255, 0.5);
        margin: 0;
        padding: 0 0.25rem;
        list-style: none;
    }

    .language-picker li:last-child {
        border: none;
        padding-right: 0;
    }

    .language-picker a {
        float: left;
        display: block;
        margin: 0 4px;
        padding: 0.25rem 0;
        color: #fff;
        text-decoration: none;
        opacity: 0.4;
    }

    .language-picker .active {
        font-weight: 600;
        opacity: 1;
    }

    @media (min-width: 768px) {
        .site-nav {
            flex-flow: row nowrap;
            justify-content: flex-start;
        }

        .site-nav__logo {
            height: 41px;
        }

        .site-nav__toggle,
        .site-nav__toggle-button {
            display: none;
        }

        .site-nav__content,
        .site-nav__toggle:checked ~ .site-nav__content {
            display: flex;
            flex-basis: auto;
        }

        .site-menu,
        .site-account {
            flex-direction: row;
        }

        .site-menu {
            margin-top: 0;
            margin-left: 1rem;
        }

        .site-account {
            margin-top: 0;
            margin-bottom: 0;
        }

        .site-account__item {
            margin-left: 1.125rem;
        }

        .site-menu__item,
        .site-menu__item:last-child {
            border: 0;
        }

        .site-menu__link {
            padding-right: 0.5rem;
            padding-left: 0.5rem;
        }

        .site-account__link {
            background-color: var(--theme-color-main-dark);
        }

        .site-account__link:hover {
            background-color: var(--theme-color-main-darker);
        }

        .language-picker {
            margin-bottom: 0;
        }
    }

    .impersonation-bar {
        padding: 0.75rem 1.25rem;
        color: #856404;
        background-color: #fff3cd;
        border: 1px solid #ffeeba;
    }

    .impersonation-bar__form {
        margin-top: 0.5rem;
    }

    @media (min-width: 768px) {
        .impersonation-bar__content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .impersonation-bar__form {
            margin-top: 0;
        }
    }

    .site-breadcrumbs {
        margin-bottom: 1.5rem;
        background: var(--theme-color-main-dark);
    }

    .site-breadcrumbs__row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

    .site-breadcrumbs__list {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 0;
        padding: 1rem;
        list-style: none;
        background: none;
        border-radius: 0.25rem;
    }

    .site-breadcrumbs__item + .site-breadcrumbs__item {
        padding-left: 0.5rem;
    }

    .site-breadcrumbs__item + .site-breadcrumbs__item::before {
        float: left;
        padding-right: 0.5rem;
        color: #275b3d;
        content: "/";
    }

    .site-breadcrumbs__item a {
        color: #fff;
    }

    .site-breadcrumbs__item--current {
        color: rgba(255, 255, 255, 0.6);
    }

    .site-footer {
        background: var(--theme-color-dark);
        color: var(--theme-color-white-solid);
        padding: 1rem 0 0;
    }

    .site-footer__columns {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin-right: -15px;
        margin-left: -15px;
        text-align: center;
    }

    .site-footer__column {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding-right: 15px;
        padding-left: 15px;
    }

    .site-footer__column--contact {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .site-footer__badge {
        max-width: 300px;
        margin-right: auto;
        margin-left: auto;
    }

    .site-footer__badge h4,
    .site-footer__contact h3 {
        font-family: var(--font-heading);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-weight: 700;
        color: #fff;
    }

    .site-footer__contact h3 {
        margin-bottom: 0.5em;
        padding-bottom: 0.5em;
        color: var(--theme-color-main-soft);
    }

    .site-footer__badge h4 {
        font-size: 0.75rem;
        font-weight: 500;
        text-align: center;
        border: 1px solid;
        margin-top: 1em;
        padding: 0.5em 0.75em;
    }

    .site-footer address {
        margin-bottom: 0;
        font-style: normal;
        line-height: 1.2;
        font-size: 0.875rem;
    }

    .site-footer__logo {
        display: block;
        height: 56px;
        margin: auto;
    }

    .site-footer__badge--crs .site-footer__logo {
        max-width: 140px;
    }

    .site-footer__revision {
        background: #222;
        font-size: 0.75rem;
        padding: 0.5em;
        text-align: center;
    }

    @media (min-width: 768px) {
        .site-footer__column {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
        }

        .site-footer__column--firm {
            padding-right: 3rem;
        }

        .site-footer__column--crs {
            padding-left: 3rem;
        }

        .site-footer__badge {
            margin-right: 0;
            margin-left: 0;
        }

        .site-footer__badge--firm::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            height: auto;
            width: 0;
            right: 0;
            transform: translateX(50%);
            border-right: 1px solid rgba(20, 30, 24, 0.41);
        }
    }

    @media (min-width: 992px) {
        .site-footer__columns {
            text-align: left;
        }

        .site-footer__column--contact {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
            margin-top: 1rem;
            margin-bottom: 1rem;
            margin-left: auto;
        }
    }
}
