/* ==========================================================================
   Dhee Group India — design system
   Colours are derived from the Dhee Group logo: brand red, charcoal grey and growth green.
   ========================================================================== */

:root {
	/* Brand */
	--dg-red: #df1f26;          /* primary: logo red (white text contrast 4.8:1) */
	--dg-red-700: #b5161c;      /* hover / text on light */
	--dg-red-50: #fdeeee;
	--dg-charcoal: #545454;     /* secondary: logo grey */
	--dg-green: #179c4a;        /* accent: logo arrow (decorative use only) */
	--dg-green-700: #0e7337;    /* accent text on light (5.6:1) */
	--dg-green-50: #e9f6ee;

	/* Neutrals */
	--dg-ink: #14171a;          /* dark sections, footer */
	--dg-ink-2: #1f2428;
	--dg-ink-line: rgba(255, 255, 255, 0.12);
	--dg-bg: #ffffff;
	--dg-surface: #f6f5f2;      /* warm light section background */
	--dg-surface-2: #eeece7;
	--dg-border: #e2dfd9;
	--dg-border-strong: #cdc9c1;

	/* Text */
	--dg-text: #1c2024;
	--dg-text-muted: #565e66;   /* 6.4:1 on white */
	--dg-on-dark: #f4f5f6;
	--dg-on-dark-muted: #b8bfc6;

	/* Typography */
	--dg-font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--dg-font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--dg-fs-xs: 0.8125rem;
	--dg-fs-sm: 0.9375rem;
	--dg-fs-base: 1.0625rem;
	--dg-fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--dg-fs-h4: 1.125rem;
	--dg-fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	--dg-fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
	--dg-fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.625rem);
	--dg-lh-tight: 1.15;
	--dg-lh-snug: 1.3;
	--dg-lh-body: 1.65;

	/* Spacing scale */
	--dg-sp-1: 0.25rem;
	--dg-sp-2: 0.5rem;
	--dg-sp-3: 0.75rem;
	--dg-sp-4: 1rem;
	--dg-sp-5: 1.5rem;
	--dg-sp-6: 2rem;
	--dg-sp-7: 2.5rem;
	--dg-sp-8: 3rem;
	--dg-sp-9: 4rem;
	--dg-section-y: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);

	/* Layout */
	--dg-content-w: 1200px;
	--dg-prose-w: 720px;
	--dg-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--dg-section-x: max(var(--dg-gutter), calc((100% - var(--dg-content-w)) / 2));

	/* Shape & depth */
	--dg-radius-sm: 6px;
	--dg-radius: 12px;
	--dg-radius-lg: 20px;
	--dg-shadow-1: 0 1px 2px rgba(20, 23, 26, 0.06), 0 1px 3px rgba(20, 23, 26, 0.06);
	--dg-shadow-2: 0 18px 40px -20px rgba(20, 23, 26, 0.28);

	/* Motion */
	--dg-t-fast: 150ms ease;
	--dg-t-base: 240ms cubic-bezier(0.2, 0.7, 0.2, 1);

	/* Header */
	--dg-header-h: 68px;
	--dg-logo-h: 44px;
	--dg-focus: 0 0 0 3px #fff, 0 0 0 5px var(--dg-red-700);
}

@media (min-width: 1100px) {
	:root {
		--dg-header-h: 80px;
		--dg-logo-h: 50px;
	}
}

/* --------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--dg-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--dg-bg);
	color: var(--dg-text);
	font-family: var(--dg-font-body);
	font-size: var(--dg-fs-base);
	line-height: var(--dg-lh-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
	font-family: var(--dg-font-head);
	color: inherit;
	line-height: var(--dg-lh-tight);
	letter-spacing: -0.015em;
	margin: 0 0 var(--dg-sp-4);
	text-wrap: balance;
}
h1 { font-size: var(--dg-fs-h1); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--dg-fs-h2); font-weight: 700; }
h3 { font-size: var(--dg-fs-h3); font-weight: 700; line-height: var(--dg-lh-snug); }
h4 { font-size: var(--dg-fs-h4); font-weight: 700; }

p, ul, ol { margin: 0 0 var(--dg-sp-4); }
p { text-wrap: pretty; }

a {
	color: var(--dg-red-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--dg-t-fast);
}
a:hover { color: var(--dg-text); }

:focus-visible {
	outline: 2px solid var(--dg-red-700);
	outline-offset: 3px;
	border-radius: 2px;
}

strong { font-weight: 600; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: var(--dg-sp-4);
	top: -100px;
	z-index: 1000;
	padding: var(--dg-sp-3) var(--dg-sp-5);
	background: var(--dg-ink);
	color: #fff;
	font-weight: 600;
	border-radius: var(--dg-radius-sm);
	text-decoration: none;
}
.skip-link:focus { top: var(--dg-sp-3); color: #fff; }

.dg-main:focus { outline: none; }

/* --------------------------------------------------------------- buttons */

.dg-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--dg-sp-2);
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--dg-red);
	border-radius: 8px;
	background: var(--dg-red);
	color: #fff;
	font-family: var(--dg-font-head);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--dg-t-fast), border-color var(--dg-t-fast), color var(--dg-t-fast), transform var(--dg-t-fast);
}
.dg-btn:hover,
.wp-block-button__link:hover {
	background: var(--dg-red-700);
	border-color: var(--dg-red-700);
	color: #fff;
}
.dg-btn:active,
.wp-block-button__link:active { transform: translateY(1px); }
.dg-btn:focus-visible,
.wp-block-button__link:focus-visible { outline: none; box-shadow: var(--dg-focus); }

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: transparent;
	border-color: currentColor;
	color: var(--dg-text);
	padding: 0.75rem 1.5rem;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--dg-text);
	border-color: var(--dg-text);
	color: #fff;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-sp-3);
	margin: var(--dg-sp-6) 0 0;
}
.wp-block-buttons > .wp-block-button { margin: 0; }

@media (max-width: 479px) {
	.wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.wp-block-buttons .wp-block-button__link { width: 100%; }
}

.dg-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-sp-2);
	font-weight: 600;
	text-decoration: none;
}
.dg-arrow-link .dg-svg { transition: transform var(--dg-t-fast); }
.dg-arrow-link:hover .dg-svg { transform: translateX(3px); }

/* --------------------------------------------------------------- header */

.dg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--dg-border);
	transition: box-shadow var(--dg-t-base);
}
.admin-bar .dg-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .dg-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .dg-header { top: 0; } }
.dg-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(20, 23, 26, 0.25); }

