/* ===========================================================================
 * Core dna admin (cdna-admin) — site customisation for hubcorednacom.
 * Loaded by the backend as /assets/backend/custom.css.
 *
 * The Books icon + flyout injected by custom.js reuse the platform's own
 * classes (menu__nav-item, menu__nav-submenu, menu__nav-submenu-item, _active),
 * so they inherit the native styling. These rules only guarantee the few
 * behaviours we drive ourselves render correctly regardless of platform CSS.
 * ======================================================================== */

/* Injected icon parity. */
a.menu__nav-item.js-hub-books-nav { cursor: pointer; }
a.menu__nav-item.js-hub-books-nav .mdi { display: inline-block; }

/* Collapsible "Books" group inside the flyout: show its links only when the
 * group carries `_active` (custom.js toggles this on click). */
#js-menu-submenu-books .menu__nav-submenu-item + ul { list-style: none; margin: 0; padding: 0; }
#js-menu-submenu-books .menu__nav-submenu-item:not(._active) + ul { display: none; }
#js-menu-submenu-books .menu__nav-submenu-item._active + ul { display: block; }
