/* DroppXAI top menu: the "Burn & Lock" dropdown (and a tighter fit for the 7-item menu).
   Loaded by DroppXAI pages only, after style.css (or after nav-only.css on /lock/). It is a SEPARATE file on
   purpose: style.css and main.js are copied into the NoMaD build, and nothing NoMaD loads may change.
   Everything is scoped under .navbar, with fallbacks for the variables, so it also works on /lock/ (no style.css).
   Desktop (>= 860 px): a button with a small panel, opened on hover, click or Enter (nav-menu.js).
   Phone (< 860 px, inside the hamburger menu): "Burn & Lock" is a heading with Burn and Lock as two indented links. */

/* a bit more room for 7 items: the menu fits on one line from 860 px up */
/* the menu is one Products item: it sits next to the logo and "Get started" is pushed to the right edge */
@media (min-width: 860px) {
  .navbar .nav-links { margin-left: 6px; }
  .navbar .nav-cta { margin-left: auto; }
}
@media (min-width: 1000px) and (max-width: 1120px) {
  .navbar .nav-inner { gap: 20px; }
}

/* 860-999 px: tighter still (smaller type and gaps), so the 7 items do not wrap even with the web font (a bit wider than the fallback); below 860 the menu is the hamburger */
@media (min-width: 860px) and (max-width: 999px) {
  .navbar .nav-inner { gap: 12px; }
  .navbar .nav-logo { font-size: 1.15rem; gap: 8px; }
  .navbar .nav-links { gap: 10px; }
  .navbar .nav-links > li > a, .navbar .nav-dd-btn { font-size: 0.84rem; }
  .navbar .nav-cta { padding: 8px 12px; font-size: 0.84rem; }
}

/* the dropdown item: extra vertical padding (cancelled by the negative margin) makes the hover zone reach
   down to the panel, so the pointer never crosses a gap */
