/* Space under the header on tablets and phones (below 1000px), owner request 2026-11-27.
   Rule: a dark panel at the top of a page starts exactly 8px (--nav-space) under the header, and inside it the
   first text sits --panel-top lower. A page without a dark panel at the top puts its first text at that same
   height, so the eyebrow and title line up on every page, panel or not.
   Below 1000px every page has the same fixed floating header (.fm: logo + "Menu" pill, height --fm-h) and the page
   scrolls under it; the pricing, service and product pages hide their own header there (site-nav.css). Loaded last in src/layouts/Boons.astro (site and service branches). */
@media (max-width:999px) {
	:root {
		--fm-h: calc(var(--menu-inset, 0.75rem) * 2 + 2.375rem);
		--nav-space: 0.5rem;
		--panel-top: 4.5rem;
	}

	/* ---- site pages: the fixed floating header covers the top --fm-h of the page ---- */
	body:is([data-page="landing"], [data-page="work"], [data-page="case"]) main > section:first-child:not(.aiv-hero),
	body[data-page="work"] main.home-articles,
	body[data-page="work"] main.nf-main {
		padding-top: calc(var(--fm-h) + var(--nav-space) + var(--panel-top));
	}
	/* the dark panel of the AI visibility tool */
	main > .aiv-hero:first-child {
		margin-top: calc(var(--fm-h) + var(--nav-space));
	}
	main > .aiv-hero:first-child:not(.is-scanning) {
		padding-top: var(--panel-top);
	}
	/* the homepage hero panel: 8px under the header, and still filling the screen to the same gutter below */
	html.editorial body[data-page="home"] {
		--header-h: calc(var(--fm-h) + var(--nav-space));
	}
	body[data-page="home"] main > .home-hero:first-child {
		margin-top: calc(var(--fm-h) + var(--nav-space));
	}

	/* ---- pricing, service and product pages: below 1000px their own header is hidden and the same fixed floating
	   header covers the top of the page (site-nav.css) ---- */
	.service-page main > section:first-child:not(.sp-hero) {
		padding-top: calc(var(--fm-h) + var(--nav-space) + var(--panel-top));
	}
	.service-page main > .sp-hero:first-child {
		margin-top: calc(var(--fm-h) + var(--nav-space));
		padding-top: var(--panel-top);
	}
}
