﻿/* UNCOMPILED / untested in a browser. PLACE AT: <your web project>/wwwroot/academy/css/menu.css   (new file) */
/* Main menu of the Academy home page. Uses the colours already defined in academy.css. */
.mn {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg,#06281e,#083a2c);
    border-bottom: 1px solid rgba(229,199,101,.28);
    transition: box-shadow .2s
}

    .mn.mn-stuck {
        box-shadow: 0 8px 28px rgba(0,0,0,.28)
    }

    .mn::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg,transparent,var(--gold) 20%,var(--gold2) 50%,var(--gold) 80%,transparent);
        opacity: .75;
        pointer-events: none
    }

.mn-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px clamp(16px,4vw,40px);
    display: flex;
    align-items: center;
    gap: 20px
}

.mn-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: none
}

.dark .mn-brand, .mn-brand {
    color: #fff
}

    .mn-brand img {
        width: 42px;
        height: 42px;
        border-radius: 9px;
        background: #fff;
        padding: 3px;
        box-shadow: 0 0 0 1px rgba(229,199,101,.55)
    }

.mn-bt b {
    display: block;
    font: 700 17px/1.1 var(--serif);
    color: #fff;
    white-space: nowrap
}

.mn-bt span {
    display: block;
    margin-top: 3px;
    font: 600 11px/1 var(--sans);
    letter-spacing: .18em;
    color: var(--gold2);
    text-transform: uppercase
}

.mn-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end
}

.mn-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0
}

.mn-g {
    position: relative
}

.mn-t {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #eaf4ee;
    font: 600 14.5px/1 var(--sans);
    cursor: pointer;
    white-space: nowrap;
    position: relative
}

    .mn-t:hover, .mn-g.open > .mn-t {
        background: rgba(255,255,255,.1);
        color: #fff
    }

    .mn-t::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 6px;
        height: 2px;
        border-radius: 2px;
        background: var(--gold2);
        transform: scaleX(0);
        transition: transform .18s
    }

    .mn-t:hover::after, .mn-g.open > .mn-t::after {
        transform: scaleX(1)
    }

.mn-ch {
    width: 15px;
    height: 15px;
    transition: transform .18s
}

.mn-g.open > .mn-t .mn-ch {
    transform: rotate(180deg)
}

.mn-lk {
    width: 15px;
    height: 15px;
    color: var(--gold2)
}

.mn-adm .mn-t {
    color: var(--gold2)
}

.mn-p {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: var(--card);
    color: var(--ink);
    border-radius: 14px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 22px 60px rgba(0,0,0,.38),0 0 0 1px rgba(11,74,56,.12);
    padding: 14px
}

.mn-g.open > .mn-p {
    display: block;
    animation: mnin .16s ease-out
}

.mn-g:last-child > .mn-p, .mn-g:nth-last-child(2) > .mn-p {
    left: auto;
    right: 0;
    transform: none
}

.mn-p::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px
}

.mn-cols {
    display: grid;
    gap: 6px 22px
}

.mn-c1 {
    grid-template-columns: minmax(260px,1fr)
}

.mn-c2 {
    grid-template-columns: repeat(2,minmax(230px,1fr))
}

.mn-h {
    margin: 2px 10px 6px;
    font: 700 11px/1 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--goldt)
}

.dark .mn-p a.mn-a {
    display: block;
    position: relative;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--ink);
    text-decoration: none
}

    .dark .mn-p a.mn-a b {
        display: block;
        font: 600 14.5px/1.25 var(--sans);
        color: var(--em)
    }

    .dark .mn-p a.mn-a small {
        display: block;
        margin-top: 2px;
        font: 400 12.5px/1.35 var(--sans);
        color: var(--ink2)
    }

    .dark .mn-p a.mn-a:hover {
        background: var(--grnl)
    }

    .dark .mn-p a.mn-a[aria-current=page] {
        background: var(--paper2);
        box-shadow: inset 3px 0 0 var(--gold)
    }

.mn-ext {
    width: 13px;
    height: 13px;
    position: absolute;
    right: 12px;
    top: 12px;
    color: var(--ctl)
}

.dark .mn-p :focus-visible {
    outline: 3px solid var(--em);
    outline-offset: 1px
}

.mn-cta {
    display: flex;
    gap: 8px;
    flex: none;
    padding-left: 6px
}

    .mn-cta .btn {
        white-space: nowrap
    }

.mn-burger {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid rgba(229,199,101,.6);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center
}

.mn-ic {
    width: 24px;
    height: 24px
}

.mn-ic-x {
    display: none
}

.mn-open .mn-ic-o {
    display: none
}

.mn-open .mn-ic-x {
    display: block
}

.dark .mn :focus-visible {
    outline-color: var(--gold2)
}

@keyframes mnin {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.mn-g:last-child > .mn-p, .mn-g:nth-last-child(2) > .mn-p {
    animation-name: mnin2
}

@keyframes mnin2 {
    from {
        opacity: 0;
        transform: translateY(-4px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(prefers-reduced-motion:reduce) {
    .mn-g.open > .mn-p {
        animation: none
    }

    .mn-t::after, .mn-ch {
        transition: none
    }
}

@media(max-width:1260px) {
    .mn-t {
        padding: 0 8px;
        font-size: 14px
    }

    .mn-in {
        gap: 12px
    }
}

@media(max-width:1060px) {
    .mn-burger {
        display: inline-flex
    }

    .mn-nav {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 65px;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        background: linear-gradient(180deg,#06281e,#0b4a38);
        padding: 10px clamp(16px,4vw,40px) 40px;
        border-top: 1px solid rgba(229,199,101,.3)
    }

    .mn-open .mn-nav {
        display: flex
    }

    .mn-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .mn-t {
        width: 100%;
        justify-content: space-between;
        min-height: 52px;
        padding: 0 6px;
        font-size: 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.12)
    }

        .mn-t::after {
            display: none
        }

        .mn-t span {
            flex: 1;
            text-align: left
        }

    .mn-lk {
        margin-right: 8px
    }

    .mn-p, .mn-g:last-child > .mn-p, .mn-g:nth-last-child(2) > .mn-p {
        position: static;
        transform: none;
        min-width: 0;
        border-radius: 10px;
        box-shadow: none;
        margin: 8px 0 10px;
        animation: none
    }

        .mn-p::before {
            display: none
        }

    .mn-c2 {
        grid-template-columns: 1fr
    }

    .mn-c1 {
        grid-template-columns: 1fr
    }

    .mn-cta {
        padding: 18px 0 0;
        flex-direction: column
    }

        .mn-cta .btn {
            display: inline-flex;
            width: 100%;
            min-height: 48px;
            font-size: 16px
        }
}

@media(max-width:420px) {
    .mn-bt span {
        display: none
    }

    .mn-bt b {
        font-size: 15px
    }

    .mn-brand img {
        width: 36px;
        height: 36px
    }

    .mn-nav {
        top: 59px
    }
}

html.mn-lock, html.mn-lock body {
    overflow: hidden
}

@media print {
    .mn {
        display: none !important
    }
}
