/* Self-hosted Mukta (SIL OFL 1.1, see fonts/mukta/OFL.txt). The unicode-range keeps it off English pages. */
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/mukta/mukta-devanagari-400-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../fonts/mukta/mukta-devanagari-600-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--na-topbar-h) + var(--na-space-4));
}

html.na-text-lg {
  font-size: 112.5%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--na-bg);
  color: var(--na-text);
  font-family: var(--na-font);
  font-size: var(--na-fs-body);
  line-height: var(--na-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Devanagari vowel signs sit above and below the line; a little more leading keeps them from clipping. */
:lang(ne) {
  --na-lh: 1.65;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--na-text);
  font-weight: 600;
  line-height: var(--na-lh-tight);
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1, .h1 { font-size: var(--na-fs-large-title); font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--na-fs-title2); }
h3, .h3 { font-size: var(--na-fs-title3); }
h4, .h4 { font-size: var(--na-fs-headline); }
h5, .h5, h6, .h6 { font-size: var(--na-fs-body); }

:lang(ne) h1, :lang(ne) h2, :lang(ne) h3, :lang(ne) .h1, :lang(ne) .h2, :lang(ne) .h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

.na-large-title { font-size: var(--na-fs-large-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.na-title1 { font-size: var(--na-fs-title1); font-weight: 700; line-height: 1.2; }
.na-title2 { font-size: var(--na-fs-title2); font-weight: 600; line-height: var(--na-lh-tight); }
.na-title3 { font-size: var(--na-fs-title3); font-weight: 600; line-height: var(--na-lh-tight); }
.na-headline { font-size: var(--na-fs-headline); font-weight: 600; }
.na-subhead { font-size: var(--na-fs-subhead); }
.na-footnote { font-size: var(--na-fs-footnote); }
.na-caption { font-size: var(--na-fs-caption); }
.na-muted, .text-muted { color: var(--na-muted) !important; }
.na-lead { font-size: 1.125rem; color: var(--na-muted); line-height: 1.6; }

p { margin-top: 0; margin-bottom: var(--na-space-4); }

a {
  color: var(--na-accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--na-accent-hover); text-decoration: underline; }

/* Links inside running text stay underlined so they never rely on colour alone. */
.na-prose a, p > a, li > a:not([class]) {
  text-decoration: underline;
}

:focus { outline: none; }

:focus-visible {
  outline: var(--na-focus-outline);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--na-accent-soft-strong); color: var(--na-text); }

hr { border: 0; border-top: 1px solid var(--na-line); opacity: 1; margin: var(--na-space-5) 0; }

img, svg { vertical-align: middle; }

.na-skip-link {
  position: absolute;
  left: var(--na-space-4);
  top: -100px;
  z-index: 1090;
  padding: 10px 16px;
  background: var(--na-surface);
  color: var(--na-accent-press);
  border: 2px solid var(--na-accent);
  border-radius: var(--na-radius-control);
  font-weight: 600;
  text-decoration: none;
}

.na-skip-link:focus, .na-skip-link:focus-visible { top: var(--na-space-3); }

.na-num,
.na-money {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.na-num { text-align: right; }

.na-money { display: inline-block; text-align: right; }

.na-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.125em;
}

.na-icon-lg { width: 1.25rem; height: 1.25rem; }

main:focus { outline: none; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
