/* ==========================================================================
   samdle-components.css — 2026-11-16 디자인 전략(쌤들_전략/디자인_전략_20261116.md 6절) 공통 부품
   head 에서 samdle-polish.css 다음에 링크한다.
   - .sdc-*  : 공통 '선생님 카드'(홈 선생님/학생 목록 skin/community/tutor/list.2014.skin.php)
   - .ld-card: 과목·허브 페이지 카드(tutor/_card.php)를 같은 모양으로 — 마크업 그대로, CSS만
   토큰: 청록 #2F9497(주 행동) · 짙은 청록 #1F6C72 · 민트 #6BC8CB · 잉크 #12282C · 회청 #5B6770 · 바탕 #F6F9F9
         노랑은 돈·보상에만, 빨강 #E5484D는 안 읽은 수에만. 모서리: 카드 16 · 버튼 12 · 칩 999
   ========================================================================== */
:root {
	--sdc-teal: #2F9497;
	--sdc-teal-d: #1F6C72;
	--sdc-mint: #6BC8CB;
	--sdc-ink: #12282C;
	--sdc-gray: #5B6770;
	--sdc-bg: #F6F9F9;
	--sdc-line: #E1EBEC;
	--sdc-tint: #EAF5F5;
	--sdc-tint-line: #BFE1E2;
}

/* ---------- 목록 그리드: PC 목록 칸(최대 653px)에서는 2열, 좁아지면 1열 ---------- */
.sdc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 12px;
	margin: 12px 0 16px;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
	max-width: 100%;
	font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.sdc-filter { margin: 8px 0 0; }
.sdc-filter .alert_chip { margin: 0; border-radius: 999px; border-color: var(--sdc-tint-line); background: var(--sdc-tint); color: var(--sdc-teal-d); font-weight: 700; }

/* ---------- 카드 ---------- */
.sdc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	box-sizing: border-box;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--sdc-line);
	border-radius: 16px;
	color: var(--sdc-ink);
	text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sdc-card:hover { border-color: var(--sdc-tint-line); box-shadow: 0 4px 16px rgba(18, 40, 44, .06); }

.sdc-top { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.sdc-ava {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sdc-tint);
	text-decoration: none !important;
	cursor: pointer;
}
.sdc-ava img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.sdc-ava .sdc-ini { font-size: 20px; font-weight: 800; color: var(--sdc-teal-d); line-height: 1; }

