/* Portal Regional — site público */
:root {
  --primary: #4D186D;
  --ipe: #A85AE0;
  --ink: #160D20;
  --muted: #5E5468;
  --line: #E4DCEA;
  --mist: #F4F0F7;
  --paper: #FFFFFF;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ipe); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* Faixa superior e cabeçalho */
.topstrip { background: var(--primary); color: #fff; font-size: 13px; }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topstrip-links { display: flex; gap: 16px; }
.topstrip-links a { opacity: .9; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.masthead-row { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 60px; width: auto; }
.brand-name { font-weight: 800; font-size: clamp(22px, 3.2vw, 32px); letter-spacing: -.02em; color: var(--primary); line-height: 1; }
.brand:hover { text-decoration: none; }
.search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--mist); }
.search input { border: 0; background: transparent; padding: 9px 14px; font: inherit; width: 220px; min-width: 0; }
.search button { border: 0; background: var(--primary); color: #fff; font: 600 14px var(--sans); padding: 0 16px; cursor: pointer; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 12px; font: 600 14px var(--sans); cursor: pointer; }
.sections { border-top: 1px solid var(--line); }
.sections-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sections-row::-webkit-scrollbar { display: none; }
.sections a { white-space: nowrap; font-weight: 600; font-size: 15px; padding: 11px 10px; border-bottom: 3px solid transparent; }
.sections a:hover { text-decoration: none; border-bottom-color: var(--cat, var(--primary)); }
.breaking { background: var(--ipe); color: var(--ink); }
.breaking .wrap { padding-top: 10px; padding-bottom: 10px; font-weight: 600; }
.breaking strong { background: var(--ink); color: var(--ipe); padding: 2px 8px; border-radius: 3px; margin-right: 8px; font-size: 13px; }

/* Anúncios */
.ad { margin: 20px auto; text-align: center; }
.ad img { margin: 0 auto; }
.ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.ad-house a { display: block; border: 1px dashed #CBB7DD; border-radius: 8px; padding: 26px 16px; background: var(--mist); }
.ad-house strong { display: block; font-size: 18px; color: var(--primary); }
.ad-house span { font-size: 14px; color: var(--muted); }
.ad-house a:hover { text-decoration: none; border-color: var(--primary); }

/* Cartões */
.cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--cat, var(--primary)); margin-bottom: 6px; }
.card-title { font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.22; }
.card-title a:hover { color: var(--primary); }
.meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.card-media { display: block; overflow: hidden; border-radius: 6px; background: var(--mist); aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.img-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--mist), #E6DCEF); }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .card-title { font-size: 19px; }
.card-lead .card-title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.card-lead .card-media { aspect-ratio: 16 / 9; border-radius: 8px; }
.card-sub { font-size: 18px; color: #3A3045; margin: 10px 0 0; }
.card-row { flex-direction: row; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-row .card-media { flex: 0 0 136px; aspect-ratio: 4 / 3; }
.card-row .card-title { font-size: 17px; }

/* Topo da home: manchete + "Agora" */
.top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin-top: 24px; }
.agora { border-left: 1px solid var(--line); padding-left: 24px; }
.agora-title { font-size: 15px; font-weight: 800; margin: 0 0 12px; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.agora-title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ipe); box-shadow: 0 0 0 4px rgba(168,90,224,.28); }
.agora-list { list-style: none; margin: 0; padding: 0; position: relative; }
.agora-list::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px; background: var(--mist); }
.agora-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 8px 0; position: relative; }
.agora-list time { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--ipe); border-radius: 3px; text-align: center; height: fit-content; padding: 1px 0; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.agora-list a { font-weight: 600; font-size: 15px; line-height: 1.3; }
.more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--primary); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Blocos por editoria */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 16px; align-items: start; }
.side { position: sticky; top: 140px; }
.catblock { margin: 24px 0 8px; }
.catblock-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--cat, var(--primary)); padding-top: 10px; margin-bottom: 14px; }
.catblock-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--cat, var(--primary)); }
.catblock-head .more { margin: 0; color: var(--muted); font-weight: 600; }
.catblock-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.catblock-list .card-row:first-child { padding-top: 0; }
.catblock-list .card-row:last-child { border-bottom: 0; }
.block-title { font-size: 18px; font-weight: 800; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.mostread ol { margin: 0; padding: 0; list-style: none; counter-reset: mr; }
.mostread li { counter-increment: mr; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.3; }
.mostread li::before { content: counter(mr); font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }

/* Listagens */
.list-head { border-top: 4px solid var(--cat, var(--primary)); padding-top: 14px; margin: 24px 0 8px; }
.list-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--cat, var(--ink)); }
.list-head p { color: var(--muted); margin: 6px 0 0; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 28px 0; font-weight: 600; }
.pager a { border: 1px solid var(--line); padding: 8px 14px; border-radius: 6px; }
.empty, .empty-msg { padding: 48px 0; }
.empty h1 { font-size: 30px; margin: 0 0 8px; }
.btn { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 11px 18px; border-radius: 6px; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }

