/**
 * The Great Headphone Giveaway — Design System
 *
 * Brand tokens are derived from the existing logo and the site's legacy
 * custom CSS, so the rebuilt site keeps the exact same brand identity.
 *
 * The design tokens in section 1 mirror `theme.json`: every brand colour and
 * the font family alias the matching WordPress preset custom property
 * (`--wp--preset--color--*`, `--wp--preset--font-family--*`) with the literal
 * value kept as a fallback. `theme.json` is therefore the single source of
 * truth, while this stylesheet still renders correctly on its own.
 *
 * @package   FreeClassroomHeadphones
 * @author    Hyper Dog Media
 * @version   1.0.0
 */

/* -------------------------------------------------------------------------
 * 1. Design tokens
 * ---------------------------------------------------------------------- */

:root {
	/* Brand — sampled from logo + legacy button CSS */
	--brand-navy: var(--wp--preset--color--brand-navy, #00528f);
	--brand-navy-dark: var(--wp--preset--color--brand-navy-dark, #003d6b);
	--brand-navy-deep: var(--wp--preset--color--brand-navy-deep, #002944);
	--brand-navy-light: var(--wp--preset--color--brand-navy-light, #2b609b);
	--brand-orange: var(--wp--preset--color--brand-orange, #e85625);
	--brand-orange-dark: var(--wp--preset--color--brand-orange-dark, #d36d24);
	--brand-orange-soft: var(--wp--preset--color--brand-orange-soft, #fff1eb);
	--brand-navy-soft: var(--wp--preset--color--brand-navy-soft, #eaf2f9);

	/* Neutrals */
	--ink: var(--wp--preset--color--ink, #16232e);
	--ink-soft: var(--wp--preset--color--ink-soft, #3d4d5c);
	--muted: var(--wp--preset--color--muted, #5b6b7a);
	--line: var(--wp--preset--color--line, #e2e9f0);
	--line-strong: #cfdbe6;
	--surface: var(--wp--preset--color--surface, #ffffff);
	--surface-alt: var(--wp--preset--color--surface-alt, #f4f7fa);

	/* Typography */
	--font-sans: var(--wp--preset--font-family--cabin, "Cabin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

	/* Fluid type scale */
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	--fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
	--fs-h2: clamp(1.625rem, 1.35rem + 1.35vw, 2.5rem);
	--fs-h1: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);

	/* Spacing */
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

	/* Shape */
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-pill: 999px;

	/* Elevation */
	--shadow-sm: 0 1px 2px rgba(0, 41, 68, 0.06), 0 2px 8px rgba(0, 41, 68, 0.05);
	--shadow: 0 4px 12px rgba(0, 41, 68, 0.07), 0 12px 32px rgba(0, 41, 68, 0.08);
	--shadow-lg: 0 12px 28px rgba(0, 41, 68, 0.1), 0 28px 64px rgba(0, 41, 68, 0.12);

	/* Layout */
	--container: 1180px;
	--container-narrow: 780px;
	--header-h: 76px;
}

/* -------------------------------------------------------------------------
 * 2. Reset & base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/*
   The browser hides [hidden] with a user-agent rule, which any author
   `display` declaration outranks. Several components here set their own
   display, so the attribute is enforced once, globally, instead of being
   patched per component.
*/
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--ink-soft);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-4);
	font-weight: 700;
	line-height: 1.15;
	color: var(--brand-navy-deep);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
	margin: 0 0 var(--space-4);
	text-wrap: pretty;
}

a {
	color: var(--brand-navy);
	text-decoration-color: color-mix(in srgb, var(--brand-navy) 35%, transparent);
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
	color: var(--brand-orange);
	text-decoration-color: currentColor;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	padding-left: 1.25em;
}

li + li {
	margin-top: 0.4em;
}

strong {
	color: var(--ink);
	font-weight: 700;
}

:focus-visible {
	outline: 3px solid var(--brand-orange);
	outline-offset: 3px;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
 * 3. Layout helpers
 * ---------------------------------------------------------------------- */

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 2.5rem, var(--container-narrow));
}

.section {
	padding-block: var(--section-y);
}

.section--alt {
	background: var(--surface-alt);
}

.section__head {
	max-width: 46rem;
	margin: 0 auto var(--space-7);
	text-align: center;
}

.section__head p {
	font-size: var(--fs-lg);
	color: var(--muted);
	margin-bottom: 0;
}

.eyebrow {
	display: inline-block;
	margin-bottom: var(--space-3);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-orange);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--brand-navy);
	color: #fff;
	border-radius: 0 0 var(--radius-sm) 0;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * 4. Buttons
 * ---------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 0.85em 1.6em;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
		border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--brand-orange);
	color: #fff;
	box-shadow: 0 4px 14px rgba(232, 86, 37, 0.32);
}

.btn--primary:hover {
	background: var(--brand-orange-dark);
	color: #fff;
	box-shadow: 0 8px 22px rgba(232, 86, 37, 0.38);
}

.btn--secondary {
	background: var(--brand-navy);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 82, 143, 0.28);
}

.btn--secondary:hover {
	background: var(--brand-navy-dark);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--brand-navy);
	border-color: var(--line-strong);
}

.btn--ghost:hover {
	background: var(--brand-navy-soft);
	border-color: var(--brand-navy);
	color: var(--brand-navy);
}

.btn--on-dark {
	background: #fff;
	color: var(--brand-navy);
}

.btn--on-dark:hover {
	background: #fff;
	color: var(--brand-orange);
}

.btn--lg {
	padding: 1.05em 2.1em;
	font-size: var(--fs-lg);
}

.btn__icon {
	width: 1em;
	height: 1em;
	flex: none;
}

/* -------------------------------------------------------------------------
 * 5. Site header
 * ---------------------------------------------------------------------- */

.topbar {
	background: var(--brand-navy-deep);
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--fs-xs);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 40px;
	flex-wrap: wrap;
}

.topbar a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.topbar a:hover {
	color: #fff;
}

.topbar__meta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

.topbar__item svg {
	width: 14px;
	height: 14px;
	flex: none;
	opacity: 0.75;
}

.socials {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.socials li {
	margin: 0;
}

.socials a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.75);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
	background: var(--brand-orange);
	color: #fff;
	transform: translateY(-2px);
}

.socials svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	min-height: var(--header-h);
}

.site-logo {
	flex: none;
	display: inline-flex;
	align-items: center;
}

.site-logo img {
	width: 260px;
	max-width: 55vw;
	height: auto;
}

.primary-nav {
	margin-left: auto;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list li {
	margin: 0;
}

/* The nav CTA is a mobile-drawer affordance; the header already has one. */
.primary-nav__cta {
	display: none;
}

.primary-nav__list a {
	display: block;
	padding: 0.5rem 0.9rem;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: var(--fs-sm);
	color: var(--brand-navy-deep);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
	background: var(--brand-navy-soft);
	color: var(--brand-navy);
}

.primary-nav__list a[aria-current="page"] {
	background: var(--brand-navy-soft);
	color: var(--brand-navy);
}

.site-header__cta {
	flex: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--brand-navy-deep);
	cursor: pointer;
}

.nav-toggle svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.nav-toggle__close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

/* -------------------------------------------------------------------------
 * 6. Hero
 * ---------------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 90% at 78% 18%, rgba(232, 86, 37, 0.16), transparent 62%),
		radial-gradient(ellipse 80% 70% at 8% 8%, rgba(43, 96, 155, 0.22), transparent 60%),
		linear-gradient(158deg, var(--brand-navy-deep) 0%, var(--brand-navy) 58%, #0a6199 100%);
	color: rgba(255, 255, 255, 0.88);
	padding-block: clamp(3rem, 1.5rem + 6vw, 5.5rem);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 4px 4px;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.hero h1 {
	color: #fff;
	margin-bottom: var(--space-5);
	letter-spacing: -0.025em;
}

.hero h1 em {
	position: relative;
	font-style: normal;
	color: #ffb499;
	white-space: nowrap;
}

.hero h1 em::after {
	content: "";
	position: absolute;
	left: -0.04em;
	right: -0.04em;
	bottom: 0.05em;
	height: 0.12em;
	border-radius: var(--radius-pill);
	background: var(--brand-orange);
}

.hero__lead {
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.87);
	max-width: 34rem;
	margin-bottom: var(--space-6);
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: var(--space-5);
	padding: 0.4em 1.05em 0.4em 0.45em;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #fff;
}

.hero__badge span {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--brand-orange);
	font-size: 12px;
	line-height: 1;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-bottom: var(--space-6);
}

.hero__note {
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Hero visual — floating product cards */
.hero__visual {
	position: relative;
	aspect-ratio: 1 / 1;
	max-width: 460px;
	margin-inline: auto;
	width: 100%;
}

.hero__card {
	position: absolute;
	margin: 0;
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	padding: 6%;
}

.hero__card img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero__card--a {
	width: 58%;
	top: 4%;
	left: 2%;
	z-index: 3;
}

.hero__card--b {
	width: 44%;
	top: 34%;
	right: 0;
	z-index: 2;
}

.hero__card--c {
	width: 40%;
	bottom: 2%;
	left: 22%;
	z-index: 4;
}

.hero__blob {
	position: absolute;
	inset: 12% 8% 8% 12%;
	border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
	z-index: 1;
}

/* -------------------------------------------------------------------------
 * 6b. Slider band
 * The rotating header from the original site, kept in the same place —
 * directly under the masthead — and using the same two photographs.
 * ---------------------------------------------------------------------- */

.slider-band {
	padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
	background: var(--surface);
}

.slider-band__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	background: var(--surface-alt);
	aspect-ratio: 1000 / 222;
}

.slider-band__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.slider-band__slide.is-active {
	opacity: 1;
}

html:not(.js-slider) .slider-band__slide:first-child {
	opacity: 1;
}

.slider-band__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.slider-band__controls {
	position: absolute;
	right: var(--space-4);
	bottom: var(--space-4);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: 0.4rem 0.6rem;
	border-radius: var(--radius-pill);
	background: rgba(0, 41, 68, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.slider-arrow {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.slider-arrow:hover {
	background: var(--brand-orange);
	border-color: var(--brand-orange);
}

.slider-arrow svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.slider-dots {
	display: flex;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slider-dots li {
	margin: 0;
}

.slider-dots button {
	width: 26px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background-color 0.25s ease, width 0.25s ease;
}

.slider-dots button:hover {
	background: rgba(255, 255, 255, 0.7);
}

.slider-dots button[aria-current="true"] {
	width: 40px;
	background: var(--brand-orange);
}

/* -------------------------------------------------------------------------
 * 7. Trust strip
 * ---------------------------------------------------------------------- */

.trust {
	background: var(--brand-navy-deep);
	color: rgba(255, 255, 255, 0.85);
	padding-block: var(--space-5);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-5);
	text-align: center;
}

.trust__item strong {
	display: block;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
	line-height: 1.1;
	color: #fff;
	font-weight: 700;
}

.trust__item span {
	display: block;
	margin-top: 0.25rem;
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------------------
 * 8. Steps
 * ---------------------------------------------------------------------- */

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-5);
	counter-reset: step;
}

.step {
	position: relative;
	padding: var(--space-6) var(--space-5) var(--space-5);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: var(--line-strong);
}

.step__num {
	counter-increment: step;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: var(--space-4);
	border-radius: 50%;
	background: var(--brand-navy-soft);
	color: var(--brand-navy);
	font-weight: 700;
	font-size: 1.1rem;
}

.step__num::before {
	content: counter(step);
}

.step h3 {
	margin-bottom: var(--space-2);
}

.step p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 9. Prize cards
 * ---------------------------------------------------------------------- */

.prizes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-5);
}

.prize {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prize:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.prize__media {
	--prize-media-h: 240px;
	position: relative;
	overflow: hidden;
	height: var(--prize-media-h);
	background: #fff;
	display: grid;
	place-items: center;
	padding: var(--space-5);
	border-bottom: 1px solid var(--line);
}

/* Percentage heights do not resolve reliably for a centred grid item,
   so the cap is expressed in absolute units instead. */
.prize__media img {
	width: auto;
	max-width: 100%;
	max-height: calc(var(--prize-media-h) - 2 * var(--space-5));
	object-fit: contain;
	transition: transform 0.35s ease;
}

.prize:hover .prize__media img {
	transform: scale(1.05);
}

.prize__qty {
	position: absolute;
	z-index: 2;
	top: var(--space-3);
	left: var(--space-3);
	box-shadow: 0 2px 8px rgba(0, 41, 68, 0.18);
	padding: 0.3em 0.85em;
	border-radius: var(--radius-pill);
	background: var(--brand-orange);
	color: #fff;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.03em;
}

.prize__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--space-5);
}

