:root {
    --bg: #fff; --card: #fff; --ink: #141a2b; --muted: #687083; --line: #e4e8f1;
    --brand: #4c6dec; --brand-ink: #fff; --navy: #25397a; --soft: #f3f5fb; --tint: #eef2ff;
    --urgent: #e0522d; --ended: #9aa1ae; --soon: #25397a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; word-break: keep-all;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 420px; padding-top: 48px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
h1 { font-size: 1.6rem; line-height: 1.3; margin: 12px 0 8px; }
h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.lead, .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.bar nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 20px 0; font-size: .9rem; color: var(--muted); }

.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
    color: var(--ink); font: inherit; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.btn.danger { color: #b42318; margin-left: auto; }
.btn.small { padding: 3px 9px; font-size: .85rem; }
.btn.big { padding: 12px 22px; font-size: 1.05rem; }

.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.sections .sec { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--card);
    border: 2px solid var(--line); color: var(--ink); min-height: 76px; }
.sections .sec:hover { text-decoration: none; border-color: var(--brand); }
.sections .sec strong { display: block; font-size: 1.2rem; line-height: 1.3; }
.sections .sec small { display: block; color: var(--muted); font-size: .86rem; }
.sections .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
    font-size: 1.4rem; font-weight: 800; color: #fff; background: var(--brand); }
