/* portal/admin-hub.css — hub pages for the biz-1 platform-admin console.
 * Tokens only (var(--…)), so light/dark follow the portal. Loaded from
 * portal.html with ?v=. Companion: portal/admin-hub.js. */

.hub-page { max-width: 1440px; margin: 0 auto; }
.hub-head { margin: 4px 0 14px; }
.hub-head h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; color: var(--fg); }
.hub-head p { margin: 0; max-width: 720px; color: var(--fg-muted); font-size: 13px; line-height: 1.55; }

.hub-tabs { display: flex; gap: 2px; margin: 0 0 22px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tab { position: relative; flex: 0 0 auto; margin: 0; padding: 10px 14px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fg-muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s; }
.hub-tab:hover { color: var(--fg); }
.hub-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.hub-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.hub-pane[hidden] { display: none !important; }
/* A re-parented page keeps its own .page/.active toggling; the pane is
   only a container. Strip the top margin the standalone page layout had. */
.hub-pane > .page { min-width: 0; }
.hub-pane > .page.active { display: block; }
/* Islands render their own H1 (e.g. "Clients"); inside a hub the hub head
   already names the surface, so demote the island's title to a section
   title instead of showing two page titles stacked. */
.hub-pane .pa-head__text h1 { font-size: 20px; }

@media (max-width: 720px) {
  .hub-head h1 { font-size: 22px; }
  .hub-tab { padding: 9px 11px 11px; font-size: 12.5px; }
}
