.academy-page {
  --pt-ink: #24334a;
  --pt-muted: #57667c;
  --pt-blue: #3f568d;
  --pt-line: #dde2ee;
}

.academy-page .pt-hero {
  background: linear-gradient(115deg, #293752, #424f7c 65%, #3c6c78);
}

.academy-page .pt-help,
.academy-page .pt-guide p,
.academy-page .pt-guide li {
  color: #52627a;
}

.academy-printable {
  margin-top: 20px;
  overflow-wrap: anywhere;
}

.academy-printable img {
  max-width: 100%;
  height: auto;
}

.academy-printable p {
  white-space: pre-wrap;
}

.academy-printable table th,
.academy-printable table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media print {
  @page { size: A4; margin: 14mm; }

  body.academy-printing {
    background: white !important;
    color: black;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.academy-printing > :not([data-academy-print-parent]):not(.academy-printable),
  body.academy-printing [data-academy-print-parent] > :not([data-academy-print-parent]):not(.academy-printable) {
    display: none !important;
  }

  body.academy-printing [data-academy-print-parent] {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }

  body.academy-printing .academy-printable {
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    background: white !important;
    color: black !important;
    font-size: 10pt;
    line-height: 1.55;
  }

  .academy-printable .academy-no-print,
  .academy-printable button {
    display: none !important;
  }

  .academy-printable h1 { font-size: 19pt; }
  .academy-printable h2 { font-size: 14pt; }
  .academy-printable h3 { font-size: 11pt; }
  .academy-printable h1,
  .academy-printable h2,
  .academy-printable h3 {
    break-after: avoid;
    color: black !important;
  }
  .academy-printable thead { display: table-header-group; }
  .academy-printable tr { break-inside: avoid; }
  .academy-printable th,
  .academy-printable td {
    padding: 5pt;
    border-color: #aaa;
    font-size: 9pt;
  }
  .academy-printable img { max-height: 190mm; object-fit: contain; }
  .academy-printable .pt-table-wrap { overflow: visible; border: 0; }
  .academy-answer-key { break-before: page; }
}
