:root {
  --paper: #ffffff;
  --ink: #14181f;
  --muted: #5a6472;
  --hair: #d6dae0;
  --accent: #1b4a87;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f141a;
    --ink: #eceff2;
    --muted: #98a3af;
    --hair: #28323d;
    --accent: #80b3e8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover .headline, a:hover h2, a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Barra superior */
.utility { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); padding: 0.7rem 0; }
.utility .page { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.utility a:hover { color: var(--ink); }
.utility nav { display: flex; gap: 1.25rem; }
#hoje::first-letter { text-transform: uppercase; }

/* Cabeçalho do jornal */
.masthead { text-align: center; padding: 1.6rem 0 1.1rem; border-top: 1px solid var(--ink); }
.nameplate {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.tagline { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 0; }

.sections { border-top: 1px solid var(--hair); border-bottom: 3px double var(--ink); }
.sections .page { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.25rem 1rem; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.sections-links { display: flex; justify-content: center; gap: 0.25rem 2rem; flex-wrap: wrap; }
.sections a { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; padding: 0.55rem 0; border-bottom: 2px solid transparent; }

/* Pesquisa */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search { justify-self: end; display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.search input { width: 8.5rem; font-family: var(--sans); font-size: 0.875rem; color: var(--ink); background: transparent; border: 0; padding: 0.4rem 0.2rem; transition: width 0.2s ease; }
.search input:focus { width: 12rem; outline: none; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-bottom-color: var(--accent); }
.search button { background: transparent; border: 0; color: var(--ink); padding: 0.4rem 0.2rem; cursor: pointer; display: flex; }
.search button:hover { color: var(--accent); }
.search-big { display: flex; max-width: 46rem; gap: 0.75rem; margin: 0 0 0.75rem; }
.search-big input { flex: 1; min-width: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: 0.5rem 0.1rem; }
.search-big input:focus { outline: none; border-bottom-color: var(--accent); }
.search-big button { font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); padding: 0.6rem 1.1rem; cursor: pointer; }
.search-big button:hover { background: var(--accent); border-color: var(--accent); }
.busca-status { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); min-height: 1.5rem; margin: 0 0 1.25rem; }
.trecho { font-size: 1rem; line-height: 1.5; color: var(--muted); margin: 0 0 0.6rem; }
mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; padding: 0 0.08em; }
.sections a:hover { color: var(--accent); }
.sections a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Elementos de matéria */
.kicker { font-family: var(--sans); font-weight: 700; font-size: 0.875rem; color: var(--accent); margin: 0 0 0.5rem; }
.byline { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin: 0; }
.byline strong { color: var(--ink); font-weight: 600; }
.deck { font-family: var(--serif); color: var(--muted); font-size: 1.3rem; line-height: 1.45; margin: 0.9rem 0 1rem; }

/* Página inicial */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding: 2.5rem 0 2.5rem; }
.lead { padding-right: 2.5rem; border-right: 1px solid var(--hair); }
.lead .headline {
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
.lead .deck { font-size: 1.4rem; }

.rail { padding-left: 2.5rem; }
.rail-title { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; margin: 0 0 0.25rem; padding-top: 0.6rem; border-top: 3px solid var(--ink); }
.rail article { padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.rail article:last-child { border-bottom: 0; }
.rail h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 0.45rem; }
.rail p { font-family: var(--serif); color: var(--muted); font-size: 1rem; line-height: 1.45; margin: 0 0 0.5rem; }

.topics { border-top: 1px solid var(--ink); padding: 1.6rem 0 4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topics > a { padding: 0 1.75rem; border-left: 1px solid var(--hair); }
.topics > a:first-child { padding-left: 0; border-left: 0; }
.topics > a:last-child { padding-right: 0; }
.topics h3 { font-weight: 600; font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.4rem; }
.topics p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }

/* Página de seção */
.section-head { padding: 3rem 0 1.5rem; max-width: 46rem; }
.section-head h1 { font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 0.6rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.25rem; line-height: 1.45; }
.stream { max-width: 46rem; padding: 0 0 4rem; border-top: 3px solid var(--ink); margin-top: 0.5rem; }
.stream article { padding: 1.6rem 0; border-bottom: 1px solid var(--hair); }
.stream h2 { font-weight: 600; font-size: 1.7rem; letter-spacing: -0.018em; line-height: 1.15; margin: 0 0 0.4rem; }
.stream p.deck { font-size: 1.1rem; margin: 0 0 0.6rem; }

/* Artigo */
.article { max-width: 42rem; margin: 0 auto; padding: 3rem 0 4rem; }
.article h1 { font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.024em; margin: 0; text-wrap: balance; }
.article .deck { font-size: 1.4rem; margin: 1rem 0 1.5rem; }
.article-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.8rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 2.2rem; }
.body { font-size: 1.25rem; line-height: 1.7; }
.body p { margin: 0 0 1.35em; }
.body > p:first-of-type::first-letter {
  float: left;
  font-weight: 600;
  font-size: 4.3em;
  line-height: 0.78;
  padding: 0.07em 0.1em 0 0;
}
.body h2 { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.015em; line-height: 1.2; margin: 2.2em 0 0.6em; }
.body ul, .body ol { padding-left: 1.3em; margin: 0 0 1.35em; }
.body li { margin-bottom: 0.4em; }
.body blockquote { margin: 2em 0; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 1.6rem; line-height: 1.3; font-style: italic; }
.body a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }
.body a:hover { color: var(--accent); }
.watch { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; padding: 0.7rem 1.15rem; border: 1px solid var(--ink); text-decoration: none !important; }
.watch:hover { background: var(--ink); color: var(--paper) !important; }

