/**
 * Palmetto Energy Saver — page-content components.
 * Every rule traces to docs/figma-spec.md. Global primitives (type, buttons, cards,
 * header, footer) live in base.css; this file holds page-section patterns.
 */

/* ================================================================
   PAGE SHELL — Figma: 14px gutter mobile, 1312 content column desktop,
   24px section gap mobile / 80px desktop, content starts under nav.
   ================================================================ */
.site-main { display: flex; flex-direction: column; gap: var(--section-gap); padding-top: var(--header-offset); padding-bottom: 104px; }
@media (min-width: 1024px) { .site-main { padding-top: 0; padding-bottom: var(--section-gap); } }
/* WP's constrained-layout injects max-width: contentSize on children — the Figma column is 1312. */
.site-main .wp-block-group.is-layout-constrained > * { max-width: var(--container-max); }

/* Card rows: stack on mobile (gap 24); equal grid columns on desktop (gap 60).
   Grid (not flex) so padded and unpadded siblings get identical widths. */
.card-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: var(--container-max); margin-inline: auto; }
.card-row > * { min-width: 0; margin: 0 !important; }
@media (min-width: 1024px) {
	.card-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 60px; align-items: stretch; }
	/* Figma "Body Content" (636:6364) is items-end: content sits under the two
	   right-hand card columns. Same 3-column template as .card-row so it shrinks
	   in lockstep — column 1 stays clear for the sticky intro block. */
	.card-row--tight,
	.card-row--end { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
	.card-row--end > * { grid-column: 2 / -1; }
	.card-row--tight > *:nth-child(1) { grid-column: 2; }
	.card-row--tight > *:nth-child(2) { grid-column: 3; }
	.card-stack { display: flex; flex-direction: column; gap: 65px; margin-top: 0; }
	.card-stack > .card { flex: 1 1 0; justify-content: center; }
}

/* Homepage: sticky items + video/About stack (435:3779 / 841:4442).
   The About card is now Accountability Gold with cream text; a 397×200 video
   thumbnail sits above it in a 397px column that overlaps the hero bottom
   by 359px on desktop (stack top at y=341 vs hero bottom 700). */
