/*
 * AW Theme global styles. Colours and fonts come from theme.json presets, so every
 * style variation (styles/*.json) restyles this file without changes here.
 * Layout reference: warm editorial look with a full-bleed photo hero, cards and a dark
 * footer (decision Ingmar 2026-11-06, modelled on helpikwilopvakantie.nl).
 */

:root {
	--aw-radius: 18px;
	--aw-radius-sm: 12px;
	--aw-shadow: 0 1px 2px rgb(22 25 29 / 0.06), 0 8px 24px rgb(22 25 29 / 0.06);
	--aw-shadow-hover: 0 2px 4px rgb(22 25 29 / 0.08), 0 16px 40px rgb(22 25 29 / 0.12);
}

/* Focus and links */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}
:where(.wp-block-post-content, .aw-author) a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
:where(.wp-block-post-content) a:not(.wp-element-button):hover { text-decoration-thickness: 2px; }
h1, h2, h3, .wp-block-post-title { text-wrap: balance; }
.wp-element-button { transition: background-color 0.15s ease, transform 0.15s ease; }
.wp-element-button:hover { transform: translateY(-1px); }

/* Header */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
/* The frosted background sits on a pseudo-element: a backdrop-filter on the header
   itself would become the containing block of the fixed mobile menu overlay and
   squeeze that overlay into the 60px header bar. */
header.wp-block-template-part::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--card) 94%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
}
.aw-site-header .wp-block-navigation a { text-decoration: none; }
/* Site logo: the logo is a wordmark that already contains the site name, so the
   site title next to it is only shown when no logo is set. */
.aw-site-header .wp-block-site-logo img { width: clamp(132px, 38vw, 176px); height: auto; }
.aw-site-header .wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }
.aw-footer-logo { display: inline-block; line-height: 0; }
.aw-footer-logo img { width: 176px; height: auto; }
.aw-site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
/* Mobile menu overlay: large tap targets with hairlines between the items. */
.aw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem;
	align-items: stretch;
}
.aw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}
.aw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.aw-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 1rem 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

/* Header search: the magnifier next to the menu opens a search panel below the header.
   The panel is an HTML popover (patterns/zoekknop.php): no JavaScript needed. */
.aw-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	color: var(--wp--preset--color--contrast);
	background: none;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.aw-search-toggle:hover { color: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }
.aw-search-toggle:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.aw-site-search {
	position: fixed;
	inset: calc(var(--wp-admin--admin-bar--height, 0px) + 4.375rem) 0 auto 0;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 1rem;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--card);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	box-shadow: var(--aw-shadow);
}
.aw-site-search::backdrop { background: rgb(0 0 0 / 0.15); }
.aw-site-search__form { display: flex; gap: 0.5rem; max-width: 40rem; margin-inline: auto; }
.aw-site-search__form input {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0 1rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--hairline);
	border-radius: 999px;
}
.aw-site-search__form input:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: var(--wp--preset--color--accent); }
.aw-site-search__form .wp-element-button { flex: none; border: 0; border-radius: 999px; cursor: pointer; }
@media (max-width: 600px) {
	/* Magnifier left of the hamburger. */
	.aw-search-toggle { order: -1; }
}

/* Back to top: bottom right. Where the browser supports scroll-driven animations it fades in
   after scrolling most of a screen; elsewhere it is always visible. */
.aw-to-top {
	position: fixed;
	z-index: 60;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom));
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	color: #fff;
	background: var(--wp--preset--color--accent);
	border-radius: 50%;
	box-shadow: var(--aw-shadow);
	transition: filter 0.15s ease;
}
.aw-to-top:hover { color: #fff; filter: brightness(0.92); }
.aw-to-top:focus-visible { outline: 3px solid var(--wp--preset--color--contrast); outline-offset: 3px; }
@supports (animation-timeline: scroll()) {
	.aw-to-top {
		animation: aw-to-top-in linear both;
		animation-timeline: scroll(root);
		animation-range: 50vh 90vh;
	}
}
@keyframes aw-to-top-in {
	from { opacity: 0; transform: translateY(1rem); visibility: hidden; }
	to { opacity: 1; transform: none; visibility: visible; }
}
@media (prefers-reduced-motion: no-preference) {
	html:has(.aw-to-top) { scroll-behavior: smooth; }
}

/* Eyebrow, muted text, meta line */
.aw-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
	margin: 0;
}
.aw-muted { color: var(--wp--preset--color--muted); }
.aw-meta > * + *::before { content: '·'; margin-inline-end: 0.75rem; color: var(--wp--preset--color--border); }

/* Home hero: full-bleed photo under a neutral dark gradient. Orange is kept for the
   buttons and the eyebrow only, so the photo keeps its own colours (decision Ingmar
   2026-11-06: the orange/brown overlay looked unprofessional). Contrast for white text
   stays at 4.5:1 or more: behind the text column the overlay is at least 80% night,
   on narrow screens 82% everywhere. */
.aw-hero {
	--aw-hero-shade: var(--wp--preset--color--night);
	border-radius: 0;
}
/* Align the hero text with the 1200px content column below it. */
.wp-block-cover.aw-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	width: min(1200px, 100%);
	margin-inline: auto;
}
/* The text column sits on the right (decision Ingmar 2026-11-06: a layout of its own,
   not the left-aligned hero of helpikwilopvakantie.nl). Text inside stays left-aligned. */
