/*
Theme Name: Kadet
Theme URI: https://kadet.com.br
Author: Redação Kadet
Description: Tema do Kadet: notícias, geopolítica e história militar. Tema de blocos com modo claro e escuro.
Version: 1.0.46
Requires at least: 6.6
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: kadet
*/

/* ---------- Modo escuro ---------- */
/* As cores do site são as do theme.json. No modo escuro, os mesmos nomes recebem outros valores. */
html[data-theme="dark"],
html[data-theme="dark"] body {
	--wp--preset--color--surface-0: #16171a;
	--wp--preset--color--surface-1: #212327;
	--wp--preset--color--border: #33363b;
	--wp--preset--color--ink: #ededed;
	--wp--preset--color--ink-muted: #a3a3a3;
	--wp--preset--color--ink-soft: #c9c9c9;
	--wp--preset--color--laranja: #f59e3a;
	--wp--preset--color--laranja-texto: #f59e3a;
	--wp--preset--color--on-laranja: #111111;
	--wp--preset--color--input-border: #44474d;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]),
	html:not([data-theme="light"]) body {
		--wp--preset--color--surface-0: #16171a;
		--wp--preset--color--surface-1: #212327;
		--wp--preset--color--border: #33363b;
		--wp--preset--color--ink: #ededed;
		--wp--preset--color--ink-muted: #a3a3a3;
		--wp--preset--color--ink-soft: #c9c9c9;
		--wp--preset--color--laranja: #f59e3a;
		--wp--preset--color--laranja-texto: #f59e3a;
		--wp--preset--color--on-laranja: #111111;
		--wp--preset--color--input-border: #44474d;
		color-scheme: dark;
	}
}

/* Logo: versão clara ou escura conforme o modo */
.kadet-logo { display: block; line-height: 0; }
.kadet-logo img { height: 52px; width: auto; display: block; }
.kadet-logo .kadet-logo--dark { display: none; }
html[data-theme="dark"] .kadet-logo .kadet-logo--light { display: none; }
html[data-theme="dark"] .kadet-logo .kadet-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .kadet-logo .kadet-logo--light { display: none; }
	html:not([data-theme="light"]) .kadet-logo .kadet-logo--dark { display: block; }
}
@media (max-width: 781px) {
	.kadet-logo img { height: 38px; }
}

/* ---------- Cabeçalho ---------- */
.kadet-topbar { font-size: 13px; color: var(--wp--preset--color--ink-muted); }
.kadet-topbar a { color: var(--wp--preset--color--ink-muted); text-decoration: none; }
.kadet-theme-toggle {
	display: inline-flex; align-items: center; gap: 6px; min-height: 30px;
	padding: 4px 10px; border: 1px solid var(--wp--preset--color--border); border-radius: 4px;
	background: none; color: var(--wp--preset--color--ink-muted); font: inherit; font-size: 13px; cursor: pointer;
}
.kadet-theme-toggle:hover { color: var(--wp--preset--color--ink); }
.kadet-theme-toggle svg { width: 14px; height: 14px; }
.kadet-theme-toggle .kadet-icon-sun { display: none; }
html[data-theme="dark"] .kadet-theme-toggle .kadet-icon-sun { display: inline; }
html[data-theme="dark"] .kadet-theme-toggle .kadet-icon-moon { display: none; }

.kadet-header { border-bottom: 2px solid var(--wp--preset--color--laranja); }
.kadet-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.kadet-nav a { color: var(--wp--preset--color--ink); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.kadet-nav a:hover { color: var(--wp--preset--color--laranja-texto); }
.kadet-nav a[aria-current="page"] { border-bottom-color: var(--wp--preset--color--laranja); }
.kadet-search-link { display: inline-flex; padding: 10px; color: var(--wp--preset--color--ink); }
.kadet-search-link svg { width: 20px; height: 20px; }

.kadet-regions { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.kadet-regions a { color: var(--wp--preset--color--ink-muted); text-decoration: none; }
.kadet-regions a:hover, .kadet-regions a[aria-current="page"] { color: var(--wp--preset--color--ink); }

.kadet-menu-button { display: none; }
@media (max-width: 781px) {
	.kadet-topbar { display: none !important; }
	.kadet-menu-button {
		display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
		background: none; border: none; color: var(--wp--preset--color--ink); cursor: pointer;
	}
	.kadet-menu-button svg { width: 22px; height: 22px; }
	.kadet-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; }
	.kadet-nav.is-open { display: flex; }
	.kadet-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--wp--preset--color--border); }
	.kadet-nav .kadet-theme-toggle { margin-top: 12px; }
	.kadet-regions { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
	.kadet-regions a { white-space: nowrap; padding: 7px 12px; border: 1px solid var(--wp--preset--color--border); border-radius: 4px; }
}
.kadet-nav .kadet-theme-toggle--mobile { display: none; }
@media (max-width: 781px) {
	.kadet-nav .kadet-theme-toggle--mobile { display: inline-flex; }
}

/* ---------- Faixa "Últimas" ---------- */
.kadet-ticker .wp-block-post-template { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.kadet-ticker .wp-block-post { display: flex; gap: 8px; align-items: baseline; }
.kadet-ticker .wp-block-post-date { color: var(--wp--preset--color--ink-muted); }

/* ---------- Listas separadas por linhas ---------- */
.kadet-list .wp-block-post-template > li { padding: 20px 0; border-top: 1px solid var(--wp--preset--color--border); }
.kadet-list .wp-block-post-template > li:first-child { padding-top: 0; border-top: none; }
.kadet-list--bordered .wp-block-post-template > li:first-child { padding-top: 16px; border-top: 1px solid var(--wp--preset--color--border); }
.kadet-list--bordered .wp-block-post-template > li:last-child { border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: 16px; }
.kadet-section-head { border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: 12px; }

/* Imagens sem foto ainda: um bloco cinza claro no lugar */
.wp-block-post-featured-image { background: var(--wp--preset--color--surface-1); }
.wp-block-post-featured-image img { display: block; }

/* Lista com miniatura à direita (celular) */
@media (max-width: 781px) {
	.kadet-compact .wp-block-post-template > li { display: flex; gap: 14px; align-items: flex-start; }
	.kadet-compact .wp-block-post-template > li > .wp-block-group { flex: 1; }
}

/* Data grande do "Hoje na História" */
.kadet-date-badge .wp-block-post-date { font-family: var(--wp--preset--font-family--condensed); font-weight: 600; }

/* ---------- Matéria ---------- */
.kadet-meta-row { border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); }
.kadet-share { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--wp--preset--color--ink-muted); }
.kadet-share span { margin-right: 6px; }
.kadet-share a, .kadet-share button {
	width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--wp--preset--color--border); border-radius: 4px; background: none;
	color: var(--wp--preset--color--ink); cursor: pointer; text-decoration: none;
}
.kadet-share svg { width: 16px; height: 16px; }
.kadet-share a:hover, .kadet-share button:hover { color: var(--wp--preset--color--laranja-texto); }
.kadet-share .is-copied { color: var(--wp--preset--color--laranja-texto); border-color: var(--wp--preset--color--laranja); }

