/**
 * KlaymanToskes — Single Blog Post Styles
 * Feb 2026
 *
 * Enqueued conditionally on is_singular('post') via functions.php.
 * Handles: light nav override, editorial post hero, author byline, TOC timeline.
 */

/* ===============================
   LIGHT NAV — Blog Posts
   Override the global transparent/dark nav for white-background pages.
   =============================== */

.kt-single .site-header {
	background: #fff !important;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.kt-single .site-header .site-logo img,
.kt-single .site-header .custom-logo,
.kt-single .navigation-branding img {
	filter: none !important;
}

.kt-single ul#menu-main-menu a {
	color: rgba(8,16,28,0.6) !important;
}

.kt-single ul#menu-main-menu a:hover,
.kt-single ul#menu-main-menu li.current-menu-item > a {
	color: #08101c !important;
}

.kt-single ul#menu-main-menu .sub-menu {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.kt-single ul#menu-main-menu .sub-menu a {
	color: rgba(8,16,28,0.5) !important;
}

.kt-single ul#menu-main-menu .sub-menu a:hover {
	color: #08101c !important;
	background: rgba(0,0,0,0.03);
}

.kt-single .site-header .search-item a {
	color: rgba(8,16,28,0.5) !important;
}

.kt-single .site-header .search-item a:hover {
	color: #08101c !important;
}

.kt-single .menu-toggle,
.kt-single .menu-toggle .mobile-menu {
	color: #08101c !important;
}

/* News banner — light on single posts */
body.kt-single div#global-header-news {
	background: #fff !important;
	border-top: 1px solid rgba(0,0,0,0.06) !important;
	border-bottom: 1px solid rgba(0,0,0,0.06) !important;
	padding: 0 !important;
}

body.kt-single div#global-header-news #global-header-news-inner span,
body.kt-single div#global-header-news #global-header-news-inner a {
	color: rgba(8,16,28,0.6) !important;
}

body.kt-single div#global-header-news #global-header-news-inner span.news-banner-badge {
	color: #fff !important;
	background: #b7322c !important;
}

body.kt-single div#global-header-news .news-banner-title {
	color: rgba(8,16,28,0.6) !important;
}

body.kt-single div#global-header-news .news-banner-cta {
	color: rgba(8,16,28,0.35) !important;
}

body.kt-single div#global-header-news .news-banner-cta:hover {
	color: #08101c !important;
}

/* Market ticker — no changes needed, already dark bg */

/* Remove the negative margin-top that hero pages use */
.kt-single .global-hero-banner {
	display: none;
}

/* Mobile nav overrides */
@media (max-width: 768px) {
	.kt-single .main-navigation .main-nav ul li a {
		color: rgba(8,16,28,0.6) !important;
	}
	.kt-single .main-navigation .main-nav ul li a:hover {
		color: #08101c !important;
	}
	.kt-single .navigation-branding img,
	.kt-single .site-logo.mobile-header-logo img {
		filter: none !important;
	}
}

/* ===============================
   POST HERO — Editorial Redesign
   =============================== */

/* Hero entry animation */
@keyframes postHeroReveal {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}

.post-hero-banner .meta-data,
.post-hero-banner h1,
.post-hero-banner #overview,
.post-hero-banner .mobile-author-byline,
.post-hero-banner a.button {
	opacity: 0;
	animation: postHeroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.post-hero-banner .meta-data       { animation-delay: 0.1s; }
.post-hero-banner h1               { animation-delay: 0.25s; }
.post-hero-banner #overview        { animation-delay: 0.4s; }
.post-hero-banner .mobile-author-byline { animation-delay: 0.55s; }
.post-hero-banner a.button         { animation-delay: 0.65s; }

.post-hero-banner {
	background: #fff;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.post-hero-banner .inner-container {
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
	padding: 72px 48px 64px;
}

/* Eyebrow: date + category */
.post-hero-banner .meta-data {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.post-hero-banner .meta-data::before,
.post-hero-banner .meta-data::after {
	content: '';
	width: 32px;
	height: 1px;
	background: rgba(8,16,28,0.12);
}

.post-hero-banner .post-date {
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: rgba(8,16,28,0.35);
}

.post-hero-banner .categories {
	display: inline-flex;
	gap: 12px;
}

.post-hero-banner .categories a {
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #b7322c;
	text-decoration: none;
	transition: color 0.3s;
}

.post-hero-banner .categories a:hover {
	color: #d43b34;
}

/* Separator between date and category */
.post-hero-banner .meta-separator {
	width: 1px;
	height: 12px;
	background: rgba(8,16,28,0.12);
}

/* H1 — Cormorant editorial */
.post-hero-banner h1 {
	font-family: 'Cormorant Garamond', 'Source Serif Pro', serif;
	font-size: 56px;
	line-height: 1.12;
	font-weight: 400;
	letter-spacing: -0.5px;
	color: #08101c;
	margin: 0 0 24px;
}

.post-hero-banner h1::after {
	content: '';
	display: block;
	width: 56px;
	height: 1px;
	background: rgba(8,16,28,0.12);
	margin: 28px auto 0;
}

/* Blog intro / overview */
.post-hero-banner #overview {
	max-width: 620px;
	margin: 24px auto 32px;
}

.post-hero-banner #overview p {
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.8;
	color: rgba(8,16,28,0.5);
	margin: 0;
}

