/* Bottom tab bar (assets/nav.js). Tokens only; logical properties only. */
body.has-tabbar{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
.tabbar{position:fixed; inset-inline:0; bottom:0; z-index:1000;
  display:flex; justify-content:space-around; gap:4px;
  background:var(--jc-surface); border-top:1px solid var(--jc-line);
  padding:3px 8px calc(3px + env(safe-area-inset-bottom))}
/* slimmer bar (Zee 2026-11-05): ~51px instead of ~68px, each tab still ≥ 44px to tap */
.tabbar a{flex:1; max-width:120px; display:flex; flex-direction:column; align-items:center; gap:2px;
  min-height:44px; padding:5px 4px 4px; border-radius:10px; text-decoration:none; color:var(--jc-muted);
  font-size:11px; font-weight:700; line-height:1.2}
/* RM: a community can rename sections (≤ 14 EN / 18 AR). Buttons never grow past their share (min-width:0);
   a long word breaks inside its button; at most two lines. */
.tabbar a{min-width:0}
.tabbar a span{max-width:100%; text-align:center; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden}
/* set by nav.js only when the label would be cut off at 11px: smaller text, and a 3rd line if the phone's font
   still needs it (one word per line) — the bar grows a little rather than hiding part of the name */
.tabbar a span.tight{font-size:9.5px; -webkit-line-clamp:3}
.tabbar a .ico{color:var(--jc-muted)}
.tabbar a[aria-current="page"]{color:var(--jc-ink); background:var(--jc-surface-2)}
.tabbar a[aria-current="page"] .ico{color:var(--jc-accent)}

/* the footer on every page (api.js jcFooter) — the page frame, with the tab bar; every page loads this file */
footer.jcfoot{color:var(--jc-faint); font-size:12px; text-align:center; padding:10px 16px 24px}
footer.jcfoot a{color:var(--jc-muted)}
footer.jcfoot .fb{margin-bottom:6px}
/* a full map (Events, Courts, Pets: assets/map.js jcMapHtml) fills the screen above the tab bar: no footer under it */
body:has(.evmapwrap) footer.jcfoot{display:none}
/* desktop (DL-1): the tabs sit together in the middle instead of spreading edge to edge */
@media (min-width:900px){ .tabbar{justify-content:center; gap:12px} }
