/* 마감한다 채용 — 공공기관 건설 분야 채용공고(목록·캘린더·기관·상세)
   색·글꼴·모서리·그림자 값은 CBT(/cbt/styles.css)와 같은 값을 그대로 옮겨 씀. CBT 값을 바꾸면 여기도 같이 맞춘다.
   상단 전환 버튼(CBT·전자책·채용)과 로그인 버튼은 공용 부품 common/site-header.css, 하단은 common/site-footer.css. */
@font-face { font-family: "NexonLv1Gothic"; font-weight: 400; font-display: swap; src: url("/fonts/NexonLv1Gothic-Regular.woff") format("woff"); }
@font-face { font-family: "NexonLv1Gothic"; font-weight: 700; font-display: swap; src: url("/fonts/NexonLv1Gothic-Bold.woff") format("woff"); }

:root {
  /* 글자 크기 단계 (CBT·메인과 같은 값) */
  --fs-section: clamp(1.8rem, 3.2vw, 2.5rem);
  --fs-sub: 1.3rem; --fs-card: 1.02rem; --fs-body: 0.98rem; --fs-text: 0.96rem;
  --fs-btn: 1rem; --fs-btn-s: 0.86rem; --fs-label: 0.82rem; --fs-tag: 0.76rem;
  /* 글자 */
  --text: #1f2a37; --text-2: #4b5563; --text-3: #6b7280;
  /* 브랜드 */
  --primary: #b93f0c; --primary-soft: rgba(255, 138, 61, .16);   /* 글자·테두리에 쓰는 진한 주황 */
  --fill: #ff8a3d; --fill-hover: #f97316; --on-fill: #1f2a37;
  --btn-bg: #ffe8d4; --btn-bg-hover: #ffdcc0; --btn-bg-press: #ffd0ab; --btn-ink: #9a3412;   /* 버튼(연한 주황 채움) */   /* 채운 면(버튼·오늘 날짜)과 그 위 글자 */
  --soft: #ffedd5; --soft-hover: #fed7aa; --soft-ink: #9a3412;
  /* 접수 마감 표시: 주색이 주황이라 마감은 빨강으로 구분 */
  --due: #ef4444; --due-ink: #b91c1c; --due-rgb: 239 68 68; --due-bg: #ffecea;
  /* 캘린더 일정 종류: 접수 시작(파랑) · 필기시험(노랑) · 면접(보라) */
  --start: #2563eb; --start-ink: #1d4ed8; --start-bg: #eaf1ff; --exam: #f59e0b; --exam-ink: #92400e; --exam-bg: #fff1cf; --iv: #7c3aed; --iv-ink: #6d28d9; --iv-bg: #f1eaff;
  /* 면 */
  --white: #fff; --paper: #ffffff;   /* 바탕: 흰색 (예전 종이색 #fbf6ee) */
  --glass: #ffffff; --glass-strong: #ffffff; --glass-weak: #f7f8fa;
  --glass-line: rgba(31, 42, 55, .1); --hair: rgba(31, 42, 55, .08);
  --blur: saturate(160%) blur(18px);
  --shadow: 0 1px 3px rgba(31, 42, 55, .04), 0 4px 14px rgba(31, 42, 55, .04);
  /* 색 채널 */
  --ink-rgb: 31 42 55; --paper-rgb: 255 255 255; --accent-rgb: 234 88 12; --accent-deep-rgb: 194 65 12;
  --soft-rgb: 255 237 213;
  /* 달력 요일 색 (일요일·토요일) */
  --sun: #b91c1c; --sat: #1d4ed8;
  /* 모서리·움직임 */
  --r-s: 10px; --r-m: 16px; --r-l: 22px; --r-pill: 999px;
  --ease-out: cubic-bezier(.2, .7, .2, 1); --dur-fast: .15s; --dur: .2s;
  --font-display: NexonLv1Gothic, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ui: NanumSquare, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text); font-family: var(--font-ui); font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
  background-color: var(--paper); min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  word-break: keep-all; overflow-wrap: break-word;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / .55); outline-offset: 2px; }
/* 화면을 바꿀 때 읽기 프로그램이 새 내용을 읽도록 본문(#app)으로 초점을 옮기는데, 그 테두리(주황 선)는 그리지 않는다 */
#app:focus, #app:focus-visible { outline: none; }
::selection { background: rgb(var(--soft-rgb)); color: var(--text); }
main { max-width: 1080px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); outline: none; min-height: 60vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- 상단바 · 메뉴 (CBT와 같은 모양) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right), calc((100% - 1080px) / 2 + 16px)) 10px max(16px, env(safe-area-inset-left), calc((100% - 1080px) / 2 + 16px));
  background: rgb(var(--paper-rgb) / .85); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--glass-line); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo-img { display: block; height: 30px; width: auto; }
