/* 종목 상세 리서치 노트 상세 — 공통 레이아웃은 analysis/results.css 를 함께 로드해 재사용한다.
   노트 본문·근거는 전문 노출 (클램프 금지). */

.detail-nav {
    margin-bottom: 16px;
}

.note-header {
    margin-bottom: 20px;
}

.note-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.note-title h1 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 24px;
    color: #0f172a;
}

.company-ticker {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #64748b;
}

.note-badges {
    display: flex;
    gap: 6px;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-disqualified {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-truncated {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* --- 정량 스냅샷 --- */
.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.metric-label {
    font-size: 11px;
    color: #94a3b8;
}

.metric-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.metric-value.positive {
    color: #dc2626;
}

.muted {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}

.verdict-summary {
    display: flex;
    gap: 6px;
}

.verdict-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.verdict-chip.confirmed { background: #f0fdf4; color: #15803d; }
.verdict-chip.refuted { background: #fef2f2; color: #b91c1c; }
.verdict-chip.unresolved { background: #fffbeb; color: #b45309; }

/* --- 섹션 --- */
.note-section {
    margin-bottom: 36px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.section-count {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.section-note {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* 종합 서술 — Markdown 원문을 전문 그대로 보여준다 */
.note-overall {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 22px;
    font-size: 14px;
    line-height: 1.9;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- 부적격 --- */
.disqualified-section .disqualified-reason {
    margin: 0;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #7f1d1d;
    white-space: pre-wrap;
}

/* --- 미해소 질문 (1급 산출물 — 강조) --- */
.unresolved-section {
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.unresolved-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.8;
}

.unresolved-list li {
    margin-bottom: 10px;
}

.unresolved-list .finding-evidence {
    margin-top: 4px;
    font-size: 13px;
    color: #92400e;
    white-space: pre-wrap;
}

/* --- 문항별 판정 --- */
.finding-group {
    margin-bottom: 22px;
}

.finding-group-title {
    margin: 0 0 10px;
    font-size: 15px;
    color: #334155;
}

.finding-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 3px;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.finding-card.verdict-confirmed { border-left-color: #22c55e; }
.finding-card.verdict-refuted { border-left-color: #ef4444; }
.finding-card.verdict-unresolved { border-left-color: #f59e0b; }

.finding-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.finding-code {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.finding-question {
    flex: 1;
    min-width: 200px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
}

.verdict-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.verdict-badge.confirmed { background: #f0fdf4; color: #15803d; }
.verdict-badge.refuted { background: #fef2f2; color: #b91c1c; }
.verdict-badge.unresolved { background: #fffbeb; color: #b45309; }

.finding-evidence {
    font-size: 13px;
    line-height: 1.8;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- 출처 (리포트/웹 구분 표기) --- */
.source-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.source-item {
    font-size: 12px;
    color: #475569;
    display: flex;
    gap: 8px;
    align-items: baseline;
    word-break: break-all;
}

.source-type {
    flex-shrink: 0;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.source-report .source-type {
    background: #eef2ff;
    color: #3730a3;
}

.source-web .source-type {
    background: #ecfeff;
    color: #0e7490;
}

.source-item a {
    color: #2563eb;
    text-decoration: none;
}

.source-item a:hover {
    text-decoration: underline;
}

/* --- 근거 리포트 --- */
.report-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.report-open-link {
    color: #2563eb;
    text-decoration: none;
}

.report-open-link:hover {
    text-decoration: underline;
}
