:root{color-scheme:dark;--paper:#12161c;--panel:#1c222c;--ink:#f3f4f3;--muted:#bdc6cd;--line:#38414a;--accent:#FFD700;--content:820px}*{box-sizing:border-box}img{max-width:100%;height:auto}html{scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;background:var(--paper);color:var(--ink);font:1.07rem/1.78 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--accent);text-underline-offset:3px}a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}header.hero{padding:clamp(3rem,8vw,6rem) 1.2rem 2.3rem;background:radial-gradient(ellipse at 15% 0%,color-mix(in srgb,var(--accent) 11%,transparent),transparent 60%),#171b22;border-bottom:1px solid var(--line)}.wrap{width:min(var(--content),calc(100% - 2.5rem));margin-inline:auto}.eyebrow{text-transform:uppercase;font-size:.78rem;letter-spacing:.15em;color:var(--accent);font-weight:700}h1,h2,h3{line-height:1.2;letter-spacing:-.018em}h1{font-size:clamp(2.35rem,6vw,4.4rem);margin:.7rem 0 1rem;font-family:Georgia,"Times New Roman",serif}h2{font-size:clamp(1.6rem,3.5vw,2.2rem);color:var(--accent);margin:0 0 1.25rem;font-family:Georgia,"Times New Roman",serif}h3{font-size:1.25rem;margin:0 0 .65rem}p{margin:0 0 1.15rem}.lead{font-size:1.18rem;color:var(--muted);max-width:70ch}.byline{color:var(--muted);font-size:.94rem}.section{padding:3.15rem 0;border-bottom:1px solid var(--line)}.section:target{background:color-mix(in srgb,var(--accent) 4%,transparent)}.toc{background:var(--panel);padding:1.4rem 1.8rem;border:1px solid var(--line);border-radius:14px;margin-top:2rem}.toc h2{font-size:1.15rem;color:var(--ink);font-family:inherit}.toc ul{columns:2;gap:2rem;padding-left:1.2rem;margin:.4rem 0}.toc li{break-inside:avoid;margin:.3rem 0}.scripture{white-space:pre-wrap;border-left:4px solid var(--accent);padding:1.3rem;background:var(--panel);border-radius:0 10px 10px 0;font:1rem/1.85 Georgia,serif}.qa{margin:1.3rem 0;padding:1rem 1.25rem;border:1px solid var(--line);border-radius:12px}.reference{color:var(--muted);font-size:.9rem}sup a{font:700 .7rem system-ui,sans-serif}.practices{padding-left:1.4rem}.practices li{padding:.45rem 0}.prayer{font-family:Georgia,serif;font-size:1.18rem;white-space:pre-wrap;border-left:4px solid var(--accent);padding-left:1.2rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:1rem;min-width:0}.card{background:var(--panel);border:1px solid var(--line);padding:1.15rem;border-radius:12px;min-width:0;max-width:100%;overflow-wrap:anywhere}.card>a{display:block;min-width:0;max-width:100%}.card>a img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;border-radius:8px;margin:.5rem 0 1rem}.card p{margin:0 0 .65rem}.tag{display:inline-block;text-transform:uppercase;letter-spacing:.13em;font-size:.75rem;color:var(--accent);font-weight:700}.downloads{display:flex;flex-wrap:wrap;gap:.7rem}.download,.carousel-controls button{display:inline-block;border:1px solid var(--accent);padding:.65rem 1rem;border-radius:8px;background:transparent;color:var(--accent);text-decoration:none;font:600 .91rem system-ui;cursor:pointer}.download:hover,.carousel-controls button:hover{background:var(--accent);color:#111}.carousel-controls{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;margin-bottom:1.1rem}.carousel-controls[hidden],.card[hidden]{display:none!important}.carousel .card>a img{width:min(320px,100%);height:auto}.carousel .card{margin-bottom:1rem}.source{overflow-wrap:anywhere}.source a{display:inline-block}.site-footer{padding:3rem 0;color:var(--muted);font-size:.9rem}.skip-link{position:absolute;top:-100px;left:1rem;background:var(--accent);color:#111;padding:.6rem;z-index:10}.skip-link:focus{top:1rem}hr{border:0;border-top:1px solid var(--line)}@media(max-width:620px){.toc ul{columns:1}.section{padding:2.2rem 0}.wrap{width:calc(100% - 2rem)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{:root{color-scheme:light}body{background:#fff;color:#111;font-size:11pt}header.hero{background:#fff;border:0}h2,a,.tag{color:#222}.section{break-inside:avoid}.toc,.downloads,.carousel-controls,.skip-link{display:none!important}.card,.qa,.scripture{border-color:#888;background:#fff}.carousel img{max-width:150px}a{text-decoration:none}}

/* Site v0.3: blocos compartilhados, hierarquia editorial, homepage e navegação. */
body{overflow-wrap:break-word}.shared-header{background:#15191f;border-bottom:1px solid var(--line);position:relative;z-index:2}.shared-header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:76px;flex-wrap:wrap;padding-block:.65rem}.brand-link{display:inline-flex;align-items:center;gap:.7rem;color:#fff;text-decoration:none;font:700 1.18rem Georgia,serif}.brand-link img{display:block;flex:0 0 44px}.global-nav{display:flex;flex-wrap:wrap;gap:clamp(.7rem,2vw,1.4rem)}.global-nav a{color:#f4f4f2;font-size:.9rem;text-decoration:none}.global-nav a:hover,.global-nav a:focus-visible{color:var(--accent);text-decoration:underline}
.study-intro{padding:clamp(2.5rem,7vw,5rem) 0 1.5rem}.study-main{padding-bottom:5rem}.study-note{border:1px solid #b79645;border-left:4px solid var(--accent);border-radius:8px;padding:1.1rem 1.2rem;background:#222730;margin:1.2rem 0}.study-note strong{color:var(--accent)}.study-note p:last-child{margin-bottom:0}.study-quote{padding:1.1rem 1.4rem;border-left:4px solid var(--accent);background:var(--panel);font:1.06rem/1.8 Georgia,serif}.study-list li{margin:.5rem 0}.section h3{margin:1.8rem 0 .7rem;color:#f4f4f4}.section h4{margin:1.2rem 0 .5rem;color:#dfdfdf}.table-scroll{overflow-x:auto;max-width:100%;margin:1.25rem 0}table{border-collapse:collapse;width:100%;min-width:370px}th,td{padding:.7rem .85rem;border:1px solid var(--line);text-align:left;vertical-align:top}th{background:#2a3039;color:#fff}
.floating-toc{position:fixed;bottom:max(1rem,env(safe-area-inset-bottom));right:max(1rem,env(safe-area-inset-right));z-index:20;padding:.72rem 1rem;border-radius:999px;background:#252b35;color:#fefefe;border:1px solid #9ba1ab;text-decoration:none;box-shadow:0 8px 24px #0009;font:700 .9rem system-ui;white-space:nowrap}.floating-toc:hover{background:#394253;color:var(--accent)}.floating-toc:focus-visible{outline-offset:3px}html{scroll-padding-top:1.4rem}
.site-footer{border-top:1px solid var(--line);background:#15191f;padding:3rem 0}.footer-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr);gap:2.5rem}.footer-grid nav{display:flex;flex-direction:column;gap:.6rem}.footer-grid nav a{color:#f3f3ef}.footer-brand{font:bold 1.4rem Georgia,serif;color:var(--accent);text-decoration:none}.footer-method{font-size:.84rem;max-width:70ch;color:#afb7bf}
.home-theme{background:#f6f5f1;color:#1c1c1c}.home-theme .home-hero{background:linear-gradient(92deg,#faf9f5 0%,#fdf8e9 100%);border-bottom:1px solid #e3ded2;padding:clamp(3rem,9vw,7rem) 0}.home-theme .home-intro{max-width:1040px;background:url('/assets/brand/hero-biblia.jpg') right center/contain no-repeat;min-height:400px;display:flex;flex-direction:column;justify-content:center}.home-theme .home-intro>*{max-width:55%}.home-theme .eyebrow{color:#8c6522}.home-theme .home-intro h1{font-size:clamp(2.5rem,5vw,4.6rem);color:#1d2226}.home-theme .lead{color:#4c4c4a}.home-cta,.home-secondary{display:inline-block;padding:.75rem 1.2rem;border-radius:999px;text-decoration:none;margin:.4rem .4rem .4rem 0}.home-cta{background:#1c222c;color:#fff}.home-secondary{border:1px solid #555;color:#20252b}.home-theme .home-archive{padding-block:3rem 6rem}.home-theme .home-archive h2{color:#272829}.home-theme .reference{color:#686d72}.search-form{margin:1.6rem 0}.search-form label{display:block;font-weight:700;margin-bottom:.5rem}.search-line{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem}.search-line input{min-width:min(310px,100%);flex:1;padding:.75rem .9rem;font:inherit;border:1px solid #8b8c89;border-radius:8px}.search-line button{padding:.8rem 1.2rem;border:0;background:#1c222c;color:#fff;border-radius:8px;font:inherit;cursor:pointer}.archive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}.archive-card{background:#fff;border:1px solid #deded9;border-radius:14px;padding:1.3rem;min-width:0}.archive-card h3{font:700 1.3rem/1.3 Georgia,serif;margin:0 0 .7rem}.archive-card h3 a{color:#1c222c;text-decoration:none}.archive-card h3 a:hover{text-decoration:underline}.archive-card p{color:#4a4e50}.archive-card .eyebrow{font-size:.7rem}.home-theme .site-footer{color:#c6cad0}.home-theme .footer-grid p{color:#b9c0c7}.about-article h1{font-size:clamp(2.3rem,5vw,4rem)}
@media(max-width:720px){.footer-grid{grid-template-columns:1fr}.home-theme .home-intro{background-size:contain;background-position:center bottom;min-height:550px;justify-content:flex-start}.home-theme .home-intro>*{max-width:100%}.home-theme .home-hero{padding-top:3rem}.home-theme .home-intro h1{max-width:80%}.home-theme .home-intro .lead{max-width:80%}.floating-toc{bottom:max(.8rem,env(safe-area-inset-bottom));right:.7rem}}
@media(max-width:440px){.home-theme .home-intro{min-height:535px}.home-theme .home-intro h1{max-width:100%}.home-theme .home-intro .lead{max-width:100%}.shared-header-inner{justify-content:center}.brand-link{font-size:1.05rem}.global-nav{justify-content:center}}
@media print{.shared-header,.site-footer,.floating-toc,.codex-media-host,.home-cta,.home-secondary{display:none!important}.study-main{padding:0}.section{break-inside:auto}.section h2,h3,h4{break-after:avoid}.scripture,.study-quote,.study-note{break-inside:avoid}.table-scroll{overflow:visible}}

/* Galerias históricas PageLayer: imagens originais, sem gerar arte novamente.
   Sem JS, todas as imagens permanecem visíveis; com JS, navegação em carrossel. */
.legacy-gallery{width:100%;min-width:0;max-width:760px;margin:2rem auto;padding:clamp(.6rem,2vw,1.3rem);border:1px solid var(--line,#38414a);background:var(--panel,#1c222c);border-radius:12px}
.legacy-slides{display:grid;gap:1rem;min-width:0;justify-items:center}
.legacy-slide{margin:0;min-width:0;width:100%;display:flex;justify-content:center;align-items:center}
.legacy-slide[hidden]{display:none!important}
.legacy-slide img{max-width:100%;width:auto;height:auto;max-height:min(80vh,960px);object-fit:contain;border-radius:8px;display:block}
.legacy-gallery-controls{display:flex;align-items:center;justify-content:center;gap:1.25rem;margin-top:.9rem}
.legacy-gallery-controls[hidden]{display:none!important}
.legacy-gallery-controls button{border:1px solid var(--accent,#FFD700);border-radius:7px;background:transparent;color:var(--accent,#FFD700);cursor:pointer;width:2.7rem;height:2.7rem;font-size:1.6rem}
.legacy-gallery-controls button[data-prev]::before{content:'‹'}
.legacy-gallery-controls button[data-next]::before{content:'›'}
.legacy-gallery-controls button:hover{background:var(--accent,#FFD700);color:#111}
.legacy-gallery-controls output{min-width:4rem;text-align:center;font:.9rem/1.3 system-ui,sans-serif;color:var(--ink,#fff)}
@media print{.legacy-gallery-controls{display:none!important}.legacy-slide[hidden]{display:flex!important}.legacy-slide{break-inside:avoid;page-break-inside:avoid}}
/* Tabelas históricas do WordPress em telas estreitas: rolagem local, sem overflow da página. */
.legacy-import{min-width:0;max-width:100%;overflow-wrap:anywhere}
.legacy-import table{display:block;max-width:100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.legacy-import table th,.legacy-import table td{vertical-align:top}
.legacy-import figure.wp-block-table{display:block;width:100%;max-width:100%;min-width:0;margin:1rem 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.legacy-import figure.wp-block-table table{display:table;width:max-content;min-width:100%;max-width:none;overflow:visible}


/* Tema claro/escuro e cabeçalho/arte responsiva — v0.3.7.
   Sem escolha gravada: home clara; artigos escuros (comportamento anterior).
   Apenas cores/contraste mudam; o conteúdo continua visível sem JS. */
.shared-header{background:var(--header-bg,#15191f)}
.site-footer{background:var(--footer-bg,#15191f)}
.brand-link,.global-nav a{color:var(--header-ink,#f4f4f2)}
.site-footer .footer-grid nav a{color:var(--footer-ink,#f3f3ef)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:38px;padding:.35rem .7rem;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font:600 .8rem/1.1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}
.theme-toggle[hidden]{display:none!important}
.theme-toggle:hover{border-color:var(--accent)}
.theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.theme-toggle-icon{font-size:1.15rem;line-height:1}
.theme-toggle-footer{margin-top:.55rem}
.brand-link img{width:56px;height:52px;flex:0 0 56px;object-fit:contain}
.shared-header-inner{column-gap:1.1rem;row-gap:.65rem}
.global-nav{margin-left:auto}
.home-theme .home-intro{background:none;display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);gap:clamp(1rem,3vw,3rem);align-items:center;min-height:0;max-width:1130px}
.home-theme .home-intro>*{max-width:none;min-width:0}
.home-theme .home-intro h1,.home-theme .home-intro .lead{max-width:none}
.home-intro-art{display:flex;align-items:center;justify-content:center;min-width:0}
.home-intro-art img{display:block;width:100%;max-width:540px;height:auto;object-fit:contain;overflow:visible}
@media(max-width:780px){.home-theme .home-intro{grid-template-columns:minmax(0,1fr);text-align:left;gap:.3rem}.home-intro-art img{width:min(100%,510px)}.home-theme .home-intro h1,.home-theme .home-intro .lead{max-width:none}}
@media(max-width:440px){.brand-link img{width:50px;height:46px;flex-basis:50px}.global-nav{margin-left:0}.shared-header-inner{justify-content:center}.theme-toggle{min-height:36px}}

/* A homepage começa clara sem preferência definida, inclusive topo e rodapé. */
html:not([data-theme]) .home-theme{--header-bg:#fffdf8;--header-ink:#1e252b;--footer-bg:#f0ede5;--footer-ink:#2d3640;--line:#ddd9cd;--panel:#fff;--ink:#1e252b;--accent:#846014}
html:not([data-theme]) .home-theme .footer-grid p,html:not([data-theme]) .home-theme .footer-method{color:#4b5861}
/* Light for every page, including studies previously hardcoded dark. */
html[data-theme="light"]{color-scheme:light;--paper:#f9f8f4;--panel:#fff;--ink:#1e252b;--muted:#4b5861;--line:#ddd9cd;--accent:#846014;--header-bg:#fffdf8;--header-ink:#1e252b;--footer-bg:#f0ede5;--footer-ink:#2d3640}
html[data-theme="light"] body{background:var(--paper);color:var(--ink)}
html[data-theme="light"] header.hero{background:radial-gradient(ellipse at 15% 0%,#f5e6bd,#f9f8f4 65%);border-color:var(--line)}
html[data-theme="light"] .shared-header,html[data-theme="light"] .site-footer{border-color:var(--line)}
html[data-theme="light"] .section h3,html[data-theme="light"] .section h4{color:#263139}
html[data-theme="light"] .study-note{background:#fff9e9;border-color:#caa34e}
html[data-theme="light"] th{background:#eee9dc;color:#202831}
html[data-theme="light"] .floating-toc{background:#fffdf7;color:#272b2d;border-color:#b2a78f;box-shadow:0 8px 24px #0002}
html[data-theme="light"] .floating-toc:hover{background:#f7ebcb;color:#78520f}
html[data-theme="light"] .home-theme .home-hero{background:linear-gradient(100deg,#fffefa,#f9efd6)}
html[data-theme="light"] .home-theme .home-intro h1,html[data-theme="light"] .home-theme .home-archive h2{color:#1d252a}
html[data-theme="light"] .home-theme .lead,html[data-theme="light"] .home-theme .archive-card p{color:#4b5359}
html[data-theme="light"] .home-theme .archive-card{background:#fff;border-color:var(--line)}
html[data-theme="light"] .home-theme .archive-card h3 a{color:#222c33}
html[data-theme="light"] .home-theme .home-cta,html[data-theme="light"] .home-theme .search-line button{background:#27323b;color:#fff}
html[data-theme="light"] .home-theme .home-secondary{color:#27323b;border-color:#8e8779}
html[data-theme="light"] .home-theme .footer-grid p,html[data-theme="light"] .home-theme .footer-method{color:#4b5861}
html[data-theme="light"] .site-footer .footer-method{color:#52606b}
html[data-theme="light"] .home-theme .search-line input{background:#fff;color:#1e252b;border-color:#8c8c86}

/* Dark for every page, including the light-by-default homepage. */
html[data-theme="dark"]{color-scheme:dark;--paper:#12161c;--panel:#1c222c;--ink:#f3f4f3;--muted:#bdc6cd;--line:#38414a;--accent:#ffd700;--header-bg:#15191f;--header-ink:#f4f4f2;--footer-bg:#15191f;--footer-ink:#f3f3ef}
html[data-theme="dark"] body,html[data-theme="dark"] body.home-theme{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] .home-theme .home-hero{background:radial-gradient(ellipse at 80% 36%,#403119,#171b22 75%);border-color:var(--line)}
html[data-theme="dark"] .home-theme .home-intro h1,html[data-theme="dark"] .home-theme .home-archive h2{color:var(--ink)}
html[data-theme="dark"] .home-theme .lead,html[data-theme="dark"] .home-theme .archive-card p{color:var(--muted)}
html[data-theme="dark"] .home-theme .archive-card{background:var(--panel);border-color:var(--line)}
html[data-theme="dark"] .home-theme .archive-card h3 a{color:var(--ink)}
html[data-theme="dark"] .home-theme .eyebrow{color:var(--accent)}
html[data-theme="dark"] .home-theme .reference{color:var(--muted)}
html[data-theme="dark"] .home-theme .home-cta,html[data-theme="dark"] .home-theme .search-line button{background:#d9ad41;color:#191b1d}
html[data-theme="dark"] .home-theme .home-secondary{color:var(--ink);border-color:#b1a276}
html[data-theme="dark"] .home-theme .search-line input{background:#242a33;color:var(--ink);border-color:#87919b}
html[data-theme="dark"] .home-theme .footer-grid p,html[data-theme="dark"] .home-theme .footer-method{color:var(--muted)}
@media print{html[data-theme="dark"],html[data-theme="light"]{color-scheme:light}html[data-theme="dark"] body,html[data-theme="light"] body{background:#fff!important;color:#111!important}.theme-toggle,.home-intro-art{display:none!important}}
/* Estudos visitados: tema padrão e claro */
html .home-theme .archive-card h3 a:visited {
    color: #7550a1;
}

/* Estudos visitados: tema escuro */
html[data-theme="dark"] .home-theme .archive-card h3 a:visited {
    color: #c8a5ec;
}
