/*
Theme Name:        Brigada Mandu Ladino
Theme URI:         http://manduladino.com.br/
Author:            Roger Bezerra
Description:       Tema institucional da Brigada Mandu Ladino. Autossuficiente: CPTs, meta boxes, formulário anti-spam, contador de visitas, galeria, importador de conteúdo e fontes locais, sem plugins auxiliares.
Version:           2.2.1
Requires at least: 6.3
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       bml
*/

/* ==========================================================================
   0. Fontes locais (OFL) — sem requisições a terceiros
   ========================================================================== */
@font-face {
	font-family: "BML Serif";
	src: url("assets/fonts/source-serif-4.woff2") format("woff2-variations"), url("assets/fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "BML Serif";
	src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2-variations"), url("assets/fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "BML Sans";
	src: url("assets/fonts/source-sans-3.woff2") format("woff2-variations"), url("assets/fonts/source-sans-3.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   1. Design tokens (paleta oficial + tons medidos no layout)
   ========================================================================== */
:root {
	--bml-blue-deep: #0B3C95;
	--bml-blue-light: #00A3E8;
	--bml-green-vaqueiro: #0E7A53;
	--bml-red-pena: #D92318;
	--bml-amber-tranca: #C88D44;
	--bml-bg-body: #FFFFFF;
	--bml-bg-card: #FFFFFF;
	--bml-bg-footer: #0A3378;
	--bml-border-soft: #E4E0D8;
	--bml-text-main: #3A4257;
	--bml-text-muted: #6A7185;

	--bml-navy: #0A1A4E;          /* títulos */
	--bml-link: #1048B0;          /* links com seta */
	--bml-eyebrow: #0F9AD8;       /* sobretítulos */
	--bml-sand: #F4EFE8;          /* faixas bege */
	--bml-sand-soft: #F7F5F1;     /* caixas laterais */
	--bml-red-hover: #B91B12;
	--bml-green-hover: #0A6343;

	--bml-font-sans: "BML Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bml-font-serif: "BML Serif", Georgia, Cambria, "Times New Roman", Times, serif;

	--bml-container: 1320px;
	--bml-gutter: clamp(20px, 4.2vw, 60px);
	--bml-radius: 3px;
	--bml-focus: 0 0 0 2px #fff, 0 0 0 4px var(--bml-blue-light);
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; font-size: clamp(16px, 12px + .4vw, 18px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
	background: var(--bml-bg-body);
	color: var(--bml-text-main);
	font-family: var(--bml-font-sans);
	font-size: clamp(16px, .78rem + .45vw, 20px);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--bml-link); text-decoration: none; }
a:hover { color: var(--bml-blue-deep); }
:focus-visible { outline: none; box-shadow: var(--bml-focus); border-radius: 2px; }
::selection { background: var(--bml-blue-deep); color: #fff; }

/* ==========================================================================
   3. Tipografia
   ========================================================================== */
h1, h2, h3, h4, .bml-serif {
	font-family: var(--bml-font-serif);
	font-optical-sizing: auto;
	color: var(--bml-navy);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.025em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 3.05rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); letter-spacing: -.02em; }

.bml-eyebrow {
	display: block;
	font-family: var(--bml-font-sans);
	font-size: clamp(.78rem, .65rem + .2vw, .9rem);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--bml-eyebrow);
	line-height: 1.3;
	margin-bottom: .45rem;
}
.bml-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--bml-text-main); }

