/* Watch benchmark figures. Colors and type inherit from the article. */
.wv-photo {
    max-width: 30rem;
    margin: 28px auto;
}

.wv-photo img {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 6px;
}

.wv-photo figcaption {
    margin-top: 8px;
    color: var(--post-muted-color);
    font-size: 0.875rem;
    line-height: 1.5;
}

.wv-photo-pair {
    display: grid;
    /* Match the display heights while preserving the original frames. */
    grid-template-columns: minmax(0, 9fr) minmax(0, 8fr);
    gap: 18px;
    margin: 28px 0;
}

.wv-photo-pair .wv-photo {
    width: 100%;
    margin: 0 auto;
}

.wv-sample {
    margin: 25px 0;
    border: 1px solid var(--post-rule-color);
    border-radius: 6px;
    background: #fafafa;
}

.wv-sample > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--post-text-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    list-style: none;
}

.wv-sample > summary::-webkit-details-marker {
    display: none;
}

.wv-sample > summary::before {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    content: "";
    transform: rotate(-45deg);
}

.wv-sample[open] > summary::before {
    transform: rotate(45deg);
}

.wv-sample > summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -3px;
}

.wv-sample .wv-sample-format {
    margin-left: auto;
    color: var(--post-muted-color);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 400;
}

.wv-sample > pre {
    max-height: 24rem;
    margin: 0;
    padding: 12px 14px !important;
    border: 0;
    border-top: 1px solid var(--post-rule-color);
    border-radius: 0 0 6px 6px;
    font-size: 0.78125rem;
    line-height: 1.55;
}

.wv-sample > pre > code {
    font-size: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 600px) {
    .wv-photo-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}
