/* Lubana Single Post Layout — matches /blogs/ */

.lt-single {
	--lt-orange: #f26522;
	--lt-orange-dark: #d9531a;
	--lt-ink: #1c1c1c;
	--lt-text: #555;
	--lt-line: #e6e6e6;
	--lt-panel: #f3f3f3;
	--lt-wrap: 1180px;
	color: var(--lt-text);
}

body.lt-single-layout { overflow-x: clip; }

/* Break out of any theme container so full-width sections stay full width */
.lt-hero,
.lt-related,
.lt-fullbleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.lt-wrap {
	max-width: var(--lt-wrap);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ---------- Hero ---------- */
.lt-hero {
	padding: 70px 0 60px;
	background:
		linear-gradient(90deg, #fff 0%, #fff 35%, rgba(255,255,255,.85) 55%, rgba(255,255,255,0) 85%),
		var(--lt-hero-img, none) right center / cover no-repeat,
		var(--lt-panel);
}
.lt-hero__cat {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--lt-orange);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.lt-hero__title {
	max-width: 680px;
	margin: 0 0 16px;
	color: var(--lt-ink);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
}
.lt-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: var(--lt-text);
}
.lt-breadcrumb a { color: var(--lt-ink); text-decoration: none; }
.lt-breadcrumb a:hover { color: var(--lt-orange); }
.lt-breadcrumb [aria-current] {
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Two-column layout ---------- */
.lt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 50px;
	padding-top: 60px;
	padding-bottom: 70px;
	align-items: start;
}

/* ---------- Article ---------- */
.lt-feature {
	position: relative;
	margin: 0 0 24px;
}
.lt-feature img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.lt-date-badge {
	position: absolute;
	left: 16px;
	bottom: -18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: var(--lt-orange);
	color: #fff;
	font-size: 11px;
	line-height: 1.1;
	text-transform: uppercase;
}
.lt-date-badge strong { font-size: 20px; }

.lt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin: 34px 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--lt-line);
	font-size: 14px;
}
.lt-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lt-meta img { border-radius: 50%; }

.lt-content { font-size: 16px; line-height: 1.75; }
.lt-content h2 {
	margin: 44px 0 16px;
	color: var(--lt-ink);
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.25;
}
.lt-content h3 {
	margin: 32px 0 12px;
	color: var(--lt-ink);
	font-size: 20px;
}
.lt-content p { margin: 0 0 18px; }
.lt-content ul,
.lt-content ol { margin: 0 0 20px; padding-left: 22px; }
.lt-content li { margin-bottom: 6px; }
.lt-content li::marker { color: var(--lt-orange); }
.lt-content a { color: var(--lt-orange); }
.lt-content strong { color: var(--lt-ink); }
.lt-content img { max-width: 100%; height: auto; }

/* CTA box */
.lt-cta-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 44px 0 32px;
	padding: 28px 30px;
	background: var(--lt-ink);
	border-left: 5px solid var(--lt-orange);
	color: #ccc;
}
.lt-cta-box h2 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.lt-cta-box p { margin: 0; font-size: 15px; }

/* Buttons */
.lt-btn {
	display: inline-block;
	padding: 12px 24px;
	background: var(--lt-orange);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s;
}
.lt-btn:hover { background: var(--lt-orange-dark); }
.lt-btn--sm { padding: 8px 16px; font-size: 13px; }
.lt-btn--block { display: block; text-align: center; }

.lt-btn:focus-visible,
.lt-single a:focus-visible {
	outline: 2px solid var(--lt-orange);
	outline-offset: 3px;
}

/* Tags + share */
.lt-article__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid var(--lt-line);
	border-bottom: 1px solid var(--lt-line);
}
.lt-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 12px;
	background: var(--lt-panel);
	color: var(--lt-ink);
	font-size: 13px;
	text-decoration: none;
}
.lt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; }
.lt-share span { color: var(--lt-ink); font-weight: 600; }
.lt-share a { color: var(--lt-text); text-decoration: none; }
.lt-share a:hover { color: var(--lt-orange); }

/* Author box */
.lt-author {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin: 36px 0;
	padding: 26px;
	background: var(--lt-panel);
}
.lt-author img { flex-shrink: 0; border-radius: 50%; }
.lt-author__label { margin: 0 0 2px; font-size: 13px; color: var(--lt-orange); font-weight: 600; }
.lt-author__name { margin: 0 0 8px; color: var(--lt-ink); font-size: 20px; }
.lt-author p:last-child { margin-bottom: 0; }

/* Prev / next */
.lt-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.lt-postnav a {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--lt-line);
	color: var(--lt-ink);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}
