/*
Theme Name: Child Care for Every Family Action
Theme URI: https://www.childcareforeveryfamilyaction.org/
Author: E11 Group
Author URI: https://e11group.com
Description: Child theme of Launchpad for Child Care for Every Family Action. Replatform of the Squarespace site with no design changes — hot pink / bright blue / white bands, Anton + Epilogue, pill buttons, pointed section dividers.
Template: launchpad
Tags: block-theme, full-site-editing, child-theme
Version: 0.1.7
Text Domain: childcareforeveryfamilyaction
Repository: E11-Group/childcareforeveryfamilyaction
*/

/* Values are measured from the live Squarespace site at 390px and 1440px
   (launchpad-design/projects/childcareforeveryfamilyaction/inspiration/site-analysis.md).
   Mobile-first: min-width media queries only.

   Desktop scaling: Squarespace's container is min(100vw - 2·gutter, 1400px) and its row
   heights, buttons and spacing scale with that width (text does not). --c4-u is 1px at the
   1440px measurement (container 1324px) and grows with the container, so a measured desktop
   value N is written calc(N * var(--c4-u)). Verified at 1440 / 1920 / 2560. */

:root {
	--c4-gutter: var(--wp--custom--c-4--gutter);
	--c4-inset-end: 0px;
	--c4-divider-h: var(--wp--custom--c-4--divider-h);
	--c4-header-h: calc(84px + 12vw); /* Squarespace mobile header: 131 @390 */
	--c4-btn-w: 166px;
	--c4-btn-h: 59px;
	--c4-u: 1px;
}
@media (min-width: 768px) {
	:root {
		--c4-container: min(calc(100vw - 2 * var(--c4-gutter)), var(--wp--style--global--wide-size, 1400px));
		--c4-u: calc(var(--c4-container) / 1324);
		--c4-inset-end: calc(55 * var(--c4-u));
		/* Squarespace fluid engine (QA task 14393): 24 cells 11px apart across the container, and rows
		   of minmax(2.15% of the container, auto). Buttons fill 5 cells × 2 rows. */
		--c4-cell: calc((var(--c4-container) - 23 * 11px) / 24);
		--c4-row: calc(var(--c4-container) * .0215);
		--c4-btn-w: calc(5 * var(--c4-cell) + 4 * 11px);
		--c4-btn-h: calc(2 * var(--c4-row) + 11px);
	}
}
/* Squarespace keeps its mobile header (burger, 84px + 12vw tall, 6vw side padding) up to 799px. */
:root { --c4-header-gutter: 6vw; }
@media (min-width: 800px) {
	:root { --c4-header-h: calc(171px + 3.95vw); --c4-header-gutter: var(--c4-gutter); } /* 228 @1440, 247 @1920, 272 @2560 */
}

body { overflow-x: clip; }
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Full-width bands butt together, on the front end and in the editor (QA tasks 14403, 14406);
   any other block keeps the normal block gap. */
