/*
Theme Name: deck-cost-guide
Text Domain: deck-cost-guide
Description: A fast, mobile-first editorial theme for US deck cost guides, material comparisons, cost estimation, and qualified contractor enquiries.
Version: 1.0.42
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
	--dcg-ink: #17312a;
	--dcg-ink-soft: #335047;
	--dcg-forest: #214c3d;
	--dcg-forest-dark: #102d25;
	--dcg-cedar: #bd642f;
	--dcg-cedar-button: #b35a29;
	--dcg-cedar-dark: #95471f;
	--dcg-cream: #f8f3e9;
	--dcg-paper: #fffdf8;
	--dcg-sand: #e7dac5;
	--dcg-sand-light: #f0e8da;
	--dcg-line: #d9cfbf;
	--dcg-white: #ffffff;
	--dcg-shadow: 0 18px 52px rgba(23, 49, 42, 0.10);
	--dcg-radius: 18px;
	--dcg-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--dcg-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--dcg-paper);
	color: var(--dcg-ink);
	font-family: var(--dcg-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .dcg-header {
	top: 32px;
}

a {
	color: var(--dcg-forest);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--dcg-cedar-dark);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

[x-cloak] {
	display: none !important;
}

.dcg-skip-link {
	position: fixed;
	top: -100px;
	left: 16px;
	z-index: 9999;
	padding: 10px 16px;
	background: var(--dcg-ink);
	color: var(--dcg-white);
	border-radius: 8px;
}

.dcg-skip-link:focus {
	top: 12px;
}

/* A consistent keyboard indicator across navigation, cards, controls and forms. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--dcg-cedar);
	outline-offset: 3px;
}

.dcg-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.dcg-container--narrow {
	width: min(780px, calc(100% - 40px));
	margin-inline: auto;
}

.dcg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	color: var(--dcg-cedar-dark);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dcg-eyebrow::before {
	width: 24px;
	height: 2px;
	background: currentColor;
	content: "";
}

.dcg-display {
	margin: 0;
	font-family: var(--dcg-display);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 0.98;
}

.dcg-section-title {
	max-width: 760px;
	margin: 0;
	font-family: var(--dcg-display);
	font-size: clamp(2.1rem, 4vw, 3.6rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.dcg-lede {
	max-width: 700px;
	margin: 18px 0 0;
	color: var(--dcg-ink-soft);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.65;
}

.dcg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dcg-button:hover {
	transform: translateY(-2px);
}

.dcg-button--primary {
	background: var(--dcg-cedar-button);
	color: var(--dcg-white);
	box-shadow: 0 10px 24px rgba(189, 100, 47, 0.24);
}

.dcg-button--primary:hover {
	background: var(--dcg-cedar-dark);
	color: var(--dcg-white);
}

.dcg-button--secondary {
	border-color: rgba(23, 49, 42, 0.18);
	background: rgba(255, 255, 255, 0.68);
	color: var(--dcg-ink);
}

.dcg-button--secondary:hover {
	border-color: var(--dcg-forest);
	color: var(--dcg-forest);
}

/* Header */
.dcg-utility {
	background: var(--dcg-forest-dark);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dcg-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 34px;
}

.dcg-utility a {
	color: var(--dcg-white);
	text-decoration: none;
}

.dcg-utility__updated {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dcg-utility__updated::before {
	width: 7px;
	height: 7px;
	background: #8fc59f;
	border-radius: 50%;
	content: "";
	box-shadow: 0 0 0 4px rgba(143, 197, 159, 0.12);
}

.dcg-header {
	position: sticky;
	top: 0;
	z-index: 80;
	border-bottom: 1px solid rgba(23, 49, 42, 0.10);
	background: rgba(255, 253, 248, 0.94);
	backdrop-filter: blur(14px);
}

.dcg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 28px;
}

.dcg-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--dcg-ink);
	text-decoration: none;
}

.dcg-brand:hover {
	color: var(--dcg-ink);
}

.dcg-brand__mark {
	position: relative;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	overflow: hidden;
	background: var(--dcg-forest);
	border-radius: 11px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.dcg-brand__mark::before,
.dcg-brand__mark::after {
	position: absolute;
	left: 7px;
	right: 7px;
	height: 6px;
	background: var(--dcg-sand);
	border-radius: 2px;
	content: "";
	transform: skewY(-7deg);
}

.dcg-brand__mark::before {
	top: 12px;
}

.dcg-brand__mark::after {
	top: 24px;
	background: var(--dcg-cedar);
}

.dcg-brand__name {
	display: block;
	font-family: var(--dcg-display);
	font-size: 1.28rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
}

.dcg-brand__tagline {
	display: block;
	margin-top: 5px;
	color: #607269;
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.dcg-nav {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-left: auto;
}

.dcg-nav a {
	position: relative;
	color: var(--dcg-ink);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.dcg-nav a:not(.dcg-button)::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 2px;
	background: var(--dcg-cedar);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 160ms ease;
}

.dcg-nav a:hover::after,
.dcg-nav a:focus-visible::after {
	transform: scaleX(1);
}

.dcg-nav .dcg-button {
	min-height: 42px;
	padding: 10px 16px;
	color: var(--dcg-white);
	font-size: 0.8rem;
}

.dcg-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-white);
	border-radius: 10px;
	color: var(--dcg-ink);
	cursor: pointer;
}

.dcg-menu-toggle svg {
	width: 22px;
	margin: auto;
}

.dcg-mobile-nav {
	display: none;
}

/* Hero */
.dcg-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(68px, 9vw, 116px) 0 76px;
	background:
		linear-gradient(90deg, rgba(33, 76, 61, 0.045) 1px, transparent 1px),
		linear-gradient(rgba(33, 76, 61, 0.045) 1px, transparent 1px),
		var(--dcg-cream);
	background-size: 34px 34px;
}

.dcg-hero::after {
	position: absolute;
	right: -100px;
	bottom: -135px;
	width: 460px;
	height: 360px;
	border: 54px solid rgba(189, 100, 47, 0.09);
	border-radius: 50%;
	content: "";
}

.dcg-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.72fr);
	align-items: center;
	gap: clamp(48px, 8vw, 110px);
}

.dcg-hero h1 {
	max-width: 800px;
	font-size: clamp(3.35rem, 7vw, 6.35rem);
}

.dcg-hero h1 em {
	color: var(--dcg-cedar);
	font-style: italic;
	font-weight: 500;
}

.dcg-hero__intro {
	max-width: 650px;
	margin: 24px 0 0;
	color: var(--dcg-ink-soft);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.dcg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 31px;
}

.dcg-hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 25px;
	margin: 30px 0 0;
	padding: 0;
	color: #53665e;
	font-size: 0.78rem;
	font-weight: 750;
	list-style: none;
}

.dcg-hero__proof li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dcg-hero__proof li::before {
	width: 17px;
	height: 17px;
	background:
		linear-gradient(135deg, transparent 48%, var(--dcg-forest) 49% 57%, transparent 58%) 3px 1px / 9px 9px no-repeat,
		var(--dcg-sand-light);
	border-radius: 50%;
	content: "";
}

.dcg-brief {
	position: relative;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: var(--dcg-forest-dark);
	border-radius: 4px 4px 34px 4px;
	color: var(--dcg-white);
	box-shadow: var(--dcg-shadow);
	transform: rotate(1deg);
}

.dcg-brief::before {
	position: absolute;
	top: 12px;
	right: 12px;
	bottom: 12px;
	left: 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 2px 2px 27px 2px;
	content: "";
	pointer-events: none;
}

.dcg-brief__top,
.dcg-brief__body,
.dcg-brief__footer {
	position: relative;
}

.dcg-brief__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dcg-brief__label {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.dcg-brief__status {
	padding: 5px 9px;
	background: rgba(143, 197, 159, 0.14);
	border-radius: 999px;
	color: #b9dfc3;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dcg-brief__body {
	padding: 28px 0 22px;
}

.dcg-brief__body h2 {
	max-width: 310px;
	margin: 0;
	font-family: var(--dcg-display);
	font-size: 2rem;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.dcg-brief__list {
	display: grid;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.dcg-brief__list li {
	display: grid;
	grid-template-columns: 29px 1fr;
	align-items: center;
	gap: 11px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.83rem;
}

.dcg-brief__number {
	display: grid;
	width: 29px;
	height: 29px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: var(--dcg-sand);
	font-family: var(--dcg-display);
	font-weight: 700;
}

.dcg-brief__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.56);
	font-size: 0.69rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.dcg-brief__lines {
	display: flex;
	gap: 4px;
}

.dcg-brief__lines span {
	width: 22px;
	height: 5px;
	background: var(--dcg-cedar);
	border-radius: 999px;
}

.dcg-brief__lines span:nth-child(2) {
	width: 14px;
	background: var(--dcg-sand);
}

.dcg-brief__lines span:nth-child(3) {
	width: 8px;
	background: #7ba68d;
}

/* Trust rail */
.dcg-trust {
	border-top: 1px solid var(--dcg-line);
	border-bottom: 1px solid var(--dcg-line);
	background: var(--dcg-paper);
}

.dcg-trust__grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	min-height: 110px;
}

.dcg-trust__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 28px;
	border-left: 1px solid var(--dcg-line);
}

.dcg-trust__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.dcg-trust__item strong {
	font-family: var(--dcg-display);
	font-size: 1.08rem;
	line-height: 1.2;
}

