/* PX Builder: page frame (section, row, column) and shared element rules. Tokens come from the :root block the renderer prints. */
.px-page .px-section {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	padding-block: var(--px-section-m);
	background-color: var(--px-color-surface);
	color: var(--px-color-text);
	font-family: var(--px-font-body);
	font-weight: var(--px-weight-body, 400);
	font-size: var(--px-text-body);
	line-height: var(--px-leading-body);
}
.px-page .px-section--sp-none { padding-block: 0; }
.px-page .px-section--sp-s { padding-block: var(--px-section-s); }
.px-page .px-section--sp-l { padding-block: var(--px-section-l); }
.px-page .px-section--bg-soft { background-color: var(--px-color-soft); }
/* 1.12 background style "wash" (surface / soft): a band tinted with the brand colour (5 colour roles kept: derived from primary + surface). Text stays the
   site text colour; muted, brand-coloured text and soft panels are re-mixed so they keep their contrast on the tint. */
.px-page :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-wash {
	background-color: color-mix(in oklab, var(--px-color-primary) 30%, var(--px-color-surface));
	--px-color-muted: color-mix(in oklab, var(--px-color-text) 82%, var(--px-color-primary));
	--px-color-primary-text: color-mix(in oklab, var(--px-color-primary) 45%, var(--px-color-text));
	--px-color-soft: var(--px-color-surface);
	--px-color-border: color-mix(in oklab, var(--px-color-text) 18%, var(--px-color-primary));
}
.px-page .px-section--al-center { text-align: center; }
.px-page .px-section--mh-half,
.px-page .px-section--mh-tall,
.px-page .px-section--mh-screen { display: flex; flex-direction: column; justify-content: center; }
.px-page :is(.px-section--mh-half, .px-section--mh-tall, .px-section--mh-screen) > .px-section__inner { flex: 1 1 auto; justify-content: center; }
/* A row set to "bottom" stays at the foot; the rows above it are centred in the space that is left. */
.px-page :is(.px-section--mh-half, .px-section--mh-tall, .px-section--mh-screen) > .px-section__inner:has(> .px-row--bottom) > :first-child:not(.px-row--bottom) { margin-top: auto; }
.px-page :is(.px-section--mh-half, .px-section--mh-tall, .px-section--mh-screen) > .px-section__inner > .px-row:has(+ .px-row--bottom) { margin-bottom: auto; }
.px-page :is(.px-section--mh-half, .px-section--mh-tall, .px-section--mh-screen) > .px-section__inner > .px-row:not(.px-row--bottom) + .px-row--bottom { margin-top: 0; }
.px-page .px-section--mh-half { min-height: 50vh; min-height: 50svh; }
.px-page .px-section--mh-tall { min-height: 40rem; }
.px-page .px-section--mh-screen { min-height: 100vh; min-height: 100svh; }

