/*
Theme Name: Baofeng Blog
Theme URI: https://blog.baofeng.com.br/
Author: Baofeng Brasil
Author URI: https://baofeng.com.br/
Description: Tema de bloco leve e orientado a conteúdo e conversão para o Blog Baofeng.
Version: 0.7.4
Requires at least: 7.0
Requires PHP: 8.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baofeng-blog
Template: twentytwentyfive
*/

.baofeng-card {
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.baofeng-card:hover {
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
	transform: translateY(-2px);
}

.baofeng-kicker {
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.baofeng-hero-title {
	text-wrap: balance;
}

.baofeng-logo-wordmark {
	letter-spacing: -0.04em;
}

.baofeng-video-frame iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.baofeng-card {
		transition: none;
	}

	.baofeng-card:hover {
		transform: none;
	}
}

/* Rodape compacto: area social delimitada, somente icones e foco visivel. */
.baofeng-footer {
	padding-top: 1.2rem !important;
	padding-bottom: 0.95rem !important;
}

.baofeng-footer > .alignwide {
	gap: 0;
}

.baofeng-footer .bf-footer-top {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem 2rem;
	align-items: center;
}

.baofeng-footer .bf-footer-intro {
	min-width: 0;
}

.baofeng-footer .wp-block-site-title {
	margin: 0;
	font-size: 1.25rem !important;
	line-height: 1.15;
}

.baofeng-footer .bf-footer-intro > .wp-block-paragraph {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	line-height: 1.35;
}

.baofeng-footer .bf-footer-intro .wp-block-buttons {
	margin: 0.55rem 0 0;
}

.baofeng-footer .wp-block-button__link {
	padding: 0.52rem 0.78rem;
	font-size: 0.82rem;
}

.baofeng-footer .bf-social-area {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.65rem;
	max-width: 100%;
	margin-top: 0;
	padding: 0.42rem 0.58rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: none;
	backdrop-filter: none;
}

.baofeng-footer .bf-social-area h2 {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.2;
	white-space: nowrap;
}

.baofeng-footer .bf-social-area .wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 !important;
	padding: 0;
}

.baofeng-footer .bf-social-area .wp-block-social-link {
	margin: 0 !important;
}

