/**
 * The Horse — supplementary styles.
 *
 * theme.json owns colour, type, spacing and block defaults. This file holds
 * only what it cannot express.
 */

/* ---------------------------------------------------------------- a11y --- */

.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
}

.skip-link.screen-reader-text:focus {
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	clip-path: none;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

html {
	scroll-behavior: smooth;
	/* Anchors must not hide under the sticky header. */
	scroll-padding-top: 6rem;
}

/* ------------------------------------------------- block style variants --- */

.wp-block-group.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--30);
	box-shadow: var(--wp--preset--shadow--soft);
	height: 100%;
}

.wp-block-group.is-style-bordered {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--30);
}

.wp-block-columns.is-style-cards > .wp-block-column {
	background: var(--wp--preset--color--white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--30);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Eyebrow. Available both as a heading style and as a plain-paragraph class —
   use the paragraph form wherever the label sits above the page's h1, so the
   decoration does not invent a heading level ahead of it. */
.wp-block-heading.is-style-eyebrow,
p.the-horse-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.5rem;
}

.the-horse-dark p.the-horse-eyebrow {
	color: var(--wp--preset--color--orange);
}

/* Images in Custom HTML (wp:html) figures: core only loads its image-block CSS
   when a real image block is on the page, so without this they render at their
   natural pixel width and push the page sideways (Teams, student-teams mosaic). */
.wp-block-image img {
	max-width: 100%;
	height: auto;
}

.wp-block-image.is-style-framed img {
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.wp-block-list.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-checklist > li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.6rem;
}

.wp-block-list.is-style-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 1.05rem;
	height: 0.55rem;
	border-left: 2.5px solid var(--wp--preset--color--green);
	border-bottom: 2.5px solid var(--wp--preset--color--green);
	transform: rotate(-45deg);
}

.wp-block-list.is-style-steps {
	list-style: none;
	counter-reset: step;
	padding-left: 0;
}

.wp-block-list.is-style-steps > li {
	counter-increment: step;
	position: relative;
	padding-left: 3.25rem;
	margin-bottom: 1.25rem;
}

.wp-block-list.is-style-steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -0.1em;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1;
}

@media (max-width: 599px) {
	.wp-block-buttons.is-style-stack-mobile {
		flex-direction: column;
		align-items: stretch;
	}

	.wp-block-buttons.is-style-stack-mobile .wp-block-button__link {
		display: block;
		text-align: center;
	}
}

/* --------------------------------------------------------- interaction --- */

.wp-block-button__link {
	transition: background-color var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Outline buttons inherit theme.json padding but need their own colours. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 1.5px;
}

/* ------------------------------------------------------------- content --- */

/* Keep prose to a comfortable measure even inside wide groups. */
.the-horse-prose > * {
	max-width: 42rem;
	margin-inline: auto;
}

.the-horse-prose > .alignwide,
.the-horse-prose > .alignfull,
.the-horse-prose > figure,
.the-horse-prose > .wp-block-columns {
	max-width: none;
}

/* Dark sections: make every descendant legible without per-block overrides. */
.the-horse-dark,
.the-horse-dark :where(h1, h2, h3, h4, h5, p, li) {
	color: var(--wp--preset--color--base);
}

.the-horse-dark :where(h6, .wp-block-heading.is-style-eyebrow) {
	color: var(--wp--preset--color--orange);
}

.the-horse-dark a:where(:not(.wp-block-button__link)) {
	color: var(--wp--preset--color--white);
	text-decoration-color: var(--wp--preset--color--orange);
	text-underline-offset: 3px;
}

/* Placeholder images. Marked visually so nobody mistakes one for finished work,
   and so a search for "is-placeholder" finds every outstanding picture. */
.the-horse-is-placeholder img {
	width: 100%;
	height: auto;
	display: block;
}

.the-horse-is-placeholder {
	position: relative;
}

/* Figures used as logo strips: normalise wildly different source sizes. */
.the-horse-logo-strip figure img {
	max-height: 64px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter var(--wp--custom--transition), opacity var(--wp--custom--transition);
}

.the-horse-logo-strip figure img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* Logos saved on a white ground (JPEG-like webp/png) would show as white boxes
   on the page's warm background; multiply lets the ground disappear. Very wide
   wordmarks (Lette-Verein) are capped so they don't outweigh the rest
   (2026-10-24, logo row on The Horse Project). The cap is a fixed length: a
   percentage (min(220px, 100%)) left the figure at the uncapped width, a blank
   gap beside BSB and Lette-Verein (2026-10-26). */
.the-horse-logo-strip figure img {
	mix-blend-mode: multiply;
	max-width: 220px;
}

/* The start page's partner stripe (partners-strip.php, 2026-10-26): all the
   partner schools in a calm band, so the logos are smaller (a little larger
   again since 2026-11-02, Dominik). */
.the-horse-logo-strip--compact figure img {
	max-height: 52px;
	max-width: 184px;
}

/* On phones the eleven logos took seven rows; smaller and closer, the band
   stays a band. */
@media (max-width: 599px) {
	.wp-block-group.the-horse-logo-strip--compact {
		gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	}
	.the-horse-logo-strip--compact figure img {
		max-height: 38px;
		max-width: 128px;
	}
}

/* Who takes part (The Horse Project, institutions.php, 2026-10-18): one tile
   per institution — logo or name, place and years, one line on what we did
   together, its domain at the foot. Since 2026-10-21 the tile holds several
   links (website, Wikipedia for the places), so it is a plain box that still
   lifts on hover; logo, name and domain lead to the website. */
.the-horse-inst {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: var(--wp--preset--spacing--30); /* no height: the grid stretches the tile to its row */
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--white);
	color: inherit;
	text-decoration: none;
	transition: border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.the-horse-inst:hover {
	border-color: var(--wp--preset--color--orange);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.the-horse-inst a {
	color: inherit;
	text-decoration: none;
}

.the-horse-inst a:hover,
.the-horse-inst a:focus-visible {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* The places: visibly links, but quieter than the name. */
.the-horse-inst__meta a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 0.15em;
}

.the-horse-inst__logo {
	display: flex;
	align-items: center;
	height: 64px;
	margin-bottom: 0.35rem;
}

.the-horse-inst__logo img {
	max-width: 100%;
	max-height: 64px;
	width: auto;
	object-fit: contain;
}

/* No logo: the name itself, set like a wordmark. */
.the-horse-inst__logo--text {
	height: auto;
	min-height: 64px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--primary);
}

.the-horse-inst__name {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.3;
}

.the-horse-inst__meta,
.the-horse-inst__domain {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
	color: var(--wp--preset--color--contrast-2);
	overflow-wrap: anywhere; /* christnagarschoolicse.edu.in in a phone-width tile */
}

/* What kind of school it is (2026-10-24), then what we did together, a shade
   quieter under it. */
.the-horse-inst__about,
.the-horse-inst__what {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.45;
}

.the-horse-inst__what {
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-inst__what strong {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

/* About, scientific partner (about-science.php): the cover of the expertise. */
.the-horse-science-cover {
	margin: 0;
	text-align: center;
}

.the-horse-science-cover img {
	width: min(200px, 100%);
	height: auto;
	border-radius: 6px;
	box-shadow: var(--wp--preset--shadow--lifted);
}

.the-horse-inst__domain {
	margin-top: auto;
	padding-top: 0.35rem;
	font-weight: 600;
}

/* Phones: two tiles a row instead of one (14 tiles were four screens long),
   and the start page's three figures stay on one row. Two classes, so they
   win over core's single-class layout rules without !important. */
@media (max-width: 599px) {
	.wp-block-group.the-horse-inst-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--20);
	}

	.the-horse-inst {
		padding: var(--wp--preset--spacing--20);
	}

	.the-horse-inst__logo {
		height: 48px;
	}

	.the-horse-inst__logo img {
		max-height: 48px;
	}

	.the-horse-inst__logo--text {
		min-height: 48px;
		font-size: 1rem;
	}

	.wp-block-group.the-horse-figures {
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--20);
	}

	.wp-block-group.the-horse-figures > * {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* --------------------------------------------------------------- misc --- */

.wp-block-post-content > *:first-child {
	margin-top: 0;
}

/* A horizontally scrollable row — used for projects and testimonials.
   Preferred over a JS carousel: no dependency, keyboard-navigable, and it
   degrades to a plain grid when there is room. */
.the-horse-scroller {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 1fr);
	gap: var(--wp--preset--spacing--30);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--wp--preset--spacing--30);
	padding-bottom: 1rem;
	overscroll-behavior-x: contain;
}

.the-horse-scroller > * {
	scroll-snap-align: start;
	/* The group is authored as a flow container, so core adds a block-gap top
	   margin to every child except the first. On a grid that lifts the first
	   card above all the others. The grid's own gap handles the spacing, so
	   drop the flow margin and let every card top-align. */
	margin-block: 0;
}

@media (min-width: 782px) {
	.the-horse-scroller {
		grid-auto-columns: minmax(320px, 1fr);
	}
}

/* --- project cards: whole card is the link ------------------------------- */
/*
 * One real link, on the title. Its ::after is stretched over the card so the
 * whole card is clickable while only a single link sits in the a11y tree.
 */
.the-horse-project-card {
	position: relative;
	/* Only the shadow changes on hover — deliberately no transform. A translate
	   moves the card out from under the cursor, hover ends, the card drops back,
	   hover returns, and it flickers (the whole card is a link, so the cursor
	   flips arrow/hand with it). A shadow lift reads the same and never moves. */
	transition: box-shadow var(--wp--custom--transition);
}

/* Any card whose title carries the stretched link must be its containing block,
   or the ::after covers a larger ancestor and the last card's link swallows
   every click (this broke /resources/ and /the-horse-project/what-projects/). */
.is-style-card:has(.the-horse-card-link) {
	position: relative;
}

.is-style-card:has(.the-horse-card-link):hover .the-horse-card-link {
	color: var(--wp--preset--color--primary);
}

