/* 전체 박스 */
.article-wrapper {
}

/* ============================= */
/* 메타 정보 */
/* ============================= */

.article-meta-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-meta-item {
    font-size: 0.875rem;
    color: #999;
}

.article-meta th,
.article-meta td {
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    cursor: default;
}

.article-meta th {
    width: 120px;
    background: #fafafa;
    font-weight: bold;
    color: #444;
}

/* 메타 정보 툴팁 */

.article-meta td[title] {
    position: relative;
}

.article-meta td[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    white-space: normal;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 1000;
    min-width: 120px;
}

/* ============================= */
/* 제목 */
/* ============================= */

.article-title {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 1.375rem;
    font-weight: 600;
    color: #333;

    padding: 0;
    margin-bottom: 0.5rem;

    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ============================= */
/* 본문 영역 */
/* ============================= */

.article-content-wrapper {
    min-height: 320px;
    padding-top: 30px;
}

.article-content-wrapper p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.article-content-wrapper ol,
.article-content-wrapper ul {
    margin: 0;
    line-height: 1.5;
}

.article-content-wrapper li {
    margin: 0;
    padding: 0;
}

/* 일반 Article 본문 */

.article-content {
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;

    text-align: left;
    word-wrap: break-word;

    max-height: 500px;
    overflow-y: auto;

    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.article-content-wrapper a,
.article-content-wrapper a:hover {
    color: #333;
    text-decoration: underline;
}

/* ============================= */
/* Quill Viewer */
/* ============================= */

.quill-content {
    font-size: 16px;
    line-height: 1.5;
    color: #333;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;

    padding: 10px;
    min-height: 300px;

    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

    word-wrap: break-word;
    overflow-y: auto;
}

/* Quill 문단 */

.quill-content p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Quill 제목 */

.article-content-wrapper h1,
.article-content-wrapper h2,
.article-content-wrapper h3,
.article-content-wrapper h4,
.article-content-wrapper h5,
.article-content-wrapper h6 {
    margin: 4px 0 2px;
    padding: 0;
    line-height: 1.3;
    font-weight: bold;
}

/* Quill 리스트 */

.quill-content ul,
.quill-content ol {
    padding-left: 20px;
    margin: 4px 0 6px;
    line-height: 1.5;
}

.quill-content ul {
    list-style-type: disc;
}

.quill-content ol {
    list-style-type: decimal;
}

/* Quill 인용문 */

.quill-content blockquote {
    border-left: 4px solid #ccc;

    margin: 4px 0 6px;
    padding-left: 10px;

    color: #555;
    line-height: 1.5;
}

/* Quill 코드블록 */

.quill-content pre {
    background: #f4f4f4;

    padding: 8px;
    margin: 4px 0;

    border-radius: 4px;

    overflow-x: auto;
    line-height: 1.3;
}

/* ============================= */
/* Quill 텍스트 정렬 */
/* ============================= */

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

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

.ql-align-justify {
    text-align: justify;
}

/* ============================= */
/* 주소 */
/* ============================= */

.article-address-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-address {
    color: #333;
    text-decoration: none;

    font-size: 14px;

    margin-top: 4px;
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    gap: 5px;
}

.article-address:hover {
    text-decoration: underline;
}

/* ============================= */
/* 길찾기 버튼 */
/* ============================= */

.route-btn {
    padding: 4px 10px;

    font-size: 12px;

    background: #2b8a3e;
    color: #fff;

    border-radius: 4px;
    text-decoration: none;
}

.route-btn:hover {
    background: #237032;
}

/* ============================= */
/* 회사 링크 */
/* ============================= */

.company-link {
    font-size: 13px;
    color: #777;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 3px;

    transition: color 0.2s ease;
}

.company-link:hover {
    color: #222;
}

.company-link i {
    transition: transform 0.2s ease;
}

.company-link:hover i {
    transform: translateX(-4px);
}

/* ============================= */
/* 버튼 행 */
/* ============================= */

.article-actions-row {
}

.article-actions {
    display: flex;
    justify-content: space-between;
}

.article-actions .article-actions-btn {
    border: 1px solid #e5e7eb;

    padding: 6px 12px;

    border-radius: 4px;

    font-size: 0.75rem;

    text-decoration: none;
    cursor: pointer;

    transition: background 0.2s;

    background: none;
}

/* 수정 버튼 */

.article-actions-btn.edit-btn {
    color: #333;
}

/* 삭제 버튼 */

.article-actions-btn.delete-btn {
    color: #e74c3c;
}

/* ============================= */
/* 반응형 */
/* ============================= */

@media (max-width: 1060px) {
    .detail-header-wrapper {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 16px;
    }
}
