/* ════════════════════════════════════════════════════════════════════════════
   SHARED CHROME — header (nav.top) + footer used across the index sub-site.
   Mirrors the homepage exactly so /articles, /methodology, /glossary etc. all
   feel like one product. Imported via <link rel="stylesheet" href="/shared-chrome.css" />.
   ════════════════════════════════════════════════════════════════════════════ */

/* ──────────── NAV ──────────── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}
/* Match BOTH `.container` and `.container-wide` so nav layout works on every
   page regardless of which container variant the page uses. Without this the
   flex rule was missing on lander/article pages and items stacked vertically. */
nav.top .container,
nav.top .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 64px;
  max-width: 1080px;
  padding: 0 24px;
  margin: 0 auto;
  gap: 18px;
}
/* Thinner, more proportional logo. The SVG viewBox has built-in padding so
   visible wordmark height is ~55% of the height value. 64px → ~36px wordmark. */
.logo {
  height: 64px;
  width: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo svg {
  height: 100%;
  width: auto;
  display: block;
}
.logo svg g,
.logo svg path {
  fill: #0c0b09;
  transition: fill .25s ease;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.top .nav-link {
  color: #0c0b09 !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}
nav.top .nav-link:hover { color: var(--vp-indigo, #3F36B2) !important; }
nav.top .nav-cta {
  background: #0c0b09;
  color: #fcfcfc !important;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
nav.top .nav-cta:hover { background: var(--vp-indigo, #3F36B2); }
nav.top .nav-cta:active { transform: scale(0.97); }

/* Burger — mobile only */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0c0b09;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 769px) {
  .nav-burger { display: none !important; }
}

/* Mobile slide-down panel */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  top: 76px;
  left: 0; right: 0;
  bottom: 0;
  padding: 32px 24px max(32px, env(safe-area-inset-bottom));
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 49;
  overflow-y: auto;
}
body.menu-open .nav-mobile-panel {
  display: flex;
  transform: translateY(0);
}
.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: #0c0b09;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}
.nav-mobile-cta {
  margin-top: 24px;
  padding: 16px 22px;
  background: #0c0b09;
  color: #fafafa !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  text-align: center;
}
body.menu-open { overflow: hidden !important; }

/* Mobile nav shrink + bigger logo on mobile (matches homepage) */
@media (max-width: 768px) {
  nav.top .container {
    height: 76px;
    padding: 0 16px !important;
  }
  .logo { height: 72px !important; }
}

/* ──────────── FOOTER ──────────── */
footer {
  background: #0c0b09;
  color: rgba(252, 252, 252, 0.55);
  padding: 64px 0 0;
  font-size: 14px;
}
footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
/* Four-column variant — for footers that include the new "Tools" column */
footer .footer-grid.footer-grid--4col {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 960px) {
  footer .footer-grid.footer-grid--4col { grid-template-columns: 1fr 1fr; gap: 32px; }
}
footer .footer-col-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(252, 252, 252, 0.42);
  margin: 0 0 18px;
}
footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-col li { margin-bottom: 10px; }
footer .footer-col a {
  color: rgba(252, 252, 252, 0.82);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .15s ease;
}
footer .footer-col a:hover { opacity: 0.65; }
footer .footer-col-center { text-align: center; }
footer .footer-col-right  { text-align: right; }
footer .footer-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: var(--vp-indigo, #3F36B2);
  color: #fcfcfc !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(63, 54, 178, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
footer .footer-email:hover { transform: translateY(-1px); }
footer .footer-email:active { transform: scale(0.97); }
footer .footer-legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(252, 252, 252, 0.08);
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0));
  font-size: 12px;
  color: rgba(252, 252, 252, 0.42);
}
footer .footer-legal-row > div {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
}
footer .footer-legal-row a {
  color: rgba(252, 252, 252, 0.62);
  font-size: 12px;
  text-decoration: none;
}

/* Mobile footer — single dark column with breathing room */
@media (max-width: 640px) {
  footer { padding: 56px 0 0; }
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
    margin-bottom: 32px;
  }
  footer .footer-col-center,
  footer .footer-col-right { text-align: left; }
  footer .footer-col a { font-size: 16px; }
  footer .footer-email { padding: 13px 20px; font-size: 14px; }
  footer .footer-legal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
