/*
Theme Name: Villa Mokum
Description: Mobile-first block theme for villamokum.nl in the "Buren" huisstijl (see HUISSTIJL.md in the repository). Needs the "Villa Mokum – site functions" plugin.
Version: 0.7.0
Requires at least: 6.6
Requires PHP: 8.1
Author: VvE Villa Mokum
License: GPL-2.0-or-later
Text Domain: villamokum
*/

/* Tokens ------------------------------------------------------------------ */
:root {
	--vm-ink: var(--wp--preset--color--ink);
	--vm-muted: var(--wp--preset--color--muted);
	--vm-soft: var(--wp--preset--color--soft);
	--vm-line: var(--wp--preset--color--line);
	--vm-pink: var(--wp--preset--color--pink);
	--vm-pink-dk: var(--wp--preset--color--pink-dark);
	--vm-sticker: var(--wp--preset--color--sticker);
	--vm-r: 24px;
	--vm-skyline-h: 84px;
}
@media (min-width: 48rem) { :root { --vm-skyline-h: 120px; } }

/* Category colours and icons (classes added by the plugin, keyed on the Dutch slug) */
.vm-tile--storing-en-contact, .vm-cat-storing-en-contact { --c: var(--wp--preset--color--pink); --t: #fff; --icon: url("assets/images/icon-wrench.svg"); }
.vm-tile--sleutels-en-toegang, .vm-cat-sleutels-en-toegang { --c: var(--wp--preset--color--saffron); --t: var(--vm-ink); --icon: url("assets/images/icon-key.svg"); --tint: rgba(0, 0, 0, .09); }
.vm-tile--wonen, .vm-cat-wonen { --c: var(--wp--preset--color--teal); --t: #fff; --icon: url("assets/images/icon-home.svg"); }
.vm-tile--gebouw, .vm-cat-gebouw { --c: var(--wp--preset--color--blue); --t: #fff; --icon: url("assets/images/icon-building.svg"); }
.vm-tile--de-vve, .vm-cat-de-vve { --c: var(--wp--preset--color--violet); --t: #fff; --icon: url("assets/images/icon-people.svg"); }

/* Basics ------------------------------------------------------------------ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* WordPress shows the skip link on focus with clip-path only; undo our clip as well. */
.skip-link.screen-reader-text:focus { clip: auto; overflow: visible; }
/* Links: no underline; semibold so they differ from the text around them without colour alone (WCAG 1.4.1); a slightly lighter colour on hover (theme.json). Low specificity, so pills, tiles and buttons keep their own look. */
body a { text-decoration: none; font-weight: 600; }
body :where(h1, h2, h3, h4, h5, h6) a { font-weight: inherit; }
/* Keyboard focus: ink ring plus a yellow halo, visible on white, on every category colour and on the navy footer. The ring follows the element's own shape (pills stay round). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--vm-ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--vm-sticker);
}
.vm-footer a:focus-visible { outline-color: #fff; }
.vm-main { padding-top: 1.5rem; }

/* Header ------------------------------------------------------------------ */
.vm-header { padding-block: 1.1rem .75rem; }
.vm-header__bar { gap: .75rem; }
.vm-header .wp-block-site-title { margin: 0; line-height: 1.15; font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.vm-header .wp-block-site-title a { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.vm-header .wp-block-site-title a::before {
	content: ""; flex: none; width: 4.75rem; height: 4.75rem; border-radius: 20px;
	background: url("assets/images/villamokum-logo-vierkant.svg") center / contain no-repeat;
}
/* Three crosses between Villa and Mokum, same proportions as the wide logo. */
.vm-crosses { height: .94em; width: .282em; margin-right: -.022em; vertical-align: -.12em; fill: none; stroke: #d4141c; stroke-width: 5; }
.vm-kerst .vm-header .wp-block-site-title a::before { background-image: url("assets/images/villamokum-logo-kerst-vierkant.svg"); }
.vm-languages { margin: 0; flex: none; font-size: .95rem; font-weight: 600; display: flex; gap: .15rem; background: var(--vm-soft); border-radius: 999px; padding: .2rem; }
.vm-languages [aria-hidden] { display: none; }
/* Same height and text size as the category pills: .2rem frame + .35rem padding = their .55rem. */
.vm-languages > * { padding: .35rem .8rem; border-radius: 999px; line-height: 1.25; }
.vm-languages [aria-current] { background: var(--vm-ink); color: #fff; }
.vm-languages a { color: var(--vm-ink); text-decoration: none; font-weight: inherit; }
.vm-languages a:hover { background: #fff; }

.vm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.vm-nav a { display: inline-block; font-weight: 400; text-decoration: none; border-radius: 999px; padding: .55rem 1.15rem; font-size: .95rem; line-height: 1.25; }
.vm-header .vm-nav { display: none; }
@media (min-width: 48rem) {
	.vm-header .vm-nav { display: block; padding-top: var(--wp--style--block-gap, 1.25rem); }
	.vm-header .vm-nav a { background: var(--vm-soft); color: var(--vm-ink); }
	.vm-header .vm-nav a:hover { background: var(--vm-ink); color: #fff; }
}

/* Menu button, phones only: from 48rem up the pills above take over. <details>, no JavaScript. */
.vm-header__bar { position: relative; }
.vm-header__bar .wp-block-site-title { margin-right: auto; }
.vm-menu { flex: none; }
.vm-menu summary { list-style: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--vm-ink); display: grid; place-items: center; cursor: pointer; }
.vm-menu summary::-webkit-details-marker { display: none; }
.vm-menu__icon, .vm-menu__icon::before, .vm-menu__icon::after { display: block; width: 1.15rem; height: 3px; border-radius: 3px; background: var(--wp--preset--color--base); }
.vm-menu__icon { position: relative; }
.vm-menu__icon::before, .vm-menu__icon::after { content: ""; position: absolute; left: 0; top: -6px; }
.vm-menu__icon::after { top: 6px; }
.vm-menu[open] .vm-menu__icon { background: transparent; }
.vm-menu[open] .vm-menu__icon::before { top: 0; transform: rotate(45deg); }
.vm-menu[open] .vm-menu__icon::after { top: 0; transform: rotate(-45deg); }
.vm-menu__panel { position: absolute; z-index: 20; top: calc(100% + .5rem); left: 0; right: 0; background: var(--wp--preset--color--base); border: 3px solid var(--vm-ink); border-radius: var(--vm-r); box-shadow: 0 6px 0 var(--vm-ink); padding: .7rem; }
.vm-menu__panel .vm-search { margin: 0 0 .6rem; max-width: none; }
/* The panel is narrower than the page: a little less padding, so the whole placeholder shows. */
.vm-menu__panel .vm-search input { font-size: 1rem; padding-inline: .4rem .1rem; }
.vm-menu__panel .vm-search button { padding-inline: 1rem; }
.vm-menu ul { list-style: none; margin: 0; padding: 0; }
.vm-menu li a { display: flex; align-items: center; gap: .8rem; min-height: 2.75rem; padding: .35rem .7rem; border-radius: 14px; color: var(--vm-ink); font-size: 1.1rem; line-height: 1.25; }
.vm-menu li a::before { content: ""; flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: var(--c, transparent); }
.vm-menu li:not([class]) a::before { display: none; }
.vm-menu li a:hover { background: var(--vm-soft); color: var(--vm-ink); }
@media (min-width: 48rem) { .vm-menu { display: none; } }

/* Home -------------------------------------------------------------------- */
.vm-intro p { font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 700; line-height: 1.22; margin: 1rem 0 1.25rem; max-width: 26ch; }

.vm-search { display: flex; gap: .35rem; background: #fff; border: 3px solid var(--vm-ink); border-radius: 999px; padding: .35rem; max-width: 36rem; }
.vm-search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: .65rem 1.1rem; background: transparent; border-radius: 999px; color: var(--vm-ink); }
.vm-search input::placeholder { color: var(--vm-muted); }
.vm-search button { flex: none; border: 0; border-radius: 999px; background: var(--vm-ink); color: #fff; font: inherit; font-weight: 600; padding: .65rem 1.4rem; cursor: pointer; }
.vm-search button:hover { background: var(--vm-pink); }
/* Large phones: smaller field text next to the button, so the whole placeholder shows. */
@media (max-width: 36rem) {
	.vm-search input { font-size: 1rem; padding-inline: .8rem .3rem; }
	.vm-search input::placeholder { font-size: .95rem; }
}
@media (max-width: 30rem) {
	.vm-header .wp-block-site-title { font-size: clamp(1.15rem, 6vw, 1.35rem); }
	.vm-header .wp-block-site-title a::before { width: clamp(3rem, 16vw, 3.75rem); height: clamp(3rem, 16vw, 3.75rem); border-radius: 16px; }
	.vm-languages > * { padding-inline: .65rem; }
	.vm-header__bar { gap: .5rem; }
	/* The search wraps: field on the first row, button full width below, so the whole placeholder shows. Font stays 16px so iOS does not zoom in. */
	.vm-search { flex-wrap: wrap; border-radius: 24px; }
	.vm-search input { flex: 1 1 100%; padding-inline: .7rem; }
	.vm-search input::placeholder { font-size: clamp(.75rem, 4vw, 1rem); } /* only the placeholder shrinks on the narrowest phones */
	.vm-search button { flex: 1 1 100%; }
}

.vm-emergency {
	background: var(--vm-sticker); border: 3px solid var(--vm-ink); border-radius: var(--vm-r);
	padding: 1.4rem 1.75rem 1.5rem; box-shadow: 6px 6px 0 var(--vm-ink); transform: rotate(-1deg);
	max-width: 38rem; margin-block: 2rem 2.25rem;
}
/* Home: intro and search next to the emergency sticker, on the same two columns as the tiles; below each other on phones and tablets. Screen only: print shows just the sticker. */
.vm-top .vm-emergency { margin-inline: .4rem; }
@media screen and (min-width: 64rem) {
	.vm-top { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.1rem; align-items: center; margin-block: 1.5rem 2.25rem; }
	.vm-top__intro { padding-right: .75rem; }
	.vm-top .vm-intro p { margin-top: 0; }
	.vm-top .vm-emergency { max-width: none; margin-block: 0; }
}
/* Just wide enough for two columns: smaller field text, so the whole placeholder shows. */
@media screen and (min-width: 64rem) and (max-width: 74rem) { .vm-top .vm-search input { font-size: 1rem; padding-inline: 1rem .5rem; } }
.vm-main > .vm-search, .vm-main > .vm-anim { margin-left: max(0px, calc((100% - 46rem) / 2)) !important; margin-right: auto !important; }
.vm-emergency h2 { margin: 0 0 .5rem; font-size: 1.45rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; line-height: 1.2; }
.vm-emergency h2::before { content: "!"; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--vm-pink); color: #fff; font-size: 1.15rem; flex: none; }
.vm-emergency ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.vm-emergency a { color: var(--vm-ink); font-weight: 700; }
.vm-emergency a[href^="tel"] { white-space: nowrap; }
/* Topic links: rows with a line above and a round arrow, like the topic cards; only the phone numbers are bold. */
.vm-emergency li:has(> a[href^="http"]) { border-top: 2px solid var(--vm-ink); padding-top: .4rem; margin-top: .15rem; }
.vm-emergency a[href^="http"] { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 400; }
.vm-emergency a[href^="http"]::after { content: "→"; content: "→" / ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; }
.vm-emergency a:hover { color: var(--vm-muted); }
@media (prefers-reduced-motion: reduce) { .vm-emergency { transform: none; } }

.vm-tiles { display: grid; gap: 1.1rem; }
/* Two columns; each tile is as tall as its topics, so a long list leaves no empty space next to it. Read down the left column, then the right. */
@media (min-width: 40rem) {
	.vm-tiles { display: block; columns: 2; column-gap: 1.1rem; margin-bottom: -1.1rem; }
	.vm-tile { break-inside: avoid; margin-bottom: 1.1rem; }
}
.vm-tile { border-radius: var(--vm-r); padding: 1.5rem 1.5rem 1.6rem; background: var(--c, var(--vm-soft)); color: var(--t, var(--vm-ink)); }
.vm-tile h2 { margin: 0 0 .9rem; font-size: 1.25rem; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: .75rem; }
.vm-tile h2::before { content: ""; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 15px; background: var(--tint, rgba(255, 255, 255, .2)) var(--icon, none) center / 1.45rem no-repeat; }
.vm-tile h2 a { color: inherit; text-decoration: none; }
.vm-tile h2 a:hover { opacity: .8; }
.vm-tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.vm-tile ul:empty { display: none; }
.vm-tile li a { display: inline-block; font-weight: 400; background: var(--tint, rgba(0, 0, 0, .15)); color: inherit; text-decoration: none; border-radius: 999px; padding: .45rem 1rem; font-size: .92rem; line-height: 1.3; }
.vm-tile li a:hover { background: #fff; color: var(--vm-ink); }

/* Buttons ----------------------------------------------------------------- */
.vm-button {
	display: inline-block; background: var(--vm-pink); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
	padding: .95rem 1.75rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 4px 0 var(--vm-pink-dk);
}
.vm-button:hover, .vm-button:focus-visible { background: var(--vm-pink-dk); color: #fff; }
.vm-report { margin-block: 2rem; }

/* Colour band (topic and category pages) ------------------------------------ */
.vm-band { background: var(--c, var(--vm-soft)); color: var(--t, var(--vm-ink)); border-radius: 0 0 var(--vm-r) var(--vm-r); padding-block: 1.4rem 2.25rem; }
.vm-band > * { margin-block: 0; }
.vm-band > * + * { margin-block-start: .6rem; }
.vm-band h1 { margin-top: .8rem; overflow-wrap: anywhere; hyphens: auto; } /* long words break instead of running off a phone screen */
.vm-band .wp-block-query-title { display: flex; align-items: center; gap: .9rem; margin-top: .4rem; }
.vm-band .wp-block-query-title::before { content: ""; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 17px; background: var(--tint, rgba(255, 255, 255, .22)) var(--icon, none) center / 1.75rem no-repeat; }
@media (max-width: 30rem) {
	.vm-band .wp-block-query-title { gap: .7rem; }
	.vm-band .wp-block-query-title::before { width: 2.5rem; height: 2.5rem; border-radius: 13px; background-size: 1.4rem; }
}
.vm-band .wp-block-term-description p { margin: 0; }
.vm-breadcrumb a { display: inline-block; color: inherit; font-weight: 600; text-decoration: none; background: rgba(0, 0, 0, .12); border-radius: 999px; padding: .45rem 1.05rem; font-size: .9rem; line-height: 1.2; }
.vm-breadcrumb a::before { content: "← "; }
.vm-breadcrumb a:hover { background: #fff; color: var(--vm-ink); }
.vm-summary p { margin: 0; font-size: 1.2rem; }

/* Topic content ------------------------------------------------------------ */
.wp-block-post-content h2 { margin-block: 2.25rem .6rem; }
.wp-block-post-content ul.wp-block-list { padding-left: 1.3rem; }
.wp-block-post-content ul.wp-block-list li { margin: .5rem 0; padding-left: .2rem; }
.wp-block-post-content ul.wp-block-list li::marker { color: var(--vm-pink); }
.vm-topic-contacts, .vm-related { margin-top: 2rem; }
.vm-contacts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.vm-contact { background: var(--vm-soft); border-radius: var(--vm-r); padding: 1.35rem 1.5rem 1.35rem 5.1rem; position: relative; margin-bottom: 1rem; }
.vm-contacts .vm-contact { margin-bottom: 0; }
.vm-contact::before { content: ""; position: absolute; left: 1.35rem; top: 1.35rem; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--wp--preset--color--teal) url("assets/images/icon-person.svg") center / 1.35rem no-repeat; }
.vm-contact p { margin: 0 0 .3rem; }
.vm-contact { overflow-wrap: anywhere; } /* long e-mail addresses and links break inside the card */
.vm-contact__org, .vm-contact__notes { color: var(--vm-muted); }
.vm-contact__details { list-style: none; margin: 0; padding: 0; }
.vm-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.vm-related a { display: inline-block; font-weight: 400; background: var(--vm-soft); color: var(--vm-ink); border-radius: 999px; padding: .6rem 1.2rem; text-decoration: none; line-height: 1.25; }
.vm-related a:hover { background: var(--vm-ink); color: #fff; }
.vm-suggest, .vm-reviewed { font-size: var(--wp--preset--font-size--small); color: var(--vm-muted); }
.vm-suggest { margin-top: 2rem; }

/* Topic lists (category, search) ------------------------------------------- */
.vm-list .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.vm-list .wp-block-post { position: relative; border: 2px solid var(--vm-line); border-radius: var(--vm-r); padding: 1.15rem 4rem 1.2rem 1.4rem; margin: 0; }
.vm-list .wp-block-post:hover, .vm-list .wp-block-post:focus-within { border-color: var(--vm-ink); }
.vm-list .wp-block-post::after { content: "→"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--vm-soft); display: grid; place-items: center; font-weight: 700; }
.vm-list .wp-block-post-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.vm-list .wp-block-post-title a { color: var(--vm-ink); text-decoration: none; }
.vm-list .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--vm-r); }
.vm-list .wp-block-post-excerpt { margin: .3rem 0 0; }
.vm-list .wp-block-post-excerpt__excerpt { margin: 0; color: var(--vm-muted); }
.vm-empty { max-width: 40rem; }
.vm-empty__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.vm-main > .vm-empty__links { margin-block: 0 1.75rem; } /* above the topics of "Storing melden & contact" */
.vm-tile__empty { margin: 0; opacity: .85; font-size: .95rem; }
/* Category pages: topics in as many columns as fit (1 on phones, 2 on tablets, 3 on desktop). */
.tax-vm_category .vm-list .wp-block-post-template { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.vm-main > .vm-search { margin-bottom: 1.5rem; }
.vm-search-title { margin: 0 0 1rem; font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.vm-search-count { margin: 0 0 1rem; color: var(--vm-muted); }

/* Error pages (404; the static pages in errors/ carry a copy of the .vm-anim rules) ---- */
.vm-anim { position: relative; display: flex; flex-direction: column; max-width: 40rem; gap: .6rem; }
.vm-anim img { display: block; width: 100%; height: auto; border-radius: var(--vm-r); }
.vm-anim input { position: absolute; opacity: 0; }
.vm-anim label { order: 2; align-self: flex-start; background: #f0f2f9; color: #1f2340; border-radius: 999px; padding: .45rem 1rem; font-size: .92rem; line-height: 1.3; cursor: pointer; }
.vm-anim input:checked + label { background: #1f2340; color: #fff; }
.vm-anim input:focus-visible + label { outline: 3px solid #1f2340; outline-offset: 2px; box-shadow: 0 0 0 7px #ffe45c; }
.vm-anim .vm-anim__still, .vm-anim input:checked ~ .vm-anim__gif { display: none; }
.vm-anim input:checked ~ .vm-anim__still { display: block; }
@media (prefers-reduced-motion: reduce) { .vm-anim label, .vm-anim input { display: none; } }
/* The category pills are already in the header from 48rem up; phones have no header menu. */
@media (min-width: 48rem) { .error404 .vm-main .vm-nav { display: none; } }
.error404 .vm-main .vm-nav a { background: var(--vm-soft); color: var(--vm-ink); }

/* Report form -------------------------------------------------------------- */
.vm-notice { border-radius: 18px; padding: 1rem 1.25rem; }
.vm-notice--warn { background: var(--vm-sticker); border: 2px solid var(--vm-ink); }
.vm-notice--warn a:hover { color: var(--vm-ink); } /* the usual lighter blue is only 4.0:1 on yellow */
.vm-notice--error { background: var(--wp--preset--color--error-bg); border: 2px solid var(--vm-pink); color: var(--vm-pink-dk); font-weight: 600; }
.vm-notice--error p { margin: 0; }
.vm-notice--error ul { margin: .5rem 0 0; padding-left: 1.3rem; }
.vm-notice--error a { color: inherit; }
.vm-notice--error a:hover { color: var(--vm-pink); }
.vm-notice--error:focus { outline: 3px solid var(--vm-ink); outline-offset: 2px; }
.vm-notice--ok { background: var(--wp--preset--color--ok-bg); border: 2px solid var(--wp--preset--color--ok); }
.vm-form { margin-top: 1.5rem; max-width: 40rem; }
.vm-field { margin: 0 0 1.1rem; }
.vm-field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.vm-req { font-weight: 400; color: var(--vm-muted); font-size: .9em; }
.vm-form input[type=text], .vm-form input[type=email], .vm-form input[type=tel], .vm-form select, .vm-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--vm-ink); padding: .8rem 1.1rem; border: 2px solid #8a8fa8; border-radius: 16px; background: #fff;
}
.vm-form input:focus, .vm-form select:focus, .vm-form textarea:focus { border-color: var(--vm-ink); }
.vm-form input[type=file] { font: inherit; font-size: .95rem; max-width: 100%; }
.vm-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; background: var(--vm-soft); color: var(--vm-ink); padding: .55rem 1.1rem; margin-right: .75rem; cursor: pointer; }
/* Checkbox left of the sentence; the sentence (with its link) flows as normal text. */
.vm-field--check label { font-weight: 400; display: block; position: relative; padding-left: 2rem; }
.vm-field--check input { position: absolute; left: 0; top: .2rem; margin: 0; width: 1.2rem; height: 1.2rem; accent-color: var(--vm-pink); }
[aria-invalid=true] { border-color: var(--vm-pink) !important; border-width: 3px !important; }
.vm-field__error { display: inline-block; margin-top: .45rem; background: var(--wp--preset--color--error-bg); color: var(--vm-pink-dk); font-weight: 600; font-size: .92rem; border-radius: 999px; padding: .3rem .9rem; }
.vm-hp { position: absolute; left: -9999px; }

/* Footer with skyline ------------------------------------------------------ */
/* On short pages the footer sits at the bottom of the window (the admin bar, when logged in, is subtracted). */
.wp-site-blocks { display: flex; flex-direction: column; min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > footer { margin-top: auto; }
.vm-footer { position: relative; background: var(--vm-ink); color: #e4e6f3; margin-top: calc(3.5rem + var(--vm-skyline-h)); padding-block: 1.75rem 2.75rem; }
.vm-footer::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--vm-skyline-h);
	background: url("assets/images/skyline.svg") repeat-x left bottom / calc(var(--vm-skyline-h) * 10) var(--vm-skyline-h);
}
.vm-footer a { color: #fff; }
.vm-footer a:hover { color: #c9cde3; }
.vm-footer__links { margin: 0; font-size: .95rem; }

/* Print -------------------------------------------------------------------- */
/* For on the fridge: the home page prints only the emergency block, "Wie bel ik?" the contact cards. Borders instead of backgrounds, because browsers leave backgrounds out. */
@media print {
	@page { size: A4; margin: 1.5cm; }
	html { font-size: 12px; }
	body, .vm-band, .vm-footer { background: #fff; color: #000; }
	.wp-site-blocks { display: block; min-height: 0; }
	.skip-link, .vm-nav, .vm-menu, .vm-languages, .vm-search, .vm-tiles, .vm-intro, .vm-breadcrumb, .vm-report, .vm-related, .vm-suggest, .vm-form, .vm-anim, .vm-empty__links, .vm-footer::before, .vm-contact::before { display: none !important; }
	.vm-header { padding-block: 0 .75rem; }
	.vm-main > *, .vm-main .wp-block-post-content > *, .vm-band > * { max-width: none !important; }
	.vm-main { padding-top: 0; }
	h1 { font-size: 2.2rem !important; margin-block: .5rem !important; }
	.wp-block-post-content { margin-top: .5rem; }
	.wp-block-post-content h2 { margin-block: 1.25rem .4rem; }
	.vm-header .wp-block-site-title a::before { width: 3.5rem; height: 3.5rem; border-radius: 12px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.vm-band { padding-block: 0 .5rem; border-radius: 0; }
	.vm-band .wp-block-query-title::before { display: none; }
	a { color: inherit !important; }
	a[href^="tel:"] { white-space: nowrap; }
	.vm-emergency { max-width: none; margin-block: 1rem; background: #fff; box-shadow: none; transform: none; font-size: 1.5rem; }
	.vm-emergency h2 { font-size: 2rem; }
	.vm-emergency h2::before { background: #fff; color: #000; border: 2px solid #000; }
	.vm-emergency li:has(> a[href^="http"]) { border: 0; padding: 0; margin: 0; }
	.vm-emergency a[href^="http"] { display: inline; }
	.vm-emergency a[href^="http"]::after { content: " (" attr(href) ")"; display: inline; background: none; font-size: 1rem; font-weight: 400; }
	.vm-contacts { grid-template-columns: 1fr 1fr; gap: .75rem; }
	.vm-contact { background: #fff; border: 2px solid #000; border-radius: 14px; padding: .8rem 1rem; }
	.vm-contact__org, .vm-contact__notes, .vm-reviewed { color: #000; }
	.vm-contact a[href^="tel:"] { font-size: 1.5rem; font-weight: 800; }
	.vm-emergency, .vm-contact, .vm-list .wp-block-post { break-inside: avoid; }
	h1, h2, h3 { break-after: avoid; }
	.vm-footer { margin-top: 1.5rem; padding-block: .5rem; border-top: 1px solid #000; }
	.vm-footer__links a { display: none; }
	.vm-footer__links::after { content: "www.villamokum.nl"; }
}
