:root { scroll-padding-top: 54px; }
.sticky-header {
  --expanded-header: 75px;
  --compact-header: 54px;
  position: sticky;
  top: 0;
  z-index: 8;
  height: var(--expanded-header);
  pointer-events: none;
}
.sticky-header-primary { --expanded-header: 68px; }
.sticky-header-surface {
  --header-tint: var(--ground, var(--paper));
  background: var(--header-tint);
  overflow: clip;
  pointer-events: auto;
  width: 100%;
  margin-inline: auto;
  border-radius: 0;
  transition: width .32s cubic-bezier(.2,.8,.2,1), border-radius .28s ease,
    transform .28s cubic-bezier(.2,.8,.2,1), background-color .22s ease, box-shadow .22s ease;
}
.sticky-header .sticky-header-surface > header {
  height: var(--expanded-header);
  min-height: 0;
  transition: height .25s cubic-bezier(.2,.8,.2,1);
}
.sticky-header nav, .sticky-header .arch-logo span, .sticky-header .kedros-name span {
  transition: opacity .16s ease, transform .2s ease, visibility 0s;
}
.sticky-header.is-compact header { height: var(--compact-header); }
.sticky-header.is-compact:not(.sticky-header-primary) nav,
.sticky-header.is-compact .arch-logo span,
.sticky-header.is-compact .kedros-name span {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition-delay: 0s, 0s, .16s;
}
.sticky-header.is-compact .sticky-header-surface {
  width: min(100% - 16px, 820px);
  border-radius: 999px;
  transform: translateY(8px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent), 0 6px 19px #18201626;
}
.sticky-header.is-compact :is(.site-header, .demo-header) {
  width: calc(100% - clamp(20px, 4vw, 48px));
}
.sticky-header-surface.ropi-dark { --header-tint: var(--dark); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (background-color: color-mix(in srgb, white, transparent)) {
  .sticky-header.is-compact .sticky-header-surface {
    background-color: color-mix(in srgb, var(--header-tint) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
    backdrop-filter: blur(16px) saturate(155%);
    box-shadow: inset 0 1px 0 #ffffff60,
      inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent),
      0 6px 19px #18201626;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .sticky-header.is-compact .sticky-header-surface {
    background-color: var(--header-tint);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.demo-header-phone { min-height: 44px; text-decoration: none; }
.demo-header-phone:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .sticky-header-primary { --expanded-header: 60px; }
}
@media (max-width: 580px) {
  .sticky-header:not(.sticky-header-primary) { --expanded-header: 94px; }
  .sticky-header .demo-header {
    padding-top: 0;
    grid-template-rows: var(--compact-header) minmax(0, 1fr);
  }
  .sticky-header.is-compact .demo-header nav { overflow: clip; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-header *, .sticky-header-surface { transition: none !important; }
}
