/*
 * 이용가이드 — PC 히어로: Figma 292:5030 / 모바일: Figma 236:3600 → `.sl-guide-page--mo`
 * 모바일 이미지: `hero-bg-mo.png`, `sns-*-mo.png` 등 / 질문 바로가기: `mo_cat/icon-*.png`
 * 토큰: warm-yellow #e5b22e, 카드 보더 #b3b3b3, FAQ 행 85px, 패널 1520·패딩 60·40
 */
.sl-guide-page {
  --sl-warm: #e5b22e;
  --sl-line: #b3b3b3;
  --sl-faq-bg: #f2f2f2;
  --sl-q-text: #262626;
  --sl-band: #f2f2f2;
  /* 고정 헤더 아래로 앵커 스크롤 보정 (PC ~90px) */
  --sl-guide-header-offset: 56px;
  background: #fff;
  color: #111;
}

@media (min-width: 992px) {
  .sl-guide-page {
    --sl-guide-header-offset: 90px;
  }
}

.sl-guide-page *,
.sl-guide-page *::before,
.sl-guide-page *::after {
  box-sizing: border-box;
}

.sl-guide-page .sl-guide-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- 히어로: 모바일에선 비표시(.sl-guide-page--mo) ----- */
.sl-guide-hero {
  position: relative;
  overflow: hidden;
}

.sl-guide-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sl-guide-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.sl-guide-hero__grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.sl-guide-hero__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(40px, 5vw, 56px);
  box-sizing: border-box;
}

.sl-guide-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(520px, 100%);
}

.sl-guide-hero__title {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
}

.sl-guide-hero__lead {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  white-space: normal;
  max-width: 480px;
}

@media (max-width: 600px) {
  .sl-guide-hero__lead {
    white-space: normal;
  }
}

