/* ============================================================
   solco 커스텀 오버라이드 (모든 페이지 공통, 마지막 로드)
   ============================================================ */

/* === CEO 메세지 섹션 레이아웃 보정 (greeting) === */

/* 데스크톱(≥782px): 좌(이미지)·우(텍스트) 컬럼 상하 폭(높이) 일치
   - 컬럼은 기본 stretch라 이미지 컬럼이 텍스트 컬럼 높이만큼 늘어남.
   - cover의 인라인 aspect-ratio:1 을 풀고 컬럼 높이를 꽉 채우게 함.
     (사진은 object-fit:cover라 늘어나지 않고 크롭만 됨 → 왜곡 없음) */
@media (min-width: 782px) {
	.wp-container-core-columns-is-layout-d17f683b > .wp-block-column:first-child {
		display: flex;
		flex-direction: column;
		/* 이미지 컬럼 인라인 padding-top:spacing-10 제거 → 텍스트 컬럼과 상단 맞춤 */
		padding-top: 0 !important;
	}
	.wp-container-core-columns-is-layout-d17f683b > .wp-block-column:first-child > .wp-block-cover {
		flex: 1 1 auto;
		aspect-ratio: auto !important;   /* 인라인 aspect-ratio:1 무력화 */
		min-height: 0 !important;
	}
}

/* 모바일(≤781px): flex-wrap:nowrap 때문에 안 풀리는 걸 wrap 으로 풀어 세로 적층 */
@media (max-width: 781px) {
	.wp-container-core-columns-is-layout-d17f683b {
		flex-wrap: wrap !important;
	}
	.wp-container-core-columns-is-layout-d17f683b > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === CEO 서명: "대표 김국현" 우측에 서명 이미지 배치 === */
.solco-ceo-sign {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.solco-ceo-sign p {
	margin: 0;
}
.solco-ceo-sign figure {
	margin: 0;
}

/* === CEO 메세지 본문 타이포그래피 정돈 (greeting) ===
   이 테마는 --wp--style--block-gap:0 이라 문단 간격이 0이거나, 일부만 작은
   padding-top(spacing-10)이 박혀 들쭉날쭉하다. 텍스트 컬럼에 일관된 세로 리듬을 부여. */

/* CEO 컬럼(이미지+텍스트) 상단 여백 — 컨테이너에 줘서 둘이 같이 내려가고 정렬 유지 */
.wp-container-core-columns-is-layout-d17f683b {
	padding-top: 2rem;
}

/* 본문 문단 공통: 편안한 줄간격 + 균일한 문단 간격, 인라인 padding/margin 정리 */
.solco-ceo-text > p {
	line-height: 1.85 !important;
	margin: 0 0 1.15em !important;
	padding: 0 !important;
}
.solco-ceo-text > p:last-child {
	margin-bottom: 0 !important;
}

/* 굵은 줄(리드 문장 / 소제목)은 줄간격을 타이트하게 */
.solco-ceo-text > p[style*="font-weight:700"] {
	line-height: 1.45 !important;
}

/* 리드 문장(건강이 일상이 되고…): 본문 시작 전 충분한 간격 */
.solco-ceo-text > p:first-child {
	margin-bottom: 1.7em !important;
}

/* 본문 중 굵은 소제목(당신의 건강한 삶을 응원합니다): 위로 단락 구분 간격 */
.solco-ceo-text > p[style*="font-weight:700"]:not(:first-child) {
	margin-top: 2em !important;
}

/* 서명 줄(대표 김국현 + 서명): 본문과 분리 */
.solco-ceo-text .solco-ceo-sign {
	margin-top: 2.2em;
}

/* === 문의 폼 (contact form) === */
.solco-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 640px;
	margin: 0 auto;
	width: 100%;
}
.solco-contact-form .solco-form-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: flex-end; /* 라벨 높이 달라도 입력칸 바닥 정렬 */
}
.solco-contact-form .solco-form-row > label {
	flex: 1 1 0;
	min-width: 180px;
}
.solco-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast, #1a1a1a);
}
.solco-contact-form label .fl {
	display: block;
}
.solco-contact-form label .req {
	color: #e2453c;
	font-style: normal;
}
.solco-contact-form input,
.solco-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 400;
	background: #fff;
	color: #1a1a1a;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.solco-contact-form input:focus,
.solco-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #2e6df6);
	box-shadow: 0 0 0 3px rgba(46, 109, 246, 0.12);
}
.solco-contact-form textarea {
	resize: vertical;
	min-height: 130px;
}
.solco-contact-form button[type="submit"] {
	align-self: flex-start;
	margin-top: 0.5rem;
	padding: 0.9rem 2.4rem;
	border: none;
	border-radius: 100px;
	background: var(--wp--preset--color--primary, #2e6df6);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}
.solco-contact-form button[type="submit"]:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}
.solco-form-msg {
	margin: 0;
	padding: 0.9rem 1.1rem;
	border-radius: 8px;
	font-weight: 600;
}
.solco-form-msg.ok {
	background: #e8f7ee;
	color: #1c7a43;
	border: 1px solid #aee0c2;
}
.solco-form-msg.err {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f3c2bd;
}

/* === 핵심 제품소개 카드 제목 위 여백 (백금샘/솔고 고주파/통증치료기 공통) === */
.wp-container-core-group-is-layout-69a6a33d > p:first-child {
	margin-top: 1.1rem !important;
}

/* === 모바일 오버레이 메뉴: 회사소개 하위(인사말/회사연혁) === */
.solco-msub {
	display: flex;
	flex-direction: column;
	padding: 2px 0 10px 56px; /* 아이콘+여백만큼 들여쓰기 */
}
.solco-msub a {
	color: inherit;
	opacity: 0.72;
	text-decoration: none;
	padding: 7px 0;
	font-size: 0.92em;
	line-height: 1.3;
}
.solco-msub a:hover {
	opacity: 1;
}