.wp-block-post-content.wp-block-post-content > .alignfull + .alignfull,
.editor-styles-wrapper .is-root-container.is-root-container > .alignfull + .alignfull { margin-block-start: 0; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.c4-header.c4-header { padding-inline: var(--c4-header-gutter); min-height: var(--c4-header-h); padding-top: 0; padding-bottom: 0; box-sizing: border-box; } /* doubled: beats the parent header padding (20px) */
.c4-header .c4-header-logo { margin: 0; }
.c4-header .c4-header-logo img { width: 160px; height: auto; display: block; }
.c4-header .c4-header-logo a { display: block; } /* no inline baseline gap: the logo centres in the header, as live */
.c4-header .c4-header-logo { align-self: flex-start; margin-top: 6vw; } /* logo sits 6vw from the top on phones */
/* The current page is underlined (1px); live has no hover change. */
.c4-main-nav .wp-block-navigation-item__content { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; text-decoration: none; }
.c4-main-nav .wp-block-navigation-item__content:hover { text-decoration: none; }
.c4-main-nav .current-menu-item > .wp-block-navigation-item__content,
.c4-main-nav [aria-current="page"] { background-size: 100% 1px; text-decoration: none; }
/* Mobile overlay (Squarespace mobile menu, measured 2026-10-07): full-screen pink under the
   header, which stays on top with its logo; the close X sits where the burger was; links are
   centred in the space below the header. */
.c4-header .c4-header-logo { position: relative; z-index: 100001; }
.c4-main-nav .wp-block-navigation__responsive-container.is-menu-open { padding: var(--c4-header-h) 0 0; animation-duration: .4s; }
.c4-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 0; align-items: center; justify-content: center; min-height: calc(100vh - var(--c4-header-h)); }
.c4-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: center; justify-content: center; gap: 0; }
.c4-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding-block: 3vw; font-size: min(8.5vw, 46.2px); line-height: 1; }
/* Burger and close: two 35x1px lines in a 47x37 box, and a thin X centred on the same spot. */
.c4-main-nav .wp-block-navigation__responsive-container-open,
.c4-main-nav .wp-block-navigation__responsive-container-close { position: relative; width: 47px; height: 37px; padding: 0; color: currentColor; }
.c4-main-nav .wp-block-navigation__responsive-container-open svg,
.c4-main-nav .wp-block-navigation__responsive-container-close svg { display: none; }
.c4-main-nav .wp-block-navigation__responsive-container-open::before,
.c4-main-nav .wp-block-navigation__responsive-container-open::after,
.c4-main-nav .wp-block-navigation__responsive-container-close::before,
.c4-main-nav .wp-block-navigation__responsive-container-close::after { content: ""; position: absolute; left: 6px; width: 35px; height: 1px; background: currentColor; }
.c4-main-nav .wp-block-navigation__responsive-container-open::before { top: 12.5px; }
.c4-main-nav .wp-block-navigation__responsive-container-open::after { top: 23.5px; }
.c4-main-nav .wp-block-navigation__responsive-container-close { position: fixed; top: calc((var(--c4-header-h) - 37px) / 2); right: var(--c4-header-gutter); left: auto; z-index: 100001; }
.c4-main-nav .wp-block-navigation__responsive-container-close::before,
.c4-main-nav .wp-block-navigation__responsive-container-close::after { left: 9.5px; top: 18px; width: 28px; transform: rotate(45deg); }
.c4-main-nav .wp-block-navigation__responsive-container-close::after { transform: rotate(-45deg); }
/* The logo/nav row fills the header height so both sit vertically centred. */
.c4-header .c4-header-row { min-height: var(--c4-header-h); }
/* Core collapses navigation at 600px; the site's hamburger runs to 768px. */
.c4-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
.c4-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
@media (min-width: 800px) {
	.c4-header .c4-header-logo { align-self: auto; margin-top: 0; }
	.c4-header .c4-header-logo img { width: 340px; }
	.c4-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
	.c4-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: block; }
}

/* Header and footer sit on pink: white focus rings (the parent's blue ring is 1.3:1 there). */
.c4-header a:focus-visible, .c4-header button:focus-visible,
.c4-footer a:focus-visible,
.has-primary-background-color a:focus-visible,
.has-accent-background-color a:focus-visible { outline: 2px solid var(--wp--preset--color--base); outline-offset: 2px; }
.has-base-background-color a:focus-visible { outline-color: var(--wp--preset--color--contrast); } /* white bands and the press release card */