.home-sticky-about__row { display: flex; flex-direction: column; gap: 24px; }
.home-about-stack { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.home-about-stack > * { margin: 0; margin-block-start: 0; } /* neutralize WP is-layout-flow block-gap */
.card--about { background: var(--color-blue-dark); }
.card--about h2 { color: #f9f7f0; }
.card--about .card__body p { color: #f9f7f0; }
@media (min-width: 1024px) {
	.home-sticky-about { position: relative; z-index: 4; margin-top: calc(-200px - var(--section-gap)); } /* above .hero__inner (z:3) so the video thumb is clickable */ /* Figma: stack top at y=341, hero bottom 700 → 359 overlap + 24 WP block margin */
	.home-sticky-about, .home-sticky-about__row { pointer-events: none; } /* full-width row overlaps the hero — let clicks reach the hero CTAs */
	.home-sticky-about__row > * { pointer-events: auto; }
	.home-sticky-about__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
	.home-about-stack { flex: 0 1 397px; min-width: 0; }
	.card--about { padding: 36px; }
}
/* Hamburger band (1024–1279): the 720px icon row + 397px column can't fit on one
   line — icons drop to a 2×2 grid (352px) and the video/About stack takes the
   width they free up. No hero overlap in this band: normal section gap instead. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.home-sticky-about { margin-top: 0; }
	.home-sticky-about__row { align-items: flex-start; }
	.sticky-items { display: grid; grid-template-columns: repeat(2, 168px); flex-shrink: 0; }
	.home-about-stack { flex: 1 1 auto; }
}
.intro__cta { display: none; }
@media (min-width: 1024px) { .intro__cta { display: inline-flex; } }

/* Intro block (187:3838 / 423:2988) */
.intro { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.intro__text { display: flex; flex-direction: column; gap: 8px; }
.intro__text > * { margin: 0; }
@media (min-width: 1024px) {
	.intro { align-items: flex-start; text-align: left; gap: 24px; }
	.intro__text { gap: 24px; }
	.intro__text h2 { font-size: 3rem; line-height: 3.75rem; } /* 48/60 per 423:2989 */
}

/* Program / feature cards — content spacing per Figma (gap 24 between image, body, button; gap 8 inside body) */
.card > * { margin: 0; }
.card--green .card__amount { color: var(--color-white); font-weight: var(--font-weight-bold); font-size: 0.875rem; line-height: 0.875rem; margin-top: 0; }
.card--blue .card__amount { color: var(--color-white); font-weight: var(--font-weight-bold); font-size: 0.875rem; line-height: 0.875rem; margin-top: 0; }
@media (min-width: 1024px) {
	.card--green .card__amount, .card--blue .card__amount { font-size: 1rem; line-height: 1.25rem; }
	.card--green h4, .card--blue h4 { font-size: 1.125rem; line-height: 1.375rem; }
}
.card--blue-50 h2 { color: var(--color-blue-dark); }
.card--grey h2 { color: var(--color-text-dark); }

/* How to save — steps (187:3851 / 435:3789) */
.steps { display: flex; flex-direction: column; gap: 24px; }
.steps > * { margin: 0; }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step__body { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.step__body > * { margin: 0; }
.step__title { font-weight: var(--font-weight-bold); font-size: 1rem; line-height: 1.25rem; color: var(--color-text); }
.step__text { font-size: 1rem; line-height: 1.375rem; color: var(--color-text-body); }
@media (min-width: 1024px) {
	.step__title { font-size: 1.125rem; line-height: 1.375rem; }
	.steps .btn { align-self: flex-start; width: 100%; }
	.steps.card { padding: 36px; } /* 435:3789 p-[36px] */
}
@media (max-width: 1023px) { .steps .btn { width: 100%; } }
.steps--cta-inline .btn { width: auto; align-self: flex-start; }

/* Blocks kept in content but hidden from the frontend (restored in editor.css for editing). */
.is-hidden-frontend { display: none; }

/* Interior two-column layout (Programs 436:4166 et al.): 397 | 855, gap 60, rows gap 80, columns flow independently */
.page-cols { display: flex; flex-direction: column; gap: 24px; }
/* Homepage body (409:2812 636:6364): same 397 | 855 split but 60px row gaps */
.home-cols > *, .home-cols .page-cols__side > *, .home-cols .page-cols__main > *, .home-cols .card-row > *, .home-cols .card-stack > * { margin: 0; margin-block-start: 0; } /* WP is-layout-flow adds margin-block-start to 2nd+ children; our grid/flex gaps handle spacing */
.page-cols__side, .page-cols__main { display: contents; }
.page-cols__side > *, .page-cols__main > * { margin: 0; min-width: 0; }
/* Mobile order (187:3743): headline → main content → CTA cards → FAQ */
.page-cols .page-headline, .page-cols .headline-pin { order: -1; }
.cta-stack, .side-stack { display: flex; flex-direction: column; gap: 24px; }
.cta-stack > *, .side-stack > * { margin: 0; margin-block-start: 0; } /* neutralize WP is-layout-flow block-gap */
.programs-page .page-headline {
	@media (max-width: 1023px) {
		align-items: center;
		text-align: center;
	}
}
/* Programs page (436:4166): full-width sections stacked at 60px — headline, comparison
   table, side-by-side program cards, then the 397|855 CTA/FAQ row via .page-cols. */
.programs-page { display: flex; flex-direction: column; gap: 24px; }
.programs-page > * { margin: 0; margin-block-start: 0; }
@media (min-width: 1024px) {
	.programs-page { gap: 60px; }
}
/* Comp 436:4166: headline spans the content column (left-aligned); vertical program
   cards are left-aligned — unlike centered .card--center on the homepage, so scoped
   here. 4px tonal top borders ship with .card--green/.card--blue already. */
.programs-page > .page-headline { width: 100%; margin-inline: 0; }
.programs-page .card--center { text-align: left; align-items: flex-start; }
.programs-page .card--center .card__body { align-items: flex-start; }
.programs-page .card--center .btn { align-self: flex-start; }
@media (min-width: 1024px) {
	.programs-page .card--center .card__image { height: 350px; }
}
.page-cols .card--cta { order: 5; }
.page-cols .card--faq { order: 10; }
/* Homepage nests CTA cards inside .card-row/.card-stack — those ordering rules are for interior pages only */
.home-cols .card--cta, .home-cols .card--faq { order: 0; }
@media (min-width: 1024px) {
	/* Nested inside the 855px main column, card-row modifiers don't leave a
	   column clear (that's for full-width rows with a sticky sibling) — the
	   cards fill the whole row. */
	.home-cols .card-row--tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-cols .card-row--tight > *, .home-cols .card-row--end > * { grid-column: auto; }
	.home-cols .card-row--end { grid-template-columns: minmax(0, 1fr); }
	/* Sticky toggle in a flex column needs the column stretched to row height
	   to have travel room (same pattern as .program-cols). */
	.home-cols .page-cols__side:has(> .sticky-block),
	.home-cols .page-cols__main:has(> .sticky-block) { align-self: stretch; }
	/* Homepage: pin the whole left column (intro + testimonial + photo) so it
	   follows the scroll instead of leaving the left half blank below it. */
	.home-cols .page-cols__side { position: sticky; top: calc(var(--header-offset) + var(--header-height) + 24px); }
	.home-cols .page-cols__side:has(> .sticky-block) { align-self: flex-start; }
}
@media (min-width: 1024px) {
	.page-cols { display: grid; grid-template-columns: minmax(0, 397px) minmax(0, 855px); grid-auto-flow: row dense; gap: 80px 60px; align-items: start; }
	/* Homepage (409:2812): columns flow independently, 60px gaps, intro offset 60px from top */
	.home-cols { display: flex; flex-direction: row; gap: 60px; align-items: flex-start; }
	.home-cols .page-cols__side { display: flex; flex-direction: column; gap: 60px; flex: 0 0 397px; padding-top: 60px; }
	.home-cols .side-stack { gap: 60px; } /* match the side column rhythm so the wrapper is invisible */
	.home-cols .page-cols__main { display: flex; flex-direction: column; gap: 60px; flex: 1 1 0; min-width: 0; }
	.page-cols__side > * { grid-column: 1; }
	.page-cols__main > * { grid-column: 2; }
	.page-cols .w-626 { width: min(626px, 100%); }
	.page-cols .cta-stack { gap: 80px; } /* single grid item: decouples the card pair from main-column row heights */
	.programs-page .page-cols { row-gap: 60px; } /* Programs comp (436:4166): right column stacks at 60px */
	.programs-page .headline-pin { align-self: stretch; } /* real box spanning row 1: gives the sticky headline a constraint that ends with the comparison table */
}
/* Opt-in sticky block: set a block's "Block Positioning" field to Sticky (or
   add "sticky-block" via Additional CSS class) to pin it below the fixed
   header while the rest of its column scrolls. main.js extends its grid area
   when it sits in a flattened grid (.page-cols, .program-cols, .card-row) so
   sticky has room to travel. */
@media (min-width: 1024px) {
	.sticky-block { position: sticky; top: calc(var(--header-offset) + var(--header-height) + 24px); }
}

.card--grey-plain { background: var(--color-grey-surface); }
.card--blue-50-plain { background: var(--color-blue-50); }
/* Page headline (436:4233): H1 + body, gap 16, mobile has 24px inset */
.page-headline { display: flex; flex-direction: column; gap: 16px; padding: 0 24px; }
.page-headline > * { margin: 0; }
.page-headline h1 { color: var(--color-primary-dark); }
.page-headline p { color: var(--color-text-body); }
@media (min-width: 1024px) { .page-headline { padding: 0; } .page-headline h1 { font-size: 3.75rem; } }

/* Horizontal program card (442:4631): image 262 left, gap 30, p36; mobile stacks with 150 image */
.card--program-h { gap: 24px; }
.card--program-h .card__image { height: 150px; }
.card--program-h .card__body { align-items: flex-start; text-align: left; }
.card--program-h .card__title-group { display: flex; flex-direction: column; gap: 8px; }
.card--program-h .card__title-group > * { margin: 0; }
.card--program-h .card__content { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; flex: 1 1 0; min-width: 0; }
.card--program-h .card__content > * { margin: 0; }
@media (min-width: 1024px) {
	.card--program-h { flex-direction: row; align-items: center; gap: 30px; padding: 36px; }
	.card--program-h .card__image { width: 262px; height: auto; align-self: stretch; min-height: 303px; flex-shrink: 0; }
}
/* DIY badge (442:4648): #8DAFCE, 1px #B8CDE0, r10, 8/12, Semibold 14/16 white */
.diy-badge { width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--color-blue-300); border: 1px solid var(--color-blue-200); font-weight: var(--font-weight-semibold); font-size: 0.875rem; line-height: 1rem; color: var(--color-white); text-align: left; }

/* CTA cards (444:4671 / 472:14174): #F5F5F5 or #F2F5F7, p36, H2 #333, gap 24 */
.card--cta { gap: 24px; padding: var(--card-pad); border-radius: var(--radius-md); }
.card--cta h2 { color: var(--color-text-dark); }
.card--cta .card__body { gap: 8px; }
.card--center { text-align: center; align-items: center; }
.card--center .card__body { align-items: center; }
.card--center .btn { align-self: center; }
@media (max-width: 1023px) { .card--cta { text-align: center; align-items: center; } .card--cta .card__body { align-items: center; } .card--cta .btn { margin: 0 auto; } }
@media (min-width: 1024px) { .card--cta { padding: 36px; } }
.hide-mobile { display: none; }
@media (min-width: 1024px) { .hide-mobile { display: flex; } }

/* Program detail pages (HOMES 444:4704 / HEAR): two 626 cards side by side, then FAQ right */
.program-cols { display: flex; flex-direction: column; gap: 24px; }
.program-cols > * { margin: 0; min-width: 0; }
@media (min-width: 1024px) {
	.program-cols { display: grid; grid-template-columns: minmax(0, 626px) minmax(0, 626px); gap: 80px 60px; align-items: start; }
	.program-cols > .card--faq { grid-column: 2; }
	/* For Renters (458:11638): each column wrapper stacks its own cards
	   independently — masonry effect, Improvements sits under Renters */
	.program-cols .program-col { display: flex; flex-direction: column; gap: 80px; }
	.program-cols .program-col > * { margin: 0; min-width: 0; }
	.hear-cols .program-col { gap: 60px; }
	/* A column containing an opt-in sticky block stretches to the row height so
	   the sticky block has room to travel. */
	.program-cols > .program-col:has(> .sticky-block) { align-self: stretch; }
}
/* For Renters (458:11638): comp is row-based — Improvements | Need to Know,
   then How It Works spanning beside Apartment + FAQ. Flatten the column
   wrappers and place cards by order so the DOM columns needn't change. */
@media (min-width: 1024px) {
	.renters-cols { row-gap: 60px; }
	.renters-cols .program-col { display: contents; }
	.renters-cols .program-col--left  > :nth-child(2) { order: 1; align-self: stretch; } /* Improvements r1c1 h-full */
	.renters-cols .program-col--left  > :nth-child(1) { order: 2; }                        /* Need to Know r1c2 */
	.renters-cols .program-col--right > :nth-child(1) { order: 3; grid-row: span 2; align-self: stretch; justify-content: center; } /* Steps r2+r3 c1 */
	.renters-cols .program-col--right > :nth-child(2) { order: 4; }                        /* Apartment r2c2 */
	.renters-cols .program-col--right > :nth-child(3) { order: 5; }                        /* FAQ r3c2 */
}
/* Mobile: flatten the column wrappers into comp reading order —
   Improvements → Need to Know → How It Works → Apartment → FAQ */
@media (max-width: 1023px) {
	.renters-cols .program-col, .hear-cols .program-col { display: contents; }
	.renters-cols .program-col--left > :nth-child(2) { order: 1; }
	.renters-cols .program-col--left > :nth-child(1) { order: 2; }
	.renters-cols .program-col--right > :nth-child(1) { order: 3; }
	.renters-cols .program-col--right > :nth-child(2) { order: 4; }
	.renters-cols .program-col--right > :nth-child(3) { order: 5; }
	/* HEAR: Is HEAR Right → How it Works → Contractor vs. DIY → FAQ */
	.hear-cols .program-col--left > :nth-child(1) { order: 1; }
	.hear-cols .program-col--right > :nth-child(1) { order: 2; }
	.hear-cols .program-col--left > :nth-child(2) { order: 3; }
	.hear-cols .program-col--right > :nth-child(2) { order: 4; }
}
.steps--green .step-badge { background: var(--color-primary); }
.steps--blue .step-badge { background: var(--color-blue); }
.steps__intro { display: flex; flex-direction: column; gap: 8px; }
.steps__intro > * { margin: 0; }
.steps__intro p { color: var(--color-text-body); }
.card--mint { background: #e1eae5; }
.card--sky { background: var(--color-blue-100); }

/* Check list (444:5105): ✓ green bold + item #565555 */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--color-text-body); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.375rem; }
.check-list li::before { content: "\2713"; flex: 0 0 12px; text-align: center; font-weight: var(--font-weight-bold); color: var(--color-green-light); line-height: 1.25rem; }
.check-list--blue li::before { color: #3D6B95; }
.check-list strong { display: block; font-weight: var(--font-weight-bold); line-height: 1.25rem; }
.check-list em { font-style: italic; }
.note-box { padding: 8px 12px; border-radius: var(--radius-md); background: var(--color-hero-tint); border: 1px solid #e1eae5; font-weight: var(--font-weight-semibold); font-size: 0.875rem; line-height: 1.125rem; color: var(--color-text-dark); }
/* Note sits on a mint card (renters Improvements 458:11638): needs the darker mint to stay visible */
.card--green-tint .note-box { background: #e1eae5; border-color: #e1eae5; }
/* Renters Improvements card: comp uses r10 */
.renters-cols .card--green-tint { border-radius: 10px; }
.note-box--blue { background: var(--color-blue-50); border-color: var(--color-blue-100); }
.card__section { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.card__section > * { margin: 0; }
.card__section h4 { color: var(--color-blue); }
.card__sections { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* Chart Accordion (355:5214) — <details>: header #E1EAE5 r8, Bold 16/20 palmetto; table rows */
.chart-accordion { width: 100%; background: var(--color-white); border-radius: var(--radius-md); }
.chart-accordion summary { display: flex; align-items: center; gap: 8px; padding: 6px 8px; list-style: none; cursor: pointer; background: #e1eae5; border-radius: var(--radius-md); font-weight: var(--font-weight-bold); font-size: 1rem; line-height: 1.25rem; color: var(--color-primary-dark); }
.chart-accordion summary::-webkit-details-marker { display: none; }
.chart-accordion summary::after { content: "+"; width: 12px; text-align: center; }
.chart-accordion[open] summary { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.chart-accordion[open] summary::after { content: ""; width: 7px; height: 1.5px; background: var(--color-primary-dark); }
.chart-accordion--blue summary { background: var(--color-blue-100); color: var(--color-blue-dark); }
.chart-accordion__table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.375rem; color: var(--color-text-body); }
.chart-accordion__table th { padding: 6px 8px; text-align: left; font-weight: var(--font-weight-normal); background: var(--color-primary); color: var(--color-white); vertical-align: bottom; }
.chart-accordion--blue .chart-accordion__table th { background: var(--color-blue); }
.chart-accordion__table td { padding: 6px 8px; vertical-align: top; }
.chart-accordion__table tbody tr.is-group-end td { padding-bottom: 14px; border-bottom: 1.5px solid var(--color-grey-light); }
.chart-accordion__table tbody tr.is-group-end + tr td { padding-top: 16px; }

/* Slide animation for the collapsible <details>. The JS in blocks.js
   drives the height transition; .chart-accordion__content clips overflow. */
.chart-accordion__content { overflow: hidden; transition: height var(--transition-base); }
@media ( prefers-reduced-motion: reduce ) {
	.chart-accordion__content { transition: none; }
}

/* Renters / Multifamily (458:11638 / 490:17304) */
.card--paper { background: #f9f7f0; }
.card--plain { padding-inline: 0; }
@media (min-width: 1024px) { .card--plain { padding: 0; } }
.bullet-list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 4px; color: var(--color-text-body); font-size: 1rem; line-height: 1.375rem; }
.bullet-list--white { color: var(--color-white); text-align: left; }
.info-box { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 14px; border-radius: var(--radius-md); background: var(--color-hero-tint); }
.info-box > * { margin: 0; }
/* Callout heading is Proxima Bold 16/20 in Figma (not the default serif italic h3) */
.info-box h3 { color: var(--color-text-dark); font-family: var(--font-primary); font-style: normal; font-weight: var(--font-weight-bold); font-size: 1rem; line-height: 1.25rem; }
.info-box a { color: inherit; }
.info-box p { color: var(--color-text-body); font-size: 0.875rem; line-height: 1.125rem; }
.intro--left { 
	align-items: flex-start; text-align: left;

	@media screen and (max-width: 1023px) {
		text-align: center;
	}
	hr {
		@media screen and (max-width: 1023px) {
			margin: 0 auto;
		}
	}
}
.card--program-h .bullet-list { padding-left: 20px; }

/* Multifamily (490:17304): intro + two bordered cards on one row, vertical
   program cards, then a sticky left column beside six FAQ cards. */
.mf-intro-row,
.mf-programs,
.mf-cols,
.mf-cols__left,
.mf-cols__right { display: flex; flex-direction: column; gap: 24px; }

@media (min-width: 1024px) {
	.mf-intro-row, .mf-programs { margin-block-end: 60px; } /* comp row spacing */
	/* comp: 100px to the footer (80px section pad + 20). :last-child needed to
	   beat WP's is-layout-constrained margin reset. */
	.program-page > .mf-cols:last-child { margin-block-end: 20px; }
}
/* Neutralize WP is-layout-flow block-gap on 2nd+ children — our flex gaps handle it. */
.mf-intro-row > *, .mf-programs > *, .mf-cols > *, .mf-cols__left > *, .mf-cols__right > * { margin: 0; margin-block-start: 0; }

.mf-reach-us { border: 2px solid var(--color-blue-50); border-radius: 8px; padding: 36px; margin-bottom: 0; }
.mf-reach-us h3 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.4375rem; line-height: 1.625rem; color: #333; margin: 0 0 10px; }
.mf-reach-us .contact-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mf-cols__left .card--plain { padding: 0; }
.mf-cols__left .card--plain h2 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.875rem; line-height: 2rem; color: #333; }
.mf-cols__left .card--plain .btn { align-self: flex-start; }
.mf-cols__left .steps__intro h3 {
	font-family: var(--font-secondary);
	font-style: italic;
	font-weight: var(--font-weight-bold);
	font-size: 1.5rem;
	line-height: normal;
	color: #000;
}
.mf-cols__left .steps { padding: 36px; }

@media (min-width: 1024px) {
	.mf-intro-row { flex-direction: row; align-items: flex-end; gap: 60px; }
	.mf-intro-row > .intro { flex: 0 0 396px; min-width: 0; gap: 20px; } /* heading 24px below the 4px gradient line */
	.mf-intro-row > .card--bordered { flex: 1 0 0; min-width: 0; align-self: stretch; padding: 34px; gap: 8px; } /* 34 pad + 2px border = comp's 36 */
	.mf-intro-row .card__section h4 { margin-top: 8px; } /* "Benefits:" label sits 16px below the card h2 */

	.mf-programs { flex-direction: row; gap: 60px; align-items: stretch; }
	.mf-programs .card { padding: 32px 36px 36px; } /* 32 pad + 4px top border = comp's 36 */
	.mf-programs .card .card__body { margin-top: 6px; } /* card gap 24 + 6 = 30px below the image */
	.mf-programs > * { flex: 1 0 0; min-width: 0; }
	.mf-programs .card--center { text-align: left; align-items: flex-start; }
	.mf-programs .card--center .card__body { align-items: flex-start; }
	.mf-programs .card--center .btn { align-self: flex-start; }
	.mf-programs .card--center .card__image { height: 350px; width: 100%; }
	/* Comp: HEAR amount is a boxed note (#8dafce/#b8cde0). */
	.mf-programs .card--blue .card__amount {
		background: var(--color-blue-300);
		border: 1px solid var(--color-blue-200);
		border-radius: 10px;
		padding: 7px 12px; /* comp: 32px tall incl border */
		color: var(--color-white);
		font-weight: var(--font-weight-semibold, 600);
		font-size: 0.875rem;
		line-height: 1rem;
	}
	/* HOMES gets the matching mid-tone green boxed note. */
	.mf-programs .card--green .card__amount {
		background: #76a78a;
		border: 1px solid var(--color-primary-200);
		border-radius: 10px;
		padding: 7px 12px;
		color: var(--color-white);
		font-weight: var(--font-weight-semibold, 600);
		font-size: 0.875rem;
		line-height: 1rem;
	}

	.mf-cols { flex-direction: row; gap: 60px; align-items: stretch; }
	.mf-cols__left { flex: 0 0 623px; min-width: 0; gap: 60px; }
	.mf-cols__left .card--plain .card__body { gap: 24px; } /* "For More Information": text 24px below heading */
	.mf-cols__left .mf-reach-us { padding: 34px; } /* comp: 36 incl 2px border */
	.mf-cols__left .mf-reach-us .contact-row > * { line-height: 1.625rem; } /* comp rows ~27px */
	.mf-cols__right { flex: 1 0 0; min-width: 0; gap: 60px; }
	.mf-cols__right .card--faq { margin-bottom: 0; padding: 34px; } /* comp: 36 incl 2px border */
	/* Comp: 46px rows incl their bottom divider, then a 10px gap (56px step). */
	.mf-cols__right .faq__question { padding-block: 11.25px; }
	.mf-cols__right .faq__item:not(:last-child) { margin-bottom: 10.5px; }
}

/* Contact page (36:2714) */
/* Contact page (455:8794): two-column layout — left: hero text + contact card + CTA, right: form card */
.contact-layout { display: flex; flex-direction: column; gap: 40px; max-width: var(--container-max); margin-inline: auto; width: 100%; box-sizing: border-box; padding-inline: 0 !important; }
.contact-left { display: flex; flex-direction: column; gap: 24px; }
.contact-right { display: flex; flex-direction: column; gap: 24px; }
.contact-left .contact-card-block { border: 2px solid var(--color-blue-50); padding: 30px; border-radius: var(--radius-md); background: var(--color-white); }
/* Equalize vertical rhythm in the left column: drop the Gutenberg flow margin on the CTA card so the gap to the contact card matches the gap below the hero text. */
.contact-left .cta-card-block.cta-card-block { margin-block-start: 0; margin-top: 0; }
.contact-left .contact-card-block h3 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.4375rem; line-height: 1.625rem; color: var(--color-text-dark); margin: 0; }
.contact-left .contact-card-block .contact-row { display: flex; align-items: center; justify-content: space-between; }
.contact-left .contact-card-block .contact-label { font-size: 1rem; line-height: 1.375rem; color: var(--color-text-medium); }
.contact-left .contact-card-block .contact-value { font-weight: var(--font-weight-medium); color: var(--color-text-dark); }
.contact-left .contact-card-block .contact-value a { color: var(--color-primary-dark); text-decoration: none; }
.contact-left .cta-card-block { padding: 36px; border-radius: var(--radius-md); }
.contact-left .cta-card-block h2 { font-size: 1.4375rem; line-height: 1.625rem; color: var(--color-text-dark); }
@media (min-width: 1024px) {
	.contact-layout { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 60px; }
	.contact-layout.wp-block-columns > .wp-block-column.contact-left { flex: 0 1 489px; min-width: 0; gap: 36px; padding-top: 26px; position: sticky; top: calc(var(--header-offset) + var(--header-height) + 24px); }
	.contact-layout.wp-block-columns > .wp-block-column.contact-right { flex: 0 1 626px; min-width: 0; }
	.contact-left .contact-card-block, .contact-left .cta-card-block { max-width: 397px; }
	.contact-left .hero--text { max-width: none; }
}
.contractor-cta-section { text-align: center; padding: 3rem 1rem; background: var(--color-surface-alt); border-radius: var(--radius-md); margin-top: -8px; margin-bottom: -56px; }
@media (min-width: 1024px) {
	.contractor-cta-section { margin-top: -56px; margin-bottom: -40px; }
}
.contractor-cta-section h2 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.875rem; color: var(--color-text-dark); margin-bottom: 0.75rem; }
.contractor-cta-section p { font-size: 1rem; color: var(--color-text-body); margin-bottom: 1.5rem; }
@media (min-width: 1024px) {
	.contractor-cta-section { max-width: var(--container-max); margin-inline: auto; }
}

/* Contractor vs DIY (444:6411): #F5F5F5 card; boxes #F1EADA/2px #E8C26A and #EAE6E1/2px #B1946D, p24, H3 24 */
@media (min-width: 1024px) { .program-cols > .card--vs { grid-column: 1; } }
.vs-box { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 24px; border-radius: var(--radius-md); }
.vs-box > * { margin: 0; }
.vs-box h3 { color: var(--color-text-dark); }
.vs-box p { color: var(--color-text-body); }
.vs-box--contractor { background: #f1eada; border: 2px solid var(--color-harvest); }
.vs-box--diy { background: #eae6e1; border: 2px solid #b1946d; }
.btn--disabled-note { background: var(--color-white); border-color: var(--color-white); color: var(--color-grey-medium); font-size: 0.75rem; cursor: default; white-space: normal; text-align: center; }

/* FAQ card wrapper on homepage (659:6955 / 636:6365): white, 2px border, p24/36, gap 10 */
.card--faq { gap: 10px; padding: var(--card-pad); }
/* FAQ card heading is H2/23px per Figma (884:6905), not the 30px default; bold efficiency green per the updated FAQ mockup */
.card--faq h2 { color: var(--color-primary); font-size: 1.4375rem; line-height: 1.625rem; font-weight: var(--font-weight-bold); }

/* FAQ inside a card--faq: the faq-accordion render ships .container.container--narrow
   which adds max-width: 855px and 100px gutters. Inside a card that already has
   36px padding, that's redundant — the card IS the container. Also override
   Gutenberg's is-layout-constrained > * rule that adds margin: auto !important,
   shrinking the accordion. Applied globally to .card--faq so it works on
   every page (homepage, programs, etc.), not just .home-faq. */
.card--faq .faq { max-width: none !important; margin: 0 !important; }
.card--faq .faq__container { max-width: none; padding: 0; margin: 0; }

/* ================================================================
   GRAVITY FORMS — Figma Form Inputs (26:23 / 26:69 / 26:44)
   ================================================================ */
.gform_wrapper { font-family: var(--font-primary); }
.gform_wrapper .gform_heading { margin-bottom: 24px; }
.gform_wrapper .gform_title { font-weight: var(--font-weight-medium); font-size: var(--font-size-h2); line-height: var(--line-height-h2); color: var(--color-text); margin-bottom: 8px; }
.gform_wrapper .gform_description { color: var(--color-text-body); }
.gform_wrapper .gfield { margin-bottom: 20px; }
.gform_wrapper .gfield_label { display: block; font-weight: var(--font-weight-bold); font-size: 1rem; line-height: 1.25rem; color: var(--color-text-dark); margin-bottom: 8px; }
.gform_wrapper .gfield_required { color: var(--color-error); }
/* .remove-required on a form hides all required-field indicators. */
.gform_wrapper .remove-required .gfield_required { display: none; }
.gform_wrapper .ginput_container input[type="text"],
.gform_wrapper .ginput_container input[type="email"],
.gform_wrapper .ginput_container input[type="tel"],
.gform_wrapper .ginput_container select,
.gform_wrapper .ginput_container textarea {
	width: 100%; padding: 10px 12px; font-size: 1rem; line-height: 1.375rem; font-family: var(--font-primary);
	border: 1px solid var(--color-border-input); border-radius: var(--radius-md); background: var(--color-white);
}
.gform_wrapper .ginput_container input:focus, .gform_wrapper .ginput_container select:focus, .gform_wrapper .ginput_container textarea:focus { outline: none; border-color: var(--color-primary-dark); box-shadow: 0 0 0 2px rgba(26, 92, 58, 0.15); }
.gform_wrapper .ginput_container select { appearance: none; background-image: url("../img/figma/icon-chevron-down-12.svg"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.gform_wrapper .gfield_checkbox label, .gform_wrapper .gfield_radio label { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-dark); }
.gform_wrapper .ginput_container_checkbox input, .gform_wrapper .ginput_container_radio input { width: auto; margin: 0; }
.gform_wrapper .gform_footer { margin-top: 24px; }
.gform_wrapper .gfield_error .gfield_label { color: var(--color-error); }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error select, .gform_wrapper .gfield_error textarea { border-color: var(--color-error); }
.gform_wrapper .validation_error { color: var(--color-error); font-weight: var(--font-weight-semibold); margin-bottom: 16px; padding: 12px; background: rgba(198, 40, 40, 0.05); border-radius: var(--radius-md); }
.gform_confirmation_wrapper { padding: 24px; background: var(--color-blue-50); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); margin: 16px 0; }
.gform_confirmation_message { color: var(--color-primary-dark); font-weight: var(--font-weight-medium); }
.gform_wrapper .ginput_complex { display: flex; gap: 16px; flex-wrap: wrap; }
.gform_wrapper .ginput_complex span { flex: 1; min-width: 200px; }
@media (max-width: 767px) { .gform_wrapper .ginput_complex { flex-direction: column; } }

/* ================================================================
   CONTENT LINKS & LISTS
   ================================================================ */
.site-main p a:not(.btn):not(.wp-block-button__link), .site-main li a:not(.btn):not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 2px; }
.site-main :is(h1,h2,h3,h4) a { text-decoration: none; }
.site-main ul:not([class]), .site-main ol:not([class]) { padding-left: 24px; }
.site-main ul:not([class]) li, .site-main ol:not([class]) li { margin-bottom: 6px; }

/* ================================================================
   LEGACY PAGE PATTERNS (interior pages — to be rebuilt per hi-fi frames)
   Kept functional and tokenised so nothing regresses before their pass.
   ================================================================ */
.palmetto-steps-list { list-style: none; padding: 0; counter-reset: step-counter; display: flex; flex-direction: column; gap: 24px; }
.palmetto-steps-list li { display: flex; gap: 10px; align-items: flex-start; }
.palmetto-steps-list li::before { content: counter(step-counter); counter-increment: step-counter; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--color-gold); color: var(--color-white); font-weight: var(--font-weight-bold); font-size: 0.9375rem; line-height: 0.9375rem; }
.palmetto-steps-list li strong { display: block; color: var(--color-text); }

.palmetto-cta { text-align: center; }
.palmetto-cta--dark { background: var(--color-primary-dark); color: var(--color-white); border-radius: var(--radius-md); padding: var(--card-pad); }
.palmetto-cta--dark :is(h2,h3) { color: var(--color-white); }

.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: left; border-bottom: 1.5px solid var(--color-grey-light); }
.comparison-table th { background: var(--color-primary-dark); color: var(--color-white); font-weight: var(--font-weight-bold); }

/* Resources page — Figma 457:10632. h1 sits above two equal columns:
   [Ways To Reach Us + Program Information | Useful Links card], then the
   webinar section spans the full content width below the columns.
   nowrap !important beats core's `flex-wrap: wrap !important` on .wp-block-columns
   below 782px — wrap in column direction makes items spill into horizontal lines */
.resources-layout-wrap { position: relative; }
.resources-page-title { margin: 0 0 36px; }
.resources-layout.wp-block-columns.is-layout-flex { display: flex; flex-direction: column; flex-wrap: nowrap !important; gap: 24px; }
@media (min-width: 1024px) {
	.resources-layout.wp-block-columns.is-layout-flex { flex-direction: row; gap: 60px; align-items: flex-start; }
	/* > .wp-block-column qualified selectors beat core's flex-basis:0/grow:1 */
	.resources-layout.wp-block-columns > .wp-block-column.resources-left,
	.resources-layout.wp-block-columns > .wp-block-column.resources-right { flex: 1 1 0; min-width: 0; }
}
.wp-block-column.resources-left { display: flex; flex-direction: column; gap: 36px; }
.wp-block-column.resources-left > * { margin-block-start: 0; margin-block-end: 0; }
/* "Ways To Reach Us" is plain text rows in the comp — no card chrome. */
.contact-card-block.reach-us { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 0; gap: 8px; }
.contact-card-block.reach-us h3 { font-weight: var(--font-weight-medium); font-size: 1.875rem; line-height: 2rem; color: #333; margin: 0; }
.contact-card-block.reach-us .contact-row { justify-content: flex-start; gap: 8px; }
.contact-card-block.reach-us .contact-row a, .contact-card-block.reach-us .contact-value { text-align: left; }
.resources-card { background: var(--color-white); border: 2px solid var(--color-blue-50); border-radius: var(--radius-md); padding: var(--card-pad); margin-bottom: 24px; }
.resources-card h3 { font-family: var(--font-primary); font-style: normal; font-weight: var(--font-weight-bold); font-size: var(--font-size-h4); line-height: var(--line-height-h4); color: var(--color-primary-dark); margin-bottom: 16px; }
.resources-card .btn { width: 100%; margin-bottom: 12px; }
.document-checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.document-checklist li { position: relative; padding-left: 22px; }
.document-checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 12px; font-family: var(--font-primary); font-weight: var(--font-weight-bold); font-size: 1rem; line-height: 1.375rem; color: var(--color-primary); text-align: center; }
.document-checklist li em { display: block; font-size: 0.875rem; line-height: 1rem; color: var(--color-text-body); font-style: normal; }

.interest-form { max-width: 640px; }

/* ================================================================
   For Contractors page — Figma 454:8283
   Row 1: Why card (bordered) + How it Works card (paper)
   Row 2: Rebate-eligible services + Become a contractor CTA card
   ================================================================ */
/* Contractors hero (454:8674): gold band + taller 855×540 image than the
   standard 350px split hero; band runs ~80px below the hero, content at 906. */
@media (min-width: 1024px) {
	.hero--contractors .hero__inner { height: 540px; }
}
.hero--contractors.hero--bg-yellow::before { bottom: -80px; }

.contractors-cols { gap: 30px; }
@media (min-width: 1024px) {
	.contractors-cols { display: grid; grid-template-columns: minmax(0, 626px) minmax(0, 626px); gap: 60px; align-items: start; margin-top: 28px; }
	/* Flatten the column wrappers so each card pair shares a grid row:
	   Why | Services on row 1, How It Works | CTA on row 2 — tops aligned */
	.contractors-cols .program-col { display: contents; }
	.contractors-cols .program-col:nth-child(1) > :nth-child(1) { order: 1; }
	.contractors-cols .program-col:nth-child(2) > :nth-child(1) { order: 2; }
	.contractors-cols .program-col:nth-child(1) > :nth-child(2) { order: 3; }
	.contractors-cols .program-col:nth-child(2) > :nth-child(2) { order: 4; }
	.contractors-cols .program-col > * { align-self: stretch; }
	/* CTA card sizes to its content (Figma 454:8283); it is shorter than the
	   steps card it shares a grid row with. */
	.contractors-cols .program-col > .cta-card-block { align-self: start; }
}
/* Two stacked columns: left (Why + How It Works) is sticky; right holds
   services, the feature CTA card and the FAQ card (Figma 815:4357/4358). */
.contractors-cols .program-col { gap: 60px; }

/* Why card (454:8687): 2px #f2f5f7 border, r8, p36 */
.contractors-why { padding: 36px; }
.contractors-why__heading,
.contractors-why .card__body h2 {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-medium);
	font-size: 1.875rem;
	line-height: 2rem;
	color: #333;
	margin: 0 0 8px;
}
.contractors-why__subtext,
.contractors-why .card__body p {
	font-family: var(--font-primary);
	font-size: 1rem;
	line-height: 1.375rem;
	color: #565555;
	margin: 0;
}
.contractors-why__list-heading,
.contractors-why .card__section h4 {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-bold);
	font-size: 1.125rem;
	line-height: 1.375rem;
	color: #4c80b0;
	margin: 0 0 8px;
}

/* How it Works card (454:8696): #f9f7f0 bg, r8, p36 */
.contractors-steps { padding: 36px; }
.contractors-steps__heading,
.contractors-steps .steps__intro h3 {
	font-family: var(--font-secondary);
	font-style: italic;
	font-weight: var(--font-weight-bold);
	font-size: 1.5rem;
	line-height: normal;
	color: #000;
	margin: 0;
}
.step-badge--yellow {
	background: #e8c26a;
	color: #000;
}

/* Rebate-eligible services (454:8741): mint #f3f7f4 card, r10, p36 */
.contractors-services {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 36px;
	border-radius: 10px;
}
.contractors-services__heading,
.contractors-services .card__body h2 {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-medium);
	font-size: 1.875rem;
	line-height: 2rem;
	color: #333;
	margin: 0 0 8px;
}
.contractors-services__list,
.contractors-services .check-list { gap: 8px; }
.contractors-services .card__body { gap: 12px; }
.contractors-services__note,
.contractors-services .note-box {
	margin-top: 8px;
	width: fit-content;
	background: #e1eae5;
	border-color: #e1eae5;
}

/* Become a contractor CTA card (454:8749): #f2f5f7 bg, 4px #4c80b0 top border, r8, p36 */
.contractors-cta-card,
.card--feature {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 36px;
	background: #f2f5f7;
	border-top: 4px solid #4c80b0;
	border-radius: 8px;
}
@media (min-width: 768px) {
	.contractors-cta-card, .card--feature { flex-direction: row; align-items: center; }
}
/* Comp 454:8749 fixes the card at 328px tall so the photo fills it. */
@media (min-width: 1024px) {
	.contractors-cols .card--feature { min-height: 328px; }
}
.contractors-cta-card__image,
.card--feature .card__media {
	flex: 1 0 0;
	min-width: 0;
}
.contractors-cta-card__image img,
.card--feature .card__media img {
	width: 100%;
	height: 100%;
	max-height: 256px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.contractors-cta-card__body,
.card--feature .card__body {
	flex: 1 0 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;

	@media (max-width: 767px) {
		text-align: center;
	}
}
.contractors-cta-card__heading,
.card--feature .card__body h2 {
	font-family: var(--font-primary);
	font-weight: var(--font-weight-medium);
	font-size: 1.4375rem;
	line-height: 1.625rem;
	color: #2a476b;
	margin: 0;
}
.contractors-cta-card__text,
.card--feature .card__body p {
	font-family: var(--font-primary);
	font-size: 1.125rem;
	line-height: 1.5rem;
	color: #565555;
	margin: 0;
}

/* ---- Resources Hub (Figma 457:10632) ---- */
.resources-page-title,
.faq-page-title {
	font-family: var(--font-secondary);
	font-style: italic;
	font-weight: 400;
	font-size: 3.75rem;
	line-height: 1;
	color: var(--color-primary-dark);
	margin: 0 0 40px;
}
.resources-card--useful-links { background: #f3f7f4; border: none; border-radius: 8px; padding: 36px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.resources-card--useful-links h3 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.875rem; line-height: 2rem; color: #333; margin: 0; }
.resources-section--checklist { background: none; border: none; padding: 0; margin-bottom: 24px; }
.resources-section--checklist h3 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.875rem; line-height: 2rem; color: #333; margin: 0 0 8px; }
.resources-card--useful-links .btn { width: auto; margin-bottom: 0; }
.resources-card--useful-links .btn:has(+ .useful-links-note) { margin-bottom: -16px; }
.resources-card--useful-links .useful-links-note {
	font-family: var(--font-primary);
	font-size: 1rem;
	line-height: 1.375rem;
	color: var(--color-text);
	margin: 0;
}
.resources-card--useful-links *:last-child {
	margin-bottom: 0;
}
.resources-card--program-info { background: none; border: none; border-radius: 0; padding: 0; margin-bottom: 0; }
.resources-card--program-info h3 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.875rem; line-height: 2rem; color: #333; margin: 0 0 24px; }
.resources-card--program-info p { font-size: 1rem; line-height: 1.375rem; color: var(--color-text); margin: 0 0 8px; }
.resources-card--program-info a { color: var(--color-text); text-decoration: underline; }
.resources-card--program-info .program-info-org { font-family: var(--font-primary); font-weight: var(--font-weight-bold); font-size: 1rem; line-height: 1.25rem; color: var(--color-text); margin: 0 0 8px; }
.resources-card--program-info .program-info-address a { display: block; color: var(--color-text); text-decoration: underline; margin-bottom: 6px; }
.resources-card--contact { display: flex; flex-direction: column; gap: 10px; padding: 30px; }
.resources-card--contact h3 { font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1.4375rem; line-height: 1.625rem; color: #333; margin: 0; }
.resources-card--contact .contact-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px;
	padding: 0;
	font-size: 1rem; line-height: 1.375rem;
}
.resources-card--contact .contact-label { display: inline; font-weight: var(--font-weight-normal); color: var(--color-text-body); margin: 0; flex-shrink: 0; }
.resources-card--contact .contact-value { display: inline; font-family: var(--font-primary); font-weight: var(--font-weight-medium); font-size: 1rem; line-height: 1.375rem; color: #333; margin: 0; text-align: right; }
.resources-card--contact .contact-row a { color: var(--color-primary-dark); text-decoration: none; font-weight: var(--font-weight-medium); text-align: right; }
.resources-card--contact .contact-row a:hover { text-decoration: underline; }

/* Webinar section */
.webinar-section { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.webinar-section__header { max-width: 626px; }
.webinar-section__header h2 {
	font-family: var(--font-primary); font-weight: var(--font-weight-medium);
	font-size: 1.875rem; line-height: 2rem; color: #333; margin: 0;
}
.webinar-section__subhead {
	font-family: var(--font-primary); font-weight: var(--font-weight-bold);
	font-size: 1.125rem; line-height: 1.375rem; color: var(--color-blue); margin: 8px 0 0;
}
.webinar-section__intro {
	font-family: var(--font-primary); font-size: 1rem; line-height: 1.375rem;
	color: var(--color-text-body); margin: 0;
}
.webinar-grid { display: flex; flex-wrap: wrap; gap: 60px; }
.webinar-card {
	background: var(--color-white); box-shadow: 0 0 8px rgba(0,0,0,0.1);
	border-radius: 12px; padding: 24px; width: min(380px, 100%);
	display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
	min-height: 356px;
}
.webinar-card--live { background: #f7f5f3; }
.webinar-card--past { opacity: 0.85; min-height: 327px; }
.webinar-card__badges { display: flex; align-items: center; justify-content: space-between; }
.webinar-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border-radius: 100px;
	font-family: var(--font-primary); font-weight: var(--font-weight-bold);
	font-size: 1rem; line-height: 1.25rem;
}
.webinar-badge--live { background: #fff2f2; color: #c33; }
.webinar-badge--live .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #c33; }
.webinar-badge--upcoming { background: #f1f8f5; color: var(--color-primary-dark); }
.webinar-badge--past { background: #f2f5f7; color: var(--color-blue); }
.webinar-duration {
	font-family: var(--font-primary); font-weight: var(--font-weight-normal);
	font-size: 0.875rem; line-height: 1rem; color: #999;
}
.webinar-card--past .webinar-duration, .webinar-card--live .webinar-duration { font-size: 1rem; line-height: 1.375rem; }
.webinar-card__title h3 {
	font-family: var(--font-secondary); font-weight: 700; font-style: italic;
	font-size: 1.5rem; line-height: 1; color: var(--color-text); margin: 0;
}
.webinar-card__speaker {
	font-family: var(--font-primary); font-size: 1rem; line-height: 1.375rem;
	color: #808080; margin: 6px 0 0;
}
.webinar-card__meta {
	border-bottom: 1px solid #d1d1d1; padding: 8px 0 16px;
	display: flex; flex-direction: column; gap: 8px;
}
.webinar-meta-row { display: flex; align-items: center; gap: 8px; font-size: 1rem; line-height: 1.375rem; color: var(--color-grey-dark); }
.webinar-meta-row strong { font-weight: var(--font-weight-bold); color: var(--color-text); }
.webinar-meta-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; flex-shrink: 0;
	color: var(--color-primary-dark);
}
.webinar-card--past .webinar-meta-icon { color: var(--color-grey-medium); }
.webinar-meta-icon svg { display: block; }
.webinar-card .btn { align-self: flex-start; }

/* Mobile webinar layout — full-width cards, group dividers, Load More (Figma 659:6773) */
.webinar-divider, .webinar-load-more { display: none; }
@media (max-width: 1023px) {
	.webinar-section { gap: 16px; }
	.webinar-section__header h2 { font-size: 1.4375rem; line-height: 1.625rem; }
	.webinar-section__subhead { font-size: 1rem; line-height: 1.25rem; }
	.webinar-grid { flex-direction: column; flex-wrap: nowrap; gap: 16px; }
	.webinar-card { width: 100%; min-height: 0; padding: 14px; }
	.webinar-badge { font-size: 0.875rem; line-height: 0.875rem; }
	.webinar-card__title h3 { font-size: 1.25rem; }
	.webinar-card--past .webinar-card__title h3 { font-size: 1.5rem; }
	.webinar-card__speaker { margin-top: 6px; }
	.webinar-meta-row { font-size: 0.875rem; line-height: 1rem; }
	.webinar-card--past .webinar-meta-row { font-size: 1rem; line-height: 1.375rem; }
	.webinar-card--extra { display: none; }
	.webinar-divider { display: block; width: 100%; height: 1.5px; background: var(--color-grey-light); }
	.webinar-load-more { display: inline-flex; width: 100%; }
	.webinar-load-more:hover { background: var(--color-blue-dark); border-color: var(--color-blue-dark); color: var(--color-white); }
}

/* ---- FAQ Page (Figma 640:7528) ---- */
.faq-layout-wrap { position: relative; }
.faq-layout.wp-block-columns { display: flex; flex-direction: column; gap: 24px; }
.faq-sidebar { order: 2; } .faq-main { order: 1; }
/* Mobile: page title must render first — flatten the sidebar so the
   h1 orders above faq-main while the contact card still follows it */
@media (max-width: 1023px) {
	.faq-layout .faq-sidebar { display: contents; }
	.faq-sidebar .faq-page-title { order: -1; }
	.faq-sidebar .info-card-block,
	.faq-sidebar .contact-card-block { order: 2; }
}
@media (min-width: 1024px) {
	.faq-layout.wp-block-columns { flex-direction: row; gap: 60px; }
	.faq-layout.wp-block-columns > .wp-block-column.faq-sidebar { flex: 0 0 397px; order: 1; }
	.faq-layout.wp-block-columns > .wp-block-column.faq-main { flex: 1; min-width: 0; order: 2; }
}

/* FAQ page column internals — Figma 640:7528: 24px stacked cards in main;
   sidebar stacks title / For More Information / contact card with 24px gaps. */
.faq-main { display: flex; flex-direction: column; gap: 24px; }
.faq-sidebar > *, .faq-main > * { margin-block: 0; }

@media (min-width: 1024px) {
	.faq-sidebar { display: flex; flex-direction: column; gap: 24px; }
	.faq-sidebar .faq-page-title { line-height: 1.2; } /* comp 640:7658: 216px box */
	.faq-sidebar .card--plain .card__body { gap: 24px; }
	.faq-sidebar .contact-card-block { padding: 34px; }
	.faq-sidebar .contact-card-block .contact-row > * { line-height: 1.625rem; }
	.faq-main .card--faq { padding: 34px; }
	.faq-main .faq__question { padding-block: 11.25px; }
	.faq-main .faq__item:not(:last-child) { margin-bottom: 10.5px; }
	.site-main > .faq-layout-wrap:last-child { margin-block-end: 20px; } /* 100px to footer */
}

/* Announcement marquee (Figma homepage top strip): harvest-gold band,
   navy bold text, scrolling ticker. Toggleable via Palmetto → Announcement. */
.announcement-bar {
	background: var(--color-harvest);
	overflow: hidden;
	height: 34px;
	position: relative;
	z-index: 60;
}
.announcement-bar__track {
	display: inline-flex;
	white-space: nowrap;
	line-height: 34px;
	font-size: 0.8125rem;
	font-weight: var(--font-weight-bold, 700);
	color: var(--color-blue-dark);
	animation: announcement-scroll 180s linear infinite;
}
.announcement-bar:hover .announcement-bar__track { animation-play-state: paused; }
.announcement-bar__half { display: inline; }
.announcement-bar__link {
	color: var(--color-blue-dark);
	text-decoration: underline;
}
.announcement-bar__link:hover { color: var(--color-primary-dark); }
@keyframes announcement-scroll {
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.announcement-bar__track { animation: none; }
	.announcement-bar { display: flex; align-items: center; justify-content: center; padding-inline: 1rem; }
}
