/* Bricks Blocks – the page of the newsletter's "Vraag van de maand" (Bricks_Blocks_Mail_Poll).
 *
 * The Scout-In27 house style: a bordeaux band with the logo, the pillar colours as a thin
 * line, then one column on warm white. wp_head() may bring other plugins' CSS (not the
 * theme's), so every rule that matters sets its value itself, with two classes to beat it.
 *
 * The fonts are the bundled ones of the signup page (modules/newsletter/assets/fonts,
 * SIL Open Font License): fetching them from Google would send every visitor's IP
 * address there before any cookie choice.
 */

@font-face {
	font-family: "Geologica";
	src: url("../../newsletter/assets/fonts/geologica.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Poppins";
	src: url("../../newsletter/assets/fonts/poppins-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.bb-poll-page [hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	background: #fbf1ef;
}

html body.bb-poll-page {
	margin: 0;
	padding: 0;
	background: #fbf1ef;
	color: #222222;
	font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.bb-poll-page .bb-poll__top {
	padding: 16px 24px;
	background: #5f112b;
	text-align: center;
}

.bb-poll-page .bb-poll__home {
	display: inline-block;
	color: #ffffff;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.bb-poll-page .bb-poll__home img {
	display: block;
	width: auto;
	height: 52px;
	margin: 0;
	border: 0;
}

.bb-poll-page .bb-poll__strip {
	height: 6px;
}

.bb-poll-page .bb-poll {
	box-sizing: border-box;
	max-width: 600px;
	margin: 0 auto;
	padding: 36px max(24px, env(safe-area-inset-right)) 48px max(24px, env(safe-area-inset-left));
	overflow-wrap: break-word;
}

.bb-poll-page .bb-poll__eyebrow {
	margin: 0 0 8px;
	padding: 0;
	color: #4e2567;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
}

.bb-poll-page .bb-poll__h1 {
	margin: 0 0 20px;
	padding: 0;
	color: #5f112b;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-size: clamp(24px, 6vw, 32px);
	font-weight: 900;
	letter-spacing: normal;
	line-height: 1.15;
	text-transform: none;
	text-wrap: balance;
}

.bb-poll-page .bb-poll__h2 {
	margin: 0 0 12px;
	padding: 0;
	color: #5f112b;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.bb-poll-page .bb-poll__status p {
	margin: 0 0 6px;
	padding: 0;
	color: #222222;
	font: inherit;
}

.bb-poll-page .bb-poll__status .bb-poll__thanks {
	color: #2f6b3f;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.bb-poll-page .bb-poll__status .bb-poll__wait {
	color: #5a5a5a;
}

.bb-poll-page .bb-poll__status {
	margin: 0 0 24px;
}

/* ---------- Results ---------- */
.bb-poll-page [data-poll-result]:not(:empty) {
	margin: 0 0 28px;
	padding: 20px 22px;
	border: 1px solid #e8dcd9;
	border-radius: 12px;
	background: #ffffff;
}

.bb-poll-page .bb-poll__results {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-poll-page .bb-poll__result {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	margin: 0 0 14px;
	padding: 0;
}

.bb-poll-page .bb-poll__label {
	font-size: 15px;
	line-height: 1.4;
}

.bb-poll-page .bb-poll__label em {
	color: #5a5a5a;
	font-style: normal;
	font-size: 13px;
}

.bb-poll-page .bb-poll__pct {
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-weight: 700;
	text-align: right;
}

.bb-poll-page .bb-poll__track {
	grid-column: 1 / -1;
	display: block;
	height: 10px;
	border-radius: 999px;
	background: #f2e6e3;
	overflow: hidden;
}

.bb-poll-page .bb-poll__bar {
	display: block;
	height: 100%;
	min-width: 2px;
	border-radius: 999px;
	background: #c05f6e;
}

.bb-poll-page .bb-poll__result.is-mine .bb-poll__bar {
	background: #5f112b;
}

.bb-poll-page .bb-poll__result.is-mine .bb-poll__label {
	font-weight: 700;
}

.bb-poll-page .bb-poll__total {
	margin: 4px 0 0;
	color: #5a5a5a;
	font-size: 14px;
}

/* ---------- The form ---------- */
.bb-poll-page .bb-poll__form {
	margin: 0 0 28px;
}

.bb-poll-page .bb-poll__label-field {
	display: block;
	margin: 0 0 6px;
	line-height: 1.4;
	color: #222222;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
}

.bb-poll-page .bb-poll__label-field span {
	color: #5a5a5a;
	font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 400;
}

/* 16px keeps iOS from zooming in when the field gets focus. */
.bb-poll-page .bb-poll__form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d9c9c5;
	border-radius: 10px;
	background: #ffffff;
	color: #222222;
	font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	resize: vertical;
}

.bb-poll-page .bb-poll__hint {
	margin: 6px 0 12px;
	color: #5a5a5a;
	font-size: 13px;
	line-height: 1.4;
}

.bb-poll-page .bb-poll__button {
	display: inline-block;
	min-height: 48px;
	margin: 4px 0 0;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: #2f8a6c;
	color: #ffffff;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}

.bb-poll-page .bb-poll__button:hover,
.bb-poll-page .bb-poll__button:focus {
	background: #22684f;
	color: #ffffff;
}

.bb-poll-page .bb-poll__button:disabled {
	opacity: 0.6;
	cursor: default;
}

.bb-poll-page .bb-poll__form textarea:focus-visible,
.bb-poll-page .bb-poll__button:focus-visible,
.bb-poll-page a:focus-visible {
	outline: 3px solid #5f112b;
	outline-offset: 2px;
}

.bb-poll-page .bb-poll__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Below ---------- */
.bb-poll-page .bb-poll__change {
	margin: 0 0 24px;
	font-size: 14px;
}

.bb-poll-page .bb-poll__change p {
	margin: 0 0 4px;
	color: #5a5a5a;
}

.bb-poll-page .bb-poll__change ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-poll-page .bb-poll__change li {
	display: inline;
	margin: 0;
}

.bb-poll-page .bb-poll__change li + li::before {
	content: " · ";
	color: #a08f8b;
}

.bb-poll-page a {
	color: #22684f;
	text-decoration: underline;
}

.bb-poll-page .bb-poll__note {
	margin: 0 0 16px;
	color: #5a5a5a;
	font-size: 13px;
	line-height: 1.5;
}

.bb-poll-page .bb-poll__back {
	margin: 0;
	font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
	font-weight: 600;
}

/* wp_footer() may print the site's Bricks popups, and the theme CSS that hides them isn't loaded here. */
.bb-poll-page .brx-popup {
	display: none !important;
}
