/*
 * FEC — Donativos custom CSS.
 * Last resort only — prefer theme.json presets and block style variations.
 */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/*
 * theme.json's global blockGap (16px) adds margin-block-start between every
 * top-level flow sibling — including header/main/footer, and every page
 * section inside post-content. Each section already sets its own exact
 * vertical padding from Figma, so that extra 16px is pure unwanted overlap
 * between full-bleed bands. Scoped to just these two levels — nested
 * blockGap elsewhere (inside a section) is untouched and still works.
 */
.wp-site-blocks>* {
	margin-block-start: 0;
}

.wp-block-post-content>* {
	margin-block-start: 0;
}

/*
 * Whole-page container width, matching production exactly (chrome-spec.md
 * §5, §8; Paulo, 2026-08-06 — extended from the 3 original chrome elements
 * to every section on the page, so every band's content shares one common
 * left/right edge instead of the chrome sitting at 1080px while the page
 * body sat at Figma's 1144px contentSize). Every section now handles its
 * own horizontal spacing via `.fec-container` (further down, alongside the
 * chrome selectors), so root padding is zeroed globally rather than on
 * individual has-global-padding elements — zeroing the padding property
 * directly on e.g. `.wp-block-post-content` isn't enough, because WP's
 * alignfull escape trick computes its compensating negative margin from
 * this SAME custom property (`.has-global-padding > .alignfull { margin:
 * calc(var(--wp--style--root--padding-*) * -1) }`, wp-includes/
 * class-wp-theme-json.php), not from the parent's rendered padding. Leaving
 * the property at its 120px theme.json default while overriding padding
 * directly made the two drift apart: full-bleed bands (page-banner,
 * #amigo-fec, both fec-surface bands) still compensated for a 120px parent
 * padding that no longer existed, overshooting the viewport by 120px each
 * side. Zeroing the variable itself keeps both mechanisms in sync.
 */
body {
	--wp--style--root--padding-left: 0px;
	--wp--style--root--padding-right: 0px;
}

/* Long PT words (responsabilidade, desenvolvimento…) can overflow narrow card titles */
.is-style-fec-card h3,
.fec-reasons h3 {
	hyphens: auto;
	overflow-wrap: break-word;
}

/* is-style-fec-outline — core/button: outline variant (red-on-white / white-on-red) */
.is-style-fec-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--fec-red);
	border: 2px solid var(--wp--preset--color--fec-red);
}

.is-style-fec-outline .wp-block-button__link:hover,
.is-style-fec-outline .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--fec-red);
	color: var(--wp--preset--color--base);
}

.has-fec-red-background-color .is-style-fec-outline .wp-block-button__link,
.is-style-fec-outline.has-fec-red-on-white .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
}

.has-fec-red-background-color .is-style-fec-outline .wp-block-button__link:hover,
.has-fec-red-background-color .is-style-fec-outline .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--fec-red);
}

/* is-style-fec-card — core/group: white card, bordered, inner padding */
.is-style-fec-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--fec-border);
	border-radius: 2px;
	padding: 32px;
}

/*
 * is-style-fec-eyebrow — core/paragraph: uppercase, letter-spaced, small.
 * Colour is NOT set here — it varies per section (terracotta on "Onde actuamos",
 * peach on the red Friend CTA band) — set it per instance via the block's own
 * textColor/style.color attribute.
 */
.is-style-fec-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

/*
 * is-style-fec-rule-* — 4px top rule in each accent colour.
 * On core/separator: a standalone horizontal rule (height reset to 0).
 * On core/group (cost-breakdown items): a top border on the card itself —
 * do NOT reset height there, the group has real content below the rule.
 */
.wp-block-separator.is-style-fec-rule-red,
.wp-block-separator.is-style-fec-rule-green,
.wp-block-separator.is-style-fec-rule-terracotta,
.wp-block-separator.is-style-fec-rule-amber {
	height: 0;
}

.is-style-fec-rule-red,
.is-style-fec-rule-green,
.is-style-fec-rule-terracotta,
.is-style-fec-rule-amber {
	border-top-width: 4px;
	border-top-style: solid;
}

.is-style-fec-rule-red {
	border-top-color: var(--wp--preset--color--fec-red);
}

.is-style-fec-rule-green {
	border-top-color: var(--wp--preset--color--fec-green);
}

.is-style-fec-rule-terracotta {
	border-top-color: var(--wp--preset--color--fec-terracotta);
}

.is-style-fec-rule-amber {
	border-top-color: var(--wp--preset--color--fec-amber);
}

/*
 * is-style-fec-icon-badge — core/group: 52×52 circle, centres a 28×28 icon.
 * `.is-style-fec-card`'s own layout:constrained gives every unaligned
 * child (this badge included) WP's default `margin-left/right:auto
 * !important` centering — invisible on the heading/paragraphs since they
 * already span close to the card's full width, but it visibly floated this
 * much-narrower 52px badge into the middle of the card instead of flush
 * with the text's left edge (caught by Paulo, 2026-08-06). Needs
 * !important to beat core's own !important on the same properties.
 */
.is-style-fec-icon-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 26px;
	background-color: var(--wp--preset--color--fec-icon-bg);
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.is-style-fec-icon-badge img,
.is-style-fec-icon-badge svg {
	width: 28px;
	height: 28px;
}

/* IBAN / SWIFT values — system monospace per Figma, not Bitter (see 02-design-tokens.md) */
.fec-mono {
	font-family: var(--wp--preset--font-family--monospace);
}

/*
 * Links on a red band (utility bar, header logo not affected, footer, friend-CTA):
 * the global link colour is fec-red, which is invisible on a red background —
 * override to white, with a white focus ring since the default red one is too.
 */
.has-fec-red-background-color a:not(.wp-element-button) {
	color: var(--wp--preset--color--base);
}

.has-fec-red-background-color a:not(.wp-element-button):hover {
	text-decoration: underline;
}

.has-fec-red-background-color a:not(.wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 2px;
}

