@charset "utf-8";

/* ============================================================
   mmain19 — 숫자가 말하는 것들 (데이터 저널리즘 메인)
   ============================================================ */

/* ============================================================
   히어로
   ============================================================ */
.dm-hero {
	background: #F5F3EF;
	padding: clamp(72px, 10vw, 110px) 0 0;
}

.dm-hero-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 48px);
}

.dm-hero-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.dm-hero-kicker {
	font-size: clamp(14px, calc(3px + 1vw), 16px);
	font-weight: 600;
	color: #1B5FA8;
	font-family: 'Pretendard Variable', sans-serif;
}

.dm-hero-date {
	font-size: clamp(13px, calc(2px + 1vw), 15px);
	color: #999;
	font-family: 'Pretendard Variable', sans-serif;
}

.dm-hero-img-wrap {
	width: 100%;
	margin-bottom: 28px;
	aspect-ratio: 16 / 7;
	overflow: hidden;
}

.dm-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dm-hero-bottom {
	padding-bottom: clamp(36px, 5vw, 56px);
	border-top: 1px solid #DDDDDD;
	padding-top: 20px;
	display: flex;
	align-items: baseline;
	gap: 20px;
	flex-wrap: wrap;
}

.dm-hero-tit {
	font-size: clamp(22px, calc(8px + 2vw), 36px);
	font-family: var(--font-serif);
	font-weight: 700;
	color: #111;
	line-height: 1.2;
	flex-shrink: 0;
}

.dm-hero-sub {
	font-size: clamp(14px, calc(4px + 1vw), 16px);
	color: #666;
	line-height: 1.7;
}

.dm-hero-divider {
	height: 3px;
	background: #1B5FA8;
}

/* ============================================================
   키 지표 밴드
   ============================================================ */
.dm-band {
	background: #1B5FA8;
}

.dm-band-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 48px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.dm-band-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2vw, 24px);
}

.dm-band-item + .dm-band-item {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-band-num {
	font-size: clamp(26px, calc(8px + 2.2vw), 40px);
	font-family: var(--font-serif);
	font-weight: 700;
	color: #fff;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.dm-band-label {
	font-size: clamp(14px, calc(6px + 1vw), 18px);
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Pretendard Variable', sans-serif;
}

/* ============================================================
   카드 그리드
   ============================================================ */
.dm-cards {
	background: #FAFAF8;
	padding: clamp(36px, 5vw, 64px) 0;
}

.dm-cards-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 48px);
}

.dm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.5vw, 24px);
}

/* ── 카드 ── */
.dm-card {
	background: #fff;
	border: 1px solid #E0E0E0;
	border-top: 3px solid var(--card-accent, #1B5FA8);
	border-radius: 2px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dm-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.dm-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* 카드 헤드 (스파크라인 영역) */
.dm-card-head {
	height: clamp(80px, 10vw, 110px);
	background: color-mix(in srgb, var(--card-accent) 8%, #F7F7F5);
	position: relative;
	overflow: hidden;
}

.dm-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.4s ease;
}

.dm-card:hover .dm-card-thumb {
	filter: grayscale(0%);
}

/* 카드 바디 */
.dm-card-body {
	padding: clamp(14px, 2vw, 20px);
}

.dm-card-cat {
	font-size: clamp(12px, calc(2px + 0.9vw), 13px);
	font-weight: 600;
	font-family: 'Pretendard Variable', sans-serif;
	display: block;
	margin-bottom: 8px;
}

.dm-card-tit {
	font-size: clamp(15px, calc(5px + 1vw), 18px);
	font-family: var(--font-serif);
	font-weight: 700;
	color: #111;
	line-height: 1.4;
	margin-bottom: 6px;
}

.dm-card-desc {
	font-size: clamp(13px, calc(2px + 1vw), 14px);
	color: #777;
	line-height: 1.6;
	margin-bottom: 16px;
}

/* 핵심 지표 */
.dm-card-stat {
	border-top: 1px solid #EBEBEB;
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dm-stat-num {
	font-size: clamp(20px, calc(8px + 1.8vw), 28px);
	font-family: var(--font-serif);
	font-weight: 700;
	color: var(--card-accent, #1B5FA8);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.dm-stat-label {
	font-size: clamp(12px, calc(2px + 0.8vw), 13px);
	color: #999;
	font-family: 'Pretendard Variable', sans-serif;
}

/* ============================================================
   reveal 공통
   ============================================================ */
.dm-reveal {
	opacity: 0;
	transform: translateY(16px);
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 999px) {
	.dm-band-inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.dm-band-item:nth-child(2n+1) {
		border-left: none;
	}

	.dm-band-item:nth-child(3),
	.dm-band-item:nth-child(4) {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.dm-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.dm-hero-bottom {
		flex-direction: column;
		gap: 8px;
	}
}

@media (max-width: 499px) {
	.dm-band-inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.dm-grid {
		grid-template-columns: 1fr;
	}

	.dm-card-head {
		height: 72px;
	}
}

/* ============================================================
   다크모드
   ============================================================ */
body.dark .dm-band {
	background: #1a4f8c;
}

body.dark .dm-band-item + .dm-band-item,
body.dark .dm-band-item:nth-child(3),
body.dark .dm-band-item:nth-child(4) {
	border-color: rgba(255, 255, 255, 0.15);
}

body.dark .dm-hero {
	background: var(--color-bg-sub);
}

body.dark .dm-hero-tit {
	color: var(--color-text-main);
}

body.dark .dm-hero-sub {
	color: var(--color-text-sub);
}

body.dark .dm-hero-bottom {
	border-top-color: var(--color-border-strong);
}

body.dark .dm-hero-divider {
	background: #60a5fa;
}

body.dark .dm-hero-kicker {
	color: #60a5fa;
}

body.dark .dm-cards {
	background: var(--color-bg-main);
}

body.dark .dm-card {
	background: var(--color-bg-sub);
	border-color: var(--color-border-strong);
}

body.dark .dm-card-head {
	background: var(--color-bg-main);
}

body.dark .dm-card-tit {
	color: var(--color-text-main);
}

body.dark .dm-card-desc {
	color: var(--color-text-sub);
}

body.dark .dm-card-stat {
	border-top-color: var(--color-border);
}

body.dark .dm-stat-label {
	color: var(--color-text-sub);
}
