/**
 * File: wp-content/plugins/visioncraft-platform/assets/css/platform.css
 * Purpose: 매칭 플랫폼 프런트엔드 전용 스타일. 테마 토큰(tokens.css)과 컴포넌트(main.css의 .vc-*)를 전제로
 *          앱 셸(사이드바/상단바), 대시보드(KPI/알림/카드), 공고·강사 카드, 적합도 미터, 슬라이드오버/모달,
 *          폼, 로그인/가입 화면(.vcp-auth)을 정의합니다. 모든 값은 디자인 토큰 CSS 변수를 사용합니다.
 *          반응형: 1024px 이하에서 사이드바 축소, 768px 이하에서 단일 컬럼.
 */

/* ====================================================================== */
/* App shell — 버디 패널 스타일: 전체폭 + 좌측 사이드바(접기 가능)            */
/* ====================================================================== */
.vcp-shell {
	background: var(--bg-page);
	font-family: var(--font-sans);
	color: var(--text-body);
}
.vcp-app {
	display: flex;
	align-items: stretch;
	min-height: calc(100vh - 72px);
}
.vcp-app *,
.vcp-app *::before,
.vcp-app *::after { box-sizing: border-box; }

.vcp-i { display: inline-flex; flex-shrink: 0; vertical-align: middle; }
.vcp-i--accent { color: var(--accent); }
.vcp-i--star { color: var(--warning); fill: var(--warning); }

/* Sidebar (BuddyPanel 스타일) — 화면 최상단(top:0)부터 전체 높이, 헤더보다 위 레이어, 접기 가능 */
.vcp-sidebar {
	width: 250px;
	flex-shrink: 0;
	background: var(--brand-deep);
	color: var(--text-on-dark);
	display: flex;
	flex-direction: column;
	padding: 18px 14px;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	z-index: 100001; /* 워드프레스 관리바(99999)까지 덮음. 모달/토스트는 그 위 유지 */
	transition: width var(--dur) var(--ease-out);
}
/* 고정 사이드바 폭만큼 본문 영역 확보 (헤더/푸터는 platform.css 하단에서 별도 정렬) */
.vcp-app { margin-left: 250px; transition: margin-left var(--dur) var(--ease-out); }
.vcp-app.is-collapsed { margin-left: 72px; }
/* 최상단 독립 바: 접기/펼치기 토글만 (버디보스 스타일) */
.vcp-sidebar__bar {
	display: flex; align-items: center;
	padding: 2px 2px 12px; margin-bottom: 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vcp-sidebar__nav { display: flex; flex-direction: column; gap: 3px; flex: 1; padding-top: 4px; overflow-y: auto; min-height: 0; }
.vcp-navitem {
	display: flex; align-items: center; gap: 12px; position: relative;
	padding: 11px 12px; border-radius: var(--radius-md);
	color: rgba(234, 241, 249, 0.72); text-decoration: none;
	font-size: 14.5px; font-weight: var(--fw-medium); white-space: nowrap;
	transition: background var(--dur), color var(--dur);
}
.vcp-navitem:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.vcp-navitem.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.vcp-navitem.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.vcp-navitem__label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.vcp-navitem__badge {
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill);
	background: var(--accent); color: #fff; font-size: 11.5px; font-weight: var(--fw-bold);
	display: inline-flex; align-items: center; justify-content: center;
}
.vcp-sidebar__foot { padding-top: 12px; }

/* 사이드바 최상단 독립 토글 (BuddyBoss 스타일) */
.vcp-sidebar__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; flex-shrink: 0;
	border: none; cursor: pointer; border-radius: var(--radius-md);
	background: transparent; color: rgba(234, 241, 249, 0.75);
	transition: background var(--dur), color var(--dur);
}
.vcp-sidebar__toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* 접힌 상태(아이콘만) */
.vcp-app.is-collapsed .vcp-sidebar { width: 72px; padding-inline: 12px; }
.vcp-app.is-collapsed .vcp-navitem__label,
.vcp-app.is-collapsed .vcp-sidebar__foot .vc-btn span { display: none; }
.vcp-app.is-collapsed .vcp-sidebar__bar { justify-content: center; padding-inline: 0; }
.vcp-app.is-collapsed .vcp-navitem { justify-content: center; padding-inline: 0; }
.vcp-app.is-collapsed .vcp-navitem { justify-content: center; padding-inline: 0; }
.vcp-app.is-collapsed .vcp-navitem.is-active::before { left: -12px; }
.vcp-app.is-collapsed .vcp-navitem__badge { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }

/* Topbar */
.vcp-main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vcp-topbar {
	min-height: 64px; flex-shrink: 0;
	display: flex; align-items: center; gap: 14px;
	padding: 0 24px; background: var(--surface);
	border-bottom: 1px solid var(--border-subtle);
}
.vcp-topbar__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; flex-shrink: 0; border: none; cursor: pointer;
	border-radius: var(--radius-md); background: transparent; color: var(--text-muted);
	transition: background var(--dur), color var(--dur);
}
.vcp-topbar__toggle:hover { background: var(--surface-sunken); color: var(--text-strong); }
.vcp-search { position: relative; flex: 1; max-width: 420px; }
.vcp-search__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.vcp-search input {
	width: 100%; height: 40px; padding: 0 14px 0 38px;
	border: 1px solid var(--border); border-radius: var(--radius-md);
	background: var(--surface-subtle); font-family: inherit; font-size: 14px; color: var(--text-body);
	transition: border-color var(--dur), background var(--dur);
}
.vcp-search input:focus { outline: none; border-color: var(--brand-primary); background: var(--surface); box-shadow: var(--focus-ring); }
.vcp-topbar__right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.vcp-bell { position: relative; color: var(--text-muted); cursor: pointer; display: flex; }
.vcp-bell__dot { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--surface); }
.vcp-me { display: flex; align-items: center; gap: 10px; }
.vcp-me__txt { display: flex; flex-direction: column; line-height: 1.3; }
.vcp-me__txt b { font-size: 14px; color: var(--text-strong); font-weight: var(--fw-semibold); }
.vcp-me__txt span { font-size: 12px; color: var(--text-muted); }

/* 모바일 가로 메뉴 (헤더 아래 sticky) — 데스크톱에선 숨김 */
.vcp-mobilenav { display: none; }

/* Main */
.vcp-main { flex: 1; min-width: 0; background: var(--bg-page); }
.vcp-page { max-width: 1280px; margin: 0 auto; padding: 28px 40px 56px; }
.vcp-page--narrow { max-width: 1080px; }
.vcp-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.vcp-page__title { font-size: 25px; font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tight); color: var(--text-strong); margin: 0; }
.vcp-page__sub { font-size: 14.5px; color: var(--text-muted); margin: 6px 0 0; }

/* ====================================================================== */
/* KPI                                                                    */
/* ====================================================================== */
.vcp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.vcp-kpi__top { display: flex; align-items: center; gap: 10px; color: var(--text-muted); margin-bottom: 10px; font-size: 13px; }
.vcp-kpi__val { font-size: 30px; font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tight); color: var(--text-strong); line-height: 1; }

