/* ==========================================================
   FULLMEDIA – MENU VIEW
   ========================================================== */


/* ==========================================================
   01. Základná navigácia
   ========================================================== */

.fm-menu-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    min-width: 0;
    min-height: 54px;
    color: #eff9ff;
}

.fm-menu-bar > [hidden],
.fm-menu-tree [hidden] {
    display: none !important;
}

.fm-menu-bar > * {
    flex: 0 0 auto;
    min-width: 0;
}

.fm-menu-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    text-align: start;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.fm-menu-bar > .fm-menu-link,
.fm-menu-bar > details > summary {
    white-space: nowrap;
}

.fm-menu-link:hover,
.fm-menu-link:focus-visible,
.fm-menu-link.active {
    color: #fff;
    background: rgb(120 210 255 / .15);
}


/* ==========================================================
   02. Desktopové menu
   ========================================================== */

.fm-menu-bar details {
    position: relative;
}

.fm-menu-bar summary {
    list-style: none;
}

.fm-menu-bar summary::-webkit-details-marker {
    display: none;
}

.fm-menu-bar .fm-menu-branch > summary::after {
    content: '⌄';
    color: #fff;
    margin-left: auto;
}

.fm-menu-bar .fm-menu-branch[open] > summary::after {
    content: '⌃';
}


/* ==========================================================
   03. Dropdown menu
   ========================================================== */

.fm-menu-bar .fm-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1060;

    min-width: 220px;
    width: max-content;
    max-width: min(360px, 85vw);
    max-height: calc(100dvh - 150px);

    overflow: auto;
    padding: 7px;

    background: #102e50;
    color: #eff9ff;
    border: 1px solid #ffffff30;
    border-radius: 12px;
    box-shadow: 0 12px 30px #0004;
}

.fm-menu-bar .fm-menu-dropdown .fm-menu-dropdown {
    position: static;
    width: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;

    margin-left: 12px;
    border: 0;
    box-shadow: none;
    background: #ffffff0b;
}

.fm-menu-bar .fm-menu-more > .fm-menu-dropdown {
    left: auto;
    right: 0;
}


/* ==========================================================
   04. Výber jazyka
   ========================================================== */

.fm-menu-language {
    font-size: 0 !important;
}

.fm-menu-language::before {
    content: '◎';
    font-size: 1.25rem;
}


/* ==========================================================
   05. Mobilné stromové menu
   ========================================================== */

.fm-menu-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #eff9ff;
}

.fm-menu-tree .fm-tree-row {
    gap: 4px;
    flex-direction: row-reverse;

    padding: 4px 10px 4px
        calc(10px + min(var(--fm-tree-depth, 0), 12) * 13px);

    border: 1px solid #ffffff30;
    border-radius: 14px;
    background: #ffffff12;
    color: inherit;
    min-height: 56px;
}

.fm-menu-tree .fm-tree-row[aria-level]:not([aria-level='1']) {
    min-height: 44px;
    background: #ffffff08;
}

.fm-menu-tree .fm-tree-row[aria-selected="true"] {
    background: #ffffff20;
    color: #fff;
}

.fm-menu-tree .fm-tree-content {
    flex: 1;
    min-width: 0;
}

.fm-menu-tree .fm-menu-link {
    padding: 10px 5px;
    min-height: 44px;
}


/* Navigačná šípka */

.fm-menu-tree .fm-menu-link[href]::after {
    content: '↗';
    margin-left: auto;
    color: #fff;
}


/* ==========================================================
   06. Rozbaľovanie stromovej štruktúry
   ========================================================== */

.fm-menu-tree .fm-tree-toggle {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    border: 1px solid #ffffff40;
    border-radius: 50%;
    background: #ffffff12;

    color: #fff;
    font-size: 0;
}

.fm-menu-tree .fm-tree-toggle::after {
    content: '⌄';
    font-size: 20px;
}

.fm-menu-tree .fm-tree-row[aria-expanded="true"]
    > .fm-tree-toggle::after {
    content: '⌃';
}


/* ==========================================================
   07. Focus a prístupnosť
   ========================================================== */

.fm-menu-tree .fm-tree-toggle:focus-visible,
.fm-menu-link:focus-visible {
    outline: 2px solid #9be1ff;
    outline-offset: 2px;
}


/* ==========================================================
   08. Integrácia do spoločného layoutu
   ========================================================== */

.fm-menu-bar > .fm-menu-link {
    width: auto;
}

.pp-menu-mobile-canvas #fm-mobile-tree {
    background: transparent;
    color: #eff9ff;
}


/* ==========================================================
   09. Responzívne zobrazenie
   ========================================================== */

@media (min-width: 768px) {

    .pp-menu-header .pp-menu-toggle {
        display: none !important;
    }

}

@media (max-width: 767.98px) {

    .pp-menu-header .pp-menu-toggle {
        display: inline-grid !important;
    }

    .pp-menu-desktop {
        display: none !important;
    }

}

@media (max-width: 575.98px) {

    .pp-menu-header__inner:has(.pp-menu-toggle) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

}