@charset "utf-8";

/* 게시판 읽기 */
#bo_v_title {
	font-size:23px;
	font-weight:bold;
	line-height:1.4;
	letter-spacing:-1px;
}
#bo_v_con {
	min-height:200px; 
	word-break:break-all;
	overflow:hidden
}
@media all and (max-width:575px) {
	.responsive #bo_v_title {
		font-size:20px;
		line-height:1.5;
	}
	.responsive #bo_v_con { 
		min-height:140px; 
	}
}

#bo_v_con img {
	max-width:100%;
	height:auto
}
#bo_v_img {
	width:100%;
	text-align:center;
	overflow:hidden;
	zoom:1;
}
#bo_v_img:after {
	display:block;
	visibility:hidden;
	clear:both;
	content:"";
}
#bo_v_img a.view_image {
	display:block;
}
#bo_v_img img {
	margin-bottom:1.0rem;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon { 
	margin:-5px auto; 
}
#bo_v_sns_icon img { 
	width:40px; 
	border-radius:50%; 
	margin:5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
	top:0;
	left:-16px;
}
.by-writer { 
	background:#fbefef !important;
	border-top:1px solid #f6cece !important;
}
.cmt-content {
	word-break:break-all;
	overflow:hidden
}
.cmt-content img {
	max-width:100%;
	height:auto
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul { 
	list-style: none; 
	margin: 0; 
}
.cmt-btn ul > li { 
	float: left; 
	font-size:12px;
	padding: 0 10px; 
}
.cmt-btn ul > li::before { 
	float: left; 
	color:#ccc; 
	content: "|"; 
	margin-left:-12px;
}
.cmt-btn ul > li:last-child { 
	padding-right:0;
}
.cmt-btn ul > li:first-child::before, 
.cmt-btn ul > li.no-bar::before { 
	content: ""; 
	margin-left:0; 
}
.cmt-btn ul > li > a { 
	float:left;
	color:#888;
	white-space:nowrap;	
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content { 
	resize:none; 
}
@media all and (max-width:575px) {
	.responsive .cmt-box {
		border-right:0 !important;
	}
	.responsive #bo_vc_w .cmt-box {
		border-left:0 !important;
		border-radius:0 !important;
	}
	.responsive #bo_vc_login {
		border-left:0 !important;
		border-right:0 !important;
		border-radius:0 !important;
	}
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {	
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
	background:#ccc;
	border-radius:3px;
}
#bo_vc_opt ol:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_opt ol li { 
	float:left;
	margin:0; 
}
#bo_vc_send_sns ul { 
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
}
#bo_vc_send_sns ul:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_send_sns ul li {	
	float:left;
	margin:0 1.0rem 0 0;
}
#bo_vc_send_sns input {	
	margin:0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
	padding-left:0;
	padding-right:0;
	border-left:0;
	border-right:0;
}
#bo_w #wr_content { 
	margin-bottom:1.0rem !important;
}
@media all and (max-width:575px) {
	#bo_w .list-group-item {
		padding-left:1.0rem;
		padding-right:1.0rem;
	}
	.responsive #bo_w #wr_content {
		max-height:160px !important;
	}
}

/* 피드 등 외부 출처 글 읽기 상단 안내(NB-Feed view.skin.php): 안내 → 하단 버튼 가운데 */
.na-feed-source-banner__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	padding: 0.95rem 1rem 1.05rem;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #f8f9fb;
}
.na-feed-source-banner__text {
	margin: 0;
	flex: none;
	max-width: 100%;
	font-size: 13px;
	line-height: 1.55;
	color: #495057;
}
.na-feed-source-banner__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #212529;
	margin-bottom: 0.35rem;
}
.na-feed-source-banner__actions {
	display: flex;
	justify-content: center;
	width: 100%;
	padding-top: 0.1rem;
}
.na-feed-source-banner__btn {
	font-weight: 600;
	min-width: 8.5rem;
	padding: 0.45rem 1.35rem;
}

