/* ==========================================================================
   DoodleHive theme styles
   Design tokens (colors/fonts) live in theme.json; this file covers layout,
   grid/card, and component rules that theme.json can't express.
   ========================================================================== */

:root {
	--dh-mint: #B3E7D0;
	--dh-yellow: #F7DE7A;
	--dh-pink: #CC3366;
	--dh-ink: #1A1A1A;
	--dh-cream: #FFFBF2;
	--dh-radius: 16px;
	/* v4: no page-wide cap. The sidebar + ad-rail grid in header.php/footer.php
	   already constrains width responsively — every "max-width: var(--dh-container)"
	   rule below (hero, grid, single, ad slots, etc.) now resolves to `none`,
	   so content flows the full width of whatever column it's actually in. */
	--dh-container: none;
}

/*
 * Desktop sidebar collapse toggle (#dh-sidenav-collapse / #dh-sidenav-expand
 * in header.php, state in assets/js/nav.js). Plain CSS on purpose: this is
 * a JS-toggled state, and Tailwind utilities toggled at runtime only work
 * if Tailwind's build-time scanner already saw that exact class string in
 * a scanned file — easy to get wrong. A real class here just works, and
 * being unlayered it overrides the sidebar's Tailwind width utilities
 * without needing `!` (unlayered normal already beats layered normal).
 * Mobile is untouched — this only ever applies at the lg breakpoint where
 * the sidebar is a permanent rail instead of a drawer.
 */
#dh-sidenav {
	transition: width 0.25s ease, margin 0.25s ease, padding 0.25s ease, opacity 0.2s ease, border-width 0.25s ease;
}

.dh-sidenav-expand-btn {
	display: none;
}

@media (min-width: 1024px) {
	body.dh-sidenav-collapsed #dh-sidenav {
		width: 0;
		min-width: 0;
		margin-left: 0;
		padding-left: 0;
		padding-right: 0;
		border-width: 0;
		opacity: 0;
		overflow: hidden;
		pointer-events: none;
	}

	body.dh-sidenav-collapsed .dh-sidenav-expand-btn {
		display: flex;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
}

a {
	text-decoration: none;
}

.dh-main,
.dh-header__brand,
.dh-header__nav-row,
.dh-footer__top,
.dh-footer__bottom {
	max-width: var(--dh-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.dh-main {
	padding-block: 32px 64px;
}

/* Top banner */
.dh-banner {
	background: var(--dh-mint);
	color: var(--dh-ink);
	text-align: center;
	font-weight: 600;
	padding: 12px 16px;
	font-size: 0.95rem;
}

.dh-banner a {
	color: inherit;
}

.dh-banner a:hover {
	text-decoration: underline;
}

/* Header */
.dh-header {
	border-bottom: 1px solid #eee;
}

.dh-header__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding-block: 20px;
}

.dh-logo {
	display: inline-flex;
	align-items: center;
}

.dh-logo__img {
	height: 48px;
	width: auto;
	display: block;
}

.dh-header__nav-row {
	display: flex;
	justify-content: center;
	border-top: 1px solid #eee;
	padding-block: 4px;
}

.dh-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.dh-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--dh-ink);
	font-weight: 500;
}

.dh-nav__list .menu-item-has-children > a::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.55;
}

.dh-nav__list a:hover,
.dh-nav__list .current-menu-item > a,
.dh-nav__list .current-menu-ancestor > a {
	background: var(--dh-yellow);
}

.dh-nav__list li {
	position: relative;
}

.dh-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	min-width: 180px;
	display: none;
	z-index: 20;
}

.dh-nav__list li:hover > ul,
.dh-nav__list li:focus-within > ul {
	display: block;
}

.dh-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.dh-nav-toggle__bar {
	width: 24px;
	height: 3px;
	background: var(--dh-ink);
	border-radius: 2px;
}

/* Hero */
.dh-hero {
	max-width: var(--dh-container);
	margin: 0 auto 40px;
	padding-inline: 24px;
}

.dh-hero h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin-bottom: 16px;
}

.dh-hero p {
	max-width: 65ch;
	color: #444;
}

/* Sections */
.dh-section {
	max-width: var(--dh-container);
	margin: 0 auto 48px;
	padding-inline: 24px;
}

.dh-section h2,
.dh-archive-header h1 {
	margin-bottom: 20px;
}

.dh-archive-header {
	max-width: var(--dh-container);
	margin: 0 auto;
	padding: 8px 24px 0;
}