/* Main nav — red underline on hover/focus/current, per Figma */
.wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
}

.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background-color: var(--wp--preset--color--fec-red);
	opacity: 0;
}

.wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible::after,
.wp-block-navigation .current-menu-item>.wp-block-navigation-item__content::after {
	opacity: 1;
}

/*
 * ---- Main header nav links (per spec) ----
 * Opts this nav out of the shared underline-on-hover/focus/current
 * treatment above (its ::after) — plain opacity fade on hover instead.
 *
 * The selector repeats .wp-block-navigation-item__content to match core's
 * own specificity-boosting trick in wp-includes/blocks/navigation/style.css
 * (".wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content { color: inherit }") —
 * without it that rule outranks a plain two-class descendant selector and
 * the color silently falls back to the inherited body text color.
 */
.fec-main-header__nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: rgba(0, 0, 0, 0.6);
	text-decoration: none;
	display: block;
	position: relative;
	-webkit-transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
	transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.fec-main-header__nav .wp-block-navigation-item__content::after {
	content: none;
}

.fec-main-header__nav .wp-block-navigation-item__content:hover {
	opacity: 0.7;
	-webkit-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
}

/*
 * outline-offset: 4px on top-level items specifically (Paulo, 2026-08-07,
 * focus-styling audit) — wider than theme.json's global link default
 * (2px), since these sit isolated with plenty of row-gap between them
 * (production's measured 22px). Color/width still come from that global
 * rule; only offset is overridden here. Scoped to direct top-level
 * children only (>) so it doesn't reach dropdown items, which get their
 * own inset box-shadow treatment instead (≥980px block further down) —
 * an outline would either collide with the next row or clip against the
 * dropdown's own edge there.
 *
 * This replaces an earlier `.wp-block-navigation-item:focus{outline:none}`
 * rule removed here — its own comment called it a no-op (the <li> never
 * receives focus, only the <a> does), which held up under testing, but
 * keeping a focus-outline suppression around with nothing backing it up
 * was exactly the kind of accidental removal this audit was about.
 */
.fec-main-header__nav .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content:focus-visible {
	outline-offset: 4px;
}

/*
 * .fec-reasons — "Porquê apoiar a FEC": 5 columns on desktop, stepping down
 * to 3 / 2 before core's own default single-column stack at 781px.
 */
@media (max-width: 1100px) {
	.fec-reasons {
		flex-wrap: wrap;
	}

	.fec-reasons>.wp-block-column {
		flex: 1 1 30%;
	}
}

@media (max-width: 880px) {
	.fec-reasons>.wp-block-column {
		flex: 1 1 45%;
	}
}

/*
 * ---- Extra breakpoint at 990px (Paulo, 2026-08-06) ----
 * Below the 780/781px breakpoints above and elsewhere in this file, which
 * stay untouched.
 *
 * 1. Stack the "Como utilizamos + Formulário" columns (containing
 *    #donativo — the cost-breakdown list and the donation form) earlier
 *    than core's own default 781px stack point.
 * 2. .fec-reasons: 3-then-2, second row centred.
 *
 * Both need `!important` on flex-wrap/flex-basis, not just the values the
 * rules above (max-width:1100px/880px) already set — core ships two
 * competing rules for this exact ≥782px range (wp-includes/blocks/columns/
 * style.css): `.wp-block-columns{flex-wrap:nowrap !important}` and
 * `.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column
 * {flex-basis:0;flex-grow:1}`, the second at (0,3,0) — both beat our
 * plain, non-important `.fec-reasons{flex-wrap:wrap}` (0,1,0) and
 * `.fec-reasons > .wp-block-column{flex:1 1 30%}` (0,2,0) above outright.
 * That means the "3-then-2" stepping those rules describe has never
 * actually applied anywhere in the 782–1100px range they target — caught
 * while building this new rule, not fixed there since it's out of scope
 * here; flagged to Paulo separately.
 */
@media (max-width: 990px) {
	.fec-apoio-formulario {
		flex-wrap: wrap !important;
	}

	.fec-apoio-formulario>.wp-block-column {
		flex-basis: 100% !important;
	}

	.fec-reasons {
		flex-wrap: wrap !important;
		justify-content: center;
	}

	/*
	 * box-sizing:border-box, not just flex:1 1 30% — each reason card's own
	 * padding (35px/24px/32px) lives directly on this .wp-block-column
	 * (there's no separate inner card div; see the pattern's own wp:column
	 * style attribute), and nothing sets box-sizing here, so it defaults to
	 * content-box: the 24px+24px horizontal padding was rendering ON TOP OF
	 * the 30% basis rather than inside it, inflating each item's real width
	 * by 48px. 3 items at "30% + 48px" plus 2 gaps overflows the 780px row
	 * comfortably, so only 2 ever fit — border-box makes the 30% the
	 * item's actual outer width, padding included, matching what "30%"
	 * visually implies (caught by Paulo, 2026-08-06, building this rule).
	 *
	 * flex-grow:0 (not 1) — with grow:1, the 2 wrapped items on row 2
	 * (04, 05) stretch to fill the entire row width edge-to-edge, same as
	 * row 1's 3 items put together, instead of staying the same card width
	 * as row 1 with the leftover space centred around them. grow:0 keeps
	 * every card the same 30% width regardless of how many share its row;
	 * justify-content:center above then centres each row's actual content
	 * width within the container.
	 */
	.fec-reasons>.wp-block-column {
		box-sizing: border-box;
		flex: 0 1 30% !important;
	}
}

/* "Onde actuamos" photo — fills the column height, cropped not stretched */
.fec-onde-actuamos__image {
	height: 510px;
}

.fec-onde-actuamos__image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

@media (max-width: 781px) {
	.fec-onde-actuamos__image {
		height: 320px;
	}
}

/* Mobile overlay menu — generous tap targets (min 44×44px) */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
	min-height: 44px;
	display: flex;
	align-items: center;
}

