/*
 * 전기넷(jungi) 사용자사이트 레이아웃 chrome.
 * 시각 스펙 = CI3 resource/common/css {reset, common_layout, header, footer}.css 실측.
 * 테마 색은 토큰(--brand-*)으로 분리 — 건설넷 igunsul 에서 토큰만 교체.
 *
 * 자산: 무빌드 public. CSS background 는 동일 출처 절대경로 url(/images/...) 로 참조.
 */

/* ═══ Noto Sans KR 셀프호스팅 — 라이브 `resource/common/css/fonts.css?v=20241211` 이식
 *
 * 원문 = **v36 korean 서브셋** 9종(100~900). 라이브에서 내려받아 MD5 대조 완료 — 이 폴더의
 * 파일들은 라이브가 서빙하는 것과 **바이트 동일**하다(실측, 8개 빌드 전수).
 * 라이브가 교체하기 전 빌드를 쓰면 한글 advance 는 같아 레이아웃은 안 밀리지만 **글자 모양이**
 * 미세하게 갈린다.
 *
 * ⚠ **파일명은 "굵기 슬롯"이지 빌드 번호가 아니다.** `-700.woff2` 안에는 **600(SemiBold) 빌드**가
 *   들어 있다 — 라이브 fonts.css 가 `font-weight:700` 을 600 파일로 물려 두었기 때문이다(원문 그대로):
 *       font-weight: 700;  src: url('...noto-sans-kr-v36-korean-600.woff2')
 *   즉 라이브의 굵은 글씨는 실제로 SemiBold 다. 오타로 보이지만 그게 지금 라이브의 모습이고,
 *   여기서 진짜 700 빌드를 넣으면 화면의 모든 굵은 글자가 라이브보다 두꺼워진다.
 *   ⇒ 되돌리려면 `-700.woff2` 를 v36-700 빌드로 바꾸면 된다(이 주석과 함께 판단할 것).
 *   슬롯 이름을 쓰는 덕에 `/fonts/noto-sans-kr/noto-sans-kr-{400,500,700}.woff2` 를 직접
 *   참조하는 화면별 CSS 40여 개도 손대지 않고 같은 매핑을 따라간다.
 *
 * `font-display: swap` 은 라이브 9개 선언 전부가 그렇다 — 바꾸지 말 것(폰트 전환 시 글자가
 * 살짝 흔들리는 건 라이브도 같다).
 *
 * ⚠ **200·600·800 은 선언하지 않는다** — 위 9종은 건/전이 싣지 않는 ebei `fonts.css` 의 수다.
 *   건/전 라이브의 Noto 선언 = v21 `font_notosans.css` 6종(100·300·400·500·700·900) + CDN 4종뿐이라 라이브 브라우저는
 *   600→700 · 800→900 · 200→100 의 **실제 면**으로 그린다. 여기서 그 셋을 선언하면 우리만 한 단계 얇게(굵게) 그린다.
 *   화면 CSS 의 `font-weight:600` 등은 원문 그대로 둔다 — 같은 매칭으로 떨어지는 것이 목표.
 * ═══ */
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url(/fonts/noto-sans-kr/noto-sans-kr-100.woff2) format('woff2');
}
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(/fonts/noto-sans-kr/noto-sans-kr-300.woff2) format('woff2');
}
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/noto-sans-kr/noto-sans-kr-400.woff2) format('woff2');
}
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/noto-sans-kr/noto-sans-kr-500.woff2) format('woff2');
}
/* ⚠ 700 슬롯 = 600(SemiBold) 빌드 — 위 머리주석 참조 */
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/noto-sans-kr/noto-sans-kr-700.woff2) format('woff2');
}
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(/fonts/noto-sans-kr/noto-sans-kr-900.woff2) format('woff2');
}

:root {
    --brand-primary: #00993a;       /* GNB·강조 */
    --brand-primary-dark: #00772f;  /* GNB hover */
    --brand-sub-hover: #dfffd9;     /* 서브GNB hover */
    --brand-tint: #f4faf4;          /* 검색창·메뉴 배경 */
    --brand-family-link: #6ee999;   /* 푸터 패밀리 강조 링크 */
    --brand-on-primary-muted: #def0e5; /* 브랜드색 반전면 위 보조 텍스트(강의일정 카드 hover 헤더) */

    --text: #202020;
    --text-muted: #8491a7;
    --footer-bg: #2b2b39;
    --footer-line: #41414d;
}

/* ═══ CI3 전역 reset 이식 (원문 = resource/common/css/reset_jungi.css)
 *
 * ⚠ 원본 `reset_jungi.css` 는 건설넷 `reset.css` 와 **바이트 동일**(md5 앞8 `f1bb5bbf` · diff 0) —
 *   양 사이트가 갈릴 자리가 아니다. 아래 이식 선언은 건설넷 `css/igunsul/layout.css` 와
 *   **문자 단위로 같다**(색 토큰이 들어가지 않는 몫이라 델타 0).
 *
 * 원문은 이 파일을 head 의 **첫 stylesheet** 로 싣는다 — 가장 약한 겹이다.
 * 아래 블록은 원문 **줄 순서**(:3 → :4 → :5 → :7 → :8 → :9 → :11 → :13 → :15 → :19)를 따른다.
 *
 * ⚠ 이식하지 않은 두 줄(재유입 금지):
 *   · reset_jungi.css:13 의 `overflow: hidden` 몫  — `ul,ol,li` 전역에 걸면 `.util-drop`(아래 유틸바
 *     드롭 패널)처럼 li 안에 absolute 로 띄우는 우리 구조가 통째로 잘린다. 원문은 그 패널이
 *     li 밖(`.util`)이라 같은 문제가 없다.
 *   · reset_jungi.css:14 `ol, li { float: left }`  — 사용자사이트 blade 의 `<li>` 2,453개 중 우리 CSS 가
 *     float/display 를 명시한 자리는 약 5% 다. 원문 tpl 은 이 전역 float 을 전제로 쓰였지만
 *     우리 blade 는 그 전제 없이 쓰였다 — 마크업 밑바탕이 달라 1:1 이식이 성립하지 않는다.
 *     필요한 화면은 지금처럼 **국소로** 되살린다(joint-contract·order-schedule·tip·order-data·event).
 *   · IE7 해킹(`*margin`·`*padding`·`*border`)은 브라우저가 파싱 단계에서 버려 이식하지 않는다.
 *   · `reset_jungi.css:2` `html, body { height: 100% }` · `:17` `.skip, .hide` · `:18` `.clear` — 실측으로 보류.
 *     `.clear` 는 쓰는 blade 57파일이 전부 그 화면이 싣는 CSS 에서 선언을 받고, `.skip/.hide` 5곳은 국소 규칙이
 *     덮어 지금 노출이 0 이다. `height:100%` 는 닿는 자리를 재지 않았다(필요해지면 그때 실측).
 * ═══ */

