/*
 * Wolfstead Content Engine public styles.
 * Uses the Wolfstead theme variables when available and supplies safe fallbacks.
 */
:root {
	--wce-bg: var(--bg-main, #162019);
	--wce-bg-dark: var(--bg-dark, #141e17);
	--wce-bg-deep: var(--bg-darker, #0e1511);
	--wce-card: var(--card-bg, #373c29);
	--wce-gold: var(--gold, #c89b52);
	--wce-gold-light: var(--gold-light, #ecda75);
	--wce-text: var(--text-white, #fff);
	--wce-muted: var(--text-muted, rgba(255, 255, 255, .8));
	--wce-faint: var(--text-faint, rgba(255, 255, 255, .58));
	--wce-border: var(--border-light, rgba(255, 255, 255, .16));
	--wce-serif: "Merriweather", Georgia, serif;
	--wce-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wce-hub,
.wce-article,
.wce-taxonomy-archive {
	background: var(--wce-bg);
	color: var(--wce-text);
	font-family: var(--wce-sans);
}

.wce-shell {
	width: min(100% - 48px, 1280px);
	margin-inline: auto;
}

.wce-kicker {
	margin: 0 0 10px;
	color: var(--wce-gold-light);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.wce-hub-hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 80px;
	border-bottom: 1px solid var(--wce-border);
	background:
		radial-gradient(circle at 80% 25%, rgba(200, 155, 82, .14), transparent 32%),
		linear-gradient(135deg, #0e1711 0%, #1e2b20 62%, #252d1b 100%);
}

.wce-hub-hero::after {
	position: absolute;
	right: -80px;
	bottom: -165px;
	width: 440px;
	height: 440px;
	border: 1px solid rgba(200, 155, 82, .16);
	border-radius: 50%;
	box-shadow: 0 0 0 55px rgba(200, 155, 82, .025), 0 0 0 110px rgba(200, 155, 82, .018);
	content: "";
	pointer-events: none;
}

.wce-hub-hero .wce-shell {
	position: relative;
	z-index: 1;
}

.wce-hub-hero h1,
.wce-article-hero h1 {
	max-width: 900px;
	margin: 0;
	color: #fff;
	font-family: var(--wce-serif);
	font-size: clamp(42px, 6vw, 74px);
	line-height: 1.07;
	letter-spacing: -.035em;
}

.wce-hub-hero > .wce-shell > p:not(.wce-kicker),
.wce-term-description {
	max-width: 730px;
	margin: 24px 0 0;
	color: var(--wce-muted);
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.7;
}

.wce-guide-search {
	display: flex;
	max-width: 680px;
	margin-top: 36px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(8px);
}

.wce-guide-search input {
	min-width: 0;
	flex: 1;
	padding: 12px 20px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font-size: 15px;
}

.wce-guide-search input::placeholder {
	color: rgba(255, 255, 255, .56);
}

.wce-guide-search button,
.wce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--wce-gold);
	color: #151e18;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .035em;
	transition: transform .2s, background .2s;
}

.wce-guide-search button:hover,
.wce-button:hover {
	background: var(--wce-gold-light);
	color: #151e18;
	transform: translateY(-1px);
}

.wce-pillar-nav {
	position: sticky;
	z-index: 20;
	top: 0;
	border-bottom: 1px solid var(--wce-border);
	background: rgba(14, 21, 17, .96);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
	backdrop-filter: blur(12px);
}

.admin-bar .wce-pillar-nav {
	top: 32px;
}

.wce-pillar-nav .wce-shell {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-block: 14px;
	scrollbar-width: thin;
}

.wce-pillar-nav a {
	flex: 0 0 auto;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--wce-muted);
	font-size: 13px;
	font-weight: 600;
}

.wce-pillar-nav a:hover,
.wce-pillar-nav a.is-active {
	border-color: rgba(200, 155, 82, .5);
	background: rgba(200, 155, 82, .12);
	color: var(--wce-gold-light);
}

.wce-featured-section,
.wce-guide-section {
	padding-block: 72px;
}

.wce-featured-section + .wce-guide-section {
	padding-top: 14px;
}

.wce-featured-card {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
	overflow: hidden;
	min-height: 470px;
	border: 1px solid rgba(200, 155, 82, .26);
	border-radius: 24px;
	background: var(--wce-bg-dark);
	box-shadow: 0 24px 65px rgba(0, 0, 0, .2);
}

.wce-featured-image {
	min-height: 390px;
	background-color: var(--wce-card);
	background-position: center;
	background-size: cover;
}

.wce-featured-copy {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 5vw, 64px);
}

.wce-badge {
	display: inline-flex;
	padding: 7px 11px;
	border: 1px solid rgba(200, 155, 82, .5);
	border-radius: 999px;
	background: rgba(200, 155, 82, .12);
	color: var(--wce-gold-light);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wce-card-pillar {
	display: block;
	margin: 18px 0 8px;
	color: var(--wce-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wce-featured-copy h2,
.wce-section-heading h2,
.wce-faqs h2,
.wce-sources h2,
.wce-author h2 {
	margin: 0;
	color: #fff;
	font-family: var(--wce-serif);
	line-height: 1.25;
}

.wce-featured-copy h2 {
	font-size: clamp(28px, 3vw, 42px);
}

.wce-featured-copy > p {
	margin: 20px 0;
	color: var(--wce-muted);
	font-size: 16px;
	line-height: 1.75;
}

.wce-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	color: var(--wce-faint);
	font-size: 12px;
}

.wce-card-meta > * + *::before {
	margin-right: 18px;
	color: var(--wce-gold);
	content: "•";
}

.wce-text-link {
	margin-top: 25px;
	color: var(--wce-gold-light);
	font-size: 14px;
	font-weight: 700;
}

.wce-text-link span {
	display: inline-block;
	transition: transform .2s;
}

.wce-text-link:hover span {
	transform: translateX(4px);
}

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

.wce-section-heading h2 {
	font-size: clamp(28px, 3vw, 40px);
}

.wce-section-heading > span {
	color: var(--wce-faint);
	font-size: 13px;
}

.wce-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.wce-card {
	overflow: hidden;
	border: 1px solid var(--wce-border);
	border-radius: 16px;
	background: var(--wce-bg-dark);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
	transition: transform .25s, border-color .25s;
}

.wce-card:hover {
	border-color: rgba(200, 155, 82, .42);
	transform: translateY(-4px);
}

.wce-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--wce-card), var(--wce-bg-deep));
}

.wce-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.wce-card:hover .wce-card-image img {
	transform: scale(1.035);
}

.wce-image-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: rgba(200, 155, 82, .25);
	font-family: var(--wce-serif);
	font-size: 90px;
}

.wce-card-body {
	padding: 24px;
}

.wce-card-body .wce-card-pillar {
	margin-top: 0;
}

.wce-card h3 {
	margin: 0 0 12px;
	color: #fff;
	font-family: var(--wce-serif);
	font-size: 21px;
	line-height: 1.4;
}

.wce-card-body > p {
	margin: 0 0 18px;
	color: var(--wce-muted);
	font-size: 14px;
	line-height: 1.7;
}

.wce-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.wce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wce-border);
	border-radius: 8px;
	color: var(--wce-muted);
}

.wce-pagination .current,
.wce-pagination a:hover {
	border-color: var(--wce-gold);
	background: var(--wce-gold);
	color: #151e18;
}

.wce-empty {
	grid-column: 1 / -1;
	padding: 64px 24px;
	border: 1px dashed var(--wce-border);
	border-radius: 16px;
	text-align: center;
}

.wce-empty h2,
.wce-empty h3 {
	margin: 0 0 12px;
	color: #fff;
	font-family: var(--wce-serif);
}

.wce-empty p {
	margin-bottom: 24px;
	color: var(--wce-muted);
}

/* Single article. */
.wce-article-hero {
	padding: 52px 0 76px;
	border-bottom: 1px solid var(--wce-border);
	background:
		radial-gradient(circle at 85% 10%, rgba(200, 155, 82, .12), transparent 28%),
		var(--wce-bg-deep);
}

.wce-hero-shell {
	max-width: 980px;
}

.wce-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 42px;
	color: var(--wce-faint);
	font-size: 12px;
}

