/*
Theme Name: MPF Santiago del Estero
Theme URI: https://www.mpfsde.gob.ar/
Author: Ministerio Público Fiscal de Santiago del Estero
Author URI: https://www.mpfsde.gob.ar/
Description: Block theme institucional, accesible y orientado a servicios públicos.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.4.6
Text Domain: mpf-sde
*/

.wp-site-blocks {
	min-height: 100vh;
}


/* Shared by the site and the block editor. Tokens live in theme.json. */
:where(.wp-site-blocks, .editor-styles-wrapper) {
	overflow-wrap: anywhere;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--link);
	outline-offset: 4px;
}
.mpf-sde-main { padding-block: var(--wp--preset--spacing--60); }
.mpf-sde-page-heading { margin-bottom: var(--wp--preset--spacing--50); }
.mpf-sde-meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); gap: var(--wp--preset--spacing--30); }
.is-style-mpf-eyebrow { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; font-weight: 400; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; }
.is-style-mpf-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--wp--preset--color--muted); }
.is-style-mpf-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--card); padding: var(--wp--preset--spacing--40); box-shadow: var(--wp--custom--shadow--card); }
.is-style-mpf-notice { background: var(--wp--preset--color--surface); border-inline-start: 3px solid var(--wp--preset--color--accent); padding: var(--wp--preset--spacing--40); }
.wp-block-button.is-style-mpf-accent .wp-block-button__link { background: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--white); }
.wp-block-button.is-style-mpf-accent .wp-block-button__link:hover { background: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--ink); border: 1px solid currentColor; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--wp--preset--color--white); background: var(--wp--preset--color--ink); }
:where(.wp-block-button__link, .wp-block-search__button) { min-height: 44px; box-sizing: border-box; }
:where(.wp-site-blocks, .editor-styles-wrapper) :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea) { font: inherit; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--muted); border-radius: var(--wp--custom--radius--small); padding: .65rem .85rem; max-width: 100%; box-sizing: border-box; }
.wp-block-search__inside-wrapper { gap: .5rem; }
.wp-block-search__button { margin-left: 0; }
.wp-block-post-featured-image img { border-radius: var(--wp--custom--radius--card); }
.mpf-sde-list .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--border); padding-block: var(--wp--preset--spacing--50); }
.mpf-sde-list .wp-block-post:first-child { padding-top: 0; }

