/* ═══════════════════════════════════════════════════════════════════════
   __darmaster/css/base/nav.css
   Daralbeida Multi-Entity Platform · v1.0 · 2026-06-03

   Shared top nav for every entity site. The structural CSS lives here;
   per-entity wordmark colour and accent come through entity skins / inline
   variables.

   This is a port of /darmaster/css/modules/module_nav_sections.css adapted to
   read the global tokens defined in tokens.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* All fonts (including nav mono) are now controlled via the skin system (2026-06-16 user).
   The @font-face for 'Nav Mono' has been removed; font-family now uses var(--font-mono). */

.darx-nav,
.darx-nav *,
.darx-nav *::before,
.darx-nav *::after { box-sizing: border-box; }

html, body { height: auto; min-height: 100%; }
/* clip: clips overflow without creating a scroll container, so position:fixed
   elements stay anchored to the viewport (not the html element's box). */
html { overflow-x: clip; }
body { overflow-x: clip; }

.darx-nav {
  position: sticky;
  top: 0;
  min-height: 60px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 6px 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  -webkit-font-smoothing: antialiased;
  line-height: 1.3;
}

.darx-nav-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  padding: 0 14px;
}

.darx-nav-brand { flex-shrink: 0; }

.darx-nav-home {
  font-family: var(--font-display);
  font-size: var(--nav-brand-fs, 1rem);   /* single source — was a hardcoded 16px that fought the token */
  font-weight: 700;
  letter-spacing: var(--wordmark-letter-spacing);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.82);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.darx-nav-home:hover,
.darx-nav-home:focus-visible {
  color: rgba(246, 241, 231, 0.98);
  text-decoration: none !important;
  text-shadow:
    0 0 8px color-mix(in srgb, var(--gold) 45%, transparent),
    0 0 1px color-mix(in srgb, var(--gold) 70%, transparent);
  outline: none;
}

.darx-nav-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--ui-fs-micro);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* 2026-06-11: WHITE + bold — matches the shared header's uniform
     "DARMASTER INTRANET" badge on every other page. */
  color: #FFFFFF;
}
.darx-nav-badge-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.darx-nav-badge-link:hover,
.darx-nav-badge-link:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  outline: none;
}

.darx-nav-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  gap: 5px;
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  padding: 0 14px;
}

.darx-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius, 0);
  border: 1px solid rgba(184, 131, 42, 0.30);
  background: linear-gradient(180deg,
              rgba(8, 28, 42, 0.78) 0%,
              rgba(20, 58, 82, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 231, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  text-decoration: none !important;
  color: var(--nav-text);
  font-family: var(--font-mono);    /* skin-controlled monospace font */
  font-size: var(--ui-fs-label);       /* was 8.5px — too small, blurred (synced) */
  letter-spacing: 0.4px;   /* was 1.5px */
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease,
              box-shadow .18s ease, transform .10s ease;
}
.darx-nav-link:hover,
.darx-nav-link:focus-visible {
  color: var(--nav-text-hover);
  border-color: var(--gold);
  background: linear-gradient(180deg,
              rgba(20, 58, 82, 0.92) 0%,
              rgba(26, 77, 109, 0.62) 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 231, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.36),
    0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent),
    0 0 14px -2px color-mix(in srgb, var(--gold) 65%, transparent);
  outline: none;
  transform: translateY(-1px);   /* integer px — was -0.5px (blurred) */
}
.darx-nav-link.active {
  color: var(--gold);
  border-color: var(--gold);
  background: linear-gradient(180deg, #1A4D6D 0%, #11385A 100%);
}
.darx-nav-num {
  font-weight: 700;
  color: var(--gold);
  font-size: var(--ui-fs-label);   /* was 9px (synced) */
  font-variant-numeric: tabular-nums;
}
.darx-nav-label {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4px;   /* was 1.2px (synced) */
}
