:root {
  --ai24-header-offset: 65px;
}

html {
  scroll-padding-top: 89px;
}

[id] {
  scroll-margin-top: 89px;
}

body {
  padding-top: var(--ai24-header-offset);
}

.header,
body.theme-v13 > .header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.header::after,
body.theme-v13 > .header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 22px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(12, 21, 38, 0.18) 0%,
    rgba(12, 21, 38, 0.09) 45%,
    rgba(12, 21, 38, 0.03) 70%,
    rgba(12, 21, 38, 0) 100%
  );
}

.header > .header-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  :root {
    --ai24-header-offset: 61px;
  }

  html {
    scroll-padding-top: 85px;
  }

  [id] {
    scroll-margin-top: 85px;
  }
}

@media (max-width: 680px) {
  :root {
    --ai24-header-offset: 57px;
  }

  html {
    scroll-padding-top: 81px;
  }

  [id] {
    scroll-margin-top: 81px;
  }
}
