/* 신규 저작 스타일 전용 (R5) */

/* skip-nav (R23) */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 8px 16px;
  background: #0d1526;
  color: #fff;
  font-size: 14px;
  border-radius: 0 0 8px 0;
}
.skip-nav:focus {
  left: 0;
}


/* 스크롤 리빌 */
.has-anim [data-reveal] { opacity: 0; will-change: opacity, transform; }
.has-anim [data-reveal][data-reveal="left"]   { transform: translateX(-40px); }
.has-anim [data-reveal][data-reveal="right"]  { transform: translateX(40px); }
.has-anim [data-reveal][data-reveal="up"]     { transform: translateY(40px); }
.has-anim [data-reveal][data-reveal="up-sm"]  { transform: translateY(20px); }
.has-anim [data-reveal] { transition: opacity 700ms cubic-bezier(0, 0, 0.58, 1), transform 700ms cubic-bezier(0, 0, 0.58, 1); }
.has-anim [data-reveal][data-reveal].rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 로드 등장 */
.has-anim [data-enter] { opacity: 0; will-change: opacity, transform; }
.has-anim [data-enter][data-enter="up10"] { transform: translateY(10px); }
.has-anim [data-enter][data-enter="up20"] { transform: translateY(20px); }
.has-anim [data-enter][data-enter="up30"] { transform: translateY(30px); }
.has-anim [data-enter][data-enter="up40"] { transform: translateY(40px); }
.has-anim [data-enter][data-enter="left30"] { transform: translateX(-30px); }
.has-anim [data-enter][data-enter="right30"] { transform: translateX(30px); }
.has-anim [data-enter] { transition: opacity var(--en-dur, 600ms) cubic-bezier(0, 0, 0.58, 1), transform var(--en-dur, 600ms) cubic-bezier(0, 0, 0.58, 1); }
.has-anim [data-enter][data-enter].en-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-anim [data-enter] { opacity: 1; transform: none; transition: none; }
}

/* 드로어 열림 */
@keyframes ecoDrawerIn {
  0%   { opacity: 0;    transform: translateY(-20px); }
  20%  { opacity: 0.26; transform: translateY(-11.5px); }
  35%  { opacity: 0.42; transform: translateY(-6px); }
  50%  { opacity: 0.70; transform: translateY(1px); }
  75%  { opacity: 0.99; transform: translateY(2.2px); }
  100% { opacity: 1;    transform: none; }
}
[data-mobile-nav]:not([hidden]) { animation: ecoDrawerIn 350ms linear both; }

@media (prefers-reduced-motion: reduce) {
  [data-mobile-nav]:not([hidden]) { animation: none; }
}

/* 가로 넘침 차단 */
html, body { overflow-x: hidden; }

/* 헤더 로고 52px (40px 대비 30% 확대, BUILDER-1760)
   index-4hixo4wb.css 는 빌드 완료된 정적 산출물이라 JIT 이 없다.
   임의값 유틸 .w-[52px] / .h-[52px] 규칙이 그 안에 없으므로 오버레이에서 정의한다(R5 캐스케이드). */
.w-\[52px\] { width: 52px; }
.h-\[52px\] { height: 52px; }