.sdc-id { flex: 1 1 auto; min-width: 0; }
.sdc-name { font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--sdc-ink); overflow-wrap: anywhere; word-break: keep-all; }
.sdc-name strong { font-weight: 800; }
.sdc-name .userName { cursor: pointer; color: var(--sdc-ink); }
.sdc-name .userName:hover { color: var(--sdc-teal); }
.sdc-age { font-size: 13px; font-weight: 400; color: var(--sdc-gray); }
.sdc-school { margin-top: 3px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--sdc-teal-d); overflow-wrap: anywhere; word-break: keep-all; }
.sdc-school.is-empty { font-weight: 400; color: var(--sdc-gray); }
.sdc-school .sd-verify-badge { vertical-align: 1px; }
.sdc-meta { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--sdc-gray); overflow-wrap: anywhere; }
.sdc-meta:empty { display: none; }
.sdc-dot { margin: 0 6px; color: #A9B4B8; }

/* 배지 줄: 과외 요청 중 · 최근 7일 내 접속 · 1년 넘게 접속하지 않음 */
.sdc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.sdc-badges:empty { display: none; }
.sdc-badges > span { max-width: 100%; }
a.sdc-req {
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	padding: 5px 12px;
	border-radius: 12px; /* 두 줄로 접힐 수 있어 999 대신 12 — 알약이 덩어리처럼 보이지 않게 */
	background: var(--sdc-tint);
	border: 1px solid var(--sdc-tint-line);
	color: var(--sdc-teal-d) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
	white-space: normal;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
a.sdc-req::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--sdc-teal); vertical-align: 2px; }
a.sdc-req:hover { background: #DDF0F0; }

/* 과목 칩(4개 + '+N') — polish 의 .course_abr !important 색(#EAF5F5/#23777A)과 같은 계열 */
.sdc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.sdc-chips .sdc-chip {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--sdc-tint);
	border: 1px solid transparent;
	color: var(--sdc-teal-d);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	box-sizing: border-box;
	max-width: 100%;
}
.sdc-chips a.sdc-chip:hover { border-color: var(--sdc-teal); }
.sdc-chips .sdc-chip.course_eng { background: #fff; border-color: var(--sdc-mint); color: var(--sdc-teal-d); }
.sdc-chips .sdc-chip--more { background: var(--sdc-bg); border-color: var(--sdc-line); color: var(--sdc-gray); cursor: default; }
.sdc-chips .sdc-chip--none { background: var(--sdc-bg); color: var(--sdc-gray); font-weight: 400; }

/* 행동: 카드마다 테두리 버튼 하나(화면의 채움 버튼은 하나만 — 원칙 3) */
.sdc-act { display: flex; gap: 8px; margin-top: auto; padding-top: 2px; }
.sdc-btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: 12px;
	border: 1px solid var(--sdc-teal);
	background: #fff;
	color: var(--sdc-teal-d) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.sdc-btn:hover { background: var(--sdc-teal); color: #fff !important; }
.sdc-btn:active { transform: scale(.98); }
.sdc-btn.is-pri { background: var(--sdc-teal); color: #fff !important; }
.sdc-btn.is-pri:hover { background: var(--sdc-teal-d); }

.sdc-empty {
	margin: 12px 0 16px;
	padding: 72px 16px;
	min-height: 240px;
	box-sizing: border-box;
	border: 1px dashed var(--sdc-tint-line);
	border-radius: 16px;
	background: #fff;
	text-align: center;
	font-size: 15px;
	color: var(--sdc-gray);
}

/* 목록 아래 페이지 넘김과의 간격(옛 .b_list margin 대신) */
#community-list .sdc-grid + .w_b-list-btns,
#community-list .sdc-empty + .w_b-list-btns { margin-top: 4px; }

@media (max-width: 480px) {
	.sdc-grid { gap: 10px; }
	.sdc-card { padding: 14px; }
	.sdc-ava { flex-basis: 52px; width: 52px; height: 52px; }
}

/* ---------- 과목·허브 페이지 카드(tutor/_card.php .ld-card)를 같은 부품 모양으로 — 2026-11-16 디자인 전략
   _landing.php 의 <style> 과 polish 의 'body .ld-card … !important' 보다 앞서도록 한 단계 높은 선택자 ---------- */
body .ld-grid .ld-card {
	border: 1px solid var(--sdc-line);
	border-radius: 16px;
	padding: 16px;
	background: #fff;
	color: var(--sdc-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
body .ld-grid .ld-card:hover { border-color: var(--sdc-tint-line); box-shadow: 0 4px 16px rgba(18, 40, 44, .06); }
body .ld-grid .ld-card .ph { width: 56px; height: 56px; border-radius: 50%; background: var(--sdc-tint); }
body .ld-grid .ld-card .ph.none { color: var(--sdc-teal-d); font-weight: 800; font-size: 20px; }
body .ld-grid .ld-card .nm { font-size: 16px; font-weight: 800; color: var(--sdc-ink); line-height: 1.35; margin-bottom: 2px; }
body .ld-grid .ld-card .sc { font-size: 14px; font-weight: 700; color: var(--sdc-teal-d); line-height: 1.45; overflow-wrap: anywhere; word-break: keep-all; }
body .ld-grid .ld-card .tg { gap: 6px; }
body .ld-grid .ld-card .tg span {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--sdc-tint);
	color: var(--sdc-teal-d);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	box-sizing: border-box;
}
body .ld-grid .ld-card .go {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 12px;
	box-sizing: border-box;
	border: 1px solid var(--sdc-teal);
	border-radius: 12px;
	color: var(--sdc-teal-d);
	font-size: 15px;
	font-weight: 700;
	transition: background-color .15s ease, color .15s ease;
}
body .ld-grid .ld-card:hover .go { background: var(--sdc-teal); color: #fff; }

/* ---------- 2026-11-16 PC 첫 화면: 본문과 오른쪽 칸 사이의 옛 세로선(.main_left border-right) 제거 — 양쪽이 카드라 선이 겹쳐 보였다 ---------- */
.main_left { border-right: 0 !important; }