/* Link com seta sublinhado (“Ver todas as atividades →”) */
.bml-arrow {
	display: inline-flex; align-items: center; gap: .45em;
	font-weight: 600;
	color: var(--bml-link);
	padding-bottom: 3px;
	border-bottom: 2px solid #5AA5E6;
	line-height: 1.25;
	transition: color .2s, border-color .2s, gap .2s;
}
.bml-arrow:hover { color: var(--bml-blue-deep); border-color: var(--bml-blue-deep); gap: .7em; }
.bml-arrow svg { width: 1em; height: 1em; flex-shrink: 0; }
.bml-arrow--light { color: #fff; border-color: rgba(255,255,255,.8); }
.bml-arrow--light:hover { color: #fff; border-color: #fff; }

/* ==========================================================================
   4. Layout utilitário
   ========================================================================== */
.bml-container { width: 100%; max-width: calc(var(--bml-container) + 2 * var(--bml-gutter)); margin-inline: auto; padding-inline: var(--bml-gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: #fff; color: var(--bml-navy); font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.bml-sand { background: var(--bml-sand); }
.bml-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem); }
.bml-head-row h2 { margin: 0; }
.bml-icon { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; }

/* ==========================================================================
   5. Botões e selos
   ========================================================================== */
.bml-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 50px; padding: .7em 1.6em;
	border: 2px solid transparent; border-radius: var(--bml-radius);
	font-family: var(--bml-font-sans); font-size: clamp(1rem, .85rem + .3vw, 1.15rem); font-weight: 600; line-height: 1.2;
	text-align: center;
	transition: background-color .2s, color .2s, border-color .2s;
}
.bml-btn svg { width: 1em; height: 1em; transition: transform .2s; }
.bml-btn:hover svg { transform: translateX(3px); }
.bml-btn--red { background: var(--bml-red-pena); color: #fff; }
.bml-btn--red:hover { background: var(--bml-red-hover); color: #fff; }
.bml-btn--green { background: var(--bml-green-vaqueiro); color: #fff; }
.bml-btn--green:hover { background: var(--bml-green-hover); color: #fff; }
.bml-btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.bml-btn--outline-light:hover { background: #fff; color: var(--bml-blue-deep); }
.bml-btn--outline { border-color: var(--bml-blue-deep); color: var(--bml-blue-deep); }
.bml-btn--outline:hover { background: var(--bml-blue-deep); color: #fff; }
.bml-btn[disabled], .bml-btn[aria-busy="true"] { opacity: .65; cursor: progress; }

.bml-badge {
	display: inline-block;
	padding: .3em .7em .25em;
	background: var(--bml-green-vaqueiro); color: #fff;
	font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	border-radius: 2px; line-height: 1.3;
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.bml-header { background: #fff; position: relative; z-index: 50; }
.bml-header__inner { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(24px, 4vw, 70px); align-items: center; padding-block: 10px 14px; }
.bml-brand { display: block; grid-row: span 2; }
.bml-brand img { width: auto; height: clamp(84px, 10.6vw, 156px); }
.bml-brand .site-title { font-family: var(--bml-font-serif); font-size: 1.4rem; font-weight: 700; color: var(--bml-navy); }

.bml-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding-bottom: 12px; margin-bottom: 4px;
	border-bottom: 1px solid var(--bml-border-soft);
	font-size: .88rem; color: var(--bml-text-muted);
}
.bml-social { display: flex; align-items: center; gap: 16px; }
.bml-social a { color: var(--bml-navy); display: inline-flex; }
.bml-social a:hover { color: var(--bml-blue-light); }
.bml-social svg { width: 19px; height: 19px; }
.bml-social__handle { color: var(--bml-text-muted); margin-right: 4px; }

.bml-nav { padding-top: 14px; }
.bml-nav > ul { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; padding: 0; }
.bml-nav li { position: relative; }
.bml-nav a {
	display: block; padding: 8px 2px;
	color: var(--bml-navy); font-size: clamp(.95rem, .7rem + .4vw, 1.1rem); font-weight: 500;
	border-bottom: 3px solid transparent;
	transition: border-color .2s, color .2s;
}
.bml-nav a:hover { color: var(--bml-blue-deep); border-bottom-color: rgba(0,163,232,.35); }
.bml-nav .current-menu-item > a,
.bml-nav .current_page_item > a,
.bml-nav .current-menu-ancestor > a,
.bml-nav .current-page-ancestor > a,
.bml-nav .current_page_parent > a { color: var(--bml-blue-deep); font-weight: 600; border-bottom-color: var(--bml-blue-light); }
.bml-nav .bml-nav-cta > a {
	background: var(--bml-red-pena); color: #fff; border: 0;
	padding: 12px clamp(22px, 3.5vw, 56px); border-radius: var(--bml-radius); font-weight: 600;
}
.bml-nav .bml-nav-cta > a:hover { background: var(--bml-red-hover); color: #fff; }
.bml-nav .bml-nav-cta.current-menu-item > a, .bml-nav .bml-nav-cta.current_page_item > a { border: 0; }
.bml-nav .sub-menu {
	position: absolute; top: 100%; left: -12px; min-width: 230px; z-index: 10;
	list-style: none; padding: 8px 0; background: #fff; box-shadow: 0 12px 30px rgba(10,26,78,.14);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.bml-nav li:hover > .sub-menu, .bml-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bml-nav .sub-menu a { padding: 8px 16px; border: 0; font-size: .95rem; }

.bml-menu-toggle {
	display: none; align-items: center; gap: 10px;
	padding: 10px 14px; background: var(--bml-blue-deep); color: #fff;
	border: 0; border-radius: var(--bml-radius); font-weight: 600;
}
.bml-menu-toggle__bars, .bml-menu-toggle__bars::before, .bml-menu-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, background .2s;
}
.bml-menu-toggle__bars { position: relative; }
.bml-menu-toggle__bars::before, .bml-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.bml-menu-toggle__bars::before { top: -6px; }
.bml-menu-toggle__bars::after { top: 6px; }
.bml-menu-toggle[aria-expanded="true"] .bml-menu-toggle__bars { background: transparent; }
.bml-menu-toggle[aria-expanded="true"] .bml-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.bml-menu-toggle[aria-expanded="true"] .bml-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
	.bml-header__inner { grid-template-columns: auto 1fr; }
	.bml-brand { grid-row: auto; }
	.bml-brand img { height: 80px; }
	.bml-header__right { display: flex; justify-content: flex-end; }
	.bml-topbar { display: none; }
	.bml-menu-toggle { display: inline-flex; }
	.bml-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-top: 1px solid var(--bml-border-soft);
		box-shadow: 0 16px 30px rgba(10,26,78,.12);
		padding: 8px var(--bml-gutter) 20px;
		display: none;
	}
	.bml-nav.is-open { display: block; }
	.bml-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.bml-nav li + li { border-top: 1px solid var(--bml-border-soft); }
	.bml-nav a { padding: 14px 0; border-bottom: 0; }
	.bml-nav .current-menu-item > a, .bml-nav .current_page_item > a { box-shadow: inset 4px 0 0 var(--bml-blue-light); padding-left: 14px; }
	.bml-nav .bml-nav-cta { border-top: 0 !important; margin-top: 12px; }
	.bml-nav .bml-nav-cta > a { text-align: center; }
	.bml-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 16px; }
	.bml-nav-social { display: flex; margin-top: 16px; }
}
@media (min-width: 1101px) { .bml-nav-social { display: none; } }

/* ==========================================================================
   7. HOME — Hero dividido
   ========================================================================== */
.bml-hero { display: grid; grid-template-columns: 43.4% 1fr; min-height: clamp(420px, 33vw, 520px); background: var(--bml-blue-deep); }
.bml-hero__panel {
	background: linear-gradient(160deg, #0D409C 0%, var(--bml-blue-deep) 55%, #0A3486 100%);
	color: #fff;
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem) clamp(2.5rem, 4vw, 3.5rem) max(var(--bml-gutter), calc((100vw - var(--bml-container)) / 2));
}
.bml-hero .bml-eyebrow { color: #34B6F0; margin-bottom: .9rem; }
.bml-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.2rem + 3.3vw, 4.15rem); line-height: 1.03; margin-bottom: 1.2rem; }
.bml-hero p { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 42ch; line-height: 1.5; }
.bml-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: 2rem; }
.bml-hero__media { position: relative; overflow: hidden; margin: 0; }
.bml-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bml-hero__media figcaption {
	position: absolute; right: 22px; bottom: 16px;
	font-size: .82rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* Faixa Mandu Ladino + linha do tempo */
.bml-strip { background: var(--bml-sand); padding-block: clamp(1.75rem, 3vw, 2.4rem); }
.bml-strip__grid { display: grid; grid-template-columns: 40% 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.bml-strip__intro { padding-right: clamp(1rem, 2vw, 2rem); border-right: 1px solid #D9D2C6; }
.bml-strip h2 { font-size: clamp(1.8rem, 1.2rem + 1.45vw, 2.6rem); letter-spacing: -.03em; margin-bottom: .75rem; }
.bml-strip__intro p { color: var(--bml-text-main); margin-bottom: 1rem; max-width: 40ch; }

.bml-timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); position: relative; padding-top: 34px; }
.bml-timeline li:not(:last-child)::after {
	content: ""; position: absolute; top: -26px; left: 50%; width: 100%; height: 2px; background: var(--bml-amber-tranca);
}
.bml-timeline li { position: relative; text-align: center; padding: 0 clamp(.5rem, 1.5vw, 1.25rem); }
.bml-timeline li + li { border-left: 1px solid #DDD6CA; }
.bml-timeline li::before {
	content: ""; position: absolute; z-index: 1; top: -32px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
	border-radius: 50%; background: var(--bml-amber-tranca);
}
.bml-timeline strong { display: block; font-family: var(--bml-font-serif); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); color: var(--bml-blue-deep); line-height: 1.1; letter-spacing: -.01em; }
.bml-timeline b { display: block; color: var(--bml-blue-deep); font-weight: 700; font-size: 1rem; margin: .25rem 0 .5rem; }
.bml-timeline span { display: block; font-size: .92rem; color: var(--bml-text-muted); line-height: 1.45; max-width: 26ch; margin-inline: auto; }
.bml-timeline--plain li + li { border-left: 0; }

/* Atividades / cards */
.bml-section { padding-block: clamp(2.5rem, 4vw, 3.25rem); }
.bml-section--tight { padding-block: clamp(2rem, 3vw, 2.5rem); }
.bml-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.bml-cards > * { padding-inline: clamp(.75rem, 1.4vw, 1.25rem); }
.bml-cards > * + * { border-left: 1px solid var(--bml-border-soft); }
.bml-cards > :first-child { padding-left: 0; }
.bml-cards > :last-child { padding-right: 0; }
.bml-card { display: flex; flex-direction: column; position: relative; }
.bml-card__media { display: block; aspect-ratio: 2.08 / 1; overflow: hidden; background: var(--bml-sand); margin-bottom: 1rem; }
.bml-card__media--wide { aspect-ratio: 3.2 / 1; }
.bml-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bml-card:hover .bml-card__media img { transform: scale(1.04); }
.bml-card .bml-badge { align-self: flex-start; margin-bottom: .55rem; }
.bml-card .bml-eyebrow { font-size: .78rem; margin-bottom: .3rem; }
.bml-card__title { font-size: clamp(1.3rem, .9rem + .95vw, 1.85rem); margin-bottom: .35rem; line-height: 1.12; }
.bml-card__title a { color: inherit; }
.bml-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bml-card__text { color: var(--bml-text-muted); font-size: clamp(.95rem, .85rem + .2vw, 1.06rem); line-height: 1.5; margin-bottom: .9rem; }
.bml-card .bml-arrow { align-self: flex-start; margin-top: auto; font-size: .98rem; position: relative; z-index: 2; }
.bml-card__meta { font-size: .88rem; color: var(--bml-text-muted); margin-bottom: .5rem; }

/* Projeto CSC */
.bml-csc { display: grid; grid-template-columns: 50.6% 1fr; background: var(--bml-sand); min-height: clamp(360px, 26vw, 400px); }
.bml-csc__text {
	position: relative;
	padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 4.5rem) clamp(2rem, 3.5vw, 3rem) max(calc(var(--bml-gutter) + 70px), calc((100vw - var(--bml-container)) / 2 + 70px));
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.bml-csc__deco { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(60px, 7vw, 110px); object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); opacity: .95; }
.bml-csc h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); margin-bottom: 1.1rem; line-height: 1.04; }
.bml-csc p { color: var(--bml-text-main); max-width: 50ch; margin-bottom: 1.6rem; }
.bml-csc__media { position: relative; margin: 0; overflow: hidden; }
.bml-csc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Agenda + Memorial */
.bml-duo { display: grid; grid-template-columns: 43.6% 1fr; border-bottom: 1px solid var(--bml-border-soft); }
.bml-agenda { padding: clamp(2rem, 3.2vw, 2.5rem) clamp(1.5rem, 3.5vw, 3.5rem) clamp(2rem, 3.2vw, 2.5rem) max(var(--bml-gutter), calc((100vw - var(--bml-container)) / 2)); }
.bml-agenda h2 { margin-bottom: 1.25rem; }
.bml-agenda__list { list-style: none; padding: 0; border-top: 1px solid var(--bml-border-soft); margin-bottom: 1.4rem; }
.bml-agenda__list li { border-bottom: 1px solid var(--bml-border-soft); }
.bml-agenda__list a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 1rem; padding: 1rem .25rem; color: var(--bml-navy); font-size: clamp(1rem, .85rem + .3vw, 1.18rem); }
.bml-agenda__list a:hover { background: var(--bml-sand-soft); }
.bml-agenda__list svg { color: var(--bml-amber-tranca); }
.bml-agenda__list .bml-icon { width: 26px; height: 26px; }
.bml-agenda__list .bml-chev { width: 18px; height: 18px; transition: transform .2s; }
.bml-agenda__list a:hover .bml-chev { transform: translateX(3px); }
.bml-agenda__list small { display: block; color: var(--bml-text-muted); font-size: .85rem; }
.bml-agenda__note { color: var(--bml-text-muted); font-size: 1rem; margin-bottom: .6rem; }

.bml-memorial { position: relative; color: #fff; background: var(--bml-blue-deep); overflow: hidden; display: flex; align-items: center; }
.bml-memorial__img { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; height: 100%; object-fit: cover; }
.bml-memorial::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, #0A3A8E 0%, #0B3C95 42%, rgba(11,60,149,.55) 62%, rgba(11,60,149,.05) 100%);
}
.bml-memorial__inner { position: relative; z-index: 2; padding: clamp(2.25rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); max-width: 560px; }
.bml-memorial__inner::before { content: ""; display: block; width: 60px; height: 2px; background: rgba(255,255,255,.75); margin-bottom: 1.1rem; }
.bml-memorial h2 { color: #fff; margin-bottom: 1rem; }
.bml-memorial p { color: rgba(255,255,255,.92); max-width: 36ch; margin-bottom: 1.5rem; }

/* Faixa CTA “Faça parte dessa história” */
.bml-cta-band { background: var(--bml-sand); position: relative; overflow: hidden; }
.bml-cta-band__deco {
	position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: 34%; object-fit: cover; object-position: left center;
	-webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.bml-cta-band__inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem 3rem; padding-block: clamp(1.4rem, 2.4vw, 1.9rem); padding-left: clamp(0px, 22vw, 300px); }
.bml-cta-band h2 { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.7rem); line-height: 1.05; }
.bml-cta-band p { color: var(--bml-navy); margin-top: .2rem; }
.bml-cta-band .bml-btn { min-width: min(100%, 340px); }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.bml-footer { background: var(--bml-bg-footer); color: rgba(255,255,255,.88); font-size: clamp(.9rem, .8rem + .2vw, 1rem); }
.bml-footer a { color: rgba(255,255,255,.9); }
.bml-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bml-footer__grid { display: grid; grid-template-columns: 220px 1fr 1.6fr 1.2fr; gap: 2rem clamp(1.5rem, 3vw, 3rem); padding-block: clamp(1.25rem, 2.2vw, 1.75rem); }
.bml-footer__brand { padding-right: clamp(1rem, 3vw, 2.5rem); border-right: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; }
.bml-footer__brand img { width: auto; height: clamp(110px, 10vw, 150px); }
.bml-footer h2 { font-family: var(--bml-font-sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: .6rem; }
.bml-footer ul { list-style: none; padding: 0; }
.bml-footer__nav li { line-height: 1.38; }
.bml-footer__board p, .bml-footer address { font-style: normal; line-height: 1.65; }
.bml-footer .bml-social { margin-top: .8rem; gap: 20px; }
.bml-footer .bml-social a { color: #fff; }
.bml-footer__handle { font-weight: 600; color: #fff; }
.bml-footer__bottom { border-top: 1px solid rgba(255,255,255,.35); padding-block: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .85rem; color: rgba(255,255,255,.85); }

/* ==========================================================================
   9. Cabeçalhos de página
   ========================================================================== */
.bml-breadcrumb { font-size: .9rem; color: var(--bml-text-main); margin-bottom: 1.1rem; }
.bml-breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45em; }
.bml-breadcrumb li + li::before { content: "/"; margin-right: .45em; color: var(--bml-text-muted); }
.bml-breadcrumb a { color: var(--bml-text-main); }
.bml-breadcrumb a:hover { color: var(--bml-blue-deep); text-decoration: underline; }

/* Com imagem à direita (O Que é a Brigada) */
.bml-pagehead--image { position: relative; background: #F7F4EC; overflow: hidden; }
.bml-pagehead--image .bml-pagehead__img { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: 100%; object-fit: cover; object-position: center; }
.bml-pagehead--image::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 62%;
	background: linear-gradient(90deg, #F7F4EC 0%, #F7F4EC 62%, rgba(247,244,236,.75) 78%, rgba(247,244,236,0) 100%);
}
.bml-pagehead--image .bml-container { position: relative; z-index: 2; padding-block: clamp(1.75rem, 3vw, 2.25rem) clamp(1.5rem, 2.5vw, 1.75rem); }
.bml-pagehead--image h1 { font-size: clamp(2.6rem, 1rem + 5.2vw, 6.4rem); line-height: .98; max-width: 9ch; margin-bottom: 1.1rem; }
.bml-pagehead--image .bml-pagehead__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.35rem); color: var(--bml-text-main); max-width: 42ch; padding-bottom: 1.2rem; border-bottom: 2px solid var(--bml-amber-tranca); display: inline-block; }

/* Simples bege (artigos, arquivos) */
.bml-pagehead { background: var(--bml-sand-soft); border-bottom: 1px solid #EEE9E1; }
.bml-pagehead .bml-container { padding-block: clamp(1.5rem, 2.6vw, 2rem) clamp(1.25rem, 2vw, 1.5rem); }
.bml-pagehead h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; max-width: 32ch; margin-bottom: .7rem; }
.bml-pagehead__sub { font-size: clamp(1.02rem, .97rem + .35vw, 1.25rem); color: var(--bml-text-main); max-width: 70ch; }
.bml-pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; margin-top: 1rem; font-size: 1rem; color: var(--bml-text-muted); }
.bml-pagehead__meta strong { color: var(--bml-navy); font-weight: 600; }
.bml-dot { margin-inline: .6em; }

.bml-share { display: inline-flex; align-items: center; gap: 14px; color: var(--bml-text-main); }
.bml-share a, .bml-share button { display: inline-flex; padding: 2px; background: none; border: 0; color: var(--bml-blue-deep); }
.bml-share svg { width: 22px; height: 22px; }
.bml-share .is-whatsapp { color: #18A84A; }
.bml-share a:hover, .bml-share button:hover { opacity: .75; }
.bml-share__ok { font-size: .8rem; color: var(--bml-green-vaqueiro); }

/* ==========================================================================
   10. Layout de artigo (publicações, notícias, páginas, atividades, eventos)
   ========================================================================== */
.bml-article { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 28.5%, 360px); gap: clamp(1.75rem, 3vw, 2.25rem); padding-block: clamp(1.5rem, 2.4vw, 1.75rem) clamp(2.5rem, 4vw, 3rem); }
.bml-article__main { min-width: 0; }
.bml-article__aside { border-left: 1px solid var(--bml-border-soft); padding-left: clamp(1.25rem, 2.2vw, 2rem); }
.bml-figure { margin: 0 0 1.5rem; }
.bml-figure img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; }
.bml-figure figcaption, .bml-caption { font-size: .82rem; color: var(--bml-text-muted); margin-top: .55rem; }

