@charset "utf-8";

/* ============================================================
   mcat11 — 신문 섹션 인덱스형 분류
   mmain13 + msub19 디자인 언어 — 세피아 배경 + 종이 질감 + 그레이스케일
   ============================================================ */

/* ── 신문 테마 토큰 ── */
:root {
	--np-bg: #ededeb;
	--np-ink: #14120e;
	--np-red: #8b1a1a;
	--np-rule: #a8a6a0;
	--np-muted: #5a5854;
}

body {
	background: var(--np-bg);
}
body.dark {
	background: #1a1208;
}

/* ── 종이 질감 노이즈 오버레이 ── */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9998;
	pointer-events: none;
	opacity: 0.4;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.38' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 180px 180px;
}

body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: var(--np-bg) !important;
}

/* ── 공용 래퍼 ── */
.na11-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
}

/* ── 룰라인 ── */
.na11-rule {
	border: none;
	margin: 0;
}
.na11-rule--thick {
	border-top: 3px solid var(--np-ink);
}
.na11-rule--double {
	border-top: 3px double var(--np-ink);
}

/* ============================================================
   S1: 마스트헤드
   ============================================================ */
.na11-masthead {
	padding-top: 90px;
	background: var(--np-bg);
}

.na11-anim-rule-l {
	transform: scaleX(0);
	transform-origin: left;
}
.na11-anim-rule-r {
	transform: scaleX(0);
	transform-origin: right;
}
.na11-anim-title {
	opacity: 0;
	transform: translateY(-10px);
}
.na11-anim-fade {
	opacity: 0;
}

.na11-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 28px 0 10px;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--np-muted);
}

.na11-nameplate {
	font-size: clamp(32px, calc(4px + 9vw), 108px);
	font-weight: 900;
	font-family: var(--font-serif);
	color: var(--np-ink);
	text-align: center;
	padding: 16px 0 12px;
}

.na11-date-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid var(--np-rule);
	border-bottom: 1px solid var(--np-rule);
}

.na11-date-txt {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--np-muted);
}

.na11-slogan {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-style: italic;
	font-family: var(--font-serif);
	color: var(--np-ink);
}

/* ============================================================
   S2: 필터
   ============================================================ */
.na11-filter-wrap {
	background: var(--np-bg);
	border-bottom: 1px solid var(--np-rule);
	position: sticky;
	top: 90px;
	z-index: 2;
	transition: top 0.25s ease;
}

.na11-filter {
	display: flex;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
	gap: 0;
}
.na11-filter::-webkit-scrollbar {
	display: none;
}

.na11-filter-btn {
	flex-shrink: 0;
	padding: 12px 20px;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 600;
	font-family: var(--font-serif);
	color: var(--np-muted);
	background: none;
	border: none;
	border-right: 1px solid var(--np-rule);
	cursor: pointer;
	transition: color 0.2s ease;
	white-space: nowrap;
}
.na11-filter-btn:first-child {
	border-left: 1px solid var(--np-rule);
}
.na11-filter-btn:hover {
	color: var(--np-ink);
}
.na11-filter-btn.is-active {
	color: var(--np-red);
	font-style: italic;
}

.na11-filter-count {
	font-style: normal;
	opacity: 0.6;
	margin-left: 4px;
}

.na11-filter-spacer {
	height: 0;
}

/* ============================================================
   S3: 기사 목록
   ============================================================ */
.na11-list-sec {
	padding: 0 0 100px;
}

.na11-articles {
	border-top: 3px solid var(--np-ink);
}

/* ── 기사 아이템 ── */
.na11-art {
	border-bottom: 1px solid var(--np-rule);
}

.na11-art.is-hidden {
	display: none;
}

.na11-art-link {
	display: grid;
	grid-template-columns: 130px 1fr auto;
	gap: 24px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
	padding: 28px 0;
	text-decoration: none;
	color: var(--np-ink);
}

/* ── 썸네일 ── */
.na11-fig {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--np-rule);
}

