.editor-color {
    color: inherit;
}

.editor-color-forest {
    color: #2c3c18 !important;
}

.editor-color-leaf {
    color: #5c8429 !important;
}

.editor-color-gold {
    color: #b7791f !important;
}

.editor-color-berry {
    color: #9f1239 !important;
}

.editor-color-sky {
    color: #2563eb !important;
}

.editor-color-slate {
    color: #334155 !important;
}

.editor-align-left {
    text-align: left;
}

.editor-align-center {
    text-align: center;
}

.editor-align-right {
    text-align: right;
}

.editor-variant-callout {
    padding: 12px 14px;
    border: 1px solid #d9e6c2;
    border-radius: 14px;
    background: #f6f9ee;
}

.editor-variant-citation {
    color: #1f2937;
    font-style: italic;
}

.editor-variant-details {
    color: #374151;
    font-size: 0.92em;
}

.editor-raw-html {
    display: contents;
}

.cdx-tooltip {
    cursor: help;
    text-decoration: none;
    border-bottom: 1px dotted rgba(44, 60, 24, 0.45);
}

.editor-attach {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.editor-attach-main {
    min-width: 0;
    flex: 1 1 260px;
}

.editor-attach-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.editor-attach-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.editor-attach-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #2c3c18;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.editor-attach-link:hover {
    background: #243114;
    transform: translateY(-1px);
}

.editor-social {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.editor-social-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.editor-social-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.editor-social-note {
    font-size: 14px;
    color: #475569;
}

.editor-social-runtime {
    min-height: 24px;
    margin-top: 14px;
}

.editor-social-runtime iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.editor-social-fallback {
    margin-top: 14px;
}

.editor-social-fallback.is-hidden {
    display: none;
}

.editor-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.editor-social-link:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
}
