/* Compartilhei | estilo editorial, mobile-first. A cor de destaque vem de cada universo (--accent). */
:root {
  --accent: #e4572e;
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --ink: #16181d;
  --ink-2: #3b3f47;
  --muted: #6a707b;
  --line: #e6e1d6;
  --card: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--paper));
  --accent-ink: color-mix(in srgb, var(--accent) 78%, #000);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --wrap: 1180px;
  --read: 700px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111316; --paper-2: #181b20; --ink: #eceae4; --ink-2: #c9c7c0; --muted: #9398a1;
    --line: #2a2e35; --card: #171a1f;
    --accent-soft: color-mix(in srgb, var(--accent) 18%, var(--paper));
    --accent-ink: color-mix(in srgb, var(--accent) 70%, #fff);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px;
  line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }

/* ---------- topo */
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead .bar { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700;
  letter-spacing: -.02em; font-size: 19px; color: var(--ink); white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .dot { color: var(--accent); }
.crumb-universe { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 21px;
  font-weight: 600; text-decoration: none; min-width: 0; }
.crumb-universe span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-universe::before { content: ""; width: 1px; height: 22px; background: var(--line); margin-right: 4px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 7px 11px;
  border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 760px) {
  .masthead .bar { height: auto; flex-wrap: wrap; padding: 10px 20px 0; gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin: 0 -20px; padding: 4px 20px 10px; }
  .brand .word { display: none; }
}

/* ---------- tipografia */
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.meta { font-size: 13.5px; color: var(--muted); }
.meta b { color: var(--ink-2); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.015em; line-height: 1.12; margin: 0; font-weight: 600; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-top: 2px solid var(--ink); padding-top: 12px; margin: 48px 0 20px; }
.section-title h2 { font-size: 24px; }
.section-title a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent-ink); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--accent); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
  font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- capa do universo */
.u-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), var(--paper) 70%); }
.u-hero .img { position: absolute; inset: 0; }
.u-hero .img img { width: 100%; height: 100%; object-fit: cover; }
.u-hero .img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.82) 0%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.05) 100%); }
.u-hero .inner { position: relative; padding: 72px 0 56px; max-width: 660px; }
.u-hero.has-img .inner { color: #fff; }
.u-hero.has-img .kicker { color: #fff; opacity: .85; }
.u-hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 10px 0 16px; }
.u-hero p { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin: 0; opacity: .92; }
.u-hero .stats { display: flex; gap: 22px; margin-top: 24px; font-size: 14px; flex-wrap: wrap; }
.u-hero .stats b { font-family: var(--serif); font-size: 26px; display: block; line-height: 1; }
@media (max-width: 760px) { .u-hero .inner { padding: 44px 0 36px; } .u-hero p { font-size: 18px; }
  .u-hero .img::after { background: linear-gradient(0deg, rgba(10,10,12,.85) 0%, rgba(10,10,12,.45) 100%); } }

.overview { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.overview .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.overview p { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin: 0; color: var(--ink); }
@media (max-width: 760px) { .overview { grid-template-columns: 1fr; gap: 8px; } .overview p { font-size: 19px; } }

/* ---------- grade de materias */
.lead-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; margin-top: 28px; }
.lead-grid .side { display: grid; gap: 22px; align-content: start; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }
.story { display: block; text-decoration: none; color: inherit; }
.story .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
  margin-bottom: 12px; position: relative; }
.story .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story:hover .thumb img { transform: scale(1.03); }
.story h3 { font-size: 21px; margin: 6px 0 6px; }
.story:hover h3 { color: var(--accent-ink); }
.story p { margin: 0; color: var(--ink-2); font-size: 15px; }
.story.lead h3 { font-size: clamp(26px, 3.2vw, 36px); }
.story.lead p { font-size: 17px; font-family: var(--serif); }
.story.row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; align-items: start; }
.story.row .thumb { aspect-ratio: 1; margin: 0; order: 2; }
.story.row h3 { font-size: 18px; margin-top: 4px; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 55%),
              radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%),
              var(--paper-2); }