.dcg-trust__item span {
	margin-top: 5px;
	color: #687971;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* Guide sections */
.dcg-section {
	padding: clamp(76px, 10vw, 124px) 0;
}

.dcg-section--sand {
	background: var(--dcg-sand-light);
}

.dcg-section--forest {
	background: var(--dcg-forest-dark);
	color: var(--dcg-white);
}

.dcg-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 42px;
}

.dcg-text-link {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	color: var(--dcg-forest);
	font-size: 0.86rem;
	font-weight: 800;
	text-decoration: none;
}

.dcg-text-link span {
	transition: transform 160ms ease;
}

.dcg-text-link:hover span {
	transform: translateX(4px);
}

.dcg-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.dcg-guide-card {
	position: relative;
	display: flex;
	min-height: 280px;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	padding: 28px;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-white);
	border-radius: var(--dcg-radius);
	color: var(--dcg-ink);
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dcg-guide-card:hover {
	border-color: rgba(189, 100, 47, 0.46);
	color: var(--dcg-ink);
	box-shadow: var(--dcg-shadow);
	transform: translateY(-5px);
}

.dcg-guide-card::after {
	position: absolute;
	right: -32px;
	bottom: -44px;
	width: 130px;
	height: 130px;
	border: 23px solid var(--dcg-sand-light);
	border-radius: 50%;
	content: "";
	transition: transform 240ms ease;
}

.dcg-guide-card:hover::after {
	transform: scale(1.12);
}

.dcg-guide-card__top,
.dcg-guide-card__bottom {
	position: relative;
	z-index: 1;
}

.dcg-guide-card__meta {
	color: var(--dcg-cedar-dark);
	font-size: 0.67rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dcg-guide-card h3 {
	max-width: 280px;
	margin: 12px 0 0;
	font-family: var(--dcg-display);
	font-size: 1.8rem;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.dcg-guide-card p {
	max-width: 340px;
	margin: 15px 0 0;
	color: #5e7068;
	font-size: 0.86rem;
}

.dcg-guide-card__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 30px;
	font-size: 0.8rem;
	font-weight: 800;
}

.dcg-guide-card__arrow {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	background: var(--dcg-cream);
	border-radius: 50%;
	font-size: 1.15rem;
}

.dcg-guide-card--feature {
	grid-column: span 2;
	background: var(--dcg-forest);
	border-color: var(--dcg-forest);
	color: var(--dcg-white);
}

.dcg-guide-card--feature:hover {
	color: var(--dcg-white);
}

.dcg-guide-card--feature p {
	color: rgba(255, 255, 255, 0.72);
}

.dcg-guide-card--feature .dcg-guide-card__meta {
	color: #e4b28f;
}

.dcg-guide-card--feature .dcg-guide-card__arrow {
	background: rgba(255, 255, 255, 0.12);
}

/* Deck photography */
.dcg-hero__visual {
	position: relative;
	min-height: 625px;
	padding: 0 0 175px 22px;
}

.dcg-hero__photo {
	position: relative;
	height: 470px;
	margin: 0;
	overflow: hidden;
	border-radius: 4px 4px 34px 4px;
	box-shadow: var(--dcg-shadow);
}

.dcg-hero__photo::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(11, 36, 29, 0.55));
	content: "";
	pointer-events: none;
}

.dcg-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dcg-hero__photo figcaption,
.dcg-photo-story figcaption {
	position: absolute;
	z-index: 2;
	right: 13px;
	bottom: 10px;
	padding: 5px 8px;
	background: rgba(11, 36, 29, 0.72);
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.58rem;
	line-height: 1.2;
}

.dcg-hero__photo figcaption {
	top: 12px;
	right: 12px;
	bottom: auto;
}

.dcg-hero__photo figcaption a,
.dcg-photo-story figcaption a {
	color: var(--dcg-white);
	text-decoration: none;
}

.dcg-hero__visual .dcg-brief {
	position: absolute;
	right: 28px;
	bottom: 0;
	left: -30px;
	padding: 22px 24px;
	transform: rotate(-1deg);
}

.dcg-hero__visual .dcg-brief__body {
	padding: 18px 0 16px;
}

.dcg-hero__visual .dcg-brief__body h2 {
	font-size: 1.55rem;
}

.dcg-hero__visual .dcg-brief__list {
	gap: 8px;
	margin-top: 15px;
}

.dcg-hero__visual .dcg-brief__list li {
	font-size: 0.76rem;
}

.dcg-photo-story {
	display: grid;
	grid-template-columns: 1.2fr 0.72fr 0.92fr;
	align-items: end;
	gap: 15px;
	margin-top: 78px;
	padding-top: 28px;
	border-top: 1px solid var(--dcg-line);
}

.dcg-photo-story figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--dcg-sand-light);
}

.dcg-photo-story__main {
	height: 410px;
	border-radius: 4px 4px 28px 4px;
}

.dcg-photo-story__detail {
	height: 265px;
	border-radius: 4px 24px 4px 4px;
}

.dcg-photo-story figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.dcg-photo-story figure:hover img {
	transform: scale(1.025);
}

.dcg-photo-story__copy {
	padding: 12px 12px 22px 24px;
}

.dcg-photo-story__copy h3 {
	margin: 0;
	font-family: var(--dcg-display);
	font-size: clamp(1.7rem, 3vw, 2.45rem);
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.dcg-photo-story__copy p:last-child {
	margin: 16px 0 0;
	color: #5e7068;
	font-size: 0.88rem;
}

/* Process */
.dcg-process {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: clamp(55px, 9vw, 120px);
	align-items: start;
}

.dcg-process__intro {
	position: sticky;
	top: 145px;
}

.dcg-process__steps {
	border-top: 1px solid var(--dcg-line);
}

.dcg-step {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 22px;
	padding: 30px 0;
	border-bottom: 1px solid var(--dcg-line);
}

.dcg-step__number {
	font-family: var(--dcg-display);
	font-size: 2rem;
	font-style: italic;
	color: var(--dcg-cedar);
	line-height: 1;
}

.dcg-step h3 {
	margin: 0;
	font-family: var(--dcg-display);
	font-size: 1.45rem;
	line-height: 1.2;
}

.dcg-step p {
	margin: 9px 0 0;
	color: #596a62;
	font-size: 0.92rem;
}

/* Calculator CTA */
.dcg-estimator {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 60px;
	overflow: hidden;
	padding: clamp(38px, 6vw, 70px);
	background: var(--dcg-forest-dark);
	border-radius: 30px 5px 30px 5px;
	color: var(--dcg-white);
}

.dcg-estimator::before {
	position: absolute;
	top: -86px;
	right: -20px;
	width: 330px;
	height: 330px;
	border: 52px solid rgba(255, 255, 255, 0.035);
	border-radius: 50%;
	content: "";
}

.dcg-estimator__copy,
.dcg-estimator__mock {
	position: relative;
	z-index: 1;
}

.dcg-estimator .dcg-eyebrow {
	color: #e4b28f;
}

.dcg-estimator h2 {
	font-size: clamp(2.3rem, 4vw, 4rem);
}

.dcg-estimator p {
	max-width: 610px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.72);
}

.dcg-estimator .dcg-button {
	margin-top: 28px;
}

.dcg-estimator__mock {
	padding: 24px;
	background: var(--dcg-paper);
	border-radius: 16px;
	color: var(--dcg-ink);
	transform: rotate(-1deg);
}

.dcg-estimator__row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--dcg-line);
}

.dcg-estimator__row:last-child {
	border-bottom: 0;
}

.dcg-estimator__row span {
	color: #596a62;
	font-size: 0.75rem;
	font-weight: 750;
}

.dcg-estimator__row strong {
	font-family: var(--dcg-display);
	font-size: 1.05rem;
}

/* Latest guides */
.dcg-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.dcg-post-card {
	border-top: 4px solid var(--dcg-forest);
	padding-top: 22px;
}

.dcg-post-card__date {
	color: var(--dcg-cedar-dark);
	font-size: 0.67rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dcg-post-card h3 {
	margin: 10px 0 0;
	font-family: var(--dcg-display);
	font-size: 1.45rem;
	letter-spacing: -0.02em;
	line-height: 1.22;
}

.dcg-post-card h3 a {
	color: var(--dcg-ink);
	text-decoration: none;
}

.dcg-post-card h3 a:hover {
	color: var(--dcg-cedar-dark);
}

.dcg-post-card p {
	margin: 13px 0 0;
	color: #596a62;
	font-size: 0.86rem;
}

.dcg-post-card .dcg-text-link {
	margin-top: 16px;
}

/* Footer */
.dcg-footer {
	padding: 72px 0 24px;
	background: #0b241d;
	color: rgba(255, 255, 255, 0.7);
}

.dcg-footer__grid {
	display: grid;
	grid-template-columns: 1.55fr repeat(3, 1fr);
	gap: 45px;
	padding-bottom: 52px;
}

.dcg-footer .dcg-brand {
	color: var(--dcg-white);
}

.dcg-footer .dcg-brand__tagline {
	color: rgba(255, 255, 255, 0.5);
}

.dcg-footer__statement {
	max-width: 380px;
	margin: 22px 0 0;
	font-size: 0.84rem;
}

.dcg-footer h2 {
	margin: 0 0 16px;
	color: var(--dcg-white);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.dcg-footer ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcg-footer a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
	text-decoration: none;
}

.dcg-footer a:hover {
	color: var(--dcg-white);
}

.dcg-footer__bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.7rem;
}

.dcg-footer__bottom p {
	max-width: 780px;
	margin: 0;
}