.dh-archive-intro p {
	color: #333;
	line-height: 1.7;
	margin-bottom: 12px;
}

.dh-archive-intro__meta {
	font-size: 0.9rem;
	color: #555;
}

/* Category tiles (home page) */
.dh-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.dh-tile {
	border-radius: var(--dh-radius);
	padding: 28px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--dh-ink);
	transition: transform 0.15s ease;
}

.dh-tile:hover {
	transform: translateY(-4px);
}

.dh-tile--mint {
	background: var(--dh-mint);
}

.dh-tile--yellow {
	background: var(--dh-yellow);
}

.dh-tile--pink {
	background: #f6d9e2;
}

.dh-tile__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.25rem;
}

.dh-tile__count {
	font-size: 0.9rem;
	opacity: 0.75;
}

/* Category chips (sub-terms) */
.dh-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: var(--dh-container);
	margin: 0 auto 24px;
	padding-inline: 24px;
}

.dh-chip {
	background: var(--dh-cream);
	border: 1px solid #eee;
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 500;
	color: var(--dh-ink);
}

.dh-chip:hover {
	background: var(--dh-yellow);
}

/* Breadcrumbs */
.dh-breadcrumbs {
	max-width: var(--dh-container);
	margin: 0 auto;
	padding: 16px 24px 0;
	font-size: 0.9rem;
	color: #666;
}

.dh-breadcrumbs a {
	color: #666;
}

.dh-breadcrumbs__sep {
	margin: 0 8px;
}

/* Card grid */
.dh-grid {
	max-width: var(--dh-container);
	margin: 0 auto;
	padding-inline: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 24px;
}

.dh-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--dh-ink);
}

.dh-card__thumb {
	display: block;
	aspect-ratio: 480 / 680;
	border-radius: var(--dh-radius);
	overflow: hidden;
	background: var(--dh-cream);
	border: 1px solid #f0e6c8;
}

.dh-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.dh-card:hover .dh-card__thumb img {
	transform: scale(1.04);
}

.dh-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
}

/* Book-builder drag-to-reorder (assets/js/book-generate.js). The dragged
   card's position/transform are driven inline by JS (it needs to track
   the pointer every frame) — this just adds the "picked up" look on top.
   The placeholder is the dashed gap left behind in the grid; it reuses
   the real card's classes for identical sizing, so this only needs to
   override the parts that make it read as an empty drop target — and
   since style.css is unlayered, it wins over those Tailwind utilities
   without needing any !-important tricks. */
.dh-book-row--dragging {
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
	cursor: grabbing;
}

.dh-book-row--placeholder {
	border: 2px dashed var(--dh-pink);
	background: rgba(204, 51, 102, 0.06);
	box-shadow: none;
}

.dh-book-row--placeholder > * {
	visibility: hidden;
}

.dh-load-more {
	max-width: var(--dh-container);
	margin: 40px auto 48px;
	padding-inline: 24px;
	text-align: center;
}

/*
 * A real, crawlable link to the next archive page — works as plain
 * navigation with no JS, and load-more.js upgrades a click into an
 * in-place fetch-and-append. Visible pill button: this site uses a click
 * to load the next batch rather than auto-loading on scroll, so the
 * button needs to actually read as something to click.
 */
.dh-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	border-radius: 999px;
	background: linear-gradient(135deg, #E8B923, #4CAF7D, #4A90D9);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(74, 144, 217, 0.35);
	transition: transform 0.15s ease;
}

.dh-load-more-btn:hover {
	transform: scale(1.03);
}

.dh-load-more-btn.is-loading {
	opacity: 0.7;
	cursor: default;
}

/* Buttons */
.dh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--heading);
	border: 2px solid transparent;
	cursor: pointer;
	font-size: 1rem;
}

.dh-btn--pink {
	background: var(--dh-pink);
	color: #fff;
}

.dh-btn--pink:hover {
	background: #a3264f;
}

.dh-btn--outline {
	background: transparent;
	border-color: var(--dh-ink);
	color: var(--dh-ink);
}

.dh-btn--mint {
	background: var(--dh-mint);
	color: var(--dh-ink);
}

.dh-btn--mint:hover {
	background: #93d4b6;
}

.dh-btn--outline:hover {
	background: var(--dh-ink);
	color: #fff;
}

/*
 * Single coloring page — a "hero" row (image left, breadcrumb/title/term/
 * excerpt/buttons right) with the full post body running underneath at
 * full width, so a long body never leaves a growing empty gap under the
 * shorter image column.
 */
