/* Light brand touch to match DaxBax Neo's own accent color (#356df3),
   used across the login broker and the app's own UI. mdBook's own themes
   stay otherwise untouched -- this file only nudges accent colors. */

:root {
    --links: #356df3;
}

.light {
    --sidebar-active: #356df3;
}

.navy, .coal, .ayu {
    --links: #6d9bff;
    --sidebar-active: #6d9bff;
}

a,
a.active,
.chapter li a.active {
    color: var(--links);
}

#sidebar .chapter li.chapter-item a.active {
    color: var(--sidebar-active);
}

/* This site has no PDF/paper workflow -- the print button is dropped in
   favor of a language switcher in the same toolbar slot (see
   lang-switch.js), so print.html is still built but never linked to. */
.right-buttons > a[href="print.html"] {
    display: none !important;
}

/* Language switcher -- reuses mdbook's own theme-popup look (same CSS
   variables, so it matches every color scheme automatically) but anchored
   on the right side of the menu bar, where the print button used to sit. */
.lang-switch-wrap {
    position: relative;
}
.lang-popup {
    position: absolute;
    right: 10px;
    left: unset;
    top: var(--menu-bar-height);
    max-height: 70vh;
    overflow-y: auto;
}
[dir=rtl] .lang-popup {
    right: unset;
    left: 10px;
}
.lang-popup a.theme {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.lang-flag {
    font-size: 1.1em;
    line-height: 1;
}
