/*
 * Bands = full-width core/group blocks (design .section). Vertical padding comes from the
 * "section" spacing preset; the surface from the block styles registered in inc/blocks/band-styles.php:
 * ll-alt = design .section--alt, ll-dark = design .section--dark (style.css 157, 1276–1281).
 * Component rules for bands live in sections.css (selectors .is-style-ll-alt / .is-style-ll-dark …).
 */
.wp-block-group.is-style-ll-alt {
	background: var(--ll-beige);
}
.wp-block-group.is-style-ll-dark {
	background: var(--ll-petrol-deep);
	color: var(--ll-on-dark-soft);
}
.is-style-ll-dark :is(h1, h2, h3, h4) {
	color: var(--ll-white);
}
.is-style-ll-dark .is-style-ll-lead {
	color: var(--ll-on-dark-soft);
}

/* Designed pages (inc/setup/designed-pages.php): the design's spacing model. Blocksy's content
 * spacing variables off; flow/constrained children lose their margins. Specificity (0,1,0) like
 * Blocksy's flow rule and later in the cascade; every component rule (0,1,0+) in a later file wins. */
/* The design's header is fixed over the page (page top = header + gap); Blocksy's sits in the flow
   with a 1px bottom border, so the content only needs the gap. */
body.ll-designed {
	--ll-page-top: calc(var(--ll-page-top-gap) - 1px);
}
.ll-designed .entry-content {
	--theme-content-spacing: 0;
	--has-theme-content-spacing: 0;
}
/* Shop (woocommerce/archive-product.php) renders its page in the single-page wrapper; Blocksy sets the
   wide, unboxed article only for single prefixes, so the archive prefix gets the same switch. */
[data-prefix="woo_categories"].ll-designed [class*="ct-container"] > article[class*="post"] {
	--has-boxed: var(--false);
	--has-wide: var(--true);
}
/* Design: main > .page-head:first-child { padding-top: var(--page-top) } */
:root .ll-designed .entry-content > .ll-page-head:first-child {
	padding-top: var(--ll-page-top);
}
.ll-designed :where(.entry-content .is-layout-flow, .entry-content .is-layout-constrained, .entry-content.is-layout-flow, .entry-content.is-layout-constrained) > * {
	margin-block: 0;
}
/* Element defaults the design leaves at browser values (Blocksy sets dt to 600). */
:where(.ll-designed .entry-content) dt {
	font-weight: inherit;
}
:where(.ll-designed .entry-content) label {
	margin: 0;
}
:where(.ll-designed .entry-content) :is(table, thead, tr, th, td),
:where(.ll-designed .entry-content) .wp-block-table :is(table, thead, th, td) { /* core/Blocksy table borders; components set their own */
	border: 0;
}
:where(.ll-designed .entry-content) .wp-block-table :is(th, td) {
	overflow-wrap: normal;
}
/* Headings: the design styles only h2.section-title (= the theme's heading style); other headings keep
   the body line height, normal tracking and wrapping unless a component sets them. */
:where(.ll-designed .entry-content) :is(h1, h2, h3, h4, h5, h6):not(.ll-section-title) {
	line-height: inherit; /* the design's headings inherit the body line height */
	letter-spacing: normal;
	text-wrap: wrap;
}
:where(.ll-designed .entry-content) code { /* Blocksy pads and tints code; the design keeps browser defaults */
	padding: 0;
	border-radius: 0;
	background: none;
}
:where(.ll-designed .entry-content) :is(ul, ol) { /* design reset: lists unstyled unless a component styles them */
	padding: 0;
	list-style: none;
}