.sections .sec.jobs .ico { background: #25397a; }
.sections .sec.main.on { border-color: var(--brand); background: #eef2ff; }
.sections .sec.jobs.on { border-color: #25397a; background: #eef4fb; }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 0;
    padding: 18px 22px; border-radius: 14px; background: #1c2430; color: #fff; }
.partner strong { font-size: 1.1rem; }
.partner p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: .93rem; }
.partner .btn.primary { background: #fff; color: var(--ink); border-color: #fff; flex: none; }
img, iframe, ins { max-width: 100%; }
.hero { background: linear-gradient(135deg, #1b2540, #2a3a5e); color: #fff; border-radius: 16px; padding: 28px 24px 22px; margin-bottom: 18px; }
.hero.jobs { background: linear-gradient(135deg, #1b2540, #2a3a5e); }
.hero h1 { margin: 0 0 6px; font-size: 1.75rem; }
.hero .lead { color: rgba(255,255,255,.88); margin: 0; }
.hero .filters { margin: 16px 0 0; }
.hero .filters input[type=search] { border: 0; padding: 12px 14px; font-size: 1rem; }
.hero .check { color: #fff; }
.hero .btn.primary { background: #fff; color: var(--ink); border-color: #fff; padding: 11px 20px; }
.orgs h2 { margin: 0 0 8px; font-size: 1rem; color: var(--muted); }
.orgs ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.orgs a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line);
    border-radius: 10px; color: var(--ink); font-size: .93rem; min-height: 46px; }
.orgs a:hover { border-color: var(--brand); text-decoration: none; }
.orgs a.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #eef2ff; }
.orgs a.none { opacity: .5; }
.orgs img.on-dark { background: #24384d; border-radius: 6px; padding: 3px 5px; }
.orgs img { width: 72px; height: 30px; object-fit: contain; object-position: left center; flex: none; }
.orgs .mono { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--muted); display: grid; place-items: center; font-weight: 700; flex: none; }
.orgs .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orgs .count { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; opacity: 1; }
.log { background: #10161d; color: #d7e0ea; border-radius: 10px; padding: 14px 16px; font-size: .88rem; line-height: 1.7; max-height: 460px; overflow: auto; white-space: pre-wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0 12px; }
.filters select, .filters input[type=search] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); }
.filters input[type=search] { flex: 1; min-width: 160px; }
.chips, .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chips a, .tabs a { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .93rem; }
.chips a.on, .tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.count { font-size: .8rem; opacity: .8; margin-left: 4px; }
.listbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; margin: 8px 0; }
.listbar a.on { font-weight: 700; color: var(--ink); }

.cards { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card.ended { opacity: .6; }
.card h2 { margin: 6px 0 4px; font-size: 1.08rem; }
.card h2 a { color: var(--ink); }
.card p { margin: 2px 0; font-size: .95rem; }
.card .amount { color: var(--brand); font-weight: 600; }
.adrow { list-style: none; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: .82rem; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 8px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; color: #fff; background: var(--brand); }
.badge.urgent { background: var(--urgent); }
.badge.ended { background: var(--ended); }
.badge.soon { background: var(--soon); }

.pager { display: flex; justify-content: center; gap: 16px; margin: 20px 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.ad { margin: 16px 0; text-align: center; overflow: hidden; }
.ad.placeholder { border: 1px dashed #b8c0cc; border-radius: 8px; color: var(--muted); padding: 28px 0; font-size: .85rem; }

.post { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0; }
.facts { width: 100%; border-collapse: collapse; margin: 16px 0; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.facts th { width: 6.5em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.detail { margin: 8px 0 20px; word-break: break-word; }
.source { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.warn { background: #fff4e5; border: 1px solid #f3c98b; border-radius: 8px; padding: 10px 14px; }
.flash { background: #e8f4f0; border: 1px solid #b5d8cd; border-radius: 8px; padding: 10px 14px; }
.flash.err { background: #fdecea; border-color: #f2b8b1; }

/* 관리자 */
.grid { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: .93rem; }
.grid th, .grid td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid th { background: var(--bg); border-top: 0; white-space: nowrap; }
.grid input { width: 100%; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.grid input.num { width: 70px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.panel h2 { margin-top: 0; }
.form label { display: block; margin: 10px 0; font-size: .9rem; color: var(--muted); }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 3px; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
.form label.check, .check { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.form input.filled { border-color: var(--brand); background: #eef2ff; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; }
.cols.dates { background: #f3f5fb; border-radius: 8px; padding: 2px 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.review-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.cands { list-style: none; padding: 0; margin: 0; }
.cands li { border-left: 3px solid var(--line); padding: 6px 12px; margin: 10px 0; }
.cands li.hit { border-left-color: var(--brand); }
.cands q { display: block; quotes: none; }
.pick { display: inline-flex; gap: 6px; align-items: center; margin: 6px 14px 0 0; }
details { margin: 10px 0; }
.body-text { white-space: pre-wrap; word-break: break-all; font: inherit; font-size: .92rem; background: var(--bg);
    border-radius: 8px; padding: 12px 14px; max-height: 420px; overflow: auto; margin: 8px 0 0; }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: .88em; }

/* 태블릿 */
@media (max-width: 900px) {
    .wrap { padding: 0 14px; }
    .hero { padding: 22px 18px 18px; }
    .hero h1 { font-size: 1.5rem; }
}
/* 휴대폰 */
@media (max-width: 640px) {
    h1 { font-size: 1.35rem; }
    .bar { padding-top: 10px; padding-bottom: 10px; }
    .logo { font-size: 1.05rem; }
    .bar nav { gap: 12px; font-size: .88rem; }
    .sections { gap: 8px; }
    .sections .sec { padding: 12px; gap: 10px; min-height: 64px; }
    .sections .sec strong { font-size: 1rem; }
    .sections .sec small { display: none; }
    .sections .ico { width: 36px; height: 36px; font-size: 1.15rem; border-radius: 10px; }
    .hero { border-radius: 12px; padding: 18px 14px 16px; }
    .hero h1 { font-size: 1.3rem; }
    .hero .lead { font-size: .9rem; }
    .hero .filters input[type=search] { flex: 1 1 100%; min-width: 0; }
    .hero .btn.primary { flex: 1; }
    /* 휴대폰에서는 기관 버튼이 화면을 다 차지하지 않도록 옆으로 밀어 보는 두 줄로 */
    .orgs ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none;
        grid-auto-columns: 150px; gap: 6px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .orgs a { padding: 6px 8px; gap: 6px; font-size: .86rem; min-height: 42px; }
    .orgs img { width: 46px; height: 24px; }
    .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .chips a { flex: none; }
    .card { padding: 12px 13px; }
    .card h2 { font-size: 1rem; }
    .grid { display: block; overflow-x: auto; }
    .post { padding: 14px; }
    .post h1 { font-size: 1.2rem; }
    .facts th { width: 5.2em; font-size: .88rem; padding: 8px 4px; }
    .facts td { padding: 8px 4px; word-break: break-word; }
    .btn.big { display: block; text-align: center; }
    .partner { padding: 16px; }
    .partner .btn { width: 100%; text-align: center; }
    .cols { grid-template-columns: 1fr; }
    .review-top { gap: 8px; }
}

/* ===== 공개 화면: 밝은 파랑 + 남색, 둥근 카드 ===== */
body.pub { background: #fff; }
.frame { background: #fff; }
.pub .site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.pub .bar { padding-top: 14px; padding-bottom: 14px; }
.pub .logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.pub .logo:hover { text-decoration: none; }
.pub .logo svg { flex: none; }
.pub .logo small { font-weight: 500; font-size: .82rem; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.pub .bar nav a { color: var(--ink); font-weight: 500; }
.pub .site-foot { background: #f7f8fb; border-top: 1px solid var(--line); color: var(--muted); padding: 26px 0; }
.pub .site-foot a { color: var(--navy); }
.pub h1, .pub h2 { letter-spacing: -.02em; }

.pub .sections { background: var(--soft); padding: 14px; border-radius: 24px; gap: 12px; margin-bottom: 18px; }
.pub .sections .sec { border: 2px solid transparent; border-radius: 18px; background: #fff; min-height: 84px; transition: box-shadow .15s, border-color .15s; }
.pub .sections .sec:hover { box-shadow: 0 8px 22px rgba(37, 57, 122, .12); border-color: transparent; }
.pub .sections .ico { width: 54px; height: 54px; border-radius: 18px; background: var(--tint); }
.pub .sections .sec.jobs .ico { background: var(--tint); }
.pub .sections .sec.on { border-color: var(--brand); background: #fff; }
.pub .sections .sec.on strong { color: var(--brand); }

.pub .hero, .pub .hero.jobs { position: relative; overflow: hidden; background: var(--brand); border-radius: 24px; padding: 34px 28px 28px; }
.pub .hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.09); }
.pub .hero::after { content: ""; position: absolute; right: 150px; bottom: -110px; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.07); }
.pub .hero h1 { color: #fff; font-size: 2rem; font-weight: 800; }
.pub .hero h1, .pub .hero .lead, .pub .hero .filters { position: relative; z-index: 2; }
.pub .hero .lead { color: rgba(255,255,255,.9); max-width: 560px; }
.pub .hero .filters { margin-top: 22px; background: #fff; border-radius: 22px; padding: 12px; gap: 10px;
    box-shadow: 0 12px 30px rgba(20, 30, 80, .22); }
.pub .hero .filters input[type=search] { background: var(--navy); color: #fff; border-radius: 999px; padding: 15px 22px; font-size: 1.02rem; }
.pub .hero .filters input[type=search]::placeholder { color: rgba(255,255,255,.72); }
.pub .hero .check { color: var(--ink); font-size: .95rem; padding: 0 4px; }
.pub .hero .btn.primary { background: #fff; color: var(--ink); border: 1px solid #d5dbe8; border-radius: 999px; padding: 13px 24px; font-weight: 700; }
.pub .hero .btn.primary:hover { border-color: var(--brand); color: var(--brand); }
.hero-art { position: absolute; right: 30px; top: 22px; width: 132px; height: auto; z-index: 1; }
.hero.jobs .hero-art { width: 96px; right: 48px; top: 24px; }

.ad.house { display: flex; align-items: center; gap: 14px; min-height: 90px; padding: 12px 22px; border-radius: 18px; text-align: left;
    color: var(--ink); background: var(--soft); border: 1px dashed #c9d1e6; }
.ad.house:hover { text-decoration: none; border-color: var(--brand); }
.ad.house svg { flex: none; }
.ad.house span { flex: 1; }
.ad.house strong { display: block; font-size: 1rem; }
.ad.house small { color: var(--muted); }
.ad.house em { font-style: normal; font-weight: 700; color: var(--brand); white-space: nowrap; font-size: .93rem; }

.pub .orgs h2 { color: var(--ink); font-size: 1.25rem; font-weight: 800; margin: 26px 0 12px; }
.pub .orgs a { border-radius: 14px; border-color: var(--line); }
.pub .orgs a:hover { border-color: var(--brand); }
.pub .orgs a.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--tint); }
.pub .orgs .count { background: var(--navy); }
.pub .chips a { padding: 7px 16px; border-color: #d5dbe8; }
.pub .chips a:hover { border-color: var(--brand); text-decoration: none; }
.pub .chips a.on { background: var(--brand); border-color: var(--brand); }
.pub .cards { gap: 12px; }
.pub .card { background: var(--soft); border: 1px solid transparent; border-radius: 18px; padding: 18px 20px; transition: background .15s, box-shadow .15s, border-color .15s; }
.pub .card:hover { background: #fff; border-color: var(--line); box-shadow: 0 8px 22px rgba(37, 57, 122, .1); }
.pub .card h2 { font-size: 1.1rem; font-weight: 700; }
.pub .card .tag { background: #fff; color: var(--navy); }
.pub .card .amount { color: var(--brand); }
.pub .badge { border-radius: 999px; padding: 2px 10px; }
.pub .post { border: 0; background: var(--soft); border-radius: 24px; padding: 26px; }
.pub .post .facts { background: #fff; border-radius: 16px; overflow: hidden; }
.pub .post .facts th, .pub .post .facts td { padding: 12px 14px; }
.pub .post .facts tr:first-child th, .pub .post .facts tr:first-child td { border-top: 0; }
.pub .btn.primary { border-radius: 999px; }
.pub .partner { background: var(--navy); border-radius: 22px; padding: 22px 26px; }
.pub .partner .btn.primary { background: #fff; border-color: #fff; color: var(--navy); }

@media (max-width: 640px) {
    .pub .logo { font-size: 1.08rem; }
    .pub .logo svg { width: 32px; height: 32px; }
    .pub .logo small { display: none; }
    .pub .sections { padding: 8px; border-radius: 18px; gap: 8px; }
    .pub .sections .sec { min-height: 62px; border-radius: 14px; }
    .pub .sections .ico { width: 40px; height: 40px; border-radius: 12px; }
    .pub .sections .ico svg { width: 28px; height: 28px; }
    .pub .hero, .pub .hero.jobs { padding: 22px 14px 14px; border-radius: 18px; }
    .pub .hero h1 { font-size: 1.4rem; }
    .pub .hero .filters { border-radius: 18px; padding: 10px; }
    .pub .hero .filters input[type=search] { padding: 13px 18px; }
    .hero-art, .hero.jobs .hero-art { display: none; }
    .ad.house { min-height: 70px; padding: 10px 14px; gap: 10px; border-radius: 14px; }
    .ad.house small { display: none; }
    .ad.house strong { font-size: .95rem; }
    .pub .card { padding: 14px 15px; border-radius: 14px; }
    .pub .post { padding: 16px; border-radius: 16px; }
    .pub .partner { padding: 16px; border-radius: 16px; }
}
/* 검색창 아래 기관 줄: 로고 위, 이름 아래 */
.pub .hero .finder { position: relative; z-index: 2; margin-top: 22px; background: #fff; border-radius: 22px; padding: 14px 12px 8px;
    box-shadow: 0 12px 30px rgba(20, 30, 80, .22); }
.pub .hero .finder .filters { margin: 0 2px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.orgbar { display: flex; align-items: center; gap: 2px; margin-top: 16px; }
.orgbar ul { flex: 1; min-width: 0; display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 2px 8px; overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: #d5dbe8 transparent; }
.orgbar li { flex: none; }
.orgbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 88px; color: var(--ink);
    font-size: .86rem; text-align: center; line-height: 1.25; }
.orgbar a:hover { text-decoration: none; }
.orgbar .lg { width: 74px; height: 58px; border-radius: 18px; background: var(--tint); display: grid; place-items: center;
    border: 2px solid transparent; transition: border-color .12s, background .12s; }
.orgbar img { width: 58px; height: 34px; object-fit: contain; }
.orgbar img.on-dark { background: #24384d; border-radius: 6px; padding: 3px 4px; }
.orgbar b { font-size: 1.2rem; color: var(--navy); }
.orgbar a:hover .lg, .orgbar a.on .lg { border-color: var(--brand); background: #fff; }
.orgbar a.on .nm { color: var(--brand); font-weight: 700; }
.orgbar .count { position: absolute; top: -6px; right: 2px; margin: 0; opacity: 1; background: var(--navy); color: #fff; border-radius: 999px;
    font-size: .7rem; padding: 0 6px; line-height: 1.5; }
.orgbar .arr { flex: none; width: 26px; height: 58px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #9aa3b5; cursor: pointer;
    align-self: flex-start; margin-top: 8px; }
.orgbar .arr:hover { color: var(--brand); }
@media (max-width: 640px) {
    .pub .hero .finder { border-radius: 18px; padding: 10px 8px 6px; margin-top: 16px; }
    .orgbar { margin-top: 10px; }
    .orgbar .arr { display: none; }
    .orgbar a { width: 72px; font-size: .78rem; }
    .orgbar .lg { width: 62px; height: 48px; border-radius: 14px; }
    .orgbar img { width: 48px; height: 28px; }
}
/* 기관 줄: 스크롤 없이 10칸씩 두 줄 (휴대폰은 5칸씩) */
.orgbar { display: block; margin-top: 18px; }
.orgbar ul { display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px 4px; overflow: visible; padding: 6px 2px 8px; }
.orgbar li { min-width: 0; }
.orgbar a { width: auto; font-size: .84rem; }
.orgbar .lg { width: 100%; max-width: 76px; }
.orgbar img { width: 78%; max-width: 58px; }
.orgbar .count { right: 50%; margin-right: -40px; }
@media (max-width: 640px) {
    .orgbar ul { grid-template-columns: repeat(5, 1fr); gap: 10px 2px; }
    .orgbar a { width: auto; font-size: .74rem; }
    .orgbar .lg { width: 100%; max-width: 60px; }
    .orgbar .count { margin-right: -32px; }
}
/* 머리 상자 글이 오른쪽 그림과 겹치지 않게 */
@media (min-width: 641px) { .pub .hero h1, .pub .hero .lead { max-width: calc(100% - 170px); } }

/* 심벌형 로고는 칸 높이를 채워 크게 */
.orgbar img { height: 42px; }
@media (max-width: 640px) { .orgbar img { height: 34px; } }

/* 모든 기관 로고가 심벌 그림이라 칸을 넉넉히 채웁니다 */
.orgbar img { width: 84%; max-width: 62px; height: 44px; }
@media (max-width: 640px) { .orgbar img { height: 36px; } }

/* 머리 상자 제목: 옅은 노랑 */
.pub .hero h1 { color: #fff3b0; }

/* 고른 메뉴 버튼: 검색 상자와 같은 파랑으로 채움 */
.pub .sections .sec.on { background: var(--brand); border-color: var(--brand); box-shadow: 0 8px 20px rgba(76, 109, 236, .28); }
.pub .sections .sec.on strong { color: #fff; }
.pub .sections .sec.on small { color: rgba(255, 255, 255, .88); }
.pub .sections .sec.on .ico, .pub .sections .sec.jobs.on .ico { background: #fff; }

/* PC 양옆 따라다니는 세로 배너 (화면 폭 1340px 이상에서만) */
.siderail { display: none; }
@media (min-width: 1340px) {
    .siderail { display: block; position: fixed; top: 96px; width: 160px; min-height: 600px; z-index: 5; text-align: center; }
    .siderail.left { left: calc(50% - 480px - 180px); }
    .siderail.right { left: calc(50% + 480px + 20px); }
    .siderail .house { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 160px; height: 600px;
        border-radius: 18px; background: var(--soft); border: 1px dashed #c9d1e6; color: var(--ink); }
    .siderail .house:hover { text-decoration: none; border-color: var(--brand); }
    .siderail .house small { color: var(--muted); }
    .siderail .house em { font-style: normal; font-weight: 700; color: var(--brand); font-size: .9rem; }
}
@media (min-width: 1340px) and (max-height: 760px) { .siderail { top: 76px; } }

/* 제휴 배너 위 광고 자리와 간격 */
.pub main > .ad.house + .partner, .pub main > .ad + .partner { margin-top: 14px; }
.pub main > .ad:last-of-type { margin-top: 28px; }

/* 머리 상자 제목: 흰 글씨 + 얇은 검은 테두리 */
.pub .hero h1 { color: #fff; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000, 1px 0 0 #000; }
/* 휴대폰에서도 메뉴 버튼의 작은 글씨 보이기: 아이콘·이름 아래 줄에 */
@media (max-width: 640px) {
    .pub .sections .sec { flex-wrap: wrap; align-content: center; row-gap: 6px; padding: 10px 10px 11px; }
    .pub .sections .sec > span:last-child { display: contents; }
    .pub .sections .sec strong { flex: 1; min-width: 0; }
    .pub .sections .sec small { display: block; flex: 0 0 100%; font-size: .74rem; line-height: 1.35; }
}

/* 로고 글씨: 둥근 글꼴(주아), "다모아"는 파랑 + 금색 밑줄 */
.pub .logo .wm { font-family: "Jua", "Pretendard", "Malgun Gothic", sans-serif; font-weight: 400; font-size: 1.62rem; line-height: 1;
    letter-spacing: .01em; color: var(--navy); padding-top: 3px; }
.pub .logo .wm b { font-weight: 400; color: var(--brand); position: relative; margin-left: 2px; }
.pub .logo .wm b::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -5px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, #ffd86b, #f5b82e); }
.pub .logo svg { width: 42px; height: 42px; }
.pub .logo small { margin-left: 8px; }
@media (max-width: 640px) {
    .pub .logo .wm { font-size: 1.28rem; }
    .pub .logo .wm b::after { bottom: -4px; height: 3px; }
    .pub .logo svg { width: 32px; height: 32px; }
    .pub .bar nav { font-size: .82rem; gap: 10px; }
}

/* 머리 상자 제목: 테두리 없이 흰 글씨 */
.pub .hero h1 { color: #fff; text-shadow: none; }
/* 검색 줄: 긴 검색창(끝에 돋보기) + 연빨강 찾기 버튼, "접수중만"은 검색창 오른쪽 아래 작게 */
.pub .hero .finder .filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.pub .hero .finder .filters input[type=search] { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; padding-right: 54px;
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.500' cy='10.500' r='6.500'/%3E%3Cpath d='M15.500 15.500L21 21'/%3E%3C/svg%3E") no-repeat right 20px center / 22px 22px; }
.pub .hero .finder .filters input[type=search]::-webkit-search-cancel-button { margin-right: 4px; filter: invert(1); }
.pub .hero .finder .filters .btn.primary { grid-column: 2; grid-row: 1; background: #ff8f8f; border-color: #ff8f8f; color: #fff; font-weight: 800;
    padding: 14px 28px; }
.pub .hero .finder .filters .btn.primary:hover { background: #ff7676; border-color: #ff7676; color: #fff; }
.pub .hero .finder .filters .check { grid-column: 1; grid-row: 2; justify-self: end; font-size: .82rem; color: var(--muted); padding: 0 14px 0 0; gap: 5px; }
.pub .hero .finder .filters .check input { width: 13px; height: 13px; margin: 0; }
@media (max-width: 640px) {
    .pub .hero .finder .filters .btn.primary { padding: 12px 18px; }
    .pub .hero .finder .filters input[type=search] { padding-right: 46px; background-position: right 16px center; background-size: 20px 20px; }
}

/* 카드 사이 배너 */
.pub .cards .adrow .ad { margin: 2px 0; }

/* 기관 아이콘: 커서를 올리면 살짝 커짐 */
.orgbar .lg { transition: transform .15s ease, border-color .12s, background .12s, box-shadow .15s; }
.orgbar a:hover .lg { transform: scale(1.14); box-shadow: 0 6px 14px rgba(37, 57, 122, .18); }
.orgbar a:hover .nm { color: var(--brand); font-weight: 700; }
.orgbar a:hover { z-index: 2; }
/* 찾기 버튼: 튀어나온 입체 버튼, 누르면 쑥 들어감 */
.pub .hero .finder .filters .btn.primary { position: relative; top: -2px; border: 0; background: linear-gradient(180deg, #ffa3a3, #ff8585);
    box-shadow: 0 5px 0 #e06565, 0 9px 14px rgba(224, 101, 101, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
    text-shadow: 0 1px 0 rgba(180, 60, 60, .35); transition: transform .08s ease, box-shadow .08s ease, background .12s; }
.pub .hero .finder .filters .btn.primary:hover { background: linear-gradient(180deg, #ffadad, #ff7c7c); }
.pub .hero .finder .filters .btn.primary:active, .pub .hero .finder .filters .btn.primary.pressed { transform: translateY(5px);
    box-shadow: 0 0 0 #e06565, 0 2px 4px rgba(224, 101, 101, .3), inset 0 2px 4px rgba(160, 50, 50, .28); }
.pub .hero .finder .filters { padding-bottom: 2px; }

/* 공고 카드: 커서를 올리면 카드와 글자가 함께 살짝 커짐 (줄바꿈이 흔들리지 않게 통째로 확대) */
.pub .card { transition: background .15s, box-shadow .15s, border-color .15s, transform .15s ease; transform-origin: center; }
@media (hover: hover) {
    .pub .card:hover { transform: scale(1.035); position: relative; z-index: 2; border-color: var(--brand); box-shadow: 0 12px 28px rgba(37, 57, 122, .16); }
    .pub .card:hover h2 a { color: var(--brand); text-decoration: none; }
}

/* 공고 카드 어디를 눌러도 글로 이동 (제목 링크를 카드 전체로 넓힘) */
.pub .card { position: relative; cursor: pointer; }
.pub .card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* 로고 그림 */
.pub .logo .logo-img { height: 46px; width: auto; display: block; }
.pub .logo small { margin-left: 10px; }
@media (max-width: 640px) { .pub .logo .logo-img { height: 34px; } }

/* "접수중만"을 검색창 안(돋보기 왼쪽)으로 */
.pub .hero .finder .filters { gap: 0 10px; padding-bottom: 6px; }
.pub .hero .finder .filters input[type=search] { padding-right: 150px; }
.pub .hero .finder .filters .check { grid-column: 1; grid-row: 1; justify-self: end; align-self: center; z-index: 1; margin: 0 54px 0 0; padding: 5px 10px;
    font-size: .84rem; color: #fff; background: rgba(255, 255, 255, .14); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pub .hero .finder .filters .check input { accent-color: #ff8f8f; cursor: pointer; }
.orgbar { margin-top: 14px; }
@media (max-width: 640px) {
    .pub .hero .finder .filters input[type=search] { padding-right: 124px; }
    .pub .hero .finder .filters .check { margin-right: 42px; padding: 4px 8px; font-size: .76rem; }
}

/* 문의 폼 */
.pub .post.contact { max-width: 680px; margin-left: auto; margin-right: auto; }
.pub .post.contact .form label { color: var(--ink); font-weight: 600; font-size: .95rem; margin: 16px 0; }
.pub .post.contact .form input:not([type=checkbox]), .pub .post.contact .form select, .pub .post.contact .form textarea { margin-top: 6px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid #d5dbe8; font-weight: 400; }
.pub .post.contact .form input:focus, .pub .post.contact .form select:focus, .pub .post.contact .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.pub .post.contact .form label.check { font-weight: 400; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.pub .post.contact .form label.check input { margin-top: 4px; }
.pub .post.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) { .pub .hero .finder .filters input[type=search] { padding-left: 16px; font-size: .95rem; } }

@media (max-width: 640px) {
    .pub .hero .finder .filters input[type=search] { padding-left: 14px; padding-right: 108px; font-size: .92rem; }
    .pub .hero .finder .filters .check { margin-right: 38px; padding: 3px 6px; font-size: .72rem; gap: 3px; }
    .pub .hero .finder .filters .btn.primary { padding: 12px 14px; }
}

/* 찾기 버튼을 조금 작게, 검색창을 그만큼 넓게 */
.pub .hero .finder .filters { gap: 0 8px; }
.pub .hero .finder .filters .btn.primary { padding: 11px 18px; font-size: .95rem; box-shadow: 0 4px 0 #e06565, 0 7px 12px rgba(224, 101, 101, .32), inset 0 1px 0 rgba(255, 255, 255, .45); }
.pub .hero .finder .filters .btn.primary:active, .pub .hero .finder .filters .btn.primary.pressed { transform: translateY(4px); }
@media (max-width: 640px) {
    .pub .hero .finder .filters { gap: 0 6px; }
    .pub .hero .finder .filters .btn.primary { padding: 10px 11px; font-size: .88rem; }
}

/* 지역 고르기(경남·부산·울산 …) */
.regiontabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 2px 0; }
.regiontabs a { padding: 6px 16px; border-radius: 999px; border: 1px solid #d5dbe8; background: #fff; color: var(--ink); font-size: .93rem; font-weight: 600; }
.regiontabs a:hover { border-color: var(--brand); text-decoration: none; }
.regiontabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.orgbar .rg { margin: 10px 4px 0; font-size: .86rem; font-weight: 700; color: var(--navy); }
.orgbar .rg + ul { padding-top: 8px; }
.orgbar .rghint { display: none; margin: 10px 4px 6px; font-size: .84rem; color: var(--muted); }
@media (max-width: 640px) {
    .regiontabs { margin-top: 10px; gap: 5px; }
    .regiontabs a { padding: 5px 12px; font-size: .86rem; }
    /* 휴대폰에서 "전체 지역"일 때는 아이콘이 너무 많아 지역 단추만 보여 줍니다. */
    .orgbar.all ul, .orgbar.all .rg { display: none; }
    .orgbar.all .rghint { display: block; }
}

/* 광역시 아이콘(누르면 그 시의 구·군으로 바뀜)과 "처음으로" 줄 */
.orgbar .metro .lg { background: #fff; border-color: #d5dbe8; }
.orgbar .metro .nm { font-weight: 700; color: var(--navy); }
.orgbar .metro .nm::after { content: " ›"; color: var(--brand); }
.orgbar .rg { display: block !important; margin: 12px 4px 0; font-size: .9rem; color: var(--ink); font-weight: 400; }
.orgbar .rg a { display: inline-block; margin-right: 10px; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 700; }
.orgbar .rg a:hover { text-decoration: none; background: var(--brand); color: #fff; }

/* 머리 상자 안쪽이 따로 스크롤되어 빈 공간이 생기지 않게 */
.pub .hero, .pub .hero.jobs { overflow: clip; }

/* 기관 아이콘: PC 한 줄에 11개 (휴대폰은 6개) */
.orgbar ul { grid-template-columns: repeat(11, 1fr); gap: 14px 2px; }
.orgbar a { font-size: .82rem; }
.orgbar .lg { max-width: 70px; height: 56px; }
.orgbar .count { margin-right: -36px; }
@media (max-width: 640px) {
    .orgbar ul { grid-template-columns: repeat(6, 1fr); gap: 10px 0; }
    .orgbar a { font-size: .68rem; letter-spacing: -.02em; }
    .orgbar .lg { max-width: 50px; height: 44px; border-radius: 12px; }
    .orgbar img { height: 30px; }
    .orgbar .count { margin-right: -27px; font-size: .62rem; padding: 0 4px; }
}

@media (max-width: 640px) { .orgbar .metro .nm { font-size: .62rem; letter-spacing: -.05em; } .orgbar .metro .nm::after { content: none; } .orgbar .metro .lg { border-color: var(--brand); } }