.dg-header__inner {
	display: flex;
	align-items: center;
	gap: var(--dg-sp-4);
	min-height: var(--dg-header-h);
	padding-inline: var(--dg-section-x);
}

.dg-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-sp-3);
	margin-right: auto;
	color: var(--dg-text);
	text-decoration: none;
}
.dg-brand:hover { color: var(--dg-text); }
.dg-brand__mark { width: auto; height: var(--dg-logo-h); }
.dg-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.dg-brand__name {
	font-family: var(--dg-font-head);
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.dg-brand__region {
	margin-top: 3px;
	color: var(--dg-text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Mobile navigation toggle */
.dg-navtoggle {
	display: none;
	align-items: center;
	gap: var(--dg-sp-2);
	min-height: 44px;
	min-width: 44px;
	padding: 0 var(--dg-sp-3);
	border: 1px solid var(--dg-border-strong);
	border-radius: 8px;
	background: #fff;
	color: var(--dg-text);
	font: 600 0.9375rem/1 var(--dg-font-body);
	cursor: pointer;
}
.dg-navtoggle .dg-svg { width: 22px; height: 22px; }
.dg-navtoggle__open, .dg-navtoggle__close { display: inline-flex; }
.dg-navtoggle__close { display: none; }
.dg-navtoggle[aria-expanded="true"] .dg-navtoggle__open { display: none; }
.dg-navtoggle[aria-expanded="true"] .dg-navtoggle__close { display: inline-flex; }

.dg-menu,
.dg-menu .sub-menu,
.dg-global__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dg-menu a {
	color: var(--dg-text);
	font-weight: 500;
	text-decoration: none;
}
.dg-menu a:hover,
.dg-menu a[aria-current="page"],
.dg-menu .current-menu-item > a,
.dg-menu .current-menu-ancestor > a { color: var(--dg-red-700); }

.dg-subtoggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--dg-text);
	cursor: pointer;
}
.dg-subtoggle .dg-svg,
.dg-global__chevron { transition: transform var(--dg-t-fast); }
.dg-subtoggle[aria-expanded="true"] .dg-svg,
.dg-global__toggle[aria-expanded="true"] .dg-global__chevron { transform: rotate(180deg); }

/* Global country selector */
.dg-global { position: relative; }
.dg-global__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-sp-2);
	min-height: 44px;
	padding: 0 var(--dg-sp-3);
	border: 1px solid var(--dg-border-strong);
	border-radius: 8px;
	background: #fff;
	color: var(--dg-text);
	font: 600 0.9375rem/1 var(--dg-font-body);
	cursor: pointer;
}
.dg-global__toggle:hover { border-color: var(--dg-text); }
.dg-global__menu a {
	display: grid;
	grid-template-columns: 28px 1fr;
	grid-template-rows: auto auto;
	column-gap: var(--dg-sp-3);
	align-items: center;
	padding: var(--dg-sp-3);
	border-radius: 8px;
	color: var(--dg-text);
	text-decoration: none;
}
.dg-global__menu a:hover { background: var(--dg-surface); }
.dg-global__menu a[aria-current="true"] { background: var(--dg-red-50); }
.dg-flag {
	grid-row: span 2;
	width: 26px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.dg-flag--globe { display: inline-flex; box-shadow: none; color: var(--dg-charcoal); }
.dg-flag--globe .dg-svg { width: 24px; height: 24px; }
.dg-global__label { font-weight: 600; line-height: 1.2; }
.dg-global__host { color: var(--dg-text-muted); font-size: var(--dg-fs-xs); line-height: 1.3; }

/* ---- Mobile / tablet navigation (default) ---- */
@media (max-width: 1099px) {
	.js .dg-navtoggle { display: inline-flex; }

	.js .dg-nav {
		position: fixed;
		inset: var(--dg-header-h) 0 0 0;
		z-index: 99;
		display: none;
		flex-direction: column;
		gap: var(--dg-sp-5);
		padding: var(--dg-sp-5) var(--dg-gutter) var(--dg-sp-8);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		border-top: 1px solid var(--dg-border);
	}
	.admin-bar.js .dg-nav { top: calc(var(--dg-header-h) + 46px); }
	.js .dg-nav.is-open { display: flex; }

	/* Without JavaScript the navigation simply stacks below the logo. */
	.no-js .dg-header__inner { flex-wrap: wrap; }
	.no-js .dg-nav { width: 100%; padding-bottom: var(--dg-sp-4); }

	.dg-menu > li { border-bottom: 1px solid var(--dg-border); }
	.dg-menu > li { display: flex; flex-wrap: wrap; align-items: center; }
	.dg-menu > li > a {
		flex: 1;
		display: flex;
		align-items: center;
		min-height: 52px;
		font-family: var(--dg-font-head);
		font-size: 1.125rem;
		font-weight: 600;
	}
	.dg-menu .sub-menu {
		flex-basis: 100%;
		padding: 0 0 var(--dg-sp-3) var(--dg-sp-3);
		border-left: 2px solid var(--dg-red);
		margin-bottom: var(--dg-sp-3);
	}
	.js .dg-menu .sub-menu { display: none; }
	.js .dg-menu .is-open > .sub-menu { display: block; }
	.dg-menu .sub-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding-left: var(--dg-sp-3);
		color: var(--dg-text-muted);
	}

	.dg-nav__aside { display: flex; flex-direction: column; gap: var(--dg-sp-4); }
	.dg-global__toggle { width: 100%; justify-content: flex-start; }
	.dg-global__toggle .dg-global__chevron { margin-left: auto; }
	.dg-global__menu { padding-top: var(--dg-sp-2); display: grid; gap: 2px; }
	.js .dg-global__menu { display: none; }
	.js .dg-global.is-open .dg-global__menu { display: grid; }
	.dg-header__cta { width: 100%; }

	body.dg-nav-open { overflow: hidden; }
}

@media (max-width: 380px) {
	.dg-navtoggle__label { display: none; }
	.dg-brand__name { font-size: 1.0625rem; }
}

