/* Stage 64 — permanent L&A monogram + canonical icon sidebar */
la-stage27-sidebar {
    position: relative;
    z-index: 140;
}
.sidebar {
    position: fixed;
    z-index: 140;
    left: clamp(18px, 1.45vw, 28px);
    top: clamp(24px, 3vh, 34px);
    bottom: clamp(24px, 3vh, 34px);
    width: clamp(170px, 12vw, 210px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.sidebar:before,
.sidebar:after {
    content: none !important;
    display: none !important;
}
.brand-mark {
    width: clamp(68px, 4.8vw, 84px);
    height: clamp(66px, 6.8vh, 84px);
    display: grid;
    place-items: center;
    text-decoration: none;
    margin: 0 0 clamp(34px, 4.5vh, 52px);
}
.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
.side-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(9px, 1.15vh, 13px);
    width: 100%;
}
.side-item {
    width: 100%;
    height: clamp(44px, 5vh, 54px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 1vw, 16px);
    padding: 0 clamp(13px, 1vw, 17px);
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.side-item svg {
    width: clamp(23px, 1.65vw, 27px);
    height: clamp(23px, 1.65vw, 27px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.side-item b {
    display: block !important;
    font:
        600 clamp(12px, 0.82vw, 14px)/1.1 Inter,
        system-ui,
        sans-serif;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.side-item:hover {
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-1px);
}
.side-item.active {
    color: #fff;
    background: linear-gradient(145deg, rgba(203, 158, 85, 0.17), rgba(126, 88, 42, 0.07));
    border-color: rgba(221, 181, 109, 0.76);
    box-shadow:
        0 0 0 1px rgba(255, 219, 151, 0.05) inset,
        0 5px 22px rgba(187, 129, 48, 0.2),
        0 0 18px rgba(227, 178, 89, 0.13);
}
/* Old decorative text/backdrops are permanently suppressed on every page. */
.brand,
.brand-script,
.side-footer,
.sidebar-blur,
.sidebar-backdrop {
    display: none !important;
}
@media (max-width: 760px) {
    .sidebar {
        left: 8px;
        top: 16px;
        bottom: 16px;
        width: 150px;
    }
    .brand-mark {
        width: 58px;
        height: 58px;
        margin-bottom: 26px;
    }
    .side-item {
        width: 100%;
        height: 44px;
        border-radius: 14px;
        padding: 0 11px;
        gap: 10px;
    }
    .side-item svg {
        width: 22px;
        height: 22px;
    }
    .side-item b {
        font-size: 11px !important;
    }
}
/* Stage 70: sidebar must float directly on the Journey artwork — never on a dark slab. */
la-stage27-sidebar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    isolation: auto !important;
}
la-stage27-sidebar .sidebar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Stage 75 Journey compatibility: sidebar itself never blurs content behind it. */
.journey-stage .sidebar,
.journey-stage .side-nav,
.journey-stage .side-item,
.journey-stage .brand-mark {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Stage 78 permanent shell lock — visual source: accepted Home sidebar. */
la-stage27-sidebar,
la-stage27-sidebar .sidebar,
la-stage27-sidebar .side-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}
.sidebar-blur,
.sidebar-backdrop {
    display: none !important;
}

/* V3 GLOBAL SIDEBAR LOCK — identical geometry on every authenticated page */
:root {
    --la-sidebar-left: 14px;
    --la-sidebar-top: 18px;
    --la-sidebar-width: 162px;
    --la-sidebar-item-h: 46px;
    --la-sidebar-gap: 8px;
}
la-stage27-sidebar .sidebar {
    left: var(--la-sidebar-left) !important;
    top: var(--la-sidebar-top) !important;
    bottom: 18px !important;
    width: var(--la-sidebar-width) !important;
    min-width: var(--la-sidebar-width) !important;
    max-width: var(--la-sidebar-width) !important;
}
la-stage27-sidebar .brand-mark {
    width: 72px !important;
    height: 66px !important;
    margin: 0 0 28px !important;
}
la-stage27-sidebar .side-nav {
    gap: var(--la-sidebar-gap) !important;
}
la-stage27-sidebar .side-item {
    height: var(--la-sidebar-item-h) !important;
    min-height: var(--la-sidebar-item-h) !important;
    max-height: var(--la-sidebar-item-h) !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    gap: 11px !important;
}
la-stage27-sidebar .side-item svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
}
la-stage27-sidebar .side-item b {
    font-size: 12px !important;
    line-height: 1 !important;
}
@media (max-width: 760px) {
    :root {
        --la-sidebar-left: 8px;
        --la-sidebar-top: 14px;
        --la-sidebar-width: 148px;
        --la-sidebar-item-h: 43px;
        --la-sidebar-gap: 7px;
    }
    la-stage27-sidebar .brand-mark {
        width: 60px !important;
        height: 56px !important;
        margin-bottom: 22px !important;
    }
}
