.site-header {
    --header-height: 68px;
    --header-accent: #b9311f;
    z-index: 20000;
}

.site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 1280px;
    min-height: var(--header-height);
    margin-inline: auto;
    padding-inline: 12px;
}

.site-header-logo {
    flex: 0 1 160px;
    min-width: 0;
}

.site-header-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header .site-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.site-header-calendar,
.site-header-mobile-toggle,
.site-header-language > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.site-header-calendar,
.site-header-mobile-toggle {
    border-color: var(--header-accent);
    color: var(--header-accent);
}

.site-header-mobile-toggle {
    width: 44px;
}

.site-header .glyphicon,
.site-header-language > summary span {
    font-size: inherit;
}

.site-header-calendar:hover,
.site-header-mobile-toggle:hover,
.site-header-language > summary:hover,
.site-header-language[open] > summary {
    background: #fff3f0;
    color: var(--header-accent);
}

.site-header :is(a, button, summary):focus-visible {
    outline: 2px solid var(--header-accent);
    outline-offset: -2px;
}

.site-header-chevron {
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}

.site-header-language {
    position: relative;
}

.site-header-language > summary::-webkit-details-marker {
    display: none;
}

.site-header-language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 2;
    min-width: 150px;
    margin: 0;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
    list-style: none;
}

.site-header-language-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
}

.site-header-language-options a:hover,
.site-header-language-options [aria-current] {
    background: #fff3f0;
    color: var(--header-accent);
    text-decoration: none;
}

.site-header-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 8px 18px rgb(0 0 0 / 14%);
}

.site-header-nav.is-open {
    display: block;
}

.site-header-nav ul,
.site-header-nav ul ul {
    display: block;
    position: static;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header-nav ul li {
    display: block;
    position: static;
    float: none;
    width: auto;
    padding: 0;
    background: transparent;
}

.site-header-nav li > a::after,
.site-header-nav::after {
    content: none;
}

.site-header-nav .site-header-nav-link {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.site-header-nav-link[aria-expanded="true"] .site-header-chevron,
.site-header-language[open] .site-header-chevron {
    transform: translateY(1px) rotate(225deg);
}

.site-header-nav .site-header-nav-link:hover,
.site-header-nav .site-header-nav-link[aria-expanded="true"] {
    background: #fff5f2;
    color: var(--header-accent);
}

.site-header-menu > li + li {
    border-top: 1px solid #eee;
}

.site-header-panel {
    padding: 12px 16px;
    background: #fafafa;
}

.site-header-panel[hidden] {
    display: none;
}

.site-header-links a,
.site-header-links summary,
.site-header-link-label {
    color: #333;
    padding: 9px 6px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.site-header-links a:hover,
.site-header-links summary:hover {
    background: #fff3f0;
    color: var(--header-accent);
    text-decoration: none;
}

.site-header-links summary {
    cursor: pointer;
}

.site-header-links .site-header-links {
    padding-left: 12px;
}

.site-header-link-label {
    display: block;
}

.site-header-fairs:not([hidden]) {
    display: grid;
    gap: 20px;
}

.site-header-fairs h3 {
    margin: 0 0 8px;
    color: var(--header-accent);
    font-size: 16px;
    font-weight: 600;
}

.site-header-fairs .megaMenuCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 400;
    text-transform: none;
}

.site-header-fairs .megaMenuCard:hover {
    border-color: var(--header-accent);
    background: #fff5f2;
    text-decoration: none;
}

.megaMenuCard img {
    width: 96px;
    height: 68px;
    object-fit: contain;
    background: #f7f7f7;
}

.megaMenuCardContent > strong,
.megaMenuYearLabel > strong {
    display: block;
    font-size: 14px;
}

.megaMenuCardContent > span,
.megaMenuYearLabel > small {
    color: #666;
    font-size: 13px;
}

.megaMenuBadge {
    display: table;
    margin-top: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1ed;
    color: var(--header-accent);
    font-size: 11px;
    font-weight: 600;
}

.megaMenuYears {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.megaMenuYears h3,
.megaMenuArchive {
    grid-column: 1 / -1;
}

.site-header-fairs .megaMenuYear {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    text-transform: none;
}

.site-header-fairs .megaMenuYear:hover {
    border-color: var(--header-accent);
    background: #fff5f2;
}

.megaMenuYear .glyphicon {
    color: var(--header-accent);
}

.megaMenuYear .site-header-chevron {
    margin-left: auto;
    transform: rotate(-45deg);
}

.site-header-fairs .megaMenuArchive {
    padding: 6px 0;
    color: var(--header-accent);
    text-transform: none;
}

@media (max-width: 420px) {
    .site-header-calendar .glyphicon {
        display: none;
    }

    .megaMenuYears {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .site-header {
        --header-height: 88px;
        position: sticky;
        top: 0;
    }

    .site-header-logo {
        flex: 0 0 180px;
    }

    .site-header-inner {
        gap: 12px;
    }

    .site-header .site-header-actions {
        gap: 8px;
    }

    .site-header-calendar {
        padding-inline: 12px;
    }

    .site-header-mobile-toggle {
        display: none;
    }

    .site-header-nav {
        display: block;
        position: static;
        max-height: none;
        margin-left: auto;
        overflow: visible;
        box-shadow: none;
    }

    .site-header-nav .site-header-menu {
        display: flex;
    }

    .site-header-menu > li + li {
        border-top: 0;
    }

    .site-header-nav .site-header-menu > li:not(.site-header-fairs-item) {
        position: relative;
    }

    .site-header-nav .site-header-nav-link {
        height: var(--header-height);
        padding-inline: 8px;
    }

    .site-header-panel {
        position: absolute;
        top: 100%;
        min-width: 220px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        border-top: 1px solid #eee;
        border-radius: 0 0 8px 8px;
        background: #fff;
        box-shadow: 0 12px 30px rgb(0 0 0 / 12%);
    }

    .site-header-fairs {
        right: 12px;
        left: 12px;
        padding: 24px;
    }

    .site-header-fairs:not([hidden]) {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(0, .85fr);
        gap: 24px;
    }

    .megaMenuSectors {
        padding-left: 16px;
        border-left: 1px solid #eee;
    }
}
