/* theme.css : 포털형 스타일 레이어 (연한 회색 바탕 + 흰 카드 + 보라 포인트, 촘촘한 목록)
 * 항상 다른 CSS 뒤에 불러와서 모양만 덮어씁니다.
 * 색은 base.css 맨 위 변수(--accent 등)를 바꾸면 사이트 전체에 같이 적용돼요.
 */

::selection { background: var(--accent); color: #fff; }
body { background: var(--bg); font-size: 15px; }

/* ───────── 헤더 (2단: 로고·검색·바로가기 / 메뉴) ───────── */
.gnb { background: var(--card); border-bottom: 1px solid var(--line); }
.gnb .gnb-top { height: 68px; gap: 28px; }
.logo { font-weight: 800; font-size: 22px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); }
.gnb-search { flex: 0 1 360px; position: relative; margin-right: auto; }
.gnb-search input { width: 100%; height: 44px; padding: 0 46px 0 16px; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); font-size: 15px; outline: 0; -webkit-appearance: none; appearance: none; }
.gnb-search input:focus { border-color: var(--accent); }
.gnb-search input::placeholder { color: var(--fg-mute); }
.gnb-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--fg); }
.gnb-search button:hover { background: var(--bg-soft); color: var(--accent); }

.util { gap: 18px; font-weight: 500; font-size: 14px; color: var(--fg-sub); }
.util a, .util .logout-form button { color: var(--fg-sub); font-weight: 500; font-size: 14px; }
.util a:hover, .util .logout-form button:hover { color: var(--accent); }
.util .sep { height: 10px; }
.util .who { background: none; padding: 0; color: var(--fg); font-weight: 700; }
.util .join { background: none; border: 0; box-shadow: none; padding: 0; color: var(--fg-sub); border-radius: 0; }
.util .logout-form .join { background: none; box-shadow: none; color: var(--fg-sub); }
.util .cm-chat-link { position: relative; display: inline-flex; align-items: center; width: auto; height: auto; padding-right: 2px; }
.cm-badge { position: static; margin-left: 4px; min-width: 18px; height: 18px; background: var(--danger); border: 0; }

