/**
 * 공지 단일(Summernote HTML) — Tailwind Preflight 대응
 * 스코프: .page-notice-detail .notice-post-body
 */

.page-notice-detail .notice-post-body {
	font-size: 1rem;
	line-height: 1.75;
	color: #444;
	word-break: break-word;
}

/* 문단 간격 (Preflight가 margin 0으로 둔 경우 복구) */
.page-notice-detail .notice-post-body > p,
.page-notice-detail .notice-post-body p {
	margin-top: 0;
	margin-bottom: 1em;
}

.page-notice-detail .notice-post-body > p:last-child,
.page-notice-detail .notice-post-body p:last-child {
	margin-bottom: 0;
}

/* 줄바꿈용 빈 문단 */
.page-notice-detail .notice-post-body p:empty {
	min-height: 1em;
	margin-bottom: 1em;
}

.page-notice-detail .notice-post-body h1,
.page-notice-detail .notice-post-body h2,
.page-notice-detail .notice-post-body h3,
.page-notice-detail .notice-post-body h4,
.page-notice-detail .notice-post-body h5,
.page-notice-detail .notice-post-body h6 {
	margin-top: 1.25em;
	margin-bottom: 0.5em;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.page-notice-detail .notice-post-body h1 {
	font-size: 2em;
}
.page-notice-detail .notice-post-body h2 {
	font-size: 1.5em;
}
.page-notice-detail .notice-post-body h3 {
	font-size: 1.25em;
}
.page-notice-detail .notice-post-body h4 {
	font-size: 1.125em;
}

.page-notice-detail .notice-post-body ul,
.page-notice-detail .notice-post-body ol {
	margin: 0 0 1em 0;
	padding-left: 1.5em;
}

.page-notice-detail .notice-post-body li {
	margin-bottom: 0.35em;
}

.page-notice-detail .notice-post-body blockquote {
	margin: 1em 0;
	padding: 0.75em 1em 0.75em 1.25em;
	border-left: 4px solid #002549 !important;
	background-color: #f9fafb;
	color: #374151;
}

.page-notice-detail .notice-post-body a {
	color: #002549;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.page-notice-detail .notice-post-body a:hover {
	color: #001a3a;
}

.page-notice-detail .notice-post-body img,
.page-notice-detail .notice-post-body video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* 표 — Preflight border 제거 대응 */
.page-notice-detail .notice-post-body table,
.page-notice-detail .notice-post-body .summernote-wp-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse !important;
	margin: 1em 0;
	font-size: inherit;
}

.page-notice-detail .notice-post-body table th,
.page-notice-detail .notice-post-body table td,
.page-notice-detail .notice-post-body .summernote-wp-table th,
.page-notice-detail .notice-post-body .summernote-wp-table td {
	border: 1px solid #d1d5db !important;
	padding: 0.5em 0.75em !important;
	vertical-align: top;
	text-align: left;
}

.page-notice-detail .notice-post-body table th,
.page-notice-detail .notice-post-body .summernote-wp-table th {
	background-color: #f3f4f6 !important;
	font-weight: 600;
	color: #111;
}

.page-notice-detail .notice-post-body table caption {
	caption-side: bottom;
	padding-top: 0.5em;
	font-size: 0.875em;
	color: #6b7280;
	text-align: left;
}

.page-notice-detail .notice-post-body hr {
	margin: 1.5em 0;
	border: 0;
	border-top: 1px solid #d9d9d9;
}

.page-notice-detail .notice-post-body pre,
.page-notice-detail .notice-post-body code {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.page-notice-detail .notice-post-body pre {
	overflow-x: auto;
	padding: 1em;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	margin: 1em 0;
}
