/**
 * Gamigo - theme stylesheet.
 *
 *   01  Reset and base
 *   02  Typography
 *   03  Layout
 *   04  Buttons and links
 *   05  Eyebrows, flags, pills
 *   06  Cards and surfaces
 *   07  Header and navigation
 *   08  Hero
 *   09  Homepage sections
 *   10  Page templates
 *   11  Editorial content
 *   12  Forms
 *   13  Footer
 *   14  Motion and utilities
 *
 * Every colour, radius and font resolves to a custom property generated by
 * inc/customizer/css.php from the Customizer settings.
 *
 * The repeated visual device is the route line: the dashed connector that runs
 * between the three moves and down the loop. It is the product idea - discover
 * online, meet offline - drawn rather than described.
 */

/* ==========================================================================
   01  Reset and base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	color-scheme: var(--g-scheme, dark);
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background-color: var(--g-bg);
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: var(--g-fs);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* One fixed ambient wash. No blur filters, nothing animated. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: var(--g-glow, 0.55);
	background:
		radial-gradient(62rem 44rem at 8% -10%, rgb(var(--g-accent-rgb) / 0.20), transparent 62%),
		radial-gradient(48rem 36rem at 96% 2%, rgb(var(--g-cyan-rgb) / 0.10), transparent 60%),
		radial-gradient(54rem 42rem at 46% 106%, rgb(var(--g-magenta-rgb) / 0.09), transparent 66%);
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	padding-inline-start: 1.25em;
}

hr {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--g-line-strong), transparent);
	margin: 3rem 0;
}

::selection {
	background: rgb(var(--g-accent-rgb) / 0.34);
	color: var(--g-text);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--g-cyan);
	outline-offset: 3px;
	border-radius: var(--g-r-sm);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 0.85rem 1.4rem;
	background: var(--g-action);
	color: var(--g-on-action);
	font-weight: 600;
	border-radius: 0 0 var(--g-r) 0;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
}

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

.is-hidden {
	display: none !important;
}

/* ==========================================================================
   02  Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3 {
	font-family: var(--g-font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.024em;
	margin: 0 0 0.6em;
	color: var(--g-text);
	text-wrap: balance;
}

h1, .h1 { font-size: var(--g-h1); line-height: 1.04; }
h2, .h2 { font-size: var(--g-h2); }
h3, .h3 { font-size: var(--g-h3); }
h4 { font-size: var(--g-h4); }
h5 { font-size: var(--g-h5); }
h6 { font-size: var(--g-h6); letter-spacing: 0; }

p {
	margin: 0 0 1.15em;
}

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

a {
	color: var(--g-text);
	text-decoration-color: rgb(var(--g-link-rgb) / 0.5);
	text-underline-offset: 0.18em;
	transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
	color: var(--g-link);
	text-decoration-color: currentColor;
}

strong, b { font-weight: 700; }
small { font-size: 0.84em; }

code, kbd, pre, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

blockquote {
	margin: 2rem 0;
	padding: 0.3rem 0 0.3rem 1.5rem;
	border-inline-start: 3px solid var(--g-accent);
	color: var(--g-muted);
	font-size: 1.06em;
}

.lede {
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
	line-height: 1.6;
	color: var(--g-muted);
	max-width: 62ch;
}

.muted { color: var(--g-muted); }

.gradient-text {
	background: linear-gradient(100deg, var(--g-magenta) 0%, var(--g-accent) 48%, var(--g-cyan) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-block-end: 0.06em;
}

/* ==========================================================================
   03  Layout
   ========================================================================== */

.wrap {
	width: min(100% - 2.5rem, 1160px);
	margin-inline: auto;
}

.wrap--wide { width: min(100% - 2.5rem, 1320px); }
.wrap--narrow { width: min(100% - 2.5rem, 800px); }

.section {
	padding-block: clamp(3.25rem, 2.2rem + 3.6vw, 6rem);
	position: relative;
}

.section--tight {
	padding-block: clamp(2.5rem, 1.9rem + 2.2vw, 4rem);
}

.section--sunken {
	background: linear-gradient(180deg, transparent, rgb(var(--g-text-rgb) / 0.028), transparent);
}

.head {
	max-width: 60ch;
	margin-bottom: clamp(2rem, 1.5rem + 1.6vw, 3rem);
}

.head--center {
	margin-inline: auto;
	text-align: center;
}

.head__title { margin-bottom: 0.45em; }

.head__sub {
	color: var(--g-muted);
	font-size: 1.06em;
	margin: 0;
}

.grid {
	display: grid;
	gap: 1.15rem;
}

