/**
 * Documentation Hub (New) — Phase 2 styles.
 *
 * Mirrors the visual language of the live /documentation/ page:
 * 2px borders in #efefef, 10px radius, no shadows, purple icon
 * accents (#BB8FEF), Figtree font via WP preset, Charitable palette
 * (#1E1515 ink, #04194e navy, #7cc900 green, #fffaf3 cream).
 *
 * All rules scoped to .doc-hub-new to avoid leaking onto the rest
 * of the theme.
 */

/* Hide stray empty <p> the theme injects between the block-header part and my hub
   (an empty paragraph left behind when the blog-feature-header shortcode returns nothing). */
body.page-documentation-new > p,
body.page-documentation-new > p:empty { display: none !important; }

/* Defensive logo sizing for this template.
   On normal pages the rule `body .wp-site-blocks > header .wpchar-top-nav-main .wpchar-home-logo { width: 200px }`
   in am-theme/style.css constrains the site logo to 200px wide. On this custom PHP template
   that selector ends up matching but the logo still renders oversized (header grows to ~129px
   tall instead of ~91px). Force the right size here so the am-theme sticky-header JS measures
   a correct height. */
body.page-documentation-new .wpchar-home-logo,
body.page-documentation-new .wpchar-home-logo img.custom-logo {
	width: 200px !important;
}
body.page-documentation-new .wpchar-home-logo img.custom-logo {
	height: auto !important;
	max-width: 200px !important;
}

.doc-hub-new {
	--dh-ink:    #1E1515;
	--dh-mute:   #757575;
	--dh-navy:   #04194e;
	--dh-green:  #7cc900;
	--dh-cream:  #fffaf3;
	--dh-tint:   #f7f7f6;
	/* Light, refined borders. Default soft grey; hover steps to a slightly stronger grey. */
	--dh-border: #e5e7eb;
	--dh-border-strong: #c0c5cc;
	--dh-accent: #b8bcc4; /* hover/rollover accent — light mid-grey (no purple) */
	--dh-icon-bg: #ecedef;
	--dh-icon-fg: #374151;
	--dh-link:   #0073aa;
	--dh-radius: 10px;
	--dh-pad:    1.5rem;

	font-family: "Satoshi", sans-serif;
	color: var(--dh-ink);
	line-height: 1.5;
	font-size: 16px;
}

.doc-hub-new * { box-sizing: border-box; }
.doc-hub-new img, .doc-hub-new svg { display: block; max-width: 100%; }
/* :where() drops the element selector's specificity so button color rules win without !important */
.doc-hub-new :where(a) { color: inherit; text-decoration: none; }
.doc-hub-new ul, .doc-hub-new ol { list-style: none; margin: 0; padding: 0; }
/* :where() drops the element selectors' specificity so my class rules can set margin without !important */
.doc-hub-new :where(h1, h2, h3, h4, p) { margin: 0; }

