/* ==========================================================================
   HaoLustra Blog single-post — unified layout (second-pass fix)
   Version: 20260731a
   --------------------------------------------------------------------------
   Unified 1180px shell: Article Header -> Featured Image -> content+sidebar.
   All selectors scoped under .hl-article- / .hl-blog- / .hl-guide- so they
   never leak into product/category/Hub pages or the Kadence theme.
   ========================================================================== */

.hl-article-shell,
.hl-article-shell *,
.hl-article-shell *::before,
.hl-article-shell *::after {
	box-sizing: border-box;
}

/* ---- Unified outer shell: 1180px, centered, same width for all modules - */
.hl-article-shell {
	width: min(100% - 48px, 1180px);
	margin-inline: auto;
}

/* ---- Article Header (full width of the shell — NOT 900/920/980px) ------ */
.hl-article-header {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 56px 0 36px;
	text-align: left;
	background: transparent;
}
.hl-breadcrumb {
	font-size: 14px;
	color: #6B6258;
	margin-bottom: 24px;
	line-height: 1.6;
}
.hl-breadcrumb a {
	color: #6B6258;
	text-decoration: none;
}
.hl-breadcrumb a:hover {
	text-decoration: underline;
}
.hl-breadcrumb-sep {
	margin: 0 6px;
	color: #6B6258;
}
.hl-guide-eyebrow {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #A97832;
	font-weight: 700;
	margin-bottom: 16px;
}
.hl-guide-eyebrow a {
	color: #A97832;
	text-decoration: none;
}
.hl-guide-eyebrow a:hover {
	text-decoration: underline;
}
/* H1 — uses the FULL shell width, never squeezed by the TOC */
.hl-article-title {
	width: 100%;
	max-width: none;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(50px, 4.4vw, 54px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: #111111;
	margin: 0 0 24px;
	position: static;
	opacity: 1;
	visibility: visible;
	clip: auto;
	height: auto;
	overflow: visible;
}
.hl-article-excerpt {
	max-width: 900px;
	font-size: 19px;
	line-height: 1.65;
	color: #4A4A4A;
	margin: 0;
}
.hl-article-meta {
	font-size: 14px;
	color: #6F6A61;
	margin-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	align-items: center;
}
.hl-article-meta-sep {
	margin: 0 4px;
	color: #6F6A61;
}

/* ---- Featured Image (inside the article body, after the opening paragraph) --- */
.hl-article-featured {
	width: 100%;
	margin: 32px 0 36px;
}
.hl-article-featured-img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	display: block;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}
.hl-article-featured--in-content {
	max-width: 100%;
}

/* ---- Article body: content + sidebar two-column ----------------------- */
.hl-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 48px;
	align-items: start;
	padding-bottom: 88px;
}
.hl-article-content {
	width: 100%;
	max-width: 820px;
	min-width: 0;
}

/* ---- Sidebar (sticky, but no fixed max-height on the whole column) ---- */
.hl-article-sidebar {
	width: 260px;
	min-width: 0;
	align-self: start;
	position: sticky;
	top: 92px;
}

/* ---- TOC: H2 only, single level, bounded & scrollable internally ------ */
.hl-article-toc {
	padding: 22px;
	border: 1px solid #e8e0d4;
	background: #fff;
	border-radius: 16px;
	max-height: 42vh;
	overflow-y: auto;
}
.hl-article-toc__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}
.hl-article-toc__title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #A97832;
	font-weight: 700;
}
.hl-article-toc__toggle {
	display: none; /* shown only on mobile */
}
.hl-article-toc__list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hl-article-toc__item {
	min-width: 0;
}
.hl-article-toc-link {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	color: #6F6A61;
	text-decoration: none;
	padding: 1px 0 1px 10px;
	border-left: 2px solid transparent;
	transition: color .12s ease, border-color .12s ease, padding-left .12s ease;
}
.hl-article-toc-link:hover,
.hl-article-toc-link.is-active {
	color: #A97832;
	border-left-color: #A97832;
	padding-left: 12px;
}

