/* Diário Editorial — núcleo: tokens, base e componentes compartilhados */
:root {
	--primary: #1e4d7c;
	--primary-hover: #163d65;
	--blue-dark: #173f69;
	--blue-medium: #26739b;
	--blue-light: #22a6d4;
	--green: #268a42;
	--orange: #e7a042;
	--background: #ffffff;
	--surface: #ffffff;
	--surface-soft: #f5f6f7;
	--surface-muted: #eceff1;
	--text: #151515;
	--muted: #737373;
	--border: #d7dfe5;
	--header-bg: #ffffff;
	--header-line: #1e4d7c;
	--footer-bg: #1d4c7e;
	--footer-text: #ffffff;
	--footer-bottom: #12335a;
	--btn-bg: #1e4d7c;
	--caption-bg: #1e4d7c;
	--caption-color: #ffffff;
	--ticker-bg: #1e4d7c;
	--ticker-color: #ffffff;
	--container-width: 1240px;
	--article-width: 740px;
	--card-radius: 5px;
	--font-heading: 'Archivo', 'Inter', Arial, Helvetica, sans-serif;
	--font-body: 'Inter', Arial, Helvetica, sans-serif;
	--font-menu: 'Inter', Arial, Helvetica, sans-serif;
	--font-caption: 'Inter', Arial, Helvetica, sans-serif;
	--weight-heading: 800;
	--size-h1: 32px;
	--size-h2: 24px;
	--size-h3: 19px;
	--size-card: 15px;
	--size-caption: 12px;
	--line-height: 1.65;
	--letter-spacing: -0.01em;
	--hero-ratio: 3/2;
	--hero-title-size: 36px;
	--header-row-height: 70px;
	--logo-margin: 14px;
	--shadow-card: 0 1px 5px rgba(0, 0, 0, 0.14);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

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

.de-site { overflow-x: clip; }

img, svg, video, iframe, table { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	letter-spacing: var(--letter-spacing);
	line-height: 1.15;
	margin: 0 0 0.5em;
	overflow-wrap: anywhere;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

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

.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;
	width: 1px; word-wrap: normal !important;
}
.de-skip:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100000; background: #fff; color: #000; padding: 12px 18px;
}

.de-container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: 16px; }
.de-main { min-height: 40vh; outline: none; }
.de-home > section, .de-home > .de-ad-row { margin-bottom: 40px; }
.de-home { padding-top: 22px; }

/* Ícones */
.de-icon { display: inline-block; vertical-align: middle; flex: none; }

/* Títulos de seção */
.de-title {
	margin: 0 0 18px; padding-bottom: 4px;
	border-bottom: 1px solid var(--section-color, var(--primary));
	color: var(--section-color, var(--primary));
	font-family: var(--font-heading); font-weight: 500; font-size: 24px;
	text-transform: uppercase; letter-spacing: 0; line-height: 1.1;
}
.de-title a { color: inherit; }
.de-title--center, .de-title--big {
	display: flex; align-items: center; gap: 16px; border-bottom: 0; padding-bottom: 0;
}
.de-title--center { font-size: 14px; font-weight: 400; color: var(--section-color, var(--blue-medium)); }
.de-title--center::before, .de-title--center::after { content: ''; flex: 1; height: 1px; background: var(--section-color, var(--blue-light)); }
.de-title--big { color: var(--text); font-size: 28px; font-weight: 500; }
.de-title--big::after { content: ''; flex: 1; height: 1px; background: var(--section-color, var(--primary)); }
.de-title--plain { font-size: 18px; font-weight: 800; color: var(--section-color, var(--primary)); border-bottom: 1px solid var(--muted); }
.de-title--left { text-align: left; }

/* Título da editoria (categoria e matéria): grande, azul, sobre linha */
.de-cat-title {
	margin: 22px 0 18px; padding-bottom: 4px; border-bottom: 2px solid var(--section-color, var(--primary));
	color: var(--section-color, var(--primary)); font: var(--weight-heading) 34px/1.1 var(--font-heading); letter-spacing: -0.01em;
}
.de-cat-title a { color: inherit; }
.de-cat-title--right { text-align: right; }
.de-cat-title--center { text-align: center; }
.de-cat-title--left { text-align: left; }
.de-article__editoria { margin: 22px 0 14px; font-size: 30px; }

