@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    background-color: #FFFFFF;
    color: #222222;
    line-height: 1.85;
    word-break: keep-all;
    overflow-x: hidden;
}

/* Layout */
.container {
    width: 100%;
    padding: 0 20px;
}

section {
    padding: 30px 0; /* 여백 1/2 축소: 기존 60px -> 30px */
}

.content-width {
    max-width: 750px;
    margin: 0 auto;
}

.visual-width {
    max-width: 1000px;
    margin: 30px auto;
}

/* Header & Typography */
h1.main-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #111111;
    text-align: left; /* 좌측 정렬로 변경 */
}

.subcopy-block {
    border-left: 2px solid #D5D5D5; /* 선 스타일 교정: 얇고 연한 회색 */
    padding-left: 20px;
    margin: 0 0 40px 0; /* 좌측 정렬을 위해 auto 제거 */
    max-width: 750px;
}

.subcopy-text {
    font-size: 20px;
    font-weight: 600;
    color: #444444;
    line-height: 1.5;
}

h2.section-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 45px; /* 여백 1/2 축소: 기존 90px -> 45px */
    margin-bottom: 20px; /* 여백 1/2 축소: 기존 40px -> 20px */
}

.section-title.tight-top {
    margin-top: 25px !important; /* 인터뷰-소제목 간격 추가 축소 */
}

p.body-text {
    font-size: 17px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 1.2rem; /* 문단 간격 축소 */
}

/* Visual Elements */
.photo-single {
    max-width: 650px;
    width: 100%;
    margin: 30px auto;
    text-align: center;
}

.photo-j-alert {
    max-width: 350px !important; /* 완전 축소 */
}

.photo-single img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-side-by-side {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 0;
}

.photo-side-by-side .photo-item {
    flex: 1;
}

.photo-side-by-side .photo-item img {
    width: 100%;
    height: 380px; /* 고정 높이 부여 */
    object-fit: cover; /* 대칭성 확보를 위한 크롭 */
    display: block;
}

.caption {
    font-size: 13px;
    color: #888888;
    margin-top: 10px;
    text-align: center;
}

/* Charts & Containers */
.chart-container {
    width: 100%;
    margin: 40px 0;
}

.chart-center-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.chart-wrapper {
    width: 100%;
    max-width: 800px;
    height: 500px;
    position: relative;
}

.chart-wrapper-circle {
    width: 100%;
    max-width: 600px;
    height: 500px;
    position: relative;
}

/* Leaflet Fix */
.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

#map {
    height: 500px;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
    z-index: 1;
}

.info {
    padding: 10px 15px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    line-height: 24px;
    color: #334155;
}

.incident-label {
    background: #222222 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    white-space: nowrap !important;
}

/* Interview & Author */
.interview-block {
    border-left: 4px solid #E2E8F0;
    padding-left: 24px;
    margin: 40px 0;
    background-color: #F8FAFC;
    padding-top: 25px;
    padding-bottom: 25px;
}

.interview-q {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.interview-a {
    margin-bottom: 20px;
    color: #475569;
}

.author-info {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #E2E8F0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
}

/* Summary Container Styles */
.summary-container {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Pretendard', sans-serif;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.summary-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    text-align: center;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.summary-item {
    background: white;
    padding: 12px 5px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.summary-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.summary-count {
    font-size: 18px;
    font-weight: 800;
    color: #1e40af;
}
.summary-total {
    border-top: 2px dashed #cbd5e1;
    padding-top: 15px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
}
.total-label {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}
.total-value {
    font-size: 24px;
    color: #2563eb;
    font-weight: 900;
    margin-left: 8px;
}

@media (max-width: 600px) {
    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1.main-title {
        font-size: 28px;
    }
    
    .photo-side-by-side .photo-item img {
        height: 250px;
    }
    
    .chart-wrapper, .chart-wrapper-circle {
        height: 350px;
    }
    
    #map {
        height: 400px;
    }
}
