/* Shared desktop shell: stationary navigation, replaceable feature workspace. */
.desktop-app.sh-core-page{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.sh-core-page>.development-banner,.sh-core-page>.sh-topbar{flex:none}
.sh-core-page>.shell{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;height:auto;width:100%;max-width:1360px;padding:20px 24px;gap:26px;overflow:hidden;align-items:stretch}
.sh-core-member>.shell{grid-template-columns:minmax(200px,235px) minmax(0,1fr)}
.sh-core-page>.shell>.centre-feed{display:block;min-height:0;min-width:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 12px 0}
.sh-core-sidebar{display:flex;flex-direction:column;align-self:stretch;min-width:0;min-height:0;overflow:visible;scrollbar-width:none;padding:4px 0 10px;gap:28px}
.sh-core-primary{display:grid;gap:12px}
.sh-core-sidebar .sh-nav-link{display:flex;align-items:center;gap:15px;padding:14px 13px;min-height:54px;border-radius:12px;font-size:1rem;font-weight:650;color:#25363d;text-decoration:none;line-height:1.25}
.sh-core-sidebar .sh-nav-link i{color:var(--feature-colour);font-size:1.55rem;flex:none;width:30px;text-align:center}
.sh-core-home{--feature-colour:#167c99}.sh-core-map{--feature-colour:#27834d}.sh-core-market{--feature-colour:#bc6a15}.sh-core-groups{--feature-colour:#8151b1}.sh-core-events{--feature-colour:#c44365}.sh-core-projects{--feature-colour:#4268c1}.sh-core-messages{--feature-colour:#98610d}.sh-core-friends{--feature-colour:#a04482}
.sh-core-sidebar .sh-nav-link:hover,.sh-core-sidebar .sh-nav-link.sh-current{background:#dcecf0;color:#176579}.sh-core-sidebar .sh-nav-link.sh-current{font-weight:750}
.sh-core-sidebar a:focus-visible{outline:2px solid #176579;outline-offset:3px}
.sh-core-footer{border-top:1px solid #d0dadc;padding:17px 13px 0;font-size:.83rem;color:#53666f;line-height:1.5}
.sh-core-footer nav{display:flex;flex-wrap:wrap;gap:8px 14px;flex-direction:column}.sh-core-footer a{color:#53666f;text-decoration:none}.sh-core-footer a:hover{text-decoration:underline;color:#176579}.sh-core-footer p{margin:16px 0 0;font-size:.78rem}
/* Short displays use compact spacing without creating a sidebar scrollbar. */
@media(max-height:800px){.sh-core-sidebar{gap:17px}.sh-core-primary{gap:8px}.sh-core-sidebar .sh-nav-link{padding:10px 12px;min-height:44px}.sh-core-footer{padding-top:12px}.sh-core-footer nav{gap:5px}.sh-core-footer p{margin-top:10px}}
@media(max-height:650px){.sh-core-sidebar{gap:8px}.sh-core-primary{gap:3px}.sh-core-sidebar .sh-nav-link{min-height:35px;padding:5px 10px;font-size:.9rem}.sh-core-sidebar .sh-nav-link i{font-size:1.22rem}.sh-core-footer{padding-top:8px}.sh-core-footer nav{gap:3px}.sh-core-footer p{margin-top:7px}}
@media(max-width:900px){.sh-core-page>.shell{padding:14px;gap:14px}.sh-core-member>.shell{grid-template-columns:180px minmax(0,1fr)}.sh-core-sidebar .sh-nav-link{gap:8px;font-size:.9rem}}
/* At very small viewports allow the document to scroll to keep every link reachable. No sidebar scrollbar. */
@media(max-width:700px),(max-height:599px){.desktop-app.sh-core-page{height:auto;min-height:100dvh;overflow:visible}.desktop-app.sh-core-page>.shell{display:grid;overflow:visible;align-items:start;grid-template-columns:minmax(0,1fr)}.desktop-app.sh-core-page>.shell>.centre-feed{overflow:visible;max-height:none}.sh-core-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.sh-core-footer nav{flex-direction:row}.sh-core-sidebar{gap:8px}}

/* Override legacy shell min-height and keep all layouts within available viewport. */
.sh-core-page>.shell{min-height:0}.sh-core-member .sh-core-sidebar{overflow:visible}.sh-core-member .sh-core-sidebar .sh-core-primary a{flex-shrink:0}

/* Revision 05: document scrolling is the sole page scroll container. */
html:has(body.sh-core-page),html:has(body.mobile-app){height:auto;min-height:100%;overflow-y:auto}
.desktop-app.sh-core-page,.mobile-app{display:block;height:auto;min-height:100dvh;overflow:visible}
.desktop-app.sh-core-page>.shell{height:auto;min-height:0;overflow:visible;align-items:start}
.sh-core-page>.shell>.centre-feed,.mobile-app .shell>.centre-feed{height:auto;max-height:none;overflow:visible;overscroll-behavior:auto;display:block}
.sh-core-sidebar{position:sticky;top:16px;align-self:start;height:auto;max-height:none;overflow:visible}
.sh-core-spaces{--feature-colour:#b03e91}
@media(max-width:700px),(max-height:730px){.sh-core-sidebar{position:static}}

/* Revision 17: one desktop shell, fixed-width navigation on every feature page. */
@media(min-width:951px) and (min-height:600px){
 .desktop-app.sh-core-member>.shell{grid-template-columns:235px minmax(0,1fr)!important;max-width:1360px!important;gap:26px!important;padding:20px 24px!important;align-items:start!important;min-height:calc(100dvh - 72px);overflow:visible!important}
 .desktop-app.sh-core-member>.sh-topbar{position:sticky!important;top:0!important;z-index:50}
 .desktop-app.sh-core-member>.shell>.sh-core-sidebar{position:sticky!important;top:var(--sh-platform-pin-top,92px)!important;align-self:start!important;width:235px!important;min-width:235px!important;max-width:235px!important;overflow:visible!important}
 .desktop-app.sh-core-member>.shell>.centre-feed{min-width:0;overflow:visible!important;max-height:none!important}
 .desktop-app.sh-core-member .sh-content-ad-rail{top:var(--sh-platform-pin-top,92px)}
 /* If the navigation is taller than the viewport (zoom/short screens), preserve access. */
 .desktop-app.sh-core-member.sh-sidebar-too-tall>.shell>.sh-core-sidebar{position:static!important}
}
@media(min-width:701px) and (max-width:950px) and (min-height:600px){
 .desktop-app.sh-core-member>.shell{grid-template-columns:180px minmax(0,1fr)!important;align-items:start!important;overflow:visible!important}
 .desktop-app.sh-core-member>.sh-topbar{position:sticky!important;top:0!important;z-index:50}
 .desktop-app.sh-core-member>.shell>.sh-core-sidebar{position:sticky!important;top:var(--sh-platform-pin-top,92px)!important;align-self:start!important;width:180px!important;max-width:180px!important;overflow:visible!important}
 .desktop-app.sh-core-member.sh-sidebar-too-tall>.shell>.sh-core-sidebar{position:static!important}
}