/* ==========================================================================
 * Phase 08 — production chrome parity (utility bar, main header, page-title
 * banner). Measured from https://www.fecongd.org/ — see docs/chrome-spec.md.
 * These three elements deliberately use production's own reds
 * (fec-red-chrome, fec-red-banner), not fec-red — see CLAUDE.md §4.
 * ========================================================================== */

:root {
	/* 30px utility bar + 92px header — desktop only. Reused by the #donativo
	 * / #amigo-fec anchors' scroll-margin-top so the number lives in one place. */
	--fec-chrome-h: 122px;
	/* Gap between a top-level nav item and its dropdown (Paulo, 2026-08-06 —
	 * adjusted from chrome-spec.md §3's 39px). Shared by the submenu's
	 * margin-top and its hover-bridge's height (both further down) so the
	 * two can't drift out of sync — redefined under body.fec-header-scrolled,
	 * same as --fec-chrome-h. */
	--fec-dropdown-gap: 34px;
}

/*
 * Anchor scroll offset — plain selector, not a per-block `style.css` attribute.
 * core/group and core/column don't declare `"supports":{"customCSS":true}`,
 * so Gutenberg's editor has no way to know this inline style belongs to the
 * block and drops it when it regenerates the block's markup for comparison —
 * disagreeing with what was hand-written into the stored HTML, which is
 * exactly what "block contains unexpected or invalid content" flags.
 */
#donativo,
#amigo-fec {
	scroll-margin-top: var(--fec-chrome-h);
}

/*
 * WP core gives any .wp-block-group.has-background a default
 * `padding: 1.25em 2.375em` (a zero-specificity :where() rule, easily
 * overridden) — both the utility bar and header have has-background, and
 * that default padding was inflating the utility bar to 42px tall instead
 * of the measured 30px. Zero it on both; each restores its own spacing.
 */
.fec-utility-bar,
.fec-main-header {
	padding: 0;
}

/* ---- Desktop (≥980px): fixed chrome, exactly like production ---- */
@media (min-width: 980px) {
	.fec-utility-bar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 30px;
		z-index: 100000;
		display: flex;
		align-items: center;
	}

	.fec-utility-bar__nav {
		width: 100%;
	}

	.fec-main-header {
		position: fixed;
		top: 30px;
		left: 0;
		right: 0;
		height: 92px;
		z-index: 99999;
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
	}

	.fec-main-header__inner {
		height: 100%;
	}

	/* WP shifts fixed elements down for logged-in admins (32px bar, ≥783px) */
	body.admin-bar .fec-utility-bar {
		top: 32px;
	}

	body.admin-bar .fec-main-header {
		top: 62px;
		/* 32 (admin bar) + 30 (utility bar) */
	}

	/* Reserve the space the fixed chrome occupies so content doesn't sit under it */
	.wp-site-blocks {
		padding-top: var(--fec-chrome-h);
	}
}

/*
 * Production's inner content container: `width: 80%; max-width: 1080px;
 * margin: auto` — at every breakpoint, not just desktop (chrome-spec.md §5,
 * §8; confirmed 2026-08-06 via DevTools on production itself at 1440/979/
 * 480px viewport widths: the header's `.container` measured 1080×92,
 * 783.195×80 and 384×80 respectively — exactly 80% of viewport until the
 * 1080px cap, all the way down to mobile, not a stepped fixed-padding
 * fallback). Narrower than our page body's own 1144px contentSize, so
 * scoped to just these elements; bypasses the theme's root-padding
 * mechanism entirely, replacing WP's has-global-padding contribution.
 *
 * Paulo, 2026-08-06: extended beyond the 3 original chrome elements to
 * every section on the page — #amigo-fec, the footer, and every content
 * block in the 5 body patterns (each tagged `.fec-container`) — so the
 * whole page shares one consistent left/right edge.
 */
.fec-utility-bar__nav,
.fec-main-header__inner,
.fec-page-banner__inner,
.fec-amigo-fec__inner,
.fec-footer__inner,
.fec-container {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	padding-left: 0;
	padding-right: 0;
}

.fec-header__logo img {
	max-height: 82.8px;
	width: auto;
}

/*
 * ---- Header scroll-shrink (≥980px) — adapted from production's measured
 * Divi/Waypoints mechanism (see the fec-header-scroll-animation.md spec).
 * `assets/js/header-scroll.js` toggles `.fec-header-scrolled` on <body>
 * past the same 55px trigger production measures. Redefining
 * --fec-chrome-h here cascades down into .wp-site-blocks's padding-top
 * above; every property that actually changes gets its own transition
 * declared alongside its resting value, so the swap eases instead of
 * snapping. Utility bar height (30px) is unchanged in both states, exactly
 * like production — only the header shrinks.
 */
@media (min-width: 980px) {
	.fec-main-header {
		transition: height 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
	}

	.fec-header__logo img {
		transition: max-height 0.4s ease-in-out;
	}

	.wp-site-blocks {
		transition: padding-top 0.4s ease-in-out;
	}

	body.fec-header-scrolled {
		--fec-chrome-h: 84px;
		/* 30 (utility bar) + 54 (header, shrunk) */
		--fec-dropdown-gap: 14px;
		/* Paulo, 2026-08-06 — shrinks with the header, same as --fec-chrome-h;
		 * the dropdown's margin-top and its hover bridge both reference
		 * --fec-dropdown-gap so they can't drift out of sync. */
	}

	body.fec-header-scrolled .fec-main-header {
		height: 54px;
		box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
	}

	body.fec-header-scrolled .fec-header__logo img {
		max-height: 48.6px;
		/* same ~54/92 shrink ratio production measures */
	}
}

/* ---- Below 980px: production un-fixes the chrome entirely — verified by
 * scrolling and reading getBoundingClientRect() (chrome-spec.md §9), not
 * inferred. The utility bar disappears outright, the header returns to
 * normal flow. ---- */
