/* ==========================================================================
   sl-blog.css — Blog page only.
   Everything shared with another page lives in sl-global.css; this file is
   only what is unique here. Every selector is scoped under
   body.sl-page .sl-site .sl-page-blog so it cannot reach Astra or Elementor.
   ========================================================================== */

body.sl-page .sl-site .sl-page-blog .sl-posts {
	background: var(--sl-paper); padding: clamp(44px, 6vw, 88px) clamp(20px, 5vw, 56px);
}
body.sl-page .sl-site .sl-page-blog .sl-postlist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(16px, 2vw, 26px);
	margin-top: clamp(24px, 3vw, 40px);
}
body.sl-page .sl-site .sl-page-blog .sl-post-card {
	display: flex; flex-direction: column; gap: 10px;
	padding: clamp(20px, 2.4vw, 30px);
	background: var(--sl-white);
	border: 1px solid rgba(10, 10, 11, .1);
	border-radius: 20px;
	transition: transform .35s var(--sl-ease), box-shadow .35s ease;
}
body.sl-page .sl-site .sl-page-blog .sl-post-card:hover {
	transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10, 10, 11, .1);
}
body.sl-page .sl-site .sl-page-blog .sl-post-tag {
	align-self: flex-start;
	padding: 5px 12px; border-radius: 999px;
	background: rgba(166, 242, 46, .22);
	font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #3f5f00;
}
body.sl-page .sl-site .sl-page-blog .sl-post-card h3 {
	margin: 2px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; letter-spacing: -.015em; color: var(--sl-ink);
}
body.sl-page .sl-site .sl-page-blog .sl-post-card p {
	margin: 0; font-size: 15px; line-height: 1.6; color: rgba(10, 10, 11, .66);
}
body.sl-page .sl-site .sl-page-blog .sl-post-status {
	margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: rgba(10, 10, 11, .42);
}
body.sl-page .sl-site .sl-page-blog .sl-posts-note {
	margin: clamp(22px, 2.6vw, 34px) 0 0; font-size: 15.5px; color: rgba(10, 10, 11, .6);
}
body.sl-page .sl-site .sl-page-blog .sl-posts-note a {
	color: var(--sl-lime-dark, #5c8a00); font-weight: 700;
}

/* ==========================================================================
   Native WordPress blog: real post cards, pagination, and the single-post
   article layout. Not in the static comps — built on the same tokens so a
   post looks like the rest of the site the day it is published.
   ========================================================================== */

/* ---- listing: a card that is a link ---- */
body.sl-page .sl-site .sl-page-blog .sl-post-card-link {
	text-decoration: none;
	color: var(--sl-ink);
}
body.sl-page .sl-site .sl-page-blog .sl-post-card-link:hover {
	color: var(--sl-ink);
}
body.sl-page .sl-site .sl-page-blog .sl-post-thumb {
	margin: 0 0 4px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--sl-paper-2);
	aspect-ratio: 16 / 10;
}
body.sl-page .sl-site .sl-page-blog .sl-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .55s var(--sl-ease);
}
body.sl-page .sl-site .sl-page-blog .sl-post-card-link:hover .sl-post-thumb img {
	transform: scale(1.05);
}
body.sl-page .sl-site .sl-page-blog .sl-post-card-link .sl-post-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
body.sl-page .sl-site .sl-page-blog .sl-post-go {
	font-style: normal;
	color: var(--sl-lime-dark);
	transition: transform .25s var(--sl-ease);
}
body.sl-page .sl-site .sl-page-blog .sl-post-card-link:hover .sl-post-go {
	transform: translateX(5px);
}

/* ---- pagination ---- */
body.sl-page .sl-site .sl-page-blog .sl-pagination {
	margin-top: clamp(26px, 3vw, 40px);
}
body.sl-page .sl-site .sl-page-blog .sl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
body.sl-page .sl-site .sl-page-blog .sl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(10, 10, 11, .18);
	font-size: 14.5px;
	font-weight: 700;
	color: rgba(10, 10, 11, .68);
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body.sl-page .sl-site .sl-page-blog .sl-pagination .page-numbers:hover {
	border-color: var(--sl-ink);
	color: var(--sl-ink);
}
body.sl-page .sl-site .sl-page-blog .sl-pagination .page-numbers.current {
	background: var(--sl-ink);
	border-color: var(--sl-ink);
	color: var(--sl-lime);
}
body.sl-page .sl-site .sl-page-blog .sl-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- single post: hero ---- */
body.sl-page .sl-site .sl-page-single .sl-article-title {
	font-size: clamp(32px, 4.6vw, 62px);
	line-height: 1.04;
	letter-spacing: -.03em;
	max-width: 20ch;
	text-wrap: balance;
}
body.sl-page .sl-site .sl-page-single .sl-article-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, .55);
}
body.sl-page .sl-site .sl-page-single .sl-article-dot {
	color: var(--sl-lime);
}

/* ---- single post: the article ---- */
body.sl-page .sl-site .sl-page-single .sl-article {
	background: var(--sl-paper);
	padding: clamp(44px, 6vw, 88px) clamp(20px, 5vw, 56px);
}
body.sl-page .sl-site .sl-page-single .sl-article-inner {
	max-width: 720px;
	margin: 0 auto;
}
body.sl-page .sl-site .sl-page-single .sl-article-hero {
	margin: 0 0 clamp(26px, 3vw, 40px);
}
body.sl-page .sl-site .sl-page-single .sl-article-hero img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 18px;
	border: 1px solid rgba(10, 10, 11, .1);
	background: #fff;
}
body.sl-page .sl-site .sl-page-single .sl-article-hero figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: rgba(10, 10, 11, .45);
}

