/*
Theme Name: Blog do Caminhoneiro News
Theme URI: https://blogdocaminhoneiro.com
Author: Blog do Caminhoneiro
Author URI: https://blogdocaminhoneiro.com
Description: Tema leve e responsivo para portais de notícias com atualização diária. Slide e grade de destaques, lista de notícias com a primeira em destaque, barra lateral, áreas para banners (Cabeçalho, SuperBanner, Principal e Rodapé), paginação numérica, modo escuro automático, paletas de cores selecionáveis e dados estruturados para SEO.
Version: 1.0.4
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: bdc-news
Tags: news, blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Variáveis (cores claras e escuras)
   ========================================================================== */
:root {
	--accent: #1559c1;
	--accent-contrast: #fff;
	--bg: #f2f4f7;
	--surface: #ffffff;
	--surface-2: #f7f8fa;
	--text: #161a21;
	--muted: #5a6371;
	--border: #e2e6ec;
	--link: var(--accent);
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .06);
	--shadow-hover: 0 4px 18px rgba(16, 24, 40, .12);
	--radius: 12px;
	--radius-sm: 8px;
	--gap: 24px;
	--max: 1200px;
	--sidebar: 376px;
	--hero-h: 420px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-title: var(--font);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) {
		--bg: #0e1116;
		--surface: #171b22;
		--surface-2: #1d222b;
		--text: #e7eaef;
		--muted: #a2abb9;
		--border: #2a303b;
		--link: color-mix(in srgb, var(--accent) 50%, #fff);
		--shadow: 0 1px 2px rgba(0, 0, 0, .4);
		--shadow-hover: 0 6px 20px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}

:root[data-scheme="dark"] {
	--bg: #0e1116;
	--surface: #171b22;
	--surface-2: #1d222b;
	--text: #e7eaef;
	--muted: #a2abb9;
	--border: #2a303b;
	--link: color-mix(in srgb, var(--accent) 50%, #fff);
	--shadow: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-hover: 0 6px 20px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

/* Vídeos (YouTube, Vimeo etc.) sempre na proporção 16:9, na largura total do texto */
.entry-content iframe:is([src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="youtu.be"], [src*="vimeo.com"], [src*="dailymotion.com"]):not(.wp-has-aspect-ratio iframe) {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-sm);
	display: block;
}

.entry-content .wp-block-embed__wrapper iframe {
	border-radius: var(--radius-sm);
}

img {
	display: block;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

a:hover {
	color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-title);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 800;
	letter-spacing: -.01em;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

[hidden] {
	display: none !important;
}

.container {
	width: 100%;
	max-width: calc(var(--max) + 32px);
	margin-inline: auto;
	padding-inline: 16px;
}

.box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 700;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

/* ==========================================================================
   3. Cabeçalho
   ========================================================================== */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 132px;
	padding-block: 16px;
}

.site-branding {
	flex: 0 1 360px;
	min-width: 0;
}

.site-logo,
.site-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.1;
}

.site-logo img {
	max-height: 100px;
	width: auto;
}

.site-title a {
	color: var(--text);
	text-decoration: none;
}

.site-description {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: .9rem;
}

/* ==========================================================================
   4. Menu
   ========================================================================== */
.site-nav {
	background: var(--accent);
	color: var(--accent-contrast);
	position: relative;
	z-index: 50;
}

.has-sticky-nav .site-nav {
	position: sticky;
	top: 0;
}

.admin-bar.has-sticky-nav .site-nav {
	top: 32px;
}

.site-nav__inner {
	display: flex;
	align-items: center;
	min-height: 52px;
	gap: 8px;
}

.menu-wrap {
	flex: 1;
	min-width: 0;
}

.menu,
.menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu {
	display: flex;
	flex-wrap: wrap;
}

.menu > li {
	position: relative;
}

.menu a {
	display: block;
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: .95rem;
	padding: 15px 14px;
	line-height: 1.4;
}

.menu > li > a:hover,
.menu > .current-menu-item > a,
.menu > .current-menu-ancestor > a,
.menu > .current-category-ancestor > a {
	background: rgba(0, 0, 0, .18);
}

.menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: .4em;
	height: .4em;
	margin-left: .45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-.2em) rotate(45deg);
}

