/*
 * Castlewood theme components.
 *
 * Colors, fonts and sizes come from theme.json presets, so changes made in
 * Appearance > Editor > Styles flow through to everything below.
 *
 * Icons: Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
 * License: https://fontawesome.com/license/free (Icons: CC BY 4.0)
 */

:root {
	--cw-i-phone-alt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z'/%3E%3C/svg%3E");
	--cw-i-map-marker-alt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'/%3E%3C/svg%3E");
	--cw-i-envelope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E");
	--cw-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z'/%3E%3C/svg%3E");
	--cw-i-long-arrow-alt-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z'/%3E%3C/svg%3E");
	--cw-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E");
	--cw-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
	--cw-i-angle-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z'/%3E%3C/svg%3E");
	--cw-i-angle-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z'/%3E%3C/svg%3E");
	--cw-i-arrow-down-gray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='%23585858' d='M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z'/%3E%3C/svg%3E");
	--cw-roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 557 194' preserveAspectRatio='none'%3E%3Cpolygon points='0,194 278.5,0 557,194' fill='%23fff'/%3E%3Cpolygon points='107,194 282,75 457,194' fill='%238CC641'/%3E%3C/svg%3E");
	--cw-navy: var(--wp--preset--color--navy, #093050);
	--cw-green: var(--wp--preset--color--green, #8CC641);
	--cw-text: var(--wp--preset--color--body, #585858);
	--cw-light: var(--wp--preset--color--light, #F6F6F6);
	--cw-card: var(--wp--preset--color--card, #EEEEEE);
	--cw-border: var(--wp--preset--color--border, #E3E2E3);
}

/* ------------------------------------------------------------------ Base */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Header, main and footer sit flush against each other. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Full-width sections stack without gaps; each section sets its own padding. */
.wp-block-post-content > .alignfull,
.site-main > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

a,
.wp-element-button,
.wp-block-button__link {
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--cw-green);
	outline-offset: 2px;
}

.wp-block-image img {
	vertical-align: middle;
}

/* Long email addresses wrap instead of overflowing on phones. */
a[href^="mailto:"] {
	overflow-wrap: anywhere;
}

/* Paragraph + list rhythm inside text-heavy content. */
.cw-prose > p,
.cw-prose > ul,
.cw-prose > ol {
	margin-block: 0 16px;
}

/* ------------------------------------------------------------- Icons */

.is-style-cw-icon-location,
.is-style-cw-icon-phone,
.is-style-cw-icon-email,
.is-style-cw-icon-clock {
	position: relative;
	padding-left: 40px;
}

.is-style-cw-icon-location::before,
.is-style-cw-icon-phone::before,
.is-style-cw-icon-email::before,
.is-style-cw-icon-clock::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	background-color: var(--cw-icon-color, var(--cw-text));
	-webkit-mask: var(--cw-icon) no-repeat center / contain;
	mask: var(--cw-icon) no-repeat center / contain;
}

.is-style-cw-icon-location { --cw-icon: var(--cw-i-map-marker-alt); }
.is-style-cw-icon-phone { --cw-icon: var(--cw-i-phone-alt); }
.is-style-cw-icon-email { --cw-icon: var(--cw-i-envelope); }
.is-style-cw-icon-clock { --cw-icon: var(--cw-i-clock); }

.cw-icon-green {
	--cw-icon-color: var(--cw-green);
}

/* Icon list items (contact page): bold label above the detail. */
.wp-block-group.is-style-cw-icon-location,
.wp-block-group.is-style-cw-icon-phone,
.wp-block-group.is-style-cw-icon-email,
.wp-block-group.is-style-cw-icon-clock {
	padding-bottom: 10px;
}

.wp-block-group.is-style-cw-icon-location > *,
.wp-block-group.is-style-cw-icon-phone > *,
.wp-block-group.is-style-cw-icon-email > *,
.wp-block-group.is-style-cw-icon-clock > * {
	margin-block: 0;
}

/* Checkmark list. */
.wp-block-list.is-style-cw-checklist,
.wp-block-list.is-style-cw-plain {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-cw-checklist > li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
}

.wp-block-list.is-style-cw-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 18px;
	height: 18px;
	background-color: var(--cw-icon-color, var(--cw-text));
	-webkit-mask: var(--cw-i-check) no-repeat center / contain;
	mask: var(--cw-i-check) no-repeat center / contain;
}

/* ------------------------------------------------------------ Top bar */

.cw-topbar {
	min-height: 58px;
}

.cw-topbar > * {
	margin-block: 0;
}

.cw-search .wp-block-search__inside-wrapper {
	flex-direction: row-reverse;
	height: 37px;
	padding: 0;
	border: 1px solid var(--cw-navy);
	border-radius: 0;
	background: #fff;
}

.cw-search .wp-block-search__input {
	min-height: 0;
	height: 35px;
	padding: 4px 10px 4px 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--cw-text);
	font-size: 16px;
}

.cw-search .wp-block-search__input:focus {
	outline: none;
}

.cw-search .wp-block-search__inside-wrapper:focus-within {
	outline: 2px solid var(--cw-green);
	outline-offset: 1px;
}

.cw-search .wp-block-search__button {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 6px 0 12px;
	border: 0;
	background: transparent;
	color: var(--cw-navy);
}

.cw-search .wp-block-search__button:hover,
.cw-search .wp-block-search__button:focus {
	background: transparent;
	color: var(--cw-green);
}

.cw-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	min-width: 22px;
	fill: currentColor;
}

.cw-topbar-phone {
	margin: 0;
}

/* ------------------------------------------------------------- Header */

.cw-header {
	position: relative;
	z-index: 50;
}

.cw-header .wp-block-site-logo img {
	width: 190px;
	height: auto;
}

.cw-header > * {
	flex-shrink: 0;
}

.cw-header .cw-nav {
	flex-shrink: 1;
}

.cw-nav .wp-block-navigation-item__content {
	padding: 0;
	color: var(--cw-text);
}

.cw-nav .wp-block-navigation-item__content:hover,
.cw-nav .wp-block-navigation-item__content:focus,
.cw-nav .current-menu-item > .wp-block-navigation-item__content,
.cw-nav .current-menu-ancestor > .wp-block-navigation-item__content,
.cw-nav .has-child:hover > .wp-block-navigation-item__content,
.cw-nav .has-child:hover > .wp-block-navigation__submenu-icon {
	color: var(--cw-green);
}

.cw-nav .wp-block-navigation__submenu-icon {
	width: 12px;
	height: 12px;
	margin-left: 6px;
	color: var(--cw-text);
}

.cw-nav .wp-block-navigation__submenu-icon svg {
	stroke-width: 2px;
}

/* Desktop dropdown. */
.cw-nav .wp-block-navigation__submenu-container {
	top: calc(100% + 20px);
	min-width: 220px !important;
	padding: 0;
	border: 1px solid rgba(60, 179, 113, 0.24) !important;
	background: #fff !important;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.cw-nav .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -21px;
	right: 0;
	left: 0;
	height: 21px;
}

.cw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	width: 100%;
	padding: 15px;
	color: #3a3a3a;
	line-height: 1;
}