/* ---- prose: the only place where bare element selectors are used, and they
        are locked inside .sl-prose so nothing leaks ---- */
body.sl-page .sl-site .sl-prose {
	font-size: 17px;
	line-height: 1.75;
	color: rgba(10, 10, 11, .82);
	text-wrap: pretty;
}
body.sl-page .sl-site .sl-prose > * { margin: 0 0 22px; }
body.sl-page .sl-site .sl-prose > *:last-child { margin-bottom: 0; }
body.sl-page .sl-site .sl-prose h2 {
	margin: clamp(34px, 4vw, 52px) 0 14px;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.12;
}
body.sl-page .sl-site .sl-prose h3 {
	margin: clamp(26px, 3vw, 38px) 0 12px;
	font-size: clamp(20px, 2.1vw, 25px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
}
body.sl-page .sl-site .sl-prose h4 {
	margin: clamp(22px, 2.4vw, 30px) 0 10px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.015em;
}
body.sl-page .sl-site .sl-prose a {
	color: var(--sl-lime-dark);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.sl-page .sl-site .sl-prose a:hover { color: var(--sl-ink); }
body.sl-page .sl-site .sl-prose strong { font-weight: 800; }
body.sl-page .sl-site .sl-prose ul,
body.sl-page .sl-site .sl-prose ol { padding-left: 22px; }
body.sl-page .sl-site .sl-prose li { margin: 0 0 9px; }
body.sl-page .sl-site .sl-prose ul li::marker { color: var(--sl-lime-dark); }
body.sl-page .sl-site .sl-prose blockquote {
	margin: clamp(26px, 3vw, 38px) 0;
	padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 30px);
	border-left: 3px solid var(--sl-lime-dark);
	background: rgba(166, 242, 46, .1);
	border-radius: 0 16px 16px 0;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: -.015em;
	color: var(--sl-ink);
}
body.sl-page .sl-site .sl-prose blockquote p:last-child { margin-bottom: 0; }
body.sl-page .sl-site .sl-prose blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	color: rgba(10, 10, 11, .55);
}
body.sl-page .sl-site .sl-prose img,
body.sl-page .sl-site .sl-prose video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	border: 1px solid rgba(10, 10, 11, .1);
	background: #fff;
}
body.sl-page .sl-site .sl-prose figure { margin: clamp(26px, 3vw, 38px) 0; }
body.sl-page .sl-site .sl-prose figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(10, 10, 11, .45);
}
body.sl-page .sl-site .sl-prose hr {
	border: none;
	border-top: 1px solid rgba(10, 10, 11, .14);
	margin: clamp(30px, 3.6vw, 46px) 0;
}
body.sl-page .sl-site .sl-prose code {
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(10, 10, 11, .07);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
}
body.sl-page .sl-site .sl-prose pre {
	padding: clamp(18px, 2.2vw, 26px);
	border-radius: 16px;
	background: var(--sl-ink);
	color: #e9e9e4;
	overflow-x: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	line-height: 1.6;
}
body.sl-page .sl-site .sl-prose pre code { background: none; padding: 0; color: inherit; }
body.sl-page .sl-site .sl-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
body.sl-page .sl-site .sl-prose th,
body.sl-page .sl-site .sl-prose td {
	padding: 12px 10px;
	border-bottom: 1px solid rgba(10, 10, 11, .12);
	text-align: left;
}
body.sl-page .sl-site .sl-prose th { font-weight: 800; }
body.sl-page .sl-site .sl-prose .wp-block-table { overflow-x: auto; }

/* ---- tags + prev / next ---- */
body.sl-page .sl-site .sl-page-single .sl-article-tags {
	margin: clamp(30px, 3.4vw, 44px) 0 0;
	padding-top: clamp(20px, 2.4vw, 28px);
	border-top: 1px solid rgba(10, 10, 11, .12);
}
body.sl-page .sl-site .sl-page-single .sl-article-tags a {
	text-decoration: none;
	color: inherit;
}
body.sl-page .sl-site .sl-page-single .sl-article-nav {
	max-width: 720px;
	margin: clamp(30px, 3.6vw, 46px) auto 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
body.sl-page .sl-site .sl-page-single .sl-article-nav-link {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: clamp(18px, 2.2vw, 26px);
	border-radius: 18px;
	background: var(--sl-white);
	border: 1px solid rgba(10, 10, 11, .1);
	text-decoration: none;
	color: var(--sl-ink);
	transition: transform .3s var(--sl-ease), box-shadow .3s ease;
}
body.sl-page .sl-site .sl-page-single .sl-article-nav-link:hover {
	color: var(--sl-ink);
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(10, 10, 11, .09);
}
body.sl-page .sl-site .sl-page-single .sl-article-nav-next { text-align: right; }
body.sl-page .sl-site .sl-page-single .sl-article-nav-link span {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(10, 10, 11, .45);
}
body.sl-page .sl-site .sl-page-single .sl-article-nav-link b {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.3;
}

@media (max-width: 768px) {
	body.sl-page .sl-site .sl-page-single .sl-article { padding: 34px 20px; }
	body.sl-page .sl-site .sl-prose { font-size: 16.5px; }
	body.sl-page .sl-site .sl-page-single .sl-article-nav { grid-template-columns: 1fr; }
	body.sl-page .sl-site .sl-page-single .sl-article-nav-next { text-align: left; }
}