@media (min-width: 640px) {
	.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
	.grid { gap: 1.5rem; }
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.split {
	display: grid;
	gap: clamp(2rem, 1.5rem + 2.6vw, 3.5rem);
	align-items: start;
}

@media (min-width: 940px) {
	.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
	.split--wide { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; }
}

/* ==========================================================================
   04  Buttons and links
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	padding: 0.85em 1.65em;
	min-height: 48px;
	font-family: var(--g-font-display);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--g-r-pill);
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
	background: var(--g-action);
	color: var(--g-on-action);
	box-shadow: 0 12px 30px -16px rgb(var(--g-action-rgb) / calc(0.9 * var(--g-glow, 0.55) + 0.3));
}

.btn--primary:hover {
	color: var(--g-on-action);
	box-shadow: 0 18px 40px -16px rgb(var(--g-action-rgb) / calc(1.1 * var(--g-glow, 0.55) + 0.34));
}

.btn--ghost {
	background: rgb(var(--g-text-rgb) / 0.04);
	color: var(--g-text);
	border-color: var(--g-line-strong);
}

.btn--ghost:hover {
	color: var(--g-text);
	border-color: var(--g-accent);
	background: rgb(var(--g-accent-rgb) / 0.1);
}

.btn--sm {
	padding: 0.62em 1.15em;
	min-height: 42px;
	font-size: 0.92rem;
}

.btn--block { display: flex; width: 100%; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
}

.btn-row--center { justify-content: center; }

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-family: var(--g-font-display);
	font-weight: 600;
	font-size: 0.97rem;
	color: var(--g-link);
	text-decoration: none;
}

.arrow-link::after {
	content: "\2192";
	transition: transform 0.2s ease;
}

.arrow-link:hover::after { transform: translateX(4px); }

.text-link {
	font-family: var(--g-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--g-muted);
	text-decoration: none;
	padding: 0.5rem 0.6rem;
}

.text-link:hover { color: var(--g-text); }

/* ==========================================================================
   05  Eyebrows, flags, pills
   ========================================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-family: var(--g-font-display);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--g-muted);
	margin: 0 0 1rem;
}

.eyebrow::before {
	content: "";
	width: 1.85rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--g-magenta), var(--g-accent), var(--g-cyan));
}

.head--center .eyebrow { justify-content: center; }

.flag-row { text-align: center; margin: 0 0 1rem; }

.flag {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 1.15em;
	border-radius: var(--g-r-pill);
	border: 1px solid rgb(var(--g-cyan-rgb) / 0.4);
	background: rgb(var(--g-cyan-rgb) / 0.1);
	color: var(--g-text);
	font-family: var(--g-font-display);
	font-size: 0.88rem;
	font-weight: 600;
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 0.5em 1em;
	min-height: 40px;
	border-radius: var(--g-r-pill);
	border: 1px solid var(--g-line-strong);
	color: var(--g-muted);
	font-family: var(--g-font-display);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.pill:hover {
	color: var(--g-text);
	border-color: var(--g-accent);
	background: rgb(var(--g-accent-rgb) / 0.12);
}

.meta-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	margin: 1.25rem 0 0;
	font-size: 0.88rem;
	color: var(--g-muted);
}

.meta-line__note {
	font-family: var(--g-font-display);
	font-weight: 600;
	color: var(--g-text);
}

.meta-line__cities { color: var(--g-muted); }

.meta-line__label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.74rem;
	color: var(--g-faint);
	margin-inline-end: 0.35rem;
}

.btn-row--center + .meta-line { justify-content: center; }

/* ==========================================================================
   06  Cards and surfaces
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.3rem, 1.1rem + 0.6vw, 1.75rem);
	background: var(--g-surface);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-lg);
	box-shadow: var(--g-shadow-sm);
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgb(var(--g-accent-rgb) / 0.44);
	box-shadow: var(--g-shadow);
}

.card--glow::before {
	content: "";
	position: absolute;
	inset-inline: 14%;
	inset-block-start: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--g-accent), transparent);
	opacity: calc(var(--g-glow, 0.55) + 0.25);
}

.card--row {
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
}

.card__icon {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border-radius: var(--g-r);
	border: 1px solid var(--g-line-strong);
	background: linear-gradient(150deg, rgb(var(--g-accent-rgb) / 0.18), rgb(var(--g-cyan-rgb) / 0.07));
	color: var(--g-link);
}

.card__icon svg { width: 1.4rem; height: 1.4rem; }

.card__title { font-size: var(--g-h5); margin: 0; }

.card__text {
	color: var(--g-muted);
	margin: 0;
	font-size: 0.97rem;
}

.frame {
	border-radius: var(--g-r-lg);
	border: 1px solid var(--g-line);
	background: var(--g-surface);
	overflow: hidden;
	box-shadow: var(--g-shadow);
}

.panel {
	position: relative;
	padding: clamp(1.6rem, 1.2rem + 2.2vw, 3rem);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-lg);
	background:
		linear-gradient(150deg, rgb(var(--g-accent-rgb) / 0.09), transparent 58%),
		var(--g-surface);
	overflow: hidden;
}

.panel--alt {
	background:
		linear-gradient(150deg, rgb(var(--g-cyan-rgb) / 0.1), transparent 58%),
		var(--g-surface);
}

.notice-card {
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-r);
	background: rgb(var(--g-text-rgb) / 0.03);
	color: var(--g-muted);
	font-size: 0.95rem;
}

.notice-card--dashed {
	border-style: dashed;
	margin-bottom: 2.25rem;
}

.disclaimer {
	margin-block-start: 2rem;
	padding: 1.1rem 1.3rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	background: rgb(var(--g-text-rgb) / 0.025);
	color: var(--g-muted);
	font-size: 0.88rem;
	line-height: 1.6;
}

.note {
	margin-block-start: 1.75rem;
	color: var(--g-muted);
	font-size: 0.92rem;
	max-width: 72ch;
}

.note--center { margin-inline: auto; text-align: center; }

.statement {
	margin-block-start: 2.25rem;
	text-align: center;
	font-family: var(--g-font-display);
	font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
	font-weight: 600;
	line-height: 1.45;
	color: var(--g-text);
	max-width: 46ch;
	margin-inline: auto;
}

.statement--lg {
	font-size: clamp(1.15rem, 1rem + 0.9vw, 1.55rem);
	max-width: 54ch;
}

/* ==========================================================================
   07  Header and navigation
   ========================================================================== */

:root { --g-header-h: 76px; }

.site-header {
	position: relative;
	z-index: 60;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease;
}

.site-header--sticky { position: sticky; inset-block-start: 0; }

/*
 * The blur lives on a pseudo-element, never on the header itself: a non-none
 * backdrop-filter would make the header the containing block for its fixed
 * descendants, which would collapse the mobile drawer into the header bar.
 */
.site-header.is-stuck::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(var(--g-bg-rgb) / 0.85);
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
}

