//! Page frame: the sticky top bar (wordmark, service switcher, right-hand slot) and the main column. //! Below 720 px the top bar wraps onto two rows and the card grid goes to one column. .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-4); min-height: 3.25rem; padding: var(--space-2) var(--space-6); background: var(--topbar); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); } .topbar-brand { display: inline-flex; align-items: baseline; gap: var(--space-2); color: var(--text); font-weight: 700; font-size: var(--text-lg); text-decoration: none; letter-spacing: -0.02em; } .topbar-brand:hover { color: var(--accent); } // The service switcher fills the middle of the bar. It is empty until there are services to list. .switcher { display: flex; align-items: center; flex: 1 1 auto; gap: var(--space-1); min-width: 0; overflow-x: auto; } .switcher:empty { display: none; } .switcher a { padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; white-space: nowrap; } .switcher a[aria-current="page"], .switcher a:hover { background: var(--surface-2); color: var(--text); } .topbar-end { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; color: var(--muted); font-size: var(--text-sm); } .page { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: var(--space-8) var(--space-6) var(--space-8); } .page > * + * { margin-top: var(--space-6); } .grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-4); } @media (max-width: 720px) { .topbar { flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-4); } .switcher { order: 3; flex-basis: 100%; } .topbar-end { margin-left: 0; } .page { padding: var(--space-6) var(--space-4); } .grid-cards { grid-template-columns: 1fr; } }