.dh-single {
	max-width: var(--dh-container);
	margin: 0 auto;
	padding-inline: 24px;
}

/*
 * Space before "More Coloring Pages" below. Can't rely on that section's
 * own margin-top alone: single_bottom_ad sits between them in the markup
 * and renders nothing at all when that ad slot isn't configured, which
 * otherwise left this article's bottom edge touching the next section
 * with zero gap. `~` (not `+`) so this still applies whether or not the
 * ad slot actually renders something in between.
 */
.dh-single ~ .dh-section {
	margin-top: 40px;
}

.dh-single__hero {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 40px;
	align-items: start;
}

.dh-single__info {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40, 1rem);
}

.dh-single__image {
	border-radius: var(--dh-radius);
	overflow: hidden;
	background: var(--dh-cream);
}

.dh-single__img {
	width: 100%;
	height: auto;
	display: block;
}

.dh-single__actions {
	display: flex;
	gap: 12px;
	margin: 0;
	flex-wrap: wrap;
}

.dh-single__info h1 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/*
 * Breadcrumbs default to a full-width centered bar (see the plain rule
 * above) — reset that when they sit inside the narrower info column.
 * .dh-single__info lays its children out with `gap` (see above), so every
 * child's own margin is zeroed here rather than stacking on top of it.
 */
.dh-single__info .dh-breadcrumbs {
	max-width: none;
	margin: 0;
	padding: var(--wp--preset--spacing--20, 0.5rem) 0 0;
}

.dh-single__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.dh-single__term-pill {
	border-radius: 999px;
	background: var(--dh-mint);
	color: var(--dh-ink);
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 700;
}

.dh-single__excerpt {
	color: #555;
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0;
}

.dh-single__content {
	margin-top: var(--wp--preset--spacing--60, 2.25rem);
	padding-top: var(--wp--preset--spacing--60, 2.25rem);
	border-top: 1px solid rgba(26, 26, 26, 0.08);
}

@media (max-width: 782px) {
	.dh-single__hero {
		grid-template-columns: 1fr;
	}
}

/* Content pages — About, Contact, Privacy Policy, Terms of Use, etc. */
.dh-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

.dh-page h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin-bottom: 24px;
}

/*
 * Shared rich-text typography, for any area rendering free-form editor
 * content: a coloring page's own description (.dh-single__content), and
 * page/post bodies (.dh-page__content — About, Privacy Policy, Terms,
 * blog posts). One ruleset so spacing and type stay consistent everywhere
 * an editor drops in paragraphs/headings/lists, instead of each area
 * needing its own hand-tuned margins.
 *
 * Spacing comes from the theme's own preset scale (theme.json
 * settings.spacing.spacingSizes, exposed as --wp--preset--spacing--*) and
 * headings already pick up the brand heading font/weight globally from
 * theme.json's styles.elements.heading — this only adds the vertical
 * rhythm around them.
 */
.dh-single__content,
.dh-page__content {
	color: #333;
	font-size: 1rem;
	line-height: 1.7;
}

/*
 * .dh-single__content also carries Tailwind's `text-lg leading-relaxed`
 * in the PHP template — a plain CSS rule here on the same properties wins
 * over that Tailwind utility regardless of specificity (unlayered CSS vs.
 * a @layer, see the cascade-layers note atop single-dh_col_pgs.php), so
 * this reproduces those same values rather than silently dropping them.
 */
.dh-single__content {
	font-size: 1.125rem;
	line-height: 1.625;
}

/*
 * Collapsed preview state — content-toggle.js adds this class (only when
 * the body is actually taller than the clamp; short posts never get it)
 * and inserts the toggle button right after this element. A fixed
 * min+max height keeps the preview a consistent size across posts, with a
 * fade so the cut-off reads as "there's more" rather than a hard clip —
 * lets a reader skip a long write-up and get straight to "More Coloring
 * Pages" below instead of scrolling through the whole thing first.
 */
.dh-single__content.dh-content-collapsed {
	position: relative;
	min-height: 260px;
	max-height: 260px;
	overflow: hidden;
}

.dh-single__content.dh-content-collapsed::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 100px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 85%);
	pointer-events: none;
}

