/* Tema "Brasa" para a leitura de "O melhor para o Grande Rei": noite azul-marinho, laranja de brasa e creme.
   Títulos em caixa alta condensada, números gigantes vazados. Todas as regras começam em .tema para não vazar para o site.
   Fontes: Barlow Condensed (títulos) e Literata (texto). */

.tema {
  --c0: #0f0e0c;
  --c2: #24211c;
  --sol: #ffc21a;
  --sol2: #ffe083;
  --os: #efe9db;
  --cz: #8c877d;
  --texto: #e9e3d3;
  --cz2: #b9b3a4;
  --c3: #3a362f;
  --f-titulo: "Jost", "Century Gothic", sans-serif;
  --f-texto: "Newsreader", Georgia, serif;
  background: var(--c0);
  color: var(--texto);
}
/* A fonte do tema vale só para o cabeçalho, o sumário e o texto; o convite para assinar mantém o visual do site */
.tema .tema-hero, .tema .tema-sumario, .tema .leitura-tematica { font-family: var(--f-texto); }

/* ── Cabeçalho ───────────────────────────────────────────── */
.tema .tema-hero { background: radial-gradient(70% 80% at 80% 100%, rgba(255, 140, 20, .22) 0%, var(--c0) 70%); border-bottom: 1px solid var(--sol); }
.tema .tema-hero-in { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 2.75rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .tema .tema-hero-in { grid-template-columns: 1fr 15.5rem; padding: 3.5rem 1.5rem 4rem; gap: 3rem; } }
.tema .tema-trilha { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--cz2); margin-bottom: 1.75rem; }
.tema .tema-trilha a { color: var(--cz2); text-decoration: none; }
.tema .tema-trilha a:hover { color: var(--sol2); text-decoration: underline; }
.tema .tema-sup { font-family: var(--f-titulo); font-size: .95rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--sol); margin: 0 0 1.1rem; }
.tema .tema-sup::after { content: ""; display: block; width: 3.4rem; height: 3px; background: var(--sol); margin-top: .9rem; }
.tema .tema-hero h1 { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(2.3rem, 8.6vw, 4.2rem); line-height: 1; text-transform: uppercase; letter-spacing: .08em; color: var(--os); margin: 0; }
.tema .tema-orn { display: none; }
.tema .tema-sub { font-style: italic; color: var(--sol2); font-size: 1.15rem; line-height: 1.45; max-width: 32rem; margin: 1.4rem 0 0; }
.tema .tema-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .9rem; color: var(--cz2); margin: 1.6rem 0 0; }
.tema .tema-baixar { display: inline-block; margin-top: 1.4rem; padding: .6rem 1.2rem; border: 1.5px solid var(--sol); color: var(--sol2); font-family: var(--f-titulo); font-size: 1.05rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.tema .tema-baixar:hover { background: var(--sol); color: var(--c0); }
.tema .tema-capa { justify-self: center; width: min(15.5rem, 70%); border: 1.5px solid rgba(255, 194, 26, .55); box-shadow: 0 0 0 .3rem var(--c0), 0 0 0 calc(.3rem + 1px) rgba(255, 194, 26, .3), 0 1.5rem 3rem -1rem rgba(0, 0, 0, .8); }
.tema .tema-capa img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .tema .tema-capa { width: 11.5rem; } }

/* ── Corpo ───────────────────────────────────────────────── */
.tema .tema-corpo { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
@media (min-width: 640px) { .tema .tema-corpo { padding: 3.5rem 1.5rem 5rem; } }

/* Sumário */
.tema .tema-sumario { margin: 0 0 3.5rem; padding: 1.5rem 1.4rem; border-top: 1px solid var(--sol); background: var(--c2); }
.tema .tema-sumario h2 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; letter-spacing: .02em; color: var(--os); margin: 0 0 1rem; }
.tema .tema-sumario ol { list-style: none; margin: 0; padding: 0; }
.tema .tema-sumario li { border-bottom: 1px solid var(--c3); }
.tema .tema-sumario li:last-child { border-bottom: 0; }
.tema .tema-sumario a { display: flex; align-items: baseline; gap: .8rem; padding: .6rem .1rem; text-decoration: none; color: var(--texto); }
.tema .tema-sumario a:hover .nome { color: var(--sol2); }
.tema .tema-sumario .rot { flex: 0 0 6.6rem; font-family: var(--f-titulo); font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sol); }
.tema .tema-sumario .nome { flex: 1; font-size: 1rem; line-height: 1.3; }
@media (max-width: 480px) { .tema .tema-sumario a { flex-direction: column; gap: .1rem; } .tema .tema-sumario .rot { flex-basis: auto; } }

