/* --- CSS extracted from single.php --- */
/* ── Single post: kill preloader & reset page background to dark ───────── */
#d3-flash-modal,
.d3-flash__cover,
.d3-flash__logo,
.d3-flash__bar {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	animation: none !important;
}

/* Dark page background - eliminates white gap from global body rule */
body.single,
body.single-post {
	background-color: var(--cpf-color-page-bg, #121212) !important;
}
body.single #content,
body.single-post #content {
	background-color: transparent;
}

/* =========================================================
   HERO — full-bleed, full-height, content bottom-left
   ========================================================= */
.tft-sp__hero {
	position: relative;
	width: 100%;
	height: 100svh;
	min-height: 600px;
	overflow: hidden;
}

/* ── Background media ──────────────────────────────────── */
.tft-sp__hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.tft-sp__hero-media .tft-sp__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* ── Gradient overlay: light top → heavy dark at bottom ── */
.tft-sp__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		rgba(10,10,10,0.08) 0%,
		rgba(10,10,10,0.25) 45%,
		rgba(10,10,10,0.88) 100%
	);
}

/* ── Content wrapper: pinned to bottom-left ────────────── */
.tft-sp__hero-content {
	position: relative;
	z-index: 2;
	height: 100svh;
	min-height: 600px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
}

/* Inner text block */
.tft-sp__hero-inner {
	padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
	max-width: 720px;
	width: 100%;
}

/* ── Meta row: category pill / date / read-time ─────────── */
.tft-sp__hero-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	margin-bottom: 1rem;
}