.entry-content { color: var(--bml-text-main); font-size: clamp(1rem, .9rem + .25vw, 1.12rem); line-height: 1.6; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); margin-top: 1.5em; }
.entry-content h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); margin-top: 1.4em; }
.entry-content h2 + *, .entry-content h3 + * { margin-top: .6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content blockquote, .entry-content .wp-block-quote, .bml-quote {
	margin: 1.6em 0; padding: 1.4rem 1.75rem 1.4rem 2.25rem;
	background: var(--bml-sand); border-left: 4px solid var(--bml-amber-tranca);
	font-family: var(--bml-font-serif); font-style: italic; font-weight: 600;
	font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.25; letter-spacing: -.01em;
	color: var(--bml-navy);
}
.entry-content blockquote p::before, .bml-quote p::before { content: "\201C"; color: var(--bml-amber-tranca); margin-right: .1em; }
.entry-content blockquote p::after, .bml-quote p::after { content: "\201D"; color: var(--bml-amber-tranca); margin-left: .05em; }
.entry-content blockquote cite, .entry-content .wp-block-quote cite { display: block; margin-top: .75rem; font-family: var(--bml-font-sans); font-style: normal; font-weight: 500; font-size: .9rem; color: var(--bml-text-muted); letter-spacing: 0; }
.entry-content blockquote.bml-quote--long { font-size: 1.06rem; font-weight: 400; line-height: 1.65; letter-spacing: 0; }
.entry-content blockquote.bml-quote--long p::before, .entry-content blockquote.bml-quote--long p::after { content: none; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }

.bml-article__foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--bml-border-soft); }
.bml-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.bml-tags > span { color: var(--bml-text-main); margin-right: .2rem; }
.bml-tags a { display: inline-block; padding: .4em 1.4em; border: 1.5px solid var(--bml-blue-deep); border-radius: 2px; color: var(--bml-blue-deep); font-size: .9rem; font-weight: 500; }
.bml-tags a:hover { background: var(--bml-blue-deep); color: #fff; }
.bml-article__share { display: flex; align-items: center; gap: .8rem; color: var(--bml-link); font-weight: 600; }
.bml-postnav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Ficha (atividade, evento, publicação) */
.bml-facts { background: var(--bml-sand-soft); border-top: 3px solid var(--bml-amber-tranca); padding: 1.25rem 1.4rem; margin-bottom: 1.75rem; }
.bml-facts h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.bml-facts dl { display: grid; gap: .7rem; }
.bml-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bml-text-muted); }
.bml-facts dd { margin: 0; color: var(--bml-navy); font-weight: 600; }
.bml-facts .bml-btn { width: 100%; margin-top: 1rem; min-height: 46px; font-size: .98rem; }

