/* ==========================================================================
   Design 3 — Design 2's two-row header with Design 1's colours.
   Loaded after site.css (the default design; see layouts/site.php).
   ========================================================================== */
.site-header { background: var(--paper); border-bottom: 0; box-shadow: 0 6px 20px -14px rgba(22, 34, 46, .35); }
.site-header .brand { background: transparent; padding: 0; border-radius: 0; }
.site-header .brand img { height: 54px; }

@media (min-width: 961px) {
	/* sticks with the logo row (14 + 54 + 14 = 82px) scrolled off, so only the blue menu strip stays in view */
	.site-header { position: sticky; top: -82px; }
	[id] { scroll-margin-top: 80px; }
	.header-row { flex-wrap: wrap; height: auto; padding-top: 14px; gap: 0; }
	.main-nav {
		flex: 1 0 100%; margin-top: 14px; min-height: 54px; gap: 0;
		background: var(--menu-blue);
		box-shadow: 0 0 0 100vmax var(--menu-blue);
		clip-path: inset(0 -100vmax);
	}
	.main-nav a { padding: 17px 18px; border-radius: 0; font-weight: 600; color: #fff; }
	.main-nav a:hover { background: var(--menu-blue-dark); color: #fff; }
	.main-nav a.active { background: var(--menu-blue-dark); }
	.main-nav a.active::after { left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; background: var(--orange); }
	.main-nav .nav-cta { margin-left: auto; border-radius: 0; padding: 17px 24px; background: var(--orange); color: #fff; }
	.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: var(--orange-dark); color: #fff; }
}
@media (max-width: 960px) {
	.nav-toggle-label { background: var(--menu-blue); border-radius: 8px; margin-right: 0; }
	.main-nav { top: 76px; }
}
@media (max-width: 640px) {
	.site-header .brand img { height: 42px; }
}

/* ---------- Blue page banners (top of every page) ---------- */
.hero, .page-hero {
	position: relative; overflow: hidden; border-bottom: 0;
	background: linear-gradient(160deg, var(--menu-blue-dark) 0%, var(--menu-blue) 55%, #2a70a8 100%);
	color: var(--on-dark);
}
/* faint "<?php" watermark, echoing the call-to-action boxes */
.page-hero::after {
	content: "<?php"; position: absolute; right: -10px; bottom: -36px; pointer-events: none;
	font-family: var(--mono); font-size: 8rem; font-weight: 600; line-height: 1; color: rgba(255, 255, 255, .06);
}
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 em { color: #ffb08a; }
.hero .lead, .page-hero .lead { color: rgba(255, 255, 255, .88); }
.hero .eyebrow, .page-hero .eyebrow { color: #ffb08a; }
.hero .btn-ghost, .page-hero .btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: #fff; color: var(--menu-blue); }
.hero .code-card { box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
.page-hero .wrap { position: relative; z-index: 1; }

/* home page banner only: narrower and shorter (other page banners unchanged) */
.hero { padding: 36px 0 44px; }
.hero .wrap { max-width: 1000px; }
.hero-grid { gap: 44px; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.hero .eyebrow { margin-bottom: 12px; }
.hero .lead { margin: 14px 0 22px; font-size: 1.05rem; }
.hero .code-card { max-width: 420px; margin-left: auto; font-size: .74rem; line-height: 1.5; }
.hero .code-card-bar { padding: 10px 16px; }
.hero .code-card pre { padding: 14px 18px 18px; }

/* less space between the banner and the page content (all pages) */
.hero + .section, .page-hero + .section { padding-top: 48px; }

@media (max-width: 640px) {
	.hero { padding: 28px 0 36px; }
	.hero + .section, .page-hero + .section { padding-top: 36px; }
	.page-hero::after { font-size: 4.5rem; bottom: -16px; }
}

@media (max-width: 960px) {
	.hero .code-card { margin-left: 0; }
}
