/*
 * Content must be visible without JavaScript, and without motion for people
 * who ask their device for less motion. The design hides some content and
 * lets the site script fade it in (GSAP). The class "no-js" on <html> is
 * removed by a tiny script in <head> as soon as JavaScript runs, so these
 * rules only apply when it does not.
 */
html.no-js .c-fiContents,
html.no-js .t-homeLeadMessage,
html.no-js .t-homeLeadMessage *,
html.no-js .t-fvHistory__main__heading,
html.no-js .t-fvHistory__main__text,
html.no-js .t-homeFutureWrap__list li {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  .c-fiContents,
  .t-homeLeadMessage,
  .t-homeLeadMessage *,
  .t-fvHistory__main__heading,
  .t-fvHistory__main__text,
  .t-homeFutureWrap__list li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* "Learn more" boxes: without JavaScript the text is simply shown open. */
html.no-js .c-detailExpand {
  display: block !important;
}
html.no-js .c-detailSwitch {
  display: none !important;
}

/* School tour popup: without JavaScript it opens when the address ends in
   #school-tour (the "School Tour" links). The close link lies on top of the
   close button (the "x") and removes #school-tour from the address. */
html.no-js .t-homePopup:target {
  opacity: 1;
  visibility: visible;
}
.t-homePopup__nojsClose {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  z-index: 1;
}
@media screen and (min-width: 769px) {
  .t-homePopup__nojsClose {
    top: -60px;
    right: -68px;
    width: 55px;
    height: 55px;
  }
}

/* Footer picture: the script picks one at random and fades it in. Without
   JavaScript the first picture (already in the page) is shown. */
html.no-js .l-footerBottom__images__wrap,
html.no-js .l-footerBottom__images__overlay {
  opacity: 1 !important;
}
