.fi-sidebar-nav .fi-sidebar-nav-groups {
    gap: 0.5rem 0;
}

/*
 * The sidebar wears the Temple navy of the topbar, so the two read as one
 * frame around the page, with white items on it, a lighter navy behind the
 * item under the pointer and the brand gold on the page being viewed.
 *
 * Filament's own rules come later in the cascade than this file (see
 * admin-topbar.css), so every selector is one class heavier than the vendor
 * rule it replaces. The navy holds in dark mode, like the topbar's, so the
 * brand frame is the same in either.
 *
 * The item rules are held inside `.fi-sidebar` because Filament draws a
 * record's sub navigation with the same item classes, on the white page,
 * where white items would vanish.
 *
 * `color-scheme: dark` hands the sidebar's scrollbar to the browser's dark
 * styling, which would otherwise draw a pale track down the navy.
 */
.fi-body .fi-sidebar {
    background-color: var(--temple-frame);
    color-scheme: dark;
}

/*
 * A hairline where the sidebar meets the topbar and the page, because navy
 * against navy would otherwise run the two together into one block.
 *
 * Filament keeps a gutter for the scrollbar whether the list scrolls or not,
 * and its track drew a lighter strip down the edge of the navy. The bar is thin
 * with a clear track, so only the handle shows.
 */
.fi-body .fi-sidebar-nav {
    border-top: 1px solid color-mix(in oklab, var(--color-white) 10%, transparent);
    scrollbar-color: color-mix(in oklab, var(--color-white) 25%, transparent) transparent;
    scrollbar-width: thin;
}

/*
 * Below 1024px the sidebar slides over the page with its own header carrying
 * the wordmark, which ships as navy and so is repainted white the way the
 * topbar's copy is.
 */
.fi-body.fi-body-has-topbar .fi-sidebar-header {
    background-color: var(--temple-frame);
    box-shadow: none;
}

.fi-body .fi-sidebar-header .fi-logo {
    filter: brightness(0) invert(1);
}

/*
 * The group headings step back from the items under them, so the eye lands
 * on the links rather than on the labels for them.
 */
.fi-body .fi-sidebar .fi-sidebar-group-label {
    color: var(--primary-200);
}

.fi-body .fi-sidebar .fi-sidebar-group-btn .fi-icon,
.fi-body .fi-sidebar .fi-sidebar-group-collapse-btn .fi-icon {
    color: var(--primary-300);
}

.fi-body .fi-sidebar .fi-sidebar-item-label,
.fi-body .fi-sidebar .fi-sidebar-item-btn > .fi-icon {
    color: var(--color-white);
}

.fi-body .fi-sidebar .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover,
.fi-body .fi-sidebar .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:focus-visible {
    background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
}

.fi-body .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: color-mix(in oklab, var(--color-white) 8%, transparent);
}

.fi-body .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
.fi-body .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: var(--temple-gold);
}
