/**
 * Greenshift Child: template chrome.
 *
 * Only what the templates themselves need. Brand tokens, components and block
 * styles are Wedux's (wedux/assets/*.css, public/dist/style.css).
 */

/* The parent's root blockGap (1.6rem) sits between the template's top-level
   parts. The templates zero it on <main> inline; the footer part can't take a
   margin of its own, so it is zeroed here. */
.wp-site-blocks > .site-footer {
	margin-block-start: 0;
}

/* SteadPath blocks stack edge to edge, as in the design: no flow-layout gap
   between them inside the post content. Full-width blocks escape the root
   padding through useRootPaddingAwareAlignments (parent theme.json). */
.wp-block-post-content > .wdx-scope {
	margin-block: 0;
}

/* The parent gives .site-header position:relative and z-index:100000, a
   stacking context that would lift the whole header above the skip link and
   the admin bar. The SteadPath header (acf/header) positions itself (fixed,
   z-index 50, dialog 70); with the announcement bar on, announcement.css gives
   the part position:relative again, as its own containing block. */
.site-header {
	position: static;
	z-index: auto;
}

/* The parent styles bare form elements site-wide: every button gets
   `transition: all .3s` (so focus rings animate in from a thick default
   outline), and inputs/selects/textareas get borders, padding, width:100%,
   a background and the parent's font. Inside SteadPath blocks those come
   back off. Element-level specificity, after the parent stylesheet, so it
   beats the parent and loses to any block class. */
:where(.wdx-scope) button,
:where(.wdx-scope) :is(input, select, textarea):focus {
	transition: none;
}

:where(.wdx-scope) :is(input, select, textarea) {
	width: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	transition: none;
}

/* ---- Text page template (templates/text-page.html) --------------------------
   Privacy, Accessibility and other plain-text pages. Built from the story
   page (acf/story-hero + .wdx-st-body): the title centered on a mist band
   under the floating header, then one column of text on white closed by an
   apricot square. Headings, lists and links are added for long documents.
   The content is ordinary blocks; a first paragraph with the classes
   "wdx-eyebrow wdx-eyebrow--mist" shows as the chip (the effective date).
   Color modes: mist and white invert with their inks, like the story page. */
.wdx-tp__hero {
	padding: calc(var(--wdx-hdr) + clamp(40px, 5vw, 80px)) var(--wdx-m) clamp(56px, 6vw, 96px);
	background: var(--wdx-mist);
	color: var(--wdx-forest-ink);
	text-align: center;
}

.wdx-tp .wdx-tp__h1 {
	max-width: 1120px;
	margin: 0 auto;
	font: 400 var(--wdx-title-size)/var(--wdx-title-leading) var(--wdx-font-serif);
	letter-spacing: -.025em;
	color: var(--wdx-forest-ink);
	text-wrap: balance;
}

.wdx-tp .wdx-tp__body {
	margin: 0;
	padding: clamp(56px, 6vw, 100px) var(--wdx-m) var(--wdx-pad);
	background: var(--wdx-white);
	color: var(--wdx-text);
	font: 300 clamp(17px, 1.3vw, 19px)/1.7 var(--wdx-font-sans);
	overflow-wrap: break-word;
}

.wdx-tp .wdx-tp__body > * {
	max-width: 46rem;
	margin: 0 auto !important;
}

.wdx-tp .wdx-tp__body > * + * {
	margin-top: 1em !important;
}

.wdx-tp .wdx-tp__body > .wdx-eyebrow {
	margin-left: max(0px, calc((100% - 46rem) / 2)) !important;
	margin-bottom: clamp(24px, 2.5vw, 32px) !important;
}

.wdx-tp .wdx-tp__body > .wdx-eyebrow + p {
	font-size: clamp(19px, 1.6vw, 23px);
	line-height: 1.6;
	color: var(--wdx-forest-ink);
}

.wdx-tp .wdx-tp__body > :is(h2, h3) {
	font-family: var(--wdx-font-serif);
	font-weight: 400;
	letter-spacing: -.015em;
	color: var(--wdx-forest-ink);
	text-wrap: balance;
}

.wdx-tp .wdx-tp__body > h2 {
	margin-top: clamp(48px, 5vw, 72px) !important;
	padding-top: clamp(24px, 2.5vw, 32px);
	border-top: 1px solid var(--wdx-line);
	font-size: clamp(28px, calc(20px + 1.4vw), 40px);
	line-height: 1.15;
}

.wdx-tp .wdx-tp__body > h3 {
	margin-top: clamp(32px, 3vw, 44px) !important;
	font-size: clamp(21px, calc(17px + .6vw), 26px);
	line-height: 1.25;
}

.wdx-tp .wdx-tp__body > :is(h2, h3) + * {
	margin-top: .75em !important;
}

.wdx-tp .wdx-tp__body :is(strong, b) {
	font-weight: 600;
	color: var(--wdx-forest-ink);
}

/* Links keep an underline (never color alone). */
.wdx-tp .wdx-tp__body a {
	color: var(--wdx-forest-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.wdx-tp .wdx-tp__body a:hover {
	text-decoration-thickness: 2px;
}

/* Lists: apricot squares, as the eyebrow's. */
.wdx-tp .wdx-tp__body > ul {
	padding-left: 0;
	list-style: none;
}

.wdx-tp .wdx-tp__body > ul > li {
	position: relative;
	padding-left: 1.6em;
}

.wdx-tp .wdx-tp__body > ul > li + li {
	margin-top: .5em;
}

.wdx-tp .wdx-tp__body > ul > li::before {
	content: "";
	position: absolute;
	left: .2em;
	top: .68em;
	width: 8px;
	height: 8px;
	background: var(--wdx-apricot);
}

.wdx-tp .wdx-tp__body > ol {
	padding-left: 1.4em;
}

.wdx-tp .wdx-tp__body > ol > li + li {
	margin-top: .5em;
}

.wdx-tp .wdx-tp__body > ol > li::marker {
	font-weight: 500;
	color: var(--wdx-apricot-ink);
}

.wdx-tp .wdx-tp__body > :last-child::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin-top: clamp(32px, 3.5vw, 48px);
	background: var(--wdx-apricot);
}

/* Lists already draw their markers with ::before; their square goes after. */
.wdx-tp .wdx-tp__body > :is(ul, ol):last-child::after {
	margin-left: 0;
}
