/* Correções pontuais: todos os seletores ficam restritos à Home. */
html .home-page .home-daily-item .block {
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  padding:16px;gap:12px;
}
.home-page .home-daily-item .block>.badge {
  position:static;display:inline-flex;align-items:center;align-self:flex-start;
  min-height:34px;max-width:100%;padding:6px 9px;margin:0;
  border-radius:20px;font-size:clamp(.72rem,.95vw,.85rem);font-weight:700;line-height:1.3;
}
.home-page .home-daily-item .home-daily-content {
  min-width:0;margin-top:0;padding-top:42px;overflow-wrap:break-word;
}
html[data-theme="light"] .home-page .home-daily-item .home-daily-content {padding-top:90px}
html[data-theme="light"] .home-page .home-daily-item .home-card-media {height:170px}
html[data-theme="light"] .home-page .home-daily-item .block::before {background:linear-gradient(180deg,transparent 70px,#fffaf1 145px)}
.home-page .home-daily-hymn .btn {margin-top:auto}
.home-page .highlight-copy .card-header {display:block;align-self:stretch;min-height:0}
.home-page .highlight-copy .card-header .badge {display:inline-flex;align-items:center;margin:0 0 10px}
.home-page .highlight-copy .card-body {width:100%;min-width:0}
@media(max-width:700px) {
  .home-page .header-container {display:flex;align-items:center;justify-content:space-between;gap:4px;padding-inline:8px}
  .home-page .header-left,.home-page .header-actions,.home-page .logo {display:flex;align-items:center;gap:3px}
  .home-page .header-left {flex:1 1 auto}
  .home-page .header-actions {flex-shrink:0}
  .home-page .account-menu {display:flex;align-items:center}
  .home-page .logo {line-height:1}
  .home-page .header-donate>span:first-child {display:flex;align-items:center;justify-content:center;height:100%;line-height:1}
  .home-page .menu-mobile-icon,.home-page .header-actions .theme-toggle,
  .home-page .header-actions .header-donate,.home-page .account-menu>summary,
  .home-page .header-actions .header-login {
    display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
    height:44px;min-height:44px;margin:0;padding:0;line-height:1;vertical-align:middle;
  }
  .home-page .menu-mobile-icon,.home-page .header-actions .theme-toggle,
  .home-page .header-actions .header-donate,.home-page .account-menu>summary {width:40px;flex:0 0 40px}
  .home-page .header-actions .header-login {padding-inline:8px}
  .home-page .brand-logo-frame {flex:0 0 28px;width:28px;height:32px;display:grid;place-items:center}
  .home-page .logo>span:last-child {font-size:.86rem;max-width:none}
  .home-page .account-avatar {margin:0;line-height:1}
}
@media(max-width:619px) {
  /* Cruz em x=84% da imagem original. O topo fica livre para o ponto focal. */
  .home-page .home-visual-stage {height:540px;background-size:auto 420px;background-position:86% top;background-repeat:no-repeat;background-color:var(--gdb-bg)}
  .home-page .hero-section {min-height:0!important;padding:190px 16px 82px!important}
  .home-page .hero-title {font-size:clamp(2rem,8.5vw,2.3rem)!important;line-height:1.08!important;margin-bottom:0}
  .home-page .hero-subtitle {margin:14px 0 18px!important;font-size:.94rem!important;line-height:1.5!important}
  .home-page .home-visual-stage::before {background:linear-gradient(180deg,rgba(15,12,9,.08),rgba(15,12,9,.15) 22%,rgba(15,12,9,.90) 39%,var(--gdb-bg) 75%)}
  html[data-theme="light"] .home-page .home-visual-stage::before {background:linear-gradient(180deg,rgba(255,250,241,.05),rgba(255,250,241,.12) 22%,rgba(247,241,231,.94) 39%,var(--gdb-bg) 75%)}
  .home-page .highlight-media {min-height:0;aspect-ratio:16/9}
  .home-page .highlight-copy {align-items:stretch;justify-content:flex-start;padding:16px;text-align:left;gap:10px}
  .home-page .home-daily-grid .highlight-card {position:relative}
  .home-page .highlight-copy,.home-page .highlight-copy .card-header {position:static}
  .home-page .highlight-copy .card-header .badge {
    position:absolute;top:16px;left:16px;z-index:2;margin:0;
    min-height:34px;padding:6px 9px;border-radius:20px;line-height:1.3;
    background:var(--surface);color:var(--primary);border:1px solid var(--border);
  }
  .home-page .home-topic-grid a {
    display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:8px;
    align-items:center;justify-content:stretch;justify-items:start;text-align:left;
  }
  .home-page .home-topic-grid a>span {
    display:grid;place-items:center;width:24px;height:24px;line-height:1;
  }
  .home-page .highlight-copy .card-header h3 {margin:0}
  .home-page .highlight-copy .card-header,.home-page .highlight-copy .card-body {margin:0;padding:0;text-align:left}
  .home-page .highlight-copy .card-header h3 {font-size:clamp(1.3rem,5.4vw,1.6rem);line-height:1.25}
  .home-page .highlight-copy .card-body h4 {font-size:clamp(1.2rem,5vw,1.5rem);line-height:1.35;overflow-wrap:break-word;text-wrap:pretty;display:block;overflow:visible;margin:0 0 10px}
  .home-page .highlight-copy .card-body .btn {max-width:100%;white-space:normal}
}
/* Section rhythm and touch spacing; daily data and hero behavior are unchanged. */
.home-page .home-topic-grid a,.home-page .home-knowledge-grid a{min-height:44px}
.home-page .home-daily-grid{align-items:stretch}
.home-page .home-latest-section,.home-page .home-plans-section{margin-block:18px}
@media(max-width:619px){.home-page main.container{padding-bottom:calc(88px + env(safe-area-inset-bottom))}.home-page .home-topic-grid a,.home-page .home-knowledge-grid a{padding:10px 8px;line-height:1.35}.home-page .home-latest-section{padding:20px 16px}.home-page .home-section-content{width:100%}.home-page .home-list-item{min-width:0}}

/* Latest content: full-width grid, independent of the legacy 620px wrapper. */
.home-page .home-latest-section .home-section-content{width:100%;max-width:none}
.home-page #home-latest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-page .home-latest-section .home-latest-item{min-width:0;margin:0;padding:0;border:1px solid rgba(242,189,75,.28);border-radius:12px;background:rgba(15,12,9,.88);overflow:hidden}
.home-page .home-latest-section .home-latest-item>a{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start;padding:16px;height:100%;box-sizing:border-box;text-decoration:none}
.home-page .home-latest-section .home-latest-item .editorial-thumbnail{width:96px;height:116px;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:8px;background:rgba(242,189,75,.08)}
.home-page .home-latest-section .home-latest-item .editorial-thumbnail img{width:100%;height:100%;object-fit:cover;object-position:center}
.home-page .home-latest-section .home-latest-copy{min-width:0;padding:0;background:none}
.home-page .home-latest-section .home-latest-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:1.05rem;line-height:1.4;color:#ffd66b;overflow-wrap:anywhere}
.home-page .home-latest-section .home-latest-item p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:8px 0 0;font-size:.9rem;line-height:1.5;color:#e2d8c9;overflow-wrap:anywhere}
/* Compact floating installation notice, clear of mobile navigation. */
.home-page #pwa-install-container{position:fixed;inset:auto auto 20px 50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);margin:0;box-sizing:border-box;flex-wrap:nowrap;box-shadow:0 8px 24px rgba(0,0,0,.18)}
@media(max-width:899px){.home-page #home-latest{grid-template-columns:minmax(0,1fr)}}
@media(max-width:619px){
 .home-page .home-latest-section{padding:18px 12px;min-height:0}
 .home-page #home-latest{gap:10px}
 .home-page .home-latest-section .home-latest-item>a{grid-template-columns:72px minmax(0,1fr);padding:10px;gap:10px;align-items:flex-start;align-content:start}
 .home-page .home-latest-section .home-latest-item .editorial-thumbnail{width:72px;height:84px;min-width:72px;align-self:center;margin:0}
 .home-page .home-latest-section .home-latest-copy{align-self:flex-start;margin:0}
 .home-page .home-latest-section .home-latest-item .editorial-thumbnail img{display:block;flex:none;margin:0}
 .home-page .home-latest-section .home-latest-title{font-size:.94rem;-webkit-line-clamp:3}
 .home-page .home-latest-section .home-latest-item p{font-size:.82rem;margin-top:4px;-webkit-line-clamp:2}
}

@media(max-width:700px){.home-page #pwa-install-container{bottom:calc(76px + env(safe-area-inset-bottom));padding:6px;gap:4px}}

/* Let the four daily references share the card's bottom baseline. */
@media(min-width:1024px),(max-width:619px){
.home-page .home-daily-item:not(.home-daily-hymn) .home-daily-content{display:flex;flex-direction:column;flex:1}
.home-page #promessa-dia-container{display:flex;flex-direction:column;flex:1}
.home-page .home-daily-content>a,.home-page #promessa-dia-container>a{margin-top:auto;padding-top:12px}
}

.home-page .home-plans-section>p{margin-top:16px}
.home-page .home-latest-section .editorial-thumbnail{position:relative}
.home-page .home-latest-category{position:absolute;top:4px;left:4px;right:4px;padding:2px 4px;border-radius:4px;background:rgba(15,12,9,.8);color:#fff5df;font-size:.58rem;line-height:1.2;max-height:2.4em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;pointer-events:none}

@media(min-width:900px){.home-page .home-latest-section .home-latest-item .editorial-thumbnail{align-self:center}}