/* Submenus (computador) */
.menu .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 230px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: var(--shadow-hover);
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}

.menu .sub-menu .sub-menu {
	left: 100%;
	top: -6px;
	border-radius: var(--radius-sm);
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.menu .sub-menu a {
	font-weight: 600;
	padding: 9px 16px;
}

.menu .sub-menu a:hover {
	background: var(--surface-2);
	color: var(--link);
}

.submenu-toggle {
	display: none;
}

/* Botões do menu e busca */
.nav-toggle,
.search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	font-weight: 700;
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
	padding: 0 10px;
	cursor: pointer;
	border-radius: var(--radius-sm);
}

.nav-toggle:hover,
.search-toggle:hover {
	background: rgba(0, 0, 0, .18);
}

.nav-toggle {
	display: none;
}

.nav-toggle__icon {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 20px;
}

.nav-toggle__icon span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.nav-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-hover);
	padding: 14px 16px;
}

.nav-search .search-form {
	max-width: 720px;
	margin-inline: auto;
}

/* ==========================================================================
   5. Banners (publicidade)
   ========================================================================== */
.ad-area {
	display: block;
	text-align: center;
}

/* Bloco comum (não flex): anúncios responsivos do AdSense precisam de largura definida */
.ad-area .widget {
	display: block;
	width: 100%;
}

.ad-area .widget + .widget {
	margin-top: 12px;
}

.ad-area img {
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: var(--radius-sm);
}

.ad-area iframe {
	max-width: 100%;
	margin-inline: auto;
}

/* Cantos arredondados também nos anúncios do AdSense e em códigos de banner */
.ad-area ins.adsbygoogle,
.ad-area .widget > a,
.ad-area .widget > iframe,
.ad-area .widget figure,
.sidebar ins.adsbygoogle,
.below-news ins.adsbygoogle {
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.ad-area .widget figure {
	margin: 0;
	display: inline-block;
	max-width: 100%;
}

.ad-area .widget > a {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}

.ad-area ins.adsbygoogle {
	display: block;
	width: 100%;
	max-width: 100%;
}

.ad-area--header {
	flex: 0 1 800px;
	max-width: 800px;
	min-height: 100px;
}

.ad-area--super,
.ad-area--footer {
	margin-block: 20px;
	min-height: 150px;
}

.ad-area--main {
	min-height: 100px;
	margin-bottom: var(--gap);
}

/* ==========================================================================
   6. Destaques: slide + grade
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: var(--gap);
}

.tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: #1b1f26;
	isolation: isolate;
}

.tile__link {
	display: block;
	height: 100%;
	color: #fff;
	text-decoration: none;
}

.tile__media,
.tile__media img,
.tile__media .thumb-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tile__media img {
	object-fit: cover;
	transition: transform .5s ease;
}

.tile__link:hover img,
.tile__link:focus-visible img {
	transform: scale(1.04);
}

.tile__overlay {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	padding: 48px 18px 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, 0) 100%);
}

.tile__title {
	color: #fff;
	margin: 6px 0 0;
	font-size: 1.05rem;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tile--slide .tile__overlay {
	padding: 90px 26px 24px;
}

.tile--slide .tile__title {
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.tile .cat-label {
	background: var(--accent);
	color: var(--accent-contrast);
}

/* Slide */
.slider {
	min-width: 0;
}

.slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	border-radius: var(--radius);
	overscroll-behavior-x: contain;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.tile--slide {
	flex: 0 0 100%;
	height: var(--hero-h);
	scroll-snap-align: start;
	border-radius: 0;
}

.slider__dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	padding-top: 10px;
}

.slider__dot {
	width: 32px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.slider__dot::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: var(--border);
	border: 2px solid var(--muted);
	transition: width .25s, background-color .25s, border-color .25s;
}

.slider__dot[aria-current="true"]::before {
	width: 28px;
	background: var(--accent);
	border-color: var(--accent);
}

/* Grade fixa */
.hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	height: var(--hero-h);
}

