/* ====================================================================
   파일: site-sidebar-position.css
   담당: 사이드 메뉴 / 플로팅 버튼 / 모바일 상세보기 표시
   수정 안내: sites/docs/CSS_수정가이드.md 참고
   주의: 기존 규칙 순서 및 @media 구간을 변경하지 마세요.
   ==================================================================== */
/*
 * 이벤트하우스 통합 스타일 - site-sidebar-position.css
 * 항목별 주석은 각 규칙의 적용 영역을 표시합니다.
 * 규칙 순서·미디어쿼리·테마 우선순위 유지 / 147차 AJAX hidden 보존
 * 사용 여부가 불명확한 선택자는 임의 삭제하지 않습니다.
 */
/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-position{box-sizing:border-box;display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;margin:0 0 9px;padding:5px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:8px;background:var(--theme-surface);font:12px/1.4 inherit}
.eh-sidebar-position__label{flex:1;white-space:nowrap;color:var(--theme-dark);font-size:11px;font-weight:700}
.eh-sidebar-position button{box-sizing:border-box;min-width:38px;padding:5px 10px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--theme-surface);color:var(--theme-dark);font:inherit;font-size:11px;cursor:pointer}
.eh-sidebar-position button[aria-pressed="true"]{border-color:var(--theme-border);background:var(--theme-main);color:var(--theme-button);font-weight:700}
.eh-sidebar-position button:focus-visible{outline:2px solid var(--theme-border);outline-offset:2px}

body.eh-sidebar-left .fmain>.fcontents{float:right!important}
body.eh-sidebar-left .fmain>.fmenu{float:left!important}
body.eh-sidebar-left .fmain_border{background-position:top left!important}



body.eh-sidebar-hidden .fmain>.fmenu{display:none!important}
body.eh-sidebar-hidden .fmain>.fcontents{float:none!important;width:100%!important;max-width:100%!important}
body.eh-sidebar-hidden .fmain_border{background-image:none!important}

.eh-sidebar-reveal{display:none;position:fixed;right:0;top:42%;z-index:9999;box-sizing:border-box;width:43px;min-height:62px;padding:9px 4px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-right:0;border-radius:9px 0 0 9px;background:var(--theme-main);color:var(--theme-button);box-shadow:0 3px 12px rgba(0,0,0,.18);cursor:pointer;text-align:center;font-family:inherit}
.eh-sidebar-reveal span{display:block;font-size:21px;line-height:24px}
.eh-sidebar-reveal small{display:block;font-size:10px;line-height:17px}
.eh-sidebar-reveal:focus-visible{outline:3px solid #f5a623;outline-offset:2px}

body.eh-sidebar-hidden .eh-sidebar-reveal{display:block}


.eh-sidebar-compact{display:none}

body.eh-sidebar-hidden .fmain{box-sizing:border-box;padding-right:112px}
body.eh-sidebar-hidden .fmain>.fcontents{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0}
body.eh-sidebar-hidden .fmain>.eh-sidebar-compact{display:flex;position:absolute;right:0;top:5px;width:104px;box-sizing:border-box;flex-direction:column;gap:7px;padding:9px 7px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:8px;background:var(--theme-surface);z-index:5}
.eh-sidebar-compact__title{text-align:center;color:var(--theme-dark);font-size:12px;font-weight:700;padding-bottom:6px;border-bottom:1px solid var(--eh-border-level4,var(--theme-divider))}
.eh-sidebar-compact__link,.eh-sidebar-compact__show{box-sizing:border-box;display:block;width:100%;padding:8px 3px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--theme-surface);color:var(--theme-dark)!important;text-align:center;text-decoration:none!important;font:600 11px/1.35 "Malgun Gothic",sans-serif;cursor:pointer}
.eh-sidebar-compact__show{background:var(--theme-main);border-color:var(--eh-border-level4,var(--theme-divider));color:var(--theme-button)!important;margin-top:3px}
.eh-sidebar-compact__link:hover{background:var(--theme-light)}
body.eh-sidebar-hidden .eh-sidebar-reveal{display:block!important}
body.eh-sidebar-hidden .fcontents .list_detail{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;width:100%;min-width:0}
body.eh-sidebar-hidden .fcontents .list_detail>.detail_img{box-sizing:border-box;float:none!important;flex:0 0 320px;max-width:100%;width:320px;margin:0 0 10px}
body.eh-sidebar-hidden .fcontents .list_detail>.detail_list{box-sizing:border-box;float:none!important;flex:1 1 0;width:auto!important;min-width:0;max-width:100%;margin:0 0 10px}
body.eh-sidebar-hidden .fcontents .list_detail>.clear{display:none}
body.eh-sidebar-hidden .fcontents .list_detail>.detail_list .detail_td{box-sizing:border-box;max-width:100%}



