/* 자동등록방지(kcaptcha) 공통 스타일 - captcha_html() 이 자동으로 불러온다.
   구조: fieldset#captcha > legend, img#captcha_img, input#captcha_key, button#captcha_mp3, button#captcha_reload, span#captcha_info */

#captcha { display: block; margin: 0; padding: 0; border: 0; min-width: 0; text-align: left; box-sizing: border-box; }
#captcha * { box-sizing: border-box; }

/* 라벨(legend)은 화면에서만 숨기고 스크린리더에는 남긴다 */
#captcha legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* 캡차 이미지 (원본 160x60 -> 높이 48px) */
#captcha #captcha_img { display: inline-block; width: auto; height: 48px; max-width: 100%; margin: 0; padding: 0; border: 1px solid #d6d6d6; border-radius: 3px; background: #fff; vertical-align: middle; }

/* 입력칸: 사이트 공통 입력창 스타일(.lettc input 등)보다 우선하도록 id 선택자 사용 */
#captcha #captcha_key { display: inline-block; width: 120px; height: 48px; margin: 0 0 0 4px; padding: 0 10px; border: 1px solid #d6d6d6; border-radius: 3px; background: #fff; color: #222; font-size: 20px; font-weight: 600; letter-spacing: 4px; line-height: normal; text-align: center; vertical-align: middle; outline: 0; }
#captcha #captcha_key:focus { border-color: #464e6b; box-shadow: 0 0 0 2px rgba(70, 78, 107, .15); }

/* 음성듣기 / 새로고침 버튼: 글자는 숨기고 아이콘만 표시 */
#captcha button { display: inline-block; width: 48px; height: 48px; margin: 0 0 0 4px; padding: 0; border: 1px solid #d6d6d6; border-radius: 3px; background: #fff no-repeat center center; font-size: 0; line-height: 0; text-indent: -9999px; overflow: hidden; vertical-align: middle; cursor: pointer; }
#captcha button span { display: none; }
#captcha button:hover, #captcha button:focus { border-color: #868686; background-color: #f6f6f6; }
#captcha #captcha_mp3 { background-image: url('img/sound.gif'); }
#captcha #captcha_reload { background-image: url('img/reload.gif'); }

/* 안내 문구 */
#captcha #captcha_info { display: block; margin: 8px 0 0; color: #777; font-size: 14px; line-height: 1.4; letter-spacing: 0; word-break: keep-all; }
#captcha #captcha_audio { display: block; width: 100%; margin-top: 8px; }

/* ---- 사이트별 색상/배치 ---- */

/* main: 소식지 구독신청 (녹색 포인트, 중앙 정렬) */
.lettc-form #captcha { text-align: center; }
.lettc-form #captcha #captcha_key:focus { border-color: #72bd5e; box-shadow: 0 0 0 2px rgba(114, 189, 94, .2); }
.lettc-form #captcha button:hover, .lettc-form #captcha button:focus { border-color: #72bd5e; }

/* archive: 글쓰기 표(.write-table) 안에서는 왼쪽 정렬 유지 */
.write-table #captcha { text-align: left; }

/* 모바일 */
@media (max-width: 780px) {
	#captcha #captcha_img { height: 40px; }
	#captcha #captcha_key { width: 96px; height: 40px; font-size: 17px; letter-spacing: 3px; }
	#captcha button { width: 40px; height: 40px; }
	#captcha #captcha_info { font-size: 13px; }
}
