/*
Theme Name: Contabil News
Theme URI: https://contabilnews.com.br
Author: Pedro Kaled
Description: Tema de portal de notícias do Contabil News, inspirado na home da globo.com e na matéria do g1. Cores por editoria, destaques, faixa temática, colunas por editoria, coluna do editor-chefe, guias, espaços de anúncio e box "O que muda na sua vida, contador?".
Version: 1.2.0
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: contabilnews
*/

/* =========================================================
   1. Tokens (Manual de marca, seção 7)
   ========================================================= */
:root {
	--navy: #15284F;
	--navy-text: #102C56;
	--navy-deep: #0E1C3A;
	--blue: #0070E8;
	--blue-2: #0088F4;
	--blue-light: #00A2FF;
	--orange: #FF7A1A;
	--white: #FFFFFF;
	--gray-bg: #F4F6FA;
	--gray-line: #E3E8F0;
	--text: #4A5568;
	--text-strong: #1E2A3B;
	--muted: #6B7585;

	--cn-c: var(--blue); /* cor da editoria (trocada por card/página) */

	--f-title: "Montserrat", "Segoe UI", Arial, sans-serif;
	--f-body: "Inter", "Segoe UI", Arial, sans-serif;

	--radius: 8px;
	--gap: 24px;
	--container: 1200px;
}

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

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

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--f-title); color: var(--navy-text); line-height: 1.2; margin: 0 0 .5em; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.cn-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.cn-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cn-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 4px; }
.cn-skip:focus { left: 8px; }

.cn-icon { width: 20px; height: 20px; flex: none; }

/* =========================================================
   3. Cabeçalho (Menu | Logo | Busca) — como na globo.com
   ========================================================= */
.cn-header { background: var(--white); position: relative; z-index: 50; }

.cn-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 72px;
}

.cn-header__logo { justify-self: center; }
.cn-header__logo img, .cn-header__logo .custom-logo { max-height: 44px; width: auto; }

.cn-header__btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: none; border: 0; padding: 8px 4px;
	color: var(--navy-text); font-size: 14px; font-weight: 600;
	justify-self: start;
}
.cn-header__btn--search { justify-self: end; }
.cn-header__btn .cn-icon { color: var(--blue); }
.cn-header__btn:hover span { text-decoration: underline; }

/* Busca que abre abaixo do cabeçalho */
.cn-search { background: var(--gray-bg); border-top: 1px solid var(--gray-line); padding: 16px 0; }
.cn-search .cn-searchform { max-width: 720px; margin: 0 auto; }

/* Faixa de editorias coloridas */
.cn-editorias { border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); }
.cn-editorias__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; justify-content: space-between; gap: 24px;
	overflow-x: auto; scrollbar-width: none;
}
.cn-editorias__list::-webkit-scrollbar { display: none; }
.cn-editorias__list a {
	display: block; padding: 12px 0;
	font-family: var(--f-title); font-weight: 700; font-size: 15px;
	color: var(--cn-c, var(--blue)); white-space: nowrap;
	border-bottom: 3px solid transparent;
}
.cn-editorias__list a:hover,
.cn-editorias__list .current-menu-item > a,
.cn-editorias__list .current-category-ancestor > a { text-decoration: none; border-bottom-color: currentColor; }

/* Barra de data + aviso (no lugar da previsão do tempo da Globo) */
.cn-aviso { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--gray-line); }
.cn-aviso .cn-container { display: flex; align-items: center; gap: 8px; min-height: 38px; flex-wrap: wrap; }
.cn-aviso__data::first-letter { text-transform: uppercase; }
.cn-aviso__sep { color: var(--orange); }
.cn-aviso__texto { color: var(--navy-text); font-weight: 600; }

/* =========================================================
   4. Menu lateral (drawer)
   ========================================================= */