/* ==========================================================================
   7. Estrutura principal + barra lateral
   ========================================================================== */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, var(--sidebar));
	gap: var(--gap);
	align-items: start;
	margin-block: var(--gap);
}

.no-sidebar .layout {
	grid-template-columns: minmax(0, 1fr);
	max-width: calc(800px + 32px);
}

.content {
	min-width: 0;
	outline: 0;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0 0 16px;
}

.section-title::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--border);
}

.section-title > span,
.widget-title {
	position: relative;
	padding-left: 14px;
}

.section-title > span::before,
.widget-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: .12em;
	bottom: .12em;
	width: 4px;
	border-radius: 4px;
	background: var(--accent);
}

.archive-header {
	margin-bottom: 20px;
}

.archive-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 6px;
}

.archive-description {
	color: var(--muted);
}

/* ==========================================================================
   8. Cartões de notícia
   ========================================================================== */
.cat-label {
	display: inline-block;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	color: var(--link);
	text-decoration: none;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

a.cat-label:hover {
	background: var(--accent);
	color: var(--accent-contrast);
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: box-shadow .2s, transform .2s;
	height: 100%;
}

.card:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-2);
}

.card__media img,
.card__media .thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	flex: 1;
}

.card__body .cat-label {
	align-self: flex-start;
}

.card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
	/* Altura fixa: sempre 3 linhas, para alinhar a grade */
	height: calc(1.35em * 3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__title a {
	color: var(--text);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--link);
}

/* Cartão inteiro clicável sem duplicar links para leitores de tela */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card {
	position: relative;
}

.card .cat-label {
	position: relative;
	z-index: 1;
}

.card__meta {
	margin: auto 0 0;
	font-size: .82rem;
	color: var(--muted);
}

.card__excerpt {
	margin: 0;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Primeira notícia em destaque */
.card--featured {
	margin-bottom: var(--gap);
}

.card--featured .card__body {
	padding: 20px 24px 22px;
	gap: 10px;
}

.card--featured .card__title {
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.22;
	height: auto;
	max-height: calc(1.22em * 3);
}

.card--featured .card__excerpt {
	font-size: 1.02rem;
}

/* Grade de dois em dois */
.news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
	color: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   9. Paginação
   ========================================================================== */
.pagination {
	margin-top: 28px;
}

.pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.pagination .page-edge {
	text-transform: uppercase;
	font-size: .82rem;
	letter-spacing: .04em;
}

.pagination a:hover {
	border-color: var(--accent);
	color: var(--link);
}

.pagination .is-current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.below-news {
	margin-top: 32px;
}

/* ==========================================================================
   10. Widgets (barra lateral, área de vagas e rodapé)
   ========================================================================== */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	min-width: 0;
}

.sidebar .widget,
.below-news .widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
	min-width: 0;
}

.below-news .widget + .widget {
	margin-top: var(--gap);
}

.widget-title,
.sidebar .widget > .wp-block-heading:first-child,
.sidebar .widget .wp-block-group > .wp-block-heading:first-child,
.sidebar .widget .wp-block-group__inner-container > .wp-block-heading:first-child,
.below-news .widget > .wp-block-heading:first-child {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0 0 14px;
}

.sidebar .widget > .wp-block-heading:first-child,
.below-news .widget > .wp-block-heading:first-child {
	padding-left: 14px;
	border-left: 4px solid var(--accent);
}

.widget ul,
.widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
}

.widget li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.widget li:first-child {
	padding-top: 0;
}

.widget li ul {
	margin-top: 9px;
	padding-left: 14px;
}

.widget a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
}

.widget a:hover {
	color: var(--link);
}

/* Anúncios dentro da barra lateral e da área de vagas: nunca passam da largura da coluna (376 px) */
.sidebar {
	max-width: 100%;
}

.sidebar .widget,
.below-news .widget {
	overflow: hidden;
}

.sidebar ins.adsbygoogle,
.below-news ins.adsbygoogle {
	display: block;
	width: 100%;
	max-width: 100%;
}

.sidebar .widget iframe,
.below-news .widget iframe {
	max-width: 100% !important;
}

