/* ==========================================================================
   PGWEB — folha de estilos do portal
   Estrutura: tokens · base · utilitários · cabeçalho · navegação · cards · home
              · listagens · matéria · componentes · rodapé · estados · responsivo
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --red: #d8161e;
  --red-dark: #b0121a;
  --ink: #111821;
  --ink-2: #2b3640;
  --muted: #5f6b77;
  --line: #e2e6ea;
  --line-2: #cfd6dd;
  --soft: #f4f6f8;
  --navy: #0b1a2b;
  --navy-2: #13263a;
  --white: #fff;
  --focus: #1a73e8;

  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;

  --max: 1240px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 10px 30px rgba(11, 26, 43, .10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, iframe, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }

/* ---------- Utilitários ---------- */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { 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: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.section { margin-top: 48px; }
.section-cta { margin-top: 32px; text-align: center; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #d6dee6; font-size: 13px; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-date { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sep { opacity: .5; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { color: #eef3f7; font-weight: 500; }
.topbar-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-social .icon { width: 16px; height: 16px; }
.topbar-links a.topbar-login { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s; }
.topbar-links a.topbar-login:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); text-decoration: none; }
.topbar-login .icon { width: 14px; height: 14px; }

/* ---------- Cabeçalho ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 0; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; justify-self: center; }
.brand-logo { width: auto; height: 56px; }
.brand-tag { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--radius);
  background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn .icon { width: 24px; height: 24px; }
.masthead-start { justify-self: start; display: flex; align-items: center; gap: 18px; min-width: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; min-width: 0; }
.live-badge:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(11, 26, 43, .08); }
.live-avatar { position: relative; flex: none; width: 36px; height: 36px; }
.live-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); }
.live-pulse { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.live-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--red); opacity: .6; animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { from { transform: scale(.8); opacity: .6; } to { transform: scale(2.1); opacity: 0; } }
.live-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.live-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.live-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.menu-toggle { justify-self: start; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.search-form { justify-self: end; display: flex; align-items: center; width: min(300px, 100%); height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.search-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 24, 33, .08); }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 14px; background: transparent; font-size: 15px; }
.search-form button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.search-link { display: none; justify-self: end; }

/* ---------- Navegação principal ---------- */
.primary-nav { border-top: 1px solid var(--line); background: #fff; }
.primary-nav-inner { position: relative; }
.nav-list { list-style: none; display: flex; justify-content: center; align-items: stretch; gap: 4px; }
.nav-list > li > a, .nav-more summary {
  position: relative; display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; cursor: pointer;
}
.nav-list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .18s ease; }
.nav-list > li > a:hover { color: var(--ink); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list > li > a[aria-current="page"] { color: var(--ink); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .icon { width: 16px; height: 16px; color: var(--red); transition: transform .18s ease; }
.nav-more details[open] summary .icon { transform: rotate(180deg); }
.nav-more-list { list-style: none; position: absolute; right: 0; top: 100%; z-index: 30; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.nav-more-list a { display: block; padding: 10px 12px; border-radius: var(--radius); font-size: 15px; font-weight: 500; }
.nav-more-list a:hover, .nav-more-list a[aria-current="page"] { background: var(--soft); color: var(--red); }

/* ---------- Drawer (menu completo) ---------- */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 26, .55); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: #fff; overflow-y: auto; padding: 16px 20px 32px; box-shadow: var(--shadow); animation: drawer-in .2s ease; }
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-title { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
.drawer-search { display: flex; height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 16px; }
.drawer-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; font-size: 16px; background: transparent; }
.drawer-search button { width: 48px; border: 0; background: transparent; }
.drawer-label { margin: 20px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.drawer-list { list-style: none; }
.drawer-list a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.drawer-list a:hover { color: var(--red); }
.drawer-list span { font-size: 13px; font-weight: 500; color: var(--muted); }
body.drawer-open { overflow: hidden; }

/* ---------- Títulos de seção ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.section-title { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.section-title a:hover { color: var(--red); }
h3.section-title { font-size: 22px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red); white-space: nowrap; }
.section-more:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.section-more .icon { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kicker { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
a.kicker:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.card-title { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.22; letter-spacing: -.005em; color: var(--ink); }
.card-title a { transition: color .15s ease; }
.card-title a:hover { color: var(--red); }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .kicker { position: relative; z-index: 2; }
.card-excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.meta-video { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-2); }
.meta-video .icon { width: 12px; height: 12px; color: var(--red); }
.play-badge { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(8, 16, 26, .78); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); pointer-events: none; }
.play-badge svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.media-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--navy-2); background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .06) 0, transparent 45%); color: #fff; }
.media-fallback-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 20px; }
.media-fallback-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #c9d4de; }

/* card grande (manchete) */
.card-lead { gap: 16px; }
.card-lead .card-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.015em; }
.card-lead .card-excerpt { font-size: 18px; line-height: 1.5; -webkit-line-clamp: 4; color: var(--ink-2); }
.card-lead .play-badge { width: 60px; height: 60px; left: 18px; bottom: 18px; }
.card-lead .play-badge svg { width: 26px; height: 26px; }
.card-lead .media-fallback-mark { width: 72px; height: 72px; font-size: 30px; }

/* card horizontal (listas) */
.card-horizontal { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.card-horizontal .card-title { font-size: 20px; }
.card-horizontal .play-badge { width: 32px; height: 32px; left: 8px; bottom: 8px; }
.card-horizontal .play-badge svg { width: 14px; height: 14px; }
.card-horizontal .media-fallback-mark { width: 36px; height: 36px; font-size: 15px; }
.card-horizontal .media-fallback-label { display: none; }

/* card horizontal sem imagem */
.card-horizontal.card-noimg { grid-template-columns: minmax(0, 1fr); }

/* card só texto */
.card-text { padding-top: 14px; border-top: 1px solid var(--line); gap: 4px; }
.card-text .card-title { font-size: 18px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Home ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; margin-top: 32px; }
.home-rail { border-left: 1px solid var(--line); padding-left: 32px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 4px; }
.rail-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.rail-head a { font-size: 14px; font-weight: 600; color: var(--red); }
.rail-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(216, 22, 30, .15); }
.rail-list { list-style: none; }
.rail-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail-list li:last-child { border-bottom: 0; }
.rail-list time { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.rail-list a { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.28; }
.rail-list a:hover { color: var(--red); }
.rail-cat { font-size: 12px; color: var(--muted); font-weight: 500; }
.sub-lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; border-top: 1px solid var(--line); }
.sub-lead .card-horizontal { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
.sub-lead .card-horizontal:nth-last-child(-n+2) { border-bottom: 0; }
.sub-lead .card-horizontal .card-title { font-size: 17px; }
.section-highlights { padding-top: 32px; border-top: 1px solid var(--line); }
.home-split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 28px; }
.video-grid > .card-lead { grid-row: span 3; }
.video-grid > .card-lead .card-title { font-size: clamp(22px, 2.2vw, 28px); }
.video-grid > .card-horizontal { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 0 0 16px; margin-bottom: 16px; }
.video-grid > .card-horizontal .card-title { font-size: 16px; }
.home-aside { display: flex; flex-direction: column; gap: 32px; }
.grid-text { gap: 0 24px; }
.grid-text .card-text { padding: 16px 0 20px; }
.grid-text .card-text .card-title { font-size: 19px; }
.editorias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.editoria { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editoria .section-head { margin-bottom: 0; }
.editoria .card-text .card-title { font-size: 17px; }

/* Mais lidas */
.ranked-list { list-style: none; counter-reset: rank; }
.ranked-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ranked-list li:last-child { border-bottom: 0; }
.rank { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: .9; color: var(--red); }
.ranked-list a { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.3; }
.ranked-list a:hover { color: var(--red); }
.rank-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ranked-compact .rank { font-size: 28px; }
.ranked-compact a { font-size: 16px; }

/* ---------- Publicidade ---------- */
/* Espaços publicitários (classes neutras "pgw-promo" para não serem ocultadas por bloqueadores). */
.pgw-promo { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pgw-promo.container { margin-top: 24px; margin-bottom: 8px; }
.pgw-promo-label { align-self: flex-start; text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a949e; }
.pgw-promo-stage { position: relative; width: 100%; overflow: hidden; border: 0; border-radius: 0; background: transparent; }
.pgw-promo-item { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.pgw-promo-item.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; z-index: 1; }
.pgw-promo-item img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.pgw-promo-sidebar { width: 100%; }
.home-aside .pgw-promo-sidebar { position: sticky; top: 24px; }

/* ---------- Breadcrumbs e listagens ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--line-2); }
.breadcrumbs a { color: var(--ink-2); font-weight: 500; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.listing-header { margin-top: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.listing-title { margin-top: 14px; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; }
.listing-title::before { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-bottom: 14px; }
.listing-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.listing-lead { margin-bottom: 8px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.listing-lead .card-lead-text .card-title { font-size: clamp(28px, 3vw, 38px); }
.listing-lead .card-lead-text { padding: 8px 0 0; }
.cat-list a[aria-current="page"] { color: var(--red); }
.listing-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.listing-aside { display: flex; flex-direction: column; gap: 32px; }
.timeline .card-horizontal:first-of-type { padding-top: 8px; }
.timeline-day { margin: 28px 0 0; padding: 8px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.timeline-day:first-child { margin-top: 0; }
.cat-list { list-style: none; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-weight: 600; }
.cat-list a:hover { color: var(--red); }
.cat-list span { font-size: 13px; font-weight: 500; color: var(--muted); }
.search-big { display: flex; gap: 12px; margin-top: 20px; max-width: 720px; }
.search-big input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 17px; }
.search-big input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 24, 33, .08); }
.search-big .btn { min-height: 52px; }
mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---------- Paginação ---------- */
.pagination { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination .page-current, .page-gap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.pagination a:hover { border-color: var(--ink); color: var(--red); }
.pagination .page-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-gap { border-color: transparent; color: var(--muted); }
.pagination-status { font-size: 13px; color: var(--muted); }
.pagination .icon { width: 16px; height: 16px; }

/* ---------- Matéria ---------- */
.article-header, .article-layout { max-width: 1080px; }
.article-header { margin-top: 28px; }
.article-header .kicker-lg { display: inline-block; margin-top: 22px; font-size: 13px; }
.article-title { max-width: 900px; margin-top: 10px; font-family: var(--serif); font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.018em; }
.article-deck { max-width: 780px; margin-top: 16px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 700; }
.byline .icon { width: 15px; height: 15px; }
.meta-sep { color: var(--line-2); }
.share { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s ease; }
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { color: #fff; border-color: transparent; }
.share-whatsapp:hover { background: #1fa855; }
.share-facebook:hover { background: #1877f2; }
.share-x:hover { background: #111; }
.share-linkedin:hover { background: #0a66c2; }
.share-copy:hover { background: var(--navy); }
.share-copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .15s; }
.share-copied:not(:empty) { opacity: 1; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 56px; margin-top: 32px; }
.article-main { min-width: 0; }
.article-media { margin: 0 0 32px; }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.embed-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-body { font-family: var(--serif); font-size: 19px; line-height: 1.72; color: #1d2731; }
.article-body > * + * { margin-top: 1.2em; }
.article-body p { margin: 0; }
.article-body > * + p { margin-top: 1.1em; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { font-family: var(--sans); color: var(--ink); line-height: 1.25; letter-spacing: -.01em; margin-top: 1.9em; }
.article-body h2 { font-size: 26px; font-weight: 700; }
.article-body h3 { font-size: 22px; font-weight: 700; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 19px; font-weight: 700; }
.article-body a { color: var(--red-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--red); text-decoration-thickness: 2px; }
.article-body strong, .article-body b { font-weight: 700; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .45em; }
.article-body li::marker { color: var(--red); }
.article-body blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font-size: 22px; font-style: italic; line-height: 1.5; color: var(--ink); }
.article-body figure { margin: 2em 0; }
.article-body img { width: auto; max-width: 100%; height: auto; max-height: 78vh; margin-inline: auto; border-radius: var(--radius); background: var(--soft); }
.article-body figcaption { text-align: center; margin-top: 10px; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--muted); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body pre { overflow-x: auto; background: var(--soft); padding: 16px; border-radius: var(--radius); font-size: 15px; }
.article-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--soft); font-weight: 700; }
.article-note { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.article-footer { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.article-footer > .share { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-more-cat { font-size: 15px; color: var(--muted); }
.article-more-cat a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }
.article-more-cat .icon { width: 16px; height: 16px; }
.article-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-adjacent a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s ease, box-shadow .15s ease; }
.article-adjacent a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.article-adjacent span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.article-adjacent span .icon { width: 14px; height: 14px; }
.article-adjacent strong { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.adjacent-next { text-align: right; align-items: flex-end; grid-column: 2; }
.article-aside { display: flex; flex-direction: column; gap: 32px; }
.aside-sticky { position: sticky; top: 24px; }
.related { padding-top: 8px; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 80px; background: var(--navy); color: #c3cfda; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, .8fr); gap: 48px; padding: 56px 0 40px; }
.brand-footer { align-items: flex-start; }
.brand-footer .brand-logo { height: 48px; }
.footer-brand p { margin-top: 18px; max-width: 380px; line-height: 1.65; color: #aebccb; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; }
.footer-social a:hover { background: rgba(255, 255, 255, .1); }
.footer-title { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: #c3cfda; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8fa0b1; }

/* ---------- Estados (404, vazio, erro) ---------- */
.state-page { max-width: 720px; margin-top: 64px; margin-bottom: 16px; text-align: center; }
.state-inline { margin: 24px 0; text-align: left; }
.state-code { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.state-title { margin-top: 10px; font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; }
.state-inline .state-title { font-size: 26px; }
.state-text { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.state-search { display: flex; gap: 10px; max-width: 520px; margin: 28px auto 0; }
.state-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 16px; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.state-inline .state-actions { justify-content: flex-start; }
.page-error { display: grid; min-height: 100vh; place-items: center; background: var(--soft); }
.error-page { max-width: 640px; padding: 48px 24px; text-align: center; }
.error-page h1 { margin: 10px 0 14px; font-family: var(--serif); font-size: 34px; line-height: 1.15; }
.error-page p { margin-bottom: 16px; color: var(--ink-2); }
.error-brand { display: inline-block; margin-bottom: 24px; font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--red); }
.error-code { font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.error-detail { text-align: left; white-space: pre-wrap; font-size: 12px; background: #fff; border: 1px solid var(--line); padding: 12px; overflow: auto; max-height: 50vh; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .nav-list { gap: 0; }
  .nav-list > li > a, .nav-more summary { padding: 0 10px; font-size: 13.5px; }
  .nav-list > li > a::after { left: 10px; right: 10px; }
}

@media (max-width: 1100px) {
  .grid-4, .editorias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-top, .home-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-rail { border-left: 0; padding-left: 0; }
  .sub-lead { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sub-lead .card-horizontal, .sub-lead .card-horizontal:nth-last-child(-n+2) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .sub-lead .card-horizontal:last-child { border-bottom: 0; }
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .article-header { max-width: 760px; }
  .article-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .aside-sticky, .home-aside .pgw-promo-sidebar { position: static; }
  .pgw-promo-sidebar { max-width: 360px; margin-inline: auto; }
  .listing-with-aside { grid-template-columns: minmax(0, 1fr); }
  .listing-aside { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-list { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list > li { scroll-snap-align: start; }
  .nav-more { display: none; }
  .search-form { display: none; }
  .search-link { display: inline-flex; }
  .menu-toggle-label { display: none; }
  .masthead-start { gap: 8px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-links a:not(.topbar-social):not(.topbar-login) { display: none; }
  .topbar-inner { min-height: 32px; font-size: 12px; }
  .byline .meta-sep { display: none; }
  .byline { flex-direction: column; align-items: flex-start; }
  .masthead { padding: 10px 0; gap: 8px; }
  .brand-logo { height: 40px; }
  .brand-tag { display: none; }
  .live-badge { padding: 0; border: 0; }
  .live-badge:hover { box-shadow: none; }
  .live-text { display: none; }
  .live-avatar, .live-avatar img { width: 32px; height: 32px; }
  .nav-list > li > a { min-height: 46px; padding: 0 12px; font-size: 14px; }
  .section { margin-top: 36px; }
  .section-title { font-size: 22px; }
  .home-top { margin-top: 20px; }
  .card-lead .card-title { font-size: 28px; }
  .card-lead .card-excerpt { font-size: 16px; }
  /* Em telas pequenas os grids viram listas compactas (miniatura à esquerda): leitura rápida com uma mão. */
  .grid-4, .grid-3, .editorias { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid > .card:not(.card-lead):not(.card-text), .video-grid > .card-horizontal { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); }
  .grid > .card:not(.card-lead):not(.card-text) .card-title, .video-grid > .card-horizontal .card-title { font-size: 17px; }
  .grid > .card .card-excerpt { display: none; }
  .grid > .card .play-badge { width: 28px; height: 28px; left: 6px; bottom: 6px; }
  .grid > .card .play-badge svg { width: 12px; height: 12px; }
  .grid > .card .media-fallback-label { display: none; }
  .grid > .card .media-fallback-mark { width: 30px; height: 30px; font-size: 13px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .video-grid > .card-lead { grid-row: auto; margin-bottom: 8px; }
  .editoria { gap: 0; margin-bottom: 28px; }
  .editoria .section-head { margin-bottom: 12px; }
  .editoria .card-text { padding: 12px 0; }
  .card-horizontal { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .card-horizontal .card-title { font-size: 17px; }
  .card-horizontal .card-excerpt { -webkit-line-clamp: 2; font-size: 14px; }
  .article-header { margin-top: 16px; }
  .article-deck { font-size: 18px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .share-label { display: none; }
  .share-btn { width: 44px; height: 44px; }
  .article-body { font-size: 18px; line-height: 1.68; }
  .article-body blockquote { font-size: 20px; padding-left: 16px; }
  .article-adjacent { grid-template-columns: minmax(0, 1fr); }
  .adjacent-next { grid-column: auto; text-align: left; align-items: flex-start; }
  .article-aside { grid-template-columns: minmax(0, 1fr); }
  .search-big { flex-direction: column; }
  .state-search { flex-direction: column; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .topbar-sep, .topbar-date > span:last-child { display: none; }
}

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

@media print {
  .topbar, .primary-nav, .search-form, .menu-toggle, .search-link, .share, .article-aside, .related, .article-adjacent, .site-footer, .drawer { display: none !important; }
  .pgw-promo { display: none !important; }
  .article-layout { display: block; }
  .article-body { font-size: 12pt; }
  a { text-decoration: none; }
}

/* Alinhamento definido no editor do painel */
.article-body .pg-align-center { text-align: center; }
.article-body .pg-align-right { text-align: right; }
