/* ==========================================================================
   Dottie's Hog Hospital - supplementary styles
   Global colours, fonts and spacing are set in theme.json (editable in
   Appearance → Editor → Styles). This file adds layout details, block style
   variations, decorative touches and gentle motion.
   ========================================================================== */

:root {
	--dlhh-radius-s: 12px;
	--dlhh-radius-m: 22px;
	--dlhh-radius-l: 36px;
	--dlhh-ease: cubic-bezier(.2, .7, .2, 1);
	--dlhh-hog: url("../images/hedgehog.svg");
	--dlhh-leaf: url("../images/leaf.svg");
	--dlhh-wave: url("../images/wave.svg");
	--dlhh-actionbar-h: 0px;
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Headings: Fraunces with its friendly soft optical axis. */
h1, h2, h3, h4, .wp-block-site-title, .dlhh-footer__brand {
	font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
	text-wrap: balance;
}
p, li { text-wrap: pretty; }

/* --- Accessibility -------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, .wp-block-button__link, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--woodland-dark);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--sunshine);
	border-radius: 6px;
}
.has-woodland-dark-background-color :focus-visible,
.has-woodland-background-color :focus-visible,
.dlhh-rescue :focus-visible {
	outline-color: var(--wp--preset--color--sunshine);
	box-shadow: 0 0 0 6px var(--wp--preset--color--woodland-dark);
}
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--sunshine); color: var(--wp--preset--color--woodland-dark); }

a { text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; transition: color .2s ease, text-decoration-color .2s ease; }

/* --- Buttons ------------------------------------------------------------- */
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	transition: transform .25s var(--dlhh-ease), background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.wp-block-button__link, .wp-block-navigation-item__content { white-space: nowrap; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(23, 52, 38, .55); }
.wp-block-button__link:active { transform: translateY(0); }

.wp-block-button.is-style-donate .wp-block-button__link {
	background: var(--wp--preset--color--apricot);
	color: var(--wp--preset--color--woodland-dark);
}
.wp-block-button.is-style-donate .wp-block-button__link:hover,
.wp-block-button.is-style-donate .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--sunshine);
	color: var(--wp--preset--color--woodland-dark);
}
.wp-block-button.is-style-soft .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--woodland);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--woodland);
}
.wp-block-button.is-style-soft .wp-block-button__link:hover {
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--woodland-dark);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--woodland), 0 10px 22px -12px rgba(23, 52, 38, .55);
}
.wp-block-button.is-style-call .wp-block-button__link {
	background: var(--wp--preset--color--woodland);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-call .wp-block-button__link::before,
.dlhh-phone-icon::before {
	content: "";
	width: 1.15em;
	height: 1.15em;
	flex: none;
	background: currentColor;
	-webkit-mask: url("../images/phone.svg") center / contain no-repeat;
	mask: url("../images/phone.svg") center / contain no-repeat;
}
/* Light buttons on dark backgrounds */
.has-woodland-background-color .wp-block-button.is-style-call .wp-block-button__link,
.has-woodland-dark-background-color .wp-block-button.is-style-call .wp-block-button__link,
.dlhh-rescue .wp-block-button.is-style-call .wp-block-button__link {
	background: var(--wp--preset--color--sunshine);
	color: var(--wp--preset--color--woodland-dark);
}
.has-woodland-background-color .wp-block-button.is-style-soft .wp-block-button__link,
.has-woodland-dark-background-color .wp-block-button.is-style-soft .wp-block-button__link,
.dlhh-rescue .wp-block-button.is-style-soft .wp-block-button__link {
	color: var(--wp--preset--color--cream);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--cream);
}
.has-woodland-background-color .wp-block-button.is-style-soft .wp-block-button__link:hover,
.dlhh-rescue .wp-block-button.is-style-soft .wp-block-button__link:hover {
	background: rgba(251, 246, 236, .12);
	color: var(--wp--preset--color--white);
}
.dlhh-big-buttons .wp-block-button__link { font-size: 1.15rem; padding: 1.1rem 1.9rem; min-height: 56px; }

/* --- Header -------------------------------------------------------------- */
.dlhh-topbar { padding-block: .55rem; font-size: .9375rem; text-align: center; }
.dlhh-topbar p { margin: 0; }
.dlhh-topbar a { color: var(--wp--preset--color--sunshine); font-weight: 700; }
.dlhh-topbar a:hover { color: var(--wp--preset--color--white); }
.dlhh-topbar__sep { opacity: .5; margin-inline: .35em; }