/* Page and article templates */
.dcg-page-hero {
	position: relative;
	overflow: hidden;
	padding: 54px 0 64px;
	border-bottom: 1px solid var(--dcg-line);
	background:
		linear-gradient(90deg, rgba(33, 76, 61, 0.04) 1px, transparent 1px),
		linear-gradient(rgba(33, 76, 61, 0.04) 1px, transparent 1px),
		var(--dcg-cream);
	background-size: 34px 34px;
}

.dcg-page-hero::after {
	position: absolute;
	right: -95px;
	bottom: -170px;
	width: 430px;
	height: 300px;
	border: 46px solid rgba(189, 100, 47, 0.07);
	border-radius: 50%;
	content: "";
}

.dcg-page-hero .dcg-container {
	position: relative;
	z-index: 1;
}

.dcg-page-hero h1 {
	max-width: 940px;
	font-size: clamp(2.55rem, 4.6vw, 4.25rem);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.dcg-page-hero--article h1 {
	max-width: 1040px;
}

.dcg-page-hero__intro {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--dcg-ink-soft);
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	line-height: 1.6;
}

.dcg-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 36px;
	overflow: hidden;
	color: #718078;
	font-size: 0.69rem;
	font-weight: 750;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.dcg-breadcrumbs a {
	color: var(--dcg-forest);
	text-decoration: none;
}

.dcg-breadcrumbs span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.dcg-eyebrow--link {
	text-decoration: none;
}

.dcg-updated,
.dcg-article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 26px 0 0;
	color: #687971;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dcg-updated span:first-child {
	color: var(--dcg-cedar-dark);
}

.dcg-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 790px) minmax(240px, 290px);
	justify-content: space-between;
	gap: clamp(48px, 7vw, 90px);
	padding-top: clamp(55px, 7vw, 88px);
	padding-bottom: clamp(82px, 10vw, 130px);
}

.dcg-article-layout--quiet {
	grid-template-columns: minmax(0, 850px);
	justify-content: center;
}

.dcg-article {
	min-width: 0;
}

.dcg-article__feature {
	margin: 0 0 45px;
	overflow: hidden;
	background: var(--dcg-sand-light);
	border-radius: 4px 4px 28px 4px;
	box-shadow: 0 12px 35px rgba(23, 49, 42, 0.08);
}

.dcg-article__feature img {
	width: 100%;
	max-height: 530px;
	object-fit: cover;
}

.dcg-article-rail {
	min-width: 0;
}

.dcg-sidecard {
	position: sticky;
	top: 150px;
	overflow: hidden;
	padding: 29px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.045) 1px, transparent 1px),
		var(--dcg-forest-dark);
	background-size: 24px 24px;
	border-radius: 4px 4px 24px 4px;
	color: var(--dcg-white);
	box-shadow: var(--dcg-shadow);
}

.dcg-sidecard::after {
	position: absolute;
	right: -54px;
	bottom: -64px;
	width: 150px;
	height: 150px;
	border: 24px solid rgba(255,255,255,0.045);
	border-radius: 50%;
	content: "";
}

.dcg-sidecard > * {
	position: relative;
	z-index: 1;
}

.dcg-sidecard__label {
	display: block;
	margin-bottom: 15px;
	color: #e4b28f;
	font-size: 0.65rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dcg-sidecard h2 {
	margin: 0;
	font-family: var(--dcg-display);
	font-size: 1.65rem;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.dcg-sidecard p {
	margin: 15px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.82rem;
}

.dcg-sidecard .dcg-button {
	width: 100%;
	margin-top: 21px;
}

.dcg-sidecard small {
	display: block;
	margin-top: 13px;
	color: rgba(255, 255, 255, 0.52);
	font-size: 0.64rem;
	line-height: 1.45;
	text-align: center;
}

.dcg-prose {
	font-size: 1rem;
	line-height: 1.78;
}

.dcg-prose > p:first-child {
	color: var(--dcg-ink);
	font-size: 1.11rem;
}

.dcg-prose h2 {
	position: relative;
	padding-top: 0.25em;
}

.dcg-prose h2::before {
	display: block;
	width: 42px;
	height: 3px;
	margin-bottom: 15px;
	background: var(--dcg-cedar);
	content: "";
}

.dcg-prose h2:first-child {
	margin-top: 0;
}

.dcg-prose a {
	color: var(--dcg-forest);
	font-weight: 700;
	text-decoration-color: rgba(189, 100, 47, 0.48);
	text-decoration-thickness: 1px;
}

.dcg-prose a:hover {
	color: var(--dcg-cedar-dark);
}

.dcg-prose ul {
	margin: 1em 0 1.35em;
	padding-left: 1.45em;
	list-style: disc outside;
}

.dcg-prose ol {
	margin: 1em 0 1.35em;
	padding-left: 1.45em;
	list-style: decimal outside;
}

.dcg-prose #ez-toc-container ul,
.dcg-prose #ez-toc-container ol {
	list-style: none;
}

.dcg-prose li {
	margin: 0.48em 0;
	padding-left: 0.25em;
}

.dcg-prose li::marker {
	color: var(--dcg-cedar);
	font-weight: 800;
}

.dcg-prose blockquote {
	position: relative;
	margin: 35px 0;
	padding: 27px 30px 27px 35px;
	border: 0;
	border-left: 5px solid var(--dcg-cedar);
	background: var(--dcg-cream);
	border-radius: 0 16px 16px 0;
	color: var(--dcg-ink);
	font-family: var(--dcg-display);
	font-size: 1.22rem;
	line-height: 1.55;
}

.dcg-prose img {
	border-radius: 4px 4px 20px 4px;
}

.dcg-prose figure {
	margin: 35px 0;
}

.dcg-prose figcaption {
	margin-top: 9px;
	color: #718078;
	font-size: 0.7rem;
	text-align: center;
}

.dcg-prose hr {
	height: 1px;
	margin: 44px 0;
	border: 0;
	background: var(--dcg-line);
}

.dcg-prose table {
	display: table;
	overflow: hidden;
	border: 1px solid var(--dcg-line);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(23, 49, 42, 0.05);
}

.dcg-prose tbody tr:nth-child(even) {
	background: var(--dcg-cream);
}

.dcg-prose caption {
	margin-bottom: 10px;
	color: var(--dcg-ink);
	font-family: var(--dcg-display);
	font-size: 1.2rem;
	font-weight: 700;
	text-align: left;
}

.dcg-prose input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.dcg-prose select,
.dcg-prose textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-white);
	border-radius: 8px;
	color: var(--dcg-ink);
}

.dcg-prose input:focus,
.dcg-prose select:focus,
.dcg-prose textarea:focus {
	border-color: var(--dcg-forest);
	box-shadow: 0 0 0 3px rgba(33, 76, 61, 0.12);
	outline: none;
}

.dcg-prose input[type="submit"],
.dcg-prose button[type="submit"] {
	min-height: 48px;
	padding: 11px 20px;
	border: 0;
	background: var(--dcg-cedar);
	border-radius: 999px;
	color: var(--dcg-white);
	font-weight: 800;
	cursor: pointer;
}

#ez-toc-container {
	width: 100%;
	margin: 28px 0 38px;
	padding: 24px 27px;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-cream);
	border-radius: 12px;
	box-shadow: none;
}

#ez-toc-container .ez-toc-title {
	color: var(--dcg-ink);
	font-family: var(--dcg-display);
	font-size: 1.2rem;
	font-weight: 700;
}

#ez-toc-container a {
	color: var(--dcg-forest);
	font-size: 0.86rem;
	font-weight: 650;
	text-decoration: none;
}

.dcg-page-links {
	margin-top: 35px;
	padding-top: 20px;
	border-top: 1px solid var(--dcg-line);
}

.dcg-related {
	padding: 78px 0;
	background: var(--dcg-sand-light);
	border-top: 1px solid var(--dcg-line);
	border-bottom: 1px solid var(--dcg-line);
}

.dcg-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding-top: 48px;
	padding-bottom: 65px;
}

.dcg-post-nav > div:last-child {
	text-align: right;
}

.dcg-post-nav a {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-paper);
	border-radius: 12px;
	color: var(--dcg-ink);
	font-family: var(--dcg-display);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.dcg-post-nav a:hover {
	border-color: var(--dcg-cedar);
	color: var(--dcg-cedar-dark);
}

