/* 기자 마이페이지 — iNS 마이페이지 모양(분석 ② §1·§2). 공개 테마 헤더·푸터 사이에 들어간다. */
.kt-my-wrap { max-width: var(--kt-max, 1200px); margin: 24px auto 48px; padding: 0 16px; box-sizing: border-box; color: #222; font-size: 14px; }
.kt-my-wrap *, .kt-my-wrap *::before, .kt-my-wrap *::after { box-sizing: border-box; }
.kt-my { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }

/* 왼쪽 메뉴: 활성 = 파란 배경 + > */
.kt-my-side h2 { margin: 0; padding: 10px 12px; background: #333; color: #fff; font-size: 15px; }
.kt-my-side ul { list-style: none; margin: 0; padding: 0; border: 1px solid #ccc; border-top: 0; }
.kt-my-side li a { display: block; padding: 10px 12px; border-top: 1px solid #e3e3e3; color: #333; text-decoration: none; }
.kt-my-side li a:hover, .kt-my-side li a:focus { background: #eef4fb; }
.kt-my-side li.on a { background: #1f5fa8; color: #fff; font-weight: 700; }
.kt-my-admin { margin: 10px 0 0; } .kt-my-admin a { display: block; padding: 8px 12px; background: #f3f3f3; border: 1px solid #ccc; color: #333; text-align: center; text-decoration: none; }

.kt-my-user { text-align: right; font-size: 13px; color: #555; margin-bottom: 6px; }
.kt-my-user a { color: #555; }
.kt-my-title { font-size: 20px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid #1f5fa8; }
.kt-my-notice { margin: 0 0 18px; padding: 10px 14px 10px 28px; background: #f7f7f7; border: 1px solid #e3e3e3; color: #555; font-size: 13px; line-height: 1.7; }
.kt-my-notice-sub { margin-top: 0; }
.kt-my-flash { padding: 10px 14px; margin-bottom: 14px; background: #eef7ee; border: 1px solid #b9dcb9; }
.kt-my-error { padding: 10px 14px; margin-bottom: 14px; background: #fdeeee; border: 1px solid #e8b4b4; color: #a11; }
.kt-my-h2 { font-size: 16px; margin: 22px 0 6px; }
.help { color: #777; font-size: 12px; } p.help { margin: 4px 0 0; line-height: 1.6; } .help .sub { color: #999; }

/* 표 */
.kt-my-table { width: 100%; border-collapse: collapse; border-top: 2px solid #555; }
.kt-my-table th, .kt-my-table td { padding: 9px 8px; border-bottom: 1px solid #e3e3e3; text-align: left; }
.kt-my-table th { background: #f5f5f5; font-weight: 600; font-size: 13px; }
.kt-my-table .w-date { width: 140px; color: #666; white-space: nowrap; }
.kt-my-table .w-btn { width: 170px; white-space: nowrap; }
.kt-my-table td.empty { text-align: center; color: #999; padding: 24px; }
.kt-my-table td.t a { color: #222; } .kt-my-table td.t a:hover { text-decoration: underline; }
.kt-my-pager { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; margin: 4px 0; }
.kt-my-pager nav a, .kt-my-pager nav strong, nav.kt-my-pager a, nav.kt-my-pager strong { display: inline-block; min-width: 26px; padding: 2px 6px; margin: 0 1px; text-align: center; }
.kt-my-pager strong { background: #1f5fa8; color: #fff; }
nav.kt-my-pager { justify-content: center; margin-top: 14px; }

/* 버튼 */
.kt-btn-s { display: inline-block; padding: 3px 9px; border: 1px solid #aaa; background: #f6f6f6; color: #333; font-size: 12px; text-decoration: none; cursor: pointer; border-radius: 2px; line-height: 1.6; }
.kt-btn-s:hover { background: #ebebeb; }
.kt-btn-ok { display: inline-block; padding: 8px 26px; background: #1f5fa8; border: 1px solid #174a85; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; border-radius: 2px; }
.kt-btn-ok:disabled { opacity: .6; cursor: wait; }
.kt-btn-cancel { display: inline-block; padding: 8px 22px; background: #888; border: 1px solid #777; color: #fff; font-size: 15px; cursor: pointer; text-decoration: none; border-radius: 2px; }
.kt-btn-wide { width: 100%; }
.kt-my-buttons { text-align: center; margin: 20px 0; }

/* 2열 폼(왼쪽 회색 라벨 칸) */
.kt-form-table { width: 100%; border-collapse: collapse; border-top: 2px solid #555; }
.kt-form-table > tbody > tr > th, .kt-form-table > tr > th { width: 130px; background: #f2f2f2; padding: 10px; text-align: left; font-weight: 600; font-size: 13px; vertical-align: top; border-bottom: 1px solid #ddd; }
.kt-form-table > tbody > tr > td, .kt-form-table > tr > td { padding: 8px 10px; border-bottom: 1px solid #ddd; }
.kt-form-table input[type=text], .kt-form-table input[type=email], .kt-form-table input[type=tel], .kt-form-table input[type=password], .kt-form-table textarea, .kt-form-table select { padding: 5px 7px; border: 1px solid #bbb; font-size: 14px; max-width: 100%; }
.kt-form-table .ro { background: #f4f4f4; color: #555; }
.w-20 { width: 200px; } .w-30 { width: 300px; } .w-40 { width: 400px; } .w-title { width: 100%; } /* 제목·부제·키워드는 줄 끝까지(13인치에서 긴 제목이 잘려 보이지 않게) */
label.inline { margin-right: 12px; white-space: nowrap; }
.kt-editor-cell { padding: 0 !important; }
.kt-editor-foot { text-align: right; font-size: 12px; color: #2a7d2a; padding: 4px 6px; min-height: 22px; }
.kt-cur-thumb img { vertical-align: middle; margin-right: 8px; }
.kt-restore { padding: 10px 14px; margin-bottom: 12px; background: #fff8e1; border: 1px solid #ecd27a; }

/* 기사쓰기: 오른쪽 본문사진 간편등록 패널 */
.kt-write-cols { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: start; }
.kt-quick { position: sticky; top: 12px; border: 1px solid #ccc; padding: 10px; background: #fafafa; }
.kt-quick h3 { margin: 0 0 8px; font-size: 14px; }
.kt-drop { border: 2px dashed #2e9a46; background: #eaf7ed; color: #1d6b30; padding: 18px 8px; text-align: center; font-size: 13px; line-height: 1.8; cursor: pointer; }
.kt-drop.over, .kt-drop:focus { background: #d4f0da; outline: 2px solid #1d6b30; }
.kt-quick-progress { font-size: 12px; color: #1d6b30; min-height: 18px; margin: 6px 0; }
.kt-quick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kt-quick-list li img { width: 100%; height: 70px; object-fit: cover; display: block; border: 1px solid #ddd; }
.kt-quick-list .b { display: flex; } .kt-quick-list .b button { flex: 1; font-size: 11px; padding: 2px 0; border: 1px solid #bbb; background: #fff; cursor: pointer; }
.kt-quick-list li.empty { grid-column: 1 / -1; color: #999; font-size: 12px; }
.kt-quick-more { width: 100%; margin-top: 8px; }

/* TinyMCE: [본문사진] 초록 강조 */
.mce-ktphoto button, .mce-btn.mce-ktphoto { background: #2e9a46 !important; }
.mce-ktphoto .mce-txt { color: #fff !important; font-weight: 700; }

/* 본문사진 팝업(모달) */
.kt-pm { position: fixed; inset: 0; z-index: 100100; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.kt-pm[hidden] { display: none; }
.kt-pm-box { background: #fff; width: min(1100px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.kt-pm-bar { display: flex; align-items: center; gap: 12px; background: #1f5fa8; color: #fff; padding: 8px 12px; position: sticky; top: 0; z-index: 1; }
.kt-pm-add { background: #fff; color: #1f5fa8; border: 0; padding: 5px 12px; font-weight: 700; cursor: pointer; }
.kt-pm-tip { flex: 1; text-align: right; font-size: 13px; }
.kt-pm-close { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.kt-pm-tabs { padding: 10px 12px; border-bottom: 1px solid #ddd; font-size: 13px; }
.kt-pm-tabs button { background: none; border: 0; cursor: pointer; color: #555; } .kt-pm-tabs button.on { color: #1f5fa8; font-weight: 700; }
.kt-pm-page { float: right; color: #666; }
.kt-pm-grid { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kt-pm-grid li { border: 1px solid #ddd; padding: 6px; font-size: 12px; }
.kt-pm-grid li img { width: 100%; height: 110px; object-fit: cover; display: block; background: #f3f3f3; }
.kt-pm-grid .d { margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #444; }
.kt-pm-grid .o { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; }
.kt-pm-grid .fav { background: none; border: 0; font-size: 16px; color: #bbb; cursor: pointer; } .kt-pm-grid .fav.on { color: #f0a800; }
.kt-pm-grid .b { display: flex; margin: 0; } .kt-pm-grid .b button { flex: 1; padding: 3px 0; font-size: 12px; border: 1px solid #1f5fa8; background: #fff; color: #1f5fa8; cursor: pointer; }
.kt-pm-grid .b button:hover, .kt-pm-grid .b button:focus { background: #1f5fa8; color: #fff; }
.kt-pm-grid li.empty, .kt-pm-grid li.loading { grid-column: 1 / -1; text-align: center; color: #888; border: 0; padding: 30px; }
.kt-pm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px 14px; flex-wrap: wrap; }
.kt-pm-pager button { min-width: 26px; margin: 0 1px; border: 1px solid #ccc; background: #fff; cursor: pointer; } .kt-pm-pager button.on { background: #1f5fa8; color: #fff; border-color: #1f5fa8; }
.kt-pm-up { padding: 12px; } .kt-pm-uptop { display: flex; justify-content: space-between; margin: 0 0 8px; }
.kt-u-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .kt-u-preview img { width: 120px; height: 90px; object-fit: contain; background: #f3f3f3; border: 1px solid #ddd; transition: transform .2s; }
.kt-pm-upbtns { position: sticky; bottom: 0; background: #fff; padding: 10px 0 2px; text-align: center; border-top: 1px solid #ddd; margin-top: 10px; }
#kt-u-progress { display: block; color: #1d6b30; font-size: 13px; min-height: 18px; }

/* 이미지관리 3×3 */
.kt-photo-total { font-weight: 600; }
.kt-photo-grid3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kt-photo-grid3 li { border: 1px solid #ddd; padding: 8px; font-size: 12px; }
.kt-my-wrap .kt-photo-grid3 img { width: 100%; height: 160px; object-fit: contain; background: #f3f4f5; display: block; } /* 본문 사진 규칙(height:auto)보다 앞서게 — 세로 사진도 칸 높이 같게, 잘리지 않게 */
.kt-photo-grid3 .d { margin: 6px 0 2px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .kt-photo-grid3 .m { margin: 0 0 6px; color: #888; }
.kt-photo-grid3 li.empty { grid-column: 1 / -1; text-align: center; color: #999; border: 0; }

/* 로그인·회원가입 */
.kt-login { max-width: 380px; margin: 10px auto; }
.kt-login label { display: block; font-weight: 600; margin-bottom: 4px; } .kt-login label.inline { display: inline; font-weight: 400; }
.kt-login input[type=text], .kt-login input[type=email], .kt-login input[type=password] { width: 100%; padding: 9px; border: 1px solid #bbb; font-size: 15px; }
.kt-login-links { text-align: center; font-size: 13px; }
/* 회원가입: 희망 지부 선택칸도 입력칸과 같은 높이·폭, 안내는 칸 아래 */
.kt-login select { width: 100%; height: 40px; padding: 0 8px; border: 1px solid #bbb; background: #fff; font-size: 15px; }
.kt-login p > .help { display: block; margin-top: 4px; }
.kt-login label.inline { display: inline-flex; align-items: center; gap: 4px; margin: 4px 14px 0 0; }
.kt-hp { position: absolute; left: -9999px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 13인치 정리: 입력칸·선택칸 높이 맞추기, 안내 글자는 칸 아래 한 줄로 */
.kt-form-table input[type=text], .kt-form-table input[type=email], .kt-form-table input[type=tel], .kt-form-table input[type=password], .kt-form-table select { height: 36px; }
.kt-form-table select { padding-block: 0; }
.kt-form-table textarea + .help { display: block; margin-top: 4px; }
.kt-form-table th { vertical-align: middle; }
.kt-form-table th:has(+ td textarea), .kt-form-table th:has(+ td .help) { vertical-align: top; padding-top: 18px; }
.kt-my-table td.t { word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 900px) {
	.kt-my { grid-template-columns: 1fr; }
	.kt-my-side ul { display: flex; flex-wrap: wrap; } .kt-my-side li { flex: 1 1 33%; } .kt-my-side li a { text-align: center; padding: 9px 4px; font-size: 13px; }
	.kt-write-cols { grid-template-columns: 1fr; } .kt-quick { position: static; }
	.kt-photo-grid3 { grid-template-columns: repeat(2, 1fr); }
	.w-title, .w-40, .w-30 { width: 100%; }
}
@media (max-width: 560px) {
	.kt-form-table > tbody > tr > th, .kt-form-table > tbody > tr > td { display: block; width: 100%; }
	.kt-form-table > tbody > tr > th { border-bottom: 0; padding-bottom: 4px; }
	.kt-my-table th, .kt-my-table td { padding: 9px 6px; }
	.kt-my-table .w-btn { width: 1%; white-space: normal; } .kt-my-table .w-btn .kt-btn-s { display: block; white-space: nowrap; margin: 2px 0; text-align: center; }
	.kt-my-table .w-date { width: 76px; white-space: normal; font-size: 12.5px; }
	.kt-photo-grid3 { grid-template-columns: 1fr; }
	.kt-my-user { text-align: left; }
	.kt-form-table input[type=text], .kt-form-table input[type=email], .kt-form-table input[type=tel], .kt-form-table input[type=password], .kt-form-table textarea { width: 100%; }
	.kt-form-table select { width: calc(50% - 4px); }
	.kt-form-table > tbody > tr > td > .help { display: block; margin-top: 4px; }
	.kt-form-table th:has(+ td textarea), .kt-form-table th:has(+ td .help) { padding-top: 10px; }
	.kt-my-buttons .kt-btn-ok, .kt-my-buttons .kt-btn-cancel { min-width: 120px; }
}