.cn-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(14, 28, 58, .55); }
.cn-drawer[hidden] { display: none; }
.cn-drawer__panel {
	width: min(340px, 88vw); height: 100%; overflow-y: auto;
	background: var(--navy); color: #fff; padding: 20px;
	animation: cn-slide .2s ease-out;
}
@keyframes cn-slide { from { transform: translateX(-100%); } to { transform: none; } }
.cn-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cn-drawer__head img { max-height: 30px; width: auto; }
.cn-drawer__close { background: none; border: 0; color: #fff; padding: 6px; }
.cn-drawer .cn-searchform { margin-bottom: 16px; }
.cn-drawer__menu, .cn-drawer__menu ul { list-style: none; margin: 0; padding: 0; }
.cn-drawer__menu a {
	display: block; padding: 12px 12px;
	color: #fff; font-weight: 600;
	border-left: 4px solid var(--cn-c, var(--blue-light));
	margin-bottom: 4px;
}
.cn-drawer__menu a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.cn-drawer__menu .sub-menu a { padding-left: 28px; font-weight: 400; border-left-color: transparent; }
body.cn-locked { overflow: hidden; }

/* =========================================================
   5. Botões, selos, busca
   ========================================================= */
.cn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: 999px; border: 0;
	background: var(--blue); color: #fff;
	font-family: var(--f-title); font-weight: 700; font-size: 14px;
	white-space: nowrap;
}
.cn-btn:hover { text-decoration: none; filter: brightness(1.08); }
.cn-btn--cat { background: var(--cn-c); }
.cn-btn--orange { background: var(--orange); }
.cn-btn--ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .7); }
.cn-btn--block { display: flex; width: 100%; margin-top: 24px; padding: 14px; }

.cn-badge {
	display: inline-block; padding: 3px 8px; border-radius: 4px;
	font-family: var(--f-title); font-weight: 700; font-size: 11px; line-height: 1.3;
	text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.cn-badge--urgent { background: var(--orange); }
.cn-badge--publi { background: var(--muted); }
.cn-badge--opinion { background: var(--navy-text); }
.cn-badge--sm { font-size: 10px; padding: 1px 6px; margin-right: 4px; }

.cn-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.cn-kicker__cat {
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
	color: var(--cn-c);
}

.cn-searchform { display: flex; position: relative; }
.cn-searchform input {
	flex: 1; min-width: 0; height: 46px; padding: 0 56px 0 20px;
	border: 1px solid var(--gray-line); border-radius: 999px;
	font: inherit; font-size: 16px; color: var(--text-strong); background: #fff;
}
.cn-searchform input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 112, 232, .18); }
.cn-searchform button {
	position: absolute; right: 4px; top: 4px; width: 38px; height: 38px;
	border: 0; border-radius: 50%; background: var(--blue); color: #fff;
	display: grid; place-items: center;
}

/* =========================================================
   6. Imagens e placeholder (post sem imagem)
   ========================================================= */
.cn-card__media, .cn-hero__media, .cn-list-item__media, .cn-feed-item__media, .cn-card-colored__media {
	display: block; overflow: hidden; border-radius: var(--radius); background: var(--gray-bg);
}
.cn-card__media img, .cn-card-colored__media img, .cn-feed-item__media img, .cn-list-item__media img {
	width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease;
}
a:hover > img, a:focus > img { transform: scale(1.03); }

.cn-placeholder {
	display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18) 0 18%, transparent 19%),
		radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .12) 0 22%, transparent 23%),
		var(--cn-c);
	color: #fff; font-family: var(--f-title); font-weight: 800; font-size: 13px;
	text-transform: uppercase; letter-spacing: .1em;
}
.cn-placeholder span { opacity: .9; padding: 0 8px; text-align: center; }

/* =========================================================
   7. Espaços de anúncio
   ========================================================= */