@media (max-width: 979px) {
	.fec-utility-bar {
		display: none;
	}

	.fec-main-header {
		position: relative;
		height: 80px;
	}

	/*
	 * Production shrinks the logo below 980px too (82.797px → 43.195px,
	 * `max-height:54%;max-width:50%` of the header row there). A percentage
	 * doesn't work the same way here — our mobile header is `position:static`
	 * with an intrinsic, content-driven height, so a percentage max-height
	 * on the logo has no containing-block height to resolve against. Fixed
	 * px instead, landing on production's own measured value.
	 */
	.fec-header__logo img {
		max-height: 43.2px;
	}
}

/*
 * ---- Utility bar links (chrome-spec.md §2) ----
 * 12px per the measured spec. Opts out of the shared underline-on-hover/
 * focus/current treatment (that rule's ::after, further up this file) —
 * plain opacity fade on hover/active. Focus gets its own outline below,
 * in fec-focus, since this bar sits on the dark fec-red-chrome background.
 */
.fec-utility-bar__nav .wp-block-navigation-item__content {
	font-size: 12px;
}

.fec-utility-bar__nav .wp-block-navigation-item__content::after {
	content: none;
}

.fec-utility-bar__nav .wp-block-navigation-item__content:hover,
.fec-utility-bar__nav .wp-block-navigation-item__content:active {
	background: none;
}

/*
 * Classes doubled for specificity — core ships its own unconditional
 * ".wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content
 * { outline-offset: 4px }" (wp-includes/blocks/navigation/style.css,
 * (0,3,0)), which ties a plain version of this selector and wins by load
 * order, silently overriding the 2px offset here even though color/width/
 * style all apply correctly (caught by Paulo, 2026-08-08, via keyboard-Tab
 * testing — computed outline-offset read 4px despite this rule's own 2px).
 */
.fec-utility-bar__nav.fec-utility-bar__nav .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 2px;
}

.fec-utility-bar__nav .wp-block-navigation-item__content:hover {
	opacity: 0.7;
	-webkit-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
}

