/* Single post template v2 (body.lk-article-v2). Colors follow the site: ink #181818, link blue #234f8c, paper #fbfaf7, line #e6e2dc. */

body.lk-article-v2 {
	--lk-ink: #181818;
	--lk-muted: #6b6660;
	--lk-line: #e6e2dc;
	--lk-paper: #fbfaf7;
	--lk-blue: #234f8c;
	--lk-lapis: #1f3f86;
}

/* Theme meta row and prev/next nav are replaced by the byline and "Keep reading". */
body.lk-article-v2 .c-page__meta,
body.lk-article-v2 .c-post__nav,
body.lk-article-v2 .c-post__author {
	display: none;
}

/* ---------- Summary and byline ---------- */
body.lk-article-v2 .lk-article-head {
	margin: 0 0 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--lk-line);
}
body.lk-article-v2 .lk-article-dek {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #3d3a36;
	margin: 0 0 1rem;
}
body.lk-article-v2 .lk-article-byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--lk-muted);
	line-height: 1.4;
}
body.lk-article-v2 .lk-article-byline__name { color: var(--lk-ink); font-weight: 500; }
body.lk-article-v2 .lk-article-byline__sep { margin: 0 0.4em; color: #b9b2a9; }
body.lk-article-v2 .lk-avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2c4f9e, #152a5c);
	color: #fff;
	font: 500 0.75rem/1 "Jost", sans-serif;
	letter-spacing: 0.04em;
}
body.lk-article-v2 .lk-avatar--lg { width: 56px; height: 56px; font-size: 1rem; }

/* ---------- Inline product card ---------- */
body.lk-article-v2 .lk-inline-shop {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0;
	padding: 0.875rem;
	border: 1px solid var(--lk-line);
	border-radius: 8px;
	background: var(--lk-paper);
}
body.lk-article-v2 .lk-inline-shop__media { flex: none; line-height: 0; }
body.lk-article-v2 .lk-inline-shop__img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; margin: 0 !important; }
body.lk-article-v2 .lk-inline-shop__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
body.lk-article-v2 .lk-inline-shop__eyebrow { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lk-muted); }
body.lk-article-v2 .c-post__content .lk-inline-shop__title { font: 400 1.0625rem/1.35 "Playfair Display", serif; color: var(--lk-ink); text-decoration: none; }
body.lk-article-v2 .c-post__content .lk-inline-shop__title:hover { color: var(--lk-blue); }
body.lk-article-v2 .lk-inline-shop__price { font-size: 0.875rem; color: var(--lk-muted); }

/* ---------- Author box ---------- */
body.lk-article-v2 .lk-author-box {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin: 2.5rem 0 0;
	padding: 1.25rem 0;
	border-top: 1px solid var(--lk-line);
	border-bottom: 1px solid var(--lk-line);
}
body.lk-article-v2 .c-post__content .lk-author-box p { margin: 0; }
body.lk-article-v2 .lk-author-box__label { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lk-muted); }
body.lk-article-v2 .lk-author-box__name { font: 400 1.1875rem/1.3 "Playfair Display", serif; color: var(--lk-ink); }
body.lk-article-v2 .c-post__content .lk-author-box__bio { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.6; color: #4a4641; }

/* ---------- Keep reading ---------- */
body.lk-article-v2 .lk-related-guides { margin: 2.75rem 0 0; }
body.lk-article-v2 .c-post__content h2.lk-related-guides__title { font: 400 1.625rem/1.3 "Playfair Display", serif; margin: 0 0 1.25rem; }
body.lk-article-v2 .lk-related-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
body.lk-article-v2 .c-post__content .lk-related-guides__card { display: flex; flex-direction: column; color: var(--lk-ink); text-decoration: none; }
body.lk-article-v2 .lk-related-guides__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #f3f1ee; }
body.lk-article-v2 .lk-related-guides__img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .3s ease; }
body.lk-article-v2 .lk-related-guides__card:hover .lk-related-guides__img { transform: scale(1.03); }
body.lk-article-v2 .lk-related-guides__meta { margin-top: 0.6rem; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lk-muted); }
body.lk-article-v2 .lk-related-guides__name { font: 400 1.0625rem/1.4 "Playfair Display", serif; margin-top: 0.2rem; }
body.lk-article-v2 .lk-related-guides__card:hover .lk-related-guides__name { color: var(--lk-blue); }