/* ---- Desktop navigation ---- */
@media (min-width: 1100px) {
	.dg-brand { margin-right: var(--dg-sp-5); }
	.dg-nav {
		display: flex;
		align-items: center;
		flex: 1;
		gap: var(--dg-sp-5);
	}
	.dg-nav__primary { margin-inline: auto; }
	.dg-menu { display: flex; align-items: center; gap: var(--dg-sp-1); }
	.dg-menu > li { position: relative; display: flex; align-items: center; }
	.dg-menu > li > a {
		display: inline-flex;
		align-items: center;
		min-height: var(--dg-header-h);
		padding: 0 var(--dg-sp-3);
		font-size: 0.96875rem;
		position: relative;
	}
	.dg-menu > li.menu-item-has-children > a { padding-right: 0; }
	.dg-menu > li > a::after {
		content: "";
		position: absolute;
		left: var(--dg-sp-3);
		right: var(--dg-sp-3);
		bottom: -1px;
		height: 3px;
		background: var(--dg-red);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--dg-t-base);
	}
	.dg-menu > li > a:hover::after,
	.dg-menu > li > a[aria-current="page"]::after,
	.dg-menu > .current-menu-item > a::after,
	.dg-menu > .current-menu-ancestor > a::after,
	.dg-menu > .current-menu-parent > a::after { transform: scaleX(1); }
	.dg-menu > li.menu-item-has-children > a::after { right: 0; }

	.dg-subtoggle { width: 32px; height: 40px; }

	.dg-menu .sub-menu,
	.dg-global__menu {
		position: absolute;
		top: calc(100% - 8px);
		left: -12px;
		z-index: 10;
		min-width: 280px;
		padding: var(--dg-sp-3);
		background: #fff;
		border: 1px solid var(--dg-border);
		border-radius: var(--dg-radius);
		box-shadow: var(--dg-shadow-2);
		visibility: hidden;
		opacity: 0;
		transform: translateY(6px);
		transition: opacity var(--dg-t-fast), transform var(--dg-t-fast), visibility 0s linear 150ms;
	}
	.dg-menu .sub-menu:has(> li:nth-child(6)) {
		display: grid;
		grid-template-columns: repeat(2, minmax(240px, 1fr));
		gap: 2px var(--dg-sp-2);
		min-width: 560px;
	}
	.dg-menu .sub-menu a {
		display: block;
		padding: var(--dg-sp-3) var(--dg-sp-3);
		border-radius: 8px;
		font-size: 0.9375rem;
		line-height: 1.35;
	}
	.dg-menu .sub-menu a:hover,
	.dg-menu .sub-menu a[aria-current="page"] { background: var(--dg-surface); }

	.dg-menu .is-open > .sub-menu,
	.dg-global.is-open .dg-global__menu,
	.no-js .dg-menu li:hover > .sub-menu,
	.no-js .dg-menu li:focus-within > .sub-menu,
	.no-js .dg-global:hover .dg-global__menu,
	.no-js .dg-global:focus-within .dg-global__menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity var(--dg-t-fast), transform var(--dg-t-fast);
	}

	.dg-nav__aside { display: flex; align-items: center; gap: var(--dg-sp-3); }
	.dg-global__menu { left: auto; right: 0; top: calc(100% + 10px); min-width: 250px; }
	.dg-header__cta { min-height: 44px; padding: 0.625rem 1.125rem; font-size: 0.9375rem; }
}

@media (min-width: 1100px) and (max-width: 1239px) {
	.dg-menu > li > a { padding: 0 var(--dg-sp-2); font-size: 0.9375rem; }
	.dg-global__toggle > span:not(.screen-reader-text) { display: none; }
}

/* --------------------------------------------------------------- breadcrumbs & page heads */

.dg-crumbbar {
	padding: var(--dg-sp-3) var(--dg-section-x);
	background: var(--dg-surface);
	border-bottom: 1px solid var(--dg-border);
}
.dg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-sp-1) var(--dg-sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--dg-fs-xs);
	color: var(--dg-text-muted);
}
.dg-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--dg-sp-2); }
.dg-breadcrumbs li + li::before { content: "›"; color: var(--dg-border-strong); }
.dg-breadcrumbs a { color: var(--dg-text-muted); text-decoration: none; }
.dg-breadcrumbs a:hover { color: var(--dg-red-700); text-decoration: underline; }
.dg-breadcrumbs [aria-current] { color: var(--dg-text); font-weight: 500; }

.dg-pagehead,
.dg-listhead {
	padding: var(--dg-sp-8) var(--dg-section-x) var(--dg-sp-6);
}
.dg-listhead { background: var(--dg-surface); padding-bottom: var(--dg-sp-8); }
.dg-listhead__inner { max-width: 820px; }
.dg-listhead--center .dg-listhead__inner { margin-inline: auto; text-align: center; }
.dg-listhead .dg-lead p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- eyebrow, lead, notes */

.dg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-sp-3);
	margin-bottom: var(--dg-sp-4);
	color: var(--dg-red-700);
	font-family: var(--dg-font-head);
	font-size: var(--dg-fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.dg-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}
.dg-eyebrow a { color: inherit; text-decoration: none; }

.dg-lead,
p.dg-lead {
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-lg);
	line-height: 1.6;
}

.dg-note,
p.dg-note {
	position: relative;
	margin-top: var(--dg-sp-5);
	padding: var(--dg-sp-4) var(--dg-sp-5) var(--dg-sp-4) calc(var(--dg-sp-5) + 4px);
	background: var(--dg-surface);
	border-radius: 0 var(--dg-radius-sm) var(--dg-radius-sm) 0;
	color: var(--dg-text);
	font-size: var(--dg-fs-sm);
	box-shadow: inset 4px 0 0 var(--dg-charcoal);
}
.dg-section--alt .dg-note { background: #fff; }
.dg-note--strong { box-shadow: inset 4px 0 0 var(--dg-red); background: var(--dg-red-50); }

.dg-note-list { list-style: none; padding: 0; display: grid; gap: var(--dg-sp-3); max-width: 860px; }
.dg-note-list li {
	padding: var(--dg-sp-4) var(--dg-sp-5);
	background: var(--dg-surface);
	border-radius: var(--dg-radius-sm);
	box-shadow: inset 4px 0 0 var(--dg-charcoal);
}

/* --------------------------------------------------------------- sections */

.dg-content > * { margin-block: 0; }

/* Plain blocks placed directly in page content keep a readable width. */
.dg-content > :not(.dg-section):not(.dg-hero):not(.dg-split):not(.dg-contact):not(.wp-block-group) {
	max-width: var(--dg-prose-w);
	margin-inline: auto;
	padding-inline: var(--dg-gutter);
	box-sizing: content-box;
}

.dg-section {
	padding: var(--dg-section-y) var(--dg-section-x);
}
.dg-section > :last-child { margin-bottom: 0; }
.dg-section + .dg-section:not(.dg-section--alt):not(.dg-section--dark):not(.dg-section--cta):not(.dg-section--global):not(.dg-section--notice) { padding-top: 0; }
.dg-section--alt + .dg-section,
.dg-section--dark + .dg-section,
.dg-section--global + .dg-section,
.dg-hero + .dg-section,
.dg-crumbbar + .dg-section { padding-top: var(--dg-section-y) !important; }

.dg-section h2 { max-width: 22ch; }
.dg-section--prose h2,
.dg-two-col h2,
.dg-section--cta h2 { max-width: none; }

.dg-section__intro {
	max-width: 760px;
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-lg);
}
.dg-section__footnote {
	margin-top: var(--dg-sp-6);
	color: var(--dg-text-muted);
}