.topbar .spacer { flex: 1; }
@media (max-width: 1239px) { .topbar .spacer ~ .spacer { display: none; } }  /* 가운데 메뉴가 없는 폭에서는 빈칸 하나면 충분 (간격 한 번만큼 자리가 남음) */
@media (max-width: 560px) { .topbar { gap: 8px; } .logo-img { height: 24px; } }
@media (max-width: 380px) { .topbar { gap: 6px; padding-left: 12px; padding-right: 12px; } .logo-img { height: 22px; } }  /* 아주 좁은 폰: 로그인한 뒤에도 한 줄에 들어가게 */
.subnav { display: none; grid-template-columns: repeat(3, auto); gap: 2px; padding: 3px; border-radius: var(--r-pill); background: rgb(var(--soft-rgb) / .45); border: 1px solid rgb(var(--accent-deep-rgb) / .12); flex: none; }
.subnav a { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; color: var(--text-2); transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.subnav a:hover { color: var(--text); }
.subnav a.on { background: var(--white); color: var(--soft-ink); font-weight: 800; box-shadow: 0 1px 6px rgb(var(--accent-deep-rgb) / .16); }
.tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex; border-radius: var(--r-l); padding: 4px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 11.5px; padding: 7px 0 6px; color: var(--text-2); border-radius: var(--r-m); min-height: 48px; justify-content: center; }
.tabbar a.on { color: var(--primary); font-weight: 700; background: var(--glass-strong); }
/* 폰보다 넓은 화면(761px~): 아래 탭 대신 위쪽 메뉴를 보여 준다. 1240px 이상에서는 가운데에 고정 */
@media (min-width: 761px) and (max-width: 1239px) {
  .subnav { display: inline-grid; }
  .subnav a { min-width: 0; padding: 0 12px; }
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  /* 로그인한 뒤에는 오른쪽이 길어져서, 문의하기와 이름은 숨기고 마이페이지·로그아웃만 */
  .mh-widgets:has(.mh-user) .mh-chat, .mh-user .mh-name { display: none; }
}
@media (min-width: 1240px) {
  .subnav { display: inline-grid; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}
.mh-footer .mh-footer-inner { max-width: 1048px; }

/* ---------- 공통 ---------- */
.head { padding: 20px 0 20px; }
h1 { font-size: var(--fs-section); font-weight: 800; line-height: 1.3; margin: 0 0 12px; letter-spacing: -0.6px; text-wrap: balance; }
h2 { font-size: var(--fs-sub); font-weight: 800; margin: 30px 0 12px; letter-spacing: -0.4px; line-height: 1.35; }
.sub { color: var(--text-2); margin: 0; font-size: var(--fs-body); line-height: 1.6; }
/* 제목 아래 숫자 꼬리표 (지금 접수 중 · 7일 안에 마감) */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stats span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: rgb(var(--ink-rgb) / .05); font-size: var(--fs-label); font-weight: 700; color: var(--text-2); }
.stats b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.stats .hot b { color: var(--due-ink); }
.sub b, .num { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
/* 버튼: 옅은 살구색 바탕에 진한 주황 글자, 둥근 네모, 그림자 없음 (가볍게) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; cursor: pointer; min-height: 46px;
  border-radius: 12px; padding: 10px 20px; font-size: var(--fs-btn); font-weight: 700; text-decoration: none; color: var(--btn-ink);
  background: var(--btn-bg); transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { background: var(--btn-bg-press); }
.btn.ghost { color: var(--text-2); background: rgb(var(--ink-rgb) / .05); }
.btn.ghost:hover { color: var(--text); background: rgb(var(--ink-rgb) / .09); }
.btn.small { min-height: 36px; padding: 6px 14px; border-radius: 10px; font-size: var(--fs-btn-s); }
.ext { flex: none; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--text-2); font-size: var(--fs-btn-s); margin-top: 10px; min-height: 36px; }
.back:hover { color: var(--text); }
.empty { text-align: center; color: var(--text-2); padding: 44px 16px; border-radius: var(--r-m); background: var(--glass-weak); border: 1px dashed rgb(var(--ink-rgb) / .16); }
.empty b { display: block; color: var(--text); font-size: var(--fs-card); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.src { margin: 34px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: var(--fs-label); color: var(--text-2); line-height: 1.7; }
.src a { text-underline-offset: 3px; }

/* ---------- 검색 · 고르기 ---------- */
.search { position: relative; display: flex; align-items: center; }
.search input { width: 100%; min-height: 50px; padding: 0 48px 0 46px; border-radius: var(--r-pill); border: 1px solid rgb(var(--ink-rgb) / .14); background: var(--white); box-shadow: var(--shadow); font-size: 1rem; transition: border-color var(--dur) var(--ease-out); }
.search input::placeholder { color: var(--text-3); }
.search input:hover { border-color: rgb(var(--accent-rgb) / .4); }
.search input:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / .45); outline-offset: 1px; border-color: var(--primary); }
.search input::-webkit-search-cancel-button { display: none; }
.search > svg { position: absolute; left: 17px; color: var(--text-2); pointer-events: none; }
.search .clear { position: absolute; right: 7px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.search .clear[hidden] { display: none; }
.search .clear:hover { background: rgb(var(--ink-rgb) / .06); color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.seg { display: inline-flex; border-radius: var(--r-pill); padding: 4px; background: var(--glass); border: 1px solid var(--glass-line); }
.seg button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer; font-size: var(--fs-btn-s); font-weight: 700; color: var(--text-2); min-height: 34px; white-space: nowrap; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--primary); font-weight: 800; box-shadow: 0 2px 8px rgb(var(--ink-rgb) / .08); }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--glass-line); background: var(--glass); color: var(--text-2); font-size: var(--fs-btn-s); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.fchip:hover { color: var(--text); border-color: rgb(var(--accent-rgb) / .35); }
.fchip[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); border-color: rgb(var(--accent-rgb) / .32); font-weight: 800; }
.sel { min-height: 40px; padding: 0 34px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--glass-line); background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234b5563' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--text-2); font-size: var(--fs-btn-s); font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sel:hover { border-color: rgb(var(--accent-rgb) / .35); color: var(--text); }
.sel.set { background-color: var(--primary-soft); color: var(--primary); border-color: rgb(var(--accent-rgb) / .32); }
@media (pointer: coarse) { .fchip, .sel { min-height: 44px; } .seg button { min-height: 38px; } }
.count { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 40px; margin: 14px 0 8px; font-size: var(--fs-label); color: var(--text-2); }
.count button { border: 0; background: none; margin-left: 12px; padding: 8px 0; color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 검색어에 맞는 기관 바로가기 */
.org-hits { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.org-hits > span { font-size: var(--fs-label); font-weight: 800; color: var(--text-2); }
.org-hit { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px 6px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-btn-s); font-weight: 800; color: var(--soft-ink); background: var(--soft); transition: background var(--dur) var(--ease-out); }
.org-hit:hover { background: var(--soft-hover); }
.org-hit small { font-size: var(--fs-tag); font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); background: rgb(255 255 255 / .75); font-variant-numeric: tabular-nums; }