.is-style-card:has(.the-horse-card-link:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.the-horse-card-link {
	text-decoration: none;
	color: inherit;
}

.the-horse-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.the-horse-project-card:hover {
	box-shadow: var(--wp--preset--shadow--lifted);
}

.the-horse-project-card:hover .the-horse-card-link {
	color: var(--wp--preset--color--primary);
}

/* Keyboard focus lands on the title link; show the ring on the whole card. */
.the-horse-project-card:has(.the-horse-card-link:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

/* --- scroller frame: arrows and edge fades ------------------------------- */

.the-horse-scroller-wrap {
	position: relative;
}

/* A fade at whichever edge still has content behind it. Off at the extremes,
   toggled by scroller.js; harmless with the script off (both stay on). */
.the-horse-scroller-wrap::before,
.the-horse-scroller-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 1rem; /* clear of the strip's own scrollbar gutter */
	width: 3rem;
	pointer-events: none;
	z-index: 1;
	opacity: 1;
	transition: opacity var(--wp--custom--transition);
}

.the-horse-scroller-wrap::before {
	left: 0;
	background: linear-gradient(to right, var(--wp--preset--color--base), transparent);
}

.the-horse-scroller-wrap::after {
	right: 0;
	background: linear-gradient(to left, var(--wp--preset--color--base), transparent);
}

.the-horse-scroller-wrap.at-start::before,
.the-horse-scroller-wrap.at-end::after,
.the-horse-scroller-wrap:not(.has-overflow)::before,
.the-horse-scroller-wrap:not(.has-overflow)::after {
	opacity: 0;
}

.the-horse-scroll-btn {
	position: absolute;
	top: calc((100% - 1rem) / 2);
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--lifted);
	cursor: pointer;
	transition: background var(--wp--custom--transition),
	            color var(--wp--custom--transition),
	            opacity var(--wp--custom--transition);
}

.the-horse-scroll-prev { left: -0.5rem; }
.the-horse-scroll-next { right: -0.5rem; }

.the-horse-scroll-btn:hover:not(:disabled) {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.the-horse-scroll-btn:disabled {
	opacity: 0;
	pointer-events: none;
}

/* Touch devices scroll by swipe and never hover; the arrows would only be in
   the way, so hide them and let the native gesture stand. */
@media (hover: none) {
	.the-horse-scroll-btn {
		display: none;
	}
}

/* ------------------------------------------------------ project map --- */

/* Click-to-load: the static map is shown first, and the live uMap iframe is
   only fetched when the visitor asks for it. Keeps the page fast and makes no
   third-party request by default, which matches the site's privacy stance. */
.the-horse-map {
	max-width: 60rem;
	margin-inline: auto;
}

.the-horse-map__load {
	display: block;
	position: relative;
	width: 100%;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	background: var(--wp--preset--color--white);
	cursor: pointer;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: box-shadow var(--wp--custom--transition), transform var(--wp--custom--transition);
}

.the-horse-map__load:hover {
	box-shadow: var(--wp--preset--shadow--lifted);
	transform: translateY(-2px);
}

.the-horse-map__load img {
	display: block;
	width: 100%;
	height: auto;
	/* The source file is only 560px wide; keep it crisp rather than blown up. */
	image-rendering: auto;
}

.the-horse-map__cue {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .7em 1.3em;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(18,33,44,.28);
}

.the-horse-map__note {
	margin: .85rem 0 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

/* Start page: "See all student projects" under the map (2026-10-19). */
.the-horse-map__more {
	margin: .9rem 0 0;
	text-align: center;
}

/* The Horse Project: the same map box under the project row, about as wide
   as on the start page, centred (projects-map.php). */
.the-horse-map--projects {
	max-width: 35rem;
}

/* Once loaded, the iframe takes the same slot. */
.the-horse-map__frame {
	width: 100%;
	aspect-ratio: 16 / 10;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--soft);
	background: var(--wp--preset--color--base-2);
}

@media (min-width: 782px) {
	.the-horse-map__frame { aspect-ratio: 2 / 1; }
}

/* --------------------------------------------- paired media (video/map) --- */

/* Two media boxes sitting side by side need the same shape, or the section
   looks lopsided. Both get a 16:9 frame; the map image is 560x327 (1.71),
   close enough to 16:9 that cover crops only a sliver. */
.the-horse-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	background: var(--wp--preset--color--base-2);
	box-shadow: var(--wp--preset--shadow--soft);
}

.the-horse-media__fill {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.the-horse-media-label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--contrast-2);
	margin-bottom: 0.6rem;
}

/* When the map button is also a media box, it must not inherit the standalone
   full-width treatment further up this file. */
.the-horse-map .the-horse-map__load.the-horse-media {
	padding: 0;
	cursor: pointer;
}

.the-horse-map .the-horse-map__load.the-horse-media .the-horse-map__cue {
	bottom: 0.85rem;
	font-size: var(--wp--preset--font-size--x-small);
	padding: 0.6em 1.1em;
}

/* The iframe replaces the button, so it needs the same frame. */
.the-horse-media + .the-horse-map__frame,
.the-horse-map .the-horse-map__frame {
	aspect-ratio: 16 / 9;
}

/* ----------------------------------------------------------------- FAQ --- */

.the-horse-faq {
	--faq-line: color-mix(in srgb, var(--wp--preset--color--contrast) 11%, transparent);
}

/* Jump list. Thirty-one questions is too many to scroll blindly. */
.the-horse-faq__jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--50);
	padding: 0;
	list-style: none;
}

.the-horse-faq__jump a {
	display: inline-block;
	padding: 0.4em 0.9em;
	border: 1px solid var(--faq-line);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	color: var(--wp--preset--color--contrast-2);
	background: var(--wp--preset--color--white);
	transition: color var(--wp--custom--transition), border-color var(--wp--custom--transition);
}

.the-horse-faq__jump a:hover {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

/* Section heading: a signpost, not a headline — it must not outshout the h1. */
.the-horse-faq__section {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary);
	margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--20);
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--wp--preset--color--orange);
	scroll-margin-top: 6rem;
}

.the-horse-faq__section:first-of-type {
	margin-top: var(--wp--preset--spacing--30);
}

/* The list of questions reads as one block, not scattered rows. */
.the-horse-faq .wp-block-details {
	border: 0;
	border-bottom: 1px solid var(--faq-line);
	border-radius: 0;
	margin: 0;
	padding: 0;
	scroll-margin-top: 6rem;
}

.the-horse-faq .wp-block-details > summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.05rem 3rem 1.05rem 0.85rem;
	margin: 0 -0.85rem;
	border-radius: var(--wp--custom--radius--md);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.4;
	transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition);
}

.the-horse-faq .wp-block-details > summary::-webkit-details-marker { display: none; }
.the-horse-faq .wp-block-details > summary::marker { content: ""; }

.the-horse-faq .wp-block-details > summary:hover {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--primary);
}

/* A plus that becomes a minus — clearer than a rotating chevron at small size. */
.the-horse-faq .wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: 1rem;
	top: 50%;
	width: 0.85rem;
	height: 0.85rem;
	margin-top: -0.425rem;
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 100% 2px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 2px 100% no-repeat;
	transition: transform var(--wp--custom--transition), opacity var(--wp--custom--transition);
}

.the-horse-faq .wp-block-details[open] > summary::after {
	transform: rotate(90deg);
	/* Hide the vertical stroke so the plus reads as a minus. */
	background:
		linear-gradient(var(--wp--preset--color--orange), var(--wp--preset--color--orange)) center / 100% 2px no-repeat;
}

.the-horse-faq .wp-block-details[open] > summary {
	color: var(--wp--preset--color--primary);
}

.the-horse-faq .wp-block-details > :not(summary) {
	margin: 0 0 1.15rem;
	padding-left: 0.85rem;
	border-left: 2px solid var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast-2);
	max-width: 62ch;
}

/* Open/close animation where the browser supports it; a no-op elsewhere. */
@supports selector(::details-content) {
	.the-horse-faq .wp-block-details::details-content {
		block-size: 0;
		overflow: hidden;
		opacity: 0;
		transition: content-visibility 220ms allow-discrete, opacity 220ms, block-size 220ms;
	}

	.the-horse-faq .wp-block-details[open]::details-content {
		block-size: auto;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.the-horse-faq .wp-block-details::details-content { transition: none; }
}

/* ======================================================== header & nav === */
/*
 * Rebuilt from scratch, 22 Aug 2026, after the overlay menu kept opening as a
 * small box trapped inside the header.
 *
 * The cause: backdrop-filter (any value but none) makes an element a
 * containing block for position:fixed descendants. Core's overlay menu is a
 * descendant of the header and relies on inset:0 resolving against the
 * VIEWPORT. With the filter on the header, inset:0 resolved against the header
 * box instead — hence a menu the size of the header bar.
 *
 * The fix is structural rather than a override war: the blur now lives on a
 * ::before pseudo-element, which is a CHILD of the header, not an ancestor of
 * the navigation. Same look, no containing block, nothing to keep in sync.
 *
 * Core puts both is-menu-open and has-modal-open on
 * .wp-block-navigation__responsive-container — never on <body>. Any rule that
 * needs the open state must hang off that element.
 */

.the-horse-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: transparent;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

/* The translucent blurred panel. A child, deliberately — see the note above. */
.the-horse-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
}

/* The logo (Dominik, 2026-10-31): one image with the name and the tagline where
   the bar has room, the name alone below that. It replaces the site-logo,
   site-title and site-tagline blocks; both images are in assets/images,
   cropped and made transparent from the files he sent. */
.the-horse-brand {
	display: block;
	line-height: 0;
}

.the-horse-brand img {
	display: block;
	width: auto;
	max-width: none;
	height: 56px;
}

.the-horse-brand .the-horse-brand__short {
	display: none;
	height: 44px;
}

/* The call to action never wraps or shrinks — it is what people look for. */
.the-horse-header .wp-block-button__link {
	white-space: nowrap;
}

.the-horse-header .wp-block-buttons,
.the-horse-header .wp-block-button {
	flex-shrink: 0;
}

/* --- the flat bar ------------------------------------------------------- */

/* Underline that grows from the left, on the desktop bar only. */
.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.35rem;
}

