/* -------------------------------------------------------------------------
 * Bruna Caroline — Blog Editorial
 * Paleta e tipografia herdadas das páginas de atendimento do site:
 * creme (#FDFAF7 / #F5F0E9), rosé (#B97B6B), terracota (#8C3D2E),
 * dourado do logo (#E4AC42) e Playfair Display + DM Sans.
 * ---------------------------------------------------------------------- */

body.bce-page {
	--bce-bg: #fdfaf7;
	--bce-bg-soft: #f5f0e9;
	--bce-panel: #efe7dc;
	--bce-panel-hover: #e7dccf;
	--bce-border: rgba(185, 123, 107, 0.24);
	--bce-border-strong: rgba(140, 61, 46, 0.45);
	--bce-text: #2c1f1a;
	--bce-muted: #6b5750;
	--bce-subtle: #7e6862;
	--bce-accent: #8c3d2e;
	--bce-accent-soft: #b97b6b;
	--bce-accent-glow: rgba(185, 123, 107, 0.16);
	--bce-gold: #b4831f;
	--bce-gold-soft: rgba(228, 172, 66, 0.22);
	--bce-sage: #7e8f6e;
	--bce-ink: #221713;
	--bce-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--bce-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--bce-radius: 16px;
	--bce-radius-sm: 10px;
	--bce-pill: 999px;
	--bce-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--bce-shell: min(1200px, calc(100% - 48px));

	margin: 0;
	background: var(--bce-bg);
	color: var(--bce-text);
}

.bce {
	font-family: var(--bce-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--bce-text);
	background: var(--bce-bg);
	overflow: hidden;
}

.bce *,
.bce-header *,
.bce-footer * {
	box-sizing: border-box;
}

.bce img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* :where() zera a especificidade do reset — sem isso "a { color: inherit }"
   venceria as classes de componente (.bce-text-link, .bce-track-ink) e o link
   ignoraria a própria cor. */
:where(.bce) a {
	color: inherit;
	text-decoration: none;
}

:where(.bce) button,
:where(.bce) input,
:where(.bce) select {
	font: inherit;
}

.bce h1,
.bce h2,
.bce h3,
.bce-footer-intro p {
	font-family: var(--bce-serif);
}

/* O tema (theme.json) pinta h1–h6 diretamente, o que vence a cor herdada do
   container — sem esta regra os títulos das faixas escuras (CTA final, cartão
   de trilha) saem em #111 e ficam ilegíveis. */
.bce h1,
.bce h2,
.bce h3,
.bce h4,
.bce-footer h2,
.bce-footer h3 {
	color: var(--bce-text);
}

.bce-shell {
	width: var(--bce-shell);
	margin-inline: auto;
}

.bce-skip-link {
	position: fixed;
	top: -100px;
	left: 20px;
	z-index: 9999;
	padding: 12px 18px;
	background: var(--bce-panel);
	border: 1px solid var(--bce-border-strong);
	border-radius: var(--bce-radius-sm);
	color: var(--bce-text);
}

