/*
 * .article 補強樣式
 * 補上前台 reset 後消失的 typography（ul/ol 縮排、table 邊框、blockquote 等）
 * 與 /public/business/js/ckeditor/contents-article.css 同步
 */

.article ul,
.article ol {
    padding-left: 1.75rem;
    margin: 0 0 1rem 0;
}
.article ul {
    list-style-type: disc;
}
.article ol {
    list-style-type: decimal;
}

/* 巢狀清單 */
.article ul ul,
.article ol ol,
.article ul ol,
.article ol ul {
    margin: 0.25rem 0;
}
.article ul ul {
    list-style-type: circle;
}
.article ul ul ul {
    list-style-type: square;
}

.article li {
    margin: 0.25rem 0;
    line-height: 1.6;
}

/* CKEditor 有時會把 li 內容包成 <p>，把預設 margin 拿掉避免間距太大 */
.article li > p {
    margin: 0;
}

/* 引言區塊 */
.article blockquote {
    border-left: 4px solid #d1d5db;
    padding: 0.5rem 0 0.5rem 1rem;
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-style: italic;
}

/* 表格 */
.article table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1rem 0;
}
.article table th,
.article table td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.article table th {
    background: #f5f7fa;
    font-weight: 500;
}

/* 水平線 */
.article hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

/* 程式碼 */
.article code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95em;
    color: #d63384;
}
.article pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0 0 1rem 0;
}
.article pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
