/*
Theme Name: Amstenrade
Theme URI: https://www.amstenrade.net/
Author: Rob Spierings
Description: Modern, volledig instelbaar thema voor Amstenrade.net. Kleuren, lettertypen, afmetingen, header, layout en footer zijn in te stellen via Weergave → Customizer → Thema-instellingen. Teksten bewerk je met de standaard WordPress-editor of met Elementor (incl. Elementor Pro Theme Builder).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amstenrade
Tags: blog, news, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, wide-blocks, block-styles
*/

/* Alle maten en kleuren komen uit CSS-variabelen (--am-*) die de Customizer zet.
   Wijzig ze dus via de Customizer, niet hier. */

/* ==========================================================================
   Basis
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--am-bg);
	color: var(--am-text);
	font-family: var(--am-font-body);
	font-size: var(--am-fs-base);
	line-height: var(--am-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.am-nav-open { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--am-font-heading);
	font-weight: var(--am-h-weight);
	letter-spacing: var(--am-h-ls);
	color: var(--am-heading);
	line-height: 1.15;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: var(--am-h1); line-height: 1.06; }
h2 { font-size: var(--am-h2); line-height: 1.1; }
h3 { font-size: var(--am-h3); }
h4 { font-size: var(--am-h4); }
h5 { font-size: var(--am-h5); }
h6 { font-size: var(--am-h6); }

p { margin: 0 0 1.15em; }

a { color: var(--am-link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--am-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--am-accent); color: var(--am-accent-contrast); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 100000; padding: 12px 18px;
	background: var(--am-surface); color: var(--am-heading); font-weight: 700;
	border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

.am-container {
	width: 100%;
	max-width: calc(var(--am-container) + var(--am-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--am-gutter);
}

.am-section { padding-block: calc(var(--am-section) * .75) var(--am-section); }
.am-section-pad { padding-block: calc(var(--am-section) * .5); }

.am-main:focus { outline: none; }
[hidden] { display: none !important; }

/* ==========================================================================
   Knoppen en formulieren
   ========================================================================== */

.am-btn,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
.am-comments .submit,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.5em;
	border: 0;
	border-radius: var(--am-btn-radius);
	background: var(--am-primary);
	color: var(--am-primary-contrast);
	font-family: var(--am-font-ui);
	font-size: .95em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.am-btn:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover,
input[type="submit"]:hover {
	background: color-mix(in srgb, var(--am-primary) 82%, #000);
	color: var(--am-primary-contrast);
}
.am-btn:active { transform: translateY(1px); }
.am-btn--small { padding: .6em 1.15em; font-size: .9em; }

.wp-block-button__link { border-radius: var(--am-btn-radius); font-family: var(--am-font-ui); font-weight: 700; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="tel"], input[type="number"], textarea, select {
	width: 100%;
	padding: .75em 1em;
	font: inherit;
	font-size: 1rem;
	color: var(--am-text);
	background: var(--am-surface);
	border: 1.5px solid var(--am-border);
	border-radius: calc(var(--am-radius) * .6);
	transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--am-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--am-primary) 18%, transparent);
}
label { font-family: var(--am-font-ui); font-weight: 600; font-size: .9em; }

.am-icon { flex: none; }
.am-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 10px;
	border: 0; border-radius: var(--am-btn-radius);
	background: transparent; color: inherit;
	font-family: var(--am-font-ui); font-weight: 600; font-size: 15px;
	cursor: pointer;
	transition: background-color .2s ease;
}
.am-icon-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* Zoekformulier */
.am-searchform {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 560px;
	background: var(--am-surface);
	border: 1.5px solid var(--am-border);
	border-radius: var(--am-btn-radius);
	padding: 5px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.am-searchform:focus-within {
	border-color: var(--am-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--am-primary) 18%, transparent);
}
.am-searchform__icon { display: flex; padding-left: 12px; color: var(--am-muted); }
.am-searchform__input.am-searchform__input {
	flex: 1; min-width: 0;
	border: 0; background: transparent; box-shadow: none;
	padding: .55em .7em; color: var(--am-text);
}
.am-searchform__input::-webkit-search-cancel-button { cursor: pointer; }
.am-searchform__btn {
	border: 0; cursor: pointer;
	padding: .65em 1.3em;
	border-radius: var(--am-btn-radius);
	background: var(--am-primary); color: var(--am-primary-contrast);
	font-family: var(--am-font-ui); font-weight: 700; font-size: .9rem;
}
.am-searchform__btn:hover { background: color-mix(in srgb, var(--am-primary) 82%, #000); }

/* ==========================================================================
   Topbalk en header
   ========================================================================== */

.am-topbar {
	background: var(--am-topbar-bg);
	color: var(--am-topbar-text);
	font-family: var(--am-font-ui);
	font-size: 14px;
}
.am-topbar__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 38px;
}
.am-topbar p { margin: 0; }
.am-topbar a { color: inherit; text-decoration: none; }
.am-topbar a:hover { text-decoration: underline; }
.am-topbar__menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

.am-site-header {
	position: relative;
	z-index: 1000;
	color: var(--am-header-text);
}
.am-sticky .am-site-header { position: sticky; top: 0; }
.admin-bar.am-sticky .am-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.am-sticky .am-site-header { top: 0; } }

