/* TownSquare rc.250: original rc.234 visuals with the network App Shell header ONLY.
   No card, typography, grid, social feed, group, or dashboard redesign rules. */
body.uc-community-app.uc-town-shared-header {
  --uc-top: 60px;
  --uc-universal-bar-height: 0px;
}
/* The original TownSquare header continues to exist for JS event compatibility,
   but the network App Shell is the sole visible header for signed-in users. */
body.uc-community-app.uc-town-shared-header .uc-topbar { display: none !important; }
/* TownSquare uses a 68px community rail, not the App Shell's normal sidebar. */
body.uc-community-app.uc-town-shared-header #header {
  inset-inline-start: 0 !important;
  inset-inline-end: 0 !important;
  width: 100% !important;
  z-index: 1100 !important;
}
body.uc-community-app.uc-town-shared-header .uccb-rail {
  top: var(--uc-top);
  height: calc(100dvh - var(--uc-top));
  z-index: 220;
}
body.uc-community-app.uc-town-shared-header .uc-shell {
  padding-top: calc(var(--uc-top) + 28px);
}
body.uc-community-app.uc-town-shared-header .uc-mobile-menu { z-index: 14000 !important; }
body.uc-community-app.uc-town-shared-header .uccb-drawer { z-index: 16000 !important; }
/* Guest deep links get a simple public header, not the authenticated App Shell. */
body.uc-community-app .uc-town-public-header {
  position: fixed; inset: 0 0 auto; z-index: 1200; height: 60px;
  padding: 0 clamp(14px,2.5vw,34px); display:flex; align-items:center; gap:26px;
  background:#fff; color:#19243c; border-bottom:1px solid #e6eaf1;
  font:500 13px/1.3 UCInter,system-ui,sans-serif;
}
body.uc-community-app .uc-town-public-header a { text-decoration:none; }
body.uc-community-app .uc-town-public-brand { display:flex; align-items:center; gap:9px; white-space:nowrap; }
body.uc-community-app .uc-town-public-brand img { width:38px; height:38px; object-fit:contain; }
body.uc-community-app .uc-town-public-brand span { display:grid; gap:1px; }
body.uc-community-app .uc-town-public-brand strong { font-size:14px; }
body.uc-community-app .uc-town-public-brand small { font-size:10px; color:#8992a1; }
body.uc-community-app .uc-town-public-header nav { display:flex;align-items:center;gap:26px;margin-right:auto; }
body.uc-community-app .uc-town-public-login { padding:9px 15px;border-radius:8px;background:#5146e5;color:#fff; }
body.uc-community-app .uc-town-public-menu { display:none;border:0;background:transparent;font-size:19px; }
body.uc-community-app:has(.uc-town-public-header) .uc-topbar { display:none!important; }
body.uc-community-app:has(.uc-town-public-header) .uc-shell { padding-top:82px!important; }
body.uc-community-app:not(.uc-town-shared-header) .uccb-rail { display:none!important; }
@media (max-width: 1024px) {
  body.uc-community-app.uc-town-shared-header .uccb-rail { display:none!important; }
  body.uc-community-app.uc-town-shared-header .uc-shell { padding-top: calc(var(--uc-top) + 16px); }
}
@media (max-width: 800px) {
  body.uc-community-app .uc-town-public-header { height:56px;gap:10px; }
  body.uc-community-app .uc-town-public-header nav { display:none; }
  body.uc-community-app .uc-town-public-menu { display:block;margin-left:auto; }
  body.uc-community-app:has(.uc-town-public-header) .uc-shell { padding-top:70px!important; }
}
@media (max-width: 600px) {
  body.uc-community-app.uc-town-shared-header { --uc-top:56px; }
}
