/* Conteúdo contido; fundos do hero e do rodapé a toda a largura. */
.container:not(.home-shell):not(.auth-page):not(.form-page):not(.panel-shell):not(.reader-container){max-width:1200px;padding-left:40px;padding-right:40px}
.header-inner{max-width:1200px;padding:8px 40px;gap:24px}
.header-inner .brand img{width:88px;height:60px}
.header-inner nav{gap:18px}
.header-inner nav a{font-size:.82rem}
.footer-bottom>span:nth-child(2){display:block}

/* A fotografia tem espaço próprio; o texto deixa de atravessar o banner. */
.hero-slide .hero-layout{display:flex;align-items:center;min-height:390px;padding-top:44px;padding-bottom:44px}
.hero-slide .hero-copy{width:100%;max-width:560px}
.hero-slide .hero-copy h1{font-size:clamp(2rem,3.4vw,2.85rem);max-width:550px;line-height:1.14;min-height:0;margin-bottom:20px}
.hero-slide .hero-copy>p{font-size:.94rem;line-height:1.75;max-width:460px;min-height:0;margin-bottom:24px}
.hero-slide .hero-kicker{font-size:.62rem;letter-spacing:.1em;margin-bottom:18px;line-height:1.6}
.hero-slide .hero-orbit{display:none}
.hero-shade{background:linear-gradient(90deg,#0d1b4bf2 0%,#0d1b4bdb 36%,#0d1b4b65 72%,#0d1b4b24 100%)}
.hero-slide .hero-actions{gap:18px}
.hero-slide .hero-actions .button{font-size:.82rem;padding:12px 18px;min-height:44px}
.hero-slide .hero-secondary{font-size:.76rem}
.hero-slide .hero-caption{margin-top:24px;font-size:.62rem}
.hero-carousel .hero-bottom>.container{padding-top:12px;padding-bottom:12px}
.carousel-controls{gap:12px}

/* Ritmo mais leve nas secções de descoberta. */
.home-inner .section-heading h2{font-size:1.5rem}
.discovery-search{padding:18px 20px;margin:28px 0 38px;gap:16px}
.discovery-search label{font-size:.95rem}
.discovery-search input{font-size:.88rem}
.discovery-search button{font-size:.84rem;min-height:44px}
.resource-grid{gap:16px}
.resource-card{padding:20px}
.resource-icon{width:36px;height:36px;font-size:1.3rem;margin-bottom:16px}
.resource-number{top:23px;right:20px}
.resource-card h3{font-size:1rem;min-height:0;margin-bottom:8px}
.resource-card p{font-size:.8rem;min-height:42px;line-height:1.65;margin-bottom:10px}
.resource-link{font-size:.72rem;padding-top:4px}

/* Capas limitadas, mesmo quando há poucos livros na grelha. */
.books-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.editorial-book .book-cover{height:210px;padding:26px 22px 20px}
.editorial-book .book-copy{padding:17px 16px 0}
.editorial-book .book-copy h3{font-size:.98rem;line-height:1.4;min-height:2.8em;margin-bottom:7px}
.editorial-book .book-author{font-size:.7rem;margin-bottom:10px}
.editorial-book .book-description{font-size:.76rem;line-height:1.65;-webkit-line-clamp:2;min-height:3.3em;margin-bottom:12px}
.editorial-book .book-meta{font-size:.6rem;padding-bottom:12px;gap:6px}
.book-card-actions{font-size:.7rem;padding:12px 0;gap:8px}
.book-card-actions>a:last-child:not(:first-child){font-size:.64rem}
.editorial-book .cover-badge{font-size:.58rem;padding:4px 7px}
.editorial-book .cover-format{font-size:.52rem}
.document-cover .editorial-book .book-cover{height:300px}

@media(min-width:1100px){.books-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.home-shell .books-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){
  .container:not(.home-shell):not(.auth-page):not(.form-page):not(.panel-shell):not(.reader-container){padding-left:32px;padding-right:32px}
  .header-inner{padding-left:32px;padding-right:32px}
  .books-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .editorial-book .book-cover{height:190px;padding-left:18px;padding-right:18px}
  .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .resource-card{padding:18px 16px}
  .resource-card h3{font-size:.92rem}
  .resource-number{right:16px}
  .hero-slide .hero-layout{min-height:360px}
}
@media(max-width:680px){
  .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-shade{background:linear-gradient(90deg,#0d1b4bed,#0d1b4ba6)}
  .hero-slide .hero-copy h1{font-size:2rem;max-width:440px}
  .header-inner nav{gap:9px 12px}
  .header-inner nav a{font-size:.75rem}
  .book-card-actions{flex-direction:column;align-items:flex-start;gap:7px}
}
@media(max-width:560px){
  .container:not(.home-shell):not(.auth-page):not(.form-page):not(.panel-shell):not(.reader-container){padding-left:22px;padding-right:22px}
  .header-inner{padding:10px 22px;gap:14px}
  .header-inner .brand img{width:74px;height:52px}
  .books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .editorial-book .book-cover{height:155px;padding:25px 14px 18px}
  .editorial-book .book-copy{padding:14px 12px 0}
  .editorial-book .book-copy h3{font-size:.87rem}
  .editorial-book .book-description{font-size:.72rem}
  .editorial-book .book-meta{font-size:.54rem}
  .hero-slide .hero-layout{padding-top:30px;padding-bottom:32px;min-height:350px}
  .hero-slide .hero-copy h1{font-size:1.9rem}
  .hero-slide .hero-copy>p{font-size:.87rem}
  .hero-slide .hero-actions{gap:13px}
  .hero-slide .hero-caption{margin-top:20px}
  .home-inner .section-heading h2{font-size:1.3rem}
  .resource-card p{font-size:.75rem;min-height:48px}
  .discovery-search{padding:16px}
  .editorial-book .cover-badge{font-size:.53rem}
}