.dlhh-header { padding-block: .9rem; background: var(--wp--preset--color--cream); }
.dlhh-header__inner { gap: 1.25rem; }
.dlhh-header__nav { gap: 1.25rem; flex-shrink: 0; }
.dlhh-main-nav .wp-block-navigation__container { column-gap: 1.35rem; }
.dlhh-brand { gap: .75rem; flex-shrink: 0; }
.dlhh-brand .wp-block-site-title { margin: 0; max-width: 11.5em; }
.dlhh-brand .wp-block-site-title a { display: inline-flex; align-items: center; gap: .6rem; }
.dlhh-brand .wp-block-site-title a::before {
	content: "";
	width: 3.1rem;
	aspect-ratio: 128 / 80;
	flex: none;
	background: var(--dlhh-hog) center / contain no-repeat;
	transition: transform .5s var(--dlhh-ease);
}
.dlhh-brand .wp-block-site-title a:hover::before { transform: translateX(3px) rotate(-4deg); }
.wp-custom-logo .dlhh-brand .wp-block-site-title { display: none; } /* A real logo replaces the temporary text identity. */

.dlhh-main-nav .wp-block-navigation-item__content { padding-block: .35rem; position: relative; text-decoration: none; }
.dlhh-main-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--wp--preset--color--apricot);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--dlhh-ease);
}
.dlhh-main-nav .wp-block-navigation-item__content:hover::after,
.dlhh-main-nav .current-menu-item > .wp-block-navigation-item__content::after,
.dlhh-main-nav [aria-current="page"]::after { transform: scaleX(1); }
.dlhh-main-nav .wp-block-navigation__responsive-container-open,
.dlhh-main-nav .wp-block-navigation__responsive-container-close {
	width: 48px; height: 48px; place-items: center;
	border-radius: 50%; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--woodland-dark);
}
.dlhh-main-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.dlhh-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.75rem;
}
.dlhh-header__actions { gap: .6rem; }
.dlhh-header__actions .wp-block-button__link { padding: .7rem 1.2rem; font-size: 1rem; }

@media (min-width: 782px) {
	.dlhh-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
	.dlhh-site-header .dlhh-header { box-shadow: 0 1px 0 rgba(36, 80, 58, .1); }
}
/* Collapse the menu to a button on tablets as well as phones. */
/* "Found a Hedgehog?" sits in the header on wide screens; the top bar always carries it too. */
@media (max-width: 1339px) { .dlhh-header__actions .dlhh-found-btn { display: none; } }
/* Collapse the menu to a button below 1100px, placed at the far right. */
@media (max-width: 1099px) {
	.dlhh-header__nav .dlhh-main-nav { order: 2; }
	.dlhh-header__nav .dlhh-header__actions { order: 1; }
}
@media (min-width: 600px) and (max-width: 1099px) {
	.dlhh-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-grid; }
	.dlhh-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
	.dlhh-brand .wp-block-site-title { font-size: 1.2rem; }
	.dlhh-main-nav .wp-block-navigation__container { column-gap: 1.05rem; }
	.dlhh-main-nav { font-size: 1rem; }
}
@media (max-width: 599px) {
	.wp-block-buttons.dlhh-header__actions { display: none; }
	.dlhh-brand .wp-block-site-title { font-size: 1.125rem; }
	.dlhh-brand .wp-block-site-title a::before { width: 2.5rem; }
}

/* --- Mobile action bar ----------------------------------------------------- */
.wp-block-group.dlhh-action-bar { display: none; }
@media (max-width: 781px) {
	:root { --dlhh-actionbar-h: 76px; }
	body { padding-bottom: calc(var(--dlhh-actionbar-h) + env(safe-area-inset-bottom)); }
	.wp-block-group.dlhh-action-bar {
		display: flex;
		position: fixed;
		z-index: 60;
		left: 0; right: 0; bottom: 0;
		padding: .65rem max(.75rem, env(safe-area-inset-left)) calc(.65rem + env(safe-area-inset-bottom));
		background: rgba(251, 246, 236, .97);
		box-shadow: 0 -8px 24px -12px rgba(23, 52, 38, .35);
		border-top: 1px solid rgba(36, 80, 58, .12);
	}
	.dlhh-action-bar .wp-block-buttons { width: 100%; gap: .6rem; }
	.dlhh-action-bar .wp-block-button { flex: 1 1 0; }
	.dlhh-action-bar .wp-block-button__link { width: 100%; padding: .8rem .6rem; }
}

/* --- Sections & layout ----------------------------------------------------- */
.dlhh-main { margin-block-start: 0; }
.dlhh-main > .wp-block-post-content > :first-child { margin-block-start: 0; }
.dlhh-section { padding-block: var(--wp--preset--spacing--60); }
.dlhh-section--tight { padding-block: var(--wp--preset--spacing--50); }
.dlhh-section > .wp-block-heading:first-child,
.dlhh-section > .dlhh-eyebrow:first-child { margin-top: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

.dlhh-eyebrow {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .875rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rosehip);
	margin-bottom: .25rem;
}
.dlhh-eyebrow::before {
	content: "";
	width: 1.1rem; height: 1.1rem;
	background: var(--wp--preset--color--sage-mid);
	-webkit-mask: var(--dlhh-leaf) center / contain no-repeat;
	mask: var(--dlhh-leaf) center / contain no-repeat;
}
.has-text-align-center.dlhh-eyebrow, .has-text-align-center > .dlhh-eyebrow { justify-content: center; }
.has-woodland-background-color .dlhh-eyebrow, .has-woodland-dark-background-color .dlhh-eyebrow, .dlhh-rescue .dlhh-eyebrow { color: var(--wp--preset--color--sunshine); }
.dlhh-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.55; }