.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--orange);
	transition: right var(--wp--custom--transition);
}

.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover::after,
.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .current-menu-item > .wp-block-navigation-item__content::after {
	right: 0;
}

/* Desktop dropdowns. */
.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--lifted);
	padding: 0.35rem;
	background: var(--wp--preset--color--white);
}

.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: var(--wp--custom--radius--sm);
	padding: 0.5rem 0.75rem;
}

.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--base-2);
}

/* The last few dropdowns open inwards so they cannot run off the page. */
.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:nth-last-child(-n+3) .wp-block-navigation__submenu-container {
	left: auto;
	right: 0;
}

/* Drawer-only items (2026-10-18): Home comes first in the drawer; on the bar
   the logo is Home. Set per item in _tools/_build-menu.php. */
.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) .the-horse-mobile-only {
	display: none;
}

/* --- fitting the bar ----------------------------------------------------- */
/*
 * Retuned for the four-item menu. With seven items the navigation alone was
 * 668px and the bar ran out at 1200px; with four it is 401px, and the whole
 * row — identity, navigation and the Join button — measures about 807px plus
 * the tagline. So the stages move down, and the flat bar survives to roughly
 * tablet width instead of collapsing on a laptop.
 *
 * If items are ever added back, measure before raising these again: the number
 * that matters is the sum of the row's children against viewport minus ~56px.
 *
 * 2026-10-18: all four items now have a dropdown, so four chevrons instead of
 * two. At the 0.875rem stage the navigation needs 448px on one row; at 861px
 * it got 416px and About wrapped. The drawer now takes over below 910px
 * (measured with the real fonts via ?inline-assets=1).
 *
 * 2026-10-21: the header button says "Join now" (Dominik), about 35px wider.
 * The stages moved up with it: tagline off below 1040px, small type below
 * 990px, drawer below 950px. At 1001 to 1040 and 911 to 950 the row wrapped.
 *
 * 2026-10-31: the logo is an image now, 312px wide with the tagline (56px
 * high). With it the menu wrapped up to 1110px, so the logo without the tagline
 * (208px) takes over below 1141px, with some room for other fonts.
 */

@media (max-width: 1140px) {
	.the-horse-brand .the-horse-brand__full { display: none; }
	.the-horse-brand .the-horse-brand__short { display: block; }
}

@media (max-width: 1100px) {
	.the-horse-header .wp-block-navigation__container { gap: 1.25rem; }
}

@media (max-width: 990px) {
	.the-horse-header .wp-block-navigation__container { gap: 1rem; }

	.the-horse-header nav.wp-block-navigation,
	.the-horse-header nav.wp-block-navigation .wp-block-navigation-item__content {
		font-size: 0.875rem;
	}
}

/* Below this four items and the button cannot share a row honestly. Core
   switches at 600px, which is still too late even for a menu this small. */
@media (max-width: 950px) {
	.the-horse-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.the-horse-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* --- the overlay: a left-hand drawer ------------------------------------- */
/*
 * Core's markup nests three useful elements:
 *   .__responsive-container   full-screen  -> the scrim
 *     .__responsive-close     flex row     -> aligns the panel
 *       .__responsive-dialog               -> the panel itself
 *
 * So the drawer needs no extra markup: dim the container, and let the dialog
 * be a fixed-width panel against the left edge.
 */

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	padding: 0;
	/* !important is needed here: the block carries has-base-background-color,
	   a preset class that sets background-color with !important, and core also
	   paints the container #fff. Neither can be beaten on specificity alone. */
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 55%, transparent) !important;
	overflow: hidden;
	z-index: 100000;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open * {
	box-sizing: border-box;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	display: flex;
	justify-content: flex-start;
	/* flex-start, not stretch: the panel should be as tall as its contents. */
	align-items: flex-start;
	height: auto;
	max-height: 100%;
	max-width: none;
	padding: 0;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	width: min(86vw, 340px);
	/* Sized by its content, capped so a long menu still scrolls. */
	height: auto;
	max-height: 100%;
	margin: 0;
	padding: 1.25rem 1.25rem 1.5rem;
	background: var(--wp--preset--color--base);
	border-radius: 0 0 var(--wp--custom--radius--lg) 0;
	box-shadow: 0 18px 48px -18px rgba(18, 33, 44, 0.5);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* No trailing rule under the last item, now that the panel ends there. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child {
	border-bottom: 0;
}

/* Everything reads from the left, whatever the desktop bar is justified to. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	--navigation-layout-justification-setting: flex-start;
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
	width: 100%;
	gap: 0;
}

/* The whole drawer reads from the left. The desktop bar is justified right,
   and core pipes that through --navigation-layout-justification-setting into
   align-items on every item, so the variable itself has to be reset. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-align: flex-start;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left;
}

/* Top-level rows: a comfortable target with a hairline between them. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 48px;
	width: 100%;
	padding: 0.35rem 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	text-align: left;
}

/* --- collapsible submenus ------------------------------------------------ */
/*
 * Core's overlay is built to show every submenu expanded — on open it sets
 * aria-expanded="true" on all of them. So the drawer cannot read core's state;
 * it keeps its own (.the-horse-sub-open, set by assets/js/nav.js) and hides
 * core's chevron in favour of its own button.
 */

/* Our button exists at all widths; only the drawer shows it. */
.the-horse-subtoggle {
	display: none;
}

/* Core's own chevron stays hidden inside the drawer. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle,
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	display: none !important;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .the-horse-subtoggle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	min-height: 48px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

.the-horse-subtoggle svg {
	transition: transform var(--wp--custom--transition);
}

.the-horse-subtoggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* A parent row is link + chevron on ONE line. Core sets flex-direction:column
   on every item in the overlay, which has to be undone here. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100%;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
	flex: 1 1 auto;
	width: auto;
}

/* Collapsed unless our own class says otherwise. Core forces height/opacity/
   visibility here, so display is the only reliable lever. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	display: none !important;
	position: static;
	flex-basis: 100%;
	width: 100%;
	min-width: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	padding: 0 0 0.6rem 0.9rem;
	margin: 0 0 0.35rem;
	border-left: 2px solid var(--wp--preset--color--orange);
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child.the-horse-sub-open > .wp-block-navigation__submenu-container {
	display: flex !important;
	flex-direction: column;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 0;
	width: 100%;
}

.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	min-height: 40px;
	padding-left: 0;
	color: var(--wp--preset--color--contrast-2);
}

/* --- focus inside the drawer --------------------------------------------- */
/*
 * Core moves focus to the first link when the drawer opens, and Chrome treats
 * that programmatic focus as :focus-visible — which drew a hard box around the
 * first item every time. Keep an indicator for keyboard users, but a quieter
 * one: a tinted row with an orange edge rather than an outline.
 */
/*
 * Never show a focus ring inside the drawer for pointer users: core focuses the
 * first link the instant the drawer opens, which made a tap look like a
 * selection, and a tapped chevron kept a stray box. Suppress the ring for
 * everyone, then hand it back only while the keyboard is driving —
 * .the-horse-kbd is set on <html> by assets/js/nav.js.
 */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open :where(a, button):focus,
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open :where(a, button):focus-visible {
	outline: none !important;
	background: transparent;
	box-shadow: none;
}

/* Keyboard: a full-width row reads as a highlighted line... */
.the-horse-kbd .the-horse-header .wp-block-navigation__responsive-container.is-menu-open a:focus {
	background: var(--wp--preset--color--base-2);
	box-shadow: inset 3px 0 0 0 var(--wp--preset--color--orange);
	border-radius: var(--wp--custom--radius--sm);
}

/* ...but the chevron is a small square, where an inset bar looks like debris.
   Give it a ring of its own instead. */
.the-horse-kbd .the-horse-header .wp-block-navigation__responsive-container.is-menu-open .the-horse-subtoggle:focus {
	background: var(--wp--preset--color--base-2);
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--sm);
}

/* The container itself carries tabindex="-1", so it can take focus and draw a
   ring around the entire drawer. It never needs one. */
.the-horse-header .wp-block-navigation__responsive-container:focus,
.the-horse-header .wp-block-navigation__responsive-container:focus-visible,
.the-horse-header .wp-block-navigation__responsive-dialog:focus,
.the-horse-header .wp-block-navigation__responsive-container-content:focus {
	outline: none !important;
}

/* The close button sits top-right of the panel, not the screen. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 0.9rem;
	right: auto;
	left: min(86vw, 340px);
	transform: translateX(-3.25rem);
	color: var(--wp--preset--color--contrast);
	z-index: 2;
}

/* Logged-in admins get the WordPress toolbar, which is fixed at the top. Core's
   own allowance for this targets .has-modal-open as an ANCESTOR of .admin-bar,
   which never happens with this markup. */
body.admin-bar .the-horse-header .wp-block-navigation__responsive-container.is-menu-open {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .the-horse-header .wp-block-navigation__responsive-container.is-menu-open {
		top: 46px;
	}
}

/* The drawer panel keeps a solid ground of its own, since its parent is now a
   translucent scrim. */
.the-horse-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	background: var(--wp--preset--color--base) !important;
}

/* --- header search ------------------------------------------------------- */
/*
 * A magnifier in the bar that opens a full-width search bar across the header,
 * as on dontwastemy.energy. The bar is ABSOLUTE, positioned against the header
 * itself, which is already sticky and therefore already a positioned ancestor.
 * Nothing here may use fixed, or set transform/filter/backdrop-filter on the
 * header — see the note at the top of this header section.
 *
 * assets/js/search.js builds the two buttons and moves the core/search block
 * into the bar. Until it runs, the rules under :not(.is-ready) keep the plain
 * form small enough to sit in the bar without disturbing the width budget.
 */

.the-horse-search {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Before the script upgrades it — and if the script never runs at all. */
.the-horse-search:not(.is-ready) .wp-block-search {
	max-width: 11rem;
}

@media (max-width: 1200px) {
	.the-horse-search:not(.is-ready) {
		display: none;
	}
}

.the-horse-search-toggle,
.the-horse-search-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	flex-shrink: 0;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: background var(--wp--custom--transition),
	            color var(--wp--custom--transition);
}

