/* =========================================================================
   PAUTA — portal de notícias
   Sumário:
   1. Tokens e base
   2. Tipografia e utilitários
   3. Cabeçalho (topbar / masthead / nav)
   4. Busca e gaveta mobile
   5. Hero
   6. Tira de últimas + editorias + cartões
   7. Barra lateral e widgets
   8. Matéria (single) e páginas
   9. Rodapé
   10. Responsivo
   ========================================================================= */

/* 1. TOKENS E BASE ------------------------------------------------------- */
:root {
	--ink: #16202e;
	--ink-2: #243244;
	--brand: #c8102e;
	--brand-dark: #9d0a22;
	--paper: #ffffff;
	--wash: #f5f3ee;
	--wash-2: #efeae0;
	--line: #e5e2d9;
	--text: #1a1d24;
	--muted: #6a7180;
	--cat: var(--brand);

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--gap: 28px;
	--radius: 4px;
	--shadow: 0 1px 2px rgba(22, 32, 46, .06), 0 8px 24px rgba(22, 32, 46, .06);
	--shadow-lg: 0 18px 50px rgba(22, 32, 46, .18);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.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;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

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

/* 2. TIPOGRAFIA E UTILITÁRIOS ------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }

.post-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.post-meta .sep { opacity: .5; }

.cat-badge {
	display: inline-block;
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--cat);
	margin-bottom: 10px;
}
.cat-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--cat); margin-right: 7px; transform: translateY(0); }
.cat-badge:hover { color: var(--cat); opacity: .8; }

.live-flag {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--brand); color: #fff;
	font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	padding: 4px 9px; margin-bottom: 12px;
}
.live-flag .dot, .topbar-live .dot, .section-title .dot {
	width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block;
	box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pauta-pulse 1.8s infinite;
}
@keyframes pauta-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
	70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-title { font-size: 23px; display: flex; align-items: center; gap: 10px; text-transform: none; }
.section-title .bar { width: 6px; height: 22px; background: var(--cat); display: inline-block; }
.section-title .dot { background: var(--brand); }
.section-more { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.section-more:hover { color: var(--brand); }

/* capa gerada */
.cover-gen { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--wash); }

/* 3. CABEÇALHO ----------------------------------------------------------- */
.site-header { position: relative; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }

.topbar { background: var(--ink); color: rgba(255,255,255,.82); font-family: var(--sans); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-date { text-transform: capitalize; letter-spacing: .01em; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a:hover { color: #fff; }
.topbar-live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.topbar-live .dot { background: var(--brand); box-shadow: 0 0 0 0 rgba(200,16,46,.7); animation-name: pauta-pulse-red; }
@keyframes pauta-pulse-red {
	0% { box-shadow: 0 0 0 0 rgba(200,16,46,.7); }
	70% { box-shadow: 0 0 0 7px rgba(200,16,46,0); }
	100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

.masthead { background: var(--paper); }
.masthead-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 76px;
	gap: 12px;
}

/* marca */
.brand { display: flex; align-items: center; justify-content: center; }
.brand-wordmark, .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 14px; height: 30px; background: var(--brand); display: inline-block; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 34px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.custom-logo { max-height: 52px; width: auto; }

/* botões de ícone */
.icon-btn {
	display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
	background: none; border: 0; cursor: pointer; color: var(--ink);
	padding: 6px; font-family: var(--sans);
}
.icon-btn svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn-label { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.icon-btn:hover { color: var(--brand); }
.icon-btn:hover .icon-btn-label { color: var(--brand); }

/* navegação principal (desktop) */
.primary-nav { background: var(--paper); border-top: 1px solid var(--line); }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.primary-nav .menu-item > a {
	display: inline-block; padding: 13px 14px;
	font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .01em;
	color: var(--ink-2); position: relative;
}
.primary-nav .menu-item > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--cat, var(--brand));
	transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.primary-nav .menu-item > a:hover, .primary-nav .current-menu-item > a { color: var(--ink); }
.primary-nav .menu-item > a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav .menu-item-home > a { color: var(--brand); }

/* header fixo compacto */
.site-header.is-stuck .topbar { display: none; }
.site-header.is-stuck { position: sticky; top: 0; box-shadow: 0 4px 18px rgba(22,32,46,.08); animation: pauta-drop .3s ease; }
@keyframes pauta-drop { from { transform: translateY(-8px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.site-header.is-stuck .masthead-inner { min-height: 60px; }
.site-header.is-stuck .brand-name { font-size: 27px; }

/* 4. BUSCA E GAVETA ------------------------------------------------------ */
.search-overlay {
	position: fixed; left: 0; right: 0; top: 0; z-index: 60;
	background: var(--ink); color: #fff;
	transform: translateY(-100%); transition: transform .3s ease;
	padding: 26px 0;
}
.search-overlay.is-open { transform: translateY(0); }
.search-overlay-inner { display: flex; align-items: center; gap: 16px; }
.search-overlay .search-form { flex: 1; }
.search-overlay .search-close { color: #fff; }

.search-field-wrap { position: relative; display: flex; align-items: center; background: #fff; border-radius: var(--radius); overflow: hidden; }
.search-ico { width: 22px; height: 22px; stroke: var(--muted); stroke-width: 2; fill: none; stroke-linecap: round; position: absolute; left: 16px; }
.search-field {
	flex: 1; border: 0; padding: 16px 16px 16px 48px; font-family: var(--serif); font-size: 20px; color: var(--ink);
	background: transparent; min-width: 0;
}
.search-field:focus { outline: none; }
.search-submit {
	border: 0; background: var(--brand); color: #fff; padding: 0 22px; align-self: stretch;
	font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .03em; cursor: pointer;
}
.search-submit:hover { background: var(--brand-dark); }

.overlay-backdrop {
	position: fixed; inset: 0; z-index: 50; background: rgba(15,20,28,.55);
	opacity: 0; transition: opacity .28s ease;
}
.overlay-backdrop.is-open { opacity: 1; }

.mobile-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(86vw, 360px);
	background: var(--paper); transform: translateX(-100%); transition: transform .28s ease;
	display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mobile-drawer-title { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mobile-drawer nav { overflow-y: auto; padding: 8px 0; }
.mobile-drawer .menu { list-style: none; margin: 0; padding: 0; }
.mobile-drawer .menu-item > a {
	display: block; padding: 15px 20px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.mobile-drawer .menu-item > a:hover { background: var(--wash); color: var(--brand); padding-left: 24px; }
.mobile-drawer .menu-item-home > a { color: var(--brand); }

/* 5. HERO ---------------------------------------------------------------- */
.hero { padding: 30px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); }

.hero-lead { display: flex; flex-direction: column; }
.hero-lead-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.hero-lead-media .media-img, .hero-lead-media .cover-gen { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-lead-media:hover .media-img, .hero-lead-media:hover .cover-gen { transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,20,28,.5), rgba(15,20,28,0) 45%); }
.hero-lead-body { padding: 20px 0 0; }
.hero-lead-title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; margin: 4px 0 12px; font-weight: 800; }
.hero-lead-title a:hover { color: var(--brand); }
.hero-lead-excerpt { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-secondary { display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero-side .hero-secondary:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-secondary-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.hero-secondary-media .media-img, .hero-secondary-media .cover-gen { transition: transform .5s ease; }
.hero-secondary-media:hover .media-img, .hero-secondary-media:hover .cover-gen { transform: scale(1.05); }
.hero-secondary-title { font-size: 21px; line-height: 1.18; margin: 2px 0 8px; font-weight: 700; }
.hero-secondary-title a:hover { color: var(--brand); }

/* 6. TIRA DE ÚLTIMAS + EDITORIAS + CARDS --------------------------------- */
.latest-strip { padding: 26px 0; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--wash); }
.latest-strip .section-head { border-bottom: 0; margin-bottom: 14px; padding-bottom: 0; }
.latest-strip .section-title { color: var(--brand); }
.strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.strip-item { display: flex; flex-direction: column; gap: 10px; }
.strip-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.strip-title { font-size: 16px; line-height: 1.22; font-weight: 600; }
.strip-title a:hover { color: var(--brand); }
.strip-body .cat-badge { margin-bottom: 6px; font-size: 10.5px; }
.strip-body .post-meta { margin-top: 2px; }

.home-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; padding-top: 44px; padding-bottom: 50px; align-items: start; }
.home-main { min-width: 0; }
.editoria { margin-bottom: 46px; }
.editoria-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); }
.editoria-lead .card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; }
.editoria-lead .card-media .media-img, .editoria-lead .card-media .cover-gen { transition: transform .5s ease; }
.editoria-lead .card-media:hover .media-img, .editoria-lead .card-media:hover .cover-gen { transform: scale(1.04); }
.editoria-lead .card-title { font-size: 27px; line-height: 1.1; margin-bottom: 10px; font-weight: 700; }
.editoria-lead .card-title a:hover { color: var(--brand); }
.editoria-lead .card-excerpt { font-family: var(--serif); font-size: 17px; color: var(--ink-2); margin: 0 0 12px; }

.editoria-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.editoria-list-item { padding: 14px 0; border-top: 1px solid var(--line); }
.editoria-list-item:first-child { border-top: 0; padding-top: 0; }
.editoria-list-item a { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.25; display: block; margin-bottom: 5px; color: var(--ink); }
.editoria-list-item a:hover { color: var(--brand); }

/* cartões genéricos */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap) 32px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 13px; }
.card-media .media-img, .card-media .cover-gen { transition: transform .5s ease; }
.card-media:hover .media-img, .card-media:hover .cover-gen { transform: scale(1.04); }
.card-title { font-size: 21px; line-height: 1.18; margin-bottom: 9px; font-weight: 700; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin: 0 0 11px; }

/* 7. BARRA LATERAL E WIDGETS -------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 20px; }
.widget { background: var(--paper); }
.widget-title { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.widget ul li a { color: var(--ink-2); font-weight: 500; }
.widget ul li a:hover { color: var(--brand); }

.ranked { counter-reset: rank; }
.ranked-item { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ranked-item:last-child { border-bottom: 0; }
.ranked-num { font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--brand); line-height: 1; min-width: 28px; }
.ranked-item a { font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.ranked-item a:hover { color: var(--brand); }

.widget-newsletter { background: var(--ink); color: #fff; padding: 22px; border-radius: var(--radius); }
.widget-newsletter .widget-title { color: #fff; border-color: rgba(255,255,255,.25); }
.widget-newsletter p { font-size: 14.5px; color: rgba(255,255,255,.78); margin: 0 0 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 9px; }
.newsletter-form input { border: 0; border-radius: var(--radius); padding: 12px 14px; font-family: var(--sans); font-size: 15px; }
.newsletter-form button { border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; padding: 12px; font-weight: 700; font-family: var(--sans); cursor: pointer; }
.newsletter-form button:hover { background: var(--brand-dark); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tag-pill:hover { background: var(--cat); border-color: var(--cat); color: #fff; }

/* 8. MATÉRIA E PÁGINAS --------------------------------------------------- */
.page-head { padding: 36px 0 22px; }
.archive-head { border-bottom: 2px solid var(--ink); margin-bottom: 28px; position: relative; }
.archive-head .bar { width: 8px; height: 30px; background: var(--cat); display: inline-block; position: absolute; left: -20px; top: 38px; }
.page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.archive-desc { font-family: var(--serif); font-size: 18px; color: var(--muted); margin: 8px 0 0; }
.search-term { color: var(--brand); }

.archive-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; padding-top: 8px; padding-bottom: 50px; align-items: start; }
.archive-main { min-width: 0; }

.single { padding-bottom: 40px; }
.single-head { padding-top: 38px; }
.single-head-inner { max-width: 820px; margin: 0 auto; }
.single .cat-badge { font-size: 13px; }
.single-title { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.04; font-weight: 800; margin: 6px 0 16px; }
.single-standfirst { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink-2); font-style: italic; margin: 0 0 22px; }
.single-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar { border-radius: 50%; }
.byline-name { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.byline-sub { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.share { display: flex; align-items: center; gap: 9px; }
.share-label { font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--wash); display: inline-flex; align-items: center; justify-content: center; }
.share-btn svg { width: 18px; height: 18px; fill: var(--ink); }
.share-btn:hover { background: var(--cat); }
.share-btn:hover svg { fill: #fff; }

.single-media { margin: 26px auto 0; max-width: 980px; }
.single-media .media-img, .single-media .cover-gen { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.single-media figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 10px 2px 0; }

.single-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; padding-top: 34px; align-items: start; }
.single-content { max-width: 760px; min-width: 0; }
.single-content-wide { max-width: 820px; margin: 0 auto; }
.single-content p { font-family: var(--serif); font-size: 20px; line-height: 1.72; color: #23272f; margin: 0 0 24px; }
.single-content h2 { font-size: 30px; margin: 36px 0 14px; }
.single-content h3 { font-size: 24px; margin: 30px 0 12px; }
.single-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--cat); font-family: var(--serif); font-size: 24px; font-style: italic; color: var(--ink); }
.single-content img { border-radius: var(--radius); margin: 26px 0; }
.single-content ul, .single-content ol { font-family: var(--serif); font-size: 19px; line-height: 1.7; padding-left: 24px; margin: 0 0 24px; }

