/* Espaço de Gaspar do Amaral — barra de línguas e ajustes das páginas traduzidas (árabe da direita para a esquerda, chinês)
   Gerado com construcao/gaspar/espaco_linguas.py (fonte: construcao/gaspar/linguas.css) · © Aprecisa.com · Gaspar do Amaral · 27/10/2026 · com recurso a IA */
.faixa-idiomas { background: #7A1F26; font-size: .8rem; font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; }
.faixa-c { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: flex-end; }
.idiomas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; padding: 4px 0; }
.idiomas a { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; min-width: 24px; color: rgba(255,252,246,.85); padding: 3px 9px; border-radius: 4px; letter-spacing: .04em; font-weight: 600; white-space: nowrap; text-decoration: none; border: 0; }
.idiomas a:hover { color: #fff; background: rgba(255,252,246,.14); }
.idiomas a[aria-current="true"] { color: #7A1F26; background: #F6F3E4; }
@media (max-width: 480px) {
  .faixa-c { justify-content: center; padding: 0 8px; }
  .idiomas { justify-content: center; gap: 0; }
  .idiomas a { padding: 3px 4px; letter-spacing: 0; font-size: .72rem; min-height: 28px; }
}
@media print { .faixa-idiomas { display: none !important; } }

/* Nota de língua (páginas traduzidas) */
.nota-lingua { font-size: .9rem; color: var(--texto-3, #7B8794); margin: 14px 0 0; }
.abertura .nota-lingua { max-width: 70ch; }

/* Chinês simplificado */
html:lang(zh) body { font-family: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(zh) .lema { font-family: "Source Serif 4", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif; }
html:lang(zh) .lead { font-family: "Source Serif 4", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", serif; }

/* Árabe: da direita para a esquerda */
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .marca, html[dir="rtl"] .lema, html[dir="rtl"] .lead { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, serif; letter-spacing: 0; }
html[dir="rtl"] .idiomas a, html[dir="rtl"] .etiqueta, html[dir="rtl"] .meta { letter-spacing: 0; }
html[dir="rtl"] .faixa-c { justify-content: flex-start; }
html[dir="rtl"] .salto { left: auto; right: -9999px; }   /* à esquerda, em RTL, criaria deslocamento horizontal */
html[dir="rtl"] .salto:focus { right: 16px; }
html[dir="rtl"] .painel-lista, html[dir="rtl"] .escala ul, html[dir="rtl"] .explica-api ul { padding-left: 0; padding-right: 1.1em; }
html[dir="rtl"] .ficha { border-left: 1px solid var(--linha, #e2d8cc); border-right: 4px solid var(--acento, #a0522d); }
html[dir="rtl"] .ficha.com-capa { border-right-width: 4px; }
html[dir="rtl"] .escolha { border-left: 1px solid var(--linha); border-right: 4px solid var(--texto); }
html[dir="rtl"] .escolha-n::after { content: " ←"; }
html[dir="rtl"] .ciclo li:not(:last-child)::after { content: "←"; margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .ampliar-fechar { right: auto; left: -14px; }
html[dir="rtl"] .video-titulo { text-align: right; }
html[dir="rtl"] .vid-so-yt, html[dir="rtl"] .junto-video .vid-so-yt { left: auto; right: 6px; }
[dir="rtl"] bdi[dir="ltr"], [dir="rtl"] [lang="pt-PT"] { unicode-bidi: isolate; }
/* página «Sobre» em árabe */
html[dir="rtl"] .sobre-bio blockquote { border-left: 0; border-right: 3px solid var(--gold); }
html[dir="rtl"] .resumo ul, html[dir="rtl"] .indice ol { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] section > h2, html[dir="rtl"] aside h2 { letter-spacing: 0; }
html[dir="rtl"] .meta bdi { white-space: nowrap; }
