/**
 * Marketing Guides.
 *
 * Educational library presentation intentionally differs from commercial
 * service pages: no pricing grid, enquiry rail or repeated CTA blocks.
 */

.guide-hero {
	min-height: 360px;
	height: auto;
	padding: 0;
	background-position: center;
	background-size: cover;
}

.guide-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 53, 94, 0.78);
}

.guide-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 360px;
	flex-direction: column;
	justify-content: center;
	padding-top: 55px;
	padding-bottom: 55px;
}

.guide-hero__eyebrow {
	margin: 0 0 12px;
	font-family: "Flexo", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8bc53f;
}

#hero.guide-hero h1 {
	max-width: 880px;
	margin: 0;
	font-family: "Flexo", sans-serif;
	font-size: 52px;
	font-weight: 600;
	line-height: 1.05;
	color: #fff;
}

.guide-hero__classification {
	margin: 18px 0 0;
	font-size: 17px;
	color: #fff;
}

.guide-hero__classification a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.guide-main {
	background: #fff;
	padding: 70px 0 90px;
}

.guide-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 70px;
	align-items: start;
}

.guide-article {
	min-width: 0;
	max-width: 800px;
}

.guide-status {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 34px;
	padding-bottom: 20px;
	border-bottom: 1px solid #dfe5e8;
	font-size: 13px;
	font-weight: 700;
	color: #63717a;
}

.guide-section {
	scroll-margin-top: 125px;
	padding: 34px 0 38px;
	border-bottom: 1px solid #e2e7ea;
}

.guide-section:first-of-type {
	padding-top: 0;
}

.guide-section h2,
.guide-library h2 {
	margin: 0 0 20px;
	font-family: "Flexo", sans-serif;
	font-size: 31px;
	line-height: 1.2;
	color: #1c355e;
}

.guide-section__content {
	font-size: 18px;
	line-height: 1.68;
	color: #30393c;
}

.guide-section__content > :first-child {
	margin-top: 0;
}

.guide-section__content > :last-child {
	margin-bottom: 0;
}

.guide-section__content a,
.guide-sources a,
.guide-service-link a {
	color: #0781ae;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.guide-example {
	margin: 26px 0 0;
	padding: 18px;
	border: 1px solid #b9d9e5;
	border-left: 5px solid #29abe2;
	background: #f6fbfd;
}

.guide-example img {
	display: block;
	width: 100%;
	height: auto;
}

.guide-example figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #52636d;
}

.guide-toc {
	position: sticky;
	top: 125px;
	padding: 24px;
	border-radius: 12px;
	background: #f4f6f8;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guide-toc > strong {
	display: block;
	margin-bottom: 12px;
	font-family: "Flexo", sans-serif;
	font-size: 17px;
	color: #1c355e;
}

.guide-toc ol {
	margin: 0;
	padding-left: 20px;
}

.guide-toc li {
	margin: 0 0 9px;
	font-size: 13px;
	line-height: 1.35;
	color: #63717a;
}