/* CTA button */
.post-hero-banner a.button {
	background: #b7322c !important;
	color: #fff !important;
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	padding: 16px 48px !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	transition: background 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.post-hero-banner a.button:hover {
	background: #d43b34 !important;
}

/* ===============================
   POST BODY
   =============================== */

/* Content + sidebar entry animation — opacity only, no transform (transform breaks fixed positioning) */
.kt-single .site-content {
	opacity: 0;
	animation: postContentFade 0.8s ease 0.8s forwards;
}

@keyframes postContentFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.kt-single .inside-article {
	padding: 0px 20px;
}

/* Full-width page wrapper — fixes CTA bar/footer overlap */
.kt-single div#page {
	width: 100% !important;
	max-width: none;
	background: #fff;
}

/* Re-center content within full-width wrapper */
.kt-single .site-content {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 48px;
}

@media (max-width: 768px) {
	.kt-single .site-content {
		padding: 0;
	}
}

.kt-single .entry-content {
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.9;
	color: #1a1a1a;
}

.kt-single .entry-content h2 {
	font-family: 'Cormorant Garamond', 'Source Serif Pro', serif;
	font-size: 36px;
	font-weight: 500;
	color: #08101c;
	margin-top: 48px;
	margin-bottom: 16px;
	line-height: 1.2;
}

.kt-single .entry-content h3 {
	font-family: 'Cormorant Garamond', 'Source Serif Pro', serif;
	font-size: 28px;
	font-weight: 500;
	color: #08101c;
	margin-top: 36px;
	margin-bottom: 12px;
	line-height: 1.25;
}

.kt-single .entry-content h4 {
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(8,16,28,0.5);
	margin-top: 32px;
	margin-bottom: 12px;
}

.kt-single .entry-content a {
	color: #b7322c;
	text-decoration: underline;
	text-decoration-color: rgba(183,50,44,0.3);
	text-underline-offset: 2px;
	transition: text-decoration-color 0.3s;
}

.kt-single .entry-content a:hover {
	text-decoration-color: #b7322c;
}

.kt-single .entry-content blockquote {
	border-left: 3px solid #b7322c;
	padding: 0 0 0 24px;
	margin: 32px 0;
}

.kt-single .entry-content blockquote p {
	font-family: 'Cormorant Garamond', 'Source Serif Pro', serif;
	font-size: 24px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(8,16,28,0.7);
}

/* ===============================
   AUTHOR BYLINE — Left Sidebar
   =============================== */

#left-sidebar {
	position: relative;
	padding-top: 40px;
}

.author-byline {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 16px;
}

.author-byline.is-fixed {
	position: fixed;
	left: var(--ab-left);
	width: var(--ab-width);
	z-index: 5;
}

.author-byline.is-stuck-bottom {
	position: absolute;
	left: 0;
	right: 0;
}

.author-byline > img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	display: block;
	z-index: 1;
}

.author-byline .author-details {
	z-index: 1;
}

.author-byline .author-info {
	padding: 20px 10px;
}

.author-byline .author-details span {
	display: block;
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(8,16,28,0.35);
	margin-bottom: 6px;
}

.author-byline .author-details h3 {
	margin: 0 0 16px 0;
	font-family: 'Cormorant Garamond', 'Source Serif Pro', serif;
	font-size: 22px;
	font-weight: 500;
	color: #08101c;
}

.author-byline .author-details p {
	margin: auto 0;
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(8,16,28,0.5);
}

.author-byline .social-icons {
	display: flex;
	gap: 12px;
	padding: 10px 10px;
	border-top: 1px solid rgba(0,0,0,0.06);
}

.author-byline .social-icons a {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	transition: all .15s ease;
	color: rgba(8,16,28,0.3);
}

.author-byline .social-icons a:hover {
	transform: translateY(-1px);
	background: rgba(0,0,0,0.03);
	border-radius: 5px;
	color: #08101c;
}

.author-byline .social-icons .icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 768px) {
	.author-byline {
		padding: 24px 20px;
		max-width: 100%;
	}
	.author-byline > img {
		width: 100%;
		height: 180px;
	}
}

/* ===============================
   TABLE OF CONTENTS — Timeline
   =============================== */

:root {
	--toc-navy: #08101c;
	--toc-light-gray: rgba(0,0,0,0.06);
	--toc-text: #1a1a1a;
	--toc-dot: 14px;
	--toc-gap: 20px;
	--toc-left-pad: 28px;
}

.toc-card {
	position: sticky;
	top: 96px;
	padding: 16px;
}

.toc-title {
	margin: 0 0 10px;
	color: #08101c;
	font-weight: 600;
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

#lgd-toc {
	max-height: 62vh;
	overflow: auto;
	padding-right: 4px;
}

