/* Amor Nexus Technologies — WO010A canonical market navigation */
:root {
  --amor-nav-height: 82px;
  --amor-nav-bg: rgba(2, 8, 20, 0.97);
  --amor-nav-border: rgba(148, 163, 184, 0.12);
  --amor-nav-text: #e2e8f0;
  --amor-nav-muted: #9aa9bd;
  --amor-nav-sky: #23a9e8;
  --amor-nav-sky-hover: #38bdf8;
  --amor-nav-content-width: 1260px;
  --amor-nav-page-gap: 26px;
  --amor-nav-page-offset: calc(var(--amor-nav-height) + var(--amor-nav-page-gap));
}

html { scroll-padding-top: calc(var(--amor-nav-height) + 22px); max-width: 100%; }
body { max-width: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.min-h-screen, body > .min-h-screen { min-height: 100% !important; }
body.amor-premium-nav main:first-of-type { padding-top: var(--amor-nav-page-offset) !important; }

.amor-nav-shell, .amor-nav-shell * { box-sizing: border-box; }
.amor-nav-shell {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  width: 100%;
  height: var(--amor-nav-height);
  pointer-events: none;
}

.amor-nav-frame {
  width: 100%;
  min-height: var(--amor-nav-height);
  border-bottom: 1px solid var(--amor-nav-border);
  background: var(--amor-nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

.amor-nav-inner {
  width: min(var(--amor-nav-content-width), calc(100% - 42px));
  min-height: var(--amor-nav-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.amor-brand {
  display: inline-flex;
  align-items: center;
  min-width: 228px;
  min-height: var(--amor-nav-height);
  color: white;
  text-decoration: none;
  overflow: visible;
}

.amor-brand-logo {
  display: block;
  width: 218px;
  max-height: 52px;
  height: auto;
  aspect-ratio: 650 / 150;
  object-fit: contain;
  object-position: left center;
}

.amor-nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.4vw, 38px);
}

.amor-nav-link,
.amor-nav-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--amor-nav-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.amor-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--amor-nav-sky);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.amor-nav-link:hover,
.amor-nav-link:focus-visible,
.amor-nav-link.is-active,
.amor-nav-secondary:hover,
.amor-nav-secondary:focus-visible { color: white; }

.amor-nav-link:hover::after,
.amor-nav-link:focus-visible::after,
.amor-nav-link.is-active::after { transform: scaleX(1); }

.amor-nav-actions {
  min-width: 0;
  min-height: var(--amor-nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.amor-help-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid #1598d5;
  border-radius: 12px;
  background: #1598d5;
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.18);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.amor-help-cta:hover,
.amor-help-cta:focus-visible {
  background: #20a9e6;
  border-color: #20a9e6;
  transform: translateY(-1px);
}

/* Retained only as compatibility selectors while old source fragments are normalized. */
.amor-secure-status,
.amor-tech-cta { display: none !important; }

.amor-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}
.amor-menu-toggle svg { width: 22px; height: 22px; }

/* Terminal transcript copy hygiene: keep decorative controls and hidden composer labels
   out of browser text selections without changing their accessibility semantics. */
body.amor-terminal-workspace #composer button,
body.amor-terminal-workspace #composer label,
body.amor-terminal-workspace #composer svg,
body.amor-terminal-workspace .amor-nav-shell svg,
body.amor-terminal-workspace [role="dialog"] svg {
  -webkit-user-select: none;
  user-select: none;
}

.amor-mobile-menu {
  display: block;
  position: fixed;
  top: var(--amor-nav-height);
  left: 0;
  width: 100%;
  max-height: calc(100svh - var(--amor-nav-height));
  z-index: 9999;
  padding: 24px 22px max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(2, 8, 20, 0.985);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}

.amor-mobile-menu a {
  width: min(520px, 100%);
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #d6deea;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.amor-mobile-menu .amor-help-cta {
  margin-top: 14px;
  background: #1598d5;
  color: white;
}

.amor-mobile-menu a:hover,
.amor-mobile-menu a:focus-visible,
.amor-mobile-menu a.is-active { color: white; background: rgba(56, 189, 248, 0.08); }

.amor-nav-shell[data-nav-open="true"] .amor-mobile-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.amor-nav-shell a:focus-visible,
.amor-nav-shell button:focus-visible {
  outline: 3px solid #e0f2fe;
  outline-offset: 3px;
}

body.amor-nav-locked { overflow: hidden; }

@media (max-width: 1180px) {
  .amor-nav-inner { width: calc(100% - 30px); gap: 16px; }
  .amor-brand { min-width: 206px; }
  .amor-brand-logo { width: 198px; }
  .amor-nav-links { gap: 20px; }
  .amor-nav-actions { gap: 13px; }
}

@media (max-width: 1023px) {
  .amor-nav-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .amor-nav-links,
  .amor-nav-actions > a { display: none; }
  .amor-brand { min-width: 0; overflow: hidden; }
  .amor-brand-logo { max-width: 100%; }
  .amor-nav-actions { justify-self: end; }
  .amor-menu-toggle { display: inline-flex; }
}

@media (max-width: 620px) {
  :root { --amor-nav-height: 74px; --amor-nav-page-gap: 20px; }
  .amor-brand { min-height: var(--amor-nav-height); }
  .amor-brand-logo { width: min(184px, 62vw); max-height: 45px; }
  .amor-nav-inner { padding-left: 14px; padding-right: 14px; }
  .amor-menu-toggle { width: 44px; height: 44px; }
  .amor-mobile-menu a { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .amor-nav-link::after,
  .amor-help-cta,
  .amor-mobile-menu { transition: none; }
}
