@charset "utf-8";
/* =====================================================================
   글쓰기(write) 화면 — 라벨 위 / 입력 아래 구조, 초록 포인트
   ===================================================================== */
#boardModule:has(form#theForm .write_header) .board_top, #boardModule:has(form#theForm .write_header) .board_category { display:none !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) { display:flex; flex-direction:column; gap:18px; margin:0; padding:4px 0 8px; font-family:Pretendard,"Pretendard Variable","Malgun Gothic",sans-serif; color:#1f2937; }
/* 래퍼는 펼쳐서 자식들을 한 줄로 정렬 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_header, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table > tbody { display:contents; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table tr { display:block; margin:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) th { display:block; width:auto !important; padding:0 0 8px !important; border:0 !important; background:none !important; text-align:left; font-size:14px; font-weight:700; color:#111827; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) td { display:block; padding:0 !important; border:0 !important; background:none !important; }

/* 표시 순서 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest { order:1; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr.write_category { order:2; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor { order:3; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr:has(.write_opt) { order:4; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .editor_wrapper { order:5; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr:has(#tag) { order:6; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table tr:not(.write_category):not(:has(.write_opt)):not(:has(#tag)):not(.write_captcha) { order:7; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr.write_captcha { order:8; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer { order:9; }

/* 작성자 정보(비회원) */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px 16px; width:100%; margin:0; border:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest tr { display:block; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest th, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest td { display:block; }

/* 분류 / 제목 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr.write_category th::after, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_input h4::after { content:" *"; color:#e11d48; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor { display:block; margin:0; padding:0; border:0; background:none; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor .title_input { display:block; margin:0; padding:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor .title_input h4 { margin:0 0 8px; padding:0; border:0; background:none; font-size:14px; font-weight:700; color:#111827; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor .title_button { display:none; }

/* 입력 요소 공통 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) input.inputText, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) select.inputSelect, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .inputText { display:block; width:100% !important; height:40px; padding:0 14px; border:1px solid #dfe3e8; border-radius:8px; background:#fff; font-family:inherit; font-size:14px; color:#1f2937; box-sizing:border-box; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) select.inputSelect { padding-right:32px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) input.inputText:focus, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) select.inputSelect:focus, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) textarea:focus { outline:0; border-color:#2bb24c; box-shadow:0 0 0 3px rgba(43,178,76,.15); }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) input.inputText::placeholder { color:#9ca3af; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) textarea.inputTextarea { width:100% !important; padding:10px 14px; border:1px solid #dfe3e8; border-radius:8px; font-family:inherit; font-size:14px; box-sizing:border-box; }

/* 옵션 체크박스 한 줄 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr:has(.write_opt) { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr:has(.write_opt) th { padding:0 !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_opt { display:flex; flex-wrap:wrap; gap:6px 18px; list-style:none; margin:0; padding:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_opt li { float:none; margin:0; padding:0; display:flex; align-items:center; gap:6px; font-size:14px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_opt input[type=checkbox] { appearance:none; -webkit-appearance:none; width:16px; height:16px; margin:0; border:1px solid #cfd4da; border-radius:4px; background:#fff; cursor:pointer; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_opt input[type=checkbox]:checked { background:#2bb24c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color:#2bb24c; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_opt label { cursor:pointer; }

/* 에디터 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .editor_wrapper { margin:0; border:1px solid #dfe3e8; border-radius:8px; overflow:hidden; }

/* 캡차 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .captcha_form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; list-style:none; margin:0; padding:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .captcha_form li { margin:0 !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .captcha_form .inputText.captcha { width:140px !important; }

/* 하단 버튼 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer { display:flex; justify-content:center; gap:8px; margin:6px 0 0; padding:22px 0 0; border-top:1px solid #e7e9ee; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer .button, :is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer .button * { all:unset; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer .button input { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 22px; box-sizing:border-box; border:0; border-radius:8px; background:#f1f3f5; color:#1f2937; font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer .button input:hover { background:#e6e9ed; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer .button.strong input { background:#2bb24c; color:#fff; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer .button.strong input:hover { background:#23983f; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_footer { flex-direction:row-reverse; }

:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest > tbody { display:contents !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_guest th { padding-bottom:6px !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor .title_input h4 { display:block !important; visibility:visible !important; height:auto !important; position:static !important; font-size:14px !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr:has(.write_opt) { flex-wrap:nowrap; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr:has(.write_opt) th { white-space:nowrap; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_opt input[type=checkbox] { flex:0 0 16px; }

:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor .title_input { float:none !important; width:100% !important; height:auto !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .title_editor { display:flow-root !important; height:auto !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table tr:has(.write_opt) { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:16px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table tr:has(.write_opt) th { flex:0 0 auto; padding:0 !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_body > table tr:has(.write_opt) td { flex:1 1 auto; }

:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .editor_wrapper { border:0 !important; border-radius:0 !important; overflow:visible !important; margin:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .editor_wrapper .editor-wrapper { width:100%; box-sizing:border-box; }
/* 사이트 공통 버튼 초기화 규칙이 K 웹에디터 하단 탭의 여백을 지우는 문제 */
#boardModule .editor-wrapper .editor-viewtab { padding:.3rem 1rem !important; border:1px solid transparent; border-bottom:1px solid #dee2e6; }
#boardModule .editor-wrapper .editor-viewtab.active { border:1px solid #dee2e6; border-top:0; border-bottom-color:transparent; }
#boardModule .editor-wrapper .editor-viewtab + .editor-viewtab { border-left-color:#dee2e6; }

/* ---- 링크 / 태그 / 검색엔진 최적화 / 첨부파일 ---- */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr.write_ext { order:6 !important; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) tr.write_ext th { font-weight:700; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_hint { margin:8px 0 0; font-size:12px; line-height:1.5; color:#6b7280; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_limit { font-weight:400; font-size:13px; color:#6b7280; margin-left:2px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_link input.inputText,
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_tagrow input.inputText { height:38px; border-radius:12px; }

/* 태그 칩 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .tag_chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .tag_chips:empty { display:none; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .tag_chips .chip { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 8px 0 12px; border-radius:14px; background:#eaf7ee; color:#1c7a36; font-size:13px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .tag_chips .chip button { all:unset; cursor:pointer; width:16px; height:16px; line-height:16px; text-align:center; border-radius:50%; font-size:14px; color:#1c7a36; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .tag_chips .chip button:hover { background:rgba(0,0,0,.08); }

/* SEO */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_seo td { display:block; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_seo summary { cursor:pointer; font-size:13px; font-weight:700; color:#111827; padding:4px 0; list-style:none; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_seo summary::-webkit-details-marker { display:none; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_seo summary::before { content:"\25B8"; display:inline-block; margin-right:6px; color:#6b7280; transition:transform .15s; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .write_seo details[open] summary::before { transform:rotate(90deg); }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .seo_box { padding-top:10px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .seo_label { display:block; margin:12px 0 6px; font-size:13px; font-weight:700; color:#111827; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .seo_box .seo_label:first-child { margin-top:0; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .seo_slug { display:flex; align-items:stretch; border:1px solid #dfe3e8; border-radius:12px; overflow:hidden; background:#fff; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .seo_slug .seo_prefix { display:flex; align-items:center; padding:0 12px; background:#f6f7f9; color:#1f2937; font-size:14px; white-space:nowrap; border-right:1px solid #dfe3e8; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .seo_slug input.inputText { border:0; border-radius:0; height:38px; flex:1; min-width:0; box-shadow:none; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) #seoDesc { border-radius:12px; resize:vertical; min-height:80px; }

/* 첨부파일 드롭존 */
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .dropzone { display:flex; flex-direction:column; align-items:center; gap:6px; padding:34px 16px; border:1px dashed #cfd4da; border-radius:12px; background:#fff; color:#6b7280; text-align:center; cursor:pointer; transition:background .15s,border-color .15s; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .dropzone:hover,
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .dropzone.drag { background:#f0faf3; border-color:#2bb24c; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .dropzone strong { font-size:14px; color:#111827; font-weight:500; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .dropzone span { font-size:12px; color:#6b7280; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list:empty { display:none; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li { display:flex; align-items:center; gap:10px; height:42px; padding:0 8px 0 14px; border:1px solid #e7e9ee; border-radius:10px; background:#fff; font-size:13px; color:#1f2937; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li .nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li .sz { color:#6b7280; font-size:12px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li .st { color:#6b7280; font-size:12px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li.err { border-color:#f3b4b4; background:#fff6f6; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li button { all:unset; cursor:pointer; width:24px; height:24px; text-align:center; line-height:24px; border-radius:50%; color:#6b7280; font-size:16px; }
:is(.mn_sub_main,.mn_sub_body,body) #boardModule form#theForm:has(.write_header) .attach_list li button:hover { background:#f1f3f5; color:#111827; }
