/* Tema do livro — claro/escuro, sidebar fixa, callouts pedagógicos. */
:root {
  --bg: #fbfbfa; --fg: #1c1c1c; --muted: #6a6a6a; --line: #e3e3e0;
  --sidebar: #f4f4f2; --link: #1a5fb4; --code-bg: #f0f0ee;
  --obj: #1a5fb4; --verif: #2a7a3f; --prat: #a15a00; --roubar: #7a3fa1; --apend: #555;
  --maxw: 46rem;
}
:root[data-tema="escuro"] {
  --bg: #17181a; --fg: #e6e6e4; --muted: #9a9a97; --line: #2c2e31;
  --sidebar: #1d1f22; --link: #78aeff; --code-bg: #23252a;
  --obj: #78aeff; --verif: #6fd08a; --prat: #e0a24a; --roubar: #c79be0; --apend: #999;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.layout { display: grid; grid-template-columns: 19rem 1fr; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--sidebar); border-right: 1px solid var(--line); padding: 1.2rem 1rem; }
.marca { display: block; font-weight: 700; font-size: 1.05rem; color: var(--fg);
  text-decoration: none; margin-bottom: 1rem; line-height: 1.3; }
.nav-parte { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 1rem 0 .3rem; }
.sidebar ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.sidebar li a { display: block; padding: .2rem .4rem; border-radius: 5px;
  color: var(--fg); text-decoration: none; font-size: .9rem; }
.sidebar li a:hover { background: rgba(127,127,127,.14); }
.sidebar li a.ativo { background: var(--link); color: #fff; }
.conteudo { max-width: calc(var(--maxw) + 6rem); padding: 2.4rem 3rem 4rem; margin: 0 auto; width: 100%; }
.markdown { max-width: var(--maxw); }
.selo-data { display: inline-block; font-size: .78rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; margin-bottom: 1rem; }
a { color: var(--link); }
h1 { font-size: 2rem; line-height: 1.2; margin: .2rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; padding-top: .4rem; }
h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; }
h2 .header-anchor, h3 .header-anchor { color: var(--muted); text-decoration: none; opacity: 0; margin-left: .3rem; }
h2:hover .header-anchor, h3:hover .header-anchor { opacity: 1; }
blockquote { border-left: 3px solid var(--line); margin: 1rem 0; padding: .2rem 1rem; color: var(--muted); }
code { background: var(--code-bg); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
pre { background: var(--code-bg); padding: 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
th { background: rgba(127,127,127,.1); }
img { max-width: 100%; }

/* Callouts pedagógicos (Diátaxis/Bloom) — a cor sinaliza o tipo de texto. */
h2[data-callout] { border-left: 4px solid var(--muted); padding-left: .7rem; }
h2[data-callout="callout-objetivos"] { border-color: var(--obj); }
h2[data-callout="callout-verificacao"] { border-color: var(--verif); }
h2[data-callout="callout-pratica"] { border-color: var(--prat); }
h2[data-callout="callout-roubar"] { border-color: var(--roubar); }
h2[data-callout="callout-apendice"] { border-color: var(--apend); }

/* ===== Design system dos capítulos (spec 043; DESIGN-SISTEMA.md) ===== */

/* C01 CabeçalhoDeCapítulo — variante B "faixa editorial" (absorve C02). */
.cap-hero { position: relative; border-bottom: 2px solid var(--prat); padding: .4rem 0 1.3rem;
  margin-bottom: 1.8rem; overflow: hidden; }
.cap-num { position: absolute; right: -8px; top: -34px; font-size: 8rem; font-weight: 900; line-height: 1;
  color: var(--prat); opacity: .12; font-variant-numeric: tabular-nums; pointer-events: none; user-select: none; }
.cap-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--prat); font-weight: 600; }
.cap-hero h1 { font-size: 2.2rem; margin: .2rem 0 .4rem; line-height: 1.1; }
.cap-teaser { color: var(--muted); margin: 0 0 .9rem; font-size: 1.05rem; max-width: 34rem; }
.cap-meta { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .74rem; color: var(--muted); }
.cap-meta span { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.cap-meta .cap-dl { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem;
  text-decoration: none; color: var(--muted); font-weight: 600; }
.cap-meta .cap-dl:hover { border-color: var(--prat); color: var(--prat); }
@media (max-width: 640px) { .cap-num { font-size: 5rem; top: -18px; } .cap-hero h1 { font-size: 1.7rem; } }

/* C08 LeituraExecutiva — V1 "painel âmbar" (o h3 vira o rótulo do painel). */
.leitura-exec { background: var(--sidebar); border: 1px solid var(--line); border-left: 4px solid var(--prat);
  border-radius: 0 10px 10px 0; padding: .9rem 1.2rem; margin: 1.4rem 0; }
.leitura-exec h3 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--prat); font-weight: 700; margin: 0 0 .4rem; }
.leitura-exec h3 .header-anchor { display: none; }
.leitura-exec ul, .leitura-exec ol { margin: .2rem 0 0 1.1rem; padding: 0; }
.leitura-exec li { margin: .25rem 0; }
.leitura-exec p { margin: .3rem 0; }

