/*
 * Daygas pages: the sections of the block patterns (patterns/*.php) and the marketing pages built from them.
 * Loaded after components.css (handle daygas-pages, dependency daygas-components), only on pages whose content
 * uses these sections. Colours come from the --dg-* tokens only. Mobile first: 375px base, 768px, 1280px+.
 *
 * Contents: 0 frame · 1 shared · 2 buttons · 3 hero and page head · 4 problem and facts · 5 steps · 6 types and sectors
 *           7 proof · 8 stack and facts list · 9 price note and season · 10 faq · 11 closing bands · 12 b2b
 *           13 table · 14 forms and tools · 15 sticky bar · 16 motion (none)
 */

/* 0. Page frame ----------------------------------------------------------- */

:root {
	--dg-pages-shadow-lift: 0 28px 64px -24px color-mix(in srgb, var(--dg-ink) 55%, transparent);
	--dg-pages-shadow-bar: 0 -8px 24px color-mix(in srgb, var(--dg-ink) 10%, transparent);
	--dg-pages-anchor-offset: 104px;
}

/* The sections are full width. The page title and the content padding of the theme are not used:
   every page carries its own H1 inside the first section. */
body:has(.entry-content > .dg-section) {
	overflow-x: clip;
}

body:has(.entry-content > .dg-section) .hero-section {
	display: none;
}

body:has(.entry-content > .dg-section) [data-vertical-spacing] {
	padding-block: 0;
}

body .entry-content > .dg-section,
body .entry-content > .dg-pagebar {
	box-sizing: border-box;
	width: auto;
	max-width: none;
	margin-block: 0;
	margin-inline: calc(50% - 50vw);
}

/* 1. Shared ---------------------------------------------------------------- */

/* The tools (selector, quote form, series table) are rendered by shortcodes and set their own spacing:
   the rule has the specificity of one class and skips everything inside their wrappers. */
.dg-section :where(p, ul, ol, figure):not(:where(.dg-hero__tool, .dg-toolwrap, .dg-seriesbox, .dg-formcard) *) {
	margin-block: 0 var(--dg-space-4);
}

.dg-section :where(p, ul, ol, figure):not(:where(.dg-hero__tool, .dg-toolwrap, .dg-seriesbox, .dg-formcard) *):where(:last-child) {
	margin-block-end: 0;
}

/* In-page jumps land below the sticky desktop header. */
.dg-section[id] {
	scroll-margin-top: var(--dg-space-4);
}

@media (min-width: 1000px) {
	.dg-section[id] {
		scroll-margin-top: calc(var(--dg-pages-anchor-offset) + var(--wp-admin--admin-bar--height, 0px));
	}
}

.dg-section .dg-eyebrow {
	margin: 0 0 var(--dg-space-3);
}

.dg-section .dg-title {
	margin: 0 0 var(--dg-space-4);
	font-size: var(--dg-fs-h2);
	line-height: 1.12;
}

.dg-section .dg-title--xl {
	font-size: var(--dg-fs-h1);
	line-height: 1.05;
}

.dg-section .dg-lead {
	margin: 0 0 var(--dg-space-5);
	color: inherit;
}

.dg-section .dg-card__title {
	margin: 0 0 var(--dg-space-2);
	font-size: var(--dg-fs-h3);
	line-height: 1.2;
}

.dg-sec-head {
	max-width: 46rem;
	margin: 0 0 var(--dg-space-7);
}

.dg-sec-head > :last-child {
	margin-bottom: 0;
}

.dg-sec-head .dg-title {
	margin-bottom: var(--dg-space-3);
}

.dg-sec-head--center {
	margin-inline: auto;
	text-align: center;
}

.dg-sec-head--center .dg-eyebrow {
	justify-content: center;
}

.dg-section .dg-grid {
	margin: 0;
}

