/* Leafville - pages, blog, articles, 404, UX Builder shim layout. */
.lv-pagehero { padding: 40px 0 30px; background: #fff; border-bottom: 1px solid var(--lv-line); }
.lv-pagehero__t { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0; letter-spacing: -.03em; }
.lv-pagehero__s { margin: 10px 0 0; color: var(--lv-muted); font-size: 1.05rem; }
.lv-pagehero--slim { padding: 22px 0 14px; }
.lv-pagehero--slim .lv-pagehero__t { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lv-page { padding-top: 34px; padding-bottom: 60px; }
.lv-prose { font-size: 1.04rem; line-height: 1.8; color: var(--lv-text); }
.lv-prose > * { max-width: 820px; }
.lv-prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.lv-prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.lv-prose ul, .lv-prose ol { padding-left: 1.3em; }
.lv-prose li { margin-bottom: .4em; }
.lv-prose a { text-decoration: underline; text-underline-offset: 3px; }
.lv-prose img { border-radius: 14px; }
.lv-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--lv-lime); background: var(--lv-soft); border-radius: 0 12px 12px 0; }
.lv-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lv-prose th, .lv-prose td { border: 1px solid var(--lv-line); padding: 10px 12px; text-align: left; }

.lv-blog { padding-top: 34px; padding-bottom: 60px; }
.lv-posts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv-post { display: flex; flex-direction: column; border-radius: var(--lv-r); border: 1px solid var(--lv-line); overflow: hidden; background: #fff; color: var(--lv-ink); }
.lv-post:hover { border-color: var(--lv-lime); box-shadow: var(--lv-sh); color: var(--lv-ink); }
.lv-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lv-post__media { display: block; aspect-ratio: 16 / 9; background: var(--lv-soft); overflow: hidden; }
.lv-post__media img { width: 100%; height: 100%; object-fit: cover; }
.lv-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.lv-post__meta { font-size: .78rem; color: var(--lv-muted); font-weight: 600; }
.lv-post__t { font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lv-post__x { font-size: .9rem; color: var(--lv-muted); }
.lv-post__media { display: block; aspect-ratio: 16 / 9; background: var(--lv-soft); overflow: hidden; }
.lv-post__media img { width: 100%; height: 100%; object-fit: cover; }
.lv-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.lv-post__meta { font-size: .78rem; color: var(--lv-muted); font-weight: 600; }
.lv-post__t { font-weight: 800; line-height: 1.35; }
.lv-post__x { font-size: .9rem; color: var(--lv-muted); }
.lv-pager { margin-top: 30px; }
.lv-pager .nav-links { display: flex; justify-content: center; gap: 6px; }
.lv-pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--lv-line); font-weight: 700; color: var(--lv-ink); background: #fff; }
.lv-pager .current { background: var(--lv-forest); color: #fff; border-color: var(--lv-forest); }

.lv-article__hd { padding: 30px 0 26px; background: #fff; border-bottom: 1px solid var(--lv-line); }
.lv-article__hdin { max-width: 900px; }
.lv-article__t { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; margin: 14px 0 10px; letter-spacing: -.03em; }
.lv-article__meta { margin: 0; color: var(--lv-muted); font-weight: 600; font-size: .9rem; }
.lv-article__body { max-width: 900px; padding-top: 30px; padding-bottom: 20px; }
.lv-article__img { margin: 0 0 26px; }
.lv-article__img img { width: 100%; border-radius: var(--lv-r-lg); }
.lv-article__el { padding: 20px 0; }
.lv-article__cta { max-width: 900px; padding-bottom: 60px; }
.lv-ctacard { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; border-radius: var(--lv-r-lg); background: var(--lv-pine); color: rgba(255, 255, 255, .8); }
.lv-ctacard__t { margin: 0 0 4px; color: #fff; font-weight: 600; font-size: 1.3rem; font-family: var(--lv-font-head); }
.lv-ctacard__s { margin: 0; font-size: .92rem; }

.lv-404 { padding: 70px 0 80px; text-align: center; }
.lv-404__in { max-width: 720px; }
.lv-404__code { margin: 0; font-size: 5.5rem; font-weight: 500; line-height: 1; color: var(--lv-amber); letter-spacing: -.02em; font-family: var(--lv-font-head); font-style: italic; }
.lv-404__t { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 10px; }
.lv-404__s { color: var(--lv-muted); margin: 0 0 22px; }
.lv-404__search { max-width: 520px; margin: 0 auto 20px; }
.lv-404__chips { justify-content: center; flex-wrap: wrap; }

/* UX Builder shim layout */
.lv-sec--ux { padding: 30px 0; }
.lv-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin: 0 0 20px; }
.lv-row--vmid { align-items: center; }
.lv-row--hcenter { justify-items: center; }
.lv-col { grid-column: span var(--lv-span, 12); min-width: 0; }
.lv-utext > *:last-child, .lv-textbox > *:last-child { margin-bottom: 0; }
.lv-uimg { border-radius: 14px; width: 100%; }
.lv-banner { display: block; position: relative; min-height: 260px; padding: 40px; border-radius: var(--lv-r-lg); background-size: cover; background-position: center; overflow: hidden; color: #fff; }
.lv-banner__in { position: relative; z-index: 1; }
.lv-ustack { display: grid; gap: 16px; }
.lv-divider { border: 0; border-top: 1px solid var(--lv-line); margin: 24px 0; }
.lv-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.lv-grid--2 { --cols: 2; } .lv-grid--3 { --cols: 3; } .lv-grid--4 { --cols: 4; } .lv-grid--5 { --cols: 5; } .lv-grid--6 { --cols: 6; }
.lv-prose .lv-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.lv-postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 960px) {
	.lv-pagehero { padding: 24px 0 18px; }
	.lv-posts, .lv-posts--grid, .lv-postgrid { grid-template-columns: 1fr; }
	.lv-row { grid-template-columns: 1fr; gap: 14px; }
	.lv-col { grid-column: 1 / -1; }
	.lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lv-prose .lv-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lv-ctacard { flex-direction: column; align-items: flex-start; }
	.lv-banner { padding: 24px; min-height: 180px; }
}


/* Elementor-built blog posts: the old kit made headings lime and centred every paragraph. Bring them to the theme. */
.single-post .lv-article__el .elementor-heading-title { color: var(--lv-ink) !important; font-family: var(--lv-font) !important; text-align: left !important; letter-spacing: -.02em; line-height: 1.2 !important; }
.single-post .lv-article__el h1.elementor-heading-title, .single-post .lv-article__el h2.elementor-heading-title { font-size: clamp(1.35rem, 2.3vw, 1.75rem) !important; }
.single-post .lv-article__el h3.elementor-heading-title, .single-post .lv-article__el h4.elementor-heading-title { font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important; }
.single-post .lv-article__el .elementor-widget-text-editor, .single-post .lv-article__el .elementor-widget-text-editor p { text-align: left !important; color: var(--lv-text) !important; font-family: var(--lv-font) !important; font-size: 1.02rem !important; line-height: 1.75 !important; }
.single-post .lv-article__el .elementor-widget-text-editor a { color: var(--lv-lime-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.single-post .lv-article__el .elementor-section .elementor-container, .single-post .lv-article__el .e-con-inner { max-width: 860px !important; }


/* blog card without a featured image */
.lv-post__media--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--lv-forest), var(--lv-forest-3)); color: var(--lv-lime); }
.lv-post__media--none span { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

@media (min-width: 600px) and (max-width: 960px) { .lv-posts, .lv-posts--grid, .lv-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Article header with image beside the title; local-guide callout (2026-09-24) */
.lv-article__hdin.has-img { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center; }
.lv-article__hd .lv-article__img { margin: 0; }
.lv-article__hd .lv-article__img img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: var(--lv-r-lg); box-shadow: var(--lv-sh); }
.lv-article__callout { margin-top: 22px; max-width: 900px; }
.lv-callout { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--lv-r); background: var(--lv-lime-50); border: 1px solid var(--lv-lime-100); color: var(--lv-ink); text-decoration: none; max-width: 820px; }
.lv-callout:hover { border-color: var(--lv-lime); color: var(--lv-ink); }
.lv-callout > .lv-i:first-child { color: var(--lv-lime-ink); flex: none; }
.lv-callout > .lv-i:last-child { margin-left: auto; flex: none; color: var(--lv-forest); }
.lv-callout span { font-size: .92rem; color: var(--lv-muted); line-height: 1.45; }
.lv-callout b { display: block; color: var(--lv-ink); font-size: 1rem; }
@media (max-width: 760px) {
	.lv-article__hdin.has-img { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.lv-article__hd .lv-article__img img { aspect-ratio: 16 / 9; max-height: 220px; }
}

/* Category grid inside post content: 6 -> 3 -> 2 columns, compact cards on phones */
.lv-prose .lv-cats { margin: 26px 0; }
.lv-prose .lv-cat { text-decoration: none; text-align: center; }
.lv-prose .lv-cat__t { text-decoration: none; }
@media (max-width: 560px) {
	.lv-prose .lv-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.lv-prose .lv-cat { flex-direction: row; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; text-align: left; }
	.lv-prose .lv-cat__media { flex: none; width: 50px; height: 50px; margin: 0; border-radius: 9px; }
	.lv-prose .lv-cat__n { display: none; }
}

/* prose: Elementor-flattened posts/pages */
.lv-prose iframe { width: 100%; max-width: 820px; height: 320px; border: 0; border-radius: 14px; margin: 0 0 1.4em; }
.lv-prose .elementor-widget-container > *:last-child { margin-bottom: 0; }
.lv-prose p:empty { display: none; }
.lv-prose h2, .lv-prose h3 { font-weight: 600; }
.lv-article__callout { margin-top: 22px; max-width: 900px; }

/* How to order (code page) */
.lv-howsteps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lv-howstep { position: relative; padding: 26px 22px 22px; border-radius: var(--lv-r-lg); background: #fff; border: 1px solid var(--lv-line); }
.lv-howstep__n { position: absolute; top: 16px; right: 20px; font-family: var(--lv-font-head); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--lv-sand-2); }
.lv-howstep__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lv-green-50); color: var(--lv-green); margin-bottom: 14px; }
.lv-howstep h2 { font-size: 1.25rem; margin: 0 0 6px; }
.lv-howstep p { margin: 0; color: var(--lv-muted); font-size: .94rem; line-height: 1.55; }
.lv-howgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.lv-howcard { padding: 24px 24px 20px; border-radius: var(--lv-r-lg); background: #fff; border: 1px solid var(--lv-line); }
.lv-howcard h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 12px; }
.lv-howcard h2 .lv-i { color: var(--lv-green); }
.lv-howcard p { color: var(--lv-text); font-size: .96rem; }
.lv-howcard__age { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .86rem; color: var(--lv-muted); }
.lv-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lv-ticks li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.5; color: var(--lv-text); }
.lv-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--lv-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }
.lv-ticks b { color: var(--lv-ink); }