.site-header.is-stuck { border-bottom-color: var(--g-line); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 76px;
	padding-block: 0.6rem;
}

/*
 * The brand and the actions sit above the drawer. The drawer is their sibling
 * inside the header, so lifting the header itself would not help.
 */
.brand,
.site-header__actions {
	position: relative;
	z-index: 95;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--g-text);
	flex: 0 0 auto;
	margin-inline-end: auto;
}

.brand__mark { width: 44px; height: 44px; border-radius: 12px; }
.brand__logo img { max-height: 46px; width: auto; }

.brand__name {
	display: block;
	font-family: var(--g-font-display);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.03em;
	line-height: 1;
}

/*
 * The tagline is the first thing to give up header space: below a wide desktop
 * it is dropped rather than allowed to crowd the navigation.
 */
.brand__eyebrow {
	display: none;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--g-muted);
	margin-block-start: 0.28rem;
}

@media (min-width: 1280px) {
	.brand__eyebrow { display: block; }
}

.brand__text { min-width: 0; }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

/*
 * Sign in, Join and Get Started are secondary: they earn a place in the header
 * bar only on a wide screen. Narrower than this they are still one tap away in
 * the navigation drawer, which renders every enabled action.
 */
.site-header__actions .text-link,
.site-header__actions .btn--header:not(.btn--primary) { display: none; }

@media (min-width: 1400px) {
	.site-header__actions .text-link,
	.site-header__actions .btn--header:not(.btn--primary) { display: inline-flex; }
}

.nav-toggle {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: var(--g-r-pill);
	border: 1px solid var(--g-line-strong);
	background: rgb(var(--g-text-rgb) / 0.04);
	color: var(--g-text);
	cursor: pointer;
	padding: 0;
}

.nav-toggle__bars {
	position: relative;
	width: 18px;
	height: 12px;
}

.nav-toggle__bars span {
	position: absolute;
	inset-inline: 0;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.24s ease, opacity 0.18s ease;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- Mobile drawer (default) --------------------------------------------- */

.nav {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: none;
	background: var(--g-bg);
	padding: 5.5rem 1.25rem 2rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.nav.is-open { display: block; }

.nav__list,
.nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list > li { border-bottom: 1px solid var(--g-line); }

.nav a {
	display: block;
	padding: 0.95rem 0.25rem;
	font-family: var(--g-font-display);
	font-size: 1.06rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--g-text);
}

.nav .sub-menu a {
	font-size: 0.98rem;
	font-weight: 500;
	color: var(--g-muted);
	padding-inline-start: 1.1rem;
}

.nav__cta { margin-block-start: 1.75rem; }

body.nav-open { overflow: hidden; }

/* --- Desktop -------------------------------------------------------------- */

@media (min-width: 1120px) {
	.nav-toggle { display: none; }

	.nav {
		position: static;
		display: block;
		background: none;
		padding: 0;
		overflow: visible;
		margin-inline-end: 0.4rem;
		min-width: 0;
	}

	.nav__list {
		display: flex;
		align-items: center;
		gap: 0.1rem;
	}

	.nav__list > li { border-bottom: 0; position: relative; }

	.nav a {
		padding: 0.55rem 0.62rem;
		font-size: 0.94rem;
		font-weight: 500;
		white-space: nowrap;
		border-radius: var(--g-r-sm);
		color: var(--g-muted);
		transition: color 0.18s ease, background-color 0.18s ease;
	}

	.nav a:hover,
	.nav .current-menu-item > a,
	.nav .current-menu-ancestor > a {
		color: var(--g-text);
		background: rgb(var(--g-text-rgb) / 0.05);
	}

	.nav .menu-item-has-children > .sub-menu {
		position: absolute;
		inset-block-start: calc(100% + 0.5rem);
		inset-inline-start: 0;
		min-width: 240px;
		padding: 0.5rem;
		background: var(--g-elevated);
		border: 1px solid var(--g-line-strong);
		border-radius: var(--g-r);
		box-shadow: var(--g-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}

	.nav .menu-item-has-children:hover > .sub-menu,
	.nav .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav__cta { display: none; }
}

@media (max-width: 1023px) {
	.btn--header,
	.text-link { display: none; }
}

/* ==========================================================================
   08  Hero
   ========================================================================== */

.hero {
	position: relative;
	padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(2.75rem, 2rem + 3vw, 4.5rem);
	overflow: hidden;
}

.hero__grid {
	display: grid;
	gap: clamp(2.25rem, 1.8rem + 3vw, 4rem);
	align-items: center;
}

@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
}

.hero__copy { max-width: 42rem; }

.hero__title {
	font-size: var(--g-h1);
	margin-bottom: 1rem;
}

.hero__title span { display: block; }

.hero__text {
	font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
	color: var(--g-muted);
	max-width: 38rem;
	margin-bottom: 1.9rem;
}

.hero__art { width: 100%; }

.hero__art svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.32));
}