.has-woodland-background-color :where(h1, h2, h3, h4),
.has-woodland-dark-background-color :where(h1, h2, h3, h4) { color: var(--wp--preset--color--cream); }
.has-woodland-background-color a:not(.wp-block-button__link),
.has-woodland-dark-background-color a:not(.wp-block-button__link) { color: var(--wp--preset--color--sunshine); }
.has-woodland-background-color a:not(.wp-block-button__link):hover,
.has-woodland-dark-background-color a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--white); }

/* Curved section edges (decorative only). */
.dlhh-wave-top, .dlhh-wave-bottom { position: relative; isolation: isolate; }
.dlhh-wave-top { margin-top: clamp(30px, 5vw, 70px) !important; }
.dlhh-wave-bottom { margin-bottom: clamp(30px, 5vw, 70px) !important; }
.dlhh-wave-top::before,
.dlhh-wave-bottom::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: clamp(30px, 5vw, 70px);
	background: inherit;
	-webkit-mask: var(--dlhh-wave) center bottom / 100% 100% no-repeat;
	mask: var(--dlhh-wave) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}
.dlhh-wave-top::before { bottom: calc(100% - 1px); }
.dlhh-wave-bottom::after { top: calc(100% - 1px); transform: scale(-1, -1); }

/* Spotty background - a nod to Dottie's polka-dot towels. */
.is-style-spotty {
	background-image: radial-gradient(rgba(178, 62, 43, .09) 17%, transparent 18%), radial-gradient(rgba(178, 62, 43, .09) 17%, transparent 18%);
	background-size: 34px 34px;
	background-position: 0 0, 17px 17px;
}
.has-sage-background-color.is-style-spotty {
	background-image: radial-gradient(rgba(255, 255, 255, .55) 17%, transparent 18%), radial-gradient(rgba(255, 255, 255, .55) 17%, transparent 18%);
}

/* Cards */
.is-style-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--dlhh-radius-m);
	padding: clamp(1.4rem, 3vw, 2.2rem);
	box-shadow: var(--wp--preset--shadow--soft);
}
.is-style-card.has-background { box-shadow: none; }
.is-style-card > :first-child { margin-top: 0; }

/* Review notice - for content awaiting confirmation by the charity. */
.is-style-notice {
	background: #FFF3D3;
	border-left: 6px solid var(--wp--preset--color--apricot);
	border-radius: var(--dlhh-radius-s);
	padding: 1rem 1.25rem;
	font-size: .9375rem;
	color: var(--wp--preset--color--charcoal);
}
.is-style-notice > * { margin-block: .35rem; }

/* --- Images --------------------------------------------------------------- */
.wp-block-image img { display: block; }
.wp-block-image.is-style-organic img { border-radius: 58% 42% 46% 54% / 48% 42% 58% 52% !important; }
.wp-block-image.is-style-circle img { border-radius: 50% !important; aspect-ratio: 1; object-fit: cover; }
.wp-block-image.is-style-snapshot {
	background: var(--wp--preset--color--white);
	padding: 10px 10px 14px;
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--soft);
	transform: rotate(-2deg);
}
.wp-block-image.is-style-snapshot img { border-radius: 12px !important; }
.wp-block-image.is-style-snapshot figcaption { text-align: center; margin-bottom: 0; font-weight: 600; }

.dlhh-zoom, .wp-block-image.dlhh-zoom { overflow: hidden; border-radius: var(--dlhh-radius-m); }
.dlhh-zoom img { transition: transform .8s var(--dlhh-ease); }
.dlhh-zoom:hover img, a:hover .dlhh-zoom img, .dlhh-story-card:hover .dlhh-zoom img { transform: scale(1.045); }

/* --- Lists ----------------------------------------------------------------- */
.wp-block-list.is-style-leafy, .wp-block-list.is-style-ticks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-leafy li, .wp-block-list.is-style-ticks li { position: relative; padding-left: 2rem; margin-block: .55rem; }
.wp-block-list.is-style-leafy li::before, .wp-block-list.is-style-ticks li::before {
	content: "";
	position: absolute;
	left: 0; top: .3em;
	width: 1.15rem; height: 1.15rem;
	background: var(--wp--preset--color--sage-mid);
	-webkit-mask: var(--dlhh-leaf) center / contain no-repeat;
	mask: var(--dlhh-leaf) center / contain no-repeat;
}
.wp-block-list.is-style-ticks li::before {
	background: var(--wp--preset--color--woodland);
	-webkit-mask-image: url("../images/tick.svg");
	mask-image: url("../images/tick.svg");
}