/* ============ LAYOUT ============ */
.dh-section { padding-block: clamp(2.5rem, 4vw, 4rem); }
.dh-section--tint  { background: var(--dh-tint); }
.dh-section--cream { background: var(--dh-cream); }
.dh-section--peach { background: #fbefdf; }
.dh-section + .dh-section { border-top: 1px solid var(--dh-border); }
.dh-container { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.dh-container--narrow { max-width: 880px; }

/* ============ TYPOGRAPHY ============ */
.dh-h1 {
	font-size: clamp(28px, 1.6rem + 2vw, 46px);
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.15;
}
.dh-h2 {
	font-size: clamp(22px, 1.2rem + 1vw, 32px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}
.dh-h3 {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}
.dh-eyebrow {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--dh-mute);
}
.dh-lead { font-size: 1.125rem; color: var(--dh-mute); }
.dh-muted { color: var(--dh-mute); }
.dh-small { font-size: .875rem; }
.dh-xs    { font-size: .75rem; }

/* Centered section header — mirrors prod /documentation pattern */
.dh-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .75rem;
}
.dh-header__title-row { display: flex; align-items: center; gap: .75rem; justify-content: center; }
.dh-header p { color: var(--dh-mute); }
.dh-header .dh-link { margin-top: .25rem; }

/* ============ LINKS (prod "More Docs" pattern: text underlined, arrow not) ============ */
.dh-link {
	display: inline-flex;
	align-items: baseline;
	gap: .4rem;
	color: var(--dh-ink);
	font-weight: 700;
	font-size: .95rem;
}
.dh-link__text {
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 2px;
	line-height: 1.2;
}
.dh-link__arrow { font-weight: 700; }
.dh-link:hover { color: var(--dh-navy); }

/* ============ BUTTONS ============ */
.dh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .75rem 1.25rem;
	border-radius: var(--dh-radius);
	font-weight: 600;
	font-size: .9375rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
/* Primary CTA matches Charitable's brand button — dark forest green #31714C */
.dh-btn--primary  { background: #31714C; color: #fff; border-radius: 6px; }
.dh-btn--primary:hover { background: #1f5b37; }
.dh-btn--accent   { background: #31714C; color: #fff; border-radius: 6px; }
.dh-btn--accent:hover { background: #1f5b37; }
.dh-btn--ghost    { background: #fff; color: var(--dh-ink); border-color: var(--dh-border-strong); border-radius: 6px; }
.dh-btn--ghost:hover { border-color: #31714C; color: #31714C; }

/* ============ CARDS ============ */
.dh-card {
	background: #ffffff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: var(--dh-pad);
	transition: border-color .15s;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.dh-card:hover { border-color: var(--dh-accent); }
.dh-card--compact { padding: 1rem; }
.dh-card--tinted { background: var(--dh-tint); }
.dh-card--dark   { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.dh-card--dark:hover { border-color: var(--dh-green); }

/* ============ GRID ============ */
.dh-grid { display: grid; gap: 1rem; }
.dh-grid--gap-sm { gap: .625rem; }
.dh-grid--gap-lg { gap: 1.25rem; }
.dh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dh-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dh-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.dh-grid--5 { grid-template-columns: repeat(3, 1fr); }
	.dh-grid--6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
	.dh-grid--3, .dh-grid--4, .dh-grid--5, .dh-grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.dh-grid--2 { grid-template-columns: 1fr; }
}

/* ============ ICON BADGE — no background, just the icon ============ */
.dh-icon-badge {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: transparent;
	color: var(--dh-icon-fg);
}
.dh-icon-badge--green { background: transparent; color: #4f7a00; }
.dh-icon-badge--navy  { background: transparent; color: var(--dh-navy); }
.dh-icon-badge svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============ HERO ============ */
.dh-hero { text-align: center; padding-block: clamp(3rem, 6vw, 5rem); background: var(--dh-cream); border-bottom: 1px solid var(--dh-border); }
.dh-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .375rem .75rem;
	border-radius: 4px;
	background: rgba(124,201,0,.12);
	color: #4f7a00;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 1rem;
}
.dh-hero__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dh-green); }
.dh-hero p.dh-lead { max-width: 640px; margin: 1rem auto 0; }
.dh-hero__search {
	max-width: 640px;
	margin: 2rem auto 0;
	position: relative;
}
.dh-hero__search input {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	padding: 1rem 7.5rem 1rem 3rem;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	background: #ffffff;
	color: var(--dh-ink);
}
.dh-hero__search input:focus { outline: none; border-color: var(--dh-navy); }
.dh-hero__search button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--dh-navy);
	color: #fff;
	border: 0;
	border-radius: calc(var(--dh-radius) - 2px);
	padding: .625rem 1.125rem;
	font: 600 .9rem inherit;
	cursor: pointer;
}
.dh-hero__search button:hover { background: #0a2670; }
.dh-hero__search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--dh-mute); width: 20px; height: 20px; pointer-events: none; }
.dh-hero__quicklinks { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; font-size: .9rem; }
.dh-hero__quicklinks a { color: var(--dh-navy); font-weight: 600; }
.dh-hero__quicklinks a:hover { text-decoration: underline; }
.dh-hero__popular { font-size: .8rem; color: var(--dh-mute); margin-top: .875rem; }
.dh-hero__popular a { color: var(--dh-navy); }
.dh-hero__popular a:hover { text-decoration: underline; }

/* ============================================================
   SearchWP hero search — overrides the block-search default
   styling so the input fills the hero and matches the visual
   weight of the previous custom .dh-hero__search form.
   Keeps `data-swpengine="documentation"` intact so SearchWP
   Live Search hooks the input as it does on /documentation/.
   ============================================================ */
.dh-hero__searchwp {
	max-width: 640px !important;
	margin: 2rem auto 0 !important;
	width: 100%;
}
.dh-hero__searchwp .wp-block-search__inside-wrapper {
	width: 100% !important;
	max-width: none !important;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	background: #ffffff;
	padding: 0;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	box-shadow: none;
}
.dh-hero__searchwp .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--dh-navy);
}
.dh-hero__searchwp .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	color: var(--dh-ink) !important;
	font: inherit;
	font-size: 1rem !important;
	padding: 1rem 1.25rem !important;
	line-height: 1.5;
	outline: none;
	box-shadow: none;
	border-radius: 0;
}
.dh-hero__searchwp .wp-block-search__input::placeholder {
	color: var(--dh-mute);
	opacity: 1;
}
.dh-hero__searchwp .wp-block-search__button {
	flex: 0 0 auto;
	background: var(--dh-navy) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 1.25rem !important;
	margin: 0 !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s;
}
.dh-hero__searchwp .wp-block-search__button:hover {
	background: #0a2670 !important;
}
.dh-hero__searchwp .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ============ GETTING STARTED STEPS ============ */
.dh-step {
	background: #fff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	transition: border-color .15s;
}
.dh-step:hover { border-color: var(--dh-accent); }
.dh-step__top { display: flex; align-items: center; justify-content: space-between; }
.dh-step__num {
	font-weight: 700;
	font-size: .75rem;
	color: var(--dh-navy);
	text-transform: uppercase;
	letter-spacing: .06em;
}
.dh-step__time { font-size: .75rem; color: #5fa000; font-weight: 600; }
.dh-step__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	min-height: 2.5em; /* ~2 lines */
}
.dh-step__desc { font-size: .875rem; color: var(--dh-mute); line-height: 1.45; }