.dg-section .dg-card {
	transition: opacity var(--dg-dur) var(--dg-ease), transform var(--dg-dur) var(--dg-ease), translate 180ms var(--dg-ease), box-shadow 180ms var(--dg-ease), border-color 180ms var(--dg-ease);
}

.dg-section .dg-card:hover {
	border-color: color-mix(in srgb, var(--dg-accent) 55%, var(--dg-line));
	box-shadow: var(--dg-shadow);
}

.dg-section .dg-card--soft:hover {
	box-shadow: none;
}

/* Text links inside the sections */
.dg-section :is(.dg-shoplink, .dg-stack__link, .dg-faq) a,
.dg-hero__link a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--dg-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.dg-section :is(.dg-shoplink, .dg-stack__link, .dg-faq) a {
	color: var(--dg-ink);
}

.dg-section :is(.dg-shoplink, .dg-stack__link, .dg-faq) a:hover {
	color: var(--dg-accent-hover);
}

/* Tap targets: a link that stands on its own line is 44px tall; a link inside a sentence keeps the line
   height and gets a taller hit area through padding. */
.dg-section :is(.dg-shoplink, .dg-stack__link) a,
.dg-hero__link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.dg-section .dg-faq a {
	padding-block: 12px;
}

/* 2. Buttons (core/button) -------------------------------------------------- */

.dg-section .wp-block-buttons,
.dg-pagebar .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-space-3);
	margin: var(--dg-space-6) 0 0;
}

.dg-section .wp-block-buttons > .wp-block-button,
.dg-pagebar .wp-block-buttons > .wp-block-button {
	display: block;
	width: 100%;
	margin: 0;
}

.dg-section .wp-block-button .wp-block-button__link,
.dg-pagebar .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	padding: 12px var(--dg-space-4);
	border: 2px solid var(--dg-accent);
	border-radius: var(--dg-radius);
	background: var(--dg-accent);
	color: var(--dg-ink);
	font-size: var(--dg-fs-lg);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms var(--dg-ease), border-color 160ms var(--dg-ease), transform 160ms var(--dg-ease), box-shadow 160ms var(--dg-ease);
}

.dg-section .wp-block-button .wp-block-button__link:hover,
.dg-pagebar .wp-block-button .wp-block-button__link:hover {
	border-color: var(--dg-accent-hover);
	background: var(--dg-accent-hover);
	color: var(--dg-ink);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--dg-accent) 32%, transparent);
}

.dg-section .wp-block-button .wp-block-button__link:focus-visible,
.dg-pagebar .wp-block-button .wp-block-button__link:focus-visible {
	outline: none;
	box-shadow: var(--dg-focus);
}

@media (min-width: 600px) {
	.dg-section .wp-block-buttons > .wp-block-button,
	.dg-pagebar .wp-block-buttons > .wp-block-button {
		width: auto;
	}

	.dg-section .wp-block-button .wp-block-button__link,
	.dg-pagebar .wp-block-button .wp-block-button__link {
		width: auto;
		padding-inline: var(--dg-space-6);
	}
}

/* 3. Hero and page head ---------------------------------------------------- */

.dg-hero,
.dg-pagehead,
.dg-ctaband,
.dg-alert {
	overflow: clip;
}

.dg-hero {
	padding-block: clamp(40px, 7vw, 104px) clamp(48px, 7vw, 96px);
}