/* ── Footer ─────────────────────────────────────────────────────────────── */
.c4-footer { text-align: center; padding-block: 84px 81px; }
.c4-footer .c4-footer-logo { margin: 0 auto; }
.c4-footer .c4-footer-logo img { width: 100%; max-width: 343px; height: auto; margin-inline: auto; display: block; }
.c4-footer .c4-footer-link { max-width: 343px; margin: 24px auto 0; line-height: 1.5; }
@media (min-width: 768px) {
	/* Squarespace footer grid: 7 rows; the logo fills cells 10–15 over rows 1–5, the link rows 5–6. */
	.c4-footer.c4-footer { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(var(--c4-row), auto)); gap: 11px; padding: 0 calc((100% - var(--c4-container)) / 2); }
	.c4-footer > * { max-width: none !important; margin: 0 !important; }
	.c4-footer > .c4-footer-logo { grid-area: 1 / 10 / 6 / 16; align-self: center; }
	.c4-footer .c4-footer-logo img { max-width: none; }
	.c4-footer > .c4-footer-link { grid-area: 5 / 10 / 7 / 16; align-self: start; max-width: none; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
/* A band is a full-width group with .c4-sec; its inner group is .c4-in (wide). */
.c4-sec { position: relative; }
.c4-sec > .c4-in,
.c4-sec > .wp-block-group__inner-container > .c4-in { max-width: var(--wp--style--global--wide-size); margin-inline: auto; padding-right: var(--c4-inset-end); box-sizing: border-box; }
.c4-sec.c4-full-inset > .c4-in { padding-right: 0; }

/* Pointed divider — single asymmetric peak 25% from the left (Squarespace "pointed").
   The band overlaps the one above by the divider depth. */
.c4-divider-top {
	clip-path: polygon(0 var(--c4-divider-h), 25% 0, 100% var(--c4-divider-h), 100% 100%, 0 100%);
	margin-top: calc(-1 * var(--c4-divider-h)) !important;
	padding-top: calc(var(--c4-divider-h) + var(--c4-pad-top, 0px)) !important;
}
.editor-styles-wrapper .c4-divider-top { margin-top: 0 !important; }

/* Squarespace fluid-engine blocks have fixed slot heights; .c4-slot-* reproduce them. */
.c4-slot { min-height: var(--c4-slot-m, 0); }
@media (min-width: 768px) { .c4-slot { min-height: var(--c4-slot-d, 0); } }

/* ── Rich text ──────────────────────────────────────────────────────────── */
.c4-sec p { margin-block: 0; }
.c4-sec p + p, .c4-sec h2 + h3 { margin-block-start: 1em; }
.c4-sec ul { padding-left: 1.3em; margin: 1em 0 0; }
.c4-sec li { padding-left: .2em; }
.c4-sec li + li { margin-top: .25em; }

/* ── Buttons: fixed-width pills (Squarespace buttons wrap inside a fixed width) ── */
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--c4-btn-w); min-height: var(--c4-btn-h); text-align: center;
	transition: opacity .15s ease;
}
.wp-block-button .wp-block-button__link:hover { opacity: .8; }
/* Focus rings (QA task 14392): white on the pink and blue bands (3.8:1 and 5.6:1), ink on white bands. */
.wp-block-button .wp-block-button__link.wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--base); outline-offset: 3px; border-radius: 300px; }
.has-base-background-color .wp-block-button .wp-block-button__link.wp-block-button__link:focus-visible { outline-color: var(--wp--preset--color--contrast); }
.wp-block-button.c4-btn-full .wp-block-button__link { width: 100%; }
.wp-block-button.c4-btn-auto .wp-block-button__link { width: auto; }
.wp-block-button.c4-btn-full { width: 100%; }
@media (min-width: 768px) {
	.wp-block-button.c4-btn-full { width: auto; }
	.wp-block-button.c4-btn-full .wp-block-button__link { width: var(--c4-btn-w); }
	.wp-block-button.c4-btn-212 .wp-block-button__link { width: calc(4 * var(--c4-cell) + 3 * 11px); }
}

/* Button rows: stacked 11px apart on mobile, one row 67px apart on desktop. */
.wp-block-buttons.c4-btns { flex-direction: column; align-items: flex-start; gap: 11px; }
.wp-block-buttons.c4-btns-center-mobile { justify-content: center; }
@media (min-width: 768px) {
	.wp-block-buttons.c4-btns { flex-direction: row; flex-wrap: wrap; gap: calc(67 * var(--c4-u)); }
	.wp-block-buttons.c4-btns-center-mobile { justify-content: flex-start; }
}

