body.jawa, .jawa, .jawa.original {
  --background-primary: #FBF8F2 !important;
  --background-primary-rgb: 251, 248, 242 !important;
  --background-secondary: #EFE4D2 !important;
  --background-secondary-rgb: 239, 228, 210 !important;
  --background-tertiary: #4A2810 !important;
  --background-tertiary-rgb: 74, 40, 16 !important;
  --text-primary: #4A2810 !important;
  --text-primary-rgb: 74, 40, 16 !important;
  --text-secondary: #C8963E !important;
  --text-secondary-rgb: 200, 150, 62 !important;
  --text-tertiary: #1F1A17 !important;
  --text-tertiary-rgb: 31, 26, 23 !important;
  --button-text-primary: #FFFFFF !important;
  --button-text-primary-rgb: 255, 255, 255 !important;
  --button-background-primary: #C8963E !important;
  --button-background-primary-rgb: 200, 150, 62 !important;
  --button-text-secondary: #FBF8F2 !important;
  --button-text-secondary-rgb: 251, 248, 242 !important;
  --button-background-secondary: #4A2810 !important;
  --button-background-secondary-rgb: 74, 40, 16 !important;

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

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

body.jawa.original {
  --texture-1: url("/media/template/exclusive/jawa/original/texture-1.png");
  --frame-cover-mask: url("/media/template/exclusive/jawa/original/mask-cover.png");
  --mask-couple: url("/media/template/exclusive/jawa/original/mask-couple.png");
  --mask-ls: url("/media/template/exclusive/jawa/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.jawa), body.jawa {
    height: 100vh;
    overflow: hidden;
  }

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

  .jawa .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 */
  .jawa section.top-cover,
  .jawa .top-cover,
  section.top-cover,
  .top-cover {
    display: none !important;
  }
}
