/* ============================================================
   SINGLE ARTICLE — Medium-like reading, MushSkins dark style
   Loaded on is_singular('post') (handle artfolio-article,
   filemtime version → auto cache-bust). Body: .single-post.
   Content markup is untouched — we only restyle. ALL in-content
   headings are forced to #fff.
   Design system mirrors the home page:
     Accent #cde738 · dark bg #0c1202 · Bebas Neue / Inter.
   ============================================================ */

body.single-post {
	--ar-accent: #cde738;
	--ar-rgb: 205, 231, 54;
	--ar-w: 760px;               /* Medium-like reading column */
	--ar-title-gradient: radial-gradient(ellipse at 50% 50%, #fff152 0%, #cfe636 50%, #9edb1a 100%);
	--ar-card-shadow:
		inset 0px 0.361px 0.65px -1px rgba(255,255,255,0.19),
		inset 0px 1.373px 2.472px -2px rgba(255,255,255,0.18),
		inset 0px 6px 10.8px -3px rgba(255,255,255,0.13);
	--ar-btn-shadow:
		inset 0px 0.723px 1.879px -0.333px rgba(255,255,255,0.24),
		inset 0px 2.746px 7.14px -0.667px rgba(255,255,255,0.34),
		inset 0px 12px 31.2px -1px rgba(255,255,255,0.8);
}

/* ── Page background — home recipe (#0c1202 + green glow). ── */
body.single-post {
	background-color: #0c1202 !important;
	background-image:
		radial-gradient(ellipse 110% 50% at 50% 8%, rgba(25, 62, 4, 0.6) 0%, transparent 60%),
		linear-gradient(#0c1202, #0c1202) !important;
	background-repeat: no-repeat !important;
}
body.single-post .site-content,
body.single-post .entry-content-wrap,
body.single-post #page,
body.single-post .page-wrapper { background: transparent !important; padding-top: 0; }

/* Shared centered containers */
.article-hero .container,
.article-cover .container,
.article-layout.container { max-width: var(--ar-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }
.article-related .container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.article-hero {
	position: relative;
	overflow: hidden;
	padding-top: calc(var(--header-h, 80px) + clamp(36px, 5vw, 56px));
	padding-bottom: clamp(22px, 3vw, 38px);
}
.article-hero__inner { max-width: 100%; }

.article-hero__breadcrumb {
	display: flex; align-items: center; gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 12px; color: rgba(255, 255, 255, .35);
	margin-bottom: 18px; flex-wrap: wrap;
}
.article-hero__breadcrumb a { color: rgba(255, 255, 255, .35); text-decoration: none; transition: color .2s; }
.article-hero__breadcrumb a:hover { color: var(--ar-accent); }
.article-hero__breadcrumb-sep { display: flex; align-items: center; opacity: .4; }

.article-hero__cat {
	display: inline-flex; align-items: center; gap: 5px;
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ar-accent);
	margin-bottom: 16px;
}
.article-hero__cat a { color: inherit; text-decoration: none; }

.article-hero__h1 {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(38px, 6vw, 68px);
	line-height: 1;
	letter-spacing: -.5px;
	color: #fff;
	margin: 0 0 18px;
}
.article-hero__intro {
	font-family: 'Inter', sans-serif;
	font-size: clamp(16px, 1.7vw, 19px);
	color: rgba(255, 255, 255, .62);
	line-height: 1.7;
	margin: 0 0 24px;
}
.article-hero__meta {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	font-family: 'Inter', sans-serif;
	font-size: 13px; color: rgba(255, 255, 255, .4);
}
.article-hero__meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .25); flex-shrink: 0; }

/* ── Cover image ── */
.article-cover { padding: clamp(16px, 2.5vw, 30px) 0; }
.article-cover__img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	display: block;
	border-radius: 20px;
	box-shadow: var(--ar-card-shadow);
}

