.page-template-page-resources-hub #cfo-premium-body {
	background: #050505;
	color: #f5f0e6;
}

.cfo-res-hub {
	padding-top: var(--cfo-header-offset, 64px);
	background: #050505;
	font-family: "Libre Franklin", "Franklin Fallback", sans-serif;
}

body.admin-bar .cfo-res-hub {
	padding-top: calc(32px + var(--cfo-header-offset, 64px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .cfo-res-hub {
		padding-top: calc(46px + var(--cfo-header-offset, 64px));
	}
}

.cfo-res-wrap {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 2rem;
	box-sizing: border-box;
}

.cfo-res-hero .cfo-res-wrap {
	position: relative;
	z-index: 2;
}

.cfo-res-kicker {
	margin: 0 0 0.25rem;
	font-family: "IBM Plex Mono", "Plex Mono Fallback", monospace;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b8943f;
}

.cfo-res-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 1.15rem 0 1.25rem;
	background: #050505;
	border-bottom: 1px solid rgba(184, 148, 63, 0.22);
}

.cfo-res-hero-bg {
	position: absolute;
	inset: -32px;
	width: calc(100% + 64px);
	height: calc(100% + 64px);
	object-fit: cover;
	object-position: center 38%;
	filter: blur(18px) saturate(1.08);
	transform: scale(1.12);
	opacity: 0.72;
	pointer-events: none;
	z-index: 0;
}

.cfo-res-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(5, 5, 5, 0.42) 0%, rgba(5, 5, 5, 0.62) 55%, rgba(5, 5, 5, 0.88) 100%),
		linear-gradient(rgba(184, 148, 63, 0.05) 1px, transparent 1px) 0 0 / 100% 1.35rem,
		linear-gradient(90deg, rgba(184, 148, 63, 0.05) 1px, transparent 1px) 0 0 / 1.35rem 100%;
}

.cfo-res-hero-head {
	display: grid;
	grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 22rem);
	gap: 0.85rem 1.5rem;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0 0 0.55rem 1.1rem;
	border-left: 2px solid #b8943f;
	border-bottom: 1px solid rgba(184, 148, 63, 0.22);
}

.cfo-res-hero-copy {
	min-width: 0;
}

.cfo-res-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	padding: 0 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(184, 148, 63, 0.28);
	background: rgba(5, 5, 5, 0.55);
	backdrop-filter: blur(12px);
}

.cfo-res-search:focus-within {
	border-color: #b8943f;
	box-shadow: 0 0 0 3px rgba(184, 148, 63, 0.12);
}

.cfo-res-search-ico {
	display: inline-flex;
	flex-shrink: 0;
	color: rgba(245, 240, 230, 0.45);
}

.cfo-res-search:focus-within .cfo-res-search-ico {
	color: #b8943f;
}

#cfo-premium-body .cfo-res-search-input,
.cfo-res-search-input {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0.15rem !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #f5f0e6 !important;
	font-family: "Libre Franklin", "Franklin Fallback", sans-serif;
	font-size: 0.86rem;
	line-height: 1.3;
	outline: none;
}

#cfo-premium-body .cfo-res-search-input::placeholder,
.cfo-res-search-input::placeholder {
	color: rgba(245, 240, 230, 0.42);
}