/* De achtergrond zit op een pseudo-element: zo kan het mobiele menu (position:fixed) correct werken. */
.am-header { position: relative; }
.am-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--am-header-bg) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	transition: box-shadow .3s ease;
}
.am-header-border .am-header::before { border-bottom: 1px solid var(--am-border); }
.am-site-header.is-scrolled .am-header::before { box-shadow: 0 10px 30px -18px rgba(10, 20, 40, .35); }

.am-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand nav actions";
	align-items: center;
	column-gap: 28px;
	min-height: var(--am-header-h);
	transition: min-height .3s ease;
}
.am-sticky .am-site-header.is-scrolled .am-header__inner { min-height: max(56px, calc(var(--am-header-h) * .78)); }

.am-brand { grid-area: brand; display: flex; align-items: center; gap: 14px; min-width: 0; }
.am-brand .custom-logo-link { display: block; flex: none; }
.am-brand .custom-logo { width: auto; max-height: var(--am-logo-h); transition: max-height .3s ease; }
.am-sticky .is-scrolled .am-brand .custom-logo { max-height: calc(var(--am-logo-h) * .8); }
.am-brand__text { min-width: 0; }
.am-brand__title {
	margin: 0;
	font-family: var(--am-font-heading);
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.am-brand__name { color: var(--am-header-text); text-decoration: none; }
.am-brand__tagline {
	margin: 3px 0 0;
	font-family: var(--am-font-ui);
	font-size: 14px;
	line-height: 1.3;
	color: color-mix(in srgb, var(--am-header-text) 65%, transparent);
}

.am-nav { grid-area: nav; justify-self: end; }
.am-header__actions { grid-area: actions; display: flex; align-items: center; gap: 6px; position: relative; z-index: 1002; }
.am-menu-toggle { display: none; }
.am-menu-toggle__open { display: inline-flex; }
.am-menu-toggle__close { display: none; }
.am-nav-open .am-menu-toggle__open { display: none; }
.am-nav-open .am-menu-toggle__close { display: inline-flex; }

/* Varianten: logo + menu eronder */
.am-header--stacked .am-header__inner,
.am-header--centered .am-header__inner {
	grid-template-columns: 1fr auto;
	grid-template-areas: "brand actions" "nav nav";
	padding-block: 14px 0;
}
.am-header--stacked .am-nav,
.am-header--centered .am-nav {
	justify-self: stretch;
	border-top: 1px solid var(--am-border);
	margin-top: 14px;
}
.am-header--centered .am-header__inner { grid-template-columns: 1fr auto 1fr; grid-template-areas: ". brand actions" "nav nav nav"; }
.am-header--centered .am-brand { justify-self: center; flex-direction: column; text-align: center; }
.am-header--centered .am-header__actions { justify-self: end; }
.am-header--centered .am-menu { justify-content: center; }

/* Menu */
.am-menu,
.am-menu ul { list-style: none; margin: 0; padding: 0; }
.am-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.am-menu li { position: relative; }
.am-menu a {
	display: block;
	padding: 10px 12px;
	color: var(--am-header-text);
	text-decoration: none;
	font-family: var(--am-font-ui);
	font-size: var(--am-nav-fs);
	font-weight: var(--am-nav-weight);
	text-transform: var(--am-nav-tt);
	letter-spacing: var(--am-nav-ls);
	line-height: 1.3;
	white-space: nowrap;
}
.am-menu > li > a { position: relative; }
.am-menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
	border-radius: 3px; background: var(--am-accent);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.am-menu > li > a:hover::after,
.am-menu > .current-menu-item > a::after,
.am-menu > .current-menu-ancestor > a::after,
.am-menu > .current_page_item > a::after,
.am-menu > .current_page_ancestor > a::after { transform: scaleX(1); }

.am-menu .menu-item-has-children > a,
.am-menu .page_item_has_children > a { padding-right: 26px; }
.am-menu .menu-item-has-children > a::before,
.am-menu .page_item_has_children > a::before {
	content: ""; position: absolute; right: 10px; top: 50%;
	width: 6px; height: 6px; margin-top: -5px;
	border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
	transform: rotate(45deg); opacity: .6;
}
.am-menu .sub-menu .menu-item-has-children > a::before { transform: rotate(-45deg); }

.am-menu .sub-menu,
.am-menu .children {
	position: absolute; top: 100%; left: 0; z-index: 20;
	min-width: 240px;
	padding: 8px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	box-shadow: 0 24px 50px -20px rgba(10, 20, 40, .35);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.am-menu li:hover > .sub-menu, .am-menu li:focus-within > .sub-menu,
.am-menu li:hover > .children, .am-menu li:focus-within > .children { transition-delay: 0s; }
.am-menu .sub-menu .sub-menu, .am-menu .children .children { top: -9px; left: 100%; }
.am-menu .sub-menu a, .am-menu .children a {
	padding: 9px 12px; border-radius: calc(var(--am-radius) * .6);
	color: var(--am-heading); font-size: calc(var(--am-nav-fs) * .94);
	text-transform: none; letter-spacing: 0; white-space: normal; font-weight: 500;
}
.am-menu .sub-menu a:hover, .am-menu .children a:hover,
.am-menu .sub-menu .current-menu-item > a { background: color-mix(in srgb, var(--am-primary) 8%, transparent); color: var(--am-primary); }
/* Lange submenu's (bijv. "Oude foto's") in twee kolommen */
.am-menu .sub-menu.am-sub--wide { width: 520px; columns: 2; column-gap: 4px; }
.am-menu .sub-menu.am-sub--wide > li { break-inside: avoid; }
.am-menu li:last-child > .sub-menu.am-sub--wide,
.am-menu li:nth-last-child(2) > .sub-menu.am-sub--wide { left: auto; right: 0; }

.am-sub-toggle {
	display: none;
	position: absolute; right: 0; top: 4px;
	width: 44px; height: 44px; align-items: center; justify-content: center;
	border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%;
}
.am-sub-toggle .am-icon { transition: transform .2s ease; }
.am-menu li.is-open > .am-sub-toggle .am-icon { transform: rotate(180deg); }

.am-nav-backdrop {
	display: none; position: fixed; inset: 0; z-index: 999;
	background: rgba(10, 18, 34, .45);
	opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.am-nav-open .am-nav-backdrop { opacity: 1; pointer-events: auto; }

/* Zoekpaneel */
.am-search-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	padding: 18px 0 22px;
	background: var(--am-surface);
	border-bottom: 1px solid var(--am-border);
	box-shadow: 0 20px 40px -24px rgba(10, 20, 40, .35);
}
.am-search-panel[hidden] { display: none; }
.am-search-panel .am-searchform { max-width: 720px; margin-inline: auto; }

/* ==========================================================================
   Intro homepage (hero)
   ========================================================================== */

.am-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--am-hero-bg);
	color: var(--am-hero-text);
	padding-block: min(var(--am-hero-pad), 12vw + 32px);
}
/* Hoogtelijnen van het heuvelland als subtiel motief */
.am-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='M-20 330 C120 300 200 240 330 250 S560 330 820 260'/%3E%3Cpath d='M-20 300 C110 270 210 200 340 212 S560 300 820 228'/%3E%3Cpath d='M-20 270 C100 240 220 160 350 174 S570 270 820 196'/%3E%3Cpath d='M-20 240 C90 210 230 122 360 136 S580 240 820 164'/%3E%3Cpath d='M-20 210 C80 180 240 86 370 100 S590 210 820 132'/%3E%3Cpath d='M-20 180 C70 150 250 52 380 66 S600 180 820 100'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right -60px bottom -40px;
	background-size: min(1100px, 120%) auto;
	opacity: .14;
}
.am-hero--image::before { display: none; }
.am-hero__media { position: absolute; inset: 0; z-index: -2; }
.am-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.am-hero--image .am-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--am-hero-bg) 0%, transparent 85%), var(--am-hero-bg);
	opacity: var(--am-hero-overlay);
}
.am-hero--center .am-hero--image .am-hero__media::after { background: var(--am-hero-bg); }

