/* ==========================================================================
   Google Fonts: Baloo Da 2 (Headings), Hind Siliguri (Body), JetBrains Mono (Code)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400;500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --md-text-font: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --md-code-font: "JetBrains Mono", SFMono-Regular, Consolas, Menlo, monospace;
}

/* Base Body Typography */
body, input {
  font-family: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Headings with Baloo Da 2 */
h1, h2, h3, h4, h5, h6,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.md-header__title {
  font-family: "Baloo Da 2", cursive, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: normal;
}

.md-typeset h1 {
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: var(--md-typeset-color);
}

.md-typeset h2 {
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.35;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.3rem;
}

.md-typeset h3 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.4;
  margin-top: 1.6rem;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 600;
}

/* Code & Monospace with JetBrains Mono */
pre, code, kbd,
.md-typeset code,
.md-typeset pre,
.md-typeset kbd {
  font-family: "JetBrains Mono", SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 0.88em;
}

.md-typeset pre > code {
  line-height: 1.5;
}

/* Responsive Image and Table Styling */
.md-typeset img {
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  height: auto;
}

.md-typeset table:not([class]) {
  font-size: 0.95rem;
  border-radius: 4px;
  overflow: hidden;
}

/* Blockquote & Admonition Tweaks for Bangla */
.md-typeset blockquote {
  border-left-width: 4px;
  font-style: normal;
  color: var(--md-default-fg-color--light);
}

.md-typeset .admonition,
.md-typeset details {
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Navigation & TOC */
.md-nav__link {
  font-family: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
}
