.about-author.print-only { display: none; }

.screen-only { display: block; }
.print-only  { display: none; }

.ss-go-top {
  text-align: center;
  margin-top: 2rem;
}

.ss-go-top a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.ss-go-top .go-top-label {
  display: block !important;
  font-size: 14px;
  color: white !important;
  margin-left: 180px;
  z-index: 9999;
  position: relative;
  white-space: nowrap;
}

.ss-go-top svg {
  fill: white;
  transform: translateY(-17px);
}

.green-box {
  background-color: #daffcd;
  padding: 20px;
  border-radius: 0;
  border: 1px solid #80cf00;
  margin-bottom: 1rem;
  box-shadow: none;
}

.tm-sup {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
  }

@media print {

  /*  visibility  */
  .screen-only { display: none !important; }
  .print-only  { display: block !important; }

  /* font size */
  body {
    font-size: 14pt;
    line-height: 1.4;
    background: none !important;
    color: #000 !important;
  }

  h2 { font-size: 16pt; margin: 0.3rem 0 !important; }
  h3 { font-size: 13pt; margin: 0.2rem 0 !important; }

  p, li { margin: 0.25rem 0 !important; }

  #intro,
  .s-header,
  #page {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
  }

  #preloader { display: none !important; }

  section:not(#intro) {
    margin: 0.6rem 0 !important;
    padding: 0 !important;
  }

  /* buttons at beginning */

  #intro .s-intro__content-btns,
  #intro .s-intro__btn-download {
    position: relative !important;
    display: block !important;
    transform: none !important;
  }

  #intro .s-intro__content-btns {
    top: 1.25rem !important;
  }

  #intro .s-intro__btn-download {
    top: -14rem !important;
  }

  #intro .s-intro__content-btns a,
  #intro .s-intro__btn-download a {
    color: #000 !important;
    background: none !important;
    border: 1px solid #000 !important;
    text-decoration: none !important;
  }

  /* distribution fitter section */

  #about {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  #about .section-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* section headers */
  .section-header {
    page-break-inside: avoid !important;
    margin-bottom: 0.6rem !important;
  }

  .section-header h2 {
    font-size: 30pt !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .section-header h2 img {
    width: 90px !important;
    height: auto !important;
    vertical-align: middle !important;
    margin-right: 0.4rem !important;
  }

  /* page breaks */

  .print-page-break,
  .print-page-break-2 {
    page-break-before: always !important;
    break-before: page !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
  }

  /* user instructions section */

  .subscription-box {
    padding: 1.1rem !important;
  }

  .subscription-box h3 {
    margin-top: 0.6rem !important;
    margin-bottom: 0.3rem !important;
  }

  .subscription-box h4 {
    margin-top: 0.4rem !important;
    margin-bottom: 0.25rem !important;
  }

  .subscription-box p {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.35 !important; /* default ~1.5 */
  }

  .subscription-box th,
  .subscription-box td {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  /* using dfit section */

  .green-box {
    padding: 1.1rem !important;
  }

  .green-box h3 {
    margin-top: 0.6rem !important;
    margin-bottom: 0.35rem !important;
  }

  .green-box p {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.35 !important;
  }

  .green-box table {
    margin-top: 0.3rem !important;
    margin-bottom: 0.3rem !important;
  }

  .green-box td,
  .green-box th {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    line-height: 1.3 !important;
  }

  /* about author section */

  .about-author.print-only  { display: block !important; }
  .about-author.screen-only { display: none !important; }

  /* book contents */

  #works {
    font-size: 0.90em;
  }

  #works h3 {
    font-size: 12pt !important;
    margin-bottom: 0.2rem !important;
  }

  #works p {
    line-height: 1.35 !important;
    margin-bottom: 0.2rem !important;
  }

  #works ul,
  #works li {
    line-height: 1.35 !important;
  }

  /* chapter headings */

  #works .chapter-headings {
    font-size: 0.8em !important;
  }

  #works .chapter-headings p {
    line-height: 1.3 !important;
  }

  #works .chapter-headings h3 {
    font-size: 12pt !important;
    margin-bottom: 0.3rem !important;
  }

  /* move buttons up */
  #works .s-footer__buttons {
    page-break-before: avoid !important;
    break-before: avoid !important;
    margin-top: 0.8rem !important;
  }

  #works {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* footer section */

  footer.s-footer { margin-top: -12rem !important; }

  footer.s-footer span[style*="font-size"] {
    font-size: 0.5em !important;
    vertical-align: 0.5em !important;
  }

  footer.s-footer p,
  footer.s-footer h2,
  footer.s-footer h5 {
    margin: 0.15rem 0 !important;
    line-height: 1.2 !important;
  }

  footer.s-footer h2.text-display-title {
    font-size: 17pt !important;
  }

  footer.s-footer h5 {
    font-size: 11.5pt !important;
    font-weight: 600 !important;
  }

  .contact-us-lower-button {
    margin-top: -4rem !important;
  }

  /* contact section */

  footer.s-footer {
    margin-top: -2.5rem !important;
  }

  footer.s-footer .section-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  footer.s-footer .s-footer__content {
    margin-top: 0.6rem !important;
  }


  /* buttons on last page */

  .s-footer__buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  .s-footer__buttons > .column {
    flex: 1 1 48% !important;
    max-width: 48% !important;
    margin: 0 !important;
  }

  .s-footer__buttons .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.45rem 0.6rem !important;
    font-size: 11pt !important;
  }

  footer .s-footer__buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.2rem !important;
    margin-top: 0 !important;
  }

  footer .s-footer__buttons > .column {
    flex: 1 1 48% !important;
    max-width: 48% !important;
    margin: 0 !important;
  }

  footer .s-footer__buttons .btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.45rem 0.6rem !important;
    font-size: 11pt !important;
  }


}