.aw-hero .aw-hero__inner { margin-left: auto !important; margin-right: 0 !important; }
.aw-hero .wp-block-cover__background {
	opacity: 1 !important;
	background:
		radial-gradient(110% 120% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent) 0%, transparent 55%),
		linear-gradient(260deg,
			color-mix(in srgb, var(--aw-hero-shade) 92%, transparent) 0%,
			color-mix(in srgb, var(--aw-hero-shade) 80%, transparent) 45%,
			color-mix(in srgb, var(--aw-hero-shade) 30%, transparent) 100%) !important;
}
@media (max-width: 781px) {
	.aw-hero .wp-block-cover__background {
		background:
			radial-gradient(110% 120% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent) 0%, transparent 55%),
			linear-gradient(180deg,
				color-mix(in srgb, var(--aw-hero-shade) 82%, transparent) 0%,
				color-mix(in srgb, var(--aw-hero-shade) 90%, transparent) 100%) !important;
	}
}
.aw-hero__lead {
	color: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	font-size: var(--wp--preset--font-size--medium);
	max-width: 34rem;
	margin: 0;
}
.aw-hero__lead p { margin: 0; }

/* Hero actions: the two buttons and the search field share one 32rem column, so their
   left and right edges line up. Buttons have equal width and height; on narrow screens
   they stack at full width. The search field keeps clear space above it. */
.aw-hero .wp-block-buttons { max-width: 32rem; gap: 0.75rem; flex-wrap: nowrap; }
.aw-hero .wp-block-buttons > .wp-block-button { flex: 1 1 0; margin: 0; }
.aw-hero .wp-block-buttons .wp-element-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.25rem;
	border-width: 2px;
	border-style: solid;
	box-sizing: border-box;
	white-space: nowrap;
}
.aw-hero .wp-block-button:not(.aw-button-ghost):not(.is-style-outline) .wp-element-button { border-color: transparent; }
/* On a dark hero the black buttons of this style would disappear. */
.aw-variant-hybrideschema .aw-hero .wp-block-button:not(.aw-button-ghost):not(.is-style-outline) .wp-element-button {
	background-color: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--night);
}
.aw-hero .aw-button-ghost .wp-element-button,
.aw-hero .is-style-outline .wp-element-button { border-color: currentColor; }
@media (max-width: 30rem) {
	.aw-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
}

/* Search field under the hero buttons: white pill with the button inside */
.aw-hero-search { max-width: 32rem; margin: var(--wp--preset--spacing--40, 1.5rem) 0 0; }
.aw-hero-search .wp-block-search__inside-wrapper {
	gap: 0.5rem;
	padding: 0.375rem;
	background: var(--wp--preset--color--card);
	border: 0;
	border-radius: 999px;
	box-shadow: var(--aw-shadow-hover);
}
.aw-hero-search .wp-block-search__input {
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
}
.aw-hero-search .wp-block-search__input::placeholder { color: var(--wp--preset--color--muted); opacity: 1; }
.aw-hero-search .wp-block-search__button {
	margin: 0;
	border-radius: 999px;
	padding-inline: 1.25rem;
}

/* "Waar wil je beginnen?": three entry cards under the hero */
.aw-routes { display: grid; gap: 1rem; }
@media (min-width: 48rem) {
	.aw-routes--2 { grid-template-columns: repeat(2, 1fr); }
	.aw-routes--3 { grid-template-columns: repeat(3, 1fr); }
}
.aw-route {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.5rem 3rem 1.5rem 1.5rem;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius);
	box-shadow: var(--aw-shadow);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.aw-route:hover { border-color: var(--wp--preset--color--accent); box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); color: var(--wp--preset--color--contrast); }
.aw-route::after {
	content: '→';
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
}
.aw-route:hover::after { transform: translateX(4px); }
.aw-route__kicker { font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--accent-strong); }
.aw-route__title { font-family: var(--wp--preset--font-family--heading, inherit); font-size: var(--wp--preset--font-size--large); font-weight: 800; line-height: 1.2; }
.aw-route__text { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.aw-route--primary {
	background: color-mix(in srgb, var(--wp--preset--color--highlight) 22%, var(--wp--preset--color--card));
	border-color: color-mix(in srgb, var(--wp--preset--color--highlight) 70%, var(--wp--preset--color--card));
}

.aw-hero__inner { max-width: 34rem; }
.aw-hero .wp-block-post-title { color: var(--wp--preset--color--base); font-size: var(--wp--preset--font-size--xx-large); }
.aw-hero .aw-eyebrow { color: var(--wp--preset--color--highlight); }
.aw-hero .is-style-outline .wp-element-button,
.aw-button-ghost .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--base);
	border: 2px solid currentColor;
}
.aw-hero .is-style-outline .wp-element-button:hover,
.aw-button-ghost .wp-element-button:hover {
	background: color-mix(in srgb, var(--wp--preset--color--base) 12%, transparent);
	color: var(--wp--preset--color--base);
}

/* Page and article heading band */
.aw-page-head { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--hairline); }

/* Page and post header: the featured image full width under a gradient, with the title
   in it (decision Ingmar 2026-11-06). The gradient runs from the bottom, where the title
   sits, so white text keeps a contrast of 4.5:1 or more; without a featured image the
   header is a plain dark band. The title lines up with the text column below. */
.aw-page-hero { border-radius: 0; color: var(--wp--preset--color--base); --aw-hero-glow: color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent); }
/* Hybride schema: its accent is almost black, so the glow is yellow (choice Ingmar 2026-11-11). */
.aw-variant-hybrideschema .aw-page-hero { --aw-hero-glow: color-mix(in srgb, var(--wp--preset--color--highlight) 45%, transparent); }
/* Beat core cover CSS for "bottom left", which sets the inner container to width: auto. */
.wp-block-cover.aw-page-hero.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container { width: 100%; }
/* Gradient variant F (choice Ingmar 2026-11-07): night from the left, like the header of
   helpikwilopvakantie.nl, with a warm accent glow in the bottom-left corner. On narrow
   screens the text spans the full width, so the night gradient runs from the bottom. */
