/* =========================================================
   nav-shared.css — loaded LAST on all pages except index.html
   Replicates the exact nav appearance of index.html on
   about, skills and all project pages.
   ========================================================= */

/* ── 1. Outer pill ────────────────────────────────────────
   Specificity: body .reference-header.site-header = 0,2,1
   Beats homepage-final's body.homepage-v4 .site-header at 0,2,1
   (same spec, loads later → wins)
   ──────────────────────────────────────────────────────── */
body .reference-header.site-header {
  position: fixed !important;
  top: 8px !important;
  left: 50% !important;
  right: auto !important;
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  transform: translateX(-50%) !important;
  z-index: 1000 !important;
  background: rgba(250, 250, 248, 1) !important;
  background-image: none !important;
  border: 0px solid rgba(23, 23, 23, .08) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(23, 23, 23, .06) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  inset: unset !important;
  top: 8px !important;
  left: 50% !important;
}

/* ── 2. Inner nav row ─────────────────────────────────────
   Specificity: body .reference-header .reference-nav = 0,2,1
   ──────────────────────────────────────────────────────── */
body .reference-header .reference-nav {
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  padding-inline: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

/* ── 3. Menu flex container ───────────────────────────────
   styles.css has .site-header nav { gap:24px !important } at 0,1,1
   body .reference-menu is also 0,1,1 — loads later → wins
   Match index.html: gap = 24px
   ──────────────────────────────────────────────────────── */
body .reference-menu {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

/* ── 4. Nav links ─────────────────────────────────────────
   Specificity: body .reference-menu a = 0,1,2
   Beats project-cascade .reference-menu a at 0,1,1
   font-weight 450 matches index.html
   ──────────────────────────────────────────────────────── */
body .reference-menu a {
  color: rgba(23, 23, 23, .72) !important;
  font-size: .94rem !important;
  font-weight: 450 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

body .reference-menu a:hover,
body .reference-menu a:focus-visible {
  color: #171717 !important;
  opacity: 1 !important;
}

body .reference-menu a[aria-current="page"] {
  color: #000000 !important;
  background: none !important;
  box-shadow: none !important;
}

/* ── 5. LinkedIn button ───────────────────────────────────
   shared-components has .site-header a[href*="linkedin.com"]
   at 0,2,1 which adds pill border.
   body .reference-header .reference-linkedin = 0,2,1 (same)
   — loads later → wins, removes the border.
   ──────────────────────────────────────────────────────── */
body .reference-header .reference-linkedin {
  background: transparent !important;
  border: 0px !important;
  box-shadow: none !important;
  color: rgba(23, 23, 23, .64) !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

body .reference-header .reference-linkedin span {
  display: block !important;
  font-size: .94rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: rgba(23, 23, 23, .64) !important;
}

body .reference-header .reference-linkedin:hover,
body .reference-header .reference-linkedin:focus-visible {
  background: rgba(255, 255, 255, .72) !important;
  color: #171717 !important;
  transform: translateY(-1px) !important;
}

body .reference-header .reference-linkedin:hover span,
body .reference-header .reference-linkedin:focus-visible span {
  color: #171717 !important;
}

/* ── 7. Responsive pill sizing ────────────────────────────*/
@media (max-width: 900px) {
  body .reference-header.site-header {
    width: calc(100% - 24px) !important;
    top: 10px !important;
  }
  body .reference-menu {
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  body .reference-header.site-header {
    width: calc(100% - 20px) !important;
    border-radius: 20px !important;
  }
  body .reference-menu {
    gap: 14px !important;
  }
  body .reference-menu a {
    font-size: .82rem !important;
  }
  body .reference-header .reference-linkedin {
    min-height: 36px !important;
    padding: 8px 10px !important;
  }
}


/* =========================================================
   Contact section — match index.html (.black class treatment
   from homepage-final.css, only loaded on index.html).
   Without these, .contact-box { color:#fff } from styles.css
   makes text white-on-light = invisible on all other pages.
   ========================================================= */

/* Base .black class — all text becomes dark/readable */
.black {
  color: #000 !important;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: .96rem !important;
  font-weight: 500 !important;
}

/* Paragraphs and links inside .black container */
.black p,
.black a {
  color: #000 !important;
}

/* Spans (labels) inside .black — use muted tone matching --v4-muted on index.html */
.black span {
  color: #66635f !important;
}

/* Contact-box heading — match Manrope large heading on index.html
   (from body.homepage-v4 .contact-box h2 in homepage-recruiter-refined.css) */
.contact-box h2 {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: clamp(2.35rem, 11vw, 3.5rem) !important;
  line-height: 1.01 !important;
  font-weight: 750 !important;
  letter-spacing: 0em !important;
  text-wrap: balance !important;
  color: #000 !important;
}

/* Contact rail — override white-on-white defaults from styles.css */
.black .contact-rail {
  border-top-color: 0px !important;
  border-bottom-color: 0px !important;
}

.black .contact-rail-item {
  color: #000 !important;
  border-right-color: 0px !important;
  border-bottom-color: 0px !important;
}

.black .contact-rail-item:hover,
.black .contact-rail-item:focus-visible {
  background: none !important;
}

.black .contact-rail-label {
  color: #66635f !important;
}

.black .contact-rail-item strong {
  color: #000 !important;
}

.black .contact-rail-arrow {
  color: #66635f !important;
}

/* =========================================================
   Global font consistency — ensure Manrope renders the same
   across all pages (index.html loads it, other pages now do
   too via nav-shared but need the font-face declaration).
   ========================================================= */

/* Ensure body font is consistent */
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}


/* =========================================================
   Footer — match index.html grid layout
   homepage-final.css gives index.html:
   body.homepage-v4 footer .shell { grid-template-columns: auto 1fr auto }
   Other pages get styles.css's late footer rules which differ subtly.
   These rules replicate the exact same layout on all other pages.
   ========================================================= */

/* Outer shell — logo | nav | copyright in one row */
.footer > .shell {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 28px !important;
  max-width: 1180px;
  margin-inline: auto;
}

/* footer-right uses display:contents so its children
   (footer-menu and footer-copy) flow into the shell grid */
.footer-right {
  display: contents !important;
}

/* Logo/brand — left column */
.footer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  justify-self: start !important;
}

/* Logo image inside footer-mark */
.footer-mark {
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}

.footer-mark .reference-logo {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Nav — centre column */
.footer-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: clamp(16px, 2.2vw, 28px) !important;
  white-space: nowrap !important;
  justify-self: center !important;
  grid-column: 2 !important;
}

.footer-menu a {
  font-size: 13px !important;
  color: rgba(255, 255, 255, .6) !important;
  text-decoration: none !important;
  transition: color .2s ease !important;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: #ffffff !important;
}

/* Copyright — right column */
.footer-copy {
  margin: 0 !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, .4) !important;
  white-space: nowrap !important;
  text-align: right !important;
  justify-self: end !important;
  grid-column: 3 !important;
}

/* Responsive footer */
@media (max-width: 640px) {
  .footer > .shell {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }
  .footer-right { display: contents !important; }
  .footer-brand { grid-column: 1 !important; }
  .footer-menu {
    justify-content: flex-start !important;
    justify-self: start !important;
    grid-column: 1 !important;
    gap: 12px 18px !important;
  }
  .footer-copy {
    justify-self: start !important;
    text-align: left !important;
    grid-column: 1 !important;
  }
}