/* ---------- 공고 한 줄 ---------- */
.posts { display: grid; gap: 10px; }
.post { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-radius: var(--r-m); text-decoration: none; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.post:hover { border-color: rgb(var(--accent-rgb) / .38); background: var(--glass-strong); }
/* 기관 로고 상자 (없는 기관은 첫 글자) */
.lg { flex: none; width: 76px; height: 46px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--white); overflow: hidden; }
.lg img { max-width: 64px; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.lg-txt { border-color: transparent; background: var(--btn-bg); color: var(--btn-ink); font-size: 1.2rem; font-weight: 800; }
.lg-big { width: 96px; height: 58px; } .lg-big img { max-width: 80px; max-height: 40px; } .lg-big.lg-txt { font-size: 1.5rem; }
.lg-sm { display: inline-grid; width: 56px; height: 34px; margin-right: 8px; vertical-align: middle; } .lg-sm img { max-width: 46px; max-height: 24px; } .lg-sm.lg-txt { font-size: 1rem; }
@media (max-width: 560px) { .post .lg, .org-row .lg { width: 52px; height: 36px; } .post .lg img, .org-row .lg img { max-width: 42px; max-height: 24px; } .post .lg-txt, .org-row .lg-txt { font-size: 1rem; } }
.post-main { display: grid; gap: 3px; min-width: 0; margin-right: auto; }
.post-org { font-size: var(--fs-label); font-weight: 800; color: var(--primary); }
.tag-l { font-style: normal; margin-left: 7px; padding: 1px 7px; border-radius: 6px; font-size: var(--fs-tag); font-weight: 700; color: var(--text-2); background: rgb(var(--ink-rgb) / .07); }
.post-title { font-weight: 800; font-size: var(--fs-card); line-height: 1.45; }
.post-meta { font-size: var(--fs-label); color: var(--text-2); }
.post-due { flex: none; display: grid; justify-items: end; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.dday { display: inline-flex; align-items: center; font-size: 1.02rem; font-weight: 800; line-height: 1.2; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dday.soon { color: var(--due-ink); }
.dday.urgent { color: var(--due-ink); background: rgb(var(--due-rgb) / .2); border-radius: var(--r-pill); padding: 4px 11px; }
.dday.wait { color: var(--primary); font-size: var(--fs-btn-s); }
.dday.done { color: var(--text-2); font-size: var(--fs-btn-s); font-weight: 700; }
.due-date { font-size: var(--fs-tag); color: var(--text-2); white-space: nowrap; }
.post.closed { background: var(--glass-weak); box-shadow: none; }
.post.closed .post-org, .post.closed .post-title { color: var(--text-2); }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 560px) {
  .post { align-items: flex-start; gap: 10px; padding: 14px 15px; }
  .post-due { padding-top: 1px; }
}

/* ---------- 공고 카드 (세로) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 14px; border-radius: var(--r-m); text-decoration: none; background: var(--white); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.pcard:hover { border-color: rgb(var(--accent-rgb) / .4); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(var(--ink-rgb) / .04), 0 10px 24px rgb(var(--ink-rgb) / .07); }
.pc-logo { height: 92px; margin-bottom: 6px; border-radius: 12px; background: #f6f7f9; display: grid; place-items: center; overflow: hidden; }
.pc-logo img { max-width: 62%; max-height: 46px; width: auto; height: auto; object-fit: contain; }
.pc-logo.txt { background: var(--btn-bg); } .pc-logo b { font-size: 1.9rem; font-weight: 800; color: var(--btn-ink); }
.pc-org { font-size: var(--fs-label); font-weight: 800; color: var(--primary); }
.pc-title { font-weight: 800; font-size: var(--fs-card); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pc-chips i { font-style: normal; height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; background: rgb(var(--ink-rgb) / .05); font-size: var(--fs-tag); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.pc-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.pcard.closed { box-shadow: none; background: #fafbfc; } .pcard.closed .pc-org, .pcard.closed .pc-title { color: var(--text-2); } .pcard.closed .pc-logo { opacity: .6; }
/* 폰: 반쪽 카드 2열은 기관 이름·칩이 줄바꿈돼 답답했다 → 한 줄에 한 장, 왼쪽 로고 · 오른쪽 내용 (사용자 2026-11-19) */
@media (max-width: 560px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; padding: 14px; }
  .pcard > * { grid-column: 2; }
  .pcard > .pc-logo { grid-column: 1; grid-row: 1 / span 4; width: 64px; height: 48px; margin: 2px 0 0; border-radius: 10px; }
  .pc-logo img { max-width: 52px; max-height: 30px; } .pc-logo b { font-size: 1.25rem; }
  .pc-org { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; } .pc-org .tag-l { margin-left: 0; white-space: nowrap; }
  .pc-title { font-size: var(--fs-body); -webkit-line-clamp: 2; line-clamp: 2; }
  .pc-chips { margin-top: 2px; }
  .pc-foot { padding-top: 6px; }
}

/* ---------- 캘린더 ---------- */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px 0 12px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav h2 { margin: 0 6px; font-size: var(--fs-sub); min-width: 7.2em; text-align: center; font-variant-numeric: tabular-nums; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: var(--text); cursor: pointer; transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.icon-btn:hover:not(:disabled) { background: var(--white); border-color: rgb(var(--accent-rgb) / .35); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-nav .btn { margin-left: 8px; }
/* 일정 종류 (접수 시작 파랑 · 접수 마감 빨강 · 필기시험 노랑 · 면접 보라): 켜고 끄는 버튼이자 범례 */
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; }
/* 일정 종류 고르기: 색 점 + 글자. .on = 지금 달력에 보이는 종류, 눌러 고른 것은 색 글자에 밑줄 */
.kbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 2px; border: 0; background: none; color: var(--text-2); font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: color var(--dur) var(--ease-out); }
.kbtn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--ink-rgb) / .2); transition: background var(--dur) var(--ease-out); }
.kbtn:hover, .kbtn.on { color: var(--text); }
.kbtn.on { font-weight: 800; }
.kbtn.k-start { --k: var(--start); --ki: var(--start-ink); } .kbtn.k-end { --k: var(--due); --ki: var(--due-ink); } .kbtn.k-exam { --k: var(--exam); --ki: var(--exam-ink); } .kbtn.k-iv { --k: var(--iv); --ki: var(--iv-ink); }
.kbtn.on::before { background: var(--k); }
.kbtn[aria-pressed="true"] { color: var(--ki); text-decoration: underline; text-decoration-color: var(--k); text-decoration-thickness: 2px; text-underline-offset: 7px; }
@media (pointer: coarse) { .kbtn { min-height: 44px; } }
/* .on = 지금 달력에 보이는 종류. 아무것도 고르지 않았으면 넷 다 보이고, 고르면 고른 것만 색이 남는다 */
/* 달력 폭은 제목·메뉴 줄과 같은 본문 폭에 맞춘다. 화면이 좁아 칸이 너무 작아지면 달력 안에서만 옆으로 밀어 본다.
   폰(640px 이하)은 아래에서 건수 표시로 바꾼다. */