.cw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item + .wp-block-navigation-item {
	border-top: 1px solid var(--cw-border);
}

.cw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.cw-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	color: var(--cw-green);
}

/* Hamburger and slide-in menu. */
.cw-nav .wp-block-navigation__responsive-container-open,
.cw-nav .wp-block-navigation__responsive-container-close {
	color: var(--cw-text);
}

.cw-nav .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}

.cw-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(340px, 86vw);
	padding: 72px 28px 28px;
	background: #fff !important;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
	animation: cw-slide-in 0.25s ease-out;
}

.admin-bar .cw-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@keyframes cw-slide-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.cw-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	gap: 0 !important;
}

.cw-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}

.cw-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--cw-border);
}

.cw-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 14px 0 !important;
	font-size: 18px;
}

.cw-nav .is-menu-open .wp-block-navigation__submenu-container {
	top: auto;
	min-width: 0 !important;
	padding: 0 0 0 16px !important;
	border: 0 !important;
	box-shadow: none;
}

.cw-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 0;
	border-top: 1px solid var(--cw-border);
}

.cw-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--cw-text);
}

html.has-modal-open body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(9, 48, 80, 0.45);
}

@media (max-width: 1280px) {
	.cw-nav {
		--wp--style--block-gap: 18px;
	}

	.cw-nav .wp-block-navigation__container {
		gap: 18px;
	}
}

/* Below this width the full menu no longer fits beside the logo and button. */
@media (max-width: 1100px) {
	.cw-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.cw-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.cw-header-cta {
		display: none !important;
	}

	.cw-header {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}
}

@media (max-width: 768px) {
	.cw-topbar {
		display: none !important;
	}

	.cw-header .wp-block-site-logo img {
		width: 170px;
	}
}

/* --------------------------------------------------------------- Hero */

.cw-hero .wp-block-cover__inner-container {
	width: 100%;
}

.cw-hero-text {
	max-width: 692px;
}

.cw-hero-text > h1 {
	margin-block: 20px 10px;
}