/* 피드 본문: 뉴스형 세로 리듬(사진 → 설명 → 본문) · 모바일 스크롤 읽기 */
#bo_v_con.na-feed-body {
	--na-media-radius: 12px;
	--na-block-gap: clamp(1.2rem, 4vw, 1.85rem);
	--na-caption-bg: #f3f6f9;
	--na-caption-bd: rgba(15, 23, 42, 0.07);
	--na-caption-text: #4d5866;
}

/* 대표 사진(본문 위 첨부)과 본문 사이 — 일반 기사지면 구분선 */
#bo_v_con.na-feed-body #bo_v_img:first-child {
	padding-bottom: 0.35rem;
	margin-bottom: clamp(1.15rem, 3.6vw, 1.75rem);
	border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#bo_v_con.na-feed-body #bo_v_img {
	margin: 0 auto var(--na-block-gap);
}
#bo_v_con.na-feed-body #bo_v_img a.view_image {
	display: block;
	margin: 0 auto 1.25rem;
	overflow: hidden;
	border-radius: var(--na-media-radius);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
}
#bo_v_con.na-feed-body #bo_v_img img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 !important;
}

.na-feed-prose {
	font-size: 17px;
	line-height: 1.82;
	letter-spacing: -0.02em;
	color: #2a3038;
	overflow-wrap: break-word;
	word-break: break-word;
}

.na-feed-prose p {
	margin: 0 0 1.35em;
	color: #333;
	font-size: 17px;
	line-height: 1.82;
}

.na-feed-prose > p:first-of-type {
	font-weight: 600;
	font-size: 1.05em;
	color: #1e232b;
	margin-bottom: 1.25em;
	letter-spacing: -0.025em;
}

.na-feed-prose h2,
.na-feed-prose h3,
.na-feed-prose h4,
.na-feed-prose h5 {
	clear: both;
	font-weight: 700;
	letter-spacing: -0.032em;
	line-height: 1.38;
	color: #12151a;
	margin: 0;
}

.na-feed-prose h2 {
	font-size: 1.3rem;
	margin-top: 1.6em;
	margin-bottom: 0.52em;
	padding-bottom: 0.38em;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.na-feed-prose h3 {
	font-size: 1.16rem;
	margin-top: 1.45em;
	margin-bottom: 0.48em;
}

.na-feed-prose h4,
.na-feed-prose h5 {
	font-size: 1.03rem;
	margin-top: 1.3em;
	margin-bottom: 0.42em;
	color: #1e2430;
}

.na-feed-prose > h2:first-child,
.na-feed-prose > h3:first-child,
.na-feed-prose > h4:first-child {
	margin-top: 0;
}

.na-feed-prose h2 + p,
.na-feed-prose h3 + p,
.na-feed-prose h4 + p {
	margin-top: 0.12em;
}

.na-feed-prose ul,
.na-feed-prose ol {
	margin: 0 0 1.2em;
	padding-left: 1.35em;
}

.na-feed-prose li {
	margin-bottom: 0.38em;
}

#bo_v_con .na-feed-prose img {
	float: none !important;
	clear: both !important;
	display: block;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	margin-top: var(--na-block-gap);
	margin-bottom: var(--na-block-gap);
	border-radius: var(--na-media-radius);
}

#bo_v_con .na-feed-prose img[align="left"],
#bo_v_con .na-feed-prose img[align="right"],
#bo_v_con .na-feed-prose img[align="middle"] {
	float: none !important;
	clear: both;
}

.na-feed-prose figure {
	clear: both;
	margin: var(--na-block-gap) auto;
	overflow: hidden;
	border-radius: var(--na-media-radius);
	background: #fff;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 10px 28px rgba(15, 23, 42, 0.08);
	text-align: left;
	max-width: 100%;
}

