/* Biblioteca da Turma — páginas de materiais v20 */
.reader-v7__header {
  display: grid !important;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(.8rem, 1.8vw, 2rem) !important;
  min-height: 112px !important;
  padding: 10px 5vw !important;
}
.reader-v7__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.65rem, 1.25vw, 1.35rem);
  min-width: 0;
  white-space: nowrap;
}
.reader-v7__nav a {
  color: #38546d;
  font-size: clamp(.7rem, .76vw, .82rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color .18s ease;
}
.reader-v7__nav a:hover,
.reader-v7__nav a:focus-visible {
  color: #3a82b2;
}
.reader-v7__actions { justify-self: end; }
.reader-v7__mobile-menu {
  display: none;
  position: relative;
  justify-self: end;
}
.reader-v7__mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(11,71,123,.24);
  border-radius: 999px;
  color: #0b477b;
  background: #fff;
  padding: .68rem .9rem;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}
.reader-v7__mobile-menu summary::-webkit-details-marker { display: none; }
.reader-v7__mobile-menu nav {
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 240px;
  padding: .65rem;
  border: 1px solid rgba(11,71,123,.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7,52,94,.18);
}
.reader-v7__mobile-menu nav a {
  color: #17334e;
  padding: .72rem .8rem;
  border-bottom: 1px solid rgba(11,71,123,.09);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.reader-v7__mobile-menu nav a:last-child { border-bottom: 0; }

/* Remover selo e numeração decorativa nos blocos de texto */
.seo-kicker {
  display: none !important;
}
.seo-material-grid p::before {
  display: none !important;
  content: none !important;
  margin: 0 !important;
}

/* Compactar títulos e flipbook nas páginas de materiais */
.reader-v7__title {
  padding: 1.8rem 1.25rem 1.35rem !important;
}
.reader-v7__title h1 {
  font-size: clamp(2rem, 3.55vw, 3.55rem) !important;
  line-height: .98 !important;
}
.reader-v7__stage {
  padding: 1rem 4vw 3rem !important;
}
.flip-v7 {
  width: min(100%, 1240px) !important;
  padding: .95rem .95rem 1.15rem !important;
}
.flip-v7__viewport {
  min-height: 580px !important;
  padding: .45rem 2.8rem .85rem !important;
}
.flip-v7__book {
  width: min(100%, 920px) !important;
}
.flip-v7__page {
  min-height: 545px !important;
}
.flip-v7__single .flip-v7__page {
  min-height: 540px;
}

.seo-material-section {
  padding: clamp(2.5rem, 4.6vw, 4rem) clamp(1.1rem, 5vw, 4.25rem) !important;
}
.seo-material-section__inner {
  width: min(100%, 1060px) !important;
  padding: clamp(1.55rem, 3.2vw, 2.6rem) !important;
}
.seo-material-section__inner::after {
  width: 70px !important;
}
.seo-material-section h2 {
  max-width: 760px !important;
  font-size: clamp(1.95rem, 3.2vw, 3.25rem) !important;
  line-height: 1.04 !important;
}
.seo-material-grid {
  margin-top: 1.65rem !important;
  gap: .85rem !important;
}
.seo-material-grid p {
  padding: 1.35rem 1.45rem 1.3rem !important;
  font-size: clamp(.94rem, 1.05vw, 1rem) !important;
  line-height: 1.7 !important;
}
.seo-material-actions {
  margin-top: 1.35rem !important;
  padding-top: 1.2rem !important;
}

@media (max-width: 1220px) {
  .reader-v7__header {
    grid-template-columns: minmax(180px, 215px) 1fr auto !important;
  }
  .reader-v7__nav { display: none; }
  .reader-v7__mobile-menu { display: block; }
}
@media (max-width: 900px) {
  .flip-v7__viewport {
    min-height: 520px !important;
  }
  .flip-v7__single .flip-v7__page {
    min-height: 500px !important;
  }
}
@media (max-width: 760px) {
  .reader-v7__header {
    grid-template-columns: minmax(150px, 190px) auto auto !important;
    gap: .55rem !important;
    padding: 8px 1rem !important;
  }
  .reader-v7__brand { width: 180px !important; }
  .reader-v7__mobile-menu summary {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    text-indent: -9999px;
  }
  .reader-v7__mobile-menu summary::after {
    content: "☰";
    text-indent: 0;
    font-size: 1.1rem;
  }
  .reader-v7__title {
    padding: 1.35rem 1rem 1.05rem !important;
  }
  .reader-v7__title h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.55rem) !important;
  }
  .reader-v7__stage {
    padding: .85rem 1rem 2.25rem !important;
  }
  .flip-v7 {
    padding: .75rem .75rem .95rem !important;
    border-radius: 16px !important;
  }
  .flip-v7__viewport {
    min-height: 470px !important;
    padding-left: 2.25rem !important;
    padding-right: 2.25rem !important;
  }
  .flip-v7__single .flip-v7__page {
    min-height: 430px !important;
  }
  .seo-material-section {
    padding: 2rem 1rem 2.4rem !important;
  }
  .seo-material-section__inner {
    padding: 1.3rem 1.1rem 1.25rem !important;
    border-radius: 18px !important;
  }
  .seo-material-section h2 {
    font-size: clamp(1.7rem, 9.2vw, 2.35rem) !important;
  }
  .seo-material-grid {
    grid-template-columns: 1fr !important;
  }
  .seo-material-grid p {
    padding: 1.1rem 1rem !important;
  }
}
@media (max-width: 560px) {
  .reader-v7__header {
    grid-template-columns: 1fr auto auto !important;
  }
  .reader-v7__brand { width: 165px !important; }
}