.cw-hero-text > p {
	margin-block: 0;
}

.cw-hero .wp-block-buttons {
	margin-top: 26px;
	gap: 10px;
}

.cw-hero .wp-block-button__link {
	width: 260px;
	padding: 12px 10px 14px;
}

.wp-block-cover.is-style-cw-hero::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	z-index: 2;
	width: 220px;
	height: 78px;
	transform: translateX(-50%);
	background: var(--cw-roof) no-repeat center / 100% 100%;
	pointer-events: none;
}

@media (max-width: 769px) {
	.wp-block-cover.is-style-cw-hero::after {
		display: none;
	}

	.cw-hero {
		min-height: 520px !important;
		padding-top: 60px !important;
		padding-bottom: 60px !important;
	}
}

@media (max-width: 600px) {
	.cw-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.cw-hero .wp-block-button,
	.cw-hero .wp-block-button__link {
		width: 100%;
	}
}

/* ----------------------------------------------- Two-column feature rows */

.cw-feature {
	gap: 24px !important;
}

.cw-feature > .wp-block-image {
	flex: 0 0 69px;
	margin: 0;
}

.cw-feature > .wp-block-image img {
	width: 69px;
	height: 69px;
}

.cw-feature h3 {
	margin: 0 0 6px;
}

.cw-feature p {
	margin: 0;
	padding-bottom: 10px;
	color: var(--wp--preset--color--muted);
}

/* Columns that show the text first on phones. */
@media (max-width: 781px) {
	.cw-reverse-mobile {
		flex-direction: column-reverse;
	}
}

/* -------------------------------------------------------- Testimonials */

.cw-testimonials h2 {
	margin-block: 10px 5px;
}

.is-style-cw-slider {
	position: relative;
}

.is-style-cw-slider .cw-slide p {
	margin-block: 0;
}

.cw-quote {
	max-width: 600px;
	margin-inline: auto !important;
}

.cw-quote-name {
	margin-top: 10px !important;
	font-weight: 700;
}

.is-style-cw-slider.cw-ready {
	overflow: hidden;
}

.is-style-cw-slider .cw-track {
	display: flex;
	align-items: flex-start;
	transition: transform 0.5s ease, height 0.3s ease;
}

.is-style-cw-slider .cw-track > .cw-slide {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 !important;
}

.cw-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.cw-dots button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.cw-dots button[aria-current="true"],
.cw-dots button:hover {
	background: var(--cw-green);
}

@media (prefers-reduced-motion: reduce) {
	.is-style-cw-slider .cw-track,
	.wp-block-gallery.is-style-cw-carousel .cw-track {
		transition: none;
	}
}

/* ------------------------------------------------------- Gallery carousel */

.wp-block-gallery.is-style-cw-carousel.cw-ready {
	position: relative;
	display: block;
	overflow: hidden;
}

.wp-block-gallery.is-style-cw-carousel .cw-track {
	display: flex;
	transition: transform 0.5s ease;
}

.wp-block-gallery.is-style-cw-carousel .cw-track > figure.wp-block-image {
	flex: 0 0 100%;
	width: 100% !important;
	margin: 0 !important;
}

.wp-block-gallery.is-style-cw-carousel .cw-track > figure.wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

.cw-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(9, 48, 80, 0.75);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
}

.cw-arrow::before {
	content: "";
	width: 12px;
	height: 22px;
	background-color: currentColor;
	-webkit-mask: var(--cw-i-angle-right) no-repeat center / contain;
	mask: var(--cw-i-angle-right) no-repeat center / contain;
}

.cw-arrow-prev {
	left: 12px;
}

.cw-arrow-prev::before {
	-webkit-mask-image: var(--cw-i-angle-left);
	mask-image: var(--cw-i-angle-left);
}

.cw-arrow-next {
	right: 12px;
}

.cw-arrow:hover,
.cw-arrow:focus-visible {
	background: var(--cw-green);
}

/* Before the script runs, show only the first photo. */
.wp-site-blocks .wp-block-gallery.is-style-cw-carousel:not(.cw-ready) > figure:not(:first-of-type) {
	display: none;
}

.wp-site-blocks .wp-block-gallery.is-style-cw-carousel:not(.cw-ready) > figure:first-of-type {
	width: 100% !important;
}

/* ------------------------------------------------ Our Properties overlap */

.cw-props-hero .cw-props-box {
	position: relative;
	z-index: 1;
}

.cw-props-hero .cw-props-box h1 {
	margin-block: 15px 20px;
}

.cw-props-hero .cw-props-media {
	position: relative;
	z-index: 2;
}

