/*
 * 통합 레이어/배너 — 커뮤니티·공동도급 페이지군 자리 배치 + 이 페이지군 조각의 스타일 (건·전 공용 한 벌).
 *
 * 싣는 곳 = 자리 div 를 가진 화면의 `@push('styles')`. 조각 = 뉴스 우측 · 상세 AOA · 협정 팝업 문구 배너.
 *
 * 선언의 출처 = CI3 화면의 자리 div 인라인 style(`<div id="display_banner_*" class="display_slot" style="…">`) — 통합 판이 「구 조각이
 * 들고 있던 띄움 좌표를 자리가 맡는다」며 구 훅 판 조각의 바깥 좌표를 그대로 옮긴 값이다. 조각 스타일 = 각 조각 안 <style>.
 *
 * ⚠ 본문 바깥 띄움 자리의 기준 상자 = 레이아웃 `.container`(1200 · `position: relative` — CI3 `common_layout.css:40` 과 같다).
 *   원문 자리 div 는 `.container` 의 자식이라 `top` 을 안 줘도 맨 위에 앉았다. 재구축 자리 div 는 화면 래퍼(`.community-sub` · `.gongdong-sub`)
 *   안에 있어 같은 자리에 앉도록 `top: 0` 을 명시한다.
 * ⚠ 빈 자리는 크기 0 이어야 한다(부착 전과 기하가 같게) — 바깥 여백이 있는 하단 자리 2(`jobbtm`·`revbtm`)는 여백을 조각 쪽에 준다.
 */

/* ── 본문 오른쪽 바깥 띄움 ── */
/* 뉴스·자료실 목록 · 공동도급 게시판 목록·글쓰기 · 협정매니저란 — 원문 `right: -229px` */
#display_banner_cnews,
#display_banner_jclist,
#display_banner_agabt {
    position: absolute;
    top: 0;
    right: -229px;
}

/* 자료실 목록 4화면의 게스트 가입 유도 배너 — 통합 자리가 아닌 페이지 요소지만
   게스트에게 `#display_banner_cnews` 대신 같은 자리에 선다. 원문 구 판 인라인
   `position: absolute; right: -229px`(top 없음 — 원문 div 도 `.container` 직속이라 맨 위. 위 자리와 같은 이유로 `top: 0` 명시) */
.community-join-banner {
    position: absolute;
    top: 0;
    right: -229px;
}

/* 커뮤니티 상세 — 원문 `right: -229px; top: 55px` */
#display_banner_cdrgt {
    position: absolute;
    top: 55px;
    right: -229px;
}

/* 우측 200 — 원문 `top: 0; right: -220px; width: 200px` */
#display_banner_r200 {
    position: absolute;
    top: 0;
    right: -220px;
    width: 200px;
}

/* 공동도급 서비스 소개 — 원문 `right: -232px; width: 200px; text-align: initial`.
   원문 자리 div 는 본문 상자(`.content.fl_r`)가 닫힌 뒤의 `.container` 직속 형제라 `top` 없이 맨 위에 앉았다 — 위 자리들과 같은 이유로 `top: 0` 명시. */
#display_banner_gdinfo {
    position: absolute;
    top: 0;
    right: -232px;
    width: 200px;
    text-align: initial;
}

/* ── 본문 안 ── */
/* 낙찰후기 상세 본문 칸 아래쪽 — 원문 `left: 0; bottom: 65px`. 기준 상자 = 본문 칸 `td.detail_con`(position: relative) */
#display_banner_revdet {
    position: absolute;
    left: 0;
    bottom: 65px;
}

/* 구인구직·낙찰후기 목록 하단 — 원문 자리 div `margin-top: 50px; width: 960px`.
   빈 자리의 위 여백이 화면을 50px 늘리지 않게 여백은 들어온 조각에 준다. */
#display_banner_jobbtm,
#display_banner_revbtm {
    width: 960px;
}
#display_banner_jobbtm > *,
#display_banner_revbtm > * {
    margin-top: 50px;
}

/* 업체찾기 팝업 제목줄 오른쪽 — 원문 `display: inline-block` */
#display_banner_jcpop {
    display: inline-block;
}

/* ── 조각: 뉴스·자료실 우측 분석프로그램 배너(1235) — 원문 조각 안 <style> ── */
.display_comm_news_banner {
    position: relative;
    cursor: pointer;
}
.display_comm_news_banner > div {
    position: absolute;
}
.display_comm_news_banner > div.question_l {
    top: 52px;
    left: 32px;
    animation: display_comm_news_rotate_l 2s infinite alternate;
    transform-origin: bottom right;
}
.display_comm_news_banner > div.question_r {
    top: 55px;
    right: 23px;
    animation: display_comm_news_rotate_r 2s infinite alternate;
    transform-origin: bottom left;
}
@keyframes display_comm_news_rotate_l {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(40deg); }
}
@keyframes display_comm_news_rotate_r {
    0% { transform: rotate(5deg); }
    100% { transform: rotate(-30deg); }
}

/* ── 조각: 커뮤니티 상세 AOA 교대 배너(1241) — 원문은 조각 안 jQuery `setInterval(…, 2000)` 로 두 장의 display 를 맞바꿨다.
      둘째 장을 첫 장 위에 겹쳐 두고 4초 주기의 뒤 절반만 보이게 한다(처음 2초 = 첫 장 · 원문과 같은 순서) ── */
.display_comm_detail_aoa > a {
    position: relative;
}
.display_comm_detail_aoa .banner2 {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    animation: display_comm_detail_aoa_swap 4s step-end infinite;
}
@keyframes display_comm_detail_aoa_swap {
    0% { visibility: hidden; }
    50% { visibility: visible; }
}

/* ── 조각: 업체찾기 팝업 협정매니저 문구 배너(1399) — 원문 조각(`<button style="vertical-align: -1px">`) ── */
.display_agreement_popup_text > button {
    vertical-align: -1px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.display_agreement_popup_text .m_hyup_txt_banner {
    display: block;
}
