/* The site chrome every page shares: the column that holds the topbar above the page, and the small button/menu vocabulary the account controls use. Design tokens, the reset and the shared base elements are in web/static/atfs.css, linked unhashed from src/app.html. */ .site { min-height: 100vh; display: flex; flex-direction: column; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem var(--edge); font-size: 0.9rem; /* AccountMenu renders nothing at all until auth.status leaves "loading", then .nav-link-styled text — the same class and height as the nav pill's own links, which is exactly what keeps the two pills' heights matching once content is showing. This floor covers the gap before that: reserving the eventual content height up front is what stops the bar growing the moment that text appears (a max-height would just clip it instead of leaving room for it — the box needs to already BE tall enough, not have its overflow hidden). This floor is on .topbar itself even though the pills below (not this box) are what actually holds that content, since either pill growing taller still grows .topbar, its flex parent. 3.6rem was measured against the bar's own former padding, before it held two independent pills rather than painting one edge-to-edge surface itself — re-measure (a headless CDP/Playwright probe of .topbar's height through the "loading" -> signed-out transition is how it was done originally) if that changes again. */ min-height: 3.6rem; /* Sticky rather than fixed: the topbar is already the first thing on the page, so sticky reserves its own space in normal flow exactly the way a static header would — nothing below it needs compensating padding the way position: fixed would require. It only starts behaving like "fixed" once a page scrolls past where it'd naturally sit, which for a topbar is immediately. The bar itself paints nothing (background: transparent) — only the two pills below do, so the vast majority of the screen (the gap between them) keeps showing scrolled content underneath rather than an opaque strip across the whole width. Below a certain width there's no longer a meaningful gap between two pills to preserve, so the narrow-screen media query further down reverts to one solid strip instead, the same shape this bar used before it had pills at all. Either way, every other surface's `` scroll-padding-top and the docs TOC's own sticky offset (atfs.css, docs/+layout.svelte) account for this bar's height, so an in-page anchor never lands hidden behind it — narrow or wide. */ position: sticky; top: 0; z-index: 30; background: transparent; /* .topbar's own box spans the full width even though only its two pills paint anything — the wide gap between them is real, hit-testable space belonging to this element, sitting on top of the page (sticky, z-index) with nothing visible in it. Without this, that gap silently swallows clicks meant for whatever's scrolled underneath. auto is restored on the two pills below (where there's real content to click) and on .topbar itself in the narrow media query further down, where the bar becomes one opaque strip and genuinely should intercept everything inside it. */ pointer-events: none; } /* The two pills: identity + static nav on the left, the signed-in account's own controls on the right — each pill is its own solid, opaque, fully-rounded surface, sized to its own content by ordinary flex-item shrink-to-fit (neither has a flex-grow), which is what keeps the gap between them showing whatever's scrolled underneath rather than either pill stretching to fill it. */ .topbar-nav, .topbar-account { display: flex; align-items: center; gap: 1.35rem; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); /* Opts back in to .topbar's pointer-events: none above — this is the pill that's actually visible and clickable. */ pointer-events: auto; } /* align-items: baseline (rather than the shared rule's center) is what actually lines up "atfs" against "Docs"/"Download" — it only works because both share one font-size below; center-aligning boxes of different font sizes looks close but never quite sits on the same text baseline. */ .topbar-nav { align-items: baseline; } /* .wordmark's own font-size (atfs.css, 1.2rem) is sized for standalone use elsewhere — the raw-downloads static page's simple header, with no nav row beside it. Here it's just the bold half of one evenly-sized line; overriding only the size (never the weight) keeps that bold-vs-regular contrast as the sole thing telling "atfs" apart from the links beside it. */ .topbar-nav .wordmark { font-size: 0.9rem; } /* Also the account controls' own vocabulary (AccountMenu, ManageMenu): Log in/out, Continue/Cancel and Manage are