/* ══════════════════════════════════════════════════════════
   LAYOUT — single column (Medium-like). Sidebar flows below;
   TOC hidden for a clean read.
══════════════════════════════════════════════════════════ */
.article-layout {
	display: block;
	padding-top: clamp(26px, 4vw, 44px);
	padding-bottom: clamp(40px, 5vw, 64px);
}
.article-body { min-width: 0; max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   ARTICLE BODY TYPOGRAPHY (Medium-like) — all headings #fff
══════════════════════════════════════════════════════════ */
.article-body {
	font-family: 'Inter', sans-serif;
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.8;
	color: rgba(255, 255, 255, .82);
}
.article-body > *:first-child { margin-top: 0; }

body.single-post .article-body :is(h1, h2, h3, h4, h5, h6),
body.single-post .entry-content :is(h1, h2, h3, h4, h5, h6) {
	color: #fff !important;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.3px;
}
.article-body h1 { font-size: clamp(30px, 4vw, 40px); margin: 1.4em 0 .5em; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.8em 0 .6em; }
.article-body h3 { font-size: clamp(21px, 2.2vw, 26px); margin: 1.6em 0 .5em; }
.article-body h4 { font-size: 20px; margin: 1.4em 0 .5em; }
.article-body h5 { font-size: 17px; margin: 1.3em 0 .4em; text-transform: uppercase; letter-spacing: .03em; }
.article-body h6 { font-size: 15px; margin: 1.2em 0 .4em; }

.article-body p { margin: 0 0 1.5em; }
.article-body strong, .article-body b { color: #fff; font-weight: 700; }
.article-body em, .article-body i { color: rgba(255, 255, 255, .85); }

.article-body a {
	color: var(--ar-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: opacity .2s ease;
}
.article-body a:hover { opacity: .75; }

.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.article-body li { margin-bottom: .6em; }
.article-body li::marker { color: var(--ar-accent); }

.article-body blockquote {
	margin: 1.8em 0;
	padding: 6px 0 6px 24px;
	border-left: 3px solid var(--ar-accent);
	color: rgba(255, 255, 255, .72);
	font-style: italic;
	font-size: 1.05em;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body img,
.article-body figure img {
	width: 100%; height: auto;
	display: block;
	border-radius: 16px;
	margin: 2em 0;
}
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255, 255, 255, .4); text-align: center; margin-top: 10px; }

.article-body code {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: .9em;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	padding: 2px 7px;
	border-radius: 6px;
	color: var(--ar-accent);
}
.article-body pre {
	background: rgba(0, 0, 0, .4);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 14px;
	padding: 18px 20px;
	overflow-x: auto;
	margin: 1.8em 0;
}
.article-body pre code { background: none; border: none; padding: 0; color: rgba(255, 255, 255, .85); }
.article-body hr { border: none; height: 1px; background: rgba(255, 255, 255, .1); margin: 2.5em 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .95em; }
.article-body th, .article-body td { border: 1px solid rgba(255, 255, 255, .1); padding: 10px 14px; text-align: left; }
.article-body th { color: #fff; background: rgba(255, 255, 255, .04); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR — below the article (TOC hidden, promo = end CTA)
══════════════════════════════════════════════════════════ */
.article-sidebar {
	position: static;
	max-width: var(--ar-w);
	margin: clamp(40px, 5vw, 56px) auto 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.article-toc { display: none; }

.article-promo {
	    margin-bottom: 20px;
	position: relative;
	overflow: hidden;
	padding: clamp(26px, 3vw, 34px);
	border: 1px solid rgba(var(--ar-rgb), .2);
	border-radius: 24px;
	background:
		radial-gradient(ellipse at 100% 0%, rgba(var(--ar-rgb), .12) 0%, transparent 55%),
		linear-gradient(180deg, rgba(20, 42, 12, .6), rgba(7, 14, 3, .92));
	box-shadow: var(--ar-card-shadow);
}
.article-promo__title { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: -.3px; color: #fff; margin-bottom: 8px; }
.article-promo__text { font-family: 'Inter', sans-serif; font-size: 14px; color: rgba(255, 255, 255, .55); line-height: 1.6; margin-bottom: 18px; }
.article-promo .btn--green {
	display: inline-flex !important;
	align-items: center; justify-content: center; gap: 8px;
	height: 52px; padding: 0 30px;
	background: var(--ar-accent) !important;
	color: #000 !important;
	font-family: 'Bebas Neue', sans-serif !important;
	font-size: 22px !important;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	border: none !important;
	border-radius: 999px !important;
	clip-path: none !important;
	box-shadow: var(--ar-btn-shadow);
	transition: transform .2s ease, filter .2s ease;
}
.article-promo .btn--green:hover { transform: scale(1.02); filter: brightness(1.04) drop-shadow(0 0 20px rgba(var(--ar-rgb), .4)); }

/* ══════════════════════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════════════════════ */
.article-related { border-top: 1px solid rgba(255, 255, 255, .08); padding: clamp(40px, 5vw, 70px) 0 clamp(56px, 8vw, 96px); }
.article-related__eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ar-accent); margin-bottom: 10px;
}
.article-related__title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(28px, 4vw, 48px); color: #fff; letter-spacing: -.5px; margin-bottom: clamp(24px, 3vw, 36px); }
.article-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Blog card (related posts grid) ── */
.blog-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
	border: 1px solid rgba(var(--ar-rgb), .12);
	border-radius: 24px;
	overflow: hidden;
	text-decoration: none;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.blog-card:hover {
	transform: translateY(-5px);
	border-color: rgba(var(--ar-rgb), .34);
	box-shadow: 0 16px 44px rgba(0,0,0,.4), 0 0 24px rgba(var(--ar-rgb), .08);
}
.blog-card__img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: rgba(255,255,255,.03); }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.05); }
.blog-card__cat-badge {
	position: absolute; top: 12px; left: 12px;
	background: var(--ar-accent); color: #000;
	font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
}
.blog-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.blog-card__title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 22px; font-weight: 400; letter-spacing: .01em; text-transform: uppercase;
	color: #fff; line-height: 1.05;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .2s ease;
}
.blog-card:hover .blog-card__title { color: var(--ar-accent); }
.blog-card__text { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.blog-card__date { font-family: 'Inter', sans-serif; font-size: 11px; color: rgba(255,255,255,.35); }
.blog-card__cta { display: inline-flex; align-items: center; gap: 5px; font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--ar-accent); }

/* ── Match blog page (.sf-blog-page) card accent exactly ── */
.article-related__grid { gap: clamp(14px, 2vw, 24px); }
.article-related .blog-card__cat-badge {
	color: #aaff00;
	background: rgba(170, 255, 0, .12);
	border-color: rgba(170, 255, 0, .28);
}
.article-related .blog-card:hover {
	border-color: rgba(170, 255, 0, .22);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
.article-related .blog-card:hover .blog-card__title { color: #aaff00; }
.article-related .blog-card__cta { color: rgba(170, 255, 0, .65); }
.article-related .blog-card:hover .blog-card__cta { color: #aaff00; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
	.article-related__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	.article-body a,
	.article-promo .btn--green,
	.blog-card,
	.blog-card__img { transition: none !important; }
}
