/*
 * Phone tap layer for the design's own Header and Footer, on every page (drawn and store), so they look the same
 * everywhere. Chris's ruling 1 (stacked phone rows get a real 44px) and his 2026-12-02 top-bar ruling ("Let it grow
 * 12px"). Tablet and desktop are untouched; so is everything inside the drawn page bodies.
 */
@media (max-width: 767px) {
	[data-gcx-strip] { height: 44px !important; }
	[data-gcx-strip] a { min-height: 44px; }
	header a.gcd-cart { min-width: 44px; min-height: 44px; justify-content: center; }
	[data-gcx-tap] { min-height: 44px; }
	/* Only the menu rows drawn under 44px (bullion groups and sub-links at 36px, "Shop all…" at 40px) grow; the
	   56px main rows and 48px account rows keep their drawn height (grade r1). Matched on the drawn inline value. */
	header [role="dialog"] nav a[style*="min-height:36px"], header [role="dialog"] nav a[style*="min-height: 36px"],
	header [role="dialog"] nav a[style*="min-height:40px"], header [role="dialog"] nav a[style*="min-height: 40px"] { min-height: 44px !important; }
	footer [data-fg] > div { gap: 0 !important; }
	footer [data-fg] > div > span:first-child { margin-bottom: 4px; }
	footer [data-fg] a { display: flex; align-items: center; min-height: 44px; }
	footer [data-gcx-form] { gap: 8px !important; margin-top: 12px; }
	footer [data-gcx-form] input,
	footer [data-gcx-form] button { height: 44px !important; }
	footer > div > a[aria-label] { min-height: 44px; align-items: center; }
	/* Drawn page bodies: standalone links and buttons get a 44x44 tap area (links inside a sentence stay inline and
	   are untouched, since min-height doesn't apply to inline boxes). */
	body.gcx-drawn #dc-root a, body.gcx-drawn #dc-root button { min-height: 44px; min-width: 44px; }
	body.gcx-drawn #dc-root nav[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; }
	/* The taller "Home" link must not push "/ page" to the top of the row (grade r1). */
	body.gcx-drawn #dc-root nav[aria-label="Breadcrumb"] { align-items: center; }
}
