@charset "utf-8";
/* ==========================================================================
   한국심리극·역할극상담학회 — 모바일 스타일 (2026-11-19)
   - head.sub.php 에서 media="screen and (max-width: 1023px)" 로만 로드됨 → PC 화면에는 영향 없음
   - PHP 파일은 PC·모바일 공용, 이 파일이 PC 스타일(default.css·page.css·스킨 style.css)을 덮어씀
   - 색: 학회 녹색 #265441 / 포인트 #31b774
   ========================================================================== */

:root {
    --m-green: #265441;
    --m-green-dark: #1c3f31;
    --m-point: #31b774;
    --m-point-soft: #e9f6ef;
    --m-text: #222;
    --m-sub: #6b7280;
    --m-line: #e5e7eb;
    --m-bg: #f5f6f8;
    --m-radius: 12px;
    --m-pad: 16px;
    --m-hd-h: 56px;
}

/* --------------------------------------------------------------------------
   기본
   -------------------------------------------------------------------------- */
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { min-width: 0 !important; word-break: keep-all; overflow-wrap: anywhere; color: var(--m-text); -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
.row { width: auto !important; margin: 0; }
.m_only { display: block; }
body.m_drawer_open { overflow: hidden; }
input, select, textarea, button { font-size: 16px; } /* iOS 확대 방지 */

/* PC 전용 요소 숨김 */
.header, .quick_menu, #hd_login_msg, #container h1.title span { display: none !important; }

/* --------------------------------------------------------------------------
   모바일 헤더
   -------------------------------------------------------------------------- */
.m_hd {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--m-hd-h); padding: 0 6px 0 var(--m-pad);
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--m-line);
    -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
}
.m_hd_logo { display: flex; align-items: center; min-width: 0; }
.m_hd_logo img { display: block; height: 30px; width: auto; max-width: 70vw; }
.m_menu_btn {
    position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.m_menu_btn span {
    position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #222; transition: .2s;
}
.m_menu_btn span:nth-child(1) { top: 15px; }
.m_menu_btn span:nth-child(2) { top: 21px; }
.m_menu_btn span:nth-child(3) { top: 27px; width: 14px; }

/* --------------------------------------------------------------------------
   드로어 메뉴
   -------------------------------------------------------------------------- */
.m_dim {
    position: fixed; inset: 0; z-index: 990; background: rgba(17,24,39,.45);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.m_drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
    width: 86%; max-width: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.12);
    transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s;
}
.m_drawer_open .m_dim { opacity: 1; visibility: visible; }
.m_drawer_open .m_drawer { transform: none; visibility: visible; }

.m_dr_top { position: relative; padding: 28px 20px 20px; background: var(--m-green); color: #fff; }
.m_dr_close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.m_dr_close:before, .m_dr_close:after {
    content: ''; position: absolute; top: 21px; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff;
}
.m_dr_close:before { transform: rotate(45deg); }
.m_dr_close:after { transform: rotate(-45deg); }
.m_dr_hello { margin: 0 40px 14px 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.85); }
.m_dr_hello strong { font-size: 19px; font-weight: 700; color: #fff; }
.m_dr_links { display: flex; gap: 8px; }
.m_dr_links a {
    flex: 1; display: block; padding: 10px 0; border-radius: 8px; text-align: center;
    font-size: 14px; color: #fff; background: rgba(255,255,255,.14); text-decoration: none;
}
.m_dr_links a.m_dr_primary { background: #fff; color: var(--m-green); font-weight: 700; }
.m_dr_admin { display: inline-block; margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.8); text-decoration: underline; }

.m_dr_menu, .m_dr_sub { margin: 0; padding: 0; list-style: none; }
.m_dr_item { border-bottom: 1px solid var(--m-line); }
.m_dr_toggle {
    position: relative; display: block; width: 100%; padding: 17px 20px; border: 0; background: none;
    text-align: left; font-size: 17px; font-weight: 600; color: var(--m-text); cursor: pointer;
}
.m_dr_toggle:after {
    content: ''; position: absolute; top: 50%; right: 22px; width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid #9ca3af; border-bottom: 2px solid #9ca3af; transform: rotate(45deg); transition: transform .2s;
}
.m_dr_item.open .m_dr_toggle { color: var(--m-green); }
.m_dr_item.open .m_dr_toggle:after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--m-green); }
.m_dr_sub { display: none; padding: 4px 0 12px; background: var(--m-bg); }
.m_dr_item.open .m_dr_sub { display: block; }
.m_dr_sub a { display: block; padding: 11px 20px 11px 32px; font-size: 15px; color: #4b5563; text-decoration: none; }
.m_dr_sub a.on { color: var(--m-green); font-weight: 700; }

/* --------------------------------------------------------------------------
   서브 페이지 레이아웃
   -------------------------------------------------------------------------- */
.sub { display: block; }
#aside {
    float: none !important; width: auto !important; min-height: 0 !important; margin: 0 !important;
    position: sticky; top: var(--m-hd-h); z-index: 800; background: #fff; border-bottom: 1px solid var(--m-line);
}
#aside .sidemenu h2 { display: none; }
#aside .sidemenu ul {
    display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0; padding: 10px var(--m-pad); border: 0; scrollbar-width: none;
}
#aside .sidemenu ul::-webkit-scrollbar { display: none; }
#aside .sidemenu ul li { flex: 0 0 auto; border: 0; }
#aside .sidemenu ul li a {
    display: block; padding: 7px 14px; border: 1px solid var(--m-line) !important; border-radius: 999px;
    font-size: 14px; line-height: 1.4; color: #4b5563; background: #fff; white-space: nowrap;
}
#aside .sidemenu ul li a:hover { background: #fff; color: #4b5563; }
#aside .sidemenu ul li a.on { background: var(--m-green) !important; border-color: var(--m-green) !important; color: #fff !important; font-weight: 600; }