/* Anúncios (AdSense) */
.ad-slot { margin: 2.4rem 0; padding: 0.9rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); text-align: center; min-height: 7rem; clear: both; }
.ad-label { display: block; font-family: var(--sans); font-size: 0.6875rem; color: var(--muted); margin-bottom: 0.5rem; }
.ad-slot ins { display: block; min-height: 6rem; }

/* Rodapé */
.site-footer { border-top: 3px double var(--ink); padding: 1.6rem 0 3rem; font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.foot-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid var(--hair); }
.foot-name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.015em; color: var(--ink); }
.social { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.social a { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.social a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; }
.site-footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 52rem) {
  .front { grid-template-columns: 1fr; }
  .lead { padding-right: 0; border-right: 0; padding-bottom: 2rem; }
  .rail { padding-left: 0; }
  .topics { grid-template-columns: 1fr; }
  .topics > a { padding: 1.1rem 0; border-left: 0; border-top: 1px solid var(--hair); }
  .topics > a:first-child { border-top: 0; padding-top: 0; }
}

@media (max-width: 34rem) {
  body { font-size: 1.125rem; }
  .body { font-size: 1.15rem; }
  .utility nav { display: none; }
  .sections .page { grid-template-columns: 1fr; }
  .sections-spacer { display: none; }
  .sections-links { gap: 0.1rem 1.1rem; }
  .sections a { font-size: 0.875rem; }
  .search { justify-self: stretch; margin-bottom: 0.5rem; }
  .search input, .search input:focus { width: 100%; }
  .search-big { flex-direction: column; }
  .social { gap: 1.25rem; }
}

@media print {
  .utility, .sections, .site-footer, .watch { display: none; }
  body { font-size: 12pt; }
}

/* ---- Recursos de texto: vídeo, capa, pontos-chave, fontes, imagens, tabelas ---- */
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2.2rem; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.capa { margin: 0 0 2.2rem; }
.capa img, .body img { max-width: 100%; height: auto; display: block; }
.body figure { margin: 1.8em 0; }
.body figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.body h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 1.8em 0 0.5em; }
.body blockquote p { margin: 0; }
.body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-family: var(--sans); font-size: 0.95rem; }
.body th, .body td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.body th { border-bottom: 2px solid var(--ink); }
.box { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--accent) 6%, var(--paper)); padding: 1rem 1.2rem 0.4rem; margin: 0 0 2rem; }
.box h2 { font-family: var(--sans); font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.6rem !important; color: var(--accent); }
.box ul { margin: 0 0 0.8rem; font-size: 1.05rem; }
.fontes { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--hair); font-family: var(--sans); font-size: 0.92rem; }
.fontes h2 { font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.6rem !important; color: var(--muted); }
.fontes ol { margin: 0; padding-left: 1.3em; }
.fontes li { margin-bottom: 0.3em; word-break: break-word; }