/* ── Page grids (group blocks with grid layout) ─────────────────────────── */
/* One column on mobile; measured Squarespace column ratios on desktop. */
.wp-block-group.c4-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
	.wp-block-group.c4-grid-657-601 { grid-template-columns: minmax(0, 657fr) minmax(0, 601fr); }
	.wp-block-group.c4-grid-home-intro { grid-template-columns: minmax(0, 546fr) minmax(0, 122fr) minmax(0, 601fr); gap: 0; }
	.wp-block-group.c4-grid-home-contact { grid-template-columns: minmax(0, 434fr) minmax(0, 233fr) minmax(0, 657fr); gap: 0; }
	.c4-grid > .c4-span-all { grid-column: 1 / -1; }
	.c4-grid > .c4-col-3 { grid-column: 3; }
}

/* ── Band vertical padding (measured; mobile, then desktop) ─────────────── */
/* Divider bands take their top padding from --c4-pad-top (see .c4-divider-top). */
.c4-band-poll         { padding-block: 35px 23px; }
.c4-band-findings     { --c4-pad-top: 35px; padding-block: 35px 23px; }
.c4-band-release      { padding-block: max(6.6vw, 6.6vh); } /* Squarespace "medium" section padding */
/* About title band: 66% of the window height (Squarespace section min-height), title centred,
   never tighter than 6.6vw above and below the title. */
