body[data-area="atividades"] .sm-imprimir-cabeca { margin: 20px 0 14px; }
body[data-area="atividades"] .sm-imprimir-cabeca h1 { margin-bottom: .12em; }
body[data-area="atividades"] .sm-imprimir-cabeca p { margin: 0; }

.sm-pdf-library { padding-bottom: 54px; }
.sm-pdf-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sm-pdf-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px;
  padding: 5px 12px; border: 1px solid #e0d7ca; border-radius: 999px;
  background: white; font-size: .9rem; font-weight: 800; text-decoration: none;
}
.sm-pdf-nav span { padding: 0 5px; color: #4a2c1e; background: #f3e9fa; border-radius: 9px; }
.sm-pdf-shelf { scroll-margin-top: 95px; margin: 0 0 30px; }
.sm-pdf-shelf h2 { margin-bottom: 10px; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.sm-pdf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sm-pdf-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #e9e1d5; border-radius: 16px; background: white;
  box-shadow: 0 3px 0 #4a2c1e0b;
}
.sm-pdf-thumb {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: clamp(142px, 16vw, 205px);
  padding: 9px; background: #e3f4ff; text-decoration: none;
}
#atividades-para-imprimir .sm-pdf-thumb { background: #ede4fa; }
.sm-pdf-thumb img {
  width: auto; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain;
  background: white; box-shadow: 0 1px 5px #4a2c1e24;
}
.sm-pdf-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 9px; }
.sm-pdf-card h3 { margin: 0; font-size: clamp(.95rem, 1.55vw, 1.12rem); overflow-wrap: anywhere; }
.sm-pdf-card p { margin: 0; color: var(--tinta-suave, #7b5b4b); font-size: .82rem; line-height: 1.25; }
.sm-pdf-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 4px; }
.sm-pdf-action {
  display: inline-flex; flex: 1 1 auto; justify-content: center; align-items: center; min-height: 44px;
  padding: 3px 6px; border: 1px solid #e6dacb; border-radius: 8px; background: white;
  color: #4a2c1e; font: inherit; font-size: .8rem; font-weight: 800; text-decoration: none; cursor: pointer;
}
.sm-pdf-print { background: #e7efc5; border-color: #d1dd9e; }
.sm-pdf-action:hover, .sm-pdf-nav a:hover { border-color: #7b5b4b; }
.sm-pdf-library :focus-visible { outline: 3px solid #6b57ae; outline-offset: -3px; }
.sm-pdf-message { position: sticky; top: 82px; z-index: 1; padding: 9px 12px; background: #fff1cb; border-radius: 8px; }
@media (max-width: 960px) { .sm-pdf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 740px) { .sm-pdf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  body[data-area="atividades"] .sm-imprimir-cabeca { margin-top: 12px; }
  .sm-pdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sm-pdf-shelf { margin-bottom: 24px; }
  .sm-pdf-card { border-radius: 12px; }
  .sm-pdf-thumb { height: clamp(136px, 42vw, 180px); padding: 7px; }
  .sm-pdf-card-body { padding: 7px; }
}

#para-colorir .sm-pdf-action,
.sm-pdf-nav a[href="#para-colorir"] { background: #e3f4ff; border-color: #c2deef; }