/* --- Home hero ------------------------------------------------------------- */
.dlhh-hero { padding-block: clamp(2rem, 5vw, 4.5rem) var(--wp--preset--spacing--50); position: relative; overflow: hidden; }
.dlhh-hero .wp-block-columns { gap: clamp(1.75rem, 5vw, 4.5rem); }
.dlhh-hero h1 { margin-block: .4rem 1rem; }
.dlhh-hero h1 em { font-style: normal; color: var(--wp--preset--color--rosehip); position: relative; white-space: nowrap; }
.dlhh-hero h1 em::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: .02em;
	height: .22em;
	background: var(--wp--preset--color--sunshine);
	border-radius: 1em;
	z-index: -1;
	opacity: .85;
}
.dlhh-hero__media { position: relative; }
.dlhh-hero__media .wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.dlhh-hero__media::before {
	content: "";
	position: absolute;
	inset: 8% -6% -5% 10%;
	background: var(--wp--preset--color--sage);
	border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
	z-index: -1;
}
.dlhh-hero__media::after {
	content: "";
	position: absolute;
	width: clamp(54px, 7vw, 90px);
	aspect-ratio: 1;
	top: -4%; right: 2%;
	background: var(--wp--preset--color--sage-mid);
	-webkit-mask: var(--dlhh-leaf) center / contain no-repeat;
	mask: var(--dlhh-leaf) center / contain no-repeat;
	transform: rotate(18deg);
	opacity: .9;
}
.dlhh-hero__badge {
	position: absolute;
	left: -2%;
	bottom: 6%;
	margin: 0;
	background: var(--wp--preset--color--white);
	border-radius: 999px;
	padding: .65rem 1.1rem .65rem .75rem;
	box-shadow: var(--wp--preset--shadow--soft);
	font-size: .9rem;
	font-weight: 700;
	color: var(--wp--preset--color--woodland);
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	line-height: 1.25;
	max-width: 80%;
}
.dlhh-hero__badge::before {
	content: "";
	width: 2.4rem;
	aspect-ratio: 128 / 80;
	flex: none;
	background: var(--dlhh-hog) center / contain no-repeat;
}
.dlhh-hero::after { /* leaf sprig, bottom left */
	content: "";
	position: absolute;
	width: 160px; height: 160px;
	left: -50px; bottom: -40px;
	background: var(--wp--preset--color--sage);
	-webkit-mask: var(--dlhh-leaf) center / contain no-repeat;
	mask: var(--dlhh-leaf) center / contain no-repeat;
	transform: rotate(-35deg);
	z-index: -1;
}
@media (max-width: 781px) {
	.dlhh-hero__badge { left: 4%; bottom: -1rem; }
	.dlhh-hero__media { margin-bottom: 1.5rem; }
}

/* --- Rescue contact strip -------------------------------------------------- */
.dlhh-rescue {
	background: var(--wp--preset--color--woodland);
	color: var(--wp--preset--color--cream);
	border-radius: var(--dlhh-radius-l);
	padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1.4rem, 4vw, 3rem);
	position: relative;
	overflow: hidden;
}
.dlhh-rescue .wp-block-columns { gap: 1.25rem 2.5rem; margin: 0; }
.dlhh-rescue h2 { color: var(--wp--preset--color--cream); font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .35rem; }
.dlhh-rescue p { margin: 0; }
.dlhh-rescue .dlhh-rescue__number { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--wp--preset--color--sunshine); letter-spacing: .01em; }
.dlhh-rescue .dlhh-rescue__number a { color: inherit; text-decoration: none; }
.dlhh-rescue .dlhh-rescue__small { font-size: .9375rem; opacity: .92; margin-top: .65rem; }
.dlhh-rescue::after {
	content: "";
	position: absolute;
	right: -30px; top: -30px;
	width: 140px; height: 140px;
	background: rgba(255, 255, 255, .06);
	-webkit-mask: var(--dlhh-leaf) center / contain no-repeat;
	mask: var(--dlhh-leaf) center / contain no-repeat;
	pointer-events: none;
}
.dlhh-rescue .wp-block-buttons { gap: .6rem; }

/* --- Rescue → Rehabilitate → Release ------------------------------------- */
.dlhh-steps { counter-reset: dlhh-step; gap: clamp(1.5rem, 4vw, 3rem) !important; position: relative; }
.dlhh-step { text-align: center; counter-increment: dlhh-step; position: relative; }
.dlhh-step .wp-block-image { position: relative; max-width: 240px; margin-inline: auto; }
.dlhh-step .wp-block-image::after {
	content: counter(dlhh-step);
	position: absolute;
	right: 4%; top: 4%;
	width: 3rem; height: 3rem;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--apricot);
	color: var(--wp--preset--color--woodland-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.35rem;
	box-shadow: 0 0 0 5px var(--wp--preset--color--sage);
}
.dlhh-step .wp-block-image img { border: 6px solid var(--wp--preset--color--white); box-shadow: var(--wp--preset--shadow--lift); }
.dlhh-step h3 { margin-block: 1.1rem .4rem; }
@media (min-width: 782px) {
	.dlhh-steps::before {
		content: "";
		position: absolute;
		top: 120px;
		left: 18%; right: 18%;
		border-top: 3px dashed var(--wp--preset--color--sage-mid);
		z-index: 0;
	}
	.dlhh-step { z-index: 1; }
}

