/* 70차: 이벤트 통계. 기존 테마 변수와 공통 헤더 스타일 사용 */
.eh-footer-stats{display:flex;align-items:stretch;width:100%;min-height:72px;box-sizing:border-box;background:var(--eh-t-surface);border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:8px;overflow:hidden;font-family:"Malgun Gothic",sans-serif}
.eh-footer-stats__data{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.eh-footer-stats__item{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;padding:10px 3px;box-sizing:border-box;border-right:1px solid var(--eh-border-level4,var(--theme-divider))}
.eh-footer-stats__label{font-size:11px;color:var(--eh-t-muted);white-space:nowrap}
.eh-footer-stats__number{font-size:19px;line-height:1.15;letter-spacing:-.5px;font-weight:800;color:var(--eh-t-accent);font-variant-numeric:tabular-nums}
.eh-footer-stats__heading{flex:0 0 200px;width:200px;min-width:0;box-sizing:border-box;align-self:stretch;text-align:left}
.eh-footer-stats__legacy{padding:14px 10px;align-self:center;font-size:12px;color:var(--eh-t-text)}
.eh-footer-account{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:5px 10px;font-size:11px}
.eh-footer-account img{vertical-align:middle;max-width:75px;height:auto}
/* 공통 .eh-menu-header.eh-unified-menu-title 가 테마별 배경과 텍스트를 관리 */


/* 71차: 카피라이트 영역을 상단 추천/통계 테마와 시각적으로 통일.
   기존 HTML·링크·로그인 및 통계 기능은 변경하지 않습니다. */
html .bottom_border{background:var(--eh-t-surface);border-color:var(--eh-border-level4,var(--theme-divider))}
html .bottom_border .bo_copy{box-sizing:border-box;background:var(--eh-t-soft);color:var(--eh-t-muted);border-top:1px solid var(--eh-border-level4,var(--theme-divider));text-align:center;line-height:1.85;overflow-wrap:anywhere}
html .bottom_border .bo_copy a.aref{color:var(--eh-t-accent)!important;text-decoration:none}
html .bottom_border .bo_copy a.aref:hover{color:var(--eh-t-accent2)!important;text-decoration:underline}
html .bottom_border .bo_copy img{vertical-align:middle;max-width:100%;height:auto}
html .bottom_border .eh-footer-account{background:var(--eh-t-surface);border-top:1px solid var(--eh-border-level4,var(--theme-divider))}

/* 72차: 통계 상단 양쪽 모서리 각지게, 왼쪽·아래 테두리 2px */
html .eh-footer-stats{
  border-top-left-radius:0;
  border-top-right-radius:0;
  border-left-width:1px;
  border-bottom-width:1px;
}

/* 85차: 카피라이트 재구성 및 로그인 상태/로그아웃 복구 */
html .bottom_border .eh-footer-copy{box-sizing:border-box;clear:both;background:var(--eh-t-soft);color:var(--eh-t-muted);border-top:1px solid var(--eh-border-level4,var(--theme-divider));font-family:"Malgun Gothic","Nanum Gothic",sans-serif;font-size:12px}
.eh-footer-copy *{box-sizing:border-box}
.eh-footer-copy__top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:12px 17px;border-bottom:1px solid var(--eh-border-level4,var(--theme-divider))}
.eh-footer-copy__links{display:flex;flex-wrap:wrap;align-items:center;gap:5px 0;min-width:0}
.eh-footer-copy__links a{display:inline-flex;align-items:center;padding:2px 11px;border-right:1px solid var(--eh-border-level4,var(--theme-divider));color:var(--eh-t-text)!important;text-decoration:none!important;font-size:11px;white-space:nowrap}
.eh-footer-copy__links a:first-child{padding-left:0}
.eh-footer-copy__links a:last-child{border-right:0}
.eh-footer-copy__links a:hover{color:var(--eh-t-accent)!important;text-decoration:underline!important}
.eh-footer-copy__account{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:none;white-space:nowrap}
.eh-footer-copy__status{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:var(--eh-t-text,#40536a)}
.eh-footer-copy__status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#39a36a;box-shadow:0 0 0 3px rgba(57,163,106,.12)}
.eh-footer-copy__auth,.eh-footer-copy__admin{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:33px;padding:6px 13px;border:1px solid var(--eh-border-level4,var(--theme-divider));border-radius:6px;background:var(--eh-t-accent);color:var(--theme-button)!important;text-decoration:none!important;font-size:11px;font-weight:700;line-height:1.3;transition:filter .15s}
.eh-footer-copy__auth:hover{filter:brightness(.91);color:var(--theme-button)!important}
.eh-footer-copy__admin{background:transparent;border-color:var(--eh-border-level4,var(--theme-divider));color:var(--eh-t-text)!important}
.eh-footer-copy__bottom{padding:15px 18px 17px;text-align:center;line-height:1.75}
.eh-footer-copy__bottom p{margin:0 0 3px;font-size:11px;color:inherit}
.eh-footer-copy__bottom strong{color:var(--eh-t-text)}



/* 86차: 하단 카피라이트 상단 바 위 여백 24px */
html .bottom_border .eh-footer-copy {
  margin-top:24px;
}

/* 로제: 카피라이트 배경색 지정 제거, 공통 흰색 표면 사용 */
html[data-eh-theme="rose"] .bottom_border .eh-footer-copy,
html[data-eh-theme="rose"] .bottom_border .bo_copy{background:transparent!important;}


/* 하단 추천정보 + 등록 통계: 하나의 외곽선, 사이 구분선 한 줄.
   상단·중단 추천배너, 카드, 리본, 카피라이트 자체 스타일은 유지. */
html body .bottom_border.eh-footer-layout {
  height:auto;
  overflow:visible;
}
html body .eh-footer-layout > .eh-footer-joined {
  box-sizing:border-box;
  width:100%;
  margin:0;
  padding:0;
  border:1px solid var(--theme-palette-level3,var(--theme-border));
  border-radius:10px;
  background:var(--theme-surface);
  /* 리본 접힘 장식이 외곽으로 나오는 기존 형태를 보존. */
  overflow:visible;
}
html body .eh-footer-joined > #re_bottom {
  box-sizing:border-box;
  width:100%;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}
html[data-eh-theme] body .eh-footer-joined > #re_bottom > .tab_warper.eh-mag-banner {
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-eh-theme] body .bottom_border .eh-footer-joined > .eh-footer-stats {
  margin:0!important;
  border:0!important;
  border-top:1px solid var(--theme-palette-level3,var(--theme-border))!important;
  border-radius:0!important;
  background:transparent;
}

