/*
Theme Name: Quórum
Theme URI: https://revistaquorum.com.br
Author: Revista Quórum
Description: Tema editorial da Revista Quórum — notícias, informação e análise da política brasileira.
Version: 1.8.0
Requires at least: 6.0
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: quorum
*/

:root {
	--q-ink: #16181D;
	--q-ink-soft: #3A3F4A;
	--q-muted: #5A606B;
	--q-navy: #14213D;
	--q-navy-deep: #0E1729;
	--q-blue: #0B4F8A;
	--q-accent: #C2410C;
	--q-ground: #FBFBF9;
	--q-paper: #FFFFFF;
	--q-line: #E2E2DC;
	--q-placeholder: #E4E6EB;
	--q-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--q-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--q-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--q-wrap: 1240px;
	--q-link: #14213D;
	--q-rule: #14213D;
	--q-field: #858B97;
	--q-fs: 21px;
	color-scheme: light;
}

/* Tema escuro: automático pelo aparelho ou escolhido no botão da lua */
:root[data-theme="dark"] {
	--q-ink: #E7EAF0;
	--q-ink-soft: #C3C9D4;
	--q-muted: #9CA4B3;
	--q-ground: #0E131D;
	--q-paper: #151C2A;
	--q-line: #273044;
	--q-placeholder: #1D2536;
	--q-blue: #8DBBEA;
	--q-link: #E2E8F3;
	--q-rule: #4A5876;
	--q-field: #5C6880;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--q-ink: #E7EAF0;
		--q-ink-soft: #C3C9D4;
		--q-muted: #9CA4B3;
		--q-ground: #0E131D;
		--q-paper: #151C2A;
		--q-line: #273044;
		--q-placeholder: #1D2536;
		--q-blue: #8DBBEA;
		--q-link: #E2E8F3;
		--q-rule: #4A5876;
		color-scheme: dark;
	}
}

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

body {
	margin: 0;
	background: var(--q-ground);
	color: var(--q-ink);
	font-family: var(--q-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--q-link); text-decoration: none; }
a:hover, a:focus { color: var(--q-blue); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--q-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: var(--q-paper); padding: 12px 16px; color: var(--q-link); font-weight: 600;
}

.q-wrap { max-width: var(--q-wrap); margin: 0 auto; padding: 0 24px; }

/* Barra superior */
.q-topbar { background: var(--q-paper); border-bottom: 1px solid var(--q-line); font-size: 13px; color: var(--q-muted); }
.q-topbar .q-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.q-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* Cabeçalho */
.q-header { background: var(--q-paper); border-bottom: 3px solid var(--q-rule); }
.q-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 28px; }
.q-logo { margin: 0; font-family: var(--q-serif); font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -1.5px; }
.q-logo a { color: var(--q-link); }
.q-logo a:hover { text-decoration: none; }
.q-brand .custom-logo { max-height: 90px; width: auto; }
.q-tagline { margin: 0; font-size: 15px; color: var(--q-muted); }

.q-nav { margin-top: 18px; border-top: 1px solid var(--q-line); }
.q-nav ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.q-nav a { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--q-link); }
.q-nav .current-menu-item > a, .q-nav .current-cat > a { color: var(--q-accent); }

/* Ao vivo */
.q-live { background: var(--q-navy); color: #fff; font-size: 14px; }
.q-live .q-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.q-live a { color: #fff; text-decoration: underline; }
.q-live-tag { font-family: var(--q-mono); font-size: 12px; font-weight: 500; letter-spacing: 1px; background: var(--q-accent); padding: 4px 8px; }

/* Rótulos */
.q-kicker { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--q-blue); }
.q-kicker--accent { color: var(--q-accent); }
.q-section-title { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--q-rule); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--q-link); }
.q-meta { font-size: 13px; color: var(--q-muted); }
.q-meta a { color: var(--q-muted); }