.dg-section--alt { background: var(--dg-surface); }

.dg-section--dark {
	background: var(--dg-ink);
	color: var(--dg-on-dark);
}
.dg-section--dark p { color: var(--dg-on-dark-muted); }
.dg-section--dark a { color: #fff; }
.dg-section--dark .dg-eyebrow { color: #ff8a8e; }
.dg-section--dark strong { color: var(--dg-on-dark); }
.dg-section--dark .dg-checklist li::before { background: #4fd083; }

.dg-section--notice { padding-block: var(--dg-sp-6) 0; }
.dg-section--notice + .dg-section { padding-top: var(--dg-sp-8) !important; }
.dg-section--notice p { max-width: 960px; margin: 0; }

.dg-section--prose > * { max-width: var(--dg-prose-w); }
.dg-section--prose h2 { font-size: var(--dg-fs-h3); margin-top: var(--dg-sp-7); }
.dg-section--prose h2:first-child { margin-top: 0; }

.dg-two-col {
	display: grid;
	gap: var(--dg-sp-7) var(--dg-sp-9);
}
@media (min-width: 900px) {
	.dg-two-col { grid-template-columns: 1fr 1fr; }
}
.dg-col > :last-child { margin-bottom: 0; }
.dg-col h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

.dg-panel {
	padding: var(--dg-sp-6);
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius);
}
.dg-panel h3 { margin-top: 0; }

.dg-h2-style { font-size: var(--dg-fs-h2); }
h3.dg-h2-style:not(:first-child) { margin-top: var(--dg-sp-8); }

/* --------------------------------------------------------------- hero */

.dg-hero {
	position: relative;
	display: grid;
	gap: var(--dg-sp-7);
	align-items: center;
	padding: var(--dg-sp-8) var(--dg-section-x) var(--dg-section-y);
	background: var(--dg-surface);
	overflow: hidden;
}
.dg-hero__content { max-width: 680px; }
.dg-hero__content > :last-child { margin-bottom: 0; }
.dg-hero h1 { margin-bottom: var(--dg-sp-5); }
.dg-hero__content p { color: var(--dg-text-muted); }
.dg-hero__content p.dg-eyebrow { color: var(--dg-red-700); }
@media (max-width: 1023px) {
	/* Single-column hero: let the text block, divider and bullets span the same width as the photo. */
	.dg-hero__content { max-width: none; }
}
.dg-hero__content .dg-lead { color: var(--dg-text); }

.dg-hero__media { margin: 0; position: relative; }
.dg-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--dg-radius-lg);
	background: var(--dg-surface-2);
}

.dg-hero__points {
	display: grid;
	gap: var(--dg-sp-2);
	margin: var(--dg-sp-6) 0 0;
	padding: var(--dg-sp-5) 0 0;
	list-style: none;
	border-top: 1px solid var(--dg-border-strong);
}
.dg-hero__points li {
	position: relative;
	padding-left: 30px;
	color: var(--dg-text);
	font-size: var(--dg-fs-sm);
	font-weight: 500;
}
.dg-hero__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	background: var(--dg-green-700);
	-webkit-mask: var(--dg-icon-check) center / contain no-repeat;
	mask: var(--dg-icon-check) center / contain no-repeat;
}

@media (min-width: 640px) {
	.dg-hero__points { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--dg-sp-5); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.dg-hero__points { grid-template-columns: 1fr; gap: var(--dg-sp-2); }
}

@media (min-width: 1024px) {
	.dg-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--dg-sp-9); padding-top: var(--dg-sp-9); }
	.dg-hero--home { padding-top: clamp(4rem, 3rem + 3vw, 6rem); }
	.dg-hero__media img { aspect-ratio: 5 / 6; }
	.dg-hero--service .dg-hero__media img,
	.dg-hero:not(.dg-hero--home) .dg-hero__media img { aspect-ratio: 4 / 3.4; }
	.dg-hero__media::after {
		/* Offset frame echoing the green growth arrow in the logo. */
		content: "";
		position: absolute;
		inset: auto -14px -14px auto;
		width: 45%;
		height: 45%;
		border-right: 4px solid var(--dg-green);
		border-bottom: 4px solid var(--dg-green);
		border-radius: 0 0 var(--dg-radius-lg) 0;
		pointer-events: none;
	}
}

.dg-hero--compact { grid-template-columns: 1fr; padding-bottom: var(--dg-sp-8); }
.dg-hero--compact .dg-hero__content { max-width: 820px; }

@media (min-width: 1024px) {
	.dg-hero--home h1 { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem); }
}

/* --------------------------------------------------------------- cards */

.dg-cards {
	display: grid;
	gap: var(--dg-sp-4);
	margin-top: var(--dg-sp-7);
}
@media (min-width: 680px) {
	.dg-cards--2, .dg-cards--3, .dg-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.dg-cards { gap: var(--dg-sp-5); }
	.dg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dg-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--dg-sp-6);
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius);
	transition: border-color var(--dg-t-base), box-shadow var(--dg-t-base), transform var(--dg-t-base);
}
.dg-section--alt .dg-card { border-color: transparent; box-shadow: var(--dg-shadow-1); }
.dg-card > * { margin-top: 0; }
.dg-card > :last-child { margin-bottom: 0; }
.dg-card h3 { margin-bottom: var(--dg-sp-3); }
.dg-card p { color: var(--dg-text-muted); font-size: var(--dg-fs-sm); line-height: 1.6; }
.dg-card a { position: relative; z-index: 2; }

/* Icon tile: light red square (::before) with the icon drawn in brand red (::after). */
.dg-card[class*="dg-icon--"]::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: var(--dg-sp-5);
	border-radius: 12px;
	background: var(--dg-red-50);
	box-shadow: inset 0 0 0 1px rgba(223, 31, 38, 0.12);
}
.dg-card[class*="dg-icon--"]::after {
	content: "";
	position: absolute;
	top: calc(var(--dg-sp-6) + 12px);
	left: calc(var(--dg-sp-6) + 12px);
	width: 28px;
	height: 28px;
	background: var(--dg-red);
	-webkit-mask: var(--dg-card-icon) center / contain no-repeat;
	mask: var(--dg-card-icon) center / contain no-repeat;
}

