
/* ======================================
   TAMINYAR — COMPACT SECTION LAYOUT V2
====================================== */

/* Remove forced fullscreen height */

html.ty-fullpage #main > section.ty-screen-section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin-block: 0 !important;

  scroll-snap-align: start;
  scroll-snap-stop: normal !important;

  box-sizing: border-box !important;
}

/* Desktop section spacing */

@media (min-width: 1024px) {

  html.ty-fullpage {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
  }

  html.ty-fullpage #main >
  section.ty-screen-section:not(.hero) {

    padding-top: 28px !important;
    padding-bottom: 28px !important;

    align-content: normal !important;
  }

  /* Keep the main hero prominent */

  html.ty-fullpage #main > section.hero {
    height: auto !important;
    min-height: 0 !important;

    padding-top: 24px !important;
    padding-bottom: 48px !important;
  }
}

/* Tablet */

@media (min-width: 701px) and (max-width: 1023px) {

  html.ty-fullpage #main >
  section.ty-screen-section:not(.hero) {

    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }
}

/* Mobile */

@media (max-width: 700px) {

  html.ty-fullpage {
    scroll-snap-type: none;
  }

  html.ty-fullpage #main >
  section.ty-screen-section:not(.hero) {

    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  html.ty-fullpage #main > section.hero {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }
}

/* Disable snapping while a modal is open */

html.ty-fullpage:has(
  #ty-app-release-modal.is-visible,
  #ty-download-thanks.is-visible
) {
  scroll-snap-type: none !important;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

  html.ty-fullpage {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