.eh-sidebar-position{background:var(--eh-t-soft);border-color:var(--eh-border-level4,var(--theme-divider));color:var(--eh-t-text);gap:5px}
.eh-sidebar-position button{background:var(--eh-t-surface);border-color:var(--eh-border-level4,var(--theme-divider));color:var(--eh-t-text);font-weight:700;font-size:12px}
/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-position button[aria-pressed="true"]{background:var(--eh-t-accent);border-color:var(--eh-t-accent);color:var(--theme-button)}
/* === 테마 선택·색상 토큰 === */
html[data-eh-theme="night"] .eh-sidebar-position button[aria-pressed="true"]{color:var(--theme-dark)}
/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-position button:hover:not([aria-pressed="true"]){background:var(--eh-t-hover)}
.eh-sidebar-compact{background:var(--eh-t-soft)!important;border-color:var(--eh-border-level4,var(--theme-divider))!important}
.eh-sidebar-compact__title{color:var(--eh-t-text);border-color:var(--eh-border-level4,var(--theme-divider))}
.eh-sidebar-compact__link{background:var(--eh-t-surface);border-color:var(--eh-border-level4,var(--theme-divider));color:var(--eh-t-text)!important}
.eh-sidebar-compact__link:hover{background:var(--eh-t-hover)}
.eh-sidebar-reveal{width:76px;min-height:70px;right:0;top:42%;padding:8px 5px;background:var(--eh-t-accent);border-color:var(--eh-border-level4,var(--theme-divider));color:var(--theme-button);z-index:99999}
.eh-sidebar-reveal small{font-size:11px;line-height:16px;white-space:nowrap}
/* === 테마 선택·색상 토큰 === */
html[data-eh-theme="night"] .eh-sidebar-reveal{color:var(--theme-dark)}


body.eh-sidebar-hidden .fmain{padding-right:0!important}
body.eh-sidebar-hidden .fmain>.eh-sidebar-compact{display:none!important}
body.eh-sidebar-hidden .eh-sidebar-reveal{display:none!important}
.eh-sidebar-floating-panel:not([hidden]){display:flex}