.c4-band-about-title > .c4-in { padding-right: 0; } /* the title is centred on the full container, as on live */
.c4-band-about-title  { min-height: calc(66vh - var(--c4-header-h)); padding-block: 6.6vw; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.c4-band-about-power  { padding-block: 35px; }
.c4-band-home-intro   { padding-block: 35px 70px; }
.c4-band-home-contact { padding-block: 70px 35px; }
@media (min-width: 768px) {
	/* Grid bands (below) get their spacing from the grid rows; a band above a pointed divider
	   keeps Squarespace's 6vw divider padding. */
	.c4-band-poll         { padding-block: 0 6vw; }
	.c4-band-findings     { --c4-pad-top: 0px; padding-block: 0 6vw; }
	.c4-band-about-power, .c4-band-home-intro, .c4-band-home-contact { padding-block: 0; }
}

/* ── Squarespace fluid-engine grids (≥768px, QA task 14393) ─────────────── */
/* Each band's inner group is the section's grid: 24 cells and N rows of minmax(--c4-row, auto),
   11px apart, with every block on the rows and cells it has on live. Rows grow with their content
   exactly as Squarespace's do, so heights track live at every desktop width, not just 1440. */
@media (min-width: 768px) {
	:is(.c4-band-poll, .c4-band-findings, .c4-band-about-power, .c4-band-home-intro, .c4-band-home-contact) > .c4-in.c4-in {
		display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 11px; padding-right: 0;
	}
	:is(.c4-band-poll, .c4-band-findings, .c4-band-about-power, .c4-band-home-intro, .c4-band-home-contact) > .c4-in > .c4-slot { min-height: 0; }
	.c4-band-poll > .c4-in.c4-in         { grid-template-rows: repeat(18, minmax(var(--c4-row), auto)); }
	.c4-band-poll .c4-slot-poll-head     { grid-area: 6 / 1 / 10 / 13; }
	.c4-band-poll .c4-slot-poll-text     { grid-area: 10 / 1 / 16 / 24; }
	.c4-band-poll .c4-poll-btns          { grid-area: 16 / 2 / 18 / 13; padding-left: 0; gap: calc(var(--c4-cell) + 2 * 11px); }
	.c4-band-findings > .c4-in.c4-in     { grid-template-rows: repeat(25, minmax(var(--c4-row), auto)); }
	.c4-band-findings .c4-slot-findings  { grid-area: 2 / 1 / 16 / 24; }
	.c4-band-about-power > .c4-in.c4-in  { grid-template-rows: repeat(23, minmax(var(--c4-row), auto)); }
	.c4-band-about-power .c4-about-copy  { display: contents; }
	.c4-band-about-power .c4-slot-about-h2 { grid-area: 3 / 1 / 6 / 13; align-self: center; }
	.c4-band-about-power .c4-about-body  { grid-area: 7 / 1 / 16 / 13; margin: 0; }
	.c4-band-about-power .wp-block-buttons { grid-area: 16 / 1 / 18 / 5; margin: 0; }
	.c4-band-about-power .c4-about-toc.c4-about-toc { grid-area: 2 / 14 / 22 / 24; margin: 0; display: flex; align-items: center; justify-content: center; justify-self: stretch; }
	.c4-band-home-intro > .c4-in.c4-in   { grid-template-rows: repeat(13, minmax(var(--c4-row), auto)); }
	.c4-band-home-intro .c4-home-h1      { grid-area: 1 / 1 / 11 / 11; align-self: center; margin: 0; }
	.c4-band-home-intro .c4-home-body    { display: contents; }
	.c4-band-home-intro .c4-slot-home-body { grid-area: 2 / 13 / 9 / 24; }
	.c4-band-home-intro .c4-home-body > .c4-home-btns.c4-home-btns { grid-area: 9 / 13 / 11 / 18; margin: 0; }
	.c4-band-home-contact > .c4-in.c4-in { grid-template-rows: repeat(17, minmax(var(--c4-row), auto)); }
	.c4-band-home-contact .c4-slot-home-lead { grid-area: 4 / 1 / 9 / 9; }
	.c4-band-home-contact .c4-signup     { grid-area: 4 / 13 / 16 / 25; }
}

/* ── Ordinary pages and the insertable band patterns (QA task 14406) ─────── */
/* templates/page.html: a pink title band, then the page's own blocks, padded like a band. */
.c4-band-page-title, .c4-band-pad, .c4-page-content { padding-block: 55px; }
.c4-band-pad.c4-divider-top { --c4-pad-top: 55px; }
.c4-band-page-title .wp-block-post-title { margin: 0; }
.c4-page-content > .wp-block-post-content > .alignfull:first-child { margin-top: -55px; }
.c4-page-content > .wp-block-post-content > .alignfull:last-child { margin-bottom: -55px; }
.c4-band-pad .c4-band-image img { display: block; width: 100%; max-width: 340px; height: auto; margin-inline: auto; }
/* The content spans the padded band, so its own 1400px layout lines up with the site gutter and
   full-width bands inside it still reach the edges. Ordinary blocks get normal spacing back
   (the band rules zero paragraph margins). */
.c4-page-content > .wp-block-post-content { max-width: none; }
.c4-page-content .wp-block-post-content > .alignfull { margin-inline: calc(-1 * var(--c4-gutter)) !important; } /* full bleed through the band's gutter padding */
.c4-page-content .wp-block-post-content > * + * { margin-block-start: 16px; }
.c4-page-content .wp-block-post-content > * + :is(h1, h2, h3, h4, h5, h6) { margin-block-start: 40px; }
.c4-page-content .wp-block-post-content > * + .alignfull,
.c4-page-content .wp-block-post-content > .alignfull + * { margin-block-start: 55px; }
.site-content.site-content > .alignfull + .alignfull { margin-block-start: 0; } /* title band → content */
/* Inside the inserted bands: heading → text 16px, text → buttons 24px. */
.c4-band-pad :is(h1, h2, h3, h4) + * { margin-block-start: 16px; }
.c4-band-pad * + .wp-block-buttons { margin-block-start: 24px; }
@media (min-width: 768px) {
	.c4-band-page-title, .c4-band-pad, .c4-page-content { padding-block: calc(79 * var(--c4-u)); }
	.c4-band-pad.c4-divider-top { --c4-pad-top: calc(79 * var(--c4-u)); }
	.c4-page-content > .wp-block-post-content > .alignfull:first-child { margin-top: calc(-79 * var(--c4-u)); }
	.c4-page-content > .wp-block-post-content > .alignfull:last-child { margin-bottom: calc(-79 * var(--c4-u)); }
	.c4-band-pad .c4-grid { column-gap: calc(66 * var(--c4-u)); align-items: center; }
	.c4-band-pad .c4-band-image img { max-width: none; }
}

/* ── Squarespace slot heights (feed .c4-slot) ──────────────────────────── */
.c4-slot-poll-head   { --c4-slot-m: 199px; }
.c4-slot-poll-text   { --c4-slot-m: 544px; }
.c4-slot-findings    { --c4-slot-m: 1362px; }
.c4-slot-about-title { --c4-slot-m: 129px;  --c4-slot-d: calc(107 * var(--c4-u)); }
.c4-slot-about-h2    { --c4-slot-m: 114px; }
.c4-slot-about-body  { --c4-slot-m: 444px; }
.c4-slot-home-lead   { --c4-slot-m: 164px; }
.c4-slot-home-form   { --c4-slot-m: 444px; }

/* ── News & Resources ───────────────────────────────────────────────────── */
/* Live's intro is one paragraph split by blank lines (24px), followed by an empty paragraph (40px). */
.c4-slot-poll-text > p + p { margin-block-start: 24px; }
.c4-slot-poll-text { padding-bottom: 40px; }
/* Pink band: the button sits under the headline on mobile and under the text on desktop. */
.c4-grid > .c4-poll-btns       { order: 1; }
.c4-grid > .c4-slot-poll-text  { order: 2; }
@media (min-width: 768px) {
	.c4-grid > .c4-poll-btns, .c4-grid > .c4-slot-poll-text { order: 0; }
}
/* Blue band and the press release: Squarespace's default rich-text spacing
   (heading 32px, lists 40px indent, items 8px apart). */
.c4-findings > h2 { margin-block: 0 32px; }
:is(.c4-findings, .c4-release) ul { padding-left: 40px; margin-block: 16px 0; }
:is(.c4-findings, .c4-release) li { padding-left: 0; }
:is(.c4-findings, .c4-release) li + li { margin-top: 8px; }
:is(.c4-findings, .c4-release) ul + p { margin-block-start: 16px; }
.c4-findings > .c4-findings-note { margin-block-start: 56px; } /* live keeps an empty paragraph above the note */

/* ── Press release (/pollingrelease) ───────────────────────────────────── */
/* A white Squarespace text block on the pink band: 6% padding all round, plus the two
   empty paragraphs (80px) live keeps under the boilerplate. The H1 gap includes live's empty H4. */
.wp-block-group.c4-release { padding: 6% 6% calc(6% + 80px); overflow-wrap: break-word; } /* the contact email wraps on phones, as on live */
.c4-release > h1 { margin-block: 0 90px; }
.c4-release a { color: inherit; text-decoration: underline; }
.c4-release li::marker { color: transparent; } /* live's bullets are white on the white card */
.c4-release > .c4-release-about { margin-block-start: 56px; }
@media (min-width: 768px) {
	.c4-release > h1 { margin-block-end: 94px; }
	.wp-block-group.c4-release { min-height: calc(32 * var(--c4-row) + 31 * 11px); box-sizing: border-box; } /* live's 32-row block, reached at wide widths */
}
/* The footer's pointed top edge on this page only: a pink peak (25% from the left)
   drawn into the bottom of the last band, so the shared footer part stays plain.
   The peak runs 1px past the band (and its clip) into the footer: when the band ends on a
   fractional pixel, the blue and the peak's edge otherwise blend into a purple line (QA task 14700). */
.c4-divider-top.c4-footer-divider { clip-path: polygon(0 var(--c4-divider-h), 25% 0, 100% var(--c4-divider-h), 100% calc(100% + 1px), 0 calc(100% + 1px)); }
.c4-footer-divider::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
	height: calc(var(--c4-divider-h) + 1px);
	background: var(--wp--preset--color--primary);
	clip-path: polygon(0 100%, 25% 0, 100% 100%);
	pointer-events: none;
}