.aw-page-hero .wp-block-cover__background {
	opacity: 1 !important;
	background:
		radial-gradient(110% 120% at 0% 100%, var(--aw-hero-glow) 0%, transparent 55%),
		linear-gradient(100deg,
			color-mix(in srgb, var(--wp--preset--color--night) 92%, transparent) 0%,
			color-mix(in srgb, var(--wp--preset--color--night) 70%, transparent) 45%,
			color-mix(in srgb, var(--wp--preset--color--night) 15%, transparent) 100%) !important;
}
@media (max-width: 781px) {
	.aw-page-hero .wp-block-cover__background {
		background:
			radial-gradient(110% 120% at 0% 100%, var(--aw-hero-glow) 0%, transparent 55%),
			linear-gradient(0deg,
				color-mix(in srgb, var(--wp--preset--color--night) 92%, transparent) 0%,
				color-mix(in srgb, var(--wp--preset--color--night) 72%, transparent) 40%,
				color-mix(in srgb, var(--wp--preset--color--night) 20%, transparent) 100%) !important;
	}
}
.aw-page-hero .wp-block-cover__inner-container > * { max-width: var(--wp--style--global--content-size); margin-inline: auto !important; text-shadow: 0 1px 12px rgb(0 0 0 / 0.45); }
.aw-page-hero .wp-block-post-title {
	color: var(--wp--preset--color--base);
	margin-block: 0;
	font-size: clamp(1.75rem, 1.2rem + 3vw, 3.25rem);
	text-wrap: balance;
}
.aw-page-hero .aw-lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem) !important; }
.aw-page-hero .aw-lede,
.aw-page-hero .aw-meta { color: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent); }
.aw-page-hero .aw-lede p { margin: 0; }
.aw-page-hero .aw-eyebrow,
.aw-page-hero .aw-eyebrow a { color: var(--wp--preset--color--highlight); }
.aw-page-hero .aw-meta > * + *::before { color: color-mix(in srgb, var(--wp--preset--color--base) 50%, transparent); }
.aw-feature-image img { border-radius: var(--aw-radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Bands on the home page */
.aw-band { background: var(--wp--preset--color--surface); border-block: 1px solid var(--wp--preset--color--hairline); }

/* Cards (guides, articles) */
.aw-cards > li { display: flex; }
.aw-card-item {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius);
	box-shadow: var(--aw-shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.aw-card-item:hover { box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); }
.aw-card-item .wp-block-post-featured-image { margin: 0; }
.aw-card-item .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.aw-card-item__body { padding: 1.25rem 1.375rem 1.5rem; }
.aw-card-item .wp-block-post-title a::after { content: ''; position: absolute; inset: 0; }
.aw-card-item { position: relative; }
.aw-card-item .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.aw-card-item .wp-block-post-excerpt__excerpt { margin: 0; }

/* Generic card (author box, "waarom dit product") */
.aw-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius);
	padding: var(--wp--preset--spacing--50);
	box-shadow: var(--aw-shadow);
}

/* Post lists without images */
.aw-post-list > li + li { border-top: 1px solid var(--wp--preset--color--hairline); padding-top: var(--wp--preset--spacing--50); }

/* Category cover and other images */
.aw-categorie-kop { border-radius: var(--aw-radius); overflow: hidden; }
.aw-hero-media .wp-block-media-text__media img { border-radius: var(--aw-radius); aspect-ratio: 3 / 2; object-fit: cover; }
.aw-404-image img { border-radius: var(--aw-radius); }

/* Footer */
.aw-site-footer a { text-decoration: none; }
.aw-site-footer a:hover { text-decoration: underline; }
.aw-site-footer .aw-footer-note { color: color-mix(in srgb, var(--wp--preset--color--base) 72%, var(--wp--preset--color--night)); }

/* Tables: horizontal rules only */
:root .wp-block-table thead { border-bottom: 0; }
:root .wp-block-table th,
:root .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	padding: 0.7rem 1rem 0.7rem 0;
	text-align: start;
}
:root .wp-block-table thead th {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--muted);
}
:root .wp-block-table figcaption { text-align: start; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
	.wp-element-button, .aw-card-item, .aw-route, .aw-route::after { transition: none; }
	.wp-element-button:hover, .aw-card-item:hover, .aw-route:hover, .aw-route:hover::after { transform: none; }
}

/* Header call to action stays on one line */
.aw-site-header .wp-block-button__link { white-space: nowrap; }

/* Header, main and footer touch: bands run edge to edge */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Small screens: title and menu button on one row; the hero repeats the call to action */
@media (max-width: 600px) {
	.aw-site-header .wp-block-buttons { display: none; }
	.aw-site-header > .wp-block-group { flex-wrap: nowrap; }
}

/* ------------------------------------------------------------------
 * Motion and energy (0.2.2, "dynamischer"). CSS only, no theme JavaScript.
 * Everything is fully visible without animation: reveal effects only run where
 * scroll-driven animations are supported, and nothing moves with reduced motion.
 * ------------------------------------------------------------------ */