.the-horse-search-toggle:hover,
.the-horse-search-close:hover {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--primary);
}

/* --- the open bar -------------------------------------------------------- */

.the-horse-search-bar {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 3;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	/* Core gives every group child a block-gap margin. On an absolutely
	   positioned box with top and bottom both 0 that margin is not ignored:
	   it over-constrains the box and eats the same number of pixels off its
	   height. It has to go. */
	margin: 0;
	/* Line the field up with the header content, which is centred at 84rem,
	   without giving up the edge-to-edge ground. */
	padding-inline: max(var(--wp--preset--spacing--30), (100% - 84rem) / 2);
	background: var(--wp--preset--color--base);
}

/* No entrance animation, matching the navigation drawer. A keyframe fade
   would also strand the bar at zero opacity in any browser that is not
   compositing, which is exactly where this gets checked. */
.the-horse-search.is-open .the-horse-search-bar {
	display: flex;
}

/* The rest of the row goes, rather than merely being covered, so that it
   leaves the tab order with it. */
.the-horse-header.the-horse-searching .alignwide > * {
	visibility: hidden;
}

.the-horse-header.the-horse-searching .the-horse-search,
.the-horse-header.the-horse-searching .the-horse-search-bar {
	visibility: visible;
}

.the-horse-header.the-horse-searching .the-horse-search-toggle {
	visibility: hidden;
}

/* --- the field itself ---------------------------------------------------- */

.the-horse-search-bar .wp-block-search {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

/* Core gives the wrapper a white ground and a border. The bar is already its
   own surface — it replaces the whole header row — so a second box inside it
   is one edge too many. The text sits straight on the bar. */
.the-horse-search-bar .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	gap: 0.25rem;
	background: transparent;
}

.the-horse-search-bar .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.5rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}

.the-horse-search-bar .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 1;
}

.the-horse-search-bar .wp-block-search__button {
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--primary);
	transition: background var(--wp--custom--transition);
}

.the-horse-search-bar .wp-block-search__button:hover {
	background: var(--wp--preset--color--base-2);
}

.the-horse-search-bar .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Nothing to gain from a serif at phone widths — the field gets narrow. */
@media (max-width: 640px) {
	.the-horse-search-bar .wp-block-search__input {
		font-family: var(--wp--preset--font-family--body);
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* --- search results ------------------------------------------------------ */

/* The form on the results page is the ordinary core one, not the header bar. */
.the-horse-search-again {
	max-width: 32rem;
}

.the-horse-search-again .wp-block-search__inside-wrapper {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.15rem 0.15rem 0.15rem 1rem;
	background: var(--wp--preset--color--white);
}

.the-horse-search-again .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 0.5rem 0;
}

.the-horse-search-again .wp-block-search__button {
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--primary);
	padding: 0.4rem 0.6rem;
}

.the-horse-search-again .wp-block-search__button:hover {
	background: var(--wp--preset--color--base-2);
}

/* Results are a plain list: pages and posts mixed, so no dates and no featured
   images — most pages have neither.

   Each result group is the only child of its own <li>, so :first-child on the
   group matches every one of them and would erase every separator. The rule
   has to hang off the list items instead. */
.the-horse-result {
	padding-block: var(--wp--preset--spacing--20);
}

.wp-block-post-template > li + li .the-horse-result {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.wp-block-post-template > li:first-child .the-horse-result {
	padding-top: 0;
}

.the-horse-result .wp-block-post-title a {
	text-decoration: none;
}

.the-horse-result .wp-block-post-title a:hover {
	text-decoration: underline;
}

.the-horse-result .wp-block-post-excerpt {
	color: var(--wp--preset--color--contrast-2);
}

/* --- the bar at phone widths --------------------------------------------- */
/*
 * Measured at 375px before the search existed: identity 218 + hamburger 24 +
 * Take part 96 against a bar of 335, which already ran the button 23px off the
 * right edge. Adding a 38px magnifier makes that untenable, so the bar gives
 * space back where it costs least — the gaps between the controls, a step down
 * in the site title, and tighter padding on the button. The header keeps a
 * narrower gutter than the page body, which it can afford: it holds one row.
 */

@media (max-width: 720px) {
	.the-horse-header {
		padding-inline: 0.7rem;
	}

	.the-horse-header .the-horse-actions {
		gap: 0.3rem;
	}

	.the-horse-brand .the-horse-brand__short {
		height: 38px;
	}

	.the-horse-header .wp-block-button__link {
		padding-inline: 0.7em;
	}

	/* Match the hamburger, which is the other icon in the row. */
	.the-horse-search-toggle,
	.the-horse-search-close {
		width: 2rem;
		height: 2rem;
	}
}

/* Narrower again — 360px Android is the common case. One more step down on the
   logo buys back what the magnifier costs, so the association name survives. */
@media (max-width: 400px) {
	.the-horse-brand .the-horse-brand__short {
		height: 32px;
	}
}

/* At 320px — an iPhone SE of the first generation — the logo shrinks once more
   so that it, the hamburger, the magnifier and the button share one row. */
@media (max-width: 340px) {
	.the-horse-brand .the-horse-brand__short {
		height: 27px;
	}
}

/* --- back to top --------------------------------------------------------- */
/*
 * A quiet counterpart to the header: ink, not orange, because the one orange
 * thing on any screen should stay the call to action.
 *
 * Shown and hidden with display rather than opacity. A fade would leave the
 * button stranded and invisible in any browser that is not advancing
 * animations, and display:none also keeps it out of the tab order while it is
 * not offered — visibility alone would do that too, but this way there is one
 * mechanism rather than two.
 */

.the-horse-totop {
	display: none;
	position: fixed;
	right: clamp(0.85rem, 3vw, 2rem);
	bottom: clamp(0.85rem, 3vw, 2rem);
	z-index: 40;
	width: 2.9rem;
	height: 2.9rem;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	/* Translucent at rest, so it sits over the text rather than punching a
	   hole in it, and solid the moment it is engaged. At this mix the white
	   chevron still clears 4.5:1 against the lightest ground on the site. */
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 62%, transparent);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background var(--wp--custom--transition),
	            transform var(--wp--custom--transition);
}

.the-horse-totop.is-visible {
	display: flex;
}

.the-horse-totop:hover {
	background: var(--wp--preset--color--primary);
	transform: translateY(-2px);
}

.the-horse-totop svg {
	display: block;
}

/* Clear of a thumb resting at the bottom of a phone, and of the browser's own
   bottom chrome. */
@media (max-width: 640px) {
	.the-horse-totop {
		width: 2.6rem;
		height: 2.6rem;
	}
}

/* --- feedback tab -------------------------------------------------------- */
/*
 * For the launch phase (inc/feedback.php, Dominik 2026-11-02). A narrow tab on
 * the right edge, just above the back-to-top button so the two never meet; ink
 * like that button, because orange stays with "Join now". It opens a <dialog>
 * that slides in at the bottom right, a sheet across the bottom on phones.
 * Kept quiet on purpose (Dominik, 2026-11-03: narrower, higher, lighter;
 * 2026-11-04: more discreet, higher again, corners only slightly round so it
 * does not compete with the round back-to-top button). Since 2026-11-04 light
 * instead of ink: paper with a hairline and muted ink text (6.7:1), so the
 * ink button below stays the only dark thing on the edge; ink on hover.
 */

.the-horse-feedback-tab {
	position: fixed;
	right: 0;
	bottom: calc(clamp(0.85rem, 3vw, 2rem) + 8.5rem);
	z-index: 40;
	writing-mode: vertical-rl;
	transform: rotate(180deg); /* reads bottom to top */
	padding: 0.8rem 0.35rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	border-left: 0; /* the screen edge, once turned */
	border-radius: 0 var(--wp--custom--radius--sm) var(--wp--custom--radius--sm) 0; /* the left side, once turned */
	background: color-mix(in srgb, var(--wp--preset--color--white) 94%, transparent);
	color: var(--wp--preset--color--contrast-2);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: background var(--wp--custom--transition),
	            color var(--wp--custom--transition),
	            border-color var(--wp--custom--transition);
}

/* The old horse (2026-11-15, Dominik) before the text. The tab's flex row runs
   along the vertical text, so the icon sits below it; turned back upright. */