/* ── About ──────────────────────────────────────────────────────────────── */
.wp-block-image.c4-about-toc img { display: block; min-height: 339px; max-height: 339px; width: auto; aspect-ratio: 1100 / 1588; } /* min/max, not height: the editor's inline height:auto can't override them (QA task 14404) */ /* reserve width before lazy load, else 0px wide and never in view */
.c4-grid > .c4-about-toc { justify-self: center; }
@media (min-width: 768px) {
	/* The illustration is contained in its 10-cell × 20-row grid area and centred (object-fit: contain). */
	.wp-block-image.c4-about-toc img { min-height: 0; max-height: none; height: auto; width: min(100%, calc((20 * var(--c4-row) + 19 * 11px) * 1100 / 1588)); }
}

/* ── Home ───────────────────────────────────────────────────────────────── */
.c4-grid > .c4-home-h1 { line-height: 1.056; }
.c4-home-body > .wp-block-buttons.c4-home-btns { margin-block-start: 46px; } /* measured mobile text→button gap */
@media (min-width: 768px) {
}

/* ── Placeholder signup form on /home (inc/signup-form.php): outlined pill fields, white on blue ──
   Spacing measured from the live Squarespace form (same at 390 and 1440): legend→labels 28px,
   label→input 27px, input→next label 20px, last input→button 20px, inputs 42px tall,
   First/Last Name side by side at every width. Selectors start at .c4-signup so the band's rich-text
   rules (.c4-sec p { margin-block: 0 }) can't reach them. */
