/* Filosofia antiga: páginas e seções do percurso de Christopher Shields. */
.sh-book .folio { max-width: 66rem; }
.sh-hero { padding-block: 2.5rem 1.8rem; }
.sh-hero h1 { max-width: 23ch; margin-block: .4rem 1rem; }
.sh-lede { max-width: 65ch; color: var(--fosco); font-size: 1.15rem; }
.sh-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-top: 1.8rem; }
.sh-tabs a { display: block; border: 1px solid var(--linha); border-radius: var(--raio-p); padding: .75rem; text-decoration: none; font-size: .92rem; line-height: 1.35; }
.sh-tabs a:hover { background: var(--painel-2); }
.sh-tabs a[aria-current="page"] { border-color: var(--ouro); color: var(--ouro); background: var(--painel); }
.sh-tabs small { display: block; color: var(--fosco); margin-bottom: .25rem; }
.sh-info, .sh-overview, .sh-index { padding: 1.15rem 1.35rem; margin-block: 1.2rem; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--painel); }
.sh-info p, .sh-overview p { margin: .35rem 0; }
.sh-info { border-left: 3px solid var(--ouro); font-size: .95rem; }
.sh-overview progress { width: 100%; height: .55rem; accent-color: var(--ouro); }
.sh-index ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem 1.5rem; list-style: none; padding: 0; }
.sh-index li { min-width: 0; }
.sh-index a { display: block; padding: .5rem 0; text-decoration: none; }
.sh-index small { display: block; color: var(--fosco); font-size: .8rem; }
.sh-section { border-top: 1px solid var(--linha-2); padding-top: 2.4rem; margin-top: 3rem; scroll-margin-top: 1.3rem; }
.sh-section h2 { margin-block: .3rem 1rem; font-size: clamp(1.7rem,3vw,2.3rem); max-width: 36ch; }
.sh-podcast { border: 1px dashed var(--linha-2); padding: 1rem 1.2rem; margin-block: 1.5rem; border-radius: var(--raio); background: var(--painel); }
.sh-podcast p { color: var(--fosco); margin: .3rem 0 0; font-size: .95rem; }
.sh-podcast iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; margin-top: .8rem; }
.sh-theory { max-width: 72ch; font-family: var(--serifada); font-size: 1.24rem; line-height: 1.75; }
.sh-theory p { margin-block: 0 1.2rem; }
.sh-reading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem; background: var(--painel-2); border-radius: var(--raio); margin-block: 1.5rem; }
.sh-reading p { margin: 0; font-size: .92rem; }
.sh-reading button { flex: 0 0 auto; }
.sh-quiz { border: 1px solid var(--linha); border-radius: var(--raio); margin-block: 1.5rem 2rem; padding: 1rem 1.1rem; }
.sh-quiz > summary { cursor: pointer; font-weight: 600; color: var(--ouro); padding-block: .2rem; }
.sh-quiz[open] > summary { margin-bottom: 1rem; }
.sh-quiz form { margin-top: 1rem; }
.sh-quiz .questao label { overflow-wrap: anywhere; }
.sh-result { background: var(--painel-2); padding: 1rem; border-radius: var(--raio-p); margin-top: 1rem; }
.sh-result p { margin: .35rem 0; }
.sh-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.sh-meta { color: var(--fosco); font-size: .85rem; }
.sh-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-block: 2rem; }
.sh-card { display: block; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.4rem; text-decoration: none; background: var(--painel); }
.sh-card:hover { border-color: var(--ouro); }
.sh-card h2 { font-size: 1.6rem; margin: .6rem 0; }
.sh-card p { color: var(--fosco); }
.sh-card small { color: var(--ouro); }
.sh-next { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--linha); margin-top: 3rem; }
.sh-book .rodape { margin-top: 3rem; }
.sh-book [hidden] { display: none !important; }
.sh-book :focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; }
/* Teoria ampliada (2026-10-31): subtítulos, listas, tabelas, citações e glosas dentro da teoria. */
.sh-theory h3 { font-family: var(--serifada); font-size: 1.35rem; margin: 2rem 0 .7rem; color: var(--texto); }
.sh-theory h3:first-child { margin-top: .5rem; }
.sh-theory ul, .sh-theory ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.sh-theory li { margin-bottom: .45rem; }
.sh-theory .citacao { margin-block: 1.2rem 1.5rem; font-size: 1.1rem; }
.sh-theory .glosa { font-family: inherit; font-size: .98rem; line-height: 1.55; margin-block: 1.4rem; }
.sh-theory table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; line-height: 1.4; display: block; overflow-x: auto; }
.sh-theory th, .sh-theory td { border: 1px solid var(--linha); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.sh-theory thead th { background: var(--painel-2); }
@media(max-width: 40rem) { .sh-theory h3 { font-size: 1.2rem; } .sh-theory table { font-size: .85rem; } }
@media(max-width: 40rem) {
  .sh-tabs, .sh-index ol, .sh-cards { grid-template-columns: 1fr; }
  .sh-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sh-reading { align-items: stretch; flex-direction: column; }
  .sh-quiz { padding: .8rem; }
  .sh-quiz .questao { padding: .85rem; }
  .sh-theory { font-size: 1.15rem; }
  .sh-section { padding-top: 1.8rem; }
}
@media print {
  .sh-tabs, .sh-podcast, .sh-reading button, .sh-actions, .sh-next { display: none; }
  .sh-section, .sh-quiz { break-inside: auto; }
  .sh-theory { max-width: none; font-size: 11pt; }
}
