/* Jornal Espaço — estilos do site */
:root {
  --brand: #10213A;
  --accent: #F2B705;
  --link: #1F4E8C;
  --text: #10213A;
  --muted: #55627A;
  --soft: #3B4860;
  --line: #E3E8EF;
  --bg-soft: #F3F5F8;
  --chip: #EEF2F7;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; }
img, video { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--link); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 10px 14px; }
.ph { background: #D5DEE8 url("../img/placeholder.svg") center/48px no-repeat; aspect-ratio: 16/10; border-radius: 4px; }

/* Barra superior */
.topbar { background: var(--brand); color: #C8D2E0; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #C8D2E0; }
.topbar a.btn-anuncie { background: var(--accent); color: var(--brand); padding: 6px 12px; border-radius: 4px; font-weight: 700; }

/* Topo com universo */
.masthead { background: #0B1A30 url("../img/universo.jpg") center right / cover no-repeat; color: #fff; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
.mast { display: block; max-width: 100%; }
.logo { width: 380px; max-width: 100%; height: auto; overflow: visible; display: block; }
.logo text { font-family: var(--sans); }
.lg-word { font-size: 104px; font-weight: 900; font-stretch: 112%; letter-spacing: -1px; fill: #fff; }
.lg-small { font-size: 36px; font-weight: 800; fill: var(--accent); }
.lg-tag { font-size: 15px; font-weight: 500; letter-spacing: 3px; fill: #C8D2E0; }
.search { display: flex; gap: 10px; align-items: center; }
.search input { font: 15px var(--sans); padding: 12px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; width: 260px; max-width: 60vw; background: rgba(255,255,255,.95); color: var(--text); }
.search button { height: 46px; min-width: 46px; border: 0; border-radius: 6px; background: var(--accent); color: var(--brand); display: flex; align-items: center; justify-content: center; cursor: pointer; font: 700 15px var(--sans); padding: 0 12px; }

/* Menu */
.nav { background: var(--brand); border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; font-weight: 600; position: relative; z-index: 20; }
.nav .wrap { display: flex; gap: 26px; align-items: center; min-height: 50px; flex-wrap: wrap; }
.nav a { color: #fff; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 14px 0; }
.dropdown { display: none; position: absolute; top: 100%; left: -16px; background: #fff; box-shadow: 0 10px 30px rgba(16,33,58,.18); border-radius: 0 0 8px 8px; padding: 10px; min-width: 240px; max-height: 70vh; overflow-y: auto; columns: 2; column-gap: 8px; width: max-content; max-width: 520px; }
.dropdown a { display: block; color: var(--text); padding: 7px 10px; border-radius: 4px; font-weight: 500; break-inside: avoid; }
.dropdown a:hover { background: var(--chip); color: var(--link); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }

/* Faixa "Agora" */
.ticker { background: var(--accent); font-size: 15px; }
.ticker .wrap { display: flex; gap: 28px; align-items: center; min-height: 48px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ticker strong { font-weight: 800; font-stretch: 75%; font-size: 18px; }
.ticker a b { font-weight: 700; }

/* Anúncios */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto; }
.ad-label { font-size: 11px; color: var(--muted); }
.ad-box { max-width: 100%; display: flex; justify-content: center; }
.ad-box img, .ad-box video { height: auto; border-radius: 4px; }
.ad-wide { width: 100%; }
.ad-wide .ad-box, .ad-wide .ad-box img, .ad-wide .ad-box video { width: 100%; }
.ad-topo_destaque img, .ad-topo_destaque video { max-height: 100px; object-fit: cover; }
.ad-inline { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ad-mid { margin: 8px 0 28px; }
.ad-footer { margin: 8px auto 32px; }

/* Estrutura */
.page { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.columns { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-items: center; align-self: stretch; }
.sidebar .sticky { position: sticky; top: 20px; }
.block { display: flex; flex-direction: column; gap: 20px; }
.block-title { margin: 0; font-size: 30px; font-weight: 800; font-stretch: 75%; padding-bottom: 10px; border-bottom: 4px solid var(--brand); }
.cat { font-size: 13px; font-weight: 700; color: var(--link); }
.empty { color: var(--muted); font-size: 17px; }

/* Destaque */
.hero { display: flex; flex-wrap: wrap; gap: 32px; }
.hero-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-main img, .hero-main .ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.hero-main .cat { font-size: 14px; }
.hero-main h1 { margin: 0; font-size: 46px; line-height: 1.02; font-weight: 800; font-stretch: 75%; letter-spacing: -.5px; }
.lead { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--soft); max-width: 62ch; }
.hero-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.small-card { display: flex; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.small-card > a { flex: 0 0 120px; }
.small-card img, .small-card .ph { width: 120px; height: 84px; object-fit: cover; border-radius: 4px; aspect-ratio: auto; }
.small-card > div { display: flex; flex-direction: column; gap: 6px; }
.small-card h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 700; }

.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-card { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.grid-card img, .grid-card .ph { width: 100%; object-fit: cover; border-radius: 4px; }
.grid-card h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 700; }

.row-card { display: flex; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.row-img { flex: 0 0 220px; }
.row-img img, .row-img .ph { width: 220px; object-fit: cover; border-radius: 4px; }
.row-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-txt .meta { font-size: 13px; color: var(--muted); }
.row-txt .meta b { color: var(--link); }
.row-txt h3 { margin: 0; font-size: 23px; line-height: 1.18; font-weight: 700; }
.row-txt p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--soft); }
.btn-more { align-self: center; border: 2px solid var(--brand); border-radius: 6px; padding: 12px 28px; font-weight: 700; display: inline-block; }
.btn-more:hover { background: var(--brand); color: #fff; text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { padding: 10px 16px; border-radius: 999px; background: var(--chip); font-size: 15px; font-weight: 600; }
.chips a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* Mais lidas */
.most { width: 100%; max-width: 340px; background: var(--bg-soft); border-radius: 8px; padding: 22px; }
.most h2 { margin: 0 0 14px; font-size: 24px; font-weight: 800; font-stretch: 75%; }
.most ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 16px; }
.most li { counter-increment: n; display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.28; font-weight: 600; }
.most li::before { content: counter(n); font-size: 34px; font-weight: 900; font-stretch: 62%; color: var(--link); min-width: 22px; }

/* Listas */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:last-child { color: var(--link); font-weight: 700; }
.list-title { margin: 0; font-size: 44px; font-weight: 800; font-stretch: 75%; line-height: 1.05; }
.list-intro { margin: -24px 0 0; color: var(--soft); font-family: var(--serif); font-size: 19px; }
.search-big input { width: 100%; max-width: none; border-color: #C3CCD8; flex: 1; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; font-weight: 600; }
.pager a { border: 2px solid var(--brand); border-radius: 6px; padding: 10px 20px; }

/* Matéria */
.article { gap: 18px; }
.kicker { align-self: flex-start; background: var(--accent); padding: 5px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; }
.headline { margin: 0; font-size: 52px; line-height: 1.04; font-weight: 800; font-stretch: 75%; letter-spacing: -.5px; max-width: 24ch; }
.standfirst { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--soft); max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.byline > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.byline span { color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { background: var(--chip); padding: 10px 14px; border-radius: 6px; font: 600 14px var(--sans); color: var(--text); border: 0; cursor: pointer; }
.share a.wa { background: #1F7A4D; color: #fff; font-weight: 700; }
.lead-img { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lead-img img { width: 100%; border-radius: 6px; }
.lead-img figcaption { font-size: 14px; color: var(--muted); }
.body { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: #1E2A3E; max-width: 68ch; padding-top: 8px; overflow-wrap: anywhere; }
.body p { margin: 0 0 22px; }
.body h2, .body h3 { font-family: var(--sans); font-stretch: 85%; line-height: 1.15; margin: 32px 0 14px; }
.body a { color: var(--link); text-decoration: underline; }
.body img { height: auto; border-radius: 4px; margin: 8px 0; }
.body figure { margin: 0 0 22px; }
.body figcaption { font: 14px var(--sans); color: var(--muted); margin-top: 6px; }
.body blockquote { margin: 0 0 22px; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 24px; line-height: 1.4; font-style: italic; }
.body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 4px; }
.body table { border-collapse: collapse; width: 100%; font: 15px var(--sans); display: block; overflow-x: auto; }
.body td, .body th { border: 1px solid var(--line); padding: 8px; }
.body .ad { font-family: var(--sans); }
.tags a { font-size: 14px; padding: 8px 14px; }
.cta-wa { background: var(--brand); color: #fff; border-radius: 8px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-wa span { font-size: 20px; font-weight: 700; max-width: 40ch; }
.cta-wa a { background: var(--accent); color: var(--brand); padding: 12px 20px; border-radius: 6px; font-weight: 700; }

/* Rodapé */
.footer { background: var(--brand); color: #C8D2E0; font-size: 15px; }
.footer a { color: #C8D2E0; }
.footer-grid { padding-top: 44px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid strong { color: #fff; }
.footer-brand { max-width: 360px; }
.footer-brand p { margin: 0; }
.logo-footer { width: 240px; }
.footer-copy { padding-bottom: 28px; font-size: 13px; }

/* Celular */
@media (max-width: 900px) {
  .four, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .wrap { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .dropdown { display: none !important; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .logo { width: 260px; }
  .masthead .wrap { padding-top: 14px; padding-bottom: 12px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; max-width: none; }
  .hero-main h1 { font-size: 32px; }
  .headline { font-size: 34px; }
  .list-title { font-size: 34px; }
  .row-img { flex-basis: 110px; }
  .row-img img, .row-img .ph { width: 110px; aspect-ratio: 1 !important; }
  .row-txt h3 { font-size: 19px; }
  .row-txt p { display: none; }
  .grid3 { grid-template-columns: 1fr; }
  .body { font-size: 19px; }
  .topbar-links a:not(.btn-anuncie) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
