.article-content pre.wp-block-code {
    position: relative;
    overflow-x: auto;
    display: block;
    margin: 1.1em 0 2em;
    width: 100%;
    background: #f7f7f8;
    color: #111827;
    font-family: var(--code-font-family);
    font-size: 0.92em;
    line-height: 1.65;
    padding: 3.1rem 1.25rem 1.25rem;
    white-space: pre;
    word-break: normal;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
}

.article-content pre.wp-block-code::before {
    content: "Code";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.25rem;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    background: #ececf1;
    color: #4b5563;
    font-family: var(--base-font-family);
    font-size: 0.78rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.article-content pre.wp-block-code code {
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    white-space: inherit;
    word-break: inherit;
}

.article-content .wp-code-copy {
    position: absolute;
    top: 0.45rem;
    right: 0.75rem;
    z-index: 2;
    color: #4b5563;
    background: transparent;
    font-family: var(--base-font-family);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.article-content .wp-code-copy:hover {
    background: #e5e7eb;
}

.article-content figure.wp-block-image {
    margin: 1.2em 0 2.2em;
}

.article-content figure.wp-block-image img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
    .article-content pre.wp-block-code {
        background: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }

    .article-content pre.wp-block-code::before {
        background: #111827;
        color: #d1d5db;
        border-bottom-color: #374151;
    }

    .article-content .wp-code-copy {
        color: #d1d5db;
    }

    .article-content .wp-code-copy:hover {
        background: #374151;
    }
}

@media (max-width: 768px) {
    .article-content pre.wp-block-code {
        font-size: 0.86em;
        padding: 3rem 1rem 1.15rem;
    }
}
