/*
Theme Name: Leadgen
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leadgen
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ==========================================================================
   Leadgen — Clean and credible. Tokens come from theme.json (DESIGN.md).
   One set of content, two presentations: html.lg-bands and html.lg-split
   (set by leadgen-core before first paint). Below 900px both are identical.
   ========================================================================== */

:root {
	--lg-radius: var(--wp--custom--rounded--md, 6px);
	--lg-radius-sm: var(--wp--custom--rounded--sm, 4px);
	--lg-shadow: 0 1px 3px rgb(16 24 40 / 0.06);
	--lg-shadow-lift: 0 6px 18px rgb(16 24 40 / 0.1);
	--lg-gutter: var(--wp--style--root--padding-left, 1.25rem);
	--lg-ease: 180ms ease-out;
	--lg-header-h: 76px;
}

body {
	-webkit-font-smoothing: antialiased;
	font-variant-numeric: tabular-nums;
}

a[href^="tel:"] {
	white-space: nowrap;
}

/* === block styles ======================================================= */

.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-call .wp-element-button {
	background: var(--wp--preset--color--accent);
	color: #fff;
}
.wp-block-button.is-style-call .wp-element-button:hover {
	background: var(--wp--custom--color--accent-strong);
}
.wp-block-button.is-style-call .wp-element-button::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
	vertical-align: -0.15em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.is-style-ghost .wp-element-button {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7);
}
.wp-block-button.is-style-ghost .wp-element-button:hover {
	background: rgb(255 255 255 / 0.1);
	box-shadow: inset 0 0 0 1.5px #fff;
}
.wp-element-button {
	transition: background-color var(--lg-ease), box-shadow var(--lg-ease), transform var(--lg-ease);
}
.wp-element-button:hover {
	transform: translateY(-1px);
}

.is-style-checks {
	list-style: none;
	padding-left: 0;
}
.is-style-checks li {
	position: relative;
	padding-left: 1.75em;
}
.is-style-checks li + li {
	margin-top: 0.35em;
}
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.1em;
	height: 0.6em;
	border-left: 2.5px solid var(--wp--preset--color--accent);
	border-bottom: 2.5px solid var(--wp--preset--color--accent);
	transform: rotate(-45deg) scale(0.85);
	transform-origin: center;
}

.is-style-panel {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--lg-radius);
	box-shadow: var(--lg-shadow);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.wp-block-details.is-style-faq {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-block: 1.1rem;
	margin-block: 0;
}
.wp-block-details.is-style-faq:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wp-block-details.is-style-faq summary {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details.is-style-faq summary::-webkit-details-marker {
	display: none;
}
.wp-block-details.is-style-faq summary::after {
	content: "+";
	color: var(--wp--preset--color--accent);
	font-size: 1.4em;
	line-height: 1;
	transition: transform var(--lg-ease);
}
.wp-block-details.is-style-faq[open] summary::after {
	transform: rotate(45deg);
}
.wp-block-details.is-style-faq > :not(summary) {
	color: var(--wp--preset--color--muted);
	margin-top: 0.75rem;
}

/* === images ============================================================= */

.wp-block-image img {
	border-radius: var(--lg-radius);
	filter: saturate(0.95);
}
.wp-block-cover__image-background {
	filter: saturate(0.95);
}
/* An image placed directly in a section (not in a column) exists only for
   the split pane; it never shows in the page flow. */
.lg-section > .wp-block-image.lg-section-image {
	display: none;
}

/* === header ============================================================= */

/* The header stays at the top while scrolling. The template part's own
   <header> wrapper is what sticks: a sticky .lg-header would only stick
   inside that wrapper, which is exactly its own height. */
.wp-site-blocks > header:has(.lg-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 40;
}
@media (max-width: 600px) {
	/* WordPress stops pinning the admin bar on small screens. */
	.wp-site-blocks > header:has(.lg-header) {
		top: 0;
	}
}
/* In-page links (#services, #quote) land below the header, not under it. */
html {
	scroll-padding-top: calc(var(--lg-header-h) + 1rem);
}
.lg-header {
	position: relative;
	z-index: 20;
	background: var(--wp--preset--color--background);
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: background-color var(--lg-ease), border-color var(--lg-ease), box-shadow var(--lg-ease);
}
html.lg-scrolled .lg-header {
	box-shadow: var(--lg-shadow-lift);
}
.lg-header__bar {
	min-height: var(--lg-header-h);
	gap: 1.5rem;
}
.lg-header .wp-block-navigation {
	gap: 1.75rem;
}
.lg-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}
.lg-header .wp-block-button .wp-element-button {
	padding: 10px 16px;
	font-size: var(--wp--preset--font-size--small);
}