.dcg-post-nav a span {
	display: block;
	margin-bottom: 7px;
	color: #718078;
	font-family: var(--dcg-sans);
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.dcg-comments {
	padding-bottom: 80px;
}

/* Generic content foundations for subsequent templates */
.dcg-main {
	flex: 1;
}

.dcg-content {
	padding: 70px 0 100px;
}

.dcg-prose {
	max-width: 780px;
}

.dcg-prose h1,
.dcg-prose h2,
.dcg-prose h3,
.dcg-prose h4 {
	color: var(--dcg-ink);
	font-family: var(--dcg-display);
	letter-spacing: -0.025em;
	line-height: 1.15;
}

/* Keep legacy inline formatting from breaking the article heading system. */
.dcg-prose h2,
.dcg-prose h3 {
	color: var(--dcg-ink) !important;
	font-family: var(--dcg-display) !important;
	font-weight: 700;
}

.dcg-prose h2 > span,
.dcg-prose h2 > strong,
.dcg-prose h2 > em,
.dcg-prose h2 > a,
.dcg-prose h3 > span,
.dcg-prose h3 > strong,
.dcg-prose h3 > em,
.dcg-prose h3 > a {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.dcg-prose h1 {
	font-size: clamp(2.7rem, 6vw, 4.7rem);
}

.dcg-prose h2 {
	margin-top: 2.45em;
	margin-bottom: 0.85em;
	font-size: clamp(1.7rem, 3.2vw, 2.2rem);
	line-height: 1.18;
}

.dcg-prose h3 {
	margin-top: 2em;
	margin-bottom: 0.7em;
	font-size: 1.4rem;
	line-height: 1.25;
}

.dcg-prose p {
	margin: 1em 0;
	color: #3d534a;
}

.dcg-prose li {
	color: #3d534a;
}

.dcg-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 28px 0;
	font-size: 0.88rem;
}

.dcg-prose th,
.dcg-prose td {
	padding: 12px 14px;
	border: 1px solid var(--dcg-line);
	text-align: left;
}

.dcg-prose th {
	background: var(--dcg-forest);
	color: var(--dcg-white);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (max-width: 1040px) {
	.dcg-nav {
		gap: 17px;
	}

	.dcg-nav a {
		font-size: 0.79rem;
	}

	.dcg-brand__tagline {
		display: none;
	}

	.dcg-hero__grid {
		gap: 52px;
	}

	.dcg-trust__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dcg-trust__item:nth-child(3) {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--dcg-line);
	}

	.dcg-trust__item:nth-child(4) {
		border-top: 1px solid var(--dcg-line);
	}
}

@media (max-width: 860px) {
	body.admin-bar .dcg-header {
		top: 46px;
	}

	.dcg-nav {
		display: none;
	}

	.dcg-menu-toggle {
		display: grid;
		place-items: center;
	}

	.dcg-mobile-nav {
		padding: 8px 20px 20px;
		border-top: 1px solid var(--dcg-line);
		background: var(--dcg-paper);
	}

	.dcg-mobile-nav.is-open {
		display: grid;
		gap: 2px;
	}

	.dcg-mobile-nav a {
		padding: 12px 8px;
		border-bottom: 1px solid var(--dcg-sand-light);
		color: var(--dcg-ink);
		font-size: 0.9rem;
		font-weight: 750;
		text-decoration: none;
	}

	.dcg-mobile-nav .dcg-button {
		margin-top: 10px;
		color: var(--dcg-white);
	}

	.dcg-hero__grid,
	.dcg-process,
	.dcg-estimator {
		grid-template-columns: 1fr;
	}

	.dcg-hero__grid {
		gap: 45px;
	}

	.dcg-hero__visual {
		width: min(100%, 620px);
		min-height: auto;
		padding: 0;
	}

	.dcg-hero__photo {
		height: 450px;
		margin-left: 0;
	}

	.dcg-hero__photo figcaption {
		top: 12px;
		right: 12px;
		bottom: auto;
	}

	.dcg-hero__visual .dcg-brief {
		position: relative;
		right: auto;
		bottom: auto;
		left: auto;
		width: calc(100% - 34px);
		margin: -72px auto 0;
		transform: none;
	}

	.dcg-photo-story {
		grid-template-columns: 1.2fr 0.8fr;
	}

	.dcg-photo-story__copy {
		grid-column: 1 / -1;
		max-width: 720px;
		padding: 24px 0 0;
	}

	.dcg-card-grid,
	.dcg-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dcg-guide-card--feature {
		grid-column: span 2;
	}

	.dcg-process__intro {
		position: static;
	}

	.dcg-estimator {
		gap: 42px;
	}

	.dcg-article-layout {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.dcg-article-rail {
		max-width: 560px;
	}

	.dcg-sidecard {
		position: relative;
		top: auto;
	}

	.dcg-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.dcg-container,
	.dcg-container--narrow {
		width: min(100% - 28px, 1180px);
	}

	.dcg-utility__inner {
		justify-content: center;
	}

	.dcg-utility__link {
		display: none;
	}

	.dcg-header__inner {
		min-height: 68px;
	}

	.dcg-brand__mark {
		width: 38px;
		height: 38px;
	}

	.dcg-brand__name {
		font-size: 1.12rem;
	}

	.dcg-hero {
		padding-top: 58px;
	}

	.dcg-hero h1 {
		font-size: clamp(3rem, 15vw, 4.2rem);
	}

	.dcg-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.dcg-button {
		width: 100%;
	}

	.dcg-hero__proof {
		flex-direction: column;
		gap: 10px;
	}

	.dcg-hero__photo {
		height: 340px;
	}

	.dcg-hero__visual .dcg-brief {
		width: calc(100% - 18px);
		margin-top: -45px;
		padding: 20px;
	}

	.dcg-photo-story {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 58px;
	}

	.dcg-photo-story__main {
		height: 320px;
	}

	.dcg-photo-story__detail {
		height: 220px;
	}

	.dcg-photo-story__copy {
		grid-column: auto;
	}

	.dcg-trust__grid,
	.dcg-card-grid,
	.dcg-post-grid,
	.dcg-footer__grid {
		grid-template-columns: 1fr;
	}

	.dcg-trust__item,
	.dcg-trust__item:first-child,
	.dcg-trust__item:nth-child(3) {
		padding: 20px 0;
		border-top: 1px solid var(--dcg-line);
		border-left: 0;
	}

	.dcg-trust__item:first-child {
		border-top: 0;
	}

	.dcg-section {
		padding: 72px 0;
	}

	.dcg-page-hero {
		padding: 38px 0 50px;
	}

	.dcg-breadcrumbs {
		margin-bottom: 24px;
	}

	.dcg-page-hero h1 {
		font-size: clamp(2.2rem, 10.5vw, 3rem);
		letter-spacing: -0.015em;
		line-height: 1.12;
	}

	.dcg-article-layout {
		padding-top: 45px;
		padding-bottom: 75px;
	}

	.dcg-article__feature {
		margin-right: -14px;
		margin-left: -14px;
		border-radius: 0;
	}

	.dcg-prose {
		font-size: 0.96rem;
	}

	.dcg-prose table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.dcg-sidecard {
		padding: 24px;
	}

	.dcg-post-nav {
		grid-template-columns: 1fr;
	}

	.dcg-post-nav > div:last-child {
		text-align: left;
	}

	.dcg-section__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.dcg-guide-card--feature {
		grid-column: auto;
	}

	.dcg-guide-card {
		min-height: 250px;
	}

	.dcg-step {
		grid-template-columns: 44px 1fr;
		gap: 14px;
	}

	.dcg-estimator {
		padding: 32px 22px;
		border-radius: 20px 4px 20px 4px;
	}

	.dcg-estimator__mock {
		padding: 18px;
	}

	.dcg-footer__grid {
		gap: 35px;
	}

	.dcg-footer__bottom {
		flex-direction: column;
	}
}


/* Archive and search */
.dcg-listing-hero {
	padding: 72px 0 58px;
	border-bottom: 1px solid var(--dcg-line);
	background:
		linear-gradient(120deg, rgba(248, 243, 233, 0.96), rgba(255, 253, 248, 0.92)),
		repeating-linear-gradient(90deg, transparent 0 74px, rgba(33, 76, 61, 0.035) 74px 75px);
}

.dcg-listing-hero__inner {
	max-width: 860px;
}

.dcg-listing-hero .dcg-breadcrumbs {
	margin-bottom: 26px;
}

.dcg-listing-hero h1 {
	max-width: 820px;
	font-family: var(--dcg-display);
	font-size: clamp(2.65rem, 6vw, 5.1rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
}

.dcg-listing-hero__intro {
	max-width: 700px;
	margin: 20px 0 0;
	color: var(--dcg-ink-soft);
	font-size: 1.08rem;
	line-height: 1.7;
}

.dcg-listing-hero__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 24px 0 0;
	color: #687870;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dcg-search-panel {
	max-width: 680px;
	margin-top: 28px;
}

.dcg-search-panel .search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	padding: 7px;
	border: 1px solid var(--dcg-line);
	border-radius: 999px;
	background: var(--dcg-white);
	box-shadow: 0 12px 34px rgba(23, 49, 42, 0.08);
}

.dcg-search-panel label {
	min-width: 0;
}

.dcg-search-panel .search-field {
	width: 100%;
	height: 48px;
	padding: 0 18px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--dcg-ink);
}

.dcg-search-panel .search-field:focus {
	box-shadow: inset 0 0 0 2px var(--dcg-cedar);
	border-radius: 999px;
}

.dcg-search-panel .search-submit {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--dcg-cedar);
	color: var(--dcg-white);
	font-weight: 800;
	cursor: pointer;
}

.dcg-search-panel .search-submit:hover {
	background: var(--dcg-cedar-dark);
}

.dcg-results-section {
	padding: 64px 0 92px;
}

.dcg-results-toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.dcg-results-toolbar h2 {
	margin: 0;
	font-family: var(--dcg-display);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.dcg-results-toolbar p {
	margin: 0;
	color: #687870;
	font-size: 0.8rem;
	font-weight: 750;
}

.dcg-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.dcg-result-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid var(--dcg-line);
	border-radius: var(--dcg-radius);
	background: var(--dcg-white);
	box-shadow: 0 12px 36px rgba(23, 49, 42, 0.07);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dcg-result-card:hover {
	border-color: #c7b79d;
	box-shadow: var(--dcg-shadow);
	transform: translateY(-4px);
}

.dcg-result-card--no-image {
	border-top: 4px solid var(--dcg-forest);
}

.dcg-result-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 8.7;
	background: var(--dcg-sand-light);
}

