/* Shared site header — the one nav implementation for every page.
   Markup comes from /nav.js; palette is the oto design language v1.0
   (hardcoded here so the header never depends on page-local tokens). */

nav.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7e5e4;
}

.nav-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}

.brand {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #0c0a09;
  text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 26px; }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #4e4e4e;
  text-decoration: none;
  position: relative;
  transition: color 0.15s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.nav-link:hover { color: #0c0a09; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: #0c0a09; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #292524;
  color: #fff;
  border: 1px solid #292524;
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; color: #fff; }

/* ── dropdowns ─────────────────────────────────────────────────────── */
.nav-item { position: relative; display: flex; align-items: center; height: 62px; }

.nav-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(12, 10, 9, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 95;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item:last-child .nav-drop { left: auto; right: -20px; transform: translateY(6px); }
.nav-item:last-child:hover .nav-drop,
.nav-item:last-child:focus-within .nav-drop { transform: translateY(0); }

.nav-drop a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #292524;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s;
}
.nav-drop a:hover { background: #f0efed; color: #0c0a09; }
.nav-drop .d {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #a8a29e;
}

.drop-item-soon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 12px;
  white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #a8a29e;
}
.drop-item-soon .d {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #a8a29e;
}

/* ── mobile menu ──────────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #d6d3d1;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: #0c0a09;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-burger.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  background: #fafaf9;
  border-bottom: 1px solid #e7e5e4;
  padding: 4px 20px 24px;
}
.nm-group { padding: 14px 0 6px; }
.nm-group + .nm-group { border-top: 1px solid #e7e5e4; }
.nm-label {
  display: block;
  margin-bottom: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #777169;
  text-decoration: none;
}
.nm-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #292524;
  text-decoration: none;
}
.nm-item .d {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #a8a29e;
  text-align: right;
}
.nm-item.soon { color: #a8a29e; }

@media (max-width: 720px) {
  .nav-in { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { font-size: 12px; padding: 7px 13px; }
}
@media (min-width: 721px) {
  .nav-mobile { display: none; }
}

/* ── shared site footer (markup from /footer.js) ──────────────────── */
footer.site {
  border-top: 1px solid #e7e5e4;
  padding: 48px 0 64px;
  background: #fafaf9;
  color: #777169;
  font-size: 13px;
}
.foot-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site .logo {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 500;
  color: #0c0a09;
  line-height: 1.2;
}
footer.site .corp {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #a8a29e;
  margin-top: 10px;
  line-height: 1.7;
}
footer.site address { font-style: normal; }
.foot-links {
  display: flex;
  gap: 22px;
  align-items: baseline;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.foot-links a { color: inherit; text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: #0c0a09; }
@media (max-width: 720px) {
  .foot-in { padding: 0 20px; }
}
