/* Scoped to the blog editor and formatted article body */
.blog-editor-page {
    background: #f5f8fa;
}
.blog-editor-page > .wrap {
    max-width: 1440px;
}
.editor-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.editor-page-heading h1 {
    margin: 10px 0 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
}
.editor-page-heading p {
    color: #526b7a;
    font-size: 1rem;
    margin: 0;
}
.editor.editor-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
}
.editor-main-panel,
.editor-publish-panel {
    min-width: 0;
    border: 1px solid #dce7ec;
    border-radius: 14px;
}
.editor-main-panel {
    background: #fff;
    padding: 30px;
}
.editor-publish-panel {
    background: #eaf3f6;
    padding: 24px;
}
.editor-publish-panel h2 {
    font-size: 1.35rem;
    margin: 0 0 24px;
    color: #12344a;
}
.editor-workspace label {
    display: block;
    font-size: 0.9375rem;
    margin: 24px 0 8px;
    color: #17374b;
}
.editor-workspace label:first-child {
    margin-top: 0;
}
.editor-workspace input,
.editor-workspace textarea {
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
    background: #fff;
    margin: 0;
}
.editor-main-panel #title {
    font-size: 1.35rem;
    font-weight: 500;
    padding: 16px 18px;
}
.editor-workspace #summary {
    min-height: 120px;
}
.editor-workspace #seoDescription {
    min-height: 110px;
}
.editor-workspace #article-path {
    font-size: 0.875rem;
}
.editor-workspace .count-note,
.editor-workspace .form-status {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #526b7a;
}
.editor-workspace .form-status.error {
    color: #a52236;
}
.content-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}
.content-label-row label {
    margin: 0 0 8px;
}
.word-count {
    color: #526b7a;
    font-size: 0.875rem;
}
.content-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #edf5f7;
    border: 1px solid #cbdde5;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}
.content-toolbar span {
    font-size: 0.8125rem;
    color: #526b7a;
    margin-inline: 6px;
}
.editor-tool {
    background: white;
    border: 1px solid #c0d5df;
    color: #164b67;
    border-radius: 6px;
    padding: 7px 10px;
    min-height: 38px;
    font-size: 0.875rem;
}
.editor-tool:hover {
    border-color: #1677bc;
}
.editor-workspace #content {
    border-radius: 0 0 9px 9px;
    min-height: 670px;
    padding: 22px;
    font-size: 1.0625rem;
    line-height: 2;
    resize: vertical;
}
.content-preview {
    min-height: 670px;
    padding: 22px;
    border: 1px solid #cbdde5;
    border-radius: 0 0 9px 9px;
    overflow-wrap: anywhere;
    background: white;
}
.editor-inline-action {
    padding: 5px 0;
    margin: 8px 0;
    background: transparent;
    color: #116a9d;
    border: 0;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.editor-publish-panel input[type=file] {
    font-size: 0.875rem;
    padding: 10px;
    direction: ltr;
    border: 1px dashed #8bacbc;
}
.cover-preview-box {
    margin: 12px 0 0;
}
.cover-preview-box img {
    display: block;
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cbdde5;
}
.cover-preview-box figcaption {
    font-size: 0.8125rem;
    color: #526b7a;
    margin-top: 6px;
}
.existing-cover-url {
    background: transparent;
    padding: 0;
    margin-top: 16px;
    border: 0;
}
.existing-cover-url summary {
    font-size: 0.875rem;
    color: #116a9d;
}
.existing-cover-url summary::after {
    display: none;
}
.publication-state {
    font-size: 0.9375rem;
    border-top: 1px solid #c4d8e0;
    margin-top: 28px;
    padding-top: 24px;
}
.editor-workspace .publication-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.publication-actions .btn {
    width: 100%;
    font-size: 0.9375rem;
}
.article-body .body-copy .formatted-article,
.formatted-article {
    white-space: normal;
    line-height: 2;
}
.formatted-article p {
    margin: 0 0 1.2em;
}
.formatted-article h2 {
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 1.7em 0 0.6em;
    color: #12344a;
}
.formatted-article ul {
    padding-inline-start: 1.5em;
    margin: 0 0 1.2em;
}
.formatted-article li {
    margin-bottom: 0.45em;
}
.editor-workspace [hidden] {
    display: none !important;
}
@media (max-width: 980px) {
    .editor.editor-workspace {
        grid-template-columns: minmax(0, 1fr) 285px;
        gap: 18px;
    }
    .editor-main-panel {
        padding: 22px;
    }
    .editor-publish-panel {
        padding: 20px;
    }
}
@media (max-width: 760px) {
    .editor-page-heading {
        display: block;
    }
    .editor-page-heading p {
        margin-top: 12px;
    }
    .editor.editor-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
    .editor-main-panel,
    .editor-publish-panel {
        padding: 20px;
    }
    .editor-workspace #content,
    .content-preview {
        min-height: 420px;
        padding: 16px;
    }
}
