/* Shared NIR header chrome — homepage, Resources, guides must stay identical */
.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-top: 18px;
  padding-bottom: 16px;
  padding-left: var(--margin);
  padding-right: var(--margin);
  box-sizing: border-box;
}
.wordmark {
  display: flex;
  align-items: center;
  line-height: 0;
  min-width: 0;
  flex: 0 1 auto;
}
.wordmark img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(240px, 100%);
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.resources-nav {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 12px 22px;
  line-height: 1;
  white-space: nowrap;
}
.resources-nav:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.pill-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 13px 26px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

/* Hamburger — desktop hidden */
.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: none;
}
.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.25px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars span { top: 5.875px; display: block; }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 11.75px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 5.875px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 5.875px;
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .nav {
    padding-top: 14px;
    padding-bottom: 10px;
    position: relative;
  }
  .wordmark img {
    height: 32px;
    max-width: min(176px, 52vw);
  }
  .nav {
    align-items: center;
  }
  .nav-toggle {
    display: inline-flex;
    /* Hit target extends left; visible bars flush to content right
       so they share the hype video's right edge (same --margin). */
    width: 44px;
    height: 32px;
    min-width: 44px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }

  /* Collapse pills into menu panel */
  .nav-end {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: var(--margin);
    left: var(--margin);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid rgba(230, 228, 223, 0.16);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 30;
  }
  .nav-end.is-open { display: flex; }
  .nav-end .resources-nav,
  .nav-end .pill-primary {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 14px 18px;
    white-space: normal;
  }
}

/* Page lock — no horizontal wiggle */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Shared site footer — exact homepage chrome, all pages */
.footer {
  border-top: none;
  padding-top: 8px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 11px;
  background: transparent;
}
.footer p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 28px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--margin, 72px);
  padding-right: var(--margin, 72px);
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
}
.footer p > span:nth-child(2) {
  margin-left: 0;
  order: unset;
  width: auto;
}
.footer-li {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  height: 11px;
  line-height: 1;
  text-decoration: none;
}
.footer-li svg {
  display: block;
  width: 10px;
  height: 10px;
}
.footer-res {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  height: 11px;
  line-height: 1;
}
.footer-res svg {
  display: block;
  width: 11px;
  height: 11px;
}
@media (max-width: 800px) {
  .footer p {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .footer p > span:nth-child(2) {
    order: unset;
    width: auto;
    margin: 0;
  }
  .footer-li {
    transform: none;
    height: auto;
    min-width: 32px;
    min-height: 32px;
    padding: 8px 0;
    box-sizing: content-box;
  }
  .footer-li svg {
    width: 13px;
    height: 13px;
  }
  .footer-res {
    transform: none;
    height: auto;
    min-width: 32px;
    min-height: 32px;
    padding: 8px 0;
    box-sizing: content-box;
  }
  .footer-res svg {
    width: 13px;
    height: 13px;
  }
}
