/*
 * Scrolling model
 * Keep exactly one vertical page scroller: the root document (<html>).
 * Do not make <body> or <main> nested vertical scroll containers, otherwise
 * mouse-wheel/trackpad events can get trapped while the browser scrollbar
 * still remains draggable.
 */
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto !important;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto !important;
  min-height: 100%;
  position: static !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
}

main {
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
}

/* Homepage and all supplied page templates stay in normal document flow. */
body.home,
body.page {
  height: auto !important;
  min-height: 100%;
  overflow: visible !important;
}

img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------------------------------------------------------
   Custom desktop cursor
   --------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  html.hs-custom-cursor,
  html.hs-custom-cursor body,
  html.hs-custom-cursor a,
  html.hs-custom-cursor button,
  html.hs-custom-cursor [role="button"],
  html.hs-custom-cursor input[type="button"],
  html.hs-custom-cursor input[type="submit"],
  html.hs-custom-cursor input[type="reset"],
  html.hs-custom-cursor summary,
  html.hs-custom-cursor label[for] {
    cursor: none !important;
  }

  /* Keep familiar text/form cursors where precision matters. */
  html.hs-custom-cursor input:not([type="button"]):not([type="submit"]):not([type="reset"]),
  html.hs-custom-cursor textarea,
  html.hs-custom-cursor select,
  html.hs-custom-cursor [contenteditable="true"] {
    cursor: auto !important;
  }

  .hs-cursor-dot,
  .hs-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483646;
    pointer-events: none;
    opacity: 0;
    will-change: transform, width, height, opacity, border-color, background-color;
  }

  .hs-cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
    transition: opacity 140ms ease, transform 70ms linear;
  }

  .hs-cursor-ring {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 1px solid rgba(56, 189, 248, 0.85);
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.04);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
    transition:
      width 180ms ease,
      height 180ms ease,
      margin 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease,
      opacity 140ms ease;
  }

  .hs-cursor-dot.is-visible,
  .hs-cursor-ring.is-visible {
    opacity: 1;
  }

  .hs-cursor-ring.is-interactive {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(56, 189, 248, 0.10);
  }

  .hs-cursor-ring.is-pressed {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    background: rgba(56, 189, 248, 0.18);
  }

  .hs-cursor-dot.is-hidden,
  .hs-cursor-ring.is-hidden {
    opacity: 0 !important;
  }
}