/* ---------- Related products: one compact row of four ---------- */
body.lk-article-v2 .lakazur-related-content--products { margin-top: 2.5rem; }
body.lk-article-v2 .lakazur-related-content--products .c-product__products-title {
	font: 400 1.625rem/1.3 "Playfair Display", serif;
	text-align: left;
	margin-bottom: 1.25rem;
}
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__list {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.25rem;
	margin: 0 !important;
}
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__thumb-wrap { margin-bottom: 0.5rem; }
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__item .c-product-grid__atc,
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__item .c-product-grid__atc-wrap,
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__item .c-product-grid__thumb-button-list,
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__item .c-product-grid__short-desc,
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__item .c-product-grid__category-list {
	display: none !important;
}
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__title {
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
	margin: 0 0 0.2rem !important;
}
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__price { font-size: 0.8125rem !important; }

/* ---------- Comment toggle ---------- */
body.lk-article-v2 .lk-comment-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: 2.5rem 0 0;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--lk-line);
	border-radius: 8px;
	background: #fff;
	font: 400 0.9375rem "Jost", sans-serif;
	color: var(--lk-ink);
	cursor: pointer;
	text-align: left;
}
body.lk-article-v2 .lk-comment-toggle:hover { border-color: #cfc8be; }

/* ---------- Sidebar ---------- */
body.lk-article-v2 .c-post-sidebar .c-sidebar__wrap { display: flex; flex-direction: column; gap: 1.25rem; }
body.lk-article-v2 .lk-side-card {
	border: 1px solid var(--lk-line);
	border-radius: 8px;
	padding: 1.1rem 1.15rem;
	background: #fff;
}
body.lk-article-v2 .lk-side-card__title {
	margin: 0 0 0.65rem;
	font: 500 0.6875rem/1.2 "Jost", sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lk-muted);
}
body.lk-article-v2 .lk-side-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lk-toc; max-height: calc(100vh - 360px); overflow: auto; }
body.lk-article-v2 .lk-side-toc li { counter-increment: lk-toc; margin: 0; }
body.lk-article-v2 .lk-side-toc a {
	display: block;
	padding: 0.35rem 0 0.35rem 0.75rem;
	border-left: 2px solid transparent;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #4a4641;
	text-decoration: none;
}
body.lk-article-v2 .lk-side-toc a::before { content: counter(lk-toc) ". "; color: #a39d95; }
body.lk-article-v2 .lk-side-toc a:hover { color: var(--lk-ink); }
body.lk-article-v2 .lk-side-toc a.is-current { border-left-color: var(--lk-lapis); color: var(--lk-ink); font-weight: 500; }
body.lk-article-v2 .lk-side-trust { background: var(--lk-paper); }
body.lk-article-v2 .lk-side-trust p { margin: 0 0 0.5rem; font-size: 0.875rem; line-height: 1.55; color: #2b2926; }
body.lk-article-v2 .lk-side-trust a { font-size: 0.8125rem; color: var(--lk-blue); }
body.lk-article-v2 .lk-side-shop__row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.45rem 0;
	border-top: 1px solid var(--lk-line);
	color: var(--lk-ink);
	text-decoration: none;
	font-size: 0.9375rem;
}
body.lk-article-v2 .lk-side-shop__row:first-of-type { border-top: 0; }
body.lk-article-v2 .lk-side-shop__row:hover { color: var(--lk-blue); }
body.lk-article-v2 .lk-side-shop__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #f3f1ee; display: inline-block; }
body.lk-article-v2 .lk-side-shop__arrow { margin-left: auto; color: #a39d95; }

/* ---------- Reading progress ---------- */
body.lk-article-v2 .lk-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
body.lk-article-v2 .lk-progress span { display: block; height: 100%; width: 0; background: var(--lk-lapis); transition: width .1s linear; }

/* ---------- Desktop: sidebar TOC replaces the inline one ---------- */
@media (min-width: 1190px) {
	body.lk-article-v2 .l-section__sidebar--right { width: 320px; }
	body.lk-article-v2.lk-has-post-toc .c-post__content > .lk-post-toc { display: none; }
	body.lk-article-v2 .lk-mtoc { display: none !important; }
}

/* ---------- Tablet and mobile ---------- */
@media (max-width: 1189px) {
	/* The sidebar would otherwise pile up below the comments. */
	body.lk-article-v2 .l-section__sidebar--right { display: none; }
	body.lk-article-v2 .lakazur-related-content--products .c-product-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
	body.lk-article-v2 .lk-related-guides__grid { grid-template-columns: 1fr; gap: 1rem; }
	body.lk-article-v2 .c-post__content .lk-related-guides__card { flex-direction: row; gap: 0.9rem; align-items: center; }
	body.lk-article-v2 .lk-related-guides__media { flex: none; width: 110px; }
	body.lk-article-v2 .lk-related-guides__meta { margin-top: 0; }
	body.lk-article-v2 .lk-related-guides__card > span:not(.lk-related-guides__media) { display: block; }
	body.lk-article-v2 .lk-inline-shop__img { width: 64px; height: 64px; }
	body.lk-article-v2 .lk-article-dek { font-size: 1.0625rem; }
}

/* Mobile "On this page" bar */
body.lk-article-v2 .lk-mtoc {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 40;
	transform: translateY(140%);
	transition: transform .25s ease;
	border-radius: 10px;
	background: var(--lk-ink);
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
body.lk-article-v2 .lk-mtoc.is-visible { transform: none; }
body.lk-article-v2 .lk-mtoc__btn {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 1rem;
	background: none;
	border: 0;
	color: inherit;
	font: 400 0.875rem "Jost", sans-serif;
	text-align: left;
	cursor: pointer;
}
body.lk-article-v2 .lk-mtoc__label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.lk-article-v2 .lk-mtoc.is-open .lk-mtoc__icon { transform: rotate(180deg); }
body.lk-article-v2 .lk-mtoc__sheet { max-height: 55vh; overflow: auto; border-top: 1px solid rgba(255, 255, 255, .15); }
body.lk-article-v2 .lk-mtoc__sheet ol { margin: 0; padding: 0.4rem 1rem 0.8rem 2.2rem; }
body.lk-article-v2 .lk-mtoc__sheet li { padding: 0.3rem 0; font-size: 0.875rem; }
body.lk-article-v2 .lk-mtoc__sheet a { color: #fff; text-decoration: none; }
body.lk-article-v2 .lk-backtop--with-mtoc { display: none !important; }

/* Sidebar text uses the body sans-serif (the theme sets the sidebar to the display serif). */
body.lk-article-v2 .lk-side-card,
body.lk-article-v2 .lk-side-card a,
body.lk-article-v2 .lk-side-card p,
body.lk-article-v2 .lk-side-card li { font-family: "Jost", sans-serif; }
body.lk-article-v2 .lk-inline-shop__price,
body.lk-article-v2 .lk-inline-shop__price .amount { color: var(--lk-muted) !important; font-weight: 400; }

/* Related products: compact card text (theme defaults are 24px titles inside 18px side padding). */
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__details {
	padding: 0 !important;
	margin: 0.75rem 0 0 !important;
	text-align: left;
}
body.lk-article-v2 .lakazur-related-content--products .woocommerce-loop-product__title {
	margin: 0 !important;
	font: 400 0.9375rem/1.4 "Playfair Display", serif !important;
	letter-spacing: 0 !important;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__price-wrap { margin-top: 0.35rem !important; }
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__price-wrap,
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__price-wrap .price,
body.lk-article-v2 .lakazur-related-content--products .c-product-grid__price-wrap .amount { font-size: 0.875rem !important; }
body.lk-article-v2 .lakazur-related-content--products .star-rating { font-size: 0.6875rem; margin-top: 0.3rem; }

/* Article heading scale: below the page title (H1 38px desktop / 30px mobile) and consistent across sizes. */
body.single-post .c-post__content h2 { font-size: 32px; line-height: 1.25; }
body.single-post .c-post__content h3 { font-size: 24px; line-height: 1.3; }
body.single-post .c-post__content h4 { font-size: 20px; line-height: 1.35; }
@media (max-width: 768px) {
	body.single-post .c-post__content h2 { font-size: 25px; }
	body.single-post .c-post__content h3 { font-size: 21px; }
	body.single-post .c-post__content h4 { font-size: 18px; }
}