.am-hero__inner { position: relative; }
.am-hero__inner > * { max-width: 820px; }
.am-hero--center .am-hero__inner { text-align: center; }
.am-hero--center .am-hero__inner > * { margin-inline: auto; }

.am-hero__kicker {
	display: inline-block;
	margin: 0 0 22px;
	padding: 6px 14px;
	border-radius: var(--am-btn-radius);
	background: var(--am-accent);
	color: var(--am-accent-contrast);
	font-family: var(--am-font-ui);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}
.am-hero__title {
	color: inherit;
	font-size: var(--am-display);
	line-height: .98;
	letter-spacing: calc(var(--am-h-ls) - 0.015em);
	margin: 0 0 20px;
	max-width: 14ch;
}
.am-hero--center .am-hero__title { max-width: 16ch; }
.am-hero__text {
	font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
	line-height: 1.5;
	margin: 0;
	opacity: .88;
	max-width: 46ch;
}
.am-hero__search { margin-top: 34px; }
.am-hero__search .am-searchform { border-color: transparent; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); }
.am-hero--center .am-hero__search .am-searchform { margin-inline: auto; }

/* ==========================================================================
   Overzichten: uitgelicht bericht, kaarten, paginering
   ========================================================================== */

.am-archive-header {
	padding-block: calc(var(--am-section) * .7) calc(var(--am-section) * .1);
}
.am-archive-header__kicker {
	font-family: var(--am-font-ui); font-weight: 700; color: var(--am-primary); margin-bottom: .4em;
}
.am-archive-header__title { margin: 0; }
.am-archive-header__desc { margin-top: 14px; max-width: 62ch; color: var(--am-muted); font-size: 1.1em; }
.am-archive-header__desc p:last-child { margin: 0; }
.am-archive-header__search { margin-top: 24px; }

