/* Tema "Salina" para a leitura de "Sal em vocês mesmos": branco-sal, rosa de salmoura, framboesa, ameixa e verde-azulado de tanque.
   Todas as regras começam em .tema. Fontes: Young Serif (títulos) e Literata (texto). */

.tema {
  --sal: #fbf5f1;
  --rosa: #f0d4cf;
  --rosa2: #e2aaa6;
  --salm: #b3335d;
  --salm2: #8f2a4c;
  --ameixa: #3b2433;
  --lagoa: #2b6f7a;
  --cristal: #e8f0f2;
  --f-titulo: "Young Serif", Georgia, serif;
  --f-texto: "Literata", Georgia, serif;
  background: var(--sal);
  color: var(--ameixa);
}
.tema .tema-hero, .tema .tema-sumario, .tema .leitura-tematica { font-family: var(--f-texto); }

/* Cabeçalho */
.tema .tema-hero { background: linear-gradient(var(--rosa), var(--sal)); border-bottom: 3px double var(--rosa2); }
.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(--lagoa); margin-bottom: 1.75rem; }
.tema .tema-trilha a { color: var(--lagoa); text-decoration: none; }
.tema .tema-trilha a:hover { color: var(--salm); text-decoration: underline; }
.tema .tema-sup { font-size: .75rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--lagoa); margin: 0 0 .9rem; }
.tema .tema-hero h1 { font-family: var(--f-titulo); font-weight: 400; font-size: clamp(2.3rem, 8vw, 3.8rem); line-height: 1.05; color: var(--ameixa); margin: 0; overflow-wrap: break-word; }
.tema .tema-orn { color: var(--lagoa); letter-spacing: .5em; margin: 1.1rem 0; font-size: .8rem; }
.tema .tema-sub { font-style: italic; color: var(--salm2); font-size: 1.2rem; line-height: 1.45; max-width: 34rem; margin: 0; }
.tema .tema-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .92rem; color: #54384a; margin: 1.6rem 0 0; }
.tema .tema-baixar { display: inline-block; margin-top: 1.4rem; padding: .6rem 1.2rem; border: 2px solid var(--ameixa); border-radius: 0; color: var(--ameixa); font-weight: 700; text-decoration: none; background: transparent; transition: background .15s, color .15s; }
.tema .tema-baixar:hover { background: var(--salm); border-color: var(--salm); color: var(--sal); }
.tema .tema-capa { justify-self: center; width: min(15.5rem, 70%); border: 2px solid var(--ameixa); overflow: hidden; box-shadow: .5rem .5rem 0 var(--rosa2); }
.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: 1px solid var(--lagoa); border-top: 6px solid var(--salm); background: var(--cristal); }
.tema .tema-sumario h2 { font-family: var(--f-titulo); font-weight: 400; font-size: 1.5rem; color: var(--ameixa); margin: 0 0 1rem; }
.tema .tema-sumario ol { list-style: none; margin: 0; padding: 0; }
.tema .tema-sumario li { border-bottom: 1px dotted var(--rosa2); }
.tema .tema-sumario li:last-child { border-bottom: 0; }
.tema .tema-sumario a { display: flex; align-items: baseline; gap: .8rem; padding: .55rem .2rem; text-decoration: none; color: var(--ameixa); }
.tema .tema-sumario a:hover .nome { color: var(--salm); text-decoration: underline; }
.tema .tema-sumario .rot { flex: 0 0 6.2rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--salm); }
.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 */
.tema .leitura-tematica { font-size: 1.12rem; line-height: 1.7; }
.tema .leitura-tematica.reading-sm { font-size: 1rem; }
.tema .leitura-tematica.reading-lg { font-size: 1.3rem; }
.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 { color: var(--ameixa); font-weight: 700; }

/* 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: 2px solid var(--ameixa); overflow: hidden; background: var(--rosa); }
.tema .ilus img { display: block; width: 100%; height: auto; }
.tema .cap[data-tipo="capitulo"]:has(.ilus)::before { content: attr(data-n); position: absolute; top: .85rem; right: .85rem; z-index: 2; width: 2.6rem; height: 2.6rem; background: var(--salm); color: var(--sal); border: 2px solid var(--ameixa); font-family: var(--f-titulo); font-size: 1.3rem; line-height: 2.4rem; text-align: center; }
.tema .cap h2 { margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 3px double var(--rosa2); }
.tema .cap h2 .rot { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--lagoa); margin-bottom: .5rem; }
.tema .cap h2 .nome { display: block; font-family: var(--f-titulo); font-weight: 400; font-size: clamp(1.7rem, 5.2vw, 2.2rem); line-height: 1.12; color: var(--ameixa); }
.tema .cap h3 { font-family: var(--f-titulo); font-weight: 400; font-size: 1.25rem; line-height: 1.3; color: var(--salm2); margin: 2.2rem 0 .6rem; }
.tema .cap h3::before { content: "\25C6\00a0\00a0"; color: var(--lagoa); font-size: .6em; vertical-align: .2em; }

/* Destaques */
.tema .cap blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--rosa2); color: #54384a; 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(--cristal); border: 1px solid var(--lagoa); border-left: 6px solid var(--salm); color: var(--ameixa); }
.tema .cap blockquote.ideia strong { font-style: normal; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--salm); }
.tema .cap blockquote.ideia + p::first-letter { float: left; font-family: var(--f-titulo); font-size: 3.6em; line-height: .8; color: var(--salm); padding: .08em .12em 0 0; }
.tema .cap blockquote.antes { padding: 1rem 1.2rem; background: var(--rosa); border-left: 0; border-top: 3px solid var(--salm); font-style: normal; }
.tema .cap blockquote.antes strong { color: var(--salm2); }
.tema .cap blockquote.versiculo { margin: 2rem .5rem; padding: 1.1rem .6rem; text-align: center; border-left: 0; border-top: 1px solid var(--lagoa); border-bottom: 1px solid var(--lagoa); font-size: 1.15em; color: var(--ameixa); }
.tema .cap blockquote.versiculo p { text-align: center; }
.tema .cap blockquote.versiculo strong { display: block; font-style: normal; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--lagoa); margin-bottom: .4rem; }

/* 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; overflow-wrap: break-word; }
.tema .cap li::marker { color: var(--salm); }
.tema .cap hr { border: 0; border-top: 1px solid var(--rosa2); margin: 2rem 0; }
.tema .cap a { color: var(--lagoa); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; overflow-wrap: break-word; }
.tema .cap a:hover { color: var(--salm); }

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

.tema .tema-corpo > :not(.tema-sumario):not(.leitura-tematica) { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) { .tema .tema-baixar { transition: none; } }
