.rp-epockets-page .epockets-hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 410px);
  margin: 0 0 18px;
}
.rp-epockets-page .epockets-hero-logo img {
  display: block;
  width: min(100%, 390px);
  height: auto;
}
.rp-epockets-page .hero-copy .epockets-lead-note {
  color: rgba(22,21,19,.72);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.72;
}
.rp-epockets-page .proof-card.epockets-proof {
  overflow: hidden;
  position: relative;
}
.rp-epockets-page .epockets-proof-mark {
  display: block;
  margin: 2px 0 20px;
  max-width: 225px;
  height: auto;
}
.rp-epockets-page .epockets-proof-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.rp-epockets-page .epockets-proof-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.rp-epockets-page .epockets-proof-list strong {
  color: var(--rp-orange);
  font-family: var(--rp-serif);
  font-size: 1.55rem;
  line-height: 1;
}
.rp-epockets-page .epockets-proof-list span {
  color: rgba(22,21,19,.70);
  font-size: .92rem;
  line-height: 1.35;
}
.rp-epockets-page .epockets-narrative-grid,
.rp-epockets-page .epockets-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 0;
}
.rp-epockets-page .epockets-narrative-card,
.rp-epockets-page .epockets-route-card {
  border: 1px solid rgba(22,21,19,.09);
  border-radius: 22px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(17,16,14,.05);
}
.rp-epockets-page .epockets-narrative-card span,
.rp-epockets-page .epockets-route-card span {
  display: inline-flex;
  margin-bottom: 11px;
  color: var(--rp-orange);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rp-epockets-page .epockets-narrative-card h3,
.rp-epockets-page .epockets-route-card h3 {
  margin: 0 0 10px;
  font-family: var(--rp-serif);
  font-size: clamp(1.32rem, 1.7vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.rp-epockets-page .epockets-narrative-card p,
.rp-epockets-page .epockets-route-card p {
  margin: 0;
  color: rgba(22,21,19,.73);
  font-size: .99rem;
  line-height: 1.65;
}
.rp-epockets-page .epockets-call-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(22,21,19,.96), rgba(54,45,38,.94));
  color: #fff;
  box-shadow: 0 18px 38px rgba(17,16,14,.13);
}
.rp-epockets-page .epockets-call-band p {
  margin: 0;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255,255,255,.86);
}
.rp-epockets-page .epockets-call-band strong { color: #fff; }
.rp-epockets-page .epockets-call-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.rp-epockets-page .epockets-call-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rp-epockets-page .bd-library-extension .extension-head { max-width: 920px; }
.rp-epockets-page .bd-filter-bar { margin-top: 24px; }
.rp-epockets-page .bd-shelf-label::after { content: ' ePocket'; color: rgba(22,21,19,.42); font-family: var(--rp-sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-left: 10px; }
@media (max-width: 860px) {
  .rp-epockets-page .epockets-narrative-grid,
  .rp-epockets-page .epockets-route-grid,
  .rp-epockets-page .epockets-call-band { grid-template-columns: 1fr; }
  .rp-epockets-page .epockets-call-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .rp-epockets-page .epockets-narrative-card,
  .rp-epockets-page .epockets-route-card { padding: 20px; }
  .rp-epockets-page .epockets-proof-list li { grid-template-columns: 58px minmax(0, 1fr); }
}
/* Ajustes exclusivos da página ePockets */
.rp-epockets-page .bd-library-extension{
  padding-top:clamp(26px,3vw,42px);
}
.rp-epockets-page .bd-library-extension .extension-head{
  max-width:960px;
  margin-bottom:18px;
}
.rp-epockets-page .proof-card.epockets-proof{
  min-height:auto;
}
.rp-epockets-page .epockets-proof-list{
  margin-top:20px;
}
.rp-epockets-page .bd-library{
  margin-top:10px;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-wrap{
  width:min(100% - 32px,1220px);
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
  --bd-shelf-bg-top:96px;
  --bd-row-top:8px;
  --bd-cover-height:162px;
  --bd-item-width:150px;
  --bd-book-gap:clamp(20px,2vw,30px);
  --bd-title-gap:38px;
  height:322px;
  background-color:#fff;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-row{
  gap:var(--bd-book-gap);
  padding-left:28px;
  padding-right:28px;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-item{
  width:var(--bd-item-width);
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-title{
  font-size:clamp(14px,1.05vw,16px);
  line-height:1.05;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-meta,
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-extra{
  font-size:9px;
  line-height:1.25;
}
@media (max-width:980px){
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-cover-height:154px;
    --bd-item-width:138px;
    --bd-book-gap:24px;
    height:314px;
  }
}
@media (max-width:720px){
  .rp-epockets-page .bd-library-extension{
    padding-top:24px;
  }
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-shelf-bg-top:82px;
    --bd-cover-height:146px;
    --bd-item-width:124px;
    --bd-book-gap:20px;
    --bd-title-gap:42px;
    height:322px;
  }
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-row{
    padding-left:12px;
    padding-right:22px;
  }
}
@media (max-width:430px){
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-cover-height:138px;
    --bd-item-width:116px;
    --bd-book-gap:18px;
    height:312px;
  }
}


/* Ajuste final ePockets — hero, filtros, badges de estante e assentamento das capas */
.rp-epockets-page .hero-copy .epockets-hero-logo { display: none !important; }
.rp-epockets-page .home-hero-paper .proof-card.epockets-proof{
  align-self: center;
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 28px);
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,248,245,.92));
  box-shadow: 0 14px 30px rgba(17,16,14,.06), inset 0 1px 0 rgba(255,255,255,.9);
}
.rp-epockets-page .home-hero-paper .proof-card.epockets-proof .proof-eyebrow{
  margin-bottom: 8px;
  font-size: .72rem;
  letter-spacing: .11em;
}
.rp-epockets-page .home-hero-paper .proof-card.epockets-proof h3{
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.rp-epockets-page .epockets-proof-list{
  gap: 0;
  margin: 12px 0 0;
}
.rp-epockets-page .epockets-proof-list li{
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 0;
}
.rp-epockets-page .epockets-proof-list strong{
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}
.rp-epockets-page .epockets-proof-list span{
  font-size: .82rem;
  line-height: 1.22;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rp-epockets-page .bd-library-extension .extension-head{
  max-width: min(100% - 40px, 1180px);
  margin-left: auto;
  margin-right: auto;
}
.rp-epockets-page .epockets-section-logo{
  display: flex;
  justify-content: flex-start;
  margin: 18px 0 20px;
}
.rp-epockets-page .epockets-section-logo img{
  display: block;
  width: min(100%, 390px);
  height: auto;
}
.rp-epockets-page .bd-library-extension .bd-filter-shell{
  position: relative;
  top: auto;
  z-index: 10;
  margin: 16px 0 28px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,248,246,.88));
  box-shadow: 0 12px 30px rgba(0,0,0,.045);
}
.rp-epockets-page .bd-library-extension .bd-filter{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rp-epockets-page .bd-library-extension .bd-filter button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  background: #fff;
  color: #514c47;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transform: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.rp-epockets-page .bd-library-extension .bd-filter button span{
  opacity: .78;
  font-weight: 900;
}
.rp-epockets-page .bd-library-extension .bd-filter button:hover,
.rp-epockets-page .bd-library-extension .bd-filter button:focus-visible{
  border-color: var(--rp-orange);
  color: var(--rp-orange);
  background: #fff;
  transform: translateY(-1px);
}
.rp-epockets-page .bd-library-extension .bd-filter button.is-active{
  border-color: var(--rp-orange);
  background: var(--rp-orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(245,116,0,.18);
}
.rp-epockets-page .bd-library{
  margin-top: 0;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  width: min(100% - 40px, 1220px);
  margin: 0 auto 10px;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-label{
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 15px;
  border-radius: 999px;
  background: #1f1b18;
  color: #fff;
  font-family: var(--rp-sans);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rp-epockets-page .bd-shelf-label::after{
  content: none !important;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head p{
  grid-column: 1 / -1;
  max-width: 780px;
  margin: 2px 0 0;
  color: #766657;
  font-size: .98rem;
  line-height: 1.55;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-count{
  justify-self: end;
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 13px;
  background: #fffaf3;
  white-space: nowrap;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
  --bd-row-top: 26px;
  --bd-title-gap: 32px;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-row{
  padding-top: var(--bd-row-top);
}
@media (max-width: 720px){
  .rp-epockets-page .bd-library-extension .extension-head{
    max-width: calc(100% - 28px);
  }
  .rp-epockets-page .bd-library-extension .bd-filter-shell{
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 18px;
  }
  .rp-epockets-page .bd-library-extension .bd-filter{
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 2px 4px 7px;
    scrollbar-width: thin;
  }
  .rp-epockets-page .bd-library-extension .bd-filter::-webkit-scrollbar{ display:none; }
  .rp-epockets-page .bd-library-extension .bd-filter button{
    flex: 0 0 auto;
    min-height: 31px;
    padding-inline: 12px;
    font-size: 10px;
  }
  .rp-epockets-page .bd-shelf-head.epockets-shelf-head{
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }
  .rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-count{
    justify-self: start;
  }
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-row-top: 22px;
  }
}

/* Refinamento final ePockets — logo ao lado do título, filtros em linha, estantes compactas */
.rp-epockets-page .bd-library-extension .extension-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 34px;
  width: min(100% - 40px, 1220px);
  max-width: min(100% - 40px, 1220px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}
.rp-epockets-page .bd-library-extension .extension-head > .kicker{
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.rp-epockets-page .bd-library-extension .extension-head > h2{
  grid-column: 1;
  margin: 0;
  max-width: 620px;
}
.rp-epockets-page .epockets-section-logo{
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-end;
  align-self: center;
  margin: 0;
}
.rp-epockets-page .epockets-section-logo img{
  width: min(34vw, 390px);
  min-width: 270px;
  height: auto;
}
.rp-epockets-page .bd-library-extension .bd-filter-shell{
  grid-column: 1 / -1;
  width: 100%;
  margin: 22px 0 10px;
  padding: 12px 14px;
  border-radius: 999px;
}
.rp-epockets-page .bd-library-extension .bd-filter{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.rp-epockets-page .bd-library-extension .bd-filter::-webkit-scrollbar{ display:none; }
.rp-epockets-page .bd-library-extension .bd-filter button{
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  min-height: 34px;
  padding: 0 11px;
  font-size: 9.6px;
  letter-spacing: .05em;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head p{
  display: none !important;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-label,
.rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-count{
  margin: 0;
}
.rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-count{
  align-self: center;
  justify-self: auto;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
  --bd-row-top: 44px;
  --bd-title-gap: 24px;
}
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-book-row{
  padding-top: var(--bd-row-top);
}
@media (max-width: 900px){
  .rp-epockets-page .bd-library-extension .extension-head{
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }
  .rp-epockets-page .bd-library-extension .extension-head > .kicker,
  .rp-epockets-page .bd-library-extension .extension-head > h2,
  .rp-epockets-page .epockets-section-logo,
  .rp-epockets-page .bd-library-extension .bd-filter-shell{
    grid-column: 1;
    grid-row: auto;
  }
  .rp-epockets-page .epockets-section-logo{ justify-content: flex-start; }
  .rp-epockets-page .epockets-section-logo img{ width: min(100%, 340px); min-width: 0; }
  .rp-epockets-page .bd-library-extension .bd-filter-shell{
    border-radius: 22px;
    padding: 14px 12px;
  }
  .rp-epockets-page .bd-library-extension .bd-filter{
    justify-content: flex-start;
  }
  .rp-epockets-page .bd-library-extension .bd-filter button{
    flex: 0 0 auto;
    font-size: 10px;
  }
  .rp-epockets-page .bd-shelf-head.epockets-shelf-head{
    width: calc(100% - 28px);
  }
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-row-top: 36px;
  }
}
@media (max-width: 520px){
  .rp-epockets-page .bd-shelf-head.epockets-shelf-head{
    gap: 10px;
  }
  .rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-label,
  .rp-epockets-page .bd-shelf-head.epockets-shelf-head .bd-shelf-count{
    min-height: 30px;
    padding-inline: 12px;
    font-size: .68rem;
  }
}


/* Microajuste final ePockets — desktop mantido, mobile 2px mais abaixo */
.rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
  --bd-row-top: 37px;
  --bd-title-gap: 44px;
}
@media (max-width: 900px){
  .rp-epockets-page .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-row-top: 41px;
    --bd-title-gap: 44px;
  }
}

/* =========================================================
   Correção geral das prateleiras ePockets — fundo branco limpo
   Alinha /epockets ao padrão aprovado em /producoes/livros.
   ========================================================= */
.rp-epockets-page .bd-shelf-wrap{
  background:#fff!important;
  background-image:none!important;
}

.rp-epockets-page .bd-shelf-frame{
  background-color:#fff!important;
  background-image:url("../images/biblioteca-digital/bk-estante-biblioteca.webp")!important;
  background-repeat:repeat-x!important;
  background-position:left var(--bd-shelf-bg-top)!important;
  background-size:auto!important;
  background-blend-mode:normal!important;
}

.rp-epockets-page .bd-shelf-frame::before,
.rp-epockets-page .bd-shelf-frame::after{
  content:none!important;
  display:none!important;
  background:none!important;
}

.rp-epockets-page .bd-shelf-scroll,
.rp-epockets-page .bd-book-row,
.rp-epockets-page .bd-book-link{
  background:transparent!important;
  background-image:none!important;
}

.rp-epockets-page .bd-shelf-frame .shelf-cap{
  background:transparent!important;
  box-shadow:none!important;
}
