/* ==========================================================================
   OBJECTS · APPARATUS — the reading frame that reserves a right-hand margin
   for the citation apparatus. It is a wide container (reading measure + gap +
   sidenote column) into which the sidenote component floats its notes on
   desktop. Unskinned: it owns width and the margin reserve, no colour.
   The visible note styling and the mobile popover live in the sidenote
   component (06-components/_sidenote.css).
   ========================================================================== */

.o-apparatus {
  max-width: calc(var(--measure) + var(--apparatus-gap) + var(--apparatus-aside));
  margin-inline: auto;
}

/* The reading column keeps the measure; the margin to its right is left free
   so floated sidenotes have somewhere to land. */
.o-apparatus > * {
  max-width: var(--measure);
}

/* Below the apparatus breakpoint there is no margin column: the container is
   just a normal measured reading column and notes fold inline (see component). */
@media (max-width: 71.99rem) {
  .o-apparatus {
    max-width: var(--measure);
  }
}

/* At ≥78rem the frame is wide enough to reserve a margin on BOTH sides: citation
   notes move into a left column, glossary/enrichment asides keep the right one.
   Widen the frame to hold two (narrower, dual-mode) asides and centre the reading
   column between them so each margin is free for its own float stream. This width
   still fits inside the 78rem `.o-container`. (72–78rem keeps the single right
   margin above; both note streams share it there, stacked by clear.) */
@media (min-width: 78rem) {
  .o-apparatus {
    max-width: calc(var(--measure) + 2 * (var(--apparatus-gap) + var(--apparatus-aside-dual)));
  }
  .o-apparatus > * {
    margin-inline: auto;
  }
}