.dcg-result-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.dcg-result-card:hover .dcg-result-card__image img {
	transform: scale(1.025);
}

.dcg-result-card__body {
	display: flex;
	height: 100%;
	padding: 26px;
	flex-direction: column;
}

.dcg-result-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 12px;
	color: #6a7a72;
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dcg-result-card__category {
	color: var(--dcg-cedar-dark);
}

.dcg-result-card h2 {
	margin: 0;
	font-family: var(--dcg-display);
	font-size: clamp(1.5rem, 2.5vw, 1.9rem);
	letter-spacing: -0.025em;
	line-height: 1.18;
}

.dcg-result-card h2 a {
	color: var(--dcg-ink);
	text-decoration: none;
}

.dcg-result-card h2 a:hover {
	color: var(--dcg-cedar-dark);
}

.dcg-result-card__excerpt {
	margin: 15px 0 0;
	color: #5b6f66;
	font-size: 0.9rem;
	line-height: 1.68;
}

.dcg-result-card .dcg-text-link {
	margin-top: auto;
	padding-top: 20px;
}

.dcg-pagination {
	margin-top: 48px;
}

.dcg-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.dcg-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: 1px solid var(--dcg-line);
	border-radius: 999px;
	background: var(--dcg-white);
	color: var(--dcg-ink);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.dcg-pagination .page-numbers:hover,
.dcg-pagination .page-numbers.current {
	border-color: var(--dcg-forest);
	background: var(--dcg-forest);
	color: var(--dcg-white);
}

.dcg-empty-state {
	max-width: 720px;
	padding: 34px;
	border: 1px solid var(--dcg-line);
	border-radius: var(--dcg-radius);
	background: var(--dcg-cream);
}

.dcg-empty-state h1,
.dcg-empty-state h2 {
	margin: 0;
	font-family: var(--dcg-display);
	font-size: 2rem;
	line-height: 1.15;
}

.dcg-empty-state--404 {
	margin-inline: auto;
	text-align: center;
}

.dcg-empty-state--404 .dcg-search-panel {
	max-width: 520px;
	margin: 24px auto 0;
}

.dcg-empty-state p {
	margin: 12px 0 0;
	color: var(--dcg-ink-soft);
}

.dcg-empty-state .dcg-button {
	margin-top: 22px;
}

@media (max-width: 760px) {
	.dcg-listing-hero {
		padding: 48px 0 44px;
	}

	.dcg-listing-hero h1 {
		font-size: clamp(2.45rem, 11vw, 3.65rem);
		line-height: 1.05;
	}

	.dcg-results-section {
		padding: 46px 0 72px;
	}

	.dcg-results-toolbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.dcg-results-grid {
		grid-template-columns: 1fr;
	}

	.dcg-result-card__body {
		padding: 22px;
	}
}

@media (max-width: 520px) {
	.dcg-search-panel .search-form {
		grid-template-columns: 1fr;
		border-radius: 18px;
	}

	.dcg-search-panel .search-submit {
		width: 100%;
	}

	.dcg-result-card__image {
		aspect-ratio: 16 / 9.5;
	}
}



/* Site-wide legacy content consistency */
.dcg-prose > :first-child {
	margin-top: 0;
}

.dcg-prose > p:empty,
.dcg-prose > p:has(> br:only-child) {
	display: none;
}

.dcg-prose h2,
.dcg-prose h3,
.dcg-prose h4 {
	scroll-margin-top: 120px;
}

.dcg-prose h4 {
	margin: 1.7em 0 0.65em;
	font-size: 1.13rem;
	line-height: 1.32;
}

.dcg-prose strong {
	color: var(--dcg-ink);
	font-weight: 750;
}

.dcg-prose p a,
.dcg-prose li a,
.dcg-prose td a {
	text-decoration-color: rgba(189, 100, 47, 0.55);
	text-decoration-thickness: 1px;
}

.dcg-prose p a:hover,
.dcg-prose li a:hover,
.dcg-prose td a:hover {
	text-decoration-color: currentColor;
}

.dcg-prose .aligncenter,
.dcg-prose p > img,
.dcg-prose p > a > img {
	margin-right: auto;
	margin-left: auto;
}

.dcg-prose .wp-caption {
	max-width: 100% !important;
	margin: 34px auto;
	padding: 0;
	border: 0;
	background: transparent;
}

.dcg-prose .wp-caption img {
	width: 100%;
	margin: 0;
}

.dcg-prose .wp-caption-text {
	margin: 9px 0 0;
	color: #718078;
	font-size: 0.72rem;
	line-height: 1.5;
	text-align: center;
}

.dcg-prose table {
	height: auto !important;
	max-height: none !important;
	border: 1px solid var(--dcg-line) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	border-radius: 12px;
	background: var(--dcg-white);
	box-shadow: 0 10px 28px rgba(23, 49, 42, 0.07);
}

.dcg-prose table tr {
	height: auto !important;
}

.dcg-prose table th,
.dcg-prose table td {
	height: auto !important;
	padding: 14px 16px;
	border-color: var(--dcg-line) !important;
	color: var(--dcg-ink);
	font-family: var(--dcg-sans);
	font-size: 0.86rem;
	line-height: 1.5;
	vertical-align: middle;
}

.dcg-prose table th,
.dcg-prose table tr[style*="#3e3024"] > td,
.dcg-prose table tr[style*="rgb(62, 48, 36)"] > td {
	background: var(--dcg-forest-dark) !important;
	color: var(--dcg-white) !important;
}

.dcg-prose table tr[style*="#654e3a"] > td,
.dcg-prose table tr[style*="rgb(101, 78, 58)"] > td {
	background: var(--dcg-forest) !important;
	color: var(--dcg-white) !important;
}

.dcg-prose table tr[style*="#3e3024"] > td *,
.dcg-prose table tr[style*="rgb(62, 48, 36)"] > td *,
.dcg-prose table tr[style*="#654e3a"] > td *,
.dcg-prose table tr[style*="rgb(101, 78, 58)"] > td * {
	color: inherit !important;
}

.dcg-prose table td[style*="#e6d7c4"],
.dcg-prose table td[style*="rgb(230, 215, 196)"],
.dcg-prose table td[style*="#e4dbd1"],
.dcg-prose table td[style*="rgb(228, 219, 209)"] {
	background: var(--dcg-cream) !important;
}

.dcg-prose table tbody tr:nth-child(even) td:not([style*="background-color"]) {
	background: rgba(248, 243, 233, 0.72);
}

.dcg-prose table img {
	margin: 0 auto;
	border-radius: 8px;
}

.dcg-prose ins.adsbygoogle,
.dcg-prose iframe[title="Advertisement"] {
	max-width: 100% !important;
}

/* Content Views: modernise legacy guide-card grids */
.dcg-prose .pt-cv-wrapper {
	margin: 28px 0 50px;
}

.dcg-prose .pt-cv-view {
	margin: 0 !important;
}

.dcg-prose .pt-cv-page {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0 !important;
}

.dcg-prose .pt-cv-page::before,
.dcg-prose .pt-cv-page::after {
	display: none !important;
}

.dcg-prose .pt-cv-content-item {
	display: block !important;
	width: auto !important;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.dcg-prose .pt-cv-ifield {
	display: flex;
	height: 100%;
	overflow: hidden;
	padding: 0 22px 22px !important;
	flex-direction: column;
	border: 1px solid var(--dcg-line);
	border-radius: 16px;
	background: var(--dcg-white);
	box-shadow: 0 10px 30px rgba(23, 49, 42, 0.07);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dcg-prose .pt-cv-ifield:hover {
	border-color: #c7b79d;
	box-shadow: var(--dcg-shadow);
	transform: translateY(-3px);
}

.dcg-prose .pt-cv-href-thumbnail {
	display: flex !important;
	min-height: 216px;
	margin: 0 -22px 20px !important;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--dcg-sand-light);
}

.dcg-prose .pt-cv-thumbnail {
	width: 200px !important;
	max-width: 200px !important;
	height: 200px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	box-shadow: none !important;
}

.dcg-prose .pt-cv-title,
.dcg-prose h3.pt-cv-title,
.dcg-prose h4.pt-cv-title {
	margin: 0 0 12px !important;
	color: var(--dcg-ink) !important;
	font-family: var(--dcg-display) !important;
	font-size: 1.24rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.25 !important;
}

.dcg-prose .pt-cv-title a {
	color: var(--dcg-ink) !important;
	text-decoration: none !important;
}

.dcg-prose .pt-cv-title a:hover {
	color: var(--dcg-cedar-dark) !important;
}

.dcg-prose .pt-cv-content {
	margin: 0 0 18px !important;
	color: #5b6f66 !important;
	font-size: 0.84rem !important;
	line-height: 1.65 !important;
}

.dcg-prose .pt-cv-rmwrap {
	margin: auto 0 0 !important;
}

.dcg-prose .pt-cv-readmore,
.dcg-prose .pt-cv-readmore.btn-success {
	display: inline-flex !important;
	min-height: 42px;
	margin: 0 !important;
	padding: 10px 16px !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--dcg-cedar) !important;
	color: var(--dcg-white) !important;
	font-size: 0.76rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(189, 100, 47, 0.18);
}

.dcg-prose .pt-cv-readmore:hover {
	background: var(--dcg-cedar-dark) !important;
	color: var(--dcg-white) !important;
}

