.thbp-guides-archive,
.thbp-guide-single {
	background: #f6f8fc;
	color: #17264d;
}

/*
 * The legacy theme adds extra desktop spacing to every breadcrumb. Keep both
 * guide archives and individual guide articles visually connected to it.
 */
.post-type-archive-thbp_guide .thbp-page-nav-wrap,
.single-thbp_guide .thbp-page-nav-wrap {
	padding-bottom: 4px;
}

.post-type-archive-thbp_guide .thbp-page-nav-wrap .thbp-container,
.single-thbp_guide .thbp-page-nav-wrap .thbp-container {
	padding-top: 6px;
}

.post-type-archive-thbp_guide .thbp-page-breadcrumb,
.single-thbp_guide .thbp-page-breadcrumb {
	margin-bottom: 0;
}

.thbp-guides-shell {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.thbp-guides-hero {
	padding: clamp(36px, 4vw, 44px) 0 clamp(40px, 4.5vw, 48px);
	background: linear-gradient(135deg, #08143b 0%, #172b66 100%);
	color: #fff;
}

.thbp-guides-hero h1 {
	max-width: 720px;
	margin: 8px 0 14px;
	color: #fff;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.thbp-guides-eyebrow,
.thbp-guide-topic {
	margin: 0;
	color: #b7892d;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.thbp-guides-hero .thbp-guides-eyebrow {
	color: #f3cf82;
	font-size: 12px;
	font-weight: 600;
}

.thbp-guides-intro {
	max-width: 760px;
	margin: 0;
	color: rgba(255,255,255,.84);
	font-size: 16px;
	line-height: 1.65;
}

.thbp-guides-content {
	padding: clamp(36px, 5vw, 58px) 0 clamp(52px, 6vw, 76px);
}

.thbp-guides-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 30px;
}

.thbp-guides-section-heading h2 {
	margin: 7px 0 0;
	color: #14234d;
	font-size: 21px;
	line-height: 1.2;
}

.thbp-guides-section-heading > p {
	max-width: 500px;
	margin: 0;
	color: #65718d;
	font-size: 15px;
	line-height: 1.65;
}

.thbp-guides-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.thbp-guide-card {
	min-width: 0;
	border: 1px solid #dfe5f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(16,35,70,.06);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/*
 * The legacy theme sizes every archive article to a percentage. Inside a CSS
 * grid that percentage is applied again to the grid track and collapses guide
 * cards into a narrow strip. Reset those archive-only rules for guide cards.
 */
.archive .thbp-guides-grid > article.thbp-guide-card {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	line-height: inherit;
	vertical-align: initial;
}

.thbp-guide-card:hover {
	transform: translateY(-3px);
	border-color: #bec9df;
	box-shadow: 0 16px 38px rgba(16,35,70,.11);
}

.thbp-guide-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

.thbp-guide-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	background: linear-gradient(145deg, #edf1fb, #f8f9fd);
	color: #304888;
}

.thbp-guide-card-icon svg {
	width: 58px;
	height: 58px;
}

.thbp-guide-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.thbp-guide-card h3 {
	margin: 10px 0 12px;
	color: #14234d;
	font-size: 19px;
	line-height: 1.35;
}

.thbp-guide-card p {
	margin: 0 0 20px;
	color: #65718d;
	font-size: 15px;
	line-height: 1.65;
}

.thbp-guide-read-more {
	margin-top: auto;
	color: #243f86;
	font-size: 14px;
	font-weight: 700;
}

.thbp-guides-empty {
	padding: 44px;
	border: 1px solid #dfe5f0;
	border-radius: 18px;
	background: #fff;
	text-align: center;
}

.thbp-guides-pagination {
	margin-top: 34px;
}

.thbp-guide-header {
	padding: clamp(34px, 4vw, 44px) 0 clamp(38px, 4.5vw, 48px);
	background: linear-gradient(135deg, #08143b 0%, #172b66 100%);
	color: #fff;
}

.thbp-guide-reading-width {
	width: min(820px, calc(100% - 40px));
	margin: 0 auto;
}

.thbp-guide-header h1 {
	max-width: 760px;
	margin: 8px 0 14px;
	color: #fff;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.thbp-guide-header .thbp-guide-topic {
	color: #f3cf82;
}

.thbp-guide-deck {
	max-width: 760px;
	margin: 0;
	color: rgba(255,255,255,.84);
	font-size: clamp(16px, 1.7vw, 18px);
	line-height: 1.65;
}

.thbp-guide-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 18px;
	color: rgba(255,255,255,.7);
	font-size: 13px;
}

.thbp-guide-content-panel {
	margin: 28px 0 42px;
	padding: clamp(28px, 4vw, 42px) 0;
	border: 1px solid #e1e6ef;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(16,35,70,.05);
}

.thbp-guide-body {
	padding: 0 0 18px;
	color: #2c3854;
	font-size: 17px;
	line-height: 1.78;
}

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

.thbp-guide-body h2 {
	margin: 38px 0 12px;
	color: #14234d;
	font-size: 21px;
	line-height: 1.3;
}

.thbp-guide-body p {
	margin: 0 0 18px;
}

.thbp-guide-disclaimer {
	margin: 18px 0 28px;
	padding: 20px 22px;
	border-left: 4px solid #3153a4;
	border-radius: 8px;
	background: #edf2ff;
	color: #33415f;
}

.thbp-guide-disclaimer p {
	margin: 6px 0 0;
	line-height: 1.65;
}

.thbp-guide-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 24px 0;
	border-top: 1px solid #dfe5f0;
	border-bottom: 1px solid #dfe5f0;
}

.thbp-guide-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid #284487;
	border-radius: 9px;
	color: #284487 !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.thbp-guide-button-primary {
	background: #284487;
	color: #fff !important;
}

.thbp-guide-back {
	display: inline-block;
	margin: 26px 0 0;
	color: #284487 !important;
	font-weight: 700;
	text-decoration: none !important;
}

@media (max-width: 860px) {
	.thbp-guides-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.thbp-guides-section-heading {
		align-items: start;
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 600px) {
	.thbp-guides-shell,
	.thbp-guide-reading-width {
		width: min(100% - 28px, 820px);
	}

	.thbp-guides-hero {
		padding: 30px 0 34px;
	}

	.thbp-guides-hero h1 {
		font-size: 25px;
	}

	.thbp-guides-section-heading h2 {
		font-size: 20px;
	}

	.thbp-guides-grid {
		grid-template-columns: 1fr;
	}

	.thbp-guide-card-icon {
		height: 118px;
	}

	.thbp-guide-card-body {
		padding: 20px;
	}

	.thbp-guide-header {
		padding: 30px 0 34px;
	}

	.thbp-guide-header h1 {
		font-size: 25px;
	}

	.thbp-guide-content-panel {
		margin: 20px 0 30px;
		padding: 22px 0;
		border-radius: 14px;
	}

	.thbp-guide-body {
		font-size: 16px;
	}

	.thbp-guide-body h2 {
		font-size: 20px;
	}

	.thbp-guide-actions,
	.thbp-guide-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thbp-guide-card {
		transition: none;
	}
}
