/*
Theme Name:  Sommer Walker
Theme URI:   https://sommerwalker.com/
Description: Child theme of Twenty Twenty-Five for Sommer Walker (Walker Fine Jewelry). Carries the
             verified palette, type scale and the enforced in-body link underline via
             theme.json, the shared block patterns, and the site header and footer.
Author:      bhive.media
Template:    twentytwentyfive
Version:     3.10.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sommerwalker
*/

/* Block theme — styling lives in theme.json. Only rules theme.json cannot express belong here.

   Footer link columns: theme.json has no way to remove list markers, and `is-style-none`
   is not a registered list style in Twenty Twenty-Five, so the bullets rendered. */
.sw-footer-links {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

/* Site logo: a <figure> carries default margins that would throw off the header flex row. */
.sw-site-logo {
	margin: 0;
	line-height: 0;
}

.sw-site-logo img {
	display: block;
	height: auto;
}

/* Category cards: the grid equalises card height, but not the content inside it, so cards
   with a two-line blurb pushed their button 23px below the others. Bottom-align the CTA. */
.sw-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.sw-card .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

/* Process steps: the step number sits above each heading as a quiet pink marker. */
.sw-step-number {
	color: var(--wp--preset--color--pink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.18em;
	margin-bottom: 0.35rem;
}

/* FAQ accordions. The core Details block ships a body-size UA triangle, which reads as
   unstyled next to everything else. Hairline rules + a pink +/- marker instead. */
.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	padding: 0.9rem 0;
}

.wp-block-details:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}

.wp-block-details summary {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--ink);
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	color: var(--wp--preset--color--pink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.35rem;
	line-height: 1;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--pink);
	outline-offset: 3px;
}

.wp-block-details > :not(summary) {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--body);
}

/* Specimen cards (gemstone types, gold colours). The source shots are square on white with
   varying subject scale, so a fixed square frame keeps the grid even without re-cropping
   eleven more images. */
.sw-specimen figure.wp-block-image {
	margin: 0 0 0.75rem;
}

.sw-specimen figure.wp-block-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--wp--preset--color--surface-subtle);
}

.sw-specimen h3 {
	margin-bottom: 0.25rem;
}

/* ---------------------------------------------------------------------------
   Centred masthead, after harrywinston.com/en/engagement-and-bridal:
   logo centred on its own row, hairline divider, navigation centred beneath.
   --------------------------------------------------------------------------- */
.sw-header__brand .sw-site-logo {
	margin: 0 auto;
}

/* Ornate divider: the reference uses a plain hairline. This keeps that restraint
   but tapers it at both ends and sets a small pink lozenge at the centre, with a halo
   in the page colour so the rule appears to pass behind it. No image required. */
.sw-rule-ornate {
	position: relative;
	height: 1px;
	margin: 1.25rem auto 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--wp--preset--color--border-subtle) 12%,
		var(--wp--preset--color--border-subtle) 88%,
		transparent 100%
	);
}

.sw-rule-ornate::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var(--wp--preset--color--pink);
	box-shadow: 0 0 0 7px var(--wp--preset--color--surface);
}

/* The consultation CTA still needs to read as the primary action inside a
   centred nav row, without breaking the row's symmetry. */
