/* Isabella NRC – Heading, Paragraph and Buttons blocks placed between homepage sections.
   Same look on the live page (.home main > section > …) and in the editor (.is-root-container.home > …).
   Alignment chosen in the block toolbar still wins (rules for alignment use :where). */

/* Width and centring */
:is(.home main > section, .is-root-container.home) > .wp-block-heading,
:is(.home main > section, .is-root-container.home) > p,
:is(.home main > section, .is-root-container.home) > .wp-block-buttons {
	box-sizing: border-box !important;
	max-width: 880px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}
:where(.home main > section, .is-root-container.home) > :where(.wp-block-heading, p) { text-align: center; }

/* Heading */
:is(.home main > section, .is-root-container.home) > .wp-block-heading {
	color: #1c293a !important;
	font-family: "Isabella Display", serif !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
	margin-top: 40px !important;
	margin-bottom: 30px !important;
}

/* Paragraphs */
:is(.home main > section, .is-root-container.home) > p {
	color: #4d5563 !important;
	font-family: "Isabella Sans", sans-serif !important;
	font-size: clamp(15px, 1.5vw, 17px) !important;
	font-weight: 500 !important;
	line-height: 160% !important;
	letter-spacing: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 24px !important;
}

/* Buttons */
:is(.home main > section, .is-root-container.home) > .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 40px !important;
	margin-bottom: 80px !important;
}
:where(.home main > section, .is-root-container.home) > .wp-block-buttons:where(:not([class*="is-content-justification-"])) { justify-content: center; }
:is(.home main > section, .is-root-container.home) > .wp-block-buttons .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border: 1px solid #1c293a;
	border-radius: 0;
	background: #1c293a;
	color: #fffbf1;
	font-family: "Isabella Sans", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 140%;
	text-decoration: none;
	transition: opacity .3s ease;
}
:is(.home main > section, .is-root-container.home) > .wp-block-buttons .wp-block-button__link::after {
	content: "";
	width: 8px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url("https://isabellanrc.org/wp-content/uploads/2026/02/angle-right-solid-isabella.svg") center / contain no-repeat;
	mask: url("https://isabellanrc.org/wp-content/uploads/2026/02/angle-right-solid-isabella.svg") center / contain no-repeat;
}
:is(.home main > section, .is-root-container.home) > .wp-block-buttons .wp-block-button__link:hover { opacity: .85; color: #fffbf1; }
/* "Outline" button style: navy outline on the cream page */
:is(.home main > section, .is-root-container.home) > .wp-block-buttons .is-style-outline > .wp-block-button__link { background: transparent; color: #1c293a; }
:is(.home main > section, .is-root-container.home) > .wp-block-buttons .is-style-outline > .wp-block-button__link:hover { color: #1c293a; }

/* A paragraph directly before a section (no button) still leaves room above it */
.home main > section > p + section,
.home main > section > p + style + section { margin-top: 56px; }

@media (max-width: 767px) {
	:is(.home main > section, .is-root-container.home) > .wp-block-heading { margin-top: 30px !important; }
	:is(.home main > section, .is-root-container.home) > p { font-size: 18px !important; }
	:is(.home main > section, .is-root-container.home) > .wp-block-buttons { margin-bottom: 50px !important; }
}