/* === logo ============================================================== */

/* leadgen-core swaps the site title for logos/<slug>/lockup.html. The
   lockup draws in currentColor; --lg-logo-accent is its accent, lightened
   wherever the logo sits on a dark background. */
.lg-logo {
	--lg-logo-accent: var(--wp--preset--color--accent);
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	line-height: 1;
	text-decoration: none;
}
.lg-logo svg {
	display: block;
	flex: none;
}
.lg-logo__text {
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.lg-logo__accent {
	color: var(--lg-logo-accent);
}
.lg-logo__stack {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}
.lg-logo__big {
	font-size: 1.625rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	padding-left: 0.14em;
}
.lg-logo__small {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	padding-left: 0.3em;
	white-space: nowrap;
}
.lg-footer .lg-logo {
	--lg-logo-accent: var(--wp--custom--color--accent-soft);
}
@media (max-width: 480px) {
	.lg-logo__text {
		font-size: 1.125rem;
	}
	.lg-logo__mark {
		width: 32px;
		height: 32px;
	}
}

/* === sections =========================================================== */

.lg-band {
	padding-block: var(--wp--preset--spacing--band);
}
.lg-band-head {
	align-items: flex-end;
	margin-bottom: var(--wp--preset--spacing--lg);
}
.lg-band-head h2 {
	margin-top: 0.35rem;
}
.lg-band-head .lg-band-link a {
	font-weight: 600;
	text-decoration: none;
}

.lg-media-cols {
	gap: clamp(2rem, 5vw, 4.5rem);
}
.lg-media-cols .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* Service cards and area links come from [leadgen_services] / [leadgen_areas]. */
.lg-service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}
.lg-service-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--lg-radius);
	box-shadow: var(--lg-shadow);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: transform var(--lg-ease), box-shadow var(--lg-ease);
}
a.lg-service-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--lg-shadow-lift);
}
.lg-service-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--title);
	color: var(--wp--preset--color--primary);
}
.lg-service-card__desc {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.975rem;
	flex: 1;
}
.lg-service-card__more {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent);
}

.lg-area-links {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.6rem 1.25rem;
}
.lg-area-links li {
	padding-block: 0.6rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}
.lg-area-links a {
	color: inherit;
	text-decoration: none;
}
.lg-area-links a:hover {
	color: var(--wp--preset--color--accent);
}

.lg-faq-list {
	margin-top: var(--wp--preset--spacing--lg);
}

/* === hero (shared, mobile first) ======================================== */

.lg-hero.wp-block-cover {
	padding-block: clamp(2.5rem, 7vw, 5rem);
	padding-inline: var(--wp--style--root--padding-left);
	align-items: center;
}
.lg-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgb(16 24 40 / 0.86) 0%, rgb(16 24 40 / 0.62) 55%, rgb(16 24 40 / 0.35) 100%) !important;
	opacity: 1 !important;
}
.lg-hero h1 {
	color: #fff;
	margin-top: 0.5rem;
}
.lg-hero .is-style-eyebrow {
	color: var(--wp--custom--color--accent-soft);
}
.lg-hero .lg-lead {
	font-size: var(--wp--preset--font-size--lead);
	color: rgb(255 255 255 / 0.88);
}
.lg-hero .is-style-checks {
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.lg-hero .is-style-checks li + li {
	margin-top: 0;
}
.lg-hero .is-style-checks li::before {
	border-color: var(--wp--custom--color--accent-soft);
}
.lg-hero-cols {
	gap: clamp(1.5rem, 4vw, 4rem);
}

.lg-form-panel.is-style-panel {
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	box-shadow: 0 10px 30px rgb(16 24 40 / 0.22);
}
.lg-form-panel h2 {
	font-size: var(--wp--preset--font-size--title);
	margin: 0;
}
.lg-form-panel .lg-form-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.35rem;
}
.lg-form-panel .lg-form-call {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	text-align: center;
}
.lg-form-panel .lg-form-call a {
	font-weight: 600;
}