.dg-hero__grid {
	display: grid;
	gap: var(--dg-space-4) clamp(32px, 6vw, 88px);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.dg-hero__grid > * {
	min-width: 0;
	margin: 0;
}

/* Phone order: label, headline, the selector or the buttons that replace it, then the text. */
.dg-hero__eyebrow { order: 1; }
.dg-hero__title { order: 2; }
.dg-hero__tool,
.dg-hero__actions { order: 3; }
.dg-hero__lead { order: 4; }
.dg-hero__link { order: 5; }

.dg-hero .dg-hero__title {
	max-width: 17em;
	margin: 0;
	font-size: clamp(2rem, 1.45rem + 2.8vw, 3.75rem);
}

.dg-hero .dg-hero__lead {
	max-width: 36em;
	margin: 0;
	font-size: var(--dg-fs-md);
}

.dg-hero__tool {
	padding: var(--dg-space-5);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
}

.dg-hero .dg-hero__link {
	margin: 0;
	font-size: var(--dg-fs-md);
}

.dg-hero__link a {
	color: var(--dg-ink);
}

.dg-hero__link a::after {
	content: "\2192";
	margin-inline-start: 8px;
	display: inline-block;
	transition: transform 160ms var(--dg-ease);
}

.dg-hero__link a:hover::after {
	transform: translateX(4px);
}

@media (min-width: 960px) {
	.dg-hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		align-items: center;
	}

	.dg-hero__eyebrow,
	.dg-hero__title,
	.dg-hero__lead,
	.dg-hero__link {
		grid-column: 1;
		order: 0;
	}

	.dg-hero__tool,
	.dg-hero__actions {
		grid-column: 2;
		grid-row: 1 / span 4;
		order: 0;
	}

	.dg-hero__tool {
		padding: var(--dg-space-6);
	}

	.dg-hero .dg-hero__lead {
		font-size: var(--dg-fs-lg);
	}
}

/* Page head: the same dark band, without the selector. */
.dg-pagehead {
	padding-block: clamp(40px, 6vw, 88px);
}

.dg-pagehead__inner {
	max-width: 52rem;
}

.dg-pagehead .dg-pagehead__title {
	margin: 0 0 var(--dg-space-4);
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
}

.dg-pagehead .dg-pagehead__lead {
	max-width: 40em;
	margin-bottom: 0;
}

.dg-pagehead__inner .wp-block-buttons {
	margin-top: var(--dg-space-6);
}

.dg-pagehead .dg-pagehead__phone {
	margin: var(--dg-space-5) 0 0;
}

.dg-pagehead__phone:empty {
	display: none;
}

/* The header phone link collapses to an icon on phones; inside the page it keeps the number. */
.dg-section .dg-phone {
	width: auto;
	height: auto;
	margin-inline: 0;
	justify-content: flex-start;
}

.dg-section .dg-phone .dg-icon {
	width: 22px;
	height: 22px;
}

.dg-section .dg-phone__text {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
}

/* 4. Problem and fact cards -------------------------------------------------- */

.dg-factgrid {
	--dg-col: 270px;
}

.dg-fact {
	position: relative;
	overflow: hidden;
	padding: var(--dg-space-6);
}

.dg-fact::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--dg-accent), transparent 80%);
}

.dg-section .dg-fact__figure {
	margin: 0 0 var(--dg-space-3);
	color: var(--dg-ink);
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.dg-fact > p:last-child {
	margin: 0;
}

/* 5. Steps -------------------------------------------------------------------- */

.dg-section .dg-steps {
	margin: 0;
	gap: var(--dg-space-6);
}

.dg-section .dg-steps > li {
	margin: 0;
	padding-top: 60px;
	line-height: 1.5;
}

.dg-section .dg-steps > li::before {
	width: 44px;
	height: 44px;
	font-size: var(--dg-fs-lg);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--dg-accent) 16%, transparent);
}

.dg-steps > li br {
	display: none;
}

.dg-section .dg-steps > li strong {
	display: block;
	margin-bottom: var(--dg-space-2);
	color: var(--dg-ink);
	font-size: var(--dg-fs-h3);
	font-weight: 700;
	line-height: 1.2;
}

.dg-steps--5 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

/* The connector is drawn only when the whole list is on one row: 3 steps from 900px, 5 steps from 1180px. */
.dg-section .dg-steps > li:not(:last-child)::after {
	content: "";
	display: none;
	position: absolute;
	top: 21px;
	inset-inline: 62px calc(-1 * var(--dg-space-6) + 8px);
	height: 2px;
	background: linear-gradient(90deg, var(--dg-accent), var(--dg-line));
}