.wp-block-navigation .sw-nav-cta a {
	color: var(--wp--preset--color--pink);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.wp-block-navigation .sw-nav-cta a:hover {
	color: var(--wp--preset--color--pink-hover);
}

/* Mobile overlay hierarchy.
   The overlay forces every submenu open and the menu is centre-aligned, so the
   block's 32px submenu indent renders invisible and parents and children read
   as one flat list. Centring is right for this design, so the hierarchy is
   carried by weight and scale instead of indentation. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding-left: 0;
	margin-block-start: .25rem;
	margin-block-end: 1rem;
	gap: .35rem;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: .8125rem;
	letter-spacing: .08em;
	color: var(--wp--preset--color--muted, #6b6b6b);
}

.wp-block-navigation__responsive-container.is-menu-open
	> .wp-block-navigation__responsive-container-content
	> .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: 1rem;
	letter-spacing: .14em;
}

/* ---------------------------------------------------------------------------
   Centred headlines and subheads.
   The reference centres headings AND their intro line, but keeps the measure
   narrow (350-643px). Centred text across a 1360px column is unreadable, so the
   lead paragraph is capped and centred within its section rather than stretched.
   Long-form body copy stays left-aligned - only the lead is centred.
   --------------------------------------------------------------------------- */
main :is(h1, h2, h3) {
	text-align: center;
}

main :is(h1, h2) + p {
	text-align: center;
	max-width: 62ch;
	margin-left: auto;
	margin-right: auto;
}

/* Large display type carries a touch of negative tracking, as the reference does. */
main h1 {
	letter-spacing: -0.006em;
}

main h2 {
	letter-spacing: -0.005em;
}

/* Cards read as centred units in this layout. */
.sw-card,
.sw-specimen {
	text-align: center;
}

.sw-card .wp-block-buttons,
.sw-specimen .wp-block-buttons {
	justify-content: center;
}

/* Hero: copy block centred above the image, per the reference's bridal layout.
   The buttons block does not inherit text-align, so it is centred explicitly. */
.has-blush-bloom-gradient-background .wp-block-buttons {
	justify-content: center;
}

.has-blush-bloom-gradient-background p {
	text-align: center;
	max-width: 62ch;
	margin-left: auto;
	margin-right: auto;
}

.has-blush-bloom-gradient-background figure.wp-block-image {
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------------------------
   Hero measure. The home H1 needs 942px to sit on one line but the content
   column caps at 740, which orphaned the last word. Headlines can carry a wider
   measure than body copy, so the hero band gets its own content size.
   --------------------------------------------------------------------------- */
.has-blush-bloom-gradient-background {
	--wp--style--global--content-size: 1000px;
}

/* Body copy must NOT follow the headline out to 1000px - it stays readable. */
.has-blush-bloom-gradient-background p {
	max-width: 62ch;
}

/* Hero imagery was filling the full measure (740px square, portraits 740x1103).
   Capped so the image supports the headline rather than competing with it. */
.has-blush-bloom-gradient-background figure.wp-block-image img {
	max-width: min(100%, 560px);
	height: auto;
}

/* ---------------------------------------------------------------------------
   Vertical rhythm. Gaps between top-level blocks were running 24 / 40 / 80px
   with no pattern, so section breaks read the same as line breaks. Two values
   only: a section gap and an intra-section gap.
   --------------------------------------------------------------------------- */
.wp-block-post-content > h2 {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--20);
}

.wp-block-post-content > h2:first-child {
	margin-top: 0;
}

/* A heading immediately followed by its lead line keeps them paired. */
.wp-block-post-content > h2 + p {
	margin-top: 0;
}

/* Wide grids and full-bleed bands are section-level too. */
.wp-block-post-content > .wp-block-group.alignwide,
.wp-block-post-content > .wp-block-columns.alignwide {
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--50);
}

.wp-block-post-content > .wp-block-group.alignfull {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

/* The hero band opens the page - it must not push away from the header. */
.wp-block-post-content > .wp-block-group.alignfull:first-child {
	margin-top: 0;
}

/* Orphan control. Six H1s are too long for one line at any sensible measure
   (custom-rings needs 1331px), and simply widening the column trades one orphan
   for another - at 1000px, custom-necklaces would drop "You" onto its own line.
   text-wrap:balance distributes the words evenly across the lines instead, which
   is what headline setting actually calls for. Degrades to normal wrapping on
   browsers without it. */
main :is(h1, h2, h3),
.sw-card h3,
.sw-specimen h3 {
	text-wrap: balance;
}

/* Paragraphs get the lighter treatment - avoids a single short last line
   without the cost of balancing every line. */
main p {
	text-wrap: pretty;
}

/* Card headings were inheriting the section H3 size (34px), which needs 255-279px
   for the four two-word labels but the card is only 253px wide - so "Custom Rings"
   sat on one line and the other four broke in two. The reference runs 34px headings
   in ~350px cards; ours are narrower, so the type scales with the card, not the
   section. 24px puts every label on one line with room to spare. */
.sw-card h3,
.sw-specimen h3 {
	font-size: 1.5rem;
	line-height: 1.25;
}

/* ---------------------------------------------------------------------------
   Hero band. The blush-bloom gradient is the whole treatment - no photograph
   behind the type.

   A veiled photograph used to sit here. The band is short and densely set
   (headline, two subheads, two paragraphs, two buttons), so the veil had to run
   at 74-88% white to keep the text legible, which left the photo an unreadable
   blotch behind the words. Hero imagery now sits below the copy at full
   strength instead, where it competes with nothing.
   --------------------------------------------------------------------------- */
.has-blush-bloom-gradient-background {
	position: relative;
	isolation: isolate;
}

/* ---------------------------------------------------------------------------
   Home hero: type sits ON the photograph, in the clear zone built into it.

   The still life is weighted to the right of the frame and the left 55% is empty
   marble - measured at 10.1 contrast against ink text, well past AA. Centring the
   headline, as every other page does, would land it on the ring box, so the hero
   is the one place the site aligns left.

   The blush-bloom gradient stays on the group underneath as the fallback: before
   the theme carrying this photograph is installed, and if the image ever fails to
   load, the band still reads as the old blush hero rather than collapsing.
   --------------------------------------------------------------------------- */
.sw-hero-photo {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 34rem;
}

/* The photograph rides on a pseudo-element, not on the group itself.

   WordPress emits `.has-blush-bloom-gradient-background { background: <gradient>
   !important }`. That is the background SHORTHAND, so it resets background-image,
   and !important wins at any specificity - painting the photo on the element was
   silently overridden by the very gradient kept as its fallback. A pseudo-element
   is out of that declaration's reach, so both survive: photograph on top, blush
   gradient beneath it if the image ever fails to load. */
.sw-hero-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: var(--sw-hero-photo, none);
	background-size: cover;
	background-position: 72% center;
	background-repeat: no-repeat;
}