/* Gravity Forms (Orbital theme) mapped onto the palette. */
.lg-form-panel .gform-theme--framework {
	--gf-color-primary: var(--wp--preset--color--primary) !important;
	--gf-color-primary-rgb: var(--wp--custom--color--primary-rgb) !important;
	--gf-color-primary-darker: var(--wp--custom--color--primary-strong) !important;
	--gf-color-primary-lighter: var(--wp--custom--color--primary-lighter) !important;
	--gf-color-in-ctrl-primary: var(--wp--preset--color--accent) !important;
	--gf-color-in-ctrl-primary-rgb: var(--wp--custom--color--accent-rgb) !important;
	--gf-ctrl-border-color: var(--wp--preset--color--border) !important;
	--gf-ctrl-label-color-primary: var(--wp--preset--color--text) !important;
	--gf-radius: 6px !important;
	--gf-font-family-base: inherit !important;
}
body .lg-form-panel .gform_footer .gform_button {
	width: 100% !important;
	min-height: 48px !important;
	padding: 14px 24px !important;
	background: var(--wp--preset--color--primary) !important;
	border-radius: var(--lg-radius) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	transition: background-color var(--lg-ease);
}
body .lg-form-panel .gform_footer .gform_button:hover {
	background: var(--wp--custom--color--primary-strong) !important;
}
.lg-form-panel .gfield--type-consent .gfield_consent_label,
.lg-form-panel .gfield_description {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

/* === closing call and footer ============================================ */

.lg-cta {
	position: relative;
	z-index: 2;
	text-align: center;
}
.lg-cta h2 {
	color: #fff;
}
.lg-cta p {
	color: rgb(255 255 255 / 0.85);
}

.lg-footer {
	position: relative;
	z-index: 2;
	padding-block: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--lg);
	font-size: var(--wp--preset--font-size--small);
	color: rgb(255 255 255 / 0.8);
}
body .lg-footer,
body .lg-footer p {
	color: rgb(255 255 255 / 0.8);
}
body .lg-footer .wp-block-site-title a,
body .lg-footer .wp-block-navigation,
body .lg-footer h2,
body .lg-footer strong {
	color: #fff;
}
body .lg-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--custom--color--accent-soft);
}
.lg-footer h2 {
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.lg-footer a {
	color: #fff;
}
.lg-footer .wp-block-separator {
	border-color: rgb(255 255 255 / 0.15);
	opacity: 1;
	margin-block: var(--wp--preset--spacing--lg);
}
.lg-footer .lg-disclosure {
	color: rgb(255 255 255 / 0.6);
	font-size: 0.8125rem;
}

/* Sticky call bar on phones. */
body .lg-mobilebar {
	display: none;
}
@media (max-width: 781px) {
	body .lg-mobilebar {
		display: flex;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 50;
		gap: 0.5rem;
		padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--background);
		border-top: 1px solid var(--wp--preset--color--border);
		box-shadow: 0 -4px 16px rgb(16 24 40 / 0.08);
	}
	.lg-mobilebar .wp-block-button {
		flex: 1;
	}
	.lg-mobilebar .wp-element-button {
		width: 100%;
		padding: 13px 10px;
		font-size: 0.95rem;
	}
	body {
		padding-bottom: 76px;
	}
	.lg-header .wp-block-buttons {
		display: none;
	}
}

/* === A: stacked bands (desktop) ========================================= */

@media (min-width: 900px) {
	/* Over the hero the header is transparent with white text; once the page
	   scrolls (assets/js/header.js adds lg-scrolled) it turns solid. */
	html.lg-bands body:has(.lg-hero) .wp-site-blocks > header:has(.lg-header) {
		position: fixed;
		inset: var(--wp-admin--admin-bar--height, 0px) 0 auto 0;
	}
	html.lg-bands:not(.lg-scrolled) body:has(.lg-hero) .lg-header {
		background: transparent;
		border-bottom-color: rgb(255 255 255 / 0.15);
	}
	html.lg-bands:not(.lg-scrolled) body:has(.lg-hero) .lg-header .wp-block-site-title a,
	html.lg-bands:not(.lg-scrolled) body:has(.lg-hero) .lg-header .wp-block-navigation a {
		color: #fff;
	}
	html.lg-bands:not(.lg-scrolled) body:has(.lg-hero) .lg-header .lg-logo {
		--lg-logo-accent: var(--wp--custom--color--accent-soft);
	}
	html.lg-bands .lg-hero.wp-block-cover {
		min-height: min(88vh, 860px) !important;
		padding-top: calc(var(--lg-header-h) + 3rem);
	}
}

