/* =========================================================
   Biblioteca Digital — Selo Editorial Ryoki Produções
   CSS autônomo dentro de /producoes. Não depende do site raiz.
   Efeito de livro replicado do site institucional Ryoki para esta pasta.
   ========================================================= */

.rp-biblioteca-digital{
  background:#f6f1e8;
  color:#211812;
  overflow-x:hidden;
}
.rp-biblioteca-digital .bd-hero{
  padding:clamp(78px,9vw,132px) 0 34px;
  background:radial-gradient(circle at 15% 4%,rgba(245,116,0,.12),transparent 34%),linear-gradient(180deg,#faf7f1 0%,#f2e8db 100%);
}
.rp-biblioteca-digital .bd-hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,380px);
  gap:clamp(28px,5vw,72px);
  align-items:end;
}
.rp-biblioteca-digital .bd-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:fit-content;
  margin:0 0 18px;
  padding:8px 13px;
  border:1px solid rgba(245,116,0,.22);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#f57400;
  font-family:var(--rp-mono);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rp-biblioteca-digital .bd-kicker::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#f57400;
  box-shadow:0 0 0 4px rgba(245,116,0,.12);
}
.rp-biblioteca-digital .bd-hero h1{
  max-width:940px;
  margin:0;
  color:#211812;
  font-family:var(--rp-serif);
  font-size:clamp(56px,9vw,126px);
  font-weight:700;
  letter-spacing:-.075em;
  line-height:.86;
  text-wrap:balance;
}
.rp-biblioteca-digital .bd-lead{
  max-width:800px;
  margin:26px 0 0;
  color:#66594a;
  font-size:clamp(1.05rem,1.55vw,1.32rem);
  line-height:1.74;
}
.rp-biblioteca-digital .bd-hero-card{
  padding:24px;
  border:1px solid rgba(50,35,22,.13);
  border-radius:28px;
  background:rgba(255,255,255,.74);
  box-shadow:0 18px 60px rgba(61,38,17,.09);
}
.rp-biblioteca-digital .bd-hero-card strong{
  display:block;
  color:#211812;
  font-family:var(--rp-serif);
  font-size:clamp(48px,5vw,74px);
  line-height:.86;
  letter-spacing:-.06em;
}
.rp-biblioteca-digital .bd-hero-card span{
  display:block;
  margin-top:10px;
  color:#7c6c5e;
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.rp-biblioteca-digital .bd-hero-card p{
  margin:18px 0 0;
  color:#6c5f53;
  line-height:1.62;
}
.rp-biblioteca-digital .bd-filter-shell{
  position:sticky;
  top:0;
  z-index:18;
  margin:0 auto;
  padding:18px 0 8px;
  background:linear-gradient(180deg,rgba(246,241,232,.98),rgba(246,241,232,.90));
  backdrop-filter:blur(10px);
}
.rp-biblioteca-digital .bd-filter{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:min(100% - 32px,1320px);
  margin-inline:auto;
  padding:14px;
  border:1px solid rgba(52,34,20,.12);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  box-shadow:0 14px 34px rgba(55,34,17,.07);
}
.rp-biblioteca-digital .bd-filter button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 17px;
  border:1px solid rgba(52,34,20,.15);
  border-radius:999px;
  background:#fffaf3;
  color:#5b4938;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.rp-biblioteca-digital .bd-filter button span{
  opacity:.58;
  font-size:.68rem;
}
.rp-biblioteca-digital .bd-filter button:hover,
.rp-biblioteca-digital .bd-filter button.is-active{
  background:#221811;
  color:#fff8ef;
  border-color:#221811;
  transform:translateY(-1px);
}
.rp-biblioteca-digital .bd-library{
  padding:24px 0 clamp(70px,8vw,116px);
}
.rp-biblioteca-digital .bd-shelf-section{
  margin:0 auto clamp(54px,7vw,92px);
}
.rp-biblioteca-digital .bd-shelf-section.is-hidden{
  display:none!important;
}
.rp-biblioteca-digital .bd-shelf-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:end;
  width:min(100% - 40px,1320px);
  margin:0 auto 14px;
}
.rp-biblioteca-digital .bd-shelf-head h2{
  margin:0;
  color:#211812;
  font-family:var(--rp-serif);
  font-size:clamp(34px,4.6vw,64px);
  line-height:.96;
  letter-spacing:-.055em;
}
.rp-biblioteca-digital .bd-shelf-head p{
  max-width:760px;
  margin:14px 0 0;
  color:#766657;
  font-size:1rem;
  line-height:1.62;
}
.rp-biblioteca-digital .bd-shelf-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border:1px solid rgba(52,34,20,.13);
  border-radius:999px;
  background:#fffaf3;
  color:#70513a;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  white-space:nowrap;
}
.rp-biblioteca-digital .bd-shelf-wrap{
  width:min(100% - 32px,1440px);
  margin-inline:auto;
  position:relative;
}
.rp-biblioteca-digital .bd-shelf-frame{
  --bd-shelf-bg-top:148px;
  --bd-row-top:8px;
  --bd-cover-height:238px;
  --bd-item-width:210px;
  --bd-book-gap:clamp(42px,4.8vw,74px);
  --bd-title-gap:48px;
  position:relative;
  height:418px;
  overflow:hidden;
  background-color:#f6f1e8;
  background-image:url("../images/biblioteca-digital/bk-estante-biblioteca.webp");
  background-repeat:repeat-x;
  background-position:left var(--bd-shelf-bg-top);
}
.rp-biblioteca-digital .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
  --bd-shelf-bg-top:119px;
  --bd-row-top:12px;
  --bd-cover-height:205px;
  --bd-item-width:172px;
  --bd-book-gap:clamp(34px,4vw,60px);
  --bd-title-gap:42px;
  height:376px;
}
.rp-biblioteca-digital .bd-shelf-frame .shelf-cap{
  display:block!important;
  position:absolute;
  top:var(--bd-shelf-bg-top)!important;
  bottom:auto!important;
  z-index:7;
  width:109px;
  height:165px;
  pointer-events:none;
  object-fit:cover;
}
.rp-biblioteca-digital .bd-shelf-frame .shelf-left{
  left:0;
  object-position:left top;
}
.rp-biblioteca-digital .bd-shelf-frame .shelf-right{
  right:0;
  object-position:right top;
}
.rp-biblioteca-digital .bd-shelf-scroll{
  position:absolute;
  inset:0 109px 0 109px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  scrollbar-color:transparent transparent;
  -webkit-overflow-scrolling:touch;
}

.rp-biblioteca-digital .bd-shelf-scroll::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}
.rp-biblioteca-digital .bd-shelf-nav{
  position:absolute;
  top:calc(var(--bd-shelf-bg-top) + 30px);
  z-index:18;
  width:38px;
  height:38px;
  border:1px solid rgba(67,44,27,.14);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,252,247,.82),rgba(244,235,222,.76));
  color:#2f2117;
  box-shadow:0 10px 22px rgba(43,27,14,.11),0 2px 6px rgba(43,27,14,.07),inset 0 1px 0 rgba(255,255,255,.70);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.82;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease,opacity .18s ease,border-color .18s ease;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.rp-biblioteca-digital .bd-shelf-nav::before{
  content:"";
  display:block;
  width:9px;
  height:9px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
}
.rp-biblioteca-digital .bd-shelf-prev{
  left:30px;
}
.rp-biblioteca-digital .bd-shelf-prev::before{
  transform:rotate(-135deg) translate(-1px,-1px);
}
.rp-biblioteca-digital .bd-shelf-next{
  right:30px;
}
.rp-biblioteca-digital .bd-shelf-next::before{
  transform:rotate(45deg) translate(-1px,1px);
}
.rp-biblioteca-digital .bd-shelf-nav:hover,
.rp-biblioteca-digital .bd-shelf-nav:focus-visible{
  opacity:1;
  background:linear-gradient(180deg,rgba(255,252,247,.96),rgba(246,237,225,.92));
  border-color:rgba(67,44,27,.20);
  box-shadow:0 14px 28px rgba(43,27,14,.15),0 3px 8px rgba(43,27,14,.08),inset 0 1px 0 rgba(255,255,255,.84);
  transform:translateY(-1px);
  outline:none;
}
.rp-biblioteca-digital .bd-shelf-nav:focus-visible{
  outline:2px solid rgba(245,116,0,.28);
  outline-offset:3px;
}
.rp-biblioteca-digital .bd-shelf-nav:active{
  transform:translateY(0) scale(.97);
}
.rp-biblioteca-digital .bd-shelf-nav[disabled]{
  opacity:.22;
  cursor:default;
  pointer-events:none;
}

