.technical-paper {
    margin: 0;
    padding: 8px;
    background: #f7f7f7;
}

.technical-paper__inner {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: center;
    margin: 0;
}

.technical-paper__preview-column {
    width: 100%;
}

.technical-paper__preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.technical-paper__preview-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    background: #ffffff;
}

.technical-paper__preview-image {
    display: block;
    width: 100%;
    height: auto;
}

.technical-paper__preview-placeholder {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: 408px;
    padding: 28px;
    border: 1px solid rgba(1, 13, 28, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f7f7f7 100%);
}

.technical-paper__preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 8px 12px;
    background: #fb3640;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.technical-paper__preview-title {
    color: #010d1c;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.technical-paper__content {
    padding: 48px;
    margin: 0;
}

.technical-paper__heading {
    margin: 0;
    color: #010d1c;
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}

.technical-paper__description {
    margin-top: 8px;
    color: #7e7e7e;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.technical-paper__description p {
    margin: 0;
}

.technical-paper__description p:last-child {
    margin-bottom: 0;
}

.technical-paper__actions {
    margin-top: 32px;
}

.technical-paper__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 30px;
    background: #fb3741;
    color: #ffffff;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.technical-paper__button:hover,
.technical-paper__button:focus {
    background: #d82630;
    color: #ffffff;
    text-decoration: none;
}

.technical-paper__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .technical-paper__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .technical-paper__content {
        max-width: none;
    }

    .technical-paper__heading {
        font-size: 32px;
    }
}

@media (max-width: 575px) {
    .technical-paper__preview-card {
        min-height: 320px;
        padding: 10px;
    }

    .technical-paper__preview-placeholder {
        min-height: 298px;
        padding: 20px;
    }

    .technical-paper__heading {
        font-size: 28px;
    }

    .technical-paper__description {
        line-height: 1.3;
    }

    .technical-paper__button {
        width: 100%;
        justify-content: center;
        padding: 8px 20px;
    }
}

.editor-styles-wrapper .technical-paper,
.block-editor-block-preview__content .technical-paper,
.acf-block-preview .technical-paper {
    padding: 6px;
}

.editor-styles-wrapper .technical-paper__inner,
.block-editor-block-preview__content .technical-paper__inner,
.acf-block-preview .technical-paper__inner {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 24px;
}

.editor-styles-wrapper .technical-paper__preview-card,
.block-editor-block-preview__content .technical-paper__preview-card,
.acf-block-preview .technical-paper__preview-card {
    min-height: 280px;
    padding: 10px;
}

.editor-styles-wrapper .technical-paper__preview-placeholder,
.block-editor-block-preview__content .technical-paper__preview-placeholder,
.acf-block-preview .technical-paper__preview-placeholder {
    min-height: 248px;
    padding: 18px;
}

.editor-styles-wrapper .technical-paper__content,
.block-editor-block-preview__content .technical-paper__content,
.acf-block-preview .technical-paper__content {
    max-width: none;
}

.editor-styles-wrapper .technical-paper__heading,
.block-editor-block-preview__content .technical-paper__heading,
.acf-block-preview .technical-paper__heading {
    font-size: 24px;
}

.editor-styles-wrapper .technical-paper__description,
.block-editor-block-preview__content .technical-paper__description,
.acf-block-preview .technical-paper__description {
    font-size: 12px;
    line-height: 1.2;
}

.editor-styles-wrapper .technical-paper__actions,
.block-editor-block-preview__content .technical-paper__actions,
.acf-block-preview .technical-paper__actions {
    margin-top: 20px;
}

.editor-styles-wrapper .technical-paper__button,
.block-editor-block-preview__content .technical-paper__button,
.acf-block-preview .technical-paper__button {
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
}
