/* Shared navigation and footer for the institutional pages. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-nav .nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  height: auto;
}

.site-nav .brand {
  flex: 0 0 auto;
}

.site-nav .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--gold2);
  background: rgba(245, 166, 35, .08);
  border: 1px solid rgba(245, 166, 35, .34);
  border-radius: 12px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.site-nav .nav-toggle:hover,
.site-nav .nav-toggle:focus-visible {
  color: #fff;
  background: rgba(245, 166, 35, .16);
  border-color: var(--gold);
  outline: none;
}

.site-nav .nav-toggle-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 15px;
}

.site-nav .nav-toggle-icon::before,
.site-nav .nav-toggle-icon::after,
.site-nav .nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, top .2s, opacity .2s;
}

.site-nav .nav-toggle-icon::before {
  content: "";
  top: 0;
}

.site-nav .nav-toggle-icon span {
  top: 6.5px;
}

.site-nav .nav-toggle-icon::after {
  content: "";
  top: 13px;
}

.site-nav.menu-open .nav-toggle-icon::before {
  top: 6.5px;
  transform: rotate(45deg);
}

.site-nav.menu-open .nav-toggle-icon span {
  opacity: 0;
}

.site-nav.menu-open .nav-toggle-icon::after {
  top: 6.5px;
  transform: rotate(-45deg);
}

.site-nav .brand img,
.site-footer .brand img {
  width: 44px;
  height: 44px;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.site-nav .nav-links a {
  display: block;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}

.site-nav .nav-links a:hover {
  color: var(--gold2);
  background: rgba(245, 166, 35, .08);
}

.site-nav .nav-links a.active,
.site-nav .nav-links a[aria-current="page"] {
  color: var(--gold2);
  background: rgba(245, 166, 35, .11);
  border-color: rgba(245, 166, 35, .34);
}

.site-nav .nav-cta {
  flex: 0 0 auto;
  padding: 11px 17px;
  font-size: .84rem;
}

.site-nav .nav-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-nav .nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.site-nav .nav-actions .btn {
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
}

.site-nav .nav-actions .btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-nav .nav-actions .btn-ghost {
  background: rgba(255, 255, 255, .035);
}

.site-nav .mobile-support {
  display: none;
}

/* Shared institutional footer. The link hub intentionally does not use it. */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 30px;
  background: var(--bg2);
}

.site-footer .foot {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.site-footer .foot-brand-block p {
  margin-top: 14px;
}

.site-footer h4 {
  margin-bottom: 16px;
}

.site-footer .foot-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--muted);
  transition: color .2s, transform .2s;
}

.site-footer .foot-link:hover {
  color: var(--gold2);
  transform: translateX(3px);
}

.site-footer .foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, .26);
  border-radius: 8px;
  background: rgba(245, 166, 35, .07);
}

.site-footer .foot-icon svg {
  width: 15px;
  height: 15px;
}

.site-footer .foot-address {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-footer .foot-address .foot-link {
  width: 100%;
  margin: 0;
  justify-content: center;
  text-align: center;
}

.site-footer .copy {
  margin-top: 24px;
  padding-top: 18px;
}

@media (max-width: 940px) {
  .site-nav .nav-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px 14px;
    min-height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-nav .brand {
    min-width: 0;
  }

  .site-nav .nav-toggle {
    display: inline-flex;
  }

  .site-nav .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .site-nav .nav-actions,
  .site-nav .nav-in > .nav-cta {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-nav.menu-open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-nav.menu-open .nav-actions,
  .site-nav.menu-open .nav-in > .nav-cta {
    display: flex;
  }

  .site-nav .nav-links a {
    width: 100%;
    padding: 11px 12px;
    text-align: left;
  }

  .site-nav .nav-actions {
    flex-direction: column;
    gap: 8px;
  }

  .site-nav .nav-actions .btn,
  .site-nav .nav-in > .nav-cta {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .site-nav .mobile-support {
    display: flex;
    margin-top: 2px;
  }
}

@media (max-width: 760px) {
  .site-footer .foot {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }

  .site-footer .foot-brand-block {
    text-align: center;
  }

  .site-footer .foot-brand-block .brand {
    width: fit-content;
    margin-inline: auto;
    justify-content: center;
  }

  .site-footer .foot-address {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .site-nav .brand span {
    font-size: .76rem;
  }

  .site-nav .brand small {
    font-size: .5rem;
    letter-spacing: 1px;
  }

  .site-nav .nav-cta {
    padding: 9px 12px;
    font-size: .74rem;
  }

  .hero .kicker {
    padding: 8px 12px;
    font-size: .62rem;
    letter-spacing: 1.2px;
  }
}