.dh-content-toggle-btn {
	display: flex;
	margin: var(--wp--preset--spacing--40, 1rem) auto 0;
	padding: 10px 24px;
	border: 2px solid var(--dh-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--dh-ink);
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.dh-content-toggle-btn:hover {
	background: var(--dh-ink);
	color: #fff;
	transform: scale(1.03);
}

.dh-single__content > *:first-child,
.dh-page__content > *:first-child {
	margin-top: 0;
}

.dh-single__content > *:last-child,
.dh-page__content > *:last-child {
	margin-bottom: 0;
}

.dh-single__content p,
.dh-page__content p {
	margin: 0 0 var(--wp--preset--spacing--40, 1rem);
}

.dh-single__content h2,
.dh-page__content h2 {
	margin: var(--wp--preset--spacing--60, 2.25rem) 0 var(--wp--preset--spacing--30, 0.75rem);
	font-size: 1.35rem;
	line-height: 1.3;
}

.dh-single__content h3,
.dh-page__content h3 {
	margin: var(--wp--preset--spacing--50, 1.5rem) 0 var(--wp--preset--spacing--20, 0.5rem);
	font-size: 1.15rem;
	line-height: 1.3;
}

.dh-single__content h4,
.dh-page__content h4 {
	margin: var(--wp--preset--spacing--40, 1rem) 0 var(--wp--preset--spacing--20, 0.5rem);
	font-size: 1rem;
	line-height: 1.3;
}

/*
 * Tailwind's preflight resets every `ul`/`ol` to `list-style: none` with no
 * padding site-wide — fine for nav/card markup built from lists, but it
 * means editor content (Gutenberg's List block included) renders with no
 * bullets/numbers at all instead of just losing browser default spacing.
 * Restore real markers here, scoped to editor content only.
 */
.dh-single__content ul,
.dh-page__content ul {
	list-style-type: disc;
}

.dh-single__content ol,
.dh-page__content ol {
	list-style-type: decimal;
}

.dh-single__content ul ul,
.dh-page__content ul ul {
	list-style-type: circle;
}

.dh-single__content ul,
.dh-single__content ol,
.dh-page__content ul,
.dh-page__content ol {
	margin: 0 0 var(--wp--preset--spacing--40, 1rem);
	padding-left: 1.5em;
	list-style-position: outside;
}

.dh-single__content li,
.dh-page__content li {
	margin-bottom: var(--wp--preset--spacing--20, 0.5rem);
}

.dh-single__content li > ul,
.dh-single__content li > ol,
.dh-page__content li > ul,
.dh-page__content li > ol {
	margin-top: var(--wp--preset--spacing--20, 0.5rem);
	margin-bottom: 0;
}

.dh-single__content blockquote,
.dh-page__content blockquote {
	margin: var(--wp--preset--spacing--40, 1rem) 0;
	padding-left: var(--wp--preset--spacing--40, 1rem);
	border-left: 3px solid var(--dh-mint);
	color: #555;
	font-style: italic;
}

.dh-single__content blockquote cite,
.dh-page__content blockquote cite {
	display: block;
	margin-top: var(--wp--preset--spacing--20, 0.5rem);
	font-style: normal;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--dh-ink);
}

.dh-single__content strong,
.dh-page__content strong {
	font-weight: 700;
}

.dh-single__content a,
.dh-page__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dh-single__content hr,
.dh-page__content hr {
	margin: var(--wp--preset--spacing--50, 1.5rem) 0;
	border: none;
	border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.dh-single__content img,
.dh-page__content img {
	max-width: 100%;
	height: auto;
	margin: var(--wp--preset--spacing--40, 1rem) 0;
	border-radius: var(--dh-radius);
}

.dh-single__content figure,
.dh-page__content figure {
	margin: var(--wp--preset--spacing--40, 1rem) 0;
}

.dh-single__content figure img,
.dh-page__content figure img {
	margin: 0;
}

.dh-single__content figcaption,
.dh-page__content figcaption {
	margin-top: var(--wp--preset--spacing--20, 0.5rem);
	color: #777;
	font-size: 0.85rem;
	text-align: center;
}

.dh-single__content table,
.dh-page__content table {
	width: 100%;
	margin: 0 0 var(--wp--preset--spacing--40, 1rem);
	border-collapse: collapse;
}

.dh-single__content th,
.dh-single__content td,
.dh-page__content th,
.dh-page__content td {
	padding: 8px 12px;
	border: 1px solid rgba(26, 26, 26, 0.12);
	text-align: left;
}

.dh-single__content th,
.dh-page__content th {
	background: var(--dh-cream);
	font-weight: 700;
}

.dh-single__content code,
.dh-page__content code {
	background: var(--dh-cream);
	border-radius: 4px;
	padding: 0.15em 0.4em;
	font-size: 0.9em;
}

.dh-single__content pre,
.dh-page__content pre {
	margin: 0 0 var(--wp--preset--spacing--40, 1rem);
	padding: var(--wp--preset--spacing--30, 0.75rem);
	border-radius: var(--dh-radius);
	background: var(--dh-cream);
	overflow-x: auto;
}

.dh-single__content pre code,
.dh-page__content pre code {
	background: none;
	padding: 0;
}

/* Shop page — printed books cross-promoted from the site, sold on Amazon */
.dh-shop-books {
	margin-top: var(--wp--preset--spacing--50, 1.5rem);
}

.dh-shop-book {
	display: grid;
	grid-template-columns: minmax(0, 240px) 1fr;
	gap: 32px;
	align-items: start;
	padding: 24px;
	border-radius: var(--dh-radius);
	border: 1px solid rgba(26, 26, 26, 0.08);
	background: var(--dh-cream);
}

.dh-shop-book__media {
	display: block;
	border-radius: calc(var(--dh-radius) - 4px);
	overflow: hidden;
}

.dh-shop-book__media img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.2s ease;
}