/* Hero: angled bottom edge, photo settles in, text rises in a short sequence */
.aw-hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5vw)); }
.aw-hero .wp-block-cover__image-background { animation: aw-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.aw-hero__inner > * { animation: aw-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.aw-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.aw-hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.aw-hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.aw-hero__inner > :nth-child(5) { animation-delay: 0.32s; }
@keyframes aw-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes aw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Eyebrow with a short accent bar */
.aw-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.aw-eyebrow::before { content: ''; width: 1.75rem; height: 3px; border-radius: 3px; background: currentColor; }

/* Buttons: arrow on the primary button that nudges on hover */
.aw-hero .wp-block-button:first-child .wp-element-button::after,
.aw-cta .wp-element-button::after {
	content: '→';
	display: inline-block;
	margin-inline-start: 0.5rem;
	transition: transform 0.2s ease;
}
.aw-hero .wp-block-button:first-child .wp-element-button:hover::after,
.aw-cta .wp-element-button:hover::after { transform: translateX(4px); }

/* Cards: photo zooms, title gets an arrow that slides on hover */
.aw-card-item .wp-block-post-featured-image { overflow: hidden; }
.aw-card-item .wp-block-post-featured-image img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.aw-card-item:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.aw-card-item .wp-block-post-title a { text-decoration: none; }
.aw-card-item .wp-block-post-title a::before {
	content: '→';
	float: right;
	margin-inline-start: 0.75rem;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
}
.aw-card-item:hover .wp-block-post-title a::before { transform: translateX(4px); }
.aw-card-item:hover .wp-block-post-title a { color: var(--wp--preset--color--accent-strong); }

/* Accent line on top of the guide band and the footer */
.aw-band { position: relative; }
.aw-band::before,
.aw-site-footer::before {
	content: '';
	position: absolute;
	inset: 0 auto auto 0;
	width: min(14rem, 30%);
	height: 4px;
	background: var(--wp--preset--color--accent);
}
.aw-site-footer { position: relative; }

/* Reveal cards and headings as they scroll into view (progressive enhancement) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.aw-cards > li,
		.wp-block-post-content > h2 {
			animation: aw-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.aw-hero .wp-block-cover__image-background,
	.aw-hero__inner > * { animation: none; }
	.aw-card-item .wp-block-post-featured-image img,
	.aw-card-item .wp-block-post-title a::before,
	.aw-hero .wp-element-button::after { transition: none; }
	.aw-card-item:hover .wp-block-post-featured-image img { transform: none; }
}

/* Home page content in segments instead of one long text */
.wp-block-post-content > .aw-home-intro,
.wp-block-post-content > .aw-home-section,
.wp-block-post-content > .aw-home-config { margin-block-start: var(--wp--preset--spacing--60); }
.aw-home-intro {
	padding: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	border-left: 4px solid var(--wp--preset--color--accent);
}
.aw-home-intro > h2 { margin-block-start: 0.25rem; }
.aw-home-intro__sign { font-weight: 700; color: var(--wp--preset--color--accent-strong); }
.aw-home-intro__sign a { font-weight: 600; }
.aw-tiles.wp-block-group { gap: var(--wp--preset--spacing--40); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .aw-tiles.wp-block-group { grid-template-columns: 1fr; } }
.aw-tile {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.aw-tile > h3 { margin: 0 0 0.25rem; font-size: var(--wp--preset--font-size--medium); }
.aw-tile > p { margin: 0; color: var(--wp--preset--color--muted); }
.aw-tile:has(> h3 a) { position: relative; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.aw-tile:has(> h3 a):hover { border-color: var(--wp--preset--color--accent); box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); }
.aw-tile > h3 a { color: inherit; text-decoration: none; }
.aw-tile > h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.aw-tile > h3 a:focus-visible { outline: none; }
.aw-tile:has(> h3 a:focus-visible) { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.aw-tile:has(> h3 a) > p::after { content: ' →'; font-weight: 700; color: var(--wp--preset--color--accent); }
/* Photos in articles (md2blocks: wp:image with class aw-photo) */
.wp-block-image.aw-photo { margin-block: var(--wp--preset--spacing--50); }
.wp-block-image.aw-photo img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: var(--aw-radius-sm); }
.wp-block-image.aw-photo figcaption { margin-top: 0.5rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); text-align: left; }
.aw-home-config .wp-block-columns { margin-block: var(--wp--preset--spacing--40); }
.aw-home-config h3 { font-size: var(--wp--preset--font-size--medium); }
.aw-linklist { list-style: none; padding-left: 0; margin: 0; }
.aw-linklist li { padding: 0.5rem 0; border-top: 1px solid var(--wp--preset--color--hairline); }
.aw-linklist li:first-child { border-top: 0; }
.aw-linklist a { text-decoration: none; font-weight: 600; }
.aw-linklist a::after { content: ' →'; color: var(--wp--preset--color--accent); }
.aw-linklist a:hover { text-decoration: underline; }
.aw-note {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-radius: var(--aw-radius-sm);
	background: color-mix(in srgb, var(--wp--preset--color--highlight) 25%, var(--wp--preset--color--card));
	font-size: var(--wp--preset--font-size--small);
}
.wp-block-post-content > .aw-note { margin-block-start: var(--wp--preset--spacing--60); }
.aw-home-more { font-size: var(--wp--preset--font-size--small); }


/* "Eerst lezen? Begin hier": guides as link cards in groups (decision Ingmar 2026-11-07:
   the three narrow columns with long links looked messy). The whole card is the link. */
.aw-guidelinks { display: grid; gap: var(--wp--preset--spacing--50); }
.aw-guidelinks__group > h3 {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.aw-linkcards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.aw-linkcards li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin: 0;
	padding: 1rem 2.75rem 1rem 1rem;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
	box-shadow: var(--aw-shadow);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	--aw-icon-color: var(--wp--preset--color--accent);
}
.aw-linkcards li.aw-i::before { width: 1.5rem; height: 1.5rem; margin: 0; }
.aw-linkcards li::after {
	content: '→';
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
}
.aw-linkcards a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}
.aw-linkcards a::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.aw-linkcards li:hover,
.aw-linkcards li:focus-within { border-color: var(--wp--preset--color--accent); box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); }
.aw-linkcards li:hover::after { transform: translate(4px, -50%); }
.aw-linkcards a:focus-visible { outline: none; }
.aw-linkcards li:focus-within { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.aw-linkcards li, .aw-linkcards li::after { transition: none; }
	.aw-linkcards li:hover, .aw-linkcards li:focus-within { transform: none; }
	.aw-linkcards li:hover::after { transform: translateY(-50%); }
}

