/*
Theme Name: Vélo-école 2026
Theme URI: https://www.veloecoledemontreuil.com/
Author: Vélo-école de Montreuil
Description: Modern, fixed-layout theme for the Vélo-école de Montreuil. Keeps the identity of the original SuevaFree "Orange" setup (grey background, orange accents, Allura script title, Abel navigation) while reorganising the long legacy pages for readability on desktop and mobile. Page content is never modified: all reorganisation happens when pages are displayed.
Version: 1.0.22
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: ve2026
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	/* Original palette (SuevaFree "Orange" skin and site settings). */
	--ve-orange: #ff6644;
	--ve-orange-dark: #d14a2b;
	--ve-grey-bg: #e0e0e0;
	--ve-grey-light: #f3f3f3;
	--ve-text-soft: #616161;
	--ve-dark: #2b2b2b;

	/* Supporting tones. */
	--ve-orange-deep: #b23c21;
	--ve-orange-soft: #fff1ec;
	--ve-orange-tint: #ffd9cd;
	--ve-white: #ffffff;
	--ve-surface-2: #fafafa;
	--ve-line: #e2dfdc;
	--ve-line-strong: #cfcac6;
	--ve-text: #3a3a3a;
	--ve-ink: #222222;
	--ve-muted: #757575;
	--ve-green: #2f7d5b;
	--ve-green-soft: #e8f4ee;

	--ve-font-script: "Allura", "Snell Roundhand", "Segoe Script", cursive;
	--ve-font-display: "Abel", "Avenir Next Condensed", "Arial Narrow", sans-serif;
	--ve-font-text: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

	--ve-radius-s: 8px;
	--ve-radius: 14px;
	--ve-radius-l: 20px;
	--ve-shadow-s: 0 1px 2px rgba(34, 34, 34, 0.06), 0 2px 8px rgba(34, 34, 34, 0.05);
	--ve-shadow: 0 1px 2px rgba(34, 34, 34, 0.05), 0 10px 30px rgba(34, 34, 34, 0.08);
	--ve-shadow-l: 0 18px 50px rgba(34, 34, 34, 0.18);

	--ve-sidenav-w: 268px;
	--ve-tabbar-h: 62px;
	--ve-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
}

body {
	background: var(--ve-grey-bg);
	color: var(--ve-text);
	font-family: var(--ve-font-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	-webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--ve-orange-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s;
}

a:hover {
	color: var(--ve-orange-deep);
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

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

.ve-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ve-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--ve-radius-s);
	background: var(--ve-dark);
	color: var(--ve-white);
	font-weight: 700;
	transform: translateY(-150%);
}

.ve-skip:focus {
	transform: none;
	color: var(--ve-white);
}

/* ==========================================================================
   Application shell — the window never scrolls, only the content area does
   ========================================================================== */

.ve-app {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	height: 100vh;
	height: 100dvh;
}

.admin-bar .ve-app {
	height: calc(100vh - 32px);
	height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .ve-app {
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}
}

.ve-body {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
	/* Echo of the original textured grey background. */
	background-color: var(--ve-grey-bg);
	background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1.2px);
	background-size: 6px 6px;
}

.ve-scroll {
	position: relative;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
	scroll-padding-top: 20px;
	-webkit-overflow-scrolling: touch;
	outline: none;
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Reading progress, pinned to the top of the scrolling area. */
.ve-progress {
	position: sticky;
	top: 0;
	z-index: 5;
	height: 0;
}

.ve-progress span {
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	background: var(--ve-orange);
	transform: scaleX(var(--ve-progress, 0));
	transform-origin: 0 50%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.ve-header {
	position: relative;
	z-index: 30;
	background: var(--ve-grey-bg);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s;
}

.is-scrolled .ve-header {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.ve-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 10px 24px 6px;
}

.ve-header__menu {
	display: none;
}

.ve-brand {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #4a4a4a;
	text-align: center;
	text-decoration: none;
}

.ve-brand:hover {
	color: var(--ve-ink);
}

.ve-brand__name {
	font-family: var(--ve-font-script);
	font-size: clamp(2.2rem, 3.4vw, 3rem);
	line-height: 1;
	white-space: nowrap;
}

.ve-brand__tagline {
	margin-top: 2px;
	color: var(--ve-text-soft);
	font-family: var(--ve-font-display);
	font-size: 0.86rem;
	letter-spacing: 0.04em;
}

/* ==========================================================================
   Desktop navigation bar
   ========================================================================== */

.ve-nav {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--ve-white);
}

.ve-nav__list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 auto;
	padding: 0 16px;
	max-width: 1320px;
	list-style: none;
}

.ve-nav__item {
	position: relative;
}

.ve-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	height: 46px;
	padding: 0 16px;
	border: 0;
	background: none;
	color: #444;
	font-family: var(--ve-font-display);
	font-size: 0.98rem;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.ve-nav__link::after {
	position: absolute;
	right: 16px;
	bottom: 0;
	left: 16px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--ve-orange);
	content: "";
	transform: scaleX(0);
	transition: transform 0.2s var(--ve-ease);
}

.ve-nav__link:hover,
.ve-nav__item.is-current > .ve-nav__link,
.ve-nav__item.is-ancestor > .ve-nav__link,
.ve-nav__item.is-open > .ve-nav__link {
	color: var(--ve-orange-dark);
}

.ve-nav__item.is-current > .ve-nav__link::after,
.ve-nav__item.is-ancestor > .ve-nav__link::after {
	transform: scaleX(1);
}

.ve-nav__chevron {
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s;
}

.ve-nav__item.is-open .ve-nav__chevron {
	transform: rotate(180deg);
}

.ve-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	z-index: 40;
	width: max-content;
	min-width: 260px;
	max-width: 380px;
	max-height: calc(100dvh - 190px);
	padding: 10px;
	overflow-y: auto;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-white);
	box-shadow: var(--ve-shadow-l);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -6px);
	transition: opacity 0.16s, transform 0.16s var(--ve-ease), visibility 0s 0.16s;
}

.ve-panel--end {
	right: 0;
	left: auto;
	transform: translateY(-6px);
}

.ve-nav__item.is-open > .ve-panel {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 0.16s, transform 0.16s var(--ve-ease), visibility 0s;
}

.ve-nav__item.is-open > .ve-panel--end {
	transform: none;
}

.ve-panel__overview {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	padding: 10px 12px;
	border-radius: var(--ve-radius-s);
	background: var(--ve-orange-soft);
	color: var(--ve-orange-deep);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.ve-panel__overview:hover {
	background: var(--ve-orange-tint);
}

.ve-panel__list,
.ve-panel__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ve-panel__link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--ve-radius-s);
	color: var(--ve-text);
	font-size: 0.97rem;
	line-height: 1.35;
	text-decoration: none;
}

