/* Public header menu v2 (owner 2026-11-01): Add-ons and Market open a panel, then Pricing and Docs,
   the same on every page as the new home. Pure CSS: hover or keyboard focus opens a panel; in the
   phone drawer (max-width 1100px) the panels are plain lists. */
header.nav { --p2: #151515; --node: #8B5CF6; --bake: #FF6A1F; --uv: #E2337A; }

.nl2 { position: relative; display: inline-flex; }
.nl2-t { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--dust); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: color .2s, background-color .2s; }
.nl2-i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nl2:hover .nl2-t, .nl2:focus-within .nl2-t { color: var(--bone); background: var(--panel); }
.nl2:hover .nl2-i, .nl2:focus-within .nl2-i { transform: rotate(180deg); }

.dd2 { position: absolute; left: -20px; top: calc(100% + 10px); z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.dd2::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.nl2:hover .dd2, .nl2:focus-within .dd2 { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s, visibility 0s; }
header.nav .nav-links .dd2 a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--bone); font-size: 15px; white-space: normal; }
header.nav .nav-links .dd2 a:hover { background: var(--p2); }
.dd2 b { display: block; font-weight: 600; transition: color .15s; }
.dd2 small { display: block; color: var(--dim); font-size: 13px; font-weight: 400; }
.dd2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.dd2-add { width: 640px; display: grid; grid-template-columns: 290px 1fr; overflow: hidden; }
.dd2-list { display: flex; flex-direction: column; padding: 10px; }
.dd2-add .it img { width: 40px; height: 40px; flex: none; }
.dd2-docs { width: 320px; }
.dd2-docs .it img { width: 32px; height: 32px; flex: none; }
header.nav .nav-links .dd2-docs a.foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; color: var(--dust); gap: 6px; }
header.nav .nav-links .dd2-docs a.foot:hover { background: none; color: var(--bone); }
.dd2 .it[data-k=node]:hover b { color: var(--node); }
.dd2 .it[data-k=bake]:hover b { color: var(--bake); }
.dd2 .it[data-k=uv]:hover b { color: var(--uv); }
.dd2-pv { position: relative; min-height: 250px; background: #0e0e0e; }
.dd2-pv .pv { position: absolute; inset: 0; background: center 42% / 62% no-repeat; opacity: 0; transition: opacity .2s; }
.dd2-pv .pv-node { opacity: 1; }
.dd2-add:has(.it[data-k=bake]:hover) .pv-node, .dd2-add:has(.it[data-k=uv]:hover) .pv-node { opacity: 0; }
.dd2-add:has(.it[data-k=bake]:hover) .pv-bake, .dd2-add:has(.it[data-k=uv]:hover) .pv-uv { opacity: 1; }

.dd2-mkt { width: 500px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd2-mkt .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--p2); color: var(--dust); }
header.nav .nav-links .dd2-mkt a.foot { grid-column: 1 / -1; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; color: var(--dust); gap: 6px; }
header.nav .nav-links .dd2-mkt a.foot:hover { background: none; color: var(--bone); }

/* The phone/tablet drawer: groups become headed lists, no floating panels. */
@media (max-width: 1100px) {
  .nl2 { display: block; }
  .nl2-t { width: 100%; justify-content: space-between; padding: 12px 8px 4px; font-size: 13px; color: var(--dim); background: none !important; cursor: default; }
  .nl2-i { display: none; }
  .dd2 { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; border: 0; box-shadow: none; background: none; display: block; padding: 0; }
  .dd2::before, .dd2-pv { display: none; }
  .dd2-list { padding: 0; }
  header.nav .nav-links .dd2 a { padding: 10px 8px; font-size: 16px; }
  .dd2 small { display: none; }
  .dd2-add .it img, .dd2-docs .it img, .dd2-mkt .ic { width: 28px; height: 28px; }
  header.nav .nav-links .dd2-docs a.foot { border-top: 0; margin: 0; padding: 10px 8px; }
  header.nav .nav-links .dd2-mkt a.foot { display: none; }
  header.nav .nav-links { max-height: calc(100dvh - 68px); overflow-y: auto; scrollbar-width: none; background: var(--ink); }
}

/* One header on every page (owner 2026-11-01): the same height, logo, links and account chip as
   the new home (css/site-v2.css .hdr), whichever stylesheet the page grew up with. */
header.nav, header.nav.scrolled { background: color-mix(in srgb, var(--ink) 74%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
header.nav.scrolled { border-bottom-color: var(--line); } /* the hairline shows once the page scrolls, as on nexstudio3d.com */
header.nav .nav-inner { height: 64px; gap: 0; }
header.nav .brand { margin-right: 28px; } /* + the new home's 4px flex gap */
header.nav .brand img { height: 28px; width: auto; }
header.nav .nav-links { margin-left: 0; gap: 2px; }
header.nav .nl2-t { padding: 8px 13px; font-size: 15px; font-weight: 500; line-height: 1.55; }
header.nav .nav-cta { margin-left: auto; gap: 4px; }
header.nav .nav-account { gap: 10px; height: 40px; padding: 0 14px 0 5px; font-size: 14px; font-weight: 600; }
header.nav .nav-avatar { width: 30px; height: 30px; background: #b5121b; color: #fff; font-size: 12px; }

/* The announce bar's ✕ (js/nx-announce.js). */
html[data-announce='off'] .announce { display: none; }
.announce .announce-hi { color: #f04a50; } /* the offer line in red (owner 2026-11-01) */
.announce-x { width: 26px; height: 26px; display: grid; place-items: center; margin-left: -6px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; } /* beside the text, not in the corner */
.announce-x:hover, .announce-x:focus-visible { color: var(--bone); background: var(--panel); }
.announce-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
@media (max-width: 640px) {
  header.nav .nav-account { width: 40px; padding: 0; justify-content: center; }
}

/* The phone menu button, as the new home's (.hdr .menu). */
header.nav .nav-toggle { width: 40px; height: 40px; margin-left: 8px; border: 1px solid var(--line-2); border-radius: 12px; }