/* Etiqueta (chapéu / categoria) */
.de-tag {
	display: block; margin: 0 0 3px; color: var(--tag-color, var(--primary));
	font-size: 10px; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em;
}
a.de-tag:hover { text-decoration: underline; }
.de-meta { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; margin: 4px 0 0; }

/* Botões */
.de-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 26px; background: var(--btn-bg); color: #fff; border: 1px solid transparent; border-radius: 2px;
	font: 600 13px/1.2 var(--font-menu); text-transform: uppercase; letter-spacing: 0.02em;
	cursor: pointer; transition: background 0.2s;
}
.de-btn:hover { background: var(--primary-hover); color: #fff; }
.de-btn--small { padding: 8px 18px; font-size: 12px; }
.de-btn--light { background: #fff; color: var(--primary); }
.de-btn--light:hover { background: #e8eef4; color: var(--primary); }
.de-btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.de-btn[disabled], .de-btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.de-loadmore { text-align: center; margin: 28px 0 8px; }

/* Placeholder 16:9 */
.de-ph {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	min-height: 100%; aspect-ratio: 16 / 9; background: #dfe3e7; color: #8993a0;
}

/* Marcadores */
.de-bullets { list-style: none; margin: 10px 0 0; padding: 0; }
.de-bullets li { position: relative; padding-left: 14px; margin: 0 0 7px; font-size: 12px; line-height: 1.4; }
.de-bullets li::before {
	content: ''; position: absolute; left: 1px; top: 0.55em; width: 5px; height: 5px; border-radius: 50%;
	background: var(--section-color, var(--primary));
}
.de-bullets a:hover { color: var(--section-color, var(--primary)); text-decoration: underline; }

/* Card compacto */
.de-compact { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.de-compact__img { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: var(--surface-muted); display: block; }
.de-compact__img img, .de-compact__img .de-ph { width: 100%; height: 100%; object-fit: cover; }
.de-compact__body { min-width: 0; flex: 1; }
.de-compact__title { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1.35; letter-spacing: 0; }
.de-compact__title a:hover { color: var(--primary); }

/* Card em destaque */
.de-card {
	display: flex; flex-direction: column; min-width: 0; background: var(--surface);
	border-radius: var(--card-radius); box-shadow: var(--shadow-card);
	border-bottom: 3px solid var(--section-color, var(--primary)); overflow: hidden;
}
.de-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-muted); }
.de-card__img img, .de-card__img .de-ph { width: 100%; height: 100%; object-fit: cover; }
.de-card__play {
	position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 52px; height: 52px;
	border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; display: flex; align-items: center; justify-content: center;
}
.de-card__body { padding: 10px 12px 14px; flex: 1; }
.de-card__title { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: var(--size-card); line-height: 1.35; letter-spacing: 0; }
.de-card__title a:hover { color: var(--primary); }
.de-card__excerpt { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.de-card--center .de-card__title { text-align: center; color: var(--primary); font-weight: 700; }
.de-card--center .de-card__body { text-align: center; padding-block: 16px; }
.de-card--plain { box-shadow: none; border-bottom: 0; background: transparent; border-radius: 0; }
.de-card--plain .de-card__img { border-radius: 6px; }
.de-card--plain .de-card__body { padding: 8px 0 0; }
.de-sponsor-label {
	display: inline-block; margin: 0 0 4px; padding: 1px 6px; border: 1px solid var(--muted); border-radius: 2px;
	color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase;
}

/* Item de lista horizontal */
.de-listitem {
	display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.de-listitem__img { display: block; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--surface-muted); align-self: start; }
.de-listitem__img img, .de-listitem__img .de-ph { width: 100%; height: 100%; object-fit: cover; }
.de-listitem__body { display: flex; flex-direction: column; min-width: 0; }
.de-listitem__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.12; }
.de-listitem__title a:hover { color: var(--primary); }
.de-listitem__excerpt { margin: 0 0 8px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--text); }
.de-listitem__date { margin-top: auto; align-self: flex-end; color: var(--primary); font-size: 10px; font-weight: 700; }

/* Últimas / Mais lidas (lista) */
.de-latest { padding: 11px 0; border-bottom: 1px solid var(--border); }
.de-latest--thumb { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: start; }
.de-latest__img { display: block; width: 82px; height: 82px; border-radius: 6px; overflow: hidden; background: var(--surface-muted); }
.de-latest__img img, .de-latest__img .de-ph { width: 100%; height: 100%; object-fit: cover; }
.de-latest__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.de-latest__top .de-tag { margin: 0; }
.de-latest__top .de-meta { margin: 0; font-size: 10px; white-space: nowrap; }
.de-latest__title { margin: 3px 0 0; font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 1.35; letter-spacing: 0; }
.de-latest__title a:hover { color: var(--primary); }

.de-rank { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); align-items: start; }
.de-rank__img { position: relative; display: block; width: 82px; height: 82px; border-radius: 6px; overflow: hidden; background: var(--surface-muted); }
.de-rank__img img, .de-rank__img .de-ph { width: 100%; height: 100%; object-fit: cover; }
.de-rank__num {
	position: absolute; left: 6px; bottom: 0; color: #fff; font: 900 38px/1 var(--font-heading);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.de-rank__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.de-rank__top .de-tag { margin: 0; }
.de-rank__top .de-meta { margin: 0; font-size: 10px; }
.de-rank__title { margin: 3px 0 0; font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 1.35; letter-spacing: 0; }
.de-rankings__badge { margin: -8px 0 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }

.de-pager {
	flex: 1; height: 28px; border: 0; border-radius: 999px; background: #10222f; color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.de-pager:hover:not([disabled]) { background: var(--primary); }
.de-pager[disabled] { opacity: 0.35; cursor: default; }

/* Sidebar / widgets */
.de-widget { margin: 0 0 30px; }
.de-widget__title {
	margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--text);
	color: var(--primary); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0;
}
.de-sidebar { min-width: 0; }

/* Layout com sidebar */
.de-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-top: 6px; padding-bottom: 20px; }
.de-layout__main, .de-article { min-width: 0; }
.de-layout--full { grid-template-columns: minmax(0, var(--article-width)); justify-content: center; }

