.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 {

  #intro {
    position: relative !important;
    display: block !important;
    height: 650px !important;
    min-height: 650px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: white !important;
  }

  #intro .s-intro__content {
    position: absolute !important;
    display: block !important;
    width: 44% !important;
    height: auto !important;
    top: 165px !important;
    left: 5% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #intro .s-intro__content-inner {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #intro .s-intro__content-text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #intro .s-intro__content-pretitle {
    margin: 0 0 0.3rem 0 !important;
  }

  #intro .s-intro__content-title {
    font-size: 30pt !important;
    line-height: 1.08 !important;
    margin: 0 !important;
  }

  #intro .s-intro__content-media {
    position: absolute !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42% !important;
    height: 390px !important;
    top: 115px !important;
    right: 4% !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
  }

  #intro .s-intro__content-media img {
    position: relative !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 390px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  #intro .s-intro__content-btns {
    position: absolute !important;
    display: block !important;
    left: 5% !important;
    bottom: -238px !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  #intro .s-intro__btn-download {
    position: absolute !important;
    display: block !important;
    right: 8% !important;
    bottom: 35px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  #intro .s-intro__content-btns .btn,
  #intro .s-intro__btn-download .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 250px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 2rem !important;
    border: 1px solid #000 !important;
    background: none !important;
    color: #000 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  .s-intro__content-media::before,
  .s-intro__content-media::after {
    background: none !important;
  }

  .s-header__inner,
  .s-intro__content-media,
  .s-intro__content-title,
  .s-intro__content-pretitle,
  .s-intro__content-btns,
  .s-intro__btn-download,
  .s-intro__social,
  .s-intro__scroll-down {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
  }

  .nav-print {
    display: none !important;
  }

  /* 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;
  }

  #preloader { display: none !important; }

  section:not(#intro) {
    margin: 0.6rem 0 !important;
    padding: 0 !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;
  }

  /* last page - white background */

  footer.s-footer {
    background: #fff !important;
    background-color: #fff !important;
    color: #222 !important;
  }

  footer.s-footer::before,
  footer.s-footer::after {
    background: none !important;
  }

  footer.s-footer .section-header,
  footer.s-footer .s-footer__content,
  footer.s-footer .s-footer__bottom {
    background: transparent !important;
  }

  footer.s-footer h2,
  footer.s-footer h3,
  footer.s-footer h4,
  footer.s-footer h5,
  footer.s-footer p {
    color: #222 !important;
  }

  footer.s-footer .text-pretitle,
  footer.s-footer .attention-getter,
  footer.s-footer .s-footer__bottom {
    color: #aaa !important;
  }

  /* contact us button */

  footer.s-footer .btn--primary {
    background: transparent !important;
    color: #aaa !important;
    border: 2px solid #d94720 !important;
  }

  /* purchase the book button */

  footer.s-footer .btn--stroke {
    background: transparent !important;
    color: #aaa !important;
    border: 1px solid #aaa !important;
  }

  /* footer links */

  footer.s-footer a {
    color: inherit !important;
  }

  /* copyright text */

  footer.s-footer .s-footer__bottom,
  footer.s-footer .s-footer__bottom a {
    color: #aaa !important;
  }

}