/* Barra lateral */
.bml-side { margin-bottom: 2.25rem; }
.bml-side > h2 { font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); margin-bottom: .9rem; }
.bml-side-links { list-style: none; padding: 0; border-top: 1px solid var(--bml-border-soft); }
.bml-side-links li { border-bottom: 1px solid var(--bml-border-soft); }
.bml-side-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem .2rem; color: var(--bml-link); font-weight: 500; }
.bml-side-links a:hover { background: var(--bml-sand-soft); }
.bml-chev { width: 16px; height: 16px; color: var(--bml-amber-tranca); flex-shrink: 0; }
.bml-side-posts { list-style: none; padding: 0; border-top: 1px solid var(--bml-border-soft); }
.bml-side-posts li { border-bottom: 1px solid var(--bml-border-soft); }
.bml-side-posts a { display: grid; grid-template-columns: 92px 1fr 16px; align-items: center; gap: 1rem; padding: .85rem 0; }
.bml-side-posts img { width: 92px; height: 72px; object-fit: cover; }
.bml-side-posts span { font-family: var(--bml-font-serif); font-weight: 700; color: var(--bml-navy); line-height: 1.2; letter-spacing: -.015em; font-size: 1.05rem; }
.bml-side-posts a:hover span { color: var(--bml-blue-deep); }
.bml-side-cta {
	position: relative; overflow: hidden; color: #fff;
	background: linear-gradient(160deg, #0D45A6, var(--bml-blue-deep) 60%, #082F78);
	padding: 1.9rem 1.6rem;
}
.bml-side-cta__deco { position: absolute; right: -40px; top: 0; height: 100%; width: auto; max-width: none; opacity: .55; mix-blend-mode: multiply; pointer-events: none; }
.bml-side-cta > :not(.bml-side-cta__deco) { position: relative; }
.bml-side-cta h2 { color: #fff; font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); line-height: 1; margin-bottom: 1rem; }
.bml-side-cta p { color: rgba(255,255,255,.92); font-size: .98rem; margin-bottom: 1.25rem; }

/* Continue a leitura */
.bml-related { border-top: 1px solid var(--bml-border-soft); }

/* ==========================================================================
   11. O Que é a Brigada
   ========================================================================== */
.bml-about { display: grid; grid-template-columns: clamp(220px, 21%, 280px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(1.25rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); }
.bml-toc { background: var(--bml-sand-soft); padding: 1.5rem 1.25rem; align-self: stretch; border-right: 1px solid var(--bml-border-soft); }
.bml-toc__inner { position: sticky; top: 24px; }
.bml-toc h2 { font-size: clamp(1.6rem, 1.2rem + .8vw, 2.1rem); margin-bottom: 1rem; }
.bml-toc ul { list-style: none; padding: 0; border-top: 1px solid #E6E0D6; }
.bml-toc li { border-bottom: 1px solid #E6E0D6; }
.bml-toc a { display: block; padding: .85rem .9rem; color: var(--bml-text-main); border-left: 3px solid transparent; font-size: 1.02rem; }
.bml-toc a:hover { color: var(--bml-blue-deep); }
.bml-toc a.is-active, .bml-toc a[aria-current="true"] { border-left-color: var(--bml-amber-tranca); color: var(--bml-navy); font-weight: 600; }
.bml-about__main > h2 { margin-bottom: .6rem; }
.bml-about__main .entry-content { margin-bottom: 1.5rem; }
.bml-about__photo img { width: 100%; aspect-ratio: 2.83 / 1; object-fit: cover; }
.bml-about .bml-timeline { --cols: 2; margin-top: 1.5rem; }

.bml-band { position: relative; background: var(--bml-sand); overflow: hidden; }
.bml-band__deco { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: 16%; object-fit: cover; object-position: left; -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent); mask-image: linear-gradient(90deg, #000 65%, transparent); }
.bml-band__inner { position: relative; padding-block: clamp(2rem, 3.5vw, 2.6rem); padding-left: clamp(0px, 14vw, 230px); max-width: 1180px; }
.bml-band h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); line-height: 1.04; margin-bottom: 1rem; }
.bml-band p { max-width: 80ch; }
.bml-band p + p { margin-top: .9rem; }
.bml-band__links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1rem; margin-top: 1.6rem; max-width: 860px; }
.bml-band__links > * + * { border-left: 1px solid #D9D2C6; padding-left: clamp(1rem, 4vw, 4rem); }

.bml-board { border-bottom: 1px solid var(--bml-border-soft); }
.bml-board .bml-container { padding-block: clamp(1.5rem, 2.6vw, 2rem); }
.bml-board h2 { margin-bottom: 1rem; }
.bml-board ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), auto); justify-content: space-between; }
.bml-board li { padding-inline: clamp(1rem, 3vw, 2.5rem); }
.bml-board li:first-child { padding-left: 0; }
.bml-board li + li { border-left: 1px solid var(--bml-border-soft); }
.bml-board strong { display: inline-block; font-family: var(--bml-font-serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); color: var(--bml-navy); letter-spacing: -.015em; line-height: 1.2; padding-bottom: .35rem; background: linear-gradient(var(--bml-amber-tranca), var(--bml-amber-tranca)) left bottom / 66% 2px no-repeat; }
.bml-board span { display: block; margin-top: .5rem; color: var(--bml-text-main); }

.bml-sede { display: grid; grid-template-columns: 34% 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; padding-block: clamp(.75rem, 1.5vw, 1rem); }
.bml-sede__text { border-right: 1px solid var(--bml-border-soft); padding-block: .5rem; }
.bml-sede h2 { margin-bottom: 1rem; }
.bml-sede address { font-style: normal; color: var(--bml-text-main); line-height: 1.75; margin-bottom: 1rem; }
.bml-sede__ig { display: inline-flex; align-items: center; gap: .75rem; color: var(--bml-navy); }
.bml-sede__ig svg { width: 22px; height: 22px; }
.bml-sede__img img { width: 100%; aspect-ratio: 4.1 / 1; object-fit: cover; }

/* ==========================================================================
   12. Arquivos, eventos, contato
   ========================================================================== */
.bml-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: clamp(2rem, 3vw, 2.75rem); }
.bml-grid3 > * { padding-inline: clamp(.75rem, 1.4vw, 1.25rem); }
.bml-grid3 > :nth-child(3n+1) { padding-left: 0; }
.bml-grid3 > :nth-child(3n) { padding-right: 0; }
.bml-grid3 > :not(:nth-child(3n+1)) { border-left: 1px solid var(--bml-border-soft); }
.bml-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; }
.bml-filters a { padding: .35em 1.1em; border: 1.5px solid var(--bml-border-soft); border-radius: 2px; color: var(--bml-text-main); font-size: .92rem; }
.bml-filters a:hover, .bml-filters a.is-active { border-color: var(--bml-blue-deep); color: var(--bml-blue-deep); }
.bml-empty { padding: 2rem; background: var(--bml-sand-soft); color: var(--bml-text-muted); text-align: center; }