.am-layout { display: block; }
.am-layout--right, .am-layout--left {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: calc(var(--am-gap) * 1.8);
	align-items: start;
}
.am-layout--left { grid-template-columns: 320px minmax(0, 1fr); }
.am-layout--left .am-sidebar { order: -1; }
@media (max-width: 960px) {
	.am-layout--right, .am-layout--left { grid-template-columns: minmax(0, 1fr); }
	.am-layout--left .am-sidebar { order: 0; }
}

.am-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	margin-bottom: 12px;
	font-family: var(--am-font-ui);
	font-size: 14px;
	line-height: 1.3;
}
.am-tag {
	position: relative; z-index: 2;
	display: inline-block;
	padding: 4px 11px;
	border-radius: var(--am-btn-radius);
	background: color-mix(in srgb, var(--am-primary) 10%, var(--am-surface));
	color: var(--am-primary);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}
a.am-tag:hover { background: var(--am-primary); color: var(--am-primary-contrast); }
.am-date { color: var(--am-muted); }

/* Uitgelicht bericht */
.am-feature {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	margin-bottom: calc(var(--am-gap) * 2);
	background: var(--am-surface);
	border-radius: var(--am-radius);
	overflow: hidden;
}
.am-cards--shadow .am-feature { box-shadow: 0 1px 2px rgba(10,20,40,.06), 0 18px 50px -28px rgba(10,20,40,.35); }
.am-cards--border .am-feature { border: 1px solid var(--am-border); }
.am-cards--flat .am-feature { background: transparent; overflow: visible; gap: calc(var(--am-gap) * 1.4); }
.am-cards--flat .am-feature__media { border-radius: var(--am-img-radius); }
.am-feature__media { position: relative; min-height: 340px; overflow: hidden; background: color-mix(in srgb, var(--am-primary) 12%, var(--am-bg)); }
.am-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.am-feature:hover .am-feature__media img { transform: scale(1.03); }
.am-feature__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 56px); }
.am-cards--flat .am-feature__body { padding-inline: 0; }
.am-feature__title { font-size: var(--am-h2); margin-bottom: 16px; }
.am-feature__excerpt { color: var(--am-muted); font-size: 1.05em; }
.am-feature__more { align-self: flex-start; margin-top: 8px; }
@media (max-width: 900px) {
	.am-feature { grid-template-columns: minmax(0, 1fr); }
	.am-feature__media { min-height: 0; aspect-ratio: 3 / 2; }
}

/* Kaarten */
.am-grid { display: grid; gap: calc(var(--am-gap) * 1.2) var(--am-gap); }
.am-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .am-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .am-grid--related { grid-template-columns: minmax(0, 1fr); } }