.prize__option {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-orange);
	margin-bottom: 0.4rem;
}

.prize h3 {
	font-size: 1.125rem;
	margin-bottom: 0.35rem;
}

.prize__brand {
	font-size: var(--fs-sm);
	color: var(--muted);
	margin-bottom: var(--space-4);
}

.prize__link {
	margin-top: auto;
	font-weight: 700;
	font-size: var(--fs-sm);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.prize__link svg {
	width: 0.9em;
	height: 0.9em;
	transition: transform 0.2s ease;
}

.prize__link:hover svg {
	transform: translateX(3px);
}

/* -------------------------------------------------------------------------
 * 10. Eligibility / split feature
 * ---------------------------------------------------------------------- */

.split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.checklist {
	list-style: none;
	margin: 0 0 var(--space-6);
	padding: 0;
}

.checklist li {
	position: relative;
	margin: 0 0 var(--space-4);
	padding-left: 2.35rem;
}

.checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;
	background: var(--brand-orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E85625' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

.panel {
	padding: var(--space-6);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.panel--navy {
	background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
	border-color: transparent;
	color: rgba(255, 255, 255, 0.85);
}

.panel--navy h3,
.panel--navy h2 {
	color: #fff;
}

.panel__stat {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding-block: var(--space-4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel__stat:last-of-type {
	border-bottom: 0;
}

.panel__stat b {
	font-size: 1.5rem;
	color: #fff;
	flex: none;
	min-width: 6.25rem;
}

.panel__stat span {
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------------------------
 * 11. Winner cards
 * ---------------------------------------------------------------------- */

.winners {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-5);
}

.winner-card {
	display: flex;
	flex-direction: column;
	padding: var(--space-5);
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 4px solid var(--brand-orange);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.winner-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.winner-card__date {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-orange);
	margin-bottom: var(--space-3);
}

.winner-card h3 {
	font-size: 1.0625rem;
	margin-bottom: var(--space-2);
}

.winner-card h3 a {
	text-decoration: none;
	color: inherit;
}

.winner-card h3 a:hover {
	color: var(--brand-orange);
}

.winner-card__org {
	font-size: var(--fs-sm);
	color: var(--muted);
	margin-bottom: var(--space-4);
}

.winner-card blockquote {
	margin: 0 0 var(--space-4);
	padding-left: var(--space-4);
	border-left: 2px solid var(--line-strong);
	font-size: var(--fs-sm);
	font-style: italic;
	color: var(--ink-soft);
}

.winner-card__tag {
	margin-top: auto;
	align-self: flex-start;
	padding: 0.28em 0.8em;
	border-radius: var(--radius-pill);
	background: var(--brand-navy-soft);
	color: var(--brand-navy);
	font-size: var(--fs-xs);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * 12. Partners
 * ---------------------------------------------------------------------- */

.partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4) var(--space-7);
	align-items: center;
}

.partners__item {
	font-size: var(--fs-xl);
	font-weight: 700;
	color: var(--brand-navy);
	opacity: 0.72;
	letter-spacing: -0.01em;
	transition: opacity 0.2s ease;
}

.partners__item:hover {
	opacity: 1;
}

/* -------------------------------------------------------------------------
 * 13. FAQ (accordion)
 * ---------------------------------------------------------------------- */

.faq {
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.faq__item {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	margin-bottom: var(--space-3);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open] {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-sm);
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-5);
	font-weight: 700;
	font-size: var(--fs-lg);
	color: var(--brand-navy-deep);
	cursor: pointer;
	list-style: none;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__item summary::after {
	content: "";
	flex: none;
	width: 1.4rem;
	height: 1.4rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300528F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.25s ease;
}

.faq__item[open] summary::after {
	transform: rotate(180deg);
}

.faq__body {
	padding: 0 var(--space-5) var(--space-5);
}

.faq__body p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 14. CTA band
 * ---------------------------------------------------------------------- */

.cta-band {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 100% at 85% 50%, rgba(232, 86, 37, 0.28), transparent 60%),
		linear-gradient(150deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	padding-block: var(--section-y);
}

.cta-band h2 {
	color: #fff;
	max-width: 22ch;
	margin-inline: auto;
}

.cta-band p {
	font-size: var(--fs-lg);
	max-width: 46ch;
	margin-inline: auto;
	margin-bottom: var(--space-6);
	color: rgba(255, 255, 255, 0.82);
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * 15. Page header (inner pages)
 * ---------------------------------------------------------------------- */

.page-hero {
	background:
		radial-gradient(ellipse 60% 120% at 88% 0%, rgba(232, 86, 37, 0.14), transparent 60%),
		linear-gradient(150deg, var(--brand-navy-deep), var(--brand-navy));
	color: rgba(255, 255, 255, 0.85);
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.page-hero h1 {
	color: #fff;
	margin-bottom: var(--space-3);
	max-width: 24ch;
}

.page-hero p {
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.8);
	max-width: 52ch;
	margin-bottom: 0;
}

.breadcrumb {
	margin-bottom: var(--space-4);
	font-size: var(--fs-sm);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
	content: "/";
	color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * 16. Prose (article body)
 * ---------------------------------------------------------------------- */

.prose {
	font-size: var(--fs-lg);
}

.prose h2 {
	margin-top: var(--space-7);
	font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
}

.prose h2:first-child {
	margin-top: 0;
}

.prose h3 {
	margin-top: var(--space-6);
}

.prose ul {
	margin-bottom: var(--space-5);
}

.prose blockquote {
	margin: var(--space-6) 0;
	padding: var(--space-5) var(--space-6);
	background: var(--brand-navy-soft);
	border-left: 4px solid var(--brand-navy);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: italic;
	color: var(--ink);
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.callout {
	display: flex;
	gap: var(--space-4);
	margin: var(--space-6) 0;
	padding: var(--space-5);
	background: var(--brand-orange-soft);
	border: 1px solid rgba(232, 86, 37, 0.22);
	border-radius: var(--radius);
	font-size: var(--fs-base);
}

.callout svg {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--brand-orange);
}

.callout p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 17. Winner archive list + filters
 * ---------------------------------------------------------------------- */

.filters {
	margin-bottom: var(--space-6);
}

.filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: center;
}

.filters__list li {
	margin: 0;
}

.filters__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 1.1em;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--brand-navy-deep);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filters__link:hover,
.filters__link:focus-visible {
	border-color: var(--brand-navy);
	background: var(--brand-navy-soft);
	color: var(--brand-navy-deep);
	text-decoration: none;
}

.filters__count {
	min-width: 1.6em;
	padding: 0.1em 0.45em;
	border-radius: var(--radius-pill);
	background: var(--brand-navy-soft);
	color: var(--brand-navy);
	font-size: var(--fs-xs);
	font-weight: 700;
	text-align: center;
}

.filters__link[aria-current="page"] {
	background: var(--brand-navy);
	border-color: var(--brand-navy);
	color: #fff;
}

.filters__link[aria-current="page"] .filters__count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: var(--space-5);
}

.archive-empty {
	text-align: center;
	color: var(--muted);
	padding-block: var(--space-7);
}

/* -------------------------------------------------------------------------
 * 18. Footer
 * ---------------------------------------------------------------------- */

.site-footer {
	background: var(--brand-navy-deep);
	color: rgba(255, 255, 255, 0.66);
	padding-top: var(--space-8);
	font-size: var(--fs-sm);
}

.site-footer h2,
.site-footer h3 {
	color: #fff;
	font-size: var(--fs-base);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: var(--space-4);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.2fr;
	gap: var(--space-7);
	padding-bottom: var(--space-7);
}

.footer__logo {
	width: 240px;
	max-width: 100%;
	margin-bottom: var(--space-4);
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer__list li {
	margin: 0 0 0.6rem;
}

.footer__contact {
	list-style: none;
	margin: 0 0 var(--space-5);
	padding: 0;
}

.footer__contact li {
	display: flex;
	gap: 0.6rem;
	margin: 0 0 0.7rem;
}

.footer__contact svg {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.2rem;
	opacity: 0.6;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-block: var(--space-5);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.5);
}

.footer__bottom p {
	margin: 0;
}

.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--brand-navy);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.to-top:hover {
	background: var(--brand-orange);
}

.to-top svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}

/* -------------------------------------------------------------------------
 * 19. Animation states
 * Elements only start hidden when JS is available, so the page degrades
 * gracefully with scripting disabled.
 * ---------------------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	will-change: transform, opacity;
}

/* -------------------------------------------------------------------------
 * 20. Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.prizes,
	.winners {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-6);
	}
}

@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__lead {
		margin-inline: auto;
	}

	.hero__actions {
		justify-content: center;
	}

	.hero__visual {
		max-width: 330px;
	}

	.slider-band__frame {
		aspect-ratio: 16 / 7;
	}

	.split {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.site-header__cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
		order: 3;
	}

	.primary-nav {
		position: fixed;
		inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		margin: 0;
		padding: var(--space-4) 1.25rem var(--space-6);
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	}

	.primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.primary-nav__list a {
		padding: 0.85rem 1rem;
		border-radius: var(--radius-sm);
		font-size: var(--fs-base);
	}

	.primary-nav__cta {
		display: block;
		margin-top: var(--space-4);
	}

	.primary-nav__cta .btn {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4);
		text-align: left;
	}

	.topbar__inner {
		justify-content: center;
		padding-block: 0.5rem;
	}

	.topbar__meta {
		gap: 0.9rem;
		justify-content: center;
	}
}

@media (max-width: 620px) {
	.prizes,
	.winners {
		grid-template-columns: 1fr;
	}

	.footer__grid {
		grid-template-columns: 1fr;
	}

	.hero__actions .btn,
	.cta-band__actions .btn {
		width: 100%;
	}

	.hero__visual {
		max-width: 250px;
	}

	.slider-band__frame {
		aspect-ratio: 4 / 3;
	}

	.slider-band__controls {
		right: 50%;
		transform: translateX(50%);
	}

	.panel {
		padding: var(--space-5);
	}
}

@media (max-width: 420px) {
	.container {
		width: min(100% - 1.75rem, var(--container));
	}

	.site-logo img {
		width: 190px;
	}
}

/* -------------------------------------------------------------------------
 * 21. Motion & print preferences
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}

	.slider-band__slide {
		transform: none;
	}
}

@media print {
	.topbar,
	.site-header,
	.to-top,
	.cta-band,
	.hero__visual {
		display: none !important;
	}

	body {
		color: #000;
	}
}

/* -------------------------------------------------------------------------
 * 22. Finishing layer
 * Brand-derived ornament and the small details that lift the page.
 * ---------------------------------------------------------------------- */

/* The logo's headphone band, reused as a quiet section ornament. */
.arc-mark {
	display: block;
	width: 56px;
	height: 28px;
	margin: 0 auto var(--space-4);
	color: var(--brand-orange);
}

.arc-mark svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
}