/* 모바일 푸터: 통계, 안내 링크, 계정 및 저작권을 화면 폭 안에 배치. */
@media (max-width:767px) {
  html[data-eh-theme] body .bottom_border.eh-footer-layout {width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;box-sizing:border-box;padding:0 10px 12px!important;overflow:visible!important;}
  html[data-eh-theme] body .eh-footer-layout > .eh-footer-joined {min-width:0;max-width:100%;}
  html[data-eh-theme] body .eh-footer-layout .eh-footer-stats {min-width:0!important;min-height:0!important;height:auto!important;}
  html[data-eh-theme] body .eh-footer-layout .eh-footer-stats__data {width:100%!important;min-width:0!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  html[data-eh-theme] body .eh-footer-layout .eh-footer-stats__item {padding:8px 2px!important;min-width:0!important;text-align:center;}
  html[data-eh-theme] body .eh-footer-layout .eh-footer-stats__label {white-space:normal!important;overflow-wrap:anywhere;font-size:10px!important;line-height:1.4;}
  html[data-eh-theme] body .eh-footer-layout .eh-footer-stats__number {max-width:100%;font-size:clamp(10px,3.2vw,14px)!important;overflow-wrap:anywhere;letter-spacing:-.4px;}
  html[data-eh-theme] body .eh-footer-layout .eh-footer-stats__legacy {grid-column:1/-1;min-width:0;overflow-wrap:anywhere;}
  html[data-eh-theme] body .bottom_border .eh-footer-copy {width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;margin:16px 0 0!important;}
  html[data-eh-theme] body .eh-footer-copy__top {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-height:0!important;height:auto!important;padding:12px 10px!important;}
  html[data-eh-theme] body .eh-footer-copy__links {width:100%;justify-content:center;flex-wrap:wrap!important;gap:5px 0;}
  html[data-eh-theme] body .eh-footer-copy__links a {padding:3px 7px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center;}
  html[data-eh-theme] body .eh-footer-copy__account {width:100%;min-width:0;justify-content:center!important;flex-wrap:wrap!important;white-space:normal!important;gap:8px;}
  html[data-eh-theme] body .eh-footer-copy__bottom {padding:12px 10px!important;text-align:center;overflow-wrap:anywhere;}
  html[data-eh-theme] body .eh-footer-copy__bottom p {white-space:normal!important;line-height:1.7;}
}
