/*
 * GradHeights theme styles for what theme.json cannot express.
 * Every color and font here is a theme.json preset variable. No raw values.
 */

/* ---------- Page frame ---------- */

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	accent-color: var(--wp--custom--c--action);
	caret-color: var(--wp--custom--c--action);
}

::selection {
	background-color: var(--wp--custom--c--selection);
	color: var(--wp--custom--c--text);
}

/* Anchored sections (such as #join) land below the top edge, not under it. */
:target,
[id] {
	scroll-margin-top: var(--wp--preset--spacing--40);
}

@media (prefers-reduced-motion: no-preference) {
	html:focus-within {
		scroll-behavior: smooth;
	}
}

/* Soft glows behind the top of every page: Golden Orange, Light Lavender, Turquoise.
   Each glow sits on its own layer behind the content and fades out at its edges. */
.wp-site-blocks {
	position: relative;
	isolation: isolate;
	background-color: var(--wp--custom--c--ground);
}

.wp-site-blocks::before,
.gh-trust::before,
.gh-join::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	background-repeat: no-repeat;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
}

.wp-site-blocks::before {
	inset: 0 0 auto;
	height: 68rem;
	background-image: var(--wp--custom--aura--top);
	-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.gh-trust,
.gh-join {
	position: relative;
	isolation: isolate;
}

.gh-trust::before,
.gh-join::before {
	inset: 0;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title {
	text-wrap: balance;
}

p,
li,
figcaption {
	text-wrap: pretty;
}

.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol,
.gh-measure {
	max-width: var(--wp--custom--measure);
}

main :where(ul, ol) > li + li {
	margin-top: 0.5rem;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

strong,
b {
	font-weight: 600;
}

/* The colorful key phrase: any highlighted words in a heading (the editor's
   Highlight tool) turn into the orange-to-violet gradient. Both ends pass 4.5:1. */
:where(h1, h2, h3, .wp-block-post-title) mark,
.gh-key {
	padding: 0;
	background-color: transparent !important;
	color: var(--wp--custom--c--key-light-start) !important;
	font-weight: inherit;
}

.gh-hero :where(h1, h2, h3) mark,
.gh-hero .gh-key {
	color: var(--wp--custom--c--key-start) !important;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	:where(h1, h2, h3, .wp-block-post-title) mark,
	.gh-key {
		background-image: var(--wp--custom--gradient--text);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-box-decoration-break: clone;
		box-decoration-break: clone;
		color: transparent !important;
	}

	.gh-hero :where(h1, h2, h3) mark,
	.gh-hero .gh-key {
		background-image: var(--wp--custom--gradient--hero);
	}
}

@media (forced-colors: active) {
	:where(h1, h2, h3, .wp-block-post-title) mark,
	.gh-key {
		background-image: none;
		color: CanvasText !important;
	}
}

/* ---------- Focus ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--c--focus);
	outline-offset: var(--wp--custom--focus--offset);
	border-radius: 0.25rem;
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--c--focus);
	outline-offset: var(--wp--custom--focus--offset);
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--wp--custom--touch-target);
	transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Secondary (outline) button: Deep Purple line and text on light grounds. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--custom--c--action);
	border: 2px solid currentColor;
	padding-top: calc(0.8125rem - 2px);
	padding-bottom: calc(0.8125rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--custom--c--action);
	color: var(--wp--custom--c--on-action);
}

/* ---------- Deep Purple surfaces ---------- */

.gh-footer {
	background-color: var(--wp--custom--c--footer);
	color: var(--wp--custom--c--on-footer);
}

.gh-footer .wp-block-site-title a {
	color: var(--wp--custom--c--on-footer);
}

.gh-footer .wp-block-separator {
	background-color: var(--wp--custom--c--footer-line);
	color: var(--wp--custom--c--footer-line);
}

.gh-footer .wp-block-social-links .wp-social-link {
	background-color: var(--wp--custom--c--on-footer);
	color: var(--wp--custom--c--footer);
}

.gh-footer :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--custom--c--on-footer);
}

.gh-footer a:where(:not(.wp-element-button)) {
	color: var(--wp--custom--c--on-footer);
}

.gh-footer a:where(:not(.wp-element-button)):hover {
	color: var(--wp--custom--c--footer-muted);
}

.gh-footer .wp-element-button,
.gh-footer .wp-block-button__link {
	background-color: var(--wp--custom--c--accent);
	color: var(--wp--custom--c--on-accent);
}

.gh-footer .wp-element-button:hover,
.gh-footer .wp-block-button__link:hover {
	background-color: var(--wp--custom--c--on-footer);
	color: var(--wp--custom--c--footer);
}

.gh-footer :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.gh-footer .wp-block-button__link:focus-visible {
	outline-color: var(--wp--custom--c--focus-on-dark);
}

/* ---------- Header ---------- */

.gh-header__bar {
	gap: var(--wp--preset--spacing--30);
}

.gh-brand {
	gap: var(--wp--preset--spacing--20);
}

.gh-brand .wp-block-site-logo img {
	height: 2.5rem;
	width: auto;
}

/* The "Menu" and "Close" words are buttons a parent can find without knowing the three-line icon. */
.gh-header .wp-block-navigation__responsive-container-open,
.gh-header .wp-block-navigation__responsive-container-close {
	min-height: var(--wp--custom--touch-target);
	padding: 0 var(--wp--preset--spacing--30);
	border: 2px solid var(--wp--custom--c--action);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--custom--c--action);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	text-transform: none;
	align-items: center;
}