/* Dark surfaces get a faint tooth so large fills do not read as flat plastic. */
.cta-band::before,
.site-footer::before,
.trust::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 4px 4px;
}

.cta-band,
.site-footer,
.trust {
	position: relative;
}

.cta-band > *,
.site-footer > *,
.trust > * {
	position: relative;
	z-index: 1;
}

/* Steps: a hairline rail ties the sequence together on wide screens. */
.steps {
	position: relative;
}

@media (min-width: 901px) {
	.steps::before {
		content: "";
		position: absolute;
		top: 3.9rem;
		left: 12%;
		right: 12%;
		height: 1px;
		background: linear-gradient(to right, transparent, var(--line-strong) 12%,
			var(--line-strong) 88%, transparent);
	}
}

.step {
	position: relative;
	z-index: 1;
}

.step__num {
	border: 1px solid var(--line-strong);
	background: #fff;
	box-shadow: 0 0 0 6px var(--surface-alt);
}

.section--alt .step__num {
	box-shadow: 0 0 0 6px var(--surface);
}

/* Prize card: an accent rail that only appears on interaction. */
.prize {
	position: relative;
}

.prize::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--brand-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.prize:hover::after,
.prize:focus-within::after {
	transform: scaleX(1);
}

/* Winner card: an oversized quote glyph, set behind the text. */
.winner-card blockquote {
	position: relative;
}

