.book-detail-page .book-hero-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border: 1px solid rgba(245, 116, 0, .16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 16, 14, .06), inset 0 1px 0 rgba(255,255,255,.92);
}
.book-detail-page .book-cover {
  width: min(100%, 205px);
  max-height: 268px;
  margin: 0 auto 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.book-detail-page .book-cover img {
  display: block;
  max-width: 100%;
  max-height: 258px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,.16));
}
.book-detail-page .book-status-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -2px 0 4px;
}
.book-detail-page .book-status-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 116, 0, .24);
  background: rgba(245, 116, 0, .08);
  color: var(--rp-orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-detail-page .book-status-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 116, 0, .24);
  background: rgba(245, 116, 0, .08);
  color: var(--rp-orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.book-detail-page .book-status-badges a:hover,
.book-detail-page .book-status-badges a:focus {
  background: #fff;
  color: var(--rp-orange);
  border-color: rgba(245, 116, 0, .42);
  transform: translateY(-1px);
}
.book-detail-page .book-status-badges {
  gap: 8px;
  flex-wrap: wrap;
}

.book-detail-page .book-data {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.book-detail-page .book-data li {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dotted rgba(0,0,0,.18);
  color: rgba(22,21,19,.78);
  font-size: .92rem;
}
.book-detail-page .book-data li:last-child { border-bottom: 0; }
.book-detail-page .book-data strong {
  color: var(--rp-orange);
  font-size: .70rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.book-detail-page .sinopse-box {
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(12px, 2.4vw, 24px);
  border-radius: 24px;
  border: 1px solid rgba(21,20,18,.10);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,16,14,.05);
}
.book-detail-page .sinopse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}
.book-detail-page .sinopse-box h2 {
  margin: 0;
  font-family: var(--rp-serif);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.book-detail-page .book-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(245, 116, 0, .16);
  background: rgba(255,255,255,.88);
  color: var(--rp-ink);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17,16,14,.04);
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.book-detail-page .book-author-chip:hover,
.book-detail-page .book-author-chip:focus {
  color: var(--rp-orange);
  border-color: rgba(245,116,0,.38);
  transform: translateY(-1px);
}
.book-detail-page .book-author-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(245,116,0,.28);
  display: block;
}
.book-detail-page .sinopse-box p {
  margin: 0;
  color: rgba(22,21,19,.78);
  font-size: clamp(1rem, 1.22vw, 1.10rem);
  line-height: 1.75;
}
.book-detail-page .sinopse-box p + p { margin-top: 14px; }
@media (max-width: 900px) {
  .book-detail-page .book-cover { width: min(100%, 178px); max-height: 238px; }
  .book-detail-page .book-cover img { max-height: 228px; }
}
@media (max-width: 640px) {
  .book-detail-page .sinopse-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .book-detail-page .book-data li { grid-template-columns: 76px minmax(0,1fr); }
}

/* Biblioteca Digital: sinopse integrada ao hero e CTA de acervo fora da capa */
.biblioteca-book-detail-page .hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}
.biblioteca-book-detail-page .hero-copy .lead {
  margin-bottom: 0;
}
.biblioteca-book-detail-page .hero-synopsis-box {
  margin-top: 4px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid rgba(21,20,18,.10);
  border-left: 3px solid rgba(245,116,0,.55);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(17,16,14,.045), inset 0 1px 0 rgba(255,255,255,.9);
}
.biblioteca-book-detail-page .hero-synopsis-box h2 {
  margin: 0 0 9px;
  font-family: var(--rp-serif);
  font-size: clamp(1.16rem, 1.55vw, 1.42rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--rp-ink);
}
.biblioteca-book-detail-page .hero-synopsis-box p {
  margin: 0;
  color: rgba(22,21,19,.76);
  font-size: clamp(.95rem, 1.06vw, 1.02rem);
  line-height: 1.62;
}
.biblioteca-book-detail-page .hero-synopsis-box p + p {
  margin-top: 8px;
}
.biblioteca-book-detail-page .hero-book-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.biblioteca-book-detail-page .hero-acervo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(245,116,0,.30);
  background: rgba(245,116,0,.08);
  color: var(--rp-orange);
  font-size: .74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(245,116,0,.08);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.biblioteca-book-detail-page .hero-acervo-link:hover,