/* Icons (own set, sites/homegym/iconen): a block gets the classes "aw-i aw-i-<name>". The
   SVG is used as a mask, so the icon takes the colour of the text or of --aw-icon-color. */
.aw-i::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 1.25em;
	height: 1.25em;
	margin-right: 0.5em;
	vertical-align: -0.25em;
	background: var(--aw-icon-color, currentColor);
	-webkit-mask: var(--aw-icon) center / contain no-repeat;
	mask: var(--aw-icon) center / contain no-repeat;
}
.aw-tile > h3.aw-i,
.aw-home-config h3.aw-i { --aw-icon-color: var(--wp--preset--color--accent); }
.aw-linklist li.aw-i { display: flex; align-items: center; --aw-icon-color: var(--wp--preset--color--accent); }
.aw-linklist li.aw-i::before { margin-right: 0.75em; }
.aw-route__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 0.375rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, var(--wp--preset--color--card));
	--aw-icon-color: var(--wp--preset--color--accent);
}
.aw-route__icon::before { width: 1.6rem; height: 1.6rem; margin: 0; }
.aw-route--primary .aw-route__icon { background: var(--wp--preset--color--accent); --aw-icon-color: var(--wp--preset--color--on-accent); }
.aw-i-optrekstang { --aw-icon: url("../icons/optrekstang.svg"); }
.aw-i-wall-ball { --aw-icon: url("../icons/wall-ball.svg"); }
.aw-i-roeitrainer { --aw-icon: url("../icons/roeitrainer.svg"); }
.aw-i-doel { --aw-icon: url("../icons/doel.svg"); }
.aw-i-niveau { --aw-icon: url("../icons/niveau.svg"); }
.aw-i-tijd { --aw-icon: url("../icons/tijd.svg"); }
.aw-i-kalender { --aw-icon: url("../icons/kalender.svg"); }
.aw-i-spier { --aw-icon: url("../icons/spier.svg"); }
.aw-i-lichaam { --aw-icon: url("../icons/lichaam.svg"); }
.aw-i-check { --aw-icon: url("../icons/check.svg"); }
.aw-i-adem { --aw-icon: url("../icons/adem.svg"); }
.aw-i-let-op { --aw-icon: url("../icons/let-op.svg"); }
.aw-i-kruis { --aw-icon: url("../icons/kruis.svg"); }
.aw-i-vuur { --aw-icon: url("../icons/vuur.svg"); }
.aw-i-omlaag { --aw-icon: url("../icons/omlaag.svg"); }
.aw-i-omhoog { --aw-icon: url("../icons/omhoog.svg"); }
.aw-i-opbouw { --aw-icon: url("../icons/opbouw.svg"); }
.aw-i-dumbbell { --aw-icon: url("../icons/dumbbell.svg"); }
.aw-i-budget { --aw-icon: url("../icons/budget.svg"); }
.aw-i-configurator { --aw-icon: url("../icons/configurator.svg"); }
.aw-i-deal { --aw-icon: url("../icons/deal.svg"); }
.aw-i-dumbbell-hexagon { --aw-icon: url("../icons/dumbbell-hexagon.svg"); }
.aw-i-foamroller { --aw-icon: url("../icons/foamroller.svg"); }
.aw-i-geluid { --aw-icon: url("../icons/geluid.svg"); }
.aw-i-getest { --aw-icon: url("../icons/getest.svg"); }
.aw-i-halterbank { --aw-icon: url("../icons/halterbank.svg"); }
.aw-i-halterschijf { --aw-icon: url("../icons/halterschijf.svg"); }
.aw-i-halterstang { --aw-icon: url("../icons/halterstang.svg"); }
.aw-i-kettlebell { --aw-icon: url("../icons/kettlebell.svg"); }
.aw-i-plafondhoogte { --aw-icon: url("../icons/plafondhoogte.svg"); }
.aw-i-rack { --aw-icon: url("../icons/rack.svg"); }
.aw-i-rolmaat { --aw-icon: url("../icons/rolmaat.svg"); }
.aw-i-springtouw { --aw-icon: url("../icons/springtouw.svg"); }
.aw-i-thuisgym { --aw-icon: url("../icons/thuisgym.svg"); }
.aw-i-tip { --aw-icon: url("../icons/tip.svg"); }
.aw-i-vloer { --aw-icon: url("../icons/vloer.svg"); }
.aw-i-weerstandsband { --aw-icon: url("../icons/weerstandsband.svg"); }
.aw-i-yogamat { --aw-icon: url("../icons/yogamat.svg"); }
.aw-i-hardlopen { --aw-icon: url("../icons/hardlopen.svg"); }
.aw-i-slee { --aw-icon: url("../icons/slee.svg"); }
.aw-i-roeien { --aw-icon: url("../icons/roeien.svg"); }
.aw-i-skierg { --aw-icon: url("../icons/skierg.svg"); }
.aw-i-wallball { --aw-icon: url("../icons/wallball.svg"); }
.aw-i-farmers-carry { --aw-icon: url("../icons/farmers-carry.svg"); }
.aw-i-schema { --aw-icon: url("../icons/schema.svg"); }
.aw-i-stopwatch { --aw-icon: url("../icons/stopwatch.svg"); }
.aw-i-hartslag { --aw-icon: url("../icons/hartslag.svg"); }
.aw-i-voeding { --aw-icon: url("../icons/voeding.svg"); }
.aw-i-herstel { --aw-icon: url("../icons/herstel.svg"); }
.aw-i-wedstrijd { --aw-icon: url("../icons/wedstrijd.svg"); }