/* Franja de redes sociales de la portada. */
.mpf-home-social {
	display: grid;
	grid-template-columns:minmax(280px,350px) minmax(0,1fr);
	align-items: center;
	gap: clamp(1.5rem,4vw,4rem);
	width:100%;
	max-width:var(--wp--style--global--wide-size);
	box-sizing: border-box;
	margin:0 auto;
	padding: clamp(1.8rem,2.5vw,2.5rem) clamp(2rem,3vw,3rem);
	border-radius: var(--wp--custom--radius--card);
	background: linear-gradient(105deg,#4f96d3 0%,#73ade0 52%,#5b9bd5 100%);
	color: #fff;
}
.mpf-home-social :where(p,a,.wp-block-social-link-label) { color:#fff!important; }
.mpf-home-social > p {
	max-width: 18rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.05rem,1.6vw,1.3rem);
	line-height: 1.35;
}
.mpf-home-social > .mpf-home-social-links {
	display: grid;
	grid-template-columns: minmax(250px,300px) repeat(2,minmax(190px,220px));
	gap: clamp(.65rem,1.5vw,1.25rem);
	width: 100%;
	margin: 0;
	justify-content:start;
}
.mpf-home-social-links .wp-social-link {
	width: 100%;
	border-radius: 4px;
	background:rgb(255 255 255 / 16%)!important;
}
.mpf-home-social-links .wp-social-link:hover { transform:none; background:rgb(255 255 255 / 24%)!important; }
.mpf-home-social-links .wp-social-link a {
	display: flex;
	align-items: center;
	gap: .65rem;
	min-height: 68px;
	padding: .9rem 1.25rem;
	box-sizing: border-box;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	font-weight: 600;
}
.mpf-home-social-links .wp-social-link a::after { content:'↗'; margin-left:auto; font-weight:400; }
.mpf-home-social-links .wp-social-link svg { width:24px; height:24px; flex:none; fill:currentColor; color:#fff; }
@media (max-width:1200px) {
	.mpf-home-social { grid-template-columns:minmax(0,1fr); }
	.mpf-home-social > p { max-width:32rem; }
	.mpf-home-social > .mpf-home-social-links { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:650px) {
	.mpf-home-social { padding:1.25rem; gap:1rem; }
	.mpf-home-social > .mpf-home-social-links { grid-template-columns:minmax(0,1fr); }
	.mpf-home-social > .mpf-home-social-links { gap:.5rem; }
	.mpf-home-social-links .wp-social-link a { min-height:48px; padding:.65rem .875rem; font-size:.875rem; }
	.mpf-home-social-links .wp-social-link svg { width:20px; height:20px; }
}
.wp-block-query-pagination { padding-top: var(--wp--preset--spacing--40); gap: 1rem; }
.wp-block-query-pagination :where(a, .current) { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.wp-block-query-pagination .current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border-radius: 4px; }
.wp-block-table { overflow-x: auto; }
.wp-block-table :where(th, td) { border-color: var(--wp--preset--color--border); padding: .75rem 1rem; }
.wp-block-table th { text-align: start; }
.wp-block-table figcaption, .wp-block-image figcaption { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.wp-block-details { border-block-end: 1px solid var(--wp--preset--color--border); padding-block: 1rem; }
.wp-block-details summary { cursor: pointer; font-weight: 600; padding-block: .5rem; }
@media (max-width: 600px) {
	.mpf-sde-main { padding-block: var(--wp--preset--spacing--50); }
	.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
}

/* Shared institutional shell, based on the Figma header and footer. */
.mpf-sde-site-header {
	background: rgb(247 244 239 / 44%);
	backdrop-filter: blur(2px);
	padding-block: 13px;
}
@media screen and (min-width: 1051px) {
	html {
		scroll-padding-top: calc(var(--mpf-desktop-header-height, 74px) + var(--wp-admin--admin-bar--height, 0px) + 16px);
	}
	.mpf-desktop-header {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 9998;
	}
	.mpf-desktop-header .mpf-sde-site-header {
		background: var(--wp--preset--color--canvas);
		backdrop-filter: none;
	}
	.mpf-desktop-header.is-desktop-scrolled .mpf-sde-site-header {
		background: var(--wp--preset--color--surface);
		box-shadow: 0 4px 16px rgb(40 40 40 / 8%);
	}
}
@media screen and (min-width: 1051px) and (prefers-reduced-motion: no-preference) {
	.mpf-desktop-header .mpf-sde-site-header { transition: background-color .2s ease, box-shadow .2s ease; }
}
.mpf-sde-site-header > .mpf-sde-header-row { max-width: var(--wp--style--global--wide-size); gap: 2rem; }
.mpf-sde-brand { flex: 0 0 auto; margin: 0; }
.mpf-sde-brand img, .mpf-sde-footer-brand img { display: block; border-radius: 0; }
.mpf-sde-brand a, .mpf-sde-footer-brand a { display: inline-block; vertical-align: middle; }
.mpf-sde-header-actions { gap: clamp(1.5rem, 3vw, 3rem); }
.mpf-sde-primary-navigation .mpf-sde-mobile-access { display: none; }
.mpf-sde-mobile-menu-brand, .mpf-sde-mobile-menu-masthead { display: none; }
.mpf-sde-primary-navigation { font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; font-weight: 600; }
.mpf-sde-primary-navigation .wp-block-navigation__container { gap: 29px; }
.mpf-sde-primary-navigation .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; }
.mpf-sde-primary-navigation .wp-block-navigation-item__content[href]:hover { text-decoration: underline; text-underline-offset: .3em; }
.mpf-sde-primary-navigation .wp-block-navigation-item__content:not([href]) { cursor: default; text-decoration: none; }
.mpf-sde-portal-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 10px 24px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	border-radius: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.mpf-sde-portal-button .wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark); }
.mpf-sde-portal-button img { display: block; flex: none; }
@media (min-width: 1051px) {
	.mpf-sde-site-header { padding-block: 10px; }
	.mpf-sde-site-header > .mpf-sde-header-row { gap: 1.5rem; }
	.mpf-sde-header-actions { gap: clamp(1rem, 2vw, 1.75rem); }
	.mpf-sde-primary-navigation { font-size: 1rem; }
	.mpf-sde-primary-navigation .wp-block-navigation__container { gap: 20px; }
	.mpf-sde-services-menu > .wp-block-navigation-submenu__toggle {
		gap: 6px;
		border-radius: 6px;
	}
	.mpf-sde-services-menu > .wp-block-navigation__submenu-container {
		min-width: 224px;
		padding: 6px;
		gap: 0;
		border: 1px solid var(--wp--preset--color--border);
		border-radius: 8px;
		background: var(--wp--preset--color--surface);
		color: var(--wp--preset--color--ink);
		box-shadow: 0 8px 24px rgb(40 40 40 / 12%);
	}
	.mpf-sde-services-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		box-sizing: border-box;
		width: 100%;
		padding: 8px 12px;
		border-radius: 4px;
		font-size: 1rem;
		font-weight: 500;
	}
	.mpf-sde-services-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		background: var(--wp--preset--color--canvas);
	}
	.mpf-sde-portal-button .wp-block-button__link {
		gap: 8px;
		min-height: 44px;
		padding: 6px 18px;
		border-radius: 6px;
		font-size: 1rem;
	}
	.mpf-sde-portal-button img { width: 18px; height: 18px; }
}
.mpf-sde-site-footer {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: clamp(3rem, 9.9vw, 11.8125rem);
	padding-bottom: clamp(2.5rem, 7vw, 8.4375rem);
	margin-top: var(--wp--preset--spacing--60);
}
.mpf-sde-site-footer > .mpf-sde-footer-organizations { max-width: var(--wp--style--global--wide-size); }
.mpf-sde-footer-logos {
	display: grid;
	grid-template-columns: 1.7fr .65fr 1fr 1.3fr 1.5fr 1.3fr 1.1fr;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 2.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.mpf-sde-footer-logos li { display: flex; align-items: center; justify-content: center; min-width: 0; }
.mpf-sde-footer-logos a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 88px;
	padding: .5rem;
	border-radius: 6px;
}
.mpf-sde-footer-logos a:hover { transform: translateY(-2px); }
.mpf-sde-footer-logos a:focus-visible { outline: 3px solid var(--wp--preset--color--link); outline-offset: 4px; }
.mpf-sde-footer-logos img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: clamp(3rem, 4.7vw, 5rem);
	object-fit: contain;
	filter: grayscale(1);
}
.mpf-sde-footer-logos a:is(:hover, :focus) img { filter: grayscale(0); }
.mpf-sde-footer-carousel-controls { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.mpf-sde-footer-logos img { transition: filter .2s ease; }
}
.mpf-sde-footer-logos .is-consejo img,
.mpf-sde-footer-logos .is-mpf-caba img { max-height: clamp(2.5rem, 3.7vw, 3.875rem); }
.mpf-sde-footer-logos .is-derechos-humanos img { max-height: clamp(3.5rem, 5.4vw, 5.75rem); }
.mpf-sde-site-footer > .mpf-sde-footer-row {
	display: grid;
	grid-template-columns: 1fr 1.3fr 1fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 6rem);
	max-width: var(--wp--style--global--wide-size);
	margin-top: clamp(2.5rem, 4.1vw, 4.875rem);
}
.mpf-sde-footer-row > * { margin-block: 0; min-width: 0; }
.mpf-sde-footer-brand { margin: 0; }
.mpf-sde-footer-contact, .mpf-sde-footer-credit { font-size: .875rem; line-height: 1.4; letter-spacing: -.02em; }
.mpf-sde-footer-contact p { margin-block: 0; }
.mpf-sde-footer-contact p + p { margin-top: .25rem; }
.mpf-sde-footer-contact a { color: inherit; text-underline-offset: .2em; }
.mpf-sde-footer-credit { max-width: 328px; justify-self: end; }
@media (min-width: 1200px) {
	.is-style-mpf-hero { overflow-x: clip; }
	.home .mpf-sde-site-header { position: relative; z-index: 1; }
	/* Continue the blend backdrop where the enlarged roof reaches the header. */
	.is-style-mpf-hero::before {
		content: "";
		position: absolute;
		inset: -74px 0 auto;
		height: 74px;
		background: var(--wp--preset--color--canvas);
		z-index: -1;
		pointer-events: none;
	}
	/* Enlarge the building silhouette without changing the text/card layout. */
	.is-style-mpf-hero-building img {
		transform: scale(1.28);
		transform-origin: 58% 55%;
	}
}
@media (min-width: 801px) and (max-width: 1050px) {
	.mpf-desktop-header { position: relative; z-index: 9998; }
}
@media (max-width: 1050px) {
	.mpf-sde-site-header { backdrop-filter: none; }
	.mpf-sde-site-header > .mpf-sde-header-row { gap: 1rem; }
	.mpf-sde-header-actions { gap: 0; margin-left: auto; }
	.mpf-sde-header-actions > .wp-block-buttons { display: none; }
	.mpf-sde-primary-navigation .is-menu-open .mpf-sde-mobile-access { display: flex; margin-top: .75rem; }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .mpf-sde-mobile-access .wp-block-navigation-item__content { padding: .65rem 1.5rem; border-radius: 8px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--white); }
	.mpf-sde-primary-navigation .mpf-sde-mobile-access a:hover { background: var(--wp--preset--color--accent-dark); }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container-open,
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
	.mpf-menu-enhanced :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 0;
	}
	.mpf-menu-enhanced :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) svg { width: 28px; height: 28px; }
	.mpf-menu-enhanced :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) path {
		transform-box: fill-box;
		transform-origin: center;
		transition: transform .24s ease;
	}
	.mpf-menu-enhanced.is-mobile-menu-open :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) path:first-child { transform: translateY(3.75px) rotate(45deg); }
	.mpf-menu-enhanced.is-mobile-menu-open :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) path:last-child { transform: translateY(-3.75px) rotate(-45deg); }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container.is-menu-open {
		inset: var(--mpf-mobile-header-offset, var(--wp-admin--admin-bar--height, 0px)) 0 auto;
		width: 100%;
		height: calc(100dvh - var(--mpf-mobile-header-offset, var(--wp-admin--admin-bar--height, 0px)));
		padding: 0;
		background: var(--wp--preset--color--canvas) !important;
		align-items: stretch;
		justify-content: flex-start;
		box-sizing: border-box;
		overscroll-behavior: contain;
		scroll-padding-block: calc(96px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-bottom, 0px));
		animation: mpf-mobile-menu-enter .24s ease both;
	}
	.mpf-sde-primary-navigation .is-menu-open .wp-block-navigation__responsive-close { width: 100%; min-height: 100%; margin: 0; }
	.mpf-sde-primary-navigation .is-menu-open .wp-block-navigation__responsive-dialog {
		position: relative;
		margin-top: 0;
		min-height: 100%;
		padding: calc(96px + env(safe-area-inset-top, 0px)) clamp(20px, 5vw, 48px) calc(32px + env(safe-area-inset-bottom, 0px));
		max-height: none;
		box-sizing: border-box;
		border: 0;
		border-radius: 0;
		background: var(--wp--preset--color--canvas);
		box-shadow: none;
	}
	.mpf-sde-primary-navigation .is-menu-open .mpf-sde-mobile-menu-masthead { display: block; position: fixed; inset: var(--mpf-mobile-header-offset, var(--wp-admin--admin-bar--height, 0px)) 0 auto; height: calc(80px + env(safe-area-inset-top, 0px)); background: var(--wp--preset--color--canvas); z-index: 2; }
	.mpf-sde-primary-navigation .is-menu-open .mpf-sde-mobile-menu-brand { display: block; position: absolute; top: calc(13px + env(safe-area-inset-top, 0px)); left: var(--wp--style--root--padding-left, 16px); width: min(231px, calc(100% - 96px)); margin: 0; }
	.mpf-sde-mobile-menu-brand img { display: block; width: 100%; height: auto; }
	.mpf-sde-primary-navigation .is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: calc(13px + env(safe-area-inset-top, 0px)); right: var(--wp--style--root--padding-right, 16px); border-radius: 6px; }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0; }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { align-items: stretch; width: 100%; gap: 8px; font-size: clamp(1.375rem, 3vw, 1.75rem); }
	.mpf-sde-primary-navigation .is-menu-open .wp-block-navigation-item { width: 100%; }
	.mpf-sde-primary-navigation .is-menu-open .wp-block-navigation-item__content { box-sizing: border-box; width: 100%; min-height: 48px; padding: 8px 0; border-radius: 4px; }
	.mpf-sde-primary-navigation .is-menu-open .mpf-sde-services-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content { min-height: 44px; font-size: 1rem; font-weight: 500; }
	.mpf-sde-primary-navigation .is-menu-open .wp-block-navigation-item__content[href]:hover { background: var(--wp--preset--color--surface); }
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .mpf-sde-services-menu > .wp-block-navigation__submenu-container {
		box-sizing: border-box;
		min-width: 0;
		width: 100%;
		padding: 4px 0 4px 12px;
		margin: 0;
		border-left: 1px solid var(--wp--preset--color--border);
	}
	.mpf-mobile-menu-open .mpf-mobile-header { transform: none !important; visibility: visible !important; }
	.mpf-mobile-menu-open .mpf-mobile-nav { visibility: hidden; pointer-events: none; }
	.mpf-sde-site-footer > .mpf-sde-footer-row { grid-template-columns: 1fr 1fr; }
	.mpf-sde-footer-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.5rem; }
	.mpf-sde-footer-credit { grid-column: 1 / -1; max-width: 40rem; justify-self: start; }
}
@keyframes mpf-mobile-menu-enter {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.mpf-sde-primary-navigation .wp-block-navigation__responsive-container.is-menu-open { animation: none; }
	.mpf-menu-enhanced :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) path { transition: none; }
}
@media (max-width: 600px) {
	.mpf-sde-site-header > .mpf-sde-header-row { flex-wrap: nowrap; gap: .5rem; }
	.mpf-sde-brand { flex: 0 1 231px; min-width: 0; }
	.mpf-sde-brand img { width: 100%; height: auto; }
	.mpf-sde-header-actions { flex: 0 0 auto; justify-content: flex-end; }
	.mpf-sde-site-footer > .mpf-sde-footer-row { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
	.mpf-sde-footer-logos a { min-height: 76px; }
	.mpf-sde-footer-credit { grid-column: auto; }
}
@media (max-width: 700px) {
	.mpf-sde-site-footer { padding-top: 1.75rem; }
	.mpf-sde-footer-organizations.has-carousel { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; }
	.mpf-sde-footer-logos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-block: .25rem; scrollbar-width: none; }
	.mpf-sde-footer-organizations.has-carousel .mpf-sde-footer-logos { grid-column: 2; grid-row: 1; min-width: 0; }
	.mpf-sde-footer-logos::-webkit-scrollbar { display: none; }
	.mpf-sde-footer-logos li { flex: 0 0 calc((100% - 12px) / 2); scroll-snap-align: start; }
	.mpf-sde-footer-logos a { min-height: 80px; box-sizing: border-box; padding: 6px; }
	.mpf-sde-footer-logos a:focus-visible { outline-offset: -3px; }
	.mpf-sde-footer-logos img { max-height: 52px; }
	.mpf-sde-footer-logos .is-consejo img, .mpf-sde-footer-logos .is-mpf-caba img { max-height: 40px; }
	.mpf-sde-footer-logos .is-derechos-humanos img { max-height: 56px; }
	.mpf-sde-footer-organizations.has-carousel .mpf-sde-footer-carousel-controls { display: contents; }
	.mpf-sde-footer-carousel-controls button { grid-row: 1; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 10px; color: var(--wp--preset--color--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
	.mpf-sde-footer-carousel-controls button:first-child { grid-column: 1; }
	.mpf-sde-footer-carousel-controls button:last-child { grid-column: 3; }
	.mpf-sde-footer-carousel-controls button:hover:not(:disabled) { background: var(--wp--preset--color--border); }
	.mpf-sde-footer-arrow { width: 20px; height: 20px; background: currentColor; mask: url('assets/vendor/lucide/icons/chevron-right.svg') center/contain no-repeat; }
	.mpf-sde-footer-carousel-controls button:first-child .mpf-sde-footer-arrow { transform: rotate(180deg); }
	.mpf-sde-footer-carousel-controls button:disabled { opacity: .4; cursor: default; }
	.mpf-sde-footer-carousel-controls button:focus-visible { outline: 3px solid var(--wp--preset--color--link); outline-offset: 2px; }
	.mpf-sde-site-footer > .mpf-sde-footer-row { margin-top: 1.5rem; }
	.mpf-sde-footer-row .mpf-sde-footer-brand { width: 200px; max-width: 100%; }
	.mpf-sde-footer-brand img { width: 100%; height: auto; }
}
.mpf-sde-footer-brand { mix-blend-mode: luminosity; }

/* Hero and reusable access cards: shared with the native block editor. */
.is-style-mpf-title-blue { color: var(--wp--preset--color--hero-blue); }
.is-style-mpf-title-red { color: var(--wp--preset--color--accent); }
.is-style-mpf-hero { position: relative; isolation: isolate; background: var(--wp--preset--color--canvas); padding-block: 0 2rem; }
.is-style-mpf-hero > .is-style-mpf-hero-background {
	position: absolute;
	inset: 0 0 auto;
	height: clamp(34rem, 46vw, 43rem);
	opacity: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	z-index: -1;
	pointer-events: none;
	mix-blend-mode: multiply;
}
.is-style-mpf-hero-background img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* Keep the animated waves behind the entire homepage while scrolling. */
.home .wp-site-blocks { isolation: isolate; }
.home .is-style-mpf-hero { isolation: auto; background: transparent; }
.home .is-style-mpf-hero > .is-style-mpf-hero-background {
	position: fixed;
	inset: 0;
	height: 100%;
}
@media print {
	.home .is-style-mpf-hero > .is-style-mpf-hero-background { display: none; }
}
.is-style-mpf-hero > .is-style-mpf-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
	align-items: center;
	min-height: 26.5rem;
	margin-block: 0;
}
.is-style-mpf-hero-layout > * { min-width: 0; margin-block: 0; }
.is-style-mpf-hero-copy { position: relative; z-index: 1; padding-block: 2rem 3rem; }
.is-style-mpf-hero-copy h1,
.mpf-map-intro h2 {
	color: var(--wp--preset--color--hero-blue);
	background-image: linear-gradient(180deg, var(--wp--preset--color--hero-blue) 15%, var(--wp--preset--color--accent) 90%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.is-style-mpf-hero-copy h1 {
	max-width: 8em;
	font-size: clamp(2.75rem, 5vw, 5rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -.055em;
	margin: 0;
}
.is-style-mpf-hero-copy > p { max-width: 25rem; margin-top: 2rem; font-family: var(--wp--preset--font-family--display); font-size: 1.0625rem; line-height: 1.35; }
.is-style-mpf-hero-layout > .is-style-mpf-hero-building {
	display: flex;
	align-items: flex-end;
	height: 26.5rem;
	width: 117%;
	max-width: none;
	margin-inline-start: -12%;
	align-self: end;
	mix-blend-mode: multiply;
}
.is-style-mpf-hero-building img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; border-radius: 0; }
.is-style-mpf-service-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .875rem;
	align-items: stretch;
}
.is-style-mpf-hero > .is-style-mpf-service-grid { position: relative; z-index: 2; margin-top: 2rem; }
.is-style-mpf-service-grid > * { min-width: 0; margin: 0; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-height: 14rem;
	padding: 1.5rem 1.625rem .5rem;
	border: 1px solid rgb(40 40 40 / 5%);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 3px 3px rgb(40 40 40 / 24%);
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > * { margin: 0; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > .wp-block-group { margin-bottom: 2.5rem; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) .wp-block-image { margin: 0; flex-shrink: 0; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) .wp-block-image img { display: block; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) .has-mono-font-family { font-size: .6875rem; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; color: inherit; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > p { margin-top: .5rem; margin-bottom: 1rem; font-size: .9375rem; line-height: 1.3; }
:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > .wp-block-buttons { margin-top: auto; border-top: 1px solid rgb(40 40 40 / 10%); }
.is-style-mpf-service-link { width: 100%; }
.is-style-mpf-service-link .wp-block-button__link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	box-sizing: border-box;
	padding: .625rem .75rem;
	border-radius: 2px;
	background: transparent;
	color: var(--wp--preset--color--link);
	font-family: var(--wp--preset--font-family--mono);
	font-size: .6875rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .02em;
	text-align: start;
	text-transform: uppercase;
}
.is-style-mpf-service-link .wp-block-button__link::after { content: ""; display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; mask: url('assets/vendor/lucide/icons/arrow-right.svg') center / contain no-repeat; transform: rotate(-45deg); }
.is-style-mpf-service-link .wp-block-button__link[href]:hover { background: rgb(56 127 193 / 8%); color: var(--wp--preset--color--link); text-decoration: underline; text-underline-offset: .2em; }
.is-style-mpf-service-link .wp-block-button__link:not([href]) { cursor: default; }
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) { position: relative; isolation: isolate; }
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured):has(.is-style-mpf-service-link .wp-block-button__link[href]) { cursor: pointer; }
.wp-site-blocks .is-style-mpf-service-link .wp-block-button__link[href]::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: var(--wp--custom--radius--small);
}
.wp-site-blocks .is-style-mpf-service-link .wp-block-button__link[href]::after { position: relative; z-index: 4; }
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured):has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) {
	background: var(--wp--preset--gradient--service-blue);
	border-color: transparent;
	box-shadow: 0 8px 20px rgb(36 93 143 / 24%);
	color: var(--wp--preset--color--white);
	transform: translateY(-2px);
}
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured):has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) .wp-block-image img { filter: brightness(0) invert(1); }
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured):has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) > .wp-block-buttons { border-color: rgb(255 255 255 / 30%); }
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured):has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) .wp-block-button__link { color: var(--wp--preset--color--white); }
.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured):has(.is-style-mpf-service-link .wp-block-button__link[href]):focus-within { outline: 3px solid var(--wp--preset--color--link); outline-offset: 4px; }
/* The complaint card stays neutral until interaction. */
.wp-site-blocks .is-style-mpf-service-card-featured:has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--ink); }
.wp-site-blocks .is-style-mpf-service-card-featured:has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) .wp-block-button__link { color: var(--wp--preset--color--ink); }
.wp-site-blocks .is-style-mpf-service-card-featured:has(.is-style-mpf-service-link .wp-block-button__link[href]):is(:hover, :focus-within, :active) .wp-block-image img { filter: brightness(0); }
/* Keep the decorative image selectable in Gutenberg's list view and canvas. */
.editor-styles-wrapper .is-style-mpf-hero > .is-style-mpf-hero-background { pointer-events: auto; }
@media (min-width: 801px) {
	.is-style-mpf-hero {
		--mpf-hero-row-gap: clamp(1.5rem, 4svh, 3rem);
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(min-content, 1fr) auto;
		row-gap: var(--mpf-hero-row-gap);
		/* Header: 48px controls + 13px padding on each side. Allow content to grow. */
		min-height: calc(100svh - 74px - var(--wp-admin--admin-bar--height, 0px));
		/* Keep card actions above the floating assistant. */
		padding-block: clamp(1rem, 3svh, 2rem) clamp(4.5rem, 8svh, 6rem);
		box-sizing: border-box;
	}
	.is-style-mpf-hero > .is-style-mpf-hero-background { height: 100%; }
	.is-style-mpf-hero > .is-style-mpf-hero-layout { width: 100%; min-height: 20rem; height: 100%; }
	.is-style-mpf-hero-copy { padding-block: .5rem; }
	.is-style-mpf-hero-copy > p { margin-top: clamp(1.5rem, 3svh, 2rem); }
	.is-style-mpf-hero-layout > .is-style-mpf-hero-building {
		position: relative;
		align-self: stretch;
		height: auto;
		min-height: 0;
		width: 110%;
		margin-inline-start: -8%;
	}
	.is-style-mpf-hero-building img {
		position: absolute;
		inset: 0;
		height: calc(100% + var(--mpf-hero-row-gap));
		object-position: center;
	}
	.is-style-mpf-hero > .is-style-mpf-service-grid { width: 100%; margin-block: 0; }
}
@media (max-width: 1050px) {
	.is-style-mpf-hero-copy h1 { font-size: clamp(2.5rem, 4.6vw, 3.25rem); }
}
@media (max-width: 800px) {
	.is-style-mpf-hero > .is-style-mpf-hero-layout { min-height: 25rem; }
	.is-style-mpf-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Anchor the stretched link to the whole card, including on touch devices. */
	.wp-site-blocks :is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > .wp-block-buttons,
	.wp-site-blocks .is-style-mpf-service-link,
	.wp-site-blocks .is-style-mpf-service-link .wp-block-button__link[href] { position: static; }
}
@media (max-width: 700px) {
	.is-style-mpf-hero > .is-style-mpf-hero-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 0; }
	.is-style-mpf-hero-copy { grid-row: 2; padding-block: .5rem 0; text-align: center; }
	.is-style-mpf-hero-copy h1 { max-width: 15em; margin-inline: auto; font-size: clamp(1.75rem, 8.9vw, 2.6rem); font-weight:600; line-height: 1.12; }
	.is-style-mpf-hero-copy h1 .mpf-hero-second-line { display: block; }
	.is-style-mpf-hero-copy > p { display: block; max-width: 30rem; margin: .75rem auto 0; font-size: .875rem; line-height: 1.5; }
	.is-style-mpf-hero { overflow-x: clip; }
	.is-style-mpf-hero-layout > .is-style-mpf-hero-building { display: block; grid-row: 1; width: calc(100% + 32px); margin-inline: -16px; align-self: center; }
	.is-style-mpf-hero > .is-style-mpf-service-grid { margin-top: 2.75rem; }
}
@media (max-width: 600px) {
	.is-style-mpf-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
	:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) {
		min-height: 8.5rem;
		padding: .75rem .75rem 0;
		box-shadow: 0 2px 3px rgb(40 40 40 / 16%);
	}
	:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > .wp-block-group { margin-bottom: .625rem; }
	:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) .wp-block-image img { width: 23px; height: 23px; }
	:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > h2 { font-size: clamp(.8125rem, 3.7vw, 1.0625rem); line-height: 1.2; letter-spacing: -.035em; }
	:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > p { display: none; }
	:is(.is-style-mpf-service-card, .is-style-mpf-service-card-featured) > .wp-block-buttons { margin-top: .625rem; }
	.is-style-mpf-service-link .wp-block-button__link { min-height: 44px; padding: .4rem 0; gap: .25rem; font-size: .5625rem; }
	.is-style-mpf-service-link .wp-block-button__link::after { font-size: .875rem; }
}

