.code-block-wrapper {
    display: block;
    margin: 1.5rem 0;
}

.code-block-filename {
    background: linear-gradient(to bottom, #2d2d2d, #1e1e1e);
    color: #e0e0e0;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid #444;
    border-bottom: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-block-filename .filename-text {
    display: flex;
    align-items: center;
}

.code-block-filename .filename-text::before {
    content: "📄";
    margin-right: 0.5rem;
    font-size: 1rem;
}

code-block {
    display: block;
}

code-block.has-filename {
    margin-top: 0;
}

code-block.has-filename code-tab {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Removed a @media(light) filename-bar override: the code body is ALWAYS dark
   (shadow DOM imports prism-tomorrow, #2d2d2d), so flipping the bar light in
   light mode — the browser default — left a light bar glued to a dark block. */