.biblioteca-book-detail-page .hero-acervo-link:focus {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(245,116,0,.48);
  color: var(--rp-orange);
}
.biblioteca-book-detail-page .hero-author-chip {
  min-height: 36px;
}
.biblioteca-book-detail-page .book-hero-card {
  padding: clamp(16px, 2.2vw, 20px);
}
.biblioteca-book-detail-page .book-cover {
  width: min(100%, 192px);
  max-height: 248px;
}
.biblioteca-book-detail-page .book-cover img {
  max-height: 238px;
}
.biblioteca-book-detail-page .book-status-badges {
  margin-top: 0;
}
.biblioteca-book-detail-page .book-status-badges span {
  background: rgba(21,20,18,.035);
  border-color: rgba(21,20,18,.14);
  color: rgba(22,21,19,.64);
}
@media (max-width: 900px) {
  .biblioteca-book-detail-page .book-cover { width: min(100%, 170px); max-height: 224px; }
  .biblioteca-book-detail-page .book-cover img { max-height: 214px; }
}
@media (max-width: 640px) {
  .biblioteca-book-detail-page .hero-book-actions { align-items: stretch; }
  .biblioteca-book-detail-page .hero-acervo-link,
  .biblioteca-book-detail-page .hero-author-chip {
    width: 100%;
    justify-content: center;
  }
}


/* Ajuste final: sinopse no hero, título mais contido e capa limpa */
.biblioteca-book-detail-page .hero-copy h1 {
  font-size: clamp(2.45rem, 5.8vw, 5.35rem);
  line-height: .92;
  letter-spacing: -.064em;
  max-width: 820px;
}
.biblioteca-book-detail-page .hero-copy .lead {
  max-width: 850px;
  font-size: clamp(1.03rem, 1.35vw, 1.32rem);
  line-height: 1.58;
}
.biblioteca-book-detail-page .hero-copy > p:not(.kicker):not(.lead) {
  max-width: 850px;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.72;
}
.biblioteca-book-detail-page .hero-synopsis-box {
  display: none;
}
.biblioteca-book-detail-page .hero-sample-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(21,20,18,.16);
  background: rgba(255,255,255,.72);
  color: rgba(22,21,19,.78);
  font-size: .74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .10em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(17,16,14,.045);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.biblioteca-book-detail-page .hero-sample-link:hover,
.biblioteca-book-detail-page .hero-sample-link:focus {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(245,116,0,.42);
  color: var(--rp-orange);
}
.biblioteca-book-detail-page .book-status-badges {
  display: none !important;
}
.biblioteca-book-detail-page .book-cover {
  width: min(100%, 178px);
  max-height: 232px;
}
.biblioteca-book-detail-page .book-cover img {
  max-height: 224px;
}
@media (max-width: 900px) {
  .biblioteca-book-detail-page .hero-copy h1 { font-size: clamp(2.2rem, 10.8vw, 3.9rem); }
  .biblioteca-book-detail-page .book-cover { width: min(100%, 162px); max-height: 215px; }
  .biblioteca-book-detail-page .book-cover img { max-height: 206px; }
}
@media (max-width: 640px) {
  .biblioteca-book-detail-page .hero-copy h1 { font-size: clamp(2.05rem, 12vw, 3.3rem); }
  .biblioteca-book-detail-page .hero-sample-link { width: 100%; }
}


/* Ajuste editorial final das páginas individuais da Biblioteca Digital */
.biblioteca-book-detail-page .hero-copy h1 {
  max-width: 780px;
  font-size: clamp(38px, 4.8vw, 70px);
  line-height: .94;
  letter-spacing: -.055em;
}

.biblioteca-book-detail-page .hero-copy .lead {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(22, 21, 19, .88);
  font-size: clamp(1.05rem, 1.22vw, 1.34rem);
  line-height: 1.55;
  font-weight: 700;
}

.biblioteca-book-detail-page .hero-copy .hero-synopsis-extra {
  max-width: 760px;
  color: rgba(22, 21, 19, .68);
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  line-height: 1.65;
}

.biblioteca-book-detail-page .hero-book-actions {
  margin-top: 20px;
}