/* ---- Sidebar CTA card (warm cream, NOT gold promo) ------------------- */
.hl-sidebar-cta {
	margin-top: 24px;
	padding: 24px;
	background: #FBF6EE;
	border: 1px solid #E8E0D4;
	border-radius: 16px;
}
.hl-sidebar-cta__title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1.3;
	color: #111111;
	margin: 0 0 10px;
}
.hl-sidebar-cta__desc {
	font-size: 14px;
	line-height: 1.6;
	color: #4A4A4A;
	margin: 0 0 16px;
}
.hl-sidebar-cta__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ---- Related Guides (white bordered card, text only, no big images) -- */
.hl-sidebar-related {
	margin-top: 24px;
	padding: 22px;
	border: 1px solid #E8E0D4;
	background: #fff;
	border-radius: 16px;
}
.hl-sidebar-related__title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #A97832;
	font-weight: 700;
	margin: 0 0 12px;
}
.hl-sidebar-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hl-sidebar-related__item {
	border-top: 1px solid #EDE7DD;
}
.hl-sidebar-related__item:first-child {
	border-top: 0;
}
.hl-sidebar-related__link {
	display: block;
	padding: 12px 0;
	text-decoration: none;
}
.hl-sidebar-related__name {
	display: block;
	font-size: 14.5px;
	line-height: 1.4;
	color: #111111;
	font-weight: 600;
	/* cap at 3 lines so the card never overgrows */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hl-sidebar-related__link:hover .hl-sidebar-related__name {
	color: #A97832;
}
.hl-sidebar-related__meta {
	display: block;
	font-size: 12.5px;
	color: #8A8378;
	margin-top: 4px;
}

/* ---- Content typography (scoped under content) ----------------------- */
.hl-article-content p {
	font-size: 17px;
	line-height: 1.8;
	color: #4A4A4A;
	margin: 0 0 24px;
}
.hl-article-content a {
	color: #A97832;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hl-article-content ul,
.hl-article-content ol {
	margin: 0 0 28px 22px;
	padding: 0;
}
.hl-article-content li {
	font-size: 17px;
	line-height: 1.75;
	margin-bottom: 8px;
	color: #4A4A4A;
}
.hl-article-content h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3vw, 38px);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #111111;
	margin: 64px 0 20px;
	scroll-margin-top: 110px;
}
.hl-article-content h2:first-child {
	margin-top: 0;
}
.hl-article-content h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(22px, 2.2vw, 26px);
	line-height: 1.25;
	font-weight: 600;
	color: #111111;
	margin: 38px 0 14px;
	scroll-margin-top: 110px;
}
.hl-article-content img {
	max-width: 100%;
	height: auto;
}
.hl-article-content blockquote {
	margin: 1.4em 0;
	padding: 14px 22px;
	border-left: 3px solid #A97832;
	color: #54504A;
	background: #FBF6EE;
	border-radius: 0 10px 10px 0;
}
.hl-article-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #FFFFFF;
	border: 1px solid #E8E0D4;
	border-radius: 18px;
	overflow: hidden;
	margin: 30px 0 38px;
	font-size: 15.5px;
}
.hl-article-content thead th {
	background: #F8F5EF;
	color: #111111;
	font-weight: 700;
	text-align: left;
	padding: 16px 18px;
	border-bottom: 1px solid #E8E0D4;
}
.hl-article-content td {
	padding: 15px 18px;
	border-bottom: 1px solid #E8E0D4;
	color: #4A4A4A;
	vertical-align: top;
}
.hl-article-content tr:last-child td {
	border-bottom: 0;
}

/* ---- Blocks that live inside the content column ---------------------- */
.hl-article-content .hl-blog-cta {
	background: linear-gradient(135deg, #FFFFFF 0%, #F8F5EF 100%);
	border: 1px solid #E8E0D4;
	border-radius: 24px;
	padding: 36px 40px;
	margin: 48px 0;
}
.hl-blog-cta-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.3;
	color: #111111;
	margin: 0 0 12px;
}
.hl-blog-cta p {
	font-size: 16px;
	line-height: 1.7;
	color: #4A4A4A;
	margin: 0 0 22px;
}
.hl-blog-cta-actions,
.hl-guide-card-actions,
.hl-guide-bottom-cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---- Buttons (neutral / dark — NOT gold) ----------------------------- */
.hl-guide-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hl-guide-btn-primary {
	background: #111111;
	color: #FFFFFF;
	border: 1px solid #111111;
}
.hl-guide-btn-primary:hover {
	background: #2A2A2A;
}
.hl-guide-btn-secondary {
	background: #FFFFFF;
	color: #111111;
	border: 1px solid #111111;
}
.hl-guide-btn-secondary:hover {
	background: #F8F5EF;
}
.hl-guide-btn-invert.hl-guide-btn-secondary {
	background: transparent;
	color: #FFFFFF;
	border: 1px solid rgba(255, 255, 255, 0.6);
}
.hl-guide-btn-invert.hl-guide-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* ---- FAQ accordion --------------------------------------------------- */
.hl-article-content .hl-guide-faq {
	max-width: 100%;
	margin: 64px 0 0;
	padding: 0;
}
.hl-guide-faq-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 3vw, 34px);
	color: #111111;
	margin: 0 0 8px;
}
.hl-guide-faq-list {
	border-top: 1px solid #E8E0D4;
}
.hl-guide-faq-item {
	border-bottom: 1px solid #E8E0D4;
}
.hl-guide-faq-question {
	width: 100%;
	padding: 20px 0;
	background: transparent;
	border: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
	color: #111111;
	cursor: pointer;
	text-align: left;
}
.hl-guide-faq-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	position: relative;
}
.hl-guide-faq-icon::before,
.hl-guide-faq-icon::after {
	content: "";
	position: absolute;
	background: #111111;
	transition: transform .2s ease, opacity .2s ease;
}
.hl-guide-faq-icon::before {
	left: 0;
	top: 7px;
	width: 16px;
	height: 2px;
}
.hl-guide-faq-icon::after {
	left: 7px;
	top: 0;
	width: 2px;
	height: 16px;
}
.hl-guide-faq-item.is-open .hl-guide-faq-icon::after {
	transform: scaleY(0);
	opacity: 0;
}
.hl-guide-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
}
.hl-guide-faq-answer-inner {
	padding: 0 0 22px;
	font-size: 16px;
	line-height: 1.7;
	color: #4A4A4A;
}
.hl-guide-faq-item.is-open .hl-guide-faq-answer {
	max-height: 1200px;
}