@media (min-width: 900px) {
	.dg-steps--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.dg-section .dg-steps--3 > li:not(:last-child)::after {
		display: block;
	}
}

@media (min-width: 1180px) {
	.dg-steps--5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.dg-section .dg-steps--5 > li:not(:last-child)::after {
		display: block;
	}
}

.dg-steps + .wp-block-buttons {
	margin-top: var(--dg-space-7);
}

/* 6. Types and sectors ----------------------------------------------------- */

.dg-typegrid {
	--dg-col: 270px;
}

.dg-type {
	display: flex;
	flex-direction: column;
	gap: var(--dg-space-3);
	padding: var(--dg-space-6);
}

.dg-type > * {
	margin: 0;
}

.dg-type .dg-type__mode {
	align-self: flex-start;
}

.dg-type .dg-card__title {
	margin: 0;
}

.dg-type__text {
	flex: 1 1 auto;
	color: var(--dg-text);
}

.dg-section .dg-facts {
	display: block;
	margin: var(--dg-space-2) 0 0;
	padding: 0;
	border-top: 1px solid var(--dg-line);
	list-style: none;
}

.dg-section .dg-facts li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: 2px var(--dg-space-3);
	margin: 0;
	padding: var(--dg-space-2) 0;
	border-bottom: 1px solid var(--dg-line);
	color: var(--dg-ink);
	font-size: var(--dg-fs-md);
	font-weight: 600;
	line-height: 1.35;
	text-align: end;
}

.dg-section .dg-facts li strong {
	color: var(--dg-muted);
	font-size: var(--dg-fs-xs);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-align: start;
	text-transform: uppercase;
}

/* A text link that stretches over the whole card. */
.dg-type__link {
	margin-top: var(--dg-space-2);
}

.dg-type__link a {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: var(--dg-space-2);
	min-height: 44px;
	color: var(--dg-ink);
	font-weight: 600;
	text-decoration: none;
}

.dg-type__link a::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dg-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / 12px no-repeat;
	transition: transform 160ms var(--dg-ease);
}

.dg-type__link a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.dg-card--link:hover .dg-type__link a::before {
	transform: translateX(3px);
}

.dg-type__link a:focus-visible {
	outline: none;
}

.dg-card--link:has(.dg-type__link a:focus-visible) {
	box-shadow: var(--dg-focus);
}

.dg-sectorgrid {
	--dg-col: 320px;
}

.dg-sector {
	display: flex;
	flex-direction: column;
	gap: var(--dg-space-3);
	padding: var(--dg-space-7) var(--dg-space-6) var(--dg-space-6);
	overflow: hidden;
}

.dg-sector::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--dg-accent), color-mix(in srgb, var(--dg-accent) 0%, transparent));
}

.dg-sector > * {
	margin: 0;
}

.dg-sector .dg-card__title {
	font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
}

.dg-sector > p:not(.dg-type__link) {
	max-width: 34em;
	flex: 1 1 auto;
}

.dg-section .dg-shoplink {
	margin: var(--dg-space-6) 0 0;
}

/* 7. Proof ------------------------------------------------------------------- */

.dg-proofgrid {
	--dg-col: 280px;
}

.dg-proofcard {
	padding: var(--dg-space-6);
}

.dg-proofcard > p {
	margin-bottom: var(--dg-space-3);
}

/* The merchant block is styled for the dark footer; on a light card it must be dark. */
.dg-proofcard .dg-merchant {
	margin-top: var(--dg-space-4);
	padding-top: var(--dg-space-4);
	border-top: 1px solid var(--dg-line);
}

.dg-proofcard .dg-merchant__data {
	color: var(--dg-text);
	font-style: normal;
	font-size: var(--dg-fs-md);
}

.dg-proofcard .dg-merchant__data :is(strong, a) {
	color: var(--dg-ink);
}

.dg-proofcard .dg-merchant__data a {
	text-decoration-color: var(--dg-accent);
}