.na11-fig img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%) contrast(1.06) sepia(10%);
	transition: filter 0.4s ease;
}

.na11-art-link:hover .na11-fig img {
	filter: grayscale(30%) contrast(1) sepia(20%);
}

/* ── 기사 텍스트 ── */
.na11-kicker {
	display: block;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--np-red);
	margin-bottom: 6px;
	text-transform: uppercase;
}

.na11-headline {
	font-family: var(--font-serif);
	font-size: clamp(18px, calc(6px + 2vw), 28px);
	font-weight: 700;
	color: var(--np-ink);
	margin-bottom: 10px;
	word-break: keep-all;
	transition: color 0.2s ease;
}

.na11-art-link:hover .na11-headline {
	color: var(--np-red);
}

.na11-deck {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--np-muted);
	word-break: keep-all;
}

/* ── 페이지 번호 ── */
.na11-pg {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--np-muted);
	opacity: 0.5;
	white-space: nowrap;
	padding-top: 3px;
	font-variant-numeric: tabular-nums;
	transition: opacity 0.2s ease;
}

.na11-art-link:hover .na11-pg {
	opacity: 1;
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media (max-width: 999px) {
	.na11-masthead {
		padding-top: 70px;
	}
	.na11-filter-wrap {
		top: 70px;
	}
	.na11-wrap {
		padding: 0 40px;
	}
	.na11-list-sec {
		padding-bottom: 80px;
	}
}

/* ============================================================
   반응형 — 768px
   ============================================================ */
@media (max-width: 768px) {
	.na11-wrap {
		padding: 0 24px;
	}
	.na11-meta-bar {
		padding-top: 20px;
	}
	.na11-art-link {
		grid-template-columns: 90px 1fr;
		gap: 16px;
		padding: 20px 0;
	}
	.na11-pg {
		display: none;
	}
	.na11-art-link:hover {
		transform: none;
	}
	.na11-art-link:hover .na11-fig img {
		filter: grayscale(100%) contrast(1.06) sepia(10%);
	}
	.na11-art-link:hover .na11-headline {
		color: var(--np-ink);
	}
	.na11-list-sec {
		padding-bottom: 32px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media (max-width: 499px) {
	.na11-wrap {
		padding: 0 20px;
	}
	.na11-art-link {
		grid-template-columns: 72px 1fr;
		gap: 12px;
		padding: 16px 0;
	}
	.na11-filter-btn {
		padding: 10px 14px;
	}
}

/* ============================================================
   다크모드
   ============================================================ */
body.dark .na11-masthead {
	background: #1a1208;
}
body.dark .na11-filter-wrap {
	background: #1a1208;
	border-bottom-color: #3a3020;
}
body.dark .na11-filter-btn {
	color: #8a8070;
	border-right-color: #3a3020;
}
body.dark .na11-filter-btn:first-child {
	border-left-color: #3a3020;
}
body.dark .na11-filter-btn:hover {
	color: #c8bfaa;
}
body.dark .na11-filter-btn.is-active {
	color: #c8624a;
}
body.dark .na11-rule--thick {
	border-top-color: #c8bfaa;
}
body.dark .na11-rule--double {
	border-top-color: #c8bfaa;
}
body.dark .na11-articles {
	border-top-color: #c8bfaa;
}
body.dark .na11-art {
	border-bottom-color: #3a3020;
}
body.dark .na11-art-link {
	color: #c8bfaa;
}
body.dark .na11-kicker {
	color: #c8624a;
}
body.dark .na11-headline {
	color: #c8bfaa;
}
body.dark .na11-art-link:hover .na11-headline {
	color: #c8624a;
}
body.dark .na11-deck {
	color: #8a8070;
}
body.dark .na11-pg {
	color: #8a8070;
}
body.dark .na11-date-row {
	border-top-color: #3a3020;
	border-bottom-color: #3a3020;
}
body.dark .na11-slogan {
	color: #c8bfaa;
}
body.dark .na11-nameplate {
	color: #c8bfaa;
}
body.dark .na11-meta-bar {
	color: #8a8070;
}
