/* A post built round a figure from the course (site/sims/course-stage.js, made in the S4mple
   repo). The figure and its two layouts are the script's own. This file is only the page round
   them: a part of the post wide enough to pin the figure beside its text, where a note's
   column is 48rem. Every colour is a --sim-* token from /sim-tokens.css. Define none here. */

/* The kit's mono, for the figure's controls: a post loads the app's note styling, which has
   no need of it (design/README.md). */
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* The sections with the figure. The script pins the figure when this is 1,000px wide or more,
   and otherwise keeps what it holds to a column of its own, so the gutters here match a
   note's page at each width. */
.post-wide { box-sizing: border-box; width: 100%; max-width: 96rem; margin: 0 auto; padding: 0 1rem; --course-post-column: 45rem; }
@media (min-width: 640px) { .post-wide { padding: 0 1.5rem; } }
/* The post's head and tail are a note's page each, and a page pads itself top and bottom:
   between them and the sections that would be a gap twice over. */
.post-head > [data-app-page] { padding-bottom: 0; }
.post-tail > [data-app-page] { padding-top: 0; }
/* One gap between the introduction and the sections, and the first heading level with the top
   of the figure pinned beside it. */
.post-wide { margin-top: 2.5rem; }
.post-wide [data-course-post] > section:first-of-type > h2:first-child { margin-top: 0; }