@media (max-width: 1023px) {
	.hero__art { max-width: 480px; margin-inline: auto; }
}

@media (max-width: 640px) {
	.hero__art { max-width: 380px; }
}

/* ==========================================================================
   09  Homepage sections
   ========================================================================== */

/* --- The problem ---------------------------------------------------------- */

.problem {
	padding: 1.5rem 1.5rem 1.5rem 1.65rem;
	border-inline-start: 2px solid var(--g-line-strong);
	transition: border-color 0.22s ease;
}

.problem:hover { border-inline-start-color: var(--g-magenta); }

.problem__title { font-size: var(--g-h5); margin: 0 0 0.4rem; }

.problem__text { margin: 0; color: var(--g-muted); font-size: 0.97rem; }

/* --- The three moves: the route motif ------------------------------------- */

.moves {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	position: relative;
}

@media (min-width: 860px) {
	.moves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }

	/* the dashed route running between the three moves */
	.moves::before {
		content: "";
		position: absolute;
		inset-inline: 16%;
		inset-block-start: 1.4rem;
		height: 2px;
		background-image: linear-gradient(90deg, var(--g-magenta), var(--g-accent), var(--g-cyan));
		mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 14px);
		-webkit-mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 14px);
		opacity: 0.6;
	}
}

.move { position: relative; text-align: center; }

.move__num {
	position: relative;
	z-index: 1;
	display: inline-grid;
	place-items: center;
	width: 2.8rem;
	height: 2.8rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	font-family: var(--g-font-display);
	font-weight: 700;
	font-size: 1rem;
	color: var(--g-on-action);
	background: var(--g-action);
	box-shadow: 0 0 0 6px var(--g-bg);
}

.move__title { font-size: var(--g-h5); margin: 0 0 0.35rem; }
.move__text { margin: 0; color: var(--g-muted); font-size: 0.96rem; }

/* --- Five ways to play ---------------------------------------------------- */

.ways {
	display: grid;
	gap: 1.15rem;
}

@media (min-width: 620px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/*
 * Deliberately capped at three across. Five 200px columns fit, but they leave
 * an 18-character measure that breaks every card's copy mid-phrase, and the
 * five ways matter more than the symmetry of showing five at once.
 */

.way {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.6rem 1.5rem;
	background: var(--g-surface);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-lg);
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.way:hover {
	transform: translateY(-4px);
	border-color: rgb(var(--g-accent-rgb) / 0.45);
	box-shadow: var(--g-shadow);
}

.way__icon {
	width: 2.9rem;
	height: 2.9rem;
	display: grid;
	place-items: center;
	margin-bottom: 0.6rem;
	border-radius: var(--g-r);
	border: 1px solid var(--g-line-strong);
	background: linear-gradient(150deg, rgb(var(--g-accent-rgb) / 0.2), rgb(var(--g-magenta-rgb) / 0.07));
	color: var(--g-link);
}

.way__icon svg { width: 1.45rem; height: 1.45rem; }

.way__label {
	margin: 0;
	font-family: var(--g-font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--g-faint);
}

.way__title { font-size: 1.08rem; margin: 0; }
.way__text { margin: 0; color: var(--g-muted); font-size: 0.94rem; }

/* --- Discovery ranking ---------------------------------------------------- */

.ranks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
	counter-reset: rank;
}

@media (min-width: 780px) { .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; } }

.rank {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1rem 1.1rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	background: var(--g-surface);
	transition: border-color 0.22s ease;
}

.rank:hover { border-color: rgb(var(--g-accent-rgb) / 0.4); }

.rank__num {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: var(--g-r-sm);
	font-family: var(--g-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--g-link);
	background: rgb(var(--g-accent-rgb) / 0.14);
	border: 1px solid rgb(var(--g-accent-rgb) / 0.28);
}

.rank__title { font-size: 1.02rem; margin: 0 0 0.2rem; }
.rank__text { margin: 0; color: var(--g-muted); font-size: 0.93rem; line-height: 1.55; }

/* --- Point lists ---------------------------------------------------------- */

.points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.1rem;
}

@media (min-width: 760px) {
	.points--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
}

.point {
	display: grid;
	grid-template-columns: 1.55rem 1fr;
	gap: 0.85rem;
	align-items: start;
}

.point__tick {
	width: 1.55rem;
	height: 1.55rem;
	margin-block-start: 0.1rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgb(var(--g-accent-rgb) / 0.15);
	color: var(--g-link);
}

.point__tick svg { width: 0.85rem; height: 0.85rem; }

.point__title {
	display: block;
	font-family: var(--g-font-display);
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.15rem;
}

.point__text { color: var(--g-muted); font-size: 0.94rem; line-height: 1.55; }

/* --- Numbered steps ------------------------------------------------------- */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.step {
	display: grid;
	grid-template-columns: 2.2rem 1fr;
	gap: 0.9rem;
	align-items: start;
	padding: 1rem 1.15rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	background: var(--g-surface);
}

.step__num {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	font-family: var(--g-font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--g-on-action);
	background: var(--g-action);
}

.step__text { margin: 0; color: var(--g-muted); font-size: 0.95rem; }

/* --- The loop ------------------------------------------------------------- */

.loop {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	position: relative;
}

@media (min-width: 700px) { .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


.loop__step {
	position: relative;
	padding: 1.4rem 1.15rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-lg);
	background: var(--g-surface);
	transition: border-color 0.22s ease, transform 0.22s ease;
}