.gh-header .wp-block-navigation__responsive-container-close {
	position: static;
	align-self: flex-end;
}

.gh-header .wp-block-navigation__responsive-dialog {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

/* Open menu: large, separated links that are easy to hit with a thumb. */
.gh-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--30) clamp(1rem, 4vw, 2.5rem);
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0;
	align-items: stretch;
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
	width: 100%;
}

.gh-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--custom--c--line);
}

.gh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: var(--wp--preset--spacing--30) 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--tight);
}

.gh-header .is-menu-open .wp-block-buttons {
	width: 100%;
	padding-top: var(--wp--preset--spacing--40);
}

.gh-header .is-menu-open .wp-block-button,
.gh-header .is-menu-open .wp-block-button__link {
	width: 100%;
}

/* Below 1024px the menu sits behind the "Menu" button; WordPress's own switch point is 600px. */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.gh-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.gh-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (min-width: 1024px) {
	.gh-header .wp-block-navigation-item__content {
		padding: 0.75rem 0;
	}

	.gh-header .wp-block-navigation .wp-block-buttons {
		margin-left: var(--wp--preset--spacing--20);
	}
}

.gh-header .wp-block-navigation [aria-current="page"],
.gh-footer .wp-block-navigation [aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* ---------- Footer ---------- */

.gh-footer .wp-block-navigation-item__content {
	padding: 0.5rem 0;
	display: inline-block;
}

.gh-footer .wp-block-social-links:empty {
	display: none;
}

.gh-footer .gh-legal {
	color: var(--wp--custom--c--footer-muted);
}

/* ---------- Skip link ---------- */

.skip-link.screen-reader-text:focus {
	background-color: var(--wp--custom--c--action);
	color: var(--wp--custom--c--on-action);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	padding: 0.875rem 1.25rem;
	border-radius: var(--wp--custom--radius--control);
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--c--focus-on-dark);
	outline-offset: 2px;
}

/* Reduced motion: keep colour and shadow changes (they carry state), drop movement. */
@media (prefers-reduced-motion: reduce) {
	html,
	html:focus-within {
		scroll-behavior: auto;
	}

	.gh-doors a,
	.gh-doors a:hover {
		transform: none;
		transition-property: background-color, border-color, box-shadow, color;
	}
}

/* ==========================================================
 * Page sections (Stage 3)
 * ========================================================== */

.gh-section > :first-child,
.gh-trust > :first-child,
.gh-join > :first-child {
	margin-top: 0;
}