.am-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--am-surface);
	border-radius: var(--am-radius);
	overflow: hidden;
	transition: box-shadow .3s ease, transform .3s ease;
}
.am-cards--shadow .am-card { box-shadow: 0 1px 2px rgba(10,20,40,.05), 0 12px 32px -22px rgba(10,20,40,.35); }
.am-cards--shadow .am-card:hover { box-shadow: 0 1px 2px rgba(10,20,40,.05), 0 22px 44px -22px rgba(10,20,40,.45); }
.am-cards--border .am-card { border: 1px solid var(--am-border); }
.am-cards--border .am-card:hover { border-color: color-mix(in srgb, var(--am-primary) 40%, var(--am-border)); }
.am-cards--flat .am-card { background: transparent; overflow: visible; border-radius: 0; }

.am-card__media {
	position: relative;
	aspect-ratio: var(--am-ratio);
	overflow: hidden;
	background: color-mix(in srgb, var(--am-primary) 12%, var(--am-bg));
}
.am-cards--flat .am-card__media { border-radius: var(--am-img-radius); }
.am-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.am-card:hover .am-card__media img { transform: scale(1.04); }
.am-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--am-font-heading); font-weight: 800; font-size: 5rem;
	color: color-mix(in srgb, var(--am-primary) 30%, transparent);
}
.am-card__media:has(.am-card__placeholder) { aspect-ratio: var(--am-ratio); min-height: 160px; }

.am-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.am-cards--flat .am-card__body { padding: 18px 2px 4px; }
.am-card__title { font-size: var(--am-h4); line-height: 1.2; margin: 0 0 10px; }
.am-card__link { color: var(--am-heading); text-decoration: none; }
.am-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.am-card:hover .am-card__link,
.am-feature:hover .am-card__link { color: var(--am-primary); }
.am-card__link:focus-visible { outline: none; }
.am-card:has(.am-card__link:focus-visible),
.am-feature:has(.am-card__link:focus-visible) { outline: 3px solid var(--am-accent); outline-offset: 3px; }
.am-card__excerpt { color: var(--am-muted); font-size: .94em; line-height: 1.55; }
.am-card__excerpt p { margin: 0; }
.am-card__more {
	margin-top: auto;
	padding-top: 16px;
	font-family: var(--am-font-ui);
	font-weight: 700;
	font-size: 15px;
	color: var(--am-primary);
}
.am-card__more-label { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; padding-bottom: 2px; }
.am-card:hover .am-card__more-label { background-size: 100% 2px; }

/* Lijstweergave */
.am-grid--list { grid-template-columns: minmax(0, 1fr); }
.am-grid--list .am-card { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); }
.am-grid--list .am-card__media { aspect-ratio: auto; min-height: 220px; }
.am-grid--list .am-card__media img { position: absolute; inset: 0; }
.am-grid--list .am-card__body { justify-content: center; padding: 26px 30px; }
.am-cards--flat .am-grid--list .am-card { gap: 26px; }
.am-cards--flat .am-grid--list .am-card__body { padding: 0; }
@media (max-width: 680px) {
	.am-grid--list .am-card { grid-template-columns: minmax(0, 1fr); }
	.am-grid--list .am-card__media { aspect-ratio: var(--am-ratio); min-height: 0; }
}

/* Paginering */
.am-pagination { margin-top: calc(var(--am-gap) * 2); }
.am-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.am-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 46px; height: 46px; padding: 0 14px;
	border-radius: var(--am-btn-radius);
	font-family: var(--am-font-ui); font-weight: 600;
	color: var(--am-heading); text-decoration: none;
	background: var(--am-surface); border: 1px solid var(--am-border);
}
.am-pagination a.page-numbers:hover { border-color: var(--am-primary); color: var(--am-primary); }
.am-pagination .page-numbers.current { background: var(--am-primary); border-color: var(--am-primary); color: var(--am-primary-contrast); }
.am-pagination .page-numbers.dots { background: none; border: 0; min-width: 0; }

.am-empty { text-align: center; padding: calc(var(--am-section) * .5) 0; }
.am-empty .am-searchform { margin: 20px auto 0; }

/* ==========================================================================
   Bericht en pagina
   ========================================================================== */

.am-single__header { padding-block: calc(var(--am-section) * .7) calc(var(--am-section) * .45); }
.am-single__head-inner { max-width: var(--am-content); margin-inline: auto; }
.am-single__title { font-size: var(--am-h1); margin-bottom: 18px; }
.am-single__lead { font-size: 1.25em; line-height: 1.5; color: var(--am-muted); margin-bottom: 24px; max-width: 60ch; }

.am-byline {
	display: flex; flex-wrap: wrap; gap: 10px 26px;
	list-style: none; margin: 0; padding: 18px 0 0;
	border-top: 1px solid var(--am-border);
	font-family: var(--am-font-ui); font-size: 15px; color: var(--am-muted);
}
.am-byline li { display: inline-flex; align-items: center; gap: 8px; }
.am-byline .am-icon { color: var(--am-primary); }

