/* =========================================
   UI/UX 가독성 최적화 스타일
   ========================================= */

/* Force all text to BLACK */
* {
    color: #111111 !important;
}

/* Except white text on colored buttons */
button {
    color: white !important;
}

/* Links stay green */
a, .highlight-green {
    color: #03C75A !important;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

/* Icons in buttons stay white */
button i {
    color: white !important;
}

/* =========================================
   1. PC 및 태블릿 가독성 (768px 이상)
   ========================================= */
@media (min-width: 768px) {
    .content-body,
    #resultsContent {
        font-size: 16px !important;
        line-height: 1.55 !important;
        letter-spacing: -0.01em !important;
        /* PC 가독성 핵심: 읽기 좋은 폭 제한 */
        max-width: 720px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* =========================================
   2. 여백의 호흡 (Spacing Rhythm)
   제목 -> (공백) -> 본문 -> (공백) -> 리스트
   ========================================= */

/* 제목 하단 여백 */
.content-body h1,
.content-body h2,
.content-body h3,
#resultsContent h1,
#resultsContent h2,
#resultsContent h3,
#resultsContent .text-xl,
#resultsContent .text-lg {
    margin-top: 40px !important;
    margin-bottom: 24px !important; /* 제목과 본문 사이 충분한 공백 */
    line-height: 1.3 !important;
    letter-spacing: -0.03em !important;
}

/* 본문 문단 간격 */
.content-body p,
#resultsContent p,
#resultsContent .text-base {
    margin-bottom: 24px !important; /* 문단과 문단 사이 공백 */
    line-height: 1.6 !important;
}

/* 리스트 상하 여백 */
.content-body ul,
.content-body ol,
#resultsContent ul,
#resultsContent ol {
    margin-top: 24px !important; /* 본문 -> 리스트 전환 시 여백 */
    margin-bottom: 32px !important; /* 리스트 -> 다음 내용 전환 시 여백 */
}

.content-body li,
#resultsContent li {
    margin-bottom: 12px !important; /* 리스트 항목 간 간격 */
    line-height: 1.6 !important;
}

/* =========================================
   3. 포인트 스타일링 (Point Styling)
   ========================================= */

/* 핵심 메시지: Bold */
.content-body strong,
.content-body b,
#resultsContent strong,
#resultsContent b {
    font-weight: 700;
    color: #111 !important; /* 본문보다 더 진한 블랙으로 강조 */
}

/* 인용/강조: Italic */
.content-body em,
.content-body i,
#resultsContent em,
#resultsContent i {
    font-style: italic;
    color: #666 !important; /* 약간 옅은 톤으로 감성적인 느낌 전달 */
}

/* 결과 섹션 카드 여백 */
#resultsContent > div {
    margin-bottom: 32px !important; /* 섹션 간 충분한 여백 */
}

/* 박스형 콘텐츠 내부 여백 */
#resultsContent .border,
#resultsContent .rounded-lg {
    padding: 24px !important;
    margin-bottom: 24px !important;
}

/* 내부 div 요소 여백 */
#resultsContent .border > div,
#resultsContent .rounded-lg > div {
    margin-bottom: 16px !important;
}

/* 아이콘과 텍스트 간격 */
#resultsContent i {
    margin-right: 8px !important;
}

/* Tailwind space-y 클래스 오버라이드 */
#resultsContent.space-y-6 > * {
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

#resultsContent.space-y-6 > *:last-child {
    margin-bottom: 0 !important;
}
