@charset "utf-8";

/* ============================================================
   고객센터 그룹 화면 (/bbs/group.php?gr_id=sbcs)
   ------------------------------------------------------------
   마크업: theme/Nariya-A/group/sbcs.php
   본문은 <main id="nt_body"> 안에 렌더되므로 #nt_body 스코프인
   skin/board/totolist/tokens.css 의 var(--*) 가 .cs-* 까지 도달한다.
   하드코딩 hex 금지 — 값의 SSOT 는 tokens.css. 다크모드만 각 스킨 관례대로 리터럴.

   폭·좌우 패딩은 여기서 주지 않는다 — custom-sidebar.css 의
   .sbc-site-main #nt_body > * { max-width:1000px } 가 주인이다(group/point.css 주석 참조).
   반경: 면을 갖는 박스 --r-10 / 누르는 것 --r-6 (DESIGN_SYSTEM §「반경 2값 규칙」).
   ============================================================ */

.cs-grid {
	display: grid;
	gap: 16px;
	font-family: var(--font-ui);
}
.cs-grid--top    { grid-template-columns: 3fr 2fr; margin-bottom: 16px; }
.cs-grid--bottom { grid-template-columns: repeat(3, 1fr); }

/* 카드 — 면을 갖는 박스 */
.cs-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-10);
	box-shadow: var(--sh-card);
	padding: 20px 24px;
	min-width: 0;
}

/* 카드 머리 — 아이콘 / 제목 / 오른쪽 링크 */
.cs-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line-soft);
	margin-bottom: 4px;
}
.cs-card__title {
	font-size: 17px;
	line-height: 24px;
	font-weight: 700;
	letter-spacing: -.3px;
	color: var(--ink);
	margin: 0;
}
.cs-card__more {
	margin-left: auto;
	font-size: 13px;
	line-height: 20px;
	color: var(--sub);
	text-decoration: none;
	white-space: nowrap;
}
.cs-card__more .fa { font-size: 12px; margin-left: 2px; }
.cs-card__more:hover,
.cs-card__more:focus { color: var(--brand); text-decoration: none; }

/* 아이콘 칸 — 짝수 크기, 대칭 패딩 없이 flex 중앙 */
.cs-card__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--r-6);
	font-size: 16px;
	flex: 0 0 auto;
}
.cs-card__ico--lg { width: 44px; height: 44px; font-size: 20px; }
.cs-card__ico--blue   { background: var(--brand-soft); color: var(--brand); }
.cs-card__ico--yellow { background: rgba(201,154,60,.14); color: var(--grade-excellent); }
.cs-card__ico--gray   { background: var(--field-bg); color: var(--sub); }

/* ---------- 공지사항 목록 ---------- */
.cs-notice__list { list-style: none; margin: 0; padding: 0; }
.cs-notice__item + .cs-notice__item { border-top: 1px solid var(--line-soft); }
.cs-notice__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	color: var(--ink);
	text-decoration: none;
}
.cs-notice__link:hover .cs-notice__subject,
.cs-notice__link:focus .cs-notice__subject { color: var(--brand); }
.cs-notice__subject {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	line-height: 22px;
	letter-spacing: -.2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cs-notice__date {
	flex: 0 0 auto;
	font-family: var(--font-num);
	font-size: 13px;
	line-height: 20px;
	color: var(--muted);
}
.cs-empty {
	margin: 0;
	padding: 28px 0;
	text-align: center;
	font-size: 14px;
	color: var(--muted);
}

/* ---------- 1:1문의 ---------- */
.cs-qa { display: flex; flex-direction: column; }
.cs-qa__desc {
	margin: 10px 0 14px;
	font-size: 14px;
	line-height: 22px;
	color: var(--sub);
	letter-spacing: -.2px;
}
.cs-qa__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.cs-qa__stat {
	background: var(--field-bg);
	border-radius: var(--r-10);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cs-qa__stat-label { font-size: 12.5px; line-height: 18px; color: var(--sub); }
.cs-qa__stat-num {
	font-family: var(--font-num);
	font-size: 26px;
	line-height: 32px;
	font-weight: 700;
	color: var(--ink);
}
/* 버튼 — height 강제 없이 대칭 패딩 + 정수 line-height (DESIGN_SYSTEM 「뱃지·칩 만드는 법」) */
.cs-qa__btn {
	display: block;
	margin-top: auto;
	padding: 13px 16px;
	background: var(--brand);
	border-radius: var(--r-6);
	color: #fff;
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background .15s;
}
.cs-qa__stats + .cs-qa__btn { margin-top: 20px; }
.cs-qa__btn:hover,
.cs-qa__btn:focus { background: var(--brand-hover); color: #fff; text-decoration: none; }
.cs-qa__btn:focus-visible { outline: 2px solid var(--field-focus-ring); outline-offset: 2px; }

/* ---------- 하단 링크 카드 ---------- */
.cs-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
}
.cs-link__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.cs-link__title { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.cs-link__desc  { font-size: 12.5px; line-height: 18px; color: var(--sub); letter-spacing: -.2px; }
.cs-link__btn {
	flex: 0 0 auto;
	padding: 7px 12px;
	background: var(--brand-soft);
	border-radius: var(--r-6);
	color: var(--brand);
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.cs-link__btn:hover,
.cs-link__btn:focus { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 991px) {
	.cs-grid--top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.cs-grid { gap: 12px; }
	.cs-grid--top,
	.cs-grid--bottom { grid-template-columns: 1fr; }
	.cs-grid--top { margin-bottom: 12px; }
	.cs-card { padding: 16px 18px; }
	.cs-link { padding: 14px 16px; }
}

/* ---------- 다크모드 — 토큰이 라이트 전용이라 각 스킨이 담당하는 기존 규약을 따른다 ---------- */
html.dark-mode .cs-card { background: #25262b; border-color: #2c2d32; box-shadow: none; }
html.dark-mode .cs-card__head,
html.dark-mode .cs-notice__item + .cs-notice__item { border-color: #2c2d32; }
html.dark-mode .cs-card__title,
html.dark-mode .cs-notice__subject,
html.dark-mode .cs-qa__stat-num,
html.dark-mode .cs-link__title { color: #e5e7eb; }
html.dark-mode .cs-card__more,
html.dark-mode .cs-qa__desc,
html.dark-mode .cs-qa__stat-label,
html.dark-mode .cs-link__desc,
html.dark-mode .cs-notice__date,
html.dark-mode .cs-empty { color: #9ca3af; }
html.dark-mode .cs-qa__stat,
html.dark-mode .cs-card__ico--gray { background: #1f2024; }
html.dark-mode .cs-card__ico--blue { background: rgba(39,113,227,.18); }
html.dark-mode .cs-card__ico--yellow { background: rgba(201,154,60,.18); }
