.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1200 !important;
  width: 100%;
  isolation: isolate;
}

.site-footer {
  position: relative;
  z-index: 80;
}

/* Keep the five desktop footer sections in one clean row. */
@media (min-width: 1100px) {
  .site-footer .footer-container {
    display: grid;
    grid-template-columns: 1.35fr 1.15fr .9fr 1fr .95fr;
    align-items: start;
    gap: clamp(16px, 1.7vw, 28px);
    width: min(100%, 1500px);
    max-width: 1500px;
    padding-inline: clamp(22px, 3vw, 48px);
  }

  .site-footer .footer-col {
    min-width: 0;
  }

  .site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-inline: 18px;
    white-space: nowrap;
  }

  .site-footer .footer-bottom p,
  .site-footer .footer-bottom .footer-legal-identity {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: clamp(8.5px, .72vw, 10.5px);
    line-height: 1.35;
  }

  .site-footer .footer-bottom p:first-child::after {
    content: " ·";
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .site-footer .footer-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-col {
    min-width: 0;
  }
}

.ad-sidebar {
  top: var(--km-ad-center-y, 50%) !important;
  transition: none !important;
  will-change: top, transform;
}

/* `hidden` on a scrolling ancestor can disable sticky positioning. `clip`
   still prevents horizontal overflow without creating a scroll container. */
html,
body {
  overflow-x: clip !important;
}

.site-footer .footer-social-row {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.site-footer .footer-social-row > span {
  color: #171717 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer .footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .footer-social-links a,
.site-footer .footer-social-links a:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(0, 0, 0, .84);
  border-radius: 999px;
  background: #17191b;
  color: #fff !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.site-footer .footer-social-links a svg {
  box-sizing: border-box;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: #fbb900;
  color: #111 !important;
  fill: currentColor;
  transition: transform .18s ease, background .18s ease;
}

html body .site-footer .footer-social-links a span,
html[data-theme="dark"] body .site-footer .footer-social-links a span,
html body .site-footer .footer-social-links a:visited span,
html body .site-footer .footer-social-links a:hover span,
html body .site-footer .footer-social-links a:focus-visible span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.site-footer .footer-social-links a:hover,
.site-footer .footer-social-links a:focus-visible {
  transform: translateY(-2px);
  background: #050607;
  color: #fff !important;
  box-shadow: 0 8px 17px rgba(0, 0, 0, .24);
  outline: 3px solid rgba(17, 17, 17, .18);
  outline-offset: 2px;
}

.site-footer .footer-social-links a:hover svg,
.site-footer .footer-social-links a:focus-visible svg {
  transform: rotate(-5deg) scale(1.06);
  background: #ffd451;
}

@media (max-width: 768px) {
  .site-footer .footer-social-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .site-footer .footer-social-links a {
    min-width: 0;
    justify-content: flex-start;
    padding-right: 8px;
  }
}

@media (max-width: 390px) {
  .site-footer .footer-social-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-social-links a,
  .site-footer .footer-social-links a svg {
    transition: none;
  }
}