.c4-signup > p:empty { display: none; }
.c4-signup .c4-form { color: inherit; margin: 0 !important; scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.c4-signup .c4-form > *,
.c4-signup .c4-form p,
.c4-signup .c4-form fieldset { margin: 0 !important; }
.c4-signup .c4-form fieldset { border: 0; padding: 0; min-width: 0; }
.c4-signup .c4-form legend { padding: 0; margin: 0 0 4px; font-size: 1rem; line-height: 24px; }
.c4-signup .c4-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c4-signup .c4-form label { display: block; margin: 0 0 10px; font-size: .9rem; line-height: 18px; }
.c4-signup .c4-form__req { opacity: .7; margin-left: 8px; font-size: .95em; }
.c4-signup .c4-form input[type="text"],
.c4-signup .c4-form input[type="email"] {
	box-sizing: border-box; width: 100%; min-height: 42px; margin: 0; padding: 8px 15px;
	font: inherit; color: inherit; background: transparent;
	border: 1px solid currentColor; border-radius: 23.84px; box-shadow: none;
}
.c4-signup .c4-form input:not([type="submit"]):not([type="button"]):not([type="reset"]):focus-visible { outline: 3px solid var(--wp--preset--color--highlight); outline-offset: 2px; box-shadow: none; } /* beats the parent's forms.css (0,4,1) */
.c4-signup .c4-form__button {
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent);
	border: 0; border-radius: 300px; min-height: 55px; padding: 0 32px; cursor: pointer;
	font: 400 1rem/1.1 var(--wp--preset--font-family--primary); text-transform: uppercase;
	transition: opacity .15s ease;
}
.c4-signup .c4-form__button:hover { opacity: .8; }
.c4-signup .c4-form__button:focus-visible { outline: 3px solid var(--wp--preset--color--base); outline-offset: 3px; }
.c4-signup .c4-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c4-signup .c4-form__notice { padding: 12px 16px; border: 1px solid currentColor; border-radius: 12px; }

/* ── Gravity Forms "Sign Up" (bin/setup-form.php) — same measured layout as the fallback above.
   GF's own CSS is off (rg_gforms_disable_css), so everything it normally hides is hidden here. */