.dg-card__meta { margin-top: auto; padding-top: var(--dg-sp-3); }
p.dg-card__meta { color: var(--dg-text); font-size: var(--dg-fs-xs); }
.dg-card__link { margin-top: auto; padding-top: var(--dg-sp-4); }
.dg-card__meta + .dg-card__link { margin-top: 0; }
p.dg-card__link a {
	color: var(--dg-red-700);
	font-weight: 600;
	font-size: var(--dg-fs-sm);
	text-decoration: none;
}
/* Inline arrow so it stays attached to the last word when the link wraps. */
p.dg-card__link a::after {
	content: "";
	display: inline-block;
	vertical-align: -0.25em;
	margin-left: 6px;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--dg-icon-arrow) center / contain no-repeat;
	mask: var(--dg-icon-arrow) center / contain no-repeat;
	transition: transform var(--dg-t-fast);
}
p.dg-card__link a:hover::after { transform: translateX(3px); }

/* Whole card clickable when it has a "read more" link. */
.dg-card:has(.dg-card__link) { cursor: pointer; }
.dg-card:has(.dg-card__link):hover {
	border-color: var(--dg-border-strong);
	box-shadow: var(--dg-shadow-2);
	transform: translateY(-2px);
}
.dg-card .dg-card__link a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.dg-card .dg-card__link { position: static; }
.dg-card:has(.dg-card__link) .dg-card__link a { position: static; }
.dg-card:has(.dg-card__link) > p:not(.dg-card__link) a { position: relative; z-index: 3; }

.dg-cards--plain .dg-card { padding: var(--dg-sp-5) var(--dg-sp-6); border-top: 3px solid var(--dg-red); }
.dg-section--alt .dg-cards--plain .dg-card { border-top-color: var(--dg-red); }
.dg-cards--plain .dg-card h3 { font-size: 1.125rem; }

/* --------------------------------------------------------------- lists */

.dg-checklist { list-style: none; padding: 0; display: grid; gap: var(--dg-sp-4); }
.dg-checklist li { position: relative; padding-left: 36px; }
.dg-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 24px;
	height: 24px;
	background: var(--dg-green-700);
	-webkit-mask: var(--dg-icon-check) center / contain no-repeat;
	mask: var(--dg-icon-check) center / contain no-repeat;
}

.dg-compact-list { padding-left: 1.2em; color: var(--dg-text-muted); font-size: var(--dg-fs-sm); }
.dg-compact-list li + li { margin-top: var(--dg-sp-1); }

/* Tiles: list items rendered as cards (audiences, business stages, warning signs). */
.dg-tiles {
	list-style: none;
	padding: 0;
	margin-top: var(--dg-sp-7);
	display: grid;
	gap: var(--dg-sp-4);
	counter-reset: tile;
}
@media (min-width: 680px) { .dg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dg-tiles li {
	padding: var(--dg-sp-6) var(--dg-sp-5);
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius);
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-sm);
	counter-increment: tile;
}
.dg-section--alt .dg-tiles li { border-color: transparent; box-shadow: var(--dg-shadow-1); }
.dg-tiles li strong {
	display: block;
	margin-bottom: var(--dg-sp-2);
	color: var(--dg-text);
	font-family: var(--dg-font-head);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}
.dg-tiles li::before {
	content: counter(tile, decimal-leading-zero);
	display: block;
	margin-bottom: var(--dg-sp-4);
	color: var(--dg-red);
	font-family: var(--dg-font-head);
	font-size: var(--dg-fs-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
}
.dg-tiles--signs li { color: var(--dg-text); font-size: var(--dg-fs-base); }
@media (min-width: 1100px) { .dg-tiles--signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dg-section--alt .dg-tiles--signs li:nth-child(4) { grid-column: 1 / 2; } }

/* Link lists (related services, "which service do you need"). */
.dg-linklist { list-style: none; padding: 0; display: grid; gap: var(--dg-sp-3); }
.dg-linklist li {
	position: relative;
	padding: var(--dg-sp-4) var(--dg-sp-5) var(--dg-sp-4) calc(var(--dg-sp-5) + 26px);
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius-sm);
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-sm);
}
.dg-linklist li::before {
	content: "";
	position: absolute;
	left: var(--dg-sp-4);
	top: calc(var(--dg-sp-4) + 3px);
	width: 18px;
	height: 18px;
	background: var(--dg-red);
	-webkit-mask: var(--dg-icon-arrow) center / contain no-repeat;
	mask: var(--dg-icon-arrow) center / contain no-repeat;
}
.dg-linklist a { font-weight: 600; font-size: var(--dg-fs-base); }
@media (min-width: 800px) { .dg-linklist--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg-linklist--inline { display: flex; flex-wrap: wrap; justify-content: center; margin-top: var(--dg-sp-6); }
.dg-linklist--inline li { padding-block: var(--dg-sp-2); }

/* --------------------------------------------------------------- engagement steps (timeline) */

.dg-steps {
	list-style: none;
	padding: 0;
	margin-top: var(--dg-sp-7);
	display: grid;
	gap: 0;
	counter-reset: step;
}
.dg-steps li {
	position: relative;
	counter-increment: step;
	padding: 0 0 var(--dg-sp-6) 64px;
	color: var(--dg-text-muted);
}
.dg-steps li:last-child { padding-bottom: 0; }
.dg-steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -4px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--dg-red);
	color: var(--dg-red-700);
	font-family: var(--dg-font-head);
	font-size: 0.875rem;
	font-weight: 800;
}
.dg-steps li::after {
	content: "";
	position: absolute;
	left: 21px;
	top: 44px;
	bottom: 4px;
	width: 2px;
	background: var(--dg-border-strong);
}
.dg-steps li:last-child::after { display: none; }
.dg-steps li strong {
	display: block;
	margin-bottom: var(--dg-sp-1);
	color: var(--dg-text);
	font-family: var(--dg-font-head);
	font-size: 1.125rem;
	font-weight: 700;
}
.dg-section--dark .dg-steps li::before { background: var(--dg-ink); }

@media (min-width: 1024px) {
	.dg-steps:not(.dg-steps--compact) {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		grid-auto-flow: column;
		gap: var(--dg-sp-5);
	}
	.dg-steps:not(.dg-steps--compact) li { padding: 64px 0 0; }
	.dg-steps:not(.dg-steps--compact) li::before { top: 0; }
	.dg-steps:not(.dg-steps--compact) li::after {
		left: 52px;
		right: calc(-1 * var(--dg-sp-5) + 8px);
		top: 21px;
		bottom: auto;
		width: auto;
		height: 2px;
	}
}