#container {
    float: none !important; width: auto !important; padding: 20px var(--m-pad) 32px !important; min-height: 0;
}
#container h1.title {
    margin: 0 0 18px !important; padding: 0 0 14px !important; border-bottom: 1px solid var(--m-line) !important;
    font-size: 22px !important; line-height: 1.35 !important; font-weight: 700 !important; height: auto !important;
}

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
.footer { margin-top: 0 !important; border-top: 1px solid var(--m-line); background: var(--m-bg); }
.footer .bottom_menu { border-bottom: 1px solid var(--m-line); }
.footer .bottom_menu ul { margin: 0; padding: 12px 0; }
.footer .bottom_menu ul li { margin: 0 8px; font-size: 14px; }
.copyright { padding: 18px var(--m-pad) 28px !important; }
.copyright p { margin: 0; font-size: 12.5px !important; line-height: 1.8 !important; color: var(--m-sub); text-align: center; word-break: keep-all; }

/* --------------------------------------------------------------------------
   모바일 메인 (theme/kaprpc/index_mobile.php) — PC 메인(.pc_only)은 숨김
   -------------------------------------------------------------------------- */
.pc_only { display: none !important; }
.m_main { padding: 20px var(--m-pad) 32px; }
.m_main_icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; margin: 0 0 24px; padding: 0; list-style: none; }
.m_main_icons li { text-align: center; }
.m_main_icons a { display: block; }
.m_main_icons img { display: block; width: 100%; max-width: 96px; margin: 0 auto; }

.m_main_sec { margin: 0 0 12px; padding: 4px 16px 8px; border: 1px solid var(--m-line); border-radius: var(--m-radius); background: #fff; }
.m_main_sec_hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; border-bottom: 1px solid var(--m-line); }
.m_main_sec_hd h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--m-text); }
.m_main_more { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0 4px 8px; font-size: 13.5px; color: var(--m-sub); }
.m_main_more:after {
    content: ''; width: 6px; height: 6px; margin-left: 4px;
    border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
.m_main_list { margin: 0; padding: 0; list-style: none; }
.m_main_list li { position: relative; padding: 11px 0 11px 12px; border-top: 1px solid #f1f2f4; font-size: 15px; line-height: 1.45; color: var(--m-sub); }
.m_main_list li:first-child { border-top: 0; }
.m_main_list li:before { content: ''; position: absolute; top: 19px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--m-point); }
.m_main_list li a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--m-text); }
.m_main_list li .day:empty { display: none; }

/* 푸터 주소 (PC는 좌우 150px 여백) */
.copyright p { padding: 0 !important; }

/* --------------------------------------------------------------------------
   공용 콘텐츠 (.pages)
   -------------------------------------------------------------------------- */
