/*
 * The design's global stylesheet, from the <style> block every page in the
 * WFUN 2026 export carries. Everything else is inline on the ported markup,
 * so this file stays small on purpose.
 */
body {
	margin: 0;
	background: #FFFFFF;
	color: #14181F;
	font-family: "Karla", system-ui, sans-serif;
}

html,
body {
	/* clip, not hidden: hidden on an ancestor breaks the sticky header. */
	overflow-x: clip;
}

a { color: #0E78A6; text-decoration: none; } /* The design's #0E7BAA, a shade darker to pass AA on the warm grey (see below). */
a:hover { color: #14181F; }
::selection { background: #FFC020; color: #14181F; }

h1, h2, h3, h4 {
	font-family: "Bricolage Grotesque", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid #0E7BAA; outline-offset: 3px; }

img { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
input::placeholder, textarea::placeholder { color: #9AA1AC; }

/* The single breakpoint the whole design uses. */
@media (max-width: 860px) {
	[data-m-hide] { display: none !important; }
	[data-m-show] { display: inline-flex !important; }
	[data-m-static] { position: static !important; }
	[data-m-grow] { flex: 1 1 auto; justify-content: center; }
	/* Build Notes, section 5: one row, logo left, Donate and menu right. The design's 176px logo wraps it at 390px. */
	body > header { gap: 12px !important; }
	body > header > a img { width: clamp(112px, 34vw, 176px) !important; }
	body > header nav { gap: 10px !important; }
	body > header nav > a:last-child { padding: 12px 18px !important; }
}

/*
 * Where the design as supplied needed correcting (QA, 2026-09-23). The sections
 * are ported verbatim with inline styles, so these override by attribute.
 */

/* Text contrast to WCAG AA: each colour darkened by the least that passes on white
   and on the warm grey. The grey stays as designed on dark panels, where it passes. */
:is([style^="color:#0E7BAA"], [style*="; color:#0E7BAA"]) { color: #0E78A6 !important; }
:is([style^="color:#B0A893"], [style*="; color:#B0A893"]) { color: #757062 !important; }
:is([style^="color:#C98B00"], [style*="; color:#C98B00"]) { color: #BC8200 !important; }
:is([style^="color:#8A919C"], [style*="; color:#8A919C"]):not([style*="background:#14181F"] *) { color: #6B7079 !important; }

/* A link inside running text needs more than colour to stand out (WCAG 1.4.1). */
p a:not([style*="display:inline-flex"]):not([style*="display:flex"]) { text-decoration: underline; text-underline-offset: 3px; }

/* The Impact strip is pulled up over the hero by clamp(8px, 8.4vw - 24px, 96px), which hid the
   slider's arrows and dots on laptop and desktop screens. The arrows sit just above it instead,
   and on wide screens the dots join them on the right: raised on the left, they would land on
   the hero's buttons. Phones and tablets keep the design's placement, which the strip never covered. */
[data-wfun-hero] > div:has(> [data-wfun-prev]) { bottom: max(clamp(30px, 5vh, 54px), calc(clamp(8px, 8.4vw - 24px, 96px) + 24px)) !important; }
@media (min-width: 861px) {
	[data-wfun-hero] > div:has(> [data-wfun-dot]) {
		left: auto !important;
		right: calc(max(20px, 5vw) + 3 * clamp(44px, 5vw, 52px) + 48px) !important;
		bottom: calc(max(clamp(30px, 5vh, 54px), calc(clamp(8px, 8.4vw - 24px, 96px) + 24px)) + clamp(44px, 5vw, 52px) / 2 - 2.5px) !important;
	}
}

/* Keyboard users land here first. */
.wfun-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 300;
	padding: 14px 22px;
	background: #14181F;
	color: #FFFFFF;
	font-weight: 700;
}
.wfun-skip:focus { left: 0; color: #FFFFFF; }

/* Printed only when WFUN Core is missing, so the site still navigates. */
.wfun-fallback { max-width: 1340px; margin: 0 auto; padding: 24px max(20px, 5vw); }
.wfun-fallback nav { display: flex; flex-wrap: wrap; gap: 18px; }
