/* WC3 sidebar menu + homepage hero (include/menu.php) */

body.body_fix {
    --wc3-menu-width: clamp(248px, 24vw, 312px);
    --wc3-chain-width: calc(var(--wc3-menu-width) * 0.11);
    --wc3-chain-height: calc(var(--wc3-menu-width) * 0.22);
}

.wc3-hero-section {
    position: relative;
    width: 100%;
    overflow: visible;
    display: block;
    background: url(../images/bg_header.jpg) center top / cover no-repeat;
}

.wc3-hero-section.page__section {
    display: block;
    justify-content: initial;
}

.wc3-hero-section.page__header {
    background: url(../images/bg_header.jpg) center top / cover no-repeat;
}

.wc3-top-menu-bar {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 0 0 0 10px;
    box-sizing: border-box;
}

.wc3-top-menu {
    position: relative;
    width: var(--wc3-menu-width);
    flex-shrink: 0;
}

.wc3-menu-hanger {
    position: relative;
    width: 100%;
    padding-top: var(--wc3-chain-height);
}

.wc3-menu-chain {
    position: absolute;
    top: -6px;
    width: var(--wc3-chain-width);
    height: 150px;
    pointer-events: none;
    background: url(../images/menu/chains.png) center top / 100% auto repeat-y;
    z-index: 2;
}

.wc3-menu-chain-left {
    left: 22%;
}

.wc3-menu-chain-right {
    right: 22%;
}

.wc3-menu-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: -25px;
    padding: 14.5% 10.5% 12.5%;
    box-sizing: border-box;
    background: url(../images/menu/bg.png) center top / 100% 100% no-repeat;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.wc3-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, calc(var(--wc3-menu-width) * 0.016), 6px);
    padding: 20px 0;
    width: 100%;
}

.wc3-menu-button {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: clamp(42px, calc(var(--wc3-menu-width) * 0.168), 54px);
    min-height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    /* button.png has a decorative tab on the right — compensate so text sits in the blue area */
    padding-right: 5%;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    font-family: BeaufortforLOL, Philosopher, Times New Roman, Times, serif;
    font-size: clamp(12px, calc(var(--wc3-menu-width) * 0.046), 17px);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
    white-space: nowrap;
    background: url(../images/menu/button.png) center / 100% 100% no-repeat;
    transition: none;
}

.wc3-menu-button span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 78%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
}

.wc3-menu-button:hover,
.wc3-menu-button:focus-visible,
.wc3-menu-button.is-active {
    color: #fff;
    outline: none;
    background-image: url(../images/menu/buttonh.png);
}

.wc3-menu-error {
    padding: 12px;
    color: #ff8f8f;
    font-size: 14px;
}

.wc3-hero-section .header__container {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1114px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.wc3-hero-section--with-header .header__inner,
.wc3-hero-section--with-header .header__btns {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wc3-hero-section--with-header .header_logo_new {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
}

/* Homepage: centered logo with hover glow */
.wc3-hero-section--home {
    min-height: clamp(300px, 38vw, 440px);
}

.wc3-hero-section--home .header__container--home {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1114px;
    min-height: clamp(220px, 28vw, 340px);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 108px) 16px clamp(28px, 4vw, 48px);
    box-sizing: border-box;
}

.wc3-hero-section--home .header__inner--home {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wc3-hero-section--home .header_logo_new--home {
    width: 100%;
    max-width: clamp(320px, 42vw, 590px);
    margin: 0 auto;
    transition: filter 0.25s ease;
}

.wc3-hero-section--home .header__logotype--home {
    width: 100%;
    max-width: clamp(320px, 42vw, 590px);
    height: clamp(160px, 22vw, 300px);
    margin-top: 0;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.25s ease;
}

.wc3-hero-section--home .header_logo_new--home:hover,
.wc3-hero-section--home .header_logo_new--home:focus-within {
    filter: brightness(1.18) saturate(1.08);
}

.wc3-hero-section--home .header_logo_new--home:hover .header__logotype--home,
.wc3-hero-section--home .header_logo_new--home:focus-within .header__logotype--home {
    filter: drop-shadow(0 0 16px rgba(95, 214, 255, 0.55)) drop-shadow(0 0 28px rgba(255, 200, 108, 0.25));
}

@media (max-width: 957px) {
    .wc3-top-menu-bar {
        justify-content: center;
        padding: 6px 0 0;
    }
}

@media (min-width: 854px) {
    .wc3-top-menu-bar {
        position: absolute;
        top: 0;
        left: 8px;
        width: auto;
        padding: 0;
        z-index: 10;
    }

    /* Hero tall enough for full menu; news block must start below it */
    .wc3-hero-section--home {
        /* min-height: calc(var(--wc3-chain-height) + var(--wc3-menu-width) * 2.2); */
        padding-bottom: 24px;
    }

    /* Center logo in the free area to the right of the menu */
    .wc3-hero-section--home .header__container--home {
        max-width: none;
        width: calc(100% - var(--wc3-menu-width) - 24px);
        margin-left: calc(var(--wc3-menu-width) + 12px);
        margin-right: 12px;
    }

    .wc3-hero-section--home .header_logo_new--home {
        max-width: clamp(300px, 36vw, 560px);
    }
}

@media (min-width: 769px) {
    .wc3-hero-section--with-header .header__container {
        padding-top: 12px;
    }

    .wc3-hero-section--with-header .header__logotype {
        margin-top: 80px;
    }

    .wc3-hero-section--home .header__logotype--home {
        margin-top: 0;
    }
}

@media (min-width: 850px) and (max-width: 1100px) {
    .wc3-hero-section--home .header__container--home {
        min-height: clamp(190px, 24vw, 280px);
        padding-top: clamp(64px, 8vw, 96px);
    }
}

@media (max-width: 849px) {
    body.body_fix {
        --wc3-menu-width: min(88vw, 250px);
    }

    .wc3-top-menu-bar {
        justify-content: center;
        padding: 6px 0 0;
    }

    .wc3-hero-section--home {
        min-height: auto;
    }

    .wc3-hero-section--with-header .header__container {
        padding-top: 8px;
    }

    .wc3-hero-section--with-header .header__logotype {
        margin-top: 24px;
    }

    .wc3-hero-section--home .header__container--home {
        min-height: auto;
        padding: 8px 12px 24px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .wc3-hero-section--home .header__logotype--home {
        height: clamp(140px, 38vw, 220px);
        max-width: min(92vw, 420px);
    }
}

@media (max-width: 480px) {
    .wc3-hero-section--home .header__logotype--home {
        height: clamp(120px, 34vw, 180px);
        max-width: min(94vw, 340px);
    }
}