.bml-events { list-style: none; padding: 0; border-top: 1px solid var(--bml-border-soft); }
.bml-event { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--bml-border-soft); position: relative; }
.bml-event__date { text-align: center; background: var(--bml-blue-deep); color: #fff; padding: .55rem 0; border-radius: 2px; line-height: 1.05; }
.bml-event__date b { display: block; font-family: var(--bml-font-serif); font-size: 1.9rem; }
.bml-event__date span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bml-event--past .bml-event__date { background: #8C93A6; }
.bml-event h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.bml-event h3 a { color: inherit; }
.bml-event h3 a::after { content: ""; position: absolute; inset: 0; }
.bml-event p { color: var(--bml-text-muted); font-size: .95rem; }
.bml-subtitle { font-size: 1.6rem; margin: 2.5rem 0 1rem; }

.pagination, .nav-links { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border: 1px solid var(--bml-border-soft); color: var(--bml-navy); font-weight: 600; }
.page-numbers.current { background: var(--bml-blue-deep); border-color: var(--bml-blue-deep); color: #fff; }
a.page-numbers:hover { border-color: var(--bml-blue-deep); }

.bml-contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 3.5vw, 3rem); }
.bml-contact__info h2 { margin-bottom: 1rem; }
.bml-contact__list { list-style: none; padding: 0; margin-top: 1.5rem; border-top: 1px solid var(--bml-border-soft); }
.bml-contact__list li { padding: 1rem 0; border-bottom: 1px solid var(--bml-border-soft); }
.bml-contact__list b { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bml-text-muted); margin-bottom: .2rem; }
.bml-form { background: var(--bml-sand-soft); border-top: 4px solid var(--bml-blue-deep); padding: clamp(1.5rem, 3vw, 2.25rem); }
.bml-form h2 { font-size: 1.8rem; margin-bottom: 1.25rem; }
.bml-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.bml-field--full { grid-column: 1 / -1; }
.bml-field label { display: block; font-weight: 600; color: var(--bml-navy); font-size: .92rem; margin-bottom: .35rem; }
.bml-req { color: var(--bml-red-pena); }
.bml-field input, .bml-field select, .bml-field textarea {
	width: 100%; padding: .78rem .9rem; background: #fff;
	border: 1px solid #CFC8BC; border-radius: 2px; transition: border-color .2s, box-shadow .2s;
}
.bml-field textarea { min-height: 130px; resize: vertical; }
.bml-field input:focus, .bml-field select:focus, .bml-field textarea:focus { outline: none; border-color: var(--bml-blue-light); box-shadow: 0 0 0 3px rgba(0,163,232,.2); }
.bml-field.is-invalid input, .bml-field.is-invalid select, .bml-field.is-invalid textarea { border-color: var(--bml-red-pena); }
.bml-field__error { display: block; color: var(--bml-red-pena); font-size: .82rem; margin-top: .3rem; }
.bml-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.bml-form__note { font-size: .84rem; color: var(--bml-text-muted); max-width: 32ch; }
.bml-hp { display: none !important; }
.bml-notice { padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-left: 4px solid; font-weight: 600; }
.bml-notice--success { background: #E6F3ED; border-color: var(--bml-green-vaqueiro); color: #0A4D35; }
.bml-notice--error { background: #FBE9E7; border-color: var(--bml-red-pena); color: #8E170F; }

/* Galeria + lightbox */
.bml-gallery { margin-top: 2rem; }
.bml-gallery h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.bml-gallery__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.bml-gallery__grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bml-sand); }
.bml-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bml-gallery__grid a:hover img { transform: scale(1.05); }
.bml-lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.bml-lightbox::backdrop { background: rgba(6, 16, 45, .92); }
.bml-lightbox img { max-width: 94vw; max-height: 82vh; margin-inline: auto; }
.bml-lightbox__caption { color: #fff; text-align: center; font-size: .9rem; margin-top: .6rem; }
.bml-lightbox__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; line-height: 1; }
.bml-lightbox__btn:hover { background: rgba(255,255,255,.3); }
.bml-lightbox__prev { left: 16px; } .bml-lightbox__next { right: 16px; }
.bml-lightbox__close { top: 24px; right: 16px; transform: none; }