/* Formidable: bring legacy lead forms into the theme system */
.dcg-prose .frm_forms {
	margin: 30px 0 10px;
	padding: 30px;
	border: 1px solid var(--dcg-line);
	border-radius: 18px;
	background: var(--dcg-cream);
	box-shadow: 0 14px 40px rgba(23, 49, 42, 0.08);
}

.dcg-prose .frm_forms fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.dcg-prose .frm_form_field {
	margin-bottom: 19px !important;
}

.dcg-prose .frm_primary_label {
	display: block;
	margin-bottom: 7px;
	color: var(--dcg-ink);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.4;
}

.dcg-prose .frm_required {
	color: var(--dcg-cedar-dark);
}

.dcg-prose .frm_forms input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.dcg-prose .frm_forms select,
.dcg-prose .frm_forms textarea,
.dcg-prose .frm_forms .ss-main {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 50px;
	padding: 11px 14px !important;
	border: 1px solid #cbbda9 !important;
	border-radius: 9px !important;
	background: var(--dcg-white) !important;
	color: var(--dcg-ink) !important;
	box-shadow: none !important;
}

.dcg-prose .frm_forms input:focus,
.dcg-prose .frm_forms select:focus,
.dcg-prose .frm_forms textarea:focus,
.dcg-prose .frm_forms .ss-main:focus-within {
	border-color: var(--dcg-forest) !important;
	box-shadow: 0 0 0 3px rgba(33, 76, 61, 0.12) !important;
	outline: none !important;
}

.dcg-prose .frm_description {
	margin-top: 6px;
	color: #687870;
	font-size: 0.72rem;
	line-height: 1.55;
}

/* Keep native Formidable checkboxes compact when global field styles are loaded. */
.frm_forms .frm_checkbox label {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: var(--dcg-ink);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.45;
	cursor: pointer;
}

.frm_forms .frm_checkbox input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	appearance: auto !important;
	display: inline-block !important;
	flex: 0 0 18px;
	width: 18px !important;
	max-width: 18px !important;
	min-width: 18px !important;
	height: 18px !important;
	min-height: 0 !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	accent-color: var(--dcg-forest);
}

.frm_forms .frm_checkbox input[type="checkbox"]:focus-visible {
	outline: 3px solid rgba(33, 76, 61, 0.22) !important;
	outline-offset: 2px;
	box-shadow: none !important;
}

.dcg-prose .frm_button_submit {
	min-height: 50px !important;
	padding: 12px 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--dcg-cedar) !important;
	color: var(--dcg-white) !important;
	font-weight: 800 !important;
	box-shadow: 0 10px 24px rgba(189, 100, 47, 0.22) !important;
}

.dcg-prose .frm_button_submit:hover {
	background: var(--dcg-cedar-dark) !important;
	color: var(--dcg-white) !important;
}

@media (max-width: 760px) {
	.dcg-prose .pt-cv-page {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.dcg-prose .pt-cv-wrapper {
		margin-bottom: 38px;
	}

	.dcg-prose .pt-cv-href-thumbnail {
		min-height: 206px;
	}

	.dcg-prose .frm_forms {
		padding: 22px 18px;
		border-radius: 14px;
	}
}


/* Replace legacy raster estimate banners with an accessible theme CTA */
.dcg-prose a:has(> img[src*="free_estimate"]),
.dcg-prose a:has(> img[src*="deck-estimate"]),
.dcg-prose a:has(> img[src*="deck-railing-estimate"]) {
	display: flex !important;
	width: min(100%, 700px);
	min-height: 126px;
	margin: 32px auto !important;
	padding: 24px 27px !important;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	border: 0 !important;
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(16, 45, 37, 0.98), rgba(33, 76, 61, 0.96));
	color: var(--dcg-white) !important;
	text-align: left !important;
	text-decoration: none !important;
	box-shadow: 0 16px 38px rgba(16, 45, 37, 0.18);
}

