/* 구인정보(jobs.html) — 누구나 읽기 쉽게(고령 이용자 포함): 기본 18px, 진한 대비, 누르는 곳 44px 이상, 모바일 먼저. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #15171a;
  --muted: #3d434b;
  --line: #c9ccd1;
  --brand: #0b5d3b;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ea;
  --accent: #8a4b00;
  --warn-bg: #fff4d6;
  --danger: #b00020;
  --focus: #1a56db;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214; --surface: #1a1d21; --text: #f3f4f6; --muted: #cfd3d8; --line: #3b4048;
    --brand: #4fc08d; --brand-ink: #0b1a12; --brand-soft: #16302a; --accent: #ffb85c; --warn-bg: #3a2f12; --danger: #ff6b7d; --focus: #8ab4ff;
  }
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }

.preview-banner { background: var(--danger); color: #fff; padding: 12px 16px; text-align: center; font-size: 1rem; }
.preview-banner b { font-size: 1.1rem; margin-right: 6px; }

/* 머리 */
.jh { background: var(--surface); border-bottom: 2px solid var(--brand); }
.jh-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
.jh-brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--text); min-height: 44px; align-items: center; }
.jh-name { font-weight: 800; font-size: 1.25rem; color: var(--brand); }
.jh-dot { color: var(--muted); }
.jh-sub { font-weight: 700; font-size: 1.2rem; }
.jh-regs { display: grid; gap: 2px; }
.jh-reg { margin: 0; font-size: .95rem; color: var(--muted); }
.arrears { margin: 8px 0; padding: 10px 12px; border-left: 4px solid #b42318; background: rgba(180, 35, 24, .08); border-radius: 6px; }
.arrears a { color: inherit; font-weight: 700; }
[hidden] { display: none !important; }
.jh-reg b { color: var(--text); font-size: 1.05rem; }

main { padding-top: 20px; padding-bottom: 32px; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 8px 0 8px; }
h2 { font-size: 1.3rem; margin: 0 0 12px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 16px; }
.notice { background: var(--warn-bg); border-radius: var(--radius); padding: 14px 16px; }

/* 준비 모드 */
.prep { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin-bottom: 24px; }
.opinfo, .jf-info { margin: 16px 0 0; display: grid; gap: 10px; }
.opinfo div, .jf-info div { display: grid; grid-template-columns: 1fr; gap: 0; }
.opinfo dt, .jf-info dt { font-weight: 700; color: var(--muted); font-size: .95rem; }
.opinfo dd, .jf-info dd { margin: 0; font-size: 1.05rem; }
@media (min-width: 640px) {
  .opinfo div, .jf-info div { grid-template-columns: 220px 1fr; gap: 12px; }
}

/* 검색 */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
.f-row { display: grid; gap: 4px; }
.f-row label { font-weight: 700; }
select, input[type="search"] { font: inherit; font-size: 1.05rem; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); width: 100%; }
.f-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 720px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .f-q { grid-column: span 2; }
  .f-btns { align-items: end; }
}
.btn { font: inherit; font-size: 1.05rem; font-weight: 700; min-height: 48px; min-width: 44px; padding: 8px 20px; border-radius: 10px; border: 2px solid var(--brand); background: var(--surface); color: var(--brand); cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.result { font-weight: 700; margin: 4px 0 12px; }

/* 공고 카드 */
.jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.job { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 16px; }
.job.api { border-left-color: var(--accent); }
.job-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.src-direct { color: var(--brand); background: var(--brand-soft); }
.src-api { color: var(--accent); }
.badge.syn { color: var(--danger); }
.job h3 { font-size: 1.25rem; margin: 4px 0 2px; line-height: 1.4; }
.job .co { font-weight: 700; margin: 0 0 8px; }
.kv { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 10px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; }
.wage b { font-size: 1.15rem; }
.wage .hr { display: block; color: var(--muted); font-size: .95rem; }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.tel { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.tel::before { content: "☎"; margin-right: 8px; }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--brand); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "▸"; margin-right: 8px; }
details.more[open] summary::before { content: "▾"; }
.desc { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
.src-link { display: inline-flex; min-height: 44px; align-items: center; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 20px 0; font-weight: 700; }

/* 안내 */
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 28px; }
.steps { padding-left: 1.4em; margin: 0 0 12px; }
.steps li { margin-bottom: 6px; }
.facts { padding-left: 1.2em; margin: 0; }
.facts li { margin-bottom: 8px; }

/* 하단 */
.jf { background: var(--surface); border-top: 2px solid var(--line); padding: 20px 0 32px; font-size: .95rem; }
.jf-reg { font-size: 1.1rem; margin: 0 0 8px; padding: 10px 14px; border: 2px solid var(--brand); border-radius: 10px; display: inline-block; }
.jf-reg b { font-size: 1.2rem; }
.jf-note { color: var(--muted); margin: 14px 0 0; }

@media print { .filters, .pager, .preview-banner { display: none !important; } }

.my-prefs { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; }
.my-prefs .linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

/* 내 동네·관심 공고·지도 (js/jobs/fav-map.js) */
.f-near { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.f-near label { width: 100%; }
.f-near select { flex: 1 1 220px; }
.f-near .hint { width: 100%; margin: 0; font-size: .9rem; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.acts .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1rem; }
.acts .apply { flex: 1 1 100%; font-size: 1.1rem; font-weight: 800; }
.acts .fav.on { background: var(--brand-soft); border-color: var(--brand); color: var(--text); font-weight: 700; }
.badge.dist { background: var(--brand-soft); color: var(--text); font-weight: 700; }
.badge.co-fav { border: 2px solid var(--brand); color: var(--brand); font-weight: 700; }
.fav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 8px; }
.fav-bar .btn { min-height: 48px; font-size: 1.05rem; }
.fav-bar b { color: var(--brand); }
.fav-panel { background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 16px; margin: 8px 0 20px; }
.fav-panel h2 { margin-bottom: 4px; }
.fav-panel > .btn.primary { width: 100%; min-height: 56px; font-size: 1.15rem; margin: 8px 0; }
.map-box { width: 100%; height: 62vh; min-height: 340px; border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0 12px; }
.map-tag { font: inherit; font-size: 15px; font-weight: 800; background: #fff; color: #15171a; border: 2px solid #0b5d3b; border-radius: 999px; padding: 4px 10px; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.map-tag.approx { border-style: dashed; }
.map-tag.on { background: #0b5d3b; color: #fff; }
.map-me { font-size: 14px; font-weight: 800; background: #1a56db; color: #fff; border-radius: 999px; padding: 4px 10px; box-shadow: 0 0 0 6px rgba(26,86,219,.25); }
.fav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fav-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: background .3s; }
.fav-item.hit { background: var(--brand-soft); }
.fav-t { margin: 0; font-size: 1.1rem; }
.co-new b { color: var(--brand); }
.near-typed { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.near-typed input { flex: 1 1 220px; min-height: 48px; font-size: 1rem; }
.grp { margin: 6px 0 0; padding-left: 18px; }
.grp li { margin: 4px 0; }