/* Background style (advanced). Gradient: dark / primary only; glow: surface / soft only. Never on an image section. */
.px-page .px-section--bg-dark.px-section--bgs-gradient { background-image: linear-gradient(135deg, var(--px-base-color-text), color-mix(in oklab, var(--px-base-color-primary) 55%, var(--px-base-color-text))); }
.px-page .px-section--bg-primary.px-section--bgs-gradient { background-image: linear-gradient(135deg, var(--px-base-color-primary), color-mix(in oklab, var(--px-base-color-text) 55%, var(--px-base-color-primary))); }
.px-page :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-mesh {
	/* Colour blobs from the palette only: strong enough that glass columns on top read as glass. */
	background-image:
		radial-gradient(38rem 30rem at 8% 12%, color-mix(in oklab, var(--px-base-color-primary) 45%, transparent), transparent 70%),
		radial-gradient(34rem 28rem at 92% 18%, color-mix(in oklab, var(--px-base-color-primary) 30%, #fff 20%), transparent 70%),
		radial-gradient(40rem 30rem at 70% 95%, color-mix(in oklab, var(--px-base-color-secondary) 85%, var(--px-base-color-primary) 15%), transparent 72%),
		radial-gradient(28rem 24rem at 30% 85%, color-mix(in oklab, var(--px-base-color-primary) 18%, transparent), transparent 70%);
}

/* Mesh on dark / primary: the background colour stays, two glows sit on top. */
.px-page .px-section--bg-dark.px-section--bgs-mesh {
	background-image:
		radial-gradient(50% 60% at 30% 35%, color-mix(in oklab, var(--px-base-color-primary) 45%, transparent), transparent 70%),
		radial-gradient(40% 50% at 78% 25%, color-mix(in oklab, var(--px-base-color-primary) 30%, #db2777 30%), transparent 70%);
}
.px-page .px-section--bg-primary.px-section--bgs-mesh {
	/* Two glows over a three-stop sweep of the brand colour (towards violet, then pink). */
	background-image:
		radial-gradient(40% 60% at 20% 20%, rgb(255 255 255 / .22), transparent 70%),
		radial-gradient(30% 50% at 85% 90%, rgb(56 189 248 / .3), transparent 70%),
		linear-gradient(135deg, color-mix(in oklab, var(--px-base-color-primary) 85%, #000), color-mix(in oklab, var(--px-base-color-primary) 55%, #7c3aed) 55%, color-mix(in oklab, var(--px-base-color-primary) 35%, #be185d));
}

/* Frame (advanced): the section background becomes a rounded panel. clip + border-box width: no horizontal overflow. */
.px-page .px-section--frame-inset,
.px-page .px-section--frame-inset-wide,
.px-page .px-section--frame-round-top,
.px-page .px-section--frame-overlap { overflow: clip; }
.px-page .px-section--frame-inset {
	/* The panel lines up with the page content (container width); its own padding insets the content. */
	width: min(100% - 2 * var(--px-gutter), var(--px-width-container));
	margin-inline: auto;
	border-radius: var(--px-radius-frame, 0);
}
/* An inset panel has no outer space: as the last section it keeps a gap above the footer (the same-background rule below never applies to the section after it). */
.px-page :is(.px-section--frame-inset, .px-section--frame-inset-wide):last-child { margin-bottom: var(--px-section-l); }
/* An inset panel after a coloured section (soft / dark / primary / image) needs room above it: that section's padding sits inside its colour.
   After a plain surface section its bottom padding already is the white gap, so no margin is added (any panel colour), or the gap doubles. */
.px-page .px-section + :is(.px-section--frame-inset, .px-section--frame-inset-wide) { margin-top: var(--px-section-l); }
.px-page .px-section--bg-surface:not(.px-section--bgs-tint, .px-section--bgs-wash, :is(.px-section--frame-inset, .px-section--frame-inset-wide)) + :is(.px-section--frame-inset, .px-section--frame-inset-wide),
.px-page .px-section--bg-soft:not(.px-section--bgs-tint, .px-section--bgs-wash) + .px-section--bg-soft:is(.px-section--frame-inset, .px-section--frame-inset-wide):not(.px-section--bgs-tint, .px-section--bgs-wash),
.px-page :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-tint + :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-tint:is(.px-section--frame-inset, .px-section--frame-inset-wide) { margin-top: 0; }
.px-page .px-section--frame-inset > .px-section__inner { max-width: none; padding-inline: clamp(1.25rem, 3.5vw, 3.125rem); }
/* First section of the page, right under the header: a small gap from the header (a template with an overlay header resets it). */
.px-page > :is(.px-section--frame-inset, .px-section--frame-inset-wide):first-child { margin-top: var(--px-space-s); }
.px-page .px-section--frame-inset-wide { width: calc(100% - 2 * var(--px-space-s)); margin-inline: auto; border-radius: var(--px-radius-frame, 0); }
@media (max-width: 767px) { .px-page .px-section--frame-inset-wide { width: calc(100% - 2 * var(--px-space-xs)); } }
.px-page .px-section--frame-round-top,
.px-page .px-section--frame-overlap { border-radius: var(--px-radius-frame, 0) var(--px-radius-frame, 0) 0 0; }
/* Overlap: round top that rides over the section before; that section gets the extra bottom padding, so its content is never covered. */
.px-page .px-section--frame-overlap { z-index: 1; margin-top: calc(-1 * var(--px-radius-frame, 0px)); }
.px-page .px-section:has(+ .px-section--frame-overlap) { padding-bottom: calc(var(--px-section-m) + var(--px-radius-frame, 0px)); }
.px-page .px-section--sp-none:has(+ .px-section--frame-overlap) { padding-bottom: var(--px-radius-frame, 0px); }
.px-page .px-section--sp-s:has(+ .px-section--frame-overlap) { padding-bottom: calc(var(--px-section-s) + var(--px-radius-frame, 0px)); }
.px-page .px-section--sp-l:has(+ .px-section--frame-overlap) { padding-bottom: calc(var(--px-section-l) + var(--px-radius-frame, 0px)); }
/* Space above / below (advanced, Renderer adds --pt-* / --pb-* only when not "auto"): one side wins over Spacing. */
.px-page .px-section--pt-none { padding-top: 0; }
.px-page .px-section--pt-s { padding-top: var(--px-section-s); }
.px-page .px-section--pt-m { padding-top: var(--px-section-m); }
.px-page .px-section--pt-l { padding-top: var(--px-section-l); }
.px-page .px-section--pb-none { padding-bottom: 0; }
.px-page .px-section--pb-s { padding-bottom: var(--px-section-s); }
.px-page .px-section--pb-m { padding-bottom: var(--px-section-m); }
.px-page .px-section--pb-l { padding-bottom: var(--px-section-l); }
.px-page .px-section--pb-none:has(+ .px-section--frame-overlap) { padding-bottom: var(--px-radius-frame, 0px); }
.px-page .px-section--pb-s:has(+ .px-section--frame-overlap) { padding-bottom: calc(var(--px-section-s) + var(--px-radius-frame, 0px)); }
.px-page .px-section--pb-m:has(+ .px-section--frame-overlap) { padding-bottom: calc(var(--px-section-m) + var(--px-radius-frame, 0px)); }
.px-page .px-section--pb-l:has(+ .px-section--frame-overlap) { padding-bottom: calc(var(--px-section-l) + var(--px-radius-frame, 0px)); }

/* Background tint (advanced): surface / soft only (never on an image section; the class is not printed there). */
.px-page :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-tint { background-color: color-mix(in oklab, var(--px-base-color-text) 5%, var(--px-base-color-surface)); }

/* Pattern (advanced): drawn on ::after, below the content, above the background image. */
.px-page .px-section--pat-lines::after,
.px-page .px-section--pat-dots::after,
.px-page .px-section--pat-cross::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.px-page .px-section--pat-lines::after {
	inset-inline: 0;
	width: min(100% - 2 * var(--px-gutter), var(--px-width-container));
	margin-inline: auto;
	background:
		linear-gradient(var(--px-color-border), var(--px-color-border)) 0 0 / 1px 100% no-repeat,
		linear-gradient(var(--px-color-border), var(--px-color-border)) 33.333% 0 / 1px 100% no-repeat,
		linear-gradient(var(--px-color-border), var(--px-color-border)) 66.667% 0 / 1px 100% no-repeat,
		linear-gradient(var(--px-color-border), var(--px-color-border)) 100% 0 / 1px 100% no-repeat;
}
.px-page .px-section--pat-dots::after {
	background: radial-gradient(circle, color-mix(in oklab, var(--px-color-text) 22%, transparent) 1px, transparent 1.6px) 0 0 / 24px 24px;
}

.px-page .px-section--pat-cross::after {
	background:
		repeating-linear-gradient(45deg, transparent 0 27px, var(--px-color-border) 27px 28px),
		repeating-linear-gradient(-45deg, transparent 0 27px, var(--px-color-border) 27px 28px);
}

.px-page .px-section__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.px-page .px-section__dim { position: absolute; inset: 0; z-index: -1; }
.px-page .px-section__video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.px-page .px-section--video.is-playing .px-section__video { opacity: 1; }
.px-page .px-section__video--yt { overflow: hidden; container-type: size; }
/* YouTube player covers the frame like object-fit: cover (16:9), a little larger so its edges never show. */
.px-page .px-section__video--yt iframe { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: max(100cqw, 177.78cqh); block-size: max(100cqh, 56.25cqw); border: 0; transform: translate(-50%, -50%) scale(1.15); pointer-events: none; }
.px-page .px-section__vbtn { position: absolute; inset-block-end: var(--px-space-s); inset-inline-end: var(--px-space-s); z-index: 2; display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; padding: 0; border: 1px solid rgb(255 255 255 / .55); border-radius: 50%; color: #fff; background: rgb(0 0 0 / .45); cursor: pointer; }
.px-page .px-section__vbtn:hover { background: rgb(0 0 0 / .65); }
.px-page .px-section__vbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.px-page .px-section__dim--30 { background: rgb(0 0 0 / .3); }
.px-page .px-section__dim--50 { background: rgb(0 0 0 / .5); }
.px-page .px-section__dim--70 { background: rgb(0 0 0 / .7); }
.px-page .px-section__dim--side { background: linear-gradient(90deg, rgb(0 0 0 / .15) 20%, rgb(0 0 0 / .78) 70%); }
/* dimSide start: the mirror, the dark side is on the left. */
.px-page .px-section__dim--side-start { background: linear-gradient(270deg, rgb(0 0 0 / .15) 20%, rgb(0 0 0 / .78) 70%); }
@media (max-width: 767.98px) {
	.px-page .px-section__dim--side,
	.px-page .px-section__dim--side-start { background: linear-gradient(180deg, rgb(0 0 0 / .15) 10%, rgb(0 0 0 / .78) 75%); }
}

.px-page .px-section__inner {
	display: flex;
	flex-direction: column;
	gap: var(--px-space-l);
	box-sizing: border-box;
	width: 100%;
	/* The width tokens are CONTENT widths: the gutter is added outside, so content lines up with a template container of the same width. */
	max-width: calc(var(--px-width-container) + 2 * var(--px-gutter));
	margin-inline: auto;
	padding-inline: var(--px-gutter);
}
.px-page .px-section--w-narrow > .px-section__inner { max-width: calc(var(--px-width-narrow) + 2 * var(--px-gutter)); }
/* Two plain sections in a row (same background, no frame) share one gap instead of two paddings. */
.px-page .px-section--bg-surface:not(:is(.px-section--frame-inset, .px-section--frame-inset-wide), .px-section--bgs-tint, .px-section--bgs-wash, .px-section--bgs-mesh, .px-section--pat-lines, .px-section--pat-dots, .px-section--pat-cross) + .px-section--bg-surface:not(:is(.px-section--frame-inset, .px-section--frame-inset-wide), .px-section--bgs-tint, .px-section--bgs-wash, .px-section--bgs-mesh, .px-section--pat-lines, .px-section--pat-dots, .px-section--pat-cross, .px-section--sp-none, .px-section--pt),
.px-page .px-section--bg-soft:not(:is(.px-section--frame-inset, .px-section--frame-inset-wide), .px-section--bgs-tint, .px-section--bgs-wash, .px-section--bgs-mesh, .px-section--pat-lines, .px-section--pat-dots, .px-section--pat-cross) + .px-section--bg-soft:not(:is(.px-section--frame-inset, .px-section--frame-inset-wide), .px-section--bgs-tint, .px-section--bgs-wash, .px-section--bgs-mesh, .px-section--pat-lines, .px-section--pat-dots, .px-section--pat-cross, .px-section--sp-none, .px-section--pt),
.px-page :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-tint:not(:is(.px-section--frame-inset, .px-section--frame-inset-wide), .px-section--pat-lines, .px-section--pat-dots, .px-section--pat-cross) + :is(.px-section--bg-surface, .px-section--bg-soft).px-section--bgs-tint:not(:is(.px-section--frame-inset, .px-section--frame-inset-wide, .px-section--pat-lines, .px-section--pat-dots, .px-section--pat-cross), .px-section--sp-none, .px-section--pt) { padding-top: var(--px-gap-top, 0px); }
/* The shared gap is the larger of the two: when this section asks for more space above than the one before leaves
   below, it keeps the difference (Large after Medium = 120, not 80). Used only by the shared-gap rule above. */
.px-page :is(.px-section--sp-none:not(.px-section--pb), .px-section--pb-none) + .px-section--sp-s { --px-gap-top: var(--px-section-s); }
.px-page :is(.px-section--sp-none:not(.px-section--pb), .px-section--pb-none) + .px-section--sp-m { --px-gap-top: var(--px-section-m); }
.px-page :is(.px-section--sp-none:not(.px-section--pb), .px-section--pb-none) + .px-section--sp-l { --px-gap-top: var(--px-section-l); }
.px-page :is(.px-section--sp-s:not(.px-section--pb), .px-section--pb-s) + .px-section--sp-m { --px-gap-top: max(0px, var(--px-section-m) - var(--px-section-s)); }
.px-page :is(.px-section--sp-s:not(.px-section--pb), .px-section--pb-s) + .px-section--sp-l { --px-gap-top: max(0px, var(--px-section-l) - var(--px-section-s)); }
.px-page :is(.px-section--sp-m:not(.px-section--pb), .px-section--pb-m) + .px-section--sp-l { --px-gap-top: max(0px, var(--px-section-l) - var(--px-section-m)); }
.px-page .px-section--w-wide > .px-section__inner { max-width: calc(var(--px-width-wide) + 2 * var(--px-gutter)); }
.px-page .px-section--w-full > .px-section__inner { max-width: none; }

/* Rows are flex, not a 12-track grid: a row of n columns has only n - 1 gaps, so wide gaps never overflow a phone.
   Column width = w/12 of (row + one gap) minus one gap. */
.px-page .px-row { --px-row-gap: var(--px-space-m); display: flex; flex-wrap: wrap; gap: var(--px-row-gap); min-width: 0; }
.px-page .px-row--gap-s { --px-row-gap: var(--px-space-s); }
.px-page .px-row--gap-l { --px-row-gap: var(--px-space-l); }
.px-page .px-row--gap-xl { --px-row-gap: var(--px-space-xl); }
/* Consecutive rows with the small gap stack at that gap (a grid split over rows), not at the section gap. */
.px-page .px-row--gap-s + .px-row--gap-s { margin-top: calc(var(--px-space-s) - var(--px-space-l)); }
.px-page .px-row--va-start { align-items: flex-start; }
.px-page .px-row--va-center { align-items: center; }
.px-page .px-row--va-end { align-items: flex-end; }
/* stretch: every column is as tall as the row, and its content can fill that height (a column flex container). */
.px-page .px-row--va-stretch { align-items: stretch; }
.px-page .px-row--va-stretch > .px-col { display: flex; flex-direction: column; }
/* advanced.push: the element and the ones after it go to the bottom of a stretched column (button at the foot of a card). */
.px-page .px-row--va-stretch > .px-col > .px-push { margin-top: auto; }

.px-page .px-col {
	--px-w: 12;
	flex: 0 0 calc(var(--px-w) / 12 * (100% + var(--px-row-gap)) - var(--px-row-gap));
	min-width: 0;
	box-sizing: border-box;
	container-type: inline-size;
}
.px-page .px-col--1 { --px-w: 1; }
.px-page .px-col--2 { --px-w: 2; }
.px-page .px-col--3 { --px-w: 3; }
.px-page .px-col--4 { --px-w: 4; }
.px-page .px-col--5 { --px-w: 5; }
.px-page .px-col--6 { --px-w: 6; }
.px-page .px-col--7 { --px-w: 7; }
.px-page .px-col--8 { --px-w: 8; }
.px-page .px-col--9 { --px-w: 9; }
.px-page .px-col--10 { --px-w: 10; }
.px-page .px-col--11 { --px-w: 11; }
.px-page .px-col--12 { --px-w: 12; }

.px-page .px-col--card,
.px-page .px-col--outline,
.px-page .px-col--highlight { padding: var(--px-space-m); border-radius: var(--px-radius); }
.px-page .px-col--card,
.px-page .px-col--highlight { padding: var(--px-space-l); }
.px-page .px-col--card { background: var(--px-color-surface); border: 1px solid var(--px-color-border); box-shadow: var(--px-shadow); }
.px-page .px-col--outline { border: 2px solid var(--px-color-primary); }
.px-page .px-col--highlight { background: var(--px-color-primary-soft); }

.px-page .px-col--glass .px-text { max-width: 34ch; }
/* glass panel titles: same size as the glass card title (1.375rem), not the h3 scale. */
.px-page .px-col--glass :is(.px-heading--h3, .px-heading--m) { font-size: 1.375rem; }
.px-page .px-col--glass > .px-el { margin-bottom: var(--px-space-s); }
.px-page .px-col--glass > .px-el:last-child { margin-bottom: 0; }
.px-page .px-col--glass {
	padding: var(--px-space-m);
	border-radius: var(--px-radius-panel, var(--px-radius));
	background: color-mix(in oklab, var(--px-color-surface) 92%, transparent);
	border: 1px solid color-mix(in oklab, #fff 55%, transparent);
	box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 70%, transparent), 0 1px 1px rgb(15 23 42 / .04), 0 8px 24px -8px rgb(15 23 42 / .12), 0 30px 60px -30px rgb(30 27 75 / .25);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.px-page .px-col--glass {
		background: linear-gradient(135deg, color-mix(in oklab, var(--px-color-surface) 55%, transparent), color-mix(in oklab, var(--px-color-surface) 25%, transparent));
		-webkit-backdrop-filter: blur(22px) saturate(1.6);
		backdrop-filter: blur(22px) saturate(1.6);
	}
}

/* 1.12: the most line padding any column of the row can carry (a middle column: start + end). A stat subtracts it from
   its own width + padding, so every column of the row sizes its number from the same width (the narrowest content box). */
.px-page :where(.px-row--lines-between:not(.px-row--panel-glass) > .px-col) { --px-pad-max: calc(var(--px-space-l) + var(--px-space-s)); }
.px-page :where(.px-row--lines-tight:not(.px-row--panel-glass) > .px-col) { --px-pad-max: calc(2 * var(--px-space-s)); }

/* A wrapping row (equal columns, widths add up to 13-24): the odd column of the last line stays at the start, centred in a centred section.
   Dividers would start a line in the wrong place, so they are off. */
.px-page .px-section--al-center .px-row--wrap { justify-content: center; }
.px-page .px-row--wrap.px-row--lines-between > .px-col::before,
.px-page .px-row--wrap.px-row--lines-tight > .px-col::before,
.px-page .px-row--wrap.px-row--lines-between > .px-col::after { display: none; }
.px-page .px-row--wrap.px-row--lines-tight > .px-col::after { display: none; }
.px-page :where(.px-row--wrap.px-row--lines-between > .px-col) { padding-inline: 0; --px-pad-s: 0px; --px-pad-e: 0px; --px-pad-max: 0px; }
.px-page :where(.px-row--wrap.px-row--lines-tight > .px-col) { padding-inline: 0; --px-pad-s: 0px; --px-pad-e: 0px; --px-pad-max: 0px; }

/* Tablet and mobile: a row that shows fewer columns than it has splits evenly and wraps. */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.px-page .px-row--t-1:not(.px-row--n-1) > .px-col { --px-w: 12; }
	.px-page .px-row--t-2:not(.px-row--n-2) > .px-col { --px-w: 6; }
	.px-page .px-row--t-3:not(.px-row--n-3) > .px-col { --px-w: 4; }
	.px-page .px-row--rev:is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > .px-col:nth-child(1) { order: 6; }
	.px-page .px-row--rev:is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > .px-col:nth-child(2) { order: 5; }
	.px-page .px-row--rev:is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > .px-col:nth-child(3) { order: 4; }
	.px-page .px-row--rev:is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > .px-col:nth-child(4) { order: 3; }
	.px-page .px-row--rev:is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > .px-col:nth-child(5) { order: 2; }
	.px-page .px-row--rev:is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > .px-col:nth-child(6) { order: 1; }
}
@media (max-width: 767.98px) {
	.px-page .px-row--m-1:not(.px-row--n-1) > .px-col { --px-w: 12; }
	.px-page .px-row--m-2:not(.px-row--n-2) > .px-col { --px-w: 6; }
	.px-page .px-row--rev:is(.px-row--m-1:not(.px-row--n-1), .px-row--m-2:not(.px-row--n-2)) > .px-col:nth-child(1) { order: 6; }
	.px-page .px-row--rev:is(.px-row--m-1:not(.px-row--n-1), .px-row--m-2:not(.px-row--n-2)) > .px-col:nth-child(2) { order: 5; }
	.px-page .px-row--rev:is(.px-row--m-1:not(.px-row--n-1), .px-row--m-2:not(.px-row--n-2)) > .px-col:nth-child(3) { order: 4; }
	.px-page .px-row--rev:is(.px-row--m-1:not(.px-row--n-1), .px-row--m-2:not(.px-row--n-2)) > .px-col:nth-child(4) { order: 3; }
	.px-page .px-row--rev:is(.px-row--m-1:not(.px-row--n-1), .px-row--m-2:not(.px-row--n-2)) > .px-col:nth-child(5) { order: 2; }
	.px-page .px-row--rev:is(.px-row--m-1:not(.px-row--n-1), .px-row--m-2:not(.px-row--n-2)) > .px-col:nth-child(6) { order: 1; }
}

/* Row (advanced): dividing lines. between = a 1px line in the middle of each gap (vertical), top = a line above the row. */
.px-page .px-row--lines-top { padding-top: var(--px-space-s); border-top: 1px solid var(--px-color-border); }
.px-page .px-row--lines-between > .px-col + .px-col { position: relative; }
.px-page .px-row--lines-tight > .px-col + .px-col { position: relative; }
.px-page .px-row--lines-between > .px-col + .px-col::before,
.px-page .px-row--lines-tight > .px-col + .px-col::before,
.px-page .px-row--lines-between > .px-col + .px-col::after { content: ""; position: absolute; pointer-events: none; background: var(--px-color-border); }
.px-page .px-row--lines-tight > .px-col + .px-col::after { content: ""; position: absolute; pointer-events: none; background: var(--px-color-border); }
.px-page .px-row--lines-between > .px-col + .px-col::before { inset-block: 0; inset-inline-start: calc(-.5 * var(--px-row-gap)); width: 1px; }
.px-page .px-row--lines-tight > .px-col + .px-col::before { inset-block: 0; inset-inline-start: calc(-.5 * var(--px-row-gap)); width: 1px; }
.px-page .px-row--lines-between > .px-col + .px-col::after { display: none; inset-inline: 0; top: calc(-.5 * var(--px-row-gap)); height: 1px; }
.px-page .px-row--lines-tight > .px-col + .px-col::after { display: none; inset-inline: 0; top: calc(-.5 * var(--px-row-gap)); height: 1px; }
/* The columns around a line keep their text off it. :where() keeps this below every column style (card, tone, panel padding). */
.px-page :where(.px-row--lines-between:not(.px-row--panel-glass) > .px-col + .px-col) { padding-inline-start: var(--px-space-l); --px-pad-s: var(--px-space-l); }
.px-page :where(.px-row--lines-tight:not(.px-row--panel-glass) > .px-col + .px-col) { padding-inline-start: var(--px-space-s); --px-pad-s: var(--px-space-s); }
.px-page :where(.px-row--lines-between:not(.px-row--panel-glass) > .px-col:not(:last-child)) { padding-inline-end: var(--px-space-s); --px-pad-e: var(--px-space-s); }
.px-page :where(.px-row--lines-tight:not(.px-row--panel-glass) > .px-col:not(:last-child)) { padding-inline-end: var(--px-space-s); --px-pad-e: var(--px-space-s); }
/* Where the row reflows to fewer columns the lines follow: vertical inside a line of columns, horizontal between lines. */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.px-page :where(.px-row--lines-between.px-row--t-1:not(.px-row--n-1) > .px-col) { padding-inline: 0; --px-pad-s: 0px; --px-pad-e: 0px; --px-pad-max: 0px; }
	.px-page :where(.px-row--lines-tight.px-row--t-1:not(.px-row--n-1) > .px-col) { padding-inline: 0; --px-pad-s: 0px; --px-pad-e: 0px; --px-pad-max: 0px; }
	.px-page .px-row--lines-between.px-row--t-1:not(.px-row--n-1) > .px-col + .px-col::before { display: none; }
	.px-page .px-row--lines-tight.px-row--t-1:not(.px-row--n-1) > .px-col + .px-col::before { display: none; }
	.px-page .px-row--lines-between.px-row--t-1:not(.px-row--n-1) > .px-col + .px-col::after { display: block; }
	.px-page .px-row--lines-tight.px-row--t-1:not(.px-row--n-1) > .px-col + .px-col::after { display: block; }
	.px-page .px-row--lines-between.px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(odd)::before { display: none; }
	.px-page .px-row--lines-tight.px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(odd)::before { display: none; }
	.px-page .px-row--lines-between.px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(n+3)::after { display: block; }
	.px-page .px-row--lines-tight.px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(n+3)::after { display: block; }
	/* L3 (1.10.3): the column that starts a new line has no start padding, the one that ends it no end padding. */
	.px-page .px-row--lines-between:not(.px-row--panel-glass).px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(odd) { padding-inline-start: 0; --px-pad-s: 0px; }
	.px-page .px-row--lines-between:not(.px-row--panel-glass).px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(even) { padding-inline-end: 0; --px-pad-e: 0px; }
	.px-page .px-row--lines-tight:not(.px-row--panel-glass).px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(odd) { padding-inline-start: 0; --px-pad-s: 0px; }
	.px-page .px-row--lines-tight:not(.px-row--panel-glass).px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(even) { padding-inline-end: 0; --px-pad-e: 0px; }
	.px-page .px-row--lines-between.px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n+1)::before { display: none; }
	.px-page .px-row--lines-tight.px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n+1)::before { display: none; }
	.px-page .px-row--lines-between.px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(n+4)::after { display: block; }
	.px-page .px-row--lines-tight.px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(n+4)::after { display: block; }
	/* L3 (1.10.3): the column that starts a new line has no start padding, the one that ends it no end padding. */
	.px-page .px-row--lines-between:not(.px-row--panel-glass).px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n+1) { padding-inline-start: 0; --px-pad-s: 0px; }
	.px-page .px-row--lines-between:not(.px-row--panel-glass).px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n) { padding-inline-end: 0; --px-pad-e: 0px; }
	.px-page .px-row--lines-tight:not(.px-row--panel-glass).px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n+1) { padding-inline-start: 0; --px-pad-s: 0px; }
	.px-page .px-row--lines-tight:not(.px-row--panel-glass).px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n) { padding-inline-end: 0; --px-pad-e: 0px; }
}
@media (max-width: 767.98px) {
	.px-page :where(.px-row--lines-between.px-row--m-1:not(.px-row--n-1) > .px-col) { padding-inline: 0; --px-pad-s: 0px; --px-pad-e: 0px; --px-pad-max: 0px; }
	.px-page :where(.px-row--lines-tight.px-row--m-1:not(.px-row--n-1) > .px-col) { padding-inline: 0; --px-pad-s: 0px; --px-pad-e: 0px; --px-pad-max: 0px; }
	.px-page .px-row--lines-between.px-row--m-1:not(.px-row--n-1) > .px-col + .px-col::before { display: none; }
	.px-page .px-row--lines-tight.px-row--m-1:not(.px-row--n-1) > .px-col + .px-col::before { display: none; }
	.px-page .px-row--lines-between.px-row--m-1:not(.px-row--n-1) > .px-col + .px-col::after { display: block; }
	.px-page .px-row--lines-tight.px-row--m-1:not(.px-row--n-1) > .px-col + .px-col::after { display: block; }
	.px-page .px-row--lines-between.px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(odd)::before { display: none; }
	.px-page .px-row--lines-tight.px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(odd)::before { display: none; }
	.px-page .px-row--lines-between.px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(n+3)::after { display: block; }
	.px-page .px-row--lines-tight.px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(n+3)::after { display: block; }
	/* L3 (1.10.3): the column that starts a new line has no start padding, the one that ends it no end padding. */
	.px-page .px-row--lines-between:not(.px-row--panel-glass).px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(odd) { padding-inline-start: 0; --px-pad-s: 0px; }
	.px-page .px-row--lines-between:not(.px-row--panel-glass).px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(even) { padding-inline-end: 0; --px-pad-e: 0px; }
	.px-page .px-row--lines-tight:not(.px-row--panel-glass).px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(odd) { padding-inline-start: 0; --px-pad-s: 0px; }
	.px-page .px-row--lines-tight:not(.px-row--panel-glass).px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(even) { padding-inline-end: 0; --px-pad-e: 0px; }
}

