/* 빈집 × 상권 page. Tokens mirror styles.css; three-column layout: controls 360px · map · analysis 420px. */
:root{--ink:#16191d;--muted:#727b88;--line:#e7e9ed;--bg:#f5f6f8;--yellow:#fff100;--green:#00836d;--red:#ca5864;--bar:52px;--left:360px;--right:420px}
*{box-sizing:border-box}
html,body{height:100%}
body.vacancy-view{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Wanted,Arial,sans-serif;overflow:hidden}
button,input,select{font:inherit}button{border:0;background:none;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}
button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #a89900;outline-offset:3px}
.muted{color:var(--muted)}

/* Header: same bar as the other modes. */
.vacancy-view .view-bar{height:var(--bar);min-height:var(--bar);padding:0 24px;gap:20px;border-color:var(--line)}
.vacancy-view .view-product{gap:9px}.vacancy-view .view-product b{font:780 13px Archivo,Wanted,sans-serif}
.vacancy-view .work-monogram{display:grid;place-items:center;width:29px;height:30px;border-radius:5px;padding:0 3px 3px 0;background:var(--yellow);color:#242a30;font:850 26px Archivo,Wanted,sans-serif;letter-spacing:-3px}
.vacancy-view .work-product-title{font-size:12px;font-weight:600;color:#5f6a75;padding-left:12px;border-left:1px solid var(--line)}
.vacancy-view .header-quarter{display:flex;align-items:center;gap:8px;font-size:10px;color:#84898e;white-space:nowrap}
.vacancy-view .header-quarter select{border:0;background:#f6f7f8;border-radius:6px;padding:8px 7px;font-size:11px;font-weight:600;color:#41474c;max-width:140px}

/* Shell */
.vacancy-shell{position:fixed;top:var(--bar);left:0;right:0;bottom:0;display:grid;grid-template-columns:var(--left) minmax(0,1fr) var(--right)}
.controls,.analysis{overflow-y:auto;background:#fff;padding:22px 20px 32px}
.controls{border-right:1px solid var(--line)}.analysis{border-left:1px solid var(--line)}
.controls .page-kicker{margin:0 0 4px;font-size:10px;font-weight:700;letter-spacing:.4px;color:#8a9299;text-transform:uppercase}
.controls h1{margin:0;font-size:20px;font-weight:750;letter-spacing:-.5px}
.controls .lead{margin:8px 0 10px;font-size:12px;line-height:1.7;color:var(--muted)}
.controls .cross-service{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 14px;font-size:11px}.cross-service a{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;border:1px solid #cfdbe6;border-radius:6px;background:#fff;color:#2f5c82;font-weight:600;text-decoration:none;white-space:nowrap}.cross-service a:hover{background:#f1f5f9}
.status{font-size:12px;color:#8a5a00;background:#fff8dc;border-radius:6px;padding:8px 10px;margin-bottom:12px}.status[hidden]{display:none}
.control-group{margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}
.control-group h2,.control-group legend{font-size:11px;font-weight:700;letter-spacing:.4px;color:#5f6a75;text-transform:uppercase;padding:0}
.control-group h2{margin-bottom:10px}
.control-group .field{display:flex;align-items:center;gap:8px;font-size:12px;color:#41474c;margin-bottom:8px}
.control-group .field>span{flex:none;width:64px;color:var(--muted)}
.control-group select{flex:1;min-width:0;border:1px solid var(--line);border-radius:6px;padding:7px 8px;background:#fff;font-size:12px}
.metric-group{display:grid;gap:8px;padding-top:12px}
#vacGroup{background:#f8fafc;border-color:#d7e2ec}#mktGroup{background:#fbf9f2;border-color:#e8dfc0}
.metric-option{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid transparent;border-radius:8px;background:#fff;cursor:pointer;font-size:12px}
.metric-option:has(input:checked){border-color:#a89900;box-shadow:0 0 0 2px #fff10066}
.metric-option input{margin:3px 0 0;accent-color:#858307}
.metric-option span{display:grid;gap:3px;min-width:0}
.metric-option strong{font-weight:700;color:var(--ink)}
.metric-option small{font-size:10px;color:#5f6a75}
.metric-option em{font-style:normal;font-size:10px;line-height:1.55;color:var(--muted)}
.selected-chip{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px;border-radius:8px;background:#fffbd6;font-size:12px}
.selected-chip span{flex:1}.selected-chip a{font-weight:600;color:#514e00;white-space:nowrap}.selected-chip button{font-size:16px;line-height:1;color:#514e00}
.method{border:1px solid var(--line);border-radius:10px;padding:0 14px 6px;font-size:11px;line-height:1.65;color:#41474c}
.method summary{cursor:pointer;padding:12px 0;font-weight:700;font-size:12px}
.method dl{margin:0;display:grid;gap:10px}.method dt{font-weight:700;color:var(--ink)}.method dd{margin:2px 0 0}.method ul{margin:4px 0 0;padding-left:16px}
.method .limits{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.method a{color:#2f5c82;font-weight:600}

/* Map */
.map-pane{display:flex;flex-direction:column;min-width:0;padding:18px 22px;background:radial-gradient(ellipse at center,#fafbfc 0,#f1f3f6 70%)}
.map-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:8px}
.link-button{font-size:11px;font-weight:600;color:#2f5c82;padding:6px 10px;border:1px solid #cfdbe6;border-radius:6px;background:#fff}
.district-map{flex:1;min-height:0}.district-map svg{width:100%;height:100%;display:block}
.district-map .district{stroke:#fff;stroke-width:110;cursor:pointer;transition:fill .15s,stroke .15s}
.district-map .district:hover{stroke:#a89900;stroke-width:160}
.district-map .district.selected{stroke:#5c5900;stroke-width:220}
.district-map .district:focus-visible{outline:none;stroke:#111;stroke-width:220}
.district-label{font:600 700px Wanted,Arial,sans-serif;fill:#3a434b;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:90;stroke-linejoin:round}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:10px;font-size:11px;color:#41474c}
.legend-item{display:inline-flex;align-items:center;gap:6px}.legend-item i{width:14px;height:14px;border-radius:3px;border:1px solid #0001}
.legend-note{color:var(--muted);font-size:10px}

/* Analysis panel */
.panel-section{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.panel-section:last-child{border-bottom:0}
.section-head{margin-bottom:10px}.section-head h2{font-size:14px;font-weight:700;letter-spacing:-.3px}.section-head p{font-size:10px;line-height:1.6;margin-top:3px}
.scatter svg{width:100%;height:auto;display:block;font-family:Wanted,Arial,sans-serif}
.scatter .axis{stroke:#c6ccd3;stroke-width:1}.scatter .zero{stroke:#d9dde2;stroke-dasharray:3 3}
.scatter .tick{font-size:9px;fill:#7b858f}.scatter .axis-label{font-size:10px;fill:#41474c;font-weight:600}
.scatter .dot{fill:#5f87a8;fill-opacity:.75;stroke:#fff;stroke-width:1.5;cursor:pointer;transition:r .12s}
.scatter .pt-label{font-size:10px;fill:#16191d;paint-order:stroke;stroke:#fff;stroke-width:3;opacity:0;pointer-events:none;transition:opacity .12s}
.scatter .pt:hover .dot,.scatter .pt:focus-visible .dot{r:7;fill-opacity:1}
.scatter .pt:hover .pt-label,.scatter .pt:focus-visible .pt-label,.scatter .pt.selected .pt-label{opacity:1}
.scatter .pt.selected .dot{fill:var(--yellow);fill-opacity:1;stroke:#5c5900;stroke-width:2;r:7}
.scatter .pt:focus-visible{outline:none}
.scatter .empty{font-size:12px;color:var(--muted);padding:20px 0}
.corr{margin-top:8px;font-size:12px;line-height:1.6}.corr strong{font-size:14px}
.table-wrap{overflow-x:auto}
.data-table{width:100%;border-collapse:collapse;font-size:11px}
.data-table th,.data-table td{padding:6px 6px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.data-table th{font-weight:600;color:#5f6a75}
.data-table thead th{text-align:right;vertical-align:bottom}.data-table thead th button{font-size:10px;font-weight:700;color:#5f6a75;padding:0;text-align:right}.data-table thead th[aria-sort] button{color:var(--ink)}
.data-table th[scope=row]{text-align:left;color:var(--ink)}.data-table th[scope=row] button{font-weight:600;padding:0;text-decoration:underline dotted #9aa3ad;text-underline-offset:3px}
.data-table tr.selected td,.data-table tr.selected th{background:#fffbd6}
.data-table tr.unjoined td,.data-table tr.unjoined th{color:#8a929a}
.data-table .tag{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:4px;background:#e4eef6;color:#2f5c82;font-size:9px;font-weight:700;vertical-align:middle}
.data-table td.types{white-space:normal;min-width:120px;font-size:10px;color:#5f6a75}
.panel-section[hidden],.selected-chip[hidden]{display:none}
.data-table tr.incomplete td.vacant{white-space:normal;font-size:10px;color:#8a5a00}
.legal-raw{margin-top:8px;font-size:10px;color:#5f6a75}.legal-raw[hidden]{display:none}.legal-raw summary{cursor:pointer;font-weight:600}.legal-raw .table-wrap{margin-top:6px}
.grade-bar{margin:0 0 12px;font-size:10px;color:#41474c}.grade-bar[hidden]{display:none}
.grade-bar .bar{display:flex;height:12px;border-radius:4px;overflow:hidden;background:#eceeef}.grade-bar .bar i{display:block;height:100%}
.grade-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 0 0;padding:0;list-style:none}.grade-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px;border:1px solid #0001}
.grade-legend small{font-size:9px;font-weight:700;color:#8a5a00}.grade-bar p{margin-top:4px}
.data-table a{color:#2f5c82;font-weight:600}

@media(max-width:1200px){:root{--left:300px;--right:360px}}
@media(max-width:1000px){
 .vacancy-shell{position:static;display:block;height:auto;padding-top:var(--bar)}
 body.vacancy-view{overflow:auto}
 .controls,.analysis{border:0;border-bottom:1px solid var(--line)}
 .map-pane{height:420px}
 .vacancy-view .view-help{display:none}
}
@media(max-width:760px){
 .vacancy-view .view-bar{padding:0 12px;gap:10px;overflow-x:auto;scrollbar-width:none}.vacancy-view .view-product b,.vacancy-view .work-product-title,.vacancy-view .header-quarter span{display:none}.vacancy-view .data-notice-trigger{font-size:10px;padding:6px}
 .controls,.analysis{padding:16px 14px 24px}.map-pane{padding:12px;height:360px}
}
@media(prefers-reduced-motion:reduce){.district-map .district,.scatter .dot,.scatter .pt-label{transition:none}}
