/* ── DIVISION NAV ──
   Shared by dev.html and print.html: brand with the Dev | Print switch, section links
   that light up with the section on screen, one action, and a full-screen menu
   below 1100px. Behaviour lives in nav.js. */
nav {
  position: fixed; inset: 0 0 auto; z-index: 400;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 24px var(--page-x);
  transition: background .4s ease, padding .35s var(--ease-out), transform .35s ease;
}
nav.solid { background: rgb(var(--bg-rgb) / .96); padding-top: 12px; padding-bottom: 12px; }
.n-brand { display: flex; align-items: center; gap: 14px; justify-self: start; }
.n-logo { font-family: var(--fd); font-size: .95rem; letter-spacing: .04em; }
.n-div { display: flex; background: rgb(var(--ink-rgb) / .07); padding: 3px; }
.n-div > * { font-size: var(--step-s); font-weight: 500; padding: 4px 10px; line-height: 1.3; }
.n-div-on { background: var(--accent); color: var(--on-accent); }
.n-div-off { color: var(--muted); transition: color .2s, background-color .2s; }
.n-div-off:hover { color: var(--ink); background: rgb(var(--ink-rgb) / .08); }

.n-links { display: flex; gap: 4px; list-style: none; }
.n-links a {
  position: relative; display: block; padding: 8px 12px;
  font-size: var(--step-s); font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.n-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.n-links a:hover { color: var(--ink); }
.n-links a:hover::after { transform: scaleX(.35); }
.n-links a.on { color: var(--ink); }
.n-links a.on::after { transform: scaleX(1); }

.n-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
.ltog { display: flex; background: rgb(var(--ink-rgb) / .07); padding: 3px; }
.lbtn {
  padding: 4px 10px; background: none; border: none;
  font-size: var(--step-s); font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.lbtn:hover { color: var(--ink); }
.lbtn.on { color: var(--ink); background: rgb(var(--ink-rgb) / .12); }
.n-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step-s); font-weight: 500; white-space: nowrap;
  color: var(--on-accent); background: var(--accent);
  padding: 10px 20px; transition: background .2s, color .2s, transform .15s;
}
.n-cta:hover { background: var(--ink); color: var(--bg); }
.n-cta:active { transform: scale(.97); }
.n-menu {
  display: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px 0 12px;
  background: none; border: none; color: var(--ink);
  font-size: var(--step-s); font-weight: 500;
}
.n-burger { position: relative; width: 20px; height: 12px; }
.n-burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.n-burger i:first-child { top: 0; } .n-burger i:last-child { top: 10px; }
nav.open .n-burger i:first-child { top: 5px; transform: rotate(45deg); }
nav.open .n-burger i:last-child { top: 5px; transform: rotate(-45deg); }

/* mobile sheet */
.n-sheet {
  position: fixed; inset: 0; z-index: 390; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 112px var(--page-x) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.n-sheet.open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.n-sheet ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.n-sheet ul a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
  font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.4rem, 6.2vw, 2.6rem); line-height: 1.05; overflow-wrap: anywhere;
  opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .2s;
}
.n-sheet ul a.on { color: var(--accent); }
.n-sheet.open ul a { opacity: 1; transform: none; }
.n-sheet.open ul li:nth-child(2) a { transition-delay: .05s; }
.n-sheet.open ul li:nth-child(3) a { transition-delay: .1s; }
.n-sheet.open ul li:nth-child(4) a { transition-delay: .15s; }
.n-sheet-foot { display: flex; flex-direction: column; gap: 20px; }
.n-sheet-foot .n-cta { justify-content: center; padding: 16px 20px; font-size: var(--step-b); }
.n-sheet-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.n-sheet-row a { font-size: var(--step-s); font-weight: 500; color: var(--muted); }
.n-sheet-row a:hover { color: var(--ink); }
body.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  nav { grid-template-columns: 1fr auto; }
  .n-links { display: none; }
  .n-menu { display: inline-flex; }
}
@media (max-width: 600px) {
  nav { gap: 12px; }
  .n-right > .ltog, .n-right > .n-cta { display: none; }
  .n-right { gap: 4px; }
}
@media (min-width: 1101px) { .n-sheet { display: none; } }
