/* Identidade compartilhada. Paleta de leitura da Bíblia, independente da arte exportada. */
:root{--s-paper:#f9f8f4;--s-panel:#fff;--s-ink:#1e252b;--s-muted:#4b5861;--s-line:#ddd9cd;--s-accent:#846014;--s-header:#fffdf8;--s-footer:#f0ede5;--s-soft:#f0ede5;color-scheme:light}
:root[data-theme=dark]{--s-paper:#12161c;--s-panel:#1c222c;--s-ink:#f3f4f3;--s-muted:#bdc6cd;--s-line:#38414a;--s-accent:#e9c477;--s-header:#15191f;--s-footer:#15191f;--s-soft:#171c23;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-theme]){--s-paper:#12161c;--s-panel:#1c222c;--s-ink:#f3f4f3;--s-muted:#bdc6cd;--s-line:#38414a;--s-accent:#e9c477;--s-header:#15191f;--s-footer:#15191f;--s-soft:#171c23;color-scheme:dark}}
html body,html[data-theme] body.home-theme,html[data-theme] body.servos-home,html:not([data-theme]) body.home-theme{--paper:var(--s-paper);--panel:var(--s-panel);--ink:var(--s-ink);--muted:var(--s-muted);--line:var(--s-line);--accent:var(--s-accent);--header-bg:var(--s-header);--header-ink:var(--s-ink);--footer-bg:var(--s-footer);--footer-ink:var(--s-ink);--soft:var(--s-soft);background:var(--paper);color:var(--ink);color-scheme:inherit}
html .shared-header{background:var(--header-bg);border-color:var(--line)}
html .brand-link,html .global-nav a,html .site-footer .footer-grid nav a{color:var(--ink)}
html .global-nav a:hover,html .global-nav a:focus-visible{color:var(--accent)}
html .site-footer{background:var(--footer-bg);color:var(--muted)}
html .site-footer p,html .site-footer .footer-method{color:var(--muted)}
html .section h3,html .section h4{color:var(--ink)}
html header.hero{background:radial-gradient(ellipse at 15% 0%,color-mix(in srgb,var(--accent) 12%,var(--paper)),var(--paper) 65%);border-color:var(--line)}
html .study-note,html th{background:var(--soft);color:var(--ink);border-color:var(--line)}
html .floating-toc{background:var(--panel);color:var(--ink);border-color:var(--line)}
html .reference,html .home-theme .reference,html .home-theme .lead{color:var(--muted)}
html .home-theme .eyebrow{color:var(--accent)}
html .home-theme .home-hero{background:linear-gradient(110deg,var(--paper),color-mix(in srgb,var(--accent) 10%,var(--paper)))}
html .home-theme .home-intro h1,html .home-theme .home-archive h2{color:var(--ink)}
html .home-theme .archive-card{background:var(--panel);border-color:var(--line)}
html .home-theme .archive-card h3 a,html .home-theme .archive-card h3 a:visited{color:var(--ink)}
html .home-theme .archive-card p{color:var(--muted)}
html .home-theme .home-cta,html .home-theme .search-line button{background:var(--accent);color:var(--paper)}
html .home-theme .home-secondary{color:var(--ink);border-color:var(--line)}
html .home-theme .search-line input{background:var(--panel);color:var(--ink);border-color:var(--muted)}
html .codex-media-host{background:var(--panel);color:var(--ink)}
html .codex-media-label,html .codex-media-count,html .codex-media-local-status{color:var(--muted)}
html .codex-media-input{background:var(--paper);color:var(--ink);border-color:var(--muted)}
html .codex-media-card,html .codex-protocol-preview{--accent:#edc777;color:#fff}
html .codex-media-card h3{color:#fff}
html .codex-protocol-preview h3{color:#edc777}
html .codex-media-card.postits h3{color:#211e14}
html a:focus-visible,html button:focus-visible,html input:focus-visible,html summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
html .skip-link{color:var(--paper)}
html .chapter-grid a[aria-current=page]{background:var(--accent);color:var(--paper)}
a[target="_blank"][rel~="noopener"]::after{content:" ↗";font: .78em system-ui,sans-serif}
@media print{html body,html[data-theme] body{background:white!important;color:#111!important}}
/* Evita contraste transitório nos botões ao mudar de tema. */
html[data-theme] .servos-home .hero-actions .home-secondary{background:var(--panel);color:var(--ink);border-color:var(--line);transition:transform .18s}
html[data-theme] .servos-home .hero-actions .home-cta{background:var(--accent);color:var(--paper);transition:transform .18s}
@media(prefers-reduced-motion:reduce){html[data-theme] .servos-home .hero-actions a{transition:none!important}}
/* Links visitados */
:root {
    --s-visited: #76558e;
}

:root[data-theme="dark"] {
    --s-visited: #bd9bdf;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --s-visited: #bd9bdf;
    }
}

html .home-theme .archive-card h3 a:visited,
html .book-archive a:visited,
html body .book-card:visited,
html body .chapter-grid a:not([aria-current="page"]):visited,
html .results-list a:visited,
html .next-prev a[href*="?livro="]:visited,
html .section a[href^="/estudos/"]:visited,
html .section a[href^="/biblia/?livro="]:visited,
html .section a[href^="https://servosdedeus.com/estudos/"]:visited,
html .section a[href^="https://servosdedeus.com/biblia/?livro="]:visited {
    color: var(--s-visited);
}
