/* Shared site header / navigation / footer styles.
   Included on every page (index.html and all /blog/ pages) so the
   navigation looks and behaves identically across the whole site. */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* isolate() gives the header its own stacking context so its z-index
     can never bleed into/over content further down the page (e.g. cards). */
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15,17,21,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a2f3a;
  margin-bottom: 24px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; position: static; height: 40px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.brand-name { font-weight: 700; font-size: 1.05rem; color: #eef1f5; }
.brand-name span { color: #4f8cff; }

nav.site-nav { display: flex; align-items: center; }
nav.site-nav a {
  color: #9aa4b2;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 20px;
  transition: color 0.15s ease;
}
nav.site-nav a:hover { color: #4f8cff; }
nav.site-nav a.active { color: #4f8cff; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #eef1f5;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Shared footer.
   margin-top/padding-top follow the site's 24/32/48 spacing scale
   (see .wrap padding) rather than the previous off-scale 40px gap. */
footer.site-footer {
  text-align: center;
  color: #7a828f;
  font-size: 0.8rem;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #2a2f3a;
}
footer.site-footer .footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
footer.site-footer .footer-brand img { height: 22px; width: auto; position: static; }
footer.site-footer nav.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
footer.site-footer a { color: #7a828f; text-decoration: none; }
footer.site-footer a:hover { color: #4f8cff; }
footer.site-footer a.active { color: #4f8cff; }

@media (max-width: 640px) {
  header.site-header { position: sticky; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  nav.site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #171a21;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    padding: 8px 16px;
    margin-top: 12px;
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a { margin-left: 0; margin-right: 0; padding: 10px 0; width: 100%; border-bottom: 1px solid #2a2f3a; }
  nav.site-nav a:last-child { border-bottom: none; }
}