.am-single__image { margin-bottom: calc(var(--am-section) * .6); }
.am-single__image img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--am-img-radius); }
.am-single__image figcaption, .am-entry figcaption, .wp-element-caption {
	margin-top: 10px; font-family: var(--am-font-ui); font-size: 14px; color: var(--am-muted); text-align: left;
}
.am-single__image figcaption { max-width: var(--am-content); margin-inline: auto; }

/* Leestekst: alle blokken in een leesbare kolom; brede en volle uitlijning werken ook */
.am-entry { padding-inline: var(--am-gutter); }
.am-entry > * { max-width: var(--am-content); margin-inline: auto; }
.am-entry > .alignwide { max-width: var(--am-container); }
.am-entry > .alignfull { max-width: none; margin-inline: calc(var(--am-gutter) * -1); }
.am-has-sidebar .am-entry { padding-inline: 0; }
.am-has-sidebar .am-entry > .alignfull, .am-has-sidebar .am-entry > .alignwide { margin-inline: 0; max-width: none; }
.am-entry > .alignleft { float: left; margin: .3em 1.6em 1em calc((100% - var(--am-content)) / 2); max-width: 50%; }
.am-entry > .alignright { float: right; margin: .3em calc((100% - var(--am-content)) / 2) 1em 1.6em; max-width: 50%; }
@media (max-width: 820px) {
	.am-entry > .alignleft { margin-left: 0; }
	.am-entry > .alignright { margin-right: 0; }
}
.am-entry::after { content: ""; display: table; clear: both; }
.am-entry--page { padding-bottom: var(--am-section); }
.am-page .am-entry--page:first-child { padding-top: calc(var(--am-section) * .6); }
.am-single .am-entry { font-size: 1.04em; }

.am-entry h2, .am-entry h3, .am-entry h4 { margin-top: 1.7em; }
.am-entry h2:first-child, .am-entry h3:first-child { margin-top: 0; }
.am-entry ul, .am-entry ol { padding-left: 1.3em; margin-block: 0 1.2em; }
.am-entry li { margin-bottom: .35em; }
.am-entry li::marker { color: var(--am-primary); }
.am-entry img { border-radius: var(--am-img-radius); }
.am-entry figure, .am-entry .wp-block-image, .am-entry .wp-block-gallery, .am-entry .wp-block-embed { margin-block: 2em; }
.am-entry hr, .wp-block-separator { border: 0; border-top: 1px solid var(--am-border); margin-block: 2.5em; }
.am-entry blockquote, .wp-block-quote {
	margin-block: 2em; padding: 4px 0 4px 26px;
	border-left: 4px solid var(--am-accent);
	font-size: 1.12em; color: var(--am-heading);
}
.am-entry blockquote cite, .wp-block-quote cite { display: block; margin-top: 10px; font-family: var(--am-font-ui); font-size: 14px; font-style: normal; color: var(--am-muted); }
.wp-block-pullquote { border-block: 3px solid var(--am-heading); padding: 2em 0; }
.am-entry pre, .wp-block-code {
	padding: 18px 20px; overflow-x: auto; border-radius: calc(var(--am-radius) * .6);
	background: var(--am-heading); color: var(--am-bg); font-size: .85em;
}
.am-entry :not(pre) > code { padding: .12em .4em; border-radius: 5px; background: color-mix(in srgb, var(--am-primary) 9%, transparent); font-size: .88em; }
.am-entry table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95em; }
.am-entry th, .am-entry td { padding: 12px 14px; border-bottom: 1px solid var(--am-border); text-align: left; }
.am-entry th { font-family: var(--am-font-ui); color: var(--am-heading); }
.am-entry .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: calc(var(--am-img-radius) * .7); }

.am-entry--elementor { padding: 0; }

.am-page__header { padding-block: calc(var(--am-section) * .7) calc(var(--am-section) * .1); }
.am-page__header > .am-container > * { max-width: var(--am-content); margin-inline: auto; }
.am-elementor-page .am-page__header > .am-container > *,
.am-has-sidebar .am-page__header > .am-container > * { max-width: calc(var(--am-content) + 160px); margin-inline: 0; }
.am-page__title { margin: 0; }
.am-page__lead { margin: 16px 0 0; font-size: 1.2em; color: var(--am-muted); max-width: 60ch; }
.am-page-title--band .am-page__header {
	padding-block: calc(var(--am-section) * .9) calc(var(--am-section) * .8);
	margin-bottom: calc(var(--am-section) * .2);
	background: var(--am-hero-bg); color: var(--am-hero-text);
}
.am-page-title--band .am-page__title, .am-page-title--band .am-page__lead { color: inherit; }
.am-elementor-page .am-page__header { padding-bottom: calc(var(--am-section) * .4); }