span.ve-panel__link {
	padding-top: 12px;
	color: var(--ve-muted);
	font-family: var(--ve-font-display);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

a.ve-panel__link:hover {
	background: var(--ve-grey-light);
	color: var(--ve-ink);
}

.ve-panel__item.is-current > .ve-panel__link,
.ve-panel__item.is-ancestor > a.ve-panel__link {
	color: var(--ve-orange-dark);
	font-weight: 600;
}

.ve-panel__sub {
	margin: 0 0 6px 12px;
	padding: 0 4px 0 6px;
	border-left: 2px solid var(--ve-line);
}

.ve-panel__sublink {
	display: block;
	padding: 6px 10px;
	border-radius: var(--ve-radius-s);
	color: var(--ve-text);
	font-size: 0.9rem;
	line-height: 1.35;
	text-decoration: none;
}

.ve-panel__sublink:hover {
	background: var(--ve-grey-light);
	color: var(--ve-ink);
}

.is-current > .ve-panel__sublink {
	color: var(--ve-orange-dark);
	font-weight: 600;
}

/* Short series (Niveau 1 … 7) as compact chips. */
.ve-panel__sub--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 2px 12px 10px;
	border: 0;
}

.ve-panel__sub--chips .ve-panel__sublink {
	padding: 4px 10px;
	border: 1px solid var(--ve-line);
	border-radius: 999px;
	font-size: 0.86rem;
}

.ve-panel__sub--chips .ve-panel__sublink:hover,
.ve-panel__sub--chips .is-current > .ve-panel__sublink {
	border-color: var(--ve-orange);
	background: var(--ve-orange-soft);
	color: var(--ve-orange-deep);
}

/* ==========================================================================
   Section sidebar (desktop)
   ========================================================================== */

.ve-sidenav {
	display: none;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-right: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(243, 243, 243, 0.75);
}

.ve-sidenav__inner {
	padding: 28px 14px 28px 20px;
}

.ve-sidenav__title {
	margin: 0 0 12px;
	padding: 0 10px;
	font-family: var(--ve-font-display);
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ve-sidenav__title a {
	color: var(--ve-ink);
	text-decoration: none;
}

.ve-sidenav__title a:hover,
.ve-sidenav__title a[aria-current] {
	color: var(--ve-orange-dark);
}

/* Shared tree (sidebar and drawer). */
.ve-tree {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ve-tree .ve-tree {
	display: none;
	margin: 2px 0 6px 14px;
	padding-left: 8px;
	border-left: 1px solid var(--ve-line-strong);
}

.ve-tree__item.is-open > .ve-tree {
	display: block;
}

.ve-tree__row {
	display: flex;
	align-items: center;
}

.ve-tree__link {
	flex: 1;
	min-width: 0;
	padding: 7px 10px;
	border-radius: var(--ve-radius-s);
	color: var(--ve-text);
	font-size: 0.95rem;
	line-height: 1.35;
	text-decoration: none;
}

span.ve-tree__link {
	color: var(--ve-muted);
	font-weight: 600;
}

a.ve-tree__link:hover {
	background: rgba(255, 255, 255, 0.8);
	color: var(--ve-ink);
}

.ve-tree__item.is-current > .ve-tree__row > .ve-tree__link {
	position: relative;
	background: var(--ve-white);
	box-shadow: var(--ve-shadow-s);
	color: var(--ve-orange-dark);
	font-weight: 600;
}

.ve-tree__item.is-current > .ve-tree__row > .ve-tree__link::before {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--ve-orange);
	content: "";
}

.ve-tree__item.is-ancestor > .ve-tree__row > .ve-tree__link {
	color: var(--ve-ink);
	font-weight: 600;
}

.ve-tree__toggle {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border: 0;
	border-radius: var(--ve-radius-s);
	background: none;
	color: var(--ve-muted);
}

.ve-tree__toggle:hover {
	background: rgba(255, 255, 255, 0.8);
	color: var(--ve-ink);
}

.ve-tree__toggle .ve-icon {
	transition: transform 0.2s;
}

.ve-tree__toggle[aria-expanded="true"] .ve-icon {
	transform: rotate(180deg);
}

/* ==========================================================================
   Page and article card
   ========================================================================== */

.ve-page {
	container-type: inline-size;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 28px 24px 40px;
}

.ve-page:has(.has-toc) {
	max-width: 1240px;
}

.ve-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"cover"
		"header"
		"toc"
		"content"
		"comments"
		"pager";
	overflow: clip;
	border-radius: var(--ve-radius-l);
	background: var(--ve-white);
	box-shadow: var(--ve-shadow);
}

.ve-cover {
	grid-area: cover;
	margin: 0;
	aspect-ratio: 3 / 1;
	background: var(--ve-grey-light);
}

.ve-cover__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.ve-article__header {
	grid-area: header;
	padding: 30px clamp(20px, 5vw, 56px) 8px;
}

.ve-article__title {
	margin: 0;
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.15;
}

.ve-article__title::after {
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 14px;
	border-radius: 3px;
	background: var(--ve-orange);
	content: "";
}

.ve-article__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	color: var(--ve-muted);
	font-size: 0.88rem;
}

.ve-article__meta .ve-icon {
	width: 1.05em;
	height: 1.05em;
}

/* Breadcrumb */
.ve-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	color: var(--ve-muted);
	font-family: var(--ve-font-display);
	font-size: 0.82rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ve-breadcrumb li + li::before {
	margin: 0 8px;
	color: var(--ve-line-strong);
	content: "/";
}

.ve-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.ve-breadcrumb a:hover {
	color: var(--ve-orange-dark);
}

/* Numbered steps (Niveau 1 … 7). */
.ve-steps ol {
	display: flex;
	align-items: center;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ve-steps li {
	display: flex;
	flex: 1;
	align-items: center;
}

.ve-steps li:last-child {
	flex: none;
}

.ve-steps li:not(:last-child)::after {
	flex: 1;
	height: 2px;
	margin: 0 4px;
	border-radius: 2px;
	background: var(--ve-line);
	content: "";
}

.ve-steps li.is-done:not(:last-child)::after {
	background: var(--ve-orange-tint);
}

.ve-steps a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--ve-line-strong);
	border-radius: 50%;
	background: var(--ve-white);
	color: var(--ve-text-soft);
	font-family: var(--ve-font-display);
	font-size: 1.05rem;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.ve-steps a:hover {
	border-color: var(--ve-orange);
	color: var(--ve-orange-deep);
	transform: translateY(-1px);
}

.ve-steps .is-done a {
	border-color: var(--ve-orange-tint);
	background: var(--ve-orange-soft);
	color: var(--ve-orange-deep);
}

.ve-steps .is-current a {
	width: 42px;
	height: 42px;
	border-color: var(--ve-orange);
	background: var(--ve-orange);
	color: var(--ve-white);
	box-shadow: 0 4px 12px rgba(255, 102, 68, 0.35);
}

.ve-steps__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Summary ("Sur cette page") */
.ve-toc {
	grid-area: toc;
	margin: 18px clamp(20px, 5vw, 56px) 0;
}

.ve-toc__details {
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-surface-2);
}

.ve-toc__summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.ve-toc__summary::-webkit-details-marker {
	display: none;
}

.ve-toc__summary > .ve-icon:first-child {
	color: var(--ve-orange);
}

.ve-toc__chevron {
	margin-left: auto;
	transition: transform 0.2s;
}