.has-lead-font-size {
	line-height: 1.55;
}

.gh-section__inner > :first-child {
	margin-top: 0;
}

.gh-section__inner > :where(p, ul, ol, .wp-block-details, .wp-block-group),
.gh-trust .wp-block-column > :where(p, ul) {
	max-width: var(--wp--custom--measure);
}

.gh-section__inner > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.gh-section__inner > :where(h2, h3) {
	margin-block-start: var(--wp--preset--spacing--50);
}

.gh-hero__inner > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* ---------- Home: three doors ---------- */

.gh-hero {
	background-color: var(--wp--custom--c--band);
	color: var(--wp--custom--c--band-text);
}

.gh-hero h1 {
	color: var(--wp--custom--c--band-ink);
}

.gh-hero :where(a, button, [tabindex]):focus-visible {
	outline-color: var(--wp--custom--c--band-focus);
}

.gh-hero h1 {
	max-width: 22ch;
	margin-top: 0;
	margin-bottom: 0;
}

.gh-hero__description {
	max-width: 38rem;
	margin-top: var(--wp--preset--spacing--20);
}

@media (min-width: 1024px) {
	.gh-hero h1 {
		max-width: 20em;
	}
}

.gh-doors__ask {
	margin-top: var(--wp--preset--spacing--40);
	font-weight: 600;
	color: var(--wp--custom--c--band-ink);
}

ul.gh-doors {
	list-style: none;
	padding: 0;
	margin-top: var(--wp--preset--spacing--20);
	display: grid;
	gap: var(--wp--preset--spacing--20);
	counter-reset: gh-door;
}

ul.gh-doors > li {
	margin: 0;
	counter-increment: gh-door;
}

/* Each door is a frosted card: a tinted marker, the label, one line, a chevron. */
.gh-doors a {
	--gh-door-tint: var(--wp--custom--c--tint-1);
	--gh-door-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228.5%22 cy=%227%22 r=%223%22/%3E%3Cpath d=%22M3 20.5c0-4.2 2.5-7 5.5-7s5.5 2.8 5.5 7%22/%3E%3Ccircle cx=%2217.5%22 cy=%2210.5%22 r=%222.2%22/%3E%3Cpath d=%22M14.8 20.5c.2-3.2 1.3-5 2.7-5s2.8 1.8 3 5%22/%3E%3C/svg%3E");
	display: grid;
	grid-template-columns: 2.25rem 1fr auto;
	align-items: center;
	column-gap: var(--wp--preset--spacing--30);
	min-height: 4rem;
	padding: 0.875rem 1.125rem;
	border: 1px solid var(--wp--custom--c--door-line);
	border-radius: var(--wp--custom--radius--surface);
	background-color: var(--wp--custom--c--door-bg);
	box-shadow: var(--wp--custom--shadow--door);
	color: var(--wp--custom--c--door-text);
	text-decoration: none;
	transition: box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

ul.gh-doors > li:nth-child(2) a {
	--gh-door-tint: var(--wp--custom--c--tint-2);
	--gh-door-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 4.5h10a2 2 0 0 1 2 2v5.5a2 2 0 0 1-2 2H9l-3.5 3v-3H4a2 2 0 0 1-2-2V6.5a2 2 0 0 1 2-2z%22/%3E%3Cpath d=%22M19 9h1a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-.5v3l-3.5-3H12%22/%3E%3C/svg%3E");
}

ul.gh-doors > li:nth-child(3) a {
	--gh-door-tint: var(--wp--custom--c--tint-3);
	--gh-door-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 9.5 12 5l10 4.5L12 14z%22/%3E%3Cpath d=%22M6 11.5V16c0 1.4 2.7 3 6 3s6-1.6 6-3v-4.5%22/%3E%3Cpath d=%22M22 9.5V15%22/%3E%3C/svg%3E");
}

.gh-doors a::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 2rem;
	height: 2rem;
	background-color: currentColor;
	-webkit-mask: var(--gh-door-icon) center / contain no-repeat;
	mask: var(--gh-door-icon) center / contain no-repeat;
}