/* ---- Previous / Next ------------------------------------------------ */
.hl-article-content .hl-guide-prevnext {
	max-width: 100%;
	margin: 56px 0 0;
	padding: 0;
}
.hl-guide-prevnext {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.hl-guide-pn {
	display: block;
	padding: 18px 20px;
	border: 1px solid #E8E0D4;
	border-radius: 18px;
	text-decoration: none;
	background: #FFFFFF;
}
.hl-guide-pn:hover {
	background: #F8F5EF;
}
.hl-guide-pn-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #A97832;
	margin-bottom: 6px;
}
.hl-guide-pn-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #111111;
	line-height: 1.35;
}
.hl-guide-pn-next {
	text-align: right;
}
.hl-guide-pn-empty {
	border: 0;
	background: transparent;
}

/* ---- Bottom CTA (dark) ---------------------------------------------- */
.hl-article-content .hl-guide-bottom-cta {
	max-width: 100%;
	margin: 72px 0 0;
	padding: 0;
}
.hl-guide-bottom-cta-inner {
	background: #111111;
	color: #FFFFFF;
	border-radius: 28px;
	padding: 56px 64px;
	text-align: left;
}
.hl-guide-bottom-cta-eyebrow {
	font-size: 13px;
	letter-spacing: .1em;
	color: rgba(255, 255, 255, 0.66);
	margin-bottom: 14px;
}
.hl-guide-bottom-cta-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(26px, 3vw, 34px);
	color: #FFFFFF;
	margin: 0 0 14px;
}
.hl-guide-bottom-cta-inner p {
	color: rgba(255, 255, 255, 0.72);
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 24px;
	max-width: 620px;
}

/* ---- Responsive: <= 1024px single column ---------------------------- */
@media (max-width: 1024px) {
	.hl-article-shell {
		width: min(100% - 40px, 1180px);
	}
	.hl-article-header {
		padding: 40px 0 28px;
	}
	.hl-article-title {
		font-size: clamp(32px, 4.4vw, 36px);
		line-height: 1.14;
	}
	.hl-article-excerpt {
		font-size: 18px;
	}
	.hl-article-featured {
		margin: 26px 0 30px;
	}
	.hl-article-featured-img {
		border-radius: 18px;
	}
	/* single column; use display:contents so the TOC/CTA/Related become
	   direct flex children of the layout and can be re-ordered */
	.hl-article-layout {
		display: flex;
		flex-direction: column;
		padding-bottom: 64px;
	}
	.hl-article-sidebar {
		display: contents;
	}
	.hl-article-content {
		order: 1;
		max-width: 100%;
	}
	/* TOC follows the opening body on smaller screens. */
	.hl-article-toc {
		order: 2;
		position: static;
		max-height: none;
		overflow: visible;
		margin-bottom: 28px;
	}
	.hl-article-toc__toggle {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		background: transparent;
		border: 0;
		cursor: pointer;
		font-size: 13px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .06em;
		color: #111111;
		padding: 0;
	}
	.hl-article-toc__chevron {
		width: 10px;
		height: 10px;
		border-right: 2px solid #111111;
		border-bottom: 2px solid #111111;
		transform: rotate(45deg);
		transition: transform .2s ease;
		margin-top: -3px;
	}
	.hl-article-toc.is-open .hl-article-toc__chevron {
		transform: rotate(-135deg);
		margin-top: 2px;
	}
	.hl-article-toc__list {
		display: none;
		margin-top: 12px;
	}
	.hl-article-toc.is-open .hl-article-toc__list {
		display: grid;
	}
	/* CTA and Related after the content */
	.hl-sidebar-cta {
		order: 3;
		max-width: 100%;
	}
	.hl-sidebar-related {
		order: 4;
		max-width: 100%;
	}
	.hl-article-content p,
	.hl-article-content li {
		font-size: 16px;
		line-height: 1.75;
	}
	.hl-article-content h2 {
		margin-top: 48px;
		font-size: 28px;
	}
	.hl-article-content h3 {
		font-size: 22px;
	}
	.hl-article-content .hl-guide-faq {
		padding: 0;
	}
	.hl-article-content .hl-guide-prevnext {
		padding: 0;
	}
	.hl-article-content .hl-guide-bottom-cta {
		padding: 0;
	}
	.hl-guide-bottom-cta-inner {
		padding: 34px 28px;
	}
	.hl-blog-cta {
		padding: 28px 22px;
	}
	/* tables scroll, never push the page wide */
	.hl-article-content table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-radius: 14px;
	}
	.hl-article-content thead th,
	.hl-article-content td {
		min-width: 140px;
		white-space: nowrap;
	}
}
