
@media (min-width: 1200px) {
  main.content {
    position: relative;
    left: -12rem;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* Wider ordinary lecture text without changing WebR geometry */

main.content section > h2,
main.content section > h3,
main.content section > h4,
main.content section > h5,
main.content section > p,
main.content section > ul,
main.content section > ol {
  width: 120%;
}

#quarto-margin-sidebar,
.quarto-code-links {
  display: none !important;
}

h2 {
  margin-top: 12em;
  margin-bottom: 1.5em;
}

h3 {
  margin-top: 12em;
  margin-bottom: 1.5em;
}

h4 {
  margin-top: 3em;
}

/* Introductory/pseudo headings: look like h2 */
h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.qwebr-editor {
  font-size: 0.75em;
}

.qwebr-output-code-area pre {
  font-size: 0.75em !important;
}



/* Ordinary WebR chunks */

.qwebr-interactive-area {
  width: 140%;
  margin-left: 0;

  margin-top: 1.40rem;
  margin-bottom: 1.25rem;
}


/* Plotting chunks */

.qwebr-interactive-area.webr-plot {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  column-gap: 1.5rem;
  align-items: center;
  width: 100%;
  margin-left: 0%;
}

.qwebr-interactive-area.webr-plot .qwebr-editor-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 150%;
  margin-bottom: 0.5rem;
}

.qwebr-interactive-area.webr-plot .qwebr-console-area {
  grid-column: 1;
  grid-row: 2;
}

.qwebr-interactive-area.webr-plot .qwebr-output-graph-area {
  grid-column: 2;
  grid-row: 2;
}


/* Default: ordinary WebR code and text output side by side */

.qwebr-interactive-area:not(.webr-plot) .qwebr-console-area {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.qwebr-interactive-area:not(.webr-plot) .qwebr-editor {
  flex: 50 1 0;
  min-width: 0;
}

.qwebr-interactive-area:not(.webr-plot) .qwebr-output-code-area {
  flex: 50 1 0;
  min-width: 0;
  margin-top: 0;
}