/* Step card — button variant (modal trigger). Resets native button chrome so
   it looks identical to the original <a> card. Adds the completed-state
   treatment + the "Complete" badge that appears only when completed. */
.dh-step--button {
	all: unset;
	display: block;
	cursor: pointer;
	font: inherit;
	text-align: left;
	box-sizing: border-box;
	position: relative;
	/* Inherit the same border / radius / padding as .dh-step does. */
	padding: 1.25rem 1.25rem 1.5rem;
	border: 1px solid var(--dh-border);
	border-radius: var(--dh-radius);
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.dh-step--button:hover { border-color: var(--dh-accent); }
.dh-step--button:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 3px;
}
.dh-step__done-badge {
	display: none;
	position: absolute;
	top: .65rem;
	right: .75rem;
	font-family: Satoshi, sans-serif;
	font-size: .7rem;
	font-weight: 600;
	color: #1f6d2d;
	background: #ecfdf5;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: .02em;
}
.dh-step--done .dh-step__done-badge { display: inline-block; }
.dh-step--done {
	background: #f9fbfa;
	border-color: #c8e6d0;
}
.dh-step--done .dh-step__title { color: #1f6d2d; }
.dh-step--done .dh-step__desc { opacity: .85; }

/* Step modal — content panel. Reuses base .dh-modal scaffold but adds its own
   typography + bullet list styling that stays in the Charitable design system
   (Satoshi, dh-* tokens, no Tailwind utility leakage).
   Uses .dh-modal--step parent scope so the override wins over the base
   .dh-modal__panel rule (which lives later in this file and sets bg: #000
   for the YouTube player variant). */
.dh-modal--step .dh-modal__panel {
	background: #fff;
	max-width: 960px;
	padding: 2rem 2rem 1.5rem;
	color: var(--dh-ink);
	overflow: visible; /* allow prev/next nav arrows to hang off the edges */
}
.dh-modal--step .dh-modal__close {
	top: 12px;
	right: 12px;
	background: rgba(255,255,255,.96);
	color: #1f2937;
}

/* Stacked body — video on top, textual content below. */
.dh-step-modal__body {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0 0 1.25rem;
}
.dh-step-modal__video-wrap {
	width: 100%;
}
.dh-step-modal__content { min-width: 0; }

/* ============================================================
   TOP-NAV FIX for /documentation-new/
   ------------------------------------------------------------
   The am-theme header renders TWO nested .wpchar-top-nav-main
   containers. On archive templates a cascade lets the inner one
   flex-shrink so the logo can fit at its natural size. On this
   custom page template that shrink doesn't happen — the inner
   nav computes to 100% width and forces the logo (and the whole
   header) into a slightly-wrong compressed layout.
   Fix: force the inner nav to actually shrink like it should.
   ============================================================ */
body.page-template-page-documentation-new .wp-site-blocks > header .wpchar-top-nav-main > .wpchar-top-nav-main {
	min-width: 0 !important;
	flex: 1 1 0 !important;
	width: auto !important;
}

/* Video container — always rendered. Shows iframe if video_url is set,
   otherwise shows the placeholder. */
.dh-step-modal__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
}
.dh-step-modal__video iframe,
.dh-step-modal__video video {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	border: 0 !important;
	background: #000;
	object-fit: contain;
	display: block;
	z-index: 2;
}
.dh-step-modal__video video[hidden] { display: none !important; }
.dh-step-modal__video iframe[hidden] { display: none !important; }
/* Placeholder must sit under the media, so if visible while media is loading, it doesn't cover controls. */
.dh-step-modal__video-placeholder { z-index: 1; }
.dh-step-modal__video-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	background: #f3f4f6;
	color: #9ca3af;
	font-family: Satoshi, sans-serif;
	font-size: .9rem;
	font-weight: 500;
}
.dh-step-modal__video-placeholder[hidden] { display: none; }
.dh-step-modal__video-placeholder svg {
	color: #d1d5db;
}