.the-horse-feedback-tab {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.the-horse-feedback-tab__icon {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
	transform: rotate(180deg);
	border-radius: 50%;
	transition: background var(--wp--custom--transition);
}

/* The brown horse on the teal hover: a light disc behind it. */
.the-horse-feedback-tab:hover .the-horse-feedback-tab__icon,
.the-horse-feedback-tab:focus-visible .the-horse-feedback-tab__icon {
	background: var(--wp--preset--color--white);
}

.the-horse-feedback-tab:hover,
.the-horse-feedback-tab:focus-visible {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.the-horse-feedback {
	position: fixed;
	inset: auto clamp(0.85rem, 3vw, 2rem) clamp(0.85rem, 3vw, 2rem) auto;
	margin: 0;
	width: min(26rem, calc(100vw - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	overflow: auto;
	padding: 0; /* see feedback.js: a click on the dialog itself is a click outside */
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.the-horse-feedback[open] {
	animation: the-horse-feedback-in 0.25s ease-out;
}

@keyframes the-horse-feedback-in {
	from {
		opacity: 0;
		transform: translateX(1.5rem);
	}
}

.the-horse-feedback::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
}

.the-horse-feedback__inner {
	position: relative;
	padding: var(--wp--preset--spacing--40);
}

.the-horse-feedback__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	display: flex;
	padding: 0.4rem;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: none;
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
}

.the-horse-feedback__close:hover {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

.the-horse-feedback__title {
	margin: 0 2.5rem 0.4rem 0;
	font-size: var(--wp--preset--font-size--large);
}

.the-horse-feedback__lede {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

/* The honeypot: out of sight and out of the tab order, but not display:none,
   which some bots know to skip. */
.the-horse-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.the-horse-feedback-tab {
		padding: 0.65rem 0.3rem;
		font-size: 0.7rem;
	}
	.the-horse-feedback {
		inset: auto 0 0 0;
		width: 100%;
		border-radius: var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0 0;
	}
	@keyframes the-horse-feedback-in {
		from {
			transform: translateY(1.5rem);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.the-horse-feedback[open] {
		animation: none;
	}
}

@media print {
	.the-horse-feedback-tab {
		display: none;
	}
}

/* --- contact routes ------------------------------------------------------ */
/*
 * The three disclosures on the contact page. Unlike the Q&A, each one holds a
 * whole form, so they are cards rather than hairline-separated rows — the open
 * one needs to read as a container, not as a run of text.
 */

.the-horse-contact-routes .wp-block-details {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--white);
	padding: 0;
	margin: 0;
	scroll-margin-top: 6rem;
}

.the-horse-contact-routes .wp-block-details[open] {
	box-shadow: var(--wp--preset--shadow--soft);
}

.the-horse-contact-routes .wp-block-details > summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.1rem 3.25rem 1.1rem 1.25rem;
	border-radius: var(--wp--custom--radius--md);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.4;
}

.the-horse-contact-routes .wp-block-details > summary::-webkit-details-marker { display: none; }
.the-horse-contact-routes .wp-block-details > summary::marker { content: ""; }

.the-horse-contact-routes .wp-block-details > summary:hover {
	color: var(--wp--preset--color--primary);
}

/* The same plus-to-minus the Q&A uses, so one affordance means one thing. */
.the-horse-contact-routes .wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 0.85rem;
	height: 0.85rem;
	margin-top: -0.425rem;
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 100% 2px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 2px 100% no-repeat;
}

.the-horse-contact-routes .wp-block-details[open] > summary::after {
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 100% 2px no-repeat;
}

.the-horse-contact-routes .wp-block-details > :not(summary) {
	margin-inline: 1.25rem;
}

.the-horse-contact-routes .wp-block-details > :last-child {
	margin-bottom: 1.25rem;
}

/* --- contact form 7 ------------------------------------------------------ */
/*
 * Contact Form 7 ships almost no styling of its own, and none of it knows
 * about theme.json. These rules restate the theme's own field and button
 * language for the controls the plugin renders.
 */

.wpcf7-form p {
	margin-block: 0 0.85rem;
}

/* The plugin wraps each control in an inline span. */
.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	transition: border-color var(--wp--custom--transition);
}

.wpcf7-form textarea {
	min-height: 7rem;
	resize: vertical;
}

.wpcf7-form input:hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
}

.wpcf7-form ::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 1;
}

/* The consent checkbox is a sentence, not a field: it sits on its own line
   with the box beside the words rather than above them. */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--primary);
}

/* The theme's own button language — theme.json's elements.button, restated for
   markup the plugin renders outside the block system. */
.wpcf7-form input[type="submit"] {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	cursor: pointer;
	transition: background var(--wp--custom--transition);
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--contrast);
}

.wpcf7-form input[type="submit"]:disabled {
	opacity: 0.55;
	cursor: default;
}

/* --- what the form says back --------------------------------------------- */

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	color: var(--wp--preset--color--red);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.wpcf7-form .wpcf7-not-valid {
	border-color: var(--wp--preset--color--red);
}

.wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--preset--font-size--small);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	color: var(--wp--preset--color--red);
}

.wpcf7 form.sent .wpcf7-response-output {
	color: var(--wp--preset--color--green);
}

.wpcf7-spinner {
	margin-left: 0.6rem;
}

/* Shown by patterns/contact.php when a form it expects is not on the site. */
.the-horse-form-missing {
	padding: 0.85rem 1rem;
	border: 1.5px dashed var(--wp--preset--color--red);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--red);
	font-size: var(--wp--preset--font-size--small);
}

/* --- the project one-pager ------------------------------------------------ */

/* Jump links under the hero. The only orientation an eight-section page gets,
   so they stay quiet but must not disappear against the dark band. */
.the-horse-jump {
	max-width: 46rem;
	margin-inline: auto;
	line-height: 2.2;
}

.the-horse-jump a {
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	padding-bottom: 0.1em;
	white-space: nowrap;
}

.the-horse-jump a:hover {
	border-bottom-color: currentColor;
}

.the-horse-jump span {
	opacity: 0.4;
	margin-inline: 0.35rem;
}

/* The four movements. The number is an ordinal, not decoration — the steps
   genuinely cannot happen out of order. */
.the-horse-flow__step {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--orange);
	margin: 0 0 0.35rem;
}

.the-horse-flow .wp-block-column {
	border-top: 2px solid color-mix(in srgb, var(--wp--preset--color--orange) 45%, transparent);
	padding-top: 0.9rem;
}

/* Start page, "How it works": method, tools and support, one sentence each,
   set apart from the three numbered steps above them (2026-10-18). */
.the-horse-howto-parts .wp-block-column {
	border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	padding-top: 0.9rem;
}

/* The small title above a page's h1 (functions.php, _the_horse_eyebrow). */
.the-horse-title-eyebrow {
	margin: 0 0 0.35rem;
}

/* About › History: the two archived websites, set apart from the eight beats
   by a quieter background (about-history.php, 2026-10-19). */
.the-horse-archive-box {
	background: var(--wp--preset--color--base-2);
}

/* 2026-10-19: a small screenshot of each old site as background, fading into
   the box colour where the text sits, so the text stays readable. */
.the-horse-archive-box--teachingweb { --the-horse-archive-shot: url(/wp-content/uploads/2026/10/archive-teachingweb-org.webp); }
.the-horse-archive-box--the-horse   { --the-horse-archive-shot: url(/wp-content/uploads/2026/10/archive-the-horse-education.webp); }

.the-horse-archive-box--teachingweb,
.the-horse-archive-box--the-horse {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 21rem;
	background-color: var(--wp--preset--color--base-2);
	/* The screenshot as a full-width thumbnail at the top; it fades out before
	   the text starts, so the label, title and sentence sit on the plain box. */
	background-image:
		linear-gradient(to bottom,
			transparent 0%,
			transparent 24%,
			var(--wp--preset--color--base-2) 38%),
		var(--the-horse-archive-shot, none);
	background-size: auto, 100% auto;
	background-position: center, top center;
	background-repeat: no-repeat;
}

/* The evaluation graphic (befter-method.php): a core image block with core's
   lightbox, so the corners come from here rather than an inline style. */
.the-horse-eval-figure img {
	border-radius: 12px;
}

/* The seven step names as a single readable strip, rather than seven cards —
   the cards belong on /befter/, which is the page this teaser defends. */
.the-horse-befter-strip__item {
	margin: 0;
	padding: 0.4rem 0.85rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	white-space: nowrap;
}

.the-horse-befter-strip__item span {
	color: var(--wp--preset--color--orange);
	font-weight: 700;
	margin-right: 0.15rem;
}

/* --- home hero ------------------------------------------------------------ */

/* The mosaic of the 2025 participants sits behind the opening statement. The
   gradient is what keeps the text legible; it fades to the right so the faces
   stay visible where the text is not. Tune it here, not in the pattern. */
.the-horse-hero {
	position: relative;
	isolation: isolate;
	background-color: var(--wp--preset--color--contrast);
	background-image: url('/wp-content/uploads/2026/09/the-horse-students-hero.webp');
	background-size: cover;
	background-position: 50% 40%;
}

.the-horse-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg,
			rgba(18, 33, 44, 0.96) 0%,
			rgba(18, 33, 44, 0.90) 40%,
			rgba(14, 79, 99, 0.62) 72%,
			rgba(14, 79, 99, 0.42) 100%),
		linear-gradient(180deg, rgba(18, 33, 44, 0.30), rgba(18, 33, 44, 0.30));
}

.the-horse-hero__text {
	max-width: 46rem;
}

@media (max-width: 781px) {
	.the-horse-hero::before {
		background: linear-gradient(180deg,
			rgba(18, 33, 44, 0.94) 0%,
			rgba(18, 33, 44, 0.90) 60%,
			rgba(14, 79, 99, 0.84) 100%);
	}
}

/* --- open call ------------------------------------------------------------ */

/* The invitation card overlaps the bottom of the hero so the two read as one
   opening — the statement, then the door. */
.the-horse-open-call__card {
	margin-top: calc(-1 * var(--wp--preset--spacing--50));
	box-shadow: var(--wp--preset--shadow--lifted);
}

.the-horse-chip {
	margin: 0;
	padding: 0.35rem 0.85rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.the-horse-chip {
		white-space: normal;
	}
}

/* Open call: each chip is the link to its join page (2026-10-21). The link
   fills the pill, so the whole pill is the target; the pill's hover (border
   and text in primary) comes from the news-feed chip rules further down. */
.the-horse-open-call .the-horse-chip {
	padding: 0;
	line-height: 1.2;
}

.the-horse-open-call .the-horse-chip a {
	display: block;
	padding: 0.5rem 0.9rem;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

/* --- open call: the overlap must beat core's layout margin ---------------- */

/* Core's layout support sets margin-block-start:0 on the first child of a
   constrained group; the card needs to win to overlap the hero. */
.wp-block-group.the-horse-open-call__card.is-style-card {
	margin-top: calc(-1 * var(--wp--preset--spacing--50)) !important;
}

/* --- timeline (milestones, talks, the programme) -------------------------- */

.the-horse-timeline__year {
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--primary);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 2px solid color-mix(in srgb, var(--wp--preset--color--orange) 45%, transparent);
}

.the-horse-timeline__item {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: var(--wp--preset--spacing--30);
	align-items: start;
	padding-bottom: var(--wp--preset--spacing--20);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
}

.the-horse-timeline__item > * {
	margin-block: 0 !important;
}

.the-horse-timeline__when {
	font-weight: 700;
	color: var(--wp--preset--color--contrast-2);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-top: 0.2rem;
}

