
/* ============================================
   TAMINYAR HOMEPAGE — SECTION SPACING V3
   Compact layout / Natural content height
============================================ */

/* Base page behavior */

html.ty-fullpage {
  scroll-behavior: smooth;
  scroll-padding-top: var(--ty-header-offset, 0px);
}

/* Remove unwanted section gaps */

html.ty-fullpage #main > section.ty-screen-section {
  box-sizing: border-box !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  scroll-snap-stop: normal !important;
}

/* Desktop */

@media (min-width: 1024px) and (min-height: 650px) {

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

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

    padding-top: clamp(24px, 2.4vw, 36px) !important;
    padding-bottom: clamp(24px, 2.4vw, 36px) !important;

    align-content: normal !important;

    scroll-snap-align: start !important;
  }

  /* Homepage hero */

  html.ty-fullpage #main >
  section.ty-screen-section.hero {

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

    scroll-snap-align: start !important;
  }

  /* Compact section headings */

  html.ty-fullpage #main >
  section.ty-screen-section .section-head {

    margin-bottom: 24px !important;
  }

  html.ty-fullpage #main >
  section.ty-screen-section .section-head.center {

    margin-bottom: 24px !important;
  }

  /* No additional gaps between sections */

  html.ty-fullpage #main >
  section.ty-screen-section +
  section.ty-screen-section {

    margin-top: 0 !important;
  }
}

/* Tablet */

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

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

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

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

  html.ty-fullpage #main >
  section.ty-screen-section.hero {

    padding-top: 20px !important;
    padding-bottom: 28px !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: 18px !important;
    padding-bottom: 18px !important;
  }

  html.ty-fullpage #main >
  section.ty-screen-section.hero {

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

  html.ty-fullpage #main >
  section.ty-screen-section .section-head {

    margin-bottom: 18px !important;
  }
}

/* Modal behavior */

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

/* Accessibility */

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

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

