@charset "utf-8";

/* Notice board — matched to project purple tokens (not reference teal) */
:root {
	--ntc-bg: hsl(224, 71.4%, 4.1%);
	--ntc-fg: hsl(210, 20%, 98%);
	--ntc-card: hsl(224, 45%, 7%);
	--ntc-primary: hsl(263.4, 70%, 50.4%);
	--ntc-primary-hover: hsl(263.4, 70%, 45%);
	--ntc-secondary: hsl(215, 27.9%, 16.9%);
	--ntc-muted: hsl(215, 27.9%, 16.9%);
	--ntc-muted-fg: hsl(217.9, 10.6%, 64.9%);
	--ntc-border: hsl(215, 27.9%, 16.9%);
	--ntc-radius: 0.5rem;
}

body:not(.dark) {
	--ntc-bg: #f8fafc;
	--ntc-fg: #0f172a;
	--ntc-card: #ffffff;
	--ntc-secondary: #e2e8f0;
	--ntc-muted: #f1f5f9;
	--ntc-muted-fg: #64748b;
	--ntc-border: #e2e8f0;
}

body.notice-fx-page {
	background: var(--ntc-bg) !important;
	color: var(--ntc-fg) !important;
}

/* 네비(64px)와 보라 배너 사이 검은 여백 제거 */
body.notice-fx-page .ety-main {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.notice-fx-page #container,
body.notice-fx-page #wrapper,
body.notice-fx-page .container,
body.notice-fx-page #bo_list,
body.notice-fx-page #bo_v,
body.notice-fx-page .ctt,
body.notice-fx-page #contents,
body.notice-fx-page .content {
	background: transparent !important;
	color: var(--ntc-fg);
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.notice-fx-page a {
	color: inherit;
}

.ntc-wrap {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ntc-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 16px 64px;
	box-sizing: border-box;
}

/* Full-bleed hero banner (reference teal → project purple) */
.ntc-hero {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 52px 0 56px;
	background:
		radial-gradient(ellipse 90% 130% at 50% 15%,
			hsla(263.4, 70%, 42%, 0.95) 0%,
			hsla(263.4, 65%, 28%, 0.75) 32%,
			hsla(250, 55%, 14%, 0.55) 58%,
			transparent 78%),
		linear-gradient(180deg,
			hsl(263.4, 55%, 18%) 0%,
			hsl(240, 45%, 8%) 55%,
			var(--ntc-bg) 100%);
	overflow: hidden;
}

.ntc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 80% at 0% 50%, rgba(0, 0, 0, 0.45) 0%, transparent 55%),
		radial-gradient(ellipse 70% 80% at 100% 50%, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
}

.ntc-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.ntc-hero h1 {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.2;
}

.ntc-hero p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.5;
}

.ntc-head {
	display: none;
}

@media (min-width: 768px) {
	.ntc-hero {
		padding: 64px 0 72px;
	}
	.ntc-hero h1 {
		font-size: 40px;
	}
	.ntc-hero p {
		font-size: 15px;
	}
}

/* Desktop split layout */
.ntc-desk {
	display: none;
	grid-template-columns: 300px 1fr;
	gap: 12px;
	min-height: 600px;
}

.ntc-side {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-radius: var(--ntc-radius);
	background: var(--ntc-secondary);
	padding: 12px;
	max-height: min(72vh, 720px);
	overflow-y: auto;
	overflow-x: hidden;
}

.ntc-side-item {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 8px;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--ntc-radius);
	background: transparent;
	color: var(--ntc-fg);
	cursor: pointer;
	text-align: left;
	transition: background .15s ease;
}

.ntc-side-item:hover {
	background: rgba(168, 85, 247, 0.10);
}

.ntc-side-item.is-active {
	background: rgba(168, 85, 247, 0.10);
}

.ntc-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ntc-primary);
	flex-shrink: 0;
}

.ntc-dot.is-hidden {
	visibility: hidden;
}

.ntc-side-title {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: capitalize;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ntc-chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: .7;
	transition: transform .3s ease;
	color: var(--ntc-muted-fg);
}

.ntc-side-item.is-active .ntc-chevron {
	transform: rotate(90deg);
	color: var(--ntc-primary);
}

.ntc-panel {
	border-radius: var(--ntc-radius);
	background: var(--ntc-secondary);
	padding: 20px;
	min-height: 600px;
}

.ntc-panel-title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
	color: var(--ntc-fg);
	line-height: 1.3;
}