.dcg-prose a:has(> img[src*="free_estimate"])::before,
.dcg-prose a:has(> img[src*="deck-estimate"])::before,
.dcg-prose a:has(> img[src*="deck-railing-estimate"])::before {
	content: "Compare local deck quotes";
	color: var(--dcg-white);
	font-family: var(--dcg-display);
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.dcg-prose a:has(> img[src*="free_estimate"])::after,
.dcg-prose a:has(> img[src*="deck-estimate"])::after,
.dcg-prose a:has(> img[src*="deck-railing-estimate"])::after {
	content: "Start with your ZIP code and request free estimates →";
	margin-top: 10px;
	color: #f1d6c4;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.4;
}

.dcg-prose a:has(> img[src*="free_estimate"]) > img,
.dcg-prose a:has(> img[src*="deck-estimate"]) > img,
.dcg-prose a:has(> img[src*="deck-railing-estimate"]) > img {
	display: none !important;
}

.dcg-prose table td > a:has(> img[src*="free_estimate"]),
.dcg-prose table td > a:has(> img[src*="deck-estimate"]),
.dcg-prose table td > a:has(> img[src*="deck-railing-estimate"]) {
	width: 100%;
	margin: 0 !important;
}

@media (max-width: 620px) {
	.dcg-prose a:has(> img[src*="free_estimate"]),
	.dcg-prose a:has(> img[src*="deck-estimate"]),
	.dcg-prose a:has(> img[src*="deck-railing-estimate"]) {
		min-height: 118px;
		padding: 21px 20px !important;
		border-radius: 13px;
	}

	.dcg-prose a:has(> img[src*="free_estimate"])::after,
	.dcg-prose a:has(> img[src*="deck-estimate"])::after,
	.dcg-prose a:has(> img[src*="deck-railing-estimate"])::after {
		font-size: 0.75rem;
	}
}

/* Mobile fixes: legacy cost tables and Google Funding Choices */
@media (max-width: 620px) {
	.dcg-prose table {
		height: auto !important;
		max-height: none !important;
	}

	.dcg-prose table:has(tr > :nth-child(3)) {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: none !important;
		overflow-x: auto !important;
		overflow-y: visible !important;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.dcg-prose table:has(tr > :nth-child(3)) tr,
	.dcg-prose table:has(tr > :nth-child(3)) th,
	.dcg-prose table:has(tr > :nth-child(3)) td {
		height: auto !important;
	}

	.dcg-prose table:has(tr > :nth-child(3)) th,
	.dcg-prose table:has(tr > :nth-child(3)) td {
		width: auto !important;
		min-width: 165px;
		padding: 11px 13px;
		vertical-align: top;
	}

	.dcg-prose table:has(tr > :nth-child(3)) th:first-child,
	.dcg-prose table:has(tr > :nth-child(3)) td:first-child {
		min-width: 195px;
	}

	.dcg-prose table:has(tr > :nth-child(3)) td[colspan="3"],
	.dcg-prose table:has(tr > :nth-child(3)) th[colspan="3"] {
		min-width: 525px;
	}

	.dcg-prose table img {
		height: auto !important;
	}

	.fc-consent-root {
		inset: 0 !important;
		width: 100vw !important;
		max-width: 100vw !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
	}

	.fc-consent-root .fc-dialog-container {
		width: calc(100vw - 20px) !important;
		max-width: calc(100vw - 20px) !important;
		margin-right: auto !important;
		margin-left: auto !important;
		box-sizing: border-box !important;
	}

	.fc-consent-root .fc-dialog,
	.fc-consent-root .fc-dialog-content,
	.fc-consent-root .fc-dialog-scrollable-content,
	.fc-consent-root .fc-footer {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.fc-consent-root .fc-footer-buttons {
		width: 100% !important;
		max-width: none !important;
		padding: 0 12px 8px !important;
		flex-direction: column !important;
		box-sizing: border-box !important;
	}

	.fc-consent-root .fc-button {
		width: 100% !important;
		max-width: 100% !important;
		min-height: 44px !important;
		margin: 6px 0 !important;
		box-sizing: border-box !important;
		white-space: normal !important;
	}
}

/* Editorial imagery for top-level guide hubs. */
.dcg-article__feature--hub {
	overflow: hidden;
	border: 1px solid var(--dcg-line);
	border-radius: 6px 6px 24px 6px;
	background: var(--dcg-sand-light);
	box-shadow: 0 14px 38px rgba(23, 49, 42, 0.08);
}

.dcg-article__feature--hub img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.dcg-article__feature--hub figcaption {
	padding: 9px 13px 10px;
	color: #65786f;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
}

.dcg-article__feature--hub figcaption a {
	color: var(--dcg-cedar-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* Cost-guide evidence and methodology components. */
.dcg-prose .dcg-cost-summary {
	margin: 0 0 34px;
	padding: 28px 30px;
	border-radius: 6px 6px 24px 6px;
	background: var(--dcg-forest-dark);
	box-shadow: 0 16px 38px rgba(23, 49, 42, 0.14);
}

.dcg-prose .dcg-cost-summary p {
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
}

.dcg-prose .dcg-cost-summary__label {
	margin-bottom: 8px;
	color: #e7cdb7;
	font-size: 0.69rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.dcg-prose .dcg-cost-summary__price {
	margin-bottom: 10px;
	color: var(--dcg-white);
	font-family: var(--dcg-display);
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.dcg-prose .dcg-cost-summary__price strong {
	color: inherit;
	font: inherit;
}

.dcg-prose .dcg-note,
.dcg-prose .dcg-methodology {
	margin: 28px 0;
	padding: 22px 24px;
	border: 1px solid var(--dcg-line);
	border-left: 4px solid var(--dcg-cedar);
	border-radius: 4px 14px 14px 4px;
	background: var(--dcg-cream);
}

.dcg-prose .dcg-note p,
.dcg-prose .dcg-methodology p {
	margin: 0 0 0.85em;
}

.dcg-prose .dcg-note p:last-child,
.dcg-prose .dcg-methodology p:last-child {
	margin-bottom: 0;
}

.dcg-prose .dcg-methodology__date {
	padding-top: 12px;
	border-top: 1px solid var(--dcg-line);
	font-size: 0.78rem;
}

.dcg-prose .dcg-source-list {
	margin-top: 20px;
	padding: 22px 22px 22px 42px;
	border: 1px solid var(--dcg-line);
	border-radius: 14px;
	background: var(--dcg-paper);
}

@media (max-width: 620px) {
	.dcg-prose .dcg-cost-summary {
		padding: 23px 21px;
	}

	.dcg-prose .dcg-note,
	.dcg-prose .dcg-methodology {
		padding: 19px 18px;
	}
}

/* Keep the Easy Table of Contents control inside the panel on every screen. */
#ez-toc-container {
	position: relative;
}

#ez-toc-container .ez-toc-title {
	display: flex;
	min-height: 38px;
	padding-right: 52px;
	align-items: center;
}

#ez-toc-container > .ez-toc-cssicon-toggle-label {
	position: absolute !important;
	z-index: 4;
	top: 20px !important;
	right: 22px !important;
	display: inline-flex !important;
	float: none !important;
	width: 38px;
	height: 38px;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--dcg-line);
	border-radius: 999px;
	background: var(--dcg-white);
	box-shadow: 0 5px 14px rgba(23, 49, 42, 0.09);
	transform: none !important;
}

#ez-toc-container > input[type="checkbox"] {
	position: absolute !important;
	z-index: 5;
	top: 20px !important;
	right: 22px !important;
	width: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	opacity: 0;
	cursor: pointer;
}

/* New guide tables: conventional on desktop, scan-friendly cards on phones. */
.dcg-prose .dcg-table-wrap {
	display: block !important;
	clear: both;
	width: 100% !important;
	max-width: 100%;
	margin: 25px 0 35px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.dcg-prose .dcg-table-wrap + * {
	clear: both;
}

.dcg-prose .dcg-table-wrap table {
	width: 100% !important;
	max-width: 100%;
	margin: 0;
}

@media (min-width: 621px) {
	.dcg-prose .dcg-table-wrap table.dcg-stack-table {
		display: table !important;
		table-layout: fixed;
		float: none !important;
		overflow: hidden;
	}

	.dcg-prose table.dcg-stack-table thead {
		display: table-header-group !important;
	}

	.dcg-prose table.dcg-stack-table tbody {
		display: table-row-group !important;
	}

	.dcg-prose table.dcg-stack-table tr {
		display: table-row !important;
	}

	.dcg-prose table.dcg-stack-table th,
	.dcg-prose table.dcg-stack-table td {
		display: table-cell !important;
		width: auto !important;
		min-width: 0 !important;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.dcg-prose table.dcg-stack-table.dcg-three-column th:nth-child(1),
	.dcg-prose table.dcg-stack-table.dcg-three-column td:nth-child(1) {
		width: 23% !important;
	}

	.dcg-prose table.dcg-stack-table.dcg-three-column th:nth-child(2),
	.dcg-prose table.dcg-stack-table.dcg-three-column td:nth-child(2) {
		width: 27% !important;
	}

	.dcg-prose table.dcg-stack-table.dcg-three-column th:nth-child(3),
	.dcg-prose table.dcg-stack-table.dcg-three-column td:nth-child(3) {
		width: 50% !important;
	}
}

@media (max-width: 620px) {
	#ez-toc-container {
		padding: 20px 18px;
	}

	#ez-toc-container .ez-toc-title {
		padding-right: 48px;
	}

	#ez-toc-container > .ez-toc-cssicon-toggle-label,
	#ez-toc-container > input[type="checkbox"] {
		top: 17px !important;
		right: 16px !important;
	}

	.dcg-prose .dcg-table-wrap {
		overflow: visible;
	}

	.dcg-prose table.dcg-stack-table,
	.dcg-prose table.dcg-stack-table tbody,
	.dcg-prose table.dcg-stack-table tr,
	.dcg-prose table.dcg-stack-table td {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	.dcg-prose table.dcg-stack-table {
		overflow: visible !important;
		border: 0 !important;
		background: transparent;
		box-shadow: none;
	}

	.dcg-prose table.dcg-stack-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.dcg-prose table.dcg-stack-table tbody {
		display: grid !important;
		gap: 14px;
	}

	.dcg-prose table.dcg-stack-table tr {
		overflow: hidden;
		padding: 5px 0;
		border: 1px solid var(--dcg-line);
		border-left: 4px solid var(--dcg-cedar);
		border-radius: 5px 13px 13px 5px;
		background: var(--dcg-white);
		box-shadow: 0 8px 22px rgba(23, 49, 42, 0.06);
	}

	.dcg-prose table.dcg-stack-table td,
	.dcg-prose table.dcg-stack-table tbody tr:nth-child(even) td {
		display: grid !important;
		grid-template-columns: minmax(106px, 0.72fr) minmax(0, 1fr);
		gap: 12px;
		padding: 10px 13px !important;
		border: 0 !important;
		border-bottom: 1px solid rgba(214, 203, 185, 0.72) !important;
		background: transparent !important;
		text-align: left !important;
	}

	.dcg-prose table.dcg-stack-table td:last-child {
		border-bottom: 0 !important;
	}

	.dcg-prose table.dcg-stack-table td::before {
		color: var(--dcg-cedar-dark);
		content: attr(data-label);
		font-size: 0.67rem;
		font-weight: 800;
		letter-spacing: 0.055em;
		line-height: 1.45;
		text-transform: uppercase;
	}

	/* Funding Choices is injected after page load, sometimes as a full-screen iframe. */
	html,
	body {
		max-width: 100%;
		overflow-x: clip;
	}

	iframe#googlefc-iframe,
	iframe[id*="googlefc"],
	iframe[name*="googlefc"],
	iframe[src*="fundingchoicesmessages.google"] {
		left: 0 !important;
		right: 0 !important;
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		border: 0 !important;
		box-sizing: border-box !important;
		transform: none !important;
	}

	/* Same-document fallback used by some Funding Choices message formats. */
	.fc-consent-root,
	.fc-consent-root .fc-dialog-container,
	.fc-consent-root .fc-dialog {
		width: 100% !important;
		max-width: 100vw !important;
		box-sizing: border-box !important;
	}

	.fc-consent-root .fc-dialog-container {
		padding-right: 12px !important;
		padding-left: 12px !important;
	}

	.fc-consent-root .fc-footer-buttons,
	.fc-consent-root .fc-footer-buttons-container {
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
	}

	.fc-consent-root .fc-button,
	.fc-consent-root button {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		white-space: normal !important;
	}
}

/* Interactive deck budget estimator. */
.dcg-estimator-intro {
	max-width: 760px;
	font-size: 1.08rem;
}

.dcg-budget-calculator {
	margin: 34px 0 48px;
	overflow: hidden;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-white);
	border-radius: 20px;
	box-shadow: 0 18px 45px rgba(23, 49, 42, 0.09);
}

.dcg-estimator__header {
	padding: 30px 32px 27px;
	background: linear-gradient(135deg, var(--dcg-forest), #173b30);
	color: var(--dcg-white);
}

.dcg-estimator__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: #e4b28f;
	font-size: 0.69rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.dcg-prose .dcg-estimator__header h2 {
	margin: 0;
	color: var(--dcg-white) !important;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.dcg-estimator__header p {
	max-width: 650px;
	margin: 9px 0 0 !important;
	color: rgba(255, 255, 255, 0.78) !important;
}

.dcg-estimator__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 24px;
	padding: 28px;
}

.dcg-estimator__controls {
	min-width: 0;
}

.dcg-estimator__field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.dcg-budget-calculator label {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	color: var(--dcg-ink);
	font-size: 0.78rem;
	font-weight: 800;
}

.dcg-budget-calculator input,
.dcg-budget-calculator select {
	min-height: 48px;
	margin: 0;
	font-size: 0.92rem;
}

.dcg-estimator__input {
	display: flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-paper);
	border-radius: 9px;
}

.dcg-prose .dcg-estimator__input input {
	min-width: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.dcg-estimator__input > span {
	flex: 0 0 auto;
	padding: 0 12px;
	color: #64766e;
	font-size: 0.76rem;
	font-weight: 750;
}

.dcg-estimator__check {
	grid-column: 1 / -1;
	flex-direction: row !important;
	align-items: center;
	padding: 13px 15px;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-cream);
	border-radius: 9px;
	cursor: pointer;
}

.dcg-prose .dcg-estimator__check input {
	width: 20px;
	min-height: 20px;
	flex: 0 0 20px;
	margin: 0;
	accent-color: var(--dcg-cedar);
}

.dcg-estimator__button {
	width: 100%;
	min-height: 50px;
	margin-top: 20px;
	border: 0;
	background: var(--dcg-cedar);
	border-radius: 999px;
	color: var(--dcg-white);
	font-weight: 850;
	cursor: pointer;
}

.dcg-estimator__button:hover {
	background: var(--dcg-cedar-dark);
}

.dcg-estimator__result {
	align-self: stretch;
	padding: 27px;
	background: var(--dcg-forest-dark);
	border-radius: 15px;
	color: var(--dcg-white);
}

.dcg-estimator__result-label {
	display: block;
	color: #e4b28f;
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dcg-estimator__range {
	display: block;
	margin-top: 8px;
	color: var(--dcg-white);
	font-family: var(--dcg-display);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1;
}

.dcg-estimator__unit {
	display: block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.78rem;
}

.dcg-estimator__result dl {
	margin: 24px 0 0;
}

.dcg-estimator__result dl div {
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dcg-estimator__result dt,
.dcg-estimator__result dd {
	margin: 0;
	font-size: 0.76rem;
}

.dcg-estimator__result dt {
	color: rgba(255, 255, 255, 0.67);
}

.dcg-estimator__result dd {
	color: var(--dcg-white);
	font-weight: 800;
	text-align: right;
}

.dcg-estimator__result > p {
	margin: 20px 0 0 !important;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.68) !important;
	font-size: 0.72rem;
	line-height: 1.55;
}

.dcg-prose .dcg-estimator__result > p {
	margin: 20px 0 0;
	padding-top: 17px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.62) !important;
	font-size: 0.68rem;
	line-height: 1.55;
}

@media (max-width: 820px) {
	.dcg-estimator__layout {
		grid-template-columns: 1fr;
	}

	.dcg-estimator__result {
		order: -1;
	}
}

@media (max-width: 560px) {
	.dcg-budget-calculator {
		border-radius: 15px;
	}

	.dcg-estimator__header,
	.dcg-estimator__layout {
		padding: 22px 18px;
	}

	.dcg-estimator__field-grid {
		grid-template-columns: 1fr;
	}

	.dcg-estimator__check {
		grid-column: auto;
	}

	.dcg-estimator__result {
		padding: 22px 18px;
	}

	.dcg-estimator__result dl div {
		gap: 12px;
	}
}

/* Optional contractor quote form. */
#local-deck-quotes {
	margin-top: 72px;
}