/* Footer row — bottom-right aligned checkbox (compact, not full-width). */
.dh-step-modal__footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

/* Prev / Next nav buttons — circular, white, hanging off the panel's left/right
   edges. Hidden via JS at step 1 (prev) and last step (next). */
.dh-step-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--dh-border);
	color: var(--dh-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,.12);
	transition: background-color .15s, color .15s, border-color .15s;
	z-index: 3;
	padding: 0;
}
.dh-step-modal__nav:hover {
	background: var(--dh-green);
	color: #fff;
	border-color: var(--dh-green);
}
.dh-step-modal__nav:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 2px;
}
.dh-step-modal__nav--prev { left: -72px; }
.dh-step-modal__nav--next { right: -72px; }

/* On narrower viewports pull the arrows in a bit so they don't clip the viewport edge. */
@media (max-width: 1100px) {
	.dh-step-modal__nav--prev { left: -56px; }
	.dh-step-modal__nav--next { right: -56px; }
}
/* On phones tuck them just inside the panel edges — no room to hang off. */
@media (max-width: 720px) {
	.dh-step-modal__nav--prev { left: 8px; }
	.dh-step-modal__nav--next { right: 8px; }
}
.dh-step-modal__eyebrow {
	display: flex;
	gap: .75rem;
	align-items: center;
	margin-bottom: .5rem;
}
.dh-step-modal__num {
	font-family: Satoshi, sans-serif;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dh-ink);
}
.dh-step-modal__time {
	font-family: Satoshi, sans-serif;
	font-size: .75rem;
	font-weight: 600;
	color: #5fa000;
}
.dh-step-modal__title {
	font-family: Satoshi, sans-serif !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: -.015em;
	color: var(--dh-ink) !important;
	margin: 0 0 .85rem !important;
}
.dh-step-modal__intro {
	font-family: Satoshi, sans-serif !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 27px !important;
	color: rgba(30, 21, 21, 0.6) !important;
	margin: 0 0 1.25rem !important;
}
.dh-step-modal__bullets {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}
.dh-step-modal__bullets li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: .65rem;
	font-family: Satoshi, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--dh-ink);
}
.dh-step-modal__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 6px;
	height: 6px;
	background: var(--dh-green);
	border-radius: 50%;
}
.dh-step-modal__cta {
	display: inline-block;
	font-family: Satoshi, sans-serif;
	font-weight: 500;
	font-size: .95rem;
	color: #31714C;
	text-decoration: underline;
	text-underline-offset: 4px;
	margin-bottom: 1.25rem;
}
.dh-step-modal__cta:hover { color: #1f5b37; }
.dh-step-modal__check {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-family: Satoshi, sans-serif;
	font-size: .9rem;
	font-weight: 500;
	color: var(--dh-ink);
	padding: .4rem .65rem;
	background: transparent;
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
	transition: background-color .15s;
}
.dh-step-modal__check:hover { background: var(--dh-tint); }
.dh-step-modal__check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--dh-green);
	cursor: pointer;
}

