/* ================================================================
   FriendsByChance — components/shell.css
   The app shell: the centred, max-width column that holds the
   navigation pane and every page.  Driven by js/shell.js.

   Geometry tokens live in main.css :root — see the "App shell
   geometry" block there.  This file only arranges them.
   ================================================================ */

/* ── The centred column ──────────────────────────────────────────
   Fixed below the top bar and capped at --fbc-total-max-w.  Because
   it is a flex row, the menu pane simply becomes its first column —
   no viewport arithmetic, and the pane automatically sits flush
   against the left edge of the centred group.                      */
.fbc-shell {
    position:  fixed;
    top:       var(--top-bar-height);
    left:      0;
    right:     0;
    bottom:    0;
    margin:    0 auto;
    max-width: var(--fbc-total-max-w);
    display:   flex;
    flex-direction: row;
    z-index:   10;
    /* The page background matches the body background, so without these
       the column would dissolve into the empty side bands. One hairline
       each side is enough to read as a deliberate edge; at narrow widths
       they sit on the window edge and are invisible. */
    border-left:  1px solid var(--color-divider);
    border-right: 1px solid var(--color-divider);
}

/* The Map wants every available pixel (the menu pane stays). */
:root.fbc-fullwidth-page .fbc-shell { max-width: none; }

/* Holds the landing page and every .fbc-page; their absolute
   positioning resolves against this box. */
.fbc-shell-main {
    flex:      1;
    min-width: 0;
    position:  relative;
}

/* ── Navigation pane (4th pane, leftmost) ────────────────────────
   Shown only when the user pinned the menu AND the window is wide
   enough that the three content panes have all reached their max
   widths.  Otherwise FBC.shell keeps the navigation in the drawer.  */
.fbc-menu-pane {
    width:        var(--fbc-menu-pane-w);
    min-width:    var(--fbc-menu-pane-w);
    flex-shrink:  0;
    border-right: 1px solid var(--color-divider);
    background:   var(--color-bg);
    overflow-y:   auto;
    display:      flex;
    flex-direction: column;
}

/* The nav <ul> is the SAME element here and in the drawer — FBC.nav
   re-parents it rather than rendering twice.  Nothing extra is needed:
   .nav-menu and .nav-item-* (main.css / auth.css) are written without a
   .global-nav ancestor, so they already style correctly in both homes.
   Keep it that way — scoping them to the drawer would silently strip
   the pane. */

/* Viewport-fixed chrome (the chat FAB and panel) is kept tucked against
   the shell rather than floating in the empty side band; because chat.css
   loads after this file, that override lives there and reads the shared
   --fbc-band-w token from main.css. */