.am-page-links { clear: both; margin-top: 2em; font-family: var(--am-font-ui); }
.am-page-links a { margin-inline: 4px; }

/* Onder het bericht */
.am-single__footer { padding-top: 10px; padding-bottom: calc(var(--am-section) * .7); }
.am-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 auto 36px; }
.am-tags a {
	display: inline-block; padding: 6px 14px; border-radius: var(--am-btn-radius);
	border: 1px solid var(--am-border); color: var(--am-text); font-family: var(--am-font-ui); font-size: 14px; text-decoration: none;
}
.am-tags a:hover { border-color: var(--am-primary); color: var(--am-primary); }

.am-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-postnav a {
	display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 18px 22px; border-radius: var(--am-radius);
	background: var(--am-surface); border: 1px solid var(--am-border);
	text-decoration: none; color: var(--am-heading);
}
.am-postnav a:hover { border-color: var(--am-primary); }
.am-postnav .nav-next { grid-column: 2; text-align: right; }
.am-postnav__label { font-family: var(--am-font-ui); font-size: 13px; color: var(--am-muted); }
.am-postnav__title { font-family: var(--am-font-heading); font-weight: var(--am-h-weight); line-height: 1.25; }
@media (max-width: 600px) {
	.am-postnav .nav-links { grid-template-columns: 1fr; }
	.am-postnav .nav-next { grid-column: auto; }
}

.am-related {
	padding-block: var(--am-section);
	background: color-mix(in srgb, var(--am-primary) 5%, var(--am-bg));
}
.am-related__title { font-size: var(--am-h3); margin-bottom: 28px; }

