/* Shared homepage-style navigation for every site page. */
.site-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #f4f1e8;
  background: linear-gradient(180deg, rgba(5, 6, 4, .82), rgba(5, 6, 4, 0));
  border: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
}

.site-topbar a {
  text-decoration: none;
  border: 0;
}

.site-topbar__brand {
  justify-self: start;
  color: #f4f1e8;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.site-topbar__brand span { color: #c9ff3b; }

.site-topbar__nav,
.site-topbar__social {
  display: flex;
  align-items: center;
}

.site-topbar__nav {
  justify-content: center;
  gap: clamp(10px, 2vw, 30px);
}

.site-topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: #c9ff3b;
  border-bottom: 1px solid transparent;
  font-size: clamp(12px, 1.25vw, 18px);
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .2s ease, opacity .2s ease;
}

.site-topbar__nav a:hover,
.site-topbar__nav a[aria-current="page"] { border-bottom-color: currentColor; }

.site-topbar__social {
  justify-self: end;
  gap: 4px;
}

.site-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #f4f1e8;
  transition: opacity .2s ease;
}

.site-topbar__social a:hover { opacity: .7; }
.site-topbar__social svg { display: block; width: 26px; height: 26px; }

body.site-resume-page .resume-hero { padding-top: clamp(130px, 14vw, 188px); }
body.site-report-page { padding-top: 116px; }

@media (max-width: 800px) {
  .site-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding: 10px 16px 8px;
    background: linear-gradient(180deg, rgba(5, 6, 4, .96), rgba(5, 6, 4, .72));
  }

  .site-topbar__nav {
    grid-row: 2;
    grid-column: 1 / -1;
    gap: clamp(14px, 5vw, 34px);
  }

  .site-topbar__nav a { font-size: 12px; }
  .site-topbar__social { grid-row: 1; grid-column: 2; }
  body.site-report-page { padding-top: 134px; }
  body.site-resume-page .resume-hero { padding-top: 158px; }
  body.site-news-page .hero-content { padding-top: 132px; }
}

@media (max-width: 400px) {
  .site-topbar { padding-inline: 10px; }
  .site-topbar__brand { font-size: 16px; }
  .site-topbar__nav { gap: 12px; }
  .site-topbar__nav a { font-size: 11px; }
  .site-topbar__social a { width: 40px; }
  .site-topbar__social svg { width: 23px; height: 23px; }
}