.na-feed-prose figure img {
	display: block !important;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.na-feed-prose figcaption,
.na-feed-prose .caption,
.na-feed-prose .img_caption,
.na-feed-prose p.img_txt,
.na-feed-prose .se-caption {
	margin: 0 !important;
	padding: 0.65rem clamp(0.65rem, 3vw, 0.95rem) 0.82rem !important;
	font-size: 0.88rem !important;
	line-height: 1.52 !important;
	color: var(--na-caption-text) !important;
	background: linear-gradient(180deg, transparent 0%, var(--na-caption-bg) 32%);
	border-top: 1px solid var(--na-caption-bd);
	text-align: left !important;
	font-weight: 400 !important;
}

.na-feed-prose figure figcaption {
	padding-left: clamp(0.75rem, 3vw, 1rem);
	padding-right: clamp(0.75rem, 3vw, 1rem);
	padding-bottom: 0.9rem !important;
}

@supports selector(:has(*)) {
	.na-feed-prose img:has(+ figcaption),
	.na-feed-prose img:has(+ .caption),
	.na-feed-prose img:has(+ .img_caption),
	.na-feed-prose img:has(+ p.img_txt),
	.na-feed-prose img:has(+ .se-caption) {
		margin-bottom: 0 !important;
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}
	.na-feed-prose img:has(+ figcaption) + figcaption,
	.na-feed-prose img:has(+ .caption) + .caption,
	.na-feed-prose img:has(+ .img_caption) + .img_caption,
	.na-feed-prose img:has(+ p.img_txt) + p.img_txt,
	.na-feed-prose img:has(+ .se-caption) + .se-caption {
		border-radius: 0 0 var(--na-media-radius) var(--na-media-radius) !important;
		box-shadow:
			0 1px 2px rgba(15, 23, 42, 0.04),
			0 10px 22px rgba(15, 23, 42, 0.07);
		padding-top: 0.58rem !important;
	}
	.na-feed-prose img:has(+ figcaption) + figcaption:last-child,
	.na-feed-prose img:has(+ .caption) + .caption:last-child,
	.na-feed-prose img:has(+ .img_caption) + .img_caption:last-child,
	.na-feed-prose img:has(+ p.img_txt) + p.img_txt:last-child,
	.na-feed-prose img:has(+ .se-caption) + .se-caption:last-child {
		margin-bottom: var(--na-block-gap) !important;
	}

	.na-feed-prose div:has(> img:only-child),
	.na-feed-prose div:has(> a > img:only-child) {
		float: none !important;
		clear: both;
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
		margin: var(--na-block-gap) auto;
		padding: 0;
		overflow: hidden;
		border-radius: var(--na-media-radius);
		background: #fff;
		box-shadow:
			0 1px 2px rgba(15, 23, 42, 0.04),
			0 8px 24px rgba(15, 23, 42, 0.08);
		text-align: center;
	}
	.na-feed-prose div:has(> img:only-child) img,
	.na-feed-prose div:has(> a > img:only-child) img {
		float: none !important;
		display: block;
		margin: 0 auto !important;
		max-width: 100%;
		border-radius: var(--na-media-radius) var(--na-media-radius) 0 0;
		box-shadow: none;
	}

	/* table 두 칸(이미지|본문) → 세로 스택. 표 형태 유지 시 class na-news-keep-layout */
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) {
		display: block;
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
		border-collapse: collapse;
		border-spacing: 0;
		border: none;
		background: transparent;
		margin: 0 auto var(--na-block-gap);
	}
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) tbody,
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) thead,
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) tfoot {
		display: block;
		width: 100%;
	}
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) tr {
		display: flex;
		flex-direction: column;
		width: 100%;
	}
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) td,
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) th {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		clear: both;
		box-sizing: border-box;
		padding: 0.42rem 0 !important;
		border: none !important;
	}
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) td img,
	.na-feed-prose table:has(td img):not(.na-news-keep-layout):not(.na-news-keep-table) th img {
		float: none !important;
		display: block;
		max-width: 100%;
		height: auto;
		margin: 0 auto 0.45rem;
		border-radius: var(--na-media-radius);
	}
}

@media all and (max-width: 575px) {
	.na-feed-prose {
		font-size: 16px;
	}
	.na-feed-prose p {
		font-size: 16px;
	}
	.na-feed-prose h2 {
		font-size: 1.18rem;
	}
	.na-feed-prose h3 {
		font-size: 1.06rem;
	}
}