/* --------------------------------------------------------------- needs → services mapping */

.dg-needs {
	display: grid;
	gap: 1px;
	margin-top: var(--dg-sp-7);
	background: var(--dg-ink-line);
	border: 1px solid var(--dg-ink-line);
	border-radius: var(--dg-radius);
	overflow: hidden;
}
@media (min-width: 900px) { .dg-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg-need {
	display: flex;
	flex-direction: column;
	gap: var(--dg-sp-4);
	padding: var(--dg-sp-6);
	background: var(--dg-ink);
	transition: background-color var(--dg-t-base);
}
.dg-need:hover { background: var(--dg-ink-2); }
.dg-need p { margin: 0; }
p.dg-need__problem { color: var(--dg-on-dark); font-size: var(--dg-fs-base); line-height: 1.55; }
p.dg-need__service {
	position: relative;
	margin-top: auto;
	padding-left: 28px;
	color: var(--dg-on-dark-muted);
	font-size: var(--dg-fs-sm);
}
p.dg-need__service::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 18px;
	height: 18px;
	background: #ff8a8e;
	-webkit-mask: var(--dg-icon-arrow) center / contain no-repeat;
	mask: var(--dg-icon-arrow) center / contain no-repeat;
}
.dg-need__service a { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------- split (text + image) */

.dg-split {
	display: grid;
	gap: var(--dg-sp-7);
	align-items: center;
}
@media (min-width: 960px) {
	.dg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--dg-sp-9); }
}
.dg-split__text > :last-child { margin-bottom: 0; }
.dg-split__media { margin: 0; }
.dg-split__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--dg-radius-lg);
	background: var(--dg-surface-2);
}

/* --------------------------------------------------------------- global presence */

.dg-section--global {
	background:
		linear-gradient(90deg, var(--dg-surface) 0 100%);
	border-top: 1px solid var(--dg-border);
	border-bottom: 1px solid var(--dg-border);
}
.dg-countries {
	list-style: none;
	padding: 0;
	margin-top: var(--dg-sp-6);
	display: grid;
	gap: var(--dg-sp-3);
}
@media (min-width: 800px) { .dg-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dg-countries li {
	padding: var(--dg-sp-4) var(--dg-sp-5);
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius-sm);
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-sm);
}
.dg-countries a { font-weight: 600; font-size: var(--dg-fs-base); }

/* --------------------------------------------------------------- FAQ (native <details>) */

.dg-faq { margin-top: var(--dg-sp-6); max-width: 900px; border-top: 1px solid var(--dg-border); }
.dg-faq .wp-block-details {
	border-bottom: 1px solid var(--dg-border);
	padding: 0;
	margin: 0;
}
.dg-faq summary {
	position: relative;
	display: block;
	padding: var(--dg-sp-5) 56px var(--dg-sp-5) 0;
	font-family: var(--dg-font-head);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}
.dg-faq summary::-webkit-details-marker { display: none; }
.dg-faq summary::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	border: 1px solid var(--dg-border-strong);
	background:
		linear-gradient(var(--dg-red), var(--dg-red)) center / 12px 2px no-repeat,
		linear-gradient(var(--dg-red), var(--dg-red)) center / 2px 12px no-repeat;
	transition: transform var(--dg-t-fast), background-size var(--dg-t-fast);
}
.dg-faq details[open] summary::after { background-size: 12px 2px, 2px 0; transform: rotate(180deg); }
.dg-faq summary:hover { color: var(--dg-red-700); }
.dg-faq summary:focus-visible { outline-offset: 2px; }
.dg-faq details > :not(summary) { max-width: 760px; color: var(--dg-text-muted); }
.dg-faq details > p:last-child { padding-bottom: var(--dg-sp-5); margin-bottom: 0; }

/* --------------------------------------------------------------- related + CTA */

.dg-section--related { background: var(--dg-surface); }
.dg-section--related h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.dg-section--related .dg-linklist { margin-top: var(--dg-sp-5); }
@media (min-width: 900px) { .dg-section--related .dg-linklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dg-section--related .dg-linklist a { display: block; margin-bottom: var(--dg-sp-1); }

.dg-section--cta {
	position: relative;
	background: var(--dg-ink);
	color: var(--dg-on-dark);
	overflow: hidden;
}
.dg-section--cta::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: linear-gradient(var(--dg-red) 0 65%, var(--dg-green) 65% 100%);
}
.dg-section--cta > * { max-width: 760px; }
.dg-section--cta p { color: var(--dg-on-dark-muted); font-size: var(--dg-fs-lg); }
.dg-section--cta p.dg-eyebrow { font-size: var(--dg-fs-xs); }
.dg-section--cta a:not(.wp-block-button__link) { color: #fff; }
.dg-section--cta .dg-eyebrow { color: #ff8a8e; }
.dg-section--cta .wp-block-button.is-style-outline > .wp-block-button__link,
.dg-section--dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.dg-section--cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--dg-ink); }
.dg-section--cta + .dg-section--cta { display: none; }

/* --------------------------------------------------------------- contact page */

.dg-contact {
	display: grid;
	gap: var(--dg-sp-8);
	align-items: start;
}
@media (min-width: 1024px) {
	.dg-contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--dg-sp-9); }
	.dg-contact__details { position: sticky; top: calc(var(--dg-header-h) + var(--dg-sp-6)); }
}
.dg-contact h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.dg-contact h3 { margin-top: var(--dg-sp-7); }
.dg-contact__details p { color: var(--dg-text-muted); }
.dg-contact__form {
	padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius-lg);
	box-shadow: var(--dg-shadow-2);
}

