.cms-wp-editor__title {
    font-size: 1.75rem;
    font-weight: 700;
    border: none;
    box-shadow: none !important;
    padding-left: 0;
}

.cms-wp-editor__body {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.375rem;
    overflow: hidden;
    /* Match public marketing light section so editors see site-like typography */
    background: #f7f7f5;
}

.cms-wp-editor__body--grapes {
    border: none;
    background: transparent;
    overflow: visible;
}

/* GrapesJS chrome: light high-contrast panels (preset dark theme is disabled in JS) */
.grapes-cms-editor .gjs-one-bg {
    background-color: #f4f4f5 !important;
}

.grapes-cms-editor .gjs-two-color {
    color: #1f2937 !important;
}

.grapes-cms-editor .gjs-three-bg {
    background-color: #e5e7eb !important;
}

.grapes-cms-editor .gjs-four-color,
.grapes-cms-editor .gjs-four-color-h:hover {
    color: #111827 !important;
}

.grapes-cms-editor .gjs-pn-panel,
.grapes-cms-editor .gjs-pn-views-container,
.grapes-cms-editor .gjs-blocks-c,
.grapes-cms-editor .gjs-block-categories,
.grapes-cms-editor .gjs-sm-sectors,
.grapes-cms-editor .gjs-trt-traits,
.grapes-cms-editor .gjs-layer,
.grapes-cms-editor .gjs-layers {
    background-color: #f4f4f5 !important;
    color: #1f2937 !important;
}

.grapes-cms-editor .gjs-pn-btn {
    color: #1f2937 !important;
    opacity: 1 !important;
}

.grapes-cms-editor .gjs-pn-btn.gjs-pn-active,
.grapes-cms-editor .gjs-pn-btn:hover {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.grapes-cms-editor .gjs-pn-btn svg,
.grapes-cms-editor .gjs-pn-btn svg path {
    fill: currentColor !important;
}

.grapes-cms-editor .gjs-title,
.grapes-cms-editor .gjs-label,
.grapes-cms-editor .gjs-sm-sector-title,
.grapes-cms-editor .gjs-sm-label,
.grapes-cms-editor .gjs-trt-trait .gjs-label,
.grapes-cms-editor .gjs-block-category .gjs-title,
.grapes-cms-editor .gjs-layer-name,
.grapes-cms-editor .gjs-clm-label,
.grapes-cms-editor .gjs-clm-tags {
    color: #1f2937 !important;
}

.grapes-cms-editor .gjs-field,
.grapes-cms-editor .gjs-field input,
.grapes-cms-editor .gjs-field select,
.grapes-cms-editor .gjs-field textarea,
.grapes-cms-editor .gjs-clm-select,
.grapes-cms-editor .gjs-sm-field input,
.grapes-cms-editor .gjs-sm-field select {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

.grapes-cms-editor .gjs-block {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    min-height: 90px;
}

.grapes-cms-editor .gjs-block:hover {
    border-color: #c8a94b !important;
}

.grapes-cms-editor .gjs-block svg {
    max-width: 48px;
    max-height: 48px;
    color: #4b5563;
}

.grapes-cms-editor .gjs-block:hover svg {
    color: #c8a94b;
}

.grapes-cms-editor .gjs-category-open,
.grapes-cms-editor .gjs-block-category.gjs-open,
.grapes-cms-editor .gjs-sm-sector.gjs-sm-open {
    border-bottom-color: #d1d5db !important;
}

.grapes-cms-editor .gjs-cv-canvas {
    background-color: #e5e7eb !important;
}

.grapes-cms-editor .gjs-frame-wrapper {
    background-color: #ffffff;
}

.cms-wp-editor__body .html-editor {
    margin: 0;
}

.cms-wp-editor__body .html-editor-quill {
    min-height: 420px;
}

.cms-wp-editor__body .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    background: #fff;
}

.cms-wp-editor__body .ql-container.ql-snow {
    border: none;
    min-height: 420px;
    background: #f7f7f5;
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

.cms-wp-editor__body .ql-editor {
    min-height: 420px;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2.5rem;
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2a2a2a;
}

.cms-wp-editor__body .ql-editor.ql-blank::before {
    color: #686868;
    font-style: normal;
    left: 1.5rem;
    right: 1.5rem;
}

.cms-wp-editor__body .ql-editor h1,
.cms-wp-editor__body .ql-editor h2,
.cms-wp-editor__body .ql-editor h3,
.cms-wp-editor__body .ql-editor h4 {
    color: #2a2a2a;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 1.5rem 0 0.65rem;
}

.cms-wp-editor__body .ql-editor h1 {
    font-size: 1.75rem;
}

.cms-wp-editor__body .ql-editor h2 {
    font-size: 1.2rem;
    margin-top: 1.75rem;
}

.cms-wp-editor__body .ql-editor h3 {
    font-size: 1.05rem;
}

.cms-wp-editor__body .ql-editor p,
.cms-wp-editor__body .ql-editor li {
    color: #2a2a2a;
    font-weight: 400;
}

.cms-wp-editor__body .ql-editor p {
    margin: 0 0 0.9rem;
}

.cms-wp-editor__body .ql-editor ul,
.cms-wp-editor__body .ql-editor ol {
    padding-left: 1.35rem;
    margin: 0 0 1rem;
}

.cms-wp-editor__body .ql-editor li {
    margin-bottom: 0.4rem;
}

.cms-wp-editor__body .ql-editor strong {
    font-weight: 700;
    color: #2a2a2a;
}

.cms-wp-editor__body .ql-editor a {
    color: #c8a94b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-wp-editor__body .ql-editor a:hover {
    color: #d4ba6a;
}

.cms-wp-editor__body .ql-editor blockquote {
    border-left: 3px solid #c8a94b;
    margin: 1rem 0;
    padding: 0.35rem 0 0.35rem 1rem;
    color: #686868;
}

.cms-wp-editor__body .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.cms-wp-editor__body .ql-editor hr {
    border: none;
    border-top: 1px solid #eceae4;
    margin: 1.5rem 0;
}