/* --- Split feature (image + text) ------------------------------------------ */
.dlhh-split { gap: clamp(1.75rem, 5vw, 5rem) !important; }
.dlhh-split .wp-block-image img { width: 100%; }
.dlhh-photo-stack { position: relative; padding-bottom: 12%; }
.dlhh-photo-stack > .wp-block-image:first-child img { aspect-ratio: 4 / 5; object-fit: cover; width: 86%; }
.dlhh-photo-stack > .wp-block-image:nth-child(2) {
	position: absolute;
	right: 0; bottom: 0;
	width: 46%;
	margin: 0;
	transform: rotate(3deg);
}
.dlhh-photo-stack > .wp-block-image:nth-child(2) img { aspect-ratio: 1; object-fit: cover; border: 8px solid var(--wp--preset--color--cream); border-radius: 26px !important; box-shadow: var(--wp--preset--shadow--soft); }

/* --- Ways to help ---------------------------------------------------------- */
.dlhh-help-grid { gap: 1.5rem !important; align-items: stretch !important; }
.dlhh-help-grid > .wp-block-column { display: flex; flex-direction: column; gap: 1.5rem; }
.dlhh-help-grid > .wp-block-column > * { margin: 0 !important; }
.dlhh-help-photo { border-radius: var(--dlhh-radius-l); overflow: hidden; position: relative; flex: 1; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.4rem, 3vw, 2.4rem) !important; color: var(--wp--preset--color--white); isolation: isolate; }
.dlhh-help-photo > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; z-index: -2; }
.dlhh-help-photo > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .9s var(--dlhh-ease); }
.dlhh-help-photo:hover > .wp-block-image img { transform: scale(1.04); }
.dlhh-help-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 52, 38, 0) 25%, rgba(23, 52, 38, .9) 100%); z-index: -1; }
.dlhh-help-photo h3, .dlhh-help-photo p { color: var(--wp--preset--color--white); margin-block: .3rem; }
.dlhh-help-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: start; }
.dlhh-help-card > * { grid-column: 2; margin-block: .2rem !important; }
.dlhh-help-card::before {
	content: "";
	grid-column: 1; grid-row: 1 / span 3;
	width: 3.25rem; height: 3.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--sage) var(--dlhh-icon, var(--dlhh-leaf)) center / 55% no-repeat;
}
.dlhh-help-card h3 { font-size: var(--wp--preset--font-size--large); }
.dlhh-help-card.dlhh-icon-hog::before { --dlhh-icon: var(--dlhh-hog); background-size: 70%; }

/* --- Story cards (Query Loop) --------------------------------------------- */