.wce-breadcrumbs a:hover {
	color: var(--wce-gold-light);
}

.wce-breadcrumbs [aria-current="page"] {
	overflow: hidden;
	max-width: 340px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wce-article-labels {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	color: var(--wce-faint);
	font-size: 12px;
}

.wce-article-hero h1 {
	max-width: 950px;
	font-size: clamp(38px, 5.4vw, 68px);
}

.wce-article-subtitle {
	max-width: 820px;
	margin: 22px 0 0;
	color: var(--wce-muted);
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.7;
}

.wce-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 26px;
	color: var(--wce-faint);
	font-size: 12px;
}

.wce-article-meta span + span::before {
	margin-right: 24px;
	color: var(--wce-gold);
	content: "•";
}

.wce-featured-wrap {
	max-width: 1120px;
	margin-top: -36px;
}

.wce-article-featured {
	overflow: hidden;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 20px;
	background: var(--wce-card);
	box-shadow: 0 24px 65px rgba(0, 0, 0, .26);
}

.wce-article-featured img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
}

.wce-article-featured figcaption {
	padding: 10px 16px;
	background: var(--wce-bg-deep);
	color: var(--wce-faint);
	font-size: 12px;
}

.wce-article-shell {
	display: grid;
	grid-template-columns: 230px minmax(0, 760px);
	gap: clamp(40px, 6vw, 84px);
	justify-content: center;
	padding-block: 64px 90px;
}

