/* SSC evidence-block spacing overlay, 2026-12-03.
   Source: app/evidence-spacing.css on codex/spacing-20261203 (2fdda11).
   Spacing only: margin. No font, color, background, or line-height changes.
   No --ssc-space-6 token: 64px is calc(var(--ssc-space-5) + var(--ssc-space-2)).
   Guides hub on the current live HTML still has style="...gap:16px...";
   those rules subtract the existing grid gap so the visible block gap is
   still 64/48/32. A later full export with gap:0 uses the repo stylesheet
   as committed and should not keep this overlay file. */

:is(
  section.ssc-section.is-evidence .ssc-section-heading:has(> h2 ~ h2),
  .ssc-page > section.ssc-section > div.is-evidence
) {
  > h2 ~ h2 {
    margin-top: calc(var(--ssc-space-5) + var(--ssc-space-2));
  }

  > :is(ul, ol) {
    margin-block: 0;
  }

  > h2 + :is(p, ul, ol),
  > p + p {
    margin-top: var(--ssc-space-2);
  }

  li + li {
    margin-top: var(--ssc-space-1);
  }

  @media (max-width: 1199px) {
    > h2 ~ h2 {
      margin-top: var(--ssc-space-5);
    }
  }

  @media (max-width: 767px) {
    > h2 ~ h2 {
      margin-top: var(--ssc-space-4);
    }
  }
}

/* Live Guides hub: inline grid gap is 16px (var(--ssc-space-2)). */
.is-page article.is-evidence:has(> nav > a[aria-current='page'][href$='/guides']) > div {
  > h2 ~ h2 {
    margin-top: calc(var(--ssc-space-5) + var(--ssc-space-2) - var(--ssc-space-2));
  }

  > :is(ul, ol) {
    margin-block: 0;
  }

  > h2 + :is(p, ul, ol),
  > p + p {
    margin-top: 0;
  }

  li + li {
    margin-top: var(--ssc-space-1);
  }

  @media (max-width: 1199px) {
    > h2 ~ h2 {
      margin-top: calc(var(--ssc-space-5) - var(--ssc-space-2));
    }
  }

  @media (max-width: 767px) {
    > h2 ~ h2 {
      margin-top: calc(var(--ssc-space-4) - var(--ssc-space-2));
    }
  }
}