.sw-hero-photo > * {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* Keep the copy inside the empty left portion of the photograph.

   !important is required, not sloppiness: WordPress emits
   `.is-layout-constrained > :where(...) { margin-inline: auto !important }`, and
   !important cannot be beaten by specificity. Same trap as the gradient shorthand
   above - the max-width here applied fine while the margin was silently ignored,
   which centred the copy over the ring box. */
.sw-hero-photo .sw-hero-copy {
	max-width: 30rem;
	margin-inline: 9% auto !important;
}

/* Only the body copy is pulled in. WCAG splits the thresholds - large text needs
   3.0, body needs 4.5 - and the ribbon zone past 43% measures 3.6. So the headline
   may run over it and still pass, while the paragraphs must stop short. Capping the
   whole block instead pushed the headline to four lines. */
.sw-hero-photo .sw-hero-copy p {
	max-width: 21rem;
}

/* The cap is the ribbon, not the box. Everything left of 43% of the frame holds
   12.0 contrast against ink; the ribbon's upper curve at 46% falls to 3.6 - fine
   for a headline, under AA for body copy. Both tiers are sized so the block never
   reaches 43% at any width within them. */
@media (max-width: 1199px) and (min-width: 782px) {
	.sw-hero-photo .sw-hero-copy {
		max-width: 26rem;
		margin-inline: 6% auto !important;
	}

	.sw-hero-photo .sw-hero-copy p {
		max-width: 19rem;
	}
}

/* Beat main :is(h1,h2,h3){text-align:center} and main :is(h1,h2)+p, both 0-1-1. */
main .sw-hero-left :is(h1, h2, h3),
main .sw-hero-left :is(h1, h2) + p,
main .sw-hero-left p {
	text-align: left;
	/* !important again: constrained layout centres every direct child with
	   `margin-inline: auto !important`, which was indenting the lede further than
	   the headline above it once the paragraphs were given their own max-width. */
	margin-inline: 0 auto !important;
}

main .sw-hero-left .wp-block-buttons {
	justify-content: flex-start;
}

/* Narrow screens have no empty zone to sit in: drop the still life below the copy
   and let the type run on plain ground. */
@media (max-width: 781px) {
	.sw-hero-photo {
		display: block;
		min-height: 0;
		/* Must match the rendered image height or the still life rides up over the
		   buttons: 140% of a 375px viewport at the image's 1.833 ratio is 286px = 76vw. 84vw leaves ~30px of clearance rather than 6. */
		padding-bottom: 84vw;
	}

	.sw-hero-photo::before {
		background-size: 140% auto;
		background-position: 72% bottom;
	}

	.sw-hero-photo .sw-hero-copy {
		max-width: none;
		margin-inline: 0 !important;
	}
}


/* ---------------------------------------------------------------------------
   Grid track collapsing.
   WordPress renders grid layouts as repeat(auto-fill, minmax(X, 1fr)).
   auto-fill KEEPS empty tracks, so any grid holding fewer items than it has
   room for renders flush left with a phantom column on the right - the five
   category pages (4 cards in 5 tracks), "Why Work With Sommer" (4 in 5), and
   the gold colour specimens (3 in 4).

   auto-fit collapses the empty tracks so the remaining items share the full
   width. Applied to every grid, not only the three, so a future change to any
   item count cannot bring the fault back.

   Specificity is 0-2-0 to beat WordPress's own 0-1-0 container rule regardless
   of stylesheet order.
   --------------------------------------------------------------------------- */
.wp-block-group.sw-fit {
	grid-template-columns: repeat(auto-fit, minmax(var(--sw-fit-min, 15rem), 1fr));
}

/* Hero image sat flush left: the figure is centred at the hero's 1000px measure
   but the image inside is capped at 560px, and a capped image needs its own
   auto margins - centring the figure does nothing for it. */
.has-blush-bloom-gradient-background figure.wp-block-image img {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

/* Buttons in page content sat flush left inside a full-width block: the block itself
   was centred, but its justify-content was left at normal, so a 315px button sat at
   the left edge of a 740px container - 220px off centre on a centred page.
   Also gives a closing call to action room to breathe. */
main .wp-block-buttons {
	justify-content: center;
}

main :is(h1, h2, h3) + .wp-block-buttons,
main p + .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--30);
}