.winner-card blockquote::before {
	content: "\201C";
	position: absolute;
	top: -0.55em;
	left: 0.15em;
	font-size: 3.2rem;
	line-height: 1;
	color: var(--brand-navy-soft);
	z-index: -1;
}

.winner-card {
	isolation: isolate;
}

/* Optical alignment for the section intro. */
.section__head .eyebrow {
	margin-bottom: var(--space-2);
}

/* Links inside prose get a brand underline that thickens on hover. */
.prose a:not(.btn) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
	text-decoration-thickness: 2px;
}

/* Figure used on the Enter to Win page. */
.figure-band {
	display: grid;
	gap: var(--space-5);
	justify-items: center;
	text-align: center;
}

.figure-band img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.entry-button {
	display: inline-block;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-button:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

/* 404 */
.error-page {
	text-align: center;
	padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.error-page__code {
	font-size: clamp(4rem, 3rem + 8vw, 8rem);
	font-weight: 700;
    line-height: 1;
	color: var(--brand-navy-soft);
	margin-bottom: var(--space-4);
}

/* Post pager on single winner posts. */
.post-pager {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-7);
	padding-top: var(--space-6);
	border-top: 1px solid var(--line);
}

.post-pager .btn {
	font-size: var(--fs-sm);
	padding: 0.7em 1.2em;
}

/* Enter to Win intro block. */
.figure-band img,
.entry-button img {
	max-width: 100%;
	height: auto;
}

.entry-intro {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.entry-intro__mark {
	display: block;
	padding: var(--space-5);
	border-radius: var(--radius);
	background: var(--surface-alt);
	transition: transform 0.25s ease;
}

.entry-intro__mark:hover {
	transform: translateY(-3px);
}

.entry-intro__body p {
	font-size: var(--fs-lg);
}

.entry-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: center;
	margin-bottom: 0;
}

@media (max-width: 760px) {
	.entry-intro {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.entry-intro__mark {
		max-width: 190px;
		padding: var(--space-4);
	}

	.entry-intro__actions {
		justify-content: center;
	}
}

/* -------------------------------------------------------------------------
 * 23. WordPress integration
 *
 * Everything below exists so the design system above survives contact with
 * WordPress: core alignment classes, editor block output, accessibility
 * helpers, comments/gallery markup, search, pagination and the admin bar.
 * Only the tokens declared in section 1 are used — no new colours.
 * ---------------------------------------------------------------------- */

/* 23.1 Core alignment ---------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0 var(--space-5) var(--space-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--space-4) var(--space-5);
}

.aligncenter {
	display: block;
	margin-inline: auto;
	margin-bottom: var(--space-4);
}

.alignnone {
	display: block;
	margin-bottom: var(--space-4);
}

.alignwide {
	width: min(100vw - 2.5rem, var(--container));
	max-width: none;
	margin-inline: auto;
	margin-block: var(--space-6);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	margin-block: var(--space-6);
}

/* Inside the narrow reading column the wide/full escapes are neutralised so
 * text pages keep a single measure. */
.container--narrow .alignwide,
.container--narrow .alignfull {
	width: 100%;
	margin-inline: 0;
}

.alignfull img,
.alignwide img {
	width: 100%;
}

@media (max-width: 760px) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: auto;
	}
}