.cn-ad-slot { margin: 24px auto; text-align: center; }
.cn-ad-slot__label {
	display: block; margin-bottom: 6px;
	font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.cn-ad-slot--anuncio-topo, .cn-ad-slot--anuncio-meio-home {
	max-width: 970px; min-height: 120px; padding: 0 16px;
}
.cn-ad-slot--inline { margin: 32px 0; padding: 12px 0; border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); }
.cn-ad, .cn-ad > * { margin-left: auto; margin-right: auto; }
.cn-ad + .cn-ad { margin-top: 16px; }

/* Anúncio patrocinado (imagem ou GIF) */
.cn-sponsored a, .cn-sponsored img { display: block; margin: 0 auto; }
.cn-sponsored img { max-width: 100%; height: auto; border-radius: 4px; }
.cn-sponsored a:hover img { transform: none; opacity: .95; }

/* =========================================================
   8. Títulos de seção
   ========================================================= */
.cn-section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 20px;
}
.cn-section-head__title { margin: 0; font-size: 26px; font-weight: 800; color: var(--cn-c); }
.cn-section-head__title a { color: inherit; }

/* =========================================================
   9. Cards
   ========================================================= */
/* Card padrão: título na cor da editoria (como na globo.com) */
.cn-card__title { font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0; }
.cn-card__title a { color: var(--cn-c); }
.cn-card__excerpt { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }

.cn-bullets { list-style: none; padding: 0; margin: 10px 0 0; }
.cn-bullets li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.4; margin-top: 6px; }
.cn-bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cn-c); }
.cn-bullets a { color: var(--text-strong); }

