/* Shared public components. Home layout remains owned by home-responsive.css. */
:root {
  --portal-width:1180px;--portal-reading-width:900px;--portal-gutter:clamp(16px,3vw,28px);
  --portal-gap:clamp(14px,2vw,24px);--portal-radius:14px;
  --portal-shadow:0 8px 28px rgba(45,29,12,.08);
  --portal-hero-overlay:linear-gradient(90deg,rgba(15,12,9,.94),rgba(15,12,9,.75) 58%,rgba(15,12,9,.35));
}
html[data-theme="light"]{--portal-hero-overlay:linear-gradient(90deg,rgba(247,241,231,.92),rgba(247,241,231,.62) 48%,rgba(247,241,231,.12))}
body:not(.home-page) main {color:var(--gdb-text)}
body:not(.home-page) :is(.portal-page,.container.leitura-page,.perfil-container,.guide-main){width:100%;max-width:var(--portal-width);margin-inline:auto;padding-inline:var(--portal-gutter);box-sizing:border-box}
body:not(.home-page) :is(.portal-detail,.reading-plan-detail){max-width:var(--portal-reading-width)}
body:not(.home-page) main :is(h1,h2,h3){overflow-wrap:break-word;word-break:normal;text-wrap:pretty}
body:not(.home-page) :is(.page-intro,.portal-hero,.search-hero,.promessas-hero,.reading-plans-hero,.studies-hero) h1{font-size:clamp(1.85rem,4.2vw,3.2rem);line-height:1.15;letter-spacing:-.025em}
body:not(.home-page) :is(.page-intro,.portal-hero,.search-hero,.promessas-hero,.reading-plans-hero,.studies-hero) p{font-size:clamp(.96rem,1.3vw,1.08rem);line-height:1.6;max-width:62ch}
body:not(.home-page) :is(.portal-hero,.search-hero,.promessas-hero,.reading-plans-hero,.studies-hero){min-height:0;padding:clamp(28px,4vw,52px);margin:0 0 var(--portal-gap);border-radius:var(--portal-radius)}
body:not(.home-page) :is(.portal-list,.portal-grid,.reading-plans-grid,.guide-workspace,.guide-extra){gap:var(--portal-gap);align-items:start}
body:not(.home-page) :is(.portal-card,.guide-card,.profile-card,.favorites-card,.card-modern,.search-result-card,.hino-container,.leitura-card){border-radius:var(--portal-radius);border-color:var(--gdb-border);box-shadow:var(--portal-shadow);min-width:0}
body:not(.home-page) main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){max-width:100%;min-width:0;min-height:44px;border-radius:10px;border:1px solid var(--gdb-border);background:var(--gdb-surface);color:var(--gdb-text);font:inherit;box-sizing:border-box}
body:not(.home-page) main input::placeholder,body:not(.home-page) main textarea::placeholder{color:var(--gdb-text-muted);opacity:1}
body:not(.home-page) main :is(.content-actions,.portal-actions,.verse-actions,.promessa-acoes,.fav-actions,.chapter-bottom-nav){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body:not(.home-page) main :is(.content-actions,.portal-actions,.verse-actions,.promessa-acoes,.chapter-bottom-nav) :is(button,a),body:not(.home-page) :where(.promessa-acao,.controle-fonte button,.paginacao-numero,.paginacao-seta,.btn-fav-hino,#save-content,#save-chapter,#listen-chapter){min-height:44px;padding:8px 12px;border:1px solid var(--gdb-border);border-radius:10px;background:var(--gdb-surface-2);color:var(--gdb-text);font:inherit;font-size:.875rem;line-height:1.3;text-decoration:none;cursor:pointer}
body:not(.home-page) :is(.chapter-bottom-nav button){flex:1 1 140px}
body:not(.home-page) :is(.star-btn,.star-bible,#save-chapter){min-width:44px;min-height:44px;display:inline-grid;place-items:center;color:var(--gdb-gold);font-size:1.4rem;cursor:pointer}
body:not(.home-page) :is(.star-btn.ativo,.star-bible.ativo,[aria-pressed="true"]#save-chapter){background:var(--gdb-gold-soft);border-radius:10px}
body:not(.home-page) :is(.portal-form button,.portal-search button,.guide-main .guide-button,.guide-main form button,.profile-section-tabs button.active){background:var(--gdb-action);color:var(--gdb-on-gold);border-color:var(--gdb-gold-dark)}
body:not(.home-page) :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid var(--gdb-gold);outline-offset:3px}
body:not(.home-page) button:disabled{opacity:.55;cursor:not-allowed}
body:not(.home-page) :is(.portal-empty,.msg-inicial,.devocionais-vazio,.devocionais-loading){padding:24px;border:1px dashed var(--gdb-border);border-radius:var(--portal-radius);color:var(--gdb-text-secondary);background:var(--gdb-surface)}
body:not(.home-page) main [aria-busy="true"]{cursor:progress}
/* Thematic heroes: no new assets and no changes to their content. */
body:not(.home-page) .search-hero{background-image:var(--portal-hero-overlay),url('/img/hero/buscar-hero.webp');background-size:cover;background-position:center}
body:not(.home-page) .studies-hero{background-image:var(--portal-hero-overlay),url('/img/home/sabedoria-diaria.webp');background-size:cover;background-position:center}
body:not(.home-page) .reading-plans-hero{background-image:var(--portal-hero-overlay),url('/img/home/salmo-do-dia.webp');background-size:cover;background-position:center}
body:not(.home-page) .promessas-hero{background-image:var(--portal-hero-overlay),url('/img/home/promessa.webp');background-size:cover;background-position:center}
body:not(.home-page) :is(.search-hero,.studies-hero,.reading-plans-hero,.promessas-hero) :is(h1,p){color:var(--gdb-text);text-shadow:none}
body:not(.home-page) :is(.search-hero__cta,.portal-kicker){color:var(--gdb-gold)!important}
body:not(.home-page) .search-hero__cta{background:var(--gdb-surface);border-color:var(--gdb-border)}
body:not(.home-page) .search-workspace{width:100%;margin:0 auto}
body:not(.home-page) .reading-plans-grid{width:100%;padding-top:0}
body:not(.home-page) .portal-hero:not(.reading-plan-detail-hero):not(.reading-plans-hero):not(.search-hero){background-color:var(--gdb-surface-2)}
body:not(.home-page) .guide-hero{padding:24px;border:1px solid var(--gdb-border);border-radius:var(--portal-radius);background:var(--portal-hero-overlay),url('/img/home/ultimos-conteudos.webp') center/cover}
body:not(.home-page) .guide-hero :is(h1,p){color:var(--gdb-text)}
body:not(.home-page) .devocional-page::before{height:410px;background-position:center 48%}
body:not(.home-page) .devocional-page::after{height:460px;background:var(--portal-hero-overlay)}
body:not(.home-page) .devocional-page .page-intro{min-height:280px;padding:32px 0 50px}
body:not(.home-page) .devocional-page .page-intro :is(h1,p){color:var(--gdb-text);text-shadow:none}
body:not(.home-page) .devocional-page .page-eyebrow{color:var(--gdb-gold)}
body:not(.home-page) .devocional-item{padding-top:78px}
body:not(.home-page) .devocional-item-topo{position:absolute;top:16px;left:16px;right:16px}
body:not(.home-page) .devocional-item-topo .star-btn{background:rgba(15,12,9,.8);color:#ffd66b;border-radius:50%}
body:not(.home-page) .harpa-hero-shell{min-height:0;padding:40px var(--portal-gutter) 32px;background-image:var(--portal-hero-overlay),url('/img/home/harpa-diaria.webp');background-position:center;background-size:cover}
body:not(.home-page) .harpa-hero-shell::after{display:none}
body:not(.home-page) .harpa-page .page-intro :is(h1,p){color:var(--gdb-text);text-shadow:none}
body:not(.home-page) .harpa-page .harpa-controls{position:relative;top:auto;margin:24px 0 0;padding:12px;max-width:760px;background:var(--gdb-surface)}
body:not(.home-page) .harpa-page .harpa-controls input{background:var(--gdb-surface)!important;color:var(--gdb-text)!important}
body:not(.home-page) .harpa-page .harpa-controls input::placeholder{color:var(--gdb-text-muted)}
body:not(.home-page) .harpa-content-wrap{margin-top:0;padding-top:24px}
body:not(.home-page) .harpa-content-wrap::before{display:none}
body:not(.home-page) .harpa-page{max-width:none;padding-inline:0}
body:not(.home-page) .harpa-page>.container,body:not(.home-page) .harpa-hero-inner{max-width:var(--portal-width);margin-inline:auto}
/* Shared dialogs preserve existing focus, keyboard and channel handlers. */
.share-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid var(--gdb-border);border-radius:var(--portal-radius);background:var(--gdb-surface);color:var(--gdb-text)}
.share-options button{min-height:44px;border-color:var(--gdb-border);background:var(--gdb-surface-2);color:var(--gdb-text)}
.share-preview{overflow-wrap:anywhere;color:var(--gdb-text-secondary)}
.sidebar-group{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid var(--gdb-border-neutral)}
.sidebar-group-title{margin:0 12px 5px;color:var(--gdb-text-muted);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase}
.sidebar-group a,.sidebar-group button{min-height:44px;display:flex;align-items:center}
.sidebar-group .header-donate{background:var(--gdb-gold-soft);border:1px solid var(--gdb-border);color:var(--gdb-gold)}
@media(min-width:960px){
  .perfil-container .main-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:var(--portal-gap)}
  .perfil-container [data-profile-panel="preferences"]{grid-column:auto}
  .perfil-container [data-profile-panel="favorites"]{grid-column:1/-1}
  .perfil-container .profile-panel-active :is(.profile-card,.preferences-card){width:100%;max-width:none;margin:0}
}
@media(max-width:700px){
  body:not(.home-page) main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
  body:not(.home-page) :is(.page-intro,.portal-hero,.search-hero,.promessas-hero,.reading-plans-hero,.studies-hero){padding:24px 16px;min-height:0}
  body:not(.home-page) :is(.page-intro,.portal-hero,.search-hero,.promessas-hero,.reading-plans-hero,.studies-hero) h1{font-size:clamp(1.85rem,7.8vw,2.4rem);line-height:1.17}
  body:not(.home-page) .devocional-page::before{height:330px;background-size:cover;background-position:60% center}
  body:not(.home-page) .devocional-page::after{height:370px}
  body:not(.home-page) .devocional-page .page-intro{min-height:0;padding:26px 0 48px}
  body:not(.home-page) .devocional-header-flex{gap:12px}
  body:not(.home-page) .titulo-estrela-container h2{font-size:1.5rem;line-height:1.3}
  body:not(.home-page) .harpa-hero-shell{padding:28px 0 24px;background-position:60% center}
  body:not(.home-page) .harpa-page .page-intro{padding:0}
  body:not(.home-page) .harpa-page .hino-titulo{font-size:1.7rem;line-height:1.25}
  body:not(.home-page) .guide-hero{padding:20px}
  body:not(.home-page) .guide-workspace,body:not(.home-page) .guide-extra{grid-template-columns:1fr}
  body:not(.home-page) .chapter-title-row{flex-wrap:wrap;gap:10px}
  body:not(.home-page) .chapter-tools{flex-wrap:wrap}
  body:not(.home-page) .header-container{gap:8px;padding-inline:12px}
  body:not(.home-page) .header-left{gap:8px;min-width:0}
  body:not(.home-page) .header-actions{gap:6px}
  body:not(.home-page) :is(.menu-mobile-icon,.header-login,.account-menu>summary,.header-donate){min-height:44px}
  body:not(.home-page) .logo>span:last-child{font-size:.86rem}
  body:not(.home-page) .brand-logo-frame{width:28px;height:32px;flex:0 0 28px}
  body:not(.home-page) .player-bar.active{bottom:calc(70px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}
  .share-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.share-dialog,.sidebar-group *{transition:none}}

/* Accessible shared audio/actions, including inactive player visibility. */
body:not(.home-page) .player-bar:not(.active){visibility:hidden;pointer-events:none}
body:not(.home-page) .player-bar.active{visibility:visible}
body:not(.home-page) :is(.audio-icon,[data-action="listen"]){min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--gdb-border);border-radius:10px;background:var(--gdb-surface-2);color:var(--gdb-text);font:inherit;font-size:.875rem;padding:6px 10px;cursor:pointer}
body:not(.home-page) :is(.page-eyebrow,.portal-kicker,.search-hero__eyebrow,.promessas-hero__eyebrow,.promessas-kicker){color:var(--gdb-gold)}
body:not(.home-page) .chapter-bottom-nav button{width:auto;max-width:none;flex:1 1 140px}
html[data-theme="light"] body:not(.home-page) :is(.devocional-card,.hino-container){background:var(--gdb-surface)!important;color:var(--gdb-text)}
html[data-theme="light"] body:not(.home-page) :is(.caixa-versiculo,.oracao-conteudo){background:var(--gdb-surface-2);color:var(--gdb-text)}
html[data-theme="light"] body:not(.home-page) :is(.data-calendario,#referencia-biblica,.promessas-hero__meta span,.reading-plans-hero__meta span){color:var(--gdb-gold-dark);background:var(--gdb-surface-2)}
html[data-theme="light"] body:not(.home-page) :is(.devocional-meta,.devocional-autor){color:var(--gdb-text-secondary)}
@media(max-width:700px){body:not(.home-page) .player-bar.active{bottom:calc(70px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-height:calc(100dvh - 150px);overflow:auto}body:not(.home-page):has(.player-bar.active) main{padding-bottom:260px}}

body:not(.home-page) .search-page::before,body:not(.home-page) .search-page::after{display:none}
body:not(.home-page) .search-page>.search-hero{width:100%;background-image:var(--portal-hero-overlay),url('/img/hero/buscar-hero.webp');background-size:cover;background-position:65% center}
body:not(.home-page) :is(.search-select-trigger,.search-select-menu){background:var(--gdb-surface);color:var(--gdb-text);border-color:var(--gdb-border)}
body:not(.home-page) .search-select-trigger b{color:var(--gdb-gold)}
body:not(.home-page) .search-result-actions :is(button,a){min-height:44px;background:var(--gdb-surface-2);color:var(--gdb-text);border-color:var(--gdb-border);display:inline-flex;align-items:center;justify-content:center}
body:not(.home-page) .portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
body:not(.home-page) .portal-search{margin-bottom:20px;align-items:end}
body:not(.home-page) .studies-hero__cta{color:var(--gdb-gold);background:var(--gdb-surface);border-color:var(--gdb-border)}
body:not(.home-page) :is(.promessas-intro h2,.studies-library h2){font-size:clamp(1.45rem,3vw,2rem);line-height:1.3}
@media(max-width:430px){.guide-metrics{grid-template-columns:1fr}.guide-metrics .guide-card{min-height:0;padding:14px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}.guide-metrics .guide-card strong{grid-column:2;grid-row:1/3;font-size:1.35rem;align-self:center}.guide-metrics .guide-card p{grid-column:1}}

.sidebar-group :is(a,button){width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--gdb-text);text-align:left;text-decoration:none;font:inherit;font-weight:600;cursor:pointer;box-sizing:border-box}
.sidebar-group :is(a,button):hover{background:var(--gdb-surface-2)}
.sidebar-group :is(a,button):focus-visible{outline:3px solid var(--gdb-gold);outline-offset:2px}
body:not(.home-page) .hino-info-group{flex-wrap:wrap;gap:8px}
body:not(.home-page) .btn-share-hino{min-height:44px;padding:8px 12px;border:1px solid var(--gdb-border);border-radius:10px;background:var(--gdb-surface-2);color:var(--gdb-text)}
/* Dialog centering must survive the global margin reset. */
.share-dialog{margin:auto}
body:not(.home-page) .fav-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
body:not(.home-page) .fav-actions .btn{width:auto;margin:0;min-width:0}

html[data-theme="light"] body:not(.home-page) :is(.autor-devocional,.meta-views,#meditacao-texto){color:var(--gdb-text-secondary)}
body:not(.home-page) .redes-sociais button{min-height:44px;padding:8px 12px;border:1px solid var(--gdb-border);border-radius:10px;background:var(--gdb-surface-2);color:var(--gdb-text)}
html[data-theme="light"] body:not(.home-page) .caixa-oracao{background:var(--gdb-surface-2);border-color:var(--gdb-border)}
html[data-theme="light"] body:not(.home-page) :is(.oracao-titulo,.arquivo-link,.hino-numero){color:var(--gdb-gold-dark)}
body:not(.home-page) button.audio-icon{opacity:1}

/* Reading tools: quiet visual weight, generous touch targets. */
body:not(.home-page) main .reading-icon-button{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;
 width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;
 padding:10px;margin:0;border:1px solid transparent;border-radius:9px;
 background:transparent;color:var(--gdb-text-secondary);font-size:22px;line-height:1;
 box-shadow:none;cursor:pointer;text-decoration:none;
}
body:not(.home-page) main .reading-icon-button svg{width:21px;height:21px;flex:none;pointer-events:none}
body:not(.home-page) main .reading-icon-button:is(:hover,:focus-visible){background:var(--gdb-gold-soft);color:var(--gdb-gold)}
body:not(.home-page) main .reading-icon-button:is([aria-pressed="true"],.ativo,.is-speaking){color:var(--gdb-gold);background:var(--gdb-gold-soft)}
body:not(.home-page) main .reading-icon-button:focus-visible{outline:2px solid var(--gdb-gold);outline-offset:2px}
body:not(.home-page) .biblia-page .verse-actions{display:none;gap:2px;margin-top:8px;padding:2px 0;border:0}
body:not(.home-page) .biblia-page .verse-actions-open .verse-actions{display:flex}
body:not(.home-page) .biblia-page .verse-actions .star-bible{position:static}
body:not(.home-page) .biblia-page .versiculo-info{flex-basis:24px}
body:not(.home-page) .biblia-page .versiculo{gap:8px}
body:not(.home-page) .biblia-page .chapter-title-row{display:flex;flex-wrap:wrap;gap:8px}
body:not(.home-page) .biblia-page .chapter-title-group{flex:1 1 100%;justify-content:space-between}
body:not(.home-page) .biblia-page .chapter-tools{gap:2px}
body:not(.home-page) .biblia-page .chapter-bottom-nav{justify-content:space-between}
body:not(.home-page) .reading-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:2px}
body:not(.home-page) .devocional-card .reading-toolbar .controle-fonte{position:static;margin:0;display:flex;gap:2px}
body:not(.home-page) .devocional-header-flex{padding-right:0;padding-top:0;gap:12px}
body:not(.home-page) .devocional-card #meditacao-texto p,body:not(.home-page) .promessa-corpo{cursor:text}
body:not(.home-page) .oracao-titulo{display:flex;align-items:center;justify-content:space-between;gap:8px}
body:not(.home-page) :is(.promessa-acoes,.search-result-actions){display:flex;flex-wrap:wrap;gap:2px;border:0;margin-top:10px;padding-top:0}
body:not(.home-page) .promessa-acoes .promessa-acao{flex:0 0 44px}
body:not(.home-page) .hino-topo{gap:8px}
body:not(.home-page) .controle-fonte button{min-width:40px;min-height:44px;padding:6px;border-color:transparent;background:transparent;color:var(--gdb-text-secondary)}
/* Higher specificity only where legacy reading-page rules style the same buttons. */
body:not(.home-page) main :is(.verse-actions,.chapter-tools,.chapter-title-group,.hino-info-group,.promessa-acoes,.search-result-actions,.reading-toolbar,.chapter-bottom-nav) .reading-icon-button{border-color:transparent;background:transparent;color:var(--gdb-text-secondary);box-shadow:none}
body:not(.home-page) main :is(.verse-actions,.chapter-tools,.chapter-title-group,.hino-info-group,.promessa-acoes,.search-result-actions,.reading-toolbar,.chapter-bottom-nav) .reading-icon-button:is(:hover,:focus-visible,[aria-pressed="true"],.ativo,.is-speaking){background:var(--gdb-gold-soft);color:var(--gdb-gold)}
body:not(.home-page) .biblia-page .verse-actions{margin-left:-32px;width:calc(100% + 32px)}
body:not(.home-page) .biblia-page .verse-actions .reading-icon-button{width:40px;min-width:40px;max-width:40px;flex-basis:40px;padding:9px}
body:not(.home-page) .biblia-page #focus-reading{width:44px;min-width:44px;height:44px;min-height:44px;border-color:transparent;background:transparent}
body:not(.home-page) .biblia-page .chapter-tools .controle-fonte button{width:40px;min-width:40px;height:44px;min-height:44px}

/* Reading hierarchy: global controls above; content actions after the reading. */
body .reading-content-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin:12px 0 4px; }
body:not(.home-page) main :is(#save-chapter,#save-content,.gdb-favorite-action).gdb-favorite-action {
 position:static; inset:auto; flex:0 0 44px; width:44px; height:44px; min-width:44px; min-height:44px;
 max-width:44px; padding:0; margin:0; display:inline-flex; align-items:center; justify-content:center;
 border:1px solid transparent; border-radius:8px; background:transparent; box-shadow:none;
 color:var(--gdb-text-secondary); font:28px/1 Arial,sans-serif; cursor:pointer;
}
body:not(.home-page) main :is(#save-chapter,#save-content,.gdb-favorite-action).gdb-favorite-action[aria-pressed="true"] { color:var(--gdb-gold); }
body:not(.home-page) main :is(#save-chapter,#save-content,.gdb-favorite-action).gdb-favorite-action:hover { background:var(--gdb-gold-soft); color:var(--gdb-gold); }
body:not(.home-page) main :is(#save-chapter,#save-content,.gdb-favorite-action).gdb-favorite-action:focus-visible { outline:2px solid var(--gdb-gold); outline-offset:2px; }
body:not(.home-page) main :is(#save-chapter,#save-content,.gdb-favorite-action).gdb-favorite-action:disabled { opacity:.45; cursor:default; }
body .promessa-header-bloco { padding-right:0; }
body .verse-actions .gdb-favorite-action { flex-basis:40px; width:40px; min-width:40px; }

[data-module-hidden], [data-portal-module][hidden], .sidebar-group[hidden], .header-more[hidden], .home-link-group[hidden] { display:none !important; }
/* Consolidated reading surfaces: one aligned composition, not isolated banners. */
body:not(.home-page) main:is(.leitura-page,.search-page,.promessas-page,.guide-main,.perfil-container,.reading-plan-detail,.dictionary-page,.reading-plans-page){position:relative;isolation:isolate;overflow:visible;--page-art:url('/img/hero/home-hero.webp');--page-focal:68% 35%;}
body:not(.home-page) main:is(.leitura-page,.search-page,.promessas-page,.guide-main,.perfil-container,.reading-plan-detail,.dictionary-page,.reading-plans-page)::before{content:'';position:absolute;z-index:-1;pointer-events:none;top:0;left:calc((100% - 100vw)/2);width:100vw;height:420px;background:linear-gradient(to bottom,transparent 30%,var(--gdb-bg) 100%),var(--portal-hero-overlay),var(--page-art);background-size:cover;background-position:var(--page-focal);}
body:not(.home-page) main:is(.leitura-page,.search-page,.promessas-page,.guide-main,.perfil-container,.reading-plan-detail,.dictionary-page,.reading-plans-page)::after{display:none}
body:not(.home-page) main.harpa-page{--page-art:url('/img/home/harpa-diaria.webp')}
body:not(.home-page) main.devocional-page{--page-art:url('/img/home/destaque-do-dia.webp');--page-focal:center 42%}
body:not(.home-page) main.search-page{--page-art:url('/img/hero/buscar-hero.webp')}
body:not(.home-page) main.promessas-page{--page-art:url('/img/home/promessa.webp')}
body:not(.home-page) main:is(.guide-main,.perfil-container){--page-art:url('/img/home/ultimos-conteudos.webp')}
body:not(.home-page) main.dictionary-page{--page-art:url('/img/home/sabedoria-diaria.webp')}
body:not(.home-page) main.reading-plan-detail{--page-art:url('/img/home/salmo-do-dia.webp')}
body:not(.home-page) main :is(.page-intro,.guide-hero,.profile-hero,.search-hero,.promessas-hero,.reading-plan-detail-hero,.dictionary-page .portal-hero){background:transparent!important;box-shadow:none;border:0;border-radius:0;margin:0 0 20px;padding:32px 0;min-height:0;text-align:left;}
body:not(.home-page) .harpa-hero-shell{background:transparent;padding:0;margin:0}
body:not(.home-page) .harpa-hero-inner,body:not(.home-page) .harpa-content-wrap{width:100%;padding-inline:var(--portal-gutter);box-sizing:border-box}
body:not(.home-page) .harpa-page .harpa-controls{max-width:none;margin:0}
body:not(.home-page) .devocional-page .page-intro{padding:32px 0 48px;min-height:0}
body:not(.home-page) .reading-plan-detail-hero::before,body:not(.home-page) .reading-plan-detail-hero::after{display:none}
body:not(.home-page) .biblia-page .chapter-title-row{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between}
body:not(.home-page) .biblia-page .chapter-title-group{flex:1 1 auto;justify-content:flex-start;display:flex;gap:6px;min-width:0;align-items:center}
body:not(.home-page) .biblia-page .chapter-tools{flex:none;display:flex;align-items:center}
body:not(.home-page) .biblia-page #cap-referencia{font-size:clamp(1.1rem,2vw,1.55rem);min-width:0;overflow-wrap:break-word}
body:not(.home-page) .biblia-page .verse-actions{margin-left:0;width:100%;flex-wrap:wrap}
body:not(.home-page) .biblia-page .verse-actions-open .verse-body{background:transparent}
body:not(.home-page) .biblia-page .verse-actions-open{outline:1px solid var(--gdb-border);outline-offset:2px;border-radius:8px}
body:not(.home-page) .biblia-page .verse-has-note:not([data-highlight]){background:transparent}
body:not(.home-page) .biblia-page .chapter-bottom-nav button{max-width:none;width:auto;flex:1 1 130px;font-size:.875rem;white-space:normal;min-height:44px;background:var(--gdb-surface-2);border:1px solid var(--gdb-border);color:var(--gdb-text)}
body:not(.home-page) :is(.reading-heading,.hino-info-group,.titulo-estrela-container){display:flex;align-items:flex-start;justify-content:flex-start;gap:6px;min-width:0}
body:not(.home-page) .reading-heading h1{margin:0}
body:not(.home-page) .hino-topo{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body:not(.home-page) .hino-info-group{flex:1;flex-wrap:nowrap}
body:not(.home-page) .hino-info-group .hino-titulo{margin:4px 0 20px;text-align:left;font-size:clamp(1.4rem,3vw,2rem)}
body:not(.home-page) .hino-topo .controle-fonte{flex:none;position:static;display:flex}
body:not(.home-page) .devocional-header-flex{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
body:not(.home-page) .devocional-header-flex .titulo-estrela-container{grid-row:1;grid-column:1/-1}
body:not(.home-page) .devocional-header-flex .data-calendario{grid-row:2;display:flex;align-items:center;gap:5px;background:transparent;padding:0;box-shadow:none;border:0;width:auto;min-width:0;color:var(--gdb-text-muted)}
body:not(.home-page) .data-calendario .data-dia{font-size:.9rem}
body:not(.home-page) .data-calendario .data-inferior{display:flex;gap:5px;font-size:.8rem}
body:not(.home-page) .devocional-header-flex .reading-toolbar{grid-row:2;grid-column:2}
body:not(.home-page) .devocional-header-flex .daily-editorial-theme{grid-column:1/-1}
.context-reading-tools{display:flex;gap:4px;margin:4px 0 14px}
.context-reading-tools[hidden],.search-version-picker[hidden],.promessas-version[hidden],.versao-label[hidden],#favorites[hidden]{display:none!important}
body:not(.home-page) .search-form{grid-template-columns:minmax(0,1fr) auto}
body:not(.home-page) .guide-main :is(button,.guide-button){background:var(--gdb-surface-2);color:var(--gdb-text);border:1px solid var(--gdb-border);min-height:44px;word-break:normal}
body:not(.home-page) .guide-main :is(button[type="submit"],.guide-continue .guide-button){background:var(--gdb-action);color:var(--gdb-on-gold)}
body:not(.home-page) .notification-card{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start}
body:not(.home-page) .notification-card :is(button,a){grid-column:2;justify-self:start;white-space:normal;width:auto;min-width:140px;max-width:100%;padding:8px 12px;word-break:normal}
body:not(.home-page) .recommendation-actions button{display:block;width:100%;font-size:.85rem;text-align:left;padding:8px}
body:not(.home-page) .perfil-container .main-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start}
.favorite-category{padding:18px 0;border-bottom:1px solid var(--gdb-border)}
.favorite-category-title,.favorite-view-all{background:transparent;border:0;color:var(--gdb-text);font:inherit;text-align:left;min-height:44px;cursor:pointer}
.favorite-category-title{font-weight:700;font-size:1.1rem}
.favorite-view-all{color:var(--gdb-gold)}
.favorite-empty{color:var(--gdb-text-muted);font-size:.9rem}
.favorites-dialog{margin:auto;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--gdb-border);border-radius:14px;background:var(--gdb-surface);color:var(--gdb-text);overflow:auto;box-sizing:border-box}
.favorites-dialog::backdrop{background:rgba(0,0,0,.65)}
.favorites-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-20px;background:var(--gdb-surface);padding:12px 0;z-index:1}
.favorites-dialog header button{min-height:44px;padding:8px 16px;background:var(--gdb-surface-2);color:var(--gdb-text);border:1px solid var(--gdb-border);border-radius:8px}
.favorite-modal-list{display:grid;gap:12px}.fav-item{min-width:0;overflow-wrap:anywhere}.fav-item h3{font-size:1rem}.fav-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.favorites-dialog .gdb-favorite-action{width:44px;height:44px;flex:none;border:0;background:transparent;color:var(--gdb-gold);font:28px Arial;cursor:pointer}
@media(max-width:700px){
 body:not(.home-page) main:is(.leitura-page,.search-page,.promessas-page,.guide-main,.perfil-container,.reading-plan-detail,.dictionary-page,.reading-plans-page)::before{height:340px;background-position:var(--page-focal);}
 body:not(.home-page) main :is(.page-intro,.guide-hero,.profile-hero,.search-hero,.promessas-hero,.reading-plan-detail-hero){padding:24px 0}
 body:not(.home-page) .biblia-page .chapter-tools{flex-wrap:nowrap}
 body:not(.home-page) .biblia-page #focus-reading{width:36px;min-width:36px}
 body:not(.home-page) .biblia-page .chapter-tools .controle-fonte button{width:36px;min-width:36px}
 body:not(.home-page) .perfil-container .main-grid{display:block}
 body:not(.home-page) .devocional-card{padding:20px 16px;margin-top:0}
 body:not(.home-page) .hino-topo{flex-wrap:wrap}
 body:not(.home-page) .hino-info-group{flex-basis:calc(100% - 96px)}
 .favorites-dialog{padding:14px}.favorites-dialog>header{top:-14px}
}

body:not(.home-page) .promessas-page{width:100%;max-width:var(--portal-width);margin-inline:auto;padding-inline:var(--portal-gutter);box-sizing:border-box}
body:not(.home-page) .promessas-page :is(.promessas-container,.promessas-content,.promessas-shell){width:100%;padding-inline:0}
body:not(.home-page) #daily-editorial-theme{grid-column:1/-1}

body:not(.home-page) main:is(.leitura-page,.search-page,.promessas-page,.guide-main,.perfil-container,.reading-plan-detail,.dictionary-page,.reading-plans-page)::before{transform:none;background-repeat:no-repeat}
body:not(.home-page) .biblia-page :is(.page-intro,.leitura-toolbar,.bible-reading-card){width:100%;max-width:none;margin-inline:0}
body:not(.home-page) .harpa-page .hino-topo{flex-wrap:nowrap}
body:not(.home-page) .harpa-page .hino-info-group{flex:1 1 auto}
body:not(.home-page) .harpa-page .controle-fonte{width:auto;flex:0 0 auto;gap:2px}
body:not(.home-page) main :is(.page-intro,.guide-hero,.profile-hero,.search-hero,.promessas-hero,.reading-plan-detail-hero) :is(h1,p){color:var(--gdb-text);text-shadow:none}
body:not(.home-page) .reading-plan-detail-hero__content{padding:0}
body:not(.home-page) main .gdb-favorite-action[aria-busy="true"]{opacity:.5;pointer-events:none}
/* Retire legacy duplicated backgrounds in Search/Promises only. */
body:not(.home-page) main.search-page{background:transparent!important}
body:not(.home-page) main.search-page::before{display:block!important}
body:not(.home-page) main.search-page>.search-hero{align-items:flex-start;background:none!important}
body:not(.home-page) .promessas-hero::after{display:none}

/* Final editorial refinements share the same warm photo overlay token. */
body:not(.home-page) main.reading-plans-page{--page-art:url('/img/home/salmo-do-dia.webp')}
body:not(.home-page) main .reading-plans-hero{background:transparent!important;border:0;box-shadow:none;border-radius:0;padding:32px 0}
body:not(.home-page) .reading-plans-hero::before,body:not(.home-page) .reading-plans-hero::after{display:none}
body:not(.home-page) .reading-plans-hero__content{padding:0}
body:not(.home-page) .harpa-page .harpa-controls{inset:auto;padding:0;border:0;box-shadow:none;background:transparent}
body:not(.home-page) .harpa-hero-shell{border:0;box-shadow:none;backdrop-filter:none}
body:not(.home-page) .harpa-page .harpa-controls :is(.search-wrapper,.search-input-container){padding:0;margin:0;border:0;box-shadow:none;background:transparent}
body:not(.home-page) .harpa-page .harpa-controls input{box-shadow:var(--portal-shadow)}
body:not(.home-page) .dictionary-page>.portal-search:has(label:first-child:last-of-type){width:100%;max-width:none;grid-template-columns:minmax(0,1fr) auto;align-items:end;justify-content:stretch}
body:not(.home-page) .dictionary-page>.portal-empty{padding:18px 20px;font-size:.95rem}
body:not(.home-page) .reading-plan-detail .reading-heading{align-items:center;gap:10px}
body:not(.home-page) .reading-plan-detail .reading-heading .gdb-favorite-action{flex:0 0 44px}
body:not(.home-page) .reading-plan-detail .reading-plan-duration{font-size:.9rem;color:var(--gdb-text-secondary);margin-top:8px}
body:not(.home-page) .reading-plan-progress{padding:clamp(18px,3vw,28px);max-width:none;display:grid;gap:12px}
body:not(.home-page) .reading-plan-progress p{margin:0}
body:not(.home-page) .reading-plan-days{margin-block:20px}
.promessas-result-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;color:var(--gdb-text-secondary)}
body:not(.home-page) .promessas-page .promessas-hero{margin-bottom:8px;padding-bottom:16px}
body:not(.home-page) .promessas-page .promessas-selector{margin-top:0}
.devotional-skeleton{display:block;width:min(320px,55vw);height:1.4em;border-radius:8px;background:var(--gdb-surface-2)}
/* The existing Home photograph is 625×350; avoid stretching it across a desktop. */
body:not(.home-page) main.devocional-page::before{background-color:var(--gdb-bg);background-image:linear-gradient(to bottom,transparent 40%,var(--gdb-bg) 100%),linear-gradient(to right,var(--gdb-bg) max(0px,calc(100% - 650px)),transparent 100%),var(--page-art);background-size:100% 100%,100% 100%,auto 100%;background-position:center,center,right top}
.devocional-card[aria-busy=true] #meditacao-texto{min-height:180px;background:repeating-linear-gradient(transparent 0 12px,var(--gdb-surface-2) 12px 24px,transparent 24px 36px);border-radius:8px}
@media(max-width:700px){
 body:not(.home-page) .dictionary-page>.portal-search:has(label:first-child:last-of-type){grid-template-columns:1fr}
 body:not(.home-page) .dictionary-page>.portal-search button{width:100%}
 body:not(.home-page) .reading-plans-hero{padding:24px 0}
 body:not(.home-page) .promessas-page .promessas-hero{padding-block:18px 10px}
}
