/*
Theme Name: Rondônia 24h
Theme URI: https://rondonia24h.com.br/
Author: Rondônia 24h
Description: Tema jornalístico exclusivo, jovem, acessível e responsivo para o portal Rondônia 24h. Inclui home editorial, editorias, notícia, busca, widgets, publicidade, modo escuro e integração com o editor de blocos e Elementor.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: rondonia-24h
Tags: news, blog, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
	--r24h-ink: #071a2d;
	--r24h-ink-soft: #132238;
	--r24h-brand: #0969da;
	--r24h-brand-dark: #0755b2;
	--r24h-breaking: #e11d2e;
	--r24h-sky: #eaf4ff;
	--r24h-paper: #ffffff;
	--r24h-surface: #f5f7fa;
	--r24h-line: #dde3ea;
	--r24h-muted: #667085;
	--r24h-success: #0b8f55;
	--r24h-accent: var(--r24h-brand);
	--r24h-shadow-sm: 0 8px 24px rgba(7, 26, 45, 0.08);
	--r24h-shadow-lg: 0 20px 54px rgba(7, 26, 45, 0.16);
	--r24h-radius-sm: 10px;
	--r24h-radius: 18px;
	--r24h-radius-lg: 28px;
	--r24h-shell: 1440px;
	--r24h-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--r24h-display: "Arial Black", Arial, ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--r24h-paper);
	color: var(--r24h-ink-soft);
	font-family: var(--r24h-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.dark-mode {
	--r24h-ink: #f1f6fb;
	--r24h-ink-soft: #dce7f1;
	--r24h-paper: #07111d;
	--r24h-surface: #0d1c2b;
	--r24h-line: #24384b;
	--r24h-muted: #a2b0be;
	--r24h-sky: #102d4a;
	--r24h-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
	--r24h-shadow-lg: 0 20px 54px rgba(0, 0, 0, 0.38);
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--r24h-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--r24h-brand-dark); }
button, input, textarea, select { font: inherit; }
button, [type="button"], [type="submit"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
::selection { background: var(--r24h-brand); color: #fff; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75em;
	color: var(--r24h-ink);
	font-weight: 850;
	line-height: 1.12;
	letter-spacing: -0.025em;
}
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.25rem; }

.site-shell { width: min(calc(100% - 48px), var(--r24h-shell)); margin-inline: auto; }
.site-shell--article { max-width: 1320px; }
.site-main { min-height: 50vh; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 99999;
	display: block;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: #fff;
	color: #071a2d;
	font-weight: 800;
	border-radius: 8px;
}

.button,
.wp-element-button,
button.search-submit,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	border: 1px solid var(--r24h-brand);
	border-radius: 999px;
	background: var(--r24h-brand);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover, .wp-element-button:hover, button.search-submit:hover, input[type="submit"]:hover {
	transform: translateY(-1px);
	background: var(--r24h-brand-dark);
	color: #fff;
	box-shadow: var(--r24h-shadow-sm);
}
.button--outline { background: transparent; border-color: rgba(255,255,255,0.36); color: #fff; }

/* Cabecalho */
.site-header { position: relative; z-index: 100; background: var(--r24h-paper); }
.utility-bar { background: var(--r24h-ink); color: #d8e4ef; font-size: 0.75rem; }
.utility-bar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.today { display: flex; align-items: center; gap: 8px; margin: 0; text-transform: capitalize; }
.live-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #32d583; box-shadow: 0 0 0 4px rgba(50,213,131,0.13); }
.utility-links { display: flex; align-items: center; gap: 18px; }
.utility-links a { color: inherit; text-decoration: none; }
.utility-links a:hover { color: #fff; }

.brand-bar { border-bottom: 1px solid var(--r24h-line); }
.brand-bar__inner { min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: 18px; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: min(360px, 70vw); max-height: 84px; object-fit: contain; }
.wordmark { display: inline-flex; align-items: center; color: var(--r24h-ink); font-family: var(--r24h-display); font-size: clamp(1.85rem, 4vw, 3.15rem); line-height: 0.88; letter-spacing: -0.075em; text-decoration: none; }
.wordmark:hover { color: var(--r24h-ink); }
.wordmark__state { font-weight: 900; }
.wordmark__time { margin-left: 0.14em; padding: 0.18em 0.22em 0.16em; border-radius: 0.22em; background: var(--r24h-breaking); color: #fff; letter-spacing: -0.04em; }
.brand-tagline { margin: 9px 0 0; color: var(--r24h-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.header-ad { width: min(66%, 800px); }
.ad-slot { text-align: center; }
.ad-slot .widget { margin: 0; }
.ad-slot img, .ad-slot iframe { max-width: 100%; margin-inline: auto; }
.ad-label { display: block; margin-bottom: 5px; color: var(--r24h-muted); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-bar { background: var(--r24h-paper); border-bottom: 1px solid var(--r24h-line); box-shadow: 0 5px 16px rgba(7,26,45,0.04); }
.nav-bar__inner { min-height: 57px; display: flex; align-items: stretch; }
.main-navigation { min-width: 0; flex: 1 1 auto; }
.primary-menu, .main-navigation > ul { height: 100%; display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-menu > li, .main-navigation > ul > li { position: relative; display: flex; align-items: stretch; }
.primary-menu a, .main-navigation > ul > li > a { display: flex; align-items: center; padding: 0 13px; color: var(--r24h-ink); font-size: clamp(0.69rem, 0.9vw, 0.82rem); font-weight: 800; letter-spacing: 0.015em; line-height: 1.15; text-decoration: none; text-transform: uppercase; }
.primary-menu > li > a::after { content: ""; position: absolute; right: 13px; bottom: 0; left: 13px; height: 3px; background: var(--r24h-accent); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.primary-menu > li:hover > a::after, .primary-menu > .current-menu-item > a::after, .primary-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-menu a:hover { color: var(--r24h-brand); }
.primary-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 230px; margin: 0; padding: 10px; visibility: hidden; opacity: 0; list-style: none; background: var(--r24h-paper); border: 1px solid var(--r24h-line); border-radius: 0 0 14px 14px; box-shadow: var(--r24h-shadow-lg); transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.primary-menu .sub-menu a { min-height: 42px; padding: 9px 12px; border-radius: 8px; text-transform: none; }
.primary-menu .sub-menu a:hover { background: var(--r24h-sky); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 10px; }
.icon-button, .menu-toggle { border: 0; background: transparent; color: var(--r24h-ink); }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 1.35rem; }
.icon-button:hover { background: var(--r24h-surface); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; font-size: 0.8rem; font-weight: 850; text-transform: uppercase; }
.menu-toggle__icon { width: 22px; display: grid; gap: 4px; }
.menu-toggle__icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-search { background: var(--r24h-surface); border-bottom: 1px solid var(--r24h-line); }
.header-search__inner { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
.search-form { width: 100%; display: flex; align-items: stretch; gap: 10px; }
.search-form label { flex: 1; }
.search-field, input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
	width: 100%;
	min-height: 46px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--r24h-line);
	border-radius: 12px;
	background: var(--r24h-paper);
	color: var(--r24h-ink);
}
textarea { min-height: 140px; }
.search-close { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--r24h-muted); font-weight: 750; }

.news-ticker { background: var(--r24h-sky); border-bottom: 1px solid color-mix(in srgb, var(--r24h-brand) 18%, transparent); }
.news-ticker__inner { min-height: 42px; display: flex; align-items: center; overflow: hidden; }
.ticker-label { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 0 17px; margin-left: -17px; background: var(--r24h-breaking); color: #fff; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; transform: skewX(-10deg); }
.ticker-label > * { transform: skewX(10deg); }
.ticker-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: r24h-pulse 1.5s infinite; }
.ticker-track { min-width: 0; display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-track a { flex: 0 0 auto; max-width: 420px; padding: 0 22px; color: var(--r24h-ink-soft); font-size: 0.79rem; font-weight: 750; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--r24h-line); }
.ticker-track a:hover { color: var(--r24h-brand); }
@keyframes r24h-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.76); } }

/* Home */
.front-page-main { padding: 42px 0 72px; }
.top-stories, .category-section, .latest-section { margin-bottom: 58px; }
.section-heading { --r24h-accent: var(--r24h-brand); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--r24h-line); }
.section-heading::before { content: ""; position: absolute; }
.section-heading h1, .section-heading h2 { position: relative; margin: 0; padding-left: 16px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-heading h1::before, .section-heading h2::before { content: ""; position: absolute; top: 0.08em; bottom: 0.04em; left: 0; width: 5px; border-radius: 9px; background: var(--r24h-accent); }
.section-heading--top h1 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
.eyebrow { display: block; margin-bottom: 5px; color: var(--r24h-accent); font-size: 0.69rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.section-link { flex: 0 0 auto; color: var(--r24h-ink); font-size: 0.78rem; font-weight: 850; text-decoration: none; text-transform: uppercase; }
.section-link:hover { color: var(--r24h-brand); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.78fr); gap: 18px; }
.hero-lead { position: relative; min-height: 570px; overflow: hidden; border-radius: var(--r24h-radius-lg); background: var(--r24h-ink); box-shadow: var(--r24h-shadow-lg); }
.hero-lead__media { position: absolute; inset: 0; }
.hero-lead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,12,22,0.02) 20%, rgba(2,12,22,0.91) 100%); }
.hero-lead__media img, .hero-lead__media .post-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.hero-lead:hover .hero-lead__media img { transform: scale(1.025); }
.hero-lead__overlay { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: clamp(24px, 4vw, 48px); color: #fff; }
.hero-lead__overlay h2 { max-width: 950px; margin: 12px 0 12px; color: #fff; font-size: clamp(2rem, 4.4vw, 4rem); text-wrap: balance; }
.hero-lead__overlay h2 a { color: inherit; text-decoration: none; }
.hero-lead__overlay p { max-width: 800px; margin: 0 0 12px; color: #d7e2ec; font-size: clamp(0.94rem, 1.4vw, 1.08rem); }
.hero-meta { color: #c4d0da; font-size: 0.76rem; font-weight: 700; }
.hero-secondary { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hero-mini { min-height: 132px; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; border: 1px solid var(--r24h-line); border-radius: var(--r24h-radius); background: var(--r24h-paper); box-shadow: var(--r24h-shadow-sm); }
.hero-mini__media { overflow: hidden; background: var(--r24h-surface); }
.hero-mini__media img, .hero-mini__media .post-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.hero-mini:hover img { transform: scale(1.04); }
.hero-mini__content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 14px; }
.hero-mini h3 { margin: 7px 0 7px; font-size: clamp(0.9rem, 1.25vw, 1.08rem); }
.hero-mini h3 a { color: inherit; text-decoration: none; }
.hero-mini h3 a:hover { color: var(--r24h-brand); }
.hero-mini time { color: var(--r24h-muted); font-size: 0.68rem; }

.category-badge { --r24h-accent: var(--r24h-brand); display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: var(--r24h-accent); color: #fff !important; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.07em; line-height: 1; text-decoration: none; text-transform: uppercase; }
.cat-policial, .cat-menu-policial, .cat-section-policial { --r24h-accent: #d92d20; }
.cat-politica, .cat-menu-politica, .cat-section-politica { --r24h-accent: #7f56d9; }
.cat-politica-rondoniense, .cat-menu-politica-rondoniense, .cat-section-politica-rondoniense { --r24h-accent: #6941c6; }
.cat-acidentes, .cat-menu-acidentes, .cat-section-acidentes { --r24h-accent: #f04438; }
.cat-governo, .cat-menu-governo, .cat-section-governo { --r24h-accent: #1570ef; }
.cat-rondonia, .cat-menu-rondonia, .cat-section-rondonia { --r24h-accent: #039855; }
.cat-justica, .cat-menu-justica, .cat-section-justica { --r24h-accent: #b54708; }
.cat-destaques, .cat-menu-destaques { --r24h-accent: #e11d2e; }
.primary-menu > li[class*="cat-menu-"] > a::after { background: var(--r24h-accent); }

.section-post-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr)); gap: 18px; align-items: stretch; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid var(--r24h-line); border-radius: var(--r24h-radius); background: var(--r24h-paper); transition: transform 180ms ease, box-shadow 180ms ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--r24h-shadow-lg); }
.news-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--r24h-surface); }
.news-card__media img, .news-card__media .post-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__content { padding: 16px; }
.news-card__title { margin: 9px 0 10px; font-size: clamp(1rem, 1.4vw, 1.22rem); }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--r24h-brand); }
.news-card__excerpt { color: var(--r24h-muted); font-size: 0.9rem; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--r24h-muted); font-size: 0.68rem; font-weight: 650; }
.news-card--feature .news-card__media { aspect-ratio: 16 / 9; }
.news-card--feature .news-card__title { font-size: clamp(1.35rem, 2.2vw, 2rem); }
.home-ad { min-height: 90px; display: grid; place-items: center; margin: 10px 0 58px; padding: 16px; border: 1px dashed var(--r24h-line); border-radius: var(--r24h-radius); background: var(--r24h-surface); }

.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.news-list-item { min-width: 0; display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--r24h-line); }
.news-list-item__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--r24h-surface); }
.news-list-item__media img, .news-list-item__media .post-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.news-list-item__content { min-width: 0; align-self: center; }
.news-list-item h3 { margin: 7px 0; font-size: 1rem; }
.news-list-item h3 a { color: inherit; text-decoration: none; }
.news-list-item h3 a:hover { color: var(--r24h-brand); }
.news-list-item time { color: var(--r24h-muted); font-size: 0.68rem; }
.post-thumbnail--fallback { display: grid; place-items: center; background: linear-gradient(135deg, #071a2d, #0969da); color: rgba(255,255,255,0.72); font-family: var(--r24h-display); font-size: 2rem; }

/* Arquivos e busca */
.archive-main, .page-main, .single-main { padding: 30px 0 72px; }
.breadcrumbs { margin-bottom: 28px; color: var(--r24h-muted); font-size: 0.74rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 7px; color: var(--r24h-line); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs span { color: var(--r24h-ink-soft); }
.archive-header { --r24h-accent: var(--r24h-brand); margin-bottom: 34px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r24h-radius-lg); background: linear-gradient(135deg, var(--r24h-sky), var(--r24h-surface)); border-left: 7px solid var(--r24h-accent); }
.archive-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.archive-header .archive-description, .archive-header > p { max-width: 740px; margin-top: 12px; color: var(--r24h-muted); }
.archive-header .archive-description p { margin: 0; }
.archive-header .search-form { max-width: 800px; margin-top: 20px; }
.cat-context-policial .archive-header, .cat-context-acidentes .archive-header { --r24h-accent: #d92d20; }
.cat-context-politica .archive-header, .cat-context-politica-rondoniense .archive-header { --r24h-accent: #7f56d9; }
.cat-context-governo .archive-header { --r24h-accent: #1570ef; }
.cat-context-rondonia .archive-header { --r24h-accent: #039855; }
.cat-context-justica .archive-header { --r24h-accent: #b54708; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.content-with-sidebar--left { grid-template-columns: 330px minmax(0, 1fr); }
.content-with-sidebar--left > .archive-content, .content-with-sidebar--left > .single-content-column, .content-with-sidebar--left > .page-content-column { grid-column: 2; }
.content-with-sidebar--left > .widget-area { grid-row: 1; grid-column: 1; }
.no-sidebar .content-with-sidebar { display: block; }
.archive-list { display: grid; gap: 0; }
.archive-card { display: grid; grid-template-columns: minmax(230px, 36%) 1fr; gap: 24px; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--r24h-line); }
.archive-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r24h-radius); background: var(--r24h-surface); }
.archive-card__media img, .archive-card__media .post-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.archive-card:hover img { transform: scale(1.035); }
.archive-card__content { min-width: 0; align-self: center; }
.archive-card h2 { margin: 9px 0; font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.archive-card h2 a { color: inherit; text-decoration: none; }
.archive-card h2 a:hover { color: var(--r24h-brand); }
.archive-card p { margin-bottom: 10px; color: var(--r24h-muted); font-size: 0.9rem; }
.archive-card__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--r24h-muted); font-size: 0.69rem; }
.posted-on { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.updated-label { display: inline-flex; gap: 4px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 7px 11px; border: 1px solid var(--r24h-line); border-radius: 10px; color: var(--r24h-ink); font-weight: 800; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--r24h-brand); border-color: var(--r24h-brand); color: #fff; }

.widget-area { position: sticky; top: 20px; display: grid; gap: 22px; }
.widget { overflow: hidden; padding: 22px; border: 1px solid var(--r24h-line); border-radius: var(--r24h-radius); background: var(--r24h-paper); }
.widget-title { position: relative; margin-bottom: 17px; padding-bottom: 11px; font-size: 1rem; text-transform: uppercase; }
.widget-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--r24h-brand); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--r24h-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--r24h-ink); text-decoration: none; }
.widget a:hover { color: var(--r24h-brand); }

/* Noticia */
.single-article .entry-header { max-width: 980px; margin-bottom: 26px; }
.entry-title { margin: 14px 0 16px; font-size: clamp(2.2rem, 5.8vw, 5rem); text-wrap: balance; }
.entry-subtitle { max-width: 920px; color: var(--r24h-muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5; }
.entry-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 15px; color: var(--r24h-muted); font-size: 0.76rem; border-top: 1px solid var(--r24h-line); }
.entry-byline a { color: var(--r24h-ink); font-weight: 800; text-decoration: none; }
.entry-featured-media { margin: 0 0 32px; }
.entry-featured-image { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--r24h-radius-lg); }
.entry-featured-media figcaption { padding: 8px 4px 0; color: var(--r24h-muted); font-size: 0.7rem; }
.article-layout { display: grid; grid-template-columns: 56px minmax(0, 780px); gap: 26px; }
.share-rail { position: sticky; top: 20px; align-self: start; display: grid; justify-items: center; gap: 9px; }
.share-rail > span { color: var(--r24h-muted); font-size: 0.6rem; font-weight: 850; letter-spacing: 0.08em; writing-mode: vertical-rl; text-transform: uppercase; }
.share-button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff !important; font-size: 0.75rem; font-weight: 900; text-decoration: none; transition: transform 160ms ease; }
.share-button:hover { transform: translateY(-2px); }
.share-button--whatsapp { background: #159c57; }
.share-button--facebook { background: #1877f2; }
.share-button--x { background: #0b0b0c; }
.share-button--copy { background: var(--r24h-muted); }
.copy-link.is-copied { background: var(--r24h-success); }
.entry-content { min-width: 0; font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.82; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.entry-content h3 { margin-top: 1.6em; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.entry-content blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 5px solid var(--r24h-brand); border-radius: 0 var(--r24h-radius) var(--r24h-radius) 0; background: var(--r24h-sky); color: var(--r24h-ink); font-size: 1.12em; font-weight: 650; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content iframe { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--r24h-line); text-align: left; }
.entry-content .alignwide { width: min(1100px, calc(100vw - 40px)); max-width: none; }
.entry-content .alignfull { position: relative; left: 50%; width: 100vw; max-width: none; margin-left: -50vw; }
.entry-footer { max-width: 860px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--r24h-line); }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-list a { padding: 5px 10px; border: 1px solid var(--r24h-line); border-radius: 999px; color: var(--r24h-ink-soft); font-size: 0.72rem; text-decoration: none; }
.tag-list a:hover { border-color: var(--r24h-brand); color: var(--r24h-brand); }
.related-posts { margin-top: 58px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-navigation-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 42px 0; padding: 25px 0; border-block: 1px solid var(--r24h-line); }
.post-navigation-custom > div { min-width: 0; }
.post-navigation-custom__next { text-align: right; }
.post-navigation-custom span { display: block; margin-bottom: 5px; color: var(--r24h-muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.post-navigation-custom a { color: var(--r24h-ink); font-weight: 850; line-height: 1.25; text-decoration: none; }

/* Paginas, comentarios e vazios */
.page-header { margin-bottom: 26px; }
.page-header h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.page-featured-media { margin-bottom: 30px; }
.page-featured-media img { width: 100%; border-radius: var(--r24h-radius-lg); }
.page-main--full .standard-page > .entry-content { max-width: none; }
.r24h-canvas { margin: 0; }
.comments-area { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--r24h-line); }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 18px; padding: 20px; border: 1px solid var(--r24h-line); border-radius: var(--r24h-radius); }
.comment-author { display: flex; align-items: center; gap: 9px; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 0.75rem; }
.no-results { display: grid; justify-items: start; padding: 44px; border-radius: var(--r24h-radius-lg); background: var(--r24h-surface); }
.empty-state-icon { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--r24h-ink), var(--r24h-brand)); color: #fff; font-family: var(--r24h-display); }
.error-main { display: grid; align-items: center; min-height: 66vh; padding: 60px 0; text-align: center; }
.error-404 { display: grid; justify-items: center; }
.error-code { color: var(--r24h-sky); font-family: var(--r24h-display); font-size: clamp(7rem, 22vw, 17rem); line-height: 0.75; letter-spacing: -0.08em; }
.error-404 h1 { margin-top: 14px; font-size: clamp(2rem, 5vw, 4rem); }
.error-404 p { max-width: 650px; color: var(--r24h-muted); }
.error-404 .search-form { max-width: 680px; margin: 12px 0 22px; }

/* Rodape */
.site-footer { background: #071a2d; color: #b9c8d7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 0.8fr); gap: clamp(28px, 4vw, 58px); padding-block: 62px; }
.wordmark--footer { color: #fff; font-size: 2.15rem; }
.wordmark--footer:hover { color: #fff; }
.footer-brand p { max-width: 370px; margin-top: 18px; }
.site-footer .widget { padding: 0; overflow: visible; border: 0; background: transparent; }
.site-footer .widget-title { color: #fff; }
.site-footer .widget a, .site-footer a { color: #d8e4ef; }
.site-footer .widget a:hover, .site-footer a:hover { color: #fff; }
.footer-default-links, .footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-default-links li, .footer-menu li { margin-bottom: 8px; }
.social-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.social-menu a { display: grid; place-items: center; min-height: 38px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; font-size: 0.72rem; font-weight: 800; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.11); }
.footer-bottom__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 0.7rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 18px; }

@media (max-width: 1180px) {
	.site-shell { width: min(calc(100% - 36px), var(--r24h-shell)); }
	.header-ad { width: min(58%, 700px); }
	.primary-menu a, .main-navigation > ul > li > a { padding-inline: 9px; font-size: 0.66rem; }
	.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr); }
	.hero-lead { min-height: 510px; }
	.section-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.news-card--feature { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); }
	.news-card--feature .news-card__media { aspect-ratio: 16 / 8; }
	.footer-grid { grid-template-columns: 1.2fr repeat(3, 0.8fr); gap: 26px; }
}

@media (max-width: 960px) {
	.brand-bar__inner { min-height: 100px; }
	.header-ad { display: none; }
	.menu-toggle { display: flex; }
	.nav-bar__inner { align-items: center; justify-content: space-between; }
	.main-navigation { position: fixed; top: 0; bottom: 0; left: 0; z-index: 999; width: min(88vw, 390px); padding: 76px 18px 24px; overflow-y: auto; visibility: hidden; background: var(--r24h-paper); box-shadow: var(--r24h-shadow-lg); transform: translateX(-104%); transition: transform 220ms ease, visibility 220ms ease; }
	.main-navigation.is-open { visibility: visible; transform: translateX(0); }
	body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 900; background: rgba(1, 10, 18, 0.62); }
	.primary-menu, .main-navigation > ul { height: auto; display: grid; align-items: stretch; gap: 4px; }
	.primary-menu > li, .main-navigation > ul > li { display: block; }
	.primary-menu a, .main-navigation > ul > li > a { min-height: 46px; padding: 10px 12px; border-radius: 8px; font-size: 0.82rem; }
	.primary-menu > li > a::after { display: none; }
	.primary-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 16px; visibility: visible; opacity: 1; border: 0; box-shadow: none; transform: none; }
	.nav-tools { z-index: 1000; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-lead { min-height: 500px; }
	.hero-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
	.content-with-sidebar, .content-with-sidebar--left { grid-template-columns: 1fr; }
	.content-with-sidebar--left > .archive-content, .content-with-sidebar--left > .single-content-column, .content-with-sidebar--left > .page-content-column, .content-with-sidebar--left > .widget-area { grid-column: 1; grid-row: auto; }
	.widget-area { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
	.article-layout { grid-template-columns: 1fr; }
	.share-rail { position: static; display: flex; justify-items: initial; }
	.share-rail > span { align-self: center; writing-mode: initial; }
	.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.site-shell { width: min(calc(100% - 28px), var(--r24h-shell)); }
	.utility-links { display: none; }
	.utility-bar__inner { justify-content: center; }
	.brand-bar__inner { justify-content: center; text-align: center; }
	.wordmark { font-size: clamp(2rem, 12vw, 2.75rem); }
	.brand-tagline { font-size: 0.58rem; letter-spacing: 0.1em; }
	.ticker-label { padding-inline: 12px; margin-left: -8px; }
	.ticker-track a { max-width: 78vw; padding-inline: 15px; }
	.front-page-main { padding-top: 28px; }
	.top-stories, .category-section, .latest-section { margin-bottom: 42px; }
	.section-heading { align-items: flex-end; gap: 14px; }
	.section-heading h1, .section-heading h2 { font-size: 1.65rem; }
	.section-link { font-size: 0.67rem; }
	.hero-lead { min-height: 470px; }
	.hero-lead__overlay { padding: 23px; }
	.hero-lead__overlay h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
	.hero-lead__overlay p { display: none; }
	.hero-secondary { grid-template-columns: 1fr; }
	.hero-mini { min-height: 120px; grid-template-columns: 39% 1fr; }
	.section-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-card--feature { grid-column: span 2; display: block; }
	.news-card--feature .news-card__media { aspect-ratio: 16 / 10; }
	.latest-grid { grid-template-columns: 1fr; }
	.archive-header { padding: 26px 22px; }
	.archive-card { grid-template-columns: 150px 1fr; gap: 15px; padding-bottom: 21px; margin-bottom: 21px; }
	.archive-card h2 { font-size: 1.08rem; }
	.archive-card p { display: none; }
	.archive-card__meta .updated-label { display: none; }
	.widget-area { grid-template-columns: 1fr; }
	.entry-title { font-size: clamp(2rem, 10vw, 3.35rem); }
	.entry-byline { align-items: flex-start; flex-direction: column; }
	.entry-featured-media { margin-inline: -14px; }
	.entry-featured-image { border-radius: 0; }
	.related-grid { grid-template-columns: 1fr; }
	.post-navigation-custom { grid-template-columns: 1fr; }
	.post-navigation-custom__next { text-align: left; }
	.footer-grid { grid-template-columns: 1fr; padding-block: 46px; }
	.footer-bottom__inner { align-items: flex-start; flex-direction: column; padding-block: 20px; }
}

@media (max-width: 480px) {
	.site-shell { width: min(calc(100% - 22px), var(--r24h-shell)); }
	.nav-bar__inner { width: 100%; padding-inline: 7px; }
	.header-search__inner { align-items: stretch; flex-direction: column; }
	.search-form { align-items: stretch; flex-direction: column; }
	.hero-lead { min-height: 430px; border-radius: 18px; }
	.hero-mini { border-radius: 14px; }
	.section-post-grid { grid-template-columns: 1fr; }
	.news-card--feature { grid-column: auto; }
	.news-list-item { grid-template-columns: 118px 1fr; gap: 12px; }
	.news-list-item h3 { font-size: 0.92rem; }
	.archive-card { grid-template-columns: 118px 1fr; gap: 12px; }
	.archive-card .category-badge { display: none; }
	.archive-card h2 { margin-top: 0; font-size: 0.98rem; }
	.entry-content { font-size: 1rem; }
	.share-button { width: 40px; height: 40px; }
	.error-code { font-size: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (prefers-contrast: more) {
	:root { --r24h-line: #748094; --r24h-muted: #475467; }
	.category-badge, .button, .wp-element-button { border: 2px solid currentColor; }
}

@media print {
	.utility-bar, .brand-bar, .nav-bar, .news-ticker, .widget-area, .share-rail, .related-posts, .post-navigation-custom, .comments-area, .site-footer, .breadcrumbs { display: none !important; }
	.site-main { padding: 0; }
	.content-with-sidebar, .article-layout { display: block; }
	.entry-title { font-size: 30pt; }
	.entry-content { max-width: none; color: #000; font-size: 12pt; }
	a { color: #000; text-decoration: none; }
}