.dlhh-story-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--dlhh-radius-m);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 0 rgba(36, 80, 58, .08);
	transition: transform .35s var(--dlhh-ease), box-shadow .35s ease;
}
.dlhh-story-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--soft); }
.dlhh-story-card .wp-block-post-featured-image { margin: 0; border-radius: 0; }
.dlhh-story-card .wp-block-post-featured-image img { border-radius: 0 !important; }
.dlhh-story-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.dlhh-story-card__body > * { margin: 0 !important; }
.dlhh-story-card .wp-block-post-title a { text-decoration: none; }
.dlhh-story-card .wp-block-post-title a:hover { color: var(--wp--preset--color--rosehip); }
.dlhh-story-card .wp-block-post-excerpt__excerpt { margin: 0; color: #45453F; }
.dlhh-story-card .wp-block-post-date { margin-top: auto !important; }
.dlhh-chip { font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dlhh-chip a { display: inline-block; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--woodland-dark); padding: .25rem .7rem; border-radius: 999px; text-decoration: none; }
.dlhh-chip a:hover { background: var(--wp--preset--color--apricot); color: var(--wp--preset--color--woodland-dark); }
.dlhh-chip .wp-block-post-terms__separator { display: none; }
.dlhh-chip a + a { margin-left: .35rem; }

/* Featured story (single post, big split) */
.dlhh-feature-query .wp-block-post-template { margin: 0; }
.dlhh-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.dlhh-feature .wp-block-post-featured-image { margin: 0; }
.dlhh-feature .wp-block-post-featured-image img { border-radius: 46% 54% 40% 60% / 45% 40% 60% 55% !important; aspect-ratio: 1.15; object-fit: cover; }
.dlhh-feature__body > * { margin-block: .6rem; }
.dlhh-feature .wp-block-post-title { font-size: var(--wp--preset--font-size--xx-large); }
.dlhh-feature .wp-block-post-title a { text-decoration: none; }
.dlhh-feature .wp-block-read-more { display: inline-flex; font-weight: 800; color: var(--wp--preset--color--woodland); }
@media (max-width: 781px) { .dlhh-feature { grid-template-columns: 1fr; } }

/* --- Closing donate call-to-action ---------------------------------------- */
.dlhh-donate-cta { padding-block: var(--wp--preset--spacing--50); }
.dlhh-donate-cta__panel {
	position: relative;
	background: var(--wp--preset--color--apricot);
	border-radius: var(--dlhh-radius-l);
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 5rem);
	overflow: hidden;
	isolation: isolate;
	color: var(--wp--preset--color--woodland-dark);
}
.dlhh-donate-cta__panel h2 { color: var(--wp--preset--color--woodland-dark); margin-top: 0; }
.dlhh-donate-cta__panel::before { /* soft dots */
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .28) 16%, transparent 17%);
	background-size: 30px 30px;
	z-index: -1;
	-webkit-mask: linear-gradient(110deg, transparent 45%, #000 85%);
	mask: linear-gradient(110deg, transparent 45%, #000 85%);
}
.dlhh-donate-cta__panel::after { /* the resident hedgehog */
	content: "";
	position: absolute;
	right: clamp(1rem, 5vw, 4rem);
	bottom: -6px;
	width: clamp(120px, 20vw, 250px);
	aspect-ratio: 128 / 80;
	background: var(--dlhh-hog) center bottom / contain no-repeat;
	z-index: -1;
	transform-origin: 50% 100%;
}
.dlhh-donate-cta__panel .wp-block-button:not(.is-style-soft) .wp-block-button__link { background: var(--wp--preset--color--woodland-dark); color: var(--wp--preset--color--white); }
.dlhh-donate-cta__panel .wp-block-button.is-style-soft .wp-block-button__link { color: var(--wp--preset--color--woodland-dark); box-shadow: inset 0 0 0 2px var(--wp--preset--color--woodland-dark); }
.dlhh-donate-cta__panel .wp-block-button.is-style-soft .wp-block-button__link:hover { background: rgba(255, 255, 255, .35); }
.dlhh-donate-cta__panel > * { max-width: 36rem; }
@media (max-width: 781px) { .dlhh-donate-cta__panel { padding-bottom: 7.5rem; } }

/* --- Page banner (inner pages) ------------------------------------------- */
.dlhh-page-banner { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.dlhh-page-banner h1 { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }
.dlhh-page-banner::after {
	content: "";
	position: absolute;
	right: max(-40px, calc(50% - 700px));
	top: 50%;
	width: clamp(110px, 16vw, 220px);
	aspect-ratio: 1;
	background: var(--wp--preset--color--sage-mid);
	opacity: .55;
	-webkit-mask: var(--dlhh-leaf) center / contain no-repeat;
	mask: var(--dlhh-leaf) center / contain no-repeat;
	transform: translateY(-50%) rotate(14deg);
	pointer-events: none;
}
.dlhh-banner-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.dlhh-banner-links a { background: var(--wp--preset--color--white); padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.dlhh-banner-links a:hover { background: var(--wp--preset--color--woodland); color: var(--wp--preset--color--white); }

/* Inner-page intro (used by designed pages) */
.dlhh-intro { padding-block: clamp(2rem, 5vw, 4rem) var(--wp--preset--spacing--50); position: relative; }
.dlhh-intro h1 { font-size: var(--wp--preset--font-size--xx-large); margin-block: .4rem 1rem; }
.dlhh-intro .wp-block-image img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }

/* --- Prose (posts & plain pages) ---------------------------------------- */
.dlhh-prose { padding-block: var(--wp--preset--spacing--50); }
.dlhh-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.dlhh-prose h3 { font-size: var(--wp--preset--font-size--large); margin-top: 2rem; }
.dlhh-article { padding-top: clamp(1.5rem, 4vw, 3rem); }
.dlhh-article__head { text-align: left; }
.dlhh-article__head > * { margin-block: .5rem; }
.dlhh-article__head .wp-block-post-title { margin-block: .6rem; }
.dlhh-article__image { margin-top: 1.5rem; }
.dlhh-back-link a { text-decoration: none; font-weight: 700; }

/* --- Accordions (core Details block) -------------------------------------- */
.wp-block-details { overflow: hidden; transition: border-color .2s ease; }
.wp-block-details + .wp-block-details { margin-top: .85rem; }
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	padding: 1.05rem 3.5rem 1.05rem 1.35rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 650;
	color: var(--wp--preset--color--woodland);
	position: relative;
	min-height: 48px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 1.1rem; top: 50%;
	width: 1.9rem; height: 1.9rem;
	margin-top: -.95rem;
	border-radius: 50%;
	background:
		linear-gradient(var(--wp--preset--color--woodland-dark), var(--wp--preset--color--woodland-dark)) center / 12px 2.5px no-repeat,
		linear-gradient(var(--wp--preset--color--woodland-dark), var(--wp--preset--color--woodland-dark)) center / 2.5px 12px no-repeat,
		var(--wp--preset--color--sage);
	transition: transform .3s var(--dlhh-ease);
}
.wp-block-details[open] summary::after {
	transform: rotate(45deg);
	background-color: var(--wp--preset--color--apricot);
}
.wp-block-details[open] { border-color: var(--wp--preset--color--sage-mid) !important; }
.wp-block-details > :not(summary) { margin-inline: 1.35rem; }
.wp-block-details > :last-child { margin-bottom: 1.35rem; }
.wp-block-details summary:hover { background: rgba(223, 231, 211, .45); }

/* --- Contact form (Fluent Forms) ------------------------------------------ */
body .fluentform .ff-el-group { margin-bottom: 1.15rem; }
body .fluentform .ff-el-input--label label { font-weight: 700; color: var(--wp--preset--color--woodland-dark); font-size: 1rem; }
body .fluentform .ff-el-form-control {
	font: inherit;
	padding: .8rem 1rem;
	min-height: 52px;
	border: 2px solid var(--wp--preset--color--sage-mid);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
	transition: border-color .2s ease;
	box-shadow: none;
}
body .fluentform textarea.ff-el-form-control { min-height: 9rem; resize: vertical; }
body .fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--woodland); box-shadow: none; }
body .fluentform .ff-btn-submit {
	font: inherit;
	font-weight: 700;
	border: 0;
	background: var(--wp--preset--color--woodland) !important;
	color: var(--wp--preset--color--white) !important;
	padding: .95rem 1.8rem;
	min-height: 52px;
	border-radius: 999px;
	transition: background-color .25s ease, transform .25s var(--dlhh-ease);
}
body .fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--woodland-dark) !important; transform: translateY(-2px); opacity: 1; }
body .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--wp--preset--color--rosehip); }
body .fluentform .error, body .fluentform .text-danger { color: var(--wp--preset--color--rosehip); font-weight: 600; margin-top: .3rem; }
body .ff-message-success { border: 0; border-radius: 12px; padding: .9rem 1.1rem; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--woodland-dark); box-shadow: none; }
body .ff-message-success p { margin: 0; }
.dlhh-form-note { font-size: .9375rem; color: #45453F; }

/* --- Footer --------------------------------------------------------------- */
.dlhh-site-footer { margin-top: 0; }
.dlhh-footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; position: relative; margin-top: clamp(30px, 5vw, 60px); }
.dlhh-footer::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	bottom: calc(100% - 1px);
	height: clamp(30px, 5vw, 60px);
	background: inherit;
	-webkit-mask: var(--dlhh-wave) center bottom / 100% 100% no-repeat;
	mask: var(--dlhh-wave) center bottom / 100% 100% no-repeat;
}
/* The little hedgehog who walks along the wavy edges (positioned by site.js). */
body { position: relative; }
.dlhh-hog-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.dlhh-trundler {
	position: absolute;
	left: 0; top: 0;
	width: 64px;
	height: 40px;
	background: var(--dlhh-hog) center bottom / contain no-repeat;
	transform-origin: 50% 100%;
	pointer-events: none;
	z-index: 1;
	will-change: transform;
}
.dlhh-trundler.is-resting { animation: dlhh-sniff 1.1s ease-in-out infinite; }
button.dlhh-trundler { padding: 0; border: 0; border-radius: 0; background-color: transparent; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; }
button.dlhh-trundler:focus-visible { outline: 3px solid var(--wp--preset--color--apricot); outline-offset: 2px; border-radius: 8px; }
.dlhh-trundler.is-napping { background-image: url("../images/hedgehog-curled.svg"); animation: dlhh-breathe 3.2s ease-in-out infinite; }
@keyframes dlhh-breathe {
	0%, 100% { background-size: 100% 100%; }
	50% { background-size: 103% 104%; }
}
@media (max-width: 600px) { .dlhh-trundler { width: 48px; height: 30px; } }
@keyframes dlhh-sniff {
	0%, 100% { background-position: center bottom; }
	30% { background-position: 2px calc(100% + 1px); }
	60% { background-position: 0 bottom; }
}
.dlhh-footer__cols { gap: clamp(1.75rem, 4vw, 3.5rem) !important; }
.dlhh-footer__brand { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 700; color: var(--wp--preset--color--cream); margin-top: 0; }
.dlhh-footer .dlhh-footer__brand a { color: inherit !important; text-decoration: none; }
.dlhh-footer .dlhh-footer__brand a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dlhh-footer__heading { font-family: var(--wp--preset--font-family--body) !important; font-size: .875rem !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 800 !important; color: var(--wp--preset--color--sunshine) !important; margin-top: .4rem; }
.dlhh-footer__list { list-style: none; padding: 0; }
.dlhh-footer__list li { margin-block: .7rem; overflow-wrap: anywhere; }
.dlhh-footer__label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.dlhh-footer__phone { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.dlhh-social { gap: .6rem !important; margin-top: 1rem; }
.dlhh-social .wp-social-link { transition: transform .25s var(--dlhh-ease); }
.dlhh-social .wp-social-link:hover { transform: translateY(-2px); }
.dlhh-social .wp-social-link a { padding: .5rem; }
.dlhh-social .wp-social-link svg { width: 1.5rem; height: 1.5rem; }
.dlhh-footer a:not(.wp-block-button__link) { color: var(--wp--preset--color--cream); }
.dlhh-footer a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--sunshine); }
.dlhh-footer__rule { border-color: rgba(251, 246, 236, .18) !important; margin-block: 2.5rem 1.25rem !important; opacity: 1; width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; }
.dlhh-footer__legal { opacity: .9; }