.wce-toc {
	align-self: start;
	position: sticky;
	top: 32px;
	padding: 18px;
	border: 1px solid var(--wce-border);
	border-radius: 12px;
	background: var(--wce-bg-dark);
}

.admin-bar .wce-toc {
	top: 64px;
}

.wce-toc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 0 12px;
	border: 0;
	border-bottom: 1px solid var(--wce-border);
	background: transparent;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.wce-toc ol {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.wce-toc li {
	margin: 0;
}

.wce-toc li.level-3 {
	padding-left: 12px;
}

.wce-toc a {
	display: block;
	padding: 7px 0;
	color: var(--wce-faint);
	font-size: 12px;
	line-height: 1.45;
}

.wce-toc a:hover,
.wce-toc a.is-active {
	color: var(--wce-gold-light);
}

.wce-toc.is-collapsed ol {
	display: none;
}

.wce-article-body {
	min-width: 0;
}

.wce-answer-box,
.wce-takeaways {
	margin: 0 0 34px;
	padding: 26px 28px;
	border: 1px solid rgba(200, 155, 82, .34);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(200, 155, 82, .13), rgba(55, 60, 41, .35));
}

.wce-box-label {
	margin: 0 0 10px !important;
	color: var(--wce-gold-light) !important;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wce-answer-box > p:last-child {
	margin: 0;
	color: #fff;
	font-size: 18px;
	line-height: 1.72;
}

.wce-takeaways h2 {
	margin: 0 0 14px !important;
	font-size: 23px !important;
}

.wce-takeaways ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wce-takeaways li {
	position: relative;
	margin: 9px 0;
	padding-left: 28px;
	color: var(--wce-muted);
	line-height: 1.65;
}

.wce-takeaways li::before {
	position: absolute;
	left: 0;
	color: var(--wce-gold-light);
	font-weight: 700;
	content: "✓";
}

.wce-entry-content {
	color: var(--wce-muted);
	font-size: 17px;
	line-height: 1.85;
}

.wce-entry-content > * {
	max-width: 100%;
}

.wce-entry-content h2,
.wce-entry-content h3,
.wce-entry-content h4 {
	scroll-margin-top: 40px;
	color: #fff;
	font-family: var(--wce-serif);
	line-height: 1.3;
}

.wce-entry-content h2 {
	margin: 52px 0 18px;
	font-size: clamp(27px, 3vw, 34px);
}

.wce-entry-content h3 {
	margin: 36px 0 14px;
	font-size: 23px;
}

.wce-entry-content h4 {
	margin: 28px 0 12px;
	font-size: 19px;
}

.wce-entry-content p {
	margin: 0 0 22px;
}

.wce-entry-content a {
	color: var(--wce-gold-light);
	text-decoration: underline;
	text-decoration-color: rgba(236, 218, 117, .42);
	text-underline-offset: .18em;
}

.wce-entry-content a:hover {
	text-decoration-color: currentcolor;
}

.wce-entry-content ul,
.wce-entry-content ol {
	margin: 0 0 24px 20px;
	padding-left: 18px;
}

.wce-entry-content ul {
	list-style: disc;
}

.wce-entry-content ol {
	list-style: decimal;
}

.wce-entry-content li {
	margin: 9px 0;
	padding-left: 5px;
}

.wce-entry-content blockquote {
	margin: 34px 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--wce-gold);
	color: #fff;
	font-family: var(--wce-serif);
	font-size: 20px;
	font-style: italic;
}

.wce-entry-content figure {
	margin: 34px 0;
}

.wce-entry-content img {
	height: auto;
	border-radius: 12px;
}

.wce-entry-content figcaption {
	margin-top: 8px;
	color: var(--wce-faint);
	font-size: 12px;
	text-align: center;
}

.wce-entry-content table {
	width: 100%;
	margin: 30px 0;
	border-collapse: collapse;
	font-size: 14px;
}

.wce-entry-content th,
.wce-entry-content td {
	padding: 13px 15px;
	border: 1px solid var(--wce-border);
	text-align: left;
}

.wce-entry-content th {
	background: var(--wce-card);
	color: #fff;
}

.wce-entry-content .wce-lead {
	color: #fff;
	font-size: 20px;
	line-height: 1.75;
}

.wce-faqs,
.wce-sources {
	margin-top: 62px;
	padding-top: 46px;
	border-top: 1px solid var(--wce-border);
}

