/* ==========================================================================
   site_nav.css  --  B7 unified left-sidebar navigation.
   Agent E3.  Created 2026-06-12.

   Persistent ~260px left rail on desktop; collapses to a hamburger drawer on
   phone (<900px).  Dark (RULE 37), light-pastel text, active item highlighted
   with a light-pastel pill in the page's family color (RULE 35), 15px gutters
   (RULE 36).  Voice-help pinned at the bottom.
   ========================================================================== */
:root { --site-rail-w: 260px; }

/* Page layout wrapper put around (rail + content) by the header. */
.site-shell { display: flex; align-items: stretch; min-height: 100vh; }
.site-rail {
    width: var(--site-rail-w); flex: 0 0 var(--site-rail-w);
    background: #0a1b3e; color: #cfe4ff;
    border-right: 2px solid #3a2f6e;
    padding: 15px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: .4rem;
    position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto;
}
.site-rail .brand {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 800; font-size: 1.2rem; color: #fff3a8;
    text-decoration: none; padding: .4rem .2rem 1rem;
}
.site-rail .brand .dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: #1a1340; color: #fff3a8; border: 2px solid #fff3a8;
    display: inline-flex; align-items: center; justify-content: center;
}
.site-nav-item {
    display: flex; align-items: center; gap: .7rem;
    min-height: 48px; padding: .6rem .8rem; border-radius: 12px;
    color: #cfe4ff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
    border: 2px solid transparent;
}
.site-nav-item .ic { font-size: 1.3rem; line-height: 1; width: 1.6rem; text-align: center; }
.site-nav-item:hover { background: #1a1340; }
/* Active = filled pastel pill in the item's family color (RULE 35). */
.site-nav-item.active { color: #1a1340; font-weight: 800; }
.site-rail .spacer { flex: 1 1 auto; }
.site-nav-voice {
    min-height: 52px; margin-top: .6rem;
    background: #1a1340; color: #fff3a8; border: 2px solid #fff3a8;
    border-radius: 12px; font-weight: 800; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    text-decoration: none; cursor: pointer;
}

/* Hamburger -- hidden on desktop, shown on phone. */
.site-burger {
    display: none; position: fixed; top: 10px; left: 10px; z-index: 1100;
    width: 52px; height: 52px; border-radius: 12px;
    background: #0a1b3e; color: #fff3a8; border: 2px solid #fff3a8;
    font-size: 26px; cursor: pointer;
}
.site-rail-scrim {
    display: none; position: fixed; inset: 0; z-index: 1090;
    background: rgba(3,16,31,.6);
}

@media (max-width: 900px) {
    .site-shell { display: block; }
    .site-burger { display: inline-flex; align-items: center; justify-content: center; }
    .site-rail {
        position: fixed; top: 0; left: 0; height: 100vh; z-index: 1100;
        transform: translateX(-100%); transition: transform .22s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,.5);
    }
    .site-shell.rail-open .site-rail { transform: translateX(0); }
    .site-shell.rail-open .site-rail-scrim { display: block; }
    /* Push page content clear of the fixed hamburger. */
    .site-content { padding-top: 64px; }
    /* Keep the elder topbar wordmark clear of the fixed burger. */
    .elder-topbar { padding-left: 64px; }
}

/* ---- B7 collision handling with the elder shell's fixed widgets ----
   On desktop the 260px rail occupies the left edge, so shift the bottom-left
   voice pill + "Tell Mr Artin" feedback button clear of it. */
@media (min-width: 901px) {
    #elder-voice-pill, #elder-fb-open { left: 274px !important; }
}
