@charset "utf-8";

/* ============================================================
   march09 — 원형 다이얼형
   이슈 카드가 원 둘레에 배치 → 클릭/버튼으로 회전 선택
   ============================================================ */

/* ============================================================
   히어로
   ============================================================ */
.rd-hero {
	padding: 160px 60px 72px;
	background: var(--color-bg-main);
	border-bottom: 1px solid var(--color-border);
}

.rd-hero-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.rd-hero-label {
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
	margin-bottom: 20px;
	opacity: 0;
	transform: translateY(10px);
}

.rd-hero-tit {
	font-size: clamp(44px, calc(16px + 5vw), 80px);
	font-weight: 900;
	font-family: var(--font-sub-title);
	color: var(--color-text-main);
	margin-bottom: 20px;
	overflow: hidden;
}

.rd-hero-tit-inner {
	display: block;
	transform: translateY(105%);
}

.rd-hero-sub {
	font-size: clamp(16px, calc(8px + 1vw), 20px);
	color: var(--color-text-muted);
	opacity: 0;
	transform: translateY(10px);
}

/* ============================================================
   스테이지 레이아웃 — 다이얼 (좌) + 디테일 (우)
   ============================================================ */
.rd-stage {
	display: grid;
	grid-template-columns: 600px 1fr;
	gap: 80px;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 80px 60px 100px;
	min-height: 80vh;
}

/* ============================================================
   다이얼 영역
   ============================================================ */
.rd-dial-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
}

.rd-dial-wrap {
	position: relative;
	width: 540px;
	height: 540px;
	flex-shrink: 0;
}

/* 외부 링 */
.rd-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid var(--color-border);
}

/* 내부 링 (중앙 원) */
.rd-ring::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 220px;
	height: 220px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
}

/* 아이템 트랙 */
.rd-track {
	position: absolute;
	inset: 0;
}

/* 12시 방향 선택 포인터 */
.rd-pointer {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-text-main);
	z-index: 30;
	box-shadow:
		0 0 0 3px var(--color-bg-main),
		0 0 0 4px var(--color-border);
}

/* 중앙 텍스트 */
.rd-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
	gap: 4px;
}

.rd-center-vol {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
}

.rd-center-year {
	font-size: clamp(32px, calc(16px + 2.5vw), 52px);
	font-weight: 900;
	font-family: var(--font-sub-title);
	color: var(--color-text-main);
}

/* ============================================================
   다이얼 아이템 (JS 생성)
   ============================================================ */
.rd-item {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #a8a89c;
	background: var(--color-bg-card);
	cursor: pointer;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
	padding: 0;
}

.rd-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
	transition: opacity 0.3s ease, transform 0.3s ease;
	display: block;
	pointer-events: none;
}

.rd-item.is-active {
	border-color: #111;
	box-shadow:
		0 0 0 3px var(--color-bg-main),
		0 0 0 5px #111;
	z-index: 10;
}

.rd-item.is-active img {
	opacity: 1;
}

.rd-item:hover img {
	transform: scale(1.12);
	opacity: 0.75;
}

.rd-item.is-active:hover img {
	transform: scale(1.12);
	opacity: 1;
}

/* ============================================================
   이전/다음 버튼 행
   ============================================================ */
.rd-nav-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.rd-nav {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1.5px solid var(--color-border);
	background: var(--color-bg-main);
	color: var(--color-text-main);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.2s,
		border-color 0.2s,
		color 0.2s;
	flex-shrink: 0;
}

.rd-nav:hover {
	background: var(--color-text-main);
	color: var(--color-bg-main);
	border-color: var(--color-text-main);
}

.rd-nav svg {
	width: 20px;
	height: 20px;
}

.rd-nav-hint {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--color-text-muted);
	min-width: 80px;
	text-align: center;
}

.rd-scroll-hint {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--color-text-muted);
	text-align: center;
}

@media all and (max-width: 799px) {
	.rd-scroll-hint { display: none; }
}

/* ============================================================
   디테일 패널
   ============================================================ */
