/* Shared footer: school identity, compact link tiles and contact details. */
footer.site-footer {
  --footer-line: rgba(255, 255, 255, .24);
  color: #fff;
  width: 100%;
  margin: 0;
}
footer.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 40px;
  width: min(1200px, 100%);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px 28px 22px 16px;
}
footer.site-footer .footer-brand {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 14px;
  min-width: 0;
  padding-top: 2px;
}
footer.site-footer .badge-circle {
  flex: 0 0 120px;
  width: 120px;
  height: 138px;
}
footer.site-footer .badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
footer.site-footer .footer-brand p {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}
footer.site-footer .footer-links,
footer.site-footer .footer-contact { min-width: 0; }
footer.site-footer h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--footer-line);
  font-size: 1.05rem;
  line-height: 1.4;
}
footer.site-footer .footer-links h2 { text-align: center; }
footer.site-footer .footer-contact { text-align: right; justify-self: end; width: min(100%, 300px); }
footer.site-footer .footer-contact h2 { text-align: right; }
footer.site-footer .quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.site-footer .quick-links a {
  display: flex;
  align-items: center;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s ease, border-color .2s ease;
}
footer.site-footer .quick-links a:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
}
footer.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
footer.site-footer .footer-socials {
  --icon: 40px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}
footer.site-footer .footer-contact address {
  margin: 0;
  font-size: .875rem;
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
footer.site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 28px;
  padding: 18px 28px;
  border-top: 1px solid var(--footer-line);
}
footer.site-footer .footer-bottom p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
footer.site-footer .footer-bottom .designer-credit { grid-column: 2; text-align: center; }
footer.site-footer .footer-bottom .last-updated { grid-column: 3; text-align: right; }
@media (max-width: 1050px) {
  footer.site-footer .footer-bottom { grid-template-columns: 1fr; }
  footer.site-footer .footer-bottom .designer-credit,
  footer.site-footer .footer-bottom .last-updated { grid-column: 1; }
  footer.site-footer .footer-bottom .last-updated { justify-self: end; }
}
/* Wide screens: use the outer space without shifting the middle links. */
@media (min-width: 1320px) {
  footer.site-footer .footer-brand { margin-left: -48px; }
  footer.site-footer .footer-contact { margin-right: -48px; }
}
/* Tablets keep the three-column desktop arrangement. */
@media (min-width: 768px) and (max-width: 1050px) {
  footer.site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) !important;
    gap: 20px;
    padding-inline: 20px;
  }
  footer.site-footer .footer-brand { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  footer.site-footer .badge-circle { flex-basis: auto; width: 104px; height: 120px; }
  footer.site-footer .footer-brand p { font-size: 1.0625rem; }
  footer.site-footer .quick-links { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
/* Phones: compact, centered content with no fixed height or clipping. */
@media (max-width: 767px) {
  footer.site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    padding: 20px 16px 18px;
    text-align: center;
  }
  footer.site-footer .footer-brand {
    justify-content: center;
    justify-self: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  footer.site-footer .badge-circle { flex-basis: 86px; width: 86px; height: 100px; }
  footer.site-footer .footer-brand p { font-size: 1.0625rem; line-height: 1.4; }
  footer.site-footer .footer-links,
  footer.site-footer .footer-contact { width: 100%; max-width: 420px; justify-self: center; text-align: center; }
  footer.site-footer h2 { margin-bottom: 10px; padding-bottom: 6px; }
  footer.site-footer .footer-contact h2 { text-align: center; }
  footer.site-footer .quick-links { gap: 6px; }
  footer.site-footer .quick-links a { justify-content: center; min-height: 44px; padding: 6px 8px; }
  footer.site-footer .footer-socials { justify-content: center; margin-bottom: 8px; }
  footer.site-footer .footer-contact address { line-height: 1.5; text-align: center; }
  footer.site-footer .footer-bottom { gap: 4px; padding: 12px 16px; }
  footer.site-footer .footer-bottom .designer-credit,
  footer.site-footer .footer-bottom .last-updated { grid-column: 1; justify-self: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  footer.site-footer .quick-links a { transition: none; }
}