.c4-signup .c4-gf { scroll-margin-top: 24px; margin: 0 !important; } /* beats WP flow-layout gap */
.c4-signup .c4-gf .charleft,
.c4-signup .c4-gf .ginput_counter { display: none !important; } /* live has no character counter; the 200 limit stays */
.c4-signup .c4-gf .gform_validation_container,
.c4-signup .c4-gf .gform_hidden,
.c4-signup .c4-gf input[type="hidden"],
.c4-signup .c4-gf .gform_ajax_spinner,
.c4-signup .c4-gf .gfield--type-honeypot { display: none !important; }
.c4-signup .c4-gf .gform_wrapper,
.c4-signup .c4-gf form,
.c4-signup .c4-gf .gform_body { margin: 0 !important; padding: 0; }
.c4-signup .c4-gf .gform_fields { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.c4-signup .c4-gf .gfield { margin: 0 !important; padding: 0; border: 0; min-width: 0; }
.c4-signup .c4-gf fieldset.gfield > legend.gfield_label { padding: 0; margin: 0 0 4px; font-size: 1rem; line-height: 24px; }
.c4-signup .c4-gf fieldset.gfield > legend .gfield_required { display: none; } /* live shows "Name" unmarked */
.c4-signup .c4-gf .ginput_complex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c4-signup .c4-gf .ginput_complex > span { display: block; min-width: 0; }
.c4-signup .c4-gf label.gfield_label,
.c4-signup .c4-gf .gform-field-label--type-sub { display: block; margin: 0 0 10px; font-size: .9rem; font-weight: 400; line-height: 18px; }
.c4-signup .c4-gf .gfield_required { margin-left: 8px; opacity: .7; font-size: .95em; color: inherit; }
.c4-signup .c4-gf .gfield_required .gfield_required { margin-left: 0; opacity: 1; font-size: 1em; } /* GF nests two spans */
.c4-signup .c4-gf .gform-field-label--type-sub::after { content: "(required)"; margin-left: 8px; opacity: .7; font-size: .95em; }
.c4-signup .c4-gf input[type="text"],
.c4-signup .c4-gf input[type="email"] {
	box-sizing: border-box; width: 100%; min-height: 42px; margin: 0; padding: 8px 15px;
	font: inherit; color: inherit; background: transparent;
	border: 1px solid currentColor; border-radius: 23.84px; box-shadow: none;
}
.c4-signup .c4-gf input:not([type="submit"]):not([type="button"]):not([type="reset"]):focus-visible { outline: 3px solid var(--wp--preset--color--highlight); outline-offset: 2px; box-shadow: none; } /* beats the parent's forms.css (0,4,1) */
.c4-signup .c4-gf .gform_footer { margin: 20px 0 0; padding: 0; }
.c4-signup .c4-gf .gform_button {
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent);
	border: 0; border-radius: 300px; min-height: 55px; padding: 0 32px; cursor: pointer;
	font: 400 1rem/1.1 var(--wp--preset--font-family--primary); text-transform: uppercase;
	transition: opacity .15s ease;
}
.c4-signup .c4-gf .gform_button:hover { opacity: .8; }
.c4-signup .c4-gf .gform_button.gform_button:focus-visible { outline: 3px solid var(--wp--preset--color--base); outline-offset: 3px; }
/* Validation + confirmation */
.c4-signup .c4-gf .gform_validation_errors,
.c4-signup .c4-gf .gform_confirmation_message { margin: 0 0 20px; padding: 12px 16px; border: 1px solid currentColor; border-radius: 12px; }
.c4-signup .c4-gf .gform_validation_errors h2 { font: 700 1rem/1.5 var(--wp--preset--font-family--primary); text-transform: none; margin: 0; }
.c4-signup .c4-gf .gfield_validation_message,
.c4-signup .c4-gf .validation_message { margin-top: 6px; font-size: .875rem; font-weight: 700; }
.c4-signup .c4-gf .gfield_error input { border-width: 2px; }
.c4-signup .c4-gf .screen-reader-text,
.c4-signup .c4-gf .gform_required_legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