/* ---- Main nav (≥980px) — production's measured geometry ---- */
@media (min-width: 980px) {
	.fec-main-header__nav {
		row-gap: 22px;
		column-gap: 22px;
	}

	/*
	 * "Colabore connosco" / "Apoie" (Paulo, 2026-08-06) — added to the
	 * Principal nav menu itself so they show in the mobile overlay,
	 * matching production's mobile menu (which folds the utility bar's
	 * links in there since the utility bar itself is display:none on
	 * mobile). Desktop already shows both via the separate utility bar, so
	 * hide the duplicates here. Two-class selector needed: core's own
	 * ".wp-block-navigation .wp-block-navigation-item { display:flex }"
	 * (wp-includes/blocks/navigation/style.css) is (0,2,0), beating a plain
	 * single-class ".fec-mobile-only-link{display:none}" (0,1,0).
	 */
	.fec-main-header__nav .fec-mobile-only-link {
		display: none;
	}

	/*
	 * Class doubled on both selector segments — the same specificity-boosting
	 * trick already used elsewhere in this file (see the comment on
	 * .wp-block-navigation-item__content.wp-block-navigation-item__content
	 * further up) — to beat core's own default border rule
	 * (wp-includes/blocks/navigation/style.css: ".wp-block-navigation:not(.
	 * has-background) .wp-block-navigation__submenu-container", specificity
	 * (0,3,0)). A plain two-class version of this selector is only (0,2,0)
	 * and loses; that's what let core's `border: 1px solid rgba(0,0,0,.15)`
	 * default win on every side except top when this was first measured —
	 * border-top happened to be re-set at (0,5,0) by the :hover-reveal rule
	 * below, but that rule doesn't fire for the keyboard/:focus-within open
	 * path (core's own reveal for that doesn't touch border at all), so
	 * keyboard users saw core's default 4-side grey border. Fixing
	 * specificity here, unconditionally, covers every reveal path at once
	 * (Paulo, 2026-08-06).
	 */
	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
		width: 240px;
		/*
		 * height/overflow permanent (not hover-toggled) — core's own resting
		 * defaults are height:0; overflow:hidden (collapsing the box, on top
		 * of visibility:hidden), and the old hover-reveal rule (further down)
		 * only set height:auto/overflow:visible WHILE :hover matched, with
		 * neither property transitioned. Fading in, that's invisible: the box
		 * snaps to full size instantly at the start of :hover, before opacity
		 * has animated at all, so the 400ms fade happens inside an
		 * already-correctly-sized box and looks smooth. Fading out is the
		 * opposite: the instant :hover stops matching, height/overflow snap
		 * straight back to 0/hidden, clipping all content to nothing before
		 * opacity's 400ms fade-out has rendered a single visible frame — the
		 * dropdown just vanishes, while opacity is still (invisibly) mid-fade
		 * (caught by Paulo, 2026-08-06: fade-out didn't match fade-in). Fixed
		 * by making height/overflow permanent here, exactly like width/border/
		 * box-shadow already are (comment above) — opacity and visibility
		 * (below) become the ONLY two properties that actually differ between
		 * states, and visibility's own default transition behaviour (applied
		 * immediately when transitioning TO visible, delayed until the
		 * transition ends when transitioning TO hidden) is what makes a
		 * fade-in and fade-out over the same opacity transition look like
		 * true mirror images of each other.
		 */
		height: auto;
		overflow: visible;
		text-align: left;
		-webkit-transform: translateZ(0);
		background-color: var(--wp--preset--color--base);
		border-top: 3px solid var(--wp--preset--color--fec-red-chrome);
		border-right: none;
		border-bottom: none;
		border-left: none;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
		padding-top: 20px;
		padding-bottom: 20px;
		/*
		 * Gap before the dropdown opens (chrome-spec.md §3's 39px, production's
		 * own value) — margin-top on the dropdown itself, positioned
		 * `top:100%` of the <li> (core's default), not padding-bottom on the
		 * <li>. An earlier version put the gap on the <li> as padding-bottom:
		 * the <li> is `display:flex; align-items:center` (core's default) and
		 * that flex box, padding included, is what `.fec-main-header__inner`
		 * vertically centres against the header/logo — padding on the <li>
		 * inflated that box asymmetrically (all-bottom), pushing the visible
		 * text above true centre, out of line with the logo. margin-top here
		 * leaves the <li>'s own box exactly matching its visible content, so
		 * centring is correct.
		 *
		 * BUT margin isn't part of any element's hoverable box — moving the
		 * mouse from the nav item down through this gap exits the <li>
		 * entirely partway down, before ever reaching the dropdown, so
		 * `.has-child:hover` (the reveal rule's trigger, below) goes false
		 * and the dropdown starts closing before the pointer arrives (caught
		 * by Paulo, 2026-08-06 — the padding-on-<li> version didn't have
		 * this problem, since padding IS part of the hoverable box, but had
		 * the centring bug instead). Fixed with an invisible hover-bridge
		 * pseudo-element on the <li> covering the same span (further down,
		 * "Dropdown hover bridge") — a generated pseudo-element counts as
		 * part of its originating element for :hover purposes, but being
		 * position:absolute it's out of flow and doesn't affect the <li>'s
		 * real box or its centring at all.
		 *
		 * Value comes from --fec-dropdown-gap (:root, redefined under
		 * body.fec-header-scrolled to shrink proportionally with the header
		 * — same pattern as --fec-chrome-h) so the bridge below can't drift
		 * out of sync with this. margin-top is listed in the transition for
		 * the same reason every scroll-shrink property is: a user can be
		 * hovering the dropdown open while the page scrolls past the shrink
		 * trigger, so this needs to ease smoothly, not snap.
		 */
		margin-top: var(--fec-dropdown-gap);
		transition: opacity 400ms ease-in-out, visibility 400ms ease-in-out, margin-top 0.4s ease-in-out;
	}

	/*
	 * ---- Dropdown hover bridge ----
	 * Invisible pseudo-element on the <li>, matching the dropdown's own
	 * position/width (left:-1px; width:240px — core's own values for the
	 * dropdown, wp-includes/blocks/navigation/style.css), spanning exactly
	 * the gap the margin-top above creates. See that rule's comment for why
	 * this exists. Scoped to hover-capable devices only — touch has no
	 * hover-intent gap to bridge; it uses the dedicated toggle <button>
	 * instead, and this invisible box would only risk sitting over page
	 * content for no reason there.
	 */
	@media (hover: hover) {
		.fec-main-header__nav > .wp-block-navigation-item.has-child {
			position: relative;
		}

		.fec-main-header__nav > .wp-block-navigation-item.has-child::before {
			content: "";
			position: absolute;
			left: -1px;
			top: 100%;
			width: 240px;
			height: var(--fec-dropdown-gap);
			transition: height 0.4s ease-in-out;
		}
	}

	/*
	 * width: 200px, centred within the 240px container via margin-inline:
	 * auto — production's own measured values (padding: 6px 20px; width:
	 * 200px on the link itself, confirmed via DevTools 2026-08-06).
	 *
	 * Classes doubled for specificity, same trick as the submenu-container
	 * rule above: core's own default for this exact element
	 * (wp-includes/blocks/navigation/style.css: ".wp-block-navigation
	 * .has-child .wp-block-navigation__submenu-container > .wp-block-
	 * navigation-item > .wp-block-navigation-item__content", specificity
	 * (0,5,0)) sets `display: flex; flex-grow: 1; padding: 0.5em 1em`
	 * (8px/16px at this font-size) — a plain three-class version of this
	 * selector is only (0,3,0) and loses, which is why width/padding
	 * weren't taking effect when this was first measured. `flex-grow: 0`
	 * stops the item stretching past 200px inside that flex layout.
	 * `box-sizing: border-box` matters too — nothing sets it on this element
	 * (core's own border-box reset doesn't reach it), so without it `width:
	 * 200px` was a *content* width and the 6px/20px padding rendered on top,
	 * making the real box 240px — exactly production's 200×40 outer /
	 * 160×28 inner box model only holds with border-box. `display` is left
	 * alone since core's flex row is what lets the (hidden by default)
	 * submenu-icon sit at the end of a row without changing the text's own
	 * layout here.
	 */
	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
		box-sizing: border-box;
		width: 200px;
		flex-grow: 0;
		margin-inline: auto;
		font-size: 16px;
		font-weight: 400;
		color: rgba(0, 0, 0, 0.7);
		text-transform: uppercase;
		padding: 6px 20px;
	}

	/*
	 * Production's actual dropdown-item hover (confirmed via DevTools
	 * 2026-08-06 — the winning, non-struck-through rule is
	 * ".et_mobile_menu li a:hover, .nav ul li a:hover", which also matches
	 * desktop dropdown links): the same opacity fade as top-level items,
	 * plus a faint background tint. Not the opacity:1 + stronger tint this
	 * used to guess.
	 */
	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
		opacity: 0.7;
		background-color: rgba(0, 0, 0, 0.03);
	}

	/*
	 * Focus indicator for dropdown items — inset box-shadow rather than the
	 * global button/link outline, since outline (drawn outside the box) would
	 * get clipped by the submenu-container's own overflow/edge at this 200px
	 * item width, and could bleed into the next item at this 6px/20px padding.
	 */
	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible {
		outline: none;
		box-shadow: inset 0 0 0 2px var(--wp--preset--color--fec-focus);
	}
}

/*
 * ---- Main nav dropdown reveal-on-hover ----
 * Everything about the dropdown's appearance (height, overflow, border,
 * shadow, alignment) is permanent now, set unconditionally in the base rule
 * above — this only needs to toggle visibility/opacity (Paulo, 2026-08-06;
 * see that rule's own comment for why: making height/overflow hover-only,
 * like this used to, is what broke the fade-out).
 *
 * width:240px is re-declared here, though — core ships its OWN generic
 * hover-reveal rule for this exact element (wp-includes/blocks/navigation/
 * style.css: ".wp-block-navigation .has-child:not(.open-on-click):hover >
 * .wp-block-navigation__submenu-container", specificity (0,5,0), setting
 * width:auto), which is a *different* rule from this one — it doesn't need
 * our .fec-main-header__nav class, just core's own generic classes, so it
 * matches too. Our base rule's width:240px is only (0,4,0) and loses to it
 * on a real :hover, shrinking the box to fit its content (~200px, the item
 * width) instead of staying 240px (caught by Paulo, 2026-08-06 — testing
 * by force-setting opacity/visibility inline missed this, since that never
 * actually triggers core's :hover selector). Classes doubled here, same
 * trick used throughout this file, to clear core's (0,5,0) outright rather
 * than tie and depend on stylesheet load order.
 */