.dh-shop-book__media:hover img {
	transform: scale(1.03);
}

.dh-shop-book__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--dh-mint);
	color: var(--dh-ink);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dh-shop-book__info h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.dh-shop-book__info p {
	margin: 0 0 16px;
	color: #333;
	line-height: 1.6;
}

.dh-shop-book__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--dh-pink);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(204, 51, 102, 0.3);
	transition: transform 0.15s ease;
}

.dh-shop-book__cta:hover {
	transform: scale(1.03);
}

.dh-shop-book__disclosure {
	margin: 12px 0 0 !important;
	color: #888 !important;
	font-size: 0.8rem !important;
}

@media (max-width: 600px) {
	.dh-shop-book {
		grid-template-columns: 1fr;
	}
}

/* Ad slots */
.dh-ad-slot {
	max-width: var(--dh-container);
	margin: 32px auto;
	padding-inline: 24px;
	text-align: center;
	overflow: hidden;
}

/* Footer */
.dh-footer {
	border-top: 1px solid #eee;
	margin-top: 48px;
	background: var(--dh-cream);
}

.dh-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-block: 48px 32px;
}

.dh-footer__col--brand .dh-logo__img {
	height: 40px;
}

.dh-footer__tagline {
	margin: 16px 0 0;
	color: #666;
	max-width: 32ch;
	line-height: 1.6;
}

.dh-footer__heading {
	font-size: 1rem;
	margin: 0 0 16px;
}

.dh-footer__col .dh-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dh-footer__col .dh-footer__list a {
	color: #555;
}

.dh-footer__col .dh-footer__list a:hover {
	color: var(--dh-pink);
}

.dh-footer__bottom {
	border-top: 1px solid #eee;
	padding-block: 20px;
}

.dh-footer__copy {
	color: #999;
	font-size: 0.9rem;
	margin: 0;
}

@media (max-width: 782px) {
	.dh-footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* Responsive nav */
@media (max-width: 782px) {
	.dh-nav-toggle {
		display: flex;
	}

	.dh-header__nav-row {
		display: none;
	}

	.dh-header__nav-row.is-open {
		display: flex;
	}

	.dh-nav__list {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.dh-nav__list ul {
		position: static;
		box-shadow: none;
		display: block;
		margin-left: 12px;
	}
}

/* Blog pagination — WP core gives this no styling of its own. Two
   different markup shapes both need covering here: the_posts_pagination()
   (home.php) outputs flat <a class="page-numbers">/<span class="page-numbers
   current"> links straight inside a <div class="nav-links">, while
   paginate_links(['type' => 'list']) (template-blog.php) wraps the same
   .page-numbers links in <li> inside a <ul class="page-numbers">. Styling
   a.page-numbers/span.page-numbers directly (rather than via a
   .page-numbers ancestor) is what makes one ruleset work for both. */
.nav-links,
ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.page-numbers li {
	display: flex;
}

a.page-numbers,
span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 12px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.7);
	color: var(--dh-ink);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

a.page-numbers:hover {
	background: var(--dh-mint);
}

.page-numbers.current {
	background: var(--dh-pink);
	border-color: var(--dh-pink);
	color: #fff;
}