.kadet-content > p, .kadet-content > ul, .kadet-content > ol { font-size: var(--wp--preset--font-size--corpo); line-height: 1.67; }
.kadet-content figcaption, .kadet-content .wp-element-caption { font-size: 13px; line-height: 1.4; color: var(--wp--preset--color--ink-muted); text-align: left; }
.kadet-content blockquote, .kadet-content .wp-block-pullquote {
	border: none; border-top: 2px solid var(--wp--preset--color--laranja); border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 20px 0; margin: 32px 0; text-align: left;
}
.kadet-content .wp-block-pullquote blockquote { border: none; padding: 0; margin: 0; }
.kadet-content blockquote p, .kadet-content .wp-block-pullquote p {
	font-family: var(--wp--preset--font-family--condensed); font-weight: 600; font-size: 28px; line-height: 1.3;
}

/* Etiquetas (tags) */
.kadet-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kadet-tags a {
	font-size: 13px; padding: 6px 12px; border: 1px solid var(--wp--preset--color--border); border-radius: 4px;
	color: var(--wp--preset--color--ink-soft); text-decoration: none; text-transform: none; letter-spacing: normal; font-weight: 400;
}
.kadet-tags .wp-block-post-terms__separator { display: none; }

/* Caixa de destaque (Cronologia etc.): estilo de bloco "Caixa Kadet" */
.is-style-kadet-caixa { background: var(--wp--preset--color--surface-1); padding: 24px 28px; }

/* ---------- Comentários ---------- */
.wp-block-comments .wp-block-comment-template li { padding: 16px 0; border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-comments .wp-block-comment-template { margin: 0; padding: 0; list-style: none; }
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"] {
	border: 1px solid var(--wp--preset--color--input-border); border-radius: 4px; padding: 12px 14px;
	background: var(--wp--preset--color--surface-0); color: var(--wp--preset--color--ink); font: inherit; font-size: 15px;
}
.wp-block-post-comments-form .submit { min-height: 44px; }

/* ---------- Formulários e acessibilidade ---------- */
input, textarea, select { color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface-0); }
:focus-visible { outline: 2px solid var(--wp--preset--color--laranja); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.wp-block-search__input { border: 1px solid var(--wp--preset--color--input-border); border-radius: 4px; }

/* Paginação */
.wp-block-query-pagination { font-size: 15px; gap: 16px; }
.wp-block-query-pagination a { color: var(--wp--preset--color--laranja-texto); }

/* Ícone do botão quando o modo vem do aparelho */
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .kadet-theme-toggle .kadet-icon-sun { display: inline; }
	html:not([data-theme="light"]) .kadet-theme-toggle .kadet-icon-moon { display: none; }
}

/* ---------- Estrutura ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.kadet-wide { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); box-sizing: content-box; }
.kadet-home { display: flex; flex-direction: column; gap: 56px; padding-top: 40px; padding-bottom: 56px; }
.kadet-home > * { margin: 0 !important; }

/* Rótulos e títulos */
.kadet-label, .wp-block-post-terms {
	margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--laranja-texto);
}
.kadet-section-title { font-size: var(--wp--preset--font-size--secao) !important; margin: 0; line-height: 1.15; }
.kadet-more { margin: 0; font-size: 14px; font-weight: 500; }
.kadet-more a, a.kadet-more, .kadet-more.wp-block-read-more { color: var(--wp--preset--color--laranja-texto); text-decoration: none; }
.kadet-empty { color: var(--wp--preset--color--ink-muted); font-size: 15px; }
.kadet-list-title { font-family: var(--wp--preset--font-family--sans) !important; font-size: var(--wp--preset--font-size--titulo-lista) !important; font-weight: 500 !important; line-height: 1.32 !important; margin: 0; }

/* Autor · data */
.kadet-meta { gap: 0 !important; font-size: 13px; color: var(--wp--preset--color--ink-muted); }
.kadet-meta .wp-block-post-author-name { color: var(--wp--preset--color--ink-muted); font-size: 13px; }
.kadet-meta .wp-block-post-date::before { content: "·"; margin: 0 6px; }

/* Faixa "Últimas" */
.kadet-ticker-wrap { border-bottom: 1px solid var(--wp--preset--color--border); }
.kadet-ticker { padding-top: 12px; padding-bottom: 12px; gap: 12px 24px !important; }
.kadet-ticker-title { font-family: var(--wp--preset--font-family--sans) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.4; margin: 0; }
.kadet-ticker .wp-block-query { flex: 1; }