@media (hover: hover) {
	.fec-main-header__nav.fec-main-header__nav .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
		visibility: visible;
		opacity: 1;
		width: 240px;
	}
}

/*
 * ---- Hamburger icon (<980px) — bolder, red, per screenshot ----
 * `"icon":"menu"` on the nav block (parts/header.html) switches core's
 * default 2-bar SVG for its 3-bar variant; sizing it up to 32px (from
 * core's 24px) makes the bars themselves proportionally thicker, since the
 * bar height is a fixed fraction of the viewBox. Color rides on `color`
 * because the SVG fill is `currentColor`.
 */
.fec-main-header__nav .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--fec-red-chrome);
}

.fec-main-header__nav .wp-block-navigation__responsive-container-open svg {
	width: 32px;
	height: 32px;
	/* The custom icon's root <svg fill="none"> would otherwise leave its
	 * paths (no fill of their own) inheriting "none" — invisible. CSS
	 * always overrides a presentation attribute, so this restores the
	 * icon inheriting the button's own colour above. */
	fill: currentColor;
}

/*
 * ---- Breakpoint override: 980px, not core's default 600px ----
 * core/navigation's own stylesheet switches from hamburger to inline nav at
 * `@media (min-width: 600px)` — a hardcoded breakpoint, not a runtime width
 * measurement (verified by reading wp-includes/blocks/navigation/style.css).
 * Between 600–979px we force the hamburger back on for this nav only, so it
 * matches production's 980px switch instead of wrapping onto two lines
 * (the bug recorded in handover.md §5a). At ≥980px core's own rule already
 * shows the nav inline, so nothing more is needed there; below 600px core's
 * default already shows the hamburger, so nothing is needed there either.
 */
@media (min-width: 600px) and (max-width: 979px) {
	.fec-main-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}
}

/*
 * ---- Mobile dropdown panel (<980px) — a boxed panel below the header,
 * matching production's appearance (Paulo, 2026-08-07, rebuilt against
 * production screenshots + DevTools inspection of the mobile menu).
 *
 * `position: absolute`, not `fixed` (a change from an earlier version of
 * this rule) — `.fec-main-header` above is `position: relative`, giving
 * this panel a containing block right at the header's own bottom edge
 * (`top: 100%`), so it scrolls away with the page like any other content
 * instead of staying pinned to the viewport. This is deliberate: with
 * `position: fixed`, the panel is viewport-relative and needs its own
 * bounded height + internal scrollbar to stay on-screen, which forces core's
 * `html.has-modal-open{overflow:hidden}` scroll-lock (below) to also lock
 * the whole page's scroll while open — exactly the two things Paulo asked
 * to remove (2026-08-07): no panel-internal scrollbar, and opening/closing
 * the menu must never affect page scroll. `position: absolute` with no
 * height cap sidesteps both at once — the panel is simply as tall as its
 * content, in normal document flow, so `overflow: hidden` never clips
 * anything, and there's nothing to scroll-lock: the page just gets taller
 * while the menu is open, exactly like any other expanding content would.
 *
 * An EARLIER version of this rule had tried `position: absolute` and hit a
 * real bug — core's navigation component collapsed to `height: 0` for an
 * absolutely-positioned flex-column container with `height: auto`, which
 * is why this had switched to `position: fixed` at all. Retested during
 * this exact change and the collapse no longer reproduces — most likely
 * it was actually the box-sizing/content-overflow bug fixed earlier in
 * this same session (the <li> shrink-to-fit issue, `align-items: stretch`
 * comment further down), not something inherent to `position: absolute`
 * itself; `position: absolute` is confirmed safe here now, verified via
 * getBoundingClientRect showing a real, non-zero content height.
 *
 * Entrance/exit animation: NOT done here — production's own mobile menu
 * (Divi theme, confirmed via a MutationObserver + scripts.min.js on
 * fecongd.org, Paulo 2026-08-08) uses jQuery's slideDown(500)/slideUp(500)
 * on the panel's height, not a CSS opacity transition (an earlier version
 * of this rule used `@starting-style` + `transition-behavior: allow-
 * discrete` to fade opacity across the `display: none ↔ flex` swap — that
 * was a reasonable guess before the real behaviour was confirmed, but
 * doesn't match production). Replicated in
 * assets/js/mobile-menu-slide.js instead, which animates this element's
 * `height` directly via requestAnimationFrame — see that file's own
 * comment for the full mechanism, including why it watches the
 * `is-menu-open` class via MutationObserver rather than hooking a click
 * handler.
 */
