/* ==========================================================================
   Editorial: single post, archives, summary/FAQ/callout/guide/related. Mobile-first.
   ========================================================================== */
.le-section-title { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
@media (min-width: 1024px) { .le-section-title { font-size: 26px; } }

/* ---- post head ---- */
.le-post-head { background: var(--juniper-surface); padding: 20px 0 24px; }
.le-crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-family: var(--juniper-font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); margin-bottom: 14px; }
.le-crumbs a { color: var(--juniper-ink-soft); display: inline-block; padding: 8px 2px; margin: -8px -2px; }   /* ≥32px tap height on 16px text (Fitts) */
.le-crumbs .le-crumbs-current { color: var(--juniper-rose-deep); }
.le-post-title { font-size: 29px; line-height: 1.15; margin: 0 0 14px; color: var(--juniper-ink); }
.le-post-dek { font-size: 16px; line-height: 1.6; color: var(--juniper-ink-soft); margin: 0 0 18px; }
.le-byline { display: flex; gap: 11px; align-items: center; padding-top: 16px; border-top: 1px solid var(--juniper-hairline); }
.le-byline-avatar { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.le-byline-name { font-size: 14.5px; font-weight: 700; color: var(--juniper-ink); }
.le-byline-meta { font-family: var(--juniper-font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); }
.le-byline-share { margin-left: auto; display: none; }
.le-post-hero { margin: 0; }
.le-post-hero .le-post-hero-img, .le-post-hero img { display: block; width: 100%; height: 210px; object-fit: cover; }
.le-post-body { background: var(--juniper-surface); padding: 22px 18px 8px; }
.le-post .le-article, .le-post .le-post-hero { background: var(--juniper-surface); }   /* design: the whole article area is one white section on the canvas */
.le-post-hero { margin: 0; }
@media (min-width: 1024px) {
	.le-post-head { padding: 44px 0 36px; }
	.le-crumbs { font-size: 10.5px; gap: 8px; margin-bottom: 18px; }
	.le-post-title { font-size: 46px; line-height: 1.1; margin-bottom: 18px; }
	.le-post-dek { font-size: 19px; margin-bottom: 26px; }
	.le-byline { gap: 14px; padding-top: 20px; }
	.le-byline-avatar { width: 48px; height: 48px; }
	.le-byline-name { font-size: 15.5px; } .le-byline-meta { font-size: 10.5px; }
	.le-byline-share { display: block; }
	.le-post-hero { margin: 0 auto 34px; padding-top: 0; }
	.le-post-hero .le-post-hero-img, .le-post-hero img { height: 400px; border-radius: 20px; }   /* design: 400px on desktop; selector must match the base rule's specificity */
	.le-post-body { padding: 0 40px 40px; }
	.le-post-body.le-wrap-narrow { max-width: none; padding-left: 40px; padding-right: 40px; }   /* full-width white; the measure lives on the children */
	.le-post-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
	.le-post-body > .le-summary { margin-left: auto; margin-right: auto; }
}
/* the article measure: ~68ch */
.le-prose { font-size: 16.5px; line-height: 1.7; color: var(--juniper-ink); }
.le-prose > p, .le-prose > ul, .le-prose > ol { margin: 0 0 18px; }
.le-prose h2 { font-size: 22px; margin: 32px 0 12px; }
.le-prose h3 { font-size: 19px; margin: 26px 0 10px; }
.le-prose img { border-radius: 14px; }
.le-prose blockquote { font-family: var(--juniper-font-serif); font-size: 21px; line-height: 1.4; margin: 24px 0; padding: 0; border: 0; color: var(--juniper-ink); }
.le-prose a:not(.le-btn) { color: var(--juniper-lilac-deep); text-decoration: underline; text-decoration-color: var(--juniper-lilac); text-underline-offset: 3px; }
.le-prose .le-btn, .le-prose .le-btn:hover { text-decoration: none; }
.le-prose .code-block a, .le-prose .code-block a:hover { color: inherit; text-decoration: none; }   /* Ad Inserter units are whole-card links; their snippet paints them */
.le-prose .le-btn-lilac, .le-prose .le-btn-hero { color: #fff; }
.le-prose .le-btn-ghost { color: var(--juniper-ink); }
.le-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.le-prose td, .le-prose th { padding: 8px 10px; border-bottom: 1px solid var(--juniper-hairline); text-align: left; }
@media (min-width: 1024px) { .le-prose { font-size: 18px; line-height: 1.75; } .le-prose > p { margin-bottom: 22px; } .le-prose h2 { font-size: 26px; } .le-prose h3 { font-size: 21px; } .le-prose blockquote { font-size: 26px; } }

/* summary */
.le-summary { background: var(--juniper-soft-rose); border-radius: 20px; padding: 18px 18px 20px; margin: 0 0 24px; }
.le-summary .juniper-eyebrow { margin-bottom: 12px; }
.le-summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.le-summary-list li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.5; color: var(--juniper-ink); }
.le-summary-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 999px; background: var(--juniper-core); }
@media (min-width: 1024px) { .le-summary { border-radius: 24px; padding: 26px 28px; margin-bottom: 32px; } .le-summary-list li { font-size: 16px; line-height: 1.55; padding-left: 18px; } .le-summary-list li::before { top: 9px; } }