/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-floating-panel[hidden]{display:none!important}
.eh-sidebar-floating-panel{display:none;position:fixed;top:140px;right:auto;z-index:99999;width:112px;box-sizing:border-box;flex-direction:column;gap:6px;padding:9px 7px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:0 9px 9px 0;background:var(--eh-t-soft);color:var(--eh-t-text);box-shadow:2px 3px 12px rgba(0,0,0,.12);font-family:"Malgun Gothic",sans-serif}
.eh-sidebar-floating-title{font-size:12px;font-weight:700;text-align:center;padding:2px 0 6px;border-bottom:1px solid var(--eh-border-level4,var(--theme-divider))}
.eh-sidebar-floating-link,.eh-sidebar-floating-show{box-sizing:border-box;width:100%;padding:7px 3px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--eh-t-surface);color:var(--eh-t-text)!important;text-align:center;text-decoration:none!important;font:600 11px/1.4 "Malgun Gothic",sans-serif;cursor:pointer}
.eh-sidebar-floating-show{background:var(--eh-t-accent);border-color:var(--eh-border-level4,var(--theme-divider));color:var(--theme-button)!important}
.eh-sidebar-floating-position{display:flex;gap:3px}
.eh-sidebar-floating-position button{flex:1;min-width:0;padding:6px 0;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:4px;background:var(--eh-t-surface);color:var(--eh-t-text);font:700 12px "Malgun Gothic",sans-serif;cursor:pointer}
.eh-sidebar-floating-position button[aria-pressed=true]{background:var(--eh-t-accent);border-color:var(--eh-t-accent);color:var(--theme-button)}
.eh-sidebar-floating-label{margin-top:4px;text-align:center;font-size:11px;font-weight:700}
/* === 테마 선택·색상 토큰 === */
.eh-sidebar-floating-themes{display:flex;flex-direction:column;gap:4px}
.eh-sidebar-floating-themes button{padding:6px 3px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--eh-t-surface);color:var(--eh-t-text);font:600 11px "Malgun Gothic",sans-serif;cursor:pointer}
/* 선택 테마의 네 방향 테두리는 1px, 기본 테마는 블루 */
.eh-sidebar-floating-themes button[aria-pressed="true"]{border:1px solid var(--eh-t-accent);box-shadow:none}
html:not([data-eh-theme]) .eh-sidebar-floating-themes button[data-eh-floating-theme="classic"][aria-pressed="true"],
html[data-eh-theme="classic"] .eh-sidebar-floating-themes button[data-eh-floating-theme="classic"][aria-pressed="true"]{border-color:var(--theme-border)}
html[data-eh-theme="clean"] .eh-sidebar-floating-themes button[data-eh-floating-theme="clean"][aria-pressed="true"]{border-color:var(--eh-t-accent)}
html[data-eh-theme="rose"] .eh-sidebar-floating-themes button[data-eh-floating-theme="rose"][aria-pressed="true"]{border-color:var(--eh-t-accent)}
/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-floating-panel button:focus-visible,.eh-sidebar-floating-panel a:focus-visible{outline:2px solid var(--eh-t-accent);outline-offset:2px}
/* === 테마 선택·색상 토큰 === */
html[data-eh-theme=night] .eh-sidebar-floating-show,html[data-eh-theme=night] .eh-sidebar-floating-position button[aria-pressed=true]{color:var(--theme-dark)!important}

.eh-sidebar-theme-top,.eh-sidebar-position,.eh-sidebar-compact,.eh-sidebar-reveal{display:none!important}

.eh-sidebar-floating-panel{display:flex!important}
.eh-sidebar-floating-panel[hidden]{display:flex!important}
body.eh-sidebar-hidden .fmain{padding-right:0!important}
body.eh-sidebar-hidden .fmain>.eh-sidebar-compact{display:none!important}

/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-floating-show[hidden]{display:none!important}


.eh-sidebar-floating-title{font-size:12px;letter-spacing:.1px}
.eh-sidebar-floating-link[hidden]{display:none!important}
.eh-sidebar-floating-group{display:flex;flex-direction:column;gap:5px;padding:7px 5px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:7px;background:var(--eh-t-surface)}
.eh-sidebar-floating-group .eh-sidebar-floating-label{margin:0 0 2px;font-size:11px}
.eh-sidebar-floating-mobile{display:block;box-sizing:border-box;padding:8px 4px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--eh-t-accent);color:var(--theme-button)!important;text-align:center;text-decoration:none!important;font:700 11px/1.4 "Malgun Gothic",sans-serif}
.eh-sidebar-floating-mobile:hover{filter:brightness(.94)}

body.eh-sidebar-left .eh-board-view-header,
 body.eh-sidebar-hidden .eh-board-view-header{visibility:hidden!important}


