.site-shell-header,
.site-shell-footer {
  font-family: var(--font-body);
}

.site-shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-shell-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 24px;
}

.site-shell-brand-icon-wrap {
  width: clamp(28px, 4.5vw, 34px);
  height: clamp(28px, 4.5vw, 34px);
  border-radius: 999px;
  background: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(55, 196, 234, 0.35);
}

.site-shell-brand-icon {
  width: clamp(16px, 2.8vw, 22px);
  height: clamp(16px, 2.8vw, 22px);
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.site-shell-brand-text {
  line-height: 1;
}

.site-shell-nav {
  display: flex;
  width: 100vw;
  height: calc(100dvh - var(--site-shell-header-offset, 82px));
  position: fixed;
  left: 0;
  top: var(--site-shell-header-offset, 82px);
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px 34px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
  z-index: 999;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s ease, visibility 0s linear 0.24s;
}

.site-shell-nav a {
  text-decoration: none;
  color: var(--color-slate-900);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  padding: 2px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.24s ease;
}

.site-shell-nav a:hover {
  color: var(--color-slate-900);
}

.site-shell-nav a[aria-current="page"] {
  color: var(--color-slate-900);
}

.site-shell-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-shell-menu-toggle:hover {
  background: var(--color-primary-strong);
}

.site-shell-cta.site-shell-cta-mobile {
  display: inline-flex;
  width: auto;
  margin-top: 22px;
  align-self: flex-start;
  padding: 14px 28px;
  font-size: 16px;
  line-height: 1.2;
}

.site-shell-cta.site-shell-cta-desktop {
  display: none;
}

.site-shell-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.site-shell-cta:hover {
  background: var(--color-primary-strong);
}

.site-shell-header.is-mobile-menu-open .site-shell-nav {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.site-shell-header.is-mobile-menu-open .site-shell-nav a {
  opacity: 1;
  transform: translateY(0);
}

.site-shell-header.is-mobile-menu-open .site-shell-nav a:nth-child(1) {
  transition-delay: 0.03s;
}

.site-shell-header.is-mobile-menu-open .site-shell-nav a:nth-child(2) {
  transition-delay: 0.06s;
}

.site-shell-header.is-mobile-menu-open .site-shell-nav a:nth-child(3) {
  transition-delay: 0.09s;
}

.site-shell-header.is-mobile-menu-open .site-shell-nav a:nth-child(4) {
  transition-delay: 0.12s;
}

.site-shell-header.is-mobile-menu-open .site-shell-nav a:nth-child(5) {
  transition-delay: 0.15s;
}

.site-shell-header.is-mobile-menu-open {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

body.site-shell-menu-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .site-shell-header {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }

  .site-shell-inner {
    flex-wrap: nowrap;
  }

  .site-shell-nav a {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .site-shell-nav a:hover,
  .site-shell-nav a:focus-visible {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
  }

  .site-shell-nav {
    display: flex;
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 0;
    border-top: 0;
    background: transparent;
    overflow: visible;
    z-index: auto;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .site-shell-nav a {
    opacity: 1;
    transform: none;
  }

  .site-shell-nav a[href="/scorecard/"] {
    font-weight: 700;
  }

  .site-shell-nav a[aria-current="page"] {
    font-weight: 700;
  }

  .site-shell-nav a[href="/scorecard/"][aria-current="page"] {
    background: transparent;
    border-color: transparent;
  }

  .site-shell-menu-toggle {
    display: none;
  }

  .site-shell-cta.site-shell-cta-mobile {
    display: none;
  }

  .site-shell-cta.site-shell-cta-desktop {
    display: inline-flex;
  }
}

.site-shell-footer {
  background: var(--color-slate-900);
  color: var(--color-slate-300);
}

.site-shell-footer .site-shell-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: block;
  text-align: center;
}

.site-shell-footer a {
  color: var(--color-primary);
}