/* ⚠ CI3 에는 이 전역 border-box 가 없다(원문 전역은 content-box). 우리가 더한 것이라
   여러 화면이 `box-sizing: content-box` 로 되돌리고 있다. */
* { box-sizing: border-box; }

/* CI3 reset_jungi.css:3 */
body { background: #fff; }
/* CI3 reset_jungi.css:4 — 여백·테두리 0. 전에는 `html, body` 와 `ul` 만 옮겨 두어(부분 이식)
   p·h1~h5·dl/dt/dd·form·button 의 UA 기본 여백이 살아 있었다: 카드 340px(원문 298) ·
   댓글 상자마다 +28px · 버튼 UA 베벨·안여백이 그 결손의 실측 증상이다.
   `html` 은 원문도 여백을 지우지 않는다(UA 기본이 이미 0) — 그래서 목록에 없다. */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, form, fieldset, p, button {
    margin: 0;
    padding: 0;
    border: 0;
}
/* CI3 reset_jungi.css:5 완전 이식 — font-family/letter-spacing/color 를 요소별로 재선언한다.
   body 한 곳에만 letter-spacing:-0.05em 을 두면 자식은 '계산된 고정 px'(14px→-0.7px)을 상속받아,
   14px 이 아닌 요소(제목 24/18px·본문 16px 등)가 라이브의 요소별 -0.05em 재계산과 어긋난다.
   button 은 폼 요소라 폰트를 상속조차 하지 않아 Arial 로 떨어진다.
   색만 이 파일의 토큰 관례를 따른다(--text = #202020, 원본 값과 동일). */
body, div, h1, h2, h3, h4, h5, th, td, input, p, select, button, ul, li, textarea {
    color: var(--text);
    font-family: 'Noto Sans KR', AppleSDGothicNeo-Regular, '맑은 고딕', 'Malgun Gothic', 나눔고딕, 돋움, Dotum, 굴림, Gulim, 'Apple SD Gothic Neo', sans-serif, verdana;
    letter-spacing: -0.05em;
}
/* CI3 reset_jungi.css:7 — `input[type=button]` 손 모양 커서(UA 기본은 화살표). `button` 은 아래 `:19`. */
input[type=button] { cursor: pointer; }
/* CI3 reset_jungi.css:8 — 전에는 `body` 의 font-size 만 옮겨 두어 th 는 UA `bold`, input·select 는
   UA `13.333px` 로 떨어져 있었다(둘 다 라이브와 발산). 폼 컨트롤은 타이포를 상속하지 않으므로
   여기 목록에 직접 들어가야 한다. */
body, th, td, input, select {
    font-size: 14px;
    font-weight: normal;
}
/* CI3 reset_jungi.css:12 — address·caption·em 의 UA 기울임·굵기 해제(전역 reset 몫). */
address, caption, em { font-weight: normal; font-style: normal; }
/* CI3 reset_jungi.css:9 — img 는 :4 목록에 없어 테두리를 따로 지운다(원문도 같은 구조). */
img { border: 0; vertical-align: middle; }
/* CI3 reset_jungi.css:11 — 표는 border-collapse:collapse 가 전역 기본. 미이식 시 셀 세로보더가 겹치지
   않아 셀 x/폭/높이·표 좌보더가 라이브와 어긋난다(separate 는 border-spacing 만큼 벌어짐). */
table { border-collapse: collapse; border-spacing: 0; }
/* CI3 reset_jungi.css:13 중 `list-style` 몫만(위 ⚠ 참조 — `overflow: hidden` 은 미이식). */
ul, ol, li { list-style: none; }
/* CI3 reset_jungi.css:15 — 전에는 img 만 옮겨 두어 체크박스·셀렉트·textarea 가 baseline 에 서서
   라이브보다 내려앉았다(실측 +4px). */
img, input, select, textarea { vertical-align: middle; }
/* CI3 reset_jungi.css:19 — 버튼 UA 외형(회색 buttonface 배경·네이티브 베벨)을 걷고 손 모양 커서. 원문은 전 화면에 깔지만
   재구축엔 없어 화면마다 `cursor:pointer` 를 덧대 왔다(결제 화면 등 — 이제 중복이지만 무해). */
button { cursor: pointer; background: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* ⚠ 원문 reset_jungi.css:22 는 `a { cursor: pointer; color: #202020 }` 다 — 우리는 `color: inherit`
   이고 cursor 를 주지 않는다. */
a { color: inherit; text-decoration: none; }

/* position 은 장식이 아니라 계약이다 — 레거시(common_layout.css:40)와 같아야 안쪽 absolute 자식이 같은 자리에 선다.
   빠지면 그 자식들이 컨테이너 대신 뷰포트를 기준으로 잡혀 화면이 깨지지 않은 채 좌표만 조용히 어긋난다. */
.container { width: 1200px; margin: 0 auto; position: relative; }

/* ===== CI3 전역 common.css 이식 — 자동완성(autofill) 덮개 ===== */
/* 원문 `resource/common/css/common.css:153~162` 선언 그대로(`!important` 포함) — 원문은 모든 화면 헤드에서 싣는다.
   저장된 아이디·전화·주소가 채워지면 Chrome 이 칸을 연파랑(#e8f0fe)으로 칠하는데, 원문은 흰 inset 그림자로 덮어
   원래 칸처럼 보이게 한다. 흰 배경을 실제로 그리는 건 `box-shadow … inset` 이고 `transition …s` 는 배경 전환을
   사실상 무한 지연시키는 꼼수다 — 원문 그대로라 어느 쪽도 걷지 말 것.
   ⚠ 쿠키 0 픽셀 대조는 자동완성이 일어나지 않아 이 차이를 못 잡는다 — 저장된 값이 있는 브라우저로 사람 눈 확인.
   ⚠ 이 시트를 싣지 않는 레이아웃(`layout/com-info` · `layout/popup`)에는 안 닿는다 — 업체정보·마이페이지 사본
   (`shared/my-company/base-common.css` · `shared/mypage/common.css`)이 그쪽 몫을 진다. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    outline: none;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-transition: background-color 9999s ease-out;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
}
/* 원문 `resource/common/css/common_jungi.css:3` (전역) — 입력칸 안내문 색. 원문은 전 화면에 깔고, 재구축은 화면 CSS
   51곳이 같은 값을 재선언해(지역 복제) 그 밖의 화면만 UA 회색(#757575)이었다.
   이 시트를 싣지 않는 `layout/popup`·`layout/com-info` 에는 안 닿는다(위 자동완성과 같은 범위). */
input::placeholder { color: #8491a7; }

/* ===== 헤더 ===== */
/* 수치는 원문 `resource/common/css/header_jungi.css` 줄(`:n`)이다. 박스 모델은 원문처럼 content-box(유틸 li 의
   padding 이 폭·높이에 더해진다 — 우리 전역 border-box 를 이 범위에서만 되돌린다 · 전체메뉴 패널은 범위 밖). */
.header-main, .header-main *, .gnb, .gnb * { box-sizing: content-box; }
.site-header { position: relative; width: 100%; }   /* 전체메뉴 패널(.all-menu)의 기준 상자 — 패널이 이 상자 바닥(= GNB 아래)에 붙는다(#2431) */

/* 공고 페이지 고정 묶음 — 원문 `#headerFixed{position:fixed; background-color:white; z-index:100000; width:100%}`(header_jungi.css:66) 등가.
   레이아웃이 body.gnb-sticky 화면에서만 헤더 + 띠(header_band)를 이 상자로 감싸고, 바로 뒤 빈칸(.site-header-fixed-area)이
   묶음 높이를 흐름에 남긴다(높이 = layout-shell.js bindFixedHeader). fixed 라 가로로 스크롤해도 창에 그대로 있고
   창 밖으로 나간 GNB 미니배너는 잘릴 뿐 문서 폭을 늘리지 않는다.
   z-index 는 재구축 층 체계(헤더 500 · 레이어·툴팁이 그 위)를 그대로 쓴다 — 원문 100000 은 원문 레이어 체계 값.
   틀고정 화면 + 창이 최소 폭(1200 · 나의방·분석컨설팅 1400)보다 좁으면 원문은 묶음을 absolute·width auto 로 풀어 문서와 같이
   스크롤되게 한다(header.js:212-249) → bindFixedHeader 가 data-narrow 를 단다. 그때는 넘친 배너가 문서 폭을 늘려 가로 스크롤로 닿는다(원문 동일). */
.site-header-fixed { position: fixed; top: 0; left: 0; width: 100%; z-index: 500; background: #fff; }
.site-header-fixed[data-narrow] { position: absolute; width: auto; }
/* 묶음 안 쌓임 순서 = 헤더(GNB 드롭다운·전체메뉴) 500 > 미니달력 401 > 띠·접기 줄 400 — sticky 시절 층 값 그대로(드롭다운이 띠 밑에 깔리지 않게). */
.site-header-fixed > .site-header { position: relative; z-index: 500; }
/* 틀고정 목록 머리(freezeWrap)의 sticky 한계 = 목록 영역(.ijContentWrap) 끝. 목록이 짧으면 스크롤 끝에서 머리가 그 끝에 밀려
   올라간다(예: 코칭 낙찰 1행 9px). 본문 최소 높이(.ijMainContent min-height 660)를 물려받아 한계를 본문 끝까지 늘린다 —
   목록 영역이 본문의 유일한 자식이라 본문 높이·풋터 자리는 그대로(실측 불변). CI3 는 freezeWrap 이 fixed 라 이 한계가 없다.
   ⚠ 그래서 틀고정 + 내용이 660 보다 짧을 때 wrap 상자만 원문(내용 높이)과 다르다(화면 무영향 · sticky 의 필연).
   상자까지 맞추려면 fixed(+스크롤 JS) 또는 스크롤 연동 애니메이션(animation-timeline: scroll)로 바꿔야 한다. */
body.gnb-sticky .ijMainContent > .ijContentWrap.freeze { min-height: inherit; }

/* 실제 박스모델 그대로 (로고 margin-top 20 / 유틸 float right margin-top 30 / li padding) → 픽셀 일치 */
.header-main .container {
    position: relative;
    height: 90px;
}
.logo { float: left; margin: 0; margin-top: 20px; font-size: 28px; } /* :4 · 28px = UA h1 2em 과 같은 값(원문은 선언 없음) — 전역 .logo 라 h1 밖 사용처(업체정보·착륙)를 흔들지 않게 둔다 */
.logo img { vertical-align: middle; } /* 실제: inline img + 28px strut(line-height normal) 라인박스에 정렬 */

.util { position: relative; float: right; margin-top: 30px; }  /* :5 */
.util-links { float: left; margin-top: 5px; }                    /* :6 */
.util-links li { float: left; padding: 5px 7px 0 7px; }          /* :7 · float = reset_jungi.css:14 */
/* 유틸 li 는 기준점이 아니다(static) — 드롭 패널(.util-drop)은 li 안에 있어도 원문처럼 `.util` 기준으로 선다(아래 패널 절).
   원문 고객센터·커뮤니티 li 의 인라인 `position: relative` 는 답변 점 몫이라, 그 점은 같은 자리를 `a` 기준으로 환산했다(아래 답변 점 절). */
.util-links li a { color: #333; }                                /* :8 — a 는 원문처럼 inline(표시·크기 선언 없음) */
.util-links .angle-down {
    display: inline-block;
    width: 7px;
    height: 5px;
    margin-left: 4px;
    background: url(/images/jungi/icon/arrow-down.svg) no-repeat;
    vertical-align: middle;
}
/* 유틸바 드롭 패널(입찰실무·고객센터·커뮤니티) — CI3 header.css:10~19 `.util .menu` 이식. 열림은 원문 header.js:108~122 와
   같은 click 토글(.is-open — layout-shell.js bindClickDrops). 좌표 = CI3 `.menu.{bid|customer|community}`
   (header.css:12~14 · `.util` 기준 top 32 · right 400/320/250)를 메뉴별 클래스로 그대로 — li 가 static 이라 기준이 `.util` 이다(li 기준
   환산 `right:8px` 하나로는 커뮤니티만 맞고 입찰실무·고객센터는 앞 li 의 글자 폭만큼 흔들린다). 상자 top 32 = wrapper top 30 + padding 2(패널 상자는 안쪽 ul).
   z-index 20 = CI3 값 그대로(뒤에 오는 `.gnb` 가 position:relative 라 없으면 패널이 GNB 밑에 묻힌다 — 라이브 실측 gnb y 90 < 패널 bottom 238) · 입찰실무만 3(원문).
   색은 브랜드 토큰 — 전기넷 header_jungi.css:156~158 오버라이드(border·hover bg·hover 글자)와 같은 자리. */
.util-drop {
    position: absolute;
    top: 30px;
    z-index: 20;
    display: none;
    padding-top: 2px;
}
.util-drop--bid { right: 400px; z-index: 3; }
.util-drop--customer { right: 320px; }
.util-drop--community { right: 250px; }
.util-links li.is-open .util-drop { display: block; }
.util-drop ul {
    box-sizing: border-box;
    width: 120px;
    border: 1px solid var(--brand-primary);
    background: #fff;
}
/* 위 `.util-links li` 의 float·padding 이 패널 안 li 에도 걸린다 — 되돌린다(CI3 `.menu ul li {width:100%}`) */
.util-drop li { float: none; width: 100%; padding: 0; }
.util-drop li a {
    display: block;
    padding: 5px 0 5px 6px;
    color: #5c667b;
    font-size: 13px;
}
.util-drop li:hover { background: var(--brand-tint); }
.util-drop li:hover a { color: var(--brand-primary); }
.util-search-box {
    box-sizing: content-box; /* 실제 .search: width 220 + border 2 = 총 222 */
    float: left;
    margin-top: 5px;
    margin-left: 20px;
    width: 220px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid var(--brand-primary);
    background: var(--brand-tint);
}
.util-search-box input {
    box-sizing: content-box; /* 실제 input: width 170 + UA 패딩 2×2 = 실폭 174 */
    margin-left: 15px;
    width: 170px;
    height: 28px;
    border: 0;
    background-color: var(--brand-tint);                         /* :21 · 전기넷 :160 #f4faf4 */
    font-size: 14px;
}
.util-search-box input:focus { outline: none; }
.util-search-box input::placeholder { color: var(--text-muted); }
.util-search-box button {
    width: 16px;
    height: 16px;
    border: 0;
    cursor: pointer;
    background: url(/images/jungi/icon/search.svg) no-repeat center;
    vertical-align: middle;
}

/* GNB — 원문은 ul 을 flex 로 펴지 않는다: li 가 float(reset :14)으로 서고 ul·container 는 높이 0(:33 overflow inherit), 줄 높이는 nav 의 line-height 50 이 쥔다. */
/* display: flow-root — li float 를 이 띠 안에 가둔다. 원문은 머리 덩어리(#headerFixed)가 position:fixed 라 그 자체가 독립 배치 상자여서
   float 가 밖으로 안 샌다. 재구축 머리는 흐름 안(sticky)이라, 본문이 띠 아래 경계(로드 때 글꼴 보정·[숨기기] 뒤 −5px)를 넘어 겹치면
   독립 배치 상자인 본문(.content-full flow-root)이 메뉴 float 옆으로 비켜 오른쪽 끝으로 밀린다(105% 확대 · [숨기기] 뒤).
   높이 50 고정이라 겉모습은 그대로. */
.gnb {
    display: flow-root;
    width: 100%;
    min-width: 1200px;
    height: 50px;
    line-height: 50px;                                           /* :26 */
    background: var(--brand-primary);                            /* :26 · 전기넷 :149 */
}
.gnb-item {                                                      /* :27 */
    float: left;
    position: relative;
    width: 143px;
    text-align: center;
    font-weight: 700;
}
.gnb-item.gnb-all { width: 52px; vertical-align: unset; }        /* :28 */
.gnb-item:hover { background: var(--brand-primary-dark); }
.gnb-link {                                                      /* :30 */
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
}
.gnb-all > .gnb-link { margin-top: -2px; }                       /* 원문 인라인 style="margin-top: -2px;" */
.gnb-all > .gnb-link[hidden] { display: none; }                  /* 원문 인라인 display:none(닫기 a) — .gnb-link 의 block 이 UA [hidden] 을 이긴다 */

.sub-gnb {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 200;
    display: none;
}
.gnb-item:hover .sub-gnb { display: block; }
.sub-gnb ul { background: #fff; box-shadow: 0 2px 4px 0 #cccccc; }
.sub-gnb li { position: relative; width: 143px; background-color: #fff; } /* CI3 header.css:27 `nav.gnb ul li {position:relative;width:143px}` 자손 매칭 + `.sub_gnb ul li {background-color:#fff}` — 패널 폭 143 고정, 패딩·nowrap 없음(라벨은 143 안 한 줄 — 로그인 실측) · li 자체 흰 바탕이 글자 그림(서브픽셀)을 원문과 같게 한다 */
.sub-gnb li a {
    display: block;
    line-height: 50px; /* CI3 header.css:26 nav.gnb line-height:50 상속 — 행높이 50 */
    color: #333;
    font-size: 16px; /* 실제 sub_gnb a 상속값 = 16px */
    font-weight: 400;
}
.sub-gnb li:hover { background: var(--brand-sub-hover); }

/* 현재 메뉴 선택 강조 (건설넷 fork 동형 — CI3 header.css li.on_main / li.on_sub) — 색은 브랜드 토큰 */
.gnb-item.on_main { background: var(--brand-primary-dark); }
.sub-gnb li.on_sub { background: var(--brand-sub-hover); }

/* 게시판설정 항목(회원 전용) — CI3 header_jungi.css li.setting(:38-43) + body.jungi(:154-155): 배경 #f4f6fa(hover 는 전기넷만 연두 — 아래),
   회색→hover **#3da317**(전기넷 GNB 의 #00993a 와 다른 값 — 라이브 실규칙 그대로). 톱니 = 인라인 svg */
.sub-gnb li.setting { background: #f4f6fa; }
.sub-gnb li.setting:hover { background: var(--brand-sub-hover); } /* :152-153 `body.jungi … .sub_gnb ul li:hover` 가 li.setting(:38)보다 구체적이라 hover 는 연두 — 건설넷은 :38 이 뒤라 고정 */
.sub-gnb li.setting a { color: #8491a7; }
.sub-gnb li.setting:hover a { color: #3da317; }
.sub-gnb li.setting svg { position: relative; top: 2px; width: 15px; height: 15px; }   /* :41 */
.sub-gnb li.setting path { fill: #8491a7; }                                           /* :42 */
.sub-gnb li.setting:hover path { fill: #3da317; }                                     /* :155 */

/* ===== 본문 ===== */
/* 원문 `common_layout.css:4~5`(전 `common_layout_jungi.css:4~5`) `main{min-width:1200px; min-height:1000px; padding-top:50px}` +
   `main.sub{padding:50px 0 150px}` — 서브 화면(main.sub)의 값이 기본값이다. 원문 `main` 값이 다른 화면군은 자기 CSS 가 덮는다:
   홈 20/20(`shared/home/index.css`) · 원문에 `main` 이 없는 화면(풀폭 목록·로그인·찾기·통합검색·랜딩·만료)은 `padding:0; min-height:0` ·
   상세(`main.bid`)·설정 팝업은 그 화면 값. ⚠ 원문의 `overflow:hidden` 은 옮기지 않는다 — sticky 밴드(`bid/part-local-setup.css`)가 죽는다.
   min-width 1200 = 원문 최소폭(nav.gnb·#ij_index·#mainFooter 와 같은 1200). */
.site-main { min-width: 1200px; min-height: 1000px; padding: 50px 0 150px; }

/* ===== 푸터 ===== */
/* 원문 `resource/common/css/footer_jungi.css` 를 줄 그대로 옮겼다(숫자 옆 `:n` = 그 파일 줄 · 없는 선언은 선언하지 않는다).
 * 원문 배치의 바탕 두 가지를 이 범위 안에서만 되살린다(전역 이식은 위 reset 절 ⚠ 그대로 보류):
 *   ① 박스 모델 = content-box — 원문에는 우리 전역 `* { border-box }` 가 없다. padding 을 준 줄(인증 30/50 · 저작권 20)이
 *      높이를 더한다.
 *   ② `li { float: left }`(reset_jungi.css:14) — 링크줄·주소·드롭 li 가 이 float 로 한 줄에 선다. ul 은 float 을 감싸지
 *      않는다(:1 `overflow: inherit` — reset :13 의 hidden 을 되돌린 값이라 우리는 선언할 것이 없다).
 * 클래스 ↔ 원문: footer-award = .award · award-item = .award_wrap · award-line = .line · footer-link = .footer_link ·
 *   footer-link-left/right = .fl_l/.fl_r · footer-sites·family-sites = ul.site · site-drop-panel = ul.site_wrap ·
 *   footer-copyright = .copyright · copyright-address = .adress · copyright-bottom = .sns(div) · sns(p) = .sns .fl_l p */
.site-footer, .site-footer * { box-sizing: content-box; }
.site-footer li { float: left; }                                  /* reset_jungi.css:14 */
.site-footer {
    width: 100%;
    min-width: 1200px;
    background-color: var(--footer-bg);                           /* :2 #2b2b39 */
    color: #fff;
}
/* 인증 로고 줄 — 원문 `:3·5·6` + `.txt_c`(common_jungi.css:35).
   ⚠ 원문 전기넷 푸터는 로고·구분선 사이에 **줄바꿈 공백**이 있어
   inline-block 사이 12틈이 줄 폭에 들어간다. 건설넷 원문은 주석으로 그 공백을 지웠다 — 그래서
   건설넷(`css/igunsul/layout.css`)은 flex 로 같고 전기넷은 아니다. 틈을 수치로 흉내 내지 않고 원문처럼
   inline-block 을 나열한다. 공백 텍스트 노드는 푸터 마크업이 만든다 — `@endif` 뒤 줄바꿈은 PHP 가 먹고
   **다음 줄 들여쓰기**가 구분선→로고 틈을, `</div>` 뒤 줄바꿈+들여쓰기가 로고→구분선 틈을 만든다. */
.footer-award {
    padding: 30px 0 50px;                                         /* :3 */
    background-color: #fff;                                       /* :3 */
    text-align: center;                                           /* .txt_c */
}
.footer-award .award-item { position: relative; display: inline-block; top: -10px; }                              /* :5 */
.footer-award .award-line { display: inline-block; margin: 0 18px; width: 1px; height: 30px; background-color: #d7dce5; }  /* :6 */

.footer-link { height: 60px; border-bottom: 1px solid var(--footer-line); }                                      /* :4 */
.footer-link-left { float: left; }                                /* .fl_l = common_jungi.css:5 */
.footer-link-right { float: right; }                              /* .fl_r = common_jungi.css:6 */
.footer-link-left, .footer-link-right { height: 60px; line-height: 60px; }                                       /* :7 */
.footer-policy li a { color: #fff; font-weight: 700; }            /* :8 */
.footer-policy li span { margin: 0 20px; color: var(--text-muted); font-size: 7px; font-weight: 900; }           /* :9 #8491a7 */
.footer-policy li:last-child a { color: var(--brand-family-link); }                                              /* :40 #6ee999(:10 파랑 → 전기넷 덮음) */

/* 사이트 드롭 — 트리거·패널 수치는 원문 :11~19 · :41~43. 여닫기는 원문 click 토글(.is-open — bindClickDrops). */
.footer-sites > li { position: relative; width: 180px; border-left: 1px solid var(--footer-line); }             /* :11 */
.footer-sites > li:last-child { border-right: 1px solid var(--footer-line); }                                    /* :12 */
.site-drop-trigger { display: block; padding-left: 20px; color: #fff; }                                          /* :13 */
.site-drop-trigger .drop-arrow {                                   /* :14 */
    position: absolute;
    top: 26px;
    right: 16px;
    width: 15px;
    height: 9px;
    background: url(/images/jungi/icon/arrow-sel.png) no-repeat;
}
.site-drop-panel {                                                /* :15 · 색 :41 */
    position: absolute;
    bottom: 59px;
    right: 0;
    display: none;
    height: 180px;
    overflow-y: auto;
    border: 1px solid var(--brand-primary);
}
.site-drop.is-open .site-drop-panel { display: block; }
.site-drop-panel li { width: 100%; height: 30px; line-height: 30px; background-color: #fff; text-align: left; }  /* :16 */
.site-drop-panel li.site-drop-tall { height: auto; }              /* 원문 인라인 style="height: auto;" */
.site-footer .site-drop-panel li:hover { background-color: #f4f6fa; }             /* :17 — 특이도는 패밀리 :34 흰 배경을 이기게(원문도 :17 이 :34 를 이긴다) */
.site-drop-panel li a { display: block; padding-left: 6px; font-size: 13px; color: #5c667b; }                  /* :19 */
.site-footer .site-drop-panel li:hover a { color: var(--brand-primary); background-color: var(--brand-tint); }  /* :42~43 — 패밀리 :35 를 이긴다 */

.footer-copyright { padding: 20px 0; }                            /* :21 */
/* 주소 + 기부 배너 — 원문 인라인 `style="display: flex; justify-content: space-between;"` */
.copyright-top { display: flex; justify-content: space-between; }
.copyright-address ul { display: block; height: 20px; padding-bottom: 10px; }                                    /* :22 */
.copyright-address ul:last-child { padding-bottom: 40px; }        /* :23 */
.footer-copyright ul li { color: var(--text-muted); }             /* :24 #8491a7 */
.footer-copyright ul li strong { margin: 0 7px 0 35px; color: #fff; }                                            /* :25 */
.footer-copyright ul li:first-child strong { margin-left: 0; }    /* :26 */
.copyright-address .copyright-text { padding-left: 35px; }        /* 원문 인라인 */
.footer-ad-banner img[hidden] { display: none; }                  /* 원문 인라인 display:none — 한 장은 layout.js 가 보인다 */

.copyright-bottom { height: 40px; }                               /* :27 */
.copyright-bottom-left { float: left; }                           /* .fl_l */
.copyright-bottom-right { float: right; }                         /* .fl_r */
.copyright-bottom a { margin-left: 4px; }                         /* :28 — 원문도 패밀리 트리거까지 걸린다(그쪽은 :29 first-child 로 0) */
.copyright-bottom a:first-child { margin-left: 0; }               /* :29 */
.family-sites li { position: relative; width: 360px; height: 40px; line-height: 40px; background-color: #363646; box-sizing: border-box; } /* :30 */
.family-sites li a { display: block; padding-left: 20px; color: #fff; }                                          /* :31 */
.family-sites .drop-arrow { top: 15px; }                          /* :32 */
.family-sites .site-drop-panel { height: auto; bottom: 40px; }    /* :33 */
.family-sites .site-drop-panel li { background-color: #fff; }     /* :34 */
.family-sites .site-drop-panel li a { color: #5c667b; }           /* :35 */

/* ===== 전체메뉴 패널 (CI3 #ij_index 포팅) — 전체메뉴는 테마 녹색 미적용·파랑 고정(igunsul/jungi 동일) ===== */
.all-menu {
    display: none;
    /* 자리 = GNB 바로 아래 — 원문 #ij_index 는 nav 뒤 흐름 자리(relative · header_jungi.css:167 · header.css:168)라 위에 띠가 붙어도 GNB 밑에서 연다.
       재구축은 흐름 밖(absolute)이라 기준 = .site-header(위 relative) · top 100% = 그 바닥. 띠(#display_banner_top — 서버 점검 등)는 헤더 맨 위
       안쪽이라 헤더가 띠 높이만큼 길어지고 패널도 같이 내려간다(#2431). */
    position: absolute; left: 0; top: 100%;
    z-index: 200; width: 100%; min-width: 1200px;
    letter-spacing: -1px; background: #fff;
    box-shadow: 0 10px 10px rgba(55, 63, 87, 0.1);
    justify-content: center; grid-template-columns: 940px 260px;
}
.all-menu.is-open { display: grid; }   /* 라이브 hide()/show() 동등(즉시 토글) */
.all-menu::before { content: ""; position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 4px; background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(55,63,87,0.1) 100%); }
.all-menu::after { content: ""; position: absolute; top: 0; left: 50%; z-index: 1; width: 50%; height: 100%; background: #f4f6fa; } /* 우측 배경 */

.all-menu .panel { position: relative; z-index: 2; display: grid; width: 940px; background: #fff; grid-template-rows: auto auto; grid-template-columns: 250px 160px 160px 185px 185px; align-items: end; }
.all-menu .col { position: relative; padding: 50px 0 0 15px; min-height: 270px; align-self: stretch; }
.all-menu .col::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #eaedf4; } /* 세로 구분선 */
.all-menu .col.bg-agreement,
.all-menu .col.bg-consulting,
.all-menu .col.bg-ebei { width: 100%; height: 100%; box-sizing: border-box; }
.all-menu .col.bg-agreement { background: url(/images/jungi/allmenu/bg-agreement.png) no-repeat bottom right; }
.all-menu .col.bg-consulting { background: url(/images/jungi/allmenu/bg-consulting.png) no-repeat bottom right; }
.all-menu .col.bg-ebei { background: url(/images/jungi/allmenu/bg-ebei.png) no-repeat bottom right; }

.all-menu .panel .copy { display: block; position: absolute; top: 20px; color: #3267e9; font-size: 12px; font-weight: 400; line-height: 16px; } /* 캐치프레이즈 — 각 .col / .minor 기준 */
.all-menu .head { display: block; margin-bottom: 5px; color: #202020; font-size: 16px; font-weight: 500; letter-spacing: -1px; pointer-events: none; }
.all-menu .list { display: grid; justify-content: start; }
.all-menu .list li:last-child { margin-bottom: 20px; }
.all-menu .list li a { color: #202020; font-size: 14px; line-height: 32px; letter-spacing: -1px; }
.all-menu .list li a:hover { color: #2d65f2; }
.all-menu .after { float: left; }
.all-menu .col-find > .after { width: 50%; } /* col1 입찰/낙찰/나의방/맞춤 2×2 (minor 안쪽 .after 제외) */
.all-menu .minor { position: relative; clear: both; margin-top: 250px; align-self: stretch; } /* clear: 나의방이 GNB 한 벌(비회원 3 · 컨설팅 4)이라 원문 header.css:194 의 항목 2개 전제 offset 보정 — 구분선·라벨도 float 아래로 */
.all-menu .minor::before { content: ""; position: absolute; top: 0; left: -15px; height: 1px; background: #eaedf4; } /* 가로 구분선 */
.all-menu .minor.bid::before { width: 250px; }
.all-menu .minor.community::before { width: 185px; }
.all-menu .minor .after { margin-top: 42px; }
.all-menu .point { margin-left: 5px; color: #ff6a25; font-size: 12px; font-weight: bold; vertical-align: top; }

.all-menu .links { position: relative; z-index: 2; padding: 20px 0 0; width: 260px; border-left: 1px solid #eff5ff; } /* ::after(z1) 위로 */
.all-menu .links .copy { display: block; padding-left: 15px; color: #2d65f2; font-size: 12px; font-weight: 400; letter-spacing: -1px; line-height: 16px; } /* 라이브 inline 400 */
.all-menu .links .arrow { display: inline-block; margin-left: 5px; width: 7px; height: 11px; vertical-align: baseline; background: url(/images/jungi/icon/arrow-link.png) no-repeat; } /* links 항목 우측 화살표 */
.all-menu .links .items { display: grid; margin-top: 10px; align-items: start; }
.all-menu .links .items li a { display: grid; padding: 15px; width: 260px; gap: 5px 40px; grid-template-areas: "icon title" "icon text"; grid-template-columns: 10px 1fr; grid-template-rows: 20px 20px; box-sizing: border-box; }
.all-menu .links .items li a:hover { background: #deebff; }
.all-menu .links .title { display: grid; grid-area: title; align-items: center; gap: 8px; grid-auto-flow: column dense; justify-content: start; color: #202020; font-size: 14px; font-weight: bold; }
.all-menu .links .text { grid-area: text; color: #5c667b; font-size: 13px; }
.all-menu .links .icon { display: grid; grid-area: icon; place-items: center; margin-top: 2px; width: 40px; height: 40px; border: 1px solid #d7dce5; border-radius: 5px; background: #fff; box-sizing: border-box; }

/* ============ 툴팁 (ij_layout_jungi.css body.jungi .ij_tooltext) ============ */
/* 잘린 텍스트 위에 전문을 띄우는 말풍선. `<body>` 직계로 붙고 위치는 JS 가 계산한다
   (SynerUsersite.bindTooltip + Floating UI) — 특정 화면 CSS 가 아니라 chrome 급으로 여기 있다.
   리스트·상세·설정 어디서든 마크업(.ij_tooltip)만 있으면 같은 모양이 나와야 한다.
   전기넷은 CI3 `body.jungi` 오버라이드가 초록 테두리 + max-width 455px 다(건설넷 파랑·500px 과 갈림).

   ⚠ `left/top` 은 JS 전용이다. 여기에 위치값을 쓰지 말 것 — 매 계산에서 덮어써진다. */
.ij_tooltext {
    position: absolute; left: 0; top: 0;
    /* width 를 안 주면 "남은 공간까지만" 규칙(shrink-to-fit)에 걸려, 화면 오른쪽 끝에서 폭이
       몇십 px 로 쪼그라들고 한글이 글자 단위로 쪼개진다. max-content = 줄바꿈 없는 제 폭. */
    width: max-content; max-width: 455px; min-width: 30px;
    /* word-break 는 기본값(normal · 글자 단위) — 원문 말풍선과 같은 자리에서 줄이 나뉜다. 어절 단위(keep-all)는
       라이브와 줄 나뉨이 달라 뺐다(건·전 사이트 전체 말풍선). */
    /* `<p>` 기본 margin(1em)이 계산된 top 아래로 말풍선을 12px 밀어낸다 — 절대배치라도 margin 은 먹는다. */
    margin: 0;
    padding: 13px; box-sizing: border-box;
    border: 1px solid var(--brand-primary); background-color: #fff;
    font-size: 12px; font-weight: normal; letter-spacing: 0.3px; z-index: 100001;
    /* 말풍선이 커서를 가로채면 트리거에서 나간 판정이 나 깜빡인다 — 클릭도 통과시킨다. */
    pointer-events: none;
}
.ij_tooltext.small { min-width: 100px; }
/* `.masterTooltip` hover 말풍선 = css/shared/tooltip.css(layout.app·with 가 이 파일 바로 뒤에 싣는다) */

/* 말꼬리 = 45deg 돌린 사각형의 두 변(흰 배경이 말풍선 테두리를 덮어 이어 보인다).
   붙는 쪽은 JS 가 `tail_*` 로 알려준다 — 좌표(미끄러지는 축)도 JS 가 넣는다. */
.ij_tooltext_arrow {
    position: absolute; width: 7px; height: 7px;
    border: 1px solid var(--brand-primary); border-top: none; border-right: none;
    background: #fff;
}
.ij_tooltext_arrow.tail_left { transform: rotate(45deg); }
.ij_tooltext_arrow.tail_right { transform: rotate(225deg); }
.ij_tooltext_arrow.tail_bottom { transform: rotate(315deg); }
.ij_tooltext_arrow.tail_top { transform: rotate(135deg); }

/* ===== 헤더 알림 표시 · 운영 배너 자리 ===== */

/* GNB 알림 뱃지 — CI3 header.css:44 `nav.gnb ul li span.noti_badge` 수치 그대로(사이트 색 분기 없음 — 전기넷도 빨강).
   기준점 = .gnb-item(position:relative · 폭 143 = CI3 li). z-index = 위 header-main 띠 위로 올라온다(top:-10px). */
.gnb-item .noti-badge {
    position: absolute; top: -10px; right: 0; z-index: 2;
    display: inline-block; padding: 0 7px; height: 20px;
    border-radius: 10px; background: #f84747;
    color: #fff; font-size: 13px; font-weight: 400; line-height: 20px; white-space: nowrap;
    cursor: pointer;
}
/* hover 문구 — CI3 load_alarm.js:157~168 mouseenter 텍스트 교체(「미확인 정정공고」·「미확인 맞춤정보」) · mouseleave 숫자 복귀 */
.gnb-item .noti-badge:hover .num { display: none; }
.gnb-item .noti-badge:hover::after { content: attr(data-hover); }

/* 1:1 답변 알림 점 — CI3 header.css:3 `.complete_inquiry_view` · 드롭 항목은 원문 인라인 `right:64px; top:9px`
   기준점: 원문 윗줄 점은 li 기준 top 5·right 10 — li 가 static 이 됐으므로 `a`(li 안쪽 상자 = padding 5/7 안) 기준 top 0·right 3 으로 환산(같은 자리).
   드롭 항목 점은 원문처럼 그 항목 li 기준(원문 인라인 `position: relative`). */
.util-links > li > a:has(> .inquiry-dot), .util-drop li:has(> a > .inquiry-dot) { position: relative; }
.util-links .inquiry-dot { position: absolute; top: 0; right: 3px; width: 6px; height: 6px; border-radius: 5px; background: #ff6a25; }
.util-links .inquiry-dot.inquiry-dot-drop { top: 9px; right: 64px; }

/* 기부 배너 교대 — CI3 header.css:219 `#ij_index .ad_banner`(부모 = 오른쪽 .links 칸 · 그 칸 기준 left 10 · bottom 15 · 240×120) */
.all-menu .donation-banner { position: absolute; left: 10px; bottom: 15px; z-index: 3; width: 240px; height: 120px; }
.all-menu .donation-banner img { display: block; width: 240px; height: 120px; }
.all-menu .donation-banner img[hidden] { display: none; }
