.ProseMirror {
  p {
    line-height: 1.6;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  p:first-child {
    margin-top: 0;
  }

  p:last-child {
    margin-bottom: 0;
  }

  > p {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  > p:first-child {
    margin-top: 0;
  }

  > p:last-child {
    margin-bottom: 0;
  }

  h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  h1,
  h2,
  h3 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
  }

  h1,
  h2,
  h3 {
    margin-top: 3rem;
  }

  a.link {
    color: #8c8c8c;
    text-decoration: underline dashed 0.5px;
    text-underline-offset: 0.3rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  hr {
    margin: 0;
    height: 0;
    color: inherit;
  }
}

.ProseMirror.darkMode {
  [data-type='horizontalRule'] {
    &.ProseMirror-selectednode {
      background-color: rgba(255, 255, 255, 0.1);

      hr {
        border-top-color: rgba(255, 255, 255, 0.3);
      }
    }

    &:hover:not(.ProseMirror-selectednode) {
      background-color: rgba(255, 255, 255, 0.1);
    }

    hr {
      border-width: 1px 0 0;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      background-color: rgba(255, 255, 255, 0.8);
    }
  }
}

.ProseMirror.lightMode {
  [data-type='horizontalRule'] {
    &.ProseMirror-selectednode {
      background-color: rgba(38, 38, 38, 0.05);

      hr {
        border-top-color: rgba(38, 38, 38, 0.3);
      }
    }

    &:hover:not(.ProseMirror-selectednode) {
      background-color: rgba(38, 38, 38, 0.05);
    }

    hr {
      border-width: 1px 0 0;
      border-top: 1px solid rgba(38, 38, 38, 0.2);
      background-color: rgba(38, 38, 38, 0.8);
    }
  }
}
