/* ==========================================================================
   5. 상세 페이지 및 컨텐츠 (Detail Content & Guide)
   ========================================================================== */
.detail-body {
    padding: 20px;
    padding-bottom: 100px;
    background-color: var(--bg-main);
}

.detail-header {
    background: var(--bg-card);
    border-bottom: 3px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* 점검 취지 박스 */
.inspection-purpose-section {
    background: rgba(56, 189, 248, 0.15);
    border-left: 5px solid #38bdf8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* 실무 가이드 및 본문 뷰어 (Paper style) */
.guide-content,
.saved-content-view {
    background-color: #ffffff !important;
    max-width: 850px;
    margin: 0 auto;
    padding: 50px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    line-height: 1.8;
    color: #333333 !important;
    min-height: 400px;
}

.guide-content h1,
.saved-content-view h1,
.guide-content h2,
.saved-content-view h2,
.guide-content h3,
.saved-content-view h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.guide-content table,
.saved-content-view table {
    border-collapse: collapse;
    width: 100% !important;
    border: 1px solid #dee2e6;
    margin: 1.5em 0;
}

.guide-content table th,
.saved-content-view table th {
    background-color: #f8f9fa;
    padding: 12px;
    border: 1px solid #dee2e6;
    color: #333;
    font-weight: bold;
    text-align: center;
}

.guide-content table td,
.saved-content-view table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    color: #333;
}

.guide-content img,
.saved-content-view img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Multi-line ellipsis */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Update Logs (6.6) */
.log-container {
    max-width: 700px;
    margin: auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.log-item {
    border-left: 3px solid var(--primary-blue);
    padding-left: 25px;
    margin-bottom: 40px;
}