@media (max-width: 600px) {
	.the-horse-timeline__item {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

/* --- teams page: groups of people ----------------------------------------- */

.the-horse-team-group + .the-horse-team-group {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

/* --- downloads ------------------------------------------------------------ */

.the-horse-downloads li {
	padding-left: 1.6rem;
	position: relative;
	list-style: none;
}

.the-horse-downloads li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 0.9rem;
	height: 1.1rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 2px;
	opacity: 0.6;
}

/* --- page list (sitemap) -------------------------------------------------- */

.wp-block-page-list {
	list-style: none;
	padding-left: 0;
}

.wp-block-page-list .wp-block-pages-list__item {
	margin-bottom: 0.4rem;
}

.wp-block-page-list .wp-block-navigation__submenu-container {
	padding-left: 1.25rem;
	margin-top: 0.3rem;
}


/* --- home hero: logo beside the text, and a slightly stronger veil so the
   busy mosaic never fights the type or the emblem ------------------------- */

.the-horse-hero::before {
	background:
		linear-gradient(90deg,
			rgba(18, 33, 44, 0.94) 0%,
			rgba(18, 33, 44, 0.82) 42%,
			rgba(14, 79, 99, 0.60) 72%,
			rgba(14, 79, 99, 0.52) 100%),
		linear-gradient(180deg, rgba(18, 33, 44, 0.28), rgba(18, 33, 44, 0.28));
}

.the-horse-hero__logo {
	margin-block: 0;
}

.the-horse-hero__logo img {
	filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

@media (max-width: 781px) {
	.the-horse-hero::before {
		background: linear-gradient(180deg,
			rgba(18, 33, 44, 0.92) 0%,
			rgba(18, 33, 44, 0.88) 60%,
			rgba(14, 79, 99, 0.84) 100%);
	}
	.the-horse-hero__logo { margin-top: var(--wp--preset--spacing--20); }
	.the-horse-hero__logo img { max-width: 220px; }
}


/* --- self-hosted videos (portrait phone clips) --------------------------- */

.the-horse-videos {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	flex-wrap: wrap;
}

.the-horse-video-card {
	flex: 1 1 0;
	min-width: 130px;
	margin: 0;
}

.the-horse-video {
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--md);
	background: #0b0f13;
	display: block;
	box-shadow: var(--wp--preset--shadow--soft);
}

.the-horse-video-card figcaption {
	margin-top: 0.55rem;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.35;
	color: var(--wp--preset--color--contrast-2);
}

/* In a testimonial card the video is constrained by height so the card stays
   a sensible size in the horizontal scroller. */
.the-horse-testimonial-video {
	margin-bottom: var(--wp--preset--spacing--20);
}

.the-horse-testimonial-video .the-horse-video {
	height: 360px;
	width: auto;
	max-width: 100%;
	margin-inline: auto;
}

@media (max-width: 600px) {
	.the-horse-testimonial-video .the-horse-video { height: 300px; }
}


/* --- product screenshots (Collab) --------------------------------------- */

.the-horse-shot { margin: 0; }

/* min(): a 360px cap must not beat the column on a 375px phone */
.the-horse-shot--portrait img {
	max-width: min(360px, 100%);
	margin-inline: auto;
	display: block;
}

.the-horse-shot figcaption {
	margin-top: 0.5rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}


/* --- Events and News: living band, filter chips, feed ------------------- */

/* The hand-edited "Right now" card inside the dark opening band. */
.the-horse-now {
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.the-horse-now__label {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--wp--preset--color--orange);
}

/* The category filter chips. */
.the-horse-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: var(--wp--preset--spacing--40);
}

.the-horse-chip {
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.the-horse-chip:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.the-horse-chip.is-active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* The feed of little boxes, in rows: time reads left to right, then down
   (Dominik, 2026-09-28; it used to read down each column). Without JavaScript
   it is a plain grid, where a short card leaves a gap below it. news-filter.js
   adds .is-masonry and gives each card a row span from its height, so the
   cards pack with no gaps while keeping the row order. */
.the-horse-feed {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: var(--wp--preset--spacing--30);
	align-items: start;
}

.the-horse-feed.is-masonry {
	grid-auto-rows: 4px;
	row-gap: 0;
}

.the-horse-card {
	display: block;
	margin: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--soft);
	overflow: hidden;
}

.the-horse-card[hidden] { display: none; }

.the-horse-card__media {
	display: block;
	margin: 0;
}

.the-horse-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* A row of small photos below a news card's image ('thumbs' in news-feed.php). */
.the-horse-card__thumbs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
	margin-top: 3px;
}

.the-horse-card__thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 30%;
}

.the-horse-card__video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: #0b0f13;
}

.the-horse-card__play {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.the-horse-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: var(--wp--preset--spacing--30);
	flex: 1;
}

.the-horse-cat {
	align-self: flex-start;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.18em 0.6em;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
	color: var(--wp--preset--color--contrast);
}

.the-horse-cat--conference  { background: color-mix(in srgb, var(--wp--preset--color--orange) 16%, transparent);  color: color-mix(in srgb, var(--wp--preset--color--orange) 80%, black); }
.the-horse-cat--project     { background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent); color: var(--wp--preset--color--primary); }
.the-horse-cat--press       { background: color-mix(in srgb, var(--wp--preset--color--red) 14%, transparent);     color: color-mix(in srgb, var(--wp--preset--color--red) 82%, black); }
.the-horse-cat--talk        { background: color-mix(in srgb, var(--wp--preset--color--blue) 14%, transparent);    color: color-mix(in srgb, var(--wp--preset--color--blue) 82%, black); }
.the-horse-cat--funding     { background: color-mix(in srgb, var(--wp--preset--color--green) 16%, transparent);   color: color-mix(in srgb, var(--wp--preset--color--green) 78%, black); }
.the-horse-cat--platform    { background: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent); color: var(--wp--preset--color--contrast-2); }
.the-horse-cat--newsletter  { background: color-mix(in srgb, var(--wp--preset--color--cyan) 18%, transparent);    color: color-mix(in srgb, var(--wp--preset--color--cyan) 82%, black); }
.the-horse-cat--association { background: color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent); color: var(--wp--preset--color--contrast); }

.the-horse-card__date {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

.the-horse-card__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	flex: 1;
}

.the-horse-card__more {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.the-horse-feed-empty {
	text-align: center;
	color: var(--wp--preset--color--contrast-2);
	margin-top: var(--wp--preset--spacing--40);
}

/* --- THE ! Team: the two roles explained in the hero ----------------------- */

.the-horse-roles {
	gap: var(--wp--preset--spacing--30);
	max-width: 68rem;
	margin-inline: auto;
}

.the-horse-role {
	padding: var(--wp--preset--spacing--30);
	border-radius: 14px;
	background: color-mix(in srgb, #ffffff 8%, transparent);
	border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
}

.the-horse-role p {
	margin: 0;
}

.the-horse-role__term {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--10) !important;
}

.the-horse-team-contact {
	font-size: var(--wp--preset--font-size--small);
}

/* --- Instagram band (Events and News) ------------------------------------- */

.the-horse-ig {
	padding-block: var(--wp--preset--spacing--40);
}

.the-horse-ig__inner {
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: 18px;
	background: var(--wp--preset--color--base-2);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.the-horse-ig__icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(135deg, #F2941F 0%, #D6382F 55%, #0E4F63 100%);
	flex: none;
}

.the-horse-ig__text {
	flex: 1 1 20rem;
}

.the-horse-ig__text p {
	margin: 0;
}

.the-horse-ig__text .the-horse-eyebrow {
	margin-bottom: 0.25rem;
}

/* --- THE ! Team: role filter, portrait videos, join band ------------------ */

.the-horse-person[hidden] {
	display: none !important;
}

.the-horse-person__media {
	position: relative;
	margin: 0;
}

.the-horse-person__play {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem 0.45rem 0.6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 78%, transparent);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-color 0.15s;
}

.the-horse-person__play:hover,
.the-horse-person__play:focus-visible {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
}

/* The clips are mostly portrait format: let the card grow rather than crop. */
.the-horse-person__video {
	display: block;
	width: 100%;
	max-height: 80vh;
	border-radius: 14px;
	background: #000;
}

.the-horse-ways {
	list-style: none;
	padding-left: 0;
	margin-bottom: var(--wp--preset--spacing--30);
}

.the-horse-ways li + li {
	margin-top: var(--wp--preset--spacing--20);
}

.the-horse-roles .the-horse-role a {
	font-weight: 600;
}

/* --- BEFTER: the seven steps as a numbered row (home) ---------------------- */

.the-horse-steps {
	list-style: none;
	counter-reset: step;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.the-horse-steps li {
	counter-increment: step;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.4rem 0.9rem 0.4rem 0.4rem;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.2;
}

.the-horse-steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	flex: none;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.95rem;
}

/* Step 3, the experience, is the heart of the method. */
.the-horse-steps li:nth-child(3) {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* --- BEFTER page: one row per phase ---------------------------------------- */

.the-horse-phase + .the-horse-phase {
	margin-top: var(--wp--preset--spacing--40);
}

.the-horse-phase > .is-style-eyebrow {
	margin-bottom: var(--wp--preset--spacing--20);
}

.wp-block-group.is-style-card.the-horse-step--key {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--white));
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent);
}

/* The single wide card keeps readable line lengths. */
.the-horse-step--key > * {
	max-width: 48rem;
}

/* --- PDF links: a document icon before the text ---------------------------- */

/* Every link to a PDF, wherever it is (patterns, editor content, buttons).
   external-links.js opens them in a new tab. The icon takes the link colour. */
a[href$=".pdf" i]::before,
a[href*=".pdf#" i]::before,
a[href*=".pdf?" i]::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.3em;
	vertical-align: -0.15em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* A PDF linked from an image (a cover, a thumbnail) needs no icon. */
a[href*=".pdf" i]:has(img)::before {
	content: none;
}

/* --- Home, "How it works": the step list and the keyword lists -------------- */

.the-horse-steplist {
	padding-left: 1.6em;
}

.the-horse-steplist li {
	margin-block: 0.45em;
}

.the-horse-steplist li::marker {
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
}

.the-horse-keywords {
	padding-left: 1.2em;
}

.the-horse-keywords li {
	margin-block: 0.35em;
}

.the-horse-keywords li::marker {
	color: var(--wp--preset--color--primary);
}

