/* ============================================================
   StellarLink Media — Nav + Footer shell
   Adds the apple design system nav and footer without
   conflicting with main.css content styles.
   Load AFTER main.css on pages that still use main.css.
   ============================================================ */

/* Apple design tokens — no conflict with main.css variable names */
:root {
  --ink:      #1d1d1f;
  --ink-2:    #515154;
  --ink-3:    #86868b;
  --bg-2-nav: #f5f5f7;
  --bg-dark-nav: #0a0a0c;
  --line:     #d2d2d7;
  --accent:   #0071e3;
  --accent-2: #2997ff;
  --sans:     "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --gutter:   clamp(22px, 4vw, 56px);
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-inner {
  width: 100%; max-width: 980px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(1.6) blur(24px);
  -webkit-backdrop-filter: saturate(1.6) blur(24px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  box-shadow: 0 8px 28px -18px rgba(0,0,0,0.18);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  pointer-events: all;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-mk {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: -0.02em; font-family: var(--sans); flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--ink-2); list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  padding: 7px 14px; border-radius: 999px;
  background: var(--ink); color: #fff !important; font-weight: 500;
  transition: background .2s !important; text-decoration: none !important;
}
.nav-cta:hover { background: #333 !important; }

.nav-mobile-toggle {
  display: none;
  width: 30px; height: 30px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; border: none; background: none;
}
.nav-mobile-toggle span {
  display: block; height: 1.5px; background: var(--ink);
  border-radius: 2px; transition: all .3s;
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta):not(.nav-persistent) { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: rgba(251,251,253,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--sans); font-size: 32px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer-close {
  position: absolute; top: 28px; right: 28px;
  font-size: 28px; color: var(--ink-3); cursor: pointer; line-height: 1;
  background: none; border: none;
}

/* ---- Footer ---- */
.footer-a {
  background: var(--bg-2-nav); color: var(--ink-2);
  padding: 40px 0 24px;
  font-size: 12px; line-height: 1.5;
}
.footer-a .footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.footer-a .f-cols {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .footer-a .f-cols { grid-template-columns: 1fr 1fr; } }
.footer-a h6 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink); margin: 0 0 14px; letter-spacing: -0.005em;
}
.footer-a ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-a a { color: inherit; text-decoration: none; }
.footer-a a:hover { text-decoration: underline; }
.footer-a .f-bot {
  margin-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--ink-3); font-size: 12px;
}
.footer-a .f-bot a { color: inherit; text-decoration: none; }
.footer-a .f-bot a:hover { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-name { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 14px; }