/* 404 / busca */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .75rem .9rem; border: 1px solid #CFC8BC; }
.search-submit { padding: .75rem 1.2rem; background: var(--bml-blue-deep); color: #fff; border: 0; font-weight: 600; }

/* ==========================================================================
   13. Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
	.bml-strip__grid { grid-template-columns: 1fr; }
	.bml-strip__intro { border-right: 0; padding-right: 0; }
	.bml-footer__grid { grid-template-columns: 1fr 1fr; }
	.bml-footer__brand { border-right: 0; justify-content: flex-start; }
}
@media (max-width: 900px) {
	.bml-hero { grid-template-columns: 1fr; }
	.bml-hero__panel { padding-inline: var(--bml-gutter); }
	.bml-hero__media { min-height: 260px; }
	.bml-cards, .bml-grid3 { grid-template-columns: 1fr; row-gap: 2rem; }
	.bml-cards > *, .bml-grid3 > * { padding-inline: 0 !important; border-left: 0 !important; }
	.bml-cards > * + *, .bml-grid3 > * + * { padding-top: 2rem !important; border-top: 1px solid var(--bml-border-soft); }
	.bml-csc { grid-template-columns: 1fr; }
	.bml-csc__text { padding-left: calc(var(--bml-gutter) + 40px); }
	.bml-csc__media { min-height: 260px; }
	.bml-duo { grid-template-columns: 1fr; }
	.bml-agenda { padding-inline: var(--bml-gutter); }
	.bml-memorial__img { width: 100%; }
	.bml-memorial::before { background: linear-gradient(90deg, rgba(10,58,142,.97) 0%, rgba(11,60,149,.88) 60%, rgba(11,60,149,.6) 100%); }
	.bml-memorial__inner { padding-inline: var(--bml-gutter); }
	.bml-cta-band__inner { grid-template-columns: 1fr; padding-left: 0; text-align: left; }
	.bml-cta-band__deco { opacity: .35; max-width: 70%; }
	.bml-article { grid-template-columns: 1fr; }
	.bml-article__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--bml-border-soft); padding-top: 2rem; }
	.bml-about { grid-template-columns: 1fr; }
	.bml-toc { border-right: 0; }
	.bml-band__inner { padding-left: 0; }
	.bml-band__deco { opacity: .3; max-width: 40%; }
	.bml-band__links { grid-template-columns: 1fr; }
	.bml-band__links > * + * { border-left: 0; padding-left: 0; }
	.bml-board ul { grid-template-columns: 1fr; gap: 1.25rem; }
	.bml-board li { padding: 0 !important; border-left: 0 !important; }
	.bml-sede { grid-template-columns: 1fr; }
	.bml-sede__text { border-right: 0; }
	.bml-pagehead--image .bml-pagehead__img { width: 100%; opacity: .35; }
	.bml-pagehead--image::after { width: 100%; background: linear-gradient(90deg, #F7F4EC 30%, rgba(247,244,236,.6)); }
	.bml-contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bml-timeline { --cols: 1 !important; padding-top: 0; }
	.bml-timeline li::after { display: none; }
	.bml-timeline li { text-align: left; padding: 0 0 0 28px; border-left: 2px solid var(--bml-amber-tranca) !important; padding-bottom: 1.2rem; }
	.bml-timeline li::before { top: 6px; left: -8px; margin: 0; }
	.bml-timeline span { margin-inline: 0; }
	.bml-footer__grid { grid-template-columns: 1fr; }
	.bml-form__grid { grid-template-columns: 1fr; }
	.bml-event { grid-template-columns: 70px 1fr; }
	.bml-event > :last-child:not(div) { display: none; }
	.bml-side-posts a { grid-template-columns: 80px 1fr 16px; }
	.bml-side-posts img { width: 80px; height: 64px; }
}

@media print {
	.bml-header, .bml-footer, .bml-cta-band, .bml-article__aside, .bml-share, .bml-form { display: none !important; }
	body { color: #000; }
}

/* Bloco “Conheça mais” (Detalhes do Gutenberg) */
.entry-content details { border-top: 1px solid var(--bml-border-soft); border-bottom: 1px solid var(--bml-border-soft); padding: .9rem 0; }
.entry-content details > summary { cursor: pointer; font-weight: 600; color: var(--bml-link); list-style: none; display: flex; align-items: center; gap: .5em; }
.entry-content details > summary::-webkit-details-marker { display: none; }
.entry-content details > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; line-height: 1; }
.entry-content details[open] > summary::before { content: "–"; }
.entry-content details > :not(summary) { margin-top: 1em; }