.lt-postnav a:hover { border-color: var(--lt-orange); }
.lt-postnav small { display: block; margin-bottom: 4px; color: var(--lt-orange); font-weight: 500; }
.lt-postnav__next { grid-column: 2; text-align: right; }

/* ---------- Sidebar ---------- */
.lt-sidebar { align-self: stretch; }
.lt-sidebar__inner {
	height: 100%;
	display: grid;
	gap: 24px;
	align-content: start;
}
.lt-widget {
	padding: 24px;
	background: #ebebeb;
	border: 1px solid #d6d6d6;
	border-top: 4px solid var(--lt-orange);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
	font-size: 14px;
	line-height: 1.6;
}
.lt-widget__title {
	margin: 0 0 10px;
	color: var(--lt-ink);
	font-size: 18px;
}
.lt-widget p { margin: 0 0 14px; }

.lt-checklist { margin: 0 0 16px; padding: 0; list-style: none; }
.lt-checklist li {
	position: relative;
	margin-bottom: 6px;
	padding-left: 24px;
	color: var(--lt-ink);
}
.lt-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--lt-orange)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E")
		center / 10px no-repeat;
}
.lt-widget__phone {
	display: block;
	margin-top: 12px;
	text-align: center;
	color: var(--lt-ink);
	font-weight: 600;
	text-decoration: none;
}

.lt-recent { margin: 0; padding: 0; list-style: none; }
.lt-recent li + li { margin-top: 14px; }
.lt-recent a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.lt-recent img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.lt-recent strong { display: block; color: var(--lt-ink); font-size: 14px; line-height: 1.35; }
.lt-recent a:hover strong { color: var(--lt-orange); }
.lt-recent small { color: var(--lt-text); font-size: 12px; }

/* ---------- Table of contents ---------- */
.lt-content h2,
.lt-content h3 { scroll-margin-top: 120px; }

@media (prefers-reduced-motion: no-preference) {
	html:has(.lt-single) { scroll-behavior: smooth; }
}

/* Sidebar TOC stays pinned while the reader scrolls the article */
.lt-toc--sidebar {
	position: sticky;
	top: 110px; /* clears the sticky header */
	z-index: 2;
	order: -1;
}
.lt-toc__list {
	max-height: calc(100vh - 220px);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	counter-reset: toc;
}
.lt-toc__item { margin: 0; }
.lt-toc__item a {
	display: block;
	padding: 7px 0 7px 12px;
	border-left: 3px solid #cfcfcf;
	color: var(--lt-ink);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s, border-color .15s;
}
.lt-toc__item--h3 a { padding-left: 26px; font-size: 13px; color: var(--lt-text); }
.lt-toc__item a:hover { color: var(--lt-orange); }
.lt-toc__item a.is-active {
	border-left-color: var(--lt-orange);
	color: var(--lt-orange);
	font-weight: 600;
}

/* Collapsible TOC above the content — shown on tablet/mobile only */
.lt-toc--inline {
	display: none;
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #ebebeb;
	border: 1px solid #d6d6d6;
	border-top: 4px solid var(--lt-orange);
}
.lt-toc--inline summary {
	color: var(--lt-ink);
	font-weight: 700;
	cursor: pointer;
}
.lt-toc--inline[open] summary { margin-bottom: 10px; }
.lt-toc--inline .lt-toc__list { max-height: none; }

/* ---------- Related posts (same as /blogs/ cards) ---------- */
.lt-related {
	padding: 60px 0 70px;
	background: #fafafa;
	border-top: 1px solid var(--lt-line);
}
.lt-related__title {
	margin: 0 0 30px;
	color: var(--lt-ink);
	font-size: 28px;
	text-align: center;
}
.lt-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}
.lt-card {
	padding: 16px 16px 22px;
	background: var(--lt-panel);
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.lt-card__img { position: relative; display: block; margin-bottom: 30px; }
.lt-card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.lt-card__title { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.lt-card__title a { color: var(--lt-ink); text-decoration: none; }
.lt-card__title a:hover { color: var(--lt-orange); }
.lt-card__excerpt { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.lt-layout { grid-template-columns: 1fr; gap: 40px; }
	.lt-sidebar__inner { height: auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.lt-toc--sidebar { display: none; }
	.lt-toc--inline { display: block; }
	.lt-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.lt-hero { padding: 44px 0 40px; background: var(--lt-panel); }
	.lt-layout { padding-top: 36px; }
	.lt-cta-box { flex-direction: column; align-items: flex-start; }
	.lt-postnav { grid-template-columns: 1fr; }
	.lt-postnav__next { grid-column: auto; text-align: left; }
	.lt-related__grid { grid-template-columns: 1fr; }
	.lt-author { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.lt-btn,
	.lt-toc__item a { transition: none; }
}