/* === B: sticky split (desktop) ========================================== */

@media (min-width: 900px) {
	/* Left half: a fixed pane, filled by assets/js/split.js. Until it is,
	   the half shows the surface color, so nothing shifts. */
	html.lg-split body:has(.lg-section)::before {
		content: "";
		position: fixed;
		inset: 0 50% 0 0;
		background: var(--wp--preset--color--surface);
		z-index: 0;
	}
	.lg-pane {
		position: fixed;
		inset: 0 50% 0 0;
		z-index: 1;
		overflow: hidden;
	}
	.lg-pane img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		filter: saturate(0.95);
		opacity: 0;
		transition: opacity 500ms ease;
	}
	.lg-pane img.is-active {
		opacity: 1;
	}

	/* Right half: every section, on a white background above the pane. */
	html.lg-split .wp-block-post-content:has(> .lg-section) {
		display: grid;
		grid-template-columns: 50% 50%;
		padding-inline: 0 !important;
	}
	html.lg-split .wp-block-post-content:has(> .lg-section) > * {
		grid-column: 1 / -1;
		margin-inline: 0 !important;
		max-width: none !important;
	}
	html.lg-split .wp-block-post-content > .lg-section {
		grid-column: 2;
		position: relative;
		z-index: 2;
		margin-block-start: 0;
		padding-inline: clamp(2rem, 4vw, 4rem) !important;
	}
	html.lg-split .wp-block-post-content > .lg-section > .alignwide {
		max-width: none !important;
		margin-inline: 0 !important;
	}
	html.lg-split .wp-block-post-content > .lg-cta {
		grid-column: 1 / -1;
	}
	html.lg-split .lg-header,
	html.lg-split .lg-footer {
		z-index: 3;
	}
	html.lg-split .lg-footer {
		background: var(--wp--preset--color--primary);
	}

	/* The pane shows each section's image, so the in-flow copies go. */
	html.lg-split .lg-section .wp-block-column:has(> .lg-section-image:only-child),
	html.lg-split .lg-section .lg-section-image {
		display: none;
	}
	html.lg-split .lg-section .wp-block-columns {
		flex-wrap: wrap !important;
	}
	html.lg-split .lg-section .wp-block-column {
		flex-basis: 100% !important;
	}

	/* The hero loses its photo to the pane and sits on white. */
	html.lg-split .lg-hero.wp-block-cover {
		min-height: 0 !important;
		background: var(--wp--preset--color--background);
		color: var(--wp--preset--color--text);
		padding-block: clamp(2.5rem, 6vh, 4.5rem) var(--wp--preset--spacing--xl);
	}
	html.lg-split .lg-hero .wp-block-cover__image-background,
	html.lg-split .lg-hero .wp-block-cover__background {
		display: none;
	}
	html.lg-split .lg-hero .wp-block-cover__inner-container {
		color: var(--wp--preset--color--text);
	}
	html.lg-split .lg-hero h1 {
		color: var(--wp--preset--color--primary);
	}
	html.lg-split .lg-hero .is-style-eyebrow {
		color: var(--wp--preset--color--accent);
	}
	html.lg-split .lg-hero .lg-lead {
		color: var(--wp--preset--color--muted);
	}
	html.lg-split .lg-hero .is-style-checks {
		color: var(--wp--preset--color--text);
	}
	html.lg-split .lg-hero .is-style-checks li::before {
		border-color: var(--wp--preset--color--accent);
	}
	html.lg-split .lg-form-panel.is-style-panel {
		background: var(--wp--preset--color--surface);
		box-shadow: var(--lg-shadow);
	}
	html.lg-split .lg-service-cards {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* === internal pages (templates/page.html) ================================
   Privacy, terms and any other plain page: a title band, one reading
   column, and the closing call. Same in both layouts of the split test. */

.lg-page-head {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.lg-page-head .is-style-eyebrow {
	margin: 0;
}
.lg-page-head .wp-block-post-title,
.lg-page-head .lg-page-title {
	margin-block: 0.5rem 0;
	font-size: var(--wp--preset--font-size--display);
	color: var(--wp--preset--color--primary);
}
.lg-page-head .lg-page-intro,
.lg-page-head .wp-block-term-description {
	margin-block: 0.75rem 0;
	font-size: var(--wp--preset--font-size--lead);
	color: var(--wp--preset--color--muted);
}
.lg-page-head .is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.lg-page-head .is-style-eyebrow a:hover {
	text-decoration: underline;
}
.wp-site-blocks .lg-page-body {
	padding-block: clamp(2rem, 5vw, 3.5rem) var(--wp--preset--spacing--xl);
	margin-block-start: 0;
}
.lg-page-body h2 {
	margin-block: 2.5rem 0.75rem;
	font-size: var(--wp--preset--font-size--title);
}
.lg-page-body h2 + * {
	margin-block-start: 0;
}
.lg-page-body ul {
	padding-left: 1.25rem;
}
.lg-page-body li + li {
	margin-top: 0.5rem;
}
.lg-page-body a {
	text-underline-offset: 0.15em;
}
.lg-page .lg-cta {
	margin-block-start: 0;
	text-align: center;
}
/* Bands meet the header and footer with no white gap between. */
.wp-site-blocks > .lg-page,
.wp-site-blocks:has(> .lg-page) > footer,
.lg-page > .lg-page-head {
	margin-block-start: 0;
}
.lg-legal-updated {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 0;
}

/* === blog (templates/home.html, archive.html, single.html) ============== */

.lg-post-cards {
	gap: 1.25rem;
}
/* The card grid is a list inside .lg-page-body on the blog templates; keep
   the body's list indent and item spacing off it. */
.lg-page-body ul.lg-post-cards {
	padding-left: 0;
}
.lg-post-cards > li + li {
	margin-top: 0;
}
@media (max-width: 781px) {
	.lg-post-cards.is-layout-grid {
		grid-template-columns: 1fr;
	}
}
.lg-post-card {
	height: 100%;
	padding: 0 0 1.25rem;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--lg-radius);
	box-shadow: var(--lg-shadow);
	overflow: hidden;
	transition: box-shadow var(--lg-ease), transform var(--lg-ease);
}
.lg-post-card:hover {
	box-shadow: var(--lg-shadow-lift);
}
.lg-post-card > * {
	margin-inline: 1.25rem !important;
}
.lg-post-card > .wp-block-post-featured-image {
	margin: 0 0 1rem !important;
}
.lg-post-card > :first-child:not(.wp-block-post-featured-image) {
	margin-top: 1.25rem;
}
.lg-post-card .wp-block-post-title {
	margin-block: 0 0.5rem;
	font-size: var(--wp--preset--font-size--title);
	line-height: 1.3;
}
.lg-post-card .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.lg-post-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}
.lg-post-card .wp-block-post-excerpt {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.lg-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}
.lg-post-card .wp-block-read-more {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}
.lg-blog .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--lg);
}

/* Article */
.lg-article-meta {
	margin-top: 0.75rem;
	gap: 0.25rem 1rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
.lg-article-meta > * {
	margin: 0;
}
.lg-article-meta > * + *::before {
	content: "·";
	margin-right: 1rem;
}
.lg-article-image {
	margin-bottom: var(--wp--preset--spacing--lg);
}
.lg-article-image img {
	border-radius: var(--lg-radius);
}
.lg-page-body h3 {
	margin-block: 1.75rem 0.5rem;
}
.lg-page-body ol {
	padding-left: 1.4rem;
}
.lg-page-body blockquote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text);
}
.lg-page-body img {
	height: auto;
	border-radius: var(--lg-radius-sm);
}

/* The service an article is about, linked at its end. */
.lg-related {
	margin-top: var(--wp--preset--spacing--xl);
	padding-top: var(--wp--preset--spacing--lg);
	border-top: 1px solid var(--wp--preset--color--border);
}
.lg-related__label {
	margin: 0 0 0.75rem;
}
.lg-related .lg-service-cards {
	margin: 0;
}
.lg-article-quote {
	margin-block-start: 0;
}
