/*
 * A plain page reached from the footer (core/page.html), in the flow's look: on the cream
 * ground, a white panel framed as the sections are (section.css: the same stroke, colour and
 * corners; no bead, snake or motion), centred, as tall as its text; the footer on the
 * screen's bottom edge, as under the flow. A long text makes the page scroll.
 */

@layer components {
  main:has(> .page) {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--size-header-band));
    background: var(--ground);
  }

  .page {
    flex: none;
    width: min(760px, 100% - 2 * var(--space-8)); /* lines of about 75 characters */
    margin: var(--space-12) auto; /* as much below as above */
    padding: var(--space-8);
    background: var(--panel);
    border: var(--stroke-frame) solid var(--rule);
    border-radius: var(--radius-md);
  }

  .page__title {
    margin: 0;
    font: var(--type-section-title);
    letter-spacing: var(--tracking-section-title);
    color: var(--text);
    text-transform: uppercase;
  }

  /* The text: sections under a bold heading, in the flow's body type. */
  .page__body {
    margin-top: var(--space-6);
    font: var(--type-body);
    color: var(--text);
  }

  .page__body p,
  .page__body ul {
    margin: 0 0 var(--space-3);
  }

  .page__body ul {
    padding-left: var(--space-6);
    list-style: square; /* the reset drops it; square, as the status glyphs */
  }

  .page__section {
    margin-top: var(--space-6);
  }

  .page__heading {
    margin: 0 0 var(--space-2);
    font: var(--type-question);
    color: var(--text);
  }

  .page__body .page__updated {
    margin: var(--space-6) 0 0;
    color: var(--text-muted);
  }

  main:has(> .page) > .page-footer {
    flex: none;
    margin-top: auto;
  }

  @media (width < 700px), (orientation: portrait) {
    .page {
      width: calc(100% - 2 * var(--space-4));
      margin-block: var(--space-6);
      padding: var(--space-4);
    }
  }
}