.rp-biblioteca-digital .bd-book-row{
  display:flex;
  align-items:flex-start;
  gap:var(--bd-book-gap);
  width:max-content;
  height:100%;
  margin:0;
  padding:var(--bd-row-top) 36px 0;
  list-style:none;
}
.rp-biblioteca-digital .bd-book-item{
  flex:0 0 auto;
  width:var(--bd-item-width);
  text-align:center;
  transition:opacity .22s ease,transform .22s ease;
}
.rp-biblioteca-digital .bd-book-item.is-hidden{
  display:none!important;
}
.rp-biblioteca-digital .bd-book-link,
.rp-biblioteca-digital .book-thumb-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  z-index:12;
  color:#211812;
  text-decoration:none;
  outline:none;
  cursor:pointer;
  pointer-events:auto;
}
.rp-biblioteca-digital .bd-book-stage,
.rp-biblioteca-digital .book-thumb-stage,
.rp-biblioteca-digital .PageFlipBook{
  display:inline-block;
  perspective:1200px;
  perspective-origin:35% 50%;
  margin:0;
  line-height:0;
  overflow:visible;
}
.rp-biblioteca-digital .bd-book-wrap,
.rp-biblioteca-digital .book-thumb-wrap{
  display:inline-block;
  position:relative;
  width:auto;
  max-width:100%;
  line-height:0;
  overflow:visible;
  transform-origin:35% 50%;
  transform-style:preserve-3d;
  transform:rotateY(-2.5deg);
  filter:drop-shadow(9px 8px 12px rgba(31,21,13,.13));
  transition:transform .22s ease,filter .22s ease;
  will-change:transform,filter;
}
.rp-biblioteca-digital .bd-book-wrap img,
.rp-biblioteca-digital .book-thumb-wrap img{
  position:relative;
  z-index:2;
  display:block;
  width:auto;
  height:var(--bd-cover-height);
  max-width:100%;
  object-fit:contain;
  object-position:left bottom;
  background:#fff;
  border-radius:1px;
  filter:saturate(.98) contrast(.995);
  transition:filter .22s ease,box-shadow .22s ease;
  backface-visibility:hidden;
  box-shadow:0 10px 18px rgba(35,24,14,.10),0 0 0 1px rgba(20,12,8,.045);
}
.rp-biblioteca-digital .bd-book-wrap.has-edge::before,
.rp-biblioteca-digital .book-thumb-wrap.has-edge::before{
  content:"";
  position:absolute;
  top:4px;
  left:calc(100% - 1px);
  bottom:4px;
  z-index:1;
  width:5px;
  background:repeating-linear-gradient(to right,#fbfaf7 0,#fbfaf7 1px,#d8d1c7 1px,#d8d1c7 2px,#bfb6aa 2px,#bfb6aa 3px);
  border-right:1px solid rgba(73,62,52,.16);
  opacity:.58;
  pointer-events:none;
  box-shadow:4px 0 8px rgba(39,28,18,.08);
}
.rp-biblioteca-digital .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-biblioteca-digital .book-thumb-wrap.has-edge.has-edge-thin::before{
  width:4px;
  opacity:.54;
}

.rp-biblioteca-digital .bd-book-wrap.has-edge::after,
.rp-biblioteca-digital .book-thumb-wrap.has-edge::after{
  content:"";
  position:absolute;
  top:3px;
  left:98.5%;
  bottom:3px;
  width:14px;
  background:repeating-linear-gradient(to right,#fbfaf7 0,#fbfaf7 2px,#d6d0c7 2px,#d6d0c7 3px,#b8b1a7 3px,#b8b1a7 4px);
  transform-origin:0% 50%;
  transform:translateX(1px) skewY(-.45deg) scaleX(.55);
  opacity:0;
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
  box-shadow:4px 0 10px rgba(39,28,18,.10);
}
.rp-biblioteca-digital .bd-book-wrap.has-edge.has-edge-thin::after,
.rp-biblioteca-digital .book-thumb-wrap.has-edge.has-edge-thin::after{
  width:9px;
}
.rp-biblioteca-digital .bd-book-wrap.has-edge.has-edge-thick::after,
.rp-biblioteca-digital .book-thumb-wrap.has-edge.has-edge-thick::after{
  width:18px;
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-wrap,
.rp-biblioteca-digital .bd-book-link:active .bd-book-wrap,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-wrap{
  transform:rotateY(-35deg);
  filter:drop-shadow(18px 16px 18px rgba(31,21,13,.15));
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap img,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-wrap img,
.rp-biblioteca-digital .bd-book-link:active .bd-book-wrap img,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-wrap img{
  filter:saturate(1.04) contrast(1.02);
  box-shadow:18px 22px 34px rgba(0,0,0,.11);
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap.has-edge::before,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-wrap.has-edge::before,
.rp-biblioteca-digital .bd-book-link:active .bd-book-wrap.has-edge::before,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-wrap.has-edge::before{
  width:11px;
  opacity:.78;
  box-shadow:5px 0 10px rgba(39,28,18,.10);
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-biblioteca-digital .bd-book-link:active .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-wrap.has-edge.has-edge-thin::before{
  width:8px;
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap.has-edge::after,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-wrap.has-edge::after,
.rp-biblioteca-digital .bd-book-link:active .bd-book-wrap.has-edge::after,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-wrap.has-edge::after{
  opacity:.76;
  transform:translateX(4px) skewY(-.6deg) scaleX(1);
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap.single-has-edge::after,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-wrap.single-has-edge::after,
.rp-biblioteca-digital .bd-book-link:active .bd-book-wrap.single-has-edge::after,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-wrap.single-has-edge::after{
  opacity:.76;
  transform:translateX(4px) skewY(-.6deg) scaleX(1);
}
.rp-biblioteca-digital .bd-book-title{
  display:block;
  width:100%;
  margin-top:var(--bd-title-gap);
  color:#17110d;
  font-family:var(--rp-serif);
  font-size:clamp(18px,1.75vw,25px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.035em;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.rp-biblioteca-digital .bd-shelf-section[data-kind="pocket"] .bd-book-title{
  font-size:17px;
  line-height:1.06;
}
.rp-biblioteca-digital .bd-book-meta{
  display:block;
  margin-top:5px;
  color:#6a5a4d;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  line-height:1.2;
  text-transform:uppercase;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.rp-biblioteca-digital .bd-book-extra{
  display:block;
  margin-top:3px;
  color:#8d7a68;
  font-size:10px;
  line-height:1.2;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.rp-biblioteca-digital .bd-book-link:hover .bd-book-title,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-title,
.rp-biblioteca-digital .bd-book-link:active .bd-book-title,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-title,
.rp-biblioteca-digital .bd-book-link:hover .bd-book-meta,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-meta,
.rp-biblioteca-digital .bd-book-link:active .bd-book-meta,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-meta,
.rp-biblioteca-digital .bd-book-link:hover .bd-book-extra,
.rp-biblioteca-digital .bd-book-link:focus-visible .bd-book-extra,
.rp-biblioteca-digital .bd-book-link:active .bd-book-extra,
.rp-biblioteca-digital .bd-book-item:focus-within .bd-book-extra{
  opacity:1;
  transform:translateY(0);
}
.rp-biblioteca-digital .bd-bottom-note{
  width:min(100% - 40px,1120px);
  margin:22px auto 0;
  color:#706254;
  font-size:.96rem;
  line-height:1.68;
  text-align:center;
}
@media (hover:none){
  .rp-biblioteca-digital .bd-book-title,
  .rp-biblioteca-digital .bd-book-meta,
  .rp-biblioteca-digital .bd-book-extra{
    opacity:1;
    transform:none;
  }
  .rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap{transform:rotateY(-2.5deg)}
  .rp-biblioteca-digital .bd-book-link:hover .bd-book-wrap.single-has-edge::after{opacity:0}
  .rp-biblioteca-digital .bd-book-link:active .bd-book-wrap{transform:rotateY(-35deg)}
  .rp-biblioteca-digital .bd-book-link:active .bd-book-wrap.single-has-edge::after{opacity:.76;transform:translateX(4px) skewY(-.6deg) scaleX(1)}
}
@media (max-width:980px){
  .rp-biblioteca-digital .bd-shelf-nav{width:36px;height:36px;top:calc(var(--bd-shelf-bg-top) + 30px)}
  .rp-biblioteca-digital .bd-shelf-prev{left:11px}
  .rp-biblioteca-digital .bd-shelf-next{right:11px}
  .rp-biblioteca-digital .bd-hero-inner{grid-template-columns:1fr}
  .rp-biblioteca-digital .bd-hero-card{max-width:420px}
  .rp-biblioteca-digital .bd-shelf-head{grid-template-columns:1fr}
  .rp-biblioteca-digital .bd-shelf-count{justify-self:start}
  .rp-biblioteca-digital .bd-filter-shell{position:relative}
  .rp-biblioteca-digital .bd-shelf-scroll{left:58px;right:58px}
  .rp-biblioteca-digital .bd-shelf-frame .shelf-cap{width:58px;height:165px;object-fit:cover}
  .rp-biblioteca-digital .bd-shelf-frame .shelf-left{left:0;object-position:left top}
  .rp-biblioteca-digital .bd-shelf-frame .shelf-right{right:0;object-position:right top}
  .rp-biblioteca-digital .bd-shelf-frame{--bd-book-gap:34px;--bd-item-width:182px}
  .rp-biblioteca-digital .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{--bd-book-gap:30px;--bd-item-width:154px}
}
@media (max-width:720px){
  .rp-biblioteca-digital .bd-shelf-nav{width:32px;height:32px;top:calc(var(--bd-shelf-bg-top) + 25px);background:linear-gradient(180deg,rgba(255,252,247,.90),rgba(244,235,222,.84))}
  .rp-biblioteca-digital .bd-shelf-nav::before{width:8px;height:8px}
  .rp-biblioteca-digital .bd-hero{padding-top:62px}
  .rp-biblioteca-digital .bd-hero h1{font-size:clamp(52px,16vw,82px)}
  .rp-biblioteca-digital .bd-filter{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:11px;border-radius:22px}
  .rp-biblioteca-digital .bd-filter::-webkit-scrollbar{display:none}
  .rp-biblioteca-digital .bd-filter button{flex:0 0 auto;min-height:34px;padding-inline:14px;font-size:.66rem}
  .rp-biblioteca-digital .bd-shelf-wrap{width:100%}
  .rp-biblioteca-digital .bd-shelf-frame{
    --bd-shelf-bg-top:100px;
    --bd-row-top:8px;
    --bd-cover-height:190px;
    --bd-title-gap:52px;
    --bd-item-width:148px;
    --bd-book-gap:28px;
    height:386px;
    background-position:left var(--bd-shelf-bg-top);
  }
  .rp-biblioteca-digital .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-shelf-bg-top:85px;
    --bd-row-top:8px;
    --bd-cover-height:174px;
    --bd-title-gap:46px;
    --bd-item-width:132px;
    --bd-book-gap:25px;
    height:356px;
  }
  .rp-biblioteca-digital .bd-shelf-frame .shelf-cap{
    display:block!important;
    top:var(--bd-shelf-bg-top)!important;
    width:58px!important;
    height:165px!important;
  }
  .rp-biblioteca-digital .bd-shelf-scroll{left:54px;right:54px;width:auto;height:100%;padding:0;overflow-x:auto;overflow-y:hidden}

.rp-biblioteca-digital .bd-book-row{padding-left:10px;padding-right:24px}
  .rp-biblioteca-digital .bd-book-title{font-size:16px;line-height:1.05}
  .rp-biblioteca-digital .bd-book-meta,.rp-biblioteca-digital .bd-book-extra{font-size:9px}
  .rp-biblioteca-digital .bd-shelf-head h2{font-size:clamp(32px,11vw,48px)}
}
@media (max-width:430px){
  .rp-biblioteca-digital .bd-shelf-frame{
    --bd-cover-height:180px;
    --bd-shelf-bg-top:90px;
    --bd-title-gap:50px;
    --bd-item-width:136px;
    --bd-book-gap:24px;
    height:372px;
  }
  .rp-biblioteca-digital .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-cover-height:166px;
    --bd-shelf-bg-top:77px;
    --bd-title-gap:44px;
    --bd-item-width:124px;
    --bd-book-gap:22px;
    height:344px;
  }
}

/* =========================================================
   Biblioteca Digital — ajuste para identidade /producoes/livros
   Mantém apenas estantes e livros no corpo da página.
   ========================================================= */
.rp-biblioteca-digital.books-page .bd-catalog-summary{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:252px;
  padding:21px 18px 18px;
  border:1px solid rgba(245,116,0,.20);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(247,245,241,.96));
  box-shadow:0 14px 28px rgba(0,0,0,.06),inset 0 1px 0 rgba(255,255,255,.78);
  overflow:hidden;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--rp-orange),rgba(245,116,0,.18));
}
.rp-biblioteca-digital.books-page .bd-catalog-summary .proof-eyebrow{
  display:inline-flex;
  width:auto;
  margin:0 0 10px;
  padding:5px 11px 4px;
  border:1px solid rgba(245,116,0,.22);
  border-radius:999px;
  background:rgba(255,255,255,.62);
  color:#7a746d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
  line-height:1;
  text-transform:uppercase;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary h3{
  max-width:220px;
  margin:0 0 14px;
  color:var(--rp-ink);
  font-family:var(--rp-serif);
  font-size:23px;
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.05;
  text-shadow:1px 1px 0 #fff;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list{
  display:grid;
  width:100%;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list li{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  column-gap:9px;
  min-height:28px;
  padding-bottom:8px;
  margin-bottom:8px;
  border-bottom:1px dotted rgba(0,0,0,.18);
}
.rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list li:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:0;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list strong{
  display:block;
  color:rgba(245,116,0,.92);
  font-family:var(--rp-mono);
  font-size:11px;
  font-weight:900;
  letter-spacing:.045em;
  line-height:1.08;
  text-transform:uppercase;
  white-space:nowrap;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list span{
  display:block;
  margin:0;
  color:#4f4842;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.22;
  text-transform:uppercase;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:max-content;
  min-height:32px;
  margin-top:auto;
  padding:0 14px;
  border:1px solid var(--rp-orange);
  border-radius:999px;
  background:var(--rp-orange);
  color:#fff!important;
  font-size:9.8px;
  font-weight:900;
  letter-spacing:.055em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.rp-biblioteca-digital.books-page .bd-catalog-summary a:hover,
.rp-biblioteca-digital.books-page .bd-catalog-summary a:focus-visible{
  background:#fff;
  color:var(--rp-orange)!important;
  transform:translateY(-1px);
}
.rp-biblioteca-digital .bd-library-extension .extension-head{
  width:100%;
  max-width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,1fr);
  grid-template-areas:"kicker texto" "titulo texto";
  column-gap:clamp(30px,5vw,72px);
  row-gap:10px;
  align-items:start;
}
.rp-biblioteca-digital .bd-library-extension .extension-head .kicker{grid-area:kicker;max-width:none;margin:0;}
.rp-biblioteca-digital .bd-library-extension .extension-head h2{grid-area:titulo;max-width:none;margin:0;}
.rp-biblioteca-digital .bd-library-extension .extension-head>p:not(.kicker){grid-area:texto;max-width:none;margin:6px 0 0;align-self:center;}
.rp-biblioteca-digital .bd-library-extension{
  margin-top:36px;
}
.rp-biblioteca-digital .bd-library-extension .bd-filter-shell{
  position:relative;
  top:auto;
  z-index:10;
  margin:30px 0 34px;
  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);
  backdrop-filter:none;
}
.rp-biblioteca-digital .bd-library-extension .bd-filter{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  justify-content:flex-start;
  gap:8px;
}
.rp-biblioteca-digital .bd-library-extension .bd-filter button{
  min-height:32px;
  padding:0 13px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  color:#514c47;
  font-size:10.5px;
  letter-spacing:.055em;
  transform:none;
}
.rp-biblioteca-digital .bd-library-extension .bd-filter button:hover,
.rp-biblioteca-digital .bd-library-extension .bd-filter button:focus-visible{
  border-color:var(--rp-orange);
  color:var(--rp-orange);
  background:#fff;
  transform:translateY(-1px);
}
.rp-biblioteca-digital .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-biblioteca-digital .bd-library{
  padding:0 0 clamp(60px,7vw,104px);
}
.rp-biblioteca-digital .bd-library .bd-shelf-section{
  margin-bottom:clamp(48px,6vw,82px);
}
@media(max-width:980px){
  .rp-biblioteca-digital.books-page .bd-catalog-summary{min-height:0;padding:22px 20px 20px;}
  .rp-biblioteca-digital.books-page .bd-catalog-summary h3{max-width:none;font-size:24px;}
  .rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list{max-width:460px;}
  .rp-biblioteca-digital.books-page .bd-catalog-summary a{margin-top:18px;}
  .rp-biblioteca-digital .bd-library-extension .extension-head{display:block;max-width:100%;}
  .rp-biblioteca-digital .bd-library-extension .extension-head>p:not(.kicker){margin-top:16px;}
  .rp-biblioteca-digital .bd-library-extension .bd-filter{justify-content:center;}
}
@media(max-width:620px){
  .rp-biblioteca-digital.books-page .bd-catalog-summary{align-items:center;text-align:center;}
  .rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list{max-width:320px;text-align:left;}
  .rp-biblioteca-digital.books-page .bd-catalog-summary .publish-list li{grid-template-columns:92px minmax(0,1fr);}
  .rp-biblioteca-digital .bd-library-extension .bd-filter-shell{margin-top:24px;padding:14px 12px;border-radius:18px;}
  .rp-biblioteca-digital .bd-library-extension .bd-filter{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:2px 4px 7px;scrollbar-width:thin;}
  .rp-biblioteca-digital .bd-library-extension .bd-filter button{flex:0 0 auto;min-height:31px;padding-inline:12px;font-size:10px;}
}

/* =========================================================
   Biblioteca Digital — refinamento final de fundo e gêneros
   Fundo no padrão das páginas /producoes e cabeçalhos compactos.
   ========================================================= */
.rp-biblioteca-digital{
  background:#fff;
}
.rp-biblioteca-digital .bd-filter-shell{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92));
}
.rp-biblioteca-digital .bd-shelf-frame{
  background-color:#fff;
}
.rp-biblioteca-digital .bd-library-extension{
  background:#fff;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  width:min(100% - 40px,1320px);
  margin:0 auto 16px;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin:0;
  padding:0 15px;
  border:1px solid rgba(52,34,20,.13);
  border-radius:999px;
  background:#fffaf3;
  color:#70513a;
  font-family:var(--rp-mono);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.085em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
  min-height:34px;
  border-color:rgba(245,116,0,.24);
  background:rgba(245,116,0,.08);
  color:#7d4a1d;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
  margin-top:0;
}
@media(max-width:720px){
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact{
    width:min(100% - 28px,1320px);
    margin-bottom:12px;
    gap:8px;
  }
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label,
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
    min-height:31px;
    padding-inline:12px;
    font-size:.66rem;
    letter-spacing:.06em;
  }
}

/* =========================================================
   Biblioteca Digital — ajuste fino de cabeçalho e respiro
   Mantém a identidade /producoes e trabalha apenas a página de estantes.
   ========================================================= */
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  width:min(100% - 40px,1440px);
  margin:0 auto 0;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label,
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
  font-family:var(--rp-mono);
  font-weight:900;
  letter-spacing:.085em;
  line-height:1;
  text-transform:uppercase;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label{
  justify-self:start;
  max-width:100%;
  font-size:clamp(.78rem,.88vw,.92rem);
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
  justify-self:end;
  font-size:clamp(.70rem,.76vw,.80rem);
  letter-spacing:.08em;
}
.rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
  margin-top:30px;
}
.rp-biblioteca-digital .bd-library .bd-shelf-section{
  margin-bottom:clamp(8px,1.5vw,18px);
}
@media(max-width:720px){
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact{
    width:min(100% - 28px,1440px);
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
  }
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label{
    font-size:.68rem;
    letter-spacing:.055em;
    white-space:normal;
    text-align:left;
  }
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
    font-size:.64rem;
    letter-spacing:.055em;
  }
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
    margin-top:24px;
  }
  .rp-biblioteca-digital .bd-library .bd-shelf-section{
    margin-bottom:14px;
  }
}
@media(max-width:430px){
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact{
    grid-template-columns:1fr;
    gap:8px;
  }
  .rp-biblioteca-digital .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
    justify-self:start;
  }
}


/* =========================================================
   CATÁLOGO DE LIVROS EM ESTANTES — escopo autônomo /producoes/livros
   ========================================================= */
/* =========================================================
   Biblioteca Digital — Selo Editorial Ryoki Produções
   CSS autônomo dentro de /producoes. Não depende do site raiz.
   Efeito de livro replicado do site institucional Ryoki para esta pasta.
   ========================================================= */

.rp-catalogo-estantes{
  background:#f6f1e8;
  color:#211812;
  overflow-x:hidden;
}
.rp-catalogo-estantes .bd-hero{
  padding:clamp(78px,9vw,132px) 0 34px;
  background:radial-gradient(circle at 15% 4%,rgba(245,116,0,.12),transparent 34%),linear-gradient(180deg,#faf7f1 0%,#f2e8db 100%);
}
.rp-catalogo-estantes .bd-hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,380px);
  gap:clamp(28px,5vw,72px);
  align-items:end;
}
.rp-catalogo-estantes .bd-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:fit-content;
  margin:0 0 18px;
  padding:8px 13px;
  border:1px solid rgba(245,116,0,.22);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#f57400;
  font-family:var(--rp-mono);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rp-catalogo-estantes .bd-kicker::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#f57400;
  box-shadow:0 0 0 4px rgba(245,116,0,.12);
}
.rp-catalogo-estantes .bd-hero h1{
  max-width:940px;
  margin:0;
  color:#211812;
  font-family:var(--rp-serif);
  font-size:clamp(56px,9vw,126px);
  font-weight:700;
  letter-spacing:-.075em;
  line-height:.86;
  text-wrap:balance;
}
.rp-catalogo-estantes .bd-lead{
  max-width:800px;
  margin:26px 0 0;
  color:#66594a;
  font-size:clamp(1.05rem,1.55vw,1.32rem);
  line-height:1.74;
}
.rp-catalogo-estantes .bd-hero-card{
  padding:24px;
  border:1px solid rgba(50,35,22,.13);
  border-radius:28px;
  background:rgba(255,255,255,.74);
  box-shadow:0 18px 60px rgba(61,38,17,.09);
}
.rp-catalogo-estantes .bd-hero-card strong{
  display:block;
  color:#211812;
  font-family:var(--rp-serif);
  font-size:clamp(48px,5vw,74px);
  line-height:.86;
  letter-spacing:-.06em;
}
.rp-catalogo-estantes .bd-hero-card span{
  display:block;
  margin-top:10px;
  color:#7c6c5e;
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.rp-catalogo-estantes .bd-hero-card p{
  margin:18px 0 0;
  color:#6c5f53;
  line-height:1.62;
}
.rp-catalogo-estantes .bd-filter-shell{
  position:sticky;
  top:0;
  z-index:18;
  margin:0 auto;
  padding:18px 0 8px;
  background:linear-gradient(180deg,rgba(246,241,232,.98),rgba(246,241,232,.90));
  backdrop-filter:blur(10px);
}
.rp-catalogo-estantes .bd-filter{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:min(100% - 32px,1320px);
  margin-inline:auto;
  padding:14px;
  border:1px solid rgba(52,34,20,.12);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  box-shadow:0 14px 34px rgba(55,34,17,.07);
}
.rp-catalogo-estantes .bd-filter button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 17px;
  border:1px solid rgba(52,34,20,.15);
  border-radius:999px;
  background:#fffaf3;
  color:#5b4938;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.rp-catalogo-estantes .bd-filter button span{
  opacity:.58;
  font-size:.68rem;
}
.rp-catalogo-estantes .bd-filter button:hover,
.rp-catalogo-estantes .bd-filter button.is-active{
  background:#221811;
  color:#fff8ef;
  border-color:#221811;
  transform:translateY(-1px);
}
.rp-catalogo-estantes .bd-library{
  padding:24px 0 clamp(70px,8vw,116px);
}
.rp-catalogo-estantes .bd-shelf-section{
  margin:0 auto clamp(54px,7vw,92px);
}
.rp-catalogo-estantes .bd-shelf-section.is-hidden{
  display:none!important;
}
.rp-catalogo-estantes .bd-shelf-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:end;
  width:min(100% - 40px,1320px);
  margin:0 auto 14px;
}
.rp-catalogo-estantes .bd-shelf-head h2{
  margin:0;
  color:#211812;
  font-family:var(--rp-serif);
  font-size:clamp(34px,4.6vw,64px);
  line-height:.96;
  letter-spacing:-.055em;
}
.rp-catalogo-estantes .bd-shelf-head p{
  max-width:760px;
  margin:14px 0 0;
  color:#766657;
  font-size:1rem;
  line-height:1.62;
}
.rp-catalogo-estantes .bd-shelf-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border:1px solid rgba(52,34,20,.13);
  border-radius:999px;
  background:#fffaf3;
  color:#70513a;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  white-space:nowrap;
}
.rp-catalogo-estantes .bd-shelf-wrap{
  width:min(100% - 32px,1440px);
  margin-inline:auto;
  position:relative;
}
.rp-catalogo-estantes .bd-shelf-frame{
  --bd-shelf-bg-top:148px;
  --bd-row-top:8px;
  --bd-cover-height:238px;
  --bd-item-width:210px;
  --bd-book-gap:clamp(42px,4.8vw,74px);
  --bd-title-gap:48px;
  position:relative;
  height:418px;
  overflow:hidden;
  background-color:#f6f1e8;
  background-image:url("../images/biblioteca-digital/bk-estante-biblioteca.webp");
  background-repeat:repeat-x;
  background-position:left var(--bd-shelf-bg-top);
}
.rp-catalogo-estantes .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
  --bd-shelf-bg-top:119px;
  --bd-row-top:12px;
  --bd-cover-height:205px;
  --bd-item-width:172px;
  --bd-book-gap:clamp(34px,4vw,60px);
  --bd-title-gap:42px;
  height:376px;
}
.rp-catalogo-estantes .bd-shelf-frame .shelf-cap{
  display:block!important;
  position:absolute;
  top:var(--bd-shelf-bg-top)!important;
  bottom:auto!important;
  z-index:7;
  width:109px;
  height:165px;
  pointer-events:none;
  object-fit:cover;
}
.rp-catalogo-estantes .bd-shelf-frame .shelf-left{
  left:0;
  object-position:left top;
}
.rp-catalogo-estantes .bd-shelf-frame .shelf-right{
  right:0;
  object-position:right top;
}
.rp-catalogo-estantes .bd-shelf-scroll{
  position:absolute;
  inset:0 109px 0 109px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  scrollbar-color:transparent transparent;
  -webkit-overflow-scrolling:touch;
}