/* N02 PaginaçãoEmCartões — V2 "cartões com badge" (linguagem dos cartões da entrada). */
.pagcards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 3rem 0 1rem;
  border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pagcard { display: flex; align-items: center; gap: .8rem; background: var(--sidebar);
  border: 1px solid var(--line); border-radius: 11px; padding: .7rem .9rem;
  text-decoration: none; color: var(--fg); transition: border-color .12s; }
.pagcard:hover { border-color: var(--prat); }
.pagcard.next { flex-direction: row-reverse; text-align: right; justify-content: flex-start; }
.pag-badge { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(224,162,74,.14); color: var(--prat); font-weight: 800;
  border: 1px solid rgba(224,162,74,.28); font-variant-numeric: tabular-nums; }
.pag-dir { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pag-tt { display: block; font-weight: 700; font-size: .92rem; }
@media (max-width: 560px) {
  .pagcards { grid-template-columns: 1fr; }
  .pagcard.next { flex-direction: row; text-align: left; }
}
.rodape { color: var(--muted); font-size: .82rem; margin-top: 2rem; }
.capa h1 { font-size: 2.6rem; }
.capa .subtitulo { font-size: 1.15rem; color: var(--muted); margin-top: -.5rem; }

/* Hero de capa (landing) — imagem + texto; empilha no mobile; theme-aware. */
.hero { display: grid; grid-template-columns: minmax(190px, 250px) 1fr; gap: 1.8rem; align-items: center; margin: 0 0 2.4rem; }
.hero-arte img { width: 100%; height: auto; border-radius: 12px; display: block;
  box-shadow: 0 10px 34px rgba(0,0,0,.30); border: 1px solid var(--line); }
:root[data-tema="escuro"] .hero-arte img { box-shadow: 0 10px 40px rgba(0,0,0,.55); }
.hero-texto h1 { font-size: 2.3rem; line-height: 1.1; margin: 0 0 .3rem; }
.hero-texto .subtitulo { color: var(--muted); font-size: 1.12rem; margin: 0 0 .8rem; }
.hero-desc { margin: 0 0 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.btn { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--fg); font-weight: 600; font-size: .92rem; }
.btn:hover { background: rgba(127,127,127,.12); }
.btn-primario { background: var(--link); color: #fff; border-color: var(--link); }
.btn-primario:hover { filter: brightness(1.08); }
.hero-creditos { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; margin: 0; line-height: 1.6; }
.hero-creditos strong { color: var(--fg); font-weight: 600; }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 1.1rem; text-align: center; }
  .hero-arte img { max-width: 240px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
}
ul.sumario { list-style: none; padding: 0; }
ul.sumario li a { display: block; padding: .3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }

#alt-tema { position: fixed; top: .8rem; right: 1rem; z-index: 10; background: var(--sidebar);
  border: 1px solid var(--line); color: var(--fg); border-radius: 8px; width: 2.2rem; height: 2.2rem;
  font-size: 1.1rem; cursor: pointer; }