/* Matéria */
.article-layout { margin-top: 28px; }
.article { min-width: 0; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 4px 0 14px; }
.dek { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; color: #3A3045; margin: 0 0 18px; }
.byline { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; color: var(--muted); }
.byline p { margin: 0; }
.byline a { color: var(--ink); font-weight: 700; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { font: 600 13px var(--sans); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; color: var(--ink); cursor: pointer; }
.share .share-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.share a:hover { text-decoration: none; }
.article-figure { margin: 22px 0; }
.article-figure img { width: 100%; border-radius: 8px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.credit { white-space: nowrap; }
.article-body { font-family: var(--serif); font-size: 20px; line-height: 1.7; max-width: 700px; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { font-family: var(--sans); font-size: 24px; line-height: 1.25; margin: 1.6em 0 .6em; letter-spacing: -.01em; }
.article-body h3 { font-family: var(--sans); font-size: 20px; margin: 1.4em 0 .5em; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ipe); font-size: 22px; color: #2E2340; }
.article-body img, .article-body iframe { max-width: 100%; border-radius: 6px; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body .ad { font-family: var(--sans); }
.source-note { font-size: 14px; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; background: var(--mist); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.cta-wa { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--mist); border-radius: 8px; padding: 16px 18px; margin: 24px 0; }
.cta-wa p { margin: 0; font-weight: 600; }
.cta-wa a { background: #1f8f4e; color: #fff; padding: 9px 14px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.related { margin-top: 32px; }
.grid-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* Rodapé */
.footer { background: var(--ink); color: #D6CCE0; margin-top: 56px; padding: 40px 0 20px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 22px; margin: 0 0 8px; }
.footer-title { color: #fff; font-weight: 700; margin: 0 0 8px; }
.footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer li { padding: 3px 0; }
.footer-legal { border-top: 1px solid #33254A; margin-top: 28px; padding-top: 16px; font-size: 13px; }

/* Responsivo */
@media (max-width: 1000px) {
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; }
  .top { grid-template-columns: 1fr; }
  .agora { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 760px) {
  .topstrip-links { display: none; }
  .menu-btn { display: inline-block; }
  .masthead-row { flex-wrap: wrap; }
  .brand { margin-right: 0; flex: 1; justify-content: center; }
  .brand img { height: 46px; }
  .search { order: 3; width: 100%; }
  .search input { width: 100%; flex: 1; }
  .sections { display: none; }
  .sections.open { display: block; }
  .sections-row { flex-direction: column; gap: 0; }
  .sections a { border-bottom: 1px solid var(--line); }
  .grid3, .catblock-body, .grid-related, .footer-grid { grid-template-columns: 1fr; }
  .card-row .card-media { flex-basis: 108px; }
  .article-body { font-size: 19px; }
  .masthead { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