.rd-detail {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.rd-detail-cover-wrap {
	flex-shrink: 0;
	width: 160px;
	aspect-ratio: 2 / 3;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 6px 8px 28px rgba(0, 0, 0, 0.14);
}

.rd-detail-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rd-detail-info {
	flex: 1;
	padding-top: 6px;
}

.rd-detail-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.rd-detail-vol {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-primary);
}

.rd-detail-sep {
	color: var(--color-text-muted);
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
}

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

.rd-detail-theme {
	font-size: clamp(24px, calc(10px + 2vw), 38px);
	font-weight: 800;
	font-family: var(--font-sub-title);
	color: var(--color-text-main);
	margin-bottom: 28px;
	line-height: 1.3;
}

.rd-detail-toc {
	list-style: none;
	margin-bottom: 32px;
	border-top: 1px solid var(--color-border);
}

.rd-detail-toc li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--color-border);
}

.toc-cat {
	font-size: clamp(12px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
	white-space: nowrap;
	flex-shrink: 0;
}

.rd-detail-toc a {
	font-size: clamp(16px, calc(2px + 1.6vw), 20px);
	color: var(--color-text-sub);
	text-decoration: none;
	transition: color 0.2s;
	line-height: 1.4;
}

.rd-detail-toc a:hover {
	color: var(--color-text-main);
}

.rd-detail-cta {
	display: inline-block;
	padding: 12px 28px;
	border: 1.5px solid var(--color-text-main);
	color: var(--color-text-main);
	font-size: clamp(15px, calc(3px + 1.5vw), 18px);
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition:
		background 0.2s,
		color 0.2s;
}

.rd-detail-cta:hover {
	background: var(--color-text-main);
	color: var(--color-bg-main);
}

/* ============================================================
   반응형 — 1299px (다이얼 유동 전환)
   ============================================================ */
@media all and (max-width: 1299px) {
	.rd-stage {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}

	.rd-dial-wrap {
		width: 100%;
		max-width: 500px;
		height: auto;
		aspect-ratio: 1;
	}

	.rd-ring::before {
		width: 41%;
		height: 41%;
	}

	.rd-item {
		width: 76px;
		height: 76px;
	}
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	.rd-hero {
		padding: 140px 32px 56px;
	}

	.rd-stage {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
		padding: 64px 32px 80px;
	}

	/* 다이얼: 그리드 셀 너비에 맞춰 유동 정사각형 */
	.rd-dial-wrap {
		width: 100%;
		max-width: 420px;
		height: auto;
		aspect-ratio: 1;
	}

	/* 내부 링 — 비율 기반 */
	.rd-ring::before {
		width: 41%;
		height: 41%;
	}

	.rd-item {
		width: 66px;
		height: 66px;
	}
}

/* ============================================================
   반응형 — 768px (세로 스택)
   ============================================================ */
@media all and (max-width: 799px) {
	.rd-hero {
		padding: 100px 20px 36px;
	}
	.rd-hero-label {
		margin-bottom: 0;
	}
	.rd-hero-tit {
		margin-bottom: 8px;
	}
	.rd-stage {
		grid-template-columns: 1fr;
		gap: 48px;
		padding: 56px 20px 72px;
		min-height: auto;
	}

	.rd-dial-wrap {
		width: min(360px, 85vw);
		height: auto;
		aspect-ratio: 1;
		margin: 0 auto;
	}

	.rd-ring::before {
		width: 41%;
		height: 41%;
	}

	.rd-item {
		width: 58px;
		height: 58px;
	}

	.rd-detail {
		gap: 24px;
	}

	.rd-detail-cover-wrap {
		width: 120px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media all and (max-width: 499px) {
	.rd-dial-wrap {
		width: min(280px, 82vw);
	}

	.rd-item {
		width: 48px;
		height: 48px;
		border-width: 2px;
	}

	.rd-detail {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.rd-detail-cover-wrap {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.rd-detail-cover {
		object-position: center 30%;
	}

	.rd-stage {
		padding: 36px 16px 56px;
		gap: 36px;
	}
}
