/* Unlayered, like the shell's tokens: a layered rule would lose to them. html:root outranks the dark theme blocks, so paper is always light. */
@media print {
  html:root {
    color-scheme: light;

    --color-ink: black;
    --color-ink-darker: black;
    --color-ink-dark: black;
    --color-ink-medium: black;
    --color-ink-light: black;
    --color-ink-lighter: oklch(92% 0.003 254);
    --color-ink-lightest: oklch(96% 0.002 252);
    --color-ink-inverted: white;
    --color-canvas: white;
    --color-link: black;
    --color-success: black;
    --color-error: black;
    --color-success-text: black;
    --color-error-text: black;
    --border: 1px solid black;
    --shadow: 0 0 0 1px oklch(var(--lch-black) / 5%),
              0 0.2em 0.2em oklch(var(--lch-black) / 5%),
              0 0.4em 0.4em oklch(var(--lch-black) / 5%),
              0 0.8em 0.8em oklch(var(--lch-black) / 5%);
    --shadow-card: 0 0 0 1px var(--tint-ink-5),
                   0 1px 2px oklch(var(--lch-black) / 5%),
                   0 4px 12px oklch(var(--lch-black) / 5%);
  }
}

@layer platform {
  @media print {
    body {
      background: white;
      color: black;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .site-header,
    .header__skip-navigation,
    .flash,
    .filter-bar,
    .filter__empty,
    #footer {
      display: none;
    }

    .page {
      inline-size: 100%;
      max-inline-size: none;
    }

    .panel {
      background: none;
      border: 0;
      box-shadow: none;
      padding: 0;
    }
  }
}