/* glossary */
.le-gloss { border-bottom: 2px dotted var(--juniper-lilac); font-weight: 600; cursor: help; }
.le-gloss-card { background: var(--juniper-surface-alt); border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; }
.le-gloss-card .le-mono { display: block; margin-bottom: 6px; }
.le-gloss-card p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--juniper-ink); }
@media (min-width: 1024px) { .le-gloss-card { border-radius: 16px; padding: 16px 20px; max-width: 520px; margin-bottom: 24px; } .le-gloss-card p { font-size: 15px; } }

/* callout */
.le-callout { font-family: var(--juniper-font-sans); background: var(--juniper-surface); border: 1px solid var(--juniper-hairline); border-radius: 20px; padding: 18px; box-shadow: var(--juniper-shadow-glow); margin: 8px 0 24px; }
.le-callout .juniper-eyebrow { margin-bottom: 10px; }
.le-callout-row { display: flex; flex-direction: column; gap: 14px; }
.le-callout-head { display: flex; gap: 13px; align-items: flex-start; }   /* design: icon beside the name on mobile too */
.le-callout-head > .le-only-d { display: none; }

.le-callout-name { font-family: var(--juniper-font-sans); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--juniper-ink); margin-bottom: 5px; }
.le-callout-blurb { font-family: var(--juniper-font-sans); font-size: 13.5px; line-height: 1.5; color: var(--juniper-ink-soft); }
.le-callout .le-btn { width: 100%; }
@media (min-width: 1024px) {
	.le-callout { border-radius: 24px; padding: 26px 28px; margin: 12px 0 32px; }
	/* In-body blocks that are cards, not prose, break out of the reading column to the design's
	   900px width: the tool callout and every Ad Inserter block (early-access banner, book banner). */
	.le-prose .le-callout, .le-prose .code-block { width: 900px; max-width: calc(100vw - 80px); position: relative; left: 50%; transform: translateX(-50%); }
	.le-prose .code-block { margin-top: 12px; margin-bottom: 32px; }
	.le-callout-row { flex-direction: row; align-items: center; gap: 24px; }
	.le-callout-head { flex: 1; gap: 16px; align-items: center; }
	.le-callout-head > .le-only-m { display: none; } .le-callout-head > .le-only-d { display: block; }
	.le-callout-text { flex: 1; }
	.le-callout-name { font-size: 19px; } .le-callout-blurb { font-size: 15px; }
	.le-callout .le-btn { width: auto; }
}

/* FAQ */
.le-faq { padding: 8px 18px 26px; background: var(--juniper-surface); }
.le-faq-item { border-top: 1px solid var(--juniper-hairline); }
.le-faq-q { margin: 0; font-size: inherit; }
.le-faq-btn { width: 100%; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; text-align: left; background: none; border: 0; padding: 15px 0; font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--juniper-ink); cursor: pointer; }
.le-faq-btn .le-icon { color: var(--juniper-ink-soft); margin-top: 2px; transition: transform var(--juniper-duration) var(--juniper-ease); }
.le-faq-item.is-open .le-faq-btn .le-icon { transform: rotate(180deg); }
.le-faq-a { padding: 0 0 15px; }
.le-faq-a p { font-size: 15px; line-height: 1.6; color: var(--juniper-ink-soft); margin: 0; }
@media (min-width: 1024px) { .le-faq { padding: 0 40px 36px; } .le-faq.le-wrap-narrow { max-width: 840px; } .le-faq-btn { font-size: 17px; padding: 18px 0; } .le-faq-a p { font-size: 16px; line-height: 1.65; max-width: 640px; } }