/* Home */
.q-main { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.q-row { display: flex; flex-wrap: wrap; gap: 40px; }
.q-col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.q-col-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.q-thumb { background: var(--q-placeholder); overflow: hidden; }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.q-thumb { position: relative; }
.q-thumb--art img { object-position: 0% 100%; }
.q-thumb-source { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--q-link); font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 4px 8px; }
.q-thumb--empty { display: flex; align-items: flex-end; padding: 16px; background: var(--q-navy); }
.q-thumb-label { font-family: var(--q-serif); font-size: 22px; font-weight: 600; color: #fff; line-height: 1.2; }
.q-thumb--hero { aspect-ratio: 16 / 9; }
.q-thumb--card { aspect-ratio: 3 / 2; }

.q-hero-title { margin: 0; font-family: var(--q-serif); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -.5px; }
.q-hero-title a, .q-card-title a, .q-analysis-title a { color: var(--q-ink); }
.q-dek { margin: 0; font-size: 18px; line-height: 1.55; color: var(--q-ink-soft); }

.q-analysis { background: var(--q-paper); border: 1px solid var(--q-line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.q-analysis-title { margin: 0; font-family: var(--q-serif); font-weight: 600; font-size: 28px; line-height: 1.2; }
.q-analysis p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--q-ink-soft); }
.q-byline { display: flex; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--q-line); font-size: 13px; }
.q-byline img { width: 44px; height: 44px; border-radius: 50%; }
.q-byline strong { display: block; font-weight: 600; }
.q-byline span { color: var(--q-muted); }

.q-latest { list-style: none; margin: 0; padding: 0; }
.q-latest li { border-bottom: 1px solid var(--q-line); }
.q-latest a { display: flex; gap: 14px; padding: 14px 0; color: var(--q-ink); }
.q-latest time { flex: none; font-family: var(--q-mono); font-size: 13px; color: var(--q-muted); padding-top: 2px; }
.q-latest span { font-size: 15px; line-height: 1.4; font-weight: 500; }

.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 12px; }
.q-card { display: flex; flex-direction: column; gap: 10px; }
.q-card-title { margin: 0; font-family: var(--q-serif); font-weight: 600; font-size: 22px; line-height: 1.25; }
.q-card .q-kicker { font-size: 12px; }

.q-numbers { background: var(--q-navy); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.q-numbers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.q-numbers h2 { margin: 4px 0 0; font-family: var(--q-serif); font-weight: 600; font-size: 34px; }
.q-numbers .q-kicker { color: #F4A261; }
.q-numbers a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; }
.q-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.q-stat { border-top: 1px solid #3A4A6B; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.q-stat-value { font-family: var(--q-mono); font-size: 40px; font-weight: 500; line-height: 1.1; }
.q-stat-label { font-size: 14px; line-height: 1.45; color: #C9D0DD; }

.q-explainers { list-style: none; margin: 0; padding: 0; counter-reset: explica; }
.q-explainers li { counter-increment: explica; }
.q-explainers a { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--q-line); color: var(--q-ink); }
.q-explainers a::before { content: counter(explica); flex: none; width: 36px; font-family: var(--q-serif); font-size: 40px; font-weight: 700; color: var(--q-accent); }
.q-explainers strong { display: block; font-family: var(--q-serif); font-size: 24px; font-weight: 600; line-height: 1.25; }
.q-explainers .q-ex-body { display: block; }
.q-explainers .q-ex-sub { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--q-ink-soft); }

.q-newsletter { background: var(--q-paper); border: 1px solid var(--q-line); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; }
.q-newsletter h2 { margin: 0; font-family: var(--q-serif); font-weight: 600; font-size: 28px; line-height: 1.2; }
.q-newsletter p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--q-ink-soft); }
.q-newsletter input[type="email"], .q-newsletter input[type="text"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--q-field); font: inherit; font-size: 16px; }
.q-newsletter button, .q-newsletter input[type="submit"], .q-button {
	height: 48px; padding: 0 20px; background: var(--q-navy); color: #fff; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.q-newsletter button:hover, .q-newsletter input[type="submit"]:hover, .q-button:hover { background: var(--q-blue); }
.q-note { font-size: 13px; color: var(--q-muted); }

/* Blocos por editoria */
.q-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.q-block-list { list-style: none; margin: 8px 0 0; padding: 0; }
.q-block-list li { padding: 12px 0; border-bottom: 1px solid var(--q-line); display: flex; flex-direction: column; gap: 6px; }
.q-block-list li > a:not([aria-hidden]) { font-family: var(--q-serif); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--q-ink); }
.q-block-list .q-thumb { margin-bottom: 4px; }
.q-section-title a { color: var(--q-link); }

/* Artigo */
.q-article { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.q-article-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.q-article-title { margin: 0; font-family: var(--q-serif); font-weight: 700; font-size: 46px; line-height: 1.1; letter-spacing: -.5px; }
.q-article-dek { margin: 0; font-size: 21px; line-height: 1.5; color: var(--q-ink-soft); }
.q-article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--q-line); border-bottom: 1px solid var(--q-line); }
.q-article-figure { margin: 0 0 32px; }
.q-article-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--q-muted); }

