/* ─────────────────────────────────────────────────────────────
 * site-nav.css — Universal header + footer for every mroye.com page.
 * Pair with /site-nav.js which injects the markup into placeholders.
 * Design tokens live in this file so a page can `<link>` just this
 * one stylesheet and get the full chrome.
 * ───────────────────────────────────────────────────────────── */

:root {
  --mr-bg:         #FBFAFC;
  --mr-bg-soft:    #F7F4FB;
  --mr-card:       #FFFFFF;
  --mr-hairline:   #ECE6F2;
  --mr-hairline-2: #DCD2E8;
  --mr-ink:        #1A1A2E;
  --mr-ink-soft:   #3D3856;
  --mr-mute:       #7A7390;
  --mr-mute-2:     #A39CB8;
  --mr-accent:     #7C3AED;
  --mr-accent-2:   #8B5CF6;
  --mr-accent-3:   #6D28D9;
  --mr-accent-soft:#F3EDFF;
  --mr-ok:         #22C55E;
  --mr-shadow-sm:  0 1px 2px rgba(29,26,45,0.04);
  --mr-shadow:     0 4px 14px rgba(29,26,45,0.06);
  --mr-shadow-lg:  0 16px 44px rgba(29,26,45,0.10);
}

.mr-wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

/* Reserve space for JS-injected header to prevent CLS */
#mr-site-header { display: block; min-height: 64px; }

/* ─── header ─── */
header.mr-site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,252,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(29,26,45,0.05);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
header.mr-site .mr-wrap { display: flex; align-items: center; gap: 18px; padding: 14px 26px; min-height: 64px; }
.mr-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--mr-ink); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.mr-brand-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 1px solid var(--mr-hairline);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mr-brand-avatar img { width: 28px; height: 28px; object-fit: contain; display: block; }
.mr-nav-main { margin-left: 24px; display: inline-flex; align-items: center; gap: 22px; font-size: 14px; color: var(--mr-mute); font-weight: 500; flex-shrink: 1; }
.mr-nav-main a { color: inherit; text-decoration: none; transition: color .15s; }
.mr-nav-main a:hover, .mr-nav-main a.is-active { color: var(--mr-ink); }
.mr-nav-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
#auth-slot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mr-mute); font-weight: 500; max-width: 220px; }
#auth-slot a { color: inherit; text-decoration: none; transition: color .15s; }
#auth-slot a:hover { color: var(--mr-ink); }
.mr-cta-purple {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  background: var(--mr-accent); color: #fff;
  font-weight: 600; font-size: 14px; line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(124,58,237,0.28);
  transition: transform .08s, box-shadow .15s, background .15s;
  border: none; cursor: pointer;
}
.mr-cta-purple:hover { background: var(--mr-accent-3); box-shadow: 0 10px 26px rgba(124,58,237,0.36); transform: translateY(-1px); }
.mr-cta-purple:active { transform: translateY(0); }

.mr-nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--mr-hairline-2);
  background: #fff; border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.mr-nav-toggle span {
  width: 16px; height: 1.5px;
  background: var(--mr-ink);
  position: relative;
}
.mr-nav-toggle span::before, .mr-nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--mr-ink);
}
.mr-nav-toggle span::before { top: -5px; }
.mr-nav-toggle span::after  { top:  5px; }

/* ─── footer ─── */
footer.mr-site {
  background: var(--mr-bg-soft);
  border-top: 1px solid var(--mr-hairline);
  padding: 36px 0 28px;
  margin-top: 60px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--mr-mute);
}
.mr-foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.6fr;
  gap: 24px;
  align-items: center;
}
.mr-foot-left { display: flex; flex-direction: column; gap: 4px; }
.mr-foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--mr-ink); }
.mr-foot-tagline { color: var(--mr-mute); font-size: 13px; }
.mr-foot-nav {
  display: inline-flex; flex-wrap: wrap; gap: 20px;
  color: var(--mr-mute); font-size: 13px;
  justify-content: center;
}
.mr-foot-nav a { color: inherit; text-decoration: none; }
.mr-foot-nav a:hover { color: var(--mr-ink); }
.mr-foot-social { display: inline-flex; justify-content: flex-end; gap: 10px; }
.mr-foot-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--mr-hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mr-mute); font-size: 14px; text-decoration: none;
  transition: color .15s, border-color .15s;
}
.mr-foot-social a:hover { color: var(--mr-accent); border-color: var(--mr-accent); }
.mr-foot-bottom {
  border-top: 1px solid var(--mr-hairline);
  margin-top: 22px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--mr-mute);
}
.mr-foot-bottom a { color: inherit; text-decoration: none; }
.mr-foot-bottom a:hover { color: var(--mr-ink); }

/* ─── mobile ─── */
@media (max-width: 780px) {
  .mr-nav-main {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--mr-hairline);
    margin: 0; padding: 8px 18px 16px;
  }
  .mr-nav-main a { padding: 12px 4px; font-size: 15px; }
  header.mr-site.is-open .mr-nav-main { display: flex; }
  .mr-nav-toggle { display: inline-flex; }
  .mr-foot-grid { grid-template-columns: 1fr; text-align: center; }
  .mr-foot-nav, .mr-foot-social { justify-content: center; }
}