/* Where we ship (code page) */
.lv-zonefacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lv-zonefact { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--lv-r); background: #fff; border: 1px solid var(--lv-line); }
.lv-zonefact > .lv-i { color: var(--lv-green); flex: none; margin-top: 2px; }
.lv-zonefact b { display: block; color: var(--lv-ink); font-size: .98rem; }
.lv-zonefact span { display: block; color: var(--lv-muted); font-size: .86rem; line-height: 1.45; }
.lv-prov { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lv-prov__i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--lv-line); background: #fff; color: var(--lv-ink); text-decoration: none; }
a.lv-prov__i:hover { border-color: var(--lv-pine); color: var(--lv-ink); box-shadow: var(--lv-sh); }
.lv-prov__i--plain { color: var(--lv-muted); background: var(--lv-paper); }
.lv-prov__code { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lv-pine); color: var(--lv-amber); font-weight: 800; font-size: .82rem; letter-spacing: .04em; }
.lv-prov__i--plain .lv-prov__code { background: var(--lv-sand-2); color: var(--lv-muted); }
.lv-prov__n { flex: 1; font-weight: 700; font-size: .95rem; }
.lv-prov__go { color: var(--lv-muted); }
.lv-page .lv-catcopy { max-width: none; margin-left: 0; margin-right: 0; }
.lv-page .lv-catcopy__in { background: #fff; }
.lv-page .lv-ctacard { margin-top: 10px; }
@media (max-width: 1100px) { .lv-howsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-zonefacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-prov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lv-howsteps, .lv-howgrid, .lv-zonefacts { grid-template-columns: 1fr; } .lv-prov { grid-template-columns: 1fr 1fr; gap: 8px; } .lv-prov__i { padding: 10px 12px; gap: 10px; } .lv-prov__code { width: 34px; height: 34px; font-size: .76rem; } .lv-prov__n { font-size: .88rem; } .lv-howstep, .lv-howcard { padding: 20px 18px; } .lv-prose iframe { height: 240px; } }
