/*
 * One colour for every sidebar icon (Ryan 2026-11-24: "we have every different color of menu
 * item. We should have one color for the icons").
 *
 * Every role sidebar - club, coach, league, player, parent, referee, admin, and the grouped
 * rails - draws its group and item icons as a brand-purple tile (#7c3aed, the purple of the
 * active-row highlight) with a light glyph. The per-group / per-family accents
 * (ClubNavigation STAFF_LINK_ACCENTS, NavFamily, menu-groups.json tones, the
 * data-p2es-club-accent tiles) no longer reach the icon: this file wins on specificity
 * (#sidebar#sidebar) and !important, in both themes and in the active and hover states.
 * Row highlight, active bar, hover tint and labels are untouched.
 */
#sidebar#sidebar {
    --p2es-nav-ink: #f5f3ff;
    --p2es-nav-tile: #7c3aed;
    --p2es-nav-ink-default: #f5f3ff;
    --p2es-nav-tile-default: #7c3aed;
    --p2es-link-dark: #f5f3ff;
    --p2es-link-light: #f5f3ff;
}
#sidebar#sidebar :is(a, button, [data-p2es-club-accent], [data-p2es-nav-family]) {
    --p2es-nav-ink: #f5f3ff;
    --p2es-nav-tile: #7c3aed;
    --p2es-link-dark: #f5f3ff;
    --p2es-link-light: #f5f3ff;
}
#sidebar#sidebar :is(.nav-link, .menu-item > a, .submenu-item > a, .submenu li > a, .nav-item > a, .nav-item > button) i:first-child:not(.nav-arrow),
#sidebar#sidebar :is(.nav-link, .menu-item > a, .submenu-item > a, .submenu li > a, .nav-item > a, .nav-item > button):is(.active, :hover, :focus-visible) i:first-child:not(.nav-arrow),
html:is([data-theme="light"], [data-bs-theme="light"]) #sidebar#sidebar :is(.nav-link, .menu-item > a, .submenu-item > a, .submenu li > a, .nav-item > a, .nav-item > button) i:first-child:not(.nav-arrow) {
    color: #f5f3ff !important;
    background-color: #7c3aed !important;
    box-shadow: 0 0 0 3px #7c3aed !important;
    border-radius: 5px;
}

/* Grouped rails (.sn-gnav, black design): every tone tile is the same purple. */
.sn-gnav .nic.nic,
.sn-gnav .nic.nic:is(.l, .t, .a, .c, .p, .g) {
    background: #7c3aed !important;
    color: #f5f3ff !important;
}

/* Group headings in the grouped rails: one colour too (menu-groups.json tones stay as data). */
.sn-gnav .nmg.nmg { color: #b69cff !important; }

/* Role-home sidebars (league, referee, ...): the tile is a <span class="ico g-*"> around the glyph. */
#sidebar#sidebar .ico,
#sidebar#sidebar .ico:is(.g-main, .g-people, .g-money, .g-uplink, .g-events, .g-admin) {
    background: #7c3aed !important;
    color: #f5f3ff !important;
}
#sidebar#sidebar .ico > i,
#sidebar#sidebar :is(.nav-link, .nav-item > a, .nav-item > button):is(.active, :hover, :focus-visible) .ico > i {
    color: #f5f3ff !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