.dlhh-credit { text-align: center; margin-top: 1.25rem; font-size: .875rem; }
.dlhh-credit a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(251, 246, 236, .08); text-decoration: none; font-weight: 600; }
.dlhh-credit a::before { content: "♥"; color: var(--wp--preset--color--apricot); }
.dlhh-credit a:hover { background: rgba(251, 246, 236, .16); }
.dlhh-credit strong { color: var(--wp--preset--color--sunshine); }

/* Numbered steps on a green background (Hedgehog Help) */
.dlhh-steps-list { list-style: none; counter-reset: dlhh-li; padding: 0; max-width: 720px; margin-inline: auto !important; display: grid; gap: 1rem; }
.dlhh-steps-list li { counter-increment: dlhh-li; position: relative; padding: 1.05rem 1.25rem 1.05rem 4.25rem; background: rgba(251, 246, 236, .08); border-radius: 18px; font-size: 1.0625rem; }
.dlhh-steps-list li::before { content: counter(dlhh-li); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--sunshine); color: var(--wp--preset--color--woodland-dark); font-family: var(--wp--preset--font-family--heading); font-weight: 800; }
.dlhh-steps-list strong { color: var(--wp--preset--color--white); }
.dlhh-urgent-card { border-top: 6px solid var(--wp--preset--color--rosehip); }
.dlhh-donate-box { text-align: center; }
.dlhh-donate-box .is-style-notice { text-align: left; margin-top: 1.5rem; }
.dlhh-donate-box > * + * { margin-top: 1.1rem; }
.dlhh-donate-box .wp-block-buttons + p { margin-top: 1.25rem; }
.dlhh-thanks { max-width: 640px; margin-inline: auto; }
.dlhh-thanks h3 { margin-top: 0; }
.dlhh-partner-logo { margin-block: 1rem 1.25rem !important; }
.dlhh-partner-logo a { display: inline-block; transition: transform .2s ease; }
.dlhh-partner-logo a:hover { transform: translateY(-2px); }
.dlhh-partner-logo img { height: auto; border-radius: 0 !important; }
.dlhh-gallery-heading { margin-top: var(--wp--preset--spacing--50) !important; }
.dlhh-help-intro .has-small-font-size { max-width: 34rem; }

