/* 홈페이지 팝업: 안내 창을 계단처럼 겹쳐 띄웁니다. 색은 아래 변수만 바꾸면 됩니다. */
.pomi-pop {
  --pomi-pop-bg: #ffffff;
  --pomi-pop-text: #1d2327;
  --pomi-pop-line: #e1e5e8;
  --pomi-pop-accent: #24476b;
  --w: min(340px, 30vw);          /* 창 하나의 너비 */
  --step-x: 150px;                /* 옆으로 밀리는 간격 */
  --step-y: 26px;                 /* 아래로 밀리는 간격 */
  position: fixed; inset: 0; z-index: 9999; overflow: auto;
  background: rgba(10, 14, 16, .55); font-family: inherit;
}
.pomi-pop__deck {
  position: relative; margin: 0 auto; top: max(24px, 6vh);
  width: calc(var(--w) + (var(--n) - 1) * var(--step-x));
  height: calc(var(--w) * 1.42 + 52px + (var(--n) - 1) * var(--step-y));
}
.pomi-pop__win {
  position: absolute; left: calc(var(--i) * var(--step-x)); top: calc(var(--i) * var(--step-y));
  width: var(--w); display: flex; flex-direction: column;
  background: var(--pomi-pop-bg); color: var(--pomi-pop-text);
  border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
}
.pomi-pop__body { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow: hidden; }
.pomi-pop__pic { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.pomi-pop__pic img { display: block; width: 100%; height: auto; }
.pomi-pop__footer { display: flex; border-top: 1px solid var(--pomi-pop-line); background: var(--pomi-pop-bg); }
.pomi-pop__footer button, .pomi-pop__footer a {
  flex: 1; font: inherit; font-size: 14px; line-height: 1.2; padding: 13px 4px; text-align: center; white-space: nowrap;
  border: 0; background: transparent; color: #4a5258; cursor: pointer; text-decoration: none;
}
.pomi-pop__footer > * + * { border-left: 1px solid var(--pomi-pop-line); }
.pomi-pop__footer .pomi-pop__detail { background: var(--pomi-pop-accent); color: #fff; font-weight: 700; }
.pomi-pop__all {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; font: inherit; font-size: 15px; font-weight: 700;
  padding: 10px 18px; border: 0; border-radius: 99px; background: #fff; color: #1d2327; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.pomi-pop :focus-visible { outline: 3px solid #9cc2ea; outline-offset: -3px; }
.pomi-pop__viewer { position: fixed; inset: 0; z-index: 100; overflow: auto; background: rgba(10, 14, 16, .9); padding: 16px 16px 72px; text-align: center; }
.pomi-pop__viewer img { display: inline-block; width: min(760px, 100%); height: auto; border-radius: 8px; cursor: zoom-out; }
.pomi-pop__viewer-close { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); font: inherit; font-size: 16px; font-weight: 700; padding: 11px 34px; border: 0; border-radius: 99px; background: #fff; color: #1d2327; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .pomi-pop { animation: pomi-pop-fade .2s ease-out; }
  .pomi-pop__win { animation: pomi-pop-in .35s ease-out backwards; animation-delay: calc((var(--n) - 1 - var(--i)) * 70ms); }
}
@keyframes pomi-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pomi-pop-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 휴대폰: 창을 크게, 계단 간격은 좁게 */
@media (max-width: 900px) {
  .pomi-pop { --w: min(78vw, 360px); --step-x: 4.2vw; --step-y: 40px; }
  .pomi-pop__deck { top: 16px; }
  .pomi-pop__footer button, .pomi-pop__footer a { font-size: 13px; padding: 12px 2px; }
}

/* 글로만 만든 안내 */
.pomi-pop__card { padding: 24px 20px 18px; cursor: pointer; }
.pomi-pop__badge { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 99px; background: var(--pomi-pop-accent); color: #fff; font-size: 14px; font-weight: 700; }
.pomi-pop__title { margin: 0 0 14px; font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; }
.pomi-pop__lines { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--pomi-pop-text); }
.pomi-pop__lines li { padding: 10px 0; border-bottom: 1px solid var(--pomi-pop-line); font-size: 16px; line-height: 1.5; }
.pomi-pop__note { margin: 12px 0 0; font-size: 14px; color: #6b747b; }