.dg-contact-list { list-style: none; padding: 0; margin: var(--dg-sp-5) 0 var(--dg-sp-6); display: grid; gap: var(--dg-sp-3); }
.dg-contact-list li {
	display: flex;
	gap: var(--dg-sp-4);
	padding: var(--dg-sp-4) var(--dg-sp-5);
	background: var(--dg-surface);
	border-radius: var(--dg-radius-sm);
}
.dg-contact-list .dg-svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--dg-red); }
.dg-contact-list__label {
	display: block;
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.dg-contact-list a { color: var(--dg-text); font-weight: 600; font-size: 1.0625rem; text-decoration: none; overflow-wrap: anywhere; }
.dg-contact-list a:hover { color: var(--dg-red-700); text-decoration: underline; }
.dg-contact-list__hint { color: var(--dg-text-muted); font-size: var(--dg-fs-sm); }

.dg-form-fallback { padding: var(--dg-sp-5); background: var(--dg-surface); border-radius: var(--dg-radius-sm); }

/* --------------------------------------------------------------- insights listing & cards */

.dg-filters ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-sp-2);
	margin: 0 0 var(--dg-sp-7);
	padding: 0;
	list-style: none;
}
.dg-filters a {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-sp-1);
	min-height: 44px;
	padding: 0 var(--dg-sp-5);
	border: 1px solid var(--dg-border-strong);
	border-radius: 999px;
	color: var(--dg-text);
	font-weight: 500;
	font-size: var(--dg-fs-sm);
	text-decoration: none;
}
.dg-filters a:hover { border-color: var(--dg-text); }
.dg-filters a[aria-current="page"] { background: var(--dg-ink); border-color: var(--dg-ink); color: #fff; }
.dg-filters__count { color: inherit; opacity: 0.7; }

.dg-post-grid {
	display: grid;
	gap: var(--dg-sp-5);
	margin-top: var(--dg-sp-6);
}
.dg-section--list .dg-post-grid { margin-top: 0; }
@media (min-width: 700px) { .dg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dg-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dg-postcard {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dg-border);
	border-radius: var(--dg-radius);
	overflow: hidden;
	transition: box-shadow var(--dg-t-base), transform var(--dg-t-base), border-color var(--dg-t-base);
}
.dg-postcard:hover { box-shadow: var(--dg-shadow-2); transform: translateY(-2px); border-color: var(--dg-border-strong); }
.dg-postcard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--dg-surface-2); }
.dg-postcard__body { display: flex; flex-direction: column; flex: 1; padding: var(--dg-sp-5) var(--dg-sp-6) var(--dg-sp-6); }
.dg-postcard__cat {
	margin-bottom: var(--dg-sp-2);
	color: var(--dg-red-700);
	font-size: var(--dg-fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.dg-postcard__title { font-size: 1.25rem; line-height: 1.35; margin-bottom: var(--dg-sp-3); max-width: none; }
.dg-postcard__title a { color: var(--dg-text); text-decoration: none; }
.dg-postcard__title a::after { content: ""; position: absolute; inset: 0; }
.dg-postcard:hover .dg-postcard__title a { color: var(--dg-red-700); }
.dg-postcard__title a:focus-visible { outline: none; }
.dg-postcard:has(a:focus-visible) { box-shadow: var(--dg-focus); }
.dg-postcard__excerpt { color: var(--dg-text-muted); font-size: var(--dg-fs-sm); }
.dg-postcard__meta { display: flex; gap: var(--dg-sp-2); margin: auto 0 0; padding-top: var(--dg-sp-3); color: var(--dg-text-muted); font-size: var(--dg-fs-xs); }

.navigation.pagination { margin-top: var(--dg-sp-8); }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--dg-sp-2); }
.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--dg-sp-3);
	border: 1px solid var(--dg-border-strong);
	border-radius: 8px;
	color: var(--dg-text);
	text-decoration: none;
}
.nav-links .current { background: var(--dg-ink); border-color: var(--dg-ink); color: #fff; }

.dg-results { list-style: none; padding: 0; display: grid; gap: var(--dg-sp-5); max-width: 820px; }
.dg-results h2 { font-size: var(--dg-fs-h3); margin-bottom: var(--dg-sp-2); }
.dg-results p { color: var(--dg-text-muted); }

.search-form { display: flex; gap: var(--dg-sp-2); margin-top: var(--dg-sp-5); max-width: 520px; }
.dg-listhead--center .search-form { margin-inline: auto; }
.search-form label { flex: 1; }
.search-field {
	width: 100%;
	min-height: 48px;
	padding: 0 var(--dg-sp-4);
	border: 1px solid var(--dg-border-strong);
	border-radius: 8px;
	font: inherit;
}
.search-submit {
	min-height: 48px;
	padding: 0 var(--dg-sp-5);
	border: 0;
	border-radius: 8px;
	background: var(--dg-ink);
	color: #fff;
	font: 600 1rem var(--dg-font-body);
	cursor: pointer;
}

/* --------------------------------------------------------------- single article */

.dg-article__head {
	max-width: calc(860px + 2 * var(--dg-gutter));
	margin-inline: auto;
	padding: var(--dg-sp-8) var(--dg-gutter) var(--dg-sp-6);
}
.dg-article__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.dg-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-sp-2);
	margin: var(--dg-sp-5) 0 0;
	padding-top: var(--dg-sp-4);
	border-top: 1px solid var(--dg-border);
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-sm);
}
.dg-article__media {
	max-width: calc(1040px + 2 * var(--dg-gutter));
	margin: 0 auto var(--dg-sp-8);
	padding-inline: var(--dg-gutter);
}
.dg-article__media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--dg-radius-lg); background: var(--dg-surface-2); }
.dg-article__disclaimer {
	margin-top: var(--dg-sp-8);
	padding-top: var(--dg-sp-4);
	border-top: 1px solid var(--dg-border);
	color: var(--dg-text-muted);
	font-size: var(--dg-fs-sm);
}

.dg-prose {
	max-width: calc(var(--dg-prose-w) + 2 * var(--dg-gutter));
	margin-inline: auto;
	padding: 0 var(--dg-gutter) var(--dg-section-y);
	font-size: 1.125rem;
}
.dg-prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-top: var(--dg-sp-8); }
.dg-prose h3 { margin-top: var(--dg-sp-7); }
.dg-prose ul, .dg-prose ol { padding-left: 1.3em; }
.dg-prose li + li { margin-top: var(--dg-sp-2); }
.dg-prose li::marker { color: var(--dg-red); font-weight: 700; }

.dg-related-posts h2 { max-width: none; }

/* --------------------------------------------------------------- footer */