.dg-proofcard .dg-merchant__data a:hover {
	color: var(--dg-accent-hover);
}

/* 8. Stack and facts list ---------------------------------------------------- */

.dg-split {
	display: grid;
	gap: var(--dg-space-6) clamp(32px, 6vw, 96px);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.dg-split > * {
	min-width: 0;
}

@media (min-width: 900px) {
	.dg-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}
}

.dg-split__text .dg-title {
	margin-bottom: var(--dg-space-4);
}

.dg-split__text .dg-lead {
	margin-bottom: 0;
}

.dg-stack__link {
	margin-top: var(--dg-space-5);
}

.dg-split__text .wp-block-buttons {
	margin-top: var(--dg-space-6);
}

.dg-stackcard,
.dg-packcard {
	padding: var(--dg-space-3) var(--dg-space-6);
	box-shadow: var(--dg-shadow);
}

.dg-stackcard:hover,
.dg-packcard:hover {
	translate: none;
}

.dg-section .dg-stackcard__list li {
	margin: 0;
	padding-block: var(--dg-space-4);
	padding-inline-start: 36px;
	border-bottom: 1px solid var(--dg-line);
}

.dg-section .dg-stackcard__list li:last-child {
	border-bottom: 0;
}

.dg-stackcard__list li::before {
	top: calc(var(--dg-space-4) + 0.1em);
	width: 22px;
	height: 22px;
}

/* Document list: a sheet icon in front of every line. */
.dg-section .dg-doclist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-section .dg-doclist li {
	position: relative;
	margin: 0;
	padding-block: var(--dg-space-4);
	padding-inline-start: 40px;
	border-bottom: 1px solid var(--dg-line);
	color: var(--dg-ink);
	font-weight: 500;
}

.dg-section .dg-doclist li:last-child {
	border-bottom: 0;
}

.dg-doclist li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: calc(var(--dg-space-4) - 1px);
	width: 26px;
	height: 28px;
	border-radius: 5px;
	background: color-mix(in srgb, var(--dg-accent) 14%, var(--dg-white)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v4h4M10 12h5M10 16h5'/%3E%3C/svg%3E") center / 18px no-repeat;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dg-accent) 40%, transparent);
}

/* 9. Price note and season --------------------------------------------------- */

.dg-pricenote {
	display: grid;
	gap: var(--dg-space-3) var(--dg-space-5);
	grid-template-columns: minmax(0, 1fr);
	max-width: 62rem;
	margin-inline: 0;
	padding: var(--dg-space-5);
	border-radius: var(--dg-radius-lg);
	background: color-mix(in srgb, var(--dg-accent) 11%, var(--dg-white));
	box-shadow: inset 4px 0 0 var(--dg-accent);
}

.dg-pricenote > * {
	margin: 0;
}

.dg-section .dg-pricenote__title {
	margin: 0;
	color: var(--dg-ink);
	font-size: var(--dg-fs-h3);
	font-weight: 700;
	line-height: 1.2;
}

.dg-pricenote > p {
	max-width: 56em;
}

@media (min-width: 900px) {
	.dg-pricenote {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		align-items: center;
		padding: var(--dg-space-6) var(--dg-space-7);
	}
}

.dg-season__inner {
	max-width: 52rem;
}

/* With photos the month row takes the full width; the text keeps its measure. */
.dg-season__inner:has(.dg-months--img) {
	max-width: none;
}

.dg-season__inner:has(.dg-months--img) > :not(.dg-months) {
	max-width: 52rem;
}

.dg-section .dg-months {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--dg-space-3);
	margin: var(--dg-space-6) 0 0;
	padding: 0;
	list-style: none;
}

.dg-section .dg-months li {
	position: relative;
	margin: 0;
	padding: 18px var(--dg-space-4) 14px;
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius);
	background: var(--dg-white);
	color: var(--dg-ink);
	font-weight: 600;
	text-align: center;
	overflow: hidden;
}

