/* User Provided Stylesheet */

/* R2lab docs - site-wide style overrides */

/* Inria's corporate font, same source and fallback stack as r2lab.inria.fr */
@import url("https://commons.inria.fr/INRIA_FONT/InriaSans/Web/fonts.css");

:root {
  --r2lab-font: 'Inria Sans', 'Ubuntu', sans-serif;
}

/* the book theme uses tailwind's font-sans for body text and headings;
   code blocks and inline code keep their monospace font (font-mono) */
html body,
html .font-sans {
  font-family: var(--r2lab-font);
}

/* ---------- use the page width more effectively
 * wider text column, narrower margins around it; starting point borrowed
 * from the rust course (ue12-p26-rust/notebooks/_static/style_local.css)
 * the one change that matters is the 10fr track in the middle of the body
 */
@media (min-width: 1280px) {
  html body {
    .article-grid, .xl\:article-grid {
      grid-template-columns:
        [screen-start] .5rem
        [screen-inset-start] 1fr
        [page-start] 3rem
        [page-inset-start] 12rem
        [body-outset-start] 3rem
        [body-start gutter-left-start] 1rem
        [body-inset-start] minmax(8ch, 10ch)
        [middle-start] minmax(8ch, 10ch)
        [gutter-left-end] minmax(8ch, 10ch)
        10fr
        [gutter-right-start] minmax(8ch, 10ch)
        [middle-end] minmax(8ch, 10ch)
        [body-inset-end] 1rem
        [body-end gutter-right-end] 3rem
        [body-outset-end] minmax(5rem, 13rem)
        [page-inset-end] 3rem
        [page-end] 1fr
        [screen-inset-end] .5rem
        [screen-end] !important;
    }
  }
}