/* guide CTA */
.le-post-guide { padding: 0 18px 26px; background: var(--juniper-surface); }
.le-guide-cta { background: var(--juniper-gradient-soft); border-radius: 22px; padding: 22px 18px; }
.le-guide-cta .juniper-eyebrow { margin-bottom: 8px; }
.le-guide-cta-title { font-size: 22px; line-height: 1.25; margin: 0 0 8px; color: var(--juniper-ink); }
.le-guide-cta-dek { font-size: 14.5px; line-height: 1.55; color: var(--juniper-ink-soft); margin: 0 0 14px; }
.le-guide-cta .le-btn { width: 100%; }
@media (min-width: 1024px) {
	.le-post-guide { padding: 0 40px 40px; }
	.le-guide-cta { border-radius: 28px; padding: 34px 36px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
	.le-guide-cta-title { font-size: 28px; line-height: 1.2; } .le-guide-cta-dek { font-size: 16px; margin: 0; }
	.le-guide-cta .le-btn { width: auto; }
}

/* related */
.le-related { padding: 0 18px 26px; background: var(--juniper-surface); }
.le-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.le-related-link { display: flex; gap: 13px; align-items: center; color: var(--juniper-ink); }
.le-related-thumb { display: block; width: 92px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--juniper-surface-alt); }
.le-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-related-text .juniper-eyebrow { display: block; margin-bottom: 5px; }
.le-related-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
@media (min-width: 1024px) {
	.le-related { padding: 0 40px 48px; }
	.le-related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.le-related-link { flex-direction: column; align-items: stretch; gap: 0; background: var(--juniper-surface); border-radius: 20px; overflow: hidden; box-shadow: var(--juniper-shadow-soft); height: 100%; }
	.le-related-thumb { width: 100%; height: 150px; border-radius: 0; }
	.le-related-text { display: block; padding: 16px 18px 20px; }
	.le-related-text .juniper-eyebrow { margin-bottom: 8px; }
	.le-related-title { font-size: 17px; }
}
/* the article surfaces are white; the page canvas shows around them */
.le-post .le-post-body, .le-post .le-faq, .le-post .le-post-guide, .le-post .le-related { background: var(--juniper-surface); }
.le-post .le-related { padding-bottom: 40px; }

/* ==========================================================================
   Archives
   ========================================================================== */
.le-archive-head { background: var(--juniper-gradient-soft); padding: 24px 0; }
.le-archive-head .juniper-eyebrow { margin-bottom: 10px; }
.le-archive-title { font-size: 28px; line-height: 1.15; margin: 0 0 10px; color: var(--juniper-ink); }
.le-archive-intro { font-size: 15.5px; line-height: 1.6; color: var(--juniper-ink-soft); margin: 0; max-width: 760px; }
.le-archive-chips { background: var(--juniper-surface); border-bottom: 1px solid var(--juniper-hairline); overflow: hidden; }
.le-chips-row { display: flex; gap: 8px; align-items: center; padding-top: 16px; padding-bottom: 16px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.le-chips-row::-webkit-scrollbar { display: none; }
.le-chip { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--juniper-ink); background: var(--juniper-canvas); border: 1px solid var(--juniper-hairline); border-radius: 999px; padding: 9px 14px; }
.le-chip.is-active { border-color: var(--juniper-lilac); background: var(--juniper-tint-lilac); }
.le-chips-sort { display: none; margin-left: auto; white-space: nowrap; padding-left: 12px; }
.le-chips-label { white-space: nowrap; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--juniper-ink-soft); padding: 0 4px 0 8px; }
.le-archive-chips { position: relative; }
.le-archive-chips::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--juniper-surface)); pointer-events: none; }   /* scroll affordance on mobile */
.le-archive-grid { padding-top: 20px; padding-bottom: 30px; }
.le-tool-strip { display: flex; gap: 12px; align-items: center; background: var(--juniper-surface); border: 1px solid var(--juniper-hairline); border-radius: 18px; padding: 16px; margin-bottom: 22px; color: var(--juniper-ink); }