.cfo-res-search-clear {
	flex-shrink: 0;
	margin: 0;
	padding: 0.15rem 0.15rem 0.15rem 0.2rem;
	border: 0;
	background: none;
	color: #b8943f;
	font-family: "IBM Plex Mono", "Plex Mono Fallback", monospace;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.cfo-res-search-clear[hidden] {
	display: none;
}

.cfo-res-empty {
	max-width: 1440px;
	margin: 0 auto;
	padding: 2rem 2rem 1.25rem;
	font-size: 0.92rem;
	color: rgba(245, 240, 230, 0.55);
}

.cfo-res-empty[hidden],
.cfo-res-section[hidden],
.cfo-res-card[hidden] {
	display: none !important;
}

.cfo-res-hero h1 {
	margin: 0.15rem 0 0.2rem;
	font-family: "Playfair Display", "Playfair Fallback", Georgia, serif;
	font-size: clamp(1.65rem, 2.6vw, 2.15rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: #fff;
}

.cfo-res-lead {
	margin: 0;
	max-width: none;
	font-size: 0.92rem;
	line-height: 1.5;
	font-weight: 300;
	color: rgba(245, 240, 230, 0.68);
}

.cfo-res-section {
	padding: 1.35rem 0 1.1rem;
	border-bottom: 1px solid rgba(184, 148, 63, 0.12);
}

.cfo-res-head {
	margin: 0 0 1.15rem;
}

.cfo-res-head-title {
	margin: 0 0 0.28rem;
	font-family: "Playfair Display", "Playfair Fallback", Georgia, serif;
	font-size: clamp(1.2rem, 1.9vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: #fff;
}

.cfo-res-intro {
	margin: 0;
	max-width: 42rem;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.45;
	color: rgba(245, 240, 230, 0.72);
}

.cfo-res-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
}

#cfo-premium-body a.cfo-res-card,
.cfo-res-card {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #121212;
	border: 1px solid rgba(184, 148, 63, 0.2);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cfo-res-card.is-feat {
	border-color: rgba(184, 148, 63, 0.48);
}

.cfo-res-card:hover,
.cfo-res-card:focus-visible {
	border-color: rgba(184, 148, 63, 0.55);
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
	outline: none;
}

.cfo-res-card-media {
	display: block;
	height: 6.4rem;
	overflow: hidden;
	background: #0a0a0a;
}

.cfo-res-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s ease;
}

.cfo-res-card:hover .cfo-res-card-media img,
.cfo-res-card:focus-visible .cfo-res-card-media img {
	transform: scale(1.05);
}

.cfo-res-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	padding: 0.7rem 0.75rem 0.75rem;
	flex: 1;
}

.cfo-res-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.4rem;
}

.cfo-res-card-top strong {
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.25;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cfo-res-badge {
	flex-shrink: 0;
	margin-top: 0.08rem;
	padding: 0.12rem 0.35rem;
	border-radius: 999px;
	border: 1px solid rgba(46, 160, 90, 0.45);
	background: rgba(46, 160, 90, 0.12);
	font-family: "IBM Plex Mono", "Plex Mono Fallback", monospace;
	font-size: 0.52rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7dcea0;
}

.cfo-res-card-hint {
	font-size: 0.74rem;
	line-height: 1.35;
	color: rgba(245, 240, 230, 0.52);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cfo-res-card-go {
	margin-top: 0.28rem;
	padding-top: 0;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #b8943f;
}

.cfo-res-cta {
	padding: 1.15rem 0 2.25rem;
}

.cfo-res-cta-in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 1.5rem;
	padding: 0.85rem 1.15rem 0.9rem 1.1rem;
	border-left: 2px solid #b8943f;
	border-bottom: 1px solid rgba(184, 148, 63, 0.22);
	border-radius: 0;
	background: linear-gradient(90deg, rgba(184, 148, 63, 0.08) 0%, rgba(12, 12, 12, 0.35) 42%, rgba(12, 12, 12, 0) 100%);
}

.cfo-res-cta-copy {
	min-width: 0;
}

.cfo-res-cta-in .cfo-res-kicker {
	margin: 0 0 0.2rem;
}

.cfo-res-cta-in h2 {
	margin: 0 0 0.2rem;
	font-family: "Playfair Display", "Playfair Fallback", Georgia, serif;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.cfo-res-cta-in p:last-child {
	margin: 0;
	max-width: none;
	font-size: 0.88rem;
	line-height: 1.45;
	font-weight: 300;
	color: rgba(245, 240, 230, 0.62);
}

.cfo-res-cta-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.4rem 1.05rem;
	border-radius: 999px;
	border: 1px solid #b8943f;
	background: #b8943f;
	color: #111 !important;
	font-family: "Libre Franklin", "Franklin Fallback", sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	text-decoration: none !important;
	white-space: nowrap;
}

.cfo-res-cta-btn:hover,
.cfo-res-cta-btn:focus-visible {
	background: #d4b56a;
	border-color: #d4b56a;
	color: #111 !important;
}

@media (max-width: 1100px) {
	.cfo-res-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.cfo-res-hero-head {
		grid-template-columns: 1fr;
	}

	.cfo-res-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.cfo-res-wrap {
		padding: 0 1.25rem;
	}

	.cfo-res-grid {
		grid-template-columns: 1fr;
	}

	.cfo-res-cta-in {
		grid-template-columns: 1fr;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfo-res-hero-bg {
		filter: none;
		transform: none;
	}

	.cfo-res-card,
	.cfo-res-card-media img {
		transition: none;
	}

	.cfo-res-card:hover,
	.cfo-res-card:focus-visible {
		transform: none;
	}

	.cfo-res-card:hover .cfo-res-card-media img,
	.cfo-res-card:focus-visible .cfo-res-card-media img {
		transform: none;
	}
}
