/* ==========================================================================
   화면낭독기(스크린리더) 전용 텍스트 숨김
   그누보드 get_paging() 등이 출력하는 "열린", "페이지", "맨끝" 같은 보조 텍스트를
   시각적으로는 숨기고 스크린리더만 읽을 수 있게 처리
   ========================================================================== */
.sound_only,
.msg_sound_only {
    display: inline-block;
    position: absolute;
    top: 0; left: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: 1px !important;
    height: 1px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0 !important;
}

/* ==========================================================================
   [모바일 공통] CSS 변수 — PC 톤 매핑
   ========================================================================== */
:root {
    /* 브랜드 색상은 theme_vars.css의 --brand-* 를 참조 (자매사이트 이관 시 그쪽 값만 교체하면 됨) */
    --m-primary:    var(--brand-primary,    #00a65a);
    --m-primary-dk: var(--brand-primary-dk, #008549);
    --m-accent:     #a259ff;
    --m-warn:       #e53935;
    --m-shop:       #007bff;
    --m-region:     #ff7e00;
    --m-highlight:  #ffc107;
    --m-text:       #222;
    --m-text-sub:   #888;
    --m-border:     #e5e5e5;
    --m-bg:         #f1f2f6;
    --m-bg-white:   #ffffff;
    --m-radius:     8px;
}

/* ==========================================================================
   리셋
   ========================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
    /* [수정 2026-06-14] 최신 브라우저에서 핀치 줌 강제 차단 */
    touch-action: manipulation;
}
/* 드래그/텍스트 선택 차단 */
body { -webkit-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--m-text);
    background: var(--m-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
img { max-width: 100%; vertical-align: middle; }

/* ==========================================================================
   [Gate] 19금 인증 / 로그인 진입 페이지
   ========================================================================== */
.m-gate {
    background: var(--m-bg);
    min-height: 100vh;
}
.m-gate__wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* 19금 경고 */
.m-gate__warn {
    text-align: center;
    padding: 24px 16px;
    background: var(--m-bg-white);
    border-radius: var(--m-radius);
    margin-bottom: 16px;
}
.m-gate__mark {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border: 6px solid var(--m-warn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--m-warn);
}
.m-gate__warn-title {
    font-size: 14px;
    color: var(--m-text-sub);
    margin: 0 0 8px;
}
.m-gate__warn-text {
    font-size: 13px;
    color: var(--m-text);
    line-height: 1.6;
    margin: 0 0 16px;
}
.m-gate__warn-text strong { color: var(--m-warn); }
.m-gate__back {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* 박스 (비회원/회원) */
.m-gate__box {
    background: var(--m-bg-white);
    border-radius: var(--m-radius);
    padding: 20px 16px;
    margin-bottom: 14px;
}
.m-gate__box-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--m-text);
    text-align: center;
}

/* 핸드폰 인증 버튼 */
.m-gate__btn-phone {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--m-primary);
    color: #fff !important;
    text-align: center;
    border-radius: var(--m-radius);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.m-gate__btn-phone:active { background: var(--m-primary-dk); }

/* 입력 필드 */
.m-gate__input {
    width: 100%;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    margin-bottom: 8px;
    background: #fafafa;
}
.m-gate__input:focus {
    outline: none;
    border-color: var(--m-primary);
    background: #fff;
}

/* 체크박스 */
.m-gate__check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin: 6px 2px 12px;
}
.m-gate__check input { width: 16px; height: 16px; margin: 0; }