.loop__step:hover { border-color: rgb(var(--g-accent-rgb) / 0.42); transform: translateY(-3px); }

.loop__num {
	display: inline-grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	margin-bottom: 0.75rem;
	border-radius: var(--g-r-sm);
	font-family: var(--g-font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--g-link);
	background: rgb(var(--g-accent-rgb) / 0.14);
}

.loop__title { font-size: 1rem; margin: 0 0 0.3rem; }
.loop__text { margin: 0; color: var(--g-muted); font-size: 0.9rem; line-height: 1.5; }

/* --- Final call to action ------------------------------------------------- */

.final {
	position: relative;
	text-align: center;
	padding: clamp(2.5rem, 2rem + 3.5vw, 4.5rem) clamp(1.25rem, 1rem + 2vw, 3rem);
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-r-lg);
	background:
		radial-gradient(62% 120% at 50% 0%, rgb(var(--g-accent-rgb) / 0.22), transparent 70%),
		var(--g-surface);
	overflow: hidden;
}

.final__title { font-size: var(--g-h2); margin-bottom: 0.7rem; }
.final__title span { display: block; }

.final__text {
	max-width: 52ch;
	margin-inline: auto;
	color: var(--g-muted);
	margin-bottom: 1.75rem;
}

.final__steps {
	list-style: none;
	margin: 0 0 1.9rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.final__steps li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-pill);
	background: rgb(var(--g-text-rgb) / 0.03);
	font-size: 0.9rem;
	color: var(--g-muted);
}

.final__steps li span {
	display: grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: rgb(var(--g-accent-rgb) / 0.18);
	color: var(--g-link);
	font-family: var(--g-font-display);
	font-weight: 700;
	font-size: 0.75rem;
}

/* --- Scenes: the bundled artwork, and any picture that replaces it -------- */

/*
 * One frame for every picture on the site, whether it is a drawn scene or an
 * uploaded photograph. The aspect ratio is set per slot as a custom property,
 * so the space is reserved before anything paints and there is no layout shift
 * when an uploaded image arrives.
 */
.scene {
	position: relative;
	margin: 0;
	border-radius: var(--g-r-lg);
	border: 1px solid var(--g-line);
	background: var(--g-sunken);
	overflow: hidden;
	aspect-ratio: var(--scene-ratio, 16 / 10);
	box-shadow: 0 30px 70px -40px var(--g-shadow);
}

.scene__svg,
.scene__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A hairline of brand light along the top edge, the same device the cards use. */
.scene::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgb(var(--g-accent-rgb) / 0.55), transparent);
	pointer-events: none;
}

/* The hero carries the drop shadow the old artwork had, and no frame of its own. */
.scene--hero {
	border: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}

.scene--hero::after { display: none; }

.scene--hero .scene__svg {
	filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.32));
	border-radius: var(--g-r-lg);
	overflow: hidden;
}

.scene--hero .scene__img {
	border-radius: var(--g-r-lg);
	border: 1px solid var(--g-line);
}

/* A band runs the full width of its section, between the heading and the cards. */
.scene--band {
	margin-block: 0 clamp(2rem, 1.5rem + 1.6vw, 3rem);
}