/* Redes sociais */
.de-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.de-social a { display: inline-flex; padding: 3px; }
.de-social--header .de-social__item--facebook, .de-social--widget .de-social__item--facebook { color: #1877f2; }
.de-social--header .de-social__item--instagram, .de-social--widget .de-social__item--instagram { color: #d6249f; }
.de-social--header .de-social__item--x, .de-social--widget .de-social__item--x { color: #111; }
.de-social--header .de-social__item--youtube, .de-social--widget .de-social__item--youtube { color: #ff0000; }
.de-social--header .de-social__item--threads, .de-social--widget .de-social__item--threads { color: #e7a042; }
.de-social--header .de-social__item--googlenews, .de-social--widget .de-social__item--googlenews { color: #4285f4; }
.de-social--header .de-social__item--googlediscover, .de-social--widget .de-social__item--googlediscover { color: #ea4335; }
.de-social--header .de-social__item--whatsapp, .de-social--widget .de-social__item--whatsapp { color: #25d366; }
.de-social a:hover { opacity: 0.75; }

.de-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.de-empty .de-searchform { max-width: 420px; margin: 16px auto; }

/* Carrossel simples (colunistas) */
.de-carousel { position: relative; }
.de-carousel__btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border: 0;
	border-radius: 50%; background: rgba(16, 34, 47, 0.85); color: #fff; cursor: pointer; display: none;
	align-items: center; justify-content: center;
}
.de-carousel__btn--prev { left: 4px; }
.de-carousel__btn--next { right: 4px; }