/* ─── 「함께 볼 만한 뉴스」(메인 스킨과 동일 마크업·카드형) ─── */
.na-feed-bundle-news.na-bundle-news--elevated {
	margin-top: 1.75rem !important;
}

.na-bundle-news--elevated {
	margin-top: 1.5rem;
	margin-bottom: 0.35rem;
	padding: 1.75rem 1.35rem 1.55rem;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-radius: 16px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.94) inset,
		0 10px 40px rgba(15, 23, 42, 0.035),
		0 2px 8px rgba(15, 23, 42, 0.04);
	position: relative;
}

.na-bundle-news--elevated::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	right: 1.35rem;
	top: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #03c75a 0%, #1b64da 45%, rgba(41, 98, 255, 0.2) 100%);
	opacity: 0.92;
	pointer-events: none;
}

.na-bundle-news--per-board + .na-bundle-news--per-board {
	margin-top: 1.35rem;
}

.na-bundle-news__head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	column-gap: 0.75rem;
	row-gap: 0.2rem;
	margin: 0.35rem 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.na-bundle-news__title {
	grid-column: 1;
	margin: 0;
	font-size: 1.125rem !important;
	font-weight: 800 !important;
	line-height: 1.38;
	letter-spacing: -0.042em !important;
	color: #13151a;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.na-bundle-news__title {
		background: linear-gradient(92deg, #1b64da 0%, #2948b8 32%, #12141a 58%, #12141a 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		padding-bottom: 0.035em;
	}
}

.na-bundle-news__help-wrap {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: end;
	outline: none;
	cursor: help;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.na-bundle-news__help {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #7b8494;
	padding: 3px 10px;
	border: 1px solid #dfe3ea;
	border-radius: 999px;
	background: #f8f9fb;
	line-height: 1.35;
	user-select: none;
}

.na-bundle-news__help-wrap:hover .na-bundle-news__help,
.na-bundle-news__help-wrap:focus .na-bundle-news__help {
	border-color: rgba(41, 98, 255, 0.35);
	color: #1b64da;
	background: #fff;
}

.na-bundle-news__body {
	overflow: hidden;
	width: 100%;
}

.na-bundle-news__cells.na-bundle-news__cells--grid.row {
	box-sizing: border-box;
	list-style: none;
	padding-left: 0;
}

.na-bundle-news__cells--grid .na-bundle-news__cell--grid {
	display: block;
	min-width: 0;
	margin-bottom: 1rem;
}

.na-bundle-news__card {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: auto;
	padding: 0;
	text-decoration: none !important;
	color: inherit !important;
	box-sizing: border-box;
}

.na-bundle-news__card--grid {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.na-bundle-news__cells--grid .na-bundle-news__thumb-slot {
	flex-shrink: 0;
	position: relative;
	width: 100%;
}

.na-bundle-news__cells--grid .na-bundle-news__thumb-inner {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(145deg, #eef1f6 0%, #e2e8f0 100%);
	flex-shrink: 0;
}

.na-bundle-news__cells--grid .na-bundle-news__thumb-inner--empty {
	aspect-ratio: 4 / 3;
	min-height: 0;
}

.na-bundle-news__cells--grid .na-bundle-news__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.na-bundle-news__cells--grid .na-bundle-news__text-col {
	display: block;
	width: 100%;
	min-width: 0;
	flex: none;
	padding-top: 0;
}

.na-bundle-news__cells--grid .lat_title.na-bundle-news__title-line {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.38 !important;
	letter-spacing: -0.03em !important;
	color: #1a1d24 !important;
	margin: 10px 0 0 !important;
	word-break: keep-all;
}

.na-bundle-news__card--grid:hover .lat_title.na-bundle-news__title-line {
	color: #1b64da !important;
}

@media (max-width: 767.98px) {
	.na-bundle-news--elevated {
		padding: 1.35rem 1rem 1.2rem;
		border-radius: 12px;
	}

	.na-bundle-news--elevated::before {
		left: 1rem;
		right: 1rem;
	}
}