.pages { font-size: 15px; line-height: 1.7; }
.pages h2 { margin: 28px 0 14px; font-size: 21px; line-height: 1.4; font-weight: 600; }
.pages h3 { margin: 24px 0 10px; font-size: 18px; line-height: 1.4; font-weight: 600; background-size: auto 3px; }
.pages p { line-height: 1.75; }
.pages .box_line, .pages div.box { padding: 14px 16px; border-radius: 10px; }
.pages .btn a { display: block; padding: 13px 0; border-radius: 10px; }

/* 하단 바로가기 버튼 3개 (자격 관련 페이지) */
.pages .btn_list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 28px 0 0; }
.pages .btn_list:after { display: none; }
.pages .btn_list li { float: none !important; width: auto !important; margin: 0 !important; }
.pages .btn_list li a { padding: 14px 0 !important; border-radius: 10px; font-size: 15px; line-height: 1.4; }

/* 자격 신청 정보 박스 */
.pages .license_application_info_box { margin-bottom: 16px; }
.pages .license_application_info_box .img { float: none; padding: 0 0 12px; }
.pages .license_application_info_box .img img { max-height: 160px; border-radius: 8px; }
.pages .license_application_info_box .info { float: none; }

/* 수련시간확인 — 수련 과목을 카드형으로 (license_apply_list.php) */
.pages .license_training_subject_tbl.lts_vertical,
.pages .license_training_subject_tbl.lts_vertical tbody { display: block; width: 100%; border: 0; }
.pages .license_training_subject_tbl.lts_vertical colgroup,
.pages .license_training_subject_tbl.lts_vertical thead { display: none; }
.pages .license_training_subject_tbl.lts_vertical tr {
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name btn" "prog prog";
    gap: 10px 12px; align-items: center; margin: 0 0 10px; padding: 14px 16px;
    border: 1px solid var(--m-line); border-radius: var(--m-radius); background: #fff;
}
.pages .license_training_subject_tbl.lts_vertical td { display: block; padding: 0 !important; border: 0 !important; background: none; }
.pages .license_training_subject_tbl.lts_vertical td[colspan] { grid-column: 1 / -1; text-align: center; color: var(--m-sub); }
.pages .license_training_subject_tbl.lts_vertical .lts_name { grid-area: name; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pages .license_training_subject_tbl.lts_vertical .lts_prog { grid-area: prog; }
.pages .license_training_subject_tbl.lts_vertical .lts_prog_in { gap: 10px !important; }
.pages .license_training_subject_tbl.lts_vertical .lts_bar { height: 8px; border-radius: 4px; }
.pages .license_training_subject_tbl.lts_vertical .lts_num { font-size: 14px; color: var(--m-sub); }
.pages .license_training_subject_tbl.lts_vertical .lts_btn { grid-area: btn; }
.pages .license_training_subject_tbl.lts_vertical .lts_btn .tbl_btn { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   목록 표(table.list, 수련시간 요청 내역) → 카드형 (.m_card 는 head.php 스크립트가 붙임)  (열 제목은 head.php 스크립트가 data-label 로 넣어 줌)
   -------------------------------------------------------------------------- */
.tbl_head01, .tbl_wrap { margin-bottom: 16px; }
.tbl_head01.list, .tbl_wrap.list { border: 0 !important; }
table.m_card, table.m_card tbody { display: block; width: 100% !important; border: 0 !important; }
table.m_card thead, table.m_card colgroup, table.m_card caption { display: none; }
table.m_card tr {
    display: block; margin: 0 0 10px; padding: 12px 16px;
    border: 1px solid var(--m-line); border-radius: var(--m-radius); background: #fff;
}
table.m_card td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: auto !important; padding: 6px 0 !important; border: 0 !important; background: none !important;
    text-align: right !important; line-height: 1.5; word-break: keep-all;
}
table.m_card td:before {
    content: attr(data-label); flex: 0 0 auto; max-width: 45%;
    font-size: 13.5px; color: var(--m-sub); text-align: left; font-weight: 400;
}
table.m_card td:not([data-label]):before { display: none; }
table.m_card td.name {
    display: block; margin-bottom: 4px; padding: 2px 0 10px !important; border-bottom: 1px solid var(--m-line) !important;
    text-align: left !important; font-size: 16px; font-weight: 600;
}
table.m_card td.name:before { display: none; }
table.m_card td.m_td_num { display: none; }
table.m_card td[colspan] { display: block; padding: 24px 0 !important; text-align: center !important; color: var(--m-sub); }
table.m_card td.m_td_act { display: block; padding-top: 10px !important; }
table.m_card td.m_td_act:before { display: none; }
table.m_card td.m_td_act a, table.m_card td.m_td_act button, table.m_card td.m_td_act input[type=submit] {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; box-sizing: border-box;
    margin: 0; padding: 0 12px; border-radius: 8px; font-size: 14.5px;
}
table.m_card td.m_td_act .cap-btn-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pages.training_time .training_time_list_wrap { overflow: visible; }
.pages.training_time table.m_card { min-width: 0 !important; }
.pages.training_time table.m_card td { max-width: none !important; white-space: normal !important; }
.pages.training_time table.m_card td.col_mng { display: block; padding-top: 10px !important; }
.pages.training_time table.m_card td.col_mng:before { display: none; }


/* --------------------------------------------------------------------------
   입력 폼 (.tbl_frm01) — 제목을 입력칸 위로
   -------------------------------------------------------------------------- */
.tbl_frm01 { margin-bottom: 20px; }
.tbl_frm01 table { border-top: 0 !important; }
.tbl_frm01 table, .tbl_frm01 tbody, .tbl_frm01 tr, .tbl_frm01 th, .tbl_frm01 td { display: block; width: auto !important; }
.tbl_frm01 colgroup, .tbl_frm01 caption { display: none; }
.tbl_frm01 tr { height: auto !important; padding: 14px 0; border-bottom: 1px solid var(--m-line); }
.tbl_frm01 th {
    padding: 0 0 8px !important; border: 0 !important; background: none !important;
    text-align: left !important; font-size: 14px; font-weight: 600; color: #374151; line-height: 1.4;
}
.tbl_frm01 th br { display: none; }
.tbl_frm01 td { display: flow-root !important; height: auto !important; padding: 0 !important; border: 0 !important; line-height: 1.6; }
.tbl_frm01 .frm_info { font-size: 13px; color: var(--m-sub); }

.frm_input, .tbl_frm01 input[type=text], .tbl_frm01 input[type=password], .tbl_frm01 input[type=email],
.tbl_frm01 input[type=tel], .tbl_frm01 input[type=number], .tbl_frm01 input[type=date], .tbl_frm01 select {
    height: 46px !important; max-width: 100%; padding: 0 12px !important; box-sizing: border-box;
    border: 1px solid #d1d5db !important; border-radius: 8px; background: #fff !important; font-size: 16px !important; line-height: normal !important;
}
.tbl_frm01 input[type=text], .tbl_frm01 input[type=password], .tbl_frm01 input[type=email],
.tbl_frm01 input[type=tel], .tbl_frm01 input[type=number], .tbl_frm01 select, .tbl_frm01 .frm_input { width: 100% !important; }
.tbl_frm01 input[size], .tbl_frm01 .frm_input[size] { width: auto !important; }
.tbl_frm01 textarea, textarea.frm_input {
    width: 100% !important; min-height: 120px; padding: 10px 12px !important; box-sizing: border-box;
    border: 1px solid #d1d5db !important; border-radius: 8px; background: #fff !important; font-size: 16px !important; line-height: 1.6 !important;
}
.frm_input:focus, .tbl_frm01 input:focus, .tbl_frm01 select:focus, .tbl_frm01 textarea:focus {
    outline: 0; border-color: var(--m-green) !important; box-shadow: 0 0 0 3px rgba(38,84,65,.12);
}
.tbl_frm01 input[type=checkbox], .tbl_frm01 input[type=radio] { width: 18px; height: 18px; vertical-align: -3px; accent-color: var(--m-green); }

/* 확인·취소 버튼 줄 */
.btn_confirm { display: flex; gap: 8px; margin: 20px 0 8px; }
.btn_confirm > * { flex: 1; }
.btn_confirm .btn_submit, .btn_confirm .btn_cancel, .btn_confirm a, .btn_confirm button, .btn_confirm input[type=submit] {
    display: flex !important; align-items: center; justify-content: center; box-sizing: border-box;
    width: 100%; height: 50px !important; margin: 0 !important; padding: 0 12px !important; border-radius: 10px !important;
    font-size: 16px !important; line-height: 1 !important; font-weight: 600;
}
.btn_confirm .btn_submit, .btn_confirm input[type=submit] { flex: 2; }
.btn_submit { border-radius: 8px; }

/* 페이지 본문(pages.php, 에디터 입력) — 고정 폭 표·이미지가 화면을 넘지 않게 */
.pages table:not(.m_card) { width: 100% !important; max-width: 100%; table-layout: auto; }
.pages table:not(.m_card) th[style*="width"], .pages table:not(.m_card) td[style*="width"],
.pages table:not(.m_card) th[width], .pages table:not(.m_card) td[width] { width: auto !important; }
.pages table:not(.m_card) td, .pages table:not(.m_card) th { padding: 9px 8px; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.pages [style*="width:"]:not(table):not(td):not(th):not(i):not(.lts_bar):not(input) { max-width: 100% !important; box-sizing: border-box; }
.pages iframe, .pages video { max-width: 100%; }
.pages iframe[src*="youtube"], .pages iframe[src*="youtu.be"] { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
.pages dl dd { padding-left: 0; }
.pages dl dt { position: static; }

/* 학회장 인사말 (pages.php?id=12) — PC용 들여쓰기 해제 */
.id_12 p, .id_12 h4 { padding-left: 0 !important; }
.id_12 .signature { padding-left: 0 !important; text-align: right; }
.id_12 img { float: none !important; display: block; margin: 0 auto 16px; padding: 0 !important; }

/* --------------------------------------------------------------------------
   회원 (skin/member/basic — 루트 스킨)
   -------------------------------------------------------------------------- */
.mbskin { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.mbskin .mbskin_box, .mbskin fieldset { box-sizing: border-box; }

/* 로그인 */
#mb_login #login_fs {
    display: block; width: auto !important; margin: 0 0 16px; padding: 22px 18px !important;
    border: 1px solid var(--m-line) !important; border-radius: var(--m-radius); background: #fff;
}
#mb_login #login_fs label.login_id, #mb_login #login_fs label.login_pw {
    position: static !important; display: block; width: auto !important; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #374151;
}
#mb_login #login_fs .frm_input {
    display: block; width: 100% !important; height: 48px !important; margin: 0 0 14px !important; padding: 0 14px !important; box-sizing: border-box;
    border: 1px solid #d1d5db !important; border-radius: 8px; background: #fff !important; font-size: 16px !important;
}
#mb_login #login_fs .btn_submit {
    position: static !important; display: block; width: 100% !important; height: 50px !important; margin: 4px 0 14px !important;
    border-radius: 10px; font-size: 16px !important; font-weight: 700;
}
#mb_login #login_fs input[type=checkbox] { width: 18px; height: 18px; vertical-align: -4px; accent-color: var(--m-green); }
#mb_login #login_info { width: auto !important; margin: 0; padding: 18px !important; border-radius: var(--m-radius); background: var(--m-bg); border: 0 !important; }
#mb_login #login_info h2 { margin: 0 0 6px; font-size: 15px; }
#mb_login #login_info p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--m-sub); }
#mb_login #login_info p br { display: none; }
#mb_login #login_info div { display: flex; gap: 8px; }
#mb_login #login_info div a {
    flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; padding: 0 8px;
    border: 1px solid #d1d5db !important; border-radius: 8px; background: #fff !important; color: #374151 !important; font-size: 14px; line-height: 1.3; text-align: center;
}