/* 23.2 Captions ---------------------------------------------------------- */

.wp-caption {
	max-width: 100%;
	margin-bottom: var(--space-5);
}

.wp-caption img {
	border-radius: var(--radius-sm);
}

.wp-caption-text,
figcaption {
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	color: var(--muted);
	text-align: center;
}

/* 23.3 Accessibility helpers --------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal;
}

.screen-reader-text:focus {
	position: absolute !important;
	z-index: 999;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip-path: none;
	overflow: visible;
	background: var(--brand-navy);
	color: #fff;
	border-radius: 0 0 var(--radius-sm) 0;
	font-size: var(--fs-sm);
	font-weight: 700;
	text-decoration: none;
}

/* 23.4 Post states (required by theme review) ---------------------------- */

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

/* 23.5 Galleries --------------------------------------------------------- */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-4);
	margin: var(--space-6) 0;
	padding: 0;
	list-style: none;
}

.gallery-item {
	margin: 0;
	text-align: center;
}

.gallery-item img {
	width: 100%;
	border-radius: var(--radius-sm);
}

.gallery-caption {
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	color: var(--muted);
}

/* 23.6 Entry content (the_content) --------------------------------------- */

.entry-content {
	font-size: var(--fs-lg);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content p {
	margin: 0 0 var(--space-4);
}

.entry-content h2 {
	margin-top: var(--space-7);
	font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
}

.entry-content h2:first-child,
.entry-content h3:first-child {
	margin-top: 0;
}

.entry-content h3 {
	margin-top: var(--space-6);
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: var(--space-5);
}

.entry-content ul,
.entry-content ol {
	margin-bottom: var(--space-5);
}

.entry-content blockquote {
	margin: var(--space-6) 0;
	padding: var(--space-5) var(--space-6);
	background: var(--brand-navy-soft);
	border-left: 4px solid var(--brand-navy);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: italic;
	color: var(--ink);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-content figure {
	margin: var(--space-6) 0;
}

.entry-content hr {
	margin: var(--space-7) 0;
	border: 0;
	border-top: 1px solid var(--line);
}

/* Links inside the editor body match the prose underline treatment. */
.entry-content a:not(.btn):not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:not(.btn):not(.wp-block-button__link):hover {
	text-decoration-thickness: 2px;
}

/* Wide tables scroll inside their own container rather than the page. */
.entry-content .table-scroll,
.entry-content .wp-block-table {
	overflow-x: auto;
	margin: var(--space-6) 0;
	-webkit-overflow-scrolling: touch;
}

.entry-content table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	font-size: var(--fs-base);
}

.entry-content th,
.entry-content td {
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--surface-alt);
	color: var(--brand-navy-deep);
	font-weight: 700;
}

