.arma-3d-preview {
    width: 100%;
    max-width: 800px;
    margin: 80px auto 48px;
    text-align: center;
}
.arma-3d-preview h2 {
    position: relative;
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100% - 16px);
    margin: 0 auto 0 0;
    padding: 0;
    border: 1px solid #b9bec2;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #fff;
    color: #3c4145;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}
.arma-3d-preview .arma-3d-preview-heading-link {
    display: block;
    padding: 12px clamp(28px, 6vw, 52px);
    border-radius: inherit;
    color: inherit;
    font: inherit;
    text-decoration: none;
}
/* Turn the heading's right outline smoothly into the image's top edge. */
.arma-3d-preview h2::before {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 1px;
    height: 8px;
    background: #fff;
    content: '';
    pointer-events: none;
}
.arma-3d-preview h2::after {
    position: absolute;
    right: -8px;
    bottom: 0;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    border: solid #b9bec2;
    border-width: 0 0 1px 1px;
    border-bottom-left-radius: 8px;
    content: '';
    pointer-events: none;
}
.arma-3d-preview-image {
    display: block;
    overflow: hidden;
    border-radius: 0 8px 0 8px;
}
.arma-3d-preview-image img {
    display: block;
    width: 100%;
    height: auto;
}
.arma-3d-preview .arma-3d-preview-heading-link:focus-visible,
.arma-3d-preview-image:focus-visible,
.arma-3d-preview .arma-3d-preview-tab:focus-visible {
    outline: 2px solid #6b7f99;
    outline-offset: 5px;
}
.arma-3d-preview .arma-3d-preview-tab {
    --preview-tab-fill: #232a30;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 360px;
    max-width: calc(100% - 16px);
    min-height: 46px;
    margin: 0 0 0 auto;
    padding: 10px 28px;
    border: 0;
    border-radius: 0 0 10px 10px;
    background: var(--preview-tab-fill);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 120ms ease;
}
/* A rounded inside corner joins the image to the right-aligned tab. */
.arma-3d-preview-tab::before {
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    height: 8px;
    content: '';
    pointer-events: none;
    background: radial-gradient(circle at bottom left, transparent 7.5px, var(--preview-tab-fill) 8px);
}
.arma-3d-preview h2:hover ~ .arma-3d-preview-tab,
.arma-3d-preview h2:focus-within ~ .arma-3d-preview-tab,
.arma-3d-preview-image:hover + .arma-3d-preview-tab,
.arma-3d-preview .arma-3d-preview-tab:hover {
    --preview-tab-fill: #34404b;
    color: #fff;
    text-decoration: none;
}
