/*
 * Reading styles for a blog post's body (`Blog/Post.tsx`). In the
 * `components` layer so a Tailwind utility on an element inside the body
 * (eg an ad's own margin) still wins over these defaults.
 */
@layer components {
  .post_body__HaEwy {
    line-height: 1.75;
  }

  /* Everything below skips a `.not-prose` block, eg an embedded app demo
     (Insights on its blog post), which brings its own styles */

  .post_body__HaEwy > * + * {
    margin-top: 1.25em;
  }

  .post_body__HaEwy h2:not(.not-prose *) {
    font-family: var(--font-edu), Georgia, 'Times New Roman', serif;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.25em;
  }

  .post_body__HaEwy h3:not(.not-prose *) {
    font-family: var(--font-edu), Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75em;
  }

  .post_body__HaEwy h2 + *,
  .post_body__HaEwy h3 + * {
    margin-top: 0.5em;
  }

  .post_body__HaEwy a:not([class]):not(.not-prose *) {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .post_body__HaEwy ul:not(.not-prose *) {
    list-style: disc;
    padding-left: 1.25em;
  }

  .post_body__HaEwy ol:not(.not-prose *) {
    list-style: decimal;
    padding-left: 1.25em;
  }

  .post_body__HaEwy li + li:not(.not-prose *) {
    margin-top: 0.4em;
  }

  .post_body__HaEwy strong:not(.not-prose *) {
    font-weight: 600;
  }

  .post_body__HaEwy hr:not(.not-prose *) {
    border-color: color-mix(in oklab, var(--color-base-content) 12%, transparent);
    margin-block: 2.5em;
  }
}

