/*
Theme Name: NHAP Charity
Theme URI: https://needleshooksangela.wixsite.com/nhap
Author: N.H.A.P
Description: A bright, playful, accessible block theme for N.H.A.P (Needles & Hooks, Angels & Preemies) — volunteers who knit, crochet and sew angel and preemie items for hospitals and families. Includes a landing page (mission & vision, causes, projects, testimonials, stories), a Causes page, a Projects page, a Stories blog and a Donate page that links out to standalone donation platforms (PayPal, JustGiving, GoFundMe) with no payment code on the site.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nhap
Tags: block-patterns, full-site-editing, blog, one-column, wide-blocks, custom-colors, editor-style
*/

/* Bright & Bold: sky-blue panels, sunshine and coral accents, rounded type, sewn-stitch dashed edges. */
:root {
	--nhap-radius: 28px;
	--nhap-shadow: 0 10px 30px rgba(23, 32, 51, .08);
	--nhap-gutter: clamp(1rem, 4vw, 2rem);
	--c-sky: var(--wp--preset--color--sky); --c-skylt: var(--wp--preset--color--sky-light);
	--c-coral: var(--wp--preset--color--coral); --c-corallt: var(--wp--preset--color--coral-light);
	--c-sun: var(--wp--preset--color--sun); --c-sunlt: var(--wp--preset--color--sun-light);
	--c-mint: var(--wp--preset--color--mint); --c-mintdk: var(--wp--preset--color--mint-dark);
	--c-ink: var(--wp--preset--color--ink); --c-muted: var(--wp--preset--color--muted); --c-cloud: var(--wp--preset--color--cloud);
}
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* Buttons */
.wp-block-button__link { box-shadow: 0 5px 0 #B23A28; transition: transform .15s ease, box-shadow .15s ease; }
.wp-block-button__link:hover { transform: translateY(2px); box-shadow: 0 3px 0 #B23A28; }
.wp-block-button.is-style-white > .wp-block-button__link { background: #fff; color: var(--c-sky); box-shadow: 0 5px 0 #1D5E8F; }
.wp-block-button.is-style-white > .wp-block-button__link:hover { box-shadow: 0 3px 0 #1D5E8F; }
.wp-block-button.is-style-ink > .wp-block-button__link { background: var(--c-ink); color: #fff; box-shadow: 0 5px 0 #000; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--c-sky); border: 2px solid var(--c-sky); box-shadow: 0 5px 0 var(--c-sky); padding: calc(.85rem - 2px) calc(1.7rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { box-shadow: 0 3px 0 var(--c-sky); }

/* Labels */
.nhap-pill, .nhap-eyebrow {
	display: inline-block; width: fit-content; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: .88rem !important;
	letter-spacing: .02em; background: var(--c-sunlt); color: #7A5600; padding: .3rem .9rem; border-radius: 999px; margin-bottom: .2rem !important;
}
.nhap-pill--white { background: #fff; }
.nhap-lead { font-size: var(--wp--preset--font-size--large); color: var(--c-muted); line-height: 1.6; }
.nhap-tag {
	display: inline-block; width: fit-content; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: .82rem !important;
	background: var(--c-skylt); color: var(--c-sky) !important; padding: .28rem .8rem; border-radius: 999px;
}
.nhap-note {
	background: var(--c-sunlt); border: 2px dashed #E7B416; color: #5E4500 !important; border-radius: 16px; padding: .75rem 1.1rem; font-size: .92rem;
}
.nhap-note::before { content: "✎ "; font-weight: 800; }

/* Sections */
.nhap-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.nhap-section--tint, .nhap-section--mist { background: var(--c-cloud); }
.nhap-section--blush { background: var(--c-corallt); }
.nhap-section-head { max-width: 720px; margin-inline: auto !important; text-align: center; margin-bottom: clamp(2rem, 4vw, 2.8rem) !important; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.nhap-section-head > * { margin: 0 !important; }

/* Header */
.nhap-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .nhap-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .nhap-header-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nhap-header-part { top: 0; } }
.nhap-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: .8rem; }
.nhap-header__inner { gap: 1rem; }
.nhap-brand { gap: .6rem !important; align-items: center; }
.nhap-brand__logo { margin: 0 !important; }
.nhap-brand__logo img { width: 46px; height: 46px; display: block; }
.nhap-brand__text { gap: 0 !important; }
.nhap-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.5rem; line-height: 1; margin: 0; }
.nhap-brand .wp-block-site-title a { color: var(--c-ink); text-decoration: none; }
.nhap-brand .wp-block-site-tagline { font-size: .76rem; color: var(--c-muted); margin: 0; line-height: 1.3; }
.nhap-header .wp-block-navigation { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1rem; gap: .3rem; }
.nhap-header .wp-block-navigation a { color: var(--c-ink); text-decoration: none; padding: .45rem .9rem; border-radius: 999px; }
.nhap-header .wp-block-navigation a:hover, .nhap-header .wp-block-navigation .current-menu-item > a { background: var(--c-skylt); color: var(--c-sky); }
.nhap-header__actions { gap: 1rem !important; }
.nhap-header .wp-block-button__link { padding: .6rem 1.3rem; }
.wp-block-navigation__responsive-container-open { background: var(--c-skylt); color: var(--c-sky); border-radius: 999px; padding: .5rem; }
.wp-block-navigation__responsive-container.is-menu-open { background: #fff !important; padding: 2rem 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: .6rem; font-size: 1.3rem; }
@media (max-width: 599px) { .nhap-brand .wp-block-site-tagline { display: none; } .nhap-header .nhap-header__donate { display: none; } }

/* Hero panel */
.nhap-hero {
	background: var(--c-sky); color: #fff; border-radius: 40px; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(3.5rem, 6vw, 5.5rem);
	margin-top: 1rem !important; position: relative; overflow: hidden;
}
.nhap-hero__cols { gap: 2rem !important; margin: 0 !important; }
.nhap-hero .wp-block-column > * + * { margin-top: 1.2rem; }
.nhap-hero h1 { color: #fff; }
.nhap-hero__title em { font-style: normal; color: var(--c-sun); }
.nhap-hero .nhap-lead { color: rgba(255, 255, 255, .9); }
.nhap-hero__note { font-size: .95rem; color: rgba(255, 255, 255, .82); }
.nhap-hero__note strong { color: #fff; }
.nhap-hero__art { margin: 0 !important; }
.nhap-hero__art img { width: 100%; max-width: 470px; display: block; margin-inline: auto; animation: nhap-bob 6s ease-in-out infinite; }
@keyframes nhap-bob { 50% { transform: translateY(-8px) rotate(1.5deg); } }
@media (max-width: 781px) { .nhap-hero { border-radius: 28px; } .nhap-hero__art img { max-width: 340px; } }

/* Stats */
.nhap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; z-index: 2; padding-inline: clamp(0rem, 3vw, 2.5rem); }
.nhap-hero + .nhap-stats { margin-top: -2.4rem !important; }
.nhap-stat { background: #fff; border-radius: 24px; padding: 1.2rem 1.3rem; box-shadow: 0 10px 30px rgba(23, 32, 51, .1); border-top: 6px solid var(--c); --c: var(--c-coral); }
.nhap-stat:nth-child(2) { --c: var(--c-sky); } .nhap-stat:nth-child(3) { --c: var(--c-mintdk); } .nhap-stat:nth-child(4) { --c: #A87400; }
.nhap-stat > * { margin: 0 !important; }
.nhap-stat__num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem) !important; line-height: 1; color: var(--c); }
.nhap-stat__label { font-weight: 700; font-size: .92rem; margin-top: .35rem !important; color: var(--c-muted); }
@media (max-width: 900px) { .nhap-stats { grid-template-columns: 1fr 1fr; } .nhap-hero + .nhap-stats { margin-top: 1rem !important; } }
.nhap-section + .nhap-stats, .nhap-stats + .nhap-section { margin-top: 0 !important; }
.wp-block-post-content > .nhap-stats:not(.nhap-hero + .nhap-stats) { margin-block: clamp(2rem, 5vw, 3.5rem) !important; }

/* Grids and cards */
.nhap-grid { display: grid !important; gap: clamp(1rem, 2.4vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.nhap-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.nhap-grid > * { margin: 0 !important; }
.nhap-card { background: #fff; border-radius: var(--nhap-radius); padding: 1.5rem; box-shadow: 0 2px 0 rgba(23, 32, 51, .04), var(--nhap-shadow); display: flex; flex-direction: column; gap: .6rem; height: 100%; box-sizing: border-box; }
.nhap-card > * { margin: 0 !important; }
.nhap-card p { color: var(--c-muted); }
.nhap-card .nhap-card__link { margin-top: auto !important; padding-top: .3rem; font-family: var(--wp--preset--font-family--heading); font-weight: 600; }
.nhap-card .nhap-card__link a { text-decoration: none; }
.nhap-card .nhap-card__link a::after { content: " →"; }
.nhap-card__photo { margin: -.2rem -.2rem .4rem !important; }
.nhap-card__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; display: block; }
.nhap-icon { margin: 0 0 .2rem !important; }
.nhap-icon img { width: 64px; height: 64px; padding: 14px; box-sizing: border-box; background: var(--c-skylt); border-radius: 20px; }

/* Cause tiles: each its own colour with a sewn dashed edge */
.nhap-tile { --bg: var(--c-corallt); --fg: #C2412D; background: var(--bg); box-shadow: none; position: relative; padding: 1.2rem 1.2rem 1.5rem; }
.nhap-tile::after { content: ""; position: absolute; inset: 8px; border: 2px dashed color-mix(in srgb, var(--fg) 40%, transparent); border-radius: 22px; pointer-events: none; }
.nhap-tile:nth-child(2) { --bg: var(--c-skylt); --fg: var(--c-sky); }
.nhap-tile:nth-child(3) { --bg: var(--c-sunlt); --fg: #9A6A00; }
.nhap-tile:nth-child(4) { --bg: #D9F2E4; --fg: var(--c-mintdk); }
.nhap-tile h3 { color: var(--fg); }
.nhap-tile p { color: var(--c-ink); opacity: .82; }
.nhap-tile .nhap-card__link a { color: var(--fg); }

/* Mission and vision */
.nhap-mv .wp-block-columns { gap: 1.4rem; }
.nhap-mv .nhap-card { border-radius: 32px; padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: none; gap: 1rem; }
.nhap-mv .nhap-card--mission { background: var(--c-coral); }
.nhap-mv .nhap-card--vision { background: var(--c-mint); }
.nhap-mv .nhap-card--mission h3, .nhap-mv .nhap-card--mission p { color: #fff; }
.nhap-mv .nhap-card--vision h3, .nhap-mv .nhap-card--vision p { color: #0F3D2A; }
.nhap-mv .nhap-card--mission .nhap-eyebrow { background: rgba(255, 255, 255, .22); color: #fff; }
.nhap-mv .nhap-card--vision .nhap-eyebrow { background: rgba(255, 255, 255, .6); color: #0F3D2A; }
.nhap-mv .nhap-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.3; }
.nhap-mv .nhap-icon img { background: #fff; }
.nhap-values { gap: .6rem !important; justify-content: center; margin-top: 1.8rem !important; }
.nhap-values p { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; border: 2px dashed #C9D3E0; }

/* Projects */
.nhap-project .nhap-tag { margin-top: .2rem !important; }
.nhap-project:nth-child(4n+2) .nhap-tag { background: var(--c-corallt); color: #C2412D !important; }
.nhap-project:nth-child(4n+3) .nhap-tag { background: var(--c-sunlt); color: #8A6200 !important; }
.nhap-project:nth-child(4n+4) .nhap-tag { background: #D9F2E4; color: var(--c-mintdk) !important; }

/* Testimonials as speech bubbles */
.nhap-quote.wp-block-quote { --bg: var(--c-corallt); border: 0; margin: 0; padding: 0; background: none; display: flex; flex-direction: column; gap: 1rem; }
.nhap-grid > .nhap-quote:nth-child(2) { --bg: var(--c-skylt); }
.nhap-grid > .nhap-quote:nth-child(3) { --bg: var(--c-sunlt); }
.nhap-quote.wp-block-quote p { background: var(--bg); border-radius: 28px 28px 28px 6px; padding: 1.6rem 1.5rem; margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.15rem; line-height: 1.5; color: var(--c-ink); }
.nhap-quote.wp-block-quote cite { font-style: normal; font-weight: 800; font-size: .85rem; color: var(--c-muted); padding-left: .4rem; }

/* Stories */
.nhap-story-card { display: flex; flex-direction: column; gap: .45rem; height: 100%; }
.nhap-story-card > * { margin: 0 !important; }
.nhap-story-card .wp-block-post-featured-image { margin-bottom: .5rem !important; overflow: hidden; border-radius: 28px; }
.nhap-story-card .wp-block-post-featured-image img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; transition: transform .4s ease; }
.nhap-story-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.nhap-story-card .wp-block-post-terms { font-weight: 800; font-size: .85rem; }
.nhap-story-card .wp-block-post-terms a { color: var(--c-coral); text-decoration: none; }
.nhap-story-card .wp-block-post-title { font-size: 1.32rem; }
.nhap-story-card .wp-block-post-title a { color: var(--c-ink); text-decoration: none; }
.nhap-story-card .wp-block-post-title a:hover { color: var(--c-sky); }
.nhap-story-card .wp-block-post-excerpt { color: var(--c-muted); }
.nhap-story-card .wp-block-post-date { color: var(--c-muted); font-size: .85rem; font-weight: 700; }
.wp-block-post-excerpt__more-link { display: none; }
.wp-block-post-template.is-layout-grid { gap: clamp(1.2rem, 2.4vw, 1.6rem); }
@media (max-width: 781px) { .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
@media (min-width: 600px) and (max-width: 900px) { .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.nhap-cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; list-style: none; }
.nhap-cat-pills li a { display: inline-block; padding: .4rem 1rem; border-radius: 999px; background: #fff; color: var(--c-sky); font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-decoration: none; }
.nhap-cat-pills li a:hover { background: var(--c-sun); color: var(--c-ink); }
.wp-block-query-pagination { margin-top: 2.5rem !important; font-family: var(--wp--preset--font-family--heading); font-weight: 600; }

/* Donate and share panels */
.nhap-cta { background: var(--c-sun); border-radius: 40px; padding: clamp(2rem, 5vw, 4rem); margin-block: clamp(3.5rem, 7vw, 6rem) !important; }
.nhap-cta .wp-block-columns { gap: 2rem; margin: 0; }
.nhap-cta .wp-block-column > * + * { margin-top: 1rem; }
.nhap-cta p { color: #3D2E00; }
.nhap-cta a:not(.wp-block-button__link) { color: #3D2E00; }
.nhap-platforms { gap: .8rem !important; align-items: stretch !important; }
.nhap-platforms .wp-block-button { width: 100%; }
.nhap-platforms .wp-block-button__link { width: 100%; background: #fff; color: var(--c-ink); text-align: left; border-left: 10px solid var(--c-sky); border-radius: 22px; box-shadow: 0 5px 0 rgba(0, 0, 0, .12); font-size: 1.15rem; padding: 1rem 1.4rem; box-sizing: border-box; }
.nhap-platforms .wp-block-button__link strong { color: var(--c-sky); }
.nhap-platforms .nhap-pay-justgiving .wp-block-button__link { border-left-color: var(--c-coral); }
.nhap-platforms .nhap-pay-justgiving strong { color: var(--c-coral); }
.nhap-platforms .nhap-pay-gofundme .wp-block-button__link { border-left-color: var(--c-mintdk); }
.nhap-platforms .nhap-pay-gofundme strong { color: var(--c-mintdk); }
.nhap-cta--coral { background: var(--c-coral); text-align: center; }
.nhap-cta--coral > * { margin-inline: auto !important; }
.nhap-cta--coral h2, .nhap-cta--coral p { color: #fff; }
.nhap-cta--coral .nhap-pill { color: #C2412D; }

/* Inner page banner */
.nhap-page-hero {
	background: var(--c-sky); color: #fff; border-radius: 36px; text-align: center; padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 3rem);
	max-width: 1200px; width: calc(100% - 2 * var(--nhap-gutter)); box-sizing: border-box; margin: 1rem auto 0 !important;
}
.wp-block-post-content > .nhap-page-hero { width: auto; }
.nhap-page-hero > * { margin-inline: auto !important; max-width: 760px; }
.nhap-page-hero > * + * { margin-top: 1rem !important; }
.nhap-page-hero h1, .nhap-page-hero .wp-block-query-title { color: #fff; }
.nhap-page-hero .nhap-lead { color: rgba(255, 255, 255, .9); }
.nhap-page-hero .wp-block-post-title { color: #fff; }

/* Causes page */
.nhap-cause { scroll-margin-top: 100px; }
.nhap-cause .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }
.nhap-cause .wp-block-column > * + * { margin-top: 1rem; }
.nhap-cause__media img { width: 100%; border-radius: 32px; display: block; }
.nhap-cause:nth-of-type(even) .wp-block-columns { flex-direction: row-reverse; }
@media (max-width: 781px) { .nhap-cause:nth-of-type(even) .wp-block-columns { flex-direction: column; } }
.nhap-checklist { list-style: none; padding-left: 0; columns: 2; column-gap: 1.5rem; }
.nhap-checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .45rem; break-inside: avoid; }
.nhap-checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--c-sun); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--c-sun); }
@media (max-width: 480px) { .nhap-checklist { columns: 1; } }

/* Donate page */
.nhap-secure { background: #D9F2E4; border-radius: 18px; padding: 1rem 1.25rem; color: #0F3D2A; font-size: .95rem; max-width: 760px; margin-inline: auto; text-align: center; }
.nhap-pay-card { text-align: center; align-items: center; }
.nhap-pay-card .nhap-pay-badge { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.5rem; color: var(--c-sky); background: var(--c-skylt); padding: .9rem 1.2rem; border-radius: 20px; width: 100%; box-sizing: border-box; }
.nhap-pay-card--justgiving .nhap-pay-badge { background: var(--c-corallt); color: #C2412D; }
.nhap-pay-card--gofundme .nhap-pay-badge { background: #D9F2E4; color: var(--c-mintdk); }
.nhap-pay-card .wp-block-buttons { margin-top: auto !important; width: 100%; justify-content: center; }
.nhap-pay-card .wp-block-button, .nhap-pay-card .wp-block-button__link { width: 100%; box-sizing: border-box; }
.nhap-pay-card .nhap-pay-best { font-size: .88rem !important; color: var(--c-mintdk) !important; font-weight: 800; }
.nhap-admin-setup { max-width: 1200px; margin: 0 auto 1.5rem; background: var(--c-sunlt); border: 2px dashed #E7B416; color: #5E4500; border-radius: 16px; padding: 1rem 1.25rem; font-size: .95rem; }
.nhap-address { font-style: normal; line-height: 1.7; }

/* Contact */
.nhap-contact-list { list-style: none; padding: 0; }
.nhap-contact-list li { padding: .7rem 0; border-bottom: 2px dashed #E3E9F0; }
.nhap-contact-list li:last-child { border-bottom: 0; }
.nhap-contact-list strong { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 600; color: var(--c-coral); }

/* Single story */
.nhap-single-head { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.nhap-single-head > * { margin-inline: auto !important; }
.nhap-single-head .wp-block-post-terms a { color: var(--c-coral); font-weight: 800; text-decoration: none; }
.nhap-single-meta { justify-content: center; color: var(--c-muted); font-size: .92rem; }
.nhap-single-image img { border-radius: 32px; aspect-ratio: 16 / 9; object-fit: cover; }
.nhap-single-content { font-size: 1.1rem; }
.nhap-share-box { background: var(--c-sunlt); border-radius: 32px; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.nhap-share-box > * { margin-inline: auto !important; }
.wp-block-post-navigation-link a { font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-decoration: none; }

/* Footer */
.nhap-footer { background: var(--c-ink); color: rgba(255, 255, 255, .75); padding-block: 3.5rem 1.5rem; font-size: .95rem; margin-top: clamp(3rem, 6vw, 5rem); }
.nhap-footer h3 { font-family: var(--wp--preset--font-family--heading); font-size: 1rem; font-weight: 600; color: var(--c-sun); }
.nhap-footer a { color: #fff; text-decoration: none; }
.nhap-footer a:hover { color: var(--c-sun); text-decoration: underline; }
.nhap-footer ul { list-style: none; padding: 0; }
.nhap-footer li { margin-bottom: .45rem; }
.nhap-footer .nhap-brand .wp-block-site-title a { color: #fff; }
.nhap-footer .nhap-brand__logo img { background: #fff; border-radius: 50%; padding: 6px; box-sizing: border-box; width: 52px; height: 52px; }
.nhap-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border-radius: 50%; }
.nhap-footer .wp-block-social-links .wp-social-link a { padding: .55rem !important; }
.nhap-footer .wp-block-social-links .wp-social-link:hover { background: var(--c-coral) !important; }
.nhap-footer__bottom { border-top: 2px dashed rgba(255, 255, 255, .18); margin-top: 2.5rem !important; padding-top: 1.2rem; font-size: .85rem; gap: .5rem 2rem !important; }
.nhap-footer__bottom p { margin: 0; }
.nhap-cta + .nhap-footer-part .nhap-footer, main + .nhap-footer-part .nhap-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Panels placed directly in a template (outside page content) */
main > .nhap-cta, main > .nhap-hero { width: calc(100% - 2 * var(--nhap-gutter)); max-width: 1200px; margin-inline: auto !important; box-sizing: border-box; }

/* Hat gallery: a playful strip of tilted photo tiles */
.nhap-hats { background: var(--c-sunlt); }
.nhap-hat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.nhap-hat-strip > .nhap-hat { margin: 0 !important; background: #fff; padding: 8px; border-radius: 22px; box-shadow: 0 10px 24px rgba(23, 32, 51, .1); transition: transform .2s ease; }
.nhap-hat-strip > .nhap-hat:nth-child(odd) { transform: rotate(-2deg); }
.nhap-hat-strip > .nhap-hat:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.nhap-hat-strip > .nhap-hat:hover { transform: rotate(0) scale(1.04); }
.nhap-hat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; }
.nhap-hats__more { margin-top: 2.2rem !important; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.1rem; }
.nhap-hats__more a::after { content: " →"; }
.nhap-hats__credit { font-size: .82rem; color: var(--c-muted); margin-top: .4rem !important; }
@media (max-width: 781px) { .nhap-hat-strip { grid-template-columns: repeat(3, 1fr); } .nhap-hat-strip > .nhap-hat:nth-child(n+4) { display: none; } }
@media (max-width: 480px) { .nhap-hat-strip { grid-template-columns: repeat(2, 1fr); } .nhap-hat-strip > .nhap-hat:nth-child(4) { display: block; } .nhap-hat-strip > .nhap-hat:nth-child(5) { display: none; } }

/* Credit strip below the footer */
.nhap-credit-bar { background: #0E1524; padding-block: .9rem; margin-top: 0 !important; }
.footer-credit { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .7); letter-spacing: .01em; }
.footer-credit a { color: var(--c-sun); font-weight: 700; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; color: #fff; }

/* Request a pack */
.nhap-request { background: #D9F2E4; border-radius: 40px; padding: clamp(1.8rem, 5vw, 3.6rem); margin-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem) !important; scroll-margin-top: 90px; }
.nhap-request__cols { gap: clamp(1.5rem, 4vw, 3rem) !important; margin: 0 !important; }
.nhap-request__intro > * + * { margin-top: 1.1rem; }
.nhap-request h2 { color: #0F3D2A; }
.nhap-request .nhap-lead { color: #2E5A45; }
.nhap-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: .8rem; }
.nhap-steps li { counter-increment: step; position: relative; padding-left: 3rem; min-height: 2.2rem; color: #2E5A45; }
.nhap-steps li strong { color: #0F3D2A; }
.nhap-steps li::before {
	content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
	background: var(--c-mintdk); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; display: grid; place-items: center;
}
.nhap-request__email { font-size: .92rem; color: #2E5A45; }
.nhap-request__email strong { color: #0F3D2A; user-select: all; }
.nhap-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.nhap-packs > * { margin: 0 !important; }
.nhap-pack { background: #fff; border-radius: 22px; padding: .7rem; display: flex; gap: .9rem; align-items: center; box-shadow: 0 4px 0 rgba(31, 122, 85, .12); }
.nhap-pack__img { margin: 0 !important; flex: none; width: 92px; }
.nhap-pack__img img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; display: block; }
.nhap-pack__text > * { margin: 0 !important; }
.nhap-pack h3 { font-size: 1.1rem; margin: 0 0 .2rem !important; color: var(--c-ink); }
.nhap-pack p { font-size: .9rem; line-height: 1.45; color: var(--c-muted); margin: 0; }
.nhap-pack--ask { background: var(--c-coral); flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; padding: 1rem 1.2rem; box-shadow: 0 4px 0 #B23A28; }
.nhap-pack--ask h3, .nhap-pack--ask p { color: #fff; }
@media (max-width: 1000px) { .nhap-packs { grid-template-columns: 1fr; } }
@media (max-width: 781px) { .nhap-packs { grid-template-columns: 1fr; } .nhap-request { border-radius: 28px; } }
@media (min-width: 600px) and (max-width: 781px) { .nhap-packs { grid-template-columns: repeat(2, 1fr); } .nhap-pack { flex-direction: column; align-items: flex-start; } .nhap-pack__img, .nhap-pack__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; } }
.nhap-request__cols { align-items: center !important; }
/* Header on tablets: keep the menu on one line */
.nhap-header .wp-block-navigation a, .nhap-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 960px) {
	.nhap-brand .wp-block-site-tagline { display: none; }
	.nhap-header .nhap-header__donate { display: none; }
	.nhap-header .wp-block-navigation { gap: 0; font-size: .95rem; }
	.nhap-header .wp-block-navigation a { padding: .4rem .6rem; }
}

/* Front page and single cause/project */
.nhap-front > * + * { margin-block-start: 0; }
.nhap-front { padding-bottom: 0; }
.nhap-single-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.nhap-single-body > * + * { margin-top: 2rem !important; }
.nhap-page-hero .wp-block-post-excerpt__excerpt { color: rgba(255, 255, 255, .9); font-size: 1.2rem; }
.nhap-page-hero .wp-block-post-excerpt { margin-top: 1rem; }
