/* Shared site header (taken from index.html) — used by every main page.
   Link this AFTER the page's own styles so it wins over older header rules. */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  box-shadow: 0px 1px 1.5px rgba(0,0,0,0.1), 0px 1px 1px rgba(0,0,0,0.1);
}
.site-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.site .logo a { display: block; }
.site .logo img { width: 150px; height: auto; display: block; }
nav.links { display: flex; gap: 32px; align-items: center; }
nav.links a { font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 400; line-height: normal; letter-spacing: 0; color: #1a2267; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
nav.links a:hover { color: #159AA9; }
nav.links a.active { color: #159AA9; font-weight: 700; border-bottom-color: #159AA9; }
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  nav.links { gap: 22px; }
}
@media (max-width: 900px) {
  .site-inner { padding: 0 16px; height: 68px; }
  .site .logo img { width: 128px; }
  /* Menu button + drop-down panel */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px; padding: 0;
    background: none; border: 0; border-radius: 10px; color: #1a2267; cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 2px solid #159AA9; outline-offset: 2px; }
  .nav-toggle line { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
  header.site.nav-open .nav-toggle .l1 { transform: translateY(5px) rotate(45deg); }
  header.site.nav-open .nav-toggle .l2 { opacity: 0; }
  header.site.nav-open .nav-toggle .l3 { transform: translateY(-5px) rotate(-45deg); }
  nav.links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF; padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(26,34,103,0.12); border-top: 1px solid #ECEBF3;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  header.site.nav-open nav.links { display: flex; }
  nav.links a { padding: 14px 4px; border-bottom: 1px solid #F1F0F6; font-size: 17px; }
  nav.links a:last-child { border-bottom: 0; }
  nav.links a.active { border-bottom-color: #F1F0F6; }
}