.entry-content caption {
	margin-bottom: var(--space-2);
	font-size: var(--fs-sm);
	color: var(--muted);
	text-align: left;
}

/* 23.7 Core block basics ------------------------------------------------- */

.wp-block-image {
	margin: var(--space-6) 0;
}

.wp-block-image img {
	border-radius: var(--radius-sm);
}

.wp-block-quote {
	margin: var(--space-6) 0;
	padding: var(--space-5) var(--space-6);
	background: var(--brand-navy-soft);
	border-left: 4px solid var(--brand-navy);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--ink);
}

.wp-block-quote cite {
	display: block;
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	font-style: normal;
	color: var(--muted);
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85em 1.6em;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--brand-orange);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.wp-block-button__link:hover {
	background: var(--brand-orange-dark);
	color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--brand-navy);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--brand-navy-soft);
	border-color: var(--brand-navy);
	color: var(--brand-navy);
}

.wp-block-separator {
	width: 100%;
	max-width: 8rem;
	margin: var(--space-7) auto;
	border: 0;
	border-top: 2px solid var(--line-strong);
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

.wp-block-list {
	margin-bottom: var(--space-5);
	padding-left: 1.25em;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--line);
	text-align: left;
}

.wp-block-table th {
	background: var(--surface-alt);
	color: var(--brand-navy-deep);
}