/* Contact — 정보/지도 2열 */
@media (min-width: 1024px) {
  .contact-cols { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .contact-map { height: 340px; }
}

/* 공지 팝업 (BUILDER-1888) — /js/popup.js 가 만드는 DOM 전용.
   index-4hixo4wb.css 는 빌드 완료된 정적 산출물이라 새 유틸이 없다 — 규칙을 여기 직접 둔다(R5). */
.ahb-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;                       /* 헤더·모바일 드로어가 z-50 이다 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.6);
}
.ahb-popup--top { align-items: flex-start; }
.ahb-popup--bottom { align-items: flex-end; }

.ahb-popup__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  /* 100vh 를 쓰면 iOS 의 동적 툴바 높이만큼 패널이 컨테이너보다 커져 하단 버튼이 잘린다.
     오버레이가 fixed 로 실제 가시 영역을 차지하므로 그 안에서 100% 로 재는 편이 정확하다. */
  max-height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.ahb-popup--full .ahb-popup__panel { width: min(100%, 960px); }

.ahb-popup__body { overflow: auto; -webkit-overflow-scrolling: touch; }
.ahb-popup__link { display: block; }
.ahb-popup__image { display: block; width: 100%; height: auto; }

.ahb-popup__content {
  margin: 0;
  padding: 28px 24px;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ahb-popup__actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
}
.ahb-popup__actions button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.ahb-popup__actions button:hover { background: #f1f5f9; }
.ahb-popup__today { margin-right: auto; }
.ahb-popup__close { color: #0f172a; font-weight: 600; }
.ahb-popup__today + .ahb-popup__close { border-left: 1px solid #e2e8f0; }

@media (max-width: 767px) {
  .ahb-popup { padding: 16px; }
}

/* Contact 문의 입력폼 (BUILDER-2084) — /js/contact-inquiry.js 가 그리는 DOM 전용.
   index-4hixo4wb.css 는 빌드 완료된 정적 산출물이라 JIT 이 없다. 폼 컨트롤에 필요한
   border-slate-300 / focus:border-primary / focus:ring-primary/30 / placeholder:* /
   appearance-none / cursor-not-allowed 유틸이 그 안에 없어 규칙을 여기 직접 둔다(R5).
   색은 프로즌 빌드가 쓰는 것과 같은 토큰(--primary / --destructive)을 그대로 참조한다. */
.ahb-inq-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #0f172a;
}
.ahb-inq-req { color: hsl(var(--destructive)); }

.ahb-inq-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;            /* slate-300 */
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ahb-inq-input::placeholder { color: #94a3b8; }
.ahb-inq-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.3);
}
.ahb-inq-input[aria-invalid="true"] {
  border-color: hsl(var(--destructive));
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.2);
}
.ahb-inq-textarea { min-height: 7rem; resize: none; }

.ahb-inq-agree {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.ahb-inq-agree[data-invalid] { border-color: hsl(var(--destructive)); }
.ahb-inq-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.ahb-inq-check {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: hsl(var(--primary));
}
.ahb-inq-terms { margin-top: 0.5rem; }
.ahb-inq-terms + .ahb-inq-agree-row { margin-top: 0.75rem; }
.ahb-inq-terms-toggle {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #475569;
  cursor: pointer;
}
.ahb-inq-terms-body {
  max-height: 12rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #475569;
}
/* 약관 본문은 어드민 HTML 이다 — 넓은 표·이미지가 좁은 우측 열을 밀어내지 않게 가둔다. */
.ahb-inq-terms-body img,
.ahb-inq-terms-body table { max-width: 100%; height: auto; }

.ahb-inq-status {
  /* space-y-4 는 프로즌 빌드에서 :where() 로 감싸여 명시도가 0 이다 —
     여기서 margin 을 0 으로 두면 그 규칙을 이겨 상태문구가 Send 버튼에 달라붙는다. */
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #64748b;
}
.ahb-inq-status--error { color: hsl(var(--destructive)); }
.ahb-inq-status--success { color: hsl(var(--primary)); }

.ahb-inq-alert {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: hsl(var(--destructive));
}

.ahb-inq-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.ahb-inq-submit:hover { opacity: 0.9; }
.ahb-inq-submit:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.ahb-inq-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* 제품 사양표 (BUILDER-2181) — products/hot-cold-poe.html 의 EWA-819T/819S 표.
   index-4hixo4wb.css 는 빌드 완료된 정적 산출물이라 JIT 이 없다. 표에 필요한
   .align-top / .w-1\/3 유틸이 그 안에 없으므로 규칙을 여기 직접 둔다(R5).
   색·여백·테두리는 프로즌 빌드에 있는 유틸을 그대로 쓰고, 여기서는 표 골격만 잡는다. */
.ahb-spec { width: 100%; }
.ahb-spec th,
.ahb-spec td { text-align: left; vertical-align: top; }
/* 라벨 열 — "Product Dimension" 이 두 줄로 접히지 않는 최소 폭. */
.ahb-spec th { width: 42%; font-weight: 600; }
@media (min-width: 768px) {
  .ahb-spec th { width: 36%; }
}