@media (max-width: 979px) {
	.fec-main-header__inner {
		align-items: center;
		padding-top: 17px;
	}

	/*
	 * core adds `has-modal-open` to <html> while any Interactivity-API
	 * modal (including this menu) is open, and its own CSS locks page
	 * scroll for it (wp-includes/blocks/navigation/style.css:
	 * "html.has-modal-open { overflow: hidden; }"). Undone here — the panel
	 * no longer needs it (see the rule above), and Paulo explicitly wants
	 * opening/closing the menu to never affect page scroll.
	 */
	html.has-modal-open {
		overflow: visible;
	}

	/*
	 * core's own default is `.wp-block-navigation { position: relative; }`
	 * (wp-includes/blocks/navigation/style.css) — at mobile widths the nav
	 * <ul> itself is narrow (auto-sized to just the hamburger button, since
	 * the desktop items are display:none here), and it's the NEAREST
	 * positioned ancestor to the panel below, so `position: absolute` was
	 * resolving against that narrow box instead of `.fec-main-header`
	 * (confirmed via getBoundingClientRect: a 25px-wide, wrongly-offset
	 * panel). Neutralising it here lets `.fec-main-header`'s own `position:
	 * relative` (further up this file) be the containing block instead.
	 */
	.fec-main-header__nav {
		position: static;
	}

	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__responsive-container.wp-block-navigation__responsive-container {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		bottom: auto;
		width: 80%;
		max-width: 1080px;
		margin-inline: auto;
		overflow: hidden;
		flex-direction: column;
		background-color: var(--wp--preset--color--base);
		border-top: 3px solid var(--wp--preset--color--fec-red-chrome);
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
		z-index: 9999;
		padding: 0;
		/*
		 * core ships its own ".is-menu-open" entrance animation (wp-includes/
		 * blocks/navigation/style.css: "overlay-menu__fade-in-animation",
		 * opacity 0→1 + translateY(0.5em)→0 over 0.1s) on this exact element —
		 * running fully unsynchronized alongside mobile-menu-slide.js's own
		 * 500ms height animation on the SAME element. Two independent timers
		 * racing the same box is exactly why the combined result looked
		 * inconsistent run to run (Paulo, 2026-08-08) — core's fade always
		 * finishes around 100ms regardless of where the height slide actually
		 * is at that moment, and real-time frame scheduling jitter between the
		 * two separate animation systems changes which one visibly "wins" from
		 * one open to the next. Cancelled here so only the JS-driven height
		 * slide controls the entrance, matching production (a pure height
		 * slide, no separate content fade).
		 */
		animation: none;
	}

	/*
	 * Single toggle button, not open+close — the close (X) button is hidden
	 * (assets/js/mobile-menu-toggle.js makes the same hamburger button close
	 * the menu on a second click instead; core only wires the open button to
	 * actions.openMenuOnClick, never a toggle). Hiding it is safe now that
	 * the panel is a small boxed area, not a full-screen overlay covering
	 * the header — previously the close button was production's only way
	 * back out, since the full-screen panel covered the hamburger entirely.
	 */
	.fec-main-header__nav .wp-block-navigation__responsive-container-close {
		display: none;
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		color: #666;
	}

	/*
	 * core's admin-bar offset (46px mobile / 32px ≥782px, wp-includes/
	 * blocks/navigation/style.css) exists to push its own full-screen
	 * dialog below the WP admin bar. Our panel is no longer that dialog —
	 * it's absolutely positioned against `.fec-main-header`, which already
	 * sits below the admin bar in normal flow — so this offset would just
	 * add unwanted extra space today (Paulo, 2026-08-07).
	 */
	.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog {
		margin-top: 0;
	}

	/*
	 * padding: 5% all around (Paulo, 2026-08-07 — reverted from an
	 * earlier 0-on-the-right version) — replaces core's own
	 * `padding-top: calc(2rem + 24px)` on this wrapper, which existed to
	 * clear space for the close button positioned top-right inside it;
	 * that button is hidden now (comment above), so the extra top-only
	 * clearance is gone in favour of a uniform inset on every side.
	 *
	 * align-items:stretch — core's own default here is `align-items:
	 * var(--navigation-layout-justification-setting, inherit)`, which
	 * resolves to flex-start (the same leak from the nav's own desktop
	 * justifyContent setting fixed on .wp-block-navigation__container
	 * further down) — without overriding it, the <ul> is shrink-to-fit
	 * rather than genuinely filling this wrapper's available width; it
	 * only happened to measure close to full-width because its own
	 * children are stretched (the fix below), which coincidentally pushed
	 * its fit-content size wide, not because it was actually stretching.
	 * This makes it deterministic instead of accidental.
	 */
	.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
		padding: 5%;
		align-items: stretch;
	}

	/*
	 * This is core's own default rule for expanding a nested submenu inline
	 * within the open mobile panel (wp-includes/blocks/navigation/style.css)
	 * — restated explicitly here (Paulo, 2026-08-07) rather than left to
	 * inheritance, with one real change: min-width was a fixed 200px,
	 * changed to calc(100% - 2rem) so a nested submenu-container fills its
	 * row's actual available width (minus its own 2rem/32px indent padding
	 * below) instead of a value unrelated to this panel's own width.
	 */
	.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
		opacity: 1;
		visibility: visible;
		height: auto;
		width: auto;
		overflow: initial;
		min-width: calc(100% - 2rem);
		position: static;
		border: none;
		padding-left: 2rem;
		padding-right: 2rem;
	}

	/*
	 * margin-bottom: 0 on every submenu item except the last (Paulo,
	 * 2026-08-07) — closes up the gap between nested submenu rows so the
	 * border-bottom dividers alone provide separation, matching the
	 * top-level rows' spacing (row-gap:0 above).
	 *
	 * Classes doubled for specificity — core generates its OWN inline
	 * <style> tag per navigation-submenu block instance for its blockGap
	 * setting (a "core-block-supports-inline-css"-style tag, rendered
	 * separately from wp-includes/blocks/navigation/style.css), using this
	 * EXACT same selector text with margin-bottom:3px. Identical selectors
	 * tie on specificity, and that inline tag turned out to load after
	 * fecongd.css (confirmed via getComputedStyle: 3px was winning, not
	 * 0px) — Paulo, 2026-08-07. Doubling wins outright instead of
	 * depending on load order.
	 */
	.wp-block-navigation.wp-block-navigation .wp-block-navigation-submenu.wp-block-navigation-submenu .wp-block-navigation-item.wp-block-navigation-item:not(:last-child) {
		margin-bottom: 0px;
	}
}

/*
 * padding-top: 0 (Paulo, 2026-08-07) — overrides core's own
 * `padding-top: var(--wp--style--block-gap, 2em)` on this exact selector
 * (wp-includes/blocks/navigation/style.css), which left a ~2em gap before
 * every expanded submenu; removed now that row-gap and item margins are
 * explicitly zeroed elsewhere in this file, for a consistently tight
 * vertical rhythm throughout the whole mobile list.
 */