/* ====================================================================== */
/* Sections / layout                                                      */
/* ====================================================================== */
.vcp-sec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vcp-sec__title { font-size: 18px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 0; }
.vcp-sec__more { font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--brand-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.vcp-sec__more:hover { color: var(--brand-primary-hover); }
.vcp-cols { display: grid; gap: 24px; }
.vcp-cols--3-2 { grid-template-columns: 1.5fr 1fr; }
.vcp-cols--profile { grid-template-columns: 300px 1fr; align-items: start; }
.vcp-stack { display: flex; flex-direction: column; gap: 12px; }
.vcp-muted-xs { font-size: 12.5px; color: var(--text-faint); }
.vcp-muted-sm { font-size: 13px; color: var(--text-muted); }
.vcp-ta-r { text-align: right; }
.vcp-empty { color: var(--text-muted); font-size: 14px; text-align: center; }
.vcp-empty--row { padding: 28px 18px; }
.vcp-loading { padding: 40px 18px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ====================================================================== */
/* Fit meter / stars                                                      */
/* ====================================================================== */
.vcp-fit { display: flex; align-items: center; gap: 10px; }
.vcp-fit__track { flex: 1; max-width: 180px; height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.vcp-fit__bar { display: block; height: 100%; border-radius: var(--radius-pill); }
.vcp-fit__bar--accent { background: var(--accent); }
.vcp-fit__bar--brand { background: var(--brand-primary); }
.vcp-fit__bar--faint { background: var(--gray-300); }
.vcp-fit__val { font-size: 13px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.vcp-fit__val--accent { color: var(--accent-hover); }
.vcp-fit__val--brand { color: var(--brand-primary); }
.vcp-fit__val--faint { color: var(--text-muted); }
.vcp-fit__label { font-size: 12px; color: var(--text-faint); }
.vcp-stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-body); }
.vcp-stars b { font-weight: var(--fw-semibold); }

/* ====================================================================== */
/* Alert banner (proposal)                                                */
/* ====================================================================== */
.vcp-alert {
	display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 24px;
	background: var(--brand-soft); border: 1.5px solid var(--blue-200); border-radius: var(--radius-lg);
}
.vcp-alert__icon { width: 46px; height: 46px; border-radius: var(--radius-md); flex-shrink: 0; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.vcp-alert__body { flex: 1; min-width: 0; }
.vcp-alert__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; color: var(--text-muted); }
.vcp-alert__title { font-size: 16px; font-weight: var(--fw-bold); color: var(--text-strong); }
.vcp-alert__sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.vcp-alert__cta { flex-shrink: 0; }

/* ====================================================================== */
/* Job cards (dashboard recommend)                                        */
/* ====================================================================== */
.vcp-jobcard { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; }
.vcp-jobcard__main { flex: 1; min-width: 0; }
.vcp-jobcard__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.vcp-jobcard__title { font-size: 16px; font-weight: var(--fw-bold); color: var(--text-strong); margin-bottom: 8px; }
.vcp-jobcard__aside { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Job list (archive) */
.vcp-joblist { display: flex; justify-content: space-between; gap: 20px; text-decoration: none; }
.vcp-joblist.is-closed { opacity: 0.6; }
.vcp-joblist__main { flex: 1; min-width: 0; }
.vcp-joblist__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.vcp-joblist__title { font-size: 19px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 0 0 8px; }
.vcp-joblist__org { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.vcp-joblist__facts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-body); }
.vcp-joblist__facts span { display: inline-flex; align-items: center; gap: 6px; }
.vcp-joblist__facts .vcp-i { color: var(--text-faint); }
.vcp-joblist__aside { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }

/* Request cards (institution) */
.vcp-reqcard { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.vcp-reqcard__main { flex: 1; min-width: 0; }
.vcp-reqcard__meta { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.vcp-reqcard__title { font-size: 18px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 0; }
.vcp-reqcard__matched { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.vcp-reqcard__matched .vcp-i { color: var(--accent); }
.vcp-reqcard__aside { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.vcp-reqcard__count { text-align: center; }
.vcp-reqcard__count b { display: block; font-size: 22px; font-weight: var(--fw-extrabold); color: var(--brand-primary); }
.vcp-reqcard__count span { font-size: 12px; color: var(--text-muted); }

/* List card (compact pipeline) */
.vcp-listcard { padding: 0; overflow: hidden; }
.vcp-listrow { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vcp-listrow:last-child { border-bottom: none; }
.vcp-listrow__main { min-width: 0; }
.vcp-listrow__title { font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcp-listrow__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ====================================================================== */
/* Table (applications)                                                   */
/* ====================================================================== */
.vcp-table { padding: 0; overflow: hidden; }
.vcp-table__row { display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1fr; align-items: center; gap: 12px; padding: 16px 22px; }
.vcp-table__head { border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--text-muted); padding: 14px 22px; }
.vcp-table__body { border-bottom: 1px solid var(--border-subtle); }
.vcp-table__body:last-child { border-bottom: none; }
.vcp-table__title { font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--text-strong); text-decoration: none; }
.vcp-table__title:hover { color: var(--brand-primary); }
.vcp-table__org { font-size: 13.5px; color: var(--text-body); }
.vcp-table__fee { font-size: 13.5px; color: var(--text-body); font-weight: var(--fw-semibold); }
.vcp-table__inline { display: inline-flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }

/* ====================================================================== */
/* Job detail                                                             */
/* ====================================================================== */
.vcp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--text-muted); text-decoration: none; margin-bottom: 16px; }
.vcp-back:hover { color: var(--brand-primary); }
.vcp-jobdetail__head { padding-bottom: 22px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 22px; }
.vcp-jobdetail__title { font-size: 24px; font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tight); color: var(--text-strong); margin: 14px 0 6px; }
.vcp-jobdetail__org { font-size: 14.5px; color: var(--text-muted); }
.vcp-jobdetail__fit { margin-top: 16px; }
.vcp-jobdetail__h { font-size: 15px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 24px 0 10px; }
.vcp-jobdetail__desc { font-size: 14.5px; line-height: 1.75; color: var(--text-body); }
.vcp-deftable--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.vcp-deftable { margin-bottom: 4px; }
.vcp-defrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.vcp-defrow span { color: var(--text-faint); }
.vcp-defrow b { color: var(--text-strong); font-weight: var(--fw-semibold); }
.vcp-tagrow { display: flex; gap: 7px; flex-wrap: wrap; }
.vcp-tagrow--sm { gap: 6px; margin-top: 4px; }
.vcp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.vcp-applybar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 18px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.vcp-applybar__info { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.vcp-applybar--done { color: var(--accent-hover); font-weight: var(--fw-semibold); justify-content: flex-start; }
.vcp-applyform { margin-top: 18px; }
.vcp-gfblock { margin-top: 18px; margin-bottom: 24px; }

/* ====================================================================== */
/* Pool cards                                                             */
/* ====================================================================== */
.vcp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcp-poolcard { display: flex; flex-direction: column; }
.vcp-poolcard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.vcp-poolcard__id { min-width: 0; }
.vcp-poolcard__name { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: var(--fw-bold); color: var(--text-strong); }
.vcp-poolcard__stats { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.vcp-poolcard__stats span { display: inline-flex; align-items: center; gap: 5px; }
.vcp-poolcard__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.vcp-poolcard__actions .vc-btn { flex: 1; }

/* ====================================================================== */
/* Profile editor                                                         */
/* ====================================================================== */
.vcp-profilecard { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vcp-profilecard__name { font-size: 19px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 16px 0 4px; }
.vcp-profilecard__badge { margin-top: 14px; }

/* ====================================================================== */
/* Forms                                                                  */
/* ====================================================================== */
.vcp-form { display: flex; flex-direction: column; gap: 18px; }
.vcp-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vcp-field { display: flex; flex-direction: column; gap: 7px; }
.vcp-field[hidden] { display: none; }
.vcp-field--full { grid-column: 1 / -1; }
.vcp-field > span { font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.vcp-field input,
.vcp-field select,
.vcp-field textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
	background: var(--surface); font-family: inherit; font-size: 14px; color: var(--text-body);
	transition: border-color var(--dur), box-shadow var(--dur);
}
.vcp-field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.vcp-field input:focus,
.vcp-field select:focus,
.vcp-field textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--focus-ring); }
.vcp-form__actions { display: flex; gap: 10px; align-items: center; }
.vcp-form__actions--end { justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border-subtle); margin-top: 4px; }

/* ====================================================================== */
/* Slide-over + modal                                                     */
/* ====================================================================== */
.vcp-slideover-root,
.vcp-modal-root { display: none; position: fixed; inset: 0; z-index: 100010; }
.vcp-scrim { position: absolute; inset: 0; background: rgba(10, 29, 56, 0.42); }
.vcp-slideover-root.is-open { display: flex; justify-content: flex-end; }
.vcp-slideover {
	position: relative; width: 560px; max-width: 94vw; height: 100%;
	background: var(--bg-page); overflow-y: auto; box-shadow: var(--shadow-xl);
	animation: vcpSlideIn 0.28s var(--ease-out);
	display: flex; flex-direction: column;
}
.vcp-slideover__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 30px 0; }
.vcp-slideover__eyebrow { font-size: 12.5px; color: var(--text-faint); }
.vcp-slideover__title { font-size: 20px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 4px 0 0; }
.vcp-slideover__lead { font-size: 13px; color: var(--text-muted); padding: 8px 30px 0; margin: 0; }
.vcp-slideover__body { padding: 20px 30px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.vcp-slideover__foot { position: sticky; bottom: 0; padding: 16px 30px; background: var(--surface); border-top: 1px solid var(--border); }

.vcp-modal-root.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.vcp-modal {
	position: relative; width: 100%; max-height: 90vh; overflow-y: auto;
	background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
	animation: vcpPopIn 0.22s var(--ease-out);
}
.vcp-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 30px; border-bottom: 1px solid var(--border); }
.vcp-modal__eyebrow { font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: 0.03em; color: var(--accent); margin-bottom: 5px; }
.vcp-modal__title { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--text-strong); margin: 0; }
.vcp-modal__x { border: none; background: var(--surface-subtle); cursor: pointer; color: var(--text-muted); display: flex; padding: 7px; border-radius: var(--radius-sm); transition: background var(--dur); }
.vcp-modal__x:hover { background: var(--surface-sunken); }
.vcp-modal__x--ondark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.vcp-modal__body { padding: 24px 30px; }
.vcp-modal__note { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 16px 0 22px; }
.vcp-modal__actions { display: flex; gap: 10px; }

/* 링크형 버튼(동의 항목의 약관·개인정보 보기) */
.vcp-linklike { border: none; background: none; padding: 0; margin: 0; font: inherit; color: var(--brand-primary); text-decoration: underline; cursor: pointer; }
.vcp-linklike:hover { color: var(--brand-primary-hover); }

/* 문서 모달(이용약관·개인정보 처리방침) */
.vcp-modal--doc { max-width: 720px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.vcp-modal--doc .vcp-modal__head { flex-shrink: 0; }
.vcp-modal__doc { flex: 1; overflow-y: auto; padding: 20px 30px 24px; }
.vcp-modal--doc .vcp-modal__actions { flex-shrink: 0; justify-content: flex-end; padding: 14px 30px; border-top: 1px solid var(--border); }
.vcp-modal__doc > p:first-child { margin-top: 0; }
.vcp-modal__doc h2 { font-size: 16px; font-weight: var(--fw-bold); color: var(--text-strong); margin: 22px 0 8px; }
.vcp-modal__doc p { font-size: 14px; line-height: 1.75; color: var(--text-body); margin: 0 0 10px; }
.vcp-modal__doc ul { margin: 0 0 12px; padding-left: 20px; }
.vcp-modal__doc li { font-size: 14px; line-height: 1.7; color: var(--text-body); margin-bottom: 5px; }
.vcp-modal__doc strong { color: var(--text-strong); font-weight: var(--fw-semibold); }
.vcp-modal__doc table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 13px; }
.vcp-modal__doc th, .vcp-modal__doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.vcp-modal__doc th { background: var(--surface-subtle); font-weight: var(--fw-semibold); color: var(--text-strong); }

.vcp-deftable .vcp-defrow:last-child { border-bottom: none; }
.vcp-recipient { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-subtle); border-radius: var(--radius-md); margin-bottom: 22px; }
.vcp-recipient b { font-size: 15.5px; color: var(--text-strong); }

