/*
 * De MoslimConsumentenVereniging (/dmcv/): their brand inside our page (release 3 December 2026).
 * Loaded only on a page whose content has the class gmr-dmcv (inc/redesign.php) and in the editor.
 *
 * Brand rules (logo_final.eps, converted to assets/img/dmcv/):
 * - The logo (sphere + name, always together) stands on white only, never on a photo or a colour.
 * - Clear space of half the sphere on every side. The sphere is 34.56% of the logo's width
 *   (177.98 of 514.94 points), so the clear space is 17.28% of the logo's width.
 * - Watermark: the sphere enlarged at 75% transparency (opacity 0.25), on white, at most three
 *   quarters visible (here a third or more is off the edge), and it may overlap slightly.
 * - Their typeface: Titillium Web in thin weights (200 for headings, 300 for text); headings
 *   larger and grey, never bold.
 * Everything else on the page (eyebrow, buttons, the form card) keeps the site's own style (#61c3aa).
 *
 * Titillium Web: SIL Open Font License 1.1 (assets/fonts/OFL-titillium-web.txt), self-hosted,
 * weights 200 and 300, latin and latin-ext; a file loads only when a glyph in its range is used.
 */

/* Titillium Web 200 – latin-ext */
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 200;
	font-display: swap;
	src: url('../fonts/titillium-web-200-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Titillium Web 200 – latin */
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 200;
	font-display: swap;
	src: url('../fonts/titillium-web-200-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Titillium Web 300 – latin-ext */
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/titillium-web-300-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Titillium Web 300 – latin */
@font-face {
	font-family: 'Titillium Web';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/titillium-web-300-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:is(.gmr, .editor-styles-wrapper) .gmr-dmcv {
	--dmcv-font: 'Titillium Web', 'Segoe UI', system-ui, sans-serif;
	--dmcv-grey: #6d6e71;   /* headings: 5.1:1 on white */
	--dmcv-text: #3d3d3f;   /* text: 10.9:1 on white */
	--dmcv-logo: min(520px, calc(100vw - 2 * var(--gmr-gutter, 24px)));
	--dmcv-clear: calc(var(--dmcv-logo) * 0.1728);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #fff;
	padding-top: clamp(40px, 5vw, 72px);
}

/* The watermark: the sphere at 25% opacity, on the right, a third of it past the edge. */
.gmr-dmcv::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: clamp(56px, 8vw, 120px);
	right: calc(var(--dmcv-mark) * -0.36);
	--dmcv-mark: clamp(300px, 44vw, 680px);
	width: var(--dmcv-mark);
	aspect-ratio: 1;
	background: url('../img/dmcv/dmcv-bol.svg') center / contain no-repeat;
	opacity: 0.25;
	pointer-events: none;
}

/* The logo with its clear space: nothing else within half a sphere of it (above and below; nothing
 * stands beside it). The figure keeps the column's gutter (the theme's padding-inline) on both sides. */
:is(.gmr, .editor-styles-wrapper) .gmr-dmcv .gmr-dmcv-logo {
	width: calc(var(--dmcv-logo) + 2 * var(--gmr-gutter, 24px));
	max-width: none !important;
	margin-block: var(--dmcv-clear) !important;
	background: #fff;
	background-clip: content-box;
}

.gmr-dmcv .gmr-dmcv-logo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 514.94 / 245.82;
}

:is(.gmr, .editor-styles-wrapper) .gmr-dmcv > :is(p:not(.gmr-eyebrow), h2, h3, ul, ol) {
	position: relative;
	font-family: var(--dmcv-font);
}

:is(.gmr, .editor-styles-wrapper) .gmr-dmcv > p:not(.gmr-eyebrow) {
	font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
	font-weight: 300;
	line-height: 1.65;
	color: var(--dmcv-text);
}

:is(.gmr, .editor-styles-wrapper) .gmr-dmcv > p.gmr-dmcv__lead {
	font-size: clamp(1.3125rem, 1.15rem + 0.7vw, 1.625rem);
	line-height: 1.5;
}

/* Their headings: larger, grey, thin; stronger than the site's .gmr-section > h2 rule. */
:is(.gmr, .editor-styles-wrapper) .gmr-dmcv.gmr-dmcv > h2.gmr-dmcv__h {
	margin-top: clamp(40px, 5vw, 64px);
	margin-bottom: 12px;
	font-family: var(--dmcv-font);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 200;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--dmcv-grey);
}

.gmr-dmcv .gmr-dmcv__h::after {
	content: none;
}

:is(.gmr, .editor-styles-wrapper) .gmr-dmcv :is(strong, b) {
	font-weight: 300;
}

/* The eyebrow stays in the site's style, with the logo's clear space under it. */
:is(.gmr, .editor-styles-wrapper) .gmr-dmcv > .gmr-eyebrow {
	margin-bottom: 0 !important;
}

@media (max-width: 600px) {
	/* Phones: under the logo's clear space, behind the last paragraphs. */
	.gmr-dmcv::before {
		top: auto;
		bottom: 24px;
		--dmcv-mark: 280px;
		right: -112px;
	}
}

@media print {
	.gmr-dmcv::before {
		display: none;
	}
}