/* Panels put the picture beside the heading rather than under it. */
.panel__head {
	display: grid;
	gap: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.panel__head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.panel__head .head { margin-block-end: 1rem; }

/* The Made For You column: picture first, then the list it introduces. */
.for-you-col {
	display: grid;
	gap: 1.15rem;
	align-content: start;
}

/* --- Made for you --------------------------------------------------------- */

/*
 * Reuses the existing point-row shape rather than introducing a new card style:
 * this section is a list of what gets personalised, and it should read like the
 * other lists on the page.
 */
.for-you {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

@media (min-width: 1000px) {
	#s-earning .for-you { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.for-you__row {
	display: grid;
	grid-template-columns: 2.6rem 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	background: var(--g-surface);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.for-you__row:hover {
	border-color: rgb(var(--g-accent-rgb) / 0.42);
	transform: translateY(-2px);
}

.for-you__icon {
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	border-radius: var(--g-r-sm);
	border: 1px solid rgb(var(--g-accent-rgb) / 0.32);
	background: rgb(var(--g-accent-rgb) / 0.12);
	color: var(--g-accent);
}

.for-you__icon svg { width: 1.25rem; height: 1.25rem; }

.for-you__title {
	display: block;
	font-family: var(--g-font-display);
	font-size: 1rem;
	margin-block-end: 0.25rem;
}

.for-you__text {
	display: block;
	color: var(--g-muted);
	font-size: 0.93rem;
	line-height: 1.55;
}

/* The signals the platform matches on, as quiet tags. */
.tag-row {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag {
	padding: 0.4em 0.85em;
	border-radius: var(--g-r-pill);
	border: 1px solid var(--g-line-strong);
	background: rgb(var(--g-text-rgb) / 0.04);
	color: var(--g-muted);
	font-size: 0.84rem;
	font-weight: 500;
}

.tag-row--center { justify-content: center; }

/* --- The journey, in four words ------------------------------------------- */

.journey {
	list-style: none;
	margin: 0 0 2.25rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem 0.7rem;
	font-family: var(--g-font-display);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.journey__step {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--g-muted);
}

/* A chevron between stages, never after the last one. */
.journey__step + .journey__step::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-inline-end: 2px solid var(--g-link);
	border-block-start: 2px solid var(--g-link);
	transform: rotate(45deg);
}

.journey__step:last-child { color: var(--g-text); }

/* --- I Am Stuck ----------------------------------------------------------- */

.panel--stuck {
	background:
		linear-gradient(150deg, rgb(var(--g-magenta-rgb) / 0.1), transparent 56%),
		var(--g-surface);
}

.stuck__head {
	display: grid;
	gap: 1.25rem;
	align-items: start;
	margin-block-end: 0.5rem;
}

@media (min-width: 720px) {
	.stuck__head { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1.5rem; }
}

.stuck__badge {
	width: 3.6rem;
	height: 3.6rem;
	display: grid;
	place-items: center;
	border-radius: var(--g-r);
	border: 1px solid rgb(var(--g-magenta-rgb) / 0.45);
	background: rgb(var(--g-magenta-rgb) / 0.14);
	color: var(--g-link);
}

.stuck__badge svg { width: 1.75rem; height: 1.75rem; }

.stuck__head .head { margin-block-end: 1rem; }

.stuck-steps {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 680px) { .stuck-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .stuck-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stuck-step {
	padding: 1.3rem 1.2rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	background: var(--g-elevated);
}

.stuck-step__icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-block-end: 0.85rem;
	border-radius: var(--g-r-sm);
	border: 1px solid var(--g-line-strong);
	background: rgb(var(--g-text-rgb) / 0.04);
	color: var(--g-link);
}

.stuck-step__icon svg { width: 1.15rem; height: 1.15rem; }

.stuck-step__title {
	display: block;
	font-family: var(--g-font-display);
	font-size: 0.98rem;
	margin-block-end: 0.3rem;
}

.stuck-step__text {
	display: block;
	color: var(--g-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* --- Announcement line ---------------------------------------------------- */

/*
 * Deliberately not positioned: a positioned sibling would paint over the
 * mobile navigation drawer, which is fixed inside the header below it.
 */
.announce {
	margin: 0;
	padding: 0.6rem 1.25rem;
	text-align: center;
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--g-text);
	background: var(--g-elevated);
	border-block-end: 1px solid var(--g-line);
}

/* ==========================================================================
   10  Page templates
   ========================================================================== */

.page-hero {
	position: relative;
	padding-block: clamp(2.75rem, 2.2rem + 3.5vw, 4.75rem) clamp(2rem, 1.6rem + 2vw, 3rem);
	border-bottom: 1px solid var(--g-line);
}

/* A single centred column, so an inner page hero is never a half-empty band. */
.page-hero__inner {
	max-width: 60ch;
	margin-inline: auto;
	text-align: center;
}

.page-hero__inner .eyebrow { justify-content: center; }
.page-hero__inner .btn-row { justify-content: center; }
.page-hero__inner .meta-line { justify-content: center; }
.page-hero__title { margin-bottom: 0.55rem; }

.page-hero__sub {
	font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.16rem);
	color: var(--g-muted);
	margin-bottom: 0;
	max-width: 46rem;
}

.page-hero .btn-row { margin-block-start: 1.75rem; }

.contact-layout {
	display: grid;
	gap: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
	align-items: start;
}

@media (min-width: 960px) {
	.contact-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.contact-aside { position: sticky; inset-block-start: 6rem; }

	/* No form to fill the first column, so the page reads as one column. */
	.contact-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 44rem; margin-inline: auto; }
	.contact-layout--single .contact-aside { position: static; }
}

.contact-aside { display: grid; gap: 1rem; }

.topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.topic-list strong {
	display: block;
	font-family: var(--g-font-display);
	font-size: 0.98rem;
}

.topic-list span {
	display: block;
	color: var(--g-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.detail {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	background: var(--g-surface);
}

.detail__label {
	font-size: 0.74rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--g-faint);
	font-weight: 700;
}

.detail__value { font-size: 1rem; word-break: break-word; }

.legal h2 { margin-block-start: 2.4rem; font-size: var(--g-h3); scroll-margin-block-start: 6rem; }
.legal h3 { margin-block-start: 1.8rem; font-size: var(--g-h4); }

.form-wrap { margin-block-start: 1rem; }

/* ==========================================================================
   11  Editorial content
   ========================================================================== */

.entry-content > * { margin-block: 0 1.15em; }
.entry-content > *:last-child { margin-block-end: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-block-start: 1.9em; }

.entry-content ul,
.entry-content ol { color: var(--g-muted); }
.entry-content li + li { margin-block-start: 0.35em; }

.entry-content img,
.entry-content figure,
.feature-image { border-radius: var(--g-r); overflow: hidden; }

.feature-image { margin-block: 0 2.5rem; border: 1px solid var(--g-line); }

.entry-content figcaption,
.wp-caption-text {
	font-size: 0.86rem;
	color: var(--g-faint);
	text-align: center;
	margin-block-start: 0.6rem;
}

.entry-content pre,
.wp-block-code {
	padding: 1.15rem 1.3rem;
	background: var(--g-sunken);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	overflow-x: auto;
}

.entry-content table,
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.entry-content th,
.entry-content td { padding: 0.7rem 0.9rem; border: 1px solid var(--g-line); text-align: start; }

.entry-content th { background: rgb(var(--g-text-rgb) / 0.04); font-family: var(--g-font-display); }

.alignwide { width: min(100vw - 2.5rem, 1100px); margin-inline: auto; max-width: none; }
.alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; display: block; }

.content-layout { display: grid; gap: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); align-items: start; }

@media (min-width: 1000px) {
	.content-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

.post-grid { display: grid; gap: 1.5rem; }

@media (min-width: 680px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.post-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	background: var(--g-surface);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-lg);
	overflow: hidden;
	transition: transform 0.22s ease, border-color 0.22s ease;
}

.post-card:hover { transform: translateY(-4px); border-color: rgb(var(--g-accent-rgb) / 0.4); }

.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.post-card__body { padding: 0 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.post-card--plain .post-card__body { padding-block-start: 1.5rem; }

.post-card__title { font-size: 1.18rem; margin: 0; }
.post-card__title a { text-decoration: none; }
.post-card__text { color: var(--g-muted); font-size: 0.95rem; margin: 0; }

.entry-meta {
	font-size: 0.85rem;
	color: var(--g-faint);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
}

.entry-meta a { color: var(--g-muted); text-decoration: none; }

.pagination {
	margin-block-start: 3rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers,
.pagination > a {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 0.75rem;
	border: 1px solid var(--g-line);
	border-radius: var(--g-r-sm);
	text-decoration: none;
	color: var(--g-muted);
	font-size: 0.95rem;
}

.pagination .page-numbers:hover,
.pagination > a:hover,
.pagination .page-numbers.current {
	border-color: var(--g-accent);
	color: var(--g-text);
	background: rgb(var(--g-accent-rgb) / 0.12);
}

.widget {
	padding: 1.35rem 1.5rem;
	background: var(--g-surface);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
	margin-bottom: 1.25rem;
}

.widget__title,
.widget > h2,
.widget .wp-block-heading,
.footer-widgets .wp-block-heading {
	font-family: var(--g-font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0 0 0.9rem;
}

/* Core's comment widget marks the separator up as its own element. */
.widget .wp-block-latest-comments__comment-link,
.widget .wp-block-latest-comments__comment-author { font-size: 0.95rem; }
.widget .wp-block-latest-comments__comment { font-size: 0.95rem; line-height: 1.55; color: var(--g-muted); }
.widget .wp-block-latest-comments__comment-date { font-size: 0.85rem; color: var(--g-faint); }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.widget a { color: var(--g-link); text-decoration: none; font-size: 0.95rem; }
.widget a:hover { text-decoration: underline; }
.widget a:hover { color: var(--g-link); }

.comments {
	margin-block-start: 3.5rem;
	padding-block-start: 2.5rem;
	border-block-start: 1px solid var(--g-line);
}

.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.25rem; }

.comment-list .children {
	list-style: none;
	margin: 1.25rem 0 0;
	padding-inline-start: clamp(0.75rem, 2vw, 2rem);
	display: grid;
	gap: 1.25rem;
	border-inline-start: 1px solid var(--g-line);
}

.comment-body {
	padding: 1.25rem 1.4rem;
	background: var(--g-surface);
	border: 1px solid var(--g-line);
	border-radius: var(--g-r);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
	font-size: 0.88rem;
	color: var(--g-faint);
}

/*
 * Images are display:block site-wide, which would drop the avatar onto its own
 * line inside the author block, so the author line is laid out explicitly.
 */
.comment-author {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.95rem;
	color: var(--g-text);
}

.comment-author .fn { font-family: var(--g-font-display); font-style: normal; font-weight: 600; }
.comment-author .says { color: var(--g-faint); }
.comment-author img { border-radius: 50%; flex: 0 0 auto; }
.comment-metadata a { color: var(--g-faint); text-decoration: none; }
.comment-metadata a:hover { color: var(--g-link); }
.comment-content { color: var(--g-muted); }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-block-start: 0.75rem; font-size: 0.9rem; }

/* ==========================================================================
   12  Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	font: inherit;
	font-size: 0.98rem;
	color: var(--g-text);
	background: var(--g-sunken);
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-r-sm);
	min-height: 48px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

input:focus,
select:focus,
textarea:focus {
	border-color: var(--g-accent);
	box-shadow: 0 0 0 3px rgb(var(--g-accent-rgb) / 0.18);
	outline: none;
}

input::placeholder,
textarea::placeholder { color: var(--g-faint); opacity: 1; }

label { font-family: var(--g-font-display); font-size: 0.9rem; font-weight: 600; }

/*
 * Submit controls. Core's search form and the block editor's search, button and
 * form blocks all render a real input[type=submit] or button, which would
 * otherwise arrive with the browser's own light chrome on a dark page.
 */
input[type="submit"]:not(.btn),
button[type="submit"]:not(.btn),
.wp-block-search__button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8em 1.5em;
	font-family: var(--g-font-display);
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--g-on-action);
	background: var(--g-action);
	border: 1px solid transparent;
	border-radius: var(--g-r-pill);
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="submit"]:not(.btn):hover,
button[type="submit"]:not(.btn):hover,
.wp-block-search__button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -12px rgb(var(--g-action-rgb) / 0.9);
}

