/* Sitewide MTS footer — brand row, centered copy, legal strip (reference layout) */

#colophon.mts-footer {
  background: #002c52;
  color: #ffffff !important;
  padding: 48px clamp(20px, 4vw, 48px) 32px;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* All footer copy full white — beats theme/HFE */
#colophon.mts-footer,
#colophon.mts-footer p,
#colophon.mts-footer a,
#colophon.mts-footer strong,
#colophon.mts-footer span {
  color: #ffffff !important;
}

#colophon.mts-footer a:hover,
#colophon.mts-footer a:focus {
  color: #ffffff !important;
}

#colophon.mts-footer *,
#colophon.mts-footer *::before,
#colophon.mts-footer *::after {
  box-sizing: border-box;
}

.mts-footer-content {
  max-width: min(1200px, 94vw);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#colophon.mts-footer .mts-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  width: 100%;
  min-height: 0;
  padding-bottom: 24px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#colophon.mts-footer .mts-footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

#colophon.mts-footer .mts-footer-brand img {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.mts-footer-brand img {
  height: 42px;
  width: auto;
  display: block;
}

#colophon.mts-footer .mts-footer-company {
  margin: 20px auto 14px;
  padding: 0 6px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 400;
  color: #ffffff !important;
  text-align: center;
  max-width: min(42em, 100%);
  box-sizing: border-box;
}

.mts-footer-tagline {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #ffffff !important;
  margin: 0 auto 24px;
  max-width: 40em;
}

.mts-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  align-items: center;
  font-size: 0.8125rem;
  color: #ffffff !important;
  margin-bottom: 28px;
}

.mts-footer-meta a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mts-footer-meta a:hover,
.mts-footer-meta a:focus {
  color: #ffffff !important;
  text-decoration-thickness: 2px;
}

.mts-footer-copy {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  #colophon.mts-footer .mts-footer-bar {
    align-items: flex-start;
  }
}

/* Projects (222): same footer flex stretch / bar width as Contact (227) */
body.page-id-222 #colophon.mts-footer {
  align-items: stretch !important;
}
body.page-id-222 #colophon.mts-footer .mts-footer-content {
  width: 100% !important;
  align-self: stretch !important;
  box-sizing: border-box;
}
body.page-id-222 #colophon.mts-footer .mts-footer-bar {
  justify-content: flex-start !important;
  width: 100% !important;
}

/* --- Viewport-tall footer (fixed masthead): navy block fills below toolbar when scrolled to end --- */
body.ehf-footer #page.hfeed.site {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--mts-masthead-h, 56px);
}

body.ehf-footer #page.hfeed.site > *:not(#colophon) {
  flex: 0 0 auto;
}

body.ehf-footer #page.hfeed.site > #colophon.mts-footer {
  margin-block-start: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-end;
  box-sizing: border-box;
  min-height: calc(100vh - var(--mts-masthead-h, 56px));
  min-height: calc(100dvh - var(--mts-masthead-h, 56px));
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 10vw, 120px);
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

body.ehf-footer #page.hfeed.site > #colophon.mts-footer .mts-footer-content {
  width: 100% !important;
  max-width: min(1200px, 94vw);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  align-self: stretch !important;
  box-sizing: border-box;
}
