/* ARA Global Nav + Footer + Mobile Menu
 * Single source of truth — do not duplicate these rules in page <style> blocks.
 * HTML is injected by build_globals.py.
 */

/* NAV — v2.0: matches homepage-v2.html's nav exactly (logo mark,
   sticky, underline-on-hover links, theme toggle, Log in + Request
   Assessment grouped with search in a tools group). The toggle is
   included for visual/structural parity with homepage-v2.html; since
   these pages don't otherwise use the light/dark CSS variables it
   flips, clicking it here only swaps its own moon/sun icon. */
nav {
  background: #1a1a1a;
  color: #f5f5f0;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; color: inherit; }
.nav-logo img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; margin-left: auto; margin-right: 100px; }
.nav-links span, .nav-links a { position: relative; opacity: 0.6; cursor: pointer; padding-bottom: 4px; transition: opacity 0.15s; }
.nav-links span::after, .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: #0ded6b; transform: scaleX(0); transition: transform 0.15s; }
.nav-links span:hover, .nav-links a:hover { opacity: 1; }
.nav-links span:hover::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links span.is-active { opacity: 1; color: #0ded6b; }
.nav-links span.is-active::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 1.1rem; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #f5f5f0; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.theme-toggle:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-request-btn { display: inline-block; background: #0ded6b; color: #0a0a0a; border: none; font-family: 'MaisonNeueMono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.55rem 1.1rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-request-btn:hover { background: #00e600; }
.nav-login { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; color: #f5f5f0; text-decoration: none; white-space: nowrap; }
.nav-login:hover { opacity: 0.85; }
.nav-hamburger-mobile { display: none; background: none; border: none; color: #f5f5f0; font-size: 1.1rem; cursor: pointer; opacity: 0.7; line-height: 1; padding: 0.25rem; transition: opacity 0.15s; }
.nav-hamburger-mobile.is-open { opacity: 1; }
.nav-search-outer { display: flex; align-items: center; gap: 0.75rem; }
.nav-search-outer > svg { width: 22px; height: 22px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.nav-search-outer:focus-within > svg { color: rgba(255,255,255,0.7); }
.nav-search-input { background: transparent; border: none; border-bottom: 1.5px solid rgba(255,255,255,0.4); font-family: 'MaisonNeueMono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; color: #f5f5f0; padding: 0 0 5px; width: 140px; outline: none; }
.nav-search-input:focus { border-bottom-color: rgba(255,255,255,0.7); }
.nav-search-input::placeholder { color: rgba(255,255,255,0.3); }
.nav-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* MOBILE MENU */
.mobile-overlay { display: none; position: fixed; inset: 0; top: 52px; z-index: 199; }
.mobile-overlay.open { display: block; }
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 52px; left: 0; right: 0;
  background: #111; z-index: 200;
  border-top: 1px solid #2a2a2a;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu-item {
  display: block; padding: 1.1rem 1.5rem;
  color: #f5f5f0; text-decoration: none;
  font-family: 'MaisonNeueMono', monospace; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid #222; opacity: 0.55;
  cursor: pointer; transition: opacity 0.15s, background 0.15s;
}
.mobile-menu-item:hover, .mobile-menu-item:active { opacity: 1; background: #1a1a1a; }
.mobile-menu-item.is-active { opacity: 1; }
.mobile-menu-item.is-cta { color: #0ded6b; opacity: 1; }

/* SITE FOOTER — v2.0: matches homepage-v2.html's .footer-v2 (brand block +
   Product/Company/Support columns + bottom copyright line), replacing the
   old 3-col Explore/Get-started layout. */
.footer-v2 { background: #0a0a0a; border-top: 1px solid #2a2a2a; padding: 3.5rem 2rem 2.5rem; }
.footer-v2-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-v2-brand { font-size: 1.2rem; letter-spacing: 0.18em; color: #f5f5f0; margin-bottom: 0.5rem; }
.footer-v2-tagline { font-size: 0.6rem; letter-spacing: 0.1em; color: #666; text-transform: uppercase; }
.footer-v2-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-v2-col-label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: #555; margin-bottom: 0.85rem; }
.footer-v2-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-v2-col a { font-size: 0.7rem; letter-spacing: 0.04em; color: #999; text-decoration: none; }
.footer-v2-col a:hover { color: #f5f5f0; }
.footer-v2-bottom { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid #1e1e1e; font-size: 0.58rem; letter-spacing: 0.06em; color: #555; }

/* MOBILE BREAKPOINT */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-search-outer { display: none; }
  .nav-request-btn { display: none; }
  .nav-login { display: none; }
  .nav-hamburger-mobile { display: block; margin-left: auto; }
}
