////
///Placeholder for Copyright ///
////

// ----------------------------------------------------------------------------
// Rules
// ----------------------------------------------------------------------------

// Scoped in typesetted content to match specificity of regular content
.md-typeset {

  // Deletion, addition or comment
  del.critic,
  ins.critic,
  .critic.comment {
    box-decoration-break: clone;
  }

  // Deletion
  del.critic {
    background-color: var(--md-typeset-del-color);
  }

  // Addition
  ins.critic {
    background-color: var(--md-typeset-ins-color);
  }

  // Comment
  .critic.comment {
    color: var(--md-code-hl-comment-color);

    // Comment opening mark
    &::before {
      content: "/* ";
    }

    // Comment closing mark
    &::after {
      content: " */";
    }
  }

  // Critic block
  .critic.block {
    display: block;
    margin: 1em 0;
    padding-right: px2rem(16px);
    padding-left: px2rem(16px);
    overflow: auto;
    box-shadow: none;

    // Adjust spacing on first child
    > :first-child {
      margin-top: 0.5em;
    }

    // Adjust spacing on last child
    > :last-child {
      margin-bottom: 0.5em;
    }
  }
}
