body.batak, .batak, .batak.original {
  --background-primary: #F8F4EC !important;
  --background-primary-rgb: 248, 244, 236 !important;
  --background-secondary: #EFE6D8 !important;
  --background-secondary-rgb: 239, 230, 216 !important;
  --background-tertiary: #801818 !important;
  --background-tertiary-rgb: 128, 24, 24 !important;
  --text-primary: #801818 !important;
  --text-primary-rgb: 128, 24, 24 !important;
  --text-secondary: #C59B27 !important;
  --text-secondary-rgb: 197, 155, 39 !important;
  --text-tertiary: #1A1818 !important;
  --text-tertiary-rgb: 26, 24, 24 !important;
  --button-text-primary: #FFFFFF !important;
  --button-text-primary-rgb: 255, 255, 255 !important;
  --button-background-primary: #801818 !important;
  --button-background-primary-rgb: 128, 24, 24 !important;
  --button-text-secondary: #F8F4EC !important;
  --button-text-secondary-rgb: 248, 244, 236 !important;
  --button-background-secondary: #1A1818 !important;
  --button-background-secondary-rgb: 26, 24, 24 !important;

  --heading-family: 'Cinzel', 'Cinzel Decorative', 'Cormorant Upright', serif !important;
  --body-text-family: 'Plus Jakarta Sans', 'Montserrat', 'Abhaya Libre', serif !important;

  --texture-1: url("/media/template/exclusive/batak/original/texture-1.png");
  --frame-cover-mask: url("/media/template/exclusive/batak/original/mask-cover.png");
  --mask-couple: url("/media/template/exclusive/batak/original/mask-couple.png");
  --mask-ls: url("/media/template/exclusive/batak/original/mask-ls.png");
}

body.batak.original {
  --texture-1: url("/media/template/exclusive/batak/original/texture-1.png");
  --frame-cover-mask: url("/media/template/exclusive/batak/original/mask-cover.png");
  --mask-couple: url("/media/template/exclusive/batak/original/mask-couple.png");
  --mask-ls: url("/media/template/exclusive/batak/original/mask-ls.png");
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Opening cover smooth hide transition */
.top-cover.opened {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 1s !important;
}

/* Ensure secondary-pane scrolls cleanly on desktop */
@media (min-width: 961px) {
  html:has(body.batak), body.batak {
    height: 100vh;
    overflow: hidden;
  }

  .batak .kat-page__side-to-side {
    height: 100vh !important;
    overflow: hidden !important;
  }

  .batak .secondary-pane {
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* On desktop split view, TopCover is hidden because PrimaryPane serves as the cover */
  .batak section.top-cover,
  .batak .top-cover,
  section.top-cover,
  .top-cover {
    display: none !important;
  }
}
