/**
 * 참여 액션(스크랩·공유·질문) 공용 스타일 — 본문 이중 앵커
 * 시안 정본: design_handoff_engagement_actions/ (v3 토큰 값을 리터럴로 이식 — 이름 복사 금지)
 * 마크업 렌더러: inc/engage-actions.php · 동작: js/engage-actions.js
 *
 * 색 리터럴 (v3): gray-100 #F0F0ED · gray-200 #E6E6E2 · gray-300 #D4D4CF
 *                gray-500 #8A8A85 · gray-700 #45453F · gray-900 #1B1B18
 *                primary-600 #047E57 · primary-700 #036546
 */

/* ── C1: 컴팩트 액션 (상단 앵커, 아이콘 전용) ─────────────────── */
.oeg-c1 {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.oeg-c1__sep {
	width: 1px;
	height: 16px;
	background: #E6E6E2;
	margin: 0 8px 0 4px;
	flex: none;
}
.oeg-ibtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #45453F;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.oeg-ibtn:hover { background: #F0F0ED; }
.oeg-ibtn[data-oeg-share]:hover { color: #1B1B18; }
.oeg-ibtn.bookmarked { color: #036546; }
.oeg-ibtn.bookmarked .oeg-ic { fill: currentColor; }

/* ── C2: 풀 액션 바 (하단 앵커) ───────────────────────────────── */
.oeg-bar {
	border-top: 1px solid #E6E6E2;
	border-bottom: 1px solid #E6E6E2;
	padding: 8px 0;
	display: flex;
	gap: 4px;
}
.oeg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #45453F;
	transition: background-color .15s ease, color .15s ease;
}
.oeg-btn:hover { background: #F0F0ED; }
.oeg-btn--dim:hover { color: #1B1B18; } /* 공유·질문: hover 시 글자도 진해짐 (스크랩은 상태색이 지배) */
.oeg-btn--scrap .oeg-btn__label {
	display: inline-block;
	min-width: 56px;
	text-align: left; /* "스크랩"↔"스크랩 됨" 전환 시 레이아웃 시프트 방지 */
}
.oeg-btn--scrap.bookmarked { color: #036546; }
.oeg-btn--scrap.bookmarked .oeg-ic { fill: currentColor; }
.oeg-btn__cnt {
	color: #8A8A85;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.oeg-ic { flex: none; }

/* ── 외곽선 변형: 위키 히어로·자료실 히어로의 2차 공유 버튼 ──── */
.oeg-share-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid #D4D4CF;
	border-radius: 6px;
	background: #FFFFFF;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #45453F;
	transition: background-color .15s ease;
}
.oeg-share-outline:hover { background: #F0F0ED; }
.oeg-share-outline--lg { min-height: 48px; padding: 12px 20px; } /* 자료실 다운로드 CTA 옆 */

/* ── 자료실 상세: 다운로드(1차)+공유(2차) 줄 · 리뷰 줄 우측 C1 ── */
.oeg-dl-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	flex-wrap: wrap;
}
.product-rating-area {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
}
.product-rating-area .oeg-c1 { margin-left: auto; }

/* ── 접근성: 포커스 한 겹 · 아이콘 전용 버튼 보조 텍스트 ─────── */
.oeg-ibtn:focus-visible,
.oeg-btn:focus-visible,
.oeg-share-outline:focus-visible {
	outline: 2px solid #047E57;
	outline-offset: 2px;
}
.oeg-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ── 모바일: 풀폭 균등 분할 · 짧은 라벨 ──────────────────────── */
@media (max-width: 768px) {
	.oeg-bar { padding: 6px 0; gap: 0; }
	.oeg-bar .oeg-btn {
		flex: 1;
		justify-content: center;
		gap: 6px;
		padding: 10px 8px;
	}
	.oeg-bar .oeg-btn--scrap .oeg-btn__label { min-width: 0; text-align: center; }
	.oeg-btn__label--full { display: none; }        /* "질문하기" → "질문" */
	.oeg-btn__label--short { display: inline; }
	.oeg-share-outline { min-height: 44px; }
}
@media (min-width: 769px) {
	.oeg-btn__label--full { display: inline; }
	.oeg-btn__label--short { display: none; }
}
