/* Shared homepage header and footer. Loaded after page-specific styles. */

body { margin: 0; }

/* Isolate the shared layout from the site's older page templates. */
:is(#site-header, #site-footer),
:is(#site-header, #site-footer) :where(*) {
  all: revert;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
:is(#site-header, #site-footer) :where(*)::before,
:is(#site-header, #site-footer) :where(*)::after {
  content: none;
}
#site-header, #site-footer {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
#site-header .container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
#site-header img, #site-footer img {
  height: auto;
}

#site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: #ffffff;
      box-shadow: none;
      border-bottom: 3px solid #eea724;
    }
#site-header .header-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 15px 0 4px;
    }
#site-header .logo {
      width: 315px;
      max-width: calc(100% - 40px);
      display: block;
      margin: 0 auto;
      /* Offset the logo slightly left of center. */
      translate: calc(-1% - 40px) 0;
      transition: transform 0.3s ease;
    }
#site-header .logo:hover { transform: scale(1.02); }
#site-header .header-content nav {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px clamp(28px, 4.5vw, 64px);
  margin-top: 10px;
  background: transparent;
}
#site-header .header-content nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 4px;
  color: #5f8598;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
#site-header .header-content nav a:hover,
#site-header .header-content nav a.active {
  color: #4a6c7c;
  border-bottom-color: #eea724;
  transform: translateY(-2px);
}
#site-header .header-content nav a:focus-visible {
  outline: 2px solid #4a6c7c;
  outline-offset: 4px;
  border-radius: 3px;
}

#site-footer {
      isolation: isolate;
      background: #4a6c7c;
      color: white;
      padding: 26px 20px 14px;
      margin-top: 0;
      border-top: 4px solid #eea724;
    }
#site-footer a {
      color: #ffffff;
      font-weight: 800;
      text-decoration: none;
    }
#site-footer a:hover {
      color: #fff7d1;
    }
#site-footer .footer-inner {
      max-width: 1180px;
      margin: 0 auto;
    }
#site-footer .footer-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.8fr 1fr;
      gap: 22px;
      align-items: start;
      text-align: left;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255,255,255,0.22);
    }
#site-footer .footer-logo {
      width: 165px;
      max-width: 100%;
      display: block;
      filter: saturate(1.16) contrast(1.08) brightness(1.04);
    }
#site-footer .footer-logo-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 0;
      margin-bottom: 10px;
    }
#site-footer .footer-col p,
#site-footer .footer-col li {
      color: rgba(255,255,255,0.92);
      line-height: 1.55;
      font-size: 0.98rem;
    }
#site-footer .footer-brand p {
      color: rgba(255,255,255,0.92);
      line-height: 1.55;
      font-size: 0.98rem;
      max-width: 28ch;
    }
#site-footer .footer-col h4 {
      font-family: 'Fraunces', Georgia, serif;
      color: #ffffff;
      font-size: 1.08rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      margin-bottom: 8px;
    }
#site-footer .footer-links,
#site-footer .footer-contact {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 6px;
    }
#site-footer .footer-links a,
#site-footer .footer-contact a {
      font-weight: 600;
      color: rgba(255,255,255,0.96);
    }
#site-footer .footer-links a:hover,
#site-footer .footer-contact a:hover {
      color: #fff7d1;
    }
#site-footer .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      padding-top: 10px;
    }
#site-footer .footer-line,
#site-footer .footer-subline {
      color: rgba(255,255,255,0.92);
      font-size: 0.89rem;
      line-height: 1.5;
    }
#site-footer .footer-subline a {
      color: rgba(255,255,255,0.92);
      font-weight: 600;
    }


#site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (max-width: 768px) {
  #site-header nav a { font-size: 15.4px; }
  #site-header .logo { translate: -1% 0; }
  #site-header .header-content nav { margin-top: 0; }
  #site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  #site-footer .footer-bottom { flex-direction: column; }
}
@media (max-width: 600px) {
  #site-header .header-content nav {
    gap: 8px 24px;
    padding: 10px 14px;
  }
}
