/*
 * Damteq Growth Fundamentals.
 * Matched to the damteq-website-2025 theme: its colour and font presets, a 1366px
 * track with 32px gutters (24px on mobile), sections at 64px, heroes that start
 * under the fixed header with 192px of top padding, navy 8px buttons, 16px radius.
 * Everything is scoped to .dgf so nothing else on the site is touched.
 */
.dgf {
	--dgf-navy: var(--wp--preset--color--dam-navy, #0F1A2B);
	--dgf-blue: var(--wp--preset--color--dam-blue, #0762CB);
	--dgf-hover: var(--wp--preset--color--hover-blue, #083E96);
	--dgf-slate: var(--wp--preset--color--slate-blue, #45566F);
	--dgf-light: var(--wp--preset--color--light-grey, #F3F5F7);
	--dgf-mid: var(--wp--preset--color--mid-grey, #E0E4EB);
	--dgf-grey: var(--wp--preset--color--grey, #C1CBD9);
	--dgf-lightblue: var(--wp--preset--color--light-blue, #E2EDFF);
	--dgf-midblue: var(--wp--preset--color--mid-blue, #6496E7);
	--dgf-sans: var(--wp--preset--font-family--tt-commons-pro, "tt-commons-pro"), "TT Commons Pro", Figtree, system-ui, sans-serif;
	--dgf-serif: var(--wp--preset--font-family--richmond-display, "richmond-display"), Georgia, serif;
	--dgf-hero-bg: url("/wp-content/uploads/2025/10/newsite-dameq-grey-background-gradient-scaled-flipped.webp");
	font-family: var(--dgf-sans);
	font-size: var(--wp--preset--font-size--base, 1.063rem);
	font-weight: 100;
	line-height: 1.5rem;
	color: var(--dgf-slate);
	-webkit-font-smoothing: antialiased;
}
.dgf.alignfull { max-width: none !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important; margin-block: 0 !important; }
.dgf *, .dgf *::before, .dgf *::after { box-sizing: border-box; }
.dgf a { text-decoration: none; }
.dgf p { margin: 0 0 1rem; padding-bottom: 0; }
.dgf p:last-child { margin-bottom: 0; }
.dgf img { max-width: 100%; height: auto; display: block; }
.dgf ol, .dgf ul { margin: 0; padding: 0; list-style: none; }

/* Track and sections, as the theme's dt-section / dt-track-inner / dt-container */
.dgf-track { width: 100%; max-width: 1366px; margin: 0 auto; padding: 0 32px; }
.dgf-section { padding: 64px 0; }
.dgf-section--grey { background: var(--dgf-light); }
.dgf-section--white { background: #fff; }
.dgf-section--none { background: transparent; }
.dgf-section--navy { background: var(--dgf-navy); color: var(--dgf-mid); }
.dgf-embed.alignfull, .dgf-embed { width: 100%; }

/* Type */
.dgf-h1, .dgf-h2, .dgf-h3, .dgf-gate-title { font-family: var(--dgf-sans); font-weight: 400; color: var(--dgf-navy); margin: 0; }
.dgf-h1 { font-size: clamp(2.2rem, 1.5rem + 2vw, 2.875rem); line-height: 1.1; letter-spacing: -0.0235em; margin-bottom: 1.5rem; }
.dgf-h2 { font-size: clamp(1.72rem, 1.25rem + 1.6vw, 2.375rem); line-height: 1.095; letter-spacing: -0.021em; margin-bottom: 1rem; }
.dgf-h3 { font-size: 1.5rem; line-height: 1.14; letter-spacing: -0.68px; margin-bottom: .5rem; }
.dgf em { font-family: var(--dgf-serif); font-style: italic; font-weight: 300; color: inherit; letter-spacing: -0.02em; }
.dgf-lead { font-size: 1.125rem; line-height: 1.5rem; color: var(--dgf-slate); }
.dgf-label { font-size: .875rem; line-height: 1.25rem; font-weight: 100; letter-spacing: .1em; text-transform: uppercase; color: var(--dgf-blue); margin: 0 0 1rem !important; }
.dgf-section--navy .dgf-label { color: #8FB9F7; }
.dgf-section--navy .dgf-h2, .dgf-section--navy .dgf-h3 { color: #fff; }
.dgf-section--navy .dgf-lead, .dgf-section--navy p { color: var(--dgf-mid); }
.dgf-small { font-size: .875rem; line-height: 1.25rem; color: var(--dgf-slate); margin: 1rem 0 0 !important; }
.dgf-small a { color: var(--dgf-navy); text-decoration: underline; text-underline-offset: 2px; }
.dgf-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.dgf-crumb { margin-bottom: 2.5rem; font-size: 1.063rem; font-weight: 400; }
.dgf-crumb p { margin: 0; }
.dgf-crumb a { color: var(--dgf-slate); }
.dgf-crumb a:hover { color: var(--dgf-navy); }

/* Buttons, as the theme's .wp-block-button.button and .button-secondary */
.dgf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--dgf-sans); font-size: 1.063rem; font-weight: 400; line-height: 1; padding: 18px 26px; border: 1px solid transparent; border-radius: 8px; background: var(--dgf-navy); color: #fff !important; cursor: pointer; transition: background-color .3s cubic-bezier(.4, 0, .2, 1), border-color .3s, color .3s; }
.dgf-btn:hover { background: var(--dgf-blue); }
.dgf-btn[disabled] { opacity: .65; cursor: wait; }
.dgf-btn--full { width: 100%; }
.dgf-btn--outline { background: transparent; border-color: var(--dgf-navy); color: var(--dgf-navy) !important; }
.dgf-btn--outline:hover { background: var(--dgf-navy); color: #fff !important; }
.dgf-btn--outline-light { background: transparent; border-color: #fff; color: #fff !important; }
.dgf-btn--outline-light:hover { background: #fff; color: var(--dgf-navy) !important; }
.dgf-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.dgf-notice { background: var(--dgf-lightblue); color: var(--dgf-navy); border-radius: 8px; padding: 14px 18px; margin-bottom: 2rem !important; font-weight: 400; }

/* Hero: starts at the top of the page, under the theme's fixed floating header */
.dgf-hero { position: relative; background-color: var(--dgf-light); background-image: var(--dgf-hero-bg); background-size: cover; background-position: 50% 50%; padding: 192px 0 80px; overflow: hidden; }
.dgf-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.dgf-hero-copy .dgf-lead { max-width: 36rem; }
.dgf-hero-copy > p:not(.dgf-lead):not(.dgf-label) { max-width: 36rem; }
.dgf-hero-stack { position: relative; height: 440px; }
.dgf-stack { position: absolute; width: 250px; top: 50%; left: 50%; transition: transform .5s ease; }
.dgf-stack-0 { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; }
.dgf-stack-1 { transform: translate(-14%, -55%) rotate(6deg); z-index: 2; }
.dgf-stack-2 { transform: translate(-86%, -45%) rotate(-8deg); z-index: 1; }
.dgf-guide-side .dgf-cover--hero { max-width: 300px; margin: 0 auto; transform: rotate(2deg); }

/* Covers */
.dgf-cover { position: relative; aspect-ratio: 1 / 1.414; border-radius: 4px; overflow: hidden; padding: 9%; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,26,43,.08), 0 24px 48px -18px rgba(15,26,43,.35); container-type: inline-size; }
.dgf-cover--image { padding: 0; background: var(--dgf-light); }
.dgf-cover--image img { width: 100%; height: 100%; object-fit: cover; }
.dgf-cover--ink { background: var(--dgf-navy); color: #fff; }
.dgf-cover--blue { background: var(--dgf-blue); color: #fff; }
.dgf-cover--pale { background: var(--dgf-lightblue); color: var(--dgf-navy); }
.dgf-cover-series { font-size: 4.2cqw; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dgf-cover-num { font-size: 30cqw; line-height: .9; font-weight: 300; letter-spacing: -.04em; margin-top: auto; }
.dgf-cover-title { font-size: 8.4cqw; line-height: 1.08; letter-spacing: -.02em; font-weight: 400; margin: 5% 0 12%; }
.dgf-cover-brand { font-size: 5.6cqw; font-weight: 500; padding-top: 5%; border-top: 1px solid rgba(127,140,160,.45); }

/* Section heads: heading left, intro and link right, as the theme's listing heroes */
.dgf-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.dgf-head .dgf-h2 { margin-bottom: 0; max-width: 38rem; }
.dgf-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.dgf-align-center .dgf-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.dgf-align-center .dgf-head-side { align-items: center; }

/* Cards, as the theme's dt-post-card (16px media radius, uppercase terms, 24px titles) */
.dgf-grid { display: grid; gap: 2rem 1.5rem; }
.dgf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dgf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dgf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgf-cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
.dgf-card { display: flex; flex-direction: column; color: var(--dgf-slate) !important; }
.dgf-card-media { background: var(--dgf-mid); border-radius: 16px; padding: 2.25rem 0; display: flex; justify-content: center; overflow: hidden; transition: background-color .3s; }
.dgf-section--grey .dgf-card-media { background: #fff; }
.dgf-section--navy .dgf-card-media { background: #1A2A42; }
.dgf-card .dgf-cover--card { width: 46%; transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.dgf-card:hover .dgf-cover--card { transform: translateY(-6px) rotate(-1.5deg); }
.dgf-card-body { padding-top: 1rem; display: flex; flex-direction: column; flex: 1; }
.dgf-term { font-size: .875rem; line-height: 1.125rem; text-transform: uppercase; color: var(--dgf-slate); margin-bottom: .75rem; }
.dgf-term-sep { padding-left: 8px; margin-left: 8px; border-left: 1px solid var(--dgf-grey); }
.dgf-card .dgf-h3 { transition: color .3s; }
.dgf-card:hover .dgf-h3 { color: var(--dgf-blue); }
.dgf-card p { margin-bottom: 1rem; }
.dgf-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--dgf-navy); font-weight: 400; }
.dgf-more .dgf-ico { transition: transform .3s; }
.dgf-card:hover .dgf-more .dgf-ico { transform: translateX(4px); }
.dgf-section--navy .dgf-card .dgf-h3, .dgf-section--navy .dgf-more { color: #fff; }
.dgf-section--navy .dgf-term, .dgf-section--navy .dgf-card p { color: var(--dgf-mid); }

/* Why */
.dgf-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.dgf-why-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.dgf-why-cols > div { border-top: 1px solid var(--dgf-navy); padding-top: 1.25rem; }

/* Get all */
.dgf-getall { display: grid; grid-template-columns: 1fr 460px; gap: 4.5rem; align-items: start; }
.dgf-mini-list { margin-top: 2rem !important; columns: 2; column-gap: 2rem; }
.dgf-mini-list li { break-inside: avoid; padding: .75rem 0; border-top: 1px solid var(--dgf-mid); color: var(--dgf-navy); display: flex; gap: .75rem; }
.dgf-num { color: var(--dgf-blue); min-width: 1.5rem; }

/* Gate */
.dgf-gate--card { background: #fff; border: 1px solid var(--dgf-mid); border-radius: 16px; padding: 2rem; box-shadow: 0 14px 50px -10px rgba(0,0,0,.1); }
.dgf-gate-title { font-size: 1.5rem; line-height: 1.14; letter-spacing: -0.68px; margin-bottom: 1.5rem; }
.dgf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dgf-field { display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.dgf-field--wide { grid-column: 1 / -1; }
.dgf-field > span { font-size: .875rem; line-height: 1.125rem; font-weight: 400; color: var(--dgf-navy); }
.dgf-opt { font-weight: 100; color: var(--dgf-slate); }
.dgf-field input { width: 100%; font-family: var(--dgf-sans); font-size: 1.063rem; font-weight: 400; color: var(--dgf-navy); background: var(--dgf-light); border: 1px solid transparent; border-radius: 8px; padding: 14px 16px; margin: 0; box-shadow: none; outline: none; transition: border-color .2s, background .2s; }
.dgf-field input:focus { background: #fff; border-color: var(--dgf-navy); }
.dgf-field.is-error input { border-color: #C2362B; background: #FDF3F2; }
.dgf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dgf-check { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0 1.5rem; font-size: .938rem; line-height: 1.3rem; cursor: pointer; }
.dgf-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--dgf-navy); flex: 0 0 auto; }
.dgf-error { color: #C2362B; font-size: .938rem; font-weight: 400; margin: 1rem 0 0 !important; }
.dgf-dl-list li { border-top: 1px solid var(--dgf-mid); }
.dgf-dl-list a { display: flex; gap: .75rem; align-items: center; padding: .75rem 0; color: var(--dgf-navy) !important; }
.dgf-dl-list a:hover { color: var(--dgf-blue) !important; }
.dgf-dl-list b { color: var(--dgf-blue); font-weight: 400; margin-right: .5rem; }
.dgf-dl-list .is-soon { color: var(--dgf-slate) !important; pointer-events: none; }
.dgf-tick-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--dgf-lightblue); color: var(--dgf-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.dgf-tick-badge .dgf-ico { width: 22px; height: 22px; }

/* Guide page */
.dgf-hero--guide .dgf-hero-grid { grid-template-columns: 1.3fr .7fr; }
.dgf-guide-body { display: grid; grid-template-columns: 1fr 440px; gap: 5rem; align-items: start; }
.dgf-sticky { position: sticky; top: 120px; }
.dgf-ticks { margin: 2rem 0 3rem !important; }
.dgf-ticks li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--dgf-mid); color: var(--dgf-navy); font-size: 1.125rem; line-height: 1.5rem; }
.dgf-ticks li:last-child { border-bottom: 1px solid var(--dgf-mid); }
.dgf-ticks .dgf-ico { color: var(--dgf-blue); margin-top: 3px; }
.dgf-for { margin-bottom: 2.5rem; max-width: 38rem; }
.dgf-question { background: var(--dgf-lightblue); border-radius: 16px; padding: 2rem; }
.dgf-question-text { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.25; color: var(--dgf-navy); }

/* CTA band */
.dgf-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.dgf-cta-inner .dgf-lead { max-width: 44rem; }
.dgf-cta .dgf-btn { flex: 0 0 auto; }

/* Inline gate in posts */
.dgf-inline { margin: 2.5rem 0; }
.dgf-inline .dgf-gate--card { max-width: 560px; }

/* Responsive, following the theme's breakpoints and 24px mobile gutters */
@media (max-width: 1080px) {
	.dgf-cols-3, .dgf-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dgf-why, .dgf-getall, .dgf-guide-body { grid-template-columns: 1fr; gap: 3rem; }
	.dgf-sticky { position: static; }
	.dgf-getall .dgf-gate, .dgf-guide-body .dgf-gate { max-width: 560px; }
}
@media (max-width: 860px) {
	.dgf-hero-grid, .dgf-hero--guide .dgf-hero-grid, .dgf-head { grid-template-columns: 1fr; gap: 2rem; }
	.dgf-hero-stack { height: 330px; order: -1; }
	.dgf-stack { width: 180px; }
	.dgf-guide-side { order: -1; }
	.dgf-guide-side .dgf-cover--hero { max-width: 190px; margin: 0; }
	.dgf-why-cols { grid-template-columns: 1fr; }
	.dgf-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
	.dgf-track { padding: 0 24px; }
	.dgf-section { padding: 48px 0; }
	.dgf-cols-2, .dgf-cols-3, .dgf-cols-4 { grid-template-columns: minmax(0, 1fr); }
	.dgf-fields { grid-template-columns: 1fr; }
	.dgf-gate--card { padding: 1.5rem; }
	.dgf-mini-list { columns: 1; }
	.dgf-crumb { font-size: .875rem; margin-bottom: 1.5rem; }
	.dgf-card-media { padding: 1.75rem 0; }
	.dgf-card .dgf-cover--card { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .dgf * { transition: none !important; } }
/* Classic themes keep their header in the flow, so the hero needs less room above it */
.dgf-classic .dgf-hero { padding-top: 80px; }

/* The theme pads paragraphs and sets heading margins; keep the plugin's own rhythm */
.dgf .dgf-h1 { margin-bottom: 1.25rem; }
.dgf .dgf-h2 { margin-bottom: 1rem; }
.dgf .dgf-head .dgf-h2 { margin-bottom: 0; }
.dgf .dgf-h3 { margin-bottom: .5rem; }
.dgf .dgf-gate-title { margin-bottom: 1.5rem; }
.dgf .dgf-lead { margin-bottom: 1rem; }
.dgf .dgf-crumb p { padding: 0; }