.ve-toc__details[open] .ve-toc__chevron {
	transform: rotate(180deg);
}

.ve-toc__list {
	margin: 0;
	padding: 0 10px 12px;
	list-style: none;
}

.ve-toc__item a {
	display: block;
	padding: 5px 10px 5px 12px;
	border-left: 2px solid var(--ve-line);
	color: var(--ve-text-soft);
	font-size: 0.92rem;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.ve-toc__item--3 a {
	padding-left: 24px;
	font-size: 0.87rem;
}

.ve-toc__item a:hover {
	color: var(--ve-ink);
	border-color: var(--ve-line-strong);
}

.ve-toc__item a.is-active {
	border-color: var(--ve-orange);
	background: linear-gradient(90deg, var(--ve-orange-soft), transparent);
	color: var(--ve-orange-deep);
	font-weight: 600;
}

/* Two columns with a sticky summary when there is room. */
@container (min-width: 1020px) {
	.ve-article.has-toc {
		grid-template-columns: minmax(0, 1fr) 250px;
		grid-template-areas:
			"cover cover"
			"header header"
			"content toc"
			"comments toc"
			"pager pager";
	}

	.ve-article.has-toc .ve-article__comments {
		padding-right: 40px;
	}

	.ve-article.has-toc .ve-toc {
		position: sticky;
		top: 20px;
		align-self: start;
		margin: 26px 28px 0 0;
	}

	.ve-article.has-toc .ve-toc__summary {
		cursor: default;
		pointer-events: none;
	}

	.ve-article.has-toc .ve-toc__chevron {
		display: none;
	}

	.ve-article.has-toc .ve-toc__list {
		max-height: calc(100dvh - 330px);
		overflow-y: auto;
	}

	.ve-article.has-toc .ve-content {
		padding-right: 40px;
	}
}

/* ==========================================================================
   Content typography
   ========================================================================== */

.ve-content {
	grid-area: content;
	min-width: 0;
	padding: 24px clamp(20px, 5vw, 56px) 48px;
	font-size: 1.075rem;
	line-height: 1.72;
	overflow-wrap: break-word;
}

.ve-content::after {
	display: block;
	clear: both;
	content: "";
}

.ve-content > :first-child,
.ve-section > :first-child {
	margin-top: 0;
}

.ve-content p {
	margin: 0 0 1em;
}

.ve-content .ve-lead {
	color: var(--ve-ink);
	font-size: 1.22rem;
	line-height: 1.6;
}

.ve-content h2,
.ve-content h3,
.ve-content h4 {
	color: var(--ve-ink);
	scroll-margin-top: 20px;
}

.ve-content h2 {
	margin: 2em 0 0.7em;
	font-family: var(--ve-font-display);
	font-size: clamp(1.5rem, 2.6vw, 1.85rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.ve-content h3 {
	margin: 1.8em 0 0.5em;
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.3;
}

.ve-content h4 {
	margin: 1.5em 0 0.4em;
	font-size: 1.05rem;
	font-weight: 700;
}

.ve-content strong,
.ve-content b {
	color: var(--ve-ink);
	font-weight: 700;
}

.ve-content ul {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.ve-content ul > li {
	position: relative;
	margin: 0 0 0.55em;
	padding-left: 1.6em;
}

.ve-content ul > li::before {
	position: absolute;
	top: 0.68em;
	left: 0.35em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ve-orange);
	content: "";
}

.ve-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.ve-content ol > li::marker {
	color: var(--ve-orange-dark);
	font-weight: 700;
}

.ve-content hr {
	height: 1px;
	margin: 2em 0;
	border: 0;
	background: var(--ve-line);
}

.ve-content a.ve-external::after {
	display: inline-block;
	width: 0.75em;
	height: 0.75em;
	margin-left: 0.2em;
	background: currentColor;
	content: "";
	-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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ve-content a.ve-tel {
	white-space: nowrap;
}

/* Sentence-long headings of the old pages, shown as key statements. */
.ve-content .ve-statement {
	margin: 1.4em 0;
	padding: 16px 20px 16px 22px;
	border-left: 4px solid var(--ve-orange);
	border-radius: 0 var(--ve-radius) var(--ve-radius) 0;
	background: var(--ve-orange-soft);
	color: var(--ve-ink);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.5;
}

/* Gutenberg leftovers. */
.ve-content .has-medium-font-size {
	font-size: inherit;
}

/* ==========================================================================
   Sections (one card per h2)
   ========================================================================== */

.ve-sections {
	display: grid;
	gap: 20px;
	margin: 1.6em 0;
}

.ve-section {
	--ve-accent: var(--ve-orange);
	--ve-accent-soft: var(--ve-orange-soft);
	--ve-accent-ink: var(--ve-orange-deep);
	min-width: 0;
	padding: 22px clamp(18px, 3vw, 28px) 10px;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-l);
	background: var(--ve-surface-2);
}

.ve-section > h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: clamp(1.35rem, 2.2vw, 1.6rem);
}

.ve-section__icon {
	width: 42px;
	height: 42px;
	padding: 9px;
	border-radius: 50%;
	background: var(--ve-accent-soft);
	color: var(--ve-accent-ink);
}

.ve-section--exercice {
	--ve-accent: #555;
	--ve-accent-soft: #ececec;
	--ve-accent-ink: #333;
	background: var(--ve-white);
}

.ve-section--condition {
	--ve-accent: var(--ve-green);
	--ve-accent-soft: var(--ve-green-soft);
	--ve-accent-ink: var(--ve-green);
}

.ve-section--condition ul > li::before,
.ve-section--objectif ul > li::before {
	top: 0.32em;
	left: 0;
	width: 1.15em;
	height: 1.15em;
	border-radius: 0;
	background: var(--ve-accent);
	-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ve-section--objectif ul > li::before {
	-webkit-mask-image: 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.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E");
	mask-image: 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.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E");
}

.ve-section .ve-statement {
	border-left-color: var(--ve-accent);
	background: var(--ve-accent-soft);
	font-size: 1.08rem;
}

/* An exercise and its demonstration video side by side. */
.ve-exercise {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px 24px;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px dashed var(--ve-line);
}

.ve-exercise:last-child {
	border-bottom: 0;
}

.ve-exercise > ul {
	margin: 0;
}

.ve-exercise > .ve-embed {
	margin: 10px 0 0;
}

@container (min-width: 760px) {
	.ve-exercise {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		align-items: start;
	}

	.ve-exercise > ul {
		grid-row: 1 / span 4;
		padding-top: 4px;
	}

	.ve-exercise > .ve-embed {
		grid-column: 2;
		margin: 0 0 12px;
	}
}

/* Pages that are a list of videos (Culture vélo). */
.ve-sections--videos {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	align-items: start;
}

.ve-sections--videos .ve-section {
	padding: 16px 16px 6px;
	background: var(--ve-white);
}

.ve-sections--videos .ve-section > h2 {
	margin-bottom: 12px;
	font-size: 1.2rem;
}

.ve-sections--videos .ve-section__icon {
	width: 34px;
	height: 34px;
	padding: 7px;
}

.ve-sections--videos .ve-embed {
	margin: 0 0 10px;
}

/* ==========================================================================
   Timeline (history pages)
   ========================================================================== */

.ve-timeline {
	position: relative;
	margin: 1.6em 0;
	padding-left: 96px;
}

.ve-timeline::before {
	position: absolute;
	top: 0.6em;
	bottom: 0.6em;
	left: 79px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(var(--ve-orange-tint), var(--ve-line) 85%);
	content: "";
}

.ve-timeline > p {
	position: relative;
	margin-bottom: 0.85em;
}

.ve-timeline__dated {
	margin-top: 1.4em;
	color: var(--ve-ink);
}

.ve-timeline__dated::before {
	position: absolute;
	top: 0.12em;
	left: -96px;
	width: 62px;
	color: var(--ve-orange-dark);
	font-family: var(--ve-font-display);
	font-size: 1.15rem;
	text-align: right;
	content: attr(data-year);
}

.ve-timeline__dated::after {
	position: absolute;
	top: 0.5em;
	left: -23px;
	width: 12px;
	height: 12px;
	border: 3px solid var(--ve-white);
	border-radius: 50%;
	background: var(--ve-orange);
	box-shadow: 0 0 0 1px var(--ve-orange-tint);
	content: "";
}

/* ==========================================================================
   Images and figures
   ========================================================================== */

.ve-content img {
	border-radius: var(--ve-radius-s);
}

.ve-content img.ve-redrawn {
	border-radius: 0;
}

.ve-figure,
.ve-content .wp-block-image figure,
.ve-content .wp-block-image > img {
	margin: 1.6em auto;
	text-align: center;
}

.ve-content .wp-block-image {
	margin: 0;
}

.ve-figure img,
.ve-content .wp-block-image img {
	display: inline-block;
	vertical-align: top;
	box-shadow: var(--ve-shadow-s);
}

.ve-figure img.ve-redrawn {
	box-shadow: none;
}

.ve-figure img.ve-can-grow {
	width: 100%;
	max-width: 680px;
}

.ve-figure a {
	display: inline-block;
	border-radius: var(--ve-radius-s);
	cursor: zoom-in;
}

.ve-figure figcaption,
.ve-content .wp-caption-text {
	margin-top: 8px;
	color: var(--ve-muted);
	font-size: 0.9rem;
	font-style: italic;
	line-height: 1.4;
	text-align: center;
}

/* Floating images inside running text. */
.ve-content img.alignleft,
.ve-figure.is-left,
.ve-content .wp-caption.alignleft {
	float: left;
	max-width: min(45%, 360px);
	margin: 0.3em 1.5em 1em 0;
}

.ve-content img.alignright,
.ve-figure.is-right,
.ve-content .wp-caption.alignright {
	float: right;
	max-width: min(45%, 360px);
	margin: 0.3em 0 1em 1.5em;
}

@container (max-width: 560px) {
	.ve-content img.alignleft,
	.ve-content img.alignright,
	.ve-figure.is-left,
	.ve-figure.is-right,
	.ve-content .wp-caption.alignleft,
	.ve-content .wp-caption.alignright {
		float: none;
		display: block;
		max-width: 100%;
		margin: 1em auto;
	}
}

/* Several images side by side. */
.ve-figure-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 18px;
	margin: 1.8em 0;
	clear: both;
}

.ve-content .ve-figure-row > .ve-figure,
.ve-content .ve-figure-row > .wp-caption {
	float: none;
	max-width: none;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-surface-2);
}

.ve-figure-row img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	box-shadow: none;
	background: var(--ve-white);
}

