/* Biblioteca da Turma — acabamento institucional v7 */
:root {
  --bdt-footer: #062f63;
  --bdt-footer-deep: #042550;
  --bdt-footer-line: rgba(255, 255, 255, .18);
  --bdt-footer-muted: #c6d7ea;
  --bdt-footer-white: #ffffff;
  --bdt-accent: #62b6e8;
}

/* Redes sociais no cabeçalho das páginas institucionais */
.header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}
.header-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(11, 71, 123, .18);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--navy, #0b477b);
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.header-social a:hover {
  transform: translateY(-2px);
  border-color: var(--blue, #3a82b2);
  color: var(--blue, #3a82b2);
}
.header-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

/* Rodapé institucional único */
footer.bdt-footer {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(135deg, var(--bdt-footer-deep), var(--bdt-footer)) !important;
  color: var(--bdt-footer-white) !important;
  border: 0 !important;
}
.bdt-footer * { box-sizing: border-box; }
.bdt-footer__inner {
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  padding: 4rem 0 2.2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 4.8rem);
  align-items: start;
}
.bdt-footer__brand {
  display: grid;
  gap: 1.35rem;
  align-content: start;
}
.bdt-footer__logo {
  width: min(100%, 250px);
  min-height: 118px;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .13);
}
.bdt-footer__logo img {
  width: 100%;
  max-width: 218px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
}
.bdt-footer__social {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.bdt-footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  transition: background .18s ease, transform .18s ease;
}
.bdt-footer__social a:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}
.bdt-footer__social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}
.bdt-footer__column {
  display: grid !important;
  align-content: start;
  justify-content: stretch !important;
  gap: .7rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: inherit !important;
}
.bdt-footer__column h2 {
  margin: 0 0 .75rem !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
.bdt-footer__column a,
.bdt-footer__column span,
.bdt-footer__column p,
.bdt-footer__column strong {
  color: var(--bdt-footer-muted) !important;
  font-size: .91rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.bdt-footer__column a {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  text-decoration: none !important;
}
.bdt-footer__column a:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.bdt-footer__column strong {
  color: #fff !important;
  font-weight: 750 !important;
}
.bdt-footer__contact {
  gap: .85rem !important;
}
.bdt-footer__button {
  min-height: 40px !important;
  padding: .65rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}
.bdt-footer__button:hover {
  background: rgba(255, 255, 255, .12) !important;
  text-decoration: none !important;
}
.bdt-footer__bottom {
  width: min(100% - 3rem, 1380px);
  margin: 0 auto;
  padding: 1.45rem 0 1.7rem;
  border-top: 1px solid var(--bdt-footer-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.bdt-footer__bottom small {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--bdt-footer-muted) !important;
  font-size: .79rem !important;
  line-height: 1.45 !important;
}

/* Página limpa do flipbook */
.reader-v7 {
  min-height: 100vh;
  background: #edf3f7;
  display: flex;
  flex-direction: column;
}
.reader-v7__header {
  width: 100%;
  min-height: 112px;
  padding: 12px 6vw;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(7, 52, 94, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.reader-v7__brand {
  width: 230px;
  min-height: 88px;
  display: flex;
  align-items: center;
}
.reader-v7__brand img {
  width: 100%;
  max-height: 94px;
  object-fit: contain;
}
.reader-v7__cta {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 6px;
  background: #0b477b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: .83rem;
  font-weight: 800;
}
.reader-v7__cta:hover { background: #3a82b2; }
.reader-v7__title {
  padding: 2.35rem 1.5rem 1.8rem;
  text-align: center;
  background: linear-gradient(135deg, #eef5f9 0%, #fff 56%, #e7f0f5 100%);
}
.reader-v7__title h1 {
  margin: 0;
  color: #07345e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 400;
}
.reader-v7__stage {
  flex: 1;
  padding: 1.5rem 5vw 4.5rem;
}
.flip-v7 {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 1rem 1rem 1.35rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b4e86 0%, #07345e 100%);
  box-shadow: 0 26px 56px rgba(7, 52, 94, .22);
}
.flip-v7__toolbar {
  min-height: 58px;
  padding: 0 .15rem .9rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: .75rem;
}
.flip-v7__toolbar button,
.flip-v7__toolbar a {
  appearance: none;
  min-height: 40px;
  padding: 0 .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.flip-v7__toolbar button:hover:not(:disabled),
.flip-v7__toolbar a:hover { background: rgba(255, 255, 255, .2); }
.flip-v7__toolbar button:disabled { opacity: .42; cursor: default; }
.flip-v7__status {
  min-width: 0;
  padding: .65rem .85rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: #e7f3fb;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: center;
  font-size: .79rem;
  font-weight: 700;
}
.flip-v7__status input { width: 100%; accent-color: #77c6f2; }
.flip-v7__viewport {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
  padding: .6rem 3.4rem 1rem;
}
.flip-v7__book {
  width: min(100%, 1060px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  perspective: 1600px;
  transition: transform .36s ease;
}
.flip-v7__book.is-next { transform: translateX(-4px) rotateY(-3deg); }
.flip-v7__book.is-prev { transform: translateX(4px) rotateY(3deg); }
.flip-v7__page {
  min-height: 650px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .24);
  display: grid;
  place-items: center;
}
.flip-v7__page:first-child {
  border-radius: 16px 0 0 16px;
  border-right: 1px solid #e1e6eb;
  transform-origin: right center;
}
.flip-v7__page:last-child {
  border-radius: 0 16px 16px 0;
  border-left: 1px solid #f0f2f4;
  transform-origin: left center;
}
.flip-v7__page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.flip-v7__page.is-empty {
  background: linear-gradient(135deg, #f8fafc, #eaf1f6);
}
.flip-v7__single { display: none; }
.flip-v7__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .14) !important;
  z-index: 3;
}
.flip-v7__arrow svg { width: 20px; }
.flip-v7__arrow--prev { left: .4rem; }
.flip-v7__arrow--next { right: .4rem; }

@media (max-width: 1120px) {
  .bdt-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header { grid-template-columns: minmax(180px, 220px) 1fr auto; }
  .header-social { display: none; }
}
@media (max-width: 900px) {
  .reader-v7__header { min-height: 96px; padding: 8px 1.2rem; }
  .reader-v7__brand { width: 190px; min-height: 76px; }
  .reader-v7__title { padding: 1.8rem 1.2rem 1.45rem; }
  .reader-v7__stage { padding: 1rem 1.2rem 3.5rem; }
  .flip-v7 { padding: .85rem; }
  .flip-v7__toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flip-v7__status { grid-column: 1 / -1; grid-row: 1; }
  .flip-v7__toolbar .flip-v7__desktop-control { display: none; }
  .flip-v7__viewport { min-height: 600px; padding: .5rem 2.7rem 1rem; }
  .flip-v7__book { display: none; }
  .flip-v7__single {
    width: min(100%, 520px);
    min-height: 560px;
    display: grid;
  }
  .flip-v7__single .flip-v7__page {
    min-height: 560px;
    border-radius: 16px;
    border: 0;
  }
}
@media (max-width: 680px) {
  .bdt-footer__inner {
    width: min(100% - 2.2rem, 1380px);
    padding: 3rem 0 1.8rem;
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .bdt-footer__bottom {
    width: min(100% - 2.2rem, 1380px);
    align-items: flex-start;
  }
  .bdt-footer__logo { width: 220px; min-height: 106px; }
  .reader-v7__cta { min-height: 40px; padding: 0 .85rem; font-size: .76rem; }
  .flip-v7__status { grid-template-columns: 1fr; text-align: center; }
  .flip-v7__viewport { min-height: 500px; padding-left: 2.4rem; padding-right: 2.4rem; }
  .flip-v7__single { min-height: 460px; }
  .flip-v7__single .flip-v7__page { min-height: 460px; }
  .flip-v7__arrow { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-v7__book,
  .header-social a,
  .bdt-footer__social a { transition: none !important; }
}

/* v9 — rodapé idêntico em todas as páginas */
.bdt-footer__tagline {
  max-width: 245px;
  margin: 0 !important;
  color: var(--bdt-footer-muted) !important;
  font-size: .88rem !important;
  line-height: 1.55 !important;
}
footer.bdt-footer .bdt-footer__inner,
.reader-v7 footer.bdt-footer .bdt-footer__inner,
.proposal-page footer.bdt-footer .bdt-footer__inner,
body > main > footer.bdt-footer .bdt-footer__inner {
  grid-template-columns: minmax(210px, 1.05fr) minmax(170px, .85fr) minmax(220px, 1fr) minmax(280px, 1.25fr) !important;
  align-items: start !important;
}
footer.bdt-footer .bdt-footer__logo {
  width: 230px !important;
  min-height: 108px !important;
  padding: .85rem 1rem !important;
}
footer.bdt-footer .bdt-footer__column {
  min-width: 0 !important;
}
footer.bdt-footer .bdt-footer__contact a,
footer.bdt-footer .bdt-footer__contact span,
footer.bdt-footer .bdt-footer__contact strong {
  overflow-wrap: anywhere !important;
}
@media (max-width: 1050px) {
  footer.bdt-footer .bdt-footer__inner,
  .reader-v7 footer.bdt-footer .bdt-footer__inner,
  .proposal-page footer.bdt-footer .bdt-footer__inner,
  body > main > footer.bdt-footer .bdt-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 650px) {
  footer.bdt-footer .bdt-footer__inner,
  .reader-v7 footer.bdt-footer .bdt-footer__inner,
  .proposal-page footer.bdt-footer .bdt-footer__inner,
  body > main > footer.bdt-footer .bdt-footer__inner {
    grid-template-columns: 1fr !important;
  }
  footer.bdt-footer .bdt-footer__logo { width: 210px !important; }
}


/* v10 — capa isolada no lado direito */
.flip-v7__book.is-cover .flip-v7__page:first-child{visibility:hidden;background:transparent!important;border:0!important;box-shadow:none!important}
.flip-v7__book.is-cover .flip-v7__page:last-child{border-radius:16px;border-left:0;box-shadow:0 20px 45px rgba(0,0,0,.24)}
@media(max-width:900px){.flip-v7__book.is-cover .flip-v7__page:first-child{visibility:visible}}