/* 23.8 Search form ------------------------------------------------------- */

.search-form {
	display: flex;
	gap: var(--space-3);
	align-items: center;
	width: 100%;
}

.search-form label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.search-form .search-field,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.75em 1.25em;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font: inherit;
	font-size: var(--fs-base);
	color: var(--ink);
	transition: border-color 0.18s ease;
}

.search-form .search-field::placeholder,
.search-form input[type="search"]::placeholder {
	color: var(--muted);
}

.search-form .search-field:focus,
.search-form input[type="search"]:focus {
	border-color: var(--brand-navy);
}

.search-form .search-submit,
.search-form input[type="submit"],
.search-form button[type="submit"] {
	flex: none;
	padding: 0.8em 1.6em;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--brand-navy);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.search-form .search-submit:hover,
.search-form input[type="submit"]:hover,
.search-form button[type="submit"]:hover {
	background: var(--brand-navy-dark);
}

@media (max-width: 480px) {
	.search-form {
		flex-direction: column;
		align-items: stretch;
	}

	.search-form .search-submit,
	.search-form input[type="submit"],
	.search-form button[type="submit"] {
		width: 100%;
	}
}

/* 23.9 Pagination -------------------------------------------------------- */

.navigation.pagination {
	margin-top: var(--space-7);
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.55em 1em;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--brand-navy);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-numbers:hover {
	background: var(--brand-navy-soft);
	border-color: var(--brand-navy);
	color: var(--brand-navy);
}