.ve-figure-row a {
	display: block;
}

/* Portrait cards (Les moniteurs). */
.ve-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
	gap: 18px;
	margin: 0.5em 0 1em;
}

.ve-person {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-white);
	box-shadow: var(--ve-shadow-s);
	transition: transform 0.2s var(--ve-ease), box-shadow 0.2s;
}

.ve-person:hover {
	box-shadow: var(--ve-shadow);
	transform: translateY(-2px);
}

.ve-person img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 22%;
	border-radius: 0;
	background: var(--ve-grey-light);
}

.ve-person figcaption {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 10px 12px;
	border-top: 3px solid var(--ve-orange);
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: 1.08rem;
	line-height: 1.25;
	text-align: center;
}

/* ==========================================================================
   Embeds, audio and video
   ========================================================================== */

.ve-embed {
	width: 100%;
	max-width: 760px;
	margin: 1.6em auto;
}

/* Skeleton frame: light grey placeholder with a shimmer and a loading
   indicator until the player has loaded, then the player fades in. */
.ve-embed__frame,
.ve-video-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--ve-ratio, 16 / 9);
	border-radius: var(--ve-radius);
	background: #ebe9e7;
	box-shadow: var(--ve-shadow-s);
	isolation: isolate;
}

.ve-embed__frame::before,
.ve-video-frame::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	background-size: 220% 100%;
	content: "";
	animation: ve-shimmer 1.6s linear infinite;
}

@keyframes ve-shimmer {
	from {
		background-position: 120% 0;
	}

	to {
		background-position: -120% 0;
	}
}

.ve-embed__loader {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--ve-muted);
	font-size: 0.9rem;
	transition: opacity 0.3s, visibility 0s 0.3s;
}

.ve-embed__loader::after {
	content: attr(data-label);
}

.ve-embed__spinner {
	width: 38px;
	height: 38px;
	border: 3px solid #d3cfcb;
	border-top-color: var(--ve-orange);
	border-radius: 50%;
	animation: ve-spin 0.9s linear infinite;
}

@keyframes ve-spin {
	to {
		transform: rotate(360deg);
	}
}

.ve-embed__frame iframe,
.ve-video-frame video {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: inherit;
	transition: opacity 0.45s ease;
}

/* Hidden only when scripts run (otherwise nothing could reveal it). */
.ve-js .ve-embed__frame:not(.is-loaded) iframe,
.ve-js .ve-video-frame:not(.is-loaded) video {
	opacity: 0;
}

.ve-embed__frame.is-loaded::before,
.ve-video-frame.is-loaded::before {
	animation: none;
	opacity: 0;
}

.is-loaded > .ve-embed__loader {
	opacity: 0;
	visibility: hidden;
}

.ve-embed__frame.is-loaded {
	background: #1f1f1f;
}

.ve-embed--map .ve-embed__frame {
	aspect-ratio: 16 / 10;
}

.ve-embed--map .ve-embed__frame.is-loaded,
.ve-embed--social .ve-embed__frame.is-loaded {
	background: var(--ve-white);
}

.ve-embed--social {
	max-width: var(--ve-max, 500px);
}

.ve-embed--social .ve-embed__frame {
	box-shadow: none;
	border: 1px solid var(--ve-line);
}

.ve-embed figcaption {
	margin-top: 8px;
	color: var(--ve-muted);
	font-size: 0.85rem;
	line-height: 1.4;
}

.ve-embed figcaption a {
	color: inherit;
}

.ve-content .wp-block-video,
.ve-content .wp-block-audio {
	margin: 1.6em auto;
	max-width: 760px;
}