/* Ilha de visualização (P2): fallback enquanto o React não hidrata (ou sem JS). */
[data-viz]:empty::before { content: "📊 carregando visualização interativa…"; display: block;
  color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 1rem; text-align: center; }

/* --- Visualizações React (islands) --- */
:root { --n0: #e57373; --n1: #e0a24a; --n2: #7cc47f; --n3: #2e9e5b; }
:root[data-tema="escuro"] { --n0: #7a3b3b; --n1: #7a5c2a; --n2: #3d6b45; --n3: #2e7d4f; }
.viz { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 1.2rem 0; background: var(--sidebar); }
.viz-titulo { font-weight: 700; margin-bottom: .6rem; }
.viz-sub { font-weight: 400; color: var(--muted); font-size: .85rem; }
.viz-scroll { overflow-x: auto; }
table.viz-heat { border-collapse: collapse; width: 100%; font-size: .9rem; display: table; }
.viz-heat th, .viz-heat td { border: 1px solid var(--bg); padding: .3rem .1rem; text-align: center; }
.viz-heat th { background: rgba(127,127,127,.12); font-weight: 600; user-select: none; }
.viz-heat th.viz-esq, .viz-heat td.viz-esq { text-align: left; padding-left: .6rem; white-space: nowrap; }
.viz-cel { color: #101010; font-weight: 600; width: 2rem; }
.viz-total { font-weight: 700; background: rgba(127,127,127,.14); }
.viz-legenda { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
.viz-legenda b { color: var(--fg); }
.viz-escala { margin-top: .5rem; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.viz-chip { display: inline-block; width: 1.4rem; text-align: center; color: #101010; font-weight: 600; border-radius: 4px; }
.viz-filtros { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.viz-fbtn { background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; cursor: pointer; }
.viz-fbtn.ativo { background: var(--link); color: #fff; border-color: var(--link); }
.viz-cards { display: grid; gap: .7rem; }
.viz-card { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; background: var(--bg); }
.viz-card-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.viz-emoji { font-size: 1.1rem; }
.viz-card-linha { font-size: .88rem; margin: .15rem 0; }
.viz-rot { display: inline-block; min-width: 8.5rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.viz-card-ev { font-size: .85rem; color: var(--muted); margin-top: .45rem; border-top: 1px dashed var(--line); padding-top: .45rem; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .conteudo { padding: 1.5rem 1.2rem 3rem; }
  /* Na home, a capa vem antes da navegação no mobile (SC-001). */
  .pagina-index .conteudo { order: -1; }
}

/* Tela-capa (splash) full-screen — porta de entrada; sempre escura. */
.splash-body { margin: 0; color: #eaeef6; min-height: 100svh;
  background: radial-gradient(1100px 760px at 28% 18%, #0d1a30, #070d18 72%); }
.splash { min-height: 100svh; display: grid; grid-template-columns: minmax(300px, 44%) 1fr;
  align-items: center; gap: 3.4rem; max-width: 1180px; margin: 0 auto; padding: 3rem 2.5rem; box-sizing: border-box; }
.splash-arte img { width: 100%; max-height: 82svh; object-fit: contain; display: block; margin-left: auto;
  border-radius: 14px; box-shadow: 0 22px 64px rgba(0,0,0,.6); }
.splash-texto h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -1px; margin: 0 0 .5rem; }
.splash-sub { font-size: clamp(1.1rem, 2.1vw, 1.4rem); color: #9fb0c9; line-height: 1.35; margin: 0 0 1.2rem; }
.splash-desc { color: #c4cfe0; max-width: 42ch; margin: 0 0 1.8rem; }
.splash-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.btn-grande { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-escuro { background: transparent; color: #eaeef6; border-color: rgba(255,255,255,.28); }
.btn-escuro:hover { background: rgba(255,255,255,.10); }
.splash-creditos { font-size: .82rem; color: #7f8fa8; line-height: 1.7; margin: 0;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: .9rem; }
.splash-creditos strong { color: #cdd7e6; font-weight: 600; }
.link-capa { display: block; font-size: .78rem; color: var(--muted); text-decoration: none; margin: -.6rem 0 1rem; }
.link-capa:hover { color: var(--link); }
.splash-versao { font-size: .76rem; color: #6f7f98; letter-spacing: .02em; margin: .7rem 0 0; }
.splash-versao-num { color: #aeb9c9; font-weight: 600; font-variant-numeric: tabular-nums; }
.splash-doi { font-size: .74rem; margin: .25rem 0 0; }
.splash-doi a { color: #8aa0bd; text-decoration: none; border-bottom: 1px dotted #4a5a72; }
.splash-doi a:hover { color: #c7d4e6; }
@media (max-width: 820px) {
  .splash { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; padding: 2.2rem 1.4rem; min-height: auto; }
  .splash-arte img { max-height: 62svh; max-width: 340px; margin: 0 auto; }
  .splash-desc { margin-left: auto; margin-right: auto; }
  .splash-ctas { justify-content: center; }
}

/* ===== i18n (spec 067): seletor de idioma + selo de sincronia ===== */
.lang-pill { position: fixed; top: 14px; right: 58px; z-index: 60; display: flex; gap: 2px;
  background: color-mix(in srgb, var(--fundo, #fff) 70%, transparent); border: 1px solid var(--borda, rgba(127,127,127,.35));
  border-radius: 999px; padding: 2px; font: 600 12px/1 system-ui, sans-serif; backdrop-filter: blur(4px); }
.lang-pill .lang-atual { padding: 5px 11px; border-radius: 999px; background: var(--prat, #e0a24a); color: #0d1a30; }
.lang-pill a { padding: 5px 11px; border-radius: 999px; color: var(--muted, #667); text-decoration: none; }
.lang-pill a:hover { color: var(--texto, #123); }
.splash-body .lang-pill { top: 18px; right: 20px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.splash-body .lang-pill a { color: #c4cfe0; }
.sinc { font: 500 12.5px/1.5 system-ui, sans-serif; border-radius: 999px; padding: 6px 14px;
  display: inline-block; margin: 0 0 14px; }
.sinc-ok { background: rgba(120,174,255,.10); border: 1px solid rgba(120,174,255,.35); color: #5f8fd6; }
.sinc-atras { background: rgba(224,162,74,.12); border: 1px solid rgba(224,162,74,.4); color: #b07f2e; }
.sinc a { color: inherit; font-weight: 700; }
.lang-sugestao { font: 400 13px/1.5 system-ui, sans-serif; color: #8aa0bd; margin: 0 0 .9rem; }
.lang-sugestao a { color: #e0a24a; font-weight: 600; }
@media (max-width: 820px) { .lang-pill { right: 14px; } }

/* ===== News na capa (spec 062) — destaque da novidade + edição corrente ===== */
.splash-news { max-width: 52ch; text-align: left; margin: 0 0 .8rem;
  background: rgba(224,162,74,.12); border: 1px solid rgba(224,162,74,.35);
  border-left: 3px solid #e0a24a; border-radius: 12px; padding: .7rem 1rem; }
.splash-news-k { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: #e0a24a; font-weight: 700; margin-bottom: .25rem; }
.splash-news-imp { color: #f2c98a; }
.splash-news p { margin: 0; font-size: .88rem; line-height: 1.5; color: #dbe4f2; }
.splash-news p a { color: #a9c6f2; }
.splash-news-mais { display: inline-block; margin-top: .3rem; font-size: .78rem; font-weight: 600;
  color: #e0a24a; text-decoration: none; }
.splash-news-mais:hover { text-decoration: underline; }
.splash-vedicao { max-width: 52ch; text-align: left; font-size: .78rem; color: #7f8fa8; margin: 0 0 1.4rem; }
.splash-vedicao b { color: #aeb9c9; font-variant-numeric: tabular-nums; }
.splash-vedicao a { color: #8aa0bd; }
@media (max-width: 820px) {
  .splash-news, .splash-vedicao { margin-left: auto; margin-right: auto; }
}

/* ===== Experiência de entrada (spec 021) — sumário repaginado ===== */
.pagina-index .conteudo { max-width: 76rem; padding: 2.2rem 2.6rem 4rem; }
.pagina-index .markdown { max-width: none; }
.pagina-index .pagcards { display: none; }

.ent-hero { display: grid; grid-template-columns: 118px 1fr; gap: 1.4rem; align-items: center;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.ent-capa { width: 118px; height: auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.ent-kicker { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ent-titulo { font-size: 2rem; line-height: 1.1; margin: .2rem 0 .35rem; }
.ent-sub { color: var(--muted); margin: 0; }
.ent-ctas { display: flex; gap: .6rem; margin-top: .95rem; flex-wrap: wrap; }
.ent-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .9rem; font-weight: 600; font-size: .9rem; color: var(--fg);
  background: var(--bg); text-decoration: none; }
.ent-btn:hover { border-color: var(--prat); }
.ent-btn-a { background: linear-gradient(180deg, #f2b74e, #e09a26); border-color: transparent; color: #3a2600; }
.ent-btn-a:hover { filter: brightness(1.05); border-color: transparent; }

.ent-retomar { display: flex; align-items: center; gap: 1rem; margin-top: .9rem;
  background: rgba(224,162,74,.10); border: 1px solid rgba(224,162,74,.30); border-left: 3px solid var(--prat);
  border-radius: 12px; padding: .75rem 1.1rem; text-decoration: none; color: var(--fg); }
.ent-ret-l { flex: 1; display: flex; flex-direction: column; }
.ent-ret-lab { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ent-ret-cap { font-weight: 700; }

.ent-trilha { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1.1rem 0 .2rem; }
.ent-step { display: block; background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; text-decoration: none; color: var(--fg); }
.ent-step:hover { border-color: var(--prat); }
.ent-step-n { color: var(--prat); font-weight: 700; font-size: .7rem; letter-spacing: .04em; }
.ent-step b { display: block; margin: .25rem 0 .2rem; font-size: .96rem; }
.ent-step > span:last-child { color: var(--muted); font-size: .8rem; }

.ent-parte { display: flex; align-items: center; gap: .8rem; margin: 1.7rem 0 .8rem; }
.ent-parte span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ent-parte i { flex: 1; height: 1px; background: var(--line); }

.ent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.ent-card { display: block; background: var(--sidebar); border: 1px solid var(--line); border-radius: 11px;
  padding: .8rem .85rem; text-decoration: none; color: var(--fg); transition: border-color .12s, transform .12s; }
.ent-card:hover { border-color: var(--prat); transform: translateY(-2px); }
.ent-badge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 7px;
  background: rgba(224,162,74,.14); color: var(--prat); font-weight: 700; font-size: .82rem;
  border: 1px solid rgba(224,162,74,.28); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.ent-ct { display: block; font-weight: 700; font-size: .92rem; }
.ent-cd { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; line-height: 1.35; }

.ent-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ent-pill { border: 1px solid var(--line); border-radius: 9px; padding: .5rem .8rem; text-decoration: none;
  color: var(--fg); background: var(--sidebar); font-size: .85rem; }
.ent-pill:hover { border-color: var(--prat); }

@media (max-width: 720px) {
  .pagina-index .conteudo { padding: 1.4rem 1.1rem 3rem; }
  .ent-hero { grid-template-columns: 1fr; text-align: center; }
  .ent-capa { margin: 0 auto; }
  .ent-ctas { justify-content: center; }
  .ent-trilha { grid-template-columns: repeat(2, 1fr); }
}

/* Siglas "abertas" (spec 023): sublinhado pontilhado discreto + tooltip nativo. */
abbr[title] { text-decoration: underline dotted; text-decoration-thickness: 1px;
  text-underline-offset: 2px; text-decoration-color: var(--muted); cursor: help; }

/* Foto do autor (spec 024) */
.autor-foto { width: 160px; height: 160px; object-fit: cover; border-radius: 12px;
  float: right; margin: .2rem 0 1rem 1.5rem; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
@media (max-width: 600px) { .autor-foto { float: none; display: block; margin: 0 auto 1rem; } }
.splash-linkedin { color: inherit; }

/* Figuras (spec 027) */
.figura { margin: 1.6rem 0; text-align: center; }
.figura img { max-width: 100%; height: auto; }
.figura figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }

/* Ilha viva "Uso do livro" (spec 055) */
.uso-kpis { display: flex; gap: .7rem; margin: 1rem 0; }
.uso-kpi { flex: 1; background: var(--sidebar); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .9rem; text-align: center; }
.uso-kpi b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.uso-kpi span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.uso-lista { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0; }
.uso-linha { display: grid; grid-template-columns: minmax(140px, 220px) 1fr 3ch; gap: .6rem; align-items: center; font-size: .85rem; }
.uso-nome { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uso-trilho { height: 12px; border-radius: 5px; background: rgba(127,127,127,.15); overflow: hidden; }
.uso-trilho i { display: block; height: 100%; background: linear-gradient(90deg, var(--link), var(--prat)); }
.uso-n { text-align: right; font-variant-numeric: tabular-nums; }
.uso-nota, .uso-off { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .uso-linha { grid-template-columns: 1fr; gap: .15rem; } .uso-n { text-align: left; } }

/* Knowledge Graph (spec 057) */
.kg { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--sidebar); }
.kg canvas { display: block; cursor: grab; }
.kg-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .6rem; }
.kg-filtro { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--sidebar); color: var(--muted); font-size: .78rem; padding: .22rem .7rem; cursor: pointer; }
.kg-filtro.on { color: var(--fg); border-color: var(--prat); }
.kg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kg-dica { margin-left: auto; font-size: .72rem; color: var(--muted); }
.kg-painel { position: absolute; top: 10px; right: 10px; max-width: 260px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: .6rem 2rem .6rem .8rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.kg-p-t { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.kg-p-sub { color: var(--muted); font-size: .74rem; margin: .15rem 0 .35rem; }
.kg-p-link { font-size: .8rem; font-weight: 600; }
.kg-p-x { position: absolute; top: .3rem; right: .4rem; border: none; background: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; }
.kg-off { color: var(--muted); font-size: .85rem; }

/* Contador de visitas no rodapé (spec 058) */
.rodape-visitas { color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.rodape-visitas:hover { color: var(--prat); }

/* News da entrada (spec 061): a última do Radar + a edição corrente */
.ent-news { margin-top: .9rem; background: rgba(224,162,74,.10); border: 1px solid rgba(224,162,74,.30);
  border-left: 3px solid var(--prat); border-radius: 12px; padding: .75rem 1.1rem; }
.ent-news-k { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--prat); font-weight: 700; margin-bottom: .25rem; }
.ent-news p { margin: 0; font-size: .95rem; line-height: 1.5; }
.ent-news-mais { display: inline-block; margin-top: .35rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.ent-news-mais:hover { text-decoration: underline; }
.ent-vedicao { margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.ent-vedicao b { font-variant-numeric: tabular-nums; }

/* ===== Radar-jornal (spec 071) — o diário do Radar como site de notícias ===== */
.jornal { max-width: 62rem; }
.jr-masthead { border-bottom: 3px double var(--borda, #c8c2b4); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.jr-marca { font-size: 1.7rem; letter-spacing: -.5px; }
.jr-marca b { color: var(--prat, #b06d0f); }
.jr-tagline { color: var(--muted); font-size: .92rem; max-width: 60ch; margin: .4rem 0 .8rem; }
.jr-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.jr-tab { font: 600 .8rem/1 system-ui, sans-serif; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--borda, #c8c2b4); text-decoration: none; color: var(--muted); }
.jr-tab.ativo { background: var(--prat, #b06d0f); color: #fff; border-color: transparent; }
.jr-edicao { margin: 0 0 2.6rem; }
.jr-data { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1rem;
  border-bottom: 1px solid var(--borda, #e2ddd2); padding-bottom: .4rem; }
.jr-data span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.jr-data b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.jr-hoje { background: rgba(224,162,74,.15); color: var(--prat, #b06d0f); border-radius: 999px;
  padding: .2rem .7rem; font: 700 .68rem/1 system-ui; text-transform: uppercase; letter-spacing: .06em; }
.jr-card { border: 1px solid var(--borda, #e2ddd2); border-radius: 14px; padding: 1.1rem 1.3rem; margin: 0 0 1rem;
  background: var(--painel, rgba(127,127,127,.04)); }
.jr-lead { border-left: 4px solid var(--prat, #b06d0f); }
.jr-lead h3 { font-size: 1.45rem; line-height: 1.2; margin: .3rem 0 .6rem; }
.jr-card h3 { margin: .3rem 0 .5rem; }
.jr-kicker { display: flex; gap: .5rem; align-items: center; }
.jr-manchete-tag { font: 700 .66rem/1 system-ui; text-transform: uppercase; letter-spacing: .08em; color: var(--prat, #b06d0f); }
.jr-imp { font: 700 .66rem/1 system-ui; text-transform: uppercase; letter-spacing: .06em;
  border-radius: 999px; padding: .25rem .7rem; }
.jr-imp-a { background: rgba(220,72,72,.14); color: #c04040; }
.jr-imp-b { background: rgba(224,162,74,.16); color: #a06a1a; }
.jr-imp-c { background: rgba(120,174,255,.14); color: #4a78c0; }
.jr-corpo { font-size: .95rem; }
.jr-corpo p { margin: .4rem 0; }
.jr-fontes { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .7rem;
  border-top: 1px dashed var(--borda, #e2ddd2); padding-top: .55rem; }
.jr-fontes > span { font: 700 .66rem/1 system-ui; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.jr-fonte { font: 600 .74rem/1 system-ui; padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid var(--borda, #d8d2c4); text-decoration: none; color: var(--texto, #333); }
.jr-fonte:hover { border-color: var(--prat, #b06d0f); color: var(--prat, #b06d0f); }
.jr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.jr-grid .jr-card { margin: 0; }
.jr-caixa { border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 .9rem; font-size: .9rem; }
.jr-caixa h4, .jr-caixa summary { font: 700 .72rem/1.3 system-ui; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .4rem; }
.jr-descartes { background: rgba(127,127,127,.06); border: 1px dashed var(--borda, #c8c2b4); }
.jr-risco { background: rgba(220,72,72,.07); border: 1px solid rgba(220,72,72,.25); }
.jr-risco h4 { color: #c04040; }
.jr-consultas { background: rgba(120,174,255,.06); border: 1px solid rgba(120,174,255,.2); }
.jr-consultas summary { cursor: pointer; color: #4a78c0; }
.jr-outra { background: rgba(224,162,74,.07); border: 1px solid rgba(224,162,74,.25); }
.jr-rodape { color: var(--muted); font-size: .85rem; border-top: 3px double var(--borda, #c8c2b4); padding-top: .8rem; }

/* Radar-jornal — capa e acervo (spec 076) */
.jr-placar { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: .9rem; }
.jr-placar div { display: flex; flex-direction: column; line-height: 1.15; }
.jr-placar b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.jr-placar span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.jr-mesa { border: 1px solid var(--borda, #c8c2b4); border-left: 4px solid #b4453c; padding: .9rem 1.1rem; margin-bottom: 1.6rem; background: rgba(180,69,60,.04); }
.jr-mesa h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.jr-mesa h2 small { font-weight: 400; color: var(--muted); }
.jr-mesa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.jr-mesa li { display: flex; gap: .6rem; align-items: baseline; font-size: .9rem; }
.jr-mesa li em { display: block; color: var(--muted); font-style: normal; font-size: .84rem; margin-top: .15rem; }
.jr-mesa-mais { display: inline-block; margin-top: .7rem; font-size: .84rem; }
.jr-filtros { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0 1rem; }
.jr-chip { border: 1px solid var(--borda, #c8c2b4); background: transparent; color: inherit; border-radius: 999px; padding: .18rem .7rem; font: inherit; font-size: .78rem; cursor: pointer; }
.jr-chip:hover { border-color: #4a78c0; }
.jr-chip.ativo { background: var(--texto, #23201b); color: var(--fundo, #fbf9f4); border-color: transparent; }
.jr-secao-t { border-top: 3px double var(--borda, #c8c2b4); padding-top: .9rem; margin-top: 2rem; font-size: 1.1rem; }
.jr-dia { margin-bottom: 1.6rem; }
.jr-dia-t { display: flex; gap: .6rem; align-items: baseline; margin: 0 0 .7rem; font-size: 1rem; }
.jr-dia-t small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.jr-acervo-cta { display: block; text-align: center; border: 1px dashed var(--borda, #c8c2b4); padding: .8rem; margin: 1.6rem 0; font-size: .92rem; }
.jr-acervo-cta:hover { border-style: solid; border-color: #4a78c0; }
.jr-acervo-k { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.jr-acervo-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--borda, #c8c2b4); margin-bottom: 1.2rem; font-size: .9rem; }
.jr-acervo-nav b { font-size: 1.05rem; }
.jr-arq-ed { border-bottom: 1px solid var(--borda, #c8c2b4); padding: .7rem 0; }
.jr-arq-ed > summary { cursor: pointer; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.jr-arq-data { font-weight: 700; min-width: 4.2rem; }
.jr-arq-resumo { flex: 1; color: var(--muted); font-size: .88rem; }
.jr-arq-imps { display: flex; gap: .2rem; }
.jr-arq-imps .jr-imp { padding: 0 .32rem; font-size: .68rem; font-style: normal; }
.jr-arq-ed[open] > summary { margin-bottom: .9rem; }
@media (max-width: 640px) {
  .jr-placar { gap: 1.1rem; }
  .jr-placar b { font-size: 1.25rem; }
  .jr-acervo-nav { font-size: .82rem; }
  .jr-arq-resumo { flex-basis: 100%; }
}
.jr-mesa li > .jr-imp { font-style: normal; min-width: 1.4rem; text-align: center; padding: .05rem .3rem; font-size: .72rem; }
.jr-chip-n { display: inline-block; margin-left: .35rem; opacity: .55; font-variant-numeric: tabular-nums; }
.jr-chip[disabled] { opacity: .38; cursor: not-allowed; }
.jr-chip[disabled]:hover { border-color: var(--borda, #c8c2b4); }

/* ===== Spec 080 — página de entrada por link mágico ===== */
.entrar-body { display: grid; place-items: center; min-height: 100vh; padding: 2rem 1.2rem; }
.entrar { max-width: 34rem; text-align: center; }
.entrar-marca { display: block; font-weight: 700; text-decoration: none; color: var(--texto);
  margin-bottom: 1.6rem; }
.entrar-estado { border: 1px solid var(--borda, rgba(127,127,127,.35)); border-radius: 16px;
  padding: 1.6rem 1.4rem; }
.entrar-estado h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.entrar-estado p { margin: 0 0 1rem; color: var(--muted); line-height: 1.5; }
.entrar-estado.carregando { opacity: .7; }
.entrar-estado.erro { border-color: #c0605a; }
.entrar-estado.ok { border-color: #3d8a5c; }
.entrar-nota { margin-top: 1.2rem; font-size: .78rem; color: var(--muted); line-height: 1.5; }