@media (min-width: 782px) {
	.cw-props-hero .cw-props-media .wp-block-gallery {
		width: calc(100% - 20px);
		margin-left: -65px;
	}
}

@media (max-width: 781px) {
	.cw-props-hero {
		background-color: var(--cw-navy);
	}

	.cw-props-hero .cw-props-box {
		padding: 20px 0 !important;
	}
}

/* ---------------------------------------------------- Contact person box */

.cw-dan-card h3,
.cw-dan-side h3 {
	margin-block: 20px 0;
}

.cw-dan-card .wp-block-buttons {
	gap: 10px;
}

/* ------------------------------------------------------------ Timeline */

.wp-block-group.is-style-cw-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wp-block-group.is-style-cw-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: var(--cw-card);
}

.is-style-cw-timeline > .wp-block-group {
	position: relative;
	width: calc(50% - 42px);
	margin: 0 !important;
	padding: 30px 30px 20px;
	border-radius: 4px;
	background: var(--cw-card);
}

.is-style-cw-timeline > .wp-block-group:nth-child(even) {
	align-self: flex-end;
}

/* Arrow marker on the center line. */
.is-style-cw-timeline > .wp-block-group::after {
	content: "";
	position: absolute;
	top: 96px;
	right: -62px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--cw-i-arrow-down-gray) no-repeat center / 9px 18px, var(--cw-card);
}

.is-style-cw-timeline > .wp-block-group:nth-child(even)::after {
	right: auto;
	left: -62px;
}

/* Small pointer from the card to the line. */
.is-style-cw-timeline > .wp-block-group::before {
	content: "";
	position: absolute;
	top: 106px;
	right: -10px;
	border-width: 10px 0 10px 10px;
	border-style: solid;
	border-color: transparent transparent transparent var(--cw-card);
}

.is-style-cw-timeline > .wp-block-group:nth-child(even)::before {
	right: auto;
	left: -10px;
	border-width: 10px 10px 10px 0;
	border-color: transparent var(--cw-card) transparent transparent;
}

.is-style-cw-timeline h3 {
	margin: 0 0 10px;
}

.is-style-cw-timeline p,
.is-style-cw-timeline ul {
	margin-block: 0 16px;
}

@media (max-width: 781px) {
	.wp-block-group.is-style-cw-timeline::before {
		left: 20px;
	}

	.is-style-cw-timeline > .wp-block-group,
	.is-style-cw-timeline > .wp-block-group:nth-child(even) {
		align-self: stretch;
		width: auto;
		margin-left: 62px !important;
	}

	.is-style-cw-timeline > .wp-block-group::after,
	.is-style-cw-timeline > .wp-block-group:nth-child(even)::after {
		top: 30px;
		right: auto;
		left: -62px;
	}

	.is-style-cw-timeline > .wp-block-group::before,
	.is-style-cw-timeline > .wp-block-group:nth-child(even)::before {
		top: 40px;
		right: auto;
		left: -10px;
		border-width: 10px 10px 10px 0;
		border-color: transparent var(--cw-card) transparent transparent;
	}
}

/* ------------------------------------------------------------- Forms */

.cw-form-panel h2 {
	margin-bottom: 8px;
}

.cw-form-panel .ff-el-group {
	margin-bottom: 20px;
}

.cw-form-panel .ff-el-input--label label,
.cw-form-panel label {
	color: #000;
	font-size: 18px;
	font-weight: 700;
}

.cw-form-panel .ff-el-is-required.asterisk-right label::after,
.cw-form-panel .ff-el-is-required .asterisk-right label::after {
	color: #c02b0a;
}

.cw-form-panel input[type="text"],
.cw-form-panel input[type="email"],
.cw-form-panel input[type="tel"],
.cw-form-panel textarea,
.cw-form-panel .ff-el-form-control {
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(16, 52, 80, 0.13);
	border-radius: 0;
	background: #fcfcfc;
	color: var(--cw-text);
	font-family: inherit;
	font-size: 18px;
	line-height: 1.43;
}

.cw-form-panel textarea,
.cw-form-panel textarea.ff-el-form-control {
	min-height: 96px;
}

.cw-form-panel input:focus,
.cw-form-panel textarea:focus {
	border-color: var(--cw-green);
	outline: 1px solid var(--cw-green);
}

.cw-form-panel button[type="submit"],
.cw-form-panel .ff-btn-submit {
	width: 100%;
	padding: 10px 20px !important;
	border: 1px solid var(--cw-green) !important;
	border-radius: 0 !important;
	background: var(--cw-green) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	cursor: pointer;
}