.gh-doors a::after {
	content: "";
	grid-column: 3;
	grid-row: 1 / span 2;
	width: 1.375rem;
	height: 1.375rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gh-doors strong {
	grid-column: 2;
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--tight);
}

.gh-doors span {
	grid-column: 2;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--c--door-muted);
}

.gh-doors a:hover {
	border-color: var(--wp--custom--c--door-text);
	box-shadow: var(--wp--custom--shadow--lift);
}

/* The parent door comes first and carries the strongest color: the primary action. */
ul.gh-doors > li:first-child a {
	border-color: var(--wp--custom--c--door-primary);
	background-color: var(--wp--custom--c--door-primary);
	color: var(--wp--custom--c--on-door-primary);
}

ul.gh-doors > li:first-child a::before {
	background-color: currentColor;
}

ul.gh-doors > li:first-child span {
	color: var(--wp--custom--c--door-primary-muted);
}

ul.gh-doors > li:first-child a:hover {
	background-color: var(--wp--custom--c--door-primary-hover);
	border-color: var(--wp--custom--c--door-primary-hover);
}

@media (prefers-reduced-motion: no-preference) {
	.gh-doors a:hover {
		transform: translateY(-2px);
	}
}

@media (min-width: 1024px) {
	ul.gh-doors {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gh-doors a {
		min-height: 9rem;
		grid-template-columns: 1fr auto;
		grid-template-rows: auto 1fr auto;
		align-items: start;
		row-gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--40);
	}

	.gh-doors a::before {
		grid-column: 1;
		grid-row: 1;
	}

	.gh-doors strong {
		grid-column: 1 / span 2;
		grid-row: 2;
	}

	.gh-doors span {
		grid-column: 1;
		grid-row: 3;
		align-self: end;
	}

	.gh-doors a::after {
		grid-column: 2;
		grid-row: 3;
		align-self: end;
	}
}

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

ol.gh-steps {
	list-style: none;
	padding: 0;
	counter-reset: gh-step;
	display: grid;
	gap: var(--wp--preset--spacing--40);
	max-width: 44rem;
}

ol.gh-steps > li {
	counter-increment: gh-step;
	display: grid;
	grid-template-columns: 2.75rem 1fr;
	column-gap: var(--wp--preset--spacing--30);
	margin: 0;
}

ol.gh-steps > li::before {
	content: counter(gh-step);
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background-color: var(--wp--custom--c--tint-1);
	color: var(--wp--custom--c--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
}

ol.gh-steps > li:nth-child(3n + 2)::before {
	background-color: var(--wp--custom--c--tint-2);
}

ol.gh-steps > li:nth-child(3n)::before {
	background-color: var(--wp--custom--c--tint-3);
}

ol.gh-steps strong {
	display: block;
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: var(--wp--custom--line-height--tight);
	color: var(--wp--custom--c--ink);
	margin-bottom: 0.25rem;
	padding-top: 0.5rem;
}

/* ---------- Trust ---------- */

.gh-trust::before {
	background-image: var(--wp--custom--aura--calm);
}

.gh-trust h3 {
	margin-top: var(--wp--preset--spacing--40);
}

.gh-photo-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	padding: var(--wp--preset--spacing--40);
	border: 2px dashed var(--wp--custom--c--muted);
	border-radius: var(--wp--custom--radius--surface);
	background-color: var(--wp--custom--c--surface);
	color: var(--wp--custom--c--muted);
	text-align: center;
}

@media (max-width: 781px) {
	.gh-photo-slot {
		aspect-ratio: 3 / 2;
		max-width: 22rem;
	}
}

/* ---------- Logo row: hidden on the site until a logo is added ---------- */

.gh-logos:not(.block-editor-block-list__block):not(:has(img)) {
	display: none;
}

.gh-logos__note {
	color: var(--wp--custom--c--muted);
}

.gh-logos__row img {
	max-height: 4rem;
	width: auto;
	object-fit: contain;
}