.dg-section .dg-months li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.dg-months li::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--dg-accent);
}

@media (min-width: 640px) {
	.dg-section .dg-months {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.dg-section .dg-months li:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

/* Month cards with a photo (front page): below 900px a carousel with two cards on a phone and three on a tablet
   (home.js moves it), five columns from 900px. */
.dg-section .dg-months--img {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--dg-space-3)) / 2);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.dg-section .dg-months--img::-webkit-scrollbar {
	display: none;
}

.dg-section .dg-months--img li {
	padding: 0 0 14px;
	scroll-snap-align: start;
}

.dg-section .dg-months--img li:last-child:nth-child(odd) {
	grid-column: auto;
}

.dg-months--img li::before {
	z-index: 1;
}

.dg-section .dg-months--img img {
	display: block;
	width: 100% !important;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin: 0 0 12px;
}

@media (min-width: 640px) {
	.dg-section .dg-months--img {
		grid-template-columns: none;
		grid-auto-columns: calc((100% - 2 * var(--dg-space-3)) / 3);
	}
}

@media (min-width: 900px) {
	.dg-section .dg-months--img {
		grid-auto-flow: row;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		overflow: visible;
	}

	/* The carousel's copies of the first cards (home.js) are not part of the row. */
	.dg-section .dg-months--img > .dg-months__copy {
		display: none;
	}
}

/* Season cards with a story (front page): the month on the photo, then the object, what the cold costs that
   month and what heat gives back. The text needs width, so the carousel holds one card and a peek on a phone,
   two from 640px, three from 900px, and the five stand in a row only from 1200px (home.js follows the same
   breakpoint). */
.dg-section .dg-months--story {
	grid-auto-columns: 80%;
	align-items: stretch;
}

.dg-section .dg-months--story li {
	display: flex;
	flex-direction: column;
	padding: 0 0 var(--dg-space-4);
	font-weight: 400;
	text-align: left;
}

.dg-section .dg-months--story img {
	aspect-ratio: 1 / 1;
	margin: 0;
}

.dg-months--story .dg-months__m {
	position: absolute;
	top: 14px;
	left: 12px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--dg-white);
	color: var(--dg-ink);
	font-size: var(--dg-fs-xs);
	font-weight: 700;
	line-height: 1.4;
}

.dg-months--story .dg-months__obj {
	display: block;
	margin: var(--dg-space-3) var(--dg-space-4) var(--dg-space-2);
	color: var(--dg-ink);
	font-size: var(--dg-fs-md);
	font-weight: 700;
	line-height: 1.3;
}

.dg-months--story .dg-months__pain,
.dg-months--story .dg-months__gain {
	position: relative;
	display: block;
	margin: 0 var(--dg-space-4);
	padding-left: 18px;
	font-size: var(--dg-fs-sm);
	line-height: 1.45;
}

.dg-months--story .dg-months__pain {
	color: var(--dg-muted);
}

.dg-months--story .dg-months__gain {
	margin-top: var(--dg-space-2);
	color: var(--dg-ink);
	font-weight: 600;
}

/* Cold, then warm: an empty ring before the loss, a filled accent dot before the gain. */
.dg-months--story .dg-months__pain::before,
.dg-months--story .dg-months__gain::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	box-sizing: border-box;
}

.dg-months--story .dg-months__pain::before {
	border: 2px solid var(--dg-line);
}

.dg-months--story .dg-months__gain::before {
	background: var(--dg-accent);
}

.dg-season__cta {
	display: flex;
	flex-direction: column;
	gap: var(--dg-space-4);
	margin-top: var(--dg-space-6);
	padding: var(--dg-space-5);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius);
	background: var(--dg-white);
}

.dg-season__inner:has(.dg-months--img) > .dg-season__cta {
	max-width: none;
}

.dg-season__cta > p {
	margin: 0;
	color: var(--dg-ink);
	font-size: var(--dg-fs-md);
	line-height: 1.5;
}

