/* Load a Bengali webfont so the বাংলা explanations render consistently on every device. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;600;700&display=swap');

:root {
  --md-text-font: "Roboto", "Noto Sans Bengali", -apple-system, "Segoe UI", sans-serif;
}

/* Ensure Bengali glyphs pick up the Bengali font even inside the body text. */
.md-typeset {
  font-feature-settings: "kern", "liga";
}

/* Wide tables (glossaries, cheat sheets) should scroll horizontally on small screens
   instead of overflowing the layout. */
.md-typeset .md-typeset__table {
  overflow-x: auto;
}
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
}

/* Give the "Download PDF" button a little breathing room under the page title. */
.md-typeset .md-button {
  margin: 0.3rem 0 1rem 0;
}

/* Slightly tighter display-math spacing so long derivations stay compact. */
.md-typeset mjx-container[display="true"] {
  margin: 0.6em 0;
}
