/*
Theme Name: Bos Coöperatie
Theme URI: https://example.org/
Author: Bos Coöperatie
Description: Blokthema voor een burgercoöperatie die grond koopt en er nieuw bos op aanlegt. Werkt samen met de plugin Coöperatie Aandelen voor de verkoop van aandelen.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bos-cooperatie
*/

/* ------------------------------------------------------------------
   Kleine aanvullingen op theme.json. Kleuren en lettertypes komen uit
   theme.json, zodat ze in de Site-editor aan te passen zijn.
   ------------------------------------------------------------------ */

:root {
	--bos-radius: 4px;
	--bos-rule: 1px solid color-mix(in srgb, var(--wp--preset--color--spruce) 18%, transparent);
}

/* Secties op volle breedte sluiten naadloos op elkaar en op de voet aan. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Toetsenbordfocus: altijd zichtbaar, in de accentkleur. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--leaf);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Sla-over-link voor schermlezers en toetsenbord. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--spruce);
}

/* Kop: de menuknop "Word coöperant" krijgt de vorm van een knop. */
.wp-block-navigation .wp-block-navigation-item.is-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--moss);
	color: var(--wp--preset--color--white);
	border-radius: var(--bos-radius);
	padding: 0.55rem 1rem;
	text-decoration: none;
	font-weight: 700;
}
.wp-block-navigation .wp-block-navigation-item.is-cta > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--spruce);
}
.wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.wp-block-navigation .is-cta.current-menu-item > .wp-block-navigation-item__content {
	text-decoration: none;
}

/* Knoppen: de omlijnde variant. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
}

/* Stappen: het groeiplaatje boven elke stap. */
.bos-stappen .bos-stap figure {
	margin-bottom: 0.75rem;
}
.bos-stappen .bos-stap img {
	width: 100%;
	height: auto;
	display: block;
}
@media (max-width: 781px) {
	.bos-stappen .bos-stap figure {
		max-width: 15rem;
	}
}
.bos-stap-nummer {
	font-family: var(--wp--preset--font-family--alegreya);
	font-weight: 700;
	color: var(--wp--preset--color--moss);
}

/* Vergelijkingstabel. */
.bos-vergelijking table {
	border-collapse: collapse;
	width: 100%;
	background: var(--wp--preset--color--white);
}
.bos-vergelijking th,
.bos-vergelijking td {
	border: 0;
	border-bottom: var(--bos-rule);
	padding: 0.85rem 0.75rem;
	text-align: left;
	vertical-align: top;
}
.bos-vergelijking thead th {
	font-family: var(--wp--preset--font-family--alegreya);
	font-weight: 700;
	color: var(--wp--preset--color--spruce);
	border-bottom: 2px solid var(--wp--preset--color--spruce);
}
.bos-vergelijking td:last-child,
.bos-vergelijking th:last-child {
	background: color-mix(in srgb, var(--wp--preset--color--leaf) 22%, var(--wp--preset--color--white));
	font-weight: 700;
	color: var(--wp--preset--color--spruce);
}
@media (max-width: 640px) {
	.bos-vergelijking th,
	.bos-vergelijking td {
		padding: 0.6rem 0.4rem;
		font-size: 0.95rem;
	}
}

/* Feitjes in de donkere band (prijs, minimum, maximum). */
.bos-feiten .bos-feit-waarde {
	font-family: var(--wp--preset--font-family--alegreya);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	margin: 0;
}
.bos-feiten .bos-feit-label {
	margin: 0;
	color: var(--wp--preset--color--leaf);
}

/* Kleine wettelijke vermelding. */
.bos-kleine-lettertjes,
.coop-aanbod-vermelding {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* Vragen en antwoorden. */
.wp-block-details {
	border-bottom: var(--bos-rule);
	padding: 1rem 0;
}
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--alegreya);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	color: var(--wp--preset--color--spruce);
	list-style-position: outside;
	margin-left: 1.1rem;
}
.wp-block-details[open] summary {
	margin-bottom: 0.75rem;
}
.wp-block-details > :not(summary) {
	margin-left: 1.1rem;
}

/* Projectenlijst: rij met foto en tekst. */
.bos-projecten .wp-block-post {
	border-top: var(--bos-rule);
	padding-top: var(--wp--preset--spacing--30);
}
.bos-projecten .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Voet. */
.bos-voet a {
	color: inherit;
}
.bos-voet .wp-block-site-title a {
	text-decoration: none;
}

/* Afbeeldingen in de inhoud. */
.wp-block-image img {
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}