.page-numbers.current {
	background: var(--brand-navy);
	border-color: var(--brand-navy);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--muted);
}

.page-numbers.dots:hover {
	background: transparent;
	border-color: transparent;
}

.pagination .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* 23.10 Admin bar -------------------------------------------------------- */

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* 23.11 Edit link -------------------------------------------------------- */

.post-edit-link {
	display: inline-block;
	margin-top: var(--space-4);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
}

.post-edit-link:hover {
	color: var(--brand-orange);
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * 24. Template utilities
 * Small helpers used by the PHP templates where the static design carried an
 * inline style. Keeping them here means no template ships inline CSS.
 * ---------------------------------------------------------------------- */

.fchg-center {
	text-align: center;
	margin: 0;
}

.fchg-center--spaced {
	margin-top: 2.5rem;
}

.post-edit-link-wrap {
	margin-block: var(--space-5);
	text-align: right;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--space-5);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * 25. Legacy pasted content
 * Some historic posts were pasted from a word processor and carry inline
 * font declarations (11pt Calibri) that break the reading rhythm. The family
 * and size are normalised; any colour the author chose is left alone.
 * ---------------------------------------------------------------------- */

.prose [style*="font-family"],
.entry-content [style*="font-family"] {
	font-family: inherit !important;
}

.prose [style*="font-size"],
.entry-content [style*="font-size"] {
	font-size: inherit !important;
}

/* -------------------------------------------------------------------------
 * 26. Utilities added for inline-style removal
 * One class per inline style value pulled out of the PHP templates.
 * ---------------------------------------------------------------------- */

.fchg-lead {
	font-size: var(--fs-lg);
}

.fchg-error-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.fchg-mt-md {
	margin-top: 2rem;
}

.fchg-mt-xl {
	margin-top: 3.5rem;
}

.fchg-mb-0 {
	margin-bottom: 0;
}

.fchg-img-fluid {
	width: 100%;
	height: auto;
}

.fchg-img-fluid--480 {
	max-width: 480px;
}

.fchg-img-fluid--320 {
	max-width: 320px;
}

/* 27. Clickable product photograph and title */

/*
   The photograph keeps its place as the grid item so the card layout is
   unchanged; the anchor only carries the click target.
*/
.prize__media-link {
	display: contents;
}

.prize__title-link {
	color: inherit;
	text-decoration: none;
}

.prize__title-link:hover,
.prize__title-link:focus-visible {
	color: var(--brand-orange);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* The photograph is not focusable, so the card shows focus from the title. */
.prize:focus-within .prize__media img {
	transform: scale(1.05);
}