/* Widget que só tem anúncio: sem caixa e sem espaçamento interno, ocupa os 376 px inteiros */
.sidebar .widget:has(ins.adsbygoogle),
.below-news .widget:has(ins.adsbygoogle) {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	text-align: center;
}

:where(.sidebar, .below-news, .site-footer) .widget img:not(.avatar) {
	border-radius: var(--radius-sm);
}

.widget p:last-child {
	margin-bottom: 0;
}

.widget select {
	width: 100%;
}

/* Blocos nativos mais comuns */
.wp-block-latest-posts li,
.wp-block-latest-comments li {
	display: flow-root;
}

.wp-block-latest-posts__featured-image img {
	border-radius: var(--radius-sm);
}

.wp-block-latest-posts__featured-image.alignleft {
	margin: 0 12px 4px 0;
}

.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author,
.wp-block-latest-comments__comment-date,
.widget .post-date,
.widget .rss-date {
	display: block;
	font-size: .8rem;
	color: var(--muted);
	font-weight: 400;
}

.wp-block-latest-comments {
	padding-left: 0;
}

.wp-block-latest-comments__comment {
	margin-bottom: 0;
}

.tagcloud,
.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tagcloud a,
.wp-block-tag-cloud a {
	font-size: .82rem !important;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2);
	margin: 0 !important;
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.wp-block-calendar table,
.widget_calendar table {
	width: 100%;
	border-collapse: collapse;
	font-size: .85rem;
}

.wp-block-calendar th,
.wp-block-calendar td,
.widget_calendar th,
.widget_calendar td {
	text-align: center;
	padding: 6px 2px;
	border: 1px solid var(--border);
	background: transparent;
	color: inherit;
}

.wp-block-calendar th,
.widget_calendar th {
	background: var(--surface-2);
}

/* ==========================================================================
   11. Formulários e botões
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	font: inherit;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--accent);
	outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
	outline-offset: 0;
}

button,
input[type="submit"],
.button,
.wp-block-button__link,
.wp-element-button {
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: var(--accent-contrast);
	padding: 10px 18px;
	min-height: 44px;
	text-decoration: none;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	filter: brightness(1.1);
	color: var(--accent-contrast);
}

.search-form,
.wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.search-form .search-field,
.wp-block-search__input {
	flex: 1;
	min-width: 0;
}

.wp-block-search__label {
	font-weight: 700;
}

/* ==========================================================================
   12. Notícia individual
   ========================================================================== */
.breadcrumbs {
	font-size: .85rem;
	color: var(--muted);
	margin-bottom: 14px;
}

.breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.breadcrumbs li:not(:last-child)::after {
	content: "›";
	margin-left: 6px;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--link);
	text-decoration: underline;
}

.breadcrumbs li:last-child span {
	display: inline-block;
	max-width: 32ch;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.entry {
	padding: 28px 32px;
}

.entry-header .cat-label {
	margin-bottom: 12px;
}

.entry-title {
	font-size: clamp(1.6rem, 3.6vw, 2.35rem);
	line-height: 1.18;
	margin-bottom: 12px;
}

.entry-lead {
	font-size: 1.15rem;
	color: var(--muted);
	line-height: 1.5;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	font-size: .88rem;
	color: var(--muted);
	margin-bottom: 16px;
}

.entry-meta a {
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.entry-thumb {
	margin: 0 -32px 24px;
}

.entry-thumb img {
	width: 100%;
	height: auto;
}

.entry-thumb figcaption,
.wp-caption-text,
.wp-element-caption,
figcaption {
	font-size: .85rem;
	color: var(--muted);
	padding: 8px 32px 0;
	text-align: left;
}

.entry-content {
	font-size: 1.1rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-block: 0 1.2em;
}

.entry-content h2 {
	font-size: 1.55rem;
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: 1.3rem;
	margin-top: 1.4em;
}

.entry-content img {
	border-radius: var(--radius-sm);
	height: auto;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figure figcaption {
	padding-inline: 0;
}

.entry-content blockquote,
.wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--accent);
	font-size: 1.15rem;
	font-style: italic;
	color: var(--text);
}

.wp-block-pullquote {
	border-top: 4px solid var(--accent);
	border-bottom: 4px solid var(--accent);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--border);
	padding: 8px 10px;
	text-align: left;
}

