/* nav.css — shared site header / navigation styles.
   Single source of truth for the header's LOOK; nav.js is the single source
   for its LINKS and renders the markup into <header class="site-header" data-nav>.

   Deliberately self-contained (literal theme values, no CSS variables) so it
   styles the tool pages too — those pages ship their own inline CSS and do not
   load styles.css. Keep the values here in sync with :root in styles.css. */

.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: 72px;                 /* reserve space before nav.js renders */
  background: rgba(12, 40, 57, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #21465C;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
}
.site-header .container {
  max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.site-header .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #EAF0F2; }
.site-header .brand-logo { height: 40px; width: auto; display: block; }

.site-header .nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header .nav a { font-size: 0.9rem; text-decoration: none; color: #90A7B4; transition: color .15s; }
.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] { color: #EAF0F2; }

.site-header .nav .btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 0.5rem 1.05rem;
  font-size: 0.86rem; font-weight: 600; border-radius: 8px;
  border: 1px solid #21465C; background: transparent; color: #EAF0F2;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.site-header .nav .btn:hover { border-color: #C9A24B; background: rgba(201, 162, 75, 0.14); }
.site-header .nav a.btn--primary { background: #C9A24B; border-color: #C9A24B; color: #081B27; font-weight: 700; }
.site-header .nav a.btn--primary:hover { background: #D9B465; border-color: #D9B465; color: #081B27; }

.site-header .nav-toggle { display: none; background: none; border: 1px solid #21465C; border-radius: 7px; padding: 8px 10px; cursor: pointer; }
.site-header .nav-toggle span { display: block; width: 18px; height: 2px; background: #EAF0F2; margin: 3px 0; }

@media (max-width: 880px) {
  .site-header .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #081B27; border-bottom: 1px solid #21465C; padding: 0.5rem 1.5rem 1.5rem; display: none;
  }
  .site-header .nav.open { display: flex; }
  .site-header .nav a { padding: 0.85rem 0; border-bottom: 1px solid #21465C; }
  .site-header .nav .btn { margin-top: 1rem; justify-content: center; }
  .site-header .nav-toggle { display: block; }
}

/* The header is chrome, not content — hide it when printing any page
   (replaces the per-page print rules the tool pages used to carry). */
@media print { .site-header { display: none !important; } }
