/* Mac 窗口三点：只画在 pre 上，避免 wp-block-code 包裹层再画一组 */
body.code-mac-on .single .content pre,
body.code-mac-on .editor-styles-wrapper pre,
.editor-styles-wrapper.code-mac-on pre {
  padding-top: 2.15em !important;
}

body.code-mac-on .single .content pre::before,
body.code-mac-on .editor-styles-wrapper pre::before,
.editor-styles-wrapper.code-mac-on pre::before {
  display: block;
  content: "";
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="45" height="12" viewBox="0 0 450 130"><ellipse cx="65" cy="65" rx="50" ry="52" stroke="rgb(220,60,54)" stroke-width="2" fill="rgb(237,108,96)"/><ellipse cx="225" cy="65" rx="50" ry="52" stroke="rgb(218,151,33)" stroke-width="2" fill="rgb(247,193,81)"/><ellipse cx="385" cy="65" rx="50" ry="52" stroke="rgb(27,161,37)" stroke-width="2" fill="rgb(100,200,86)"/></svg>');
  background-repeat: no-repeat;
  width: 45px;
  height: 16px;
  margin-bottom: 0.55em;
}

body.code-mac-on .single .content :not(pre).wp-block-code::before,
body.code-mac-on .editor-styles-wrapper :not(pre).wp-block-code::before,
.editor-styles-wrapper.code-mac-on :not(pre).wp-block-code::before,
body.code-mac-on .single .content pre pre::before,
body.code-mac-on .editor-styles-wrapper pre pre::before {
  content: none !important;
  display: none !important;
  background: none !important;
  height: 0 !important;
  margin: 0 !important;
}

/* 文颜/wenyan 会把同一份三点 SVG 写进 pre 里，藏掉以免和 ::before 叠两排 */
.single .content pre > section:first-child,
.single .content pre > svg:first-child,
.single .content pre > code > section:first-child,
.single .content pre > code > svg:first-child,
.editor-styles-wrapper pre > section:first-child,
.editor-styles-wrapper pre > svg:first-child,
.editor-styles-wrapper pre > code > section:first-child,
.editor-styles-wrapper pre > code > svg:first-child {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}