.bce-skip-link:focus {
	top: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.bce-eyebrow {
	display: block;
	color: var(--bce-accent);
	font-family: var(--bce-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.bce-text-link {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	color: var(--bce-accent);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.bce-text-link span {
	font-size: 19px;
	transition: transform 0.2s var(--bce-ease);
}

.bce-text-link:hover span,
.bce-text-link:focus span {
	transform: translateX(5px);
}

.bce-text-link-large {
	font-size: 16px;
}

.bce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	padding: 14px 24px;
	border: 1px solid var(--bce-border-strong);
	border-radius: var(--bce-pill);
	background: transparent;
	color: var(--bce-text);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s var(--bce-ease), border-color 0.2s var(--bce-ease), color 0.2s var(--bce-ease);
}

.bce-button:hover,
.bce-button:focus {
	background: var(--bce-panel);
	border-color: var(--bce-accent);
	color: var(--bce-accent);
}

.bce-button-accent {
	margin: 0;
	padding: 16px 30px;
	background: var(--bce-accent);
	border-color: var(--bce-accent);
	color: #fdfaf7;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.bce-button-accent:hover,
.bce-button-accent:focus {
	background: #6f2f22;
	border-color: #6f2f22;
	color: #fdfaf7;
}

.bce a:focus-visible,
.bce button:focus-visible,
.bce select:focus-visible,
.bce-header a:focus-visible,
.bce-header button:focus-visible,
.bce-footer a:focus-visible {
	outline: 3px solid var(--bce-accent-soft);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.bce-header {
	position: relative;
	z-index: 200;
	background: var(--bce-bg);
	border-bottom: 1px solid var(--bce-border);
	font-family: var(--bce-sans);
}

.bce-header-inner {
	min-height: 92px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 44px;
}

.bce-header-logo {
	display: flex;
	flex: 0 0 auto;
	text-decoration: none;
	color: var(--bce-text);
}

.bce-header-logo img {
	width: 200px;
	height: auto;
}

.bce-wordmark {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.15;
}

.bce-wordmark b {
	font-family: var(--bce-serif);
	font-size: 23px;
	font-weight: 600;
	color: var(--bce-text);
}

.bce-wordmark i {
	color: var(--bce-gold);
	font-style: normal;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.bce-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 30px;
}

.bce-header-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bce-header-nav a {
	color: var(--bce-muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color 0.2s var(--bce-ease);
}

.bce-header-nav a:hover,
.bce-header-nav a:focus {
	color: var(--bce-accent);
}

.bce-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid var(--bce-accent);
	border-radius: var(--bce-pill);
	background: var(--bce-accent);
	color: #fdfaf7;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background 0.2s var(--bce-ease), border-color 0.2s var(--bce-ease);
}

.bce-header-cta:hover,
.bce-header-cta:focus {
	background: #6f2f22;
	border-color: #6f2f22;
}

.bce-menu-toggle {
	display: none;
}

/* -------------------------------------------------------------------------
 * Listagem — faixa, hero, recursos, trilhas
 * ---------------------------------------------------------------------- */

.bce-strip {
	min-height: 48px;
	display: grid;
	place-items: center;
	padding: 12px 16px;
	background: var(--bce-ink);
	color: #e8dcd3;
	text-align: center;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.06em;
}

.bce-hero {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	align-items: stretch;
	padding: 72px 0 86px;
	min-height: 520px;
}

.bce-hero-media {
	position: relative;
	overflow: hidden;
	min-height: 440px;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius);
	background: linear-gradient(165deg, var(--bce-panel) 0%, var(--bce-bg-soft) 70%);
	order: 2;
}

.bce-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Véu quente na base da foto: costura a imagem com o creme da página. */
.bce-hero-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(253, 250, 247, 0) 55%, rgba(245, 240, 233, 0.55) 100%);
	pointer-events: none;
}

.bce-hero-shape {
	position: absolute;
	pointer-events: none;
}

.bce-hero-shape-one {
	width: 150px;
	height: 150px;
	left: -70px;
	bottom: -70px;
	border: 22px solid var(--bce-accent-soft);
	border-radius: 50%;
	opacity: 0.4;
}

.bce-hero-shape-two {
	width: 3px;
	height: 190px;
	right: 44px;
	top: -40px;
	background: linear-gradient(180deg, var(--bce-gold), transparent);
	transform: rotate(24deg);
	opacity: 0.7;
}

.bce-hero-copy {
	order: 1;
	padding: 38px 64px 30px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.bce-hero h1 {
	margin: 22px 0 24px;
	max-width: 660px;
	font-size: clamp(36px, 4vw, 58px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.8px;
}

.bce-hero p {
	max-width: 580px;
	margin: 0 0 44px;
	color: var(--bce-muted);
	font-size: 18px;
	line-height: 1.65;
}

.bce-resources {
	display: grid;
	grid-template-columns: 0.95fr repeat(3, 1fr);
	gap: 24px;
	padding: 30px 0 100px;
}

.bce-section-intro {
	padding: 10px 36px 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.bce-spark {
	color: var(--bce-gold);
	font-size: 32px;
	line-height: 1;
}

.bce-section-intro h2 {
	margin: 18px 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.bce-section-intro p {
	margin: 0;
	color: var(--bce-muted);
	font-size: 14px;
}

.bce-section-intro .bce-text-link {
	margin-top: auto;
	padding-top: 22px;
}

.bce-resource-card {
	min-height: 330px;
	padding: 26px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius);
	background: var(--bce-bg-soft);
	transition: transform 0.25s var(--bce-ease), border-color 0.25s var(--bce-ease), background 0.25s var(--bce-ease);
}

.bce-resource-card:hover {
	transform: translateY(-5px);
	background: var(--bce-panel);
	border-color: var(--bce-border-strong);
}

.bce-resource-card h3 {
	margin: auto 0 20px;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

.bce-resource-card > a {
	display: flex;
	justify-content: space-between;
	padding-top: 15px;
	border-top: 1px solid var(--bce-border);
	color: var(--bce-accent);
	font-size: 13px;
	font-weight: 600;
}

.bce-resource-type {
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: var(--bce-pill);
	background: rgba(44, 31, 26, 0.06);
	color: var(--bce-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.bce-resource-symbol {
	padding: 23px 2px;
	font-family: var(--bce-serif);
	font-size: 52px;
	font-weight: 600;
	line-height: 1;
}

.bce-resource-rose .bce-resource-symbol {
	color: var(--bce-accent-soft);
}

.bce-resource-gold .bce-resource-symbol {
	color: var(--bce-gold);
}

.bce-resource-sage .bce-resource-symbol {
	color: var(--bce-sage);
}

.bce-resource-rose {
	box-shadow: inset 0 2px 0 var(--bce-accent-soft);
}

.bce-resource-gold {
	box-shadow: inset 0 2px 0 var(--bce-gold-soft);
}

.bce-resource-sage {
	box-shadow: inset 0 2px 0 rgba(126, 143, 110, 0.35);
}

.bce-tracks {
	padding: 88px 0;
	background: var(--bce-bg-soft);
	border-block: 1px solid var(--bce-border);
}

.bce-tracks-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bce-track-card {
	min-height: 320px;
	padding: 34px;
	color: var(--bce-text);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius);
	transition: transform 0.25s var(--bce-ease), border-color 0.25s var(--bce-ease);
}

.bce-track-card:hover {
	transform: translateY(-5px);
	border-color: var(--bce-border-strong);
}

.bce-track-card:after {
	content: "";
	position: absolute;
	width: 210px;
	height: 210px;
	right: -75px;
	bottom: -80px;
	border: 1px solid currentColor;
	border-radius: 50%;
	opacity: 0.06;
	box-shadow: 0 0 0 35px currentColor;
}

/* Cartão escuro: redefine a paleta só neste escopo, então filhos que usam
   var(--bce-*) se ajustam ao fundo sem regra extra. */
.bce-track-ink {
	background: var(--bce-ink);
	border-color: transparent;

	--bce-text: #f5ede8;
	--bce-muted: #cbb4ac;
	--bce-accent: #e0a693;
}

.bce-track-rose {
	background: linear-gradient(155deg, rgba(185, 123, 107, 0.22), rgba(228, 172, 66, 0.1));
	border-color: var(--bce-accent-glow);
}

.bce-track-line {
	background: var(--bce-bg);
}

.bce-track-card > span {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	opacity: 0.7;
}

.bce-track-card p {
	margin: auto 0 6px;
	color: var(--bce-muted);
	font-size: 14px;
}

.bce-track-card h3 {
	margin: 0 0 25px;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.3px;
}

.bce-track-card strong {
	position: relative;
	z-index: 2;
	color: var(--bce-accent);
	font-size: 13px;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Arquivo
 * ---------------------------------------------------------------------- */

.bce-archive-hero {
	padding: 74px 0;
	background: var(--bce-bg-soft);
	border-bottom: 1px solid var(--bce-border);
}

.bce-archive-hero h1 {
	margin: 16px 0 0;
	font-size: clamp(34px, 4.4vw, 52px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.6px;
}

.bce-back-link {
	display: inline-block;
	margin-bottom: 32px;
	color: var(--bce-accent);
	font-size: 14px;
	font-weight: 600;
}

.bce-archive-description {
	max-width: 680px;
	margin-top: 14px;
	color: var(--bce-muted);
}

/* -------------------------------------------------------------------------
 * Grade de artigos
 * ---------------------------------------------------------------------- */

.bce-articles {
	padding: 100px 0;
	background: #ffffff;
	color: var(--bce-text);

	/* Faixa branca: a paleta é redefinida só neste escopo para separar a
	   listagem do creme das seções vizinhas. */
	--bce-bg: #ffffff;
	--bce-bg-soft: #fbf7f3;
	--bce-panel: #f7f1ea;
	--bce-panel-hover: #f0e7de;
	--bce-border: rgba(44, 31, 26, 0.14);
	--bce-border-strong: rgba(140, 61, 46, 0.45);
}

.bce-section-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	padding-bottom: 28px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--bce-border);
}

.bce-section-heading h2 {
	margin: 14px 0 0;
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.5px;
}

.bce-category-filter {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bce-category-filter label {
	color: var(--bce-muted);
	font-size: 13px;
	font-weight: 500;
}

.bce-category-filter select {
	padding: 11px 32px 11px 12px;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius-sm);
	background: var(--bce-bg);
	color: var(--bce-text);
}

.bce-category-filter button {
	padding: 12px 20px;
	border: 1px solid var(--bce-border-strong);
	border-radius: var(--bce-pill);
	background: transparent;
	color: var(--bce-accent);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s var(--bce-ease);
}

.bce-category-filter button:hover,
.bce-category-filter button:focus {
	background: var(--bce-panel);
}

.bce-articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 26px;
}

.bce-post-card {
	min-width: 0;
	margin: 0;
}

.bce-post-media {
	display: block;
	aspect-ratio: 1.48 / 1;
	overflow: hidden;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius);
	background: var(--bce-panel);
}

.bce-post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--bce-ease);
}

.bce-post-media-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(150deg, var(--bce-panel), var(--bce-bg-soft));
	color: var(--bce-gold);
	font-size: 30px;
	opacity: 0.7;
}

.bce-post-card:hover .bce-post-media img {
	transform: scale(1.035);
}

.bce-post-body {
	padding: 22px 2px 0;
}

.bce-post-meta {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	color: var(--bce-subtle);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.bce-post-meta span {
	color: var(--bce-accent);
}

.bce-post-card h3 {
	margin: 15px 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.bce-post-card h3 a:hover,
.bce-post-card h3 a:focus {
	color: var(--bce-accent);
}

.bce-post-card p {
	margin: 0 0 22px;
	color: var(--bce-muted);
	font-size: 14px;
	line-height: 1.6;
}

.bce-pagination {
	margin-top: 58px;
}

.bce-pagination .nav-links {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.bce-pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	display: grid;
	place-items: center;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius-sm);
	color: var(--bce-muted);
	font-size: 13px;
	font-weight: 500;
}

.bce-pagination .current,
.bce-pagination .page-numbers:hover {
	background: var(--bce-accent);
	border-color: var(--bce-accent);
	color: #fdfaf7;
}

.bce-empty-state {
	padding: 70px 0;
	text-align: center;
}

.bce-empty-state h3 {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 600;
}

.bce-empty-state p {
	margin: 0;
	color: var(--bce-muted);
}

/* -------------------------------------------------------------------------
 * CTA final
 * ---------------------------------------------------------------------- */

.bce-final-cta {
	position: relative;
	overflow: hidden;
	background-color: var(--bce-ink);
	background-image: var(--bce-cta-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	/* Faixa escura: mesma técnica de redefinir a paleta no escopo. */
	--bce-text: #f5ede8;
	--bce-muted: #cbb4ac;
	--bce-accent: #e0a693;
	--bce-border-strong: rgba(245, 237, 232, 0.4);

	color: var(--bce-text);
}

/* Véu com a cor da faixa a 82%: a foto continua visível por baixo sem
   competir com o texto do CTA. */
.bce-final-cta:before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bce-ink);
	opacity: 0.82;
	pointer-events: none;
}

.bce-final-cta:after {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	right: -230px;
	top: -250px;
	border: 70px solid var(--bce-accent-soft);
	border-radius: 50%;
	opacity: 0.18;
}

.bce-final-cta-inner {
	min-height: 300px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 70px;
	align-items: center;
	position: relative;
	z-index: 1;
	padding: 76px 0;
}

.bce-final-cta h2 {
	max-width: 780px;
	margin: 16px 0 0;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.24;
}

.bce-final-cta .bce-button-accent {
	background: #f5ede8;
	border-color: #f5ede8;
	color: #3a231b;
}

.bce-final-cta .bce-button-accent:hover,
.bce-final-cta .bce-button-accent:focus {
	background: #fff;
	border-color: #fff;
	color: #3a231b;
}

/* -------------------------------------------------------------------------
 * Artigo
 * ---------------------------------------------------------------------- */

.bce-article {
	overflow: visible;
}

.bce-article-hero {
	padding: 66px 0 70px;
	background: var(--bce-bg-soft);
	border-bottom: 1px solid var(--bce-border);
}

/* Sem max-width próprio: o hero segue o mesmo shell do corpo do artigo, e a
   medida de linha é controlada pelo h1 e pelo deck. */

.bce-article-hero .bce-back-link {
	margin-bottom: 36px;
}

.bce-article-hero .bce-eyebrow {
	width: max-content;
	margin-bottom: 18px;
}

.bce-article-hero h1 {
	max-width: 960px;
	margin: 0;
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.8px;
}

.bce-article-deck {
	max-width: 830px;
	margin: 26px 0 0;
	color: var(--bce-muted);
	font-size: 20px;
	line-height: 1.6;
}

.bce-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 30px;
	color: var(--bce-subtle);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bce-article-meta span {
	position: relative;
}

.bce-article-meta span:before {
	content: "";
	position: absolute;
	left: -15px;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--bce-gold);
}

.bce-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 780px) minmax(220px, 290px);
	justify-content: space-between;
	gap: 70px;
	padding-top: 74px;
	padding-bottom: 90px;
}