/* 회원가입·정보수정 — 학위/경력/자격증 입력 표 (custom/inc_register_profile.php)
   제목 줄을 숨기고 각 입력칸 위에 항목명 표시 (추가 버튼으로 늘어나는 줄도 적용되도록 CSS로 처리) */
.register_profile .tbl_frm01 { margin-bottom: 28px; }
.register_profile h3 { margin: 8px 0 10px; font-size: 18px; font-weight: 700; }
.register_profile input[id^=nodata] { width: 18px; height: 18px; vertical-align: -4px; accent-color: var(--m-green); }
.register_profile table tr:first-child:not([class]) { display: none !important; }
.register_profile table tbody tr {
    display: block; margin: 12px 0 0; padding: 14px !important;
    border: 1px solid var(--m-line) !important; border-radius: var(--m-radius); background: var(--m-bg);
}
.register_profile table td { margin: 0 0 10px; }
.register_profile table td:last-child { margin: 0; }
.register_profile table td:empty, .register_profile table td:last-child:not(:has(a, button, input:not([type=hidden]))) { display: none !important; }
.register_profile table td:before { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: #374151; }
.register_profile .degree_table td:nth-child(1):before { content: '학교명'; }
.register_profile .degree_table td:nth-child(2):before { content: '학과(전공)'; }
.register_profile .degree_table td:nth-child(3):before { content: '학위명'; }
.register_profile .degree_table td:nth-child(4):before { content: '상태'; }
.register_profile .degree_table td:nth-child(5):before { content: '연도'; }
.register_profile .career_table td:nth-child(1):before { content: '기관명'; }
.register_profile .career_table td:nth-child(2):before { content: '직위'; }
.register_profile .career_table td:nth-child(3):before { content: '근무기간'; }
.register_profile .license_table td:nth-child(1):before { content: '자격증'; }
.register_profile .license_table td:nth-child(2):before { content: '발급기관'; }
.register_profile .license_table td:nth-child(3):before { content: '발급일'; }
.register_profile .frm_input { background: #fff !important; }
.register_profile .career_table .frm_input2 { display: inline-block; width: calc(50% - 14px) !important; }
.register_profile .btn_bottom, .register_profile a.btn {
    display: block; margin: 12px 0 0; padding: 12px 0; border-radius: 10px;
    background: #fff; border: 1px dashed #9ca3af; color: #374151; font-size: 15px;
}

/* 비밀번호 확인 (member_confirm) */
#mb_confirm { padding: 0 !important; }
#mb_confirm h1 { margin: 8px 0 12px !important; font-size: 22px !important; }
#mb_confirm fieldset { width: auto !important; margin: 16px 0 0 !important; padding: 20px 18px !important; border: 1px solid var(--m-line) !important; border-radius: var(--m-radius); text-align: left !important; }
#mb_confirm .frm_input { display: block; width: 100% !important; height: 48px !important; margin: 8px 0 12px; padding: 0 14px !important; box-sizing: border-box; border: 1px solid #d1d5db !important; border-radius: 8px; font-size: 16px; }
#mb_confirm .btn_submit { width: 100%; height: 50px !important; border-radius: 10px; font-size: 16px; }
.register_profile table td { text-align: left !important; border: 0 !important; padding: 0 !important; }
.register_profile table td:before { text-align: left; }

/* 약관 동의 (register.php) */
#fregister textarea, #fregister section, #fregister .fregister_terms { box-sizing: border-box; max-width: 100%; }
#fregister textarea { height: 180px; padding: 14px !important; font-size: 14px !important; }
#fregister section, .fregister_agree { border-radius: var(--m-radius); overflow: hidden; }
.fregister_terms table th, .fregister_terms table td { padding: 8px !important; font-size: 13px; }

/* --------------------------------------------------------------------------
   게시판 공통 (theme/kaprpc/skin/board/basic, gallery)
   -------------------------------------------------------------------------- */
.sound_only, #container_title, #bo_v_table,
#bo_v_info h2, #bo_v_file h2, #bo_v_link h2, #bo_v_atc_title, #bo_vc h2 {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
#bo_list, #bo_gall, #bo_v, #bo_w { width: auto !important; }

/* 상단 줄: 전체 글 수 + 버튼 */
.bo_fx { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.bo_fx:after { display: none; }
#bo_list_total { float: none; margin: 0; font-size: 13.5px; color: var(--m-sub); }
.btn_bo_user, .btn_bo_adm { display: flex; flex-wrap: wrap; gap: 6px; float: none !important; margin: 0 0 0 auto !important; padding: 0; }
.btn_bo_user li, .btn_bo_adm li { float: none !important; margin: 0 !important; list-style: none; }
.btn_bo_adm { display: none; } /* 선택삭제·복사·이동은 PC에서 */
a.btn_b01, a.btn_b02, a.btn_admin, .btn_bo_user a, .btn_bo_user button, .btn_bo_adm input {
    display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; height: 36px !important;
    padding: 0 14px !important; border-radius: 8px; font-size: 14px !important; line-height: 1 !important; font-weight: normal !important;
    box-sizing: border-box;
}
a.btn_b01 { border: 1px solid #d1d5db !important; background: #fff !important; color: #374151 !important; }
a.btn_b02 { border: 1px solid var(--m-green) !important; background: var(--m-green) !important; color: #fff !important; }
a.btn_admin { border: 1px solid #9ca3af !important; background: #9ca3af !important; color: #fff !important; }

/* 분류 탭 */
#bo_cate { margin: 0 0 12px; }
#bo_cate ul { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 0; scrollbar-width: none; }
#bo_cate li { flex: 0 0 auto; float: none; list-style: none; }
#bo_cate a { display: block; padding: 6px 12px; border: 1px solid var(--m-line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
#bo_cate #bo_cate_on { background: var(--m-green); border-color: var(--m-green); color: #fff; }

/* 목록 (basic) — 표를 리스트형으로 */
#bo_list .tbl_head01 { border-top: 2px solid #222; }
#bo_list .tbl_head01 table, #bo_list .tbl_head01 tbody { display: block; }
#bo_list .tbl_head01 thead { display: none; }
#bo_list .tbl_head01 tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px;
    padding: 14px 2px; border-bottom: 1px solid var(--m-line);
}
#bo_list .tbl_head01 td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
#bo_list .tbl_head01 td.td_num:first-child, #bo_list .tbl_head01 td.td_chk { display: none; }
#bo_list .tbl_head01 td.td_subject { flex: 1 1 100%; margin-bottom: 4px; font-size: 16px; line-height: 1.45; }
#bo_list .tbl_head01 td.td_subject a { color: var(--m-text); }
#bo_list .tbl_head01 td.td_subject img { vertical-align: -2px; margin-left: 2px; }
#bo_list .tbl_head01 td.td_name, #bo_list .tbl_head01 td.td_date, #bo_list .tbl_head01 td.td_num {
    width: auto !important; font-size: 13px; color: var(--m-sub);
}
#bo_list .tbl_head01 td.td_name .sv_member, #bo_list .tbl_head01 td.td_name a { color: var(--m-sub); }
#bo_list .tbl_head01 td.td_date + td.td_num:before { content: '조회 '; }
#bo_list .tbl_head01 tr.bo_notice td.td_subject:before {
    content: '공지'; display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 4px;
    background: var(--m-point-soft); color: var(--m-green); font-size: 12px; font-weight: 700; vertical-align: 2px;
}
#bo_list .tbl_head01 td.empty_table { flex: 1 1 100%; padding: 40px 0 !important; text-align: center !important; color: var(--m-sub); }

/* 갤러리 목록 — 2열 카드 */
#gall_allchk { display: none; }
#gall_ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 12px; margin: 0 0 16px; padding: 0; }
#gall_ul:after { display: none; }
#gall_ul .gall_li { float: none !important; width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; list-style: none; border: 0 !important; }
#gall_ul .gall_li > input[type=checkbox], #gall_ul .gall_li > label { display: none; }
#gall_ul .gall_con { margin: 0; padding: 0; }
#gall_ul .gall_con li { list-style: none; width: auto !important; }
#gall_ul .gall_href a, #gall_ul .gall_href span { display: block; overflow: hidden; border-radius: 10px; background: var(--m-bg); aspect-ratio: 4 / 3; }
#gall_ul .gall_href img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
#gall_ul .gall_href .no_image { display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 100% !important; font-size: 13px; color: #9ca3af; }
#gall_ul .gall_text_href { margin: 8px 0 2px; font-size: 15px; font-weight: 600; line-height: 1.4; }
#gall_ul .gall_text_href a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#gall_ul .gall_con li:not(.gall_href):not(.gall_text_href) { display: inline; font-size: 12.5px; color: var(--m-sub); }
#gall_ul .gall_con li:not(.gall_href):not(.gall_text_href) .gall_subject { display: none; }
#gall_ul .gall_con li:not(.gall_href):not(.gall_text_href):first-of-type { display: none; } /* 작성자 */
#gall_ul .gall_con li:nth-last-child(1):before { content: ' · 조회 '; }

/* 검색 */
#bo_sch { display: flex; gap: 6px; margin: 20px 0 8px !important; padding: 0 !important; border: 0 !important; }
#bo_sch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_sch select { flex: 0 0 96px; height: 44px; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 14px; }
#bo_sch .frm_input { flex: 1; min-width: 0; height: 44px !important; padding: 0 12px !important; border: 1px solid #d1d5db !important; border-radius: 8px; background: #fff !important; box-sizing: border-box; }
#bo_sch .btn_submit { flex: 0 0 64px; height: 44px; padding: 0; border-radius: 8px; font-size: 15px; }

/* 페이지 번호 */
.pg_wrap { display: block; float: none !important; margin: 16px 0 0 !important; padding: 0 !important; text-align: center; }
.pg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pg_page, .pg_current, .pg a, .pg strong {
    display: inline-flex !important; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px !important; box-sizing: border-box;
    border: 1px solid var(--m-line) !important; border-radius: 8px; background: #fff !important; font-size: 14px; color: #374151 !important; line-height: 1 !important;
}
.pg_current, .pg strong { background: var(--m-green) !important; border-color: var(--m-green) !important; color: #fff !important; font-weight: 700; }
.pg_start, .pg_end { display: none !important; }

/* 글 보기 */
#bo_v header, #bo_v_title { margin: 0; }
#bo_v_title { padding: 4px 0 10px; font-size: 21px !important; line-height: 1.4 !important; font-weight: 700; word-break: keep-all; }
#bo_v_info { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--m-line); font-size: 13px; color: var(--m-sub); }
#bo_v_info .profile_info { float: none !important; width: 100%; margin-top: 12px !important; }
#bo_v_info strong { font-weight: 400; color: var(--m-sub); margin-right: 6px; }
#bo_v_file, #bo_v_link { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--m-bg); }
#bo_v_file ul, #bo_v_link ul { margin: 0; padding: 0; }
#bo_v_file li, #bo_v_link li { list-style: none; padding: 4px 0; font-size: 14px; word-break: break-all; }
.bo_v_file_cnt, .bo_v_link_cnt { display: block; font-size: 12px; color: var(--m-sub); }
#bo_v_top { display: block; width: 100%; margin: 0; }
#bo_v_bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 0 0 14px; }
#bo_v_bot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--m-line); }
#bo_v_top:after, #bo_v_bot:after { display: none; }
.bo_v_nb, .bo_v_com { display: flex; flex-wrap: wrap; gap: 6px; float: none !important; margin: 0 !important; padding: 0 !important; }
.bo_v_nb li, .bo_v_com li { float: none !important; margin: 0 !important; list-style: none; }
.bo_v_nb a { height: 34px !important; padding: 0 12px !important; font-size: 13.5px !important; }
#bo_v .bo_v_com a { height: 36px !important; padding: 0 14px !important; font-size: 14px !important; }
#bo_v_atc { margin: 0; }
#bo_v_con { min-height: 0 !important; margin: 0 0 20px; font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
#bo_v_con img { max-width: 100% !important; height: auto !important; }
#bo_v_con table { max-width: 100%; }
#bo_v_img img { max-width: 100%; height: auto; margin-bottom: 10px; }
#bo_v_act { text-align: center; }

/* 댓글 */
#bo_vc { margin: 20px 0 0; }
#bo_vc article { padding: 12px 0; border-bottom: 1px solid var(--m-line); }
#bo_vc header { font-size: 13px; color: var(--m-sub); }
#bo_vc p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }
#bo_vc_w textarea, .bo_vc_w textarea { width: 100% !important; box-sizing: border-box; border-radius: 8px; font-size: 16px; }

/* 글쓰기 */
#bo_w { padding: 0 2px; }
#bo_w .tbl_frm01 input[type=file] { width: 100%; font-size: 14px; }
#bo_w .write_div .smarteditor2,
#bo_w .wr_content { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#bo_sch { display: block; }
#bo_sch form { display: flex; gap: 6px; width: 100%; }
#bo_sch form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_v_file:not(:has(li)), #bo_v_link:not(:has(li)) { display: none; }
#bo_sch select { width: 96px !important; }
#bo_sch .frm_input { width: 0 !important; flex: 1 1 auto; }
#bo_sch .btn_submit { width: 64px !important; }
.btn_confirm { flex-wrap: wrap; }
.btn_confirm > * { min-width: 28%; }

/* 드로어 인사말 — 회원 상태 링크 (회원유지 충족확인으로 이동) */
.m_dr_status {
    display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.16); color: #fff !important; font-size: 13.5px; text-decoration: none;
}
.m_dr_status:after { content: ' ›'; }

/* 표 안 공통 버튼(.tbl_btn) — 카드형 목록에서는 버튼 칸을 제목 없이 가로 꽉 차게 */
table.m_card td:has(> .tbl_btn), table.m_card td:has(> .tbl_btn_group), table.m_card td:has(> .cap-btn-group),
table.m_card td:has(> form .tbl_btn) { display: block; padding-top: 10px !important; }
table.m_card td:has(> .tbl_btn):before, table.m_card td:has(> .tbl_btn_group):before,
table.m_card td:has(> .cap-btn-group):before, table.m_card td:has(> form .tbl_btn):before { display: none; }
table.m_card .tbl_btn { display: flex; width: 100%; height: 42px; border-radius: 8px; font-size: 14.5px; }
table.m_card .tbl_btn_group, table.m_card .cap-btn-group { display: flex; flex-direction: row; gap: 6px; width: 100%; }
table.m_card .tbl_btn_group .tbl_btn, table.m_card .cap-btn-group .tbl_btn { flex: 1; }