/* Destaque principal */
.cn-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); display: grid; grid-template-rows: 1fr auto; align-self: start; }
.cn-hero__media { position: relative; border-radius: 0; grid-area: 1 / 1; }
.cn-hero__media img, .cn-hero__media .cn-placeholder { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cn-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(10, 20, 45, .88) 100%);
	pointer-events: none;
}
.cn-hero__body { grid-area: 1 / 1; align-self: end; position: relative; z-index: 1; padding: 24px; pointer-events: none; }
.cn-hero__body a { pointer-events: auto; }
.cn-hero .cn-kicker__cat { color: #fff; background: var(--cn-c); padding: 3px 8px; border-radius: 4px; }
.cn-hero__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; margin: 0; }
.cn-hero__title a { color: #fff; }
.cn-hero__bullets {
	list-style: none; margin: 0; padding: 14px 20px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px;
	background: var(--cn-c);
}
.cn-hero__bullets li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.35; font-weight: 600; }
.cn-hero__bullets li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cn-hero__bullets a { color: #fff; }

/* Card com faixa colorida (abre as colunas) */
.cn-card-colored { border-radius: var(--radius); overflow: hidden; background: var(--cn-c); margin-bottom: 8px; }
.cn-card-colored__media { border-radius: 0; }
.cn-card-colored__body { padding: 16px 18px 18px; }
.cn-card-colored__title { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
.cn-card-colored__title a { color: #fff; }
.cn-card-colored__meta { font-size: 12px; color: rgba(255, 255, 255, .85); }

/* Item de lista com miniatura */
.cn-list-item {
	display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: start;
	padding: 14px 0; border-bottom: 1px solid var(--gray-line);
}
.cn-list-item:last-child { border-bottom: 0; }
.cn-list-item__title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.cn-list-item__title a { color: var(--cn-c); }
.cn-list-item__meta { font-size: 12px; color: var(--muted); }

/* Item do feed (estilo g1) */
.cn-feed-item {
	display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start;
	padding: 24px 0; border-bottom: 1px solid var(--gray-line);
}
.cn-feed-item .cn-kicker { margin-top: 0; }
.cn-feed-item__title { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
.cn-feed-item__title a { color: var(--navy-text); }
.cn-feed-item__title a:hover { color: var(--cn-c); text-decoration: none; }
.cn-feed-item__excerpt { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.cn-feed-item__meta { font-size: 13px; color: var(--muted); }

/* =========================================================
   10. Home
   ========================================================= */
.cn-destaques {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap);
	margin-top: 24px; margin-bottom: 32px;
}
.cn-destaques__side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.cn-destaques__side .cn-card__title { font-size: 18px; }

.cn-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 32px; }
.cn-row4 .cn-card__title { font-size: 17px; }
.cn-container.cn-row4 { padding-top: 24px; border-top: 1px solid var(--gray-line); }

.cn-trilho { background: var(--gray-bg); border-top: 4px solid var(--cn-c); padding: 32px 0 8px; margin: 16px 0 40px; }

.cn-colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.cn-coluna .cn-section-head { padding-bottom: 10px; border-bottom: 3px solid var(--cn-c); }
.cn-coluna .cn-section-head__title { font-size: 22px; }
.cn-coluna .cn-btn { padding: 6px 14px; font-size: 13px; }

.cn-editor { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 40px 0; margin-bottom: 40px; }
.cn-editor__grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.cn-editor__author { display: flex; gap: 16px; align-items: center; }
.cn-editor__avatar { border-radius: 50%; border: 4px solid var(--blue-light); width: 112px; height: 112px; object-fit: cover; }
.cn-editor__name { display: block; color: #fff; font-family: var(--f-title); font-size: 20px; margin-top: 8px; }
.cn-editor__role { font-size: 13px; color: var(--blue-light); }
.cn-editor__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 12px; }
.cn-editor__title a { color: #fff; }
.cn-editor__excerpt { font-size: 17px; margin: 0 0 16px; }
.cn-editor__more { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.cn-editor__more li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.cn-editor__more a { color: var(--blue-light); font-weight: 600; }

.cn-guias { margin-bottom: 16px; }

.cn-ultimas { margin-bottom: 48px; }

/* =========================================================
   11. Layout com barra lateral
   ========================================================= */
.cn-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

.cn-sidebar { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.cn-sidebar__sticky { position: sticky; top: 16px; text-align: center; }
.cn-widget__title {
	font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	color: var(--navy-text); padding-bottom: 10px; border-bottom: 3px solid var(--blue); margin-bottom: 8px;
}
.cn-widget ul { list-style: none; padding: 0; margin: 0; }
.cn-widget li { padding: 8px 0; border-bottom: 1px solid var(--gray-line); }
.cn-ranking { list-style: none; counter-reset: cn; padding: 0; margin: 0; }
.cn-ranking li {
	counter-increment: cn; display: grid; grid-template-columns: 36px 1fr; gap: 8px;
	padding: 12px 0; border-bottom: 1px solid var(--gray-line);
}
.cn-ranking li::before {
	content: counter(cn); font-family: var(--f-title); font-weight: 800; font-size: 28px;
	line-height: 1; color: var(--blue);
}
.cn-ranking a { color: var(--text-strong); font-weight: 600; font-size: 15px; line-height: 1.35; }

/* =========================================================
   12. Matéria (estilo g1)
   ========================================================= */
.cn-single { margin-top: 24px; margin-bottom: 40px; }
.cn-article { max-width: 760px; }

.cn-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cn-breadcrumb a { color: var(--muted); }

.cn-article__title { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.15; color: var(--navy-text); margin: 4px 0 14px; letter-spacing: -.01em; }
.cn-article__subtitle { font-size: 19px; line-height: 1.5; color: var(--text); margin: 0 0 18px; }

.cn-article__meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--gray-line); }
.cn-article__by strong { color: var(--cn-c); }

.cn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 24px; }
.cn-share__label { font-weight: 600; color: var(--navy-text); font-size: 14px; margin-right: 4px; }
.cn-share__btn {
	position: relative; display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: var(--gray-bg); color: var(--navy-text);
}
.cn-share__btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.cn-share__btn--whatsapp:hover { background: #1FA855; }
.cn-share__copied {
	position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
	background: var(--navy); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}

.cn-article__figure { margin: 0 0 28px; }
.cn-article__figure img { width: 100%; border-radius: var(--radius); }
.cn-article__figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Texto corrido: 18px, entrelinha 1,7 (manual pede 17-18px e 1,6+) */
.cn-content { font-size: 18px; line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.cn-content > * { margin-top: 0; margin-bottom: 1.2em; }
.cn-content > p:first-of-type, .cn-content .is-style-lide { font-size: 20px; line-height: 1.6; color: var(--text-strong); }
.cn-content h2 { font-size: 26px; font-weight: 700; margin-top: 1.6em; }
.cn-content h3 { font-size: 21px; font-weight: 700; margin-top: 1.4em; }
.cn-content a { text-decoration: underline; text-underline-offset: 3px; }
.cn-content strong { color: var(--text-strong); }
.cn-content ul, .cn-content ol { padding-left: 1.3em; }
.cn-content li { margin-bottom: .4em; }
.cn-content li::marker { color: var(--blue); }
.cn-content blockquote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px;
	border-left: 4px solid var(--blue); font-size: 20px; color: var(--navy-text); font-style: italic;
}
.cn-content figure { margin-left: 0; margin-right: 0; }
.cn-content figcaption, .cn-content .wp-element-caption { font-size: 13px; color: var(--muted); }
.cn-content img { border-radius: 6px; }
.cn-content hr { border: 0; border-top: 1px solid var(--gray-line); margin: 2em 0; }

.cn-table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
.cn-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.cn-content th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; }
.cn-content th, .cn-content td { padding: 10px 12px; border: 1px solid var(--gray-line); }
.cn-content tr:nth-child(even) td { background: var(--gray-bg); }

/* Box "O que muda na sua vida, contador?" (manual, seção 7) */
.cn-box-muda, .cn-content .is-style-o-que-muda, .cn-content .cn-o-que-muda {
	background: var(--gray-bg); border-left: 4px solid var(--blue);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 22px 26px 8px; margin: 2em 0;
}
.cn-box-muda > h2, .cn-box-muda > h3, .cn-box-muda > h4,
.is-style-o-que-muda h2, .is-style-o-que-muda h3,
.cn-o-que-muda h2, .cn-o-que-muda h3 {
	margin-top: 0; font-size: 21px; color: var(--navy-text);
	display: flex; align-items: center; gap: 10px;
}
.cn-box-muda > h2::before, .cn-box-muda > h3::before, .cn-box-muda > h4::before,
.is-style-o-que-muda h2::before, .is-style-o-que-muda h3::before,
.cn-o-que-muda h2::before, .cn-o-que-muda h3::before {
	content: "✓"; flex: none; display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--blue); color: #fff; font-size: 15px;
}
.cn-box-muda ul, .is-style-o-que-muda ul, .cn-o-que-muda ul { list-style: none; padding-left: 0; }
.cn-box-muda li, .is-style-o-que-muda li, .cn-o-que-muda li { position: relative; padding-left: 22px; margin-bottom: .6em; }
.cn-box-muda li::before, .is-style-o-que-muda li::before, .cn-o-que-muda li::before {
	content: ""; position: absolute; left: 2px; top: .62em;
	width: 8px; height: 8px; border-radius: 2px; background: var(--blue);
}

.cn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.cn-tags a { background: var(--gray-bg); color: var(--navy-text); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.cn-tags a:hover { background: var(--blue); color: #fff; text-decoration: none; }

.cn-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	background: var(--navy); color: rgba(255, 255, 255, .85);
	border-radius: 12px; padding: 22px 26px; margin: 24px 0 32px;
}
.cn-cta__text strong { display: block; color: #fff; font-family: var(--f-title); font-size: 19px; margin-bottom: 4px; }
.cn-cta__text span { font-size: 15px; }

.cn-social { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-social a {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: #fff;
}
.cn-social a:hover { background: var(--blue); text-decoration: none; }
.cn-social--drawer { margin-top: 24px; }

.cn-author-box {
	display: flex; gap: 18px; align-items: flex-start;
	background: var(--gray-bg); border-radius: var(--radius); padding: 22px; margin: 32px 0;
}
.cn-author-box img { border-radius: 50%; flex: none; }
.cn-author-box__name { display: block; font-family: var(--f-title); color: var(--navy-text); font-size: 18px; margin: 8px 0 4px; }
.cn-author-box p { margin: 0 0 6px; font-size: 15px; }
.cn-author-box__note { font-size: 13px !important; color: var(--muted); font-style: italic; }

.cn-related { padding-top: 32px; border-top: 1px solid var(--gray-line); }

.cn-page { max-width: 800px; margin-top: 32px; margin-bottom: 56px; }

/* Comentários */
.cn-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-line); }
.cn-comments__list { list-style: none; padding: 0; }
.cn-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--gray-line); }
.cn-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.cn-comments textarea, .cn-comments input[type="text"], .cn-comments input[type="email"], .cn-comments input[type="url"] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--gray-line); border-radius: 6px; font: inherit;
}
.cn-comments .submit { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; }