/* Look book reference codes.
   WordPress styles gallery captions as OVERLAYS - absolutely positioned over the image, white
   text, a dark scrim gradient and a black text-shadow - because it assumes a caption sits on
   dark photography. On white product shots the scrim is invisible and the white text disappears
   entirely: the codes were unreadable unless selected.

   The winning core rule is `.wp-block-gallery.has-nested-images figure.wp-block-image figcaption`
   at specificity 0-4-0, so a plain `.sw-ref` (0-1-0) loses to it. The selector below is 0-5-0 and
   wins without !important. The whole overlay treatment has to be unwound - position, background,
   shadow, padding, width - not just the colour. */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.sw-ref {
	position: static;
	bottom: auto;
	width: auto;
	max-height: none;
	overflow: visible;
	background: none;
	background-image: none;
	text-shadow: none;
	z-index: auto;
	padding: 0;
	margin-top: 0.7rem;
	text-align: center;
}

/* The piece name, in the client's own wording. */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.sw-ref .sw-ref-name {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.9375rem;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

/* The style number sits under it, quieter - it is for citing, not for reading. */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.sw-ref .sw-ref-code {
	display: block;
	margin-top: 0.3rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* A linked code should land with a little room above it. */
.wp-block-gallery figure[id^="SW-"] {
	scroll-margin-top: 2rem;
}

/* ---------------------------------------------------------------------------
   SECTION MASTHEADS - the repeating kicker / heading / subtext stack.

   Client direction 2026-09-18: break the long text runs up, and make the pages
   read as personal and credible rather than as a brochure.

   The site already had a heading-plus-lead-line pattern, but it appeared on
   perhaps a third of the sections and carried no label, so a reader scrolling a
   long page saw an undifferentiated run of headings. This makes the stack a
   real component and applies it everywhere:

       .sw-kicker   a short uppercase label naming what the section IS
       h2 / h3      the heading
       .sw-sub      one line of subtext, the promise under the heading

   Why a label and not simply a bigger heading: the label is the part that scans.
   Someone skimming reads six kickers down the page and knows the shape of it
   without reading a single heading in full.

   Class-based rather than a block wrapper on purpose. wp_kses_post keeps the
   class attribute but the plugin's page tools cannot carry a <style> tag, and a
   group wrapper would break the `.wp-block-post-content > h2` rhythm rules above.
   --------------------------------------------------------------------------- */
.sw-kicker {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--pink);
	text-align: center;
	margin-bottom: 0.5rem;
}

/* The kicker now opens the section, so it takes over the section-level gap the
   heading used to carry, and the heading closes up under it. Without this the
   80px section gap lands BETWEEN the label and its own heading, and the pair
   reads as two unrelated things. */
.wp-block-post-content > .sw-kicker {
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-post-content > .sw-kicker:first-child {
	margin-top: 0;
}

.wp-block-post-content > .sw-kicker + :is(h2, h3) {
	margin-top: 0;
}

/* Subtext: the line that turns a heading into a promise. Deliberately a shorter
   measure than body copy - it is read in one glance, not scanned line to line. */
.sw-sub {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1875rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
	text-align: center;
	max-width: 46ch;
	margin-left: auto;
	margin-right: auto;
	text-wrap: balance;
}

/* A heading and its subtext are one unit. */
.wp-block-post-content > :is(h2, h3) + .sw-sub {
	margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------------
   CREDENTIAL ROW - short facts on one line, hairline-separated.

   This is the credibility half of the brief. A prose claim ("fifteen years of
   experience") reads as marketing; the same facts set as a row of data read as a
   record. Wraps rather than stacking into lonely single-item rows on a phone.
   --------------------------------------------------------------------------- */
.sw-facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 2.5rem;
	margin-block: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	text-align: center;
}

.sw-facts > * {
	flex: 0 1 auto;
	margin: 0;
}

/* Each fact is a value over a label. The value carries the display face so the
   row reads as part of the brand, not as a spec table. */
.sw-facts .sw-fact-value {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}

.sw-facts .sw-fact-label {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------------------------
   PULL QUOTE - one sentence in Sommer's own voice, set large.

   Used once per page at most. It is the only place on a page where her voice is
   allowed to interrupt the reading, which is what makes it land.
   --------------------------------------------------------------------------- */
.sw-quote {
	position: relative;
	max-width: 34ch;
	margin-inline: auto;
	margin-block: var(--wp--preset--spacing--40);
	padding-top: 2.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.625rem;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
	text-align: center;
	text-wrap: balance;
}

/* The pink lozenge from the masthead divider, reused as the quote mark. Ties the
   page to the header without introducing a second ornament. */
.sw-quote::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0.75rem;
	width: 7px;
	height: 7px;
	transform: translate(-50%, 0) rotate(45deg);
	background: var(--wp--preset--color--pink);
}

/* ---------------------------------------------------------------------------
   SIGN-OFF - her name in the display face, closing the page like a letter.
   --------------------------------------------------------------------------- */
.sw-signoff {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-align: center;
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: 0.25rem;
}

.sw-signoff-role {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	text-align: center;
	margin-top: 0;
}

/* ---------------------------------------------------------------------------
   TINTED SECTION BAND.

   The design audit has carried "no section rhythm - no alternating backgrounds"
   as outstanding since August. A full-bleed band on the soft grey gives a long
   page a second surface to change against, which is what actually breaks up a
   scroll. Headings alone do not.

   Padding only - the colour comes from the theme.json preset on the block, so
   the same class works on grey-tint or pink-tint without a second rule.
   --------------------------------------------------------------------------- */
.sw-band {
	padding-block: var(--wp--preset--spacing--50);
	padding-inline: var(--wp--preset--spacing--30);
}

/* Inside a band the band padding has already supplied the gap. */
.sw-band > .sw-kicker:first-child {
	margin-top: 0;
}

/* ---------------------------------------------------------------------------
   PROSE MEASURE for a narrative section.

   Left-aligned body copy in a centred layout needs its own centring: the text
   stays ragged-right and readable, but the column sits centred under the heading
   rather than hugging the left edge of a 1360px canvas.
   --------------------------------------------------------------------------- */
.sw-prose p {
	max-width: 64ch;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.sw-prose ul,
.sw-prose ol {
	max-width: 64ch;
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------------------------
   TWO-COLUMN LIST - for a list that is a set of labelled points rather than a
   run of sentences. Keeps a seven-item list from becoming a seven-line wall.
   --------------------------------------------------------------------------- */
.sw-list-split ul {
	max-width: 52rem;
	margin-inline: auto;
	columns: 2;
	column-gap: 3rem;
	padding-left: 1.1rem;
}

.sw-list-split li {
	break-inside: avoid;
	padding-left: 0.25rem;
	margin-bottom: 0.4rem;
}

@media (max-width: 600px) {
	.sw-list-split ul {
		columns: 1;
	}

	.sw-quote {
		font-size: 1.375rem;
	}

	.sw-facts {
		gap: 1.25rem 2rem;
	}
}

/* The hero band caps every paragraph at 62ch with a 0-1-1 selector, which would
   out-specify .sw-sub's tighter measure. Restore it inside the band. */
.has-blush-bloom-gradient-background .sw-sub {
	max-width: 46ch;
}