.placeholder span { font-family: var(--serif); font-size: 44px; font-weight: 600; color: color-mix(in srgb, var(--accent) 60%, var(--ink)); opacity: .5; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }

/* ---------- acontecimentos */
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.events .when { font-size: 13px; color: var(--muted); font-weight: 600; padding-top: 3px; }
.events h3 { font-size: 19px; margin-bottom: 4px; }
.events h3 a { text-decoration: none; }
.events p { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

/* ---------- materia */
.article-head { max-width: 860px; margin: 40px auto 0; padding: 0 20px; }
.article-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.025em; margin: 14px 0 16px; }
.article-head .dek { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--ink-2); margin: 0 0 18px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { max-width: 1060px; margin: 28px auto 0; padding: 0 20px; }
.figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.body { max-width: var(--read); margin: 32px auto 0; padding: 0 20px; font-family: var(--serif); font-size: 20px; line-height: 1.66; }
.body p { margin: 0 0 1.05em; }
.body h2 { font-size: 27px; margin: 1.6em 0 .6em; }
.body sup a { font-family: var(--sans); font-size: 11px; font-weight: 700; text-decoration: none; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 4px; padding: 1px 4px; margin-left: 2px; }
.body .ilink { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 23px;
  line-height: 1.45; font-style: italic; }
.body blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }
.callout { font-family: var(--sans); font-size: 16px; line-height: 1.55; background: var(--accent-soft);
  border-radius: var(--radius); padding: 16px 18px; margin: 1.4em 0; }
.callout strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 4px; }
@media (max-width: 600px) { .body { font-size: 18.5px; } }

.timeline { list-style: none; padding: 0; margin: 1.2em 0; font-family: var(--sans); position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 30px; font-size: 16px; line-height: 1.45; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent); }
.timeline time { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

.panel { max-width: var(--read); margin: 40px auto 0; padding: 0 20px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.entity-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.entity { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-decoration: none; }
a.entity:hover { border-color: var(--accent); }
.entity small { display: block; color: var(--muted); font-size: 12.5px; }
.entity b { font-size: 14.5px; font-weight: 600; }
.sources { counter-reset: s; list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.sources li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.sources li:target { background: var(--accent-soft); }
.sources .n { font-weight: 700; color: var(--accent-ink); }
.sources a { word-break: break-word; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
.howto { font-size: 13.5px; color: var(--muted); background: var(--paper-2); border-radius: var(--radius); padding: 14px 16px; }

/* ---------- listas e paginas de entidade */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.025em; }
.page-head p { font-family: var(--serif); font-size: 19px; color: var(--ink-2); max-width: 720px; margin: 10px 0 0; }
.grid-entities { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 36px 0; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; }
.month { font-family: var(--serif); font-size: 22px; margin: 36px 0 8px; text-transform: capitalize; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- portal */
.portal-hero { padding-top: 72px; padding-bottom: 40px; }
.portal-hero h1 { font-size: clamp(40px, 7.5vw, 84px); line-height: .98; letter-spacing: -.035em; max-width: 900px; }
.portal-hero h1 em { font-style: italic; color: var(--accent); }
.portal-hero p { font-family: var(--serif); font-size: 21px; color: var(--ink-2); max-width: 640px; margin: 20px 0 0; }
.universes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.universe-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); box-shadow: var(--shadow); isolation: isolate; }
.universe-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.universe-card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 100%); }
.universe-card:hover img { transform: scale(1.04); }
.universe-card:hover { color: #fff; }
.universe-card .in { padding: 22px; }
.universe-card .tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--c, var(--accent)); color: #fff;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.universe-card h2 { font-size: 30px; }
.universe-card p { margin: 6px 0 0; font-size: 14.5px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.universe-card .noimg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(circle at 25% 25%, var(--c, var(--accent)), transparent 60%), #1c1f25; }

/* ---------- rodape */
.footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--paper-2); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.footer .cols { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.footer a { color: var(--ink-2); }
.notice { background: var(--accent-soft); padding: 10px 0; font-size: 14px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