/* 로그인 버튼 */
.m-gate__btn-login {
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: var(--m-radius);
    font-size: 15px;
    font-weight: 700;
}
.m-gate__btn-login:active { background: #000; }

/* 서브 링크 */
.m-gate__sub {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #888;
}
.m-gate__sub a { color: #666; padding: 0 6px; }
.m-gate__sub span { color: #ddd; }

/* 안내 문구 */
.m-gate__notice {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.5;
}
.m-gate__notice--warn { color: #888; margin-top: 14px; }
/* ==========================================================================
   [Container] 본문 컨테이너
   ========================================================================== */
.m-container {
    max-width: 768px;
    margin: 0 auto;
    background: var(--m-bg-white);
    min-height: calc(100vh - 250px);
}

/* ==========================================================================
   [Header] 상단 헤더 (좌측 2 + 로고 + 우측 2)
   ========================================================================== */
.m-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 8px;
    background: var(--m-bg-white);
    border-bottom: 1px solid var(--m-border);
}
.m-header__side {
    display: flex; gap: 2px; align-items: center;
    flex-shrink: 0;
    width: 100px;  /* 좌우 동일 너비 → 로고 정중앙 정렬 */
}
.m-header__side--right { justify-content: flex-end; }

.m-header__btn {
    position: relative;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 38px; height: 44px; padding: 0 6px;
    color: var(--m-text); font-size: 10px; line-height: 1.1;
    border: none; background: none; outline: none;  /* 브라우저 기본 button 스타일 제거 */
    border-radius: 4px; cursor: pointer;
}
.m-header__btn:active { background: #f0f0f0; }
.m-header__btn--login {
    border: 1px solid #ddd; background: #fafafa;
    min-width: 56px; height: 32px; flex-direction: row; gap: 3px;
    font-size: 11px;
}
.m-header__btn-icon { font-size: 14px; }
.m-header__btn-text { font-weight: 600; }
.m-header__badge {
    position: absolute; top: 4px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--m-warn); color: #fff;
    border-radius: 8px; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
/* [MP-5] MY/햄버거 안읽음 뱃지 */
.m-header__unread-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: #d23c3c; color: #fff;
    border-radius: 8px; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

.m-header__logo { margin: 0; flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; }
.m-header__logo a {
    display: inline-flex; align-items: center;  /* baseline → center: 로고 수직 중앙 */
    font-size: 22px; font-weight: 900;
    color: var(--m-primary);
    letter-spacing: -0.5px;
}
.m-header__logo-dot {
    font-size: 11px; color: #999; font-weight: 600;
    margin-left: 2px;
}

/* [수정 2026-06-14] 메뉴 바텀시트 (커뮤니티/이력서 열람) */
.m-menusheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 0 0 20px;
}
body.m-menusheet-open .m-menusheet { transform: translateY(0); }
body.m-menusheet-open #m-menu-mask { display: block; }
#m-menu-mask { display: none; }
.m-menusheet__list {
    list-style: none; margin: 0; padding: 8px 0;
}
.m-menusheet__list li a {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    font-size: 15px; font-weight: 600; color: #333;
    text-decoration: none;
}
.m-menusheet__list li a:active { background: #f5f5f5; }
.m-menusheet__icon { font-size: 18px; }

/* ==========================================================================
   [Nav] 네비게이션 (그린 배경 + 노란 강조)
   ========================================================================== */
.m-nav {
    background: var(--m-primary);
    position: sticky; top: 56px; z-index: 99;
}
.m-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.m-nav li {
    flex: 1; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.m-nav li:last-child { border-right: none; }
.m-nav a {
    display: block; padding: 12px 0;
    color: #fff; font-size: 13px; font-weight: 700;
}
.m-nav a:active,
.m-nav li.is-active a {
    background: rgba(0,0,0,0.15);
}
.m-nav em {
    font-style: normal;
    color: var(--m-highlight); /* 노란색 강조 */
    font-weight: 900;
}

/* ==========================================================================
   [Search] 시/도 + 구/군 + 직종 + 검색
   ========================================================================== */
.m-search {
    display: flex; gap: 4px; padding: 8px;
    background: #f7f7f7; border-bottom: 1px solid var(--m-border);
}
.m-search__sel {
    flex: 1; min-width: 0;
    height: 34px; padding: 0 8px;
    border: 1px solid #ccc; border-radius: 4px;
    background: #fff; font-size: 12px; color: #333;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23666' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
}
.m-search__btn {
    width: 54px; height: 34px;
    background: #333; color: #fff;
    border: none; border-radius: 4px;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.m-search__btn:active { background: #000; }

/* ==========================================================================
   [Side] 사이드 메뉴 (햄버거)
   ========================================================================== */
.m-side__mask {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
}
.m-side {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 1001;
    transition: left 0.25s ease;
    display: flex; flex-direction: column;
}
body.m-side-open .m-side__mask { display: block; }
body.m-side-open .m-side { left: 0; box-shadow: 2px 0 8px rgba(0,0,0,0.15); }

.m-side__head {
    background: var(--m-primary); color: #fff;
    padding: 18px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.m-side__nick strong { display: block; font-size: 16px; }
.m-side__lv { font-size: 12px; opacity: 0.85; }
.m-side__login { color: #fff; font-size: 15px; font-weight: 700; }
.m-side__close {
    background: none; border: none; color: #fff; font-size: 28px;
    width: 32px; height: 32px; line-height: 1;
}

.m-side__menu { list-style: none; margin: 0; padding: 8px 0; }
.m-side__menu li { border-bottom: 1px solid #f0f0f0; }
.m-side__menu a { display: block; padding: 14px 18px; font-size: 14px; color: var(--m-text); }
.m-side__menu a:active { background: #f5f5f5; }

/* ==========================================================================
   [Footer] 푸터
   ========================================================================== */
.m-footer {
    padding: 20px 16px 30px;
    background: #f5f5f5; border-top: 1px solid var(--m-border);
    text-align: center;
}
/* 버튼 3개 (PC버전 / 맨위로 / 공지사항) */
.m-footer__btns {
    display: flex; justify-content: center; gap: 0;
    margin-bottom: 16px;
}
.m-footer__btns a {
    display: inline-block; padding: 8px 16px;
    border: 1px solid #ccc; background: #fff;
    font-size: 13px; color: #333; text-decoration: none;
    margin-left: -1px;
}
.m-footer__btns a:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.m-footer__btns a:last-child { border-radius: 0 4px 4px 0; }
/* 고객센터 전화 */
.m-footer__cs {
    font-size: 14px; color: #333; margin-bottom: 6px;
}
.m-footer__cs strong {
    font-size: 16px; font-weight: 700; color: #111;
}
/* 운영시간 */
.m-footer__time {
    font-size: 12px; color: #777; margin: 0 0 8px; line-height: 1.5;
}
/* 1:1 고객문의 링크 */
.m-footer__qna {
    display: inline-block; font-size: 13px; color: #333;
    text-decoration: underline; margin-bottom: 12px;
}
/* 사업자 정보 */
.m-footer__biz {
    font-size: 11px; color: #999; line-height: 1.7; margin-bottom: 8px;
}
/* 저작권 */
.m-footer__copy {
    font-size: 11px; color: #999; margin: 0; line-height: 1.6;
}

/* ==========================================================================
   [Button] 공통 버튼
   ========================================================================== */
.m-btn {
    display: inline-block; padding: 10px 18px;
    border-radius: 6px; font-size: 14px; font-weight: 700;
    text-align: center; border: none; cursor: pointer;
}
.m-btn--primary { background: var(--m-primary); color: #fff !important; }
.m-btn--primary:active { background: var(--m-primary-dk); }
.m-btn--ghost { background: #fff; color: var(--m-text); border: 1px solid #ddd; }
.m-btn--block { display: block; width: 100%; }

/* ==========================================================================
   [List Card] 광고/이력서 카드 리스트 (M3에서 본격 사용)
   ========================================================================== */
.m-list { background: var(--m-bg-white); }
.m-list__total {
    padding: 10px 16px; font-size: 13px; color: #555; font-weight: 700;
    border-bottom: 2px solid var(--m-text);
    text-align: right;
}
.m-list__total em { color: var(--m-warn); font-style: normal; }

.m-card {
    display: flex; gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--m-border);
    background: #fff; cursor: pointer; position: relative;
}
.m-card:active { background: #fafafa; }
.m-card__thumb {
    width: 70px; height: 70px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
}
.m-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-card__subject {
    font-size: 15px; font-weight: 700; color: var(--m-text);
    line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding-right: 24px;
}
.m-card__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; line-height: 1.5; }
.m-card__shop   { color: var(--m-shop); font-weight: 600; margin-right: 6px; }
.m-card__region { color: var(--m-region); font-weight: 600; margin-right: 6px; }
.m-card__cate   { color: #666; }
.m-card__divider { color: #ddd; margin: 0 4px; }
.m-card__pay {
    margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--m-text);
}
.m-card__scrap {
    position: absolute; top: 14px; right: 14px;
    width: 22px; height: 22px; font-size: 18px; color: #ccc;
    background: none; border: none; cursor: pointer; padding: 0;
}
.m-card__scrap.active { color: var(--m-highlight); }

/* ==========================================================================
   [Search-Keyword] 검색 아이콘 클릭 시 펼쳐지는 검색어 입력
   ========================================================================== */
.m-search-kw {
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid var(--m-border);
}
.m-search-kw__form { display: flex; gap: 4px; width: 100%; }
.m-search-kw__input {
    flex: 1; height: 38px; padding: 0 12px;
    border: 1px solid var(--m-primary); border-radius: 6px;
    font-size: 14px; outline: none;
}
.m-search-kw__btn {
    width: 60px; height: 38px;
    background: var(--m-primary); color: #fff;
    border: none; border-radius: 6px;
    font-size: 13px; font-weight: 700;
}

/* ==========================================================================
   wr_23 제목 스타일 (PC jobstyle.css와 동일 — 모바일 리스트/내광고 공통)
   ========================================================================== */
.sample {                                        /* 기본 (여백/둥근모서리) */
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
}

/* 글자색 */
.text-red    { color: #ff2b2b !important; }
.text-pink   { color: #ff4fa2 !important; }
.text-orange { color: #ff8a00 !important; }
.text-yellow { color: #ffd042 !important; }
.text-green  { color: #53b800 !important; }
.text-blue   { color: #1877f2 !important; }
.text-purple { color: #8a39d8 !important; }

/* 형광펜 (배경색) */
.hl-clear  { background: transparent !important; }
.hl-gray   { background: rgba(160,160,160,.45) !important; }
.hl-red    { background: rgba(255,70,70,.35) !important; }
.hl-pink   { background: rgba(255,105,180,.35) !important; }
.hl-orange { background: rgba(255,152,0,.40) !important; }
.hl-yellow { background: rgba(255,235,59,.50) !important; }
.hl-green  { background: rgba(160,255,80,.40) !important; }
.hl-blue   { background: rgba(90,170,255,.35) !important; }
.hl-purple { background: rgba(170,110,255,.35) !important; }

/* 굵게 */
.bold { font-weight: 800; }

/* 깜빡임 */
@keyframes blinkTitle { 0%,49% { opacity:1 } 50%,100% { opacity:0 } }
.blink { animation: blinkTitle 1s steps(1,end) infinite; }

/* 아이콘 이미지 (wr_1 prefix) */
.img-icon-item {
    width: auto !important;
    height: 16px !important;
    max-width: none !important;
    vertical-align: middle !important;
    margin-right: 4px;
}

/* ==========================================================================
   [Bottom Sheet] 내정보 / 로그인 바텀 시트
   ========================================================================== */
.m-bsheet-mask {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.m-bsheet {
    position: fixed;
    bottom: -100%; left: 0; right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1001;
    transition: bottom 0.28s cubic-bezier(.4,0,.2,1);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.m-bsheet-open .m-bsheet-mask { display: block; }
body.m-bsheet-open .m-bsheet      { bottom: 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); }

/* 손잡이 — 터치 영역 넓게 */
.m-bsheet__handle {
    width: 100%; height: 28px;
    background: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.m-bsheet__handle::after {
    content: '';
    width: 40px; height: 4px;
    background: #ddd; border-radius: 2px;
}

/* 헤더 (아바타 + 닉네임 + 등급) */
.m-bsheet__head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px 14px;
    border-bottom: 1px solid var(--m-border);
}
.m-bsheet__avatar {
    width: 46px; height: 46px; flex-shrink: 0;
    background: var(--m-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.m-bsheet__info { flex: 1; min-width: 0; }
.m-bsheet__nick {
    font-size: 16px; font-weight: 700; color: var(--m-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-bsheet__lv { margin-top: 4px; }
.m-bsheet__lv span {
    display: inline-block; padding: 2px 8px;
    background: var(--m-primary); color: #fff;
    border-radius: 10px; font-size: 11px; font-weight: 700;
}
.m-bsheet__lv--plain {
    font-size: 12px; color: var(--m-text-sub); margin-top: 4px;
}

/* 메뉴 리스트 */
.m-bsheet__menu { list-style: none; margin: 0; padding: 6px 0 12px; }
.m-bsheet__menu li { border-bottom: 1px solid #f5f5f5; }
.m-bsheet__menu li:last-child { border-bottom: none; }
.m-bsheet__menu a,
.m-bsheet__menu button {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 15px 20px;
    font-size: 15px; color: var(--m-text);
    background: none; border: none; text-align: left; cursor: pointer;
}
.m-bsheet__menu a:active,
.m-bsheet__menu button:active { background: #f8f8f8; }

/* [MP-6] 위로가기 버튼 — 이미지(/img/mobile/m_top.png) 기반으로 변경 */
.m-go-top {
    display: none; /* JS로 토글 */
    position: fixed; bottom: 24px; right: 16px;
    width: 44px; height: 44px;
    background: none; /* 기존 검은 원형 배경 제거 (이미지가 디자인) */
    border: none; padding: 0;
    z-index: 9000; cursor: pointer;
}
/* 버튼 안 이미지 — 부모 크기에 맞춤 */
.m-go-top img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.m-bsheet__menu-icon { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.m-bsheet__logout { color: var(--m-warn) !important; }
.m-bsheet__admin { color: var(--m-primary) !important; font-weight: 700; }

/* 비로그인 로그인/가입 버튼 영역 */
.m-bsheet__login-area {
    padding: 16px 20px 24px;
    display: flex; flex-direction: column; gap: 10px;
}