.parish-history {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem 5rem;
}

/* ------------------------------- 표제 ------------------------------- */
.ph-hero {
	padding: 3.5rem 0 2.5rem;
	margin-bottom: 3rem;
	border-bottom: 1px solid #e5e5e5;
	text-align: center;
}

.ph-title {
	margin: 0 0 1.1rem;
	font-size: clamp(1.6rem, 4vw, 2.1rem);
	font-weight: 700;
	color: #111;
	letter-spacing: -0.02em;
}

.ph-lead {
	margin: 0 0 1.4rem;
	font-size: 1rem;
	line-height: 1.9;
	color: #666;
	word-break: keep-all;
}

.ph-hero-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	margin: 0;
	font-size: 0.85rem;
	color: #999;
}

.ph-hero-meta span + span::before {
	content: '';
	display: inline-block;
	width: 1px;
	height: 0.8em;
	margin-right: 0.85rem;
	vertical-align: -0.05em;
	background: #ddd;
}

/* ------------------------------ 섹션 ------------------------------ */
.ph-section {
	margin-bottom: 3.5rem;
}

.ph-section:last-child {
	margin-bottom: 0;
}

.ph-heading {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
}

.ph-heading::before {
	content: '';
	width: 3px;
	height: 1.05em;
	border-radius: 2px;
	background: #111;
}

/* ---------------------------- 주요 이력 ---------------------------- */
.ph-milestone-list {
	display: grid;
	/* 5칸이 한 줄에 들어가도록 최소폭을 낮춘다. 자리가 남아 빈 트랙이 생기면
	   auto-fit 이 접어 주므로 항목 수만큼 균등하게 나뉜다 */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-milestone {
	position: relative;
	padding: 1.35rem 1.25rem 1.25rem;
	border: 1px solid #ececE8;
	border-radius: 14px;
	background: #fafaf8;
}

.ph-milestone-year {
	margin: 0 0 0.15rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #111;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.ph-milestone-date {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	color: #aaa;
	font-variant-numeric: tabular-nums;
}

.ph-milestone-text {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.65;
	color: #444;
	word-break: keep-all;
}

/* ---------------------------- 연대 탭 ---------------------------- */
.ph-decades {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 2rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid #ececE8;
}

.ph-decade {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 1.05rem;
	border: 1px solid #e4e4de;
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: #555;
	cursor: pointer;
}

.ph-decade:hover {
	border-color: #c9c9c0;
	color: #111;
}

.ph-decade.is-active {
	border-color: #111;
	background: #111;
	color: #fff;
}

.ph-decade-count {
	padding: 0.1rem 0.42rem;
	border-radius: 999px;
	background: #f1f1ec;
	font-size: 0.76rem;
	font-weight: 600;
	color: #888;
	font-variant-numeric: tabular-nums;
}

.ph-decade.is-active .ph-decade-count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* ---------------------------- 연도 타임라인 ---------------------------- */
.ph-years {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-year {
	display: grid;
	/* minmax(0, …) 없이 두면 긴 내용이 열을 밀어낸다 */
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0 2rem;
	padding-bottom: 2.75rem;
}

.ph-year:last-child {
	padding-bottom: 0;
}

.ph-year-head {
	position: sticky;
	top: 5.5rem;
	align-self: start;
	padding-top: 0.1rem;
}

.ph-year-num {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: #111;
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.ph-year-count {
	margin: 0.3rem 0 0;
	font-size: 0.8rem;
	color: #aaa;
	font-variant-numeric: tabular-nums;
}

/* 왼쪽 세로선 + 점으로 흐름을 만든다 */
.ph-items {
	position: relative;
	margin: 0;
	padding: 0 0 0 1.5rem;
	list-style: none;
	border-left: 1px solid #ececE8;
}

.ph-item {
	position: relative;
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	gap: 0 1rem;
	padding: 0.72rem 0;
	border-bottom: 1px solid #f4f4f1;
}

.ph-item:last-child {
	border-bottom: 0;
}

.ph-item::before {
	content: '';
	position: absolute;
	top: 1.28rem;
	left: -1.5rem;
	width: 7px;
	height: 7px;
	margin-left: -3.5px;
	border-radius: 50%;
	background: #d5d5cd;
}

.ph-item:first-child::before {
	background: #111;
}

.ph-date {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 600;
	color: #999;
	line-height: 1.7;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.ph-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #333;
	word-break: keep-all;
}

/* ---------------------------- 좁은 화면 ---------------------------- */
@media (max-width: 780px) {
	.parish-history {
		padding: 0 1.15rem 3.5rem;
	}

	.ph-hero {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.25rem;
	}

	/* 1열로 두면 주요 이력만 한 화면을 넘겨 버린다 */
	.ph-milestone-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.ph-milestone {
		padding: 1rem 0.9rem;
		border-radius: 12px;
	}

	.ph-milestone-year {
		font-size: 1.15rem;
	}

	.ph-milestone-date {
		margin-bottom: 0.45rem;
		font-size: 0.76rem;
	}

	.ph-milestone-text {
		font-size: 0.87rem;
		line-height: 1.55;
	}

	/* 연도를 위로 올려 내용 폭을 확보한다 */
	.ph-year {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
		padding-bottom: 2.25rem;
	}

	.ph-year-head {
		position: static;
		display: flex;
		align-items: baseline;
		gap: 0.6rem;
		padding-bottom: 0.15rem;
		border-bottom: 2px solid #111;
	}

	.ph-year-num {
		font-size: 1.3rem;
	}

	.ph-year-count {
		margin: 0;
	}

	.ph-items {
		padding-left: 1.15rem;
	}

	.ph-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.15rem;
		padding: 0.65rem 0;
	}

	.ph-item::before {
		top: 1.05rem;
		left: -1.15rem;
	}

	.ph-date {
		font-size: 0.8rem;
	}

	.ph-text {
		font-size: 0.92rem;
	}
}