.le-tool-strip-text { flex: 1; }
.le-tool-strip-name { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.le-tool-strip-blurb { display: block; font-size: 12.5px; color: var(--juniper-ink-soft); }
.le-tool-strip-open { font-size: 13px; font-weight: 700; color: var(--juniper-lilac-deep); }
.le-post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.le-post-card-link { display: flex; gap: 13px; align-items: flex-start; color: var(--juniper-ink); }
.le-post-card-thumb { display: block; width: 104px; height: 78px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--juniper-surface-alt); }
.le-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.le-post-card-title { font-size: 15.5px; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }
.le-post-card-dek { display: none; }
.le-post-card-meta { display: block; }
.le-pagination { display: flex; justify-content: center; gap: 8px; padding: 26px 0 10px; }
.le-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--juniper-surface); color: var(--juniper-ink); font-size: 14px; font-weight: 600; }
.le-pagination .page-numbers.current { background: var(--juniper-lilac); color: #fff; font-weight: 700; }
.le-pagination .page-numbers.dots { background: transparent; }
.le-archive-rail { display: none; }
.le-search-form { display: flex; gap: 8px; margin-top: 16px; max-width: 520px; }
.le-input { flex: 1; border: 1px solid var(--juniper-hairline); border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 15px; background: var(--juniper-surface); color: var(--juniper-ink); }
.le-404 { padding: 40px 0 60px; }
@media (min-width: 1024px) {
	.le-archive-head { padding: 44px 0 40px; }
	.le-archive-title { font-size: 42px; line-height: 1.1; margin-bottom: 14px; }
	.le-archive-intro { font-size: 18px; }
	.le-chips-row { overflow: visible; gap: 10px; flex-wrap: wrap; }
	.le-archive-chips::after { display: none; }
	.le-chip { font-size: 14px; padding: 10px 18px; }
	.le-chips-sort { display: block; }
	.le-archive-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 48px; align-items: start; }
	.le-archive-rail { position: sticky; top: calc(var(--le-header-h, 80px) + 20px); }
	.le-archive-grid-single { grid-template-columns: 1fr; }
	.le-tool-strip { display: none; }
	.le-post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
	.le-post-card-nothumb .le-post-card-text { padding-top: 22px; }
	.le-post-card-kind { display: block; margin-bottom: 8px; }
	.le-archive-grid-single .le-post-list { grid-template-columns: repeat(3, 1fr); }
	.le-post-card-link { flex-direction: column; gap: 0; background: var(--juniper-surface); border-radius: 20px; overflow: hidden; box-shadow: var(--juniper-shadow-soft); height: 100%; }
	.le-post-card-thumb { width: 100%; height: 172px; border-radius: 0; }
	.le-post-card-text { display: block; padding: 18px 20px 22px; }
	.le-post-card-title { font-size: 18px; margin-bottom: 8px; }
	.le-post-card-dek { display: block; font-size: 14.5px; line-height: 1.55; color: var(--juniper-ink-soft); margin-bottom: 12px; }
	.le-pagination { justify-content: flex-start; padding-top: 28px; }
	.le-pagination .page-numbers { min-width: 44px; height: 44px; font-size: 15px; }
	.le-archive-rail { display: flex; flex-direction: column; gap: 18px; }
	.le-rail-tool { background: var(--juniper-surface); border: 1px solid var(--juniper-hairline); border-radius: 20px; padding: 22px; }
	.le-rail-tool .juniper-eyebrow { margin-bottom: 12px; } .le-rail-tool .le-tool-glyph { margin-bottom: 12px; display: block; }
	.le-rail-tool-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; } .le-rail-tool-blurb { font-size: 14px; line-height: 1.5; color: var(--juniper-ink-soft); margin: 0 0 14px; }
	.le-rail-start { background: var(--juniper-soft-rose); border-radius: 20px; padding: 22px; }
	.le-rail-start .juniper-eyebrow { margin-bottom: 10px; } .le-rail-start p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
	.le-rail-start ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
	.le-rail-start a { font-size: 14.5px; font-weight: 600; color: var(--juniper-ink); line-height: 1.35; }
}

/* Early-access banner (snippet 1350, Ad Inserter block 4): Georgia stood in for Fraunces while the
   site had no webfont; the redesign has one, so the banner uses it. */
.le-site .ea-banner__head { font-family: var(--juniper-font-serif); }

/* Molongui author box: replaced by the byline + authority band (belt and braces if a render path slips through). */
.le-site .m-a-box, .le-site .molongui-clearfix { display: none !important; }

/* 404: on the 1280 grid like everything else, text kept to a readable measure */
.le-404-inner > * { max-width: 720px; }

@media (min-width: 1024px) { .le-post-body > .le-summary { max-width: 760px; margin-left: auto; margin-right: auto; } }

/* Book-primary conversion band (design 2026-08-16): guide demoted to a text link */
.le-cta-alt { display: inline-block; font-size: 14px; font-weight: 600; color: var(--juniper-lilac-deep); text-decoration: none; margin-top: 10px; padding: 6px 0; }
.le-cta-alt:hover { text-decoration: underline; }
.le-guide-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.le-guide-cta-actions .le-btn { width: 100%; justify-content: center; }
@media (min-width: 1024px) { .le-guide-cta-actions { align-items: flex-end; } .le-guide-cta-actions .le-btn { width: auto; } }
