/*
Theme Name: Hivos Corporate ORG
Theme URI: https://hivos.org
Author: Tatemae
Author URI: https://tatemae.nl
Description: Child theme for the global Hivos corporate site (hivos.org).
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Template: hivos-block-theme
Text Domain: hivos-corporate-org
Tags: hivos, child-theme, full-site-editing, block-patterns
*/

/* News & Views page: remove the default site-blocks vertical rhythm gap.
   The gap comes from `:where(.wp-site-blocks) > * { margin-block-start: ... }`. */
body.page-id-3425 :where(.wp-site-blocks) > *,
body.page-news-and-views :where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

body.page-id-3425 .c-page-header,
body.page-news-and-views .c-page-header {
   margin-bottom:0;
}

/* Utility aliases (legacy/classic naming) */
.visible-in-mobile { display: none !important; }
.hidden-in-mobile { display: block !important; }

@media (max-width: 782px) {
	.visible-in-mobile { display: block !important; }
	.hidden-in-mobile { display: none !important; }
}

@media (max-width: 782px) {
	/* Publications cards: make the cover + mobile title sit side-by-side */
	.wp-block-column.is-flex-in-mobile {
		display: flex !important;
		gap: 16px;
		align-items: flex-start;
	}

	.wp-block-column.is-flex-in-mobile .c-publication-cover-image {
		flex: 0 0 25%;
		width: 25%;
	}

	.wp-block-column.is-flex-in-mobile .visible-in-mobile {
		flex: 1 1 auto;
		margin: 0;
	}

	.wp-block-column.is-flex-in-mobile .visible-in-mobile.wp-block-post-title,
	.wp-block-column.is-flex-in-mobile .visible-in-mobile.wp-block-post-title a {
		font-size: 1.5rem;
		line-height: 1.1;
	}
}
/* Only stretch featured images, not every image inside cards (e.g. profile images). */
.aws-cell-post-card .wp-block-post-featured-image img {
	height: 100%;
	object-fit: cover;
}

/* Program Publications subpage: keep list 1200px centered (background stays full width). */
.c-program-publications .wp-block-group.alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Where we work map block */
.c-where-we-work-map__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40, 2rem);
	align-items: start;
}