/* Library pages (spec 13): key facts, links block in the guides, "how this page was made" */
.wp-block-list.aw-facts {
	list-style: none;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
	display: grid;
	gap: 0.35rem;
}
.wp-block-list.aw-facts li { margin: 0; }
.aw-library-links {
	margin-block: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-left: 4px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--card);
	border-radius: var(--aw-radius-sm);
}
.aw-library-links > h2 { margin-top: 0; font-size: var(--wp--preset--font-size--large); }
.aw-library-links li + li { margin-top: 0.5rem; }
.aw-made-by { margin-top: var(--wp--preset--spacing--60); color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.aw-made-by > h2 { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--contrast); }

/* Exercise pages show their own illustration below the header, so the header stays a low,
   quiet band: the photo is only a faint texture behind the title. */
body:has(.aw-exercise-photo) .aw-page-hero {
	min-height: 0 !important;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important;
	background: var(--wp--preset--color--night);
}
body:has(.aw-exercise-photo) .aw-page-hero .wp-block-cover__image-background { opacity: 0.3; filter: grayscale(0.5); }
body:has(.aw-exercise-photo) .aw-page-hero .wp-block-post-title { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); }
/* Exercise illustrations: large on the exercise page, small in the overview and the schedules */
.aw-exercise-photo { margin-block: 0 var(--wp--preset--spacing--50); }
.aw-exercise-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--aw-radius-sm); }
.aw-exercise-photo figcaption,
.aw-muscle-photo figcaption,
.aw-image-note { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.aw-exercise-photo figcaption { margin-top: 0.4rem; text-align: left; }
/* Worked muscles: a square anatomy image on white, kept modest so it does not dominate the page */
.aw-muscle-photo { max-width: 26rem; margin-inline: auto; }
.aw-muscle-photo img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--aw-radius-sm); background: #fff; }
.aw-muscle-photo figcaption { margin-top: 0.4rem; text-align: center; }
/* The worked muscles as a list next to the image; the dots repeat the colours of the image */
.aw-muscles { display: grid; gap: var(--wp--preset--spacing--40); align-items: center; }
.aw-muscles > * { margin-block: 0; }
.aw-muscle-groups > * { margin-block: 0; }
.aw-muscle-key { display: flex; align-items: center; gap: 0.5rem; font-size: var(--wp--preset--font-size--medium); }
.aw-muscle-key::before { content: ""; flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; }
.aw-muscle-key--primary::before { background: #e0561c; }
.aw-muscle-key--secondary::before { background: #f5bd8a; }
.aw-muscle-groups .aw-muscle-list { margin-top: 0.4rem; padding-left: 1.35rem; }
.aw-muscle-groups .aw-muscle-list + .aw-muscle-key { margin-top: var(--wp--preset--spacing--40); }
@media (min-width: 700px) {
	.aw-muscles { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
	.aw-muscles .aw-muscle-photo { margin-inline: 0; }
}
.aw-exercise-thumb { flex: none; width: 96px; height: auto; aspect-ratio: 4 / 3; border-radius: var(--aw-radius-sm); }
.wp-block-list.aw-exercise-list { list-style: none; padding-left: 0; }
.wp-block-list.aw-exercise-list li,
.aw-exercise-cell { display: flex; align-items: center; gap: 0.75rem; }
.wp-block-list.aw-exercise-list li + li { margin-top: 0.6rem; }
.aw-plan-table th:first-child { width: 50%; }
@media (max-width: 600px) {
	.aw-exercise-cell { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
	.aw-exercise-cell .aw-exercise-thumb { width: 72px; }
	.aw-plan-table th:first-child { width: 34%; }
	:root .wp-block-table.aw-plan-table th { letter-spacing: 0; white-space: nowrap; overflow-wrap: normal; padding-inline: 0.25rem; }
}

/* Library blocks (spec 13): facts, material cards, steps and panels instead of plain lists.
   Icons are spans (like .aw-route__icon) or the ::before of .aw-i. */
.aw-badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, var(--wp--preset--color--card));
	--aw-icon-color: var(--wp--preset--color--accent);
}
.aw-badge::before { width: 1.4rem; height: 1.4rem; margin: 0; }
.wp-block-post-content h3.aw-i { --aw-icon-color: var(--wp--preset--color--accent); }

.wp-block-list.aw-stats,
.wp-block-list.aw-cards,
.wp-block-list.aw-chips,
.wp-block-list.aw-iconlist,
.wp-block-list.aw-steps { list-style: none; padding-left: 0; }

.wp-block-list.aw-stats { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-block-list.aw-stats:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aw-stats > li,
.wp-block-list.aw-cards > li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	padding: 0.875rem;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
}
.aw-stats > li > span:last-child,
.wp-block-list.aw-cards > li > span:last-child { min-width: 0; line-height: 1.35; }
.aw-stats strong {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	font-weight: 600;
}
.aw-stats strong + span { display: block; overflow-wrap: anywhere; hyphens: auto; }
.aw-stats > li > span:last-child { min-width: 0; }
.aw-stats strong + span::first-letter { text-transform: uppercase; }
@media (max-width: 781px) {
	.wp-block-list.aw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.aw-stats > li { flex-direction: column; gap: 0.5rem; }
}

.wp-block-list.aw-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-list.aw-cards.aw-cards--single { grid-template-columns: minmax(0, 1fr); }
.wp-block-list.aw-cards strong { display: block; margin-bottom: 0.15rem; }
.wp-block-list.aw-cards strong::first-letter { text-transform: uppercase; }
.wp-block-list.aw-cards > li > span:last-child { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.wp-block-list.aw-cards strong { color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--medium); }
.wp-block-list.aw-cards--link > li { position: relative; align-items: center; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.wp-block-list.aw-cards--link .aw-exercise-thumb { width: 88px; }
.wp-block-list.aw-cards--link a { color: inherit; text-decoration: none; }
.wp-block-list.aw-cards--link a::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.wp-block-list.aw-cards--link > li:hover,
.wp-block-list.aw-cards--link > li:focus-within { border-color: var(--wp--preset--color--accent); box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); }
.wp-block-list.aw-cards--link a:focus-visible { outline: none; }
.wp-block-list.aw-cards--link > li:focus-within { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
@media (max-width: 600px) {
	.wp-block-list.aw-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-list.aw-cards--link > li { transition: none; }
	.wp-block-list.aw-cards--link > li:hover, .wp-block-list.aw-cards--link > li:focus-within { transform: none; }
}

.wp-block-list.aw-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: var(--wp--preset--spacing--50); }
.aw-chips > li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.3rem 0.8rem;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	--aw-icon-color: var(--wp--preset--color--accent);
}
.aw-chips > li::before { margin-right: 0.4em; }

.aw-iconlist > li { position: relative; margin: 0.6rem 0 0; padding-left: 2rem; --aw-icon-color: var(--wp--preset--color--accent); }
.aw-iconlist > li:first-child { margin-top: 0; }
.aw-iconlist > li::before { position: absolute; left: 0; top: 0.1em; margin: 0; }

.aw-panel,
.aw-session {
	margin-block: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--aw-radius-sm);
}
.aw-panel { background: color-mix(in srgb, var(--wp--preset--color--accent) 7%, var(--wp--preset--color--card)); }
.aw-session { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--hairline); box-shadow: var(--aw-shadow); }
.aw-panel > .wp-block-heading,
.aw-session > .wp-block-heading { margin-block-start: 0; }
.aw-panel > :last-child,
.aw-session > :last-child { margin-block-end: 0; }
@media (max-width: 600px) {
	.aw-session { padding: 0.875rem; }
}

