html,
body {
  height: 100%;
  overflow: hidden;
}
#marketing-scroller {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
}
.custom-scroll-ready #marketing-scroller {
  scrollbar-width: none;
}
.custom-scroll-ready #marketing-scroller::-webkit-scrollbar {
  display: none;
}
#page-scrollbar {
  position: fixed;
  right: 4px;
  top: 100px;
  bottom: 12px;
  width: 18px;
  z-index: 800;
  cursor: pointer;
  touch-action: none;
  border-radius: 12px;
}
#page-scrollbar[hidden] {
  display: none;
}
/* The thumb sits over busy imagery, so it needs real contrast and a paper outline to stay visible. */
#page-scrollbar:before {
  content: '';
  position: absolute;
  inset: 0 7px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 4px;
}
.page-scrollbar-thumb {
  display: block;
  position: absolute;
  left: 6px;
  top: 0;
  width: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper) 70%, transparent);
  transition:
    left 120ms ease-out,
    width 120ms ease-out,
    background-color 120ms ease-out;
}
/* Hover, drag and keyboard focus show on the thumb itself (darker, wider), not as an accent ring. */
#page-scrollbar:focus-visible {
  outline: none;
}
#page-scrollbar:hover .page-scrollbar-thumb,
#page-scrollbar:active .page-scrollbar-thumb,
#page-scrollbar:focus-visible .page-scrollbar-thumb {
  left: 5px;
  width: 8px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .page-scrollbar-thumb {
    transition: none;
  }
}
@media (max-width: 700px) {
  #page-scrollbar {
    top: 84px;
    right: 1px;
  }
}
@media (max-width: 480px) {
  html:not([data-environment='production']) .site-header .wordmark > span {
    display: none;
  }
  .site-header {
    padding-inline: 16px;
  }
}
/* Compact layouts stack these ideas instead of squeezing three text columns. */
@media (max-width: 1000px) {
  #control {
    height: auto;
    min-height: 100svh;
    padding: 100px var(--gutter) 48px;
  }
  #control .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  #control .control-points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #control .control-points article {
    padding-top: 18px;
  }
  #control .control-points h3 {
    margin: 12px 0 10px;
  }
  #control .control-points p {
    max-width: 60ch;
  }
}
/* Native footer spacers must not reserve a second empty screen under the links. */
#v1-inline-root .footer .content-size {
  display: none;
}
#v1-inline-root .footer > .legal-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  min-height: 44px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
#v1-inline-root .footer > .legal-links button {
  min-height: 44px;
}
/* A phone has no room for the three links on one line (the Bulgarian labels barely fit at 375px
   and overflow narrower screens), so phones stack them in both languages for one stable layout. */
@media (max-width: 480px) {
  #v1-inline-root .footer > .legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}
#v1-tail {
  height: calc(7350px + var(--tail-footer-height, 100dvh));
}
#v1-inline-root .scroll-container {
  height: calc(7350px + var(--tail-footer-height, 100dvh));
}
/* Keep the live circle copy inside its stage at intermediate and phone widths. */
#v1-inline-root .text-picker .main-text-wrapper {
  height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}
#v1-inline-root .text-picker .circle-wrapper {
  height: 100%;
  top: 0;
  bottom: auto;
}
#v1-inline-root .main-text .text {
  width: min(66vw, 54svh);
  max-width: calc(100vw - 64px);
  white-space: normal;
  text-wrap: balance;
  font-size: clamp(17px, 2.4vw, 32px);
  line-height: 1.25;
  overflow-wrap: normal;
}
html.beta-native-open #marketing-scroller,
html:has(dialog[open]) #marketing-scroller {
  overflow: hidden;
}
html.beta-native-open #page-scrollbar,
html:has(dialog[open]) #page-scrollbar {
  display: none;
}
/* The unused native form was reserving an entire mobile viewport after the footer.
   Production reparents its real form into #v6-beta-host; Current links to Studio. */
#v1-inline-root .footer-wrapper > .contact-form-wrapper {
  display: none;
}