/* Mapa do site */
.bml-sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.bml-sitemap h2 { font-size: clamp(1.4rem, 1.2rem + .5vw, 1.75rem); padding-bottom: .5rem; margin-bottom: .75rem; border-bottom: 2px solid var(--bml-amber-tranca); }
.bml-sitemap h2 a { color: inherit; }
.bml-sitemap ul { list-style: none; padding: 0; }
.bml-sitemap li { padding: .45rem 0; border-bottom: 1px solid var(--bml-border-soft); }
.bml-sitemap li ul { padding-left: 1rem; margin-top: .4rem; }
.bml-sitemap small { color: var(--bml-text-muted); }
.bml-sitemap__xml { margin-top: 2.5rem; font-size: .9rem; color: var(--bml-text-muted); }
.bml-footer__legal { display: inline-flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.bml-footer__legal a { color: rgba(255,255,255,.85); }

/* Seletor de idioma (com bandeiras) */
.bml-lang { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.bml-lang a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 3px; color: var(--bml-text-muted); border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.bml-lang a:hover { color: var(--bml-blue-deep); background: #F2F6FC; }
.bml-lang a.is-active { color: var(--bml-navy); background: #EAF2FF; border-color: #C9DBF5; }
.bml-lang > span { color: var(--bml-border-soft); }
.bml-flag { display: block; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(10, 26, 78, .15); flex-shrink: 0; overflow: hidden; }
.bml-lang a:not(.is-active) .bml-flag { opacity: .8; }
.bml-lang a:hover .bml-flag { opacity: 1; }
.bml-nav-social .bml-lang { margin-right: auto; font-size: 1rem; gap: 8px; }
.bml-nav-social .bml-lang a { padding: 6px 10px; }
.bml-nav-social .bml-flag { width: 24px; height: 17px; }
.bml-lang-notice { padding: .8rem 1rem; background: #EEF7FD; border-left: 4px solid var(--bml-blue-light); color: var(--bml-navy); font-size: .95rem; font-weight: 600; }