.rp-catalogo-estantes .bd-shelf-scroll::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}
.rp-catalogo-estantes .bd-shelf-nav{
  position:absolute;
  top:calc(var(--bd-shelf-bg-top) + 30px);
  z-index:18;
  width:38px;
  height:38px;
  border:1px solid rgba(67,44,27,.14);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,252,247,.82),rgba(244,235,222,.76));
  color:#2f2117;
  box-shadow:0 10px 22px rgba(43,27,14,.11),0 2px 6px rgba(43,27,14,.07),inset 0 1px 0 rgba(255,255,255,.70);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.82;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease,opacity .18s ease,border-color .18s ease;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.rp-catalogo-estantes .bd-shelf-nav::before{
  content:"";
  display:block;
  width:9px;
  height:9px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
}
.rp-catalogo-estantes .bd-shelf-prev{
  left:30px;
}
.rp-catalogo-estantes .bd-shelf-prev::before{
  transform:rotate(-135deg) translate(-1px,-1px);
}
.rp-catalogo-estantes .bd-shelf-next{
  right:30px;
}
.rp-catalogo-estantes .bd-shelf-next::before{
  transform:rotate(45deg) translate(-1px,1px);
}
.rp-catalogo-estantes .bd-shelf-nav:hover,
.rp-catalogo-estantes .bd-shelf-nav:focus-visible{
  opacity:1;
  background:linear-gradient(180deg,rgba(255,252,247,.96),rgba(246,237,225,.92));
  border-color:rgba(67,44,27,.20);
  box-shadow:0 14px 28px rgba(43,27,14,.15),0 3px 8px rgba(43,27,14,.08),inset 0 1px 0 rgba(255,255,255,.84);
  transform:translateY(-1px);
  outline:none;
}
.rp-catalogo-estantes .bd-shelf-nav:focus-visible{
  outline:2px solid rgba(245,116,0,.28);
  outline-offset:3px;
}
.rp-catalogo-estantes .bd-shelf-nav:active{
  transform:translateY(0) scale(.97);
}
.rp-catalogo-estantes .bd-shelf-nav[disabled]{
  opacity:.22;
  cursor:default;
  pointer-events:none;
}