.ve-content .wp-block-video video {
	display: block;
	width: 100%;
	border-radius: var(--ve-radius);
	background: #1f1f1f;
}

.ve-content .wp-block-video .ve-video-frame video {
	height: 100%;
}

.ve-video-frame.is-loaded {
	background: #1f1f1f;
}

.ve-content .wp-block-audio {
	padding: 14px 16px;
	border: 1px solid var(--ve-line);
	border-radius: 999px;
	background: var(--ve-surface-2);
}

.ve-content .wp-block-audio audio {
	display: block;
	width: 100%;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.ve-table-wrap {
	max-width: 100%;
	margin: 1.4em 0;
	overflow-x: auto;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
}

.ve-table {
	width: 100%;
	min-width: 420px;
	border-collapse: collapse;
	font-size: 0.98rem;
	line-height: 1.5;
}

.ve-table td,
.ve-table th {
	padding: 12px 16px;
	border-bottom: 1px solid var(--ve-line);
	vertical-align: top;
	text-align: left;
}

.ve-table td + td {
	border-left: 1px solid var(--ve-line);
}

.ve-table tr:last-child td {
	border-bottom: 0;
}

.ve-table td p {
	margin: 0;
}

.ve-table td ul {
	margin: 0;
}

.ve-table__head td,
.ve-table__head th {
	background: var(--ve-grey-light);
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: 1.05rem;
	letter-spacing: 0.03em;
}

.ve-table__head strong,
.ve-table__head b {
	font-weight: 400;
}

.ve-table td.ve-cell-head:not(.ve-table__head td) {
	background: var(--ve-surface-2);
	color: var(--ve-ink);
	font-weight: 600;
}

/* ==========================================================================
   Third-party galleries
   ========================================================================== */

.ve-content .embedsocial-album {
	min-height: 200px;
	margin: 1em 0;
	border-radius: var(--ve-radius);
	background: var(--ve-surface-2);
}

.ve-content .envira-gallery-wrap {
	margin: 0.5em 0 1em;
}

.ve-content .envira-gallery-item img {
	border-radius: 6px;
}

/* ==========================================================================
   Previous / next
   ========================================================================== */

.ve-pager {
	grid-area: pager;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 18px clamp(20px, 5vw, 56px) 28px;
	border-top: 1px solid var(--ve-line);
	background: var(--ve-surface-2);
}

.ve-pager__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-white);
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: 1.1rem;
	line-height: 1.25;
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ve-pager__link:hover {
	border-color: var(--ve-orange);
	box-shadow: var(--ve-shadow-s);
	color: var(--ve-ink);
	transform: translateY(-1px);
}

.ve-pager__link .ve-icon {
	color: var(--ve-orange);
}

.ve-pager__link small {
	display: block;
	color: var(--ve-muted);
	font-family: var(--ve-font-text);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ve-pager__link--next {
	grid-column: 2;
	justify-content: flex-end;
	text-align: right;
}

/* ==========================================================================
   Home
   ========================================================================== */

.ve-page--home {
	max-width: 1040px;
	padding-top: 20px;
}

.ve-article--home {
	display: block;
}

.ve-hero {
	margin: 0;
	background: var(--ve-white);
}

.ve-hero__img {
	display: block;
	width: 100%;
	/* The cartoon is drawn on white: on short screens it is scaled down
	   (never cropped) to save height. */
	max-height: clamp(200px, 36dvh, 420px);
	object-fit: contain;
	background: var(--ve-white);
}

/* Title and text beside the video. */
.ve-home {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px 36px;
	align-items: center;
	padding: 24px clamp(18px, 4vw, 40px) 28px;
}

.ve-home__intro .ve-article__title {
	font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.ve-home__intro .ve-article__title::after {
	margin-top: 10px;
}

.ve-content--home {
	padding: 0;
	font-size: 1rem;
}

.ve-content--home .wp-block-image figure {
	margin: 16px 0 6px;
	text-align: left;
}

.ve-content--home .wp-block-image a {
	cursor: default;
}

.ve-content--home .wp-block-image img.ve-redrawn {
	width: min(100%, 300px);
	box-shadow: none;
}

.ve-content--home .ve-statement {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: clamp(1.12rem, 1.7vw, 1.3rem);
	font-weight: 400;
	line-height: 1.35;
}

.ve-content--home .ve-statement + .ve-statement {
	color: var(--ve-orange-dark);
}

/* Hymn: caption and player as one compact block. */
.ve-content--home p:has(> em:only-child) {
	margin: 14px 0 6px;
	color: var(--ve-muted);
	font-size: 0.9rem;
}

.ve-content--home .wp-block-audio {
	max-width: 420px;
	margin: 0;
	padding: 6px 10px;
}

.ve-content--home .wp-block-audio audio {
	height: 40px;
}

/* Hymn under the video: caption and player side by side when there is room. */
.ve-home__hymn {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-top: 12px;
}

.ve-home__hymn p {
	flex: 1 1 200px;
	margin: 0 !important;
}

.ve-home__hymn .wp-block-audio {
	flex: 1 1 260px;
}

.ve-home__media .ve-embed {
	margin: 0;
	max-width: none;
}

@container (min-width: 760px) {
	.ve-home.has-video {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	}
}

/* Section cards: one compact row on the home page. */
.ve-page--home .ve-cards-section {
	margin-top: 18px;
}

.ve-page--home .ve-cards-section__title {
	margin-bottom: 10px;
	font-size: 1.1rem;
}

.ve-page--home .ve-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ve-page--home .ve-card__media {
	aspect-ratio: 16 / 9;
}

.ve-page--home .ve-card__body {
	padding: 8px 10px 10px;
	border-top-width: 2px;
}

.ve-page--home .ve-card__title {
	font-size: 0.95rem;
	letter-spacing: 0.03em;
}

.ve-page--home .ve-card__meta,
.ve-page--home .ve-card__arrow {
	display: none;
}

.ve-page--home .ve-card__icon {
	width: 36px;
	height: 36px;
}

@container (min-width: 900px) {
	.ve-page--home .ve-cards {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Section cards */
.ve-cards-section {
	margin-top: 32px;
}

.ve-cards-section__title {
	margin: 0 0 14px;
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.ve-content .ve-cards-section {
	margin-top: 8px;
}

.ve-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.ve-content .ve-cards > li {
	margin: 0;
	padding: 0;
}

.ve-content .ve-cards > li::before {
	display: none;
}

.ve-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-white);
	box-shadow: var(--ve-shadow-s);
	color: var(--ve-ink);
	text-decoration: none;
	transition: transform 0.2s var(--ve-ease), box-shadow 0.2s, border-color 0.2s;
}

.ve-card__link:hover {
	border-color: var(--ve-orange-tint);
	box-shadow: var(--ve-shadow);
	color: var(--ve-ink);
	transform: translateY(-3px);
}

.ve-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ve-grey-light);
}

.ve-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.4s var(--ve-ease);
}

.ve-card__link:hover .ve-card__media img {
	transform: scale(1.04);
}

.ve-card--plain .ve-card__media {
	background: linear-gradient(135deg, var(--ve-orange-soft), var(--ve-grey-light));
}