.q-content { font-family: var(--q-serif); font-size: var(--q-fs); line-height: 1.65; }
.q-content > * { margin-top: 0; margin-bottom: 1.1em; }
.q-content p, .q-content li { hyphens: manual; }
.q-content h2, .q-content h3 { font-family: var(--q-sans); line-height: 1.25; margin-top: 1.6em; margin-bottom: .6em; }
.q-content h2 { font-size: 26px; }
.q-content h3 { font-size: 21px; }
.q-content a { color: var(--q-blue); text-decoration: underline; }
.q-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--q-accent); font-style: italic; color: var(--q-ink-soft); }
.q-content figure { margin-left: 0; margin-right: 0; }
.q-content figcaption, .wp-caption-text { font-family: var(--q-sans); font-size: 14px; color: var(--q-muted); }
.q-content table { width: 100%; border-collapse: collapse; font-family: var(--q-sans); font-size: 15px; display: block; overflow-x: auto; }
.q-content th, .q-content td { padding: 10px 12px; border-bottom: 1px solid var(--q-line); text-align: left; }
.q-content .wp-block-pullquote { border-top: 3px solid var(--q-navy); border-bottom: 3px solid var(--q-rule); }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.q-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; padding: 0; list-style: none; }
.q-tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--q-line); font-size: 13px; font-weight: 500; }

.q-author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--q-paper); border: 1px solid var(--q-line); margin-top: 40px; }
.q-author-box img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.q-author-box h2 { margin: 0 0 6px; font-size: 18px; }
.q-author-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--q-ink-soft); }

.q-article-nl { margin-top: 40px; }
.q-article-nl .q-newsletter { align-self: auto; }

/* Ferramentas do leitor */
.q-topbar .q-wrap { gap: 8px 16px; }
.q-topbar .q-wrap { flex-wrap: nowrap; justify-content: flex-start; padding-top: 4px; padding-bottom: 4px; }
.q-topbar .q-wrap > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.q-topbar .q-wrap > ul, .q-topbar .q-wrap > nav { margin-left: auto; }
.q-topbar-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.q-topbar .q-wrap > span + .q-topbar-tools { margin-left: auto; }
.q-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--q-ink); cursor: pointer; list-style: none; }
.q-icon-btn:hover { background: var(--q-placeholder); }
.q-icon-btn::-webkit-details-marker { display: none; }
.q-theme-toggle .q-ico-sun { display: none; }
.q-theme-toggle[aria-pressed="true"] .q-ico-sun { display: block; }
.q-theme-toggle[aria-pressed="true"] .q-ico-moon { display: none; }
.q-search { position: relative; }
.q-search > summary { list-style: none; }
.q-search-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(420px, calc(100vw - 32px)); background: var(--q-paper); border: 1px solid var(--q-line); padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.q-search-form input[type="search"] { background: var(--q-paper); color: var(--q-ink); }

.q-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-tool-group { display: inline-flex; }
.q-tool { display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--q-line); background: var(--q-paper); color: var(--q-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 22px; }
.q-tool-group .q-tool { border-radius: 0; }
.q-tool-group .q-tool:first-child { border-radius: 22px 0 0 22px; }
.q-tool-group .q-tool:last-child { border-radius: 0 22px 22px 0; border-left: 0; }
.q-tool--big { font-size: 17px; }
.q-tool:hover, .q-tool[aria-pressed="true"] { background: var(--q-navy); border-color: var(--q-navy); color: #fff; }

.q-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000; pointer-events: none; }
.q-progress span { display: block; height: 100%; background: var(--q-accent); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .q-progress { top: 32px; }

.q-totop { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--q-navy); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.q-totop.is-visible { opacity: 1; visibility: visible; transform: none; }

.q-new { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--q-accent); padding: 1px 6px; margin-right: 4px; vertical-align: 1px; }