.single-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.single-tags .tags-label { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.single-tags a { display: inline-block; padding: 6px 12px; background: var(--wash); border-radius: 999px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.single-tags a:hover { background: var(--cat); color: #fff; }

.related { margin: 46px auto 0; max-width: 1100px; }

/* paginação */
.pagination, .comments-pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); font-family: var(--sans); font-weight: 600; color: var(--ink-2); border-radius: var(--radius); }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-numbers:hover:not(.current) { border-color: var(--brand); color: var(--brand); }

.empty-state { padding: 50px 0; text-align: center; color: var(--muted); }
.empty-state p { font-family: var(--serif); font-size: 20px; margin-bottom: 18px; }

/* comentários */
.comments-wrap { max-width: 820px; margin: 50px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.comments-title { font-size: 26px; margin-bottom: 22px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { font-family: var(--serif); }
.comment-form { display: grid; gap: 14px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-family: var(--sans); font-size: 16px;
}
.comment-form .submit { background: var(--brand); color: #fff; border: 0; padding: 13px 26px; font-family: var(--sans); font-weight: 700; border-radius: var(--radius); cursor: pointer; justify-self: start; }
.comment-form .submit:hover { background: var(--brand-dark); }

/* 9. RODAPÉ -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.74); margin-top: 20px; padding: 50px 0 30px; }
.footer-top { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-name { color: #fff; font-size: 30px; }
.footer-tagline { font-family: var(--serif); font-size: 17px; font-style: italic; color: rgba(255,255,255,.6); margin: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 34px 0; }
.footer-col .widget-title, .footer-col h2 { font-family: var(--serif); color: #fff; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 10px; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 7px 0; }
.footer-col a { color: rgba(255,255,255,.74); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-menu a { color: rgba(255,255,255,.7); font-size: 13.5px; }

/* 10. RESPONSIVO --------------------------------------------------------- */

/* botões mobile escondidos no desktop */
.nav-toggle, .search-toggle { display: none; }

@media (min-width: 921px) {
	.masthead-inner { grid-template-columns: auto 1fr auto; }
	.brand { justify-content: flex-start; }
	.search-toggle { display: inline-flex; grid-column: 3; }
	.masthead-inner > .brand { grid-column: 1; }
}

/* ---- MOBILE / TABLET (até 920px) ---- */
@media (max-width: 920px) {
	body { font-size: 16px; }

	/* topbar oculta no mobile para limpar o cabeçalho */
	.topbar { display: none; }

	/* navegação de editorias vira gaveta */
	.primary-nav { display: none; }

	/* CABEÇALHO MOBILE: [menu] [logo centro] [lupa] */
	.nav-toggle, .search-toggle { display: inline-flex; }
	.masthead-inner { grid-template-columns: 1fr auto 1fr; min-height: 64px; }
	.nav-toggle { justify-self: start; grid-column: 1; }
	.brand { grid-column: 2; justify-content: center; }
	.search-toggle { justify-self: end; grid-column: 3; }
	.brand-name { font-size: 27px; }
	.brand-mark { height: 26px; width: 12px; }
	.icon-btn-label { display: none; }
	.icon-btn svg { width: 26px; height: 26px; }

	/* hero empilha */
	.hero-grid { grid-template-columns: 1fr; gap: 24px; }
	.hero-lead-title { font-size: clamp(26px, 7vw, 36px); }
	.hero-side { grid-template-rows: none; }

	/* tira de últimas rola horizontalmente */
	.strip-grid { grid-auto-flow: column; grid-auto-columns: 70%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
	.strip-item { scroll-snap-align: start; }

	/* corpo da home e arquivos: sidebar abaixo */
	.home-body, .archive-body, .single-body { grid-template-columns: 1fr; gap: 36px; }
	.sidebar { position: static; }

	.editoria-grid { grid-template-columns: 1fr; gap: 22px; }
	.editoria-lead .card-title { font-size: 24px; }

	.card-grid, .card-grid-3 { grid-template-columns: 1fr 1fr; gap: 26px 20px; }

	.single-content p, .single-content ul, .single-content ol { font-size: 18px; }
	.footer-widgets { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---- CELULAR ESTREITO (até 560px) ---- */
@media (max-width: 560px) {
	.card-grid, .card-grid-3 { grid-template-columns: 1fr; gap: 26px; }
	.strip-grid { grid-auto-columns: 82%; }
	.single-meta { flex-direction: column; align-items: flex-start; }
	.footer-widgets { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.brand-name { font-size: 24px; }
	.hero { padding-top: 20px; }
}