@media (max-width: 1024px) {
	.toc-card { position: relative; top: 0; }
	#lgd-toc { max-height: none; overflow: visible; }
}

/* Timeline list */
.toc-timeline { list-style: none; margin: 0; padding: 0; }
ul.toc-steps { margin-left: 0; }

.toc-step {
	position: relative;
	display: flex;
	align-items: center;
	padding-left: var(--toc-left-pad);
	margin: calc(var(--toc-gap) * .5) 0;
}

.toc-dot {
	position: absolute; left: 0; top: 50%;
	transform: translateY(-50%);
	width: var(--toc-dot); height: var(--toc-dot);
	border-radius: 999px;
	background: var(--toc-light-gray);
	z-index: 1;
}

.toc-dot::before,
.toc-dot::after {
	content: "";
	position: absolute; left: 50%; transform: translateX(-50%);
	width: 2px; background: var(--toc-light-gray); z-index: 0;
}
.toc-dot::before { bottom: 50%; height: var(--seg-up); }
.toc-dot::after { top: 50%; height: var(--seg-down); }

.toc-step:first-child .toc-dot::before { display: none; }
.toc-step:last-child .toc-dot::after { display: none; }

.toc-link {
	display: inline-block;
	padding: .55em 1.35em;
	color: var(--toc-text);
	text-decoration: none;
	font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5em;
	transition: background 0.3s;
}

.toc-link:hover {
	background: rgba(0,0,0,0.03);
}

/* States */
.toc-step.is-past .toc-dot,
.toc-step.is-active .toc-dot { background: var(--toc-navy); }
.toc-step.is-past .toc-dot::before,
.toc-step.is-past .toc-dot::after,
.toc-step.is-active .toc-dot::before,
.toc-step.is-active .toc-dot::after { background: var(--toc-navy); }
.toc-step.is-active .toc-link {
	background: var(--toc-navy);
	color: #fff;
	border-radius: 4px;
}

/* TOC sticky states */
#right-sidebar {
	position: relative;
	padding-top: 40px;
}

.toc-card.is-fixed {
	position: fixed;
	left: var(--toc-left, auto);
	width: var(--toc-width, auto);
	z-index: 20;
}

.toc-card.is-stuck-bottom {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
}

@media (max-width: 1024px) {
	.toc-card.is-fixed,
	.toc-card.is-stuck-bottom { position: static; width: auto; left: auto; }
}

/* Mobile author byline — hidden on desktop */
.mobile-author-byline {
	display: none;
}

/* ===============================
   MOBILE ≤ 768px
   =============================== */
@media (max-width: 768px) {
	
	#left-sidebar,
	#right-sidebar {
		display: none;
	}

	.post-hero-banner .inner-container {
		padding: 32px 20px 32px;
		text-align: left;
	}

	/* Meta row — left-aligned, no flanking lines */
	.post-hero-banner .meta-data {
		display: flex;
		justify-content: flex-start;
		margin-bottom: 16px;
		gap: 10px;
	}

	.post-hero-banner .meta-data::before,
	.post-hero-banner .meta-data::after {
		display: none;
	}

	.post-hero-banner .post-date,
	.post-hero-banner .categories a {
		font-size: 10px;
		letter-spacing: 2px;
	}

	/* H1 — left-aligned, tighter */
	.post-hero-banner h1 {
		font-size: 32px;
		line-height: 1.15;
		margin-bottom: 16px;
		text-align: left;
	}

	.post-hero-banner h1::after {
		display: none;
	}

	/* Intro text */
	.post-hero-banner #overview {
		margin: 12px 0 24px;
		max-width: none;
	}

	.post-hero-banner #overview p {
		font-size: 15px;
		line-height: 1.7;
		text-align: left;
	}

	/* Mobile author byline — visible */
	.mobile-author-byline {
		display: flex;
		align-items: center;
		gap: 14px;
		margin-bottom: 24px;
		padding: 16px 0;
		border-top: 1px solid rgba(8,16,28,0.06);
		border-bottom: 1px solid rgba(8,16,28,0.06);
	}

	.mobile-author-byline img {
		width: 56px;
		height: 56px;
		border-radius: 50%;
		object-fit: cover;
		flex-shrink: 0;
	}

	.mobile-author-byline .mobile-author-info {
		display: flex;
		flex-direction: column;
		gap: 1px;
	}

	.mobile-author-byline .mobile-author-info strong {
		font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
		font-size: 14px;
		font-weight: 600;
		color: #08101c;
	}

	.mobile-author-byline .mobile-author-info span {
		font-family: 'Outfit', 'franklin-gothic-atf', sans-serif;
		font-size: 12px;
		font-weight: 400;
		color: rgba(8,16,28,0.45);
		line-height: 1.4;
	}

	/* CTA button — full width */
	.post-hero-banner a.button {
		width: 100%;
		justify-content: center;
	}

	.kt-single .entry-content h2 {
		font-size: 28px;
		margin-top: 36px;
	}

	.kt-single .entry-content h3 {
		font-size: 22px;
	}

	.kt-single .entry-content blockquote p {
		font-size: 20px;
	}
}