body article pre,
body .entry-content pre,
body .post-content pre,
body .article-content pre,
body .page-content pre,
body .wp-block-code {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  margin: 1.6rem 0;
  padding: 3.65rem 1.15rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #30343d;
  color: #e8edf2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 34px rgba(23, 34, 51, 0.16);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  -webkit-overflow-scrolling: touch;
}

body .wp-block-code pre {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-code-block__toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  background: #3b404a;
  color: #b8c0cc;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.site-code-block__toolbar > * {
  min-width: 0;
}

.site-code-block__lang,
.site-code-block__env {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-code-block__lang {
  color: #ffffff;
}

.site-code-block__env {
  color: #c6ced9;
}

.site-code-block__copy {
  margin-left: auto;
  min-height: 1.9rem;
  max-width: 100%;
  padding: 0.22rem 0.62rem;
  border: 1px solid rgba(130, 216, 232, 0.4);
  border-radius: 8px;
  background: rgba(130, 216, 232, 0.1);
  color: #d6f6fb;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.site-code-block__copy:hover,
.site-code-block__copy:focus-visible {
  background: rgba(130, 216, 232, 0.2);
}

body article pre code,
body .entry-content pre code,
body .post-content pre code,
body .article-content pre code,
body .page-content pre code,
body .wp-block-code code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

body .entry-content :not(pre) > code,
body .post-content :not(pre) > code,
body .article-content :not(pre) > code,
body .page-content :not(pre) > code,
body article :not(pre) > code {
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(32, 79, 117, 0.16);
  border-radius: 6px;
  background: rgba(32, 79, 117, 0.08);
  color: #173f5f;
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.92em;
  white-space: normal;
}

body pre code .syntax-comment {
  color: #9aa4b2;
  font-style: italic;
}

body pre code .syntax-string {
  color: #a7d08c;
}

body pre code .syntax-number {
  color: #c7a6ff;
}

body pre code .syntax-keyword {
  color: #ffcc66;
}

body pre code .syntax-builtin {
  color: #f78fb3;
}

body pre code .syntax-function {
  color: #82d8e8;
}

body pre code .syntax-operator {
  color: #f1a97a;
}

@media (max-width: 720px) {
  .site-code-block__toolbar {
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-code-block__lang,
  .site-code-block__env {
    width: 100%;
    justify-content: flex-start;
  }

  .site-code-block__copy {
    width: 100%;
    margin-left: 0;
  }
}