/* ---------- Colour bands meet without white gaps ---------- */

.wp-block-post-content > .alignfull + .alignfull,
.gh-title-band + .wp-block-post-content {
	margin-block-start: 0;
}

.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

main.wp-block-group:has(> .wp-block-post-content > .gh-join:last-child) {
	padding-bottom: 0 !important;
}

.gh-title-band .wp-block-post-title {
	margin: 0;
}

.gh-section__inner > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* ---------- "Will not do" panels ---------- */

ul.gh-notdo {
	list-style: none;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--c--line);
	border-radius: var(--wp--custom--radius--surface);
	background-color: var(--wp--custom--c--surface);
	box-shadow: var(--wp--custom--shadow--card);
	color: var(--wp--custom--c--text);
}

ul.gh-notdo > li {
	margin: 0;
	padding: var(--wp--preset--spacing--20) 0;
}

ul.gh-notdo > li + li {
	border-top: 1px solid var(--wp--custom--c--line);
}

/* ---------- Join band and form panel ---------- */

.gh-join::before {
	background-image: var(--wp--custom--aura--warm);
}

.gh-join__promise {
	max-width: 36rem;
}

.gh-join__promise > :first-child {
	margin-top: 0;
}

.gh-form-panel {
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--c--line);
	border-radius: var(--wp--custom--radius--surface);
	background-color: var(--wp--custom--c--surface);
	box-shadow: var(--wp--custom--shadow--lift);
	color: var(--wp--custom--c--text);
}

@media (min-width: 1024px) {
	.gh-join__grid {
		display: grid;
		grid-template-columns: 5fr 7fr;
		gap: var(--wp--preset--spacing--60);
		align-items: start;
	}

	.gh-join__grid > .gh-form-panel {
		margin-top: 0;
	}
}

/* ---------- Sign-up form ---------- */

.gh-signup [hidden] {
	display: none !important;
}

.gh-signup__form {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.gh-field label,
.gh-country-pick label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.375rem;
	color: var(--wp--custom--c--text);
}

.gh-field input,
.gh-field select,
.gh-country-pick select {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: var(--wp--custom--touch-target);
	padding: 0.6875rem 0.875rem;
	border: 2px solid var(--wp--custom--c--field-line);
	border-radius: var(--wp--custom--radius--control);
	background-color: var(--wp--custom--c--surface);
	color: var(--wp--custom--c--text);
	font: inherit;
	font-size: max(1rem, var(--wp--preset--font-size--body));
	line-height: 1.4;
}

.gh-field input:focus-visible,
.gh-field select:focus-visible,
.gh-country-pick select:focus-visible {
	border-color: var(--wp--custom--c--focus);
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--c--focus);
	outline-offset: 1px;
}

.gh-field [aria-invalid="true"] {
	border-color: var(--wp--custom--c--error);
}

.gh-field__hint {
	margin: 0 0 0.375rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--c--muted);
}

.gh-field__error {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.375rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--custom--c--error);
}

.gh-icon {
	flex: none;
	margin-top: 0.2em;
}

.gh-icon__cut {
	stroke: var(--wp--custom--c--surface);
}

.gh-field__suggest:not(:empty) {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

.gh-field__suggest-use {
	min-height: 2.25rem;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--wp--custom--c--link);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.gh-signup__summary {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 2px solid var(--wp--custom--c--error);
	border-radius: var(--wp--custom--radius--control);
}

.gh-signup__summary-heading {
	margin: 0;
	font-weight: 600;
	color: var(--wp--custom--c--error);
}

.gh-signup__summary ul {
	margin: 0.375rem 0 0;
	padding-left: 1.25rem;
}

.gh-signup__required {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--c--muted);
}

.gh-signup__consent {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.gh-signup__problem {
	margin: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 2px solid var(--wp--custom--c--error);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--custom--c--error);
	font-weight: 600;
}

.gh-signup__submit {
	border-radius: var(--wp--custom--radius--pill);
	width: 100%;
	min-height: 3.25rem;
	border: 0;
	cursor: pointer;
}

