/* The shared top bar (templates/_nav.html), in the "Corona" design
   (home/static/home/corona.css). Pages bring very different stylesheets
   (Bootstrap dark/light, hand-written, print views), so every rule here is
   scoped to .gnav and sets what it needs explicitly. */
.gnav {
  --gnav-bg: #161614;
  --gnav-border: #2a2a27;
  --gnav-text: #f1efe9;
  --gnav-muted: #a9a79c;
  --gnav-accent: #ffb04a;
  position: relative;
  z-index: 1030;
  background: var(--gnav-bg);
  color: var(--gnav-text);
  border-bottom: 1px solid var(--gnav-border);
  font: 400 14px/1.4 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  white-space: normal;
  text-align: left;
  letter-spacing: normal;
}
.gnav *, .gnav *::before, .gnav *::after { box-sizing: border-box; }
.gnav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  min-height: 68px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 36px;
}
.gnav a { text-decoration: none; }
.gnav a.gnav-brand {
  color: var(--gnav-text); font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; transition: opacity .15s ease;
}
.gnav a.gnav-brand:hover { color: var(--gnav-text); opacity: .74; text-decoration: none; }
.gnav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; flex: 1 1 auto; }
.gnav-links a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin: 0;
  color: var(--gnav-muted); font: inherit; font-size: 14px; line-height: 1.3;
  transition: color .15s ease;
}
.gnav-links a:hover { color: var(--gnav-text); text-decoration: none; }
.gnav-links a.active { color: var(--gnav-text); }
.gnav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--gnav-accent);
}
.gnav-links form { display: inline-flex; margin: 0 0 0 auto; padding: 0; }
.gnav-links button {
  min-height: 44px; padding: 0 20px; margin: 0;
  background: var(--gnav-accent); color: #151515; border: 0; border-radius: 999px;
  font: 600 13.5px/1 "Schibsted Grotesk", system-ui, sans-serif; cursor: pointer;
  transition: filter .15s ease;
}
.gnav-links button:hover { filter: brightness(1.08); }
.gnav a:focus-visible, .gnav button:focus-visible, .gnav-toggle:focus-visible + .gnav-burger {
  outline: 2px solid var(--gnav-accent); outline-offset: 2px; border-radius: 6px;
}
.gnav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gnav-burger { display: none; }

@media (max-width: 760px) {
  .gnav-inner { padding: 0 16px; min-height: 60px; justify-content: space-between; }
  .gnav-burger {
    display: block; color: var(--gnav-text); font-size: 22px; line-height: 1;
    padding: 8px 4px; cursor: pointer; user-select: none; margin: 0;
  }
  .gnav-links { display: none; width: 100%; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 4px 0 14px; }
  .gnav-toggle:checked ~ .gnav-links { display: flex; }
  .gnav-links a { width: 100%; padding: 0 4px; }
  .gnav-links a.active::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .gnav-links a.active { padding-left: 12px; }
  .gnav-links form { margin: 8px 0 0; }
  .gnav-links button { width: 100%; }
}

@media print { .gnav { display: none; } }
