/* EditorJS block styles */

.news-single-text p {
    margin: 0;
}

.news-single-text p + p {
    margin-top: 10px;
}

.editor-header {
    font-family: var(--second-family);
    font-weight: 800;
    color: var(--dark);
    margin-top: 24px;
    margin-bottom: 8px;
}

.news-single-text h1.editor-header { font-size: 36px; line-height: 125%; }
.news-single-text h2.editor-header { font-size: 28px; line-height: 130%; }
.news-single-text h3.editor-header { font-size: 22px; line-height: 135%; }
.news-single-text h4.editor-header { font-size: 18px; line-height: 140%; }
.news-single-text h5.editor-header { font-size: 16px; line-height: 145%; }
.news-single-text h6.editor-header { font-size: 14px; line-height: 150%; }

.editor-list {
    padding-left: 24px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.editor-list--unordered {
    list-style: disc;
}

.editor-list--ordered {
    list-style: decimal;
}

.editor-list li {
    margin-top: 6px;
    line-height: 150%;
}

.editor-list--checklist {
    list-style: none;
    padding-left: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.checklist-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--dark);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    margin-top: 2px;
}

.checklist-item--checked .checklist-box {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.editor-quote {
    border-left: 4px solid var(--red);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--dark);
}

.editor-quote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: #868686;
}

.editor-delimiter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
}

.editor-delimiter span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.editor-code {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 160%;
}

.editor-code code {
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.editor-image {
    margin: 20px 0;
}

.editor-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.editor-image--border img {
    border: 1px solid #e0e0e0;
}

.editor-image--background {
    background: rgba(0, 0, 0, 0.04);
    padding: 12px;
    border-radius: 16px;
}

.editor-image--stretched img {
    width: 100%;
}

.editor-image__caption {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: #868686;
    font-style: italic;
}