#local-deck-quotes + p {
	max-width: 920px;
	margin-bottom: 14px;
	font-size: 1rem;
}

#local-deck-quotes + p + p {
	max-width: 920px;
	margin: 0 0 26px;
	padding: 14px 17px;
	border-left: 4px solid var(--dcg-cedar);
	background: var(--dcg-cream);
	border-radius: 0 9px 9px 0;
	font-size: 0.82rem;
}

body.page-id-30 .frm_forms {
	max-width: 960px;
}

#form_itb9z8 {
	margin: 0;
}

#form_itb9z8 fieldset {
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
}

#form_itb9z8 .frm_fields_container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 19px 22px;
}

#form_itb9z8 .frm_form_field {
	min-width: 0;
	margin: 0 !important;
	grid-column: auto !important;
}

#form_itb9z8 #frm_field_90_container,
#form_itb9z8 #frm_field_94_container,
#form_itb9z8 #frm_field_96_container,
#form_itb9z8 #frm_field_126_container,
#form_itb9z8 #frm_field_128_container {
	grid-column: 1 / -1 !important;
}

#form_itb9z8 #frm_field_128_container {
	display: none;
}

#form_itb9z8 .frm_primary_label {
	margin: 0 0 7px;
	color: var(--dcg-ink);
	font-size: 0.76rem;
	font-weight: 800;
}

#form_itb9z8 input:not([type="submit"]):not([type="hidden"]),
#form_itb9z8 select,
#form_itb9z8 .ss-main {
	width: 100% !important;
	max-width: none;
	min-height: 50px;
	margin: 0;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-white);
	border-radius: 9px;
	box-sizing: border-box;
}

#form_itb9z8 .frm_description {
	margin-top: 8px;
	color: #66766f;
	font-size: 0.7rem;
	line-height: 1.5;
}

#form_itb9z8 .frm_submit {
	margin: 0;
}

#form_itb9z8 input[type="submit"] {
	width: 100%;
	min-height: 50px;
	margin: 2px 0 0;
	border: 0;
	background: var(--dcg-cedar);
	border-radius: 999px;
	color: var(--dcg-white);
	font-weight: 850;
}

#form_itb9z8 input[type="submit"]:hover {
	background: var(--dcg-cedar-dark);
}

@media (max-width: 700px) {
	#form_itb9z8 fieldset {
		padding: 22px 18px;
	}

	#form_itb9z8 .frm_fields_container {
		grid-template-columns: 1fr;
	}

	#form_itb9z8 #frm_field_90_container,
	#form_itb9z8 #frm_field_96_container,
	#form_itb9z8 #frm_field_126_container,
	#form_itb9z8 #frm_field_128_container {
		grid-column: auto;
	}
}

/* Calculator-page containment and legacy prose overrides. */
body.page-id-30 .dcg-article-layout {
	grid-template-columns: minmax(0, 1fr);
}

body.page-id-30 .dcg-article,
body.page-id-30 .dcg-prose {
	width: 100%;
	max-width: none;
}

.dcg-budget-calculator p:empty,
.dcg-estimator__field-grid > br {
	display: none;
}

.dcg-prose .dcg-estimator__range {
	color: var(--dcg-white);
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	letter-spacing: -0.025em;
}

.dcg-budget-calculator select {
	font-size: 0.86rem;
}

/* Manual contents panel used by the 12-step planning guide. */
.dcg-toc {
	width: 100%;
	margin: 28px 0 38px;
	padding: 24px 27px;
	border: 1px solid var(--dcg-line);
	background: var(--dcg-cream);
	border-radius: 12px;
}

.dcg-toc__title {
	margin: 0 0 14px !important;
	color: var(--dcg-ink);
	font-family: var(--dcg-display);
	font-size: 1.2rem;
	font-weight: 700;
}

.dcg-prose .dcg-toc ol,
.dcg-prose .dcg-toc ul {
	margin: 0;
}

.dcg-prose .dcg-toc__steps {
	columns: 2;
	column-gap: 42px;
	padding-left: 1.55em;
}

.dcg-prose .dcg-toc__support {
	padding-left: 0;
	list-style: none;
}

.dcg-prose .dcg-toc__support--after {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--dcg-line);
}

.dcg-prose .dcg-toc li {
	margin: 0 0 0.58em;
	padding-left: 0.15em;
	break-inside: avoid;
}

.dcg-prose .dcg-toc__support li {
	padding-left: 0;
}

.dcg-toc a {
	color: var(--dcg-forest);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.dcg-toc a:hover {
	color: var(--dcg-cedar-dark);
}

@media (max-width: 700px) {
	.dcg-prose .dcg-toc__steps {
		columns: 1;
	}

	.dcg-toc {
		padding: 20px 18px;
	}
}

/* Editorial hub cards: protect the featured-card contrast from prose rules. */
.dcg-prose .dcg-guide-card--feature h3,
.dcg-prose .dcg-guide-card--feature h3 a {
	color: var(--dcg-white) !important;
}

.dcg-prose .dcg-guide-card--feature p {
	color: rgba(255, 255, 255, 0.78) !important;
}

.dcg-prose .dcg-guide-card--feature .dcg-guide-card__bottom,
.dcg-prose .dcg-guide-card--feature .dcg-guide-card__arrow {
	color: var(--dcg-white) !important;
}

/* Contrast safeguards and approved Deckline brand mark. */
.dcg-brand__mark {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--dcg-forest), var(--dcg-forest-dark));
}

.dcg-brand__mark::before,
.dcg-brand__mark::after {
	content: none;
}

.dcg-brand__mark svg {
	display: block;
	width: 36px;
	height: 36px;
	overflow: visible;
}

.dcg-brand__deck {
	fill: var(--dcg-cedar);
}

.dcg-brand__rail {
	fill: none;
	stroke: var(--dcg-sand);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dcg-brand__post {
	fill: none;
	stroke: #df945f;
	stroke-width: 4;
	stroke-linecap: round;
}

.dcg-prose a.dcg-button--primary,
.dcg-prose a.dcg-button--primary:visited,
.dcg-prose .wp-block-button__link,
.dcg-prose .wp-block-button__link:visited {
	background: var(--dcg-cedar-button) !important;
	color: var(--dcg-white) !important;
	text-decoration: none;
}

.dcg-prose a.dcg-button--primary:hover,
.dcg-prose a.dcg-button--primary:focus-visible,
.dcg-prose .wp-block-button__link:hover,
.dcg-prose .wp-block-button__link:focus-visible {
	background: var(--dcg-cedar-dark) !important;
	color: var(--dcg-white) !important;
}

.dcg-prose .dcg-cost-summary,
.dcg-prose .dcg-cost-summary p,
.dcg-prose .dcg-cost-summary li {
	color: rgba(255, 255, 255, 0.86) !important;
}

.dcg-prose .dcg-cost-summary strong,
.dcg-prose .dcg-cost-summary__price,
.dcg-prose .dcg-cost-summary__price strong {
	color: var(--dcg-white) !important;
}

.dcg-prose .dcg-cost-summary .dcg-eyebrow,
.dcg-prose .dcg-cost-summary__label {
	color: #efb18c !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Featured-image captions: compact, readable and inset from phone edges. */
.dcg-article__feature figcaption {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 14px 12px;
	background: var(--dcg-sand-light);
	color: var(--dcg-ink-soft);
	font-family: var(--dcg-sans, system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	overflow-wrap: anywhere;
}

.dcg-article__feature figcaption p {
	margin: 0;
}

@media (max-width: 620px) {
	.dcg-article__feature figcaption {
		padding: 11px 18px 13px;
		font-size: 0.76rem;
		line-height: 1.5;
	}
}
