/*
 * FAQ page (faq.php). Loaded only on that template; see includes/enqueue.php.
 */
.page-faq {
	--faq-navy: #1C506C;
	--faq-green: #16BF98;
	--faq-text: #212529;
}

.faq-heading {
	background-color: var(--yellow);
	display: grid;
}
.faq-heading .heading-container {
	container-type: inline-size;
	/* Same gap on every side; the h1 is sized below so its widest line fills the width. */
	padding: 5.2vw;
	align-items: end;
	grid-column: 1;
	width: 100%;
	display: flex;
}
.faq-heading h1 {
	color: var(--faq-navy);
	font-size: 16cqi;
	line-height: 1.06;
	/* Trim the space under the last line's baseline so the bottom gap matches the padding. */
	margin-bottom: -0.18em;
	letter-spacing: -0.013em;
}
.faq-heading h1 strong {
	font-weight: 900;
	font-size: 1.043em;
	letter-spacing: -0.033em;
}
.faq-heading .logo-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-content: end;
	background-color: var(--ltBlue);
}
.faq-heading .logo-container .logo {
	aspect-ratio: 1;
	background-color: var(--black);
	text-align: right;
	padding: 20px 20px 0 0;
}
.faq-heading .logo-container .logo img {
	width: 80%;
	height: auto;
}
.faq-heading .logo-container .photo {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.faq-intro {
	background-color: var(--faq-navy);
	display: flex;
	align-items: center;
	min-height: 230px;
	padding: 48px 6vw;
}
.faq-intro p {
	font-family: "new-hero", sans-serif;
	font-weight: 300;
	font-size: clamp(1.125rem, 1.4rem + 0.3vw, 1.5rem);
	line-height: 1.33;
	color: var(--white);
	max-width: 1120px;
	margin: 0;
	margin-inline: auto;
}

.faq-overview {
	/* Outer edges line up with the centered intro/accordion column. */
	--faq-edge: max(6vw, calc((100vw - 1120px) / 2));
	display: grid;
}
.faq-overview .faq-topics, .faq-overview .faq-about {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 60px;
}
.faq-overview .faq-topics {
	background-color: var(--orange);
	padding-inline: var(--faq-edge) 40px;
}
.faq-overview .faq-topics ul {
	list-style: none;
	margin: 0;
	padding-left: 22px;
	border-left: 4px solid var(--yellow);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.faq-overview .faq-topics a {
	font-family: "new-hero", sans-serif;
	font-weight: 500;
	font-size: 21px;
	line-height: 34.5px;
	color: var(--white);
	text-decoration: none;
}
.faq-overview .faq-topics a:hover, .faq-overview .faq-topics a:focus-visible {
	color: var(--yellow);
}
.faq-overview .faq-about {
	background-color: var(--faq-green);
	padding-inline: 6vw var(--faq-edge);
}
.faq-overview .faq-about h2 {
	font-weight: 700;
	font-size: clamp(1.75rem, 1rem + 2vw, 2.375rem);
	letter-spacing: -0.013em;
	color: var(--faq-navy);
	margin-bottom: 16px;
}
.faq-overview .faq-about p {
	font-size: 21px;
	line-height: 36px;
	color: var(--white);
	max-width: 515px;
	margin: 0;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 60px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 82px 16px 107px;
}
.faq-list .faq-item {
	border: 4px solid var(--yellow);
	scroll-margin-top: 120px;
}
.faq-list .faq-item:nth-child(4n+2) {
	border-color: var(--ltBlue);
}
.faq-list .faq-item:nth-child(4n+3) {
	border-color: var(--orange);
}
.faq-list .faq-item:nth-child(4n+4) {
	border-color: var(--faq-green);
}
.faq-list h2 {
	margin: 0;
	font-size: inherit;
}
.faq-list h2 span {
	font-weight: 700;
}
.faq-list .faq-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: 82px;
	padding: 12px 52px;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	font-family: "new-hero", sans-serif;
	font-weight: 700;
	font-size: clamp(1.375rem, 0.9rem + 1.6vw, 2.375rem);
	letter-spacing: -0.013em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--faq-navy);
}
.faq-list .faq-toggle img {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.faq-list .faq-toggle[aria-expanded=true] img {
	transform: rotate(180deg);
}
.faq-list .faq-panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.35s ease, visibility 0.35s;
}
.faq-list .faq-panel > .faq-panel-inner {
	overflow: hidden;
}
.faq-list .faq-item.is-open .faq-panel {
	grid-template-rows: 1fr;
	visibility: visible;
}
.faq-list .faq-panel-inner > .faq-question:first-child {
	padding-top: 8px;
}
.faq-list .faq-panel-inner > .faq-question:last-child {
	padding-bottom: 44px;
}
.faq-list .faq-question {
	padding-inline: 52px;
}
.faq-list .faq-question + .faq-question {
	margin-top: 36px;
}
.faq-list .faq-question h3 {
	font-weight: 700;
	font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5625rem);
	letter-spacing: -0.013em;
	text-transform: none;
	color: var(--faq-navy);
	margin-bottom: 5px;
}
.faq-list .faq-question p, .faq-list .faq-question ul {
	font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.3125rem);
	line-height: 1.476;
	color: var(--faq-text);
	margin: 0;
}
.faq-list .faq-question p + p, .faq-list .faq-question p + ul, .faq-list .faq-question ul + p {
	margin-top: 1.476em;
}
.faq-list .faq-question ul {
	margin-left: 0;
	padding-left: 1.2em;
}

@media (max-width: 767px) {
	.faq-list {
		gap: 32px;
		padding-block: 48px 64px;
	}
	.faq-list .faq-toggle {
		padding: 12px 20px;
	}
	.faq-list .faq-toggle img {
		width: 30px;
		height: auto;
	}
	.faq-list .faq-question {
		padding-inline: 20px;
	}
}
@media (min-width: 768px) {
	/* Matches the site's .twoOverOneLeft banners (col-md-6 / col-lg-7 + col-lg-5, 70vh). */
	.faq-heading {
		grid-template-columns: 1fr 1fr;
		min-height: 70vh;
	}
	.faq-overview {
		/* Orange column hugs the topic list so it never wraps on wide screens. */
		grid-template-columns: min(45%, var(--faq-edge) + 440px) 1fr;
		min-height: min(29.7vw, 480px);
	}
}
@media (min-width: 992px) {
	.faq-heading {
		grid-template-columns: 7fr 5fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.faq-list .faq-panel,
	.faq-list .faq-toggle img {
		transition: none;
	}
}