.guide-toc a {
	color: #30393c;
	text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a:focus {
	color: #0781ae;
	text-decoration: underline;
}

.guide-terms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.guide-term {
	padding: 18px;
	border-radius: 10px;
	background: #f4f6f8;
}

.guide-term dt {
	margin-bottom: 7px;
	font-weight: 700;
	color: #1c355e;
}

.guide-term dd {
	margin: 0;
	line-height: 1.55;
	color: #4b565d;
}

.guide-faq {
	border-top: 1px solid #dfe5e8;
}

.guide-faq:last-child {
	border-bottom: 1px solid #dfe5e8;
}

.guide-faq summary {
	position: relative;
	padding: 18px 38px 18px 0;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	color: #1c355e;
}

.guide-faq summary::marker {
	color: #29abe2;
}

.guide-faq__answer {
	padding: 0 0 20px;
	line-height: 1.6;
	color: #3f4a50;
}

.guide-faq__answer > :first-child {
	margin-top: 0;
}

.guide-faq__answer > :last-child {
	margin-bottom: 0;
}

.guide-sources {
	font-size: 15px;
}

.guide-sources ul {
	margin-bottom: 0;
}

.guide-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.guide-related__item {
	display: flex;
	min-height: 120px;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px;
	border: 1px solid #dfe5e8;
	border-radius: 10px;
	color: #1c355e;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-related__item:hover,
.guide-related__item:focus {
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

.guide-related__item span {
	font-weight: 700;
	line-height: 1.35;
}

.guide-related__item small {
	margin-top: 16px;
	color: #0781ae;
}

.guide-service-link {
	margin-top: 38px;
	padding: 22px 24px;
	border-left: 4px solid #8bc53f;
	background: #f7f9fa;
	font-size: 15px;
	line-height: 1.5;
}

.guide-service-link p {
	margin: 0 0 8px;
}

.guide-library__intro {
	max-width: 850px;
	margin: 0 auto 55px;
	font-size: 20px;
	line-height: 1.6;
	text-align: center;
	color: #4b565d;
}

.guide-channels {
	margin-bottom: 68px;
}

.guide-channels > h2,
.guide-library__listing > h2 {
	text-align: center;
}

.guide-channel-grid,
.guide-card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.guide-channel-card {
	display: flex;
	min-height: 240px;
	flex-direction: column;
	padding: 24px;
	border-radius: 12px;
	background: #f4f6f8;
	color: #30393c;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-channel-card:hover,
.guide-channel-card:focus {
	transform: translateY(-3px);
	box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.guide-channel-card__label,
.guide-card__meta {
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0781ae;
}

.guide-channel-card strong {
	margin-bottom: 11px;
	font-family: "Flexo", sans-serif;
	font-size: 23px;
	line-height: 1.15;
	color: #1c355e;
}

.guide-channel-card > span:not(.guide-channel-card__label) {
	font-size: 14px;
	line-height: 1.55;
	color: #59666d;
}

.guide-channel-card small {
	margin-top: auto;
	padding-top: 20px;
	font-weight: 700;
	color: #0781ae;
}

.guide-library__listing {
	padding-top: 5px;
}

.guide-card {
	overflow: hidden;
	border: 1px solid #dfe5e8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guide-card__link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.guide-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eaf0f3;
}

.guide-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.guide-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.guide-card__title {
	margin-bottom: 10px;
	font-family: "Flexo", sans-serif;
	font-size: 21px;
	line-height: 1.2;
	color: #1c355e;
}

.guide-card__excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: #59666d;
}

.guide-card__cta {
	margin-top: auto;
	padding-top: 20px;
	font-size: 13px;
	font-weight: 700;
	color: #0781ae;
}

.guide-card__link:hover .guide-card__title,
.guide-card__link:focus .guide-card__title {
	color: #0781ae;
}

.guide-library .navigation.pagination {
	margin-top: 40px;
	text-align: center;
}

.guide-library .nav-links .page-numbers {
	display: inline-block;
	margin: 3px;
	padding: 8px 12px;
	border: 1px solid #ccd5da;
	border-radius: 6px;
	color: #1c355e;
	text-decoration: none;
}

.guide-library .nav-links .current {
	background: #1c355e;
	color: #fff;
}

.guide-library__empty {
	padding: 30px;
	border-radius: 10px;
	background: #f4f6f8;
	text-align: center;
	color: #59666d;
}

@media only screen and (max-width: 1000px) {
	.guide-layout {
		grid-template-columns: minmax(0, 1fr) 235px;
		gap: 38px;
	}

	.guide-channel-grid,
	.guide-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.guide-hero,
	.guide-hero__inner {
		min-height: 290px;
	}

	.guide-hero__inner {
		padding-top: 45px;
		padding-bottom: 45px;
	}

	#hero.guide-hero h1 {
		font-size: 34px;
		line-height: 1.1;
	}

	.guide-hero__classification {
		font-size: 15px;
	}

	.guide-main {
		padding: 45px 0 60px;
	}

	.guide-layout {
		display: flex;
		flex-direction: column;
		gap: 28px;
	}

	.guide-article {
		order: 2;
		width: 100%;
	}

	.guide-toc {
		position: static;
		order: 1;
		width: 100%;
		box-sizing: border-box;
	}

	.guide-section {
		padding: 28px 0 31px;
	}

	.guide-section h2,
	.guide-library h2 {
		font-size: 25px;
	}

	.guide-section__content {
		font-size: 16px;
	}

	.guide-terms,
	.guide-related__grid,
	.guide-channel-grid,
	.guide-card-grid {
		grid-template-columns: 1fr;
	}

	.guide-library__intro {
		margin-bottom: 38px;
		font-size: 17px;
		text-align: left;
	}

	.guide-channels {
		margin-bottom: 48px;
	}

	.guide-channel-card {
		min-height: 0;
	}
}
