/* Layout helpers for one-off arrangements, on the spacing tokens (ADR-0031).
   A utility carries layout only -- never a colour, a font, a border or a shadow --
   and test_stylesheet_lint.py fails one that does, so nothing here can add a pair
   to the contrast matrix. */
  .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
  .row.baseline { align-items: baseline; }
  .stack-2 > * + * { margin-top: var(--space-2); }
  .stack-3 > * + * { margin-top: var(--space-3); }
  .stack-5 > * + * { margin-top: var(--space-5); }
  .grow { flex: 1 1 0; min-width: 0; }
  .push { margin-left: auto; }
  .mt-0 { margin-top: 0; } .mt-3 { margin-top: var(--space-3); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
  .flush { margin: 0; padding: 0; }
  /* A form that stands in a line of text or among inline buttons. */
  .inline-form { display: inline; }
  /* Two widths: a column you read (--content-max) and a wide page for lists and forms
     (--wide-max), which a page asks for with `wide` on <main>. Worked out once, here, so
     the page, the banner's flash and the banner read the same insets and cannot drift
     apart. Each `100%` is resolved where the variable is used, against the one column
     the banner, the stripe and the page all stand in: the page is centred in it, and the
     banner stands on the wide page's edges. */
  :root {
    --gutter: var(--space-6);
    --page-max: var(--content-max);
    --page-inset: max(var(--gutter), (100% - var(--page-max)) / 2 + var(--gutter));
    --frame-inset: max(var(--gutter), (100% - var(--wide-max)) / 2 + var(--gutter));
  }
  :root:has(main.page.wide) { --page-max: var(--wide-max); }
  .page { padding: var(--space-6) var(--page-inset); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  @media (max-width: 560px) {
    :root { --gutter: var(--space-4); }
    .page { padding: var(--space-5) var(--page-inset); }
  }