/*
 * The browser's own checkbox is drawn in system chrome, which is a light square
 * on a dark form. Drawing it here keeps it in the palette in both colour modes.
 */
input[type="checkbox"],
input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	min-height: 0;
	padding: 0;
	margin-inline-end: 0.5rem;
	vertical-align: -0.22rem;
	background: var(--g-sunken);
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-r-sm);
	cursor: pointer;
	position: relative;
}

input[type="radio"] { border-radius: 50%; }

input[type="checkbox"]:checked,
input[type="radio"]:checked {
	background: var(--g-action);
	border-color: var(--g-action);
}

input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	inset-block-start: 0.14rem;
	inset-inline-start: 0.34rem;
	width: 0.3rem;
	height: 0.6rem;
	border: solid var(--g-on-action);
	border-width: 0 2px 2px 0;
	transform: rotate(42deg);
}

input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 0.28rem;
	border-radius: 50%;
	background: var(--g-on-action);
}

.comment-form-cookies-consent label,
.comment-form-cookies-consent {
	font-family: var(--g-font-body);
	font-weight: 400;
	font-size: 0.92rem;
	color: var(--g-muted);
}

.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
	width: 100%;
}

.search-form label { flex: 1 1 auto; display: block; }
.search-form .search-field,
.wp-block-search .wp-block-search__input,
.widget .wp-block-search__input { flex: 1 1 auto; border-radius: var(--g-r-pill); padding-inline: 1.15rem; }