.bce-article-content {
	min-width: 0;
	color: var(--bce-text);
	font-size: 18px;
	line-height: 1.8;
}

.bce-article-featured {
	margin: 0 0 52px;
}

.bce-article-featured img {
	width: 100%;
	max-height: 580px;
	object-fit: cover;
	border-radius: var(--bce-radius);
	border: 1px solid var(--bce-border);
}

.bce-article-content > :first-child {
	margin-top: 0;
}

.bce-article-content h2,
.bce-article-content h3 {
	font-family: var(--bce-serif);
	color: var(--bce-text);
	font-weight: 600;
	letter-spacing: -0.2px;
	scroll-margin-top: 28px;
}

.bce-article-content h2 {
	margin: 58px 0 20px;
	font-size: 33px;
	line-height: 1.24;
}

.bce-article-content h3 {
	margin: 40px 0 16px;
	font-size: 25px;
	line-height: 1.3;
}

.bce-article-content p {
	margin: 0 0 24px;
}

.bce-article-content ul,
.bce-article-content ol {
	margin: 0 0 28px;
	padding-left: 25px;
}

.bce-article-content li + li {
	margin-top: 10px;
}

.bce-article-content li::marker {
	color: var(--bce-accent-soft);
}

.bce-article-content a {
	color: var(--bce-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bce-article-content strong {
	color: var(--bce-text);
	font-weight: 600;
}

.bce-article-content blockquote {
	margin: 38px 0;
	padding: 26px 32px;
	border-left: 3px solid var(--bce-accent-soft);
	border-radius: 0 var(--bce-radius-sm) var(--bce-radius-sm) 0;
	background: var(--bce-bg-soft);
	color: var(--bce-text);
	font-family: var(--bce-serif);
	font-size: 21px;
	line-height: 1.5;
}

.bce-article-content blockquote p:last-child {
	margin-bottom: 0;
}

.bce-article-content code {
	padding: 2px 6px;
	border: 1px solid var(--bce-border);
	border-radius: 6px;
	background: var(--bce-bg-soft);
	font-size: 0.9em;
	color: var(--bce-accent);
}

.bce-article-content pre {
	margin: 32px 0;
	padding: 22px 24px;
	overflow-x: auto;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius-sm);
	background: var(--bce-bg-soft);
	font-size: 14px;
	line-height: 1.65;
}

.bce-article-content pre code {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.bce-article-content table {
	width: 100%;
	margin: 32px 0;
	border-collapse: collapse;
	font-size: 15px;
}

.bce-article-content th,
.bce-article-content td {
	padding: 12px 14px;
	border: 1px solid var(--bce-border);
	text-align: left;
}

.bce-article-content th {
	background: var(--bce-bg-soft);
	color: var(--bce-text);
}

.bce-article-content hr {
	height: 1px;
	margin: 45px 0;
	border: 0;
	background: var(--bce-border);
}

.bce-article-content .wp-block-button__link {
	display: inline-flex;
	padding: 15px 26px;
	border-radius: var(--bce-pill);
	background: var(--bce-accent);
	color: #fdfaf7;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
}

/* Assinatura da autora no fim do texto */
.bce-author-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	margin: 64px 0 0;
	padding: 32px;
	border: 1px solid var(--bce-border);
	border-radius: var(--bce-radius);
	background: var(--bce-bg-soft);
}

.bce-author-photo img {
	width: 132px;
	height: 132px;
	object-fit: cover;
	object-position: top center;
	border-radius: 50%;
	border: 1px solid var(--bce-border);
}

.bce-author-card h2 {
	margin: 12px 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.bce-author-card .bce-text-link {
	text-decoration: none;
}

.bce-author-card p {
	margin: 0 0 18px;
	color: var(--bce-muted);
	font-size: 15px;
	line-height: 1.7;
}

.bce-article-sidebar {
	min-width: 0;
}

.bce-article-toc {
	position: sticky;
	top: 28px;
	padding: 24px 0 24px 24px;
	border-left: 1px solid var(--bce-border);
}

.admin-bar .bce-article-toc {
	top: 60px;
}

.bce-article-toc > strong {
	display: block;
	margin-bottom: 17px;
	color: var(--bce-text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.bce-article-toc ol {
	display: grid;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bce-article-toc a {
	display: block;
	padding: 9px 8px 9px 13px;
	border-left: 2px solid transparent;
	border-radius: 0 var(--bce-radius-sm) var(--bce-radius-sm) 0;
	color: var(--bce-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	transition: border-color 0.2s var(--bce-ease), color 0.2s var(--bce-ease), background 0.2s var(--bce-ease);
}

.bce-article-toc a:hover,
.bce-article-toc a:focus,
.bce-article-toc a.is-active {
	border-left-color: var(--bce-accent-soft);
	background: var(--bce-bg-soft);
	color: var(--bce-accent);
}

.bce-article-toc .bce-toc-level-3 a {
	padding-left: 25px;
	font-size: 12px;
}

.bce-related {
	padding: 84px 0 90px;
	border-top: 1px solid var(--bce-border);
}

.bce-related .bce-section-heading {
	margin-bottom: 38px;
}

.bce-article-directory {
	padding: 74px 0 78px;
	background: var(--bce-bg-soft);
	border-top: 1px solid var(--bce-border);
}

.bce-article-directory-grid {
	display: grid;
	/* auto-fit porque as colunas "Principais categorias" e "Mais lidos" só
	   aparecem quando têm itens. */
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 60px;
}

.bce-article-directory h2 {
	margin: 0 0 22px;
	color: var(--bce-text);
	font-size: 19px;
	font-weight: 600;
}

.bce-article-directory ul {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bce-article-directory a {
	color: var(--bce-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.bce-article-directory a:hover,
.bce-article-directory a:focus {
	color: var(--bce-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
 * Rodapé
 * ---------------------------------------------------------------------- */

.bce-footer {
	padding: 78px 0 26px;
	background: var(--bce-ink);
	font-family: var(--bce-sans);

	/* Rodapé escuro: paleta redefinida no escopo, igual às demais faixas. */
	--bce-text: #f5ede8;
	--bce-muted: #cbb4ac;
	--bce-subtle: #a3897f;
	--bce-accent: #e0a693;
	--bce-border: rgba(245, 237, 232, 0.14);
	--bce-panel: rgba(245, 237, 232, 0.06);

	color: var(--bce-text);
}

.bce-footer-main {
	display: grid;
	grid-template-columns: minmax(250px, 1.15fr) minmax(300px, 1fr) 250px;
	gap: 70px;
	align-items: start;
}

.bce-footer-intro span,
.bce-footer-nav > strong,
.bce-footer-social > strong {
	display: block;
	margin: 0 0 20px;
	color: var(--bce-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.bce-footer-intro p {
	max-width: 390px;
	margin: 0;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.45;
}

.bce-footer-nav ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bce-footer-nav a {
	display: inline-block;
	color: var(--bce-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
}

.bce-footer-nav a:hover,
.bce-footer-nav a:focus {
	color: var(--bce-accent);
}

.bce-footer-logo {
	display: inline-block;
	margin: 0 0 26px;
	text-decoration: none;
	color: var(--bce-text);
}

.bce-footer-logo img {
	width: 200px;
	height: auto;
}

.bce-footer-logo .bce-wordmark b {
	color: var(--bce-text);
}

.bce-footer-social ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bce-footer-social a {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 12px 16px;
	border: 1px solid var(--bce-border);
	border-radius: 12px;
	background: var(--bce-panel);
	color: var(--bce-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.bce-footer-social a:hover,
.bce-footer-social a:focus {
	border-color: var(--bce-accent);
	transform: translateY(-1px);
}

.bce-footer-social-icon {
	font-size: 16px;
	line-height: 1;
}

.bce-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 60px;
	padding-top: 22px;
	border-top: 1px solid var(--bce-border);
}

.bce-footer-bottom p {
	margin: 0;
	color: var(--bce-subtle);
	font-size: 11px;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * Responsivo
 * ---------------------------------------------------------------------- */

@media (max-width: 1050px) {
	body.bce-page {
		--bce-shell: min(960px, calc(100% - 36px));
	}

	.bce-hero {
		grid-template-columns: 1fr 1fr;
	}

	.bce-hero-copy {
		padding-right: 38px;
	}

	.bce-resources {
		grid-template-columns: repeat(3, 1fr);
	}

	.bce-section-intro {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: end;
		gap: 25px;
		padding: 0;
	}

	.bce-section-intro .bce-spark,
	.bce-section-intro p {
		display: none;
	}

	.bce-section-intro h2 {
		margin: 0;
	}

	.bce-section-intro .bce-text-link {
		padding-top: 0;
	}

	.bce-articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bce-header-nav ul {
		gap: 17px;
	}

	.bce-header-actions {
		gap: 20px;
	}

	.bce-article-layout {
		grid-template-columns: minmax(0, 1fr) 240px;
		gap: 44px;
	}

	.bce-article-content {
		font-size: 17px;
	}

	.bce-article-directory-grid {
		gap: 40px;
	}

	.bce-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 52px;
	}

	.bce-footer-logo {
		grid-column: 2;
		justify-self: start;
	}

	.bce-footer-intro {
		grid-row: 1 / span 2;
	}
}

@media (max-width: 760px) {
	body.bce-page {
		--bce-shell: calc(100% - 32px);
	}

	.bce-header-inner {
		min-height: 76px;
		justify-content: space-between;
	}

	.bce-header-logo img {
		width: 158px;
	}

	.bce-menu-toggle {
		width: 44px;
		height: 44px;
		display: grid;
		place-content: center;
		gap: 5px;
		padding: 0;
		border: 1px solid var(--bce-border-strong);
		border-radius: var(--bce-radius-sm);
		background: transparent;
	}

	.bce-menu-toggle i {
		display: block;
		width: 19px;
		height: 2px;
		background: var(--bce-text);
		transition: transform 0.2s var(--bce-ease), opacity 0.2s var(--bce-ease);
	}

	.bce-menu-toggle[aria-expanded="true"] i:nth-of-type(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.bce-menu-toggle[aria-expanded="true"] i:nth-of-type(2) {
		opacity: 0;
	}

	.bce-menu-toggle[aria-expanded="true"] i:nth-of-type(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.bce-header-actions {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 22px 16px 26px;
		background: var(--bce-bg);
		border-top: 1px solid var(--bce-border);
		box-shadow: 0 18px 30px rgba(44, 31, 26, 0.14);
	}

	.bce-header-actions.is-open {
		display: block;
	}

	.bce-header-nav ul {
		display: grid;
		gap: 0;
	}

	.bce-header-nav li {
		border-bottom: 1px solid var(--bce-border);
	}

	.bce-header-nav a {
		display: block;
		padding: 14px 4px;
		font-size: 15px;
	}

	.bce-header-cta {
		width: 100%;
		margin-top: 18px;
	}

	.bce-hero {
		grid-template-columns: 1fr;
		padding: 34px 0 60px;
	}

	.bce-hero-media {
		min-height: 300px;
		order: 1;
	}

	.bce-hero-copy {
		order: 2;
		padding: 32px 0 0;
	}

	.bce-hero h1 {
		font-size: 34px;
		letter-spacing: -0.4px;
	}

	.bce-hero p {
		font-size: 16px;
		margin-bottom: 32px;
	}

	.bce-resources {
		grid-template-columns: 1fr;
		padding-bottom: 66px;
	}

	.bce-section-intro {
		display: block;
	}

	.bce-section-intro .bce-text-link {
		margin-top: 18px;
	}

	.bce-resource-card {
		min-height: 280px;
	}

	.bce-tracks {
		padding: 60px 0;
	}

	.bce-tracks-grid {
		grid-template-columns: 1fr;
	}

	.bce-track-card {
		min-height: 260px;
	}

	.bce-articles {
		padding: 66px 0;
	}

	.bce-section-heading {
		display: block;
	}

	.bce-category-filter {
		margin-top: 28px;
		display: grid;
		grid-template-columns: 1fr auto;
	}

	.bce-category-filter label {
		grid-column: 1 / -1;
	}

	.bce-articles-grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.bce-final-cta-inner {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 62px 0;
	}

	.bce-button-accent {
		justify-self: start;
	}

	.bce-article-hero {
		padding: 42px 0 46px;
	}

	.bce-article-hero .bce-back-link {
		margin-bottom: 26px;
	}

	.bce-article-hero h1 {
		font-size: 34px;
		letter-spacing: -0.4px;
	}

	.bce-article-deck {
		font-size: 17px;
	}

	.bce-article-layout {
		display: flex;
		flex-direction: column;
		gap: 34px;
		padding-top: 42px;
		padding-bottom: 62px;
	}

	.bce-article-sidebar {
		order: -1;
	}

	.bce-article-toc {
		position: static;
		padding: 18px 0 18px 18px;
	}

	.bce-article-content {
		font-size: 16px;
		line-height: 1.75;
	}

	.bce-article-featured {
		margin-bottom: 36px;
	}

	.bce-article-content h2 {
		margin-top: 44px;
		font-size: 27px;
	}

	.bce-article-content h3 {
		font-size: 22px;
	}

	.bce-article-content blockquote {
		padding: 20px 22px;
		font-size: 19px;
	}

	.bce-author-card {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 26px;
	}

	.bce-related {
		padding: 60px 0 66px;
	}

	.bce-article-directory {
		padding: 56px 0;
	}

	.bce-article-directory-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.bce-footer {
		padding: 56px 0 24px;
	}

	.bce-footer-main {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.bce-footer-intro {
		grid-row: auto;
	}

	.bce-footer-nav ul {
		grid-template-columns: 1fr 1fr;
		gap: 16px 26px;
	}

	.bce-footer-logo {
		grid-column: auto;
		justify-self: start;
	}

	.bce-footer-bottom {
		display: grid;
		gap: 7px;
		margin-top: 42px;
		padding-top: 20px;
	}
}

@media (max-width: 460px) {
	.bce-category-filter {
		grid-template-columns: 1fr;
	}

	.bce-category-filter button {
		min-height: 46px;
	}

	.bce-hero-media {
		min-height: 260px;
	}

	.bce-article-hero h1 {
		font-size: 30px;
	}

	.bce-article-meta {
		display: grid;
		gap: 5px;
	}

	.bce-article-meta span:before {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bce *,
	.bce *:before,
	.bce *:after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
