/* ── 토큰 ───────────────────────────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) {
	--link-brand: #012965;
	--link-text: #111;
	--link-secondary: #464c53;
	--link-placeholder: #6d7882;
	--link-border: #e6e8ea;
	--link-border-strong: #b1b8be;
	--link-muted: #f4f5f6;
	--link-critical: #dc0000;
	--link-success: #04b014;
	--link-notice: #e0ebff;
}

/* ── 페이지 골격 (PC) ───────────────────
   Figma: main 위 100 / 아래 140, 요소 간격 24, 폼 폭 725, 제목 56px/700
   26.10.26 아로 결정: 1280px 이상에서는 폼 폭을 1200으로 넓힌다(시안은 725, Figma 미반영).
   입력 폭은 폼 폭 - (라벨 200 + 간격 30)이라 이 변수 하나로 같이 움직인다. */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) {
	--link-form-width: 725px;
}
@media all and (min-width: 1280px) {
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) {
		--link-form-width: 1200px;
	}
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .site-main .inner {
	padding: 100px 20px 140px;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	float: none;
	width: 100%;
	max-width: none;          /* 레거시 article.page { max-width: 800px } 해제 */
	margin: 0;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page .entry-header {
	float: none;
	width: 100%;
	padding: 0 !important;    /* 레거시 .page .entry-header { padding: 50px 0 35px !important } */
	text-align: center;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page .entry-title {
	float: none;
	margin: 0;
	font-size: 56px;
	font-weight: 700;
	line-height: normal;
	text-transform: none;
	color: var(--link-text);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page .entry-content {
	float: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: var(--link-form-width);
	max-width: 100%;
	margin: 0 !important;     /* 레거시 .page .entry-content { margin: 0 0 120px } */
}

/* ── 회원 메뉴 (C·D 템플릿의 ul.best-agency-navigation) ───────────
   이 클래스는 베스트 에이전시 목록·프로젝트 상세도 쓴다 → 반드시 C·D 페이지 범위로만 덮어쓴다 */
:is(.page-template-page-modify, .page-template-page-add-a-project) ul.best-agency-navigation {
	float: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-align: center;
}
:is(.page-template-page-modify, .page-template-page-add-a-project) ul.best-agency-navigation li {
	float: none !important;      /* 레거시 li:nth-child(1) { float: left !important } */
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--link-text);
}
:is(.page-template-page-modify, .page-template-page-add-a-project) ul.best-agency-navigation li a {
	position: relative;
	font-size: 15px !important;  /* 레거시 style.css:16469 li:nth-child(1) a { … !important } 대응 */
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var(--link-secondary) !important;
	border-bottom: 0 !important;
	text-decoration: underline;
	text-underline-position: from-font;
}
:is(.page-template-page-modify, .page-template-page-add-a-project) ul.best-agency-navigation li a::before {
	content: "";
	position: absolute;
	inset: -12px -4px;           /* 클릭 영역 44px 이상 */
}

/* ── 폼 행 (PC: 라벨 200 + 간격 30 + 입력 495 = 725) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form {
	float: none;
	display: block;
	width: 100%;
	margin: 0;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field {
	display: flex !important; /* 레거시 .rwmb-field{display:block !important} 이김 */
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	box-sizing: border-box;
	float: none;
	width: 100%;
	margin: 0 !important;
	padding: 20px 0;
	border-bottom: 1px solid var(--link-border);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-label {
	flex: 0 0 200px;
	float: none;
	width: 200px !important;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: normal;
	color: var(--link-text);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-label label {
	float: none;
	width: auto;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-required {
	margin-left: 4px;
	color: var(--link-critical);
}
/* 레거시 style.css:13149 가 제목·요약 라벨에 ::after " *" 를 붙여, 별표(.rwmb-required)와 겹쳐 ** 로 보임 → 이 페이지들은 실제 별표만 사용 */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-label label[for="post_title"]::after,
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-label label[for="post_excerpt"]::after {
	content: none;
}
/* 라벨 밑 작은 설명 (예: "256×256px PNG 권장") */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-label p {
	float: none;
	margin: 4px 0 0;
	font-size: 12px !important;
	font-weight: 300;
	line-height: normal !important;
	color: var(--link-secondary);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-input {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	float: none;
	width: auto !important;
	max-width: calc(var(--link-form-width) - 230px);   /* 라벨 200 + 간격 30 */
	margin: 0;
	font-size: 16px;
}
/* 입력 밑 도움말 (Figma 12px / Light / secondary) */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input p.description {
	float: none;
	width: 100%;
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 300;
	line-height: normal;
	color: var(--link-secondary);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form :is(.rwmb-text-wrapper, .rwmb-url-wrapper, .rwmb-email-wrapper, .rwmb-password-wrapper) .rwmb-input p.description {
	margin-top: 4px;
}

/* ── 섹션 제목 (rwmb-heading-wrapper = h4 + p.description) ─────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-heading-wrapper {
	display: block !important;
	padding: 48px 0 12px !important;
	border-bottom: 0;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-heading-wrapper h4 {
	margin: 0 0 8px !important;   /* 레거시 .page-template-page-modify … h4 { margin: 50px 0 5px !important } */
	font-size: 24px;
	font-weight: 600;
	line-height: normal;
	color: var(--link-text);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-heading-wrapper p.description {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--link-secondary);
}
/* 레거시 `.rwmb-field.rwmb-heading-wrapper + .rwmb-field { border-top: 2px solid #101010 }` 해제: 시안은 제목 아래 굵은 선이 없다 */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-heading-wrapper + .rwmb-field {
	border-top: 0;
}

/* ── 입력창 (Figma: 총 높이 50px = 테두리 1 + 패딩 13 + 글줄 22 + 13 + 1) ───── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input :is(input[type="text"], input[type="url"], input[type="tel"], input[type="email"], input[type="password"]) {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: 13px 19px;
	border: 1px solid var(--link-border);
	border-radius: 0;
	background: var(--link-muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;          /* 레거시 height/line-height 48px 해제 */
	color: var(--link-text);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input input[type="password"] {
	padding-right: 52px;       /* 눈 아이콘 자리 */
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 120px;
	padding: 13px 19px;
	border: 1px solid transparent;   /* Figma 텍스트영역은 테두리 없음. focus 때 색만 바꾼다 */
	border-radius: 0;
	background: var(--link-muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--link-text);
	resize: vertical;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input :is(input, textarea)::placeholder {
	color: var(--link-placeholder);
	opacity: 1;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input :is(input, textarea):focus {
	border-color: var(--link-brand);
	background: #fff;
	outline: none;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input :is(input, textarea):focus-visible {
	outline: 2px solid var(--link-brand);   /* DESIGN.md: 포커스는 색만으로 구분하지 않는다 */
	outline-offset: 2px;
}
/* 비밀번호 눈 아이콘: 입력창 위쪽 기준(도움말이 아래에 붙으므로 50% 쓰지 말 것) */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-password-toggle {
	position: absolute;
	top: 15px;
	right: 20px;
	display: flex;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-password-toggle svg {
	width: 20px;
	height: 20px;
	fill: var(--link-secondary);
}

/* ── 체크박스·라디오 (Figma 행 높이 32 = 상하 5 + 박스 22) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input fieldset.rwmb-input-list {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	float: none !important;
	width: auto !important;    /* 레거시 taxonomy label { width: 30%; float: left } */
	min-height: 32px;
	padding: 5px 11px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--link-text);
	cursor: pointer;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list :is(input[type="checkbox"], input[type="radio"]) {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	box-sizing: border-box;
	position: static !important;   /* 레거시 top:1px 해제 */
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	padding: 0;
	transform: none;   /* 레거시 style.css `.rwmb-input input { transform: scale(1.6) }` 해제 */
	border: 1px solid var(--link-border-strong);
	background: var(--link-muted);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list input[type="checkbox"] {
	border-radius: 0;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list input[type="radio"] {
	border-radius: 50%;
}
/* 선택됨: 시안에 checked 상태 프레임이 없어 로그인 기준 체크박스(남색 + 흰 체크)를 준용 */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list input[type="checkbox"]:checked {
	border-color: var(--link-brand);
	background: var(--link-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 20px no-repeat;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list input[type="radio"]:checked {
	border-color: var(--link-brand);
	background: radial-gradient(circle, var(--link-brand) 0 5px, transparent 5.5px), var(--link-muted);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input .rwmb-input-list input:focus-visible {
	outline: 2px solid var(--link-brand);
	outline-offset: 2px;
}
/* 전문분야 체크박스(16개): 폼 폭 1200(≥1280)에서는 시안처럼 4열 동일 폭 격자. 그보다 좁으면 위의 자유 줄바꿈 유지 */
@media all and (min-width: 1280px) {
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-checkbox_list-wrapper .rwmb-input fieldset.rwmb-input-list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 20px;
	}
}

/* ── 파일 선택 (네이티브 input[type=file]) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input input[type="file"] {
	max-width: 100%;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--link-secondary);   /* "선택된 파일 없음" */
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input input[type="file"]::file-selector-button {
	box-sizing: border-box;
	height: 33px;
	margin: 0 12px 0 0;
	padding: 0 16px;
	border: 1px solid var(--link-brand);
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-weight: 600;
	color: var(--link-text);
	cursor: pointer;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input a.rwmb-file-add {
	display: inline-block;
	width: auto;
	float: none;
	margin: 4px 0 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--link-secondary);
	text-decoration: underline;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-input a.rwmb-file-add strong {
	font-weight: inherit;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-files {
	margin: 0 0 8px !important;
}

/* ── 제출 버튼 (240×48 남색 각진) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-form-submit {
	display: flex;
	justify-content: center;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 40px 0 0 !important;
	border: 0 !important;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-form-submit .rwmb-input {
	flex: 0 1 240px;
	float: none !important;
	width: 240px !important;
	max-width: 100%;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form button.rwmb-button:is([name="rwmb_submit"], [name="rwmb_profile_submit_register"], [name="rwmb_profile_submit_info"]) {
	box-sizing: border-box;
	float: none;
	width: 100%;
	height: 48px;
	margin: 0 !important;
	padding: 10px 16px;
	border: 1px solid var(--link-brand);
	border-radius: 0;
	background-color: var(--link-brand);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form button.rwmb-button:is([name="rwmb_submit"], [name="rwmb_profile_submit_register"], [name="rwmb_profile_submit_info"]):hover {
	background-color: var(--link-brand) !important;
	opacity: .9;
}

/* ── 알림 박스 (플러그인 기본 메시지를 같은 틀로 통일) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) :is(div.rwmb-error, div.rwmb-confirmation, p.rwmb-error) {
	box-sizing: border-box;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid;
	border-radius: 0;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	color: var(--link-text);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) :is(div.rwmb-error, p.rwmb-error) {
	border-color: var(--link-critical);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) div.rwmb-confirmation:not(.rwmb-error) {
	border-color: var(--link-success);
}
/* 가입 실패 후 파일 재첨부 안내 (inc/register-keep-input.php). 에러 박스 안, 오류 문구 아래 빨간 글씨 */
.page-id-74901 .rwmb-error .link-refile-notice {
	color: var(--link-critical);
}

/* ── 모바일 (≤767, Figma 390) ───────── */
@media all and (max-width: 767px) {
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .site-main .inner {
		padding: 40px 20px 60px;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page {
		gap: 20px;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page .entry-title {
		font-size: 32px;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) article.page .entry-content {
		gap: 20px;
		width: 100%;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field {
		flex-direction: column;
		gap: 8px;
		padding: 16px 0;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-label {
		flex: none;
		width: 100% !important;
		font-size: 15px;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field .rwmb-input {
		flex: none;
		width: 100% !important;
		max-width: none;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-heading-wrapper {
		padding-top: 32px !important;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-heading-wrapper h4 {
		font-size: 20px;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-form-submit .rwmb-input {
		flex: 1 1 auto;
		width: 100% !important;
	}
	:is(.page-template-page-modify, .page-template-page-add-a-project) ul.best-agency-navigation {
		justify-content: flex-start;   /* Figma 390: 왼쪽 정렬, 줄바꿈 간격 8px 16px */
		gap: 8px 16px;
	}
}

/* ── 입력 오류 안내 (js/link-form-validate.js, 시안 Figma 3887:23036) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .rwmb-field.link-field-error .rwmb-input :is(input:not([type="checkbox"], [type="radio"], [type="file"]), textarea, select) {
	border-color: var(--link-critical) !important;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-field-error-msg {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--link-critical);
}
/* 버튼 칸(240px)보다 문구가 길어 양옆으로 넓혀 가운데 맞춤 */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-form-summary {
	margin: 0 -100px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	color: var(--link-critical);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-form-summary[hidden] {
	display: none;
}
/* 플러그인이 잠근 가입 버튼: 클릭이 버튼 대신 감싸는 칸으로 가서 안내가 뜬다 */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form button.rwmb-button:disabled {
	pointer-events: none;
}

/* 제출 중 안내·잠금, 첨부 형식 안내 */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-form-wait {
	margin: 0 -100px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

/* ── 적용 예시 안내 카드 (inc/link-forms.php, 피드백 2.2) ───────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 28px 32px;
	background: var(--link-muted);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide__copy strong {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--link-text);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide__copy p {
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--link-secondary);
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide__button {
	box-sizing: border-box;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 28px;
	border: 1px solid var(--link-brand);
	background: var(--link-brand);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide__button:hover {
	opacity: .9;
	color: #fff;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .description a.link-example-inline {
	margin-left: 4px;
	font-weight: 700;
	color: var(--link-text);
	text-decoration: underline;
	text-underline-position: from-font;
}
@media all and (max-width: 767px) {
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 20px;
	}
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-example-guide__copy strong {
		font-size: 18px;
	}
}

/* ── 영역(division) 드롭다운: Figma dropdown/trigger + dropdown/menu ───────────
   select2 select_tree(부문·분야). 트리거=회색 박스 50px, 메뉴=회색 목록 항목 50px. 모서리 0. */
.page-template-page-add-a-project .rwmb-form .rwmb-input > .rwmb-select-tree {
	display: flex;
	gap: 20px;
	width: 100%;
	float: none;
}
.page-template-page-add-a-project .rwmb-form .rwmb-select-tree.hidden {
	display: none;
}
.page-template-page-add-a-project .rwmb-form .rwmb-select-tree > .rwmb-select-tree {
	flex: 0 0 calc(50% - 10px);
	min-width: 0;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}
.page-template-page-add-a-project .rwmb-form .rwmb-select-tree > .select2-container {
	flex: 0 0 calc(50% - 10px);
	min-width: 0;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}
.page-template-page-add-a-project .rwmb-form .rwmb-select-tree > .rwmb-select-tree > .select2-container {
	width: 100% !important;
}
.page-template-page-add-a-project .rwmb-form .select2-container .select2-selection--single {
	box-sizing: border-box;
	height: 50px !important;
	border: 1px solid var(--link-border) !important;
	border-radius: 0 !important;
	background: var(--link-muted) !important;
}
.page-template-page-add-a-project .rwmb-form .select2-container--open .select2-selection--single,
.page-template-page-add-a-project .rwmb-form .select2-container--focus .select2-selection--single {
	border-color: var(--link-secondary) !important;
}
.page-template-page-add-a-project .rwmb-form .rwmb-select-tree .select2-selection__rendered {
	height: 48px;
	padding: 0 50px 0 19px;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	line-height: 48px !important;
	color: var(--link-secondary);
}
.page-template-page-add-a-project .rwmb-form .select2-selection__placeholder {
	color: var(--link-secondary);
}
.page-template-page-add-a-project .rwmb-form .select2-selection__clear {
	display: none !important;   /* 시안에 × 없음 */
}
.page-template-page-add-a-project .rwmb-form .rwmb-taxonomy-wrapper .rwmb-input > .description,
.page-template-page-add-a-project .rwmb-form .rwmb-taxonomy-wrapper .rwmb-input > p.description {
	clear: both;
	margin-top: 10px;
}
/* 화살표: 기본 삼각형 대신 20px 쉐브론, 열리면 위로 */
.page-template-page-add-a-project .rwmb-form .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0 !important;
	right: 15px;
	width: 20px;
	height: 50px !important;
	transform: none !important;
}
.page-template-page-add-a-project .rwmb-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -6px 0 0 -4px;
	border: solid var(--link-secondary);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}
.page-template-page-add-a-project .rwmb-form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
	margin-top: -2px;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(-135deg);
}
/* 비활성(부문 선택 전 분야) */
.page-template-page-add-a-project .rwmb-form .select2-container--disabled .select2-selection--single {
	opacity: .5;
}
/* 메뉴(body 아래에 붙으므로 body 클래스로 범위 지정) */
.page-template-page-add-a-project .select2-dropdown {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--link-muted);
	box-shadow: none;
}
.page-template-page-add-a-project .select2-results__options {
	max-height: none !important;   /* 스크롤바 없이 전부 펼친다(부문 10개·분야 최대 ~8개) */
	overflow: visible !important;
}
.page-template-page-add-a-project .select2-search--dropdown {
	display: none;   /* 검색 입력칸 없음: 선택지가 10개 안팎이라 불필요 */
}
.page-template-page-add-a-project .select2-container--default .select2-results__option {
	box-sizing: border-box;
	min-height: 50px;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	color: var(--link-secondary);
	background: var(--link-muted);
}
.page-template-page-add-a-project .select2-container--default .select2-results__option--highlighted[aria-selected],
.page-template-page-add-a-project .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background: var(--link-border);
	color: var(--link-secondary);
}
.page-template-page-add-a-project .select2-container--default .select2-results__option[aria-selected="true"],
.page-template-page-add-a-project .select2-container--default .select2-results__option--selected {
	background: var(--link-muted);
	font-weight: 700;
	color: var(--link-text);
}
@media all and (max-width: 767px) {
	.page-template-page-add-a-project .rwmb-form .rwmb-input > .rwmb-select-tree {
		flex-direction: column;
		gap: 10px;
	}
}
/* 구 '영역'(area 라디오) 필드는 division 드롭다운으로 대체되어 화면에서 숨긴다 */
.page-template-page-add-a-project .rwmb-form .rwmb-field:has(input[name*="taxonomy_area"]) {
	display: none !important;
}

/* ── 파일 끌어놓기 영역 (Figma: state/filefield — 끌어놓기) ─────────────────── */
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-drop-box input[type="file"],
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-drop-hide {
	display: none !important;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-dropzone {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 30px 20px;
	border: 1px dashed var(--link-border-strong);
	border-radius: 0;
	background: var(--link-muted);
	font-size: 16px;
	font-weight: 500;
	color: var(--link-secondary);
	cursor: pointer;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-dropzone__btn {
	box-sizing: border-box;
	height: 33px;
	padding: 0 16px;
	border: 1px solid var(--link-brand);
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-weight: 600;
	color: var(--link-text);
	cursor: pointer;
}
:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .link-dropzone__btn[hidden] { display: none; }
/* 파일을 끌고 페이지에 들어온 동안: 모든 칸 강조 */
body.link-drag-active .link-dropzone {
	border-color: var(--link-brand);
	color: var(--link-brand);
}
/* 이 칸 위에 올림 */
body .link-dropzone.is-over {
	border: 2px solid var(--link-brand);
	padding: 29px 19px;
	background: var(--link-notice);
	color: var(--link-brand);
	font-weight: 600;
}
.link-dropzone.is-filled {
	border-style: solid;
	border-color: var(--link-border);
	color: var(--link-text);
}
.link-dropzone.is-locked {
	border-style: solid;
	border-color: var(--link-border);
	color: var(--link-placeholder);
	cursor: default;
}
.link-field-error .link-dropzone { border-style: solid; border-color: var(--link-critical); }
.link-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.link-chips:not(:empty) { margin-top: 10px; }
.link-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 14px;
	border: 1px solid var(--link-border);
	background: var(--link-muted);
	font-size: 14px;
	font-weight: 500;
	color: var(--link-text);
}
.link-chip__size { font-size: 13px; font-weight: 300; color: var(--link-secondary); }
.link-chip__x {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 12px;
	font-weight: 700;
	color: var(--link-secondary);
	cursor: pointer;
}
@media all and (max-width: 767px) {
	/* 모바일은 끌어놓기가 안 되므로 드롭 영역 없이 기존 파일 선택 입력란과 '+ 새 파일 추가'를 그대로 쓴다 */
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form :is(.link-dropzone, .link-chips) { display: none !important; }
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-drop-box input[type="file"] { display: block !important; margin: 0 0 12px; }
	:is(.page-id-74901, .page-template-page-modify, .page-template-page-add-a-project) .rwmb-form .link-drop-hide { display: inline-block !important; margin-top: 4px; }
}

/* 프로젝트 등록에서 쓰지 않는 칸은 화면에서만 숨긴다(값은 그대로 폼에 남아 수정 시 지워지지 않는다) */
.page-template-page-add-a-project .rwmb-form .rwmb-field:has(:is(input[name="_file_ditoday_project_attachment[]"], input[name^="ditoday_video_url"], input[name="ditoday_website_url_2"])) {
	display: none !important;
}

/* 고객사·제작사 '+ 추가' (프로젝트 등록) */
.page-template-page-add-a-project .rwmb-form .rwmb-field.link-row-collapsed { display: none !important; }
.page-template-page-add-a-project .link-add-row-wrap { padding: 12px 0 20px 230px; }
.page-template-page-add-a-project .link-add-row-wrap[hidden] { display: none; }
.page-template-page-add-a-project .link-add-row {
	padding: 0;
	border: 0;
	background: none;
	font-size: 15px;
	font-weight: 500;
	color: var(--link-secondary);
	text-decoration: underline;
	cursor: pointer;
}
@media all and (max-width: 767px) {
	.page-template-page-add-a-project .link-add-row-wrap { padding-left: 0; }
}

/* ── 주소 검색 버튼 (js/link-form-validate.js) ─────────────────
   입력칸과 한 줄: 칸은 남는 폭을 쓰고 버튼은 칸 높이(50px)에 맞춘다. 제출 버튼과 같은 남색 채움·각진 모서리. */
:is(.page-id-74901, .page-template-page-modify) .rwmb-form .link-address-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
:is(.page-id-74901, .page-template-page-modify) .rwmb-form .link-address-row input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}
:is(.page-id-74901, .page-template-page-modify) .rwmb-form .link-address-search {
	box-sizing: border-box;
	flex: 0 0 auto;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--link-brand);
	border-radius: 0;
	background: var(--link-brand);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
}
:is(.page-id-74901, .page-template-page-modify) .rwmb-form .link-address-search:hover {
	opacity: .9;
}
@media (max-width: 480px) {
	:is(.page-id-74901, .page-template-page-modify) .rwmb-form .link-address-search { padding: 0 14px; }
}