/* Ajustes do tema escuro */
:root[data-theme="dark"] .q-share-btn:not(.q-share-whatsapp):not(.q-share-story), :root[data-theme="dark"] .q-newsletter input { background: var(--q-paper); color: var(--q-ink); }
:root[data-theme="dark"] .q-button:not(.q-button--ghost), :root[data-theme="dark"] .q-search-form .q-button { background: #2B4A85; }
:root[data-theme="dark"] .q-thumb--art img, :root[data-theme="dark"] .q-column-banner { filter: brightness(.9); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .q-share-btn:not(.q-share-whatsapp):not(.q-share-story), :root:not([data-theme="light"]) .q-newsletter input { background: var(--q-paper); color: var(--q-ink); }
	:root:not([data-theme="light"]) .q-button:not(.q-button--ghost) { background: #2B4A85; }
}
.q-share-whatsapp, :root[data-theme="dark"] .q-share-whatsapp { background: #1F8F4A; color: #fff; }
@media (prefers-reduced-motion: reduce) { .q-totop { transition: none; } }

/* Impressão: só o texto */
@media print {
	.q-topbar, .q-nav, .q-live, .q-share, .q-tools, .q-totop, .q-progress, .q-article-nl, .q-related, .q-footer, .q-comments { display: none !important; }
	body { background: #fff; color: #000; }
	.q-article { padding: 0; max-width: none; }
	.q-content { font-size: 12pt; }
	.q-content a::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* Compartilhar */
.q-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-share--bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--q-line); }
.q-share-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--q-muted); margin-right: 4px; }
.q-share-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--q-line); background: var(--q-paper); color: var(--q-link); cursor: pointer; padding: 0; }
.q-share-btn:hover, .q-share-btn:focus-visible { background: var(--q-navy); color: #fff; text-decoration: none; }
.q-share-whatsapp { background: #1F8F4A; border-color: #1F8F4A; color: #fff; }
.q-share-whatsapp:hover { background: #17733B; }
.q-share-copy.is-done { background: var(--q-navy); color: #fff; }
.q-share-ok { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; white-space: nowrap; font-size: 12px; color: var(--q-ink); }

.q-share-story { background: #C13584; border-color: #C13584; color: #fff; }
.q-share-story:hover { background: #9E2B6C; border-color: #9E2B6C; }
.q-share-story.is-busy { opacity: .6; cursor: progress; }
.q-button--ghost { background: transparent; color: var(--q-ink); border: 1px solid var(--q-line); display: inline-flex; align-items: center; text-decoration: none; }
.q-button--ghost:hover { background: var(--q-placeholder); color: var(--q-ink); text-decoration: none; }
.q-story-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.q-story-dialog::backdrop { background: rgba(8, 12, 20, .72); }
.q-story-box { background: var(--q-paper); color: var(--q-ink); padding: 20px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto; }
.q-story-box h2 { margin: 0; font-size: 18px; }
.q-story-preview { width: 100%; max-height: 52vh; object-fit: contain; background: #14213D; }
.q-story-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--q-ink-soft); }
.q-story-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.q-story-actions .q-button { height: 44px; padding: 0 18px; font-size: 15px; text-decoration: none; }
.q-story-actions a.q-button--ghost { color: var(--q-ink); }

/* Mais lidas, erro, WhatsApp */
.q-most-list { list-style: none; margin: 0; padding: 0; counter-reset: most; }
.q-most-list li { counter-increment: most; border-bottom: 1px solid var(--q-line); }
.q-most-list a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; color: var(--q-ink); font-size: 15px; line-height: 1.4; font-weight: 500; }
.q-most-list a::before { content: counter(most); flex: none; width: 22px; font-family: var(--q-serif); font-size: 26px; font-weight: 700; color: var(--q-accent); line-height: 1; }
.q-report { margin: 20px 0 0; font-size: 14px; color: var(--q-muted); }
.q-report a { color: var(--q-muted); text-decoration: underline; }
.q-wa-cta { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 16px; border: 1px solid #1F8F4A; background: rgba(31,143,74,.06); color: var(--q-ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.q-wa-cta svg { flex: none; color: #1F8F4A; }
.q-wa-cta:hover { background: rgba(31,143,74,.12); text-decoration: none; color: var(--q-ink); }

/* Comentários */
.q-comments { margin-top: 48px; font-size: 16px; }
.q-comments ol { list-style: none; padding: 0; }
.q-comments .children { padding-left: 24px; }
.q-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--q-line); }
.q-comments textarea, .q-comments input[type="text"], .q-comments input[type="email"], .q-comments input[type="url"] { width: 100%; padding: 10px 12px; border: 1px solid var(--q-field); font: inherit; }
.q-comments .submit { height: 48px; padding: 0 20px; background: var(--q-navy); color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

.q-related { max-width: var(--q-wrap); margin: 0 auto; padding: 0 24px 64px; }

/* Arquivo */
.q-archive-head { padding: 40px 0 8px; }
.q-archive-head h1 { margin: 0; font-family: var(--q-serif); font-size: 44px; line-height: 1.1; }
.q-archive-head p { margin: 8px 0 0; color: var(--q-ink-soft); }
.q-column-banner { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.q-archive-desc { margin-top: 8px; color: var(--q-ink-soft); }
.q-archive-search { margin-top: 16px; }
.q-empty { padding: 24px 0; }
.q-spacer { height: 64px; }
.q-list { list-style: none; margin: 0; padding: 0; }
.q-list-item { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--q-line); }
.q-list-item .q-thumb { flex: 0 1 280px; aspect-ratio: 3 / 2; }
.q-list-body { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.q-list-body p { margin: 0; color: var(--q-ink-soft); }
.q-pagination { margin-top: 32px; }
.q-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.q-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--q-line); background: var(--q-paper); font-weight: 600; }
.q-pagination .current { background: var(--q-navy); color: #fff; border-color: var(--q-link); }

.q-search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.q-search-form input[type="search"] { flex: 1 1 240px; height: 48px; padding: 0 14px; border: 1px solid var(--q-field); font: inherit; }

/* Rodapé */
.q-footer { background: var(--q-navy-deep); color: #C9D0DD; }
.q-footer .q-wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.q-footer-brand { max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.q-footer-brand .q-footer-logo { font-family: var(--q-serif); font-size: 36px; font-weight: 700; color: #fff; }
.q-footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.q-footer-cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; }
.q-footer-cols h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #fff; }
.q-footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.q-footer a { color: #C9D0DD; }
.q-footer a:hover { color: #fff; }
.q-copy { border-top: 1px solid #22304D; font-size: 13px; }
.q-copy .q-wrap { padding-top: 16px; padding-bottom: 16px; }

@media (max-width: 720px) {
	body { font-size: 16px; }
	.q-topbar .q-wrap > ul, .q-topbar .q-wrap > nav { display: none; }
	/* Celular: notícias em linhas compactas (foto pequena à esquerda) */
	.q-grid { grid-template-columns: 1fr; gap: 0; }
	.q-card { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--q-line); }
	.q-card > a[aria-hidden] { grid-row: 1 / span 2; }
	.q-card .q-thumb--card { aspect-ratio: 1 / 1; }
	.q-card .q-kicker { font-size: 11px; }
	.q-card-title { font-size: 18px; line-height: 1.3; }
	.q-block-list .q-thumb, .q-block-list li > a[aria-hidden] { display: none; }
	.q-blocks { gap: 8px; }
	.q-related .q-card > a[aria-hidden] { grid-row: 1; }
	.q-topbar .q-wrap > span + * + .q-topbar-tools, .q-topbar-tools { margin-left: auto; }
	.q-logo { font-size: 52px; }
	.q-nav ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 24px; padding-left: 2px; }
	.q-nav li { flex: none; }
	.q-hero-title { font-size: 32px; }
	.q-article { padding-top: 32px; }
	.q-article-title { font-size: 34px; }
	.q-article-dek { font-size: 19px; }
	:root { --q-fs: 19px; }
	.q-numbers { padding: 28px 20px; }
	.alignwide { margin-left: 0; margin-right: 0; }
	.q-author-box { flex-direction: column; }
}
/* Letreiro de últimas manchetes */
.q-ticker{background:var(--q-navy-deep);color:#fff;font-family:var(--q-sans);font-size:14px;border-bottom:1px solid rgba(255,255,255,.08)}
.q-ticker-in{display:flex;align-items:center;gap:14px;height:42px}
.q-ticker-tag{flex:none;background:var(--q-accent);color:#fff;font-weight:700;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:4px 8px;border-radius:2px}
.q-ticker-view{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.q-ticker-track{display:flex;width:max-content;animation:q-ticker var(--q-tk-dur,60s) linear infinite}
.q-ticker:hover .q-ticker-track,.q-ticker:focus-within .q-ticker-track,.q-ticker.is-paused .q-ticker-track{animation-play-state:paused}
.q-ticker-list{display:flex;margin:0;padding:0;list-style:none}
.q-ticker-list li{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.q-ticker-list li::after{content:"•";color:rgba(255,255,255,.35);margin:0 22px}
.q-ticker-list time{font-family:var(--q-mono);font-size:12px;color:#F5A97F}
.q-ticker-list a{color:#fff;text-decoration:none;font-weight:500}
.q-ticker-list a:hover,.q-ticker-list a:focus-visible{text-decoration:underline}
.q-ticker-btn{flex:none;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.q-ticker-btn:hover{border-color:#fff}
.q-ticker-btn .q-tk-play,.q-ticker.is-paused .q-tk-pause{display:none}
.q-ticker.is-paused .q-tk-play{display:block}
@keyframes q-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (max-width:640px){.q-ticker{font-size:13px}.q-ticker-in{height:38px;gap:10px}}
@media (prefers-reduced-motion:reduce){.q-ticker-track{animation:none}.q-ticker-view{overflow-x:auto;-webkit-mask-image:none;mask-image:none}.q-ticker-list[aria-hidden]{display:none}.q-ticker-btn{display:none}}