.aw-callout {
	position: relative;
	padding: 0.75rem 1rem 0.75rem 2.875rem;
	border-radius: var(--aw-radius-sm);
	background: color-mix(in srgb, var(--wp--preset--color--highlight) 25%, var(--wp--preset--color--card));
	font-size: var(--wp--preset--font-size--small);
	--aw-icon-color: var(--wp--preset--color--accent-strong);
}
.aw-callout::before { position: absolute; left: 1rem; top: 0.8rem; margin: 0; }

.wp-block-list.aw-steps { counter-reset: aw-step; }
.aw-steps > li { counter-increment: aw-step; position: relative; min-height: 2.25rem; margin: 0.9rem 0 0; padding-left: 3rem; }
.aw-steps > li:first-child { margin-top: 0; }
.aw-steps > li::before {
	content: counter(aw-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-weight: 700;
}

/* Lines about breathing stand out: a colour of their own and the breathing icon */
.aw-breath { --aw-icon: url("../icons/adem.svg"); --aw-icon-color: #1f5f8b; background: #e6f2fb; border-radius: var(--aw-radius-sm); }
.aw-steps > li.aw-breath { padding: 0.55rem 2.75rem 0.55rem 3.4rem; }
.aw-steps > li.aw-breath::before { left: 0.5rem; top: 0.45rem; }
.aw-steps > li.aw-breath::after {
	content: "";
	position: absolute;
	right: 0.75rem;
	top: 0.7rem;
	width: 1.4rem;
	height: 1.4rem;
	background: var(--aw-icon-color);
	-webkit-mask: var(--aw-icon) center / contain no-repeat;
	mask: var(--aw-icon) center / contain no-repeat;
}
.aw-iconlist > li.aw-breath { padding: 0.45rem 0.75rem 0.45rem 2.6rem; --aw-icon-color: #1f5f8b; }
.aw-iconlist > li.aw-breath::before { left: 0.6rem; top: 0.55rem; }
.aw-linkcards small { display: block; color: var(--wp--preset--color--muted); font-size: 0.8125rem; font-weight: 400; }

/* Hand-written guides (inc/guide-blocks.php): the same blocks, with text at reading size */
.wp-block-post-content h2.aw-i { --aw-icon-color: var(--wp--preset--color--accent); }
.wp-block-post-content h2.aw-i::before { width: 1em; height: 1em; margin-right: 0.4em; vertical-align: -0.1em; }
.aw-step-label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wp-block-list.aw-iconlist.aw-panel-list {
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--aw-radius-sm);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 7%, var(--wp--preset--color--card));
}
.wp-block-list.aw-cards.aw-cards--text > li > span:last-child { color: var(--wp--preset--color--contrast); font-size: inherit; line-height: 1.5; }
.wp-block-list.aw-cards--text strong ~ strong { display: inline; margin: 0; font-size: inherit; }
.wp-block-post-content li a { overflow-wrap: anywhere; }

/* Library filters: the form appears once the script runs, without it the whole list shows */
.aw-filter:not([hidden]) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 0.75rem;
	align-items: end;
	margin-block: var(--wp--preset--spacing--50);
	padding: 1rem;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
}
.aw-filter__field { display: grid; gap: 0.25rem; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.aw-filter__field select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.4rem 0.6rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 400;
}
.aw-filter__field select:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; }
.aw-filter__status { grid-column: 1 / -1; margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.aw-filter__reset {
	grid-column: 1 / -1;
	justify-self: start;
	padding: 0;
	background: none;
	border: 0;
	color: var(--wp--preset--color--accent);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;
	cursor: pointer;
}
.aw-filter-list > [hidden],
.aw-filter__reset[hidden],
.aw-filter__empty[hidden] { display: none; }
.wp-block-list.aw-filter-list > [hidden] { display: none; }

/* Muscle groups overview */
.wp-block-list.aw-muscle-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin-block: var(--wp--preset--spacing--50); padding: 0; list-style: none; }
.aw-muscle-card,
.aw-plan-card,
.aw-library-card { overflow: hidden; background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--hairline); border-radius: var(--aw-radius); box-shadow: var(--aw-shadow); }
.aw-muscle-card { display: flex; flex-direction: column; margin: 0; scroll-margin-top: 6rem; }
.aw-muscle-card:target { border-color: var(--wp--preset--color--accent); }
.aw-muscle-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fff; }
.aw-muscle-card > div { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1rem; }
.aw-muscle-card h2 { margin: 0; font-size: var(--wp--preset--font-size--large); }
.aw-muscle-card p { margin: 0; font-size: var(--wp--preset--font-size--small); }
.aw-muscle-card__more { margin-top: auto !important; padding-top: 0.25rem; font-weight: 600; }