.baofeng-footer .bf-social-area .wp-social-link,
.baofeng-footer .bf-social-area .wp-social-link-instagram,
.baofeng-footer .bf-social-area .wp-social-link-youtube,
.baofeng-footer .bf-social-area .wp-social-link-tiktok {
	background: transparent !important;
	color: #fff;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor svg {
	width: 0.92rem;
	height: 0.92rem;
	margin: 0;
	color: currentColor;
	fill: currentColor;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor:hover,
.baofeng-footer .bf-social-area .wp-block-social-link-anchor:focus-visible {
	border-color: #f4c430;
	background: #f4c430;
	color: #111827;
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 5px 12px rgba(244, 196, 48, 0.22);
}

.baofeng-footer > .alignwide > .wp-block-navigation {
	margin-top: 0.8rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.baofeng-footer > .alignwide > .wp-block-navigation .wp-block-navigation__container {
	gap: 0.45rem 1.25rem;
}

.baofeng-footer > .alignwide > .wp-block-navigation .wp-block-navigation-item__content {
	font-size: 0.88rem;
	line-height: 1.35;
}

.baofeng-footer > .alignwide > .wp-block-paragraph.has-small-font-size:last-child {
	margin-top: 0.55rem;
	font-size: 0.75rem;
	opacity: 0.78;
}

@media (max-width: 699px) {
	.baofeng-footer {
		padding-top: 1rem !important;
		padding-bottom: 0.8rem !important;
	}

	.baofeng-footer .bf-footer-top {
		grid-template-columns: 1fr;
		gap: 0.7rem;
	}

	.baofeng-footer .bf-social-area {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.baofeng-footer .bf-social-area .wp-block-social-link-anchor {
		transition: none;
	}

	.baofeng-footer .bf-social-area .wp-block-social-link-anchor:hover,
	.baofeng-footer .bf-social-area .wp-block-social-link-anchor:focus-visible {
		transform: none;
	}
}

/* Header and navigation: a compact editorial masthead with a clear utility area. */
.baofeng-topbar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.baofeng-topbar__inner {
	min-height: 2.25rem;
	gap: 0.75rem 1.5rem;
}

.baofeng-topbar__message,
.baofeng-topbar__accessibility {
	margin: 0 !important;
	line-height: 1.35;
}

.baofeng-topbar__message {
	color: #e6f1ff;
}

.baofeng-topbar__accessibility a {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 750;
	text-decoration: none;
	text-underline-offset: 3px;
}

.baofeng-topbar__accessibility a:hover,
.baofeng-topbar__accessibility a:focus-visible {
	color: #f4c430;
	text-decoration: underline;
}

.baofeng-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
	backdrop-filter: blur(12px);
}

.baofeng-site-header__inner {
	min-height: 3.25rem;
	gap: 1.25rem 2rem;
}

.baofeng-logo-wordmark {
	flex: 0 0 auto;
	letter-spacing: -0.055em;
}

.baofeng-logo-wordmark a {
	color: #002e5c;
	font-weight: 800;
	text-decoration: none;
}

.baofeng-main-navigation {
	margin-left: auto;
}

.baofeng-main-navigation .wp-block-navigation__container {
	align-items: center;
	gap: clamp(0.1rem, 0.65vw, 0.55rem);
}

.baofeng-main-navigation .wp-block-navigation-item__content {
	border-radius: 8px;
	color: #1e293b;
	font-size: 0.89rem;
	font-weight: 650;
	line-height: 1.2;
	padding: 0.62rem 0.55rem;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.baofeng-main-navigation .wp-block-navigation-item__content:hover,
.baofeng-main-navigation .wp-block-navigation-item__content:focus-visible,
.baofeng-main-navigation .wp-block-navigation-item__content[aria-current="page"] {
	background: #edf5fc;
	color: #0057a8;
}

.baofeng-main-navigation .wp-block-navigation__container > .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
	margin-left: 0.25rem;
	border: 1px solid #0057a8;
	border-radius: 999px;
	background: #0057a8;
	color: #fff;
	padding-right: 0.9rem;
	padding-left: 0.9rem;
}

.baofeng-main-navigation .wp-block-navigation__container > .wp-block-navigation-item:last-child .wp-block-navigation-item__content:hover,
.baofeng-main-navigation .wp-block-navigation__container > .wp-block-navigation-item:last-child .wp-block-navigation-item__content:focus-visible {
	border-color: #003a70;
	background: #003a70;
	color: #fff;
}

.baofeng-main-navigation .wp-block-navigation__responsive-container-open {
	border: 1px solid #0057a8;
	border-radius: 9px;
	background: #0057a8;
	color: #fff;
	padding: 0.55rem 0.7rem;
}

.baofeng-main-navigation .wp-block-navigation__responsive-container-open:hover,
.baofeng-main-navigation .wp-block-navigation__responsive-container-open:focus-visible {
	background: #003a70;
	color: #fff;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid #f4c430;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.bf-skip-link:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.85rem 1.1rem;
	overflow: visible;
	clip-path: none;
	border: 2px solid #111827;
	border-radius: 8px;
	background: #f4c430;
	color: #111827;
	font-weight: 800;
	text-decoration: none;
}

/* Accessibility page and persistent reading preferences. */
.bf-a11y-panel {
	margin-top: 2rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid #cbd5e1;
	border-left: 5px solid #0057a8;
	border-radius: 12px;
	background: #f8fafc;
}

.bf-a11y-panel h2 {
	margin-top: 0;
}

.bf-a11y-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.bf-a11y-actions button {
	border: 1px solid #0057a8;
	border-radius: 8px;
	background: #fff;
	color: #003a70;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.7rem 0.9rem;
}

.bf-a11y-actions button:hover,
.bf-a11y-actions button:focus-visible,
.bf-a11y-actions button[aria-pressed="true"] {
	background: #0057a8;
	color: #fff;
}

body.bf-a11y-large-text {
	font-size: 112.5%;
}

body.bf-a11y-high-contrast {
	background: #fff;
	color: #000;
}

body.bf-a11y-high-contrast a {
	color: #0037a6;
	text-decoration-thickness: 2px;
}

body.bf-a11y-high-contrast .baofeng-topbar,
body.bf-a11y-high-contrast .baofeng-site-header,
body.bf-a11y-high-contrast .baofeng-footer,
body.bf-a11y-high-contrast .bf-home-hero {
	background: #000 !important;
	color: #fff !important;
}

body.bf-a11y-high-contrast .bf-home-hero h1,
body.bf-a11y-high-contrast .bf-home-hero p,
body.bf-a11y-high-contrast .baofeng-topbar a,
body.bf-a11y-high-contrast .baofeng-site-header a,
body.bf-a11y-high-contrast .baofeng-footer a {
	color: #fff !important;
}

body.bf-a11y-high-contrast .bf-editorial-card,
body.bf-a11y-high-contrast .bf-topic-card,
body.bf-a11y-high-contrast .bf-a11y-panel {
	border-color: #000;
	box-shadow: none;
}

@media (max-width: 1099px) {
	.baofeng-main-navigation .wp-block-navigation-item__content {
		font-size: 0.82rem;
		padding-right: 0.35rem;
		padding-left: 0.35rem;
	}
}

@media (max-width: 699px) {
	.baofeng-topbar__inner {
		justify-content: center;
		text-align: center;
	}

	.baofeng-site-header__inner {
		gap: 0.75rem 1rem;
	}

	.baofeng-logo-wordmark {
		font-size: 1.15rem !important;
	}

	.baofeng-main-navigation {
		margin-left: auto;
	}

	.baofeng-main-navigation .wp-block-navigation__responsive-container.is-menu-open {
		padding: 1rem;
	}

	.baofeng-main-navigation .wp-block-navigation__responsive-container-content {
		align-items: flex-start;
	}
}

/* Editorial homepage: a calm, news-style hierarchy built on core blocks. */
.bf-home-editorial {
	overflow: clip;
}

.bf-home-hero {
	position: relative;
	background: linear-gradient(118deg, #002e5c 0%, #004b91 58%, #0067b8 100%);
	color: #fff;
	isolation: isolate;
}

.bf-home-hero::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 6px;
	background: #f4c430;
	content: "";
}

.bf-home-hero__inner {
	padding-top: clamp(2.5rem, 5vw, 4.75rem);
	padding-bottom: clamp(2.75rem, 6vw, 5rem);
}

.bf-kicker {
	margin: 0 0 0.85rem;
	color: #0057a8;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bf-home-hero .bf-kicker {
	color: #f4c430;
}

.bf-home-hero__title {
	max-width: 850px;
	margin: 0;
	color: #fff !important;
	font-size: clamp(2.4rem, 5.4vw, 4.5rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.055em;
	line-height: 0.99 !important;
	text-wrap: balance;
}

.bf-home-hero__lead {
	max-width: 680px;
	margin: 1.2rem 0 0;
	color: #e4eef9;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.55;
}

.bf-home-hero__actions {
	margin-top: 1.45rem;
}

.bf-home-hero .is-style-outline .wp-block-button__link {
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #fff !important;
}

.bf-featured-section {
	padding-top: clamp(2.25rem, 4vw, 4rem);
	padding-bottom: clamp(2.75rem, 5vw, 5rem);
}

.bf-section-heading {
	align-items: end;
	margin-bottom: 1.75rem;
}

.bf-section-heading h2,
.bf-topics-section h2 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.045em;
	line-height: 1.02;
	text-wrap: balance;
}

.bf-section-heading__note {
	max-width: 270px;
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.45;
	text-align: right;
}

.bf-carousel-frame {
	position: relative;
}

.bf-carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.65rem;
	margin-bottom: 0.9rem;
}

.bf-carousel-button {
	min-width: 7.5rem;
	padding: 0.7rem 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: #003a70;
	cursor: pointer;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 750;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.bf-carousel-button:hover,
.bf-carousel-button:focus-visible {
	border-color: #0057a8;
	background: #0057a8;
	color: #fff;
	transform: translateY(-1px);
}

.bf-carousel-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.bf-home-carousel {
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0.4rem 0.25rem 1.6rem;
}

.bf-home-carousel .bf-home-carousel__track,
.bf-home-carousel .wp-block-post-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1.5rem;
	width: max-content;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	transform: translate3d(0, 0, 0);
	transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bf-home-carousel .wp-block-post-template > li {
	flex: 0 0 calc((min(calc(100vw - 4rem), 1440px) - 4.5rem) / 4);
	min-width: 0;
	margin: 0 !important;
}

.bf-editorial-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.bf-editorial-card:hover,
.bf-editorial-card:focus-within {
	box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
	transform: translateY(-5px);
}

.bf-editorial-card__image {
	margin: 0 !important;
	background: linear-gradient(135deg, #dbeafe, #f8fafc);
	line-height: 0;
}

.bf-editorial-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.bf-editorial-card:hover .bf-editorial-card__image img,
.bf-editorial-card:focus-within .bf-editorial-card__image img {
	transform: scale(1.035);
}

.bf-editorial-card__body {
	margin: 0 !important;
	padding: 1.35rem 1.4rem 1.55rem !important;
}

.bf-editorial-card__category {
	margin: 0 0 0.8rem !important;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bf-editorial-card__category a {
	color: #0057a8;
	text-decoration: none;
}

.bf-editorial-card__title {
	margin: 0 !important;
	font-size: clamp(1.3rem, 2vw, 1.7rem) !important;
	letter-spacing: -0.035em;
	line-height: 1.08 !important;
}

.bf-editorial-card__title a {
	color: #111827;
	text-decoration: none;
}

.bf-editorial-card__title a:hover,
.bf-editorial-card__title a:focus-visible {
	color: #0057a8;
}

.bf-editorial-card__excerpt {
	display: -webkit-box;
	max-height: 6.5em;
	margin: 1rem 0 0 !important;
	overflow: hidden;
	color: #475569;
	font-size: 0.98rem;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.bf-editorial-card__excerpt a {
	display: inline-block;
	margin-top: 0.45rem;
	font-weight: 750;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bf-carousel-status {
	margin-top: 0.1rem;
	color: #64748b;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: right;
}

.bf-topics-section {
	background: #f4f7fb;
	border-top: 1px solid #e2e8f0;
}

.bf-topics-section__inner {
	padding-top: clamp(3.5rem, 7vw, 6rem);
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.bf-topic-grid {
	gap: 1rem;
	margin-top: 2rem;
}

.bf-topic-card {
	height: 100%;
	padding: 1.6rem 1.5rem 1.75rem;
	border-top: 4px solid #0057a8;
	background: #fff;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.bf-topic-card:hover,
.bf-topic-card:focus-within {
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
	transform: translateY(-3px);
}

.bf-topic-card__number {
	margin: 0 0 1.5rem;
	color: #0057a8;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.bf-topic-card h3 {
	margin: 0;
	font-size: 1.4rem;
	letter-spacing: -0.03em;
}

.bf-topic-card h3 a {
	color: #111827;
	text-decoration: none;
}

.bf-topic-card h3 a:hover,
.bf-topic-card h3 a:focus-visible {
	color: #0057a8;
}

.bf-topic-card p:last-child {
	margin: 0.75rem 0 0;
	color: #475569;
	font-size: 0.96rem;
	line-height: 1.55;
}

/* Article sharing and social footer links use native controls and no third-party widget. */
.bf-article-share {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	border-top: 4px solid #f4c430;
	border-radius: 12px;
	background: #f4f7fb;
}

.bf-article-share h2,
.bf-social-area h2 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
}

.bf-article-share h2 {
	color: #111827;
}

.bf-article-share p {
	margin: 0.55rem 0 0;
	color: #475569;
}

.bf-article-share .wp-block-social-links,
.bf-social-area .wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 1rem;
	padding: 0;
	list-style: none;
}

.bf-article-share .wp-social-link,
.bf-social-area .wp-social-link {
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	list-style: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.bf-article-share .wp-block-social-link-anchor,
.bf-social-area .wp-block-social-link-anchor {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 750;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.bf-article-share .wp-block-social-link-anchor:hover,
.bf-article-share .wp-block-social-link-anchor:focus-visible,
.bf-social-area .wp-block-social-link-anchor:hover,
.bf-social-area .wp-block-social-link-anchor:focus-visible {
	transform: translateY(-2px) scale(1.06);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.bf-article-share .wp-social-link-whatsapp {
	background: #25d366;
	color: #062d18;
}


.bf-article-share .wp-social-link-facebook {
	background: #0866ff;
	color: #fff;
}

.bf-article-share .wp-social-link-x {
	background: #000;
	color: #fff;
}

.bf-article-share .wp-social-link-chain {
	background: #e2e8f0;
	color: #334155;
}

.bf-article-share .wp-block-social-link-anchor svg,
.bf-social-area .wp-block-social-link-anchor svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: currentColor;
}

.bf-share-status {
	min-height: 1.35rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.bf-social-area {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bf-social-area .wp-block-social-links {
	margin-top: 0.85rem;
}

.bf-social-area .wp-block-social-link-anchor {
	border: 2px solid rgba(255, 255, 255, 0.55);
}

.bf-social-area .wp-social-link-instagram {
	background: #f00075;
	color: #fff;
}

.bf-social-area .wp-social-link-youtube {
	background: #ff0000;
	color: #fff;
}

.bf-social-area .wp-social-link-tiktok {
	background: #000;
	color: #fff;
}

.bf-social-area .wp-block-social-link-anchor:hover,
.bf-social-area .wp-block-social-link-anchor:focus-visible {
	border-color: #f4c430;
}

@keyframes bf-editorial-card-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.bf-home-carousel .wp-block-post-template > li {
	animation: bf-editorial-card-in 500ms ease both;
}

@media (max-width: 1019px) {
	.bf-home-carousel .wp-block-post-template > li {
		flex-basis: calc((min(calc(100vw - 4rem), 1440px) - 1.5rem) / 2);
	}
}

@media (max-width: 699px) {
	.baofeng-topbar__inner {
		min-height: 2rem;
	}

	.baofeng-site-header__inner {
		min-height: 3rem;
	}

	.bf-home-hero__title {
		font-size: clamp(2.25rem, 12vw, 3.35rem) !important;
	}

	.bf-home-hero__inner {
		padding-top: 2.35rem;
		padding-bottom: 2.75rem;
	}

	.bf-section-heading__note {
		max-width: none;
		margin-top: 0.75rem;
		text-align: left;
	}

	.bf-carousel-controls {
		justify-content: space-between;
	}

	.bf-carousel-button {
		min-width: 0;
	}

	.bf-carousel-button span {
		display: none;
	}

	.bf-home-carousel .wp-block-post-template > li {
		flex-basis: calc(100vw - 3rem);
	}

	.bf-home-carousel .bf-home-carousel__track,
	.bf-home-carousel .wp-block-post-template {
		gap: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-carousel-button,
	.bf-home-carousel .wp-block-post-template,
	.bf-editorial-card,
	.bf-editorial-card__image img,
	.bf-topic-card {
		transition: none;
	}

	.bf-home-carousel .wp-block-post-template > li {
		animation: none;
	}

	.bf-article-share .wp-block-social-link-anchor,
	.bf-social-area .wp-block-social-link-anchor {
		transition: none;
	}

	.bf-article-share .wp-social-link,
	.bf-social-area .wp-social-link {
		transition: none;
	}

	.bf-editorial-card:hover,
	.bf-editorial-card:focus-within,
	.bf-topic-card:hover,
	.bf-topic-card:focus-within,
	.bf-carousel-button:hover,
	.bf-carousel-button:focus-visible {
		transform: none;
	}
}

/* Home mais editorial: artigos primeiro, com ritmo visual compacto. */
.bf-home-editorial {
	margin-block-start: 0 !important;
}

.bf-home-editorial > .bf-featured-section,
.bf-home-editorial > .bf-home-hero,
.bf-home-editorial > .bf-topics-section {
	margin-block-start: 0 !important;
}

.bf-featured-section {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
	padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.bf-featured-section--lead .bf-section-heading {
	margin-bottom: 1rem;
}

.bf-section-heading h1,
.bf-section-heading__title {
	max-width: 780px;
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 3rem);
	letter-spacing: -0.045em;
	line-height: 1.02;
	text-wrap: balance;
}

.bf-home-hero__inner {
	padding-top: clamp(2rem, 4vw, 3.25rem);
	padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.bf-home-hero__title {
	max-width: 780px;
	font-size: clamp(2rem, 4.5vw, 3.75rem) !important;
}

.bf-home-hero__lead {
	margin-top: 0.9rem;
}

.bf-home-hero__actions {
	margin-top: 1.1rem;
}

.bf-topics-section__inner {
	padding-top: clamp(2.5rem, 5vw, 3.75rem);
	padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.bf-topic-grid {
	margin-top: 1.25rem;
}

.bf-topic-card {
	padding: 1.25rem 1.35rem 1.4rem;
}

.bf-topic-card__number {
	margin-bottom: 0.95rem;
}

/* Home article-first: four cards complete on desktop, using the available canvas. */
.bf-featured-section--lead {
	width: min(calc(100vw - 4rem), 1440px) !important;
	max-width: 1440px !important;
	padding-top: clamp(1rem, 2vw, 1.75rem);
	padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
	margin-right: auto !important;
	margin-left: auto !important;
}

.bf-featured-section--lead > .bf-section-heading,
.bf-featured-section--lead > .bf-carousel-frame {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.bf-featured-section--lead .bf-section-heading {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
	gap: 0.4rem 1.5rem;
	align-items: end;
	margin-bottom: 0.5rem;
}

.bf-featured-section--lead .bf-section-heading__title {
	max-width: 680px;
	font-size: clamp(1.65rem, 2.7vw, 2.35rem);
	line-height: 1.06;
}

.bf-featured-section--lead .bf-section-heading__note {
	max-width: 300px;
	font-size: 0.92rem;
	line-height: 1.4;
	text-align: right;
}

.bf-featured-section--lead .bf-carousel-controls {
	margin-bottom: 0.35rem;
}

.bf-featured-section--lead .bf-home-carousel {
	padding-top: 0.2rem;
	padding-bottom: 0.6rem;
}

.bf-featured-section--lead .bf-editorial-card__body {
	display: flex;
	min-height: 11.75rem;
	flex-direction: column;
	padding: 1.1rem 1.15rem 1.2rem !important;
}

.bf-featured-section--lead .bf-editorial-card__category {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

.bf-featured-section--lead .bf-editorial-card__title {
	font-size: clamp(1.1rem, 1.35vw, 1.38rem) !important;
	line-height: 1.14 !important;
	overflow-wrap: anywhere;
}

.bf-featured-section--lead .bf-editorial-card__excerpt {
	display: block;
	max-height: none;
	margin-top: auto !important;
	padding-top: 0.85rem;
	overflow: visible;
	-webkit-line-clamp: initial;
}

@media (max-width: 1019px) {
	.bf-featured-section--lead .bf-section-heading {
		grid-template-columns: 1fr;
	}

	.bf-featured-section--lead .bf-section-heading__note {
		max-width: 480px;
		text-align: left;
	}
}

@media (max-width: 699px) {
	.bf-featured-section--lead {
		width: calc(100% - 2rem) !important;
		padding-top: 1rem;
		padding-bottom: 1.5rem;
	}

	.bf-featured-section--lead .bf-section-heading__title {
		font-size: clamp(1.65rem, 8vw, 2.15rem);
	}

	.bf-featured-section--lead .bf-editorial-card__body {
		min-height: 11rem;
	}
}

/* Controle flutuante global, discreto e acessível. */
.bf-back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 100;
	display: grid;
	width: 2.85rem;
	height: 2.85rem;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	background: #0057a8;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
	color: #fff;
	cursor: pointer;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bf-back-to-top[hidden] {
	display: none;
}

.bf-back-to-top:hover,
.bf-back-to-top:focus-visible {
	background: #003a70;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.3);
	transform: translateY(-3px);
}

@media (max-width: 699px) {
	.bf-featured-section {
		padding-top: 1.25rem;
		padding-bottom: 2rem;
	}

	.bf-home-hero__inner {
		padding-top: 2rem;
		padding-bottom: 2.25rem;
	}

	.bf-back-to-top {
		right: 0.75rem;
		bottom: 0.75rem;
		width: 2.65rem;
		height: 2.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-back-to-top {
		transition: none;
	}

	.bf-back-to-top:hover,
	.bf-back-to-top:focus-visible {
		transform: none;
	}
}

/* Arquivos e busca: cards visuais, leitura rápida e melhor uso da largura. */
.bf-archive-shell,
.bf-page-shell {
	margin-block-start: 0 !important;
}

.bf-archive-shell > .wp-block-query-title,
.bf-page-shell > .wp-block-post-title {
	max-width: 820px;
	margin: 0 0 0.65rem;
	font-size: clamp(1.9rem, 3.6vw, 3rem) !important;
	letter-spacing: -0.045em;
	line-height: 1.05 !important;
	text-wrap: balance;
}

.bf-archive-shell > .wp-block-term-description {
	max-width: 740px;
	margin: 0 0 1.25rem;
	color: #475569;
}

.bf-archive-query {
	margin-block-start: 1.25rem !important;
}

.bf-archive-query .wp-block-post-template {
	gap: 1.25rem;
}

.bf-archive-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 16px !important;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.bf-archive-card:hover,
.bf-archive-card:focus-within {
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
	transform: translateY(-3px);
}

.bf-archive-card__image {
	margin: 0 !important;
	overflow: hidden;
	background: #dbeafe;
}

.bf-archive-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.bf-archive-card__body {
	margin: 0 !important;
	padding: 1rem 1.1rem 1.2rem !important;
}

.bf-archive-card__category {
	margin: 0 0 0.55rem !important;
	color: #0057a8;
	font-size: 0.7rem !important;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bf-archive-card__category a {
	text-decoration: none;
}

.bf-archive-card__title {
	margin: 0 !important;
	font-size: clamp(1.2rem, 1.8vw, 1.5rem) !important;
	letter-spacing: -0.035em;
	line-height: 1.1 !important;
}

.bf-archive-card__title a {
	color: #111827;
	text-decoration: none;
}

.bf-archive-card__title a:hover,
.bf-archive-card__title a:focus-visible {
	color: #0057a8;
}

.bf-archive-card__excerpt {
	margin: 0.7rem 0 0 !important;
	color: #475569;
	line-height: 1.5;
}

.bf-archive-card__excerpt a {
	display: inline-block;
	margin-top: 0.35rem;
	font-weight: 750;
}

.bf-archive-query .wp-block-query-pagination {
	margin-top: 1.75rem;
}

/* Artigos e páginas: título forte, imagem controlada e coluna confortável. */
.bf-article-shell > .wp-block-post-terms {
	margin-bottom: 0.65rem;
}

.bf-article-shell > .wp-block-post-title {
	max-width: 860px;
	margin: 0;
	font-size: clamp(2rem, 3.8vw, 3.25rem) !important;
	letter-spacing: -0.05em;
	line-height: 1.04 !important;
	text-wrap: balance;
}

.bf-article-shell > .wp-block-post-date {
	margin-top: 0.5rem;
}

.bf-article-shell > .wp-block-post-featured-image,
.bf-page-shell > .wp-block-post-featured-image {
	margin-top: 1.25rem;
	margin-bottom: 1.5rem;
	overflow: hidden;
	border-radius: 16px;
}

.bf-article-shell > .wp-block-post-featured-image img,
.bf-page-shell > .wp-block-post-featured-image img {
	display: block;
}

.bf-article-shell > .wp-block-post-content {
	margin-top: 1rem;
}

.bf-page-shell > .wp-block-post-content {
	margin-top: 1rem;
}

@media (max-width: 699px) {
	.bf-archive-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.bf-archive-card__body {
		padding: 0.9rem 1rem 1.1rem !important;
	}

	.bf-article-shell > .wp-block-post-title,
	.bf-page-shell > .wp-block-post-title {
		font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
	}
}

/* Rodape social: icones nativos do WordPress em circulos solidos e alinhamento optico. */
.baofeng-footer .bf-social-area {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-height: 3.05rem;
	padding: 0.38rem 0.72rem;
}

.baofeng-footer .bf-social-area h2 {
	display: flex;
	align-items: center;
	min-height: 2.25rem;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 750;
	line-height: 1;
}

.baofeng-footer .bf-social-area .wp-block-social-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.baofeng-footer .bf-social-area .wp-block-social-link {
	width: 2.25rem;
	height: 2.25rem;
	flex: 0 0 2.25rem;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor {
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(255, 255, 255, 0.42);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.baofeng-footer .bf-social-area .wp-social-link-instagram .wp-block-social-link-anchor {
	background: #e4405f !important;
	color: #fff !important;
}

.baofeng-footer .bf-social-area .wp-social-link-youtube .wp-block-social-link-anchor {
	background: #ff0000 !important;
	color: #fff !important;
}

.baofeng-footer .bf-social-area .wp-social-link-tiktok .wp-block-social-link-anchor {
	background: #111827 !important;
	color: #fff !important;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor:hover,
.baofeng-footer .bf-social-area .wp-block-social-link-anchor:focus-visible {
	background: #f4c430 !important;
	border-color: #f4c430;
	color: #111827 !important;
	box-shadow: 0 6px 14px rgba(244, 196, 48, 0.28);
}

@media (max-width: 699px) {
	.baofeng-footer .bf-social-area {
		justify-content: flex-start;
		gap: 0.65rem;
	}

	.baofeng-footer .bf-social-area h2 {
		font-size: 0.78rem;
	}
}

/* Arquivos e categorias: grade editorial ampla, sem ficar presa ao contentSize. */
.bf-archive-shell {
	width: min(calc(100vw - 4rem), 1440px) !important;
	max-width: 1440px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.bf-archive-shell > .wp-block-query.bf-archive-query {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.bf-archive-shell > .wp-block-query-title {
	max-width: 1000px;
}

.bf-archive-shell > .wp-block-term-description {
	max-width: 820px;
}

.bf-archive-query .wp-block-post-template {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.5rem;
}

@media (max-width: 699px) {
	.bf-archive-shell {
		width: calc(100% - 1rem) !important;
	}

	.bf-archive-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* Grade estrutural das categorias: ocupa toda a largura e mostra 3 cards. */
.bf-archive-shell > .wp-block-query.bf-archive-query {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.bf-archive-query .bf-archive-grid {
	display: grid !important;
	width: 100% !important;
	max-width: none !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 699px) {
	.bf-archive-query .bf-archive-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Corrige a largura herdada de .is-flex-container nos itens da grade. */
.bf-archive-query .bf-archive-grid > li.wp-block-post {
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.bf-archive-query .bf-archive-grid > li.wp-block-post > .bf-archive-card {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

/* Titulo e descricao de categoria alinhados com a borda da grade. */
.bf-archive-shell > .wp-block-query-title,
.bf-archive-shell > .wp-block-term-description {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	text-align: left !important;
}

/* Rodape social: icones maiores, oficiais do WordPress e sem painel esfumaçado. */
.baofeng-footer .bf-social-area {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	padding: 0 !important;
}

.baofeng-footer .bf-social-area .wp-block-social-links {
	gap: 0.65rem !important;
}

.baofeng-footer .bf-social-area .wp-block-social-link,
.baofeng-footer .bf-social-area .wp-block-social-link-anchor {
	width: 2.8rem !important;
	height: 2.8rem !important;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor {
	border: 0 !important;
	box-shadow: none !important;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor svg {
	width: 1.5rem !important;
	height: 1.5rem !important;
	fill: currentColor;
}

.baofeng-footer .bf-social-area .wp-social-link-instagram .wp-block-social-link-anchor {
	background: linear-gradient(135deg, #feda75 0%, #fa7e1e 28%, #d62976 58%, #962fbf 78%, #4f5bd5 100%) !important;
}

.baofeng-footer .bf-social-area .wp-social-link-instagram .wp-block-social-link-anchor svg {
	width: 1.75rem !important;
	height: 1.75rem !important;
}

.baofeng-footer .bf-social-area .wp-block-social-link-anchor:hover,
.baofeng-footer .bf-social-area .wp-block-social-link-anchor:focus-visible {
	box-shadow: none !important;
}

@media (max-width: 699px) {
	.baofeng-footer .bf-social-area .wp-block-social-link,
	.baofeng-footer .bf-social-area .wp-block-social-link-anchor {
		width: 2.65rem !important;
		height: 2.65rem !important;
	}
}
