/* One page-title system. Page layout, body copy and section headings stay local. */
:root {
  --kv-page-title-size: clamp(2.25rem, 4.7vw, 4.25rem);
  --kv-page-title-ink: #192b48;
  --kv-page-title-accent: #08796e;
}

html body h1.kv-page-title {
  font-family: 'Manrope', 'Kalpurush', sans-serif !important;
  font-size: var(--kv-page-title-size) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-synthesis: none;
  line-height: 1.12 !important;
  letter-spacing: -.045em !important;
  color: var(--kv-page-title-ink);
  text-wrap: balance;
  max-width: 100%;
}

/* Accents use the same type as the title; section calligraphy is unaffected. */
html body h1.kv-page-title :is(span, em, strong, .calligraphy) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  vertical-align: baseline;
}
html body h1.kv-page-title :is(em, .calligraphy, .hero-line-accent),
html body h1.kv-page-title > span:not(.hero-line) {
  color: var(--kv-page-title-accent) !important;
}
html body h1.kv-page-title .calligraphy {
  transform: none;
}

/* Bengali display faces follow the Fashion Motion Creative type pairing. */
@font-face {
  font-family: 'Galada';
  src: url('/assets/fonts/Galada-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0980-09FF, U+0964-0965, U+200C-200D;
}

html[lang='bn'] body h1.kv-page-title {
  font-family: 'Noto Serif Bengali', 'Manrope', 'Kalpurush', sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
}

html[lang='bn'] body h1.kv-page-title em.kv-title-script {
  font-family: 'Galada', 'Noto Serif Bengali', 'Kalpurush', sans-serif !important;
  font-weight: 400 !important;
  white-space: nowrap;
}

html body.payment-page h1.kv-page-title {
  font-weight: 600 !important;
}

/* The payment desk is an operational screen, with a compact title in both states. */
html body h1.kv-page-title--utility {
  font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -.03em !important;
}

@media (max-width: 600px) {
  :root { --kv-page-title-size: clamp(1.875rem, 8.6vw, 2.5rem); }
}