/* Mobile service cards expose one full-size link, without secondary controls. */
@media (max-width:800px) {
 .mpf-sde-brand { flex:0 1 185px; min-width:0; }
 .mpf-sde-brand img { width:185px; max-width:100%; height:auto; }
 .wp-site-blocks .is-style-mpf-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) { min-height:76px; padding:1rem; justify-content:center; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > :is(.wp-block-group,p) { display:none; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > h2 { font-size:clamp(.875rem,3.7vw,1.125rem); line-height:1.25; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > .wp-block-buttons { margin:0; border:0; height:0; }
 .wp-site-blocks .is-style-mpf-service-grid .is-style-mpf-service-link .wp-block-button__link[href] { position:absolute; inset:0; width:100%; height:100%; padding:0; font-size:0; background:transparent; }
 .wp-site-blocks .is-style-mpf-service-grid .is-style-mpf-service-link .wp-block-button__link::after { display:none; }
}

@media (max-width:700px) {
 .is-style-mpf-hero-copy h1 .mpf-hero-line { display:block; white-space:nowrap; }
}
@media (max-width:350px) { .is-style-mpf-hero-copy h1 { font-size:8.7vw; } }
@media (max-width:800px) {
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) { display:grid; grid-template-columns:24px minmax(0,1fr); column-gap:8px; align-items:center; min-height:84px; padding:.75rem; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > .wp-block-group { display:flex; grid-column:1; grid-row:1; margin:0; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > .wp-block-group > p { display:none; }
 .wp-site-blocks .is-style-mpf-service-grid .wp-block-image img { width:24px; height:24px; object-fit:contain; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > h2 { grid-column:2; grid-row:1; hyphens:auto; }
 .wp-site-blocks .is-style-mpf-service-grid > :is(.is-style-mpf-service-card,.is-style-mpf-service-card-featured) > .wp-block-buttons { grid-column:1 / -1; grid-row:1; }
}

@media(max-width:800px) {
 .wp-site-blocks .is-style-mpf-service-grid .wp-block-image img { filter:brightness(0) saturate(100%) invert(47%) sepia(68%) saturate(637%) hue-rotate(172deg) brightness(90%) contrast(95%); }
}
