:root {
	--dn-radius: 12px;
	--dn-ease: cubic-bezier(.2, .7, .2, 1);
	--dn-shadow: 0 1px 2px rgba(31, 74, 21, .06), 0 8px 24px -12px rgba(31, 74, 21, .18);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.wp-block-group > h2.wp-block-heading { margin-bottom: 1.25rem; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { border-radius: inherit; }
::selection { background: #D4A62A; color: #2B2B2B; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #D4A62A; outline-offset: 2px; border-radius: 4px; }

/* Header */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: -40px; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: -8px; }
/* The frosted background sits on a layer of its own: a backdrop-filter on the header itself
   would trap the full-screen mobile menu inside the header bar. */
.dn-header { position: relative; border-bottom: 1px solid #E7EFDF; }
.dn-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.dn-brand { gap: .65rem !important; text-decoration: none; }
.dn-brand img { width: 52px; height: 52px; }
.dn-brand__name { font-family: Montserrat, sans-serif; font-weight: 700; color: #2E6B1F; line-height: 1.05; font-size: 1.05rem; margin: 0; }
.dn-brand__name small { display: block; font-family: 'Open Sans', sans-serif; font-weight: 600; font-size: .7rem; color: #5A6157; letter-spacing: .02em; }
.dn-brand__name a { text-decoration: none; color: inherit; }
.dn-header .wp-block-navigation a { text-decoration: none; }
.dn-header .wp-block-navigation-item__content:hover { color: #6BA539; }
.dn-header .wp-block-navigation .current-menu-item > a { color: #2E6B1F; box-shadow: inset 0 -2px 0 #6BA539; }
.dn-header .wp-block-navigation__submenu-container { border-radius: 10px; border: 1px solid #E7EFDF !important; box-shadow: var(--dn-shadow); padding: .4rem 0 !important; min-width: 230px !important; }
.dn-header .wp-block-navigation__submenu-container a { padding: .45rem 1rem !important; }

/* Mobile menu: a full-screen list, left aligned, with sub-pages indented under their section */
.dn-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem 1.5rem 2.5rem; }
.dn-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 3.25rem; }
.dn-header .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { align-items: stretch; gap: 0; width: 100%; }
.dn-header .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item { align-items: stretch; }
.dn-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { border-bottom: 1px solid #E7EFDF; }
.dn-header .is-menu-open .wp-block-navigation-item__content { display: block; padding: .85rem 0 !important; font-size: 1.1rem; }
.dn-header .is-menu-open .wp-block-navigation .current-menu-item > a { box-shadow: none; }
.dn-header .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container { min-width: 0 !important; padding: 0 0 .6rem 1rem !important; border: 0 !important; border-left: 2px solid #DDE8D2 !important; border-radius: 0; box-shadow: none; margin-bottom: .6rem; }
.dn-header .is-menu-open .wp-block-navigation__submenu-container a { padding: .6rem 0 !important; font-size: 1rem; font-weight: 500; color: #3F463C; }
.dn-header .is-menu-open .wp-block-navigation__responsive-container-close { top: .25rem; right: 0; padding: .6rem; }
.dn-members-link a::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: .35em; vertical-align: -1px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg>') center/contain no-repeat; }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: background-color .2s var(--dn-ease), transform .2s var(--dn-ease), box-shadow .2s var(--dn-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:active { transform: translateY(0) scale(.98); }
.is-style-gold .wp-block-button__link { background: #D4A62A; color: #2B2B2B; }
.is-style-gold .wp-block-button__link:hover { background: #E2B847; color: #2B2B2B; }
.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.is-style-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid #2E6B1F; color: #2E6B1F; background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #2E6B1F; color: #fff; }
.dn-donate .wp-block-button__link { padding: .55rem 1.1rem; font-size: .85rem; }

/* Motif and section surfaces */
.dn-motif { background-image: url('../img/motif.svg'); background-size: 120px 120px; }
.dn-motif-green { background-image: url('../img/motif-green.svg'); background-size: 120px 120px; }
.dn-eyebrow { font-family: Montserrat, sans-serif; font-weight: 700; font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; color: #2E6B1F; margin-bottom: .25rem !important; }
.has-forest-background-color .dn-eyebrow { color: #EBC867 !important; }
.dn-hero-note { color: #E4EEDB; font-weight: 600; font-size: .95rem !important; margin-top: 1.25rem !important; }
.dn-contact { list-style: none; padding: 0; margin: 0 0 1rem; line-height: 1.9; }
.dn-motto { font-family: Caveat, cursive; font-weight: 600; color: #EBC867; font-size: clamp(1.5rem, 2.6vw, 2rem) !important; line-height: 1.1; }
.dn-lead { font-size: 1.15rem !important; color: #5A6157; }

/* Hero */
.dn-hero { position: relative; overflow: hidden; }
.dn-hero h1 { color: #fff; font-size: clamp(1.3rem, 7vw, 2.75rem); }
.dn-hero p { color: #E4EEDB; }
.dn-hero .wp-block-image img { border-radius: 20px; aspect-ratio: 16/10; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.dn-hero-badge { position: absolute; left: -18px; bottom: 22px; background: #fff; color: #2B2B2B; border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--dn-shadow); font-size: .85rem; line-height: 1.35; max-width: 220px; }
.dn-hero-badge strong { display: block; font-family: Montserrat, sans-serif; color: #2E6B1F; }
.dn-hero-media { position: relative; }

/* Places strip */
.dn-places { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.dn-places li { background: #fff; border: 1px solid #DDE8D2; color: #2E6B1F; font-weight: 600; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.has-forest-background-color .dn-places li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; font-weight: 400; }

/* Who we support */
.dn-who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); }
.dn-who { border-top: 1px solid #C7DBB4; padding: 1.4rem 0 1.6rem; margin: 0 !important; }
.dn-who h3 { font-size: 1.3rem !important; margin: .9rem 0 .35rem; }
.dn-who p { margin: 0; color: #4A5147; }
.dn-who .dn-icon { background: #fff; }
@media (max-width: 600px) {
	.dn-who-grid { grid-template-columns: 1fr; }
	.dn-who { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 1rem; padding: 1.1rem 0 1.2rem; }
	.dn-who .dn-icon { grid-row: span 2; }
	.dn-who h3 { margin: .1rem 0 .2rem; font-size: 1.15rem !important; }
	.dn-who p { grid-column: 2; }
}
.dn-card-meta { font-size: .82rem !important; font-weight: 600; color: #5A6157; margin: 1rem 0 0 !important; }

/* Cards */
.dn-card { background: #fff; border: 1px solid #DDE8D2; border-radius: var(--dn-radius); transition: transform .25s var(--dn-ease), box-shadow .25s var(--dn-ease), border-color .25s; height: 100%; }
.dn-card:hover { transform: translateY(-3px); box-shadow: var(--dn-shadow); border-color: #C7DBB4; }
.dn-card h3, .dn-card h4 { margin-top: .5rem; }
.dn-card p { color: #5A6157; }
.dn-icon { width: 46px; height: 46px; border-radius: 12px; background: #EAF3DE; color: #2E6B1F; display: grid; place-items: center; }
.dn-icon svg { width: 24px; height: 24px; }
.dn-card .wp-block-image img { border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; }
.wp-block-columns.dn-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.dn-equal > .wp-block-column > .dn-card { flex: 1; }

/* Schedule (What's On) */
.dn-day { background: #fff; border: 1px solid #DDE8D2; border-radius: var(--dn-radius); padding: 1.1rem 1.5rem .4rem; }
.dn-day > h3 { font-size: 1.15rem !important; margin: 0 0 .25rem; }
.dn-session { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-top: 1px solid #E7EFDF; margin: 0 !important; }
.dn-session p { margin: 0; }
.dn-session__body > * + * { margin-top: .2rem !important; }
.dn-session .dn-time { font-family: Montserrat, sans-serif; font-weight: 700; color: #2B2B2B; font-size: .92rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.dn-session .dn-title { font-family: Montserrat, sans-serif; font-weight: 600; color: #2B2B2B; font-size: 1rem; line-height: 1.4; }
.dn-session .dn-meta { color: #5A6157; font-size: .92rem; line-height: 1.55; }
.dn-session .dn-book { font-size: .85rem; font-weight: 600; color: #2E6B1F; }
/* In-person activities are booked by WhatsApp: the link carries the WhatsApp mark */
.dn-book__wa { display: inline-flex; align-items: center; gap: .4rem; }
.dn-book__wa::before { content: ""; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>') center/contain no-repeat; }
.dn-tag { display: inline-block; font-family: 'Open Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: .12rem .55rem; vertical-align: 2px; background: #EAF3DE; color: #2E6B1F; white-space: nowrap; }
.dn-tag.is-online, .is-online .dn-tag { background: #FAEEDA; color: #6E5109; }
.dn-legend { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0 0; }
@media (max-width: 600px) { .dn-session { grid-template-columns: 1fr; gap: .25rem; } }

/* Policies */
.wp-block-details { background: #fff; transition: border-color .2s, box-shadow .2s; }
.wp-block-details + .wp-block-details { margin-top: .6rem !important; }
.wp-block-details[open] { border-color: #6BA539 !important; box-shadow: var(--dn-shadow); }
.wp-block-details summary { font-family: Montserrat, sans-serif; font-weight: 700; color: #2E6B1F; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #6BA539; transition: transform .25s var(--dn-ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* Funder acknowledgement */
.dn-funder { border-left: 0; border-radius: var(--dn-radius); }

/* Page hero (inner pages) */
.dn-page-hero h1 { color: #fff; }
.dn-page-hero p { color: #E4EEDB; }
.dn-breadcrumb { font-size: .85rem; color: #C9DDB8 !important; }

/* Lists with ticks */
.dn-ticks { list-style: none; padding-left: 0; }
.dn-ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .5rem; }
.dn-ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #EAF3DE url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232E6B1F" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 12.5l4 4 8-9"/></svg>') center/70% no-repeat; }

/* News */
.wp-block-post-template .wp-block-post { background: #fff; border: 1px solid #DDE8D2; border-radius: var(--dn-radius); overflow: hidden; transition: transform .25s var(--dn-ease), box-shadow .25s var(--dn-ease); }
.wp-block-post-template .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--dn-shadow); }
.wp-block-post-template .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.wp-block-post-template .wp-block-post-title a { text-decoration: none; }

/* Footer */
.dn-footer { color: #D8E6CB; }
.dn-footer h2, .dn-footer h3, .dn-footer h4 { color: #fff; font-size: 1rem !important; letter-spacing: .02em; }
.dn-footer a { color: #fff; text-decoration: none; }
.dn-footer a:hover { color: #D4A62A; }
.dn-footer .dn-contact { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
/* Contact details and the Support links use the same small size as the rest of the footer text */
.dn-footer .dn-contact, .dn-footer .dn-contact ~ p { font-size: .875rem; }
/* Connect column: heading, icons and QR code share one centre line once the columns sit side by side */
@media (min-width: 782px) {
	.dn-footer__connect { text-align: center; }
	.dn-footer__connect .dn-social { justify-content: center; }
	.dn-footer__connect .dn-qr { margin-left: auto; margin-right: auto; }
}
.dn-social { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.dn-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #EAF3DE; color: #2E6B1F; transition: background .2s, color .2s; }
.dn-social a:hover { background: #2E6B1F; color: #fff; }
.dn-footer .dn-social a { background: rgba(255, 255, 255, .1); color: #fff; }
/* The WhatsApp mark is a solid shape, so it is drawn slightly larger than the outline icons. */
.dn-social__whatsapp svg { width: 22px; height: 22px; }
.dn-footer .dn-social a:hover { background: #D4A62A; color: #2B2B2B; }
.dn-footer .wpcf7 input[type=email] { width: 100%; border-radius: 8px; border: 0; padding: .7rem .8rem; font: inherit; }
.dn-footer .wpcf7 input[type=submit] { margin-top: .5rem; background: #D4A62A; color: #2B2B2B; border: 0; border-radius: 8px; padding: .65rem 1.1rem; font-family: Montserrat, sans-serif; font-weight: 700; cursor: pointer; }
.dn-footer .wpcf7 p { margin: 0; }
.dn-footer .wpcf7 .dn-form__note { margin-top: .6rem; font-size: .8rem; line-height: 1.5; }
.dn-footer .dn-form__note a { text-decoration: underline; }
.dn-footer .wp-block-search__input { border-radius: 8px 0 0 8px; border: 0; }
.dn-footer .wp-block-search__button { background: #D4A62A; color: #2B2B2B; border-radius: 0 8px 8px 0; margin-left: 0; }
.dn-qr { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 6px; }
.dn-bottom { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #B8CDA6; }
.dn-bottom p { margin: 0; }
.dn-bottom .dn-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* Top bar + Translate */
.dn-topbar { height: 40px; display: flex; align-items: center; color: #D8E6CB; font-size: .82rem; }
.dn-topbar > .wp-block-group { width: 100%; }
.dn-topbar__note { margin: 0; }
.dn-translate { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.dn-translate__label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: #fff; }
.dn-translate__label::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></svg>') center/contain no-repeat; }
#google_translate_element { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dn-lang { appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, .12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') right .5rem center / .8rem no-repeat; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; padding: .2rem 1.8rem .2rem .6rem; font: 600 .82rem/1.4 'Open Sans', sans-serif; cursor: pointer; }
.dn-lang:hover { background-color: rgba(255, 255, 255, .2); }
.dn-lang option { color: #2B2B2B; background: #fff; }
body { top: 0 !important; }
body > .skiptranslate, .goog-te-banner-frame { display: none !important; }
@media (max-width: 781px) { .dn-topbar__note { display: none; } }

/* Forms */
.wpcf7 label, .dn-signup label { display: block; font-weight: 600; font-size: .95rem; }
/* Form grid: short fields side by side, long ones across both columns */
.dn-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; }
.dn-form__wide { grid-column: 1 / -1; }
.dn-form .wpcf7-form-control-wrap { display: block; }
.dn-form input:not([type=submit]):not([type=checkbox]), .dn-form select, .dn-form textarea { padding: .55rem .8rem; line-height: 1.35; margin-top: .2rem; }
.dn-form textarea { height: 5.75rem; min-height: 4.5rem; resize: vertical; }
.dn-form__legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.dn-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: .3rem .75rem; }
.dn-form .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.dn-form .wpcf7-checkbox label, .dn-form .wpcf7-acceptance label { font-weight: 400; display: inline-flex; align-items: baseline; gap: .4rem; }
.dn-form .wpcf7-checkbox label { font-size: .9rem; }
.dn-form__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.25rem; }
.dn-form__end > span:first-child { flex: 1 1 260px; font-size: .9rem; }
.dn-form__end { position: relative; }
.dn-form__end .wpcf7-spinner { position: absolute; right: -2rem; top: 50%; margin: -12px 0 0; }
.dn-form__end .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; border-radius: 8px; }
@media (max-width: 600px) { .dn-form { grid-template-columns: 1fr; } }

/* Split pages (Volunteer): text on the left, form panel on the right */
.dn-split > .wp-block-column > :first-child { margin-top: 0; }
.dn-split .dn-photo { max-width: 400px; margin-top: 1.75rem; }
.dn-form-panel { padding: clamp(1.1rem, 2vw, 1.4rem); background: #F3F7EE; border: 1px solid #DDE8D2; border-radius: var(--dn-radius); }
@media (min-width: 782px) { .dn-split__form { position: sticky; top: 100px; align-self: flex-start; } }

/* Contact page: the card beside the form matches its height */
.dn-contact-card { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; background: #F3F7EE; border: 1px solid #DDE8D2; border-radius: var(--dn-radius); }
.dn-contact-card h3 { font-size: 1.3rem !important; margin: 0 0 .5rem; }
.dn-contact-card h4 { font-size: 1.05rem !important; margin: .75rem 0 .5rem; }
.dn-contact-card__more { margin-top: auto !important; padding-top: 1rem; border-top: 1px solid #DDE8D2; font-size: .95rem; }
.dn-contact-card__more p { margin: 0 0 .35rem; }
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select, .dn-signup input:not([type=hidden]):not([type=checkbox]), .dn-signup select, .login-form input[type=text], .login-form input[type=password] { width: 100%; padding: .75rem .9rem; border: 1px solid #C7D6B9; border-radius: 8px; font: inherit; margin-top: .3rem; background: #fff; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .dn-signup input:focus, .dn-signup select:focus { border-color: #2E6B1F; outline: 3px solid rgba(107, 165, 57, .3); }
.wpcf7 input[type=submit], .dn-signup .dn-submit, .login-form input[type=submit] { background: #2E6B1F; color: #fff; border: 0; border-radius: 8px; padding: .8rem 1.4rem; font-family: Montserrat, sans-serif; font-weight: 600; cursor: pointer; }

/* Donations are off until a donate link is saved in Dinas settings */
.dn-no-donate span.dn-needs-donate { display: none; }

/* Partners and funders: one quiet band of logos */
.dn-partners { padding-top: var(--wp--preset--spacing--50); padding-bottom: 0; border-top: 1px solid #E7EFDF; margin-top: 0; margin-bottom: 0; }
/* Heading and logos share a row when there is room; the logos wrap underneath when there are many */
.dn-partners__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem clamp(2rem, 5vw, 4rem); }
.dn-partners__title { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.dn-partners__list { flex: 1 1 300px; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; }
.dn-partners__list img { display: block; width: auto; height: auto; max-width: 240px; max-height: 96px; object-fit: contain; }

/* Members sign-up form */
.dn-signup .dn-check { display: inline-flex; align-items: baseline; gap: .5rem; font-weight: 400; font-size: .9rem; }
.dn-signup .dn-check input { flex: none; }
.dn-signup .dn-submit:hover { background: #1F4A15; }
.dn-signup .dn-submit:focus-visible { outline: 3px solid #D4A62A; outline-offset: 2px; }
.dn-signup__alt { margin: 1rem 0 0; font-size: .92rem; }
.dn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dn-form-errors { margin: 0 0 1rem; padding: .8rem 1rem; background: #FDECEA; border: 1px solid #F1B5AE; border-radius: 10px; color: #7A1F17; font-size: .92rem; }
.dn-form-errors p { margin: 0 0 .3rem; }
.dn-form-errors ul { margin: 0; padding-left: 1.1rem; }
.dn-form-errors a { color: inherit; }
.dn-steps { list-style: none; counter-reset: dn-step; margin: 1rem 0 0; padding: 0; }
.dn-steps li { counter-increment: dn-step; position: relative; padding: 0 0 1rem 2.6rem; }
.dn-steps li::before { content: counter(dn-step); position: absolute; left: 0; top: .1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #2E6B1F; color: #fff; font-family: Montserrat, sans-serif; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.dn-members-intro .wp-block-buttons { margin-top: .75rem; }

/* Members */
.dn-hub-panel { background: #fff; border: 1px solid #DDE8D2; border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--dn-shadow); }
.dn-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.dn-hub-item { display: block; padding: 1.1rem 1.2rem; border: 1px solid #DDE8D2; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; transition: transform .2s var(--dn-ease), box-shadow .2s var(--dn-ease); }
.dn-hub-item:hover { transform: translateY(-2px); box-shadow: var(--dn-shadow); }
.dn-hub-item strong { display: block; font-family: Montserrat, sans-serif; color: #2E6B1F; margin: .25rem 0; }
.dn-pill { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; background: #EAF3DE; color: #2E6B1F; margin-right: .25rem; }
.dn-pill.is-project { background: #FAEEDA; color: #7A5A0B; }
.dn-notice { background: #FAEEDA; border-radius: 10px; padding: .8rem 1rem; color: #5C4508; font-size: .9rem; }
.dn-protected { -webkit-user-select: none; user-select: none; }

@media (max-width: 781px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: -40px; }
	.dn-hero-badge { left: 12px; bottom: 12px; }
	.dn-brand img { width: 44px; height: 44px; }
	.dn-header .dn-donate { display: none; }
}

/* Layout refinements */
.wp-block-columns:has(.dn-day) > .wp-block-column { align-self: flex-start; }
@media (min-width: 782px) { .wp-block-columns:has(.dn-day) > .wp-block-column:first-child { position: sticky; top: 110px; } }
.dn-card h3 { font-size: 1.3rem !important; }
.dn-card h4 { font-size: 1.1rem !important; }
.dn-card > *:last-child { margin-bottom: 0; }
.dn-card .dn-ticks li { font-size: .95rem; }

*, *::before, *::after { box-sizing: border-box; }
.login-form p { margin: 0 0 .9rem; }
.login-form label { display: block; font-weight: 600; font-size: .95rem; }
.dn-members-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dn-members-intro h2 { margin-top: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
@media (max-width: 781px) { .dn-members-intro { grid-template-columns: 1fr; } }

/* Member downloads: file cards with Preview and Download */
.dn-files { margin: 0 0 1.5rem; }
.dn-files__title { font-size: 1.15rem !important; margin: 0 0 .75rem; }
.dn-files ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.dn-file { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .85rem; row-gap: .1rem; align-items: center; padding: 1rem; border: 1px solid #DDE8D2; border-radius: 12px; background: #fff; }
.dn-file__type { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 8px; background: #EAF3DE; color: #2E6B1F; font: 700 .68rem Montserrat, sans-serif; letter-spacing: .04em; }
.dn-file__name { font-weight: 600; color: #2B2B2B; line-height: 1.35; overflow-wrap: anywhere; }
.dn-file__meta { font-size: .8rem; color: #5A6157; }
.dn-file__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.dn-file__btn { flex: 1 1 auto; text-align: center; padding: .5rem .9rem; border-radius: 8px; border: 1.5px solid #2E6B1F; background: #2E6B1F; color: #fff; font: 600 .85rem Montserrat, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.dn-file__btn:hover { background: #1F4A15; border-color: #1F4A15; color: #fff; }
.dn-file__btn--preview { background: #fff; color: #2E6B1F; }
.dn-file__btn--preview:hover { background: #EAF3DE; border-color: #2E6B1F; color: #1F4A15; }

/* Resource page: guidance on the left, files and notes on the right */
.dn-resource__side { align-self: flex-start; }
@media (min-width: 782px) { .dn-resource__side { position: sticky; top: 100px; } }
.dn-resource .wp-block-post-content > * { max-width: 68ch; }
.dn-resource .wp-block-post-content > :first-child { margin-top: 0; }

/* PDF preview window */
.dn-preview { width: min(1100px, 94vw); height: 92vh; max-height: 92vh; padding: 0; border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.dn-preview[open] { display: flex; flex-direction: column; }
.dn-preview::backdrop { background: rgba(31, 74, 21, .72); }
.dn-preview__bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: #F3F7EE; border-bottom: 1px solid #DDE8D2; }
.dn-preview__bar h2 { flex: 1; min-width: 0; margin: 0; font-size: 1rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-preview__bar .dn-file__btn { flex: none; }
.dn-preview iframe { flex: 1; width: 100%; border: 0; background: #5A6157; }

/* Resource library: one grid, filtered by category */
.dn-hub__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.dn-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid #C7DBB4; background: #fff; color: #2E6B1F; font: 600 .88rem Montserrat, sans-serif; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.dn-chip span { font-weight: 600; font-size: .78rem; color: #5A6157; }
.dn-chip:hover { border-color: #2E6B1F; }
.dn-chip.is-active { background: #2E6B1F; border-color: #2E6B1F; color: #fff; }
.dn-chip.is-active span { color: #D8E6CB; }
.dn-hub-item[hidden] { display: none; }
.dn-hub-item { display: flex; flex-direction: column; }
.dn-hub-item__pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.dn-hub-item__text { color: #5A6157; font-size: .9rem; }
.dn-hub-item__files { margin-top: auto; padding-top: .8rem; font-size: .8rem; font-weight: 600; color: #2E6B1F; }
.dn-hub__empty { color: #5A6157; }
.dn-pill.is-language { background: #F1EFE8; color: #444441; }

/* Schedule from the What's On form */
.dn-schedule { display: grid; gap: 1rem; }

/* ==========================================================================
   Puzzle design (adopted October 2026): shaped photos, hero collage, pill buttons.
   Shapes come from assets/puzzle-clips.svg, printed into each page by functions.php.
   ========================================================================== */

/* Puzzle-shaped photos on inner pages: knob below, notch near a top corner, mirrored by column. */
.dn-photo { filter: drop-shadow(0 16px 28px rgba(31, 74, 21, .2)); }
.dn-photo img { display: block; width: 100%; aspect-ratio: 400 / 344; object-fit: cover; border-radius: 0 !important; box-shadow: none; clip-path: url(#dn-photo-r); }
.wp-block-column:last-child:not(:first-child) > .dn-photo img { clip-path: url(#dn-photo-l); }

/* Hero collage: four interlocking pieces. Positions match the generated shapes. */
.dn-collage { position: relative; width: 100%; aspect-ratio: 408 / 328; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.dn-collage > * { position: absolute; margin: 0 !important; max-width: none !important; transition: transform .6s var(--dn-ease); }
.dn-collage .dn-tile-a { left: 0; top: 0; width: 56.373%; height: 48.78%; clip-path: url(#dn-tile-a); }
.dn-collage .dn-tile-b { left: 50.98%; top: 0; width: 49.02%; height: 57.927%; clip-path: url(#dn-tile-b); }
.dn-collage .dn-tile-d { left: 43.627%; top: 51.22%; width: 56.373%; height: 48.78%; clip-path: url(#dn-tile-d); }
.dn-collage .dn-tile-c { left: 0; top: 42.073%; width: 49.02%; height: 57.927%; clip-path: url(#dn-tile-c); }
.dn-hero .dn-collage .wp-block-image img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0 !important; box-shadow: none; }
.dn-collage .dn-tile-c { background: #D4A62A; color: #2B2B2B; }
.dn-hero .dn-tile__text { position: absolute; inset: 15.79% 12% 0 0; margin: 0; display: grid; place-content: center; text-align: center; color: #2B2B2B; }
.dn-tile__word { font-family: Caveat, cursive; font-weight: 600; font-size: clamp(1.3rem, 2.5vw, 2.15rem); line-height: 1.05; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.dn-collage:hover .dn-tile-a { transform: translate(-4px, -4px); }
	.dn-collage:hover .dn-tile-b { transform: translate(4px, -4px); }
	.dn-collage:hover .dn-tile-d { transform: translate(4px, 4px); }
	.dn-collage:hover .dn-tile-c { transform: translate(-4px, 4px); }
}

/* Highlighted word in the hero headline. */
/* The highlighted phrase stays on one line; the headline size is set so it fits down to small phones. */
.dn-hero h1 mark { background: none; color: #EBC867; white-space: nowrap; }

/* Pill buttons with an arrow. Form submit buttons are not block buttons, so they keep their shape. */
.wp-block-button__link { display: inline-flex; align-items: center; gap: .65rem; border-radius: 999px; padding: .5rem .55rem .5rem 1.3rem; }
.wp-block-button__link:focus-visible { border-radius: 999px; }
.wp-block-button__link::after { content: ""; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #EBC867 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231F4A15" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>') center / 52% no-repeat; transition: transform .25s var(--dn-ease); }
.wp-block-button__link:hover::after { transform: translateX(3px); }
.is-style-gold .wp-block-button__link::after { background-color: #2B2B2B; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23EBC867" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>'); }
.wp-block-button.is-style-outline .wp-block-button__link::after { background-color: #2E6B1F; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>'); }
.wp-block-button.is-style-outline .wp-block-button__link:hover::after,
.is-style-outline-light .wp-block-button__link::after { background-color: #fff; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232E6B1F" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>'); }
.dn-donate .wp-block-button__link { padding: .35rem .4rem .35rem 1rem; }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link:hover::after { transform: none; } }

/* Three ways to get involved, on a green band. The middle card is the featured one, in gold. */
.dn-ways-section h2 { color: #fff; }
.dn-ways .dn-card { border-color: transparent; }
.dn-card--feature { background: #D4A62A; }
.dn-card--feature h3 { color: #2B2B2B; }
.dn-card--feature p { color: #3A3115; }
.dn-ways .dn-card:hover { border-color: transparent; }
.dn-ways .dn-card { display: flex; flex-direction: column; }
.dn-ways .dn-card .wp-block-buttons { margin-top: auto; padding-top: .5rem; }
.dn-ways .dn-card h3 { margin-top: 0; }

.dn-members-intro { max-width: 1000px; }
.dn-hub-item__pills .dn-pill, .dn-resource__side .dn-pill { border-radius: 6px; }
.dn-contact-card .dn-social a { background: #fff; }
