/* ====================================================================
   파일: site-detail-ajax.css
   담당: AJAX 상세보기 로딩·오류·숨김
   수정 안내: sites/docs/CSS_수정가이드.md 참고
   주의: 기존 규칙 순서 및 @media 구간을 변경하지 마세요.
   ==================================================================== */
.eh-ajax-slot[hidden]{display:none!important} .eh-detail-loading,.eh-detail-error{padding:24px;text-align:center;color:var(--theme-text,#555)} .eh-detail-error{color:#c0392b} body.eh-modal-open{overflow:hidden} .eh-detail-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box} .eh-detail-modal__shade{position:absolute;inset:0;background:rgba(0,0,0,.56)} .eh-detail-modal__panel{position:relative;z-index:1;width:min(900px,100%);max-height:calc(100vh - 40px);background:var(--theme-surface);border-radius:10px;box-shadow:0 15px 50px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden} .eh-detail-modal__head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--eh-border-level4,var(--theme-divider));background:var(--theme-surface)} .eh-detail-modal__close{font-size:28px;line-height:1;border:0;background:transparent;cursor:pointer;padding:0 5px} .eh-detail-modal__body{overflow:auto;min-height:100px;padding:14px} .eh-detail-modal__body .list_detail{display:block!important;position:relative;width:100%;box-sizing:border-box} 

/* 108차: 상세보기 AJAX 중앙 로딩 상태 */
.eh-detail-loading{box-sizing:border-box;min-height:210px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:28px 16px;text-align:center;color:var(--eh-accent,#357fcb);font-size:14px;font-weight:400}
.eh-detail-loading strong{font-size:15px;font-weight:600;color:inherit}
.eh-detail-loading__hint{font-size:12px;font-weight:400;color:var(--theme-text)}
.eh-detail-loading__spinner{display:block;width:42px;height:42px;box-sizing:border-box;border:4px solid var(--eh-border-level4,var(--theme-divider));border-top-color:currentColor;border-radius:50%;animation:eh-detail-spin .8s linear infinite}
@keyframes eh-detail-spin{to{transform:rotate(360deg)}}
.eh-detail-error{min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box}
.eh-detail-retry{cursor:pointer;border:1px solid currentColor;border-radius:7px;padding:8px 17px;background:transparent;color:inherit;font:inherit}
.eh-detail-retry:hover{background:rgba(128,128,128,.08)}
html[data-eh-theme="rose"] .eh-detail-loading{color:var(--theme-main)}
html[data-eh-theme="clean"] .eh-detail-loading{color:var(--theme-dark)}
html[data-eh-theme="night"] .eh-detail-loading{color:var(--theme-dark)}
@media(prefers-reduced-motion:reduce){.eh-detail-loading__spinner{animation-duration:2s}}

/* 55차: Firefox 상세보기 액션 버튼 글자 렌더링 보정.
   기존 배경색·테마색·버튼 크기·클릭 이벤트는 유지합니다. */
@supports (-moz-appearance: none) {
  .eh-detail-modal__body button,
  .eh-detail-modal__body input[type="button"],
  .eh-detail-modal__body input[type="submit"],
  .eh-detail-modal__body a[class*="btn"],
  .eh-detail-modal__body [role="button"] {
    -webkit-text-fill-color:currentColor;
    opacity: 1;
    visibility: visible;
  }
  .eh-detail-modal__body button *,
  .eh-detail-modal__body a[class*="btn"] * {
    -webkit-text-fill-color:currentColor;
    visibility: visible;
  }
}