.gnb-nav { border-top: 0; }
.gnb .gnb-nav .wrap { height: 52px; gap: 0; }
.menu { gap: 28px; margin-right: auto; font-size: 16px; }
.menu a { padding: 14px 0; border: 0; border-radius: 0; font-weight: 700; color: var(--fg); background: none; transform: none; box-shadow: none; }
.menu a:hover { color: var(--accent); background: none; transform: none; }
.menu a.on { color: var(--accent); background: none; box-shadow: inset 0 -3px 0 var(--accent); border: 0; }
.nav-cta { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.nav-cta:hover { text-decoration: underline; }
.menu-m { border-top: 1px solid var(--line); }
.menu-m a { background: var(--bg-soft); border: 0; color: var(--fg-sub); }
.menu-m a.on { background: var(--accent); color: #fff; }

.site-footer { margin-top: 24px; background: var(--card); border-top: 1px solid var(--line); color: var(--fg-mute); }
.quick { background: #2b2d33; color: #fff; border: 0; }

/* ───────── 버튼 · 입력칸 (평평하고 깔끔하게) ───────── */
.cm-btn, .search .go, .au-btn, .detail-foot .apply, .stub .back, .post {
  border: 0; box-shadow: none; border-radius: 10px; font-weight: 700;
  transition: background .15s, transform .1s;
}
.cm-btn { height: 46px; }
.cm-btn.sm { height: 34px; border-radius: 9px; }
.cm-btn:hover, .search .go:hover, .au-btn:hover, .detail-foot .apply:hover, .stub .back:hover { transform: none; box-shadow: none; }
.cm-btn:active, .search .go:active, .au-btn:active, .detail-foot .apply:active { transform: scale(.98); box-shadow: none; }
.cm-btn.ghost, .au-btn.ghost, .post, .au-side, .detail-btn { background: var(--accent-weak); color: var(--accent); border: 0; box-shadow: none; }
.cm-btn.ghost:hover, .au-btn.ghost:hover, .post:hover, .au-side:hover:not(:disabled), .detail-btn:hover { background: var(--accent-weak); color: var(--accent-press); filter: brightness(.97); transform: none; box-shadow: none; }
.cm-btn.danger { background: var(--pink); color: var(--danger); }
.cm-btn:disabled, .au-btn:disabled { background: var(--bg-soft); color: var(--fg-mute); border: 0; }
.au-side { font-weight: 700; border-radius: 12px; }

.au-field input[type="text"], .au-field input[type="email"], .au-field input[type="password"], .au-field input[type="tel"], .au-select select,
.cm-field input[type="text"], .cm-field input[type="email"], .cm-field input[type="password"], .cm-field input[type="tel"],
.cm-field input[type="number"], .cm-field input[type="date"], .cm-field select, .cm-field textarea, .cm-search input, .cm-cform textarea, .cm-send textarea, .pay-field {
  background: var(--card); border: 1px solid var(--edge); border-radius: 12px; box-shadow: none;
}
.au-field input:focus, .au-select select:focus, .cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus, .cm-search input:focus, .cm-cform textarea:focus, .cm-send textarea:focus, .pay-field:focus-within {
  border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px var(--accent-weak);
}
.au-field input[readonly] { background: var(--bg-soft); }
.au-field.bad input, .au-field.bad select, .cm-field.bad input, .cm-field.bad select, .cm-field.bad textarea { border-color: var(--danger); box-shadow: 0 0 0 3px var(--pink); }
.au-steps li { border-top-width: 4px; }
.au-notice, .cm-flash { border: 0; box-shadow: none; border-radius: 12px; }
.au-notice { background: var(--accent-weak); color: var(--accent); }
.cm-flash.ok { background: var(--accent-weak); color: var(--accent); }
.cm-flash.bad { background: var(--pink); color: var(--danger); }
.au-box { border-color: var(--edge); }
.au-check { border: 0; box-shadow: none; background: var(--accent); }
.au-check svg path { stroke: #fff !important; }
.au-sns { border: 0; box-shadow: none; font-weight: 700; }
.au-sns:hover { transform: none; box-shadow: none; filter: brightness(.96); }

/* 로그인/가입 카드 */
.au-card { background: var(--card); border-radius: 18px; padding: 36px 32px; }
.au { align-items: flex-start; }

/* ───────── 메인 ───────── */
.hero { padding-block: 28px 20px; }
.hero::before, .hero::after { content: none; }
.kicker { margin: 0 0 6px; }
.hero .kicker span { background: none; border: 0; box-shadow: none; transform: none; padding: 0; color: var(--accent); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { background: none; color: var(--accent); padding: 0; }
.search-row { margin-top: 18px; gap: 12px; }
.search { height: 60px; padding: 8px 8px 8px 20px; border: 1px solid var(--edge); border-radius: 14px; box-shadow: none; background: var(--card); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.search input[type="text"] { font-size: 16px; }
.search .go { padding: 0 32px; border-radius: 10px; font-size: 16px; background: var(--accent); }
.search .go:hover { background: var(--accent-press); }
.post { width: 140px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 15px; }
.post:hover { background: var(--accent-press); color: #fff; filter: none; }
.post svg circle { fill: #fff; } .post svg path { stroke: var(--accent); }
.chips { margin-top: 12px; }
.chip { background: var(--card); border: 1px solid var(--line); font-weight: 500; font-size: 13px; padding: 6px 12px; }
.chip:hover { background: var(--accent-weak); color: var(--accent); border-color: var(--accent-weak); transform: none; }

.tile, .ph { border: 0; border-radius: 14px; }
a.tile { box-shadow: none; transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: none; }
.ph { border: 1px dashed var(--edge); background: var(--card); }
.tile > .ph, .tile .ph { border: 0; border-radius: 0; }
.tile-badge { background: rgba(28,30,33,.78); color: #fff; border: 0; border-radius: 6px; font-weight: 800; }

.filters { background: var(--card); border-radius: 14px; padding: 16px 20px 14px; margin-top: 4px; }
.region { font-weight: 600; font-size: 13px; }
.region .thumb { width: 52px; height: 52px; border-radius: 16px; background: var(--bg-soft) !important; border: 0; box-shadow: none; color: var(--fg-sub); font-weight: 800; }
.region:hover .thumb { transform: translateY(-2px); box-shadow: none; background: var(--accent-weak) !important; color: var(--accent); }
.region.on { color: var(--accent); }
.region.on .thumb { background: var(--accent) !important; color: #fff; box-shadow: none; }
.region.on > span { text-decoration: none; }
.detail-btn { box-shadow: none; border-radius: 10px; }
.detail-btn .count { border: 0; }
.summary b { background: none; color: var(--accent); padding: 0; }
dialog.detail { border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.opt span { background: var(--bg-soft); border: 0; font-weight: 600; }
.opt span:hover { transform: none; }
.opt input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.detail-foot { border-top: 1px solid var(--line); }
.detail-foot .reset { background: var(--bg-soft); border: 0; }
.dual-track { border: 0; }
.dual input[type="range"]::-webkit-slider-thumb { background: var(--card); border: 3px solid var(--accent); }
.dual input[type="range"]::-moz-range-thumb { background: var(--card); border: 3px solid var(--accent); }

.band.soft { background: transparent; border: 0; }
.carousel { border: 0; border-radius: 14px; box-shadow: none; }
.s1 { background: var(--accent); color: #fff; } .s1 .cta { background: #fff; color: var(--accent); border: 0; }
.s2 { background: #25272d; color: #fff; } .s2 .cta { background: #fff; color: #25272d; }
.s3 { background: #e7eaff; color: #1c1e21; } .s3 .tag { background: #fff; color: var(--accent); border: 0; } .s3 .cta { background: var(--accent); color: #fff; }
.slide h2 { font-weight: 800; }
.slide .cta { border-radius: 10px; font-weight: 700; }
.slide .cta:hover { transform: none; }
.ctrl { background: rgba(0,0,0,.4); }
.guide { border: 0; box-shadow: none; border-radius: 14px; }
.guide .q { background: var(--accent); color: #fff; border: 0; }
.guide a { background: var(--bg-soft); border: 0; }
.guide a:hover { background: var(--accent-weak); color: var(--accent); }

/* ───────── 섹션 제목 + 촘촘한 공고 목록 ───────── */
.sec-head { margin-bottom: 10px; }
.sec-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; display: block; }
.top .sec-head h2::before, .feed-sec .sec-head h2::before { content: none; }
.sec-head .sub { font-size: 13px; }
.top { padding-block: 28px 0; }
.feed-sec { padding-block: 32px 64px; }

.list { display: block; background: var(--card); border-radius: 14px; padding: 6px 22px; }
.job { background: none; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 16px 0; gap: 18px; grid-template-columns: 96px minmax(0, 1fr) auto 64px; }
.list > .job:last-child { border-bottom: 0; }
.job:hover { background: none; transform: none; box-shadow: none; }
.job:hover h3 { color: var(--accent); }
.job:active { transform: none; box-shadow: none; }
.job-thumb { border: 0; border-radius: 10px; background: var(--bg-soft); }
.job:hover .job-thumb { background: var(--bg-soft); }
.job .job-thumb:empty::after { content: none; }
.job-thumb .rank { left: 0; top: 0; border: 0; border-radius: 10px 0 10px 0; background: var(--fg-sub); color: #fff; font-weight: 800; }
.job.top3 .job-thumb .rank { background: var(--accent); color: #fff; }
.job h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.pay { color: var(--fg); font-weight: 800; font-size: 17px; }
.pay small { color: var(--fg-mute); }
.badge { background: var(--accent-weak); color: var(--accent); border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.badge.soft { background: var(--bg-soft); color: var(--fg-sub); }
.job:hover .badge.soft { background: var(--bg-soft); }
.badge.hot { background: var(--pink); color: var(--danger); }
.badge.lv-special { background: #fff1d6; color: #b45d00; }
.badge.lv-premium { background: var(--accent); color: #fff; }
.dday { min-width: 0; padding: 0; background: none; border-radius: 0; color: var(--fg-sub); font-weight: 700; font-size: 14px; text-align: right; }
.dday.soon { background: none; color: var(--danger); }
.feed-status button { background: var(--card); border: 1px solid var(--edge); box-shadow: none; font-weight: 700; }
.feed-status button:hover { background: var(--accent-weak); color: var(--accent); }
.empty { border: 0; border-radius: 14px; background: var(--card); margin-block: 12px; }

/* ───────── 톡톡 · 채팅 · 친구 · 마이페이지 · 구인글 ───────── */
.cm-title { font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.cm-sub { font-size: 14px; }
.cm-tabs { gap: 20px; border-bottom: 0; margin-bottom: 12px; }
.cm-tabs a { padding: 6px 0; border: 0; border-radius: 0; background: none; color: var(--fg-mute); font-size: 16px; font-weight: 700; transform: none; box-shadow: none; }
.cm-tabs a:hover { background: none; color: var(--fg); transform: none; }
.cm-tabs a.on { background: none; color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); }
.cm-search input { height: 44px; }

/* 카드 */
.cm-box, .cm-profile.compact, .cm-post, .cm-job, .cm-comments, .cm-author, .cm-page.narrow .cm-form, .cm-table, .cm-list, .cm-people.page {
  background: var(--card); border: 0; border-radius: 14px; box-shadow: none;
}
.cm-box { padding: 20px 22px; }
.cm-box h2 { font-weight: 800; font-size: 16px; }
.cm-post, .cm-job, .cm-comments { padding: 26px 28px; }
.cm-comments { margin-top: 12px; }
.cm-page.narrow .cm-form { padding: 28px; margin-top: 12px; }
.cm-page.narrow .cm-profile:not(.compact) { background: var(--card); border-radius: 14px; padding: 24px; }
.cm-profile.compact { padding: 18px 22px; margin-bottom: 12px; }
.cm-author { margin-top: 12px; }
.cm-gallery { margin-bottom: 12px; border-radius: 14px; }
.cm-gallery a { border: 0; border-radius: 14px; box-shadow: none; }

/* 글 목록은 한 장의 카드 안에 줄로 */
.cm-list { padding: 4px 22px; }
.cm-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; padding: 16px 0; margin: 0; transition: none; }
.cm-list > .cm-item:last-child { border-bottom: 0; }
.cm-item:hover { transform: none; box-shadow: none; }
.cm-item-t { font-weight: 700; font-size: 16px; }
.cm-item-main:hover .cm-item-t { color: var(--accent); }
.cm-cc { color: var(--accent); }
.cm-cat { background: var(--accent-weak); color: var(--accent); border: 0; border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.cm-person { border-bottom: 1px solid var(--line); }
.cm-av { border: 0; }
.cm-av.ph { background: var(--accent-weak); color: var(--accent); }
.cm-person:nth-child(3n+2) .cm-av.ph, .cm-person:nth-child(3n+3) .cm-av.ph { background: var(--accent-weak); }
.cm-pager a { background: var(--card); border: 1px solid var(--edge); border-radius: 50%; min-width: 34px; height: 34px; padding: 0; font-weight: 600; }
.cm-pager a.on { background: var(--card); border-color: var(--fg); color: var(--fg); font-weight: 800; box-shadow: none; }
.cm-pager a[href]:first-child:not(.on), .cm-pager a:last-child:not(.on) { padding: 0 12px; border-radius: 17px; }
.cm-content blockquote { border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.cm-content img, .cm-area img { border: 0; }
.cm-comments li { border-top: 1px solid var(--line); }
.cm-fs legend { font-weight: 800; font-size: 18px; }
.cm-level { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; }
.cm-level:has(input:checked) { background: var(--accent-weak); border-color: var(--accent); color: var(--fg); box-shadow: none; }
.cm-level:has(input:checked) .lv-d { color: var(--fg-sub); opacity: 1; }
.cm-chip span { background: var(--bg-soft); border: 0; font-weight: 600; }
.cm-chip span:hover { transform: none; }
.cm-chip input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.cm-editor { border: 1px solid var(--edge); border-radius: 14px; box-shadow: none; }
.cm-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.cm-toolbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.cm-toolbar button { color: var(--fg-sub); }
.cm-toolbar button:hover { background: var(--card); color: var(--accent); }
.cm-toolbar .sp { background: var(--edge); opacity: 1; }
.cm-thumbs img { border: 0; }
.cm-job-pay { color: var(--accent); font-weight: 800; font-size: 26px; }
.cm-oneliner { background: none; padding: 0; font-weight: 500; display: block; }
.cm-job header h1, .cm-post header h1 { font-weight: 800; }
.cm-dl { border-top: 1px solid var(--line); }
.cm-dl > div { border-bottom: 1px solid var(--line); }
.cm-dl dt { color: var(--fg-mute); font-weight: 600; }
.cm-job-badges .badge { border: 0; }

.cm-chat { background: var(--card); border: 0; border-radius: 14px; box-shadow: none; }
.cm-rooms, .cm-rooms h1, .cm-conv-h, .cm-send { border-width: 1px; border-color: var(--line); }
.cm-rooms h1 { font-weight: 800; }
.cm-rooms li a:hover, .cm-rooms li.on a { background: var(--bg-soft); }
.cm-msgs { background: #f7f8fa; background-image: none; }
.cm-msg-row .bubble { border: 0; background: var(--card); box-shadow: none; }
.cm-msg-row.mine .bubble { background: var(--accent); color: #fff; }
.cm-table { padding: 4px 22px; }
.cm-table li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; margin: 0; padding: 14px 0; }
.cm-table li:last-child { border-bottom: 0; }

.stub h1, .au-title { font-weight: 800; letter-spacing: -0.04em; }
.stub .kicker { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) { .gnb-search { flex-basis: 220px; } }
@media (max-width: 760px) {
  .gnb .gnb-top { height: 56px; gap: 10px; }
  .gnb-search { display: none; }
  .gnb-nav { display: none; }
  .util { margin-left: auto; gap: 12px; }
  .hero h1 { font-size: 24px; }
  .hero { padding-block: 20px 14px; }
  .search { height: auto; padding: 0; border: 0; background: none; box-shadow: none; }
  .search:focus-within { box-shadow: none; }
  .search input[type="text"] { border: 1px solid var(--edge) !important; box-shadow: none !important; background: var(--card); border-radius: 12px !important; }
  .search input[type="text"]:focus { border-color: var(--accent) !important; }
  .search .go { box-shadow: none; }
  .post { box-shadow: none; }
  .filters { padding: 12px 14px 10px; }
  .list { padding: 2px 14px; }
  .job { padding: 14px 0; }
  .cm-post, .cm-job, .cm-comments, .cm-page.narrow .cm-form { padding: 20px 18px; }
  .au-card { padding: 28px 20px; }
  .cm-title { font-size: 22px; }
  .sec-head h2 { font-size: 18px; }
}

/* 모바일 공고 한 줄: 사진 왼쪽, 내용 위, 급여·마감 아래 (list.css 의 모바일 배치를 다시 지정) */
@media (max-width: 720px) {
  .job { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb pay dday"; align-items: start; gap: 6px 14px; }
  .job-thumb { aspect-ratio: 1; }
  .job h3 { font-size: 16px; margin-bottom: 4px; }
  .pay { text-align: left; font-size: 16px; align-self: end; }
  .pay small { display: inline; margin-left: 6px; }
  .dday { align-self: end; }
}
