.benchmark-code-section {
    align-items: center;
    border-bottom: 1px solid var(--tpdb-line);
    border-top: 1px solid var(--tpdb-line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.15rem;
}

.benchmark-code-copy {
    flex: 1 1 20rem;
    min-width: 0;
}

.benchmark-code-copy h2 {
    color: var(--tpdb-ink);
    font-size: 1.125rem;
    font-weight: 750;
    line-height: 1.4;
    margin: 0 0 0.35rem;
}

.benchmark-code-copy p {
    color: var(--tpdb-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
}

.benchmark-code-copy .benchmark-code-version {
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.benchmark-code-version a {
    color: #36566d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-decoration: none;
}

.benchmark-code-version a:hover {
    text-decoration: underline;
}

.benchmark-code-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.benchmark-download-link.benchmark-code-action {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 650;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
}

.benchmark-code-action img,
.benchmark-code-action svg {
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

.benchmark-code-action svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.benchmark-code-action:focus-visible,
.benchmark-code-version a:focus-visible {
    outline: 2px solid var(--tpdb-blue);
    outline-offset: 3px;
}

.benchmark-code-welcome-link {
    align-self: flex-start;
}

@media (max-width: 575px) {
    .benchmark-code-section {
        gap: 0.85rem;
        padding: 1rem 0;
    }

    .benchmark-code-copy {
        flex-basis: 100%;
    }

    .benchmark-code-actions {
        flex-basis: 100%;
    }
}