.cw-form-panel button[type="submit"]:hover,
.cw-form-panel .ff-btn-submit:hover {
	background: #fff !important;
	color: var(--cw-green) !important;
	opacity: 1 !important;
}

/* ---------------------------------------------------------- Embeds */

.cw-listings-frame iframe {
	display: block;
	width: 100%;
	max-width: 800px;
	height: 410px;
	margin-inline: auto;
	border: 0;
}

/* ------------------------------------------------------------- Footer */

.cw-map iframe {
	display: block;
	width: 100%;
	height: 200px;
	border: 0;
}

.cw-footer-contact .wp-block-site-logo img {
	width: 260px;
	height: auto;
}

.cw-footer-contact p {
	margin: 0;
}

.cw-footer-menu .cw-footer-nav .wp-block-navigation-item__content {
	padding: 12px 0;
	color: var(--cw-text);
	line-height: 1.6;
}

.cw-footer-menu .cw-footer-nav .wp-block-navigation-item__content:hover,
.cw-footer-menu .cw-footer-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--cw-green);
}

.cw-footer-menu .cw-footer-nav .wp-block-navigation__submenu-container {
	min-width: 200px !important;
	padding: 0;
	border: 1px solid var(--cw-border) !important;
	background: #fff !important;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.cw-footer-menu .cw-footer-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 12px 15px;
}

.cw-badges img {
	width: 70px;
	height: 70px;
}

.cw-badges figure {
	margin: 0;
}

.cw-copyright p {
	margin: 0;
}

/* The desktop footer menu skips "Home", as on the original site. */
@media (min-width: 769px) {
	.cw-footer-nav .wp-block-navigation__container > .wp-block-navigation-item:first-child {
		display: none;
	}
}

@media (max-width: 900px) {
	.cw-footer-contact {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 20px !important;
	}

	.cw-footer-menu {
		flex-direction: column;
		align-items: flex-start !important;
		padding-top: 10px !important;
		padding-bottom: 20px !important;
	}

	.cw-footer-nav .wp-block-navigation__container {
		flex-direction: column;
		gap: 0 !important;
	}

	.cw-footer-nav .wp-block-navigation-item__content {
		padding: 8px 0 !important;
	}
}

/* ------------------------------------------------------ Generic pages */

.cw-page-title {
	margin-block: 0 20px;
}

.cw-post-list .wp-block-post {
	padding-bottom: 30px;
	border-bottom: 1px solid var(--cw-border);
}

.wp-block-query-pagination a {
	color: var(--cw-green);
}

/* ------------------------------------------------------ Page sections */

.cw-hero .wp-block-cover__inner-container {
	max-width: 1720px;
	margin-inline: auto;
}

.cw-about-hero .cw-about-box {
	max-width: 621px;
}

.cw-about-box h1 {
	margin-block: 0 4px;
}

.cw-about-box p {
	margin-block: 0;
}

.cw-mission-text,
.cw-narrow {
	max-width: 660px;
	margin-inline: auto !important;
}

.cw-mission-text {
	max-width: 610px;
}

.cw-link-white a {
	color: #fff;
}

.cw-link-white a:hover,
.cw-link-white a:focus {
	color: var(--cw-green);
}

/* "Contact Us" style buttons that turn outlined on hover. */
.cw-btn-outline-hover .wp-block-button__link:hover,
.cw-btn-outline-hover .wp-block-button__link:focus {
	background: transparent;
}

.cw-prose h3 {
	margin-block: 32px 12px;
}

.cw-prose h3 + p {
	margin-top: 0;
}

.cw-legal ul {
	margin-block: 0 16px;
	padding-left: 1.3em;
}

.cw-legal li + li {
	margin-top: 6px;
}

.cw-contact h1 {
	margin-block: 0 12px;
}

.cw-contact .wp-block-group[class*="is-style-cw-icon-"] {
	margin-block-start: 10px;
}

.cw-contact .wp-block-group[class*="is-style-cw-icon-"]:first-of-type {
	margin-block-start: 30px;
}

.cw-note p,
.cw-help p {
	margin-block: 0;
}

.cw-help h2 {
	margin-block: 0 12px;
}

.cw-help .wp-block-buttons {
	margin-top: 20px;
}

@media (max-width: 781px) {
	.cw-commit .wp-block-column,
	.cw-maintenance .wp-block-column,
	.cw-partners .wp-block-column,
	.cw-contact .wp-block-column {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.cw-form-panel {
		padding: 30px 20px 10px !important;
	}

	.cw-feature {
		padding-right: 0 !important;
	}
}