/* --- Home, outcomes: thumbnail + text cards --------------------------------- */
/* Used by both cards under "What happened in 2025": the factsheet cover and the
   dontwastemy.energy screenshot. */

.the-horse-factsheet__cover {
	flex: 0 0 9rem;
	display: block;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lifted);
	transition: transform 0.2s ease;
}

.the-horse-factsheet__cover:hover,
.the-horse-factsheet__cover:focus-visible {
	transform: translateY(-3px) rotate(-1deg);
}

.the-horse-factsheet__cover img {
	display: block;
	width: 100%;
	height: auto;
}

/* A landscape page: the Infosheet on The Horse Project (2026-11-04). */
.the-horse-factsheet__cover--wide {
	flex-basis: 15rem;
}

.the-horse-factsheet__text {
	flex: 1 1 16rem;
}

/* --- Sub-pages: "← Back" (shown by back.js only after an in-site visit) ------ */

.the-horse-back[hidden] {
	display: none !important;
}

.the-horse-back {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.the-horse-back--bottom {
	margin-top: var(--wp--preset--spacing--50);
}

.the-horse-back a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.the-horse-back a:hover,
.the-horse-back a:focus-visible {
	text-decoration: underline;
}

/* --- External links: "(domain)" after the text ------------------------------ */

/* Added by the_horse_domain_labels() in functions.php. Quieter than the link
   text, in any weight or colour context (plain links, bold links, buttons). */
.the-horse-domain {
	font-weight: 400;
	opacity: 0.75;
	white-space: nowrap;
}

/* The footer's columns are narrow: "(collab.the-horse.education)" was wider
   than its column at about 1000px and pushed the whole page sideways
   (2026-10-26). There it may break inside, but only when it must. That label
   is gone since 2026-10-31 (data-no-domain); the rule stays for the next one. */
footer .the-horse-domain {
	white-space: normal;
	overflow-wrap: anywhere;
}

/* Outside a button, beside it: a little air, smaller than the button text. */
.wp-block-button > .the-horse-domain {
	margin-left: 0.35em;
	font-size: var(--wp--preset--font-size--small);
}

/* Core stretches every button link to its wrapper (.wp-block-buttons
   .wp-block-button__link { width: 100% }). With the label inside the wrapper,
   the link grew to link + label and pushed the label underneath (seen on the
   "The student teams, year by year" and Collab buttons, 2026-10-18). Keep the link at its
   own width with the label beside it; on phones, stacked buttons stay full
   width and the label goes centred below. */
.wp-block-button:has(> .the-horse-domain) {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.wp-block-button:has(> .the-horse-domain) > .wp-block-button__link {
	width: auto;
}

@media (max-width: 599px) {
	.wp-block-buttons.is-style-stack-mobile .wp-block-button:has(> .the-horse-domain) > .wp-block-button__link {
		width: 100%;
	}
}

/* --- Start page: variations (the working copy, 2026-10-31) ----------------- */
/* /start-page-variations/ shows the start page's sections with a numbered bar
   above each, so people can talk about "section 4" or "4b". The classes exist
   on that page only (_tools/_build-pages.php, th_lab_label()). */
.the-horse-lab-intro {
	margin-block: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	background: color-mix(in srgb, var(--wp--preset--color--orange) 14%, var(--wp--preset--color--base));
	border-bottom: 1px dashed var(--wp--preset--color--orange);
	text-align: center;
}

.entry-content > .wp-block-group.the-horse-lab-label {
	margin-block: 0;
	padding-block: 0.4rem;
	background: color-mix(in srgb, var(--wp--preset--color--orange) 24%, var(--wp--preset--color--base));
	border-block: 1px dashed var(--wp--preset--color--orange);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.the-horse-lab-label p {
	margin: 0;
}

.the-horse-lab-label strong {
	display: inline-block;
	min-width: 2.2em;
	margin-right: 0.5em;
	padding: 0.05em 0.5em;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	text-align: center;
}

/* A variation (1b, 3b …) sits right below its original: same bar in blue, so the two are easy to tell apart. */
.entry-content > .wp-block-group.the-horse-lab-label--variant {
	background: color-mix(in srgb, var(--wp--preset--color--blue) 20%, var(--wp--preset--color--base));
	border-block-color: var(--wp--preset--color--blue);
}


/* --- "In their own words" as a grid of six (variation 8b, 2026-11-07) ---- */
/* Three + three on a wide screen, two per row on a tablet, a swipe row on a
   phone (as the scroller). The one wide video (a Zoom interview, 16:9) keeps
   the portrait cards' media height, so the quotes start level across a row. */
.the-horse-voices-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
}

.the-horse-voices-grid > * {
	margin-block: 0; /* see .the-horse-scroller > * */
}

@media (max-width: 599px) {
	.the-horse-voices-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 85%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		padding-bottom: 1rem;
	}

	.the-horse-voices-grid > * {
		scroll-snap-align: start;
	}
}

.the-horse-testimonial-video--wide {
	height: 360px;
	display: flex;
	align-items: center;
}

.the-horse-testimonial-video--wide .the-horse-video {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
	.the-horse-testimonial-video--wide {
		height: 300px;
	}
}

.the-horse-voices-grid .the-horse-voices-when {
	margin-top: 0.35rem;
	opacity: 0.6;
}


/* --- Testimonials and interviews: /voices/ and a full interview (draft, 2026-11-07) --- */
/* One card per video, newest first, filtered by voices.js. The media box has
   one height for all, so portrait clips, Zoom recordings (16:9) and the
   archive.org frames line up; quotes start level across a row. */
.the-horse-voice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(16.5rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
	align-items: start;
}

.the-horse-voice-grid > * {
	margin-block: 0;
}

.the-horse-voice {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.the-horse-voice[hidden],
.the-horse-voice-none[hidden] {
	display: none;
}

.the-horse-voice-none {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-voice__media {
	height: 20rem;
	border-radius: var(--wp--custom--radius--md);
	background: #0b0f13;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.4rem;
}

.the-horse-voice__media .the-horse-video {
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	border-radius: 0;
}

.the-horse-voice__media--wide .the-horse-video {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.the-horse-voice__out {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.the-horse-voice__out img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.the-horse-voice__out:hover img {
	transform: scale(1.03);
}

.the-horse-voice__badge {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.92);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1;
}

.the-horse-voice__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.the-horse-voice__quote p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	line-height: 1.45;
}

.the-horse-voice__who,
.the-horse-voice__text,
.the-horse-voice__meta,
.the-horse-voice__more {
	margin: 0;
}

.the-horse-voice__who {
	margin-top: 0.3rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.the-horse-voice__who span,
.the-horse-voice__text,
.the-horse-voice__more {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.45;
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-voice__meta {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.the-horse-voice__more a {
	font-size: var(--wp--preset--font-size--small);
}

/* A full interview's page. */
.the-horse-interview-video {
	margin: var(--wp--preset--spacing--40) auto 0;
}

.the-horse-interview-video .the-horse-video {
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.the-horse-interview-video figcaption {
	margin-top: 0.6rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.8;
}

/* Read down each column, as a timeline; one column on a phone. */
.the-horse-chapters {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 19rem 2;
	column-gap: 1.5rem;
}

.the-horse-chapters li {
	break-inside: avoid;
}

.the-horse-seek {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.the-horse-seek:hover,
.the-horse-seek:focus-visible {
	color: var(--wp--preset--color--primary);
}

.the-horse-chapters .the-horse-seek {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	width: 100%;
	padding: 0.55rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.the-horse-seek__time,
.the-horse-transcript__turn .the-horse-seek {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.the-horse-seek__time {
	min-width: 3rem;
}

.the-horse-transcript summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	padding: 0.5rem 0;
}

.the-horse-transcript__note {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-transcript__turn {
	margin: 0 0 0.9rem;
	line-height: 1.6;
}

.the-horse-transcript__turn .the-horse-seek {
	font-size: var(--wp--preset--font-size--x-small);
	margin-right: 0.3rem;
}

/* The interviewer's questions a shade lighter, so the answers lead. */
.the-horse-transcript__turn--eliane {
	color: var(--wp--preset--color--contrast-2);
}

/* --- Testimonials and interviews: /voices/ (built as variation B 2026-11-12, v1 since 2026-11-13) */
/* The cards of "Earlier rounds, on video" on a light page (Dominik's choice):
   year, quote, round head, name, a line of context. The round head of a video
   of our own carries a play badge and grows into the player (voices.js); an
   archive.org head carries an "opens elsewhere" badge.
   2026-11-13 (Dominik): laid out as the Events and News feed: each box as high
   as its text, packed as masonry in rows (voices.js gives each a row span, as
   news-filter.js does), the same column width, so at most three in a row; the
   box itself as .the-horse-card. Without JavaScript a plain grid. */
.the-horse-voices-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-bottom: var(--wp--preset--spacing--40);
}

.the-horse-voices-bar .the-horse-filter {
	margin-bottom: 0;
}

/* Not a filter but a way out, below the chips (Dominik, 2026-11-14): some of
   the team's round heads, overlapping, and "Videos of THE ! team". */
.the-horse-teamlink {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.the-horse-teamlink__faces {
	display: inline-flex;
}

.the-horse-teamlink__faces img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--wp--preset--color--base);
	transition: transform var(--wp--custom--transition);
}

.the-horse-teamlink__faces img + img {
	margin-left: -10px;
}

.the-horse-teamlink__text {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.the-horse-teamlink:hover .the-horse-teamlink__faces img {
	transform: translateY(-2px);
}

.the-horse-teamlink:hover .the-horse-teamlink__text {
	color: var(--wp--preset--color--contrast);
}

.the-horse-vcard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
	align-items: start;
}

.the-horse-vcard-grid.is-masonry {
	grid-auto-rows: 4px; /* as ROW in voices.js */
	row-gap: 0;
}

.the-horse-vcard-grid > * {
	margin-block: 0;
}

.the-horse-vcard-grid > .the-horse-voice-none {
	grid-column: 1 / -1;
}

.the-horse-vcard {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	min-width: 0;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--soft);
	background: var(--wp--preset--color--white);
}

.the-horse-vcard[hidden] {
	display: none;
}

.the-horse-vcard__when {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.the-horse-vcard__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.the-horse-vcard__quote p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	line-height: 1.45;
}

.the-horse-vcard__who {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 0.2rem;
}

.the-horse-vcard__head {
	position: relative;
	flex: 0 0 auto; /* never squeezed by a long name */
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	text-decoration: none;
}

.the-horse-vcard__head img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.the-horse-vcard:hover .the-horse-vcard__head img,
.the-horse-vcard__head:hover img {
	transform: scale(1.05);
	box-shadow: 0 6px 18px -6px rgb(18 33 44 / 0.45);
}

.the-horse-vcard__badge {
	position: absolute;
	right: -3px;
	bottom: -3px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	box-shadow: 0 0 0 3px var(--wp--preset--color--white);
}

.the-horse-vcard__badge svg {
	margin-left: 1px; /* the triangle looks centred */
}

.the-horse-vcard__head--out .the-horse-vcard__badge {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent), 0 0 0 3px var(--wp--preset--color--white);
}

.the-horse-vcard__head--out .the-horse-vcard__badge svg {
	margin-left: 0;
}

.the-horse-vcard__name {
	margin: 0;
	min-width: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

.the-horse-vcard__name span {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-vcard__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-vcard__act {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.1rem;
	margin: 0; /* right below the text: the boxes keep their own height */
	padding-top: 0.2rem;
	font-size: var(--wp--preset--font-size--small);
}

.the-horse-vcard__play {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

.the-horse-vcard__play:hover {
	color: var(--wp--preset--color--contrast);
}

.the-horse-vcard__dot {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.the-horse-vcard__dot svg {
	margin-left: 1px;
}

.the-horse-vcard__play:hover .the-horse-vcard__dot {
	background: var(--wp--preset--color--contrast);
}

/* The player: a <dialog> over the page, the video in a frame without border. */
.the-horse-player {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
	overflow: hidden;
}

.the-horse-player::backdrop {
	background: rgb(6 12 16 / 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.the-horse-player[open]::backdrop {
	animation: the-horse-player-in 0.3s ease-out;
}

.the-horse-player__bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 8px 0 18px;
}

.the-horse-player[open] .the-horse-player__bar {
	animation: the-horse-player-in 0.3s 0.2s ease-out both;
}

.the-horse-player__caption {
	margin: 0;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.the-horse-player__close {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.12);
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.the-horse-player__close:hover,
.the-horse-player__close:focus-visible {
	background: rgb(255 255 255 / 0.24);
}

.the-horse-player__frame {
	position: fixed;
	overflow: hidden;
	border-radius: 14px;
	background: #000;
	box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
}

.the-horse-player__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.the-horse-player__face {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
}

.the-horse-player.is-closing::backdrop,
.the-horse-player.is-closing .the-horse-player__bar {
	animation: the-horse-player-out 0.36s ease-in forwards;
}

@keyframes the-horse-player-in {
	from {
		opacity: 0;
	}
}

@keyframes the-horse-player-out {
	to {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.the-horse-player[open]::backdrop,
	.the-horse-player[open] .the-horse-player__bar,
	.the-horse-vcard__head img {
		animation: none;
		transition: none;
	}
}

/* --- About: sections with parts, swipe rows (built as variation B 2026-11-14, on /association/ the same day) */
/* Dominik: fewer sections and menu entries. A section can hold former sections
   as parts (.the-horse-part): a small label, an h3, the content; a hairline
   between the parts. */
.the-horse-part {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

.the-horse-part > .the-horse-eyebrow {
	margin-bottom: 0.4rem;
}

.the-horse-part h3 {
	margin-top: 0;
}

/* A row that becomes a swipe row on a phone, the next item peeking in (as the
   start page's "The people who did it"). */
@media (max-width: 599px) {
	.the-horse-swipe,
	.the-horse-board.the-horse-swipe, /* stronger than the grids' own columns further down */
	.the-horse-vcard-row.the-horse-swipe {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		padding-bottom: 1rem;
	}

	.the-horse-swipe > * {
		scroll-snap-align: start;
	}

	.the-horse-vcard-row.the-horse-swipe {
		grid-auto-columns: 85%;
	}
}

/* The board: four portraits, a swipe row on a phone with smaller portraits. */
.the-horse-board {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.the-horse-board__person img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 14px;
}

.the-horse-board__name {
	margin: 0.8rem 0 0;
	font-size: var(--wp--preset--font-size--large);
}

.the-horse-board__role {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0E4F63;
}

.the-horse-board__bio {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

/* The name: the horse and the lighthouse, centred in their column on every
   screen; the lighthouse with slightly round corners (Dominik). */
.the-horse-emblems {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.the-horse-emblems__horse {
	width: min(300px, 100%);
	height: auto;
}

.the-horse-emblems__lighthouse {
	width: 140px;
	height: auto;
	border-radius: 14px;
}

/* Six random cards of /voices/: three in a row, rows of equal height, the
   links at the bottom. */
.the-horse-vcard-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
}

.the-horse-vcard-row > * {
	margin-block: 0;
}

.the-horse-vcard-row .the-horse-vcard__act {
	margin-top: auto;
}

/* Press kit: the list of documents and the Infosheet's cover. */
.the-horse-presskit li + li {
	margin-top: 0.4rem;
}

/* T-shirts on /resources/#t-shirts: photos in their own proportions, in
   columns (3 on desktop, 2 on a phone). */
.the-horse-tshirt-section {
	margin-top: var(--wp--preset--spacing--60);
}

.the-horse-tshirts {
	columns: 3 10rem;
	column-gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--40);
}

@media (max-width: 599px) {
	.the-horse-tshirts {
		columns: 2;
	}
}

.the-horse-tshirts__item {
	break-inside: avoid;
	margin: 0 0 var(--wp--preset--spacing--20);
}

.the-horse-tshirts__item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px; /* 12px until 2026-11-15, Dominik: slightly less rounded */
	transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.the-horse-zoom {
	display: block;
	cursor: zoom-in;
}

.the-horse-zoom:hover img,
.the-horse-zoom:focus-visible img {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* The photo overlay (assets/js/lightbox.js) in the video player's look. */
.the-horse-lightbox__photo {
	position: fixed;
	display: block;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
	cursor: default;
}

.the-horse-lightbox__nav {
	position: fixed;
	top: 50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.12);
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.the-horse-lightbox__nav:hover,
.the-horse-lightbox__nav:focus-visible {
	background: rgb(255 255 255 / 0.24);
}

.the-horse-lightbox__nav--prev {
	left: 12px;
}

.the-horse-lightbox__nav--next {
	right: 12px;
}

.the-horse-lightbox__nav[hidden] {
	display: none;
}

/* On a phone the arrows sit below the photo, side by side. */
@media (max-width: 599px) {
	.the-horse-lightbox__nav {
		top: auto;
		bottom: 8px;
		margin-top: 0;
	}
	.the-horse-lightbox__nav--prev {
		left: calc(50% - 56px);
	}
	.the-horse-lightbox__nav--next {
		right: calc(50% - 56px);
	}
}

/* Photo captions are longer than video names: two lines rather than "…". */
.the-horse-lightbox .the-horse-player__caption {
	white-space: normal;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (max-width: 599px) {
	.the-horse-lightbox .the-horse-player__caption {
		font-size: var(--wp--preset--font-size--x-small);
	}
}

.the-horse-lightbox.is-closing .the-horse-lightbox__nav {
	animation: the-horse-player-out 0.3s ease-in forwards;
}

.the-horse-tshirts__item figcaption {
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}

/* The Horse Project › Resources: one small example card below the button,
   under a small title "Inspiration". */
.the-horse-minicard__label {
	margin-top: var(--wp--preset--spacing--50) !important;
	margin-bottom: 0.5rem !important;
}

.the-horse-minicard {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
	max-width: 42rem;
	margin: 0 auto;
	padding: 1rem;
	background: var(--wp--preset--color--white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--soft);
	color: inherit;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.the-horse-minicard img {
	flex: 0 0 11rem;
	width: 11rem;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 5px;
}

.the-horse-minicard strong {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--wp--preset--color--primary);
}

.the-horse-minicard:hover strong,
.the-horse-minicard:focus-visible strong {
	text-decoration: underline;
}

@media (max-width: 479px) {
	.the-horse-minicard {
		flex-direction: column;
		align-items: stretch;
	}
	.the-horse-minicard img {
		flex: none;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

/* "Documents" and "Online" above the two lists. */
.the-horse-presskit__label {
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: 0.3rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
}

.the-horse-presskit__label + .the-horse-presskit {
	margin-top: 0;
}

.the-horse-presskit__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Summary Box (plugin) keeps every Wikipedia link on one line (white-space:
   nowrap !important). A long one, "OST, Eastern Switzerland University of
   Applied Sciences" on About, is wider than a phone and the whole page scrolled
   sideways (found 2026-11-14). On narrow screens such a link may wrap. */
@media (max-width: 599px) {
	a.wikiLink {
		white-space: normal !important;
	}
}

/* The cards of /voices/ on a dark band (The Horse Project's "Testimonials &
   interviews", 2026-11-14): the dark band's white text and links must not reach
   into the white cards. */
.the-horse-dark .the-horse-vcard {
	color: var(--wp--preset--color--contrast);
}

.the-horse-dark .the-horse-vcard__quote p,
.the-horse-dark .the-horse-vcard__name,
.the-horse-dark .the-horse-vcard__act {
	color: var(--wp--preset--color--contrast);
}

.the-horse-dark .the-horse-vcard__when {
	color: var(--wp--preset--color--primary);
}

.the-horse-dark .the-horse-vcard__text {
	color: var(--wp--preset--color--contrast-2);
}

.the-horse-dark .the-horse-vcard a:where(:not(.wp-block-button__link)) {
	color: var(--wp--preset--color--primary);
}

.the-horse-dark .the-horse-vcard a.the-horse-vcard__play:hover {
	color: var(--wp--preset--color--contrast);
}

.the-horse-dark .the-horse-vcard {
	border-color: transparent;
}
