/*
Theme Name: Manchete do Povo
Theme URI: https://manchetedopovo.com.br/
Author: Manchete do Povo
Description: Tema do portal Manchete do Povo — notícias de Rolândia e Região. Inclui faixa Urgente, programas e vídeos do YouTube, áreas de anúncio, botão Voz do Povo (WhatsApp), mais lidas e campos para publicação automática via REST API.
Version: 1.0.0
Requires at least: 6.2
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: manchete-do-povo
*/

:root {
	--mdp-red: #AE1F23;
	--mdp-blue: #0D4C86;
	--mdp-navy: #0A2A4D;
	--mdp-ink: #14171C;
	--mdp-text: #333A45;
	--mdp-muted: #4A5260;
	--mdp-line: #DDE1E6;
	--mdp-placeholder: #E6E9EE;
	--mdp-bg: #FFFFFF;
	--mdp-serif: "Tinos", "Times New Roman", Times, serif;
	--mdp-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mdp-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mdp-bg); color: var(--mdp-ink); font-family: var(--mdp-sans); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mdp-ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--mdp-red); }
:focus-visible { outline: 3px solid var(--mdp-blue); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }
.mdp-wrap { max-width: var(--mdp-max); margin: 0 auto; padding: 0 24px; }

/* Barra superior */
.mdp-topbar { background: var(--mdp-navy); color: #E8EEF5; font-size: 13px; }
.mdp-topbar .mdp-wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.mdp-topbar a { color: #E8EEF5; }
.mdp-topbar a:hover { color: #fff; text-decoration: underline; }
.mdp-topbar__links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.mdp-btn-anuncie { background: var(--mdp-red); color: #fff !important; font-weight: 800; padding: 5px 12px; border-radius: 4px; text-decoration: none !important; }

/* Cabeçalho / logo */
.mdp-header .mdp-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 18px; }
.mdp-logo { display: inline-block; line-height: 0; }
.mdp-logo--img img { max-height: 140px; width: auto; }
.mdp-logo--original img { width: 220px; height: auto; max-height: none; }
.mdp-header__side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.mdp-header__tagline { font-size: 14px; color: var(--mdp-muted); margin: 0; }
.mdp-search { display: flex; gap: 8px; }
.mdp-search input[type=search] { font: inherit; font-size: 15px; padding: 11px 14px; width: 260px; max-width: 60vw; border: 2px solid var(--mdp-blue); border-radius: 4px; background: #fff; }
.mdp-search button { width: 48px; height: 48px; border: 0; border-radius: 4px; background: var(--mdp-blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Menu */
.mdp-nav { background: var(--mdp-blue); }
.mdp-nav ul { list-style: none; margin: 0 auto; max-width: var(--mdp-max); padding: 0 24px; display: flex; flex-wrap: wrap; gap: 0 28px; }
.mdp-nav a { display: block; padding: 13px 0; color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .3px; border-bottom: 3px solid transparent; }
.mdp-nav a:hover, .mdp-nav .current-menu-item > a, .mdp-nav .current-category-ancestor > a { color: #fff; border-bottom-color: #fff; }
.mdp-nav .sub-menu { display: none; }
.mdp-menu-toggle { display: none; }

/* Urgente */
.mdp-urgente { background: var(--mdp-red); color: #fff; }
.mdp-urgente .mdp-wrap { display: flex; gap: 14px; align-items: center; padding-top: 10px; padding-bottom: 10px; font-weight: 600; font-size: 15px; }
.mdp-urgente a { color: #fff; }
.mdp-urgente a:hover { text-decoration: underline; color: #fff; }
.mdp-urgente__tag { background: #fff; color: var(--mdp-red); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; flex-shrink: 0; }

/* Estrutura */
.mdp-main { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 52px; }
.mdp-row { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.mdp-col-main { flex: 999 1 600px; min-width: 0; }
.mdp-col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.mdp-section-title { margin: 0 0 20px; font-family: var(--mdp-serif); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--mdp-blue); border-bottom: 4px solid var(--mdp-red); padding-bottom: 8px; }
.mdp-section-title a { color: inherit; }
.mdp-kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--mdp-red); }
.mdp-meta { font-size: 13px; color: var(--mdp-muted); }

/* Cards */
.mdp-card { display: flex; flex-direction: column; gap: 10px; }
.mdp-card__thumb { display: block; aspect-ratio: 3 / 2; background: var(--mdp-placeholder); border-radius: 4px; overflow: hidden; }
.mdp-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mdp-card__title { margin: 0; font-family: var(--mdp-serif); font-weight: 700; font-size: 21px; line-height: 1.25; }
.mdp-card__excerpt { margin: 0; color: var(--mdp-text); font-size: 16px; }
.mdp-card--hero .mdp-card__thumb { aspect-ratio: 16 / 9; }
.mdp-card--hero .mdp-card__title { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }
.mdp-card--hero .mdp-card__excerpt { font-size: 19px; }
.mdp-card--side { padding: 18px 0; border-bottom: 1px solid var(--mdp-line); }
.mdp-card--side:first-child { padding-top: 0; }
.mdp-card--side:last-child { border-bottom: 0; }
.mdp-card--side .mdp-card__title { font-size: 22px; }
.mdp-card--side .mdp-card__thumb { aspect-ratio: 16 / 9; }
.mdp-card--list { flex-direction: row; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--mdp-line); }
.mdp-card--list .mdp-card__thumb { flex: 0 0 220px; aspect-ratio: 3 / 2; }
.mdp-card--list .mdp-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mdp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }

/* Mais lidas */
.mdp-maislidas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; counter-reset: ml; }
.mdp-maislidas li { display: flex; gap: 16px; align-items: flex-start; counter-increment: ml; }
.mdp-maislidas li::before { content: counter(ml); font-family: var(--mdp-serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--mdp-red); min-width: 26px; }
.mdp-maislidas a { font-weight: 700; font-size: 17px; line-height: 1.3; }

/* Anúncios */
.mdp-ad { display: flex; justify-content: center; align-items: center; text-align: center; }
.mdp-ad img { margin: 0 auto; }
.mdp-ad__label { display: block; font-size: 11px; color: var(--mdp-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.mdp-ad--empty { border: 2px dashed #B9C0CA; border-radius: 4px; min-height: 110px; color: var(--mdp-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 16px; }
.mdp-ad--lateral.mdp-ad--empty { min-height: 250px; }

/* Programas e vídeos */
.mdp-programas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.mdp-programa { background: var(--mdp-blue); color: #fff; border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.mdp-programa--dark { background: var(--mdp-ink); }
.mdp-programa__tag { align-self: flex-start; background: var(--mdp-red); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.mdp-programa__title { margin: 0; font-family: var(--mdp-serif); font-size: 30px; font-weight: 700; color: #fff; }
.mdp-programa p { margin: 0; color: #D3DCE7; }
.mdp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 12px 20px; border-radius: 4px; font-weight: 800; background: #fff; color: var(--mdp-blue); }
.mdp-btn:hover { color: var(--mdp-red); }
.mdp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.mdp-video { display: flex; flex-direction: column; gap: 8px; }
.mdp-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #23272F; }
.mdp-video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mdp-video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.mdp-video__play svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.mdp-video__title { font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Voz do Povo */
.mdp-voz { background: var(--mdp-blue); color: #fff; border-radius: 8px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.mdp-voz__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mdp-voz__title { margin: 0; font-family: var(--mdp-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: #fff; }
.mdp-voz p { margin: 0; color: #D3DCE7; }
.mdp-voz__cta { flex: 1 1 260px; display: flex; }
.mdp-btn-whats { flex: 1; display: flex; gap: 10px; align-items: center; justify-content: center; background: #1E8E3E; color: #fff; font-weight: 800; font-size: 18px; padding: 18px 24px; border-radius: 6px; }
.mdp-btn-whats:hover { background: #17733A; color: #fff; }

/* Matéria */
.mdp-article__header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.mdp-article__title { margin: 0; font-family: var(--mdp-serif); font-weight: 700; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.mdp-article__lead { margin: 0; font-size: 21px; line-height: 1.45; color: var(--mdp-text); }
.mdp-article__figure { margin: 0 0 28px; }
.mdp-article__figure img { width: 100%; border-radius: 4px; }
.mdp-article__figure figcaption { font-size: 14px; color: var(--mdp-muted); margin-top: 8px; }
.mdp-selo-ia { display: inline-block; font-size: 12px; font-weight: 700; background: #FFF3CD; color: #5C4400; border-radius: 3px; padding: 2px 8px; margin-right: 6px; }
.mdp-content { font-size: 19px; line-height: 1.7; color: #1F242C; max-width: 760px; }
.mdp-content > * { margin-top: 0; margin-bottom: 1.1em; }
.mdp-content h2, .mdp-content h3 { font-family: var(--mdp-serif); line-height: 1.2; margin-top: 1.4em; }
.mdp-content a { color: var(--mdp-blue); text-decoration: underline; }
.mdp-content blockquote { border-left: 4px solid var(--mdp-red); margin-left: 0; padding-left: 20px; font-family: var(--mdp-serif); font-size: 22px; }
.mdp-content iframe { max-width: 100%; }
.mdp-content .mdp-ad { margin: 28px 0; }
.mdp-fonte { font-size: 14px; color: var(--mdp-muted); }
.mdp-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0; }
.mdp-share a, .mdp-share button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 4px; font: inherit; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; color: #fff; }
.mdp-share__wa { background: #1E8E3E; }
.mdp-share__fb { background: #1A56B8; }
.mdp-share__copy { background: var(--mdp-ink); }
.mdp-share a:hover { color: #fff; opacity: .9; }
.mdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.mdp-tags a { font-size: 14px; border: 1px solid var(--mdp-line); border-radius: 20px; padding: 6px 12px; }

/* Paginação */
.mdp-pagination { margin-top: 32px; }
.mdp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mdp-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--mdp-line); border-radius: 4px; font-weight: 700; padding: 0 12px; }
.mdp-pagination .current { background: var(--mdp-blue); border-color: var(--mdp-blue); color: #fff; }

/* Rodapé */
.mdp-footer { background: var(--mdp-navy); color: #D3DCE7; }
.mdp-footer .mdp-wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.mdp-footer a { color: #D3DCE7; }
.mdp-footer a:hover { color: #fff; }
.mdp-footer__brand { font-family: var(--mdp-serif); font-weight: 700; font-size: 30px; color: #fff; }
.mdp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.mdp-footer__copy { font-size: 13px; width: 100%; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }

.mdp-404 { text-align: center; padding: 60px 0; }

/* Celular */
@media (max-width: 760px) {
	body { font-size: 16px; }
	.mdp-wrap { padding: 0 16px; }
	.mdp-topbar { display: none; }
	.mdp-header .mdp-wrap { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
	.mdp-logo--original img { width: 120px; }
	.mdp-header__tagline { display: none; }
	.mdp-search input[type=search] { display: none; }
	.mdp-header__side.is-search-open .mdp-search input[type=search] { display: block; position: absolute; left: 16px; right: 16px; width: auto; max-width: none; margin-top: 56px; z-index: 20; }
	.mdp-menu-toggle { display: flex; width: 44px; height: 44px; border: 0; background: transparent; color: var(--mdp-blue); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
	.mdp-nav ul { flex-wrap: nowrap; overflow-x: auto; gap: 22px; padding: 0 16px; white-space: nowrap; }
	.mdp-nav a { font-size: 14px; }
	.mdp-nav.is-open ul { flex-direction: column; flex-wrap: wrap; gap: 0; white-space: normal; }
	.mdp-main { padding-top: 18px; gap: 36px; }
	.mdp-section-title { font-size: 26px; }
	.mdp-card--list .mdp-card__thumb { flex-basis: 110px; }
	.mdp-card--list .mdp-card__title { font-size: 18px; }
	.mdp-card--list .mdp-card__excerpt { display: none; }
	.mdp-voz { padding: 24px 20px; }
	.mdp-programa { padding: 20px; }
	.mdp-content { font-size: 18px; }
	.mdp-article__lead { font-size: 18px; }
}