.gh-signup__submit[disabled] {
	cursor: progress;
}

/* Hidden from people and screen readers; filled only by spam robots. */
.gh-signup__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gh-signup__done {
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

.gh-signup__done:focus {
	outline: none;
}

.gh-signup__done-mark {
	color: var(--wp--custom--c--action);
}

.gh-signup__done-heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--tight);
	color: var(--wp--custom--c--ink);
}

.gh-signup__done p {
	margin: 0;
}

/* ---------- Country switch ---------- */

.gh-country-pick {
	max-width: 22rem;
	margin-bottom: var(--wp--preset--spacing--30);
}

.gh-in-country[hidden] {
	display: none;
}

.gh-in-country + .gh-in-country {
	margin-top: var(--wp--preset--spacing--40);
}

.gh-in-country h3 {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--heading-4);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}

/* ---------- Questions ---------- */

.gh-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--custom--c--line);
	margin: 0;
}

.gh-faq .wp-block-details summary {
	padding: var(--wp--preset--spacing--30) 0;
	font-weight: 600;
	color: var(--wp--custom--c--ink);
	cursor: pointer;
}

.gh-faq .wp-block-details > :not(summary) {
	margin-top: 0;
	padding-bottom: var(--wp--preset--spacing--30);
}

/* ---------- Small details ---------- */

.gh-updated {
	color: var(--wp--custom--c--muted);
}

.gh-beliefs strong {
	color: var(--wp--custom--c--ink);
}


/* ==========================================================
 * Pictures
 * ========================================================== */

/* Hero drawing: a path of stepping stones, shown beside the headline from 1024px.
   It is a background, so phones never download it. */
@media (min-width: 1024px) {
	.gh-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 30%;
		column-gap: var(--wp--preset--spacing--50);
		align-items: start;
	}

	.gh-hero__inner > * {
		grid-column: 1;
	}

	.gh-hero__inner > .gh-doors__ask,
	.gh-hero__inner > ul.gh-doors {
		grid-column: 1 / -1;
	}

	.gh-hero__inner::before {
		content: "";
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		width: 100%;
		aspect-ratio: 6 / 5;
		background: url("../images/illustrations/hero-path.svg") center / contain no-repeat;
		pointer-events: none;
	}
}

/* Photos of people and places. */
.wp-block-image.gh-founder-photo img,
.wp-block-image.gh-country-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--surface);
	background-color: var(--wp--custom--c--line);
}

.wp-block-image.gh-founder-photo {
	margin: 0;
	max-width: 24rem;
}

.wp-block-image .wp-element-caption {
	margin-top: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--c--muted);
	text-align: left;
}

.gh-in-country {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	max-width: 56rem;
}

.gh-in-country .wp-block-image {
	margin: 0;
}

.gh-in-country .gh-country-text > :first-child {
	margin-top: 0;
}

@media (min-width: 782px) {
	.gh-in-country {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: center;
	}
}

.gh-section__inner > .gh-in-country[hidden] {
	display: none;
}

/* Small drawings beside a section, from 1024px. */
@media (min-width: 1024px) {
	.gh-spot > .gh-section__inner {
		position: relative;
		padding-right: 18rem;
		min-height: 15rem;
	}

	.gh-spot > .gh-section__inner::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 15rem;
		aspect-ratio: 7 / 6;
		background: center / contain no-repeat;
		pointer-events: none;
	}

	.gh-spot--share > .gh-section__inner::after {
		background-image: url("../images/illustrations/share-chat.svg");
	}

	.gh-spot--cap > .gh-section__inner::after {
		background-image: url("../images/illustrations/cap-on-path.svg");
	}
}

/* Page not found: the path with a missing stone. */
.gh-lost-art {
	width: 100%;
	max-width: 22rem;
	aspect-ratio: 12 / 5;
	margin-bottom: var(--wp--preset--spacing--40);
	background: url("../images/illustrations/lost-path.svg") left center / contain no-repeat;
}
