.blog-article-body p {
    margin: 0 0 .85em;
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3 {
    color: #252638;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.blog-article-body h1 {
    margin: .95em 0 .35em;
    color: #252638;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.blog-article-body h2 {
    margin: .95em 0 .35em;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.blog-article-body h3 {
    margin: .8em 0 .3em;
    color: #252638;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.blog-article-body br {
    display: inline;
    margin: 0;
}

.blog-format-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.blog-format-toolbar span {
    margin-right: 3px;
    color: #62596b;
    font-size: .77rem;
    font-weight: 800;
}

.blog-format-toolbar button {
    min-width: 42px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #e4dce9;
    border-radius: 8px;
    background: #fff;
    color: #51445f;
    font: 800 .75rem "DM Sans", sans-serif;
    cursor: pointer;
}

.blog-format-toolbar button:hover {
    border-color: #ef3e83;
    background: #fff1f7;
    color: #bd245f;
}

.blog-admin-layout {
    grid-template-columns: 1fr;
}

.blog-admin-card select {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid #ded8e5;
    border-radius: 9px;
    background: #fff;
    color: #252638;
    font: inherit;
}

.blog-rich-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid #ded8e5;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #faf9fc;
}

.blog-rich-toolbar button,
.blog-rich-toolbar select {
    width: auto;
    min-width: 36px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #e2dce9;
    border-radius: 7px;
    background: #fff;
    color: #51445f;
    font: 700 .8rem "DM Sans", sans-serif;
    cursor: pointer;
}

.blog-rich-toolbar button:hover,
.blog-rich-toolbar select:hover {
    border-color: #ef3e83;
    color: #bd245f;
}

.blog-rich-toolbar select {
    min-width: 145px;
    padding-right: 28px;
}

.blog-rich-editor {
    min-height: 280px;
    padding: 14px;
    border: 1px solid #ded8e5;
    border-radius: 0 0 9px 9px;
    background: #fff;
    color: #252638;
    font: 400 .95rem/1.7 "DM Sans", sans-serif;
    overflow-wrap: anywhere;
}

.blog-rich-editor:focus {
    border-color: #7652c8;
    outline: 0;
    box-shadow: 0 0 0 3px #7652c828;
}

.blog-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #9a929f;
    pointer-events: none;
}

.blog-rich-editor h1,
.blog-rich-editor h2,
.blog-rich-editor h3 {
    margin: .8em 0 .4em;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.2;
}

.blog-rich-editor h1 { font-size: 1.8rem; }
.blog-rich-editor h2 { font-size: 1.45rem; }
.blog-rich-editor h3 { font-size: 1.2rem; }
.blog-rich-editor ul,.blog-rich-editor ol { padding-left: 1.5em; }
.blog-cover-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.blog-cover-preview img { width: min(260px, 100%); max-height: 150px; border: 1px solid #e8e2ed; border-radius: 9px; object-fit: cover; }
.blog-cover-preview label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 600; }
.blog-cover-preview input { width: auto; min-height: auto; }
.blog-card-category,.blog-article-category { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; background: #f8e8f0; color: #a52660; font-size: .7rem; font-weight: 800; }
.blog-card-category { margin-right: 7px; }
.blog-article-category { margin: 13px 0 0; }
.blog-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-article-cover { margin: 28px 0 0; overflow: hidden; border-radius: 18px; background: #f6e4ef; }
.blog-article-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.blog-article-body div { margin: 0 0 .65em; }

.blog-article-page {
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1240px;
}

.blog-article,
.blog-article > *,
.blog-article-cover,
.blog-article-cover img {
    box-sizing: border-box;
    max-width: 100%;
}

.blog-article h1 {
    max-width: 1080px;
    overflow-wrap: anywhere;
}

.blog-article-excerpt {
    max-width: 980px;
    margin: 18px 0 10px;
    line-height: 1.55;
}

.blog-article-body {
    max-width: 1000px;
    margin: 24px auto 0;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.blog-article-body > :first-child { margin-top: 0; }
.blog-article-body > :last-child { margin-bottom: 0; }

.blog-article-cover {
    width: 100%;
    max-width: 1000px;
    margin: 24px auto 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .blog-rich-editor { min-height: 220px; padding: 11px; }
    .blog-rich-toolbar { gap: 5px; padding: 6px; }
    .blog-rich-toolbar select { min-width: 125px; }
    .blog-cover-preview { align-items: flex-start; flex-direction: column; }

    .blog-article-page { width: calc(100% - 32px); }
    .blog-article h1 { max-width: 100%; }
    .blog-article-excerpt { max-width: none; margin: 16px 0 8px; }
    .blog-article-body { max-width: none; margin: 20px 0 0; line-height: 1.75; }
    .blog-article-body h2 { margin: .8em 0 .32em; }
    .blog-article-cover { margin-top: 20px; }
}