.wp-block-search .wp-block-search__inside-wrapper { display: flex; gap: 0.5rem; }

.widget .wp-block-search__label {
	display: block;
	font-family: var(--g-font-display);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.9rem;
}

/* Block list widgets bring their own list padding. */
.widget ol,
.widget .wp-block-latest-posts,
.widget .wp-block-latest-comments {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
.search-form .search-submit { flex: 0 0 auto; padding-inline: 1.25em; }

/* The 404 and no-results search sits in a centred column, so it is centred. */
.u-center .search-form,
.no-results .search-form { max-width: 30rem; margin-inline: auto; }

.comment-form p { margin-bottom: 1rem; }

/* ==========================================================================
   13  Footer
   ========================================================================== */

.site-footer {
	margin-block-start: clamp(3rem, 2rem + 3.5vw, 5rem);
	border-block-start: 1px solid var(--g-line);
	background: linear-gradient(180deg, transparent, rgb(var(--g-text-rgb) / 0.032));
	padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) 2rem;
}

.footer-widgets { display: grid; gap: 1.25rem; padding-block-end: 2.5rem; }

@media (min-width: 780px) { .footer-widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.footer-top { display: grid; gap: 2.25rem; padding-block-end: 2.5rem; }

@media (min-width: 700px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1080px) {
	.footer-top { grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 2rem; }
}

.footer-brand__text {
	color: var(--g-muted);
	font-size: 0.95rem;
	max-width: 34ch;
	margin-block: 1rem;
}

.footer-contact {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.footer-contact li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.94rem; }

.footer-contact a { color: var(--g-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--g-link); }

.footer-contact__icon {
	width: 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	border-radius: var(--g-r-sm);
	border: 1px solid var(--g-line);
	color: var(--g-faint);
	flex: 0 0 auto;
}

.footer-contact__icon svg { width: 0.95rem; height: 0.95rem; }

.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.25rem; }

.footer-col__title {
	font-family: var(--g-font-display);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--g-faint);
	margin: 0 0 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--g-muted); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: var(--g-link); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	padding-block-start: 1.75rem;
	border-block-start: 1px solid var(--g-line);
	font-size: 0.87rem;
	color: var(--g-faint);
}

.site-footer .brand__mark { width: 38px; height: 38px; }

/* --- Cookie notice -------------------------------------------------------- */

/*
 * Printed on every page and revealed by script only when the visitor has not
 * answered yet, so a cached page can never show one visitor's answer to
 * another. Both answers are ordinary buttons of equal weight - declining is not
 * hidden behind a link.
 */
.cookie-notice {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 120;
	padding: 0.9rem;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-notice.is-in { opacity: 1; transform: none; }

.cookie-notice__inner {
	width: min(100% - 0.5rem, 1120px);
	margin-inline: auto;
	display: grid;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
	background: var(--g-elevated);
	border: 1px solid var(--g-line-strong);
	border-radius: var(--g-r);
	box-shadow: 0 24px 60px -30px var(--g-shadow);
}

.cookie-notice__title {
	font-family: var(--g-font-display);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.3rem;
	color: var(--g-text);
}

.cookie-notice__text {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.55;
	color: var(--g-muted);
	max-width: 70ch;
}

.cookie-notice__text a { color: var(--g-link); }

.cookie-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.cookie-notice__actions .btn { flex: 1 1 auto; }

@media (min-width: 780px) {
	.cookie-notice__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 1.75rem;
	}

	.cookie-notice__actions { flex-wrap: nowrap; }
	.cookie-notice__actions .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.cookie-notice { transition: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   14  Motion and utilities
   ========================================================================== */

/*
 * Reveals are opt-in: content is visible by default and only starts hidden once
 * the boot class confirms motion is wanted, which is what stops above-the-fold
 * content flashing in.
 */
.gm-motion [data-gamigo-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s cubic-bezier(0.22, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
	transition-delay: calc(var(--reveal, 0) * 65ms);
}

.gm-motion [data-gamigo-reveal].is-in { opacity: 1; transform: none; }

.u-center { text-align: center; }
.u-center .eyebrow { justify-content: center; }
.u-center .lede { margin-inline: auto; }
.u-mt-0 { margin-block-start: 0; }
.u-mt-2 { margin-block-start: 2rem; }
.u-mt-3 { margin-block-start: 2.75rem; }
.u-mb-0 { margin-block-end: 0; }
.u-mb-3 { margin-block-end: 2.5rem; }

@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;
		scroll-behavior: auto !important;
	}

	[data-gamigo-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
	body::before,
	.site-header,
	.site-footer,
	.nav,
	.btn { display: none !important; }

	body { background: #fff; color: #000; }
}