.eh-sidebar-floating-pager{display:flex;gap:4px;width:100%}
.eh-sidebar-floating-page{flex:1;min-width:0;box-sizing:border-box;padding:7px 0;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--eh-t-surface);color:var(--eh-t-text)!important;text-decoration:none!important;text-align:center;font:600 11px/1.4 "Malgun Gothic",sans-serif}
.eh-sidebar-floating-page:hover:not([aria-disabled=true]){border-color:var(--eh-t-accent);color:var(--eh-t-accent)!important}
.eh-sidebar-floating-page[aria-disabled=true]{opacity:.4;pointer-events:none;cursor:default}
.eh-sidebar-floating-panel .eh-sidebar-floating-pager{display:flex!important;visibility:visible!important}
/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-floating-panel .eh-sidebar-floating-page{display:block!important;visibility:visible!important}

body.eh-sidebar-left .head_div_warp>.eh-board-view-header,
 body.eh-sidebar-hidden .head_div_warp>.eh-board-view-header{display:none!important;visibility:hidden!important}



body.eh-sidebar-left .head_div_warp>.eh-board-view-header{display:block!important;visibility:visible!important;float:left!important;width:214px!important;margin:0!important;position:static!important;text-align:left!important;box-sizing:border-box}
body.eh-sidebar-left .head_div_warp>.eh-board-view-header a{visibility:visible!important}
body.eh-sidebar-hidden .head_div_warp>.eh-board-view-header{display:none!important;visibility:hidden!important}

/* === 상단 헤더·메뉴 === */
.body_header_menu{border-top:1px solid var(--eh-border-level4,var(--theme-divider))!important;border-bottom:1px solid var(--eh-border-level4,var(--theme-divider))!important}
/* === 추천 배너·탭 === */
.tab_warper{border-top-color:var(--eh-border-level4,var(--theme-divider))!important;border-left-color:var(--eh-border-level4,var(--theme-divider))!important;border-right-color:var(--eh-border-level4,var(--theme-divider))!important;border-bottom:0!important;border-radius:10px 10px 0 0!important}
/* === 사이드바 위치·퀵 메뉴 === */
.head_div_row,
body.eh-sidebar-left .head_div_row{box-sizing:border-box;width:100%;border:1px solid var(--eh-border-level4,var(--theme-divider))!important;border-radius:0!important}

body.eh-sidebar-left .head_div_warp>.eh-board-view-header{padding-left:10px!important;box-sizing:border-box!important}

/* === 광고·추천배너 === */
.head_div_warp>.eh-entry-heading-divider{display:none!important}

.eh-sidebar-floating-panel{width:120px!important}

/* === 사이드바 위치·퀵 메뉴 === */
.eh-sidebar-floating-pager{margin-top:30px!important}
.eh-sidebar-floating-winner{display:block;box-sizing:border-box;margin-top:6px;padding:8px 4px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--eh-t-surface);color:var(--eh-t-text)!important;text-align:center;text-decoration:none!important;font:700 11px/1.4 "Malgun Gothic",sans-serif}
.eh-sidebar-floating-winner:hover{border-color:var(--eh-t-accent)}
/* === 이벤트 목록·행 === */
.list_detail > .detail_img{border-color:var(--eh-border-level4,var(--theme-divider))!important}

html body:not(.eh-sidebar-hidden) .fcontents .list_detail > .detail_list{width:calc(100% - 328px)!important;max-width:none!important;margin-right:0!important;box-sizing:border-box!important}

html body .fcontents .list_detail > .detail_list > .detail_td,
html body .eh-detail-modal__body .detail_list > .detail_td{border-right:0!important}
html body .fcontents .list_detail > .detail_list > .detail_td:not(.eh-save-row),
html body .eh-detail-modal__body .detail_list > .detail_td:not(.eh-save-row){min-height:41px!important;padding-top:1.5px!important;padding-bottom:1.5px!important}
html body .fcontents .list_detail > .detail_list > .detail_td.detail_name,
html body .eh-detail-modal__body .detail_list > .detail_td.detail_name{min-height:47px!important}
.fcontents .list_detail.eh-ajax-slot[hidden]{display:none!important}

