/* 이야기 상세 — story-detail.html */

/* 커버 · 제목 */
.cover {
  margin: 0;
  height: min(56vh, 520px);
  min-height: 320px;
  overflow: hidden;
  background: var(--ivory-deep);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article {
  max-width: 780px;
  margin-inline: auto;
}
.ahead_back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay-deep);
  font-size: 13.5px;
  font-weight: 650;
}
.ahead_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.35;
  margin: 18px 0 16px;
}
.ahead_lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.ahead_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13.5px;
}
.ahead_share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-left: auto;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 0.2s ease;
}
.ahead_share img {
  width: 15px;
  height: 15px;
  display: block;
}

/* 본문 도입 */
.prologue {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 2;
}
.prologue_open {
  padding-left: 22px;
  border-left: 2px solid var(--clay);
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.8;
}

/* 본문 장면 */
.scene {
  margin-top: 72px;
}
.scene_media {
  margin: 0;
}
.scene_media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.scene_caption {
  margin-top: 14px;
  color: var(--subtle);
  font-size: 13.5px;
  line-height: 1.7;
}
.scene_copy {
  margin-top: 32px;
}
.scene_step {
  color: var(--clay-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.scene_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.4;
  margin: 12px 0 18px;
}
.scene_text {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 2;
}
.scene_text + .scene_text {
  margin-top: 18px;
}

/* 관련 여행 */
.related_panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.related_media {
  display: block;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--ivory-deep);
}
.related_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.related_copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 38px;
}
.related_label {
  color: var(--clay-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.related_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  margin: 12px 0 12px;
}
.related_meta {
  color: var(--muted);
  font-size: 14.5px;
}
.related_price {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}
.related_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--clay-deep);
  font-size: 13.5px;
  font-weight: 700;
}

/* 이어서 볼 이야기 */
.next_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 30px;
}
.next_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-grid);
}
.next_media {
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ivory-deep);
}
.next_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.next_name {
  margin: 16px 0 6px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
}
.next_desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* 모바일 */
@media (max-width: 767px) {
  .ahead_title {
    font-size: 26px;
    line-height: 1.3;
    margin: 10px 0 12px;
  }
  .ahead_lead {
    font-size: 15px;
    line-height: 1.65;
  }
  .prologue {
    margin-top: 36px;
    gap: 14px;
    font-size: 15.5px;
    line-height: 1.7;
  }
  .prologue_open {
    font-size: 17px;
    line-height: 1.6;
  }
  .scene_text {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .next_grid {
    grid-template-columns: 1fr;
  }
  .related_panel {
    grid-template-columns: 1fr;
  }
  .related_media {
    min-height: 0;
    height: 60vw;
  }
  .related_copy {
    padding: 28px 22px 32px;
  }
  .scene {
    margin-top: 52px;
  }
  .next_media {
    height: 56vw;
  }
}

.toast {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: calc(28px + var(--tabbar-height) + var(--safe-bottom));
  translate: -50% 0;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(24, 28, 24, 0.94);
  color: #fff;
  font-size: 13.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.visible {
  opacity: 1;
  transform: none;
}

/* 마우스 호버 전용 — 터치에서는 적용 안 함 */
@media (hover: hover) and (pointer: fine) {
  .ahead_share:hover {
    border-color: var(--forest-deep);
    color: var(--ink);
  }
  .related_media:hover img,
  .next_item:hover .next_media img {
    transform: scale(1.04);
  }
}
