/* Physics SciEd - Teacher Footer Harmonization v1.0.1
   Keeps the shared footer compact and at the bottom of teacher pages.
   Presentation only; no Firebase or application logic changes.
*/

/*
  Some teacher pages also load the legacy course-dashboard stylesheet, which
  declares html and body at height: 100%. Restore an auto-sized flex page so
  long tabbed pages cannot leave a large document-colored area after the
  footer.
*/
html:has(body.psc-teacher-footer-standard) {
  height: auto !important;
  min-height: 100% !important;
}

body.psc-teacher-footer-standard {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
}

body.psc-teacher-footer-standard > main {
  flex: 1 0 auto !important;
  min-height: 0;
}

body.psc-teacher-footer-standard #physics-scied-shared-footer {
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: auto !important;
  padding: 14px clamp(18px, 5vw, 84px) !important;
  align-self: stretch;
  flex: 0 0 auto !important;
  color: #102747 !important;
  background: #fffdf6 !important;
  border-top: 1px solid #eadcb0 !important;
  box-shadow: none !important;
}

body.psc-teacher-footer-standard #physics-scied-shared-footer,
body.psc-teacher-footer-standard #physics-scied-shared-footer * {
  -webkit-text-fill-color: currentColor;
}

body.psc-teacher-footer-standard #physics-scied-shared-footer .physics-scied-footer-left,
body.psc-teacher-footer-standard #physics-scied-shared-footer .physics-scied-footer-system {
  color: #102747 !important;
  -webkit-text-fill-color: #102747 !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 700;
}

body.psc-teacher-footer-standard #physics-scied-shared-footer .physics-scied-footer-inner,
body.psc-teacher-footer-standard #physics-scied-shared-footer .footer-inner,
body.psc-teacher-footer-standard #physics-scied-shared-footer > div {
  max-width: 1240px;
  margin-inline: auto;
}

body.psc-teacher-footer-standard #physics-scied-shared-footer a {
  color: #102747 !important;
}

body.psc-teacher-footer-standard #physics-scied-shared-footer a:hover,
body.psc-teacher-footer-standard #physics-scied-shared-footer a:focus-visible {
  color: #8a6500 !important;
}

@media (max-width: 700px) {
  body.psc-teacher-footer-standard #physics-scied-shared-footer {
    padding: 13px 18px !important;
  }

  body.psc-teacher-footer-standard #physics-scied-shared-footer .physics-scied-footer-inner,
  body.psc-teacher-footer-standard #physics-scied-shared-footer .footer-inner,
  body.psc-teacher-footer-standard #physics-scied-shared-footer > div {
    gap: 6px;
    text-align: center;
  }

  body.psc-teacher-footer-standard #physics-scied-shared-footer .physics-scied-footer-left,
  body.psc-teacher-footer-standard #physics-scied-shared-footer .physics-scied-footer-system {
    display: block;
    width: 100%;
    text-align: center !important;
  }
}

@media print {
  body.psc-teacher-footer-standard #physics-scied-shared-footer {
    display: none !important;
  }
}