.navbar .nav-links > li.nav-dd { position: relative; padding: 22px 0; margin: -22px 0; }
.navbar .nav-dd-btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 0; min-height: 0; width: auto;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  font: inherit; font-family: var(--font, 'Manrope', sans-serif); font-size: 0.9rem; font-weight: 500;
  line-height: inherit; letter-spacing: normal; text-transform: none;
  color: var(--grey, #b9bfcc); cursor: pointer; transition: color 0.25s ease;
}
.navbar .nav-dd-btn::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.navbar .nav-dd.is-open .nav-dd-btn::after { transform: rotate(-135deg); margin-top: 3px; }
.navbar .nav-dd-btn:hover,
.navbar .nav-dd.is-open .nav-dd-btn { color: var(--white, #e9ecf2); }
.navbar .nav-dd-btn:focus-visible { outline: 2px solid #ccff00; outline-offset: 4px; border-radius: 4px; }
/* the current page (/incinerator, /lock/): lime + underline, like Products on its own page */
.navbar .nav-dd-btn[aria-current="page"],
.navbar .nav-dd-btn[aria-current="page"]:hover,
.navbar .nav-dd.is-open .nav-dd-btn[aria-current="page"] { color: #ccff00; border-bottom: 2px solid #ccff00; padding-bottom: 4px; }

.navbar .nav-dd-menu {
  display: none; position: absolute; top: 100%; left: -16px;
  min-width: 330px; padding: 8px; z-index: 101;
  background: rgba(4, 5, 10, 0.98); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.navbar .nav-dd.is-open .nav-dd-menu { display: block; }
@media (hover: hover) and (min-width: 860px) {
  .navbar .nav-dd:hover .nav-dd-menu { display: block; }
}
/* Escape closes it even while the pointer is still over it (until the pointer leaves) */
.navbar .nav-dd.is-suppressed .nav-dd-menu { display: none !important; }
.navbar .nav-links .nav-dd-menu a {
  display: block; padding: 10px 14px; border-radius: 9px; border-bottom: 0;
  font-size: 0.9rem; font-weight: 500; color: var(--grey, #b9bfcc);
}
/* the Products menu: a name and a one-line description for each product */
.navbar .nav-dd-menu .dd-name { display: block; font-weight: 700; font-size: 0.95rem; color: var(--white, #e9ecf2); }
.navbar .nav-dd-menu .dd-desc { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 500; line-height: 1.35; color: var(--grey, #b9bfcc); }
.navbar .nav-dd-menu .dd-new { font-style: normal; font: 800 0.62rem/1 var(--font-mono, monospace); letter-spacing: 0.08em; color: #0a0d00; background: #ccff00; border-radius: 999px; padding: 3px 7px; margin-left: 6px; vertical-align: 2px; }
.navbar .nav-links .nav-dd-menu a[aria-current="page"] .dd-name { color: #ccff00; }
.navbar .nav-links .nav-dd-menu a:hover,
.navbar .nav-links .nav-dd-menu a:focus-visible { background: rgba(204, 255, 0, 0.08); color: var(--white, #e9ecf2); outline: none; }
.navbar .nav-links .nav-dd-menu a:focus-visible { box-shadow: inset 0 0 0 2px #ccff00; }
/* the small link at the bottom of the Products menu */
.navbar .nav-links .nav-dd-menu a.dd-all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border, rgba(255,255,255,.09)); border-radius: 0 0 9px 9px; font-size: 0.82rem; font-weight: 700; color: #ccff00; }
/* the matching sub-item of the current page (extra specificity: style.css marks every current link white) */
body .navbar .nav-links .nav-dd-menu a[aria-current="page"] { color: #ccff00; background: rgba(204, 255, 0, 0.08); }

/* phone: inside the hamburger column, a heading with two indented links (no hover, nothing to open) */
@media (max-width: 859px) {
  .navbar .nav-links > li.nav-dd { padding: 0; margin: 0; }
  .navbar .nav-dd-btn { pointer-events: none; cursor: default; color: var(--white, #e9ecf2); font-weight: 600; }
  .navbar .nav-dd-btn::after { display: none; }
  .navbar .nav-dd-menu {
    display: block; position: static; transform: none; min-width: 0; padding: 6px 0 0 18px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .navbar .nav-links .nav-dd-menu a { padding: 8px 0; border-radius: 0; }
  .navbar .nav-links .nav-mobile-cta .btn { display: inline-block; }
  .navbar .nav-links .nav-dd-menu a:hover,
  .navbar .nav-links .nav-dd-menu a:focus-visible { background: none; }
  body .navbar .nav-links .nav-dd-menu a[aria-current="page"] { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar .nav-dd-btn, .navbar .nav-dd-btn::after { transition: none; }
}

/* The DroppX logo (brand/KIRO-LOGO.md): the mark is taller than wide (viewBox 142 x 178), so it gets a fixed height
   and the width follows. The header stays 68 px; the text next to it (DroppXAI) is unchanged. style.css has a
   36 x 36 box for the old drop: this file loads after it. The footer logo is in site-chrome.css. */
.navbar .logo-icon { height: 44px; width: auto; aspect-ratio: 142 / 178; flex: none; }
.navbar .nav-logo { align-items: center; }
/* the Get started button inside the phone menu: dark text on lime (".nav-links a" is grey) */
.navbar .nav-links .nav-mobile-cta a.btn-primary { color: var(--on-lime, #0a0d00); }
.navbar .nav-links .nav-dd-menu a[aria-current="page"] { border-bottom: 0; }
/* phone: the opened hamburger menu is solid (main.js gives it 98% black, and page text showed through) */
@media (max-width: 859px) {
  .navbar .nav-links { background-color: #04050a !important; }
  /* and it covers the rest of the screen when open (main.js opens it with an inline display:flex): nothing of the page shows below it.
     Absolute, not fixed: the navbar's backdrop-filter makes it the containing block of fixed children. */
  .navbar .nav-links[style*="display: flex"], .navbar .nav-links[style*="display:flex"] {
    height: calc(100vh - 68px) !important; height: calc(100dvh - 68px) !important; overflow-y: auto !important; align-content: flex-start; box-sizing: border-box;
  }
}