/* =========================================================
   13. Editorias, tags e busca
   ========================================================= */
.cn-archive-head { background: var(--cn-c); color: rgba(255, 255, 255, .9); padding: 32px 0 28px; margin-bottom: 28px; }
.cn-archive-head__title { color: #fff; font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin: 0 0 6px; }
.cn-archive-head__desc { font-size: 17px; max-width: 760px; }
.cn-archive-head__desc p { margin: 0; }
.cn-archive-head .cn-breadcrumb, .cn-archive-head .cn-breadcrumb a { color: rgba(255, 255, 255, .8); }
.cn-archive-head .cn-searchform { max-width: 560px; margin-top: 16px; }
.cn-archive-head__subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cn-archive-head__subs a { color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.cn-archive-head__subs a:hover { background: #fff; color: var(--cn-c); text-decoration: none; }

.cn-archive-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); margin-bottom: 8px; }
.cn-archive-top__side { display: grid; gap: var(--gap); align-content: start; }
.cn-archive-top__side .cn-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cn-archive-top__side .cn-card .cn-kicker { margin-top: 0; }
.cn-archive-top__side .cn-card__media { grid-row: span 3; }

.cn-listing { margin-bottom: 48px; }

.cn-pagination { margin-top: 32px; }
.cn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cn-pagination .page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 999px; background: var(--gray-bg); color: var(--navy-text); font-weight: 600;
}
.cn-pagination .page-numbers.current { background: var(--blue); color: #fff; }
.cn-pagination a.page-numbers:hover { background: var(--navy); color: #fff; text-decoration: none; }

.cn-empty { text-align: center; padding: 64px 16px; max-width: 640px; }
.cn-empty .cn-searchform { margin: 24px 0; }
.cn-empty__code { font-family: var(--f-title); font-weight: 800; font-size: 96px; line-height: 1; color: var(--blue); margin: 0 0 8px; }
.cn-empty--inline { padding: 32px 0; text-align: left; }

/* =========================================================
   14. Rodapé
   ========================================================= */
.cn-footer { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 15px; margin-top: 24px; }
.cn-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 40px; }
.cn-footer__brand img { max-width: 240px; margin-bottom: 16px; }
.cn-footer__brand p { max-width: 380px; margin: 0 0 20px; }
.cn-footer__title { color: var(--blue-light); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.cn-footer ul { list-style: none; margin: 0; padding: 0; }
.cn-footer li { margin-bottom: 8px; }
.cn-footer a { color: #fff; }
.cn-footer__bottom { background: var(--navy-deep); font-size: 13px; }
.cn-footer__bottom .cn-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }

/* =========================================================
   15. Classes padrão do WordPress
   ========================================================= */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================
   16. Responsivo
   ========================================================= */
@media (max-width: 1100px) {
	.cn-editorias__list { justify-content: flex-start; }
}

@media (max-width: 1024px) {
	.cn-destaques { grid-template-columns: 1fr; }
	.cn-row4 { grid-template-columns: repeat(2, 1fr); }
	.cn-colunas { grid-template-columns: 1fr 1fr; }
	.cn-with-sidebar { grid-template-columns: 1fr; gap: 24px; }
	.cn-sidebar { border-top: 1px solid var(--gray-line); padding-top: 24px; }
	.cn-article { max-width: none; }
	.cn-editor__grid { grid-template-columns: 1fr; gap: 24px; }
	.cn-archive-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.cn-colunas { grid-template-columns: 1fr; gap: 24px; }
	.cn-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.cn-footer__brand { grid-column: 1 / -1; }
	.cn-feed-item { grid-template-columns: 1fr 140px; gap: 16px; padding: 18px 0; }
	.cn-feed-item__title { font-size: 18px; }
	.cn-feed-item__excerpt { display: none; }
}

@media (max-width: 600px) {
	:root { --gap: 16px; }
	.cn-header__bar { height: 60px; }
	.cn-header__logo img, .cn-header__logo .custom-logo { max-height: 30px; }
	.cn-header__btn span { display: none; }
	.cn-editorias__list { gap: 18px; }
	.cn-editorias__list a { font-size: 14px; padding: 10px 0; }

	.cn-destaques { margin-top: 16px; }
	.cn-hero { margin: 0 -16px; border-radius: 0; }
	.cn-hero__body { padding: 16px; }
	.cn-hero__bullets { grid-template-columns: 1fr; padding: 12px 16px; }

	/* No celular os cards viram linhas com miniatura (economiza rolagem) */
	.cn-destaques__side, .cn-row4 { grid-template-columns: 1fr; gap: 0; }
	.cn-destaques__side .cn-card, .cn-row4 .cn-card, .cn-archive-top__side .cn-card {
		display: grid; grid-template-columns: 1fr 112px; grid-template-rows: auto 1fr; gap: 0 14px;
		padding: 14px 0; border-bottom: 1px solid var(--gray-line);
	}
	.cn-destaques__side .cn-card__media, .cn-row4 .cn-card__media, .cn-archive-top__side .cn-card__media { grid-column: 2; grid-row: 1 / span 3; }
	.cn-destaques__side .cn-kicker, .cn-row4 .cn-kicker { margin-top: 0; }
	.cn-destaques__side .cn-card__title, .cn-row4 .cn-card__title { font-size: 17px; }
	.cn-row4 .cn-card__excerpt { display: none; }
	.cn-container.cn-row4 { border-top: 0; padding-top: 0; }

	.cn-section-head__title { font-size: 22px; }
	.cn-section-head .cn-btn { padding: 6px 12px; font-size: 12px; }
	.cn-trilho { padding-top: 24px; }

	.cn-feed-item { grid-template-columns: 1fr 104px; }

	.cn-content { font-size: 17px; }
	.cn-content > p:first-of-type { font-size: 18px; }
	.cn-article__subtitle { font-size: 17px; }
	.cn-box-muda, .cn-content .is-style-o-que-muda, .cn-content .cn-o-que-muda { padding: 18px 18px 4px !important; }
	.cn-cta { padding: 20px; }
	.cn-editor__avatar { width: 80px; height: 80px; }
	.cn-footer__grid { grid-template-columns: 1fr; }
}

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

@media print {
	.cn-header, .cn-footer, .cn-sidebar, .cn-share, .cn-cta, .cn-ad-slot, .cn-related, .cn-comments { display: none !important; }
	.cn-with-sidebar { display: block; }
	.cn-content { font-size: 12pt; color: #000; }
}