/* Manchete */
.kadet-destaques { gap: 40px !important; margin: 0; }
.kadet-manchete .wp-block-post-template > li { display: flex; flex-direction: column; gap: 14px; }
.kadet-manchete .wp-block-post-featured-image { margin: 0 0 6px; }
.kadet-manchete .kadet-manchete__img, .kadet-manchete .kadet-manchete__img img { max-height: 470px; }
.kadet-manchete .kadet-manchete__img img { width: 100%; height: 100%; object-fit: cover; }
/* lista ao lado da manchete: ocupa a altura toda da coluna, sem sobrar espaço em branco */
.kadet-destaques > .wp-block-column:last-child { display: flex; flex-direction: column; }
.kadet-destaques__lista { flex: 1; display: flex; flex-direction: column; }
.kadet-destaques__lista .wp-block-post-template { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.kadet-manchete__title { font-size: var(--wp--preset--font-size--manchete) !important; line-height: 1.1 !important; margin: 0; }
.kadet-linha-fina, .kadet-article__lead { font-size: var(--wp--preset--font-size--linha-fina); line-height: 1.5; color: var(--wp--preset--color--ink-soft); margin: 0; max-width: 680px; }
.kadet-linha-fina .wp-block-post-excerpt__excerpt, .kadet-article__lead .wp-block-post-excerpt__excerpt { margin: 0; }
.kadet-list .wp-block-post-template > li { display: flex; flex-direction: column; gap: 6px; }

/* Cartões */
.kadet-cards .wp-block-post-template { gap: 32px; }
.kadet-cards .wp-block-post-template > li { display: flex; flex-direction: column; gap: 10px; }
.kadet-cards .wp-block-post-featured-image { margin: 0; }
.kadet-section { display: flex; flex-direction: column; gap: 24px; }
.kadet-section > * { margin: 0 !important; }

/* Opinião */
.kadet-opiniao { padding: 0; }
.kadet-opiniao .wp-block-columns { gap: 24px; margin: 0; }
.kadet-opiniao .wp-block-column, .kadet-opiniao .wp-block-post-template, .kadet-opiniao .wp-block-post-template > li { display: flex; flex-direction: column; height: 100%; margin: 0; }
.kadet-opiniao-card { position: relative; flex: 1; min-height: 480px !important; padding: 36px !important; margin: 0 !important; background: #1d1b19; overflow: hidden; border-radius: 0; }
.kadet-opiniao-card .wp-block-cover__image-background { transition: transform 0.6s ease; }
.kadet-opiniao-card:hover .wp-block-cover__image-background { transform: scale(1.03); }
.kadet-opiniao-card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,10,0.10) 0%, rgba(10,10,10,0.45) 38%, rgba(10,10,10,0.82) 62%, rgba(10,10,10,0.95) 100%); }
.kadet-opiniao-card .wp-block-cover__inner-container { position: relative !important; z-index: 5 !important; width: 100% !important; max-width: 640px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.kadet-opiniao-card__label { color: #f59e3a !important; margin: 0 0 4px !important; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.kadet-opiniao__title { font-size: var(--wp--preset--font-size--opiniao) !important; line-height: 1.15 !important; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.kadet-opiniao-card .kadet-opiniao__title a { color: #fff !important; text-decoration: none; }
.kadet-opiniao-card .kadet-opiniao__title a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.kadet-opiniao-card .wp-block-post-excerpt { font-size: 16px; line-height: 1.55; margin: 0; color: rgba(255,255,255,0.86); }
.kadet-opiniao-card .wp-block-post-excerpt__excerpt { margin: 0; }
.kadet-opiniao-card__more { position: relative; z-index: 4; align-self: flex-start; margin-top: 6px; color: #fff !important; font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--laranja); padding-bottom: 2px; }
.kadet-opiniao-card--vazio { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: linear-gradient(160deg, #2a2724, #141312); }
.kadet-opiniao-card--vazio::after { background: url("assets/img/kadet-simbolo-claro.svg") no-repeat right -60px center / 340px auto; opacity: 0.10; }
.kadet-opiniao-card--vazio > * { position: relative; z-index: 5; }
.kadet-opiniao-card--vazio .kadet-empty { color: rgba(255,255,255,0.75); font-size: 18px; margin: 0; }
@media (max-width: 781px) {
	.kadet-opiniao-card { min-height: 380px !important; padding: 24px !important; }

}

/* História Militar */
.kadet-historia { gap: 32px !important; margin: 0; }
.kadet-historia .wp-block-post-template > li { display: flex; flex-direction: column; gap: 10px; }
.kadet-historia .wp-block-post-featured-image { margin: 0; }
.kadet-historia__title { font-size: 24px !important; line-height: 1.25 !important; margin: 0; }
.kadet-historia .wp-block-post-excerpt { font-size: 15px; line-height: 1.47; color: var(--wp--preset--color--ink-soft); margin: 0; }
.kadet-historia .wp-block-post-excerpt__excerpt { margin: 0; }
.kadet-date-badge { aspect-ratio: 16 / 9; background: var(--wp--preset--color--surface-1); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; box-sizing: border-box; gap: 0; }
.kadet-date-badge__day { font-family: var(--wp--preset--font-family--condensed); font-weight: 600; font-size: 64px !important; line-height: 0.95; color: var(--wp--preset--color--ink) !important; }
.kadet-date-badge__month { font-size: 13px !important; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* Newsletter */
.kadet-newsletter { border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); padding: 36px 0; gap: 24px !important; }
.kadet-newsletter__text { display: flex; flex-direction: column; gap: 6px; }
.kadet-newsletter__text > * { margin: 0; }
.kadet-newsletter__lead { color: var(--wp--preset--color--ink-muted); font-size: 15px; }
.kadet-newsletter-mini { margin-top: 32px; background: var(--wp--preset--color--surface-1); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.kadet-newsletter-mini > * { margin: 0; }
.kadet-newsletter-mini p { font-size: 15px; }

/* ---------- Matéria ---------- */
.kadet-single { padding-top: 40px; padding-bottom: 64px; }
.kadet-single__columns { gap: 64px !important; margin: 0; }
.kadet-article { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.kadet-article > * { margin: 0 !important; }
.kadet-article__title { font-size: var(--wp--preset--font-size--titulo-materia) !important; line-height: 1.15 !important; }
.kadet-meta-row { padding: 14px 0; gap: 12px 16px !important; }
.kadet-content { max-width: 680px; }
.kadet-content > * + * { margin-top: 22px; }
.kadet-content h2 { margin-top: 40px; }
.kadet-related { margin-top: 24px !important; display: flex; flex-direction: column; gap: 8px; }
.kadet-related > * { margin: 0; }
.kadet-related .kadet-list-title { font-size: 18px !important; }
.kadet-sidebar { display: flex; flex-direction: column; gap: 8px; }
.kadet-sidebar > * { margin: 0; }
.kadet-sidebar-list .wp-block-post-template > li { flex-direction: row !important; gap: 12px !important; padding: 12px 0 !important; }
.kadet-sidebar-list .wp-block-post-date { flex: none; width: 40px; font-size: 15px; }
.kadet-sidebar-title { font-family: var(--wp--preset--font-family--sans) !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.4 !important; margin: 0; }

/* Texto longo */
.kadet-longo { padding-top: 56px; }
.kadet-longo__head { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.kadet-longo__head > * { margin: 0 !important; }
.kadet-longo__title { font-size: clamp(32px, 4.2vw, 52px) !important; line-height: 1.08 !important; }
.kadet-longo__image { max-width: 1040px; margin: 36px auto 0 !important; }
.kadet-longo__content { margin-top: 40px !important; padding: 0 clamp(16px, 3vw, 32px); }
.kadet-longo__content > p { font-size: var(--wp--preset--font-size--corpo); line-height: 1.67; }
.kadet-longo__tags { max-width: 680px; margin: 40px auto 0 !important; padding: 0 clamp(16px, 3vw, 32px); }
.kadet-longo .kadet-section { margin-top: 64px !important; }
.kadet-longo__comments { max-width: 680px; margin: 64px auto 0 !important; padding: 0 clamp(16px, 3vw, 32px) 64px; }
@media (max-width: 781px) {
	.kadet-longo { padding-top: 28px; }
	.kadet-longo__image { margin-top: 20px !important; }
}

/* Arquivos, busca, páginas */
.kadet-archive { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.kadet-archive > * { margin: 0 !important; }
.kadet-archive__title { font-size: var(--wp--preset--font-size--titulo-materia) !important; margin: 0; }
.kadet-archive__desc { color: var(--wp--preset--color--ink-muted); margin-top: 8px; }
.kadet-search { margin-top: 16px; max-width: 560px; }
.kadet-page { padding-top: 48px; padding-bottom: 64px; }

/* Comentários */
.kadet-comments { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.kadet-comments > * { margin: 0; }
.kadet-comment-head { gap: 8px !important; align-items: baseline; }
.kadet-comment-head > * { margin: 0; }
.wp-block-comment-content p { margin: 6px 0; }
.wp-block-comment-reply-link { font-size: 13px; }
.wp-block-comment-reply-link a { color: var(--wp--preset--color--laranja-texto); }
.comment-reply-title { font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 500; }

/* ---------- Rodapé ---------- */
.kadet-footer { background: var(--wp--preset--color--surface-1); border-top: 1px solid var(--wp--preset--color--border); margin-top: 0; }
.kadet-footer__inner { max-width: 1240px; margin: 0 auto; padding: 48px clamp(16px, 3vw, 32px) 32px; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.kadet-footer__logo { flex: 1 1 160px; }
.kadet-footer__logo img { height: auto; }
.kadet-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.kadet-footer__col--regions { flex: 2 1 280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.kadet-footer__col--regions .kadet-footer__head { grid-column: 1 / -1; }
.kadet-footer__col a { color: var(--wp--preset--color--ink); text-decoration: none; }
.kadet-footer__col a:hover { color: var(--wp--preset--color--laranja-texto); }
.kadet-footer__head { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); }
.kadet-footer__bottom { max-width: 1240px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 32px) 28px; border-top: 1px solid var(--wp--preset--color--border); font-size: 13px; color: var(--wp--preset--color--ink-muted); }

/* Celular: espaçamentos menores */
@media (max-width: 781px) {
	.kadet-home { gap: 40px; padding-top: 20px; }
	.kadet-destaques, .kadet-historia, .kadet-single__columns { gap: 32px !important; }
	.kadet-manchete__title { line-height: 1.12 !important; }
}

/* ---------- Ajustes ---------- */
.kadet-ticker { flex-wrap: nowrap !important; }
.kadet-ticker .kadet-label { flex: none; }
.kadet-ticker .wp-block-query { min-width: 0; }
/* Letreiro: a lista rola continuamente da direita para a esquerda (o JS duplica os itens). */
.kadet-ticker .wp-block-query { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.kadet-ticker .wp-block-post-template { display: flex; flex-direction: row !important; flex-wrap: nowrap; gap: 0 !important; width: max-content; margin: 0; padding: 0; }
.kadet-ticker .wp-block-post-template > li { display: flex !important; flex: none; align-items: baseline !important; gap: 8px; margin: 0; padding-right: 40px; white-space: nowrap; }
.kadet-ticker .kadet-ticker-title { white-space: nowrap; }
.kadet-ticker.is-rolling .wp-block-post-template { animation: kadet-letreiro var(--kadet-letreiro, 60s) linear infinite; }
.kadet-ticker.is-rolling .wp-block-query:hover .wp-block-post-template,
.kadet-ticker.is-rolling .wp-block-query:focus-within .wp-block-post-template { animation-play-state: paused; }
@keyframes kadet-letreiro { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 781px) {
	.kadet-ticker { gap: 12px !important; }
	.kadet-linha-fina, .kadet-article__lead { font-size: 17px; }
	/* Listas de cartões viram lista compacta com miniatura à direita */
	.kadet-home .kadet-cards .wp-block-post-template, .kadet-archive .kadet-cards .wp-block-post-template { gap: 0; }
	.kadet-home .kadet-cards .wp-block-post-template > li, .kadet-archive .kadet-cards .wp-block-post-template > li {
		display: grid; grid-template-columns: minmax(0, 1fr) 96px; column-gap: 14px; row-gap: 6px; align-content: start;
		padding: 14px 0; border-top: 1px solid var(--wp--preset--color--border);
	}
	.kadet-home .kadet-cards .wp-block-post-featured-image, .kadet-archive .kadet-cards .wp-block-post-featured-image {
		grid-column: 2; grid-row: 1 / span 4; width: 96px; aspect-ratio: 4 / 3 !important; height: auto;
	}
	.kadet-home .kadet-cards .wp-block-post-featured-image img, .kadet-archive .kadet-cards .wp-block-post-featured-image img { aspect-ratio: 4 / 3 !important; height: 100% !important; object-fit: cover; }
	.kadet-home .kadet-cards .wp-block-post-template > li > :not(.wp-block-post-featured-image), .kadet-archive .kadet-cards .wp-block-post-template > li > :not(.wp-block-post-featured-image) { grid-column: 1; margin: 0; }
	.kadet-home .kadet-cards .kadet-list-title, .kadet-archive .kadet-cards .kadet-list-title { font-size: 16px !important; }
	.kadet-archive .kadet-cards .wp-block-post-excerpt { display: none; }
}
.kadet-sidebar-list .wp-block-post-date { width: 46px; white-space: nowrap; }
.kadet-longo__content.kadet-content { max-width: none; }
.kadet-date-badge { width: 100%; }
.wp-block-post-featured-image .kadet-featured-caption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--wp--preset--color--ink-muted); background: var(--wp--preset--color--surface-0); }
.wp-block-post-featured-image .kadet-featured-caption { margin-bottom: 12px; }

/* ---------- Newsletter (MailPoet) ---------- */
/* :is(#kadet-nl, …) dá peso de ID às regras, para vencer o estilo próprio do MailPoet. */
div:is(#kadet-nl, .mailpoet_form) { max-width: 600px !important; width: auto !important; margin: 32px 0 !important; padding: 24px !important; background: var(--wp--preset--color--surface-1, #f5f5f4) !important; border: none !important; box-sizing: border-box !important; }
div:is(#kadet-nl, .mailpoet_form) form:is(#kadet-nl, .mailpoet_form), form:is(#kadet-nl, .mailpoet_form_form) { display: flex !important; flex-wrap: wrap !important; align-items: stretch !important; column-gap: 8px !important; row-gap: 0 !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; max-width: none !important; width: 100% !important; font-family: var(--wp--preset--font-family--sans, "IBM Plex Sans", sans-serif) !important; }
form:is(#kadet-nl, .mailpoet_form) > input[type="hidden"] { display: none !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_paragraph { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; line-height: 1 !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_paragraph:has(.mailpoet_text) { flex: 1 1 260px !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_paragraph:has(.mailpoet_submit) { flex: 0 0 auto !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_text { width: 100% !important; max-width: none !important; height: 48px !important; min-height: 48px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--wp--preset--color--input-border, #cfcfcf) !important; border-radius: 4px !important; background: var(--wp--preset--color--surface-0, #fff) !important; color: var(--wp--preset--color--ink, #111) !important; font-family: inherit !important; font-size: 16px !important; box-sizing: border-box !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_text:focus { outline: 2px solid var(--wp--preset--color--laranja, #e8820c) !important; outline-offset: 1px; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_submit { width: auto !important; height: 48px !important; min-height: 48px !important; margin: 0 !important; padding: 0 28px !important; border: none !important; border-radius: 4px !important; background: var(--wp--preset--color--laranja, #e8820c) !important; color: var(--wp--preset--color--on-laranja, #111) !important; font-family: inherit !important; font-size: 16px !important; font-weight: 500 !important; cursor: pointer; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_submit:hover { filter: brightness(0.92); }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_message, :is(#kadet-nl, .mailpoet_form) .parsley-errors-list { flex-basis: 100% !important; margin: 4px 0 0 !important; padding: 0 !important; list-style: none; font-size: 14px !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_message:empty { display: none !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_validate_success { color: var(--wp--preset--color--ink, #111) !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_validate_error, :is(#kadet-nl, .mailpoet_form) .parsley-errors-list { color: #b3261e !important; }
@media (max-width: 600px) { div:is(#kadet-nl, .mailpoet_form) form .mailpoet_paragraph:has(.mailpoet_submit) { flex-basis: 100% !important; margin-top: 8px !important; } div:is(#kadet-nl, .mailpoet_form) form .mailpoet_submit { width: 100% !important; } }

/* Links dentro dos textos: laranja e sublinhados */
.kadet-content a, .wp-block-post-content a { color: var(--wp--preset--color--laranja-texto); text-decoration: underline; text-underline-offset: 2px; }
.kadet-content a:hover, .wp-block-post-content a:hover { color: var(--wp--preset--color--ink); }

/* ---------- Autor, atualização e "Leia também" ---------- */
.kadet-meta .wp-block-post-author-name a { color: inherit; text-decoration: none; }
.kadet-meta .wp-block-post-author-name a:hover { color: var(--wp--preset--color--laranja-texto); text-decoration: underline; }
.kadet-atualizado { white-space: nowrap; }
.kadet-atualizado::before { content: "·"; margin: 0 6px; }
.kadet-autor { display: flex; gap: 20px; align-items: flex-start; margin-top: 12px; max-width: 760px; }
.kadet-autor img { width: 64px; height: 64px; flex: none; }
.kadet-autor p { margin: 0; color: var(--wp--preset--color--ink-soft); font-size: 16px; line-height: 1.6; }
html[data-theme="dark"] .kadet-autor .kadet-autor__claro, .kadet-autor .kadet-autor__escuro { display: none; }
html[data-theme="dark"] .kadet-autor .kadet-autor__escuro { display: block; }

/* ---------- Mais lidas ---------- */
.kadet-mais-lidas ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.kadet-mais-lidas li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--wp--preset--color--border); }
.kadet-mais-lidas li:first-child { border-top: none; }
.kadet-mais-lidas__n { flex: none; width: 22px; font-family: var(--wp--preset--font-family--condensed); font-weight: 600; font-size: 24px; line-height: 1; color: var(--wp--preset--color--laranja); }
.kadet-mais-lidas a { color: var(--wp--preset--color--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.kadet-mais-lidas a:hover { color: var(--wp--preset--color--laranja-texto); }
.kadet-sidebar .kadet-mais-lidas { margin-top: 24px !important; }

/* ---------- Dossiês ---------- */
.kadet-dossies ul { list-style: none; margin: 0; padding: 0; }
.kadet-dossies li { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--wp--preset--color--border); }
.kadet-dossies li:first-child { border-top: none; }
.kadet-dossies__nome { font-family: var(--wp--preset--font-family--condensed); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--wp--preset--color--ink); text-decoration: none; }
.kadet-dossies__nome:hover { color: var(--wp--preset--color--laranja-texto); }
.kadet-dossies__desc { font-size: 14px; line-height: 1.45; color: var(--wp--preset--color--ink-muted); }
.kadet-dossies:not(.kadet-dossies--completo) .kadet-dossies__desc { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kadet-dossies--completo li { padding: 22px 0; gap: 6px; }
.kadet-dossies--completo .kadet-dossies__nome { font-size: 24px; }
.kadet-dossies--completo .kadet-dossies__desc { font-size: 16px; max-width: 760px; }
.kadet-label--dossie { margin: 0 0 8px !important; }
.kadet-dossie-link { margin-top: 12px; font-size: 14px; }
.kadet-dossie-link a { color: var(--wp--preset--color--laranja-texto); font-weight: 500; }
.kadet-home-extra { gap: 48px !important; }

/* ---------- Ao vivo ---------- */
.kadet-aovivo { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding: 2px 8px; border-radius: 3px; background: #c0392b; color: #fff; font-family: var(--wp--preset--font-family--sans); font-size: 0.55em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.2em; line-height: 1.5; }
.kadet-ticker .kadet-aovivo, .kadet-sidebar .kadet-aovivo, .kadet-list .kadet-aovivo { font-size: 11px; vertical-align: 0.1em; }
.kadet-aovivo__ponto { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: kadet-pulso 1.4s ease-in-out infinite; }
@keyframes kadet-pulso { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.tax-dossie .kadet-archive__desc, .tax-dossie .wp-block-term-description { font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--ink-soft); max-width: 760px; margin-top: 8px; }

/* Mensagem de inscrição recebida */
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_validate_success { position: relative; font-family: var(--wp--preset--font-family--sans, "IBM Plex Sans", sans-serif) !important; color: var(--wp--preset--color--ink, #111) !important; margin: 0 !important; padding: 2px 0 2px 40px !important; text-align: left !important; font-size: 16px !important; line-height: 1.5 !important; }
div:is(#kadet-nl, .mailpoet_form) form .mailpoet_validate_success::before { content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--laranja, #e8820c); color: #111; font-weight: 700; font-size: 15px; line-height: 28px; text-align: center; }
div:is(#kadet-nl, .mailpoet_form) form:has(.mailpoet_validate_success[style*="block"]) .mailpoet_paragraph { display: none !important; }
div:is(#kadet-nl, .mailpoet_form) form:has(.mailpoet_validate_success[style*="block"]) .mailpoet_message { margin: 0 !important; }

/* Formulário dentro da faixa da página inicial e da barra lateral */
.kadet-newsletter__form { flex: 0 1 460px; min-width: 260px; }
.kadet-newsletter__form div:is(#kadet-nl, .mailpoet_form) { margin: 0 !important; padding: 0 !important; background: transparent !important; max-width: none !important; }
.kadet-newsletter-mini div:is(#kadet-nl, .mailpoet_form) { margin: 4px 0 0 !important; padding: 0 !important; background: transparent !important; max-width: none !important; }
.kadet-newsletter-mini div:is(#kadet-nl, .mailpoet_form) form .mailpoet_paragraph { flex-basis: 100% !important; }
.kadet-newsletter-mini div:is(#kadet-nl, .mailpoet_form) form .mailpoet_paragraph:has(.mailpoet_submit) { margin-top: 8px !important; }
.kadet-newsletter-mini div:is(#kadet-nl, .mailpoet_form) form .mailpoet_submit { width: 100% !important; }
.kadet-newsletter-mini div:is(#kadet-nl, .mailpoet_form) form .mailpoet_validate_success { font-size: 15px !important; }

/* Páginas do MailPoet (gerenciar inscrição, cancelar) e página de confirmação */
.kadet-mailpoet-page .kadet-content { font-size: 18px; line-height: 1.6; }
.kadet-mailpoet-page__voltar { margin-top: 32px; font-size: 15px; }
.kadet-confirmacao { text-align: center; padding: 8px 0 24px; }
.kadet-confirmacao__selo { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--wp--preset--color--laranja); color: #111; font-size: 34px; font-weight: 700; line-height: 72px; }
.kadet-confirmacao__lead { font-size: 19px; line-height: 1.6; color: var(--wp--preset--color--ink-soft); max-width: 560px; margin-left: auto !important; margin-right: auto !important; }
.kadet-confirmacao__dica { font-size: 15px; color: var(--wp--preset--color--ink-muted); background: var(--wp--preset--color--surface-1); padding: 14px 18px; max-width: 560px; margin-left: auto !important; margin-right: auto !important; }
.kadet-confirmacao .wp-block-buttons { justify-content: center; gap: 12px; margin-top: 28px; }
.kadet-confirmacao .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--ink); }
.kadet-confirmacao .wp-block-button__link { color: var(--wp--preset--color--on-laranja) !important; text-decoration: none !important; font-weight: 500; }
.kadet-confirmacao .is-style-outline .wp-block-button__link { color: var(--wp--preset--color--ink) !important; }

/* Página inicial: Mais lidas e Dossiês lado a lado, com alturas parecidas */
.kadet-home-extra .kadet-mais-lidas li { padding: 13px 0; }
.kadet-home-extra .kadet-mais-lidas a { font-size: 16px; }
.kadet-home-extra .kadet-dossies .kadet-more { margin-top: 10px; }
/* Cartões de opinião no mesmo idioma visual do cartão de compartilhamento: faixa laranja na base */
.kadet-opiniao-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 6; background: var(--wp--preset--color--laranja); }
.kadet-opiniao-card .kadet-opiniao__title { font-family: var(--wp--preset--font-family--condensed); font-weight: 600; }

/* História Militar na página inicial: cartões com imagem */
.kadet-historia .wp-block-post-template { gap: 24px !important; margin: 0; }
.kadet-historia .wp-block-post-template > li { display: flex; flex-direction: column; margin: 0; }
.kadet-historia .wp-block-post-template > li:not(.category-hoje-na-historia) .kadet-date-badge--sobre { display: none; }
@media (max-width: 900px) { .kadet-historia .wp-block-post-template { grid-template-columns: 1fr !important; } .kadet-historia-card { min-height: 360px !important; } }
.kadet-historia-card { min-height: 440px !important; padding: 28px !important; }
.kadet-historia-card .wp-block-cover__inner-container { gap: 10px; }
.kadet-opiniao-card .kadet-historia__title { font-family: var(--wp--preset--font-family--condensed); font-weight: 600; font-size: 26px !important; line-height: 1.18 !important; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.kadet-opiniao-card .kadet-historia__title a { color: #fff !important; text-decoration: none; }
.kadet-opiniao-card .kadet-historia__title a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.kadet-opiniao-card .wp-block-post-terms.kadet-opiniao-card__label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.kadet-opiniao-card .wp-block-post-terms a { color: #f59e3a !important; text-decoration: none; position: relative; z-index: 4; }
.kadet-historia-card .wp-block-post-excerpt { font-size: 15px; }
.kadet-date-badge--sobre { position: absolute; top: -9999px; }
.kadet-historia-card .kadet-date-badge--sobre { position: absolute !important; top: 28px; left: 28px; width: auto !important; aspect-ratio: auto; padding: 12px 16px 10px; background: var(--wp--preset--color--laranja); color: #111; z-index: 5; }
.kadet-historia-card .kadet-date-badge--sobre .kadet-date-badge__day { font-size: 44px !important; color: #111 !important; }
.kadet-historia-card .kadet-date-badge--sobre .kadet-date-badge__month { font-size: 12px !important; color: #111; }
.kadet-historia-card .wp-block-cover__inner-container { position: static !important; }
.kadet-historia-card .wp-block-cover__inner-container > *:not(.kadet-date-badge--sobre) { position: relative; z-index: 5; }
.kadet-historia-card.kadet-opiniao-card--vazio .kadet-empty { font-size: 17px; }
.kadet-historia .kadet-opiniao-card .wp-block-post-excerpt { color: rgba(255,255,255,0.86); }

/* Telegram */
.kadet-topbar__tg, .kadet-footer__tg { display: inline-flex; align-items: center; gap: 6px; }
.kadet-tg-icone { flex: none; }
.kadet-tg-caixa { display: flex; align-items: center; gap: 16px; margin: 40px 0 8px; padding: 20px 22px; background: var(--wp--preset--color--surface-1); border-left: 4px solid var(--wp--preset--color--laranja); }
.kadet-tg-caixa__icone { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--wp--preset--color--laranja); color: #111; display: flex; align-items: center; justify-content: center; }
.kadet-tg-caixa__texto { flex: 1; min-width: 0; }
.kadet-tg-caixa p { margin: 0 !important; }
.kadet-tg-caixa__titulo { font-family: var(--wp--preset--font-family--condensed); font-weight: 600; font-size: 20px !important; line-height: 1.25; color: var(--wp--preset--color--ink); }
.kadet-tg-caixa__sub { font-size: 15px !important; color: var(--wp--preset--color--ink-muted); margin-top: 2px !important; }
.kadet-content .kadet-tg-caixa__botao, .kadet-tg-caixa__botao { flex: none; padding: 11px 20px; border-radius: 4px; background: var(--wp--preset--color--laranja); color: var(--wp--preset--color--on-laranja) !important; font-weight: 500; font-size: 15px; text-decoration: none !important; }
.kadet-tg-caixa__botao:hover { filter: brightness(0.92); }
@media (max-width: 600px) { .kadet-tg-caixa { flex-wrap: wrap; } .kadet-tg-caixa__botao { width: 100%; text-align: center; } }

/* ---------- Hoje na História na página inicial ---------- */
.kadet-hoje-card { min-height: 340px !important; padding: 26px !important; }
.kadet-hoje-card .kadet-historia__title { font-size: 21px !important; line-height: 1.22 !important; }
@media (max-width: 1000px) { .kadet-hoje__lista .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .kadet-hoje__lista .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* ---------- Textos longos (História Militar, Crônicas, Hoje na História) ---------- */
body.single-post .kadet-content > p:first-of-type::first-letter, .kadet-longo__content > p:first-of-type::first-letter { float: left; font-size: 4.6em; line-height: .86; font-weight: 600; margin: 6px 12px 0 0; color: var(--wp--preset--color--laranja); }
.kadet-longo__content > h2 { position: relative; padding-top: 22px; margin-top: 56px !important; font-size: clamp(24px, 2.4vw, 30px); }
.kadet-longo__content > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 4px; background: var(--wp--preset--color--laranja); }
.kadet-longo__content > .wp-block-image, .kadet-longo__content > .wp-block-video, .kadet-longo__content > .wp-block-embed { max-width: 960px !important; margin-top: 40px !important; margin-bottom: 8px; }
.kadet-longo__content > .wp-block-image img { width: 100%; height: auto; }
.kadet-longo__content .wp-block-pullquote { max-width: 760px !important; margin: 48px auto !important; padding: 28px 0 !important; border-top: 3px solid var(--wp--preset--color--laranja); border-bottom: 1px solid var(--wp--preset--color--border); text-align: left; }
.kadet-longo__content .wp-block-pullquote p { font-size: clamp(22px, 2.3vw, 28px) !important; line-height: 1.35 !important; font-weight: 500; }
/* ficha técnica (:::ficha no publicador) */
.kadet-ficha { margin-top: 40px !important; padding: 26px 28px !important; background: var(--wp--preset--color--surface-1); border-top: 4px solid var(--wp--preset--color--laranja); }
.kadet-ficha > * + * { margin-top: 10px !important; }
.kadet-ficha__titulo { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--laranja-texto); margin: 0 !important; }
.kadet-ficha ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.kadet-ficha li { font-size: 16px !important; line-height: 1.45; border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: 10px; }
.kadet-ficha li strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); font-weight: 600; margin-bottom: 2px; }
/* cronologia (:::cronologia no publicador) */
.kadet-cronologia { margin-top: 40px !important; }
.kadet-cronologia__titulo { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--laranja-texto); }
.kadet-cronologia ul { list-style: none; margin: 14px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--wp--preset--color--laranja); }
.kadet-cronologia li { position: relative; padding: 0 0 18px; font-size: 17px !important; line-height: 1.5; }
.kadet-cronologia li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--surface-0); border: 3px solid var(--wp--preset--color--laranja); }
.kadet-cronologia li strong { display: block; font-size: 14px; letter-spacing: .06em; color: var(--wp--preset--color--laranja-texto); }
/* destaque numérico ou citação curta em caixa (:::destaque) */
.kadet-destaque-box { margin-top: 40px !important; padding: 24px 28px !important; border-left: 6px solid var(--wp--preset--color--laranja); background: var(--wp--preset--color--surface-1); }
.kadet-destaque-box p { font-size: 19px !important; line-height: 1.5; margin: 0; }

/* ---------- História Militar na página inicial: faixa escura de largura total ---------- */
.kadet-militar { position: relative; padding: 64px 0 72px !important; margin-top: 72px !important; color: #ededed; isolation: isolate; }
.kadet-militar::before { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
	background: radial-gradient(ellipse at 75% 30%, #2a2622 0%, #151413 58%, #0e0d0c 100%); border-bottom: 6px solid #E8820C; }
.kadet-militar::after { content: ""; position: absolute; z-index: -1; top: -40px; right: 0; width: 520px; height: 520px; opacity: .06; pointer-events: none;
	background: url("assets/img/kadet-simbolo-claro.svg") no-repeat center / contain; }
@media (max-width: 781px) { .kadet-militar::after { width: 300px; height: 300px; right: 0; top: -30px; } }
.kadet-militar .kadet-section-head { border-color: rgba(255,255,255,.14) !important; align-items: flex-end; }
.kadet-militar .kadet-section-title { color: #fff !important; font-size: clamp(30px, 3.2vw, 42px) !important; }
.kadet-militar__titulos > * { margin: 0 !important; }
.kadet-militar__sobre { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #f59e3a; margin-bottom: 8px !important; }
.kadet-militar__sub { margin-top: 10px !important; max-width: 640px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.5; }
.kadet-militar .kadet-more a { color: #f59e3a !important; }
.kadet-militar__colunas { gap: 28px !important; margin-top: 28px !important; }
.kadet-militar__rotulo { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.6); margin: 0 0 14px !important; padding-left: 12px; border-left: 3px solid #E8820C; }
.kadet-militar .kadet-opiniao-card { min-height: 460px !important; }
.kadet-militar .kadet-opiniao-card--vazio { display: flex; align-items: flex-end; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); }
.kadet-militar .kadet-opiniao-card--vazio .kadet-empty { color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.45; }
.kadet-cronica-card::before { background: #f59e3a !important; }
@media (max-width: 781px) { .kadet-militar__hm .wp-block-post-template { grid-template-columns: 1fr !important; } .kadet-militar { padding: 44px 0 52px !important; } }
html, body { overflow-x: clip; }
.kadet-militar__hm .wp-block-post-template { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }

/* Quadro de atualizações das coberturas ao vivo */
.kadet-aovivo-box { margin: 1.8em 0; padding: 18px 22px 8px; background: #f7f4f0; border-left: 5px solid #c0392b; border-radius: 0 4px 4px 0; }
.kadet-aovivo-box__titulo { margin: 0 0 12px !important; display: flex; align-items: center; gap: 8px; font-family: var(--wp--preset--font-family--sans); font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c0392b; }
.kadet-aovivo-box__ponto { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; animation: kadet-pulso 1.4s ease-in-out infinite; }
.kadet-aovivo-box__item { position: relative; margin: 0 !important; padding: 0 0 12px 18px; border-left: 2px solid #e2d8cc; }
.kadet-aovivo-box__item::before { content: ""; position: absolute; left: -6px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: #E8820C; }
.kadet-aovivo-box__item p { margin: 0 0 4px !important; font-size: 0.98rem; line-height: 1.5; }
.kadet-aovivo-box__hora { display: inline-block; margin-right: 6px; color: #E8820C; font-family: var(--wp--preset--font-family--sans); font-weight: 700; }

/* 1.0.31 · Mídia contida: fotos e vídeos menores que a coluna de texto, centralizados */
.kadet-content > .wp-block-image, .kadet-content > .wp-block-video, .kadet-content > .wp-block-embed,
.kadet-longo__content > .wp-block-image, .kadet-longo__content > .wp-block-video, .kadet-longo__content > .wp-block-embed {
	max-width: 600px !important; margin-left: auto !important; margin-right: auto !important;
}
.kadet-content > .wp-block-image img, .kadet-longo__content > .wp-block-image img {
	display: block; width: auto !important; max-width: 100%; height: auto; max-height: 440px; margin: 0 auto; border-radius: 2px;
}
.kadet-content > .wp-block-video video { width: 100%; height: auto; border-radius: 2px; }
body.single-post .wp-block-post-featured-image:not(.kadet-longo__image) { max-width: 680px !important; margin-left: auto !important; margin-right: auto !important; }
body.single-post .kadet-longo__image { max-width: 820px !important; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Entrada da capa (1.0.41) ----------
   Computador: manchete com a foto à esquerda e o texto ao lado; abaixo, 4 notícias em cartões com foto.
   Celular: manchete com o título sobre a foto (degradê escuro); abaixo, lista com miniaturas. */
.kadet-entrada { display: flex; flex-direction: column; gap: 28px; }
.kadet-entrada .kadet-manchete { padding-bottom: 28px; border-bottom: 1px solid var(--wp--preset--color--border); }
.kadet-entrada .kadet-manchete .wp-block-post-template > li { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.kadet-entrada .kadet-manchete .kadet-manchete__img { margin: 0; height: 400px; max-height: none; border-radius: 4px; overflow: hidden; }
.kadet-entrada .kadet-manchete .kadet-manchete__img a { display: block; height: 100%; }
.kadet-entrada .kadet-manchete .kadet-manchete__img img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 25%; }
.kadet-manchete__texto { display: flex; flex-direction: column; gap: 12px; }
.kadet-manchete__texto > * { margin: 0 !important; }
.kadet-entrada .kadet-manchete__title { font-size: clamp(30px, 3.2vw, 44px) !important; line-height: 1.08 !important; }
.kadet-entrada .kadet-manchete .kadet-linha-fina { font-size: 19px; line-height: 1.45; }
.kadet-manchete__data { font-size: 14px; color: var(--wp--preset--color--ink-muted); }
.kadet-entrada .kadet-destaques__lista .wp-block-post-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.kadet-entrada .kadet-destaques__lista .wp-block-post-template > li { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; }
.kadet-destaques__img { margin: 0; border-radius: 3px; overflow: hidden; }
.kadet-destaques__img img { width: 100%; height: 100%; object-fit: cover; }
.kadet-destaques__texto { display: flex; flex-direction: column; gap: 6px; }
.kadet-destaques__texto > * { margin: 0 !important; }

@media (max-width: 1000px) and (min-width: 782px) {
	.kadet-entrada .kadet-destaques__lista .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
	.kadet-entrada { gap: 8px; }
	.kadet-entrada .kadet-manchete { padding-bottom: 0; border-bottom: 0; }
	.kadet-entrada .kadet-manchete .wp-block-post-template > li { display: block; position: relative; border-radius: 4px; overflow: hidden; }
	.kadet-entrada .kadet-manchete .kadet-manchete__img { height: 440px; border-radius: 0; }
	.kadet-entrada .kadet-manchete .wp-block-post-template > li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,10,10,.9) 100%); pointer-events: none; }
	.kadet-manchete__texto { position: absolute; left: 18px; right: 18px; bottom: 20px; z-index: 2; gap: 10px; }
	.kadet-entrada .kadet-manchete__title, .kadet-entrada .kadet-manchete__title a { color: #fff !important; font-size: 28px !important; }
	.kadet-entrada .kadet-manchete .wp-block-post-terms, .kadet-entrada .kadet-manchete .wp-block-post-terms a { color: #F39A2B !important; }
	.kadet-entrada .kadet-manchete .kadet-linha-fina { color: rgba(255,255,255,.88); font-size: 15px; }
	.kadet-manchete__data { display: none; }
	.kadet-entrada .kadet-destaques__lista .wp-block-post-template { display: flex; flex-direction: column; gap: 0; }
	.kadet-entrada .kadet-destaques__lista .wp-block-post-template > li { flex-direction: row; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--border); }
	.kadet-destaques__img { flex: none; width: 112px; height: 76px; }
	.kadet-destaques__img a { display: block; height: 100%; }
	.kadet-entrada .kadet-destaques__lista .kadet-list-title { font-size: 17px !important; }
}
/* 1.0.42: sem o espaçamento automático do WordPress entre os itens da entrada */
.kadet-entrada .wp-block-post-template > li { margin: 0 !important; }
.kadet-entrada .kadet-manchete__img, .kadet-entrada .kadet-destaques__img { margin: 0 !important; }
@media (max-width: 781px) {
	.kadet-entrada .kadet-destaques__lista .wp-block-post-template > li { padding: 14px 0 !important; align-items: flex-start; }
	.kadet-entrada .kadet-manchete .kadet-linha-fina .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
/* 1.0.43: entrada em bloco grafite, com o símbolo do Kadet ao fundo */
.kadet-entrada { position: relative; overflow: hidden; isolation: isolate; margin-top: 8px; padding: 30px 40px 40px; border-radius: 6px; border-top: 3px solid #E8820C;
	background: linear-gradient(135deg, #2b2825 0%, #211f1c 100%); color: #f2efe9; }
.kadet-entrada::after { content: ""; position: absolute; z-index: -1; right: -110px; top: -90px; width: 620px; height: 620px; pointer-events: none;
	background: url("assets/img/kadet-simbolo-claro.svg") no-repeat center / contain; opacity: 0.07; }
.kadet-entrada::before { content: "Em destaque"; display: block; margin-bottom: -6px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #F39A2B; }
.kadet-entrada a, .kadet-entrada .wp-block-post-title, .kadet-entrada .wp-block-post-title a { color: #fff !important; }
.kadet-entrada a:hover, .kadet-entrada .wp-block-post-title a:hover { color: #F39A2B !important; }
.kadet-entrada .wp-block-post-terms a { color: #F39A2B !important; }
.kadet-entrada .kadet-linha-fina { color: rgba(255,255,255,.78) !important; }
.kadet-entrada .wp-block-post-date, .kadet-entrada .kadet-manchete__data { color: rgba(255,255,255,.55) !important; }
.kadet-entrada .kadet-manchete { border-bottom-color: rgba(255,255,255,.12) !important; }
.kadet-entrada .kadet-manchete__img, .kadet-entrada .kadet-destaques__img { box-shadow: 0 6px 22px rgba(0,0,0,.35); }
html[data-theme="dark"] .kadet-entrada { background: linear-gradient(135deg, #2f2c28 0%, #26231f 100%); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .kadet-entrada { background: linear-gradient(135deg, #2f2c28 0%, #26231f 100%); } }
@media (max-width: 781px) {
	.kadet-entrada { padding: 16px 14px 4px; }
	.kadet-entrada::after { width: 360px; height: 360px; right: -120px; top: auto; bottom: -60px; }
	.kadet-entrada .kadet-destaques__lista .wp-block-post-template > li { border-bottom-color: rgba(255,255,255,.12) !important; }
	.kadet-entrada .kadet-destaques__lista .wp-block-post-template > li:last-child { border-bottom: 0 !important; }
	.kadet-entrada .kadet-manchete__img, .kadet-entrada .kadet-destaques__img { box-shadow: none; }
}