/* Quick Menu bottom clock: 100px square, theme-colored rounded border. */
.eh-sidebar-floating-clock{width:100px;height:100px;max-width:100%;flex:none;align-self:center;box-sizing:border-box;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:12px;background:var(--eh-t-surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;font-family:"Malgun Gothic",sans-serif}
.eh-sidebar-clock-date{font-size:12px;line-height:1.2;font-weight:700;color:var(--eh-t-text)}
.eh-sidebar-clock-time{font-size:22px;line-height:1.15;font-weight:900;letter-spacing:-.6px;color:var(--eh-t-accent);font-variant-numeric:tabular-nums;white-space:nowrap}
.eh-sidebar-clock-caption{font-size:10px;line-height:1.2;color:var(--eh-t-text);opacity:.8}

/* Clock: icon, prominent time, date only below. */
.eh-sidebar-floating-clock{gap:4px}
.eh-sidebar-clock-icon{font-size:17px;line-height:1;color:var(--eh-t-accent)}
.eh-sidebar-clock-date{font-size:11px;line-height:1.3;font-weight:500;color:var(--eh-t-text)}

/* 19: Clock without frame; large seconds clock stays centered in 100px area. */
.eh-sidebar-floating-clock{border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
.eh-sidebar-clock-time{font-size:20px;letter-spacing:-1px;font-variant-numeric:tabular-nums}

/* 22: Keep 10px spacing after theme controls; clock replaces the calendar immediately after pager. */
.eh-sidebar-floating-panel .eh-sidebar-floating-pager{margin-top:10px}
.eh-sidebar-floating-panel .eh-sidebar-floating-clock{margin-top:2px}

/* 23: Clock above the previous/next pager. */
.eh-sidebar-floating-panel .eh-sidebar-floating-clock{margin-top:10px}
.eh-sidebar-floating-panel .eh-sidebar-floating-pager{margin-top:2px!important}

/* 24: Clock vertical spacing 15px above and below. */
.eh-sidebar-floating-panel .eh-sidebar-floating-clock{margin-top:15px!important;margin-bottom:15px!important}
.eh-sidebar-floating-panel .eh-sidebar-floating-pager{margin-top:0!important}

/* 25: Reduce only the space between theme controls and clock. */
.eh-sidebar-floating-panel .eh-sidebar-floating-clock{height:auto!important;min-height:0!important;margin-top:0!important;margin-bottom:15px!important;padding:3px 0!important}

/* 26: Actual theme-to-clock height fix. Override the old 100px clock box,
   6px parent flex gap and earlier !important margins. */
.eh-sidebar-floating-panel > .eh-sidebar-floating-group:has(+ .eh-sidebar-floating-clock){margin-bottom:0!important;padding-bottom:3px!important}
.eh-sidebar-floating-panel > .eh-sidebar-floating-clock{height:56px!important;min-height:0!important;max-height:56px!important;flex:0 0 56px!important;margin-top:-6px!important;margin-bottom:10px!important;padding:0!important;gap:1px!important;justify-content:center!important}
.eh-sidebar-floating-panel > .eh-sidebar-floating-clock .eh-sidebar-clock-icon{line-height:1!important}

/* 28: Current location bookmark button directly below winner check. */
.eh-sidebar-floating-panel .eh-sidebar-floating-save-position{display:block;width:100%;box-sizing:border-box;margin-top:0;padding:8px 3px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:5px;background:var(--eh-t-surface);color:var(--eh-t-text);text-align:center;font:700 11px/1.4 "Malgun Gothic",sans-serif;cursor:pointer}
.eh-sidebar-floating-panel .eh-sidebar-floating-save-position:hover{border-color:var(--eh-t-accent);color:var(--eh-t-accent)}

/* 32: Highlight the saved-location state in red across all themes. */
.eh-sidebar-floating-panel .eh-sidebar-floating-save-position.is-saved{background:#fff1f1!important;border-color:var(--eh-t-border,#cbddeb)!important;color:#bd2525!important}
.eh-sidebar-floating-panel .eh-sidebar-floating-save-position.is-saved:hover{background:#ffe3e3!important;border-color:var(--eh-t-border,#cbddeb)!important;color:#991b1b!important}

/* 34: Restore 15px top spacing above the clock (theme to clock). */
.eh-sidebar-floating-panel > .eh-sidebar-floating-clock{margin-top:15px!important}

/* 46차: 모바일 AJAX 상세는 hidden이 있는 동안 어떤 레이아웃 규칙보다 우선하여 닫힘 */
html body .fcontents .list_detail[hidden],
html body.eh-sidebar-hidden .fcontents .list_detail[hidden],
html body .fcontents .list_detail[style*="display:none"],
html body .fcontents .list_detail[style*="display: none"] { display:none!important; }

/* 92차: 퀵메뉴 시간과 날짜 사이 간격만 10px 추가 */
.eh-sidebar-floating-panel > .eh-sidebar-floating-clock{height:66px!important;max-height:66px!important;flex-basis:66px!important}
.eh-sidebar-floating-panel .eh-sidebar-clock-date{margin-top:10px!important}

/* 93차: 시계 아이콘 2배(17px → 34px), 아이콘과 시간 사이 10px */
.eh-sidebar-floating-panel .eh-sidebar-clock-icon{font-size:34px!important;margin-bottom:10px!important}
.eh-sidebar-floating-panel > .eh-sidebar-floating-clock{height:105px!important;max-height:105px!important;flex-basis:105px!important}

/* 94차: 시계 위쪽 외부 여백 15px → 5px (10px 축소) */
.eh-sidebar-floating-panel > .eh-sidebar-floating-clock{margin-top:5px!important}

/* 로제: 플로팅 퀵메뉴 바깥 패널만 투명하게 (내부 버튼/테마 선택 유지) */
html[data-eh-theme="rose"] .eh-sidebar-floating-panel{background:transparent!important;}

/* 로제형: 오른쪽 플로팅 퀵메뉴 패널의 기본 배경을 연한 로즈톤으로 통일. */
html[data-eh-theme="rose"] .eh-sidebar-floating-panel{background:var(--theme-light)!important;}

/* 블루·모던·로제: 오른쪽 퀵메뉴 항목 hover 테두리는 각 테마의 강조색 사용. */
html:not([data-eh-theme]) .eh-sidebar-floating-panel :is(a,button):hover,
html[data-eh-theme="classic"] .eh-sidebar-floating-panel :is(a,button):hover,
html[data-eh-theme="clean"] .eh-sidebar-floating-panel :is(a,button):hover,
html[data-eh-theme="rose"] .eh-sidebar-floating-panel :is(a,button):hover{
  border-color:color-mix(in srgb,var(--eh-t-accent) 70%,white 30%)!important;
}

/* Quick Menu: settings link belongs to the visible floating panel. */
#eh-sidebar-floating-panel .eh-sidebar-floating-theme-settings {
 display:block; box-sizing:border-box; width:100%; margin:5px 0 0;
 padding:6px 2px; border:1px solid var(--eh-border-level4,var(--theme-divider));
 border-radius:5px; background:var(--theme-light);
 color:var(--theme-menu); text-align:center;
 font:700 11px/1.4 "Malgun Gothic",sans-serif; text-decoration:none;
}

/* 퀵메뉴 외곽: 모든 테마에서 투명 배경, 기본 테두리, 그림자 제거. */
html body #eh-sidebar-floating-panel {
 background:transparent!important;
 border-radius:10px!important;
 border:1px solid var(--theme-palette-level3,var(--theme-main))!important;

 box-shadow:none!important;
 margin:0!important;
}