@media (min-width: 641px) {
  .cal-wide { overflow-x: auto; border-radius: var(--r-m); }
  .cal { min-width: 900px; }
}
.cal { border-radius: var(--r-m); overflow: hidden; border: 1px solid rgb(var(--ink-rgb) / .1); background: rgb(var(--ink-rgb) / .1); box-shadow: var(--shadow); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.cal-dow { margin-bottom: 1px; }
.cal-dow span { padding: 8px 4px; text-align: center; font-size: var(--fs-label); font-weight: 800; color: var(--text-2); background: #f7f8fa; }
.cal-dow span:first-child { color: var(--sun); } .cal-dow span:last-child { color: var(--sat); }
.cal-cell { position: relative; min-height: 150px; padding: 6px 5px 8px; background: #ffffff; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cal-cell.out { background: #f6f7f9; }
.cal-cell.picked { background: #fff8f1; box-shadow: inset 0 0 0 2px var(--primary); }
.cal-day { align-self: flex-start; min-width: 30px; height: 30px; padding: 0 6px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 800; font-size: var(--fs-btn-s); font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-day::after { content: ""; position: absolute; inset: 0; }   /* 칸 어디를 눌러도 그 날짜가 골라짐 (기관 카드는 그 위에 올라옴) */
.cal-day:hover { background: rgb(var(--ink-rgb) / .07); }
.cal-cell.sun .cal-day { color: var(--sun); } .cal-cell.sat .cal-day { color: var(--sat); }
.cal-cell.today .cal-day { background: var(--fill); color: var(--on-fill); }
.cal-evts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
/* 기관 카드: 기관 이름 / 채용구분·고용형태·인원 / ⏰ 일정 종류 */
.evt { position: relative; z-index: 1; display: grid; gap: 1px; padding: 7px 8px 8px; border-radius: 10px; text-decoration: none; transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.evt b { font-size: 0.84rem; font-weight: 800; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.evt .em { font-size: 0.75rem; font-weight: 700; line-height: 1.45; }
.evt .ek { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 0.78rem; font-weight: 800; line-height: 1.3; }
.evt .ek i { font-style: normal; font-size: 0.95rem; line-height: 1; }
/* 채용구분·고용형태·인원은 차분한 회색, 일정 종류 글자만 색을 준다 */
.evt .em { color: var(--text-2); }
.evt.end { background: var(--due-bg); } .evt.end .ek { color: var(--due-ink); }
.evt.start { background: var(--start-bg); } .evt.start .ek { color: var(--start-ink); }
.evt.exam { background: var(--exam-bg); } .evt.exam .ek { color: var(--exam-ink); }
.evt.iv { background: var(--iv-bg); } .evt.iv .ek { color: var(--iv-ink); }
.evt:hover { filter: brightness(.96); transform: translateY(-1px); }
.evt:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cal-more { position: relative; z-index: 1; border: 0; background: none; padding: 3px 8px; font-size: 0.78rem; font-weight: 800; color: var(--text-2); cursor: pointer; text-align: left; }
.cal-more:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cal-counts { display: none; }
.cal-note { margin: 10px 0 0; font-size: var(--fs-label); color: var(--text-2); }
.day-panel { margin-top: 22px; scroll-margin-top: 76px; }
.day-panel h2 { margin: 0 0 4px; }
.day-panel h3 { margin: 18px 0 8px; font-size: var(--fs-body); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.day-panel h3 span { font-weight: 700; color: var(--text-2); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
/* 폰: 칸에는 건수만 보여 주고, 날짜를 누르면 아래에 그날 공고가 나온다 */
@media (max-width: 640px) {
  .cal-cell { min-height: 62px; padding: 4px 3px 6px; gap: 3px; }   /* 날짜 숫자는 큰 화면과 같이 왼쪽 정렬 */
  .cal-day { min-width: 28px; height: 28px; font-size: var(--fs-label); }
  .cal-evts { display: none; }
  .cal-counts { display: flex; flex-wrap: wrap; gap: 2px; padding-left: 2px; pointer-events: none; }
  .cal-counts i { font-style: normal; min-width: 18px; padding: 0 5px; border-radius: var(--r-pill); font-size: 11px; line-height: 16px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
  .cal-counts .c-end { color: var(--due-ink); background: rgb(var(--due-rgb) / .2); }
  .cal-counts .c-start { color: var(--start-ink); background: #d6e4ff; }
  .cal-counts .c-exam { color: var(--exam-ink); background: #ffe6a8; }
  .cal-counts .c-iv { color: var(--iv-ink); background: #e6dbff; }
}
@media (max-width: 640px) {
  .cal-nav h2 { min-width: 6.4em; font-size: 1.15rem; }
  .cal-nav .btn { margin-left: 4px; }
}

/* ---------- 기관 ---------- */
.orgs { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.org-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 18px; border-radius: var(--r-m); text-decoration: none; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.org-row:hover { border-color: rgb(var(--accent-rgb) / .38); background: var(--glass-strong); }
.org-row > span:not(.lg):not(.org-stat) { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
.org-name { font-weight: 800; font-size: var(--fs-card); line-height: 1.4; }
.org-type { font-size: var(--fs-label); color: var(--text-2); }
.org-stat { flex: none; text-align: right; display: grid; gap: 3px; justify-items: end; font-size: var(--fs-tag); color: var(--text-2); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-tag); font-weight: 800; white-space: nowrap; color: var(--soft-ink); background: var(--soft); font-variant-numeric: tabular-nums; }
.pill.none { color: var(--text-2); background: rgb(var(--ink-rgb) / .06); font-weight: 700; }
.org-row.quiet { background: var(--glass-weak); box-shadow: none; }

/* 공고 범위 고르기: 건축직 | 건설 전체 */
.seg2 { display: inline-flex; padding: 3px; border-radius: 10px; background: rgb(var(--ink-rgb) / .06); }
.seg2 button { border: 0; background: none; border-radius: 8px; min-height: 34px; padding: 4px 13px; font-size: var(--fs-btn-s); font-weight: 700; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.seg2 button:hover { color: var(--text); }
.seg2 button[aria-pressed="true"] { background: var(--white); color: var(--text); font-weight: 800; box-shadow: 0 1px 3px rgb(var(--ink-rgb) / .12); }
@media (pointer: coarse) { .seg2 button { min-height: 40px; } }

/* ---------- 관심기업 · 알림 ---------- */
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: var(--r-pill); background: var(--due); color: var(--white); font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.nbadge[hidden] { display: none; }
.tabbar a { position: relative; } .tabbar .nbadge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
.follow { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--glass-line); background: var(--glass); color: var(--text-2); font-size: var(--fs-btn-s); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.follow:hover { color: var(--text); border-color: rgb(var(--accent-rgb) / .35); }
.follow[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); border-color: rgb(var(--accent-rgb) / .32); font-weight: 800; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; } .head-row h1 { margin: 0; } .head-row .sub { flex-basis: 100%; margin-top: 4px; }
.d-head .follow { margin-left: 10px; vertical-align: middle; }
.h2n { font-size: var(--fs-label); font-weight: 700; color: var(--text-2); margin-left: 6px; font-variant-numeric: tabular-nums; }
.my-orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.my-org { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--soft); color: var(--soft-ink); font-size: var(--fs-btn-s); font-weight: 800; }
.my-org a { padding: 9px 4px 9px 15px; text-decoration: none; } .my-org a:hover { text-decoration: underline; text-underline-offset: 3px; }
.my-org button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; } .my-org button:hover { background: rgb(255 255 255 / .6); }

/* ---------- 공고 상세 ---------- */
.d-head { padding: 6px 0 4px; }
.d-org { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-weight: 800; color: var(--primary); text-decoration: none; font-size: var(--fs-body); }
.d-org:hover { text-decoration: underline; text-underline-offset: 3px; }
.d-org small { font-weight: 700; color: var(--text-2); font-size: var(--fs-label); margin-left: 6px; }
.d-head h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.4; margin: 2px 0 12px; max-width: 26em; }
.d-term { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: var(--fs-body); color: var(--text-2); font-variant-numeric: tabular-nums; }
.d-term b.t { color: var(--text); font-weight: 800; }
.d-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 900px) { .d-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; } .d-side { position: sticky; top: 76px; } }
@media (max-width: 899px) { .d-side { order: -1; } }
.d-side { display: grid; gap: 14px; }
.apply { border-radius: var(--r-l); padding: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.apply .btn { width: 100%; }
.apply p { margin: 0; font-size: var(--fs-label); color: var(--text-2); line-height: 1.6; }
.apply p b { color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.facts { margin: 0; border-radius: var(--r-l); padding: 6px 18px; background: var(--glass); border: 1px solid var(--glass-line); }
.facts div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: var(--fs-text); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-2); font-weight: 700; font-size: var(--fs-label); padding-top: 1px; }
.facts dd { margin: 0; font-weight: 700; line-height: 1.55; }
.d-sec { padding-top: 2px; }
.d-sec h2 { margin: 0 0 10px; }
.d-sec + .d-sec, .d-sec + details.d-sec { margin-top: 30px; }
.pre { margin: 0; white-space: pre-line; font-size: var(--fs-text); line-height: 1.8; max-width: 70ch; overflow-wrap: anywhere; }
details.d-sec { border-radius: var(--r-m); border: 1px solid var(--glass-line); background: var(--glass); padding: 0 18px; }
details.d-sec summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; cursor: pointer; list-style: none; font-weight: 800; font-size: var(--fs-card); }
details.d-sec summary::-webkit-details-marker { display: none; }
details.d-sec summary svg { transition: transform var(--dur) var(--ease-out); color: var(--text-2); }
details.d-sec[open] summary svg { transform: rotate(180deg); }
details.d-sec .pre { padding: 0 0 18px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: var(--r-m); text-decoration: none; background: var(--glass); border: 1px solid var(--glass-line); transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.files a:hover { border-color: rgb(var(--accent-rgb) / .38); background: var(--glass-strong); }
.files .fk { flex: none; font-size: var(--fs-tag); font-weight: 800; color: var(--soft-ink); background: var(--soft); border-radius: 6px; padding: 2px 8px; }
.files .fn { min-width: 0; margin-right: auto; font-weight: 700; font-size: var(--fs-text); overflow-wrap: anywhere; line-height: 1.5; }
.files svg { color: var(--text-2); }
.skel { display: grid; gap: 12px; padding: 6px 0; }
.skel i { display: block; height: 14px; border-radius: 7px; background: rgb(var(--ink-rgb) / .08); animation: skel 1.2s ease-in-out infinite alternate; }
.skel i:nth-child(1) { width: 34%; height: 20px; } .skel i:nth-child(2) { width: 92%; } .skel i:nth-child(3) { width: 84%; } .skel i:nth-child(4) { width: 60%; }
@keyframes skel { from { opacity: .55; } to { opacity: 1; } }

/* 건축직 「모집분야 확인」 표시 (모집분야가 자료에 없어 건축 자리가 있는지 공고문에서 봐야 하는 공고) */
.pc-chips i.chk, .tag-l.chk { background: rgb(var(--ink-rgb) / .05); color: var(--text-3); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .12); }
/* 캘린더 날짜 목록의 「1차 면접」「2차 면접」 꼬리표 */
.tag-l.iv { background: var(--iv-bg); color: var(--iv-ink); }

/* 카드·목록 줄의 기관 이름: 누르면 그 기관의 공고를 모아 본다 */
.pc-org[data-act], .post-org[data-act] { cursor: pointer; }
.pc-org[data-act]:hover, .post-org[data-act]:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 화면 아래에 잠깐 뜨는 안내 */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: var(--r-m); background: #1f2a37; color: #fff; font-size: var(--fs-text); font-weight: 700; box-shadow: 0 8px 24px rgb(var(--ink-rgb) / .22);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast { bottom: 32px; } }

/* ---------- 잘못된 정보 신고 ---------- */
.report-link { justify-self: end; margin: 2px 4px 0 auto; display: block; border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.report-link:hover { color: var(--primary); }
.rp-bg { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(var(--ink-rgb) / .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rp-box { width: min(480px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-l); padding: 22px; box-shadow: 0 16px 40px rgb(var(--ink-rgb) / .18); }
.rp-box h2 { margin: 0 0 4px; font-size: var(--fs-sub); font-weight: 800; }
.rp-sub { margin: 0 0 14px; font-size: var(--fs-label); color: var(--text-2); }
.rp-box form { display: grid; gap: 8px; }
.rp-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rp-kinds label { cursor: pointer; }
.rp-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.rp-kinds span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(var(--ink-rgb) / .05); color: var(--text-2); font-size: var(--fs-btn-s); font-weight: 700; }
.rp-kinds input:checked + span { background: var(--btn-bg); color: var(--btn-ink); }
.rp-kinds input:focus-visible + span { outline: 3px solid rgb(var(--accent-rgb) / .55); outline-offset: 2px; }
.rp-label { font-size: var(--fs-label); font-weight: 700; color: var(--text-2); margin-top: 4px; }
.rp-box textarea { width: 100%; min-height: 110px; resize: vertical; font: inherit; font-size: var(--fs-text); color: var(--text); background: #fff; border: 1px solid rgb(var(--ink-rgb) / .16); border-radius: var(--r-s); padding: 10px 12px; }
.rp-box textarea:focus { outline: none; border-color: var(--fill); box-shadow: 0 0 0 3px rgb(255 138 61 / .18); }
.rp-msg { margin: 0; min-height: 1.2em; font-size: var(--fs-label); color: var(--due-ink); }
.rp-btns { display: flex; justify-content: flex-end; gap: 8px; }
.rp-btns .btn { min-height: 42px; }

/* 캘린더 위쪽: PC는 지금처럼 한 줄에 흘리고, 폰은 「건축직 · 건설 전체」 + 「필터」 한 줄로 정돈 (사용자 2026-11-19 · 시안 2+3) */
.cal-tools { display: contents; }
.cal-flt, .cal-fltp { display: none; }
@media (max-width: 640px) {
  .cal-bar { gap: 12px; }
  .cal-nav { width: 100%; justify-content: space-between; }
  .cal-nav h2 { flex: 1; min-width: 0; margin: 0; }
  .cal-tools { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; }
  .cal-tools .cal-who { display: none; }
  .cal-flt { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-size: var(--fs-btn-s); font-weight: 800; white-space: nowrap; cursor: pointer; }
  .cal-flt[aria-expanded="true"] { background: var(--btn-bg-press); }
  .cal-fltp { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px; border-radius: var(--r-m); background: var(--glass-weak); }
  .cal-fltp > span { font-size: var(--fs-label); font-weight: 800; color: var(--text-2); }
  .cal-fltp .seg { display: flex; } .cal-fltp .seg button { flex: 1; }
  .cal-legend { width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0; }
  .kbtn { gap: 5px; font-size: 0.8rem; padding: 6px 0; }
  .kbtn::before { width: 8px; height: 8px; }
}

/* 채용공고 목록 폰: 접수 상태는 제목 아래 밑줄 탭, 그 아래 「건축직 · 건설 전체」 + 「필터」 한 줄 (사용자 2026-11-19 · 시안 6). PC는 그대로 */
.lst-tabs, .lst-bar { display: none; }
@media (max-width: 640px) {
  .head .stats { display: none; }
  .lst-tabs { display: flex; gap: 20px; margin-top: 14px; border-bottom: 1px solid var(--hair); }
  .lst-tabs button { border: 0; background: none; padding: 8px 0 10px; font: inherit; font-size: var(--fs-text); font-weight: 800; color: var(--text-3); cursor: pointer; }
  .lst-tabs button b { margin-left: 5px; color: var(--primary); font-variant-numeric: tabular-nums; }
  .lst-tabs button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 -2.5px 0 var(--text); }
  .filters { display: none; }
  .lst-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
  .lst-fltp { margin-top: 10px; }
  .lst-fltp .fchips { display: flex; flex-wrap: wrap; gap: 6px; }
  .lst-fltp .frow { display: flex; gap: 6px; } .lst-fltp .frow .sel { flex: 1; min-width: 0; }
  .lst-fltp .fdone { align-self: flex-end; }
  .fbadge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--btn-ink); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
  /* 「건축직 · 건설 전체」는 작게 (사용자 2026-11-19) */
  .seg2 { padding: 3px; border-radius: 9px; }
  .seg2 button { min-height: 32px; padding: 3px 11px; font-size: 0.82rem; border-radius: 7px; }
  .cal-flt { min-height: 34px; padding: 0 12px; font-size: 0.82rem; }
}