.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	padding-top: 0;
}

/*
 * ---- Mobile menu content structure ----
 * Top-level items with children ("Sobre nós" etc.) render as bold,
 * gray-backed section labels; core already hides their chevron/toggle icon
 * in this mode (wp-includes/blocks/navigation/style.css) and gives their
 * children a 2rem/32px left indent via the submenu-container's own
 * padding, so only the divider and row padding need adding here. Leaf
 * top-level items with no children (Contactos, Colabore connosco, Apoie)
 * get the same row padding as the labels but no background. Sentence
 * case throughout, overriding the uppercase set on this nav for its
 * desktop state.
 *
 * font-size/padding/border-bottom/transition below are production's own
 * measured values (Paulo, 2026-08-07, via DevTools on the live mobile
 * menu: ".et_mobile_menu li a { padding:10px 5%; border-bottom:1px solid
 * rgba(0,0,0,.03); } .et_mobile_menu li a, .nav li a { font-size:14px;
 * transition:opacity .2s ease-in-out, background-color .2s ease-in-out }"),
 * replacing earlier clamp()-based guesses and the fec-border token (a much
 * more visible grey than production's near-invisible rgba(0,0,0,.03)).
 */
@media (max-width: 979px) {
	/*
	 * align-items:stretch — core's mobile-overlay column container computes
	 * this as flex-start (var(--navigation-layout-justification-setting),
	 * leaking in from the nav block's own desktop justifyContent setting),
	 * so each <li> shrinks to fit its own text instead of spanning the row
	 * ("Apoie" rendered 37.8px wide instead of the full row) — confirmed
	 * via getBoundingClientRect (Paulo, 2026-08-07). stretch makes every
	 * row span the full width, which both matches production (full-bleed
	 * gray bands and dividers) and is a prerequisite for the box-sizing fix
	 * below: percentage padding needs a consistent row width to be uniform
	 * from item to item.
	 */
	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch;
		row-gap: 0px;
	}

	/*
	 * box-sizing:border-box — without it, width:100% + the 10px/5% padding
	 * below render as 100% content-box width PLUS the padding on top,
	 * overflowing each link past its own <li> (confirmed via
	 * getBoundingClientRect: content 305px inside a 277.5px <li>). Since
	 * each <li> is itself a flex item, flex-shrink then compensated by a
	 * different amount per item depending on its text's own min-content
	 * width, making the rendered padding visibly inconsistent from row to
	 * row instead of a uniform 5% (caught by Paulo, 2026-08-07) — the same
	 * bug pattern as the desktop dropdown items and the reason cards
	 * earlier in this file, same fix.
	 */
	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		box-sizing: border-box;
		width: 100%;
		text-transform: none;
		font-size: 14px;
		transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
	}

	/*
	 * Hover background — same rgba(0,0,0,0.03) as the desktop dropdown's
	 * own hover rule (further up this file, "production's measured
	 * geometry" section) (Paulo, 2026-08-07). Applies to every row,
	 * top-level and nested; on the bold has-child bands (permanent
	 * rgba(0,0,0,0.04) background) this replaces rather than layers on top
	 * — background-color can only hold one value — landing very slightly
	 * lighter on hover, which reads as an intentional hover state rather
	 * than a mismatch.
	 *
	 * Classes doubled/tripled for specificity: the has-child band rule
	 * above is (0,7,0) (7 distinct classes in its selector); a plain
	 * version of this hover selector is only (0,5,0) and would silently
	 * lose on parent rows, same trap hit repeatedly earlier in this file.
	 */
	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
		background-color: rgba(0, 0, 0, 0.03);
	}

	/*
	 * Focus indicator — inset box-shadow, same reasoning as the desktop
	 * dropdown items further up this file: an outline would be clipped/
	 * overlap the 10px/5% row padding and the border-bottom dividers here.
	 * Same specificity trick as the hover rule above, to clear the has-child
	 * band's (0,7,0).
	 */
	.fec-main-header__nav.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible {
		outline: none;
		box-shadow: inset 0 0 0 2px var(--wp--preset--color--fec-focus);
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content {
		padding: 10px 5%;
		border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container>.wp-block-navigation-item.has-child>.wp-block-navigation-item__content {
		background-color: rgba(0, 0, 0, 0.04);
		font-weight: 700;
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container>.wp-block-navigation-item:last-child>.wp-block-navigation-item__content {
		border-bottom: none;
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		width: 100%;
	}

	/*
	 * padding: 0.5em 1em (Paulo, 2026-08-07) — updated from the 10px/5%
	 * production-measured value to core's own default submenu-item padding
	 * instead (wp-includes/blocks/navigation/style.css: ".wp-block-
	 * navigation .has-child .wp-block-navigation__submenu-container >
	 * .wp-block-navigation-item > .wp-block-navigation-item__content
	 * {padding:0.5em 1em}" — the same value already relied on for the
	 * desktop dropdown, box-sizing:border-box'd there).
	 */
	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding: 0.5em 1em;
		border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	}

	.fec-main-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
		border-bottom: none;
	}
}

/* ---- Page-title banner (fec-page-banner, patterns/donativos-page-title.php) ----
 * Restyled here rather than in the pattern's own inline style so the
 * production-parity numbers stay grouped with the rest of this phase. */
.fec-page-banner {
	background-color: var(--wp--preset--color--fec-red-banner) !important;
	padding-top: 45px !important;
	padding-bottom: 40px !important;
}

.fec-page-banner h1 {
	font-size: 32px !important;
	font-weight: 700 !important;
	line-height: 32px !important;
	letter-spacing: normal !important;
	text-align: left;
	padding-bottom: 10px;
}

/* ---- Footer (fec-footer, parts/footer.html) ---- */
.fec-footer .wp-block-social-link svg {
	width: 1.4em;
	height: 1.4em;
}

@media (max-width: 979px) {
	.fec-footer__inner {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
	}
}