.biblioteca-book-detail-page .book-acervo-context {
  max-width: 760px;
  margin-top: 16px;
  padding: 15px 18px 16px;
  border: 1px solid rgba(245, 116, 0, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.biblioteca-book-detail-page .book-acervo-context span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid rgba(245, 116, 0, .24);
  border-radius: 999px;
  background: rgba(245, 116, 0, .08);
  color: var(--rp-orange);
  font-family: var(--rp-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.biblioteca-book-detail-page .book-acervo-context p {
  margin: 0;
  color: rgba(22, 21, 19, .64);
  font-size: .94rem;
  line-height: 1.58;
}

.biblioteca-book-detail-page .book-acervo-context p + p {
  margin-top: 5px;
}

.biblioteca-book-detail-page .book-hero-card {
  padding: clamp(16px, 2.2vw, 22px);
  align-self: start;
}

.biblioteca-book-detail-page .book-cover {
  width: min(100%, 188px);
  max-height: 248px;
  margin: 0 auto;
}

.biblioteca-book-detail-page .book-cover img {
  max-height: 244px;
}

.biblioteca-book-detail-page .book-data { display: none !important; }

@media (max-width: 980px) {
  .biblioteca-book-detail-page .hero-copy h1 {
    font-size: clamp(34px, 10vw, 58px);
    line-height: .96;
  }

  .biblioteca-book-detail-page .book-acervo-context {
    max-width: none;
  }

  .biblioteca-book-detail-page .book-cover {
    width: min(100%, 176px);
  }

  .biblioteca-book-detail-page .book-cover img {
    max-height: 232px;
  }
}

@media (max-width: 560px) {
  .biblioteca-book-detail-page .hero-copy h1 {
    font-size: clamp(31px, 12vw, 48px);
  }

  .biblioteca-book-detail-page .hero-copy .lead {
    font-size: 1rem;
  }

  .biblioteca-book-detail-page .book-acervo-context {
    padding: 13px 14px;
  }
}

/* Ajuste fino solicitado — hero dos livros da Biblioteca Digital */
.biblioteca-book-detail-page .hero-copy h1 {
  max-width: 720px;
  font-size: clamp(28px, 2.75vw, 42px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
  margin-bottom: 10px;
}

.biblioteca-book-detail-page .book-hero-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  justify-items: center;
}

.biblioteca-book-detail-page .book-cover {
  width: min(100%, 178px);
  max-height: 236px;
  margin: 0 auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.biblioteca-book-detail-page .book-cover img {
  max-height: 232px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 15px 16px rgba(19, 13, 8, .18)) drop-shadow(0 2px 2px rgba(19, 13, 8, .10));
}

@media (max-width: 980px) {
  .biblioteca-book-detail-page .hero-copy h1 {
    font-size: clamp(27px, 8vw, 38px) !important;
  }
  .biblioteca-book-detail-page .book-cover { width: min(100%, 166px); max-height: 222px; }
  .biblioteca-book-detail-page .book-cover img { max-height: 218px; }
}

@media (max-width: 560px) {
  .biblioteca-book-detail-page .hero-copy h1 {
    font-size: clamp(25px, 9.2vw, 34px) !important;
    line-height: 1.04 !important;
  }
}

/* Refinamento pontual — aproximar título e descrição no hero */
.biblioteca-book-detail-page .hero-copy{
  gap: 8px !important;
}
.biblioteca-book-detail-page .hero-copy h1{
  margin-bottom: 2px !important;
}
.biblioteca-book-detail-page .hero-copy .lead{
  margin-top: 0 !important;
}
.biblioteca-book-detail-page .hero-copy .hero-synopsis-extra{
  margin-top: 0 !important;
}


/* Correção final — elimina traços dos CTAs clipados sob o hero das páginas de livro */
.biblioteca-book-detail-page .home-hero-paper .internal-panel{
  overflow:visible;
}
.biblioteca-book-detail-page .hero-book-actions{
  margin-top:8px !important;
  margin-bottom:2px !important;
  position:relative;
  z-index:4;
}
.biblioteca-book-detail-page .book-acervo-context{
  margin-top:8px !important;
}
.biblioteca-book-detail-page .hero-copy .lead{
  margin-top:6px !important;
}
.biblioteca-book-detail-page .hero-copy .hero-synopsis-extra{
  margin-top:2px !important;
}
@media (max-width:720px){
  .biblioteca-book-detail-page .hero-book-actions{margin-top:10px !important;}
}


/* Ajuste final — hero limpo: acervo e autoria ficam no painel lateral do simulador */
.biblioteca-book-detail-page .hero-book-actions{
  display:none!important;
}
.biblioteca-book-detail-page .home-hero-paper{
  overflow:hidden;
}
.biblioteca-book-detail-page .hero-copy{
  padding-bottom:clamp(12px,2vw,20px);
}


/* Fechamento: hero sem sombra inferior; acervo no painel lateral do simulador */
.biblioteca-book-detail-page .home-hero-paper,
.biblioteca-book-detail-page .home-hero-paper .internal-panel{
  box-shadow:none!important;
}
.biblioteca-book-detail-page .home-hero-paper::before,
.biblioteca-book-detail-page .home-hero-paper::after{
  display:none!important;
}
.biblioteca-book-detail-page .book-reader-extension{
  margin-top:0!important;
}


/* Fechamento final — páginas individuais da Biblioteca Digital */
.biblioteca-book-detail-page .tab-panel.is-active::after{
  display:none!important;
  content:none!important;
  box-shadow:none!important;
}
.biblioteca-book-detail-page .home-hero-paper,
.biblioteca-book-detail-page .home-hero-paper .internal-panel,
.biblioteca-book-detail-page .home-tabs,
.biblioteca-book-detail-page .tab-panel{
  box-shadow:none!important;
}
.biblioteca-book-detail-page .home-hero-paper{
  overflow:visible!important;
}
.biblioteca-book-detail-page .book-reader-extension{
  margin-top:clamp(42px,5.4vw,78px)!important;
}
.biblioteca-book-detail-page .hero-copy{
  padding-bottom:clamp(18px,2.8vw,34px)!important;
}