/* Yellow category pill */
.tft-sp__hero-cat {
	display: inline-block;
	background-color: var(--cpf-accent, #f5c400);
	color: #000;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	padding: 0.28em 0.65em 0.25em;
	line-height: 1.5;
}

/* Separators (// and —) */
.tft-sp__hero-sep {
	color: rgba(255,255,255,0.5);
	font-size: 0.68rem;
	font-weight: 400;
}

/* Date */
.tft-sp__hero-date {
	color: rgba(255,255,255,0.72);
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* Read time */
.tft-sp__hero-read {
	color: rgba(255,255,255,0.72);
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* ── Hero title ─────────────────────────────────────────── */
.tft-sp__hero-title {
	font-size: clamp(2.5rem, 6vw, 5.25rem);
	font-weight: 700;
	line-height: 1.03;
	color: #fff;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	text-transform: none;
}

/* Italic yellow accent em — applies to <em class="tft-sp__hero-accent"> */
.tft-sp__hero-accent {
	display: block;
	font-style: italic;
	color: var(--cpf-accent, #f5c400);
}

/* ── Sub-headline / excerpt (capped at 3 lines) ─────────── */
.tft-sp__hero-sub {
	font-size: clamp(0.875rem, 1.35vw, 1rem);
	color: rgba(255,255,255,0.72);
	line-height: 1.65;
	margin: 0 0 1.75rem;
	max-width: 520px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* ── Author strip ────────────────────────────────────────── */
.tft-sp__hero-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.tft-sp__author-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid rgba(255,255,255,0.22);
}
.tft-sp__author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tft-sp__author-info {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}
.tft-sp__author-label {
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.48);
}
.tft-sp__author-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.01em;
}

/* ── Scroll indicator (right edge, vertical) ─────────────── */
.tft-sp__hero-scroll {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	position: absolute;
	right: clamp(1.25rem, 2.5vw, 2rem);
	bottom: clamp(2rem, 4vw, 3rem);
	z-index: 3;
}
.tft-sp__scroll-label {
	font-size: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.45);
	writing-mode: vertical-rl;
}
.tft-sp__scroll-mouse {
	width: 20px;
	height: 32px;
	border: 1.5px solid rgba(255,255,255,0.32);
	border-radius: 10px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 5px;
}
.tft-sp__scroll-dot {
	width: 4px;
	height: 4px;
	background: #fff;
	border-radius: 50%;
	animation: zylyf-scroll-dot 1.7s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes zylyf-scroll-dot {
	0%   { transform: translateY(0);    opacity: 1; }
	60%  { transform: translateY(12px); opacity: 0; }
	61%  { transform: translateY(0);    opacity: 0; }
	100% { transform: translateY(0);    opacity: 1; }
}

/* =========================================================
   ARTICLE BODY — two-column layout
   ========================================================= */
.tft-sp__body {
	background: #0e0e0e;
	padding: clamp(4rem, 8vw, 7rem) 0;
}
.tft-sp__body-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: clamp(2rem, 4vw, 5rem);
	align-items: start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.tft-sp__sidebar {
	position: sticky;
	top: clamp(5rem, 8vw, 7rem);
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

/* Shared sidebar label */
.tft-sp__toc-label {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.35);
	margin: 0 0 0.85rem;
}

/* Table of Contents */
.tft-sp__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.tft-sp__toc-link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0;
	color: rgba(255,255,255,0.38);
	text-decoration: none;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	transition: color 0.2s;
	border-left: 2px solid transparent;
	padding-left: 0.6rem;
}
.tft-sp__toc-link:hover,
.tft-sp__toc-link.is-active {
	color: #fff;
	border-left-color: var(--cpf-accent, #f5c400);
}
.tft-sp__toc-num {
	font-size: 0.55rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.25);
	min-width: 1.5rem;
	flex-shrink: 0;
}
.tft-sp__toc-link.is-active .tft-sp__toc-num {
	color: var(--cpf-accent, #f5c400);
}
.tft-sp__toc-text {
	line-height: 1.3;
}

/* Share Hub */
.tft-sp__share-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.tft-sp__share-btn {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 0.85rem;
	border: 1px solid rgba(255,255,255,0.1);
	background: transparent;
	color: rgba(255,255,255,0.65);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tft-sp__share-btn:hover {
	border-color: var(--cpf-accent, #f5c400);
	color: #fff;
	background: rgba(245,196,0,0.06);
}
.tft-sp__share-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0;
	flex-shrink: 0;
}
.tft-sp__share-txt {
	font-size: 0.72rem;
}

/* Tags */
.tft-sp__tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.tft-sp__tag {
	display: inline-block;
	padding: 0.28em 0.75em;
	border: 1px solid rgba(255,255,255,0.15);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.tft-sp__tag:hover {
	border-color: var(--cpf-accent, #f5c400);
	color: var(--cpf-accent, #f5c400);
}

/* =========================================================
   ARTICLE CONTENT TYPOGRAPHY
   ========================================================= */
.tft-sp__article {
	min-width: 0;
}

/* Article sections — spacing */
.tft-sp__section,
.tft-sp__article > * + * {
	margin-top: 0;
}
.tft-sp__section + .tft-sp__section,
.tft-sp__section + .tft-sp__figure,
.tft-sp__figure + .tft-sp__section {
	margin-top: clamp(3rem, 5vw, 4.5rem);
}

/* ── Section headings ─────────────────────────────────────
   Targets both the custom class AND native h2 inside article
   ─────────────────────────────────────────────────────── */
.tft-sp__section-title,
.tft-sp__article h2:not(.tft-sp__toc-label) {
	font-size: clamp(1.6rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
}

/* h3 inside article */
.tft-sp__article h3,
.tft-sp__two-col-title,
.tft-sp__callout-title {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
	margin: 0 0 0.5rem;
}

/* ── Body paragraphs ───────────────────────────────────── */
.tft-sp__p,
.tft-sp__article p:not(.tft-sp__callout-text):not(.tft-sp__two-col-text) {
	font-size: clamp(0.9rem, 1.5vw, 1.025rem);
	line-height: 1.8;
	color: rgba(255,255,255,0.78);
	margin: 0 0 1.35rem;
}

/* ── Blockquote ────────────────────────────────────────── */
.tft-sp__blockquote,
.tft-sp__article blockquote {
	margin: 2rem 0;
	padding: 0.75rem 0 0.75rem 1.75rem;
	border-left: 3px solid var(--cpf-accent, #f5c400);
	background: transparent;
}
.tft-sp__blockquote > p,
.tft-sp__article blockquote p {
	font-size: clamp(0.925rem, 1.5vw, 1.05rem);
	font-style: italic;
	font-weight: 500;
	color: rgba(255,255,255,0.88);
	line-height: 1.65;
	margin: 0 0 0.6rem;
}
.tft-sp__cite,
.tft-sp__article blockquote cite,
.tft-sp__article blockquote footer {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6rem;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.38);
}
.tft-sp__cite::before,
.tft-sp__article blockquote cite::before {
	content: '◆';
	color: var(--cpf-accent, #f5c400);
	font-size: 0.5rem;
}

/* ── Callout box ───────────────────────────────────────── */
.tft-sp__callout {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid rgba(245,196,0,0.2);
	background: rgba(245,196,0,0.04);
	margin: 2rem 0;
}
.tft-sp__callout-icon {
	font-size: 0.6rem;
	color: var(--cpf-accent, #f5c400);
	margin-top: 0.2rem;
	flex-shrink: 0;
}
.tft-sp__callout-title {
	color: #fff;
	margin-bottom: 0.4rem;
}
.tft-sp__callout-text {
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(255,255,255,0.65);
	margin: 0;
}

/* ── Two-column process grid ───────────────────────────── */
.tft-sp__two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin: 2rem 0;
}
.tft-sp__two-col-item {
	padding: 1.5rem;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.025);
}
.tft-sp__two-col-num {
	display: block;
	font-size: 0.55rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--cpf-accent, #f5c400);
	margin-bottom: 0.6rem;
}
.tft-sp__two-col-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.5rem;
}
.tft-sp__two-col-text {
	font-size: 0.8rem;
	line-height: 1.65;
	color: rgba(255,255,255,0.55);
	margin: 0;
}

/* ── Article figures ───────────────────────────────────── */
.tft-sp__figure {
	margin: clamp(2.5rem, 4vw, 4rem) 0;
}
.tft-sp__figure-img,
.tft-sp__article figure img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}
.tft-sp__figcaption,
.tft-sp__article figcaption {
	margin-top: 0.75rem;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.3);
}

/* ── Author bio card ───────────────────────────────────── */
.tft-sp__author-bio {
	display: flex;
	gap: 1.5rem;
	padding: 2rem;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.02);
	margin-top: clamp(3rem, 5vw, 5rem);
	align-items: flex-start;
}
.tft-sp__author-bio-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid rgba(255,255,255,0.12);
}
.tft-sp__author-bio-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tft-sp__author-bio-body {
	min-width: 0;
}
.tft-sp__author-bio-label {
	display: block;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.3);
	margin-bottom: 0.35rem;
}
.tft-sp__author-bio-name {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
	margin: 0 0 0.6rem;
}
.tft-sp__author-bio-text {
	font-size: 0.825rem;
	line-height: 1.7;
	color: rgba(255,255,255,0.55);
	margin: 0 0 1rem;
}
.tft-sp__author-bio-socials {
	display: flex;
	gap: 0.5rem;
}
.tft-sp__author-bio-social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255,255,255,0.15);
	font-size: 0.58rem;
	font-weight: 700;
	color: rgba(255,255,255,0.5);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.tft-sp__author-bio-social:hover {
	border-color: var(--cpf-accent, #f5c400);
	color: var(--cpf-accent, #f5c400);
}

/* ── Page links (multipage posts) ─────────────────────── */
.tft-sp__page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.tft-sp__page-links-label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.35);
}
.tft-sp__page-link {
	display: inline-block;
	padding: 0.25em 0.65em;
	border: 1px solid rgba(255,255,255,0.15);
	font-size: 0.72rem;
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.tft-sp__page-link:hover {
	border-color: var(--cpf-accent, #f5c400);
	color: #fff;
}

/* ── Gutenberg native block overrides inside article ───── */
/* These ensure WP default blocks look like the static HTML */
.tft-sp__article .wp-block-heading {
	font-size: clamp(1.6rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
}
.tft-sp__article .wp-block-quote {
	margin: 2rem 0;
	padding: 0.75rem 0 0.75rem 1.75rem;
	border-left: 3px solid var(--cpf-accent, #f5c400);
	background: transparent;
}
.tft-sp__article .wp-block-quote p {
	font-size: clamp(0.925rem, 1.5vw, 1.05rem);
	font-style: italic;
	font-weight: 500;
	color: rgba(255,255,255,0.88);
	line-height: 1.65;
	margin: 0 0 0.5rem;
}
.tft-sp__article .wp-block-quote cite {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6rem;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.38);
}
.tft-sp__article .wp-block-quote cite::before {
	content: '◆';
	color: var(--cpf-accent, #f5c400);
	font-size: 0.5rem;
}
.tft-sp__article .wp-block-image figcaption {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.3);
	text-align: left;
}
.tft-sp__article .wp-block-separator {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.08);
	margin: 2.5rem 0;
}
.tft-sp__article a {
	color: var(--cpf-accent, #f5c400);
	text-decoration: none;
	border-bottom: 1px solid rgba(245,196,0,0.3);
	transition: border-color 0.2s;
}
.tft-sp__article a:hover {
	border-bottom-color: var(--cpf-accent, #f5c400);
}
.tft-sp__article ul,
.tft-sp__article ol {
	padding-left: 1.5rem;
	margin: 0 0 1.5rem;
	color: rgba(255,255,255,0.75);
	font-size: clamp(0.9rem, 1.5vw, 1.025rem);
	line-height: 1.8;
}
.tft-sp__article li + li {
	margin-top: 0.35rem;
}