.dh-step-video {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	background: var(--dh-cream);
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 1rem 1.25rem;
	transition: border-color .15s;
}
.dh-step-video:hover { border-color: var(--dh-accent); }
.dh-step-video__thumb {
	position: relative;
	width: 96px;
	height: 56px;
	background: #7cc900 url('https://wpcharitable-space.nyc3.cdn.digitaloceanspaces.com/start-here/tour-thumb.png') center/cover no-repeat;
	border-radius: var(--dh-radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
}
.dh-step-video__thumb::before {
	/* Dim overlay so the white play triangle stays legible over the busy card art. */
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .28);
	z-index: 1;
}
.dh-step-video__thumb > svg {
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.dh-step-video__body { flex: 1; }
.dh-step-video__eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dh-navy); }
.dh-step-video__title { font-weight: 700; margin-top: .125rem; }
.dh-step-video__desc { font-size: .85rem; color: var(--dh-mute); }
.dh-step-video__cta { color: var(--dh-navy); font-weight: 600; white-space: nowrap; }

/* ============ TOPIC CARDS ============ */
.dh-topic { gap: 1rem; }
.dh-topic__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.dh-topic__head .dh-icon-badge { flex-shrink: 0; }
.dh-topic__head .dh-h3 { flex: 1; min-width: 0; }
.dh-topic__count {
	flex-shrink: 0;
	font-size: .75rem;
	font-weight: 700;
	background: var(--dh-tint);
	color: var(--dh-ink);
	padding: .25rem .625rem;
	border-radius: 4px;
}
.dh-topic__desc,
.dh-topic__links a,
.dh-release__desc,
.dh-new__desc,
.dh-new__meta,
.dh-featured__desc,
.dh-step__desc,
.dh-step-video__desc,
#getting-started .dh-header p {
	font-family: Satoshi !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 27px !important;
	letter-spacing: 0.30380576848983765px !important;
	color: rgba(30, 21, 21, 0.6) !important;
}
.dh-topic__desc { margin-bottom: .75rem; }
.dh-topic__links { flex: 1; display: flex; flex-direction: column; gap: .375rem; }
.dh-topic__links a { display: flex; gap: .5rem; align-items: flex-start; }
.dh-topic__links a:hover { color: var(--dh-ink) !important; }
.dh-topic__links a::before { content: "\2192"; color: var(--dh-accent); }
.dh-topic__more {
	margin-top: 1rem;
	padding-top: .875rem;
	border-top: 1px solid var(--dh-border);
	font-weight: 600;
	font-size: .9rem;
	color: var(--dh-navy);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .35rem;
}
.dh-topic--compact { position: relative; flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.dh-topic--compact .dh-icon-badge { flex-shrink: 0; }
.dh-topic__compact-body { flex: 1; min-width: 0; padding-right: 2.25rem; /* room for absolute-positioned count */ }
.dh-topic__compact-body .dh-topic__desc { font-size: .825rem; margin: .125rem 0 0; }
.dh-topic--compact .dh-topic__count { position: absolute; top: 1rem; right: 1rem; }

/* ============ FEATURED CARDS ============ */
.dh-featured { padding: 0; overflow: hidden; }
.dh-featured__top {
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.5rem;
}
.dh-featured__top--purple { background: linear-gradient(135deg, #6b7280 0%, #374151 100%); }
.dh-featured__top--green  { background: linear-gradient(135deg, #7cc900 0%, #4f8400 100%); }
.dh-featured__top--navy   { background: linear-gradient(135deg, #2b3d8a 0%, #04194e 100%); }
.dh-featured__top--image  {
	height: 160px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.dh-featured__body { padding: 1.25rem 1.5rem 1.5rem; }
.dh-featured__eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #5fa000; }
.dh-featured__title {
	font-family: Satoshi !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 32.81px !important;
	letter-spacing: -0.015em !important;
	color: #1E1515 !important;
	margin: 1rem 0 !important;
}
.dh-featured__desc  { margin-top: .5rem; font-size: .875rem; color: var(--dh-mute); }

/* ============ WHAT'S NEW ============ */
.dh-new {
	background: #fff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 1.75rem;
	transition: border-color .15s;
}
.dh-new:hover { border-color: var(--dh-accent); }
/* Plain-text label (no background/box) — color now carries the new-vs-updated distinction */
.dh-new__badge {
	display: inline-block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #1f5b37;
}
.dh-new__badge--upd { color: var(--dh-navy); }
.dh-new__title {
	font-family: Satoshi !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 32.81px !important;
	letter-spacing: -0.015em !important;
	color: #1E1515 !important;
	margin: 1rem 0 !important;
}
.dh-new__title a:hover { color: var(--dh-navy) !important; }
.dh-new__desc  { margin-top: .5rem; font-size: .875rem; color: var(--dh-mute); }
.dh-new__meta  { margin-top: .75rem; font-size: .75rem; color: var(--dh-mute); }

/* ============ ADDON RELEASE CARD (more visual than before) ============ */
.dh-release {
	background: #fff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 1.25rem;
	display: flex;
	gap: 1rem;
	align-items: center;
	min-height: 110px;
	height: 100%;
	width: 100%;
	transition: border-color .15s;
}
.dh-release:hover { border-color: var(--dh-accent); }
/* Button-variant for logged-out users — reset native button chrome to match anchor */
.dh-release--button {
	font: inherit;
	color: inherit;
	background: #fff;
	cursor: pointer;
	width: 100%;
	text-align: left;
}
.dh-release--button:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 4px;
}
.dh-release__media {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
}
.dh-release__icon {
	width: 56px;
	height: 56px;
	border-radius: var(--dh-radius);
	background: var(--dh-tint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 8px;
}
.dh-release__icon img { width: 100%; height: 100%; object-fit: contain; }
.dh-release__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .375rem; }
.dh-release__name { font-weight: 700; color: var(--dh-ink); font-size: 1rem; line-height: 1.25; }
.dh-release__meta { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.dh-release__ver  {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .75rem;
	font-weight: 700;
	color: #4f7a00;
	background: rgba(124,201,0,.14);
	padding: .15rem .45rem;
	border-radius: 4px;
}
.dh-release__date { color: var(--dh-ink); font-weight: 700; font-size: .85rem; }
.dh-release__desc { font-size: .85rem; color: var(--dh-mute); line-height: 1.4; }

/* Equal-height grid items: any <li> child of a .dh-grid uses flex so its inner card fills the row height */
.dh-grid > li { display: flex; }

/* ============ FIND DOCS (A-Z addon tiles) ============ */
.dh-addon {
	position: relative;
	background: #fff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 1rem .75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center; /* vertically center icon + name */
	gap: .75rem;
	text-align: center;
	min-height: 148px;
	transition: border-color .15s;
}
.dh-addon:hover { border-color: var(--dh-accent); }
.dh-addon__img  { width: 40px; height: 40px; object-fit: contain; }
.dh-addon__name { font-size: .875rem; font-weight: 600; line-height: 1.25; color: var(--dh-ink); }

/* Plan tier label (Basic / Plus / Pro / Elite) below the addon name */
.dh-addon__plan {
	display: inline-block;
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .15rem .5rem;
	border-radius: 4px;
	line-height: 1.4;
}
.dh-addon__plan--basic { background: #f3f4f6; color: #4a4a4a; }
.dh-addon__plan--plus  { background: #e0e7ff; color: #04194e; }
.dh-addon__plan--pro   { background: #d4e9d8; color: #2c5f3d; }
.dh-addon__plan--elite { background: #fef3c7; color: #92660a; }

/* Badge straddles the bottom border of the tile (floated up 7px) */
.dh-addon .dh-pill {
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}
.dh-pill {
	display: inline-block;
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .25rem .55rem;
	border-radius: 4px;
	background: #1f5b37;
	color: #ffffff;
}
/* Legacy / no-longer-actively-maintained addon — muted grey so it reads
   "still available, older" rather than the same visual weight as "New". */
.dh-pill--legacy {
	background: #6b7280;
	color: #ffffff;
}

/* Extra row-gap on the addon grid so the overlapping badges don't crowd the next row */
.dh-addon-grid { row-gap: 1.75rem !important; }

/* Generous 80px gap modifier — used by Watch and Learn, What's New, Editor's Picks */
.dh-grid--gap-xl { gap: 80px; }
@media (max-width: 1024px) { .dh-grid--gap-xl { gap: 40px; } }
@media (max-width: 768px)  { .dh-grid--gap-xl { gap: 24px; } }

/* ============ VIDEO STRIP — prod /documentation "photo" pattern ============ */
.dh-video {
	display: block;
}
.dh-video__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 8;
	border-radius: var(--dh-radius);
	overflow: hidden;
	background: #1c1c1c;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dh-video__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dh-video__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.35) 100%);
	pointer-events: none;
}
.dh-video__play {
	position: relative;
	z-index: 2;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255,255,255,.96);
	color: var(--dh-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,.18);
	transition: transform .15s;
}
.dh-video:hover .dh-video__play { transform: scale(1.06); }
.dh-video__body { padding: 1rem 0 0; color: var(--dh-ink); }
.dh-video__eyebrow { font-size: .8rem; color: var(--dh-mute); }
.dh-video__title   { font-weight: 700; margin-top: .25rem; color: var(--dh-ink); font-size: 1rem; }

/* Button-style video tile (modal trigger) — reset default button chrome */
.dh-video--button {
	all: unset;
	display: block;
	cursor: pointer;
	width: 100%;
	text-align: left;
	font: inherit;
}
.dh-video--button:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 4px;
	border-radius: var(--dh-radius);
}

/* ============ MODAL (YouTube player + login prompt) ============ */
.dh-modal[hidden] { display: none; }
.dh-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}
.dh-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .72);
	backdrop-filter: blur(4px);
	cursor: pointer;
}
.dh-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.dh-modal__close {
	position: absolute;
	top: -42px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	border: 0;
	color: #1f2937;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
	z-index: 2;
}
.dh-modal__close:hover { background: #fff; }
.dh-modal__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}
.dh-modal__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Login-prompt modal variant (lighter, smaller, white panel) */
.dh-modal--prompt .dh-modal__panel {
	background: #fff;
	max-width: 440px;
	padding: 1.5rem 1.75rem 1.75rem;
}
.dh-modal--prompt .dh-modal__close {
	top: 12px;
	right: 12px;
}
.dh-modal__title {
	font-family: Satoshi, sans-serif !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	margin: 0 0 .5rem !important;
	color: var(--dh-ink);
}
.dh-modal__body {
	color: var(--dh-mute);
	margin: 0 0 1.25rem;
	line-height: 1.5;
}
.dh-modal__actions {
	display: flex;
	gap: .5rem;
	justify-content: flex-end;
}
.dh-modal__btn {
	font-family: Satoshi, sans-serif;
	font-weight: 500;
	font-size: .95rem;
	padding: .6rem 1.1rem;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
.dh-modal__btn--primary {
	background: #31714C;
	color: #fff;
}
.dh-modal__btn--primary:hover { background: #1f5b37; }
.dh-modal__btn--ghost {
	background: transparent;
	color: var(--dh-mute);
	border: 1px solid var(--dh-border);
}
.dh-modal__btn--ghost:hover {
	background: var(--dh-tint);
}

/* ============ CATEGORY INDEX (page-documentation-categories.php) ============ */
.dh-card--cat {
	display: block;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--dh-border);
	border-radius: var(--dh-radius);
	background: #fff;
	text-decoration: none;
	transition: border-color .15s, transform .15s;
}
.dh-card--cat:hover {
	border-color: var(--dh-accent);
	transform: translateY(-2px);
}
.dh-grid--gap-lg { gap: 1.5rem; }
.dh-container--narrow { max-width: 720px; margin: 0 auto; }

/* ============ DEV CALLOUT ============ */
.dh-dev {
	background: #fff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1.5rem;
	align-items: center;
}
.dh-dev__title { margin-top: .5rem; }
.dh-dev__desc { margin-top: .75rem; color: var(--dh-mute); max-width: 60ch; }
.dh-dev__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 768px) {
	.dh-dev { grid-template-columns: 1fr; }
}

/* WPCode library mention sitting below the developer box */
.dh-dev-footer {
	text-align: center;
	margin-top: 15px;
	font-size: .95rem;
	color: var(--dh-mute);
	line-height: 1.5;
}
.dh-dev-footer a {
	font-weight: 700;
	color: var(--dh-ink);
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 1px;
}
.dh-dev-footer a:hover { color: #31714C; }

/* ============ SUPPORT FOOTER ============ */
.dh-support-row {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.25rem;
}
@media (max-width: 768px) { .dh-support-row { grid-template-columns: 1fr; } }
.dh-support {
	background: linear-gradient(135deg, #0a2670 0%, var(--dh-navy) 100%);
	color: #fff;
	border-radius: var(--dh-radius);
	padding: 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.dh-support h2 { color: #fff; }
.dh-support p { color: rgba(255,255,255,.78); margin-top: .5rem; max-width: 480px; }
.dh-aside {
	background: #fff;
	border: 2px solid var(--dh-border);
	border-radius: var(--dh-radius);
	padding: 1.5rem;
}
.dh-aside h3 { margin-top: .375rem; }
.dh-aside p  { margin-top: .5rem; font-size: .9rem; color: var(--dh-mute); }
.dh-aside a.dh-link { margin-top: 1rem; display: inline-block; }