.dg-season__cta .wp-block-buttons {
	gap: var(--dg-space-3);
	margin: 0;
}

@media (max-width: 639.98px) {
	.dg-season__cta .wp-block-button {
		flex: 1 1 100%;
	}

	.dg-season__cta .wp-block-button__link {
		width: 100%;
	}
}

@media (min-width: 640px) {
	.dg-section .dg-months--story {
		grid-auto-columns: calc((100% - var(--dg-space-3)) / 2);
	}

	.dg-section .dg-months--story img {
		aspect-ratio: 4 / 5;
	}
}

@media (min-width: 900px) {
	.dg-section .dg-months--story {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: calc((100% - 2 * var(--dg-space-3)) / 3);
		overflow-x: auto;
	}

	.dg-section .dg-months--story > .dg-months__copy {
		display: flex;
	}

	.dg-season__cta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--dg-space-6);
		padding: var(--dg-space-5) var(--dg-space-6);
	}

	.dg-season__cta > p {
		max-width: 40rem;
	}

	.dg-season__cta .wp-block-buttons {
		flex-wrap: nowrap;
		flex-shrink: 0;
	}
}

@media (min-width: 1200px) {
	.dg-section .dg-months--story {
		grid-auto-flow: row;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		overflow: visible;
	}

	.dg-section .dg-months--story > .dg-months__copy {
		display: none;
	}
}

/* 10. FAQ --------------------------------------------------------------------- */

.dg-faqbox .dg-faq {
	max-width: 56rem;
}

.dg-faq .wp-block-details {
	margin: 0;
	padding: 0;
}

.dg-faq details > :not(summary) {
	margin-block-start: 0;
}

/* 11. Closing bands ---------------------------------------------------------- */

.dg-ctaband {
	padding-block: clamp(56px, 9vw, 128px);
	text-align: center;
}

.dg-ctaband__inner {
	max-width: 44rem;
	margin-inline: auto;
}

.dg-ctaband .dg-title {
	font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem);
}

.dg-ctaband .dg-lead {
	margin-inline: auto;
}

.dg-ctaband .wp-block-buttons {
	justify-content: center;
}

.dg-alert__inner {
	max-width: 46rem;
	padding-inline-start: var(--dg-space-5);
	border-inline-start: 4px solid var(--dg-accent);
}

.dg-alert .dg-title {
	font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
}

.dg-alert .dg-lead {
	margin-bottom: 0;
}

/* 12. B2B ---------------------------------------------------------------------- */

.dg-rolegrid {
	--dg-col: 240px;
}

.dg-role {
	display: flex;
	flex-direction: column;
	gap: var(--dg-space-3);
	padding: var(--dg-space-6) var(--dg-space-5);
}

.dg-role > * {
	margin: 0;
}

.dg-role .dg-role__tag {
	align-self: flex-start;
}

.dg-role .dg-card__title {
	font-size: var(--dg-fs-lg);
	line-height: 1.3;
}

/* 13. Table ---------------------------------------------------------------------- */

.dg-section .dg-pagetable {
	overflow-x: auto;
	margin: 0;
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
	-webkit-overflow-scrolling: touch;
}

.dg-section .dg-pagetable table {
	width: 100%;
	min-width: 620px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: var(--dg-fs-md);
	font-variant-numeric: tabular-nums;
}

.dg-section .dg-pagetable table:not(.has-border-color) thead {
	border: 0;
}

.dg-section .dg-pagetable table:not(.has-border-color) :is(th, td) {
	padding: var(--dg-space-4) var(--dg-space-5);
	border: 0;
	border-bottom: 1px solid var(--dg-line);
	text-align: start;
	vertical-align: middle;
}