.ve-card__icon {
	width: 54px;
	height: 54px;
	color: var(--ve-orange);
}

.ve-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 48px 16px 16px;
	border-top: 3px solid var(--ve-orange);
}

.ve-card__title {
	font-family: var(--ve-font-display);
	font-size: 1.22rem;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ve-card__meta {
	color: var(--ve-muted);
	font-size: 0.85rem;
}

.ve-card__arrow {
	position: absolute;
	right: 16px;
	bottom: 18px;
	color: var(--ve-orange);
	transition: transform 0.2s var(--ve-ease);
}

.ve-card__link:hover .ve-card__arrow {
	transform: translateX(3px);
}

/* ==========================================================================
   News list
   ========================================================================== */

.ve-posts {
	display: grid;
	gap: 22px;
	padding: 12px clamp(20px, 5vw, 56px) 40px;
}

.ve-post {
	padding: 20px clamp(16px, 3vw, 26px) 4px;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-l);
	background: var(--ve-surface-2);
}

.ve-post__date {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ve-orange-soft);
	color: var(--ve-orange-deep);
	font-size: 0.82rem;
	font-weight: 600;
}

.ve-post__title {
	margin: 8px 0 0;
	font-family: var(--ve-font-display);
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 1.2;
}

.ve-post__title a {
	color: var(--ve-ink);
	text-decoration: none;
}

.ve-post__title a:hover {
	color: var(--ve-orange-dark);
}

.ve-content--post {
	padding: 6px 0 0;
}

.ve-pagination {
	padding: 0 clamp(20px, 5vw, 56px) 32px;
}

/* ==========================================================================
   Footer bar, inline strip, tab bar, back-to-top
   ========================================================================== */

.ve-footer {
	border-top: 3px solid var(--ve-orange);
	background: var(--ve-dark);
	color: #cfcfcf;
}

.ve-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 24px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 9px 24px;
	font-size: 0.84rem;
	line-height: 1.4;
}

.ve-strip__copy {
	margin: 0;
}

.ve-strip__sep {
	margin: 0 6px;
	opacity: 0.6;
}

.ve-strip__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ve-strip__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.ve-strip__links a:hover {
	color: var(--ve-orange);
}

.ve-strip__links .ve-icon {
	width: 1.1em;
	height: 1.1em;
}

.ve-strip--inline {
	display: none;
}

.ve-tabbar {
	display: none;
}

.ve-top {
	position: absolute;
	right: 22px;
	bottom: 22px;
	z-index: 10;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--ve-line);
	border-radius: 50%;
	background: var(--ve-white);
	box-shadow: var(--ve-shadow);
	color: var(--ve-orange-dark);
	transition: transform 0.2s var(--ve-ease), opacity 0.2s;
}

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

.ve-top[hidden] {
	display: grid;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
}

/* ==========================================================================
   Drawer (phones and tablets)
   ========================================================================== */

.ve-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.ve-drawer[hidden] {
	display: block;
	visibility: hidden;
	pointer-events: none;
}

.ve-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.45);
	opacity: 1;
	transition: opacity 0.25s;
}

.ve-drawer[hidden] .ve-drawer__backdrop {
	opacity: 0;
}

.ve-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 380px);
	background: var(--ve-white);
	box-shadow: var(--ve-shadow-l);
	transform: none;
	transition: transform 0.28s var(--ve-ease);
}

.ve-drawer[hidden] .ve-drawer__panel {
	transform: translateX(-102%);
}

.ve-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: calc(10px + env(safe-area-inset-top)) 12px 10px 20px;
	border-bottom: 3px solid var(--ve-orange);
	background: var(--ve-grey-bg);
}

.ve-drawer__title {
	margin: 0;
	color: #4a4a4a;
	font-family: var(--ve-font-script);
	font-size: 1.9rem;
	line-height: 1.1;
}

.ve-drawer__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--ve-white);
}

.ve-drawer__nav {
	flex: 1;
	padding: 10px 10px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ve-drawer__nav > .ve-tree > .ve-tree__item > .ve-tree__row > .ve-tree__link {
	font-family: var(--ve-font-display);
	font-size: 1.12rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ve-drawer .ve-tree__link {
	padding: 11px 12px;
	font-size: 1rem;
}

.ve-drawer .ve-tree__toggle {
	width: 44px;
	height: 44px;
}

.ve-drawer .ve-tree__item.is-current > .ve-tree__row > .ve-tree__link {
	background: var(--ve-orange-soft);
	box-shadow: none;
}

.ve-strip--drawer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--ve-line);
	background: var(--ve-grey-light);
	color: var(--ve-text-soft);
}

.ve-strip--drawer .ve-strip__links a {
	color: var(--ve-orange-dark);
	padding: 4px 0;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.ve-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: rgba(18, 18, 18, 0.94);
	color: var(--ve-white);
	animation: ve-fade 0.2s;
}

@keyframes ve-fade {
	from {
		opacity: 0;
	}
}

.ve-lightbox__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: calc(10px + env(safe-area-inset-top)) 14px 10px 20px;
	font-size: 0.9rem;
	opacity: 0.85;
}

.ve-lightbox__stage {
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 0 64px;
}

.ve-lightbox__stage img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	background: var(--ve-white);
	object-fit: contain;
}

.ve-lightbox__caption {
	min-height: 24px;
	padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
	font-size: 0.95rem;
	text-align: center;
	opacity: 0.85;
}

.ve-lightbox button {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--ve-white);
}

.ve-lightbox button:hover {
	background: rgba(255, 255, 255, 0.22);
}

.ve-lightbox__prev,
.ve-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.ve-lightbox__prev {
	left: 10px;
}

.ve-lightbox__next {
	right: 10px;
}

/* ==========================================================================
   Forms (search, 404)
   ========================================================================== */

.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ve-line-strong);
	border-radius: var(--ve-radius-s);
	font: inherit;
}

.search-submit {
	padding: 10px 18px;
	border: 0;
	border-radius: var(--ve-radius-s);
	background: var(--ve-orange-dark);
	color: var(--ve-white);
	font: inherit;
	font-weight: 600;
}

/* ==========================================================================
   Responsive layout
   ========================================================================== */

/* Large screens: section sidebar. */
@media (min-width: 1180px) {
	.ve-has-sidenav .ve-body {
		grid-template-columns: var(--ve-sidenav-w) minmax(0, 1fr);
	}

	.ve-has-sidenav .ve-sidenav {
		display: block;
	}
}