.rp-catalogo-estantes .bd-book-row{
  display:flex;
  align-items:flex-start;
  gap:var(--bd-book-gap);
  width:max-content;
  height:100%;
  margin:0;
  padding:var(--bd-row-top) 36px 0;
  list-style:none;
}
.rp-catalogo-estantes .bd-book-item{
  flex:0 0 auto;
  width:var(--bd-item-width);
  text-align:center;
  transition:opacity .22s ease,transform .22s ease;
}
.rp-catalogo-estantes .bd-book-item.is-hidden{
  display:none!important;
}
.rp-catalogo-estantes .bd-book-link,
.rp-catalogo-estantes .book-thumb-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  z-index:12;
  color:#211812;
  text-decoration:none;
  outline:none;
  cursor:pointer;
  pointer-events:auto;
}
.rp-catalogo-estantes .bd-book-stage,
.rp-catalogo-estantes .book-thumb-stage,
.rp-catalogo-estantes .PageFlipBook{
  display:inline-block;
  perspective:1200px;
  perspective-origin:35% 50%;
  margin:0;
  line-height:0;
  overflow:visible;
}
.rp-catalogo-estantes .bd-book-wrap,
.rp-catalogo-estantes .book-thumb-wrap{
  display:inline-block;
  position:relative;
  width:auto;
  max-width:100%;
  line-height:0;
  overflow:visible;
  transform-origin:35% 50%;
  transform-style:preserve-3d;
  transform:rotateY(-2.5deg);
  filter:drop-shadow(9px 8px 12px rgba(31,21,13,.13));
  transition:transform .22s ease,filter .22s ease;
  will-change:transform,filter;
}
.rp-catalogo-estantes .bd-book-wrap img,
.rp-catalogo-estantes .book-thumb-wrap img{
  position:relative;
  z-index:2;
  display:block;
  width:auto;
  height:var(--bd-cover-height);
  max-width:100%;
  object-fit:contain;
  object-position:left bottom;
  background:#fff;
  border-radius:1px;
  filter:saturate(.98) contrast(.995);
  transition:filter .22s ease,box-shadow .22s ease;
  backface-visibility:hidden;
  box-shadow:0 10px 18px rgba(35,24,14,.10),0 0 0 1px rgba(20,12,8,.045);
}
.rp-catalogo-estantes .bd-book-wrap.has-edge::before,
.rp-catalogo-estantes .book-thumb-wrap.has-edge::before{
  content:"";
  position:absolute;
  top:4px;
  left:calc(100% - 1px);
  bottom:4px;
  z-index:1;
  width:5px;
  background:repeating-linear-gradient(to right,#fbfaf7 0,#fbfaf7 1px,#d8d1c7 1px,#d8d1c7 2px,#bfb6aa 2px,#bfb6aa 3px);
  border-right:1px solid rgba(73,62,52,.16);
  opacity:.58;
  pointer-events:none;
  box-shadow:4px 0 8px rgba(39,28,18,.08);
}
.rp-catalogo-estantes .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-catalogo-estantes .book-thumb-wrap.has-edge.has-edge-thin::before{
  width:4px;
  opacity:.54;
}

.rp-catalogo-estantes .bd-book-wrap.has-edge::after,
.rp-catalogo-estantes .book-thumb-wrap.has-edge::after{
  content:"";
  position:absolute;
  top:3px;
  left:98.5%;
  bottom:3px;
  width:14px;
  background:repeating-linear-gradient(to right,#fbfaf7 0,#fbfaf7 2px,#d6d0c7 2px,#d6d0c7 3px,#b8b1a7 3px,#b8b1a7 4px);
  transform-origin:0% 50%;
  transform:translateX(1px) skewY(-.45deg) scaleX(.55);
  opacity:0;
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
  box-shadow:4px 0 10px rgba(39,28,18,.10);
}
.rp-catalogo-estantes .bd-book-wrap.has-edge.has-edge-thin::after,
.rp-catalogo-estantes .book-thumb-wrap.has-edge.has-edge-thin::after{
  width:9px;
}
.rp-catalogo-estantes .bd-book-wrap.has-edge.has-edge-thick::after,
.rp-catalogo-estantes .book-thumb-wrap.has-edge.has-edge-thick::after{
  width:18px;
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-wrap,
.rp-catalogo-estantes .bd-book-link:active .bd-book-wrap,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-wrap{
  transform:rotateY(-35deg);
  filter:drop-shadow(18px 16px 18px rgba(31,21,13,.15));
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap img,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-wrap img,
.rp-catalogo-estantes .bd-book-link:active .bd-book-wrap img,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-wrap img{
  filter:saturate(1.04) contrast(1.02);
  box-shadow:18px 22px 34px rgba(0,0,0,.11);
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap.has-edge::before,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-wrap.has-edge::before,
.rp-catalogo-estantes .bd-book-link:active .bd-book-wrap.has-edge::before,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-wrap.has-edge::before{
  width:11px;
  opacity:.78;
  box-shadow:5px 0 10px rgba(39,28,18,.10);
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-catalogo-estantes .bd-book-link:active .bd-book-wrap.has-edge.has-edge-thin::before,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-wrap.has-edge.has-edge-thin::before{
  width:8px;
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap.has-edge::after,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-wrap.has-edge::after,
.rp-catalogo-estantes .bd-book-link:active .bd-book-wrap.has-edge::after,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-wrap.has-edge::after{
  opacity:.76;
  transform:translateX(4px) skewY(-.6deg) scaleX(1);
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap.single-has-edge::after,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-wrap.single-has-edge::after,
.rp-catalogo-estantes .bd-book-link:active .bd-book-wrap.single-has-edge::after,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-wrap.single-has-edge::after{
  opacity:.76;
  transform:translateX(4px) skewY(-.6deg) scaleX(1);
}
.rp-catalogo-estantes .bd-book-title{
  display:block;
  width:100%;
  margin-top:var(--bd-title-gap);
  color:#17110d;
  font-family:var(--rp-serif);
  font-size:clamp(18px,1.75vw,25px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.035em;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.rp-catalogo-estantes .bd-shelf-section[data-kind="pocket"] .bd-book-title{
  font-size:17px;
  line-height:1.06;
}
.rp-catalogo-estantes .bd-book-meta{
  display:block;
  margin-top:5px;
  color:#6a5a4d;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  line-height:1.2;
  text-transform:uppercase;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.rp-catalogo-estantes .bd-book-extra{
  display:block;
  margin-top:3px;
  color:#8d7a68;
  font-size:10px;
  line-height:1.2;
  text-align:center;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.rp-catalogo-estantes .bd-book-link:hover .bd-book-title,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-title,
.rp-catalogo-estantes .bd-book-link:active .bd-book-title,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-title,
.rp-catalogo-estantes .bd-book-link:hover .bd-book-meta,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-meta,
.rp-catalogo-estantes .bd-book-link:active .bd-book-meta,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-meta,
.rp-catalogo-estantes .bd-book-link:hover .bd-book-extra,
.rp-catalogo-estantes .bd-book-link:focus-visible .bd-book-extra,
.rp-catalogo-estantes .bd-book-link:active .bd-book-extra,
.rp-catalogo-estantes .bd-book-item:focus-within .bd-book-extra{
  opacity:1;
  transform:translateY(0);
}
.rp-catalogo-estantes .bd-bottom-note{
  width:min(100% - 40px,1120px);
  margin:22px auto 0;
  color:#706254;
  font-size:.96rem;
  line-height:1.68;
  text-align:center;
}
@media (hover:none){
  .rp-catalogo-estantes .bd-book-title,
  .rp-catalogo-estantes .bd-book-meta,
  .rp-catalogo-estantes .bd-book-extra{
    opacity:1;
    transform:none;
  }
  .rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap{transform:rotateY(-2.5deg)}
  .rp-catalogo-estantes .bd-book-link:hover .bd-book-wrap.single-has-edge::after{opacity:0}
  .rp-catalogo-estantes .bd-book-link:active .bd-book-wrap{transform:rotateY(-35deg)}
  .rp-catalogo-estantes .bd-book-link:active .bd-book-wrap.single-has-edge::after{opacity:.76;transform:translateX(4px) skewY(-.6deg) scaleX(1)}
}
@media (max-width:980px){
  .rp-catalogo-estantes .bd-shelf-nav{width:36px;height:36px;top:calc(var(--bd-shelf-bg-top) + 30px)}
  .rp-catalogo-estantes .bd-shelf-prev{left:11px}
  .rp-catalogo-estantes .bd-shelf-next{right:11px}
  .rp-catalogo-estantes .bd-hero-inner{grid-template-columns:1fr}
  .rp-catalogo-estantes .bd-hero-card{max-width:420px}
  .rp-catalogo-estantes .bd-shelf-head{grid-template-columns:1fr}
  .rp-catalogo-estantes .bd-shelf-count{justify-self:start}
  .rp-catalogo-estantes .bd-filter-shell{position:relative}
  .rp-catalogo-estantes .bd-shelf-scroll{left:58px;right:58px}
  .rp-catalogo-estantes .bd-shelf-frame .shelf-cap{width:58px;height:165px;object-fit:cover}
  .rp-catalogo-estantes .bd-shelf-frame .shelf-left{left:0;object-position:left top}
  .rp-catalogo-estantes .bd-shelf-frame .shelf-right{right:0;object-position:right top}
  .rp-catalogo-estantes .bd-shelf-frame{--bd-book-gap:34px;--bd-item-width:182px}
  .rp-catalogo-estantes .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{--bd-book-gap:30px;--bd-item-width:154px}
}
@media (max-width:720px){
  .rp-catalogo-estantes .bd-shelf-nav{width:32px;height:32px;top:calc(var(--bd-shelf-bg-top) + 25px);background:linear-gradient(180deg,rgba(255,252,247,.90),rgba(244,235,222,.84))}
  .rp-catalogo-estantes .bd-shelf-nav::before{width:8px;height:8px}
  .rp-catalogo-estantes .bd-hero{padding-top:62px}
  .rp-catalogo-estantes .bd-hero h1{font-size:clamp(52px,16vw,82px)}
  .rp-catalogo-estantes .bd-filter{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:11px;border-radius:22px}
  .rp-catalogo-estantes .bd-filter::-webkit-scrollbar{display:none}
  .rp-catalogo-estantes .bd-filter button{flex:0 0 auto;min-height:34px;padding-inline:14px;font-size:.66rem}
  .rp-catalogo-estantes .bd-shelf-wrap{width:100%}
  .rp-catalogo-estantes .bd-shelf-frame{
    --bd-shelf-bg-top:100px;
    --bd-row-top:8px;
    --bd-cover-height:190px;
    --bd-title-gap:52px;
    --bd-item-width:148px;
    --bd-book-gap:28px;
    height:386px;
    background-position:left var(--bd-shelf-bg-top);
  }
  .rp-catalogo-estantes .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-shelf-bg-top:85px;
    --bd-row-top:8px;
    --bd-cover-height:174px;
    --bd-title-gap:46px;
    --bd-item-width:132px;
    --bd-book-gap:25px;
    height:356px;
  }
  .rp-catalogo-estantes .bd-shelf-frame .shelf-cap{
    display:block!important;
    top:var(--bd-shelf-bg-top)!important;
    width:58px!important;
    height:165px!important;
  }
  .rp-catalogo-estantes .bd-shelf-scroll{left:54px;right:54px;width:auto;height:100%;padding:0;overflow-x:auto;overflow-y:hidden}

.rp-catalogo-estantes .bd-book-row{padding-left:10px;padding-right:24px}
  .rp-catalogo-estantes .bd-book-title{font-size:16px;line-height:1.05}
  .rp-catalogo-estantes .bd-book-meta,.rp-catalogo-estantes .bd-book-extra{font-size:9px}
  .rp-catalogo-estantes .bd-shelf-head h2{font-size:clamp(32px,11vw,48px)}
}
@media (max-width:430px){
  .rp-catalogo-estantes .bd-shelf-frame{
    --bd-cover-height:180px;
    --bd-shelf-bg-top:90px;
    --bd-title-gap:50px;
    --bd-item-width:136px;
    --bd-book-gap:24px;
    height:372px;
  }
  .rp-catalogo-estantes .bd-shelf-section[data-kind="pocket"] .bd-shelf-frame{
    --bd-cover-height:166px;
    --bd-shelf-bg-top:77px;
    --bd-title-gap:44px;
    --bd-item-width:124px;
    --bd-book-gap:22px;
    height:344px;
  }
}

/* =========================================================
   Biblioteca Digital — ajuste para identidade /producoes/livros
   Mantém apenas estantes e livros no corpo da página.
   ========================================================= */
.rp-catalogo-estantes.books-page .bd-catalog-summary{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:252px;
  padding:21px 18px 18px;
  border:1px solid rgba(245,116,0,.20);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(247,245,241,.96));
  box-shadow:0 14px 28px rgba(0,0,0,.06),inset 0 1px 0 rgba(255,255,255,.78);
  overflow:hidden;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--rp-orange),rgba(245,116,0,.18));
}
.rp-catalogo-estantes.books-page .bd-catalog-summary .proof-eyebrow{
  display:inline-flex;
  width:auto;
  margin:0 0 10px;
  padding:5px 11px 4px;
  border:1px solid rgba(245,116,0,.22);
  border-radius:999px;
  background:rgba(255,255,255,.62);
  color:#7a746d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
  line-height:1;
  text-transform:uppercase;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary h3{
  max-width:220px;
  margin:0 0 14px;
  color:var(--rp-ink);
  font-family:var(--rp-serif);
  font-size:23px;
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.05;
  text-shadow:1px 1px 0 #fff;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list{
  display:grid;
  width:100%;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list li{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  align-items:center;
  column-gap:9px;
  min-height:28px;
  padding-bottom:8px;
  margin-bottom:8px;
  border-bottom:1px dotted rgba(0,0,0,.18);
}
.rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list li:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:0;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list strong{
  display:block;
  color:rgba(245,116,0,.92);
  font-family:var(--rp-mono);
  font-size:11px;
  font-weight:900;
  letter-spacing:.045em;
  line-height:1.08;
  text-transform:uppercase;
  white-space:nowrap;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list span{
  display:block;
  margin:0;
  color:#4f4842;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.22;
  text-transform:uppercase;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:max-content;
  min-height:32px;
  margin-top:auto;
  padding:0 14px;
  border:1px solid var(--rp-orange);
  border-radius:999px;
  background:var(--rp-orange);
  color:#fff!important;
  font-size:9.8px;
  font-weight:900;
  letter-spacing:.055em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.rp-catalogo-estantes.books-page .bd-catalog-summary a:hover,
.rp-catalogo-estantes.books-page .bd-catalog-summary a:focus-visible{
  background:#fff;
  color:var(--rp-orange)!important;
  transform:translateY(-1px);
}
.rp-catalogo-estantes .bd-library-extension .extension-head{
  width:100%;
  max-width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,1fr);
  grid-template-areas:"kicker texto" "titulo texto";
  column-gap:clamp(30px,5vw,72px);
  row-gap:10px;
  align-items:start;
}
.rp-catalogo-estantes .bd-library-extension .extension-head .kicker{grid-area:kicker;max-width:none;margin:0;}
.rp-catalogo-estantes .bd-library-extension .extension-head h2{grid-area:titulo;max-width:none;margin:0;}
.rp-catalogo-estantes .bd-library-extension .extension-head>p:not(.kicker){grid-area:texto;max-width:none;margin:6px 0 0;align-self:center;}
.rp-catalogo-estantes .bd-library-extension{
  margin-top:36px;
}
.rp-catalogo-estantes .bd-library-extension .bd-filter-shell{
  position:relative;
  top:auto;
  z-index:10;
  margin:30px 0 34px;
  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);
  backdrop-filter:none;
}
.rp-catalogo-estantes .bd-library-extension .bd-filter{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  justify-content:flex-start;
  gap:8px;
}
.rp-catalogo-estantes .bd-library-extension .bd-filter button{
  min-height:32px;
  padding:0 13px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  color:#514c47;
  font-size:10.5px;
  letter-spacing:.055em;
  transform:none;
}
.rp-catalogo-estantes .bd-library-extension .bd-filter button:hover,
.rp-catalogo-estantes .bd-library-extension .bd-filter button:focus-visible{
  border-color:var(--rp-orange);
  color:var(--rp-orange);
  background:#fff;
  transform:translateY(-1px);
}
.rp-catalogo-estantes .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-catalogo-estantes .bd-library{
  padding:0 0 clamp(60px,7vw,104px);
}
.rp-catalogo-estantes .bd-library .bd-shelf-section{
  margin-bottom:clamp(48px,6vw,82px);
}
@media(max-width:980px){
  .rp-catalogo-estantes.books-page .bd-catalog-summary{min-height:0;padding:22px 20px 20px;}
  .rp-catalogo-estantes.books-page .bd-catalog-summary h3{max-width:none;font-size:24px;}
  .rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list{max-width:460px;}
  .rp-catalogo-estantes.books-page .bd-catalog-summary a{margin-top:18px;}
  .rp-catalogo-estantes .bd-library-extension .extension-head{display:block;max-width:100%;}
  .rp-catalogo-estantes .bd-library-extension .extension-head>p:not(.kicker){margin-top:16px;}
  .rp-catalogo-estantes .bd-library-extension .bd-filter{justify-content:center;}
}
@media(max-width:620px){
  .rp-catalogo-estantes.books-page .bd-catalog-summary{align-items:center;text-align:center;}
  .rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list{max-width:320px;text-align:left;}
  .rp-catalogo-estantes.books-page .bd-catalog-summary .publish-list li{grid-template-columns:92px minmax(0,1fr);}
  .rp-catalogo-estantes .bd-library-extension .bd-filter-shell{margin-top:24px;padding:14px 12px;border-radius:18px;}
  .rp-catalogo-estantes .bd-library-extension .bd-filter{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:2px 4px 7px;scrollbar-width:thin;}
  .rp-catalogo-estantes .bd-library-extension .bd-filter button{flex:0 0 auto;min-height:31px;padding-inline:12px;font-size:10px;}
}

/* =========================================================
   Biblioteca Digital — refinamento final de fundo e gêneros
   Fundo no padrão das páginas /producoes e cabeçalhos compactos.
   ========================================================= */
.rp-catalogo-estantes{
  background:#fff;
}
.rp-catalogo-estantes .bd-filter-shell{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92));
}
.rp-catalogo-estantes .bd-shelf-frame{
  background-color:#fff;
}
.rp-catalogo-estantes .bd-library-extension{
  background:#fff;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  width:min(100% - 40px,1320px);
  margin:0 auto 16px;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin:0;
  padding:0 15px;
  border:1px solid rgba(52,34,20,.13);
  border-radius:999px;
  background:#fffaf3;
  color:#70513a;
  font-family:var(--rp-mono);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.085em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
  min-height:34px;
  border-color:rgba(245,116,0,.24);
  background:rgba(245,116,0,.08);
  color:#7d4a1d;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
  margin-top:0;
}
@media(max-width:720px){
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact{
    width:min(100% - 28px,1320px);
    margin-bottom:12px;
    gap:8px;
  }
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label,
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
    min-height:31px;
    padding-inline:12px;
    font-size:.66rem;
    letter-spacing:.06em;
  }
}

/* =========================================================
   Biblioteca Digital — ajuste fino de cabeçalho e respiro
   Mantém a identidade /producoes e trabalha apenas a página de estantes.
   ========================================================= */
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  width:min(100% - 40px,1440px);
  margin:0 auto 0;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label,
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
  font-family:var(--rp-mono);
  font-weight:900;
  letter-spacing:.085em;
  line-height:1;
  text-transform:uppercase;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label{
  justify-self:start;
  max-width:100%;
  font-size:clamp(.78rem,.88vw,.92rem);
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
  justify-self:end;
  font-size:clamp(.70rem,.76vw,.80rem);
  letter-spacing:.08em;
}
.rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
  margin-top:30px;
}
.rp-catalogo-estantes .bd-library .bd-shelf-section{
  margin-bottom:clamp(8px,1.5vw,18px);
}
@media(max-width:720px){
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact{
    width:min(100% - 28px,1440px);
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
  }
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-label{
    font-size:.68rem;
    letter-spacing:.055em;
    white-space:normal;
    text-align:left;
  }
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
    font-size:.64rem;
    letter-spacing:.055em;
  }
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
    margin-top:24px;
  }
  .rp-catalogo-estantes .bd-library .bd-shelf-section{
    margin-bottom:14px;
  }
}
@media(max-width:430px){
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact{
    grid-template-columns:1fr;
    gap:8px;
  }
  .rp-catalogo-estantes .bd-shelf-head.bd-shelf-head-compact .bd-shelf-count{
    justify-self:start;
  }
}

.rp-catalogo-estantes .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
  --bd-cover-height:220px;
  --bd-item-width:196px;
  --bd-title-gap:40px;
}
.rp-catalogo-estantes .bd-library .bd-shelf-section{
  margin-bottom:clamp(10px,1.8vw,22px);
}
.rp-catalogo-estantes .bd-book-title,
.rp-catalogo-estantes .bd-book-meta,
.rp-catalogo-estantes .bd-book-extra{
  opacity:1;
  transform:none;
}
@media (max-width:640px){
  .rp-catalogo-estantes .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
    --bd-cover-height:174px;
    --bd-item-width:150px;
    --bd-title-gap:28px;
  }
}

/* Ajuste fino solicitado — /producoes/livros com estantes iguais à Biblioteca Digital */
.rp-catalogo-estantes.books-page .rp-featured-shelf-library,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library {
  margin-top: 0 !important;
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section {
  margin-bottom: clamp(8px, 1.5vw, 18px) !important;
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head {
  margin-bottom: 0 !important;
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1440px);
  margin: 0 auto 0 !important;
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap {
  margin-top: 30px !important;
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame {
  --bd-shelf-bg-top: 148px;
  --bd-row-top: 8px;
  --bd-cover-height: 238px;
  --bd-item-width: 210px;
  --bd-book-gap: clamp(42px, 4.8vw, 74px);
  --bd-title-gap: 48px;
  height: 418px;
  background-color: #fff;
  background-position: left var(--bd-shelf-bg-top);
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-title,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-title,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-extra {
  opacity: 0 !important;
  transform: translateY(10px) !important;
}

.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:hover .bd-book-title,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:focus-visible .bd-book-title,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:active .bd-book-title,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-item:focus-within .bd-book-title,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:hover .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:focus-visible .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:active .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-item:focus-within .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:hover .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:focus-visible .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-link:active .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-item:focus-within .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:hover .bd-book-title,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:focus-visible .bd-book-title,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:active .bd-book-title,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-item:focus-within .bd-book-title,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:hover .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:focus-visible .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:active .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-item:focus-within .bd-book-meta,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:hover .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:focus-visible .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-link:active .bd-book-extra,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-item:focus-within .bd-book-extra {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (hover: none) {
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-title,
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-meta,
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-book-extra,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-title,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-meta,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-book-extra {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact {
    width: min(100% - 28px, 1440px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap {
    margin-top: 24px !important;
  }

  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame {
    --bd-shelf-bg-top: 100px;
    --bd-row-top: 8px;
    --bd-cover-height: 190px;
    --bd-title-gap: 52px;
    --bd-item-width: 148px;
    --bd-book-gap: 28px;
    height: 386px;
    background-position: left var(--bd-shelf-bg-top);
  }

  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section {
    margin-bottom: 14px !important;
  }
}

@media (max-width: 430px) {
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame {
    --bd-cover-height: 180px;
    --bd-shelf-bg-top: 90px;
    --bd-title-gap: 50px;
    --bd-item-width: 136px;
    --bd-book-gap: 24px;
    height: 372px;
  }
}

/* Refinamento pontual — reduzir intervalo entre estantes em /producoes/livros */
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section{
  margin-bottom: 0 !important;
}
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{
  margin-top: clamp(4px, .8vw, 12px) !important;
}
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section{
  margin-bottom: clamp(6px, 1vw, 12px) !important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
  height: 400px !important;
}
@media (max-width: 720px){
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section{
    margin-bottom: 0 !important;
  }
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{
    margin-top: 6px !important;
  }
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
    height: 360px !important;
  }
}
@media (max-width: 430px){
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
    height: 348px !important;
  }
}


/* Ajuste final — aproximação entre estantes em /producoes/livros e remoção de respiro excessivo */
.rp-catalogo-estantes.books-page .rp-featured-shelf-library{
  padding-bottom:0 !important;
  margin-bottom:-28px !important;
}
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{
  padding-top:0 !important;
  padding-bottom:clamp(12px,2vw,28px) !important;
  margin-top:-18px !important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
  height:388px !important;
}
@media (max-width:720px){
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library{margin-bottom:-18px !important;}
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{margin-top:-10px !important;padding-bottom:18px !important;}
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{height:348px !important;}
}
@media (max-width:430px){
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{height:338px !important;}
}

/* Correção final — /producoes/livros: laterais visíveis e sem resíduos entre estantes */
.rp-catalogo-estantes.books-page .rp-featured-shelf-library,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{
  overflow:visible!important;
  padding-top:0!important;
  padding-bottom:0!important;
  margin-bottom:0!important;
}
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{
  margin-top:clamp(2px,.45vw,8px)!important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-wrap,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-wrap{
  overflow:visible!important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-frame{
  overflow:hidden!important;
  isolation:isolate;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-frame .shelf-cap,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-frame .shelf-cap{
  display:block!important;
  z-index:7!important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-scroll,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-scroll{
  left:109px!important;
  right:109px!important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{
  margin-top:24px!important;
}
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{
  height:388px!important;
}
@media(max-width:720px){
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library{margin-top:6px!important;}
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-scroll,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-scroll{left:58px!important;right:58px!important;}
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-frame .shelf-cap,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-frame .shelf-cap{width:58px!important;height:165px!important;}
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head.bd-shelf-head-compact + .bd-shelf-wrap{margin-top:18px!important;}
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{height:348px!important;}
}
@media(max-width:430px){
  .rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame,
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-section[data-kind="large"] .bd-shelf-frame{height:338px!important;}
}

/* Fechamento — badge da Biblioteca Digital na estante de Ryoki em /producoes/livros */
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head-with-action{
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:14px!important;
}
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-action-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 15px;
  border:1px solid rgba(245,116,0,.26);
  border-radius:999px;
  background:rgba(245,116,0,.075);
  color:#f57400!important;
  font-family:var(--rp-mono);
  font-size:clamp(.68rem,.74vw,.78rem);
  font-weight:900;
  letter-spacing:.075em;
  line-height:1;
  text-decoration:none;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(245,116,0,.06);
  transition:transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-action-badge:hover,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-action-badge:focus-visible{
  transform:translateY(-1px);
  background:#fff;
  border-color:rgba(245,116,0,.44);
  outline:0;
}
@media(max-width:720px){
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head-with-action{
    grid-template-columns:1fr auto!important;
    align-items:start!important;
    gap:8px!important;
  }
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head-with-action .bd-shelf-label{
    grid-column:1 / -1;
  }
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-action-badge{
    justify-self:start;
    min-height:31px;
    padding-inline:12px;
    font-size:.62rem;
    letter-spacing:.055em;
  }
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head-with-action .bd-shelf-count{
    justify-self:end;
  }
}
@media(max-width:430px){
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head-with-action{
    grid-template-columns:1fr!important;
  }
  .rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-head-with-action .bd-shelf-count{
    justify-self:start;
  }
}

/* =========================================================
   Correção definitiva — fundo branco atrás da estante
   Remove o vazamento bege no frame das estantes sem alterar
   capas, animação, setas, medidas ou a imagem da prateleira.
   ========================================================= */
.rp-biblioteca-digital .bd-shelf-wrap,
.rp-catalogo-estantes .bd-shelf-wrap,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-wrap,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-wrap{
  background:#fff!important;
}

.rp-biblioteca-digital .bd-shelf-frame,
.rp-catalogo-estantes .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-featured-shelf-library .bd-shelf-frame,
.rp-catalogo-estantes.books-page .rp-ryoki-shelf-library .bd-shelf-frame{
  background-color:#fff!important;
}

.rp-biblioteca-digital .bd-shelf-scroll,
.rp-catalogo-estantes .bd-shelf-scroll,
.rp-biblioteca-digital .bd-book-row,
.rp-catalogo-estantes .bd-book-row{
  background:transparent!important;
}
