/**
 * Pattern: nordnatur-tech/site-header (D6a — atom-first polish pass + 0.15.0 site-logo switch).
 *
 * Sticky-top dark header with the NNT-logo-white.svg brand mark on the
 * left, four nav links, and a compact primary CTA. Always-on enqueue:
 * the header template-part loads on every front-end view, and a
 * className sniff against post_content cannot reach FSE template-part
 * markup, so the conditional pattern used by hero-brand /
 * service-card-grid / tool-card-grid / case-study-grid does not apply
 * here. Stylesheet stays scoped under `.ntech-site-header` so it can
 * ship sitewide without leaking onto other surfaces.
 *
 * CSS budget exception (CLAUDE.md rule 14, ongoing): plugin now ships
 * SEVEN CSS files (cf7-fields ~70 + hero-brand ~30 + service-card-grid
 * ~20 + tool-card-grid ~50 + case-study-grid ~25 + site-header ~25 +
 * site-footer ~30). Site-header DOWN from ~40 lines at 0.11.0 because
 * 0.12.2 polish-pass-2 removed placeholder logo CSS (logo-mark / logo-
 * text / logo-suffix rules) when the SVG asset replaced the placeholder
 * mark+wordmark group.
 *
 * Rules emitted, in order:
 *   1. Sticky behavior — `position: sticky; top: 0; z-index: 10` on the
 *      outer `.ntech-site-header` group. Mirrors wireframe lines 132–137.
 *   2. SVG logo image — `display: block` on the inner img is a belt-and-
 *      suspenders kill of the inline-block baseline gap below the img
 *      (WP core's `.wp-block-site-logo { line-height: 0 }` already
 *      handles this in practice). `height: auto` doubles up on WP's own
 *      `.wp-block-site-logo img { height: auto }` so the SVG scales
 *      proportionally if the `width` attribute changes. Selector relies
 *      on the `ntech-site-header__logo` className the pattern attaches
 *      via core/site-logo's className attr — `get_block_wrapper_attributes()`
 *      propagates it to the outer `<div class="wp-block-site-logo">` so
 *      the descendant img is reachable here.
 *   3. Nav rhythm + colour — heading-font 0.95rem at 28px gap (off-scale
 *      between spacing-50/24 and spacing-60/32; wireframe line 151–153).
 *      Rest colour = base; hover colour = base-3; both states explicitly
 *      strip text-decoration, overriding B2's `a:hover { text-decoration:
 *      underline }` rule per wireframe line 155 (`.nav a:hover { color:
 *      var(--base-3); text-decoration: none }`).
 */

/* 1. Sticky-top behavior. Scoped to .ntech-site-header so the rule does
   not bind to TT5's `<header class="wp-block-template-part">` wrapper —
   that selector would catch unrelated header chrome on other sites and
   templates. */
.ntech-site-header {
	position: sticky;
	top: 0;
	z-index: 10;
}

/* 2. SVG logo image. core/site-logo wraps the img in
   `<div class="wp-block-site-logo ntech-site-header__logo"><a class="custom-logo-link" rel="home"><img class="custom-logo" .../></a></div>`.
   WP core's block stylesheet already sets `line-height: 0` on the
   wrapper + anchor and `height: auto` on the img; this rule belt-and-
   suspenders the same outcomes (display: block on the img kills any
   residual baseline gap; height: auto guarantees proportional scaling
   regardless of the `width` attr). Mirrors the same rule in
   site-footer.css. */
.ntech-site-header__logo img {
	display: block;
	height: auto;
}

/* 3a. Nav rhythm — 28px gap on the navigation block's flex container.
   `core/navigation` emits `<ul class="wp-block-navigation__container">`
   with WP-default `gap: 2em`; we override to wireframe-true 28px. */
.ntech-site-header__nav .wp-block-navigation__container {
	gap: 28px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.95rem;
}

/* 3b. Nav link colour rest — explicit base (warm off-white) on the
   contrast surface. WP nav inherits text colour from the parent group
   (textColor=base-3 on the outer header), but the wireframe wants the
   link rest one step quieter than the wordmark. */
.ntech-site-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--base);
}

/* 3c. Nav link hover — colour bump to base-3 + force no underline.
   Specificity 0,3,1 beats both TT5's `.wp-block-navigation a:hover`
   (0,1,1) and theme.json `styles.elements.link:hover` (0,1,0). */
.ntech-site-header__nav .wp-block-navigation-item__content:hover,
.ntech-site-header__nav .wp-block-navigation a:hover {
	color: var(--wp--preset--color--base-3);
	text-decoration: none;
}