.dg-footer {
	background: var(--dg-ink);
	color: var(--dg-on-dark-muted);
	font-size: var(--dg-fs-sm);
}
.dg-footer a { color: var(--dg-on-dark); text-decoration: none; }
.dg-footer a:hover { color: #fff; text-decoration: underline; }
.dg-footer :focus-visible { outline-color: #fff; }

.dg-footer__inner {
	display: grid;
	gap: var(--dg-sp-7);
	padding: var(--dg-sp-9) var(--dg-section-x) var(--dg-sp-7);
}
@media (min-width: 700px) { .dg-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dg-footer__inner { grid-template-columns: 1.5fr 0.8fr 1.3fr 0.9fr; gap: var(--dg-sp-8); } }

.dg-brand--footer { color: #fff; margin-bottom: var(--dg-sp-5); }
.dg-brand--footer:hover { color: #fff; text-decoration: none !important; }
.dg-brand--footer .dg-brand__region { color: var(--dg-on-dark-muted); }
.dg-brand__chip { display: inline-flex; padding: 6px; background: #fff; border-radius: 10px; }
.dg-brand__chip .dg-brand__mark { height: 40px; }
.dg-footer__about { max-width: 42ch; }

.dg-footer__contact { list-style: none; padding: 0; margin: var(--dg-sp-5) 0 0; display: grid; gap: var(--dg-sp-3); }
.dg-footer__contact li { display: flex; align-items: flex-start; gap: var(--dg-sp-3); }
.dg-footer__contact .dg-svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #ff8a8e; }

.dg-footer__heading {
	margin-bottom: var(--dg-sp-4);
	color: #fff;
	font-size: var(--dg-fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.dg-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--dg-sp-1); }
.dg-footer__links a { display: inline-flex; align-items: center; gap: var(--dg-sp-3); min-height: 36px; padding: 2px 0; }
.dg-footer__links--global .dg-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.dg-footer__links--global .dg-flag--globe { color: var(--dg-on-dark); box-shadow: none; }

.dg-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--dg-sp-3) var(--dg-sp-6);
	padding: var(--dg-sp-5) var(--dg-section-x);
	border-top: 1px solid var(--dg-ink-line);
	font-size: var(--dg-fs-xs);
}
.dg-footer__bar p { margin: 0; }
.dg-totop {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-sp-2);
	margin-left: auto;
	min-height: 44px;
	padding: 0 var(--dg-sp-4);
	border: 1px solid var(--dg-ink-line);
	border-radius: 999px;
}
.dg-totop .dg-svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------- utilities & motion */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.dg-header, .dg-footer, .dg-crumbbar, .dg-section--cta, .wp-block-buttons { display: none !important; }
	.dg-section--dark { background: none; color: #000; }
	.dg-section--dark p { color: #000; }
}

/* Editor: give blocks the same look inside the block editor. */
.editor-styles-wrapper { font-family: var(--dg-font-body); color: var(--dg-text); }
.editor-styles-wrapper .dg-section,
.editor-styles-wrapper .dg-hero { padding-inline: var(--dg-sp-6); }

/* --------------------------------------------------------------- balanced grids (no stranded last item) */

@media (min-width: 680px) and (max-width: 1023px) {
	/* 2-column card grids with an odd count: the last card spans the row. */
	.dg-cards--3 > .dg-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	/* 3-column grids with one card left over (e.g. 7 services): it spans the row. */
	.dg-cards--3 > .dg-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 680px) {
	/* Keep line length readable when a card spans the full row. */
	.dg-cards--3 > .dg-card:last-child > * { max-width: 760px; }
}

@media (min-width: 700px) and (max-width: 1099px) {
	/* Article grids with an odd count: the last card becomes a wide, side-by-side card. */
	.dg-post-grid > .dg-postcard:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		flex-direction: row;
	}
	.dg-post-grid > .dg-postcard:last-child:nth-child(odd) .dg-postcard__media { position: relative; flex: 0 0 48%; min-height: 260px; }
	.dg-post-grid > .dg-postcard:last-child:nth-child(odd) .dg-postcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* Related articles: however many there are, they share the row evenly. */
.dg-post-grid--fit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
.dg-post-grid--fit > .dg-postcard:last-child:nth-child(odd) { grid-column: auto !important; flex-direction: column !important; }
.dg-post-grid--fit > .dg-postcard .dg-postcard__media { position: static !important; min-height: 0 !important; }
.dg-post-grid--fit > .dg-postcard .dg-postcard__media img { position: static !important; height: auto !important; aspect-ratio: 16 / 10 !important; }

/* Breadcrumbs: keep the trail on one line on small screens; the current page title truncates with an ellipsis. */
@media (max-width: 767px) {
	.dg-breadcrumbs ol { flex-wrap: nowrap; }
	.dg-breadcrumbs li { flex: none; }
	.dg-breadcrumbs li:last-child { flex: 1 1 auto; min-width: 0; }
	.dg-breadcrumbs [aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Article meta: keep "3 min read" and the date together. */
.dg-article__meta > span:not([aria-hidden]), .dg-article__meta time { white-space: nowrap; }

.dg-contact-list address { font-style: normal; color: var(--dg-text); }
.dg-footer__contact a { overflow-wrap: anywhere; }

/* Sitemap page */
.dg-sitemap { display: grid; gap: var(--dg-sp-7); }
@media (min-width: 900px) { .dg-sitemap { grid-template-columns: 1.2fr 1fr 0.8fr; } .dg-sitemap__xml { grid-column: 1 / -1; } }
.dg-sitemap h2 { font-size: var(--dg-fs-h3); margin-bottom: var(--dg-sp-4); }
.dg-sitemap__list, .dg-sitemap__list .children { list-style: none; margin: 0; padding: 0; }
.dg-sitemap__list li { padding: var(--dg-sp-2) 0; border-bottom: 1px solid var(--dg-border); }
.dg-sitemap__list .children { margin-top: var(--dg-sp-2); padding-left: var(--dg-sp-5); border-left: 2px solid var(--dg-red); }
.dg-sitemap__list .children li:last-child { border-bottom: 0; }
.dg-sitemap__list a { font-weight: 500; text-decoration: none; }
.dg-sitemap__list a:hover { text-decoration: underline; }
.dg-sitemap__date { display: block; color: var(--dg-text-muted); font-size: var(--dg-fs-xs); }
.dg-sitemap__xml { color: var(--dg-text-muted); font-size: var(--dg-fs-sm); }

/* --------------------------------------------------------------- team */

.dg-team {
	display: grid;
	gap: var(--dg-sp-6) var(--dg-sp-5);
	margin-top: var(--dg-sp-7);
}
@media (min-width: 600px) { .dg-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .dg-team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dg-sp-6); } }
@media (min-width: 600px) and (max-width: 959px) {
	/* Odd last member centred under the pair rather than stranded on the left. */
	.dg-team > .dg-member:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--dg-sp-5) / 2); }
}
.dg-member { text-align: left; }
.dg-member > * { margin: 0; }
.dg-member__photo { margin: 0 0 var(--dg-sp-4) !important; }
.dg-member__photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--dg-radius-lg);
	background: var(--dg-surface-2);
}
.dg-member__name { font-size: 1.25rem; margin-bottom: var(--dg-sp-1) !important; }
p.dg-member__role {
	color: var(--dg-red-700);
	font-size: var(--dg-fs-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
}
@media (max-width: 599px) {
	.dg-team { max-width: 420px; }
}
