/* ============================================================
   Prose / Konten Editor (Summernote) — typography manual
   Dipakai karena Tailwind build saat ini tidak meng-compile
   plugin typography (@tailwindcss/typography), jadi class
   .prose dan .article tidak punya rules.
   File ini dimuat di semua tema (platform + CMS).
   ============================================================ */

.prose, .article {
    max-width: 100%;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.prose > * + *, .article > * + * {
    margin-top: 1em;
}

/* ---------- Headings ---------- */
.prose h1, .article h1 {
    font-size: 2.25em;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}
.prose h2, .article h2 {
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}
.prose h3, .article h3 {
    font-size: 1.375em;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-top: 1.3em;
    margin-bottom: 0.5em;
}
.prose h4, .article h4 {
    font-size: 1.125em;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}
.prose h5, .prose h6, .article h5, .article h6 {
    font-size: 1em;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
}

/* ---------- Paragraph & text ---------- */
.prose p, .article p {
    margin: 1em 0;
    color: #475569;
}
.prose strong, .article strong { font-weight: 700; color: #0f172a; }
.prose em, .article em { font-style: italic; }
.prose s, .article s { text-decoration: line-through; }
.prose sub, .article sub { vertical-align: sub; font-size: 75%; }
.prose sup, .article sup { vertical-align: super; font-size: 75%; }

/* ---------- Links ---------- */
.prose a, .article a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover, .article a:hover { color: #4338ca; }

/* ---------- Blockquote ---------- */
.prose blockquote, .article blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1.25em;
    margin: 1.5em 0;
    color: #64748b;
    font-style: italic;
    font-size: 1.05em;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
    padding-right: 1em;
}
.prose blockquote p, .article blockquote p { margin: 0.5em 0; }

/* ---------- Lists (number & bullet) ---------- */
.prose ul, .article ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 1em 0;
}
.prose ol, .article ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin: 1em 0;
}
.prose li, .article li {
    margin: 0.35em 0;
    padding-left: 0.25em;
}
.prose li > ul, .prose li > ol, .article li > ul, .article li > ol { margin: 0.35em 0; }
.prose ul ul, .article ul ul { list-style: circle; }
.prose ol ol, .article ol ol { list-style: lower-alpha; }

/* ---------- Horizontal rule ---------- */
.prose hr, .article hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2em auto;
    width: 100%;
}

/* ---------- Table ---------- */
.prose table, .article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}
.prose thead th, .article thead th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    padding: 0.6em 0.75em;
    border: 1px solid #e2e8f0;
}
.prose tbody td, .article tbody td {
    padding: 0.55em 0.75em;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

/* ---------- Code ---------- */
.prose code, .article code {
    background: #e2e8f0;
    color: #dc2626;
    padding: 0.15em 0.4em;
    border-radius: 6px;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre, .article pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875em;
    line-height: 1.6;
}
.prose pre code, .article pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

/* ---------- Media ---------- */
.prose img, .article img {
    border-radius: 14px;
    margin: 1.5em auto;
    max-width: 100%;
    height: auto;
    display: block;
}
.prose video, .prose iframe, .article video, .article iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5em auto;
    display: block;
}
.prose figure, .article figure { margin: 1.5em 0; text-align: center; }
.prose figcaption, .article figcaption {
    font-size: 0.85em;
    color: #94a3b8;
    margin-top: 0.5em;
}

/* ---------- Align helpers dari editor ---------- */
.prose .note-video-element, .article .note-video-element { width: 100%; }
