/* 공지사항: 목록(template-parts/notice-list.php), 숏코드 [notice_list]. 공통 요소는 board.css */

.notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--primary);
}
.notice-item a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 20px 16px;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.2s ease;
}
.notice-item a:hover {
	background-color: var(--paper);
}
.notice-item.is-pinned a {
	background-color: color-mix(in oklab, var(--primary), #fff 96%);
}
.notice-title {
	overflow: hidden;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.notice-item a:hover .notice-title {
	color: var(--primary);
}
.notice-badge {
	display: inline-block;
	margin-right: 10px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}
.notice-date {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
}
.notice-intro {
	margin-bottom: 32px;
}
.notice-more {
	margin: 16px 0 0;
	text-align: right;
	font-weight: 600;
	color: var(--primary);
}
.notice-more a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

@media (max-width: 768px) {
	.notice-item a {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 16px 8px;
	}
	.notice-title {
		white-space: normal;
	}
}
