[x-cloak] { display: none !important; }

/* CKEDITOR */
.ck-content {
    color: var(--foreground);
    font-size: 15px;
    line-height: 1.7;
    font-family: "Inter", sans-serif;
}

.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--foreground);
}

.ck-content h1 { font-size: 30px; }
.ck-content h2 { font-size: 26px; }
.ck-content h3 { font-size: 22px; }
.ck-content h4 { font-size: 19px; }
.ck-content h5 { font-size: 17px; }
.ck-content h6 {
    font-size: 15px;
    opacity: .85;
}

.ck-content p {
    margin-bottom: 14px;
}

.ck-content strong,
.ck-content b {
    font-weight: 600;
    color: var(--foreground);
}

.ck-content em,
.ck-content i {
    opacity: .9;
}

.ck-content u {
    text-decoration: underline;
    text-decoration-color: #4e9eff;
}

.ck-content a {
    color: #4ea8ff;
    text-decoration: none;
    border-bottom: 1px dotted #4ea8ff;
    transition: .2s;
}

.ck-content a:hover {
    color: #7bc1ff;
    border-bottom-color: #7bc1ff;
}

.ck-content blockquote {
    border-left: 4px solid #4e9eff;
    background: var(--muted);
    padding: 12px 18px;
    margin: 18px 0;
    border-radius: 6px;
    font-style: italic;
    color: var(--black-text);
    opacity: .9;
}

.ck-content blockquote p {
    margin-bottom: 8px;
}

.ck-content ul,
.ck-content ol {
    padding-left: 28px;
    margin-bottom: 16px;
}

.ck-content ul li,
.ck-content ol li {
    margin-bottom: 6px;
}

.ck-content hr {
    border: none;
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}

.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 6px;
    overflow: hidden;
}

.ck-content table th,
.ck-content table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    color: var(--black-text);
}

.ck-content table th {
    background: var(--card-bg);
    font-weight: 600;
}

.ck-content table tr:nth-child(even) {
    background: rgba(127,127,127,.05);
}

.ck-content figure.image {
    margin: 18px 0;
    text-align: center;
}

.ck-content figure.image img {
    max-width: 100%;
    border-radius: 8px;
}

.ck-content figure.image figcaption {
    font-size: 13px;
    color: var(--foreground);
    opacity: .7;
    margin-top: 6px;
}

/* ------------------------------------
   CODE INLINE
------------------------------------ */
.ck-content code {
    background: var(--muted);
    color: var(--foreground);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
    font-family: "JetBrains Mono", monospace;
}

.ck-content pre {
    background: #1c1f25;
    color: #dcdcdc;
    padding: 14px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 18px 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
}

.ck-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.ck-content .media {
    margin: 18px 0;
    text-align: center;
}

.ck-content iframe {
    width: 100%;
    min-height: 300px;
    border-radius: 10px;
    border: none;
}

.ck-content img {
    max-width: 100%;
    height: auto;
}

.ck-content ::selection {
    background: rgba(78, 158, 255, .25);
}

.ck-content,
.ck-content p,
.ck-content li,
.ck-content span,
.ck-content div {
    color: var(--foreground);
}