/* PC — Figma 315:5078: 전체너비 · 우측 라운드 · 히어로 하단 아이콘바 */
.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: unset;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: #fff;
  box-sizing: border-box;
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__media {
  background: linear-gradient(99deg, #E9AE48 22.46%, #DF9C3E 87.32%);
  background-color: #e5b22e;
  width: min(calc(50vw + 824px), 95vw);
  height: clamp(520px, 45.5vw, 734px);
  border-radius: 0 0 284px 0;
  overflow: hidden;
  inset: 0 auto auto 0;
}

/* PC에서는 hero-bg.png 숨김 — amber 배경은 background-color로 처리 */
.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__media > img {
  display: none;
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__grad {
  display: none;
}

/* 분리 일러스트 — __content 기준 absolute, amber 경계 우측으로 overflow */
.sl-guide-hero__illust {
  position: absolute;
  right: clamp(-80px, -4vw, -20px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 36.6vw, 703px);
  height: clamp(280px, 36.6vw, 703px);
  pointer-events: none;
  z-index: 2;
  flex-shrink: 0;
}

.sl-guide-hero__illust img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 1520px 센터 기준 콘텐츠 래퍼 */
.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__content {
  position: relative;
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  height: clamp(520px, 45.5vw, 734px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__shell {
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0 clamp(40px, 3.5vw, 60px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  flex: 1;
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__inner {
  max-width: min(580px, 50%);
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.15;
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__title strong {
  font-weight: 800;
  display: inline;
}

.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-hero__lead {
  font-size: clamp(16px, 1.3vw, 20px);
  margin-top: clamp(16px, 2vw, 28px);
}

/* 카테고리 섹션 PC에서 숨김 (아이콘은 히어로 하단으로 이동) */
.sl-guide-page:not(.sl-guide-page--mo) .sl-guide-categories {
  display: none;
}

/* ----- 히어로 카테고리 아이콘바 (PC, Figma 315:5083) ----- */
.sl-guide-hero__cats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 4.5vw, 62px);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 5vw, 60px) clamp(28px, 3.5vw, 48px);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.sl-guide-hero__cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.sl-guide-hero__cat:hover {
  transform: translateY(-3px);
}

.sl-guide-hero__cat-icon {
  display: block;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.sl-guide-hero__cat-icon img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
}

.sl-guide-hero__cat-label {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  color: #333;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
}

/* ----- 주요 카테고리 ----- */
.sl-guide-categories {
  padding: 52px 0 48px;
  scroll-margin-top: var(--sl-guide-header-offset);
}

.sl-guide-categories__title {
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 auto 52px;
  padding: 0 clamp(16px, 5vw, 60px);
  max-width: 1520px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
}

.sl-guide-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 0 clamp(16px, 5vw, 60px);
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.sl-guide-vp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  min-height: 216px;
  padding: 30px;
  border: 1px solid var(--sl-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sl-guide-vp-card:hover {
  border-color: var(--sl-warm);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.sl-guide-vp-card__img {
  width: 120px;
  height: 120px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sl-guide-vp-card__lottie {
  display: block;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  pointer-events: none;
  transform-origin: center center;
}

/* 배송·사이트: 아이콘 슬롯은 다른 카드와 동일 120×120, 안에서만 확대/축소 후 overflow로 잘림 */
.sl-guide-vp-card--delivery .sl-guide-vp-card__img,
.sl-guide-vp-card--site .sl-guide-vp-card__img {
  width: 120px;
  height: 120px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 잘린 영역 안에서 위치 보정: .sl-guide-page { --sl-lottie-delivery-tx: 4px; } 처럼 덮어쓰기 */
.sl-guide-vp-card--delivery .sl-guide-vp-card__lottie {
  transform: translate(var(--sl-lottie-delivery-tx, 0), var(--sl-lottie-delivery-ty, 0)) scale(1.7);
}

.sl-guide-vp-card--site .sl-guide-vp-card__lottie {
  transform: translate(var(--sl-lottie-site-tx, 0), var(--sl-lottie-site-ty, 0)) scale(0.64);
}

.sl-guide-vp-card__title {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.27px;
  margin: 0;
  text-align: right;
  width: 100%;
}

.sl-guide-vp-card__title--lg {
  font-size: 24px;
  letter-spacing: -0.36px;
  line-height: 32px;
}

/* ----- 패널 래퍼 ----- */
.sl-guide-wrap {
  padding: 0;
  max-width: 1920px;
  margin: 0 auto 0;
}

.sl-guide-panel {
  max-width: 1520px;
  margin: 0 auto 32px;
  padding: 40px 60px;
  border-radius: 15px;
  background: #fff;
  scroll-margin-top: var(--sl-guide-header-offset);
}

.sl-guide-contents-title {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.27px;
  margin: 0;
  padding: 0 10px 20px;
}

.sl-guide-contents-title--sm {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.24px;
}

.sl-guide-rule {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0 20px;
}

.sl-guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

/* FAQ 행 — 배경·모서리는 details(summary 투명). 페이지 스코프로 details에 radius 확실히 적용 */
.sl-guide-page details.sl-guide-faq-item {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.sl-guide-page details.sl-guide-faq-item[open] {
  background: var(--sl-faq-bg);
}

.sl-guide-faq-item > summary {
  list-style: none;
  min-height: 85px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px 11px 24px;
  padding-right: 56px;
  cursor: pointer;
  position: relative;
  border-radius: 0;
  background: transparent;
}

.sl-guide-faq-item > summary::-webkit-details-marker {
  display: none;
}

.sl-guide-faq-item__mark {
  font-family: "Pretendard", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--sl-warm);
  letter-spacing: -0.27px;
  width: 23px;
  flex-shrink: 0;
}

.sl-guide-faq-item__q {
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sl-q-text);
  flex: 1;
  text-align: left;
}

.sl-guide-faq-item__chev {
  position: absolute;
  right: 44px;
  top: 50%;
  margin-top: -5.5px;
  width: 11px;
  height: 11px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sl-guide-faq-item[open] > summary .sl-guide-faq-item__chev {
  transform: rotate(225deg);
  margin-top: 0;
}

.sl-guide-faq-item__body {
  padding: 0 24px 16px 52px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

.sl-guide-faq-item__body p {
  margin: 0 0 10px;
}

.sl-guide-faq-item__figure {
  margin: 16px 0 0;
  max-width: 100%;
}

.sl-guide-faq-item__figure img {
  display: block;
  width: 100%;
  max-width: 666px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.sl-guide-faq-item__figure .sl-guide-fancybox-trigger {
  display: block;
  width: 100%;
  max-width: 666px;
  margin: 0 auto;
  border-radius: 8px;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}

.sl-guide-faq-item__figure .sl-guide-fancybox-trigger:focus-visible {
  outline: 2px solid var(--sl-warm, #ff6b00);
  outline-offset: 2px;
}

.sl-guide-sns-modal__figures .sl-guide-fancybox-trigger {
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.sl-guide-sns-modal__figures .sl-guide-fancybox-trigger:focus-visible {
  outline: 2px solid var(--sl-warm, #ff6b00);
  outline-offset: 2px;
}

.sl-guide-faq-item__vid {
  margin-top: 24px;
  max-width: 100%;
  aspect-ratio: 1032 / 555;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.sl-guide-faq-item__vid video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sl-guide-faq-item__vid--sns {
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 720px);
  margin-left: auto;
  margin-right: auto;
}

/* ----- SNS 밴드 Figma 36:1531 ----- */
.sl-guide-sns-band {
  background: #f2f2f2;
  padding: 60px 0;
  margin: 0;
  scroll-margin-top: var(--sl-guide-header-offset);
}

.sl-guide-sns-band__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
}

.sl-guide-sns-heading {
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
  margin: 0;
  color: #000;
  text-align: left;
  align-self: center;
  width: 100%;
  max-width: 1520px;
  box-sizing: border-box;
  padding: 0 clamp(16px, 5vw, 60px);
}

.sl-guide-sns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.sl-guide-sns-card {
  width: 100%;
  max-width: 311.2px;
  height: 175px;
  box-sizing: border-box;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

button.sl-guide-sns-card {
  margin: 0;
  border: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.sl-guide-sns-card:focus-visible {
  outline: 2px solid var(--sl-warm, #ff6b00);
  outline-offset: 2px;
}

.sl-guide-sns-card__icon {
  position: relative;
  display: block;
  width: 112px;
  height: 69px;
  flex-shrink: 0;
  overflow: hidden;
  pointer-events: none;
}

.sl-guide-sns-card__icon img {
  position: absolute;
  display: block;
  max-width: none;
}

/* 아이콘 프레이밍 — 노드별 Figma 수치 */
.sl-guide-sns-card--blog .sl-guide-sns-card__icon img {
  width: 100%;
  height: 53.62%;
  left: 0;
  top: 0.52%;
}

.sl-guide-sns-card--insta .sl-guide-sns-card__icon img {
  width: 61.93%;
  height: 100.53%;
  left: -0.5%;
  top: 0;
}

.sl-guide-sns-card--tiktok .sl-guide-sns-card__icon img {
  width: 61.75%;
  height: 100.24%;
  left: -0.5%;
  top: 0;
}

.sl-guide-sns-card--youtube .sl-guide-sns-card__icon img {
  width: 79.21%;
  height: 89.44%;
  left: 0.73%;
  top: 0.55%;
}

.sl-guide-sns-card--unlink .sl-guide-sns-card__icon img {
  width: 74.11%;
  height: 120.29%;
  left: -6.75%;
  top: -4.54%;
}

.sl-guide-sns-card__title {
  display: block;
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-align: right;
  width: 100%;
  color: #000;
}

/* ----- SNS 가이드라인 모달 ----- */
.sl-guide-sns-modal {
  z-index: 10000;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 880px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  /* Fancybox가 <dialog> top layer 안에 마운트될 때 오버레이가 잘리지 않도록 clip은 surface에만 둠 */
  overflow: visible;
}

.sl-guide-sns-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.sl-guide-sns-modal__surface {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 880px);
  overflow: hidden;
  border-radius: 16px;
}

.sl-guide-sns-modal__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.sl-guide-sns-modal__title {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

.sl-guide-sns-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #444;
  cursor: pointer;
}

.sl-guide-sns-modal__close:hover {
  background: #f5f5f5;
}

.sl-guide-sns-modal__close:focus-visible {
  outline: 2px solid var(--sl-warm, #ff6b00);
  outline-offset: 2px;
}

.sl-guide-sns-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.sl-guide-sns-modal__figures {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.sl-guide-sns-modal__figures img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.sl-guide-sns-modal__foot {
  margin: 20px 0 0;
  padding: 16px 0 4px;
  border-top: 1px solid #eee;
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  text-align: center;
}

.sl-guide-sns-modal__placeholder {
  margin: 24px 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  text-align: center;
}

.sl-guide-sns-modal__panel[data-sns-panel="youtube"] .sl-guide-sns-modal__intro-video.sl-guide-faq-item__vid {
  margin-top: 28px;
}

.sl-guide-sns-modal__richtext--unlink {
  padding-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

.sl-guide-sns-modal__unlink-hero {
  margin-top: 0;
}

.sl-guide-sns-modal__callout {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
}

.sl-guide-sns-modal__callout-lead {
  margin: 0 0 10px;
  font-weight: 600;
  color: #222;
}

.sl-guide-sns-modal__callout p {
  margin: 6px 0;
}

.sl-guide-sns-modal__subhead {
  margin: 22px 0 8px;
  font-size: 1.12em;
  font-weight: 600;
  color: #111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

.sl-guide-sns-modal__divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 0 16px;
}

.sl-guide-sns-modal__section {
  margin-bottom: 20px;
}

.sl-guide-sns-modal__section:last-of-type {
  margin-bottom: 8px;
}

.sl-guide-sns-modal__section-title {
  margin: 0 0 8px;
}

.sl-guide-sns-modal__section p {
  margin: 0 0 10px;
}

.sl-guide-sns-modal__list {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.sl-guide-sns-modal__list li {
  margin: 0;
}

.sl-guide-sns-modal__mini-q {
  margin: 16px 0 6px;
}

.sl-guide-sns-modal__em-warn {
  color: #c62828;
  font-weight: 600;
}

/* ----- 우측 플로팅 레일 Figma 48:1566 ----- */
.sl-guide-rail {
  display: none;
}

@media (min-width: 1400px) {
  .sl-guide-rail {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: fixed;
    right: 40px;
    top: 50%;
    bottom: auto;
    left: auto;
    z-index: 40;
    width: max-content;
    min-width: 82px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    transform: translate3d(32px, -50%, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.85s;
    will-change: transform;
  }

  .sl-guide-rail.is-visible {
    transform: translate3d(0, -50%, 0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  /* 맨 위로부터 위로 순서대로 펼침 (DOM 순 = 애니메이션 순) */
  .sl-guide-rail > * {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.58s ease,
      transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.15s ease,
      box-shadow 0.15s ease;
    transition-delay: 0s;
  }

  .sl-guide-rail.is-visible > :nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.08s;
  }

  .sl-guide-rail.is-visible > :nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.18s;
  }

  .sl-guide-rail.is-visible > :nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }

  .sl-guide-rail.is-visible > :nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.42s;
  }

  .sl-guide-rail.is-visible > :nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.54s;
  }

  @media (prefers-reduced-motion: reduce) {
    .sl-guide-rail {
      transition-duration: 0.01ms;
    }

    .sl-guide-rail.is-visible {
      transition-duration: 0.01ms;
    }

    .sl-guide-rail > * {
      transition-duration: 0.01ms;
      transition-delay: 0s !important;
    }

    .sl-guide-rail.is-visible > * {
      opacity: 1;
      transform: none;
    }
  }

  .sl-guide-rail__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    min-width: 82px;
    text-decoration: none;
    color: #333;
  }

  .sl-guide-rail.is-visible .sl-guide-rail__item:hover {
    opacity: 0.92;
    transition:
      opacity 0.12s ease,
      transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.15s ease,
      box-shadow 0.15s ease;
  }

  .sl-guide-rail__icon {
    position: relative;
    width: 65.45px;
    height: 65.45px;
    flex-shrink: 0;
  }

  .sl-guide-rail__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sl-guide-rail__label {
    font-family: "Roboto", "Noto Sans KR", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    letter-spacing: -0.42px;
    color: #333;
    white-space: nowrap;
  }

  .sl-guide-rail__top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65.45px;
    height: 65.45px;
    flex-shrink: 0;
    border: 0.85px solid var(--sl-line);
    border-radius: 32.725px;
    background: #fff;
    text-decoration: none;
  }

  .sl-guide-rail__top:hover {
    border-color: #999;
  }

  /* .sl-guide-rail__top.is-active {
    border-color: var(--sl-warm);
    box-shadow: 0 0 0 1px rgba(229, 178, 46, 0.35);
  } */

  .sl-guide-rail__top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24.995px;
    height: 29.885px;
  }

  .sl-guide-rail__top-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 29.885px;
    object-fit: contain;
  }
}

/* 본문 하단 여백(짧게) — 맨 아래 콘텐츠·FAB과 겹침 완화 */
.sl-guide-stack-spacer {
  height: 16px;
}

@media (max-width: 900px) {
  .sl-guide-page:not(.sl-guide-page--mo) .sl-guide-panel {
    padding: 28px 20px;
  }

  .sl-guide-page:not(.sl-guide-page--mo) .sl-guide-faq-item > summary {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .sl-guide-page:not(.sl-guide-page--mo) .sl-guide-faq-item__q {
    font-size: 15px;
  }
}

/*
 * 모바일 이용가이드 — Figma node 236:3600 (Dev / 모바일 프레임)
 * UA 기준 `.sl-guide-page--mo` (user_guide.php 모바일 분기)
 */
.sl-guide-page--mo {
  /* Figma 236:3600: 본문 블록 px 10, 섹션 간 gap 16, 세로 패딩 24~32 */
  --sl-guide-mo-pad: 10px;
  --sl-guide-mo-gap: 16px;
  --sl-guide-mo-section-y: 24px;
  background: #f2f2f2;
}

/* Figma 236:3600: 상단 히어로 대신 앱 헤더 아래 검색 필드 */
.sl-guide-page--mo .sl-guide-hero {
  display: none;
}

.sl-guide-page--mo .sl-guide-mo-toolbar {
  padding: 0 10px 0;
  margin-bottom: 11px;
  box-sizing: border-box;
}

.sl-guide-page--mo .sl-guide-mo-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 20px;
  border-radius: 24px;
  overflow: hidden;
  background: #f7f7f7;
}

.sl-guide-page--mo .sl-guide-mo-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  font-size: 16px;
  color: #111;
  outline: none;
}

.sl-guide-page--mo .sl-guide-mo-search__input::placeholder {
  color: #808080;
}

.sl-guide-page--mo .sl-guide-mo-search__submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sl-guide-page--mo .sl-guide-mo-search__submit img {
  display: block;
  width: 24px;
  height: 24px;
}

.sl-guide-page--mo .sl-guide-mo-search__meta {
  margin: 8px 10px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.35;
  min-height: 1.35em;
}

/* 모바일 본문 검색: 일치하지 않는 블록 숨김 */
.sl-guide-page--mo .sl-guide-search-miss {
  display: none !important;
}

.sl-guide-page--mo .sl-guide-categories {
  background: #fff;
  padding: 16px 0 var(--sl-guide-mo-section-y);
  margin: 0 0 var(--sl-guide-mo-gap);
}

.sl-guide-page--mo .sl-guide-categories__title {
  font-size: 20px;
  font-weight: 600;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  margin: 0 auto var(--sl-guide-mo-gap);
  padding: 0 var(--sl-guide-mo-pad);
  line-height: 1.4;
  letter-spacing: -0.3px;
}

/* Figma 236:3612 — 질문 바로가기 3×2 (PC는 기존 Lottie 카드) */
.sl-guide-page--mo .sl-guide-mo-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sl-guide-mo-gap);
  padding: 0 var(--sl-guide-mo-pad);
  box-sizing: border-box;
}

.sl-guide-page--mo .sl-guide-mo-cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.sl-guide-page--mo .sl-guide-mo-cat-link:active {
  opacity: 0.88;
}

.sl-guide-page--mo .sl-guide-mo-cat-link__art {
  position: relative;
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.sl-guide-page--mo .sl-guide-mo-cat-link__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.sl-guide-page--mo .sl-guide-mo-cat-link__label {
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  letter-spacing: -0.28px;
  width: 100%;
  word-break: keep-all;
}

/* 모바일만 패널 박스 직각 — PC `.sl-guide-panel`은 15px 유지 */
.sl-guide-page--mo .sl-guide-panel {
  padding: var(--sl-guide-mo-section-y) var(--sl-guide-mo-pad) 32px;
  margin: 0 0 var(--sl-guide-mo-gap);
  border-radius: 0;
}

.sl-guide-page--mo .sl-guide-contents-title {
  font-size: 18px;
  font-weight: 600;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  padding: 0 0 16px;
  letter-spacing: -0.27px;
}

.sl-guide-page--mo .sl-guide-contents-title--sm {
  font-size: 15px;
}

.sl-guide-page--mo .sl-guide-rule {
  margin: 0 0 var(--sl-guide-mo-gap);
}

.sl-guide-page--mo .sl-guide-faq-list {
  gap: 8px;
}

.sl-guide-page--mo .sl-guide-faq-item > summary {
  min-height: 0;
  padding: 16px 44px 16px 12px;
  gap: 6px;
  border-radius: 0;
}

.sl-guide-page--mo .sl-guide-faq-item__mark {
  font-size: 15px;
  width: 21px;
}

.sl-guide-page--mo .sl-guide-faq-item__q {
  font-size: 14px;
  line-height: 1.45;
}

.sl-guide-page--mo .sl-guide-faq-item__chev {
  right: 16px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
}

.sl-guide-page--mo .sl-guide-faq-item[open] > summary .sl-guide-faq-item__chev {
  margin-top: 0;
}

.sl-guide-page--mo .sl-guide-faq-item__body {
  padding: 0 12px 16px 40px;
  font-size: 14px;
  line-height: 1.6;
}

.sl-guide-page--mo .sl-guide-faq-item__body p {
  margin-bottom: 8px;
}

/* 패널(`.sl-guide-panel`)과 동일 패딩: 세로 section-y · 가로 mo-pad · 하단 32px */
.sl-guide-page--mo .sl-guide-sns-band {
  padding: var(--sl-guide-mo-section-y) var(--sl-guide-mo-pad) 32px;
  margin: 0 0 var(--sl-guide-mo-gap);
  background: #fff;
}

.sl-guide-page--mo .sl-guide-sns-heading {
  font-size: 18px;
  font-weight: 600;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  /* `.sl-guide-contents-title`과 동일 — 가로는 밴드 패딩에 맡김 */
  padding: 0 0 16px;
  line-height: 1.4;
  letter-spacing: -0.27px;
}

.sl-guide-page--mo .sl-guide-sns-band__inner {
  gap: 0;
}

.sl-guide-page--mo .sl-guide-sns-row {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  padding: 0;
}

.sl-guide-page--mo .sl-guide-sns-card {
  max-width: none;
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.sl-guide-page--mo .sl-guide-sns-card__icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
}

.sl-guide-page--mo .sl-guide-sns-card .sl-guide-sns-card__icon img {
  position: static;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.sl-guide-page--mo .sl-guide-sns-card__title {
  font-size: 16px;
  font-weight: 500;
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  text-align: left;
  flex: 1;
}

.sl-guide-page--mo .sl-guide-sns-modal__richtext--unlink {
  font-size: 14px;
}

.sl-guide-page--mo .sl-guide-stack-spacer {
  height: 20px;
}

/* Figma 335:4860 — 질문 바로가기(#guide-cat) 아래로 스크롤 시 뷰포트 최상단 고정 가로 탭 */
.sl-guide-mo-scroll-tabs {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  /* #header z-index:99999 위에 두어 top:0에 붙여도 보이게 */
  z-index: 100000;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translate3d(0, -110%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.sl-guide-mo-scroll-tabs.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sl-guide-mo-scroll-tabs__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sl-guide-mo-scroll-tabs__track::-webkit-scrollbar {
  display: none;
}

.sl-guide-mo-scroll-tabs__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  max-width: 72px;
  padding: 6px 10px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: #333;
  background: #f7f7f7;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.sl-guide-mo-scroll-tabs__item:active {
  opacity: 0.92;
}

.sl-guide-mo-scroll-tabs__item.is-active {
  background: rgba(229, 178, 46, 0.18);
  border-color: rgba(229, 178, 46, 0.85);
  color: #111;
}

.sl-guide-mo-scroll-tabs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  /* background: #fff; */
}

.sl-guide-mo-scroll-tabs__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sl-guide-mo-scroll-tabs__label {
  font-family: "Roboto", "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .sl-guide-mo-scroll-tabs {
    transition-duration: 0.01ms;
  }
}

/* Figma 236:3813 — 모바일 맨 위로 따라다니는 버튼 */
.sl-guide-mo-scrolltop {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sl-guide-mo-scrolltop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.sl-guide-mo-scrolltop:focus-visible {
  outline: 2px solid #e5b22e;
  outline-offset: 2px;
}

.sl-guide-mo-scrolltop:active {
  opacity: 0.92;
}

.sl-guide-mo-scrolltop__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
}

.sl-guide-mo-scrolltop__inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .sl-guide-mo-scrolltop {
    transition-duration: 0.01ms;
  }
}

/* ----- Details 부드러운 펼침 — JS(setupFaqSmoothExpand)가 max-height 처리 ----- */
.sl-guide-faq-item__body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .sl-guide-faq-item > :not(summary) {
    animation: none;
  }
}