.entry-content th {
	background: var(--surface-2);
}

.entry-content pre,
.entry-content code {
	background: var(--surface-2);
	border-radius: 6px;
	font-size: .9em;
}

.entry-content pre {
	padding: 16px;
	overflow-x: auto;
}

.entry-content code {
	padding: 2px 5px;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--border);
}

.entry-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.tag-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-list a {
	display: inline-block;
	font-size: .85rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	text-decoration: none;
}

.tag-list a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

/* Compartilhar */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.entry-footer .share {
	margin-bottom: 0;
}

.share__label {
	font-weight: 700;
	font-size: .9rem;
	margin-right: 4px;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
}

.share__btn:hover {
	color: #fff;
	filter: brightness(1.15);
}

.share__btn--whatsapp { background: #0f7a3e; }
.share__btn--facebook { background: #1659c7; }
.share__btn--telegram { background: #13719f; }
.share__btn--x { background: #000; }
.share__btn--linkedin { background: #0a5a95; }

/* Anterior / próxima */
.post-navigation {
	margin-top: var(--gap);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--text);
	box-shadow: var(--shadow);
}

.post-navigation a:hover {
	border-color: var(--accent);
}

.post-navigation .nav-next {
	text-align: right;
	grid-column: 2;
}

.post-navigation .nav-label {
	display: block;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--link);
	font-weight: 800;
}

.post-navigation .nav-title {
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related {
	margin-top: 32px;
}

/* Comentários */
.comments {
	margin-top: 32px;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	padding-left: 24px;
	border-left: 2px solid var(--border);
	margin-top: 16px;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: .8rem;
	margin: 4px 0 8px;
}

.comment-metadata a {
	color: var(--muted);
	text-decoration: none;
}

.reply a {
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-respond {
	margin-top: 24px;
}

.comment-reply-title {
	font-size: 1.2rem;
}

.comment-form label {
	display: block;
	font-weight: 700;
	font-size: .9rem;
	margin-bottom: 4px;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

.no-results,
.error-404 {
	margin-bottom: var(--gap);
}

/* ==========================================================================
   13. Rodapé
   ========================================================================== */
.site-footer {
	background: #000;
	color: #c9ced6;
	padding: 40px 16px 28px;
	text-align: center;
	font-size: .92rem;
}

.site-footer__widgets {
	max-width: 400px;
	margin: 0 auto 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.site-footer .widget-title,
.site-footer .wp-block-heading {
	color: #fff;
	padding-left: 0;
	text-align: center;
}

.site-footer .widget-title::before {
	display: none;
}

.site-footer .widget li {
	border-color: #222;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: #c9ced6;
}

.site-footer .custom-logo,
.site-footer img {
	margin-inline: auto;
}

.site-footer__credits {
	margin: 0 0 8px;
	font-size: .82rem;
	color: #9aa1ab;
}

.back-to-top {
	font-size: .82rem;
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
   14. Classes padrão do WordPress
   ========================================================================== */
.alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: -32px;
	max-width: calc(100% + 64px);
	width: calc(100% + 64px);
}

.wp-caption {
	max-width: 100%;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.gallery-item {
	margin: 0;
}

.sticky .card__title::before {
	content: "★ ";
	color: var(--link);
}

.bypostauthor > .comment-body .fn::after {
	content: " (autor)";
	font-weight: 400;
	color: var(--muted);
	font-size: .85em;
}

.page-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-weight: 700;
}

/* ==========================================================================
   15. Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
	.site-header__inner {
		min-height: 0;
	}

	.ad-area--header {
		min-height: 0;
	}
}

@media (max-width: 960px) {
	/* Menu tipo hambúrguer */
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav__inner {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.menu-wrap {
		display: none;
		flex-basis: 100%;
		order: 3;
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		padding-bottom: 8px;
	}

	.site-nav.is-open .menu-wrap {
		display: block;
	}

	.menu {
		flex-direction: column;
	}

	.menu li {
		position: relative;
		border-top: 1px solid rgba(255, 255, 255, .15);
	}

	.menu a {
		padding: 13px 52px 13px 6px;
	}

	.menu .menu-item-has-children > a::after {
		display: none;
	}

	.menu .sub-menu,
	.menu .sub-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		background: rgba(0, 0, 0, .15);
		color: inherit;
		border: 0;
		box-shadow: none;
		border-radius: var(--radius-sm);
		padding: 0 0 0 12px;
		margin-bottom: 8px;
	}

	.menu .sub-menu.is-open {
		display: block;
	}

	.menu .sub-menu a:hover {
		background: transparent;
		color: inherit;
		text-decoration: underline;
	}

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		right: 0;
		top: 2px;
		width: 44px;
		height: 44px;
		padding: 0;
		background: transparent;
		color: inherit;
	}

	.submenu-toggle::before {
		content: "";
		width: 9px;
		height: 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s;
	}

	.submenu-toggle[aria-expanded="true"]::before {
		transform: translateY(2px) rotate(-135deg);
	}

	/* Estrutura em coluna: notícias, vagas, barra lateral e depois o Superbanner Rodapé */
	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.tile--slide {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.hero__grid {
		height: auto;
	}

	.hero__grid .tile {
		aspect-ratio: 4 / 3;
	}

	.ad-area--super,
	.ad-area--footer {
		min-height: 0;
	}
}

@media (max-width: 782px) {
	.admin-bar.has-sticky-nav .site-nav {
		top: 0;
	}
}

@media (max-width: 700px) {
	.site-header__inner {
		flex-direction: column;
		gap: 12px;
		padding-block: 14px;
		text-align: center;
	}

	.site-branding {
		flex-basis: auto;
	}

	.site-logo img {
		max-height: 64px;
		margin-inline: auto;
	}

	.ad-area--header {
		flex-basis: auto;
		width: 100%;
	}

	.ad-area--main {
		min-height: 0;
	}

	.tile--slide .tile__overlay {
		padding: 60px 16px 16px;
	}

	.tile__overlay {
		padding: 36px 12px 12px;
	}

	.hero__grid .tile__title {
		font-size: .92rem;
	}

	.hero__grid .cat-label {
		font-size: .62rem;
	}

	/* Lista compacta: imagem à esquerda, título à direita, altura fixa */
	.news-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.news-grid .card {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
		height: 112px;
	}

	.news-grid .card__media {
		aspect-ratio: auto;
		height: 100%;
	}

	.news-grid .card__body {
		padding: 10px 12px;
		gap: 4px;
	}

	.news-grid .card__body .cat-label {
		font-size: .62rem;
		padding: 3px 6px;
	}

	.news-grid .card__title {
		font-size: .95rem;
		line-height: 1.3;
		height: auto;
		max-height: calc(1.3em * 3);
	}

	.news-grid .card__meta {
		font-size: .75rem;
	}

	.card--featured .card__body {
		padding: 16px;
	}

	.entry {
		padding: 20px 18px;
	}

	.entry-thumb {
		margin-inline: -18px;
	}

	.entry-thumb figcaption {
		padding-inline: 18px;
	}

	.alignwide,
	.alignfull {
		margin-inline: -18px;
		max-width: calc(100% + 36px);
		width: calc(100% + 36px);
	}

	.entry-content {
		font-size: 1.05rem;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 1;
	}

	.pagination a,
	.pagination span {
		min-width: 40px;
		height: 40px;
		padding: 0 10px;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

@media (max-width: 380px) {
	.news-grid .card {
		grid-template-columns: 100px minmax(0, 1fr);
		height: 104px;
	}
}

/* Menos animação para quem prefere */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Impressão */
@media print {
	.site-nav,
	.ad-area,
	.sidebar,
	.share,
	.post-navigation,
	.related,
	.comments,
	.below-news,
	.site-footer__widgets {
		display: none !important;
	}

	.layout {
		display: block;
	}

	.box {
		border: 0;
		box-shadow: none;
	}
}