.dg-pagetable thead th {
	background: var(--dg-bg-soft);
	color: var(--dg-ink);
	font-size: var(--dg-fs-xs);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.dg-section .dg-pagetable table:not(.has-border-color) tbody tr:last-child > * {
	border-bottom: 0;
}

.dg-pagetable tbody tr:hover {
	background: var(--dg-bg-softer);
}

.dg-pagetable tbody td:first-child {
	color: var(--dg-ink);
	font-weight: 600;
}

/* The shared table keeps the sticky first column transparent in the header row; give it the header tone. */
.dg-section .dg-table thead th:first-child {
	background: var(--dg-bg-soft);
}

.dg-section .dg-table-wrap .dg-table {
	border: 0;
}

/* 14. Forms and tools ----------------------------------------------------------- */

.dg-formsec__grid {
	display: grid;
	gap: var(--dg-space-6) clamp(24px, 5vw, 72px);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.dg-formsec__grid > * {
	min-width: 0;
}

.dg-formsec__main { order: 1; }
.dg-formsec__side { order: 2; }

.dg-formsec__side {
	display: grid;
	gap: var(--dg-space-4);
}

.dg-formsec__single {
	max-width: 56rem;
	margin-inline: auto;
}

.dg-formcard {
	padding: clamp(20px, 4vw, 40px);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
	box-shadow: var(--dg-shadow);
}

.dg-point {
	counter-increment: dg-point;
	padding: var(--dg-space-5) var(--dg-space-5) var(--dg-space-5) 72px;
}

.dg-formsec__side {
	counter-reset: dg-point;
}

.dg-point::before {
	content: counter(dg-point);
	position: absolute;
	top: var(--dg-space-5);
	inset-inline-start: var(--dg-space-5);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--dg-accent);
	color: var(--dg-ink);
	font-weight: 700;
}

.dg-point .dg-card__title {
	font-size: var(--dg-fs-lg);
}

.dg-point > p {
	margin: 0;
}

@media (min-width: 960px) {
	.dg-formsec__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	}

	.dg-formsec__side { order: 0; }
	.dg-formsec__main { order: 0; }
}

.dg-toolsec {
	padding-block: clamp(var(--dg-space-6), 5vw, var(--dg-space-8));
}

.dg-toolwrap {
	min-width: 0;
}

.dg-seriesbox {
	min-width: 0;
}

/* 15. Sticky bar on phones ----------------------------------------------------------- */

.dg-pagebar {
	position: sticky;
	bottom: 0;
	z-index: 55;
	box-sizing: border-box;
	padding: var(--dg-space-3) var(--dg-gutter) calc(var(--dg-space-3) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dg-line);
	background: color-mix(in srgb, var(--dg-white) 94%, transparent);
	backdrop-filter: blur(10px);
	box-shadow: var(--dg-pages-shadow-bar);
}

.dg-pagebar .wp-block-buttons {
	margin: 0;
}

.dg-pagebar .wp-block-button .wp-block-button__link {
	min-height: 52px;
	font-size: var(--dg-fs-md);
}

@media (min-width: 1000px) {
	.dg-pagebar {
		display: none;
	}
}

/* With the script (site.js) the bar is fixed and steps aside while the first section's buttons, the closing
   band or the footer is on screen: never two equal buttons in one view, no empty strip above the footer. */
@media (max-width: 999.98px) {
	body .entry-content > .dg-pagebar.is-managed {
		position: fixed;
		inset: auto 0 0;
		margin: 0;
		transition: transform 240ms var(--dg-ease), visibility 0s linear 0s;
	}

	body .entry-content > .dg-pagebar.is-managed.is-hidden {
		visibility: hidden;
		transform: translateY(100%);
		transition: transform 240ms var(--dg-ease), visibility 0s linear 240ms;
	}
}

/* 16. Motion: none since 20.10.2026 (Daygas: no unnecessary animation). ---------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dg-section .dg-card,
	.dg-section .wp-block-button .wp-block-button__link,
	.dg-pagebar .wp-block-button .wp-block-button__link,
	body .entry-content > .dg-pagebar.is-managed {
		transition: none;
	}

	.dg-section .dg-card:hover {
		translate: none;
	}
}