/* --- Misc ------------------------------------------------------------------ */
.dlhh-pagination { margin-top: 3rem; gap: .5rem; font-weight: 700; }
.dlhh-pagination a, .dlhh-pagination .current { padding: .5rem .9rem; border-radius: 999px; min-width: 44px; text-align: center; }
.dlhh-pagination .current { background: var(--wp--preset--color--woodland); color: var(--wp--preset--color--white); }
.dlhh-404 { text-align: center; }
.dlhh-404::before { content: ""; display: block; width: 140px; aspect-ratio: 128/80; margin: 0 auto 1rem; background: var(--dlhh-hog) center / contain no-repeat; transform: scaleX(-1); }
.dlhh-search .wp-block-search__input { border-radius: 999px; border: 2px solid var(--wp--preset--color--sage-mid); padding: .7rem 1.1rem; }
.dlhh-search .wp-block-search__button { border-radius: 999px; }
.dlhh-contact-card a { overflow-wrap: anywhere; }
.dlhh-contact-card .dlhh-big-link { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); font-weight: 700; }
.dlhh-gallery .wp-block-image img { aspect-ratio: 1; object-fit: cover; }
.dlhh-gallery.wp-block-gallery { gap: 1rem !important; }

/* --- Motion (only when the visitor hasn't asked for reduced motion) ------- */
.dlhh-motion .dlhh-reveal:not(.is-visible) {
	opacity: 0;
	transform: translateY(26px);
	animation: dlhh-failsafe 0s 2.5s forwards; /* never leave content hidden */
}
.dlhh-motion .dlhh-reveal {
	transition: opacity .8s var(--dlhh-ease), transform .8s var(--dlhh-ease);
	transition-delay: var(--dlhh-delay, 0s);
}
@keyframes dlhh-failsafe { to { opacity: 1; transform: none; } }

.dlhh-motion .dlhh-donate-cta__panel:hover::after { animation: dlhh-wiggle .9s ease-in-out 1; }
@keyframes dlhh-wiggle {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(-3deg); }
	60% { transform: rotate(2.5deg); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.wp-block-button__link:hover, .dlhh-story-card:hover { transform: none; }
	.dlhh-zoom:hover img, .dlhh-story-card:hover .dlhh-zoom img, .dlhh-help-photo:hover > .wp-block-image img { transform: none; }
}

@media print {
	.dlhh-topbar, .dlhh-action-bar, .dlhh-header__nav, .dlhh-donate-cta { display: none !important; }
	body { padding-bottom: 0; }
}
