/* ==========================================================
   Eplanet Blog Layout 1.3 — mirrors the Elementor "Blog single page"
   Design tokens come from the Elementor export:
   Outfit (headings) + Inter (body), accent #0072AE, ink #0F172A.
   Override colours/fonts in WordPress: Settings -> Blog Layout.
   ========================================================== */
.epbl-main {
	--epbl-accent: #0072AE;
	--epbl-tint: #E6F1F8;
	--epbl-ink: #0F172A;
	--epbl-text: #334155;
	--epbl-text-2: #475569;
	--epbl-muted: #64748B;
	--epbl-line: #E2E8F0;
	--epbl-soft: #F8FAFC;
	--epbl-green: #16A34A;
	--epbl-hero-bg: #0F172A;
	--epbl-hero-text: #FFFFFF;
	--epbl-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--epbl-head: 'Outfit', 'Inter', system-ui, sans-serif;

	font-family: var(--epbl-font);
	color: var(--epbl-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
.epbl-main *, .epbl-main *::before, .epbl-main *::after { box-sizing: border-box; }
.epbl-main h1, .epbl-main h2, .epbl-main h3, .epbl-main h4 { font-family: var(--epbl-head); }

.epbl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.epbl-wrap--wide { max-width: 1180px; }
.epbl-wrap--hero { max-width: 880px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Hero ---------- */
.epbl-hero { background: var(--epbl-hero-bg); color: var(--epbl-hero-text); padding: 40px 0 64px; }
.epbl-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.2; }
.epbl-breadcrumb a, .epbl-breadcrumb span { color: #94A3B8; text-decoration: none; }
.epbl-breadcrumb a:hover { color: #fff; }

.epbl-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.2; }
.epbl-cat { color: #fff; font-weight: 600; text-decoration: none; }
.epbl-read { color: #CBD5E1; }

.epbl-main .epbl-title {
	color: var(--epbl-hero-text);
	font-weight: 700;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0;
}
.epbl-lead { font-size: 18px; line-height: 1.6; color: #CBD5E1; margin: 0; max-width: 760px; }

.epbl-byline { display: flex; align-items: center; gap: 14px; }
.epbl-avatar {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
	background: #1E293B; color: #5FB7E5;
	font-family: var(--epbl-head); font-weight: 700; font-size: 14px;
}
.epbl-byline-text { font-size: 14px; color: #CBD5E1; display: flex; flex-wrap: wrap; gap: 6px; }
.epbl-byline-text a { color: #CBD5E1; text-decoration: none; }
.epbl-byline-text a:hover { color: #fff; }

/* ---------- Body layout: 280px sticky sidebar + 760px article ---------- */
.epbl-body { padding: 56px 0 88px; }
.epbl-layout { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 48px; align-items: start; }
.epbl-layout--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }

.epbl-side {
	position: sticky;
	top: calc(var(--epbl-sticky-top, 100px) + var(--wp-admin--admin-bar--height, 0px));
	align-self: start;
}
.epbl-toc { max-height: calc(100vh - var(--epbl-sticky-top, 100px) - 40px); overflow-y: auto; }
.epbl-toc summary {
	list-style: none; cursor: default; pointer-events: none;
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--epbl-muted); margin-bottom: 10px;
}
.epbl-toc summary::-webkit-details-marker { display: none; }
.epbl-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.epbl-toc li { margin: 0; padding: 0; }
.epbl-toc a { font-size: 14px; line-height: 1.45; color: var(--epbl-text); text-decoration: none; display: block; }
.epbl-toc a:hover, .epbl-toc a.is-active { color: var(--epbl-accent); }
.epbl-toc a.is-active { font-weight: 600; }
.epbl-toc .epbl-toc-l3 { padding-left: 14px; }

.epbl-article { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.epbl-featured { margin: 0; border: 1px solid var(--epbl-line); border-radius: 20px; overflow: hidden; background: #fff; }
.epbl-featured img { display: block; width: 100%; height: auto; }

/* Key takeaways */
.epbl-takeaways { background: var(--epbl-tint); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.epbl-takeaways h2 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--epbl-ink); margin: 0; }
.epbl-takeaways .epbl-checks li { font-size: 15px; line-height: 1.5; color: var(--epbl-ink); }

/* Green check lists (takeaways + lists inside posts) */
.epbl-checks, .epbl-content ul:not(.wp-block-social-links):not(.blocks-gallery-grid) { list-style: none; margin: 0 0 1.4em; padding: 0; }
.epbl-checks { margin-bottom: 0; }
.epbl-checks li, .epbl-content ul:not(.wp-block-social-links):not(.blocks-gallery-grid) > li {
	position: relative; padding-left: 28px; margin: 0 0 10px;
}
.epbl-checks li::before, .epbl-content ul:not(.wp-block-social-links):not(.blocks-gallery-grid) > li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.epbl-content ul ul { margin: 10px 0 0; }

/* ---------- Post content ---------- */
.epbl-content { font-size: 17px; line-height: 1.8; color: var(--epbl-text); }
.epbl-content > *:first-child { margin-top: 0; }
.epbl-content p { margin: 0 0 1.2em; }
.epbl-content h2, .epbl-content h3, .epbl-content h4 {
	color: var(--epbl-ink); font-weight: 700; scroll-margin-top: 110px;
}
.epbl-content h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin: 2em 0 .6em; }
.epbl-content h3 { font-size: 21px; line-height: 1.25; margin: 1.6em 0 .5em; }
.epbl-content h4 { font-size: 18px; line-height: 1.3; margin: 1.4em 0 .5em; }
.epbl-content strong { color: var(--epbl-ink); }
.epbl-content a { color: var(--epbl-accent); text-decoration: underline; text-underline-offset: 3px; }
.epbl-content a:hover { color: var(--epbl-ink); }

.epbl-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.epbl-content ol li { margin-bottom: .5em; padding-left: .2em; }
.epbl-content ol li::marker { color: var(--epbl-accent); font-weight: 600; }
.epbl-content ul:not(.wp-block-social-links) > li { font-size: 16px; line-height: 1.6; }

.epbl-content img { max-width: 100%; height: auto; border-radius: 12px; }
.epbl-content figure { margin: 1.8em 0; }
.epbl-content figcaption { font-size: 14px; color: var(--epbl-muted); text-align: center; margin-top: 10px; }

.epbl-content blockquote, .epbl-content .wp-block-quote {
	margin: 1.8em 0; padding: 18px 24px; background: var(--epbl-tint);
	border-left: 4px solid var(--epbl-accent); border-radius: 0 14px 14px 0; color: var(--epbl-ink);
}
.epbl-content blockquote p:last-child { margin-bottom: 0; }

.epbl-content .wp-block-table { margin: 1.8em 0; overflow-x: auto; }
.epbl-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.epbl-content th { background: var(--epbl-ink); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.epbl-content td { padding: 12px 14px; border-bottom: 1px solid var(--epbl-line); vertical-align: top; }
.epbl-content tbody tr:nth-child(even) td { background: var(--epbl-soft); }

.epbl-content code { background: #F1F5F9; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.epbl-content pre { background: var(--epbl-ink); color: #E2E8F0; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; margin: 1.8em 0; }
.epbl-content pre code { background: none; padding: 0; color: inherit; }
.epbl-content hr, .epbl-content .wp-block-separator { border: 0; border-top: 1px solid var(--epbl-line); margin: 2.2em 0; }

.epbl-content .wp-block-button__link { background: var(--epbl-accent); color: #fff; text-decoration: none; border-radius: 999px; padding: 13px 28px; font-weight: 600; }
.epbl-content .wp-block-button__link:hover { background: var(--epbl-ink); color: #fff; }

.epbl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.epbl-tags a { font-size: 13px; background: #F1F5F9; color: var(--epbl-text); padding: 5px 14px; border-radius: 999px; text-decoration: none; }
.epbl-tags a:hover { background: var(--epbl-tint); color: var(--epbl-accent); }

/* ---------- Author box ---------- */
.epbl-author-box {
	display: flex; gap: 16px; align-items: flex-start;
	background: #fff; border: 1px solid var(--epbl-line); border-radius: 18px; padding: 22px; margin-top: 10px;
}
.epbl-avatar-sq {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 56px;
	width: 56px; height: 56px; border-radius: 14px; background: var(--epbl-tint); color: var(--epbl-accent);
	font-family: var(--epbl-head); font-weight: 700; font-size: 18px;
}
.epbl-author-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.epbl-author-info strong { font-family: var(--epbl-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--epbl-ink); }
.epbl-author-role { font-size: 13.5px; font-weight: 600; color: var(--epbl-accent); }
.epbl-author-info p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--epbl-text-2); }

/* ---------- FAQ ---------- */
.epbl-faq { background: #fff; border-top: 1px solid var(--epbl-line); padding: 88px 0; }
.epbl-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.epbl-faq-intro { display: flex; flex-direction: column; gap: 12px; }
.epbl-faq-intro h2 { margin: 0; font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--epbl-ink); }
.epbl-faq-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--epbl-text-2); }

.epbl-faq-list { display: flex; flex-direction: column; gap: 10px; }
.epbl-faq-item { background: var(--epbl-soft); border: 1px solid var(--epbl-line); border-radius: 14px; overflow: hidden; }
.epbl-faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 22px; cursor: pointer; list-style: none;
}
.epbl-faq-item summary::-webkit-details-marker { display: none; }
.epbl-faq-q { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--epbl-ink); }
.epbl-chev { flex: 0 0 auto; color: var(--epbl-accent); display: inline-flex; transition: transform .2s ease; }
.epbl-faq-item[open] .epbl-chev { transform: rotate(180deg); }
.epbl-faq-a { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--epbl-text-2); }
.epbl-faq-a p { margin: 0 0 .8em; }
.epbl-faq-a p:last-child { margin-bottom: 0; }
.epbl-faq-a a { color: var(--epbl-accent); }

/* ---------- Related articles ---------- */
.epbl-related { background: var(--epbl-soft); border-top: 1px solid var(--epbl-line); padding: 72px 0; }
.epbl-related h2 { margin: 0 0 24px; font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; color: var(--epbl-ink); }
.epbl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.epbl-card {
	display: flex; flex-direction: column; gap: 8px;
	background: #fff; border: 1px solid var(--epbl-line); border-radius: 14px;
	padding: 20px 22px; text-decoration: none; transition: border-color .2s ease;
}
.epbl-card:hover { border-color: var(--epbl-accent); }
.epbl-card-cat { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--epbl-accent); }
.epbl-card-title { font-family: var(--epbl-head); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--epbl-ink); }

/* ---------- CTA (copy + form card) ---------- */
.epbl-cta { background: var(--epbl-hero-bg); padding: 88px 0; }
.epbl-cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.epbl-cta-copy { display: flex; flex-direction: column; gap: 18px; }
.epbl-cta-copy h2 { margin: 0; color: #fff; font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.epbl-cta-copy p { margin: 0; color: #CBD5E1; font-size: 18px; line-height: 1.6; }
.epbl-checks--light { margin: 0; }
.epbl-checks--light li { font-size: 15px; line-height: 1.5; color: #E2E8F0; margin-bottom: 8px; }
.epbl-cta-card { background: #1E293B; border: 1px solid #334155; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.epbl-cta-form { min-width: 0; }
.epbl-cta-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #94A3B8; text-align: center; }
.epbl-btn { display: inline-block; align-self: flex-start; background: var(--epbl-accent); color: #fff; font-weight: 600; text-decoration: none; padding: 14px 32px; border-radius: 12px; }
.epbl-btn:hover { background: #fff; color: var(--epbl-ink); }

html { scroll-behavior: smooth; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.epbl-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.epbl-side { position: static; }
	.epbl-toc { max-height: none; overflow: visible; background: var(--epbl-soft); border: 1px solid var(--epbl-line); border-radius: 14px; padding: 4px 18px; }
	.epbl-toc summary { pointer-events: auto; cursor: pointer; padding: 14px 0; margin: 0; display: flex; justify-content: space-between; }
	.epbl-toc summary::after { content: "+"; font-size: 18px; color: var(--epbl-accent); letter-spacing: 0; }
	.epbl-toc details[open] summary::after { content: "\2212"; }
	.epbl-toc ul { padding-bottom: 16px; }
	.epbl-faq-grid, .epbl-cta-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.epbl-cta { padding: 56px 0; }
	.epbl-faq { padding: 56px 0; }
	.epbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.epbl-hero { padding: 32px 0 44px; }
	.epbl-body { padding: 36px 0 56px; }
	.epbl-grid { grid-template-columns: minmax(0, 1fr); }
	.epbl-content { font-size: 16.5px; }
	.epbl-author-box { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.epbl-chev, .epbl-card { transition: none; }
}

/* ---------- Compatibility (inject) mode: hide theme title/meta, full-bleed sections ---------- */
.epbl-inject { overflow-x: clip; }
.epbl-inject .entry-header, .epbl-inject .page-header, .epbl-inject .post-thumbnail,
.epbl-inject .entry-meta, .epbl-inject .entry-footer, .epbl-inject .post-navigation,
.epbl-inject .wp-block-post-title, .epbl-inject .wp-block-post-featured-image,
.epbl-inject .wp-block-post-date, .epbl-inject .wp-block-post-author { display: none !important; }
.epbl-inject .epbl-hero, .epbl-inject .epbl-faq, .epbl-inject .epbl-related, .epbl-inject .epbl-cta {
	width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw);
}