.wce-faqs h2,
.wce-sources h2 {
	margin-bottom: 24px;
	font-size: 30px;
}

.wce-faq-list {
	display: grid;
	gap: 10px;
}

.wce-faq-list details {
	border: 1px solid var(--wce-border);
	border-radius: 10px;
	background: var(--wce-bg-dark);
}

.wce-faq-list summary {
	position: relative;
	padding: 18px 50px 18px 20px;
	color: #fff;
	font-weight: 700;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}

.wce-faq-list summary::-webkit-details-marker {
	display: none;
}

.wce-faq-list summary::after {
	position: absolute;
	top: 17px;
	right: 20px;
	color: var(--wce-gold);
	font-size: 20px;
	content: "+";
}

.wce-faq-list details[open] summary::after {
	content: "−";
}

.wce-faq-list details > div {
	padding: 0 20px 18px;
	color: var(--wce-muted);
	line-height: 1.7;
}

.wce-faq-list details > div p {
	margin: 0;
}

.wce-sources ol {
	margin: 0;
	padding-left: 22px;
	list-style: decimal;
}

.wce-sources li {
	margin: 10px 0;
	padding-left: 4px;
	color: var(--wce-faint);
	font-size: 14px;
}

.wce-sources a {
	color: var(--wce-gold-light);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wce-review-note {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 34px;
	padding: 14px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .05);
	color: var(--wce-faint);
	font-size: 12px;
}

.wce-review-note strong {
	color: #fff;
}

.wce-author {
	display: flex;
	gap: 18px;
	margin-top: 54px;
	padding: 24px;
	border: 1px solid var(--wce-border);
	border-radius: 14px;
	background: var(--wce-bg-dark);
}

.wce-author img {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.wce-author span {
	color: var(--wce-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wce-author h2 {
	margin: 3px 0 7px;
	font-size: 20px;
}

.wce-author p {
	margin: 0;
	color: var(--wce-muted);
	font-size: 13px;
	line-height: 1.6;
}

.wce-related-section {
	padding: 70px 0;
	border-top: 1px solid var(--wce-border);
	background: var(--wce-bg-deep);
}

.wce-related-section + .wce-related-section {
	padding-top: 0;
	border-top: 0;
}

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

.wce-product-card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	padding: 18px;
	border: 1px solid var(--wce-border);
	border-radius: 14px;
	background: var(--wce-bg-dark);
}

.wce-product-image {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: var(--wce-card);
}

.wce-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wce-product-card > div > span {
	color: var(--wce-gold);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wce-product-card h3 {
	margin: 6px 0 10px;
	color: #fff;
	font-family: var(--wce-serif);
	font-size: 17px;
	line-height: 1.35;
}

.wce-product-price {
	margin-bottom: 14px;
	color: var(--wce-gold-light);
	font-weight: 700;
}

.wce-product-card .wce-button {
	padding: 9px 15px;
	font-size: 11px;
}

.wce-taxonomy-archive .wce-guide-section {
	min-height: 420px;
}

@media (max-width: 1050px) {
	.wce-card-grid,
	.wce-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wce-article-shell {
		grid-template-columns: minmax(0, 760px);
	}

	.wce-toc {
		position: static;
	}

	.wce-product-card {
		grid-template-columns: 120px minmax(0, 1fr);
	}
}

@media (max-width: 780px) {
	.wce-shell {
		width: min(100% - 32px, 1280px);
	}

	.wce-hub-hero {
		padding: 64px 0;
	}

	.wce-featured-card {
		grid-template-columns: 1fr;
	}

	.wce-featured-image {
		min-height: 280px;
	}

	.wce-featured-copy {
		padding: 32px 24px;
	}

	.wce-card-grid,
	.wce-product-grid {
		grid-template-columns: 1fr;
	}

	.wce-article-hero {
		padding: 38px 0 60px;
	}

	.wce-breadcrumbs {
		margin-bottom: 30px;
	}

	.wce-article-shell {
		gap: 26px;
		padding-block: 44px 70px;
	}

	.wce-article-meta span + span::before {
		display: none;
	}

	.wce-entry-content {
		font-size: 16px;
	}

	.wce-answer-box,
	.wce-takeaways {
		padding: 22px 20px;
	}
}

@media (max-width: 520px) {
	.wce-guide-search {
		align-items: stretch;
		flex-direction: column;
		border-radius: 16px;
	}

	.wce-guide-search button {
		width: 100%;
	}

	.wce-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.wce-featured-section,
	.wce-guide-section {
		padding-block: 48px;
	}

	.wce-card-meta > * + *::before {
		display: none;
	}

	.wce-product-card {
		grid-template-columns: 100px minmax(0, 1fr);
	}
}