/* Texto de leitura (o tamanho muda com A− / A+, que adicionam .reading-sm / .reading-lg) */
.tema .leitura-tematica { font-size: 1.1rem; line-height: 1.72; }
.tema .leitura-tematica.reading-sm { font-size: 1rem; }
.tema .leitura-tematica.reading-lg { font-size: 1.28rem; }
.tema .leitura-tematica p { margin: 0 0 1.05em; overflow-wrap: break-word; }
@media (min-width: 640px) { .tema .leitura-tematica p { text-align: justify; hyphens: auto; } }
.tema .leitura-tematica strong, .tema .leitura-tematica em { color: var(--os); }

/* Capítulos */
.tema .cap { position: relative; margin-top: 4.5rem; scroll-margin-top: 5rem; }
.tema .cap:first-child { margin-top: 0; }
.tema .ilus { margin: 0 0 2rem; border-bottom: 1px solid var(--sol); background: var(--c2); }
.tema .ilus img { display: block; width: 100%; height: auto; }
.tema .cap[data-tipo="capitulo"]:has(.ilus)::before { content: attr(data-n); position: absolute; top: .8rem; right: .8rem; z-index: 2; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; box-sizing: border-box; border: 1.6px solid var(--sol); border-radius: 50%; background: var(--c0); color: var(--sol); font-family: var(--f-titulo); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.tema .cap h2 { margin: 0 0 1.5rem; padding-right: 3.8rem; }
.tema .cap h2 .rot { display: block; font-family: var(--f-titulo); font-size: .95rem; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--sol); margin-bottom: .3rem; }
.tema .cap h2 .nome { display: block; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.08; text-transform: uppercase; letter-spacing: .06em; color: var(--os); }
.tema .cap h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sol2); margin: 2.2rem 0 .6rem; }
.tema .cap h3::before { content: "\25CF\00a0\00a0"; color: var(--cz); font-size: .6em; vertical-align: 2px; }

/* Destaques */
.tema .cap blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 1px solid var(--cz); color: var(--os); font-style: italic; }
.tema .cap blockquote p { margin: 0 0 .7em; text-align: left; hyphens: none; }
.tema .cap blockquote p:last-child { margin-bottom: 0; }
.tema .cap blockquote.ideia { margin: 0 0 1.8rem; padding: 1rem 1.2rem; background: var(--c2); border-left: .7rem solid var(--sol); color: var(--os); }
.tema .cap blockquote.ideia strong { font-family: var(--f-titulo); font-style: normal; font-size: .95rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sol); }
.tema .cap blockquote.ideia + p::first-letter { float: left; font-family: var(--f-titulo); font-weight: 700; font-size: 4.4em; line-height: .78; color: var(--sol); padding: .1em .12em 0 0; }
.tema .cap blockquote.antes { padding: 1rem 1.2rem; border: 1px dashed var(--cz); border-radius: .3rem; font-style: normal; color: var(--texto); }
.tema .cap blockquote.antes strong { font-family: var(--f-titulo); font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sol); }
.tema .cap blockquote.versiculo { margin: 2rem .2rem; padding: 1.3rem 1.2rem; text-align: center; border-left: 0; border-top: 1px solid var(--sol); border-bottom: 1px solid var(--sol); color: var(--os); font-size: 1.1em; }
.tema .cap blockquote.versiculo p { text-align: center; }
.tema .cap blockquote.versiculo strong { display: block; font-family: var(--f-titulo); font-style: normal; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sol); margin-bottom: .5rem; }

/* Listas, linhas, links */
.tema .cap ul, .tema .cap ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.tema .cap ul { list-style: disc; }
.tema .cap ol { list-style: decimal; }
.tema .cap li { margin-bottom: .45em; padding-left: .2rem; }
.tema .cap li::marker { color: var(--sol); }
.tema .cap hr { border: 0; height: .8rem; margin: 2rem 20%; background: radial-gradient(circle, var(--cz) 1.5px, transparent 2px) 0 50% / 1.1rem .8rem repeat-x; }
.tema .cap a { color: var(--sol2); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.tema .cap a:hover { color: var(--sol); }

/* Glossário e referências */
.tema .cap.glossario ul { list-style: none; padding: 0; }
.tema .cap.glossario li { padding: .6rem 0; border-bottom: 1px solid var(--c3); margin: 0; }
.tema .cap.glossario li strong { color: var(--sol); }
.tema .cap.ref p, .tema .cap.ref li { font-size: .88em; line-height: 1.5; text-align: left; hyphens: none; color: var(--cz2); }

.tema .tema-corpo > :not(.tema-sumario):not(.leitura-tematica) { margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .tema .tema-baixar { transition: none; } }