/* Workout plans as visual cards */
.wp-block-list.aw-plan-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); padding: 0; list-style: none; }
.aw-plan-card { position: relative; display: flex; flex-direction: column; margin: 0; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.aw-plan-card:hover,
.aw-plan-card:focus-within { border-color: var(--wp--preset--color--accent); box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); }
.aw-plan-card:focus-within { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
/* Compact overview: the cards and their filter use the wide page width. */
@media (min-width: 900px) {
	.wp-block-list.aw-plan-cards--compact,
	.aw-filter:has(+ .aw-plan-cards--compact) {
		--aw-wide: min(1200px, calc(100vw - 4rem));
		box-sizing: border-box;
		width: var(--aw-wide);
		max-width: none;
		margin-left: calc(50% - var(--aw-wide) / 2) !important; /* Beats the constrained layout. */
		margin-right: 0 !important;
	}
}
.aw-plan-card > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.aw-plan-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1rem; }
.aw-plan-card__body > p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.aw-plan-card__body > .aw-plan-card__goal { color: var(--wp--preset--color--accent); font-weight: 700; }
.aw-plan-card h3 { margin: 0; font-size: var(--wp--preset--font-size--medium); line-height: 1.25; }
.aw-plan-card h3 a { color: inherit; text-decoration: none; }
.aw-plan-card h3 a::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.aw-plan-card h3 a:focus-visible { outline: none; }
.aw-plan-card__facts { display: grid; gap: 0.3rem; margin: auto 0 0; padding: 0.5rem 0 0; list-style: none; font-size: var(--wp--preset--font-size--small); --aw-icon-color: var(--wp--preset--color--accent); }
.aw-plan-card__facts li { display: flex; align-items: center; margin: 0; }
.aw-plan-card__facts li.aw-i::before { margin-right: 0.5em; }

/* Home page: large entries to the exercise library */
.aw-library-cards { display: grid; gap: 1rem; }
@media (min-width: 782px) { .aw-library-cards { grid-template-columns: repeat(3, 1fr); } }
.aw-library-card { display: flex; flex-direction: column; color: var(--wp--preset--color--contrast); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.aw-library-card:hover { border-color: var(--wp--preset--color--accent); box-shadow: var(--aw-shadow-hover); transform: translateY(-2px); color: var(--wp--preset--color--contrast); }
.aw-library-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.aw-library-card__body { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.25rem; }
.aw-library-band .aw-image-note { margin: 0.75rem 0 0; }
@media (prefers-reduced-motion: reduce) {
	.aw-plan-card, .aw-library-card { transition: none; }
	.aw-plan-card:hover, .aw-plan-card:focus-within, .aw-library-card:hover { transform: none; }
}

/* Home page: short introduction under the hero */
.aw-start-band p { max-width: 46rem; }

/* Hybride schema: every photo has the head in the top quarter, so crop from the top. */
.aw-variant-hybrideschema .aw-hero .wp-block-cover__image-background,
.aw-variant-hybrideschema .aw-page-hero .wp-block-cover__image-background { object-position: 50% 0; }

/* Articles as blocks: one card per section, with an icon in the heading. */
.aw-block-section {
	margin-block: var(--wp--preset--spacing--50, 2rem);
	padding: clamp(1.1rem, 0.8rem + 1.5vw, 2rem);
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--aw-radius-sm);
}
.aw-block-section > :first-child { margin-top: 0; }
.aw-block-section > :last-child { margin-bottom: 0; }
.aw-block-section > .wp-block-heading.aw-i { display: flex; align-items: flex-start; gap: 0.6rem; --aw-icon-color: var(--wp--preset--color--contrast); }
.aw-block-section > .wp-block-heading.aw-i::before {
	width: 1.5rem;
	height: 1.5rem;
	margin: 0.1em 0 0;
}
.aw-block-section > .wp-block-list.aw-cards > li { background: color-mix(in srgb, var(--wp--preset--color--highlight) 10%, var(--wp--preset--color--card)); }
.wp-block-list.aw-ticks { display: grid; gap: 0.5rem; padding-left: 0; list-style: none; }
.aw-ticks > li { display: flex; align-items: flex-start; margin: 0; --aw-icon-color: var(--wp--preset--color--accent-strong); }
.aw-ticks > li::before { margin-top: 0.15em; }
