/*
 * 공용 Offcanvas 드로어 스타일 — Nifty offcanvas 패턴(DESIGN_SYSTEM_NIFTY §2.6).
 * 전역 디자인 토큰(--color-*·--space-*·--radius-*·--fs-*)만 사용. kx-oc__* 네임스페이스.
 */
.kx-oc {
  position: fixed;
  inset: 0;
  z-index: 60;
}

/* 백드롭 — 페이드 인/아웃 */
.kx-oc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.kx-oc.is-open .kx-oc__backdrop {
  opacity: 1;
}

/* 패널 — 우/좌에서 슬라이드 */
.kx-oc__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.22));
  outline: none;
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.kx-oc__panel--right {
  right: 0;
  border-left: var(--border-card);
  transform: translateX(100%);
}
.kx-oc__panel--left {
  left: 0;
  border-right: var(--border-card);
  transform: translateX(-100%);
}
.kx-oc.is-open .kx-oc__panel {
  transform: translateX(0);
}

/* 헤더 */
.kx-oc__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border-bottom: var(--border-card);
  flex: 0 0 auto;
}
.kx-oc__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-h3, var(--fs-body));
  font-weight: var(--fw-semibold);
  color: var(--color-neutral-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kx-oc__headextra {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.kx-oc__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-neutral-500);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.kx-oc__close:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-900);
}
.kx-oc__close:focus-visible {
  outline: 2px solid var(--color-brand-500, #1f29fc);
  outline-offset: 1px;
}

/* 바디(스크롤) */
.kx-oc__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-4);
}

/* 푸터(고정) */
.kx-oc__foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: var(--border-card);
}

/* 모션 최소화 존중 — 슬라이드/페이드 즉시 */
@media (prefers-reduced-motion: reduce) {
  .kx-oc__backdrop,
  .kx-oc__panel {
    transition: none;
  }
}