/* Tablets and phones: compact header, drawer, bottom tab bar. */
@media (max-width: 1023px) {
	.ve-app {
		grid-template-rows: auto minmax(0, 1fr) auto;
	}

	.ve-header__inner {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 10px;
		padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
	}

	.ve-header__menu {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 50%;
		background: var(--ve-white);
		box-shadow: var(--ve-shadow-s);
		color: var(--ve-ink);
	}

	.ve-brand {
		grid-column: 2;
	}

	.ve-brand {
		min-width: 0;
	}

	.ve-brand__name {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: clamp(1.45rem, 7vw, 2.4rem);
	}

	.ve-brand__tagline {
		font-size: 0.78rem;
	}

	.ve-nav,
	.ve-footer {
		display: none;
	}

	.ve-strip--inline {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 8px 20px 28px;
		color: var(--ve-text-soft);
		text-align: center;
	}

	.ve-strip--inline .ve-strip__links a {
		color: var(--ve-orange-dark);
	}

	.ve-tabbar {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		height: calc(var(--ve-tabbar-h) + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		border-top: 1px solid var(--ve-line);
		background: var(--ve-white);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
	}

	.ve-tabbar__item {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-width: 0;
		border: 0;
		background: none;
		color: var(--ve-muted);
		font-family: var(--ve-font-text);
		font-size: 0.7rem;
		font-weight: 600;
		line-height: 1.1;
		text-decoration: none;
	}

	.ve-tabbar__item span {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ve-tabbar__item .ve-icon {
		width: 24px;
		height: 24px;
	}

	.ve-tabbar__item[aria-current="page"] {
		color: var(--ve-orange-dark);
	}

	.ve-tabbar__item[aria-current="page"]::before {
		position: absolute;
		top: 0;
		left: 30%;
		right: 30%;
		height: 3px;
		border-radius: 0 0 3px 3px;
		background: var(--ve-orange);
		content: "";
	}

	.ve-top {
		right: 14px;
		bottom: 14px;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	.ve-brand__tagline {
		display: none;
	}

	.ve-page {
		padding: 12px 10px 24px;
	}

	.ve-article {
		border-radius: var(--ve-radius);
	}

	.ve-cover {
		aspect-ratio: 16 / 9;
	}

	.ve-article__header {
		padding-top: 22px;
	}

	.ve-content {
		padding-top: 18px;
		font-size: 1.04rem;
	}

	.ve-content .ve-lead {
		font-size: 1.12rem;
	}

	.ve-section {
		margin-inline: -6px;
		padding-inline: 16px;
	}

	.ve-steps a {
		width: 30px;
		height: 30px;
		font-size: 0.95rem;
	}

	.ve-steps .is-current a {
		width: 36px;
		height: 36px;
	}

	.ve-timeline {
		padding-left: 26px;
	}

	.ve-timeline::before {
		left: 6px;
	}

	.ve-timeline__dated::before {
		position: static;
		display: block;
		width: auto;
		margin-bottom: 2px;
		text-align: left;
		line-height: 1.2;
	}

	.ve-timeline__dated::after {
		top: 0.25em;
		left: -25px;
	}

	.ve-pager {
		grid-template-columns: 1fr;
	}

	.ve-pager__link--next {
		grid-column: 1;
	}

	.ve-people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ve-person figcaption {
		font-size: 0.98rem;
	}

	.ve-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ve-card__body {
		padding: 10px 12px 12px;
	}

	.ve-card__title {
		font-size: 1.02rem;
	}

	.ve-card__arrow {
		display: none;
	}

	.ve-lightbox__stage {
		padding: 0 8px;
	}

	.ve-lightbox__prev,
	.ve-lightbox__next {
		top: auto;
		bottom: calc(10px + env(safe-area-inset-bottom));
		transform: none;
	}
}

/* Short landscape screens: give the content as much height as possible. */
@media (max-height: 560px) and (min-width: 1024px) {
	.ve-brand__tagline {
		display: none;
	}

	.ve-brand__name {
		font-size: 2rem;
	}
}

@media print {
	html,
	body,
	.ve-app,
	.ve-body,
	.ve-scroll {
		height: auto;
		overflow: visible;
		display: block;
	}

	.ve-nav,
	.ve-sidenav,
	.ve-tabbar,
	.ve-footer,
	.ve-top,
	.ve-toc,
	.ve-progress,
	.ve-header__menu {
		display: none !important;
	}

	.ve-article {
		box-shadow: none;
	}
}

.ve-card__media img.is-drawing {
	padding: 14px;
	object-fit: contain;
	background: var(--ve-white);
}

.ve-drawer__nav > .ve-tree > .ve-tree__item > .ve-tree__row > span.ve-tree__link {
	color: var(--ve-ink);
	font-weight: 400;
}

.ve-drawer__title {
	font-size: 1.6rem;
	white-space: nowrap;
}

/* Lists (news, search, 404) flow in source order. */
.ve-article--list,
.error404 .ve-article {
	display: block;
}

/* Illustrated pattern banner (Contacts). */
.ve-cover--pattern {
	aspect-ratio: 4 / 1;
	background-color: #efedeb;
	background-image:
		linear-gradient(180deg, rgba(239, 237, 235, 0) 45%, rgba(255, 255, 255, 0.9)),
		var(--ve-pattern);
	background-position: 0 0, 18px 10px;
	background-size: auto, 230px 230px;
	background-repeat: no-repeat, repeat;
	border-bottom: 1px solid var(--ve-line);
}

@media (max-width: 600px) {
	.ve-cover--pattern {
		aspect-ratio: 3 / 1;
		background-size: auto, 180px 180px;
	}
}

/* Contact lines whose label is shown as an icon (Email, Facebook). */
.ve-content .ve-contact-line {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ve-contact-line a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ve-label-icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ve-orange-soft);
	color: var(--ve-orange-deep);
}

.ve-label-icon .ve-icon {
	width: 19px;
	height: 19px;
}

@media (max-width: 600px) {
	.ve-page--home .ve-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.ve-page--home .ve-card__title {
		font-size: 0.78rem;
	}

	.ve-page--home .ve-card__body {
		padding: 6px 7px 8px;
	}

	.ve-page--home {
		padding-top: 10px;
	}
}

/* WordPress gallery block: images fill their tiles, no figure margins. */
.ve-content .wp-block-gallery {
	margin: 1.2em 0 1.4em;
}

.ve-content .wp-block-gallery .wp-block-image > img,
.ve-content .wp-block-gallery .wp-block-image img {
	margin: 0;
	box-shadow: none;
	border-radius: var(--ve-radius-s);
}

.ve-content .wp-block-gallery .wp-block-image {
	margin: 0;
}

/* WordPress embed block (e.g. YouTube pasted as a link). */
.ve-content .wp-block-embed {
	margin: 1.4em 0;
}

.ve-content .wp-block-embed .ve-embed {
	margin: 0;
}

/* The theme's own frame keeps the 16:9 shape; drop WordPress's spacer. */
body.ve .ve-content .wp-block-embed .wp-block-embed__wrapper::before {
	display: none;
}

.ve-content .wp-has-aspect-ratio .wp-block-embed__wrapper {
	position: static;
}


/* ==========================================================================
   Comments
   ========================================================================== */

.ve-article__comments {
	grid-area: comments;
	min-width: 0;
	padding: 0 clamp(20px, 5vw, 56px) 40px;
}

.ve-comments {
	padding-top: 28px;
	border-top: 1px solid var(--ve-line);
	scroll-margin-top: 20px;
}

.ve-comments__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: clamp(1.35rem, 2.2vw, 1.6rem);
	font-weight: 400;
}

.ve-comments__title .ve-section__icon {
	background: var(--ve-orange-soft);
	color: var(--ve-orange-deep);
}

.ve-comment-list,
.ve-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ve-comment-list .children {
	margin: 12px 0 0 28px;
	padding-left: 18px;
	border-left: 2px solid var(--ve-line);
}

.ve-comment-item {
	margin: 0 0 14px;
}

.ve-comment {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius);
	background: var(--ve-surface-2);
}

.ve-comment-item.bypostauthor > .ve-comment {
	border-color: var(--ve-orange-tint);
	background: var(--ve-orange-soft);
}

.ve-comment__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ve-orange-tint);
	color: var(--ve-orange-deep);
	font-family: var(--ve-font-display);
	font-size: 1.3rem;
}

.ve-comment__avatar--1 {
	background: #e3e0dd;
	color: #4a4a4a;
}

.ve-comment__avatar--2 {
	background: #ffe7c7;
	color: #8a5200;
}

.ve-comment__avatar--3 {
	background: var(--ve-green-soft);
	color: var(--ve-green);
}

.ve-comment__main {
	flex: 1;
	min-width: 0;
}

.ve-comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	margin-bottom: 6px;
}

.ve-comment__author {
	color: var(--ve-ink);
	font-weight: 700;
}

.ve-comment__date {
	color: var(--ve-muted);
	font-size: 0.85rem;
}

.ve-comment__text p {
	margin: 0 0 0.6em;
}

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

.ve-comment__pending {
	margin: 0 0 6px;
	color: var(--ve-orange-deep);
	font-size: 0.9rem;
	font-style: italic;
}

.ve-comment__reply {
	margin: 8px 0 0;
	font-size: 0.9rem;
}

.ve-comment__reply a {
	font-weight: 600;
	text-decoration: none;
}

.ve-comments__closed {
	color: var(--ve-muted);
	font-style: italic;
}

/* Form */
.ve-comment-form {
	margin-top: 26px;
	padding: 22px clamp(18px, 3vw, 28px) 24px;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-l);
	background: var(--ve-white);
}

.ve-comment-list .ve-comment-form {
	margin: 12px 0 0;
}

.ve-comment-form__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 0 0 6px;
	color: var(--ve-ink);
	font-family: var(--ve-font-display);
	font-size: 1.35rem;
	font-weight: 400;
}

.ve-comment-form__title small a {
	font-family: var(--ve-font-text);
	font-size: 0.9rem;
}

.ve-comment-form__note,
.ve-comment-form .comment-form-cookies-consent label {
	color: var(--ve-muted);
	font-size: 0.9rem;
}

.ve-comment-form p {
	margin: 0 0 14px;
}

.ve-comment-form label {
	display: block;
	margin-bottom: 4px;
	color: var(--ve-ink);
	font-weight: 600;
	font-size: 0.95rem;
}

.ve-comment-form input[type="text"],
.ve-comment-form input[type="email"],
.ve-comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ve-line-strong);
	border-radius: var(--ve-radius-s);
	background: var(--ve-white);
	color: var(--ve-text);
	font: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ve-comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

.ve-comment-form input:focus,
.ve-comment-form textarea:focus {
	border-color: var(--ve-orange);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 102, 68, 0.2);
}

@media (min-width: 700px) {
	.ve-comment-form .comment-form-author,
	.ve-comment-form .comment-form-email {
		display: inline-block;
		width: calc(50% - 8px);
		vertical-align: top;
	}

	.ve-comment-form .comment-form-author {
		margin-right: 12px;
	}
}

.ve-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.ve-comment-form .comment-form-cookies-consent input {
	margin-top: 4px;
	accent-color: var(--ve-orange-dark);
}

.ve-comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.ve-button,
.ve-comment-form .form-submit input {
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ve-orange-dark);
	color: var(--ve-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}

.ve-button:hover,
.ve-comment-form .form-submit input:hover {
	background: var(--ve-orange-deep);
	transform: translateY(-1px);
}

.ve-comments .comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin: 8px 0 0;
}

@media (max-width: 600px) {
	.ve-comment {
		gap: 12px;
		padding: 14px;
	}

	.ve-comment__avatar {
		width: 36px;
		height: 36px;
		font-size: 1.1rem;
	}

	.ve-comment-list .children {
		margin-left: 8px;
		padding-left: 12px;
	}
}

/* ==========================================================================
   Photo galleries: loading states
   ========================================================================== */

.ve-gallery-frame {
	position: relative;
}

.ve-gallery-frame--loading {
	min-height: 320px;
}

/* Gallery-level placeholder: a grid of grey photo tiles with a shimmer.
   It covers the top of the gallery (at most about a screenful). */
.ve-gallery-frame > .ve-gallery__loader {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	max-height: 520px;
	overflow: hidden;
	border-radius: var(--ve-radius);
	background:
		linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%),
		repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 8px), var(--ve-white) calc(33.333% - 8px) 33.333%),
		repeating-linear-gradient(180deg, transparent 0 150px, var(--ve-white) 150px 158px),
		#ebe9e7;
	background-size: 220% 100%, auto, auto, auto;
	color: var(--ve-muted);
	font-size: 0.95rem;
	transition: opacity 0.4s ease;
	animation: ve-gallery-shimmer 1.6s linear infinite;
}

/* While loading, the gallery itself stays hidden below the placeholder. */
.ve-gallery-frame--loading > .ve-gallery {
	max-height: 520px;
	overflow: hidden;
	opacity: 0;
}

.ve-gallery-frame > .ve-gallery {
	transition: opacity 0.4s ease;
}

.ve-gallery-frame > .ve-gallery__loader > span:last-child {
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
}

@keyframes ve-gallery-shimmer {
	from {
		background-position: 120% 0, 0 0, 0 0, 0 0;
	}

	to {
		background-position: -120% 0, 0 0, 0 0, 0 0;
	}
}

.ve-gallery-frame:not(.ve-gallery-frame--loading) > .ve-gallery__loader {
	opacity: 0;
	pointer-events: none;
}

/* Per-photo placeholder until that photo has arrived. */
.ve-gallery img {
	transition: opacity 0.4s ease;
}

.ve-gallery .ve-img-pending {
	background: linear-gradient(100deg, #ebe9e7 30%, #f6f5f4 50%, #ebe9e7 70%);
	background-size: 220% 100%;
	animation: ve-shimmer-tile 1.6s linear infinite;
}

.ve-gallery .ve-img-pending img {
	opacity: 0;
}

@keyframes ve-shimmer-tile {
	from {
		background-position: 120% 0;
	}

	to {
		background-position: -120% 0;
	}
}

/* Tiles need a size while empty. */
.wp-block-gallery .ve-img-pending,
.ve-person.ve-img-pending {
	min-height: 120px;
}

/* Button-style links in page content (e.g. "Itinéraire" under the Contacts map). */
.ve-content a.ve-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ve-white);
	text-decoration: none;
}

.ve-content a.ve-button:hover,
.ve-content a.ve-button:focus {
	color: var(--ve-white);
}

.ve-content .ve-map-link {
	margin: -0.6em 0 1.6em;
	text-align: center;
}