@media (min-width: 900px) {
	.c-where-we-work-map__cols {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

.c-where-we-work-map__map {
	width: 100%;
	height: 520px !important;
	min-height: 520px;
}

@media (max-width: 600px) {
	.c-where-we-work-map__map {
		height: 300px !important;
		min-height: 300px;
		overflow: hidden;
	}
}

.c-where-we-work-map__map .jvectormap-container,
.c-where-we-work-map__map svg {
	width: 100% !important;
	height: 100% !important;
}

/* Mobile: shift map left + make it a bit smaller */
@media (max-width: 600px) {
	.c-where-we-work-map__map .jvectormap-container {
		overflow: hidden;
	}

	.c-where-we-work-map__map svg {
		transform-origin: left top;
		transform: translateX(0%) scale(1);
	}
}

.c-where-we-work-map__map .jvectormap-zoomin,
.c-where-we-work-map__map .jvectormap-zoomout,
.c-where-we-work-map__map .jvectormap-goback {
	display: none !important;
}

.c-where-we-work-map__programs {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-where-we-work-map__programs li {
	margin-bottom: 0.5rem;
}

.c-where-we-work-map__list {
	padding-top: 2rem;
}

.c-where-we-work-map__title {
	margin-top: 0;
	margin-bottom: 1rem;
}

.c-where-we-work-map__hint {
	color: var(--wp--preset--color--black, #000);
	margin: 0 0 0.75rem 0;
}

.c-where-we-work-map__programs li[data-countries] {
	margin: 0 0 1rem 0;
}

.c-where-we-work-map__programs li[data-countries] > a {
	display: block;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--primary, #d51317);
	padding: 1rem 1.25rem;
	border-radius: 0;
	text-decoration: none;
}

.c-where-we-work-map__programs li[data-countries] > a:hover,
.c-where-we-work-map__programs li[data-countries] > a:focus-visible {
	text-decoration: underline;
}

/* Mailchimp signup block */
.c-mailchimp-signup {
	text-align: center;
}

.c-mailchimp-signup__title {
	margin-top: 0;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--primary, #d51317);
}

.c-mailchimp-signup__text {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.c-mailchimp-signup__form {
	display: flex;
	gap: 0;
	align-items: center;
	justify-content: center;
}

.c-mailchimp-signup__input {
	flex: 0 1 520px;
	width: min(520px, 100%);
	box-sizing: border-box;
	border-top-left-radius: 1.25rem;
	border-bottom-left-radius: 1.25rem;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	padding: 0.9rem 1.25rem;
	border: 0;
	background: var(--wp--preset--color--base, #fff);
}

.c-mailchimp-signup__button {
	border-top-right-radius: 1.25rem;
	border-bottom-right-radius: 1.25rem;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	box-sizing: border-box;
	padding: 0.9rem 1.25rem;
	white-space: nowrap;
	background: var(--wp--preset--color--primary, #d51317);
	color: var(--wp--preset--color--base, #fff);
	border: 0;
	margin-left: 0;
}

.c-mailchimp-signup__hp {
	position: absolute;
	left: -5000px;
}

@media (max-width: 600px) {
	.c-mailchimp-signup__form {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.c-mailchimp-signup__button {
		margin-left: 0;
		width: 100%;
		border-radius: 1.25rem;
		padding: 0.75rem 1rem;
		line-height: 1.2;
		min-height: 3.1rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.c-mailchimp-signup__input {
		border-radius: 1.25rem;
		flex: 1 1 auto;
		width: 100%;
		padding: 0.75rem 1rem;
		line-height: 1.2;
		min-height: 3.1rem;
	}
}

.c-where-we-work-map__no-results {
	background: var(--wp--preset--color--base, #fff);
	padding: 1rem 1.25rem;
}

/* Publications overview: keep "Read more" at card bottom + arrow */
body.page-id-18238 .aws-cell-post-card,
body.page-id-36946 .aws-cell-post-card {
	display: flex;
	flex-direction: column;
}

body.page-id-18238 .aws-cell-post-card .aws-cell-post-body,
body.page-id-36946 .aws-cell-post-card .aws-cell-post-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

body.page-id-18238 .aws-cell-post-card .wp-block-read-more,
body.page-id-36946 .aws-cell-post-card .wp-block-read-more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

body.page-id-18238 .aws-cell-post-card .wp-block-read-more::after,
body.page-id-36946 .aws-cell-post-card .wp-block-read-more::after {
	content: "";
	--right-arrow: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDQ3LjI0MyA0NDcuMjQzIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NDcuMjQzIDQ0Ny4yNDM7IiB4bWw6c3BhY2U9InByZXNlcnZlIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoLTAuOTk5NSAtMS4yMjQwM2UtMTYgMS4yMjQwM2UtMTYgLTAuOTk5NSA0NDcuMTMxIDQ0Ny4xMzEpIj48Zz4KCTxnPgoJCTxwYXRoIGQ9Ik00MjAuMzYxLDE5Mi4yMjljLTEuODMtMC4yOTctMy42ODItMC40MzQtNS41MzUtMC40MUg5OS4zMDVsNi44OC0zLjJjNi43MjUtMy4xODMsMTIuODQzLTcuNTE1LDE4LjA4LTEyLjhsODguNDgtODguNDggICAgYzExLjY1My0xMS4xMjQsMTMuNjExLTI5LjAxOSw0LjY0LTQyLjRjLTEwLjQ0MS0xNC4yNTktMzAuNDY0LTE3LjM1NS00NC43MjQtNi45MTRjLTEuMTUyLDAuODQ0LTIuMjQ3LDEuNzY0LTMuMjc2LDIuNzU0ICAgIGwtMTYwLDE2MEMtMy4xMTksMjEzLjI2OS0zLjEzLDIzMy41Myw5LjM2LDI0Ni4wMzRjMC4wMDgsMC4wMDgsMC4wMTcsMC4wMTcsMC4wMjUsMC4wMjVsMTYwLDE2MCAgICBjMTIuNTE0LDEyLjQ3OSwzMi43NzUsMTIuNDUxLDQ1LjI1NS0wLjA2M2MwLjk4Mi0wLjk4NSwxLjg5OS0yLjAzMywyLjc0NS0zLjEzN2M4Ljk3MS0xMy4zODEsNy4wMTMtMzEuMjc2LTQuNjQtNDIuNCAgICBsLTg4LjMyLTg4LjY0Yy00LjY5NS00LjctMTAuMDkzLTguNjQxLTE2LTExLjY4bC05LjYtNC4zMmgzMTQuMjRjMTYuMzQ3LDAuNjA3LDMwLjY4OS0xMC44MTIsMzMuNzYtMjYuODggICAgQzQ0OS42NTQsMjExLjQ5NCw0MzcuODA2LDE5NS4wNTksNDIwLjM2MSwxOTIuMjI5eiIgZGF0YS1vcmlnaW5hbD0iIzAwMDAwMCIgY2xhc3M9ImFjdGl2ZS1wYXRoIiBzdHlsZT0iZmlsbDojMDAwMDAwIj48L3BhdGg+Cgk8L2c+CjwvZz48L2c+IDwvc3ZnPg==);
	width: 16px;
	height: 16px;
	-webkit-mask-size: cover;
	mask-size: cover;
	mask-image: var(--right-arrow);
	-webkit-mask-image: var(--right-arrow);
	display: inline-block;
	margin-left: 8px;
	position: relative;
	top: 2px;
	left: 0;
	transition: 0.2s;
	background-color: currentColor;
}

body.page-id-18238 .aws-cell-post-card .wp-block-read-more:hover::after,
body.page-id-36946 .aws-cell-post-card .wp-block-read-more:hover::after {
	left: 4px;
}

/* Publications overview: ensure middle column stretches so read-more can sit at bottom */
body.page-id-18238 .aws-cell-post-card,
body.page-id-36946 .aws-cell-post-card {
	height: 100%;
}

body.page-id-18238 .aws-cell-post-card > .wp-block-columns,
body.page-id-36946 .aws-cell-post-card > .wp-block-columns {
	flex: 1 1 auto;
}

body.page-id-18238 .aws-cell-post-card > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-group,
body.page-id-36946 .aws-cell-post-card > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-group {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Publication download block: red button + white text + download icon */
.c-publication-download__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base) !important;
	border-radius: 1rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
	font-size: 16px;
	text-transform: none;
	letter-spacing: normal;
}

/* Override legacy publication card styles for our block button */
.card-publication .card-download-button .c-publication-download__link {
	text-transform: none !important;
	font-size: 14px !important;
	color: var(--wp--preset--color--base) !important;
	background: var(--wp--preset--color--primary) !important;
}

.card-publication .card-download-button .c-publication-download__link::before {
	background-color: var(--wp--preset--color--base) !important;
}

.c-publication-download {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.c-publication-download__link {
	margin-top: auto;
}

/* Publication cover image block */
.c-publication-cover-image__img {
	border-radius: 1rem;
}

/* Card-program-publication: optional mobile-only title in left column. */
@media (min-width: 783px) {
	body.page-publications .wp-block-columns > .wp-block-column:first-child .wp-block-post-title,
	body.post-type-archive-publication .wp-block-columns > .wp-block-column:first-child .wp-block-post-title,
	.c-program-publications .wp-block-columns > .wp-block-column:first-child .wp-block-post-title {
		display: none !important;
	}
}

/* Publications overview cards: mobile layout tweaks */
@media (max-width: 782px) {
	/* Show the title next to the cover in the left column */
	body.page-publications .wp-block-columns > .wp-block-column:first-child,
	body.post-type-archive-publication .wp-block-columns > .wp-block-column:first-child,
	.c-program-publications .wp-block-columns > .wp-block-column:first-child {
		display: flex;
		gap: 16px;
		align-items: flex-start;
	}

	body.page-publications .wp-block-columns > .wp-block-column:first-child .c-publication-cover-image,
	body.post-type-archive-publication .wp-block-columns > .wp-block-column:first-child .c-publication-cover-image,
	.c-program-publications .wp-block-columns > .wp-block-column:first-child .c-publication-cover-image {
		flex: 0 0 25%;
		width: 25%;
	}

	body.page-publications .wp-block-columns > .wp-block-column:first-child .wp-block-post-title,
	body.post-type-archive-publication .wp-block-columns > .wp-block-column:first-child .wp-block-post-title,
	.c-program-publications .wp-block-columns > .wp-block-column:first-child .wp-block-post-title {
		flex: 1 1 auto;
		margin: 0;
	}

	/* Hide the (duplicate) title in the right/content column on mobile */
	body.page-publications .wp-block-columns > .wp-block-column:nth-child(2) .wp-block-post-title,
	body.post-type-archive-publication .wp-block-columns > .wp-block-column:nth-child(2) .wp-block-post-title,
	.c-program-publications .wp-block-columns > .wp-block-column:nth-child(2) .wp-block-post-title {
		display: none !important;
	}
}

.c-publication-download__link::before {
	content: "";
	/* Inline SVG download icon */
	--download-icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyIDE2bDQtNGgtM3YtOGgtMnY4SDhsNCA0em04IDJ2MmgtMTZ2LTJoMTZ6Ii8+PC9zdmc+);
	width: 24px;
	height: 24px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask-image: var(--download-icon);
	mask-image: var(--download-icon);
	-webkit-mask-size: cover;
	mask-size: cover;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	flex: 0 0 auto;
}

/* Single publication: make right column stretch, align download block bottom */
body.single-publication .aws-cell-post-card > .wp-block-columns > .wp-block-column:last-child {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
}

body.single-publication .aws-cell-post-card > .wp-block-columns > .wp-block-column:last-child .c-publication-download {
	margin-top: auto;
}

@media (min-width: 782px) {
	body.single-publication .aws-cell-post-card > .wp-block-columns > .wp-block-column:last-child .c-publication-download {
		margin-top: 10rem;
	}
}

/* Single publication card: deterministic bottom-aligned actions */
body.single-publication .c-publication-card__cols {
	display: grid !important;
	grid-template-columns: 25% 1fr 20%;
	gap: var(--wp--preset--spacing--30, 24px);
	align-items: stretch;
}

body.single-publication .c-publication-card__actions-col,
body.single-publication .c-publication-card__actions {
	height: 100%;
}

body.single-publication .c-publication-card__actions-col {
	display: flex;
	flex-direction: column;
	position: relative;
	padding-bottom: 0;
}

body.single-publication .c-publication-card__actions {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 1 auto;
	margin: 0;
}

/* Single publication: ensure the card and columns stretch to full height */
body.single-publication .aws-cell-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.single-publication .aws-cell-post-card > .wp-block-columns {
	flex: 1 1 auto;
	display: flex !important;
	align-items: stretch !important;
	width: 100%;
}

body.single-publication .aws-cell-post-card > .wp-block-columns > .wp-block-column {
	align-self: stretch;
	display: flex !important;
	flex-direction: column;
}

body.single-publication .aws-cell-post-card > .wp-block-columns > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
}

/* If flex stretching is overridden elsewhere, enforce a grid layout on desktop so the right
   column can reliably align its button to the bottom of the tallest column. */
@media (min-width: 782px) {
	body.single-publication .aws-cell-post-card > .wp-block-columns {
		display: grid !important;
		grid-template-columns: 25% 1fr 20%;
		gap: var(--wp--preset--spacing--30, 24px);
		align-items: stretch !important;
	}

	body.single-publication .aws-cell-post-card > .wp-block-columns > .wp-block-column {
		width: auto !important;
		margin: 0 !important;
	}
}

.c-publication-download__link:hover,
.c-publication-download__link:focus-visible {
	opacity: 0.9;
	text-decoration: none;
}
.site-footer {
   margin-top:0;
}

/* ── Social share (ORG) ───────────────────────────────────────────────────── */
.c-social-share {
	text-align: center;
}

.c-social-share__desktop {
	display: none;
	justify-content: center;
	gap: 10px;
	margin: 12px 0 0;
}

.c-social-share__icon {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #d9d9d9;
	border-radius: 2px;
	text-decoration: none;
}

.c-social-share__icon svg {
	width: 20px;
	height: 20px;
	fill: #ffffff;
}

.c-social-share__mobile {
	margin-top: 12px;
	display: flex;
	justify-content: center;
}

.c-social-share__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 0;
	padding: 12px 18px;
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.c-social-share__button svg {
	width: 18px;
	height: 18px;
	fill: var(--wp--preset--color--base);
}

/* Desktop shows icon row, mobile shows share button */
@media (min-width: 768px) {
	.c-social-share__desktop { display: flex; }
	.c-social-share__mobile { display: none; }
}

/* Fallback dialog (only used when Web Share API not available) */
.c-social-share__dialog {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 9999;
}

.c-social-share__dialog[hidden] {
	display: none !important;
}

.c-social-share__dialog-inner {
	background: #fff;
	width: min(420px, 100%);
	border-radius: 12px;
	padding: 18px;
	position: relative;
}

.c-social-share__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.c-social-share__targets {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

.c-social-share__target {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #111);
	font-weight: 600;
}

.c-social-share__copy {
	margin-top: 14px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 0;
	background: #111;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
}

/* ── Related meta bar (ORG) ──────────────────────────────────────────────── */
.c-related-meta-bar {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 16px;
	gap: 16px;
}

/* Allow using the columns as standalone blocks, too */
.c-related-meta-bar__col {
	color: var(--wp--preset--color--base);
}

@media (min-width: 768px) {
	.c-related-meta-bar {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
		padding: 18px 24px;
	}
}

.c-related-meta-bar__label {
	font-weight: 700;
	margin-bottom: 8px;
}

.c-related-meta-bar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.c-related-meta-bar__link {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.c-related-meta-bar__link:hover,
.c-related-meta-bar__link:focus-visible {
	opacity: 0.85;
}

/* ── Search results form: match search layover rounded style ─────────────── */
.search-results .aws-search-field-container {
	padding-right: 0 !important;
}

.search-results .aws-search-field-container .aws-cell-filters {
	width: 100%;
	max-width: var(--wp--style--global--content-size, 840px);
	margin-inline: auto;
}

.search-results .aws-search-field-container .aws-cell-filter-form {
	display: block !important;
}

.search-results .aws-search-field-container .aws-cell-filter-group--search {
	position: relative;
	width: 100% !important;
	max-width: min(var(--wp--style--global--content-size, 840px), 760px);
	margin-bottom: 44px;
}

.search-results .aws-search-field-container .aws-cell-filter-search {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid var(--wp--preset--color--secondary);
	border-radius: 1rem;
	background-color: var(--wp--preset--color--base);
	min-height: 48px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--museo);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0 0px 0 1rem;
}

.search-results .aws-search-field-container .aws-cell-filter-group:not(.aws-cell-filter-group--search) {
	display: inline-block;
	min-width: 260px;
}

.search-results .aws-search-field-container .aws-cell-filter-toggle {
	border-radius: 1rem;
}

.search-results .aws-search-field-container .aws-cell-filter-search::placeholder {
	color: var(--wp--preset--color--tertiary);
}

.search-results .aws-search-field-container .aws-cell-filter-search-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 40px;
	height: 40px;
	border-radius: 50px;
	border: 0;
	background-color: var(--wp--preset--color--gray-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	cursor: pointer;
}

.search-results .aws-search-field-container .aws-cell-filter-search-btn:hover {
	background-color: var(--wp--preset--color--secondary);
}

/* Programs page: style the Cells search to match filter toggles. */
body.page-id-3452 .aws-cell-filters .aws-cell-filter-search {
	box-sizing: border-box;
	min-height: 41px; /* matches toggle (line-height + 8px/16px padding) */
	padding: 8px 16px;
	border: 0;
	border-radius: 0;
	font-size: 16px;
	line-height: 1.4;
	background: var(--wp--preset--color--base);
}

/* Programs overview: ended label on program card image. */
body.page-id-3452 .wp-block-post-featured-image,
body.page-id-3452 .aws-cell-post-card.program-closed .wp-block-post-featured-image,
body.page-id-3452 .aws-cell-post-card.is-ended .wp-block-post-featured-image {
	position: relative;
}

body.page-id-3452 .wp-block-post-featured-image .c-program-ended-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 0.35rem 0.6rem;
	border-radius: 1rem;
	font-family: var(--wp--preset--font-family--museo);
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	z-index: 2;
	pointer-events: none;
}

/* Single Program: ended banner. */
.c-program-ended {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
}

.c-program-ended__text {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
}

.search-results .aws-search-field-container .aws-cell-labels {
	max-width: var(--wp--style--global--content-size, 840px);
	margin-inline: auto;
}

/* Safety: hide count output if older template version still has it on this page. */
.search-results .aws-search-field-container .aws-cell-total-results {
	display: none;
}

.search-results .aws-search-results-container .wp-block-hivos-post-type-label.card-type {
	display: inline-flex;
	align-items: center;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 16px;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 1rem;
}

/* ORG search layover custom list (About Hivos): remove bullets */
.c-search-layover__link-col .wp-block-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.c-search-layover__link-col .wp-block-list li {
	margin-bottom: 0.75rem;
}

.c-search-layover__link-col .wp-block-list li:last-child {
	margin-bottom: 0;
}

.c-search-layover__link-col .wp-block-list a {
	color: #000;
}

/* Header nav: align each submenu under its parent item */
.c-hivos-site-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
}

.c-hivos-site-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container {
	left: 0 !important;
	right: auto !important;
}

.c-hivos-site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 16px;
}

/* Header nav: style top-level Donate item (.white-button) */
.c-hivos-site-header--red .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item.white-button > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	border-radius: 1rem !important;
	padding: 0.25rem 0.9rem !important;
	display: inline-flex !important;
}

.c-hivos-site-header--red .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item.white-button > .wp-block-navigation-item__content:hover,
.c-hivos-site-header--red .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item.white-button > .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	opacity: 1 !important;
}

/* Vacancy meta blocks: keep lines tight (page /about-hivos/vacancies/). */
.c-vacancy-meta {
	margin-block: 0;
}

/* Single header label (vacancy). */
.c-vacancy-header__label {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1rem;
	font-size: 36px;
	line-height: 1.05;
	border-radius: 0 0 1rem 1rem;
	margin: 0;
	width: fit-content;
}

/* Vacancies overview: remove card hover shadow. */
body.page-id-15099 .aws-cell-post-card:hover,
body.page-vacancies .aws-cell-post-card:hover {
	box-shadow: none !important;
}
#cities-map {
	display:none;
}

#country-map-layover {
	position: absolute;
	z-index: 99999;
	width: 100%;
	background: white;
	max-width: 880px;
	left: 30px;
	top: 80px;
}

/* Ensure the layover positions over the map, not below it. */
#countries-map {
	position: relative;
}

/* Plugin outputs tooltip templates as `.hidden`; hide them properly. */
#countries-map .hidden {
	display: none;
}

