@font-face {
  font-family: "Karam Tiro";
  src: url("tiro-hindi.ttf") format("truetype");
  font-display: swap;
}
:root { --reading-face: "Karam Tiro", "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif; }
html:lang(hi) body { font-family: var(--reading-face); }
html:lang(hi) :is(header nav, #mobile-menu, #desktop-menu-links, #mobile-menu-links),
html:lang(hi) header nav [style*="font-family"] { font-family: var(--reading-face) !important; }
html:lang(hi) :is(h1,h2,h3) { text-wrap: balance; overflow-wrap: break-word; }
html:lang(hi) :is(h1,h2,h3).leading-none { line-height: 1.28; }
#desktop-menu-links { gap: clamp(.55rem, 1.1vw, 1.25rem); font-size: clamp(.9rem, 1.12vw, 1.08rem); line-height: 1.55; }
#desktop-menu-links > a { margin-inline: 0; white-space: nowrap; }
#mobile-menu { max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); overflow-y: auto; overscroll-behavior-y: contain; }
#mobile-menu a { line-height: 1.55; }
#mobile-menu-btn { min-width: 44px; min-height: 44px; }
:is(a,button,input,select,textarea):focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.hero-section:has(> section) { height: auto; padding-bottom: 0; min-height: 250px; }
.hero-section > section { width: 100%; min-height: inherit; height: auto; }
.hero-section > section > .text-center { padding-block: clamp(1.8rem, 5vw, 4rem); }
.hero-section > section h2 { line-height: 1.4; font-size: clamp(1.9rem, 4.7vw, 3.75rem); }
@media (min-width: 768px) { .hero-section:has(> section) { min-height: 400px; } }
@media (hover: none), (prefers-reduced-motion: reduce) {
  body, .hero-section, .hero-parallax, .bg-fixed { background-attachment: scroll !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scrolling-container { white-space: normal; }
  .scrolling-text { padding-left: 0; transform: none; animation: none !important; }
  .flower { visibility: hidden; }
}
#mobile-menu.kb-existing-links { position: absolute; inset: 100% 0 auto; padding: .75rem 1rem; background: inherit; }
#mobile-menu.kb-existing-links:not(.hidden) { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
#mobile-menu.kb-existing-links a { margin: 0; padding: .45rem .75rem; }
@media (max-width: 767px) {
  [data-kb-page="index"] section:has(> .landscape-bg) { width: 100%; }
  [data-kb-page="index"] .landscape-bg .flex-col > div { min-width: 0; max-width: 100%; }
  [data-kb-page="index"] .landscape-bg { overflow-wrap: anywhere; }
  [data-kb-page="founder"] .w-72.h-72 { width: min(100%,18rem); height: auto; aspect-ratio: 1; }
  [data-kb-page="contact"] .grid > div { min-width: 0; overflow-wrap: anywhere; }
  [data-kb-page="contact"] input, [data-kb-page="contact"] textarea { max-width: 100%; }
  [data-kb-page="aarti"] .w-32.h-32 { width: min(100%,8rem); height: auto; aspect-ratio: 1; }
}
[data-kb-page="balsangat"] .flex-col > div:has(canvas) { min-width: 0; max-width: 100%; width: 100%; }
[data-kb-page="founder_en"] footer { overflow-wrap: anywhere; }
[data-kb-page="gurumahima"] main, [data-kb-page="gurumahima"] section { min-width: 0; max-width: 100%; }
[data-kb-page="gurumahima"] section:has(.mix-blend-multiply) { overflow: clip; }
@media (min-width:1024px) { #mobile-menu.kb-existing-links.lg\:hidden { display: none; } }
@media (min-width:768px) { #mobile-menu.kb-existing-links.md\:hidden { display: none; } }
[data-kb-page="index"] .font-amita.w-fit.mx-auto { display: block; }
[data-kb-page="balsangat"] canvas, [data-kb-page="gurumahima"] canvas { max-width: 100%; }
[data-kb-page="gurumahima"] .shadow-inner:has(> .blur-3xl) { overflow: clip; }
[data-kb-page="founder_en"] a[href^="mailto:"] { overflow-wrap: anywhere; }
[data-kb-page="founder_en"] .relative:has(> .-rotate-3) { max-width: calc(100% - 1.5rem); margin-inline: auto; }
#mobile-menu.kb-existing-links.bg-white { background-color: white; }
#mobile-menu.kb-existing-links.bg-black { background-color: black; }
@media (min-width:1024px) {
  [data-kb-page="balsangat"] .flex-col > div.lg\:w-1\/2:has(canvas) { width: 50%; }
}
/* Keep prayer texts comfortable at narrow widths and preserve their original devotional colors. */
html:lang(hi) :is(.aarti-text,.chalisa-text) {text-wrap:pretty}
#toc-page a {display:inline-block;padding:.35rem 0;text-decoration:underline;text-underline-offset:.24em}
#toc-page {scroll-margin-top:6rem}
#audio-status:not(:empty) {display:block;max-width:18rem;padding:.3rem .5rem;border-radius:.5rem;background:#fff7e8;color:#713320;line-height:1.5}
@media(max-width:420px){#audio-status:not(:empty){max-width:9rem;font-size:.78rem}}
html:lang(hi) #desktop-menu-links > .menu-link:focus-visible, html:lang(hi) #desktop-menu-links > .menu-link:hover {background-color:#fff1df;color:#81381b}
html:lang(hi) #desktop-menu-links > .menu-link {border-radius:.4rem;padding:.3rem .15rem}
html:lang(hi) .shloka-container {border-inline-start-width:3px;border-radius:.3rem .8rem .8rem .3rem}
@media(pointer:coarse){.shloka-container:hover {transform:none}}
