/* CORVUS LIBER — IMPERIAL LIBRARY BRANDING */

:root {
    --corvus-blue: #102b50;
    --corvus-emerald: #126b54;
    --corvus-gold: #c5a45b;
    --corvus-ivory: #f8f5ec;
}

/* Existing library seal */
.sidebar .user-panel img,
.main-sidebar .brand-image,
.sidebar .brand-link img {
    width: 76px !important;
    height: 76px !important;
    max-height: 76px !important;
    object-fit: contain;
    border-radius: 50%;
}

/* Imperial sidebar */
.main-sidebar {
    background: var(--corvus-blue) !important;
}

/* Gold accents */
.sidebar .nav-link.active {
    background: var(--corvus-emerald) !important;
    border-left: 3px solid var(--corvus-gold);
}

/* Library branding */
.corvus-imperial-brand {
    padding: 18px 12px;
    text-align: center;
    color: var(--corvus-ivory);
    border-bottom: 1px solid var(--corvus-gold);
}

.corvus-imperial-brand img {
    width: 105px;
    height: 105px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.corvus-imperial-brand h1 {
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.35;
    margin: 0;
    color: var(--corvus-ivory);
}

.corvus-imperial-brand .latin {
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: italic;
    margin-top: 8px;
    color: var(--corvus-gold);
}

.corvus-imperial-brand .powered {
    font-size: 11px;
    margin-top: 12px;
    color: #d5dedb;
}

/* CORVUS LIBER — IMPERIAL REFINEMENTS */

/* Circular gold-framed seal */
.corvus-imperial-brand > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 132px;
    height: 132px;
    margin: 0 auto 16px;
    border: 3px solid #c5a45b;
    border-radius: 50%;
    background: #f8f5ec;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(197,164,91,.18);
}

.corvus-imperial-brand > a img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

/* Highlight only the active primary navigation section */
.main-sidebar .nav-sidebar > .nav-item > .nav-link.active {
    background: #126b54 !important;
    color: #fff !important;
    border-left: 3px solid #c5a45b;
}

/* Submenu entries receive a quieter treatment */
.main-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background: rgba(197,164,91,.12) !important;
    color: #f8f5ec !important;
    border-left: 2px solid #c5a45b;
}

/* Non-active submenu entries remain neutral */
.main-sidebar .nav-treeview > .nav-item > .nav-link:not(.active) {
    background: transparent !important;
    border-left: 2px solid transparent;
}