/* City tooltip templates are rendered *outside* `#countries-map` in the plugin output. */
div[data-city-key].hidden,
div[data-city-key] .hidden,
#program-urban-cities-phone.hidden {
	display: none;
}

#country-map-layover.hidden {
	display: none;
}

#country-map-layover .map-popup {
	display: flex;
	flex-flow: wrap row;
}

#country-map-layover .map-popup .popup-image {
	flex-basis: 300px;
	height: 256px;
}

#country-map-layover .map-popup .popup-image img {
	object-fit: cover;
	width: 100%;
	height: 256px;
}

#country-map-layover .map-popup .popup-content {
	display: flex;
	flex-basis: 580px;
	padding-top: 16px;
}

#country-map-layover .map-popup .popup-content .aws-icon-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 14px;
	height: 14px;
}

#country-map-layover .map-popup .popup-content .aws-icon-arrow-right {
	display: none;
}

#country-map-layover .map-popup .popup-content .country-title {
	font-size: 2rem;
	margin-bottom: 24px;
	color: var(--wp--preset--color--primary, #d51317);
}

#country-map-layover .map-popup .popup-content .content-left {
	padding: 0 16px;
}

#country-map-layover .map-popup .popup-content .link {
	font-family: "MuseoSansRounded-700", sans-serif;
	color: var(--wp--preset--color--primary, #d51317);
}

#country-map-layover .map-popup .popup-content .content-right {
	flex-basis: 40%;
	padding: 16px;
}

#country-map-layover .map-popup .popup-content .content-right ul {
	padding: 0;
	margin: 0;
}
.content-right .stats {
display:none;
}