/* 공통 부품 스타일 — 여러 페이지가 같은 모양을 쓰도록 한 곳에서 관리 — 제조업 홈 엔진 파일(수정은 templates/mfg-site/engine에서) — 2026.11.17 작성 */

/* 하단 공장 전경: 본문 폭(1140px) 안에 원본 해상도(1200px) 그대로 */
.panorama{max-width:1180px;margin:0 auto;padding:64px 20px}
.panorama img{width:100%;height:auto;display:block}

/* Contact 서브메뉴: 원본처럼 상단 헤더 아래에 고정 */
.subnav{position:sticky;top:88px;z-index:900;background:var(--brand);text-align:center}
.subnav a{display:inline-block;color:#fff;font-size:14px;padding:14px 14px 12px;margin:0 8px;border-bottom:2px solid transparent}
.subnav a.active{border-bottom-color:#8fd4c1;color:#dff5ec}
.subnav a:hover{color:#dff5ec}

@media(max-width:768px){
  .panorama{padding:44px 20px}
  .subnav{top:64px}
}

/* 위치 지도: 실제 지도 + 네이버·카카오 바로가기 */
.map iframe{display:block;width:100%;height:380px;border:1px solid var(--line,#d5d9e2);background:var(--surface-2,#eef0f3)}
.map-links{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.map-links a{font-size:14px;font-weight:700;padding:8px 18px;border-radius:999px;background:#03c75a;color:#fff}
.map-links a+a{background:#fee500;color:#191919}
@media(max-width:768px){.map iframe{height:280px}.map-links{justify-content:stretch}.map-links a{flex:1;text-align:center}}

/* 공통 텍스트 편집기(rte.js) */
.rte-box{border:1px solid var(--line,#cfd3da);border-radius:6px;background:var(--surface,#fff)}
.rte-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px;border-bottom:1px solid var(--line,#e5e7eb);background:var(--surface-2,#f9fafb);border-radius:6px 6px 0 0;font-size:13px}
.rte-bar select,.rte-bar button,.rte-bar label{height:32px;border:1px solid var(--line,#d1d5db);border-radius:5px;background:var(--surface,#fff);color:var(--text,#111);font:inherit;font-size:13px;padding:0 9px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.rte-bar button:hover,.rte-bar label:hover{background:var(--surface-2,#f3f4f6)}
.rte-bar .b{font-weight:800}.rte-bar .i{font-style:italic}.rte-bar .u{text-decoration:underline}.rte-bar .s{text-decoration:line-through}
.rte-bar .cpick{padding:0 6px 0 9px;gap:5px}
.cpick .cl{display:inline-flex;flex-direction:column;align-items:center;line-height:1.1}
.cpick .cbar{display:block;width:18px;height:4px;margin-top:2px;border:1px solid rgba(0,0,0,.15);color:var(--text,#111)}
.cpick .caret{font-size:9px;color:var(--muted,#888)}
/* 색 고르기 — 펼침 목록과 "다른 색" 창 */
.cpop{position:fixed;z-index:5000;width:232px;padding:8px 10px 6px;background:#fff;border:1px solid #c8ccd2;border-radius:6px;box-shadow:0 6px 20px rgba(0,0,0,.18);font:13px 'Pretendard Variable',Pretendard,-apple-system,'Malgun Gothic',sans-serif;color:#222}
.cpop p{font-size:12px;font-weight:700;color:#444;margin:8px 0 6px}
.cpop .sws{display:grid;grid-template-columns:repeat(10,1fr);gap:3px}
.cpop .sw{display:block;width:100%;aspect-ratio:1;border:1px solid rgba(0,0,0,.12);border-radius:2px;padding:0;cursor:pointer}
.cpop .sws .sw:hover{outline:2px solid #e8610a;outline-offset:1px}
.cpop hr{border:0;border-top:1px solid #e5e7eb;margin:8px -10px 4px}
.cpop .crow{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;padding:6px 4px;border-radius:4px;font:inherit;color:#222;cursor:pointer;text-align:left}
.cpop .crow:hover{background:#f1f3f5}
.cpop .crow .sw{width:16px;height:16px;flex:0 0 16px}
.cpop .sw.auto{background:#000}
.cpop .sw.none{background:linear-gradient(to top right,#fff 45%,#e11 46%,#e11 54%,#fff 55%)}
.cpop .ico{width:16px;text-align:center}
.cd-bg{position:fixed;inset:0;z-index:5001;background:rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;padding:12px;font:13px 'Pretendard Variable',Pretendard,-apple-system,'Malgun Gothic',sans-serif;color:#222}
.cd{display:flex;gap:16px;background:#f7f8fa;border:1px solid #c8ccd2;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:14px;max-width:100%}
.cd-main{width:300px}
.cd-tabs{display:flex;border-bottom:1px solid #c8ccd2}
.cd-tabs button{border:1px solid transparent;border-bottom:0;background:none;padding:6px 12px;font:inherit;cursor:pointer;margin-bottom:-1px;border-radius:4px 4px 0 0;color:#444}
.cd-tabs button.on{background:#fff;border-color:#c8ccd2;color:#111;font-weight:600}
.cd-tab{background:#fff;border:1px solid #c8ccd2;border-top:0;padding:10px 12px 12px}
.cd-l{font-size:12px;color:#444;margin-bottom:6px}
.honey{display:block;width:100%;height:auto}
.honey polygon{stroke:#fff;stroke-width:1;cursor:pointer}
.honey polygon.g{stroke:#b9bec6}
.honey polygon:hover{stroke:#111;stroke-width:1.6}
.honey polygon.on{stroke:#111;stroke-width:2.4}
.cd-spec{display:flex;gap:10px;margin-bottom:10px}
.cd-spec .sp{position:relative;flex:1;cursor:crosshair;touch-action:none}
.cd-spec canvas{display:block;width:100%;height:180px;touch-action:none}
.cd-spec .lm{position:relative;width:16px;cursor:ns-resize}
.cd-spec .dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000;pointer-events:none}
.cd-spec .arrow{position:absolute;right:-9px;margin-top:-5px;border:5px solid transparent;border-right:7px solid #111;pointer-events:none}
.cd-grid{display:grid;grid-template-columns:72px 1fr;gap:6px 8px;align-items:center}
.cd-grid label{font-size:12px;color:#444}
.cd-grid input,.cd-grid select{height:28px;border:1px solid #b9bec6;border-radius:3px;padding:0 6px;font:inherit;background:#fff;color:#111;width:100%}
.cd-side{display:flex;flex-direction:column;gap:8px;width:96px}
.cd-side button{height:32px;border:1px solid #b9bec6;border-radius:4px;background:#fff;font:inherit;cursor:pointer}
.cd-side .cd-ok{background:#e8610a;border-color:#e8610a;color:#fff;font-weight:700}
.cd-cmp{margin-top:auto;display:flex;flex-direction:column;align-items:center;font-size:12px;color:#444}
.cd-cmp i{display:block;width:64px;height:30px;border:1px solid #888}
.cd-cmp i+i{border-top:0}
@media(max-width:480px){.cd{flex-direction:column}.cd-main{width:auto}.cd-side{width:auto;flex-direction:row;flex-wrap:wrap}.cd-side button{flex:1}.cd-cmp{flex-direction:row;gap:6px;width:100%;justify-content:center}}
.rte-bar .sep{width:1px;height:22px;background:#e5e7eb;margin:0 3px}
.rte-area{min-height:260px;padding:14px 16px;outline:none;line-height:1.7;color:var(--text,#222);word-break:break-word}
.rte-area.empty:before{content:attr(data-placeholder);color:var(--muted,#9ca3af)}
.rte-area ul,.rte-area ol,.rich ul,.rich ol{padding-left:22px;margin:6px 0}
.rich a,.rte-area a{color:#1a56db;text-decoration:underline}
