/* Colourful, sharp navigation icons (Andrew 2026-09-18: "make them sharper and with color";
   the dark-mode tab bar was navy-on-dark = invisible). Each section owns an accent; the icon
   is a duotone of it (crisp 2px stroke + soft tint fill), identical on phone and desktop. */
.tab { --ic: #467bb8; }
.tab[data-feature="home"]        { --ic: #2f7bf6; }
.tab[data-feature="news"]        { --ic: #f59e0b; }
.tab[data-feature="conference"]  { --ic: #ef4444; }
.tab[data-feature="travel"]      { --ic: #06b6d4; }
.tab[data-feature="chat"]        { --ic: #22c55e; }
.tab[data-feature="messages"]    { --ic: #8b5cf6; }
.tab[data-feature="members"]     { --ic: #ec4899; }
.tab[data-feature="courses"]     { --ic: #f97316; }
.tab[data-feature="profile"]     { --ic: #0ea5e9; }
.tab[data-feature="admin"]       { --ic: #64748b; }
.tab[data-feature="more"]        { --ic: #467bb8; }
.tab[data-feature="certificates"]{ --ic: #eab308; }
.tab[data-feature="meetings"]    { --ic: #14b8a6; }
.tab[data-feature="regwatch"]    { --ic: #ef4444; }
.tab[data-feature="jobs"]        { --ic: #10b981; }
.tab[data-feature="benefits"]    { --ic: #d946ef; }
.tab[data-feature="exhibitors"]  { --ic: #f97316; }
.tab[data-feature="insights"]    { --ic: #6366f1; }

.tab[data-feature="qa"]          { --ic: #a855f7; }
.tab[data-feature="checkin"]     { --ic: #22c55e; }
.tab[data-feature="networking"]  { --ic: #3b82f6; }
.tab[data-feature="materials"]   { --ic: #f59e0b; }
.tab[data-feature="announce"]    { --ic: #f43f5e; }
.tab[data-feature="venuemap"]    { --ic: #14b8a6; }
.tab[data-feature="advocacy"]    { --ic: #6366f1; }
.tab[data-feature="webinars"]    { --ic: #0ea5e9; }
.tab[data-feature="dues"]        { --ic: #84cc16; }
.tab[data-feature="roster"]      { --ic: #f97316; }
.tab[data-feature="moderation"]  { --ic: #e11d48; }
.tab[data-feature="reminders"]   { --ic: #eab308; }
/* the More ellipsis: bigger dots so the badge never hides it */
.tab[data-feature="more"] .tab-icon svg { width: 30px; height: 30px; }

.tab .tab-icon { height: 28px; color: var(--ic); }
.tab .tab-icon svg { width: 27px; height: 27px; shape-rendering: geometricPrecision; overflow: visible; }
.tab .tab-icon svg, .tab .tab-icon .icon { stroke: var(--ic); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab .tab-icon svg path, .tab .tab-icon svg rect, .tab .tab-icon svg circle, .tab .tab-icon svg polygon {
  fill: color-mix(in srgb, var(--ic) 22%, transparent);
}
.tab .tab-icon svg [fill="currentColor"] { fill: var(--ic); }

/* labels: always readable, in both themes */
.tab { color: #4b515c; }
.tab.active { color: #002060; }
.tabbar .tab.active .tab-icon {
  background: color-mix(in srgb, var(--ic) 16%, transparent);
  border-radius: 999px; padding: 0 14px; height: 30px; transform: none;
}
.tab.active .tab-icon svg path, .tab.active .tab-icon svg rect, .tab.active .tab-icon svg circle, .tab.active .tab-icon svg polygon {
  fill: color-mix(in srgb, var(--ic) 38%, transparent);
}
.tabbar .tab { min-height: 58px; gap: 3px; }

/* the navy desktop rail: keep the colour, lift the label contrast */
.rail .tab { color: rgba(255,255,255,.82); }
.rail .tab.active { color: #fff; }
.rail .tab .tab-icon svg { width: 22px; height: 22px; }
.rail .tab .tab-icon { filter: saturate(1.15) brightness(1.15); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabbar .tab { color: #c3cbdd; }
  :root:not([data-theme="light"]) .tabbar .tab.active { color: #ffffff; }
  :root:not([data-theme="light"]) .tabbar .tab .tab-icon { filter: saturate(1.1) brightness(1.2); }
  :root:not([data-theme="light"]) .tabbar { background: rgba(14,20,32,.86); border-top-color: rgba(154,190,255,.14); }
}
:root[data-theme="dark"] .tabbar .tab { color: #c3cbdd; }
:root[data-theme="dark"] .tabbar .tab.active { color: #ffffff; }
:root[data-theme="dark"] .tabbar .tab .tab-icon { filter: saturate(1.1) brightness(1.2); }
:root[data-theme="dark"] .tabbar { background: rgba(14,20,32,.86); border-top-color: rgba(154,190,255,.14); }