/* Reacties */
.am-comments-wrap { padding: calc(var(--am-section) * .7) var(--am-gutter); }
.am-comments { max-width: var(--am-content); margin-inline: auto; }
.am-comments__title { font-size: var(--am-h4); }
.am-comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.am-comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 48px); }
.am-comment-list .comment-body {
	padding: 20px 22px; margin-bottom: 14px;
	background: var(--am-surface); border: 1px solid var(--am-border); border-radius: var(--am-radius);
}
.am-comment-list .comment-author { display: flex; align-items: center; gap: 12px; font-family: var(--am-font-ui); }
.am-comment-list .comment-author img { border-radius: 50%; }
.am-comment-list .says { display: none; }
.am-comment-list .comment-metadata { font-family: var(--am-font-ui); font-size: 13px; margin: 4px 0 10px 60px; }
.am-comment-list .comment-metadata a { color: var(--am-muted); text-decoration: none; }
.am-comment-list .reply a { font-family: var(--am-font-ui); font-weight: 700; font-size: 14px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* Zijbalk en widgets */
.am-sidebar { display: grid; gap: 22px; }
.am-sidebar .widget {
	padding: 24px; background: var(--am-surface);
	border: 1px solid var(--am-border); border-radius: var(--am-radius);
}
.widget-title { font-size: var(--am-h5); margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--am-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* 404 */
.am-404 { padding-block: var(--am-section); text-align: center; }
.am-404__inner > * { max-width: 620px; margin-inline: auto; }
.am-404__code {
	font-family: var(--am-font-heading); font-weight: 800;
	font-size: clamp(6rem, 18vw, 12rem); line-height: .9; margin-bottom: 10px;
	color: transparent; -webkit-text-stroke: 2px var(--am-primary);
}
.am-404 .am-searchform { margin: 28px auto; }

/* ==========================================================================
   Ontdek-blok
   ========================================================================== */

.am-discover {
	background: var(--am-discover-bg);
	color: var(--am-discover-text);
	padding-block: var(--am-section);
}
.am-discover__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: calc(var(--am-gap) * 2);
	align-items: center;
}
.am-discover__kicker { font-family: var(--am-font-ui); font-weight: 700; color: var(--am-accent); margin-bottom: 10px; }
.am-discover__title { color: inherit; font-size: var(--am-h2); margin-bottom: 14px; }
.am-discover__text { opacity: .82; margin: 0; max-width: 40ch; }
.am-discover__hint { opacity: .7; font-size: .9em; }
.am-discover__hint a { color: inherit; }

.am-tiles {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
	list-style: none; margin: 0; padding: 0;
}
.am-tiles a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	height: 100%;
	padding: 20px 22px;
	border-radius: var(--am-radius);
	border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	color: inherit;
	text-decoration: none;
	font-family: var(--am-font-heading);
	font-weight: var(--am-h-weight);
	font-size: 1.1em;
	line-height: 1.2;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.am-tiles a .am-icon { opacity: .6; transition: transform .25s ease, opacity .2s ease; }
.am-tiles a:hover { background: var(--am-accent); border-color: var(--am-accent); color: var(--am-accent-contrast); }
.am-tiles a:hover .am-icon { opacity: 1; transform: translateX(3px); }
@media (max-width: 900px) {
	.am-discover__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.am-tiles { grid-template-columns: minmax(0, 1fr); }
}

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

.am-site-footer {
	background: var(--am-footer-bg);
	color: var(--am-footer-text);
	padding-top: calc(var(--am-section) * .8);
	font-size: .95em;
}
.am-site-footer a { color: inherit; }
.am-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: 36px calc(var(--am-gap) * 1.6);
	padding-bottom: calc(var(--am-section) * .6);
}
.am-footer__logo .custom-logo { max-height: 64px; width: auto; margin-bottom: 14px; }
.am-footer__name { margin: 0 0 6px; font-family: var(--am-font-heading); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.am-footer__name a { text-decoration: none; color: color-mix(in srgb, var(--am-footer-text) 30%, #fff); }
.am-footer__about { margin: 0; opacity: .85; max-width: 36ch; }
.am-footer__menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.am-footer__menu li { break-inside: avoid; margin-bottom: 10px; }
.am-site-footer .am-footer__menu a, .am-site-footer .widget a { text-decoration: none; }
.am-site-footer .am-footer__menu a:hover, .am-site-footer .widget a:hover { text-decoration: underline; }
.am-site-footer .widget-title { color: color-mix(in srgb, var(--am-footer-text) 30%, #fff); font-size: 1.05rem; }
.am-site-footer .widget li { border-color: color-mix(in srgb, var(--am-footer-text) 15%, transparent); }
.am-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
	padding-block: 22px 26px;
	border-top: 1px solid color-mix(in srgb, var(--am-footer-text) 18%, transparent);
	font-family: var(--am-font-ui); font-size: 14px;
}
.am-footer__copy { margin: 0; opacity: .8; }
.am-footer__inline-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.am-footer__inline-menu a { text-decoration: none; opacity: .8; }

.am-backtotop {
	position: fixed; right: 20px; bottom: 20px; z-index: 900;
	display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--am-primary); color: var(--am-primary-contrast);
	box-shadow: 0 10px 24px -10px rgba(10, 20, 40, .5);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.am-backtotop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.am-backtotop:hover { background: color-mix(in srgb, var(--am-primary) 82%, #000); }

/* ==========================================================================
   Blokstijlen (te kiezen in de editor)
   ========================================================================== */

.wp-block-group.is-style-am-card {
	padding: clamp(20px, 3vw, 36px);
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
}
.wp-block-image.is-style-am-polaroid img {
	padding: 10px 10px 34px;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 16px 36px -18px rgba(0,0,0,.4);
	filter: sepia(.12) contrast(1.02);
	transform: rotate(-1.2deg);
}
.wp-block-image.is-style-am-polaroid figcaption { text-align: center; margin-top: -26px; position: relative; }
.wp-block-gallery.is-style-am-archive { gap: 6px !important; }
.wp-block-gallery.is-style-am-archive figure.wp-block-image img { border-radius: 4px !important; filter: sepia(.08); transition: filter .3s ease; }
.wp-block-gallery.is-style-am-archive figure.wp-block-image:hover img { filter: none; }
.wp-block-quote.is-style-am-big {
	border: 0; padding: 0; text-align: left;
	font-family: var(--am-font-heading); font-weight: var(--am-h-weight);
	font-size: var(--am-h3); line-height: 1.25; letter-spacing: var(--am-h-ls);
}
.wp-block-quote.is-style-am-big::before {
	content: "“"; display: block; height: .55em; margin-bottom: .1em;
	font-size: 3em; line-height: 1; color: var(--am-accent);
}

/* Elementor: thema-typografie aanhouden in teksteditor-widgets */
.elementor-widget-text-editor { font-family: var(--am-font-body); }

/* ==========================================================================
   Beweging beperken
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.am-topbar, .am-site-header, .am-discover, .am-site-footer, .am-backtotop, .am-related, .am-comments-wrap { display: none !important; }
	body { background: #fff; }
}