/* Row (advanced): stagger = even columns sit lower (from 1024px); bottom = the row goes to the foot of a tall section. */
@media (min-width: 1024px) {
	.px-page .px-row--stagger > .px-col:nth-child(even) { margin-top: var(--px-space-xl); }
}
.px-page .px-row--bottom { margin-top: auto; }

/* Row (advanced): the whole row is one glass panel, columns share it with no gap (a stats strip). */
.px-page .px-row--panel-glass {
	--px-row-gap: 0px;
	border-radius: var(--px-radius-panel, var(--px-radius));
	background: color-mix(in oklab, var(--px-color-surface) 70%, transparent);
	border: 1px solid color-mix(in oklab, #fff 70%, transparent);
	box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 70%, transparent), 0 1px 1px rgb(15 23 42 / .04), 0 8px 24px -8px rgb(15 23 42 / .12), 0 30px 60px -30px rgb(30 27 75 / .25);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
	.px-page .px-row--panel-glass {
		background: linear-gradient(135deg, color-mix(in oklab, var(--px-color-surface) 68%, transparent), color-mix(in oklab, var(--px-color-surface) 38%, transparent));
		-webkit-backdrop-filter: blur(24px) saturate(1.7);
		backdrop-filter: blur(24px) saturate(1.7);
	}
}
.px-page .px-row--panel-glass { align-items: stretch; }
.px-page .px-row--panel-glass > .px-col { padding: 1.875rem 2rem; }
.px-page .px-row--panel-glass.px-row--lines-between > .px-col + .px-col::before,
.px-page .px-row--panel-glass.px-row--lines-tight > .px-col + .px-col::before,
.px-page .px-row--panel-glass.px-row--lines-between > .px-col + .px-col::after { background: color-mix(in oklab, #fff 80%, transparent); box-shadow: 1px 1px 0 color-mix(in oklab, var(--px-color-text) 8%, transparent); }
.px-page .px-row--panel-glass.px-row--lines-tight > .px-col + .px-col::after { background: color-mix(in oklab, #fff 80%, transparent); box-shadow: 1px 1px 0 color-mix(in oklab, var(--px-color-text) 8%, transparent); }

/* Column (advanced): tone = a filled panel. dark / primary also reassign the colour tokens (TokenCompiler). */
.px-page .px-col--tone-soft,
.px-page .px-col--tone-primary,
.px-page .px-col--tone-dark { padding: var(--px-space-l); border-radius: var(--px-radius-panel, var(--px-radius)); }
.px-page .px-col--tone-soft { background-color: var(--px-color-soft); }
.px-page .px-col--tone-primary,
.px-page .px-col--tone-dark { color: var(--px-color-text); }

/* Paper: a light card / column inside a dark / primary / image block. Reassigns the colour tokens to the palette's own light values
   (--px-paper*, printed once in :root by TokenCompiler). */
.px-page .px-paper,
.px-page .px-col--tone-light {
	--px-color-surface: var(--px-paper);
	--px-color-soft: var(--px-paper-soft);
	--px-color-secondary: var(--px-paper-soft);
	--px-color-text: var(--px-paper-text);
	--px-color-heading: var(--px-paper-heading);
	--px-color-muted: var(--px-paper-muted);
	--px-color-border: var(--px-paper-border);
	--px-color-primary: var(--px-base-color-primary);
	--px-color-on-primary: var(--px-base-color-on-primary);
	--px-color-primary-hover: color-mix(in oklab, var(--px-base-color-primary) 85%, #000);
	--px-color-primary-text: color-mix(in oklab, var(--px-base-color-primary) 78%, var(--px-paper-text));
	--px-color-primary-soft: color-mix(in oklab, var(--px-base-color-primary) 12%, var(--px-paper));
	color: var(--px-paper-text);
}
.px-page .px-col--tone-light { background-color: var(--px-paper); }
/* highlight on a light tone keeps the secondary (paper-soft) fill, not the paper. */
.px-page .px-col--tone-light.px-col--highlight { background-color: var(--px-color-secondary); }
.px-page .px-col--tone-light:not(.px-col--card, .px-col--outline, .px-col--highlight, .px-col--glass) { padding: var(--px-pad, var(--px-space-l)); border-radius: var(--px-radius-panel, var(--px-radius)); }

/* Column pad (m / l) for the filled styles; minHeight for columns that carry a bleeding picture. */
.px-page .px-col--pad-m { --px-pad: var(--px-space-m); }
.px-page .px-col--pad-l { --px-pad: var(--px-space-l); }
.px-page :is(.px-col--card, .px-col--outline, .px-col--highlight, .px-col--glass, .px-col--tone-soft, .px-col--tone-primary, .px-col--tone-dark).px-col--pad-m { padding: var(--px-space-m); }
.px-page .px-col--mh-m { min-height: 30rem; }
/* inset (advanced): padding on every column, plain ones too; does not touch pad. */
.px-page .px-col.px-col--inset-m { --px-col-inset: var(--px-space-m); }
.px-page .px-col.px-col--inset-l { --px-col-inset: var(--px-space-l); }
/* inset: side padding only (no extra height); insetSide picks one side; phones drop it. */
@media (min-width: 768px) {
	.px-page .px-col:is(.px-col--inset-m, .px-col--inset-l) { padding-inline: var(--px-col-inset); }
	.px-page .px-col:is(.px-col--inset-m, .px-col--inset-l).px-col--inset-start { padding-inline-end: 0; }
	.px-page .px-col:is(.px-col--inset-m, .px-col--inset-l).px-col--inset-end { padding-inline-start: 0; }
}
.px-page .px-col--mh-l { min-height: 40rem; }

/* Column (advanced): bleed = runs to the screen edge on its side (from 768px). --px-bleed-edge = space between the content and the screen edge. */
.px-page .px-section { --px-bleed-edge: calc(var(--px-gutter) + max(0px, (100vw - var(--px-width-container) - 2 * var(--px-gutter)) / 2)); }
.px-page .px-section--w-narrow { --px-bleed-edge: calc(var(--px-gutter) + max(0px, (100vw - var(--px-width-narrow) - 2 * var(--px-gutter)) / 2)); }
.px-page .px-section--w-wide { --px-bleed-edge: calc(var(--px-gutter) + max(0px, (100vw - var(--px-width-wide) - 2 * var(--px-gutter)) / 2)); }
.px-page .px-section--w-full { --px-bleed-edge: var(--px-gutter); }
.px-page .px-section--frame-inset { --px-bleed-edge: clamp(1.25rem, 3.5vw, 3.125rem); }
.px-page .px-section--frame-inset-wide { --px-bleed-edge: calc(var(--px-gutter) + max(0px, (100vw - var(--px-width-container) - 2 * var(--px-gutter)) / 2) - var(--px-space-s)); }
.px-page .px-section--has-bleed { overflow-x: clip; }
@media (min-width: 768px) {
	.px-page .px-col--bleed-start,
	.px-page .px-col--bleed-end {
		flex-basis: calc(var(--px-w) / 12 * (100% + var(--px-row-gap)) - var(--px-row-gap) + var(--px-bleed-edge));
		align-self: stretch;
		display: flex;
		flex-direction: column;
	}
	.px-page .px-col--bleed-start { margin-inline-start: calc(-1 * var(--px-bleed-edge)); }
	.px-page .px-col--bleed-end { margin-inline-end: calc(-1 * var(--px-bleed-edge)); }
	/* The picture is laid inside a frame that is as tall as the row: its own height never sets the row height. */
	.px-page :is(.px-col--bleed-start, .px-col--bleed-end) > .px-image:only-child { position: relative; flex: 1 1 auto; width: 100%; max-width: none; min-height: 12rem; }
	.px-page :is(.px-col--bleed-start, .px-col--bleed-end) > .px-image:only-child > :is(.px-image__img, .px-image__link, .px-image__empty) { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
	.px-page :is(.px-col--bleed-start, .px-col--bleed-end) > .px-image:only-child > .px-image__link > .px-image__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}
/* fill: the same frame for an image that has to fill its column (any width). */
.px-page .px-col > .px-image--fill { position: relative; width: 100%; max-width: none; min-height: 12rem; }
.px-page .px-col > .px-image--fill > :is(.px-image__img, .px-image__link, .px-image__empty) { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.px-page .px-col > .px-image--fill > .px-image__link > .px-image__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
/* 1.12 fix: when the row stacks (phone, or tablet set to one column) there is no text column beside the picture to be
   as tall as, and the frame fell back to its 12rem minimum (a thin strip). Stacked, it keeps its ratio (auto = 4:3). */
@media (max-width: 767.98px) {
	.px-page .px-row--m-1:not(.px-row--n-1) > .px-col > .px-image--fill { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
	.px-page .px-row--m-1:not(.px-row--n-1) > .px-col > .px-image--fill:has(.px-image__img--1x1) { aspect-ratio: 1 / 1; }
	.px-page .px-row--m-1:not(.px-row--n-1) > .px-col > .px-image--fill:has(.px-image__img--16x9) { aspect-ratio: 16 / 9; }
	.px-page .px-row--m-1:not(.px-row--n-1) > .px-col > .px-image--fill:has(.px-image__img--3x4) { aspect-ratio: 3 / 4; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
	.px-page .px-row--t-1:not(.px-row--n-1) > .px-col > .px-image--fill { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
	.px-page .px-row--t-1:not(.px-row--n-1) > .px-col > .px-image--fill:has(.px-image__img--1x1) { aspect-ratio: 4 / 3; }
	.px-page .px-row--t-1:not(.px-row--n-1) > .px-col > .px-image--fill:has(.px-image__img--3x4) { aspect-ratio: 4 / 3; }
}
/* A row that reflows on a tablet has no screen edge to run to. */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.px-page :is(.px-row--t-1:not(.px-row--n-1), .px-row--t-2:not(.px-row--n-2), .px-row--t-3:not(.px-row--n-3)) > :is(.px-col--bleed-start, .px-col--bleed-end) {
		flex-basis: calc(var(--px-w) / 12 * (100% + var(--px-row-gap)) - var(--px-row-gap));
		margin-inline: 0;
		align-self: auto;
	}
}

/* Every element: the vertical rhythm inside a column. Element CSS must not set margin on its root. */
/* Long unbroken strings (URLs, pasted ids) must wrap, also inside flex items. */
.px-page .px-el { margin: 0 0 var(--px-space-m); overflow-wrap: anywhere; }
.px-page .px-el:last-child { margin-bottom: 0; }
.px-page .px-icon { flex: none; width: 1em; height: 1em; vertical-align: -.125em; }

/* Hide by device (viewport: tablet 768-1023, mobile below 768). */
@media (max-width: 767.98px) { .px-page :is(.px-el, .px-section).px-hide-mobile { display: none; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .px-page :is(.px-el, .px-section).px-hide-tablet { display: none; } }
@media (min-width: 1024px) { .px-page :is(.px-el, .px-section).px-hide-desktop { display: none; } }

/* Minimal reset (D30). Written with :where() so it only beats the template's tag rules (a, h1-h6, p, img) and loses to every element rule. */
.px-page :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-family: var(--px-font-heading); font-weight: var(--px-weight-heading); line-height: var(--px-leading-tight); color: var(--px-color-heading); text-transform: var(--px-heading-case, none); letter-spacing: var(--px-heading-tracking, normal); }
.px-page :where(a[class*="px-"]) { color: inherit; text-decoration: none; }
.px-page :where(img, video, svg) { max-width: 100%; }
.px-page :where(img, video) { height: auto; }
.px-page :where(button, input, select, textarea) { font-family: inherit; }

/* Equal boxes (1.5.5). Boxes side by side in one row are as tall as the row, whatever the row's valign:
   - a framed column (card / outline / highlight / glass / tone) stretches; its last button sits at the foot;
   - a column holding only one card, quote, icon box or filled image (1.12.3) stretches and the element fills it;
   - in a stretched row, the cards of a column share the height left over (bento: a stack of cards beside a tall card). */
.px-page .px-row:not(.px-row--va-center, .px-row--va-end) > .px-col:is(.px-col--card, .px-col--outline, .px-col--highlight, .px-col--glass, .px-col--tone-soft, .px-col--tone-primary, .px-col--tone-dark, .px-col--tone-light),
.px-page .px-row:not(.px-row--va-center, .px-row--va-end) > .px-col:has(> :is(.px-card, .px-quote, .px-iconbox, .px-image--fill):only-child) { align-self: stretch; display: flex; flex-direction: column; }
.px-page .px-col:is(.px-col--card, .px-col--outline, .px-col--highlight, .px-col--glass, .px-col--tone-soft, .px-col--tone-primary, .px-col--tone-dark, .px-col--tone-light) > .px-button:last-child:not(:first-child) { margin-top: auto; }
.px-page .px-col > :is(.px-card, .px-quote, .px-iconbox):only-child,
.px-page .px-row--va-stretch > .px-col > .px-card:not(.px-card--overlay) { flex: 1 1 auto; }

/* lines "flush": the same rules as "tight", but the columns are not indented next to the line. */
.px-page .px-row--wrap.px-row--lines-flush > .px-col::before,
.px-page .px-row--wrap.px-row--lines-flush > .px-col::after { display: none; }
.px-page :where(.px-row--wrap.px-row--lines-flush > .px-col) { padding-inline: 0; }
.px-page .px-row--lines-flush > .px-col + .px-col { position: relative; }
.px-page .px-row--lines-flush > .px-col + .px-col::before,
.px-page .px-row--lines-flush > .px-col + .px-col::after { content: ""; position: absolute; pointer-events: none; background: var(--px-color-border); }
.px-page .px-row--lines-flush > .px-col + .px-col::before { inset-block: 0; inset-inline-start: calc(-.5 * var(--px-row-gap)); width: 1px; }
.px-page .px-row--lines-flush > .px-col + .px-col::after { display: none; inset-inline: 0; top: calc(-.5 * var(--px-row-gap)); height: 1px; }
.px-page :where(.px-row--lines-flush:not(.px-row--panel-glass) > .px-col + .px-col) { padding-inline-start: 0; }
.px-page :where(.px-row--lines-flush:not(.px-row--panel-glass) > .px-col:not(:last-child)) { padding-inline-end: 0; }
.px-page .px-row--panel-glass.px-row--lines-flush > .px-col + .px-col::before,
.px-page .px-row--panel-glass.px-row--lines-flush > .px-col + .px-col::after { background: color-mix(in oklab, #fff 80%, transparent); box-shadow: 1px 1px 0 color-mix(in oklab, var(--px-color-text) 8%, transparent); }
@media (min-width: 768px) and (max-width: 1023.98px) {
	.px-page :where(.px-row--lines-flush.px-row--t-1:not(.px-row--n-1) > .px-col) { padding-inline: 0; }
	.px-page .px-row--lines-flush.px-row--t-1:not(.px-row--n-1) > .px-col + .px-col::before { display: none; }
	.px-page .px-row--lines-flush.px-row--t-1:not(.px-row--n-1) > .px-col + .px-col::after { display: block; }
	.px-page .px-row--lines-flush.px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(odd)::before { display: none; }
	.px-page .px-row--lines-flush.px-row--t-2:not(.px-row--n-2) > .px-col:nth-child(n+3)::after { display: block; }
	.px-page .px-row--lines-flush.px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(3n+1)::before { display: none; }
	.px-page .px-row--lines-flush.px-row--t-3:not(.px-row--n-3) > .px-col:nth-child(n+4)::after { display: block; }
}
@media (max-width: 767.98px) {
	.px-page :where(.px-row--lines-flush.px-row--m-1:not(.px-row--n-1) > .px-col) { padding-inline: 0; }
	.px-page .px-row--lines-flush.px-row--m-1:not(.px-row--n-1) > .px-col + .px-col::before { display: none; }
	.px-page .px-row--lines-flush.px-row--m-1:not(.px-row--n-1) > .px-col + .px-col::after { display: block; }
	.px-page .px-row--lines-flush.px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(odd)::before { display: none; }
	.px-page .px-row--lines-flush.px-row--m-2:not(.px-row--n-2) > .px-col:nth-child(n+3)::after { display: block; }
}

/* Empty spacer columns (kept to centre a narrow column on wide screens) take no room once the row stacks: no extra
   row gap above / below the real content on phones. In the editor (data-px-col) they stay, so they can take drops. */
@media (max-width: 767.98px) {
	.px-page .px-row--m-1 > .px-col:not(:has(*)):not([data-px-col]) { display: none; }
}

/* Nested corners: a picture inside a framed column follows the column's corner (outer radius minus the column padding,
   at least 4px), so the two curves stay concentric instead of a rounder picture in a squarer box. Square, pill and
   avatar shapes keep their own radius. */
.px-page :is(.px-col--card, .px-col--outline, .px-col--highlight) { --px-col-r: var(--px-radius); --px-col-p: var(--px-space-l); }
.px-page .px-col--outline { --px-col-p: var(--px-space-m); }
.px-page .px-col--glass { --px-col-r: var(--px-radius-panel, var(--px-radius)); --px-col-p: var(--px-space-m); }
.px-page :is(.px-col--card, .px-col--outline, .px-col--highlight, .px-col--glass).px-col--pad-m { --px-col-p: var(--px-space-m); }
.px-page :is(.px-col--card, .px-col--outline, .px-col--highlight, .px-col--glass) > .px-image:not(.px-image--shape-square, .px-image--shape-pill, .px-image--avatar) :is(.px-image__img, .px-image__link, .px-image__empty) {
	border-radius: max(.25rem, calc(var(--px-col-r) - var(--px-col-p)));
}

/* 1.13 column overhang "bottom": the column reaches --px-overhang into the next section (a cut-out picture over the band edge,
   a quote card over the photo below). The section paints above its neighbour; the next section's content keeps clear of it. */
.px-page .px-section--overhang { z-index: 2; --px-overhang: 4rem; --px-pb: var(--px-section-m); }
.px-page .px-section--overhang.px-section--sp-s { --px-pb: var(--px-section-s); }
.px-page .px-section--overhang.px-section--sp-l { --px-pb: var(--px-section-l); }
.px-page .px-section--overhang:is(.px-section--sp-none, .px-section--pb-none) { --px-pb: 0px; }
.px-page .px-section--overhang.px-section--pb-s { --px-pb: var(--px-section-s); }
.px-page .px-section--overhang.px-section--pb-m { --px-pb: var(--px-section-m); }
.px-page .px-section--overhang.px-section--pb-l { --px-pb: var(--px-section-l); }
.px-page .px-section--overhang:has(.px-col--overhang-bottom-l) { --px-overhang: 8rem; }
.px-page .px-section--overhang > .px-section__inner > .px-row > :is(.px-col--overhang-bottom, .px-col--overhang-bottom-l) { position: relative; z-index: 1; align-self: flex-start; margin-bottom: calc(-1 * (var(--px-pb) + var(--px-overhang))); }
.px-page .px-section--overhang + .px-section { --px-overhang-in: 4rem; }
.px-page .px-section--overhang:has(.px-col--overhang-bottom-l) + .px-section { --px-overhang-in: 8rem; }
.px-page .px-section--overhang + .px-section > .px-section__inner { margin-top: calc(var(--px-overhang-in) + var(--px-space-m)); }
@media (max-width: 767.98px) {
	.px-page .px-section--overhang { --px-overhang: 2.5rem; }
	.px-page .px-section--overhang:has(.px-col--overhang-bottom-l) { --px-overhang: 4rem; }
	.px-page .px-section--overhang + .px-section { --px-overhang-in: 2.5rem; }
	.px-page .px-section--overhang:has(.px-col--overhang-bottom-l) + .px-section { --px-overhang-in: 4rem; }
}