.ntc-panel-date {
	display: block;
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--ntc-muted-fg);
}

.ntc-panel-media {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	min-height: 160px;
}

.ntc-panel-media img {
	max-height: 256px;
	width: auto;
	max-width: 100%;
	border-radius: var(--ntc-radius);
	object-fit: contain;
}

.ntc-panel-media .ntc-media-empty {
	width: 100%;
	height: 256px;
	border-radius: var(--ntc-radius);
	background: var(--ntc-muted);
}

.ntc-panel-body {
	font-size: 14px;
	line-height: 1.7;
	color: var(--ntc-muted-fg);
	word-break: break-word;
}

.ntc-panel-body img {
	max-width: 100%;
	height: auto;
}

.ntc-panel-body a {
	color: var(--ntc-primary);
}

/* Mobile card grid */
.ntc-mob {
	display: block;
}

.ntc-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.ntc-search {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid var(--ntc-border);
	border-radius: var(--ntc-radius);
	background: var(--ntc-card);
	color: var(--ntc-fg);
	font-size: 14px;
	outline: none;
}

.ntc-search:focus {
	border-color: var(--ntc-primary);
	box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.ntc-search::placeholder {
	color: var(--ntc-muted-fg);
}

.ntc-result-count {
	font-size: 12px;
	color: var(--ntc-muted-fg);
}

.ntc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ntc-card {
	overflow: hidden;
	border-radius: var(--ntc-radius);
	border: 1px solid var(--ntc-border);
	background: var(--ntc-card);
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
	text-decoration: none !important;
	color: inherit !important;
	display: block;
}

.ntc-card:hover {
	border-color: rgba(168, 85, 247, 0.45);
	transform: translateY(-1px);
}

.ntc-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 208px;
	overflow: hidden;
	background: var(--ntc-muted);
	position: relative;
}

.ntc-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
}

.ntc-card-horn {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%) rotate(-12deg);
	width: 200px;
	height: 200px;
	opacity: .3;
	color: var(--ntc-primary);
	pointer-events: none;
}

.ntc-card-body {
	padding: 16px;
}

.ntc-card-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ntc-fg);
	line-height: 1.35;
}

.ntc-card-date {
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--ntc-muted-fg);
}

.ntc-card-excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ntc-muted-fg);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ntc-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.ntc-pager button {
	border: 1px solid var(--ntc-border);
	border-radius: 4px;
	padding: 6px 12px;
	background: transparent;
	color: var(--ntc-fg);
	font-size: 13px;
	cursor: pointer;
}

.ntc-pager button:disabled {
	opacity: .45;
	cursor: default;
}

.ntc-pager span {
	font-size: 13px;
	color: var(--ntc-muted-fg);
}

.ntc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 520px;
	padding: 40px 16px;
	border-radius: 0;
	background: transparent;
	text-align: center;
}

.ntc-empty img {
	width: 100px;
	height: 100px;
	object-fit: contain;
	opacity: .9;
}

.ntc-empty p {
	margin: 0;
	font-size: 14px;
	color: var(--ntc-muted-fg);
}

/* Lightbox */
.ntc-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10060;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .8);
	padding: 24px;
	box-sizing: border-box;
}

.ntc-lightbox.is-open {
	display: flex;
}

.ntc-lightbox-inner {
	max-width: min(92vw, 720px);
	max-height: 90vh;
	background: var(--ntc-secondary);
	border-radius: var(--ntc-radius);
	padding: 16px;
	overflow: auto;
}

.ntc-lightbox-inner h3 {
	margin: 0 0 12px;
	font-size: 16px;
	color: var(--ntc-fg);
}

.ntc-lightbox-inner img {
	display: block;
	max-width: 100%;
	max-height: 500px;
	margin: 0 auto;
	object-fit: contain;
}

.ntc-lightbox-close {
	display: block;
	margin: 16px auto 0;
	padding: 8px 20px;
	border: 0;
	border-radius: 4px;
	background: #57534e;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
}

@media (min-width: 768px) {
	.ntc-desk {
		display: grid;
	}
	.ntc-mob {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.ntc-desk {
		grid-template-columns: 260px 1fr;
	}
}

/* Hide leftover legacy wrappers */
body.notice-fx-page .ch_title,
body.notice-fx-page .ht_message_top,
body.notice-fx-page .ht_cap,
body.notice-fx-page .tbls_wrap,
body.notice-fx-page .divide80,
body.notice-fx-page .margin-bottom-50 {
	display: none !important;
}