/* Profile hero (slide-over) */
.vcp-slideover--profile { background: var(--surface); }
.vcp-profilehero { background: var(--brand-deep); color: #fff; padding: 26px 30px 30px; position: relative; }
.vcp-profilehero__row { display: flex; gap: 18px; align-items: center; }
.vcp-profilehero__avatar { display: inline-flex; }
.vcp-profilehero__name { font-size: 24px; font-weight: var(--fw-bold); color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; }
.vcp-profilehero__sub { font-size: 14px; color: rgba(234, 241, 249, 0.78); margin-top: 5px; }
.vcp-profilehero__stats { display: flex; gap: 16px; margin-top: 12px; font-size: 13.5px; color: rgba(234, 241, 249, 0.85); flex-wrap: wrap; }
.vcp-profilehero__stats span { display: inline-flex; align-items: center; gap: 5px; }
.vcp-profilesec { margin-top: 22px; }
.vcp-profilesec:first-child { margin-top: 0; }
.vcp-profilesec__t { font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 11px; }
.vcp-profilesec__p { font-size: 14.5px; line-height: 1.7; color: var(--text-body); margin: 0; }

/* Applicant (slide-over) */
.vcp-applicant { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.vcp-applicant.is-best { border-color: var(--blue-200); }
.vcp-applicant.is-proposed { border-color: var(--accent); }
.vcp-applicant__row { display: flex; gap: 14px; }
.vcp-applicant__id { flex: 1; min-width: 0; }
.vcp-applicant__name { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: var(--fw-bold); color: var(--text-strong); }
.vcp-applicant__fit { margin: 12px 0; }
.vcp-applicant__msg { font-size: 13px; color: var(--text-muted); font-style: italic; margin: 10px 0 0; line-height: 1.6; }
.vcp-applicant__aside { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.vcp-applicant__fee { font-size: 14.5px; font-weight: var(--fw-bold); color: var(--text-strong); margin-bottom: 8px; }

/* ====================================================================== */
/* Toast                                                                  */
/* ====================================================================== */
.vcp-toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100020; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vcp-toast { display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: var(--fw-medium); background: var(--brand-deep); color: #fff; animation: vcpToast 0.25s var(--ease-out); }
.vcp-toast--ok { background: var(--accent-hover); }
.vcp-toast--err { background: var(--danger); }

@keyframes vcpSlideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes vcpPopIn { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes vcpToast { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ====================================================================== */
/* Auth screen — 박스 없이 헤더 콘텐츠 너비(.vc-container)에 맞춘 분할 레이아웃 */
/* ====================================================================== */
.vcp-shell--auth { padding-block: var(--space-6); background: var(--bg-page); }
.vcp-authwrap { max-width: var(--container-lg); margin-inline: auto; padding-inline: var(--space-8); }
.vcp-authcard {
	display: flex; align-items: stretch;
	min-height: calc(100vh - 72px - 2 * var(--space-6));
	background: var(--surface);
	border-radius: var(--radius-xl);
	overflow: hidden;
}
.vcp-authcard__brand { width: 46%; flex-shrink: 0; position: relative; overflow: hidden; background: var(--brand-deep); color: #fff; display: flex; align-items: center; padding: 56px 52px; }
.vcp-authcard__glow { position: absolute; inset: 0; background: radial-gradient(640px 400px at 85% -10%, rgba(21, 160, 110, 0.22), transparent 60%), radial-gradient(520px 420px at 0% 115%, rgba(42, 92, 158, 0.42), transparent 55%); }
.vcp-authcard__brandinner { position: relative; }
.vcp-authcard__eyebrow { font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--green-200); }
.vcp-authcard__headline { font-size: 29px; color: #fff; margin: 14px 0 0; letter-spacing: -0.02em; line-height: 1.3; font-weight: var(--fw-extrabold); }
.vcp-authcard__lead { font-size: 15px; line-height: 1.7; color: rgba(234, 241, 249, 0.78); margin-top: 18px; max-width: 360px; }
.vcp-authcard__stats { display: flex; gap: 28px; margin-top: 34px; }
.vcp-authcard__stat b { display: block; font-size: 24px; font-weight: var(--fw-extrabold); color: #fff; }
.vcp-authcard__stat span { font-size: 12.5px; color: rgba(234, 241, 249, 0.6); margin-top: 3px; }

.vcp-authcard__panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 44px; }
.vcp-authcard__form { width: 100%; max-width: 384px; }
.vcp-authcard__form .vcp-field > span,
.vcp-onboard__form .vcp-field > span { font-size: 13px; }
.vcp-authcard__form .vcp-field input,
.vcp-onboard__form .vcp-field input { font-size: 15px; padding: 12px 14px; }
.vcp-authtabs { display: flex; gap: 4px; background: var(--surface-sunken); padding: 4px; border-radius: var(--radius-md); margin-bottom: 24px; }
.vcp-authtab { flex: 1; padding: 9px 0; border: none; cursor: pointer; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font-family: inherit; font-size: 14px; font-weight: var(--fw-semibold); transition: background var(--dur), color var(--dur); }
.vcp-authtab.is-active { background: var(--surface); box-shadow: var(--shadow-xs); color: var(--brand-primary); }
.vcp-authpane { display: none; flex-direction: column; gap: 15px; }
.vcp-authpane.is-active { display: flex; }
.vcp-authrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.vcp-authlink { font-size: 13px; color: var(--brand-primary); text-decoration: none; font-weight: var(--fw-medium); }
.vcp-authlink:hover { text-decoration: underline; }

.vcp-auth__rolelabel { font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.vcp-auth__roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -2px; }
.vcp-rolecard { padding: 15px 14px; cursor: pointer; text-align: left; border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-md); transition: border-color var(--dur), background var(--dur); }
.vcp-rolecard b { display: block; font-size: 14px; font-weight: var(--fw-bold); color: var(--text-strong); margin-top: 9px; }
.vcp-rolecard span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.vcp-rolecard.is-active { border-color: var(--brand-primary); background: var(--brand-soft); }
.vcp-rolecard .vcp-i { color: var(--text-muted); }
.vcp-rolecard.is-active .vcp-i { color: var(--brand-primary); }

/* 동의(약관/개인정보) */
.vcp-consent { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface-subtle); }
.vcp-consent__items { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.vcp-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-body); line-height: 1.5; }
.vcp-check--inline { font-size: 13px; }
.vcp-check input[type="checkbox"] { width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand-primary); cursor: pointer; }
.vcp-check a { color: var(--brand-primary); text-decoration: underline; }
.vcp-check b { font-weight: var(--fw-semibold); color: var(--text-strong); }

.vcp-auth__note { display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; padding: 12px 14px; background: var(--surface-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.vcp-auth__note .vcp-i { flex-shrink: 0; margin-top: 1px; color: var(--text-faint); }
.vcp-auth__note--accent { background: var(--accent-soft); border-color: var(--green-200); color: var(--green-700); }
.vcp-auth__note--accent .vcp-i { color: var(--accent-hover); }
.vcp-auth__note--warn { background: var(--orange-100); border-color: var(--orange-400); color: var(--orange-600); }
.vcp-auth__note--warn .vcp-i { color: var(--orange-600); }

/* 온보딩(역할 선택) */
.vcp-onboard { max-width: 560px; margin: clamp(16px, 5vh, 56px) auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 40px; }
.vcp-onboard__head { margin-bottom: 24px; }
.vcp-onboard__eyebrow { font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent); }
.vcp-onboard__title { font-size: 22px; font-weight: var(--fw-extrabold); letter-spacing: var(--ls-tight); color: var(--text-strong); margin: 10px 0 0; line-height: 1.35; }
.vcp-onboard__lead { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 10px 0 0; }
.vcp-onboard__form { display: flex; flex-direction: column; gap: 16px; }
.vcp-onboard__logout { text-align: center; font-size: 13px; color: var(--text-muted); text-decoration: none; margin-top: 2px; }
.vcp-onboard__logout:hover { color: var(--brand-primary); text-decoration: underline; }

/* ====================================================================== */
/* Responsive                                                             */
/* ====================================================================== */
@media (max-width: 1024px) {
	.vcp-cols--3-2, .vcp-cols--profile { grid-template-columns: 1fr; }
	.vcp-grid3 { grid-template-columns: repeat(2, 1fr); }
	.vcp-page { padding: 26px 28px 48px; }
}

/* 소형 태블릿/모바일: 사이드바를 숨기고 헤더 아래 가로 sticky 메뉴로 전환 */
@media (max-width: 900px) {
	.vcp-sidebar, .vcp-app.is-collapsed .vcp-sidebar { display: none; }
	.vcp-app, .vcp-app.is-collapsed { margin-left: 0; }
	.vcp-topbar { display: none; }
	.vcp-page { max-width: none; }
	.vcp-mobilenav {
		display: flex; gap: 4px; align-items: center;
		position: sticky; top: 72px; z-index: 30;
		background: var(--brand-deep);
		padding: 8px 12px; overflow-x: auto;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.vcp-mobilenav::-webkit-scrollbar { display: none; }
	.vcp-mobilenav__item {
		display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; position: relative;
		padding: 8px 13px; border-radius: var(--radius-pill);
		color: rgba(234, 241, 249, 0.78); text-decoration: none;
		font-size: 13.5px; font-weight: var(--fw-semibold); white-space: nowrap;
		transition: background var(--dur), color var(--dur);
	}
	.vcp-mobilenav__item:hover { color: #fff; }
	.vcp-mobilenav__item.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }
	.vcp-mobilenav__item--out { margin-left: 4px; color: rgba(234, 241, 249, 0.55); }
	.vcp-mobilenav__badge {
		min-width: 17px; height: 17px; padding: 0 5px; border-radius: var(--radius-pill);
		background: var(--accent); color: #fff; font-size: 10.5px; font-weight: var(--fw-bold); font-style: normal;
		display: inline-flex; align-items: center; justify-content: center;
	}
}

@media (max-width: 768px) {
	.vcp-topbar { padding: 0 16px; gap: 10px; }
	.vcp-page { padding: 22px 16px 48px; }
	.vcp-kpis { grid-template-columns: repeat(2, 1fr); }
	.vcp-grid3 { grid-template-columns: 1fr; }
	.vcp-deftable--grid { grid-template-columns: 1fr; }
	.vcp-field-grid { grid-template-columns: 1fr; }
	.vcp-reqcard { flex-direction: column; align-items: stretch; }
	.vcp-reqcard__aside { justify-content: space-between; }
	.vcp-joblist { flex-direction: column; }
	.vcp-joblist__aside { flex-direction: row; align-items: center; justify-content: space-between; }
	.vcp-table__row { grid-template-columns: 1.6fr 1fr; }
	.vcp-table__head span:nth-child(3), .vcp-table__body .vcp-table__fee { display: none; }
	.vcp-shell--auth { padding-block: 0; }
	.vcp-authwrap { max-width: none; padding-inline: 0; }
	.vcp-authcard { flex-direction: column; border-radius: 0; min-height: 0; }
	.vcp-authcard__brand { width: 100%; padding: 32px 24px; }
	.vcp-authcard__panel { padding: 30px 22px 40px; }
	.vcp-authcard__headline { font-size: 25px; }
	.vcp-authcard__lead { display: none; }
	.vcp-onboard { margin: 0; border-radius: 0; box-shadow: none; padding: 28px 22px 40px; max-width: none; }
	.vcp-modal-root.is-open { padding: 0; }
	.vcp-modal--doc { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
	.vcp-modal__doc { padding: 18px 18px 22px; }
	.vcp-modal--doc .vcp-modal__head { padding: 18px 18px; }
	.vcp-modal--doc .vcp-modal__actions { padding: 12px 18px; }
}
@media (max-width: 480px) {
	.vcp-topbar { padding: 0 16px; }
	.vcp-search { max-width: none; }
	.vcp-me__txt { display: none; }
	.vcp-auth__roles { grid-template-columns: 1fr; }
}

/* =========================================================
   테마 헤더 정렬 — 플랫폼 앱 셸과 콘텐츠(.vcp-page) 너비/위치 일치
   - body.vcp-active : 사이드바 앱이 렌더되는 플랫폼 페이지(인증/온보딩 제외)
   - body.vcp-collapsed : 사이드바 접힘(JS 동기화)
   - 사이드바 250px(접힘 72px) / 콘텐츠 max 1280 · 좌우 40px(≤1024 28 · ≤768 16)
   - .vc-header__inner 는 테마의 margin-inline:auto 를 유지해 사이드바 우측 영역에서 가운데 정렬
   ========================================================= */
body.vcp-active .vc-header__inner { max-width: 1280px; padding-inline: 40px; }
body.vcp-active .vc-header { padding-left: 250px; }
body.vcp-active.vcp-collapsed .vc-header { padding-left: 72px; }
/* 전체 높이 고정 사이드바가 푸터 좌측을 가리지 않도록 동일 오프셋 */
body.vcp-active .vc-footer { padding-left: 250px; }
body.vcp-active.vcp-collapsed .vc-footer { padding-left: 72px; }

@media (max-width: 1024px) {
	body.vcp-active .vc-header__inner { padding-inline: 28px; }
}
@media (max-width: 900px) {
	/* 사이드바 숨김 → 오프셋 제거, 콘텐츠 전체폭(.vcp-page max-width:none 과 일치) */
	body.vcp-active .vc-header,
	body.vcp-active.vcp-collapsed .vc-header,
	body.vcp-active .vc-footer,
	body.vcp-active.vcp-collapsed .vc-footer { padding-left: 0; }
	body.vcp-active .vc-header__inner { max-width: none; }
}
@media (max-width: 768px) {
	body.vcp-active .vc-header__inner { padding-inline: 16px; }
}

/* === 지원 폼 세로 간격 보정 (job-single) === */
/* 희망 강사료 행 다음의 '지원 메시지' 라벨이 너무 붙는 문제 */
.vcp-applyform .vcp-field-grid + .vcp-field { margin-top: 18px; }
/* 입력 영역과 제출 버튼 사이 여백 */
.vcp-applyform .vcp-form__actions { margin-top: 22px; }

/* === 워드프레스 관리바 표시 시(관리자) 고정 사이드바/헤더가 가려지지 않도록 오프셋 === */
/* 사이드바는 관리바까지 덮으므로 top:0 유지(오프셋 없음). 헤더만 관리바 아래로 내림. */
.admin-bar.vcp-active .vc-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar.vcp-active .vc-header { top: 46px; }
}

/* === 화면 전환 애니메이션: 플랫폼 진입 시 부드러운 페이드 인 === */
/* 전환 애니메이션: transform 없이 opacity 만 사용 (transform 은 position:fixed 사이드바의
   고정/z-index 를 깨뜨리므로 금지). 사이드바 자체는 애니메이션 없이 항상 고정. */
@keyframes vcpFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.vcp-main-wrap, .vcp-shell--auth { animation: vcpFade 0.3s var(--ease-out) both; }

/* 플랫폼 페이지에서는 테마 .vc-main 의 transform 기반 애니메이션을 해제 —
   그렇지 않으면 .vc-main 이 stacking context/containing block 을 만들어
   내부 position:fixed 사이드바가 관리바 위로 못 올라가고 스크롤 시 함께 밀립니다. */
body.vcp-active .vc-main { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
	.vcp-main-wrap, .vcp-shell--auth { animation: none; }
}
