/* Site header for the web rank pages (includes/site-topnav.php).
   Uses the rank pages' theme variables, so it follows every theme. */
.in-frame .as-topnav { display: none; }

.as-topnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg, #0b0e0c) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line, rgba(120,140,120,.14));
}
.as-topnav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 18px;
  min-height: 64px; display: flex; align-items: center; gap: 24px;
}
.as-topnav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.as-topnav-chip {
  font: 700 10px/1 'JetBrains Mono', monospace; letter-spacing: .2em;
  background: var(--hud, #d3af37); color: #111; padding: 5px 7px; border-radius: 4px;
}
.as-topnav-brand img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: contain;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-hot, rgba(211,175,55,.3));
}
.as-topnav-name { font: 700 20px/1 'Rajdhani', sans-serif; letter-spacing: .03em; color: var(--ink, #e7eae3); }
.as-topnav-name b { color: var(--hud, #d3af37); font-weight: 700; }

.as-topnav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.as-topnav-links a {
  font: 600 14px/1 'Rajdhani', sans-serif; letter-spacing: .03em;
  color: var(--ink-2, #aab2a8); text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.as-topnav-links a:hover { color: var(--ink, #fff); }
.as-topnav-links a.active { color: var(--ink, #fff); border-bottom-color: var(--hud, #d3af37); }
.as-topnav-links a.as-topnav-cta {
  color: #111; background: var(--hud, #d3af37); border: 0; border-radius: 6px;
  padding: 9px 14px; font-weight: 700;
}
.as-topnav-links a.as-topnav-cta:hover { filter: brightness(1.08); }

/* Phones and small tablets: brand on top, links in one row underneath that scrolls sideways */
@media (max-width: 860px) {
  .as-topnav-inner { flex-wrap: wrap; gap: 0; padding: 10px 14px 0; }
  .as-topnav-name { font-size: 18px; }
  .as-topnav-links {
    width: 100%; margin: 8px -14px 0; padding: 0 14px; gap: 18px;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  }
  .as-topnav-links::-webkit-scrollbar { display: none; }
  .as-topnav-links a { padding: 10px 0 12px; }
  .as-topnav-links a.as-topnav-cta { padding: 7px 12px; margin: 4px 0 8px; }
}
@media (max-width: 380px) { .as-topnav-brand img { display: none; } }
