:root {
    --macc-header-bg: var(--macc-color-surface, #17232b);
    --macc-header-text: var(--macc-color-text, #f2ede4);
    --macc-header-muted: var(--macc-color-text-muted, rgba(242, 237, 228, 0.7));
    --macc-header-accent: var(--macc-color-accent, #2fd3c9);
    --macc-header-height: 220px;
    --macc-header-content-width: var(--macc-content-width, 1440px);
}

body.macc-foundation-hide-theme-header #masthead.site-header,
body.macc-foundation-hide-theme-header header.site-header,
body.macc-foundation-hide-theme-footer #colophon.site-footer,
body.macc-foundation-hide-theme-footer footer.site-footer {
    display: none !important;
}

.macc-header,
.macc-header * {
    box-sizing: border-box;
}

.macc-header {
    position: relative;
    z-index: 50;
    min-height: var(--macc-header-height);
    overflow: hidden;
    background: var(--macc-header-bg);
    color: var(--macc-header-text);
}

.macc-header__image {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(44vw, 680px);
    min-width: 460px;
    background-image: var(--macc-header-image);
    background-position: var(--macc-header-image-position, center right);
    background-repeat: no-repeat;
    background-size: 60% auto;   /* cover; */
}

.macc-header__image::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        90deg,
        var(--macc-header-bg) 0%,
        var(--macc-header-bg) 40%,
        rgba(23, 35, 43, 0.96) 44%,
        rgba(23, 35, 43, 0.68) 52%,
        rgba(23, 35, 43, 0.22) 66%,
        rgba(23, 35, 43, 0) 82%
    );
}

.macc-header__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(calc(100% - 48px), var(--macc-header-content-width));
    min-height: var(--macc-header-height);
    margin-inline: auto;
    padding: 18px 0 27px;
}

.macc-header__topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.macc-header__home {
    position: absolute;
    inset: 0 auto auto 0;
}

.macc-header__quote {
    align-self: center;
    max-width: min(70%, 1040px);
    margin: 0;
    color: var(--macc-header-text);
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: clamp(1.15rem, 1.7vw, 1.65rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.macc-header__navigation {
    max-width: min(70%, 760px);
}

.macc-header__menu,
.macc-header__languages ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.macc-header__menu {
    justify-content: space-between;
    gap: clamp(24px, 5vw, 72px);
}

.macc-header__menu a,
.macc-header__languages a {
    color: var(--macc-header-text);
    text-decoration: none;
}

.macc-header__menu a {
    display: inline-block;
    padding: 7px 0;
    font-family: Arial, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
}

.macc-header .macc-header__menu a:hover,
.macc-header .macc-header__menu a:focus-visible {
    color: var(--macc-header-accent) !important;
    border-bottom-color: var(--macc-header-accent);
}

.macc-header .macc-header__menu-item.is-current a {
    border-bottom-color: var(--macc-header-accent) !important;
}

.macc-header__languages {
    position: relative;
    z-index: 3;
}

.macc-header__languages ul {
    gap: 7px;
}

.macc-header__languages li + li::before {
    margin-right: 7px;
    color: var(--macc-header-muted);
    content: "/";
}

.macc-header__languages a {
    font: 600 0.8rem/1.2 Arial, sans-serif;
    opacity: 0.65;
}

.macc-header__languages a:hover,
.macc-header__languages a:focus-visible,
.macc-header__languages a[aria-current="true"] {
    opacity: 1;
}

@media (max-width: 767px) {
    :root {
        --macc-header-height: 190px;
    }

    .macc-header__image {
        width: 78%;
        min-width: 0;
        opacity: 0.72;
    }

    .macc-header__image::before {
        background: linear-gradient(
            90deg,
            var(--macc-header-bg) 0%,
            rgba(23, 35, 43, 0.9) 42%,
            rgba(23, 35, 43, 0.22) 100%
        );
    }

    .macc-header__content {
        width: min(calc(100% - 32px), var(--macc-header-content-width));
        padding-block: 14px 20px;
    }

    .macc-header__quote {
        max-width: 90%;
        padding-right: 12px;
        font-size: clamp(1rem, 4.4vw, 1.25rem);
    }

    .macc-header__navigation {
        position: relative;
        display: block;
        max-width: none;
        padding: 0;
    }

    .macc-header__menu {
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 22px;
    }

    .macc-header__menu a {
        display: inline-block;
        padding: 7px 0;
        font-size: 0.98rem;
    }
}