/* ============================================================
   audit-menu.css — meniul orizontal de site din antet.
   Numele fisierului a ramas din generatia veche, cand aici statea
   meniul de roluri (js/audit-menu.js, sters). Acum stilizeaza doar
   navigarea de sus: Acasa, Pentru auditori, Pentru companii-institutii,
   Contact. Meniul de roluri e construit de js/hamburger.js si isi ia
   stilurile din css/hamburger.css.
   Aceeași paletă ca site.css: benzi aurii (#8f6319), linkuri mono,
   accent auriu deschis la hover.
   Selectorii poarta garda :not(.hb-panel) ca sa nu atinga niciodata
   panoul meniului de roluri, daca acesta ajunge copil direct al
   antetului (vezi js/hamburger.js).
   ============================================================ */

header .top > nav:not(.hb-panel),
header .header-row > nav:not(.hb-panel) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 22px;
}

header .top > nav:not(.hb-panel) a,
header .header-row > nav:not(.hb-panel) a {
    display: inline-block;
    min-height: 0;
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

header .top > nav:not(.hb-panel) a:hover,
header .header-row > nav:not(.hb-panel) a:hover,
header .top > nav:not(.hb-panel) a:focus-visible,
header .header-row > nav:not(.hb-panel) a:focus-visible {
    border-bottom-color: #f0d39a;
    background: transparent;
    color: #ffffff;
}

@media (max-width: 760px) {
    header .top,
    header .header-row {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    header .top > nav:not(.hb-panel),
    header .header-row > nav:not(.hb-panel) {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 4px 16px;
    }

    header .top > nav:not(.hb-panel) a,
    header .header-row > nav:not(.hb-panel) a {
        min-width: 0;
        white-space: normal;
    }
}
