/**
 * pages/smoothdiscovery.css — 스무스 디스커버리 (/smoothdiscovery/*) 전용
 * ------------------------------------------------------------------
 * 페이지에서 $pageCSS = ['smoothdiscovery']; 선언 시 layoutHeader 가 자동 로드.
 *
 * 사용 페이지:
 *   - smoothdiscovery/index.php (Hub: 카드 list)
 *   - smoothdiscovery/{cream-dessert, avocado-egg-toast, butter-seafood-rice,
 *                       cheese-pretzel, potato-puree-bingsu, smore,
 *                       meditation-spots, spring-flowers, summer-beach}.php
 *
 * 마크업: <div id="body_container" class="hm-discovery [hm-discovery--hub]">
 *           <header class="hm-discovery-header"> <h1.hm-discovery-title>
 *           <div class="hm-discovery__inner">
 *             <nav class="hm-discovery__primary-nav">
 *             <section class="hm-discovery__section">
 *               <ul class="hm-discovery__secondary-list">
 *               <div class="hm-discovery__feature"> <div class="hm-discovery__visual">
 *
 * 이전: pc.css 1192-2643 → 통합 (2026-06-09)
 */

.hm-discovery {
  --hm-color-primary: #ffe27a;
  --hm-color-surface: #014d39;
  --hm-color-text: #ffffff;
  --hm-label-bg: linear-gradient(
    90deg,
    rgba(0, 34, 22, 0.65) 0%,
    rgba(0, 34, 22, 0.85) 100%
  );
  --hm-item-width: 180px;
  --hm-item-max-width: 450px;
  --hm-transition-fast: 260ms ease;
  --hm-transition-medium: 520ms cubic-bezier(0.33, 1, 0.68, 1);
  --hm-transition-expand: 760ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --hm-transition-label: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}


#body_container.hm-discovery {
  background: var(--hm-color-surface);
  color: var(--hm-color-text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow: hidden;
}

.hm-discovery h1,
.hm-discovery h2 {
  margin: 0;
  color: inherit;
  letter-spacing: -0.0875rem;
  /* text-align: center; */
  margin-bottom: 40px;
}

.hm-discovery h1 {
  font-size: clamp(3rem, 6vw, 4.375rem);
  font-weight: 500;
  line-height: 120%;
}

.hm-discovery h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 140%;
}

.hm-discovery-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #043725;
  align-items: center;
  gap: 40px;
  padding: 120px clamp(24px, 8vw, 200px);
  text-align: center;
  position: relative;
}

.hm-discovery-header::after {
  /* content: ""; */
  position: absolute;
  inset: 30px clamp(20px, 6vw, 160px) -30px;
  /* background: radial-gradient(80% 80% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%); */
  opacity: 0;
  animation: fadeInGlow 1.4s ease forwards;
}

.hm-discovery-header > * {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.9s ease forwards;
}

.hm-discovery-header > img {
  width: 156px;
  animation-delay: 0.1s;
}

.hm-discovery-title {
  animation-delay: 0.25s;

  img {
    width: 320px;
  }
}

.hm-discovery-title span {
  display: inline-block;
  color: var(--hm-color-primary);
}

.hm-discovery-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: -0.02rem;
  max-width: 720px;
  word-break: keep-all;
  animation-delay: 0.4s;
}

.hm-discovery ul,
.hm-discovery li {
  list-style: none;
}
.hm-discovery__feature-item,
.hm-discovery__feature-item li {
  padding: 0;
}
.hm-discovery-section {
  padding: 120px 0 0px;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hm-discovery-section-place {
  padding: 60px 0 120px;

  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hm-discovery-section-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12rem;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.85s ease forwards;
  span {
    font-weight: 200;
    margin: 0 5px;
  }
}

.hm-discovery-list {
  display: flex;
  align-items: stretch;
  gap: 18px;
  height: clamp(320px, 45vw, 520px);
  margin: 0px auto 30px;
  perspective: 1200px;
}

.hm-discovery-item {
  position: relative;
  flex: 0 0 var(--hm-item-width);
  min-width: var(--hm-item-width);
  max-width: var(--hm-item-width);
  border-radius: 100px;
  overflow: hidden;
  transform-origin: center;
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  transition: flex var(--hm-transition-expand),
    max-width var(--hm-transition-expand), transform var(--hm-transition-expand),
    filter var(--hm-transition-medium), box-shadow var(--hm-transition-medium);
  animation: floatUp 0.9s ease forwards;
  /* box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); */
  z-index: 1;
}

.hm-discovery-item:nth-child(1) {
  animation-delay: 0.45s;
}

.hm-discovery-item:nth-child(2) {
  animation-delay: 0.55s;
}

.hm-discovery-item:nth-child(3) {
  animation-delay: 0.65s;
}

.hm-discovery-item:nth-child(4) {
  animation-delay: 0.75s;
}

.hm-discovery-item:nth-child(5) {
  animation-delay: 0.85s;
}

.hm-discovery-item:nth-child(6) {
  animation-delay: 0.95s;
}
.hm-discovery-item.is-active,
.hm-discovery-item:is(:hover, :focus-within) {
  flex: 2.2 1 var(--hm-item-max-width);
  min-width: var(--hm-item-width);
  max-width: var(--hm-item-max-width);
  transform: translateY(-20px) scale(1.02);
  filter: saturate(1.08) brightness(1.08);
  z-index: 5;
}

.hm-discovery-item:is(:hover, :focus-within) ~ .hm-discovery-item,
.hm-discovery-item.is-active ~ .hm-discovery-item {
  filter: saturate(0.82) brightness(0.92);
}

.hm-discovery-link {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  text-decoration: none;
}

.hm-discovery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-discovery-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 48px);
  background: rgba(0, 34, 22, 0.7);

  min-width: 450px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 240ms ease;

  color: var(--hm-color-text);
  text-align: center;
  opacity: 0;
  /* transform: translateY(12px); */
  /* transition: opacity var(--hm-transition-label); */
  /* transform var(--hm-transition-label); */
}

.hm-discovery-item:hover .hm-discovery-label,
.hm-discovery-item:focus-within .hm-discovery-label,
.hm-discovery-item.is-active .hm-discovery-label {
  opacity: 1;
}

.hm-discovery-label .hm-discovery-episode {
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  /* 3.375rem */
  letter-spacing: -0.045rem;
}

.hm-discovery-label .hm-discovery-name {
  color: #d19f58;

  font-family: Pretendard;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  word-break: keep-all;
  min-width: min(380px, 100%);
  max-width: 100%;

  line-height: 150%;
  /* 3.9375rem */
  letter-spacing: -0.0525rem;
}

.hm-discovery-list:hover
  .hm-discovery-item.is-active:not(:hover):not(:focus-within) {
  flex: 0 0 var(--hm-item-width);
  min-width: var(--hm-item-width);
  max-width: var(--hm-item-width);
  transform: translateY(40px) scale(0.98);
  filter: saturate(1) brightness(1);
  z-index: 1;
}

.hm-discovery-list:hover
  .hm-discovery-item.is-active:not(:hover):not(:focus-within)
  .hm-discovery-label {
  opacity: 0;
}

.hm-discovery-list:hover
  .hm-discovery-item.is-active:not(:hover):not(:focus-within)
  ~ .hm-discovery-item {
  filter: saturate(1) brightness(1);
}

.hm-discovery-link:focus {
  outline: 3px solid var(--hm-color-primary);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .hm-discovery-header {
    padding: 100px clamp(24px, 6vw, 120px);
  }

  .hm-discovery-section {
    padding-inline: clamp(24px, 6vw, 120px);
  }

  .hm-discovery-item:hover,
  .hm-discovery-item:focus-within {
    flex: 1.6 1 0;
  }
}

@media (max-width: 960px) {
  .hm-discovery-header {
    padding-block: 80px;
    gap: 32px;
  }

  .hm-discovery-subtitle {
    font-size: 1rem;
  }

  .hm-discovery-list {
    height: 280px;
    gap: 12px;
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInGlow {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.hm-discovery {
  --hm-color-primary: #ffe27a;
  --hm-color-surface: #043725;
  --hm-color-text: #ffffff;
  --hm-label-bg: linear-gradient(
    180deg,
    rgba(4, 55, 37, 0.94) 0%,
    rgba(8, 124, 93, 0.78) 100%
  );
  --hm-item-width: 180px;
  --hm-item-max-width: 450px;
  --hm-transition-fast: 220ms ease;
  --hm-transition-medium: 480ms cubic-bezier(0.33, 1, 0.68, 1);
  --hm-transition-expand: 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --hm-transition-label: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);

  --hm-color-background: var(--hm-color-surface);
  --hm-color-layer: rgba(8, 124, 93, 0.82);
  --hm-color-layer-alt: rgba(4, 55, 37, 0.92);
  --hm-color-muted: rgba(255, 255, 255, 0.72);
  --hm-color-primary-hover: #f6c94d;
  --hm-radius-pill: 999px;
  --hm-radius-card: 36px;
  --hm-shadow-card: 0 28px 60px rgba(0, 0, 0, 0.34);
  --hm-transition: 220ms ease;
  background: var(--hm-color-background);
  color: var(--hm-color-text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.hm-discovery__inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 120px 0 140px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  > p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.8px;
    font-weight: 300;
  }
}

/* Discovery: 리스트로 돌아가기 버튼 */
.hm-discovery__btn-listview {
  color: #fff;
  text-decoration: none;
}

.hm-discovery__primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.hm-discovery__primary-link {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-family: Pretendard;
  font-size: 34px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  /* 42px */
  letter-spacing: -0.56px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--hm-transition), background var(--hm-transition),
    border-color var(--hm-transition);
  span {
    font-weight: 200;
    margin: 0 5px;
  }
}

.hm-discovery__primary-link:hover,
.hm-discovery__primary-link:focus-visible {
  color: var(--hm-color-text);
  /* background: rgba(255, 255, 255, 0.12); */
  border-color: transparent;
  outline: none;
}

.hm-discovery__primary-link--active {
  color: var(--hm-color-text);
}

.hm-discovery__section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hm-discovery__section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hm-discovery__section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.hm-discovery__secondary-nav {
  position: relative;
}

.hm-discovery__hashtags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0px 2px;
  margin-top: 12px;
}
.hm-discovery__hashtags a {
  /* text-decoration: none; */
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-bottom: 5px;
  margin: 0 0 0 5px;
  position: relative;
}

.hm-discovery__hashtag-break {
  flex-basis: 100%;
  height: 0;
}

.hm-discovery__secondary-list {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 0 40px;
  list-style: none;
  /* overflow-x: auto; */
  position: relative;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.hm-discovery__secondary-list::-webkit-scrollbar {
  border-radius: 50px;
  background: transparent;
  height: 6px;
}

.hm-discovery__secondary-list::-webkit-scrollbar-thumb {
  border-radius: 50px;
  background: #d19f58;
}
.hm-discovery__secondary-list::-webkit-scrollbar-track {
  background: transparent;
}
.hm-discovery-loading .hm-discovery {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.hm-discovery-loading .hm-discovery__list-wrap {
  cursor: progress;
}
.hm-discovery__list-wrap {
  position: relative;
  padding-bottom: 10px; /* 스크롤바용 공간 확보 */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  overflow-x: scroll;
  cursor: grab;
  max-width: 1440px;
}

/* 가짜(커스텀) 스크롤바 */
.hm-discovery__list-wrap::before {
  content: none;
}
.hm-discovery__list-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.hm-discovery__list-wrap::-webkit-scrollbar {
  background: transparent;
  border-radius: 50px;
  height: 6px;
}
.hm-discovery__list-wrap::-webkit-scrollbar-track {
  background: rgba(0, 76, 57, 0.65);
  border-radius: 50px;
}
.hm-discovery__list-wrap::-webkit-scrollbar-thumb {
  border-radius: 50px;
  background: #d19f58;
}

.hm-discovery__secondary-item {
  flex: 0 0 auto;
}

.hm-discovery__secondary-button {
  display: inline-flex;
  align-items: center;
  display: flex;
  height: 64px;
  padding: 0 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: var(--hm-radius-pill);
  border-radius: 60px;
  background: #004c39;
  color: var(--hm-color-muted);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  /* 36.4px */
  letter-spacing: -0.65px;
  cursor: pointer;
  transition: background var(--hm-transition), color var(--hm-transition),
    border-color var(--hm-transition), transform var(--hm-transition);
}

.hm-discovery__secondary-button:hover,
.hm-discovery__secondary-button:focus-visible {
  color: var(--hm-color-text);
  background: #087c5d;

  border-color: transparent;

  outline: none;
}

.hm-discovery__secondary-button--active {
  color: var(--hm-color-text);
  background: #087c5d;

  border-color: transparent;
}

.hm-discovery__secondary-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.hm-discovery__feature {
  display: grid;
  grid-template-columns: minmax(300px, 550px) minmax(320px, 1fr);
  gap: 40px;
  padding-top: 40px;
  position: relative;
}

.hm-discovery__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 690px;
  min-height: 420px;
  background: rgba(0, 0, 0, 0.2);
}

.hm-discovery__visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.hm-discovery__visual-image[data-active="true"] {
  opacity: 1;
  transform: scale(1);
}

.hm-discovery__visual-image:not([data-active="true"]) {
  transform: scale(1.02);
}

.hm-discovery__visual-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: var(--hm-radius-pill);
  /* background: rgba(2, 28, 20, 0.72); */
  font-size: 0.9rem;
}

.hm-discovery__visual-button-indicator {
  width: 80px;
  height: 36px;
  font-weight: 500;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #757575;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background var(--hm-transition), transform var(--hm-transition);
}

.hm-discovery__visual-controls {
  display: inline-flex;
  gap: 12px;
}

.hm-discovery__visual-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #757575;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--hm-transition), transform var(--hm-transition);
}

.hm-discovery__visual-button:hover,
.hm-discovery__visual-button:focus-visible {
  color: #043725;
  outline: none;
  font-weight: 700;
  background: rgb(255, 255, 255);
}

.hm-discovery__visual-button:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.hm-discovery__feature-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hm-discovery__feature-content-food {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hm-discovery__headline {
  margin: 0;
  font-size: 36px;

  font-weight: 700;
  line-height: 1.4;

  span {
    color: #d19f58;
  }
}

.hm-discovery__author {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  a {
    color: #fff;
  }
}

.hm-discovery__scroll {
  max-height: 480px;
  height: 90%;
  overflow-y: auto;
  padding-right: 12px;
}

.hm-discovery__scroll::-webkit-scrollbar {
  width: 6px;
}

.hm-discovery__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.hm-discovery__feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hm-discovery__feature-item {
  position: relative;
  padding-left: 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hm-discovery__feature-item-number {
  flex: 0 0 auto;
  min-width: 44px;
  color: #d19f58;
  font-family: Pretendard;
  font-size: 28px;
  text-align: center;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.68px;
}

.hm-discovery__feature-item-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hm-discovery__feature-item-title {
  display: block;
  margin: 0;
  color: #d19f58;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  /* letter-spacing: -0.68px; */
}

.hm-discovery__feature-item-text {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 140%;
  width: 100%;
  word-break: keep-all;
  letter-spacing: -0.8px;
}

.hm-discovery__hashtags {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0px 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
}

.hm-discovery__hashtags a {
  color: rgba(255, 255, 255, 0.5);
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hm-discovery__hashtags a:hover,
.hm-discovery__hashtags a:focus-visible {
  text-decoration: underline;
}

.hm-discovery__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 70px;
  gap: 60px;
  justify-content: center;
}
.hm-discovery__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 300px;
  height: 70px;
  padding: 18px 0;
  border-radius: 60px;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.48px;
  text-decoration: none;
  transition: transform 0.3s ease, background var(--hm-transition),
    border-color var(--hm-transition), color var(--hm-transition);
  transform: scale(1);
}

/* 첫 번째 버튼 */
.hm-discovery__button:first-child {
  background-color: #ffffff;
  color: #d19f58;
  border: 1.5px solid #d19f58;
}

/* 두 번째 버튼 */
.hm-discovery__button:last-child {
  background-color: #d19f58;
  border: 1.5px solid #d19f58;
  color: #fff;
}

/* hover & focus 효과 */
.hm-discovery__button:hover,
.hm-discovery__button:focus-visible {
  transform: scale(1.08);
}

@media ((hover: none) and (pointer: coarse)), (max-width: 1024px) {
  .hm-discovery__primary-link:hover {
    color: rgba(255, 255, 255, 0.4);
    border-color: transparent;
  }

  .hm-discovery__primary-link--active,
  .hm-discovery__primary-link--active:hover {
    color: var(--hm-color-text);
  }

  .hm-discovery__secondary-button:hover {
    background: #004c39;
    color: var(--hm-color-muted);
    border-color: transparent;
  }

  .hm-discovery__secondary-button--active,
  .hm-discovery__secondary-button--active:hover {
    background: #087c5d;
    color: var(--hm-color-text);
    border-color: transparent;
  }

  .hm-discovery__visual-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #757575;
    font-weight: 400;
    transform: none;
  }

  .hm-discovery__button:hover {
    background: transparent;
    border: 1px solid rgba(183, 183, 183, 0.34);
    color: var(--hm-color-text);
    transform: none;
  }

  .hm-discovery__hashtags a:hover {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
  }

  .hm-discovery-item:not(.is-active):is(:hover, :focus-within) {
    flex: 0 0 var(--hm-item-width);
    min-width: var(--hm-item-width);
    max-width: var(--hm-item-width);
    transform: translateY(40px) scale(0.98);
    filter: none;
  }

  .hm-discovery-item:not(.is-active):is(:hover, :focus-within)
    ~ .hm-discovery-item {
    filter: none;
  }
}

.hm-discovery__button-icon img {
  width: 17px;
  height: 17px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hm-discovery.hm-discovery--hub {
    --hm-hub-card-height: min(500px, 60vh);
    --hm-hub-card-closed-ratio: 0.36;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery__inner {
    padding: clamp(80px, 8vw, 120px) 40px clamp(100px, 9vw, 140px);
    gap: clamp(36px, 4vw, 60px);
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-list {
    height: var(--hm-hub-card-height);
    gap: 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-list::-webkit-scrollbar {
    display: none;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-list.is-dragging {
    cursor: grabbing;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-item {
    --hm-hub-card-width: calc(
      var(--hm-hub-card-height) * var(--hm-hub-card-closed-ratio)
    );
    flex: 0 0 auto;
    flex-basis: var(--hm-hub-card-width);
    width: var(--hm-hub-card-width);
    min-width: var(--hm-hub-card-width);
    max-width: var(--hm-hub-card-width);
    height: var(--hm-hub-card-height);
    transform: translateY(14px) scale(1);
    transition: transform 620ms cubic-bezier(0.22, 0.72, 0.28, 1),
      flex-basis 620ms cubic-bezier(0.22, 0.72, 0.28, 1),
      width 620ms cubic-bezier(0.22, 0.72, 0.28, 1);
    will-change: transform, flex-basis;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-item.is-active,
  .hm-discovery.hm-discovery--hub .hm-discovery-item:is(:hover, :focus-within) {
    --hm-hub-card-width: min(var(--hm-hub-card-height), 58dvw);
    flex: 0 0 auto;
    flex-basis: var(--hm-hub-card-width);
    width: var(--hm-hub-card-width);
    min-width: var(--hm-hub-card-width);
    max-width: var(--hm-hub-card-width);
    height: var(--hm-hub-card-height);
    aspect-ratio: 1 / 1;
    transform: translateY(-10px) scale(1);
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-label {
    font-size: 0.95rem;
    min-width: min(400px, 100%);
    margin: 0 auto;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__inner {
    padding: 110px 40px 150px;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__secondary-list {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__feature-content {
    /* padding: 36px 32px 42px; */
  }
  .hm-discovery__feature-item {
    gap: 10px;
  }
  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__headline {
    font-size: 30px;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__feature-item-text {
    font-size: 17px;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .hm-discovery__scroll {
    max-height: unset;
  }
  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__button {
    font-size: 16px;
    padding: 16px 28px;
  }
  .hm-discovery__list-wrap::-webkit-scrollbar-thumb,
  .hm-discovery__list-wrap::-webkit-scrollbar-track {
    background: none;
  }
  .hm-discovery-list::-webkit-scrollbar-thumb,
  .hm-discovery-list::-webkit-scrollbar-track {
    background: none;
  }
  .hm-discovery__feature {
    grid-template-columns: 1fr;
  }

  .hm-discovery__visual {
    min-height: 360px;
  }
  .hm-discovery__feature-item-number {
    font-size: 20px;
    min-width: 36px;
  }
  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__headline {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .hm-discovery.hm-discovery--hub .hm-discovery-item {
    --hm-hub-card-width: clamp(180px, 52vw, 230px);
    transition-duration: 680ms;
    transform: translateY(16px) scale(1);
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-item.is-active,
  .hm-discovery.hm-discovery--hub .hm-discovery-item:is(:hover, :focus-within) {
    --hm-hub-card-width: min(222px, 100%);
    transform: translateY(-8px) scale(1);
    flex: 0 0 auto;
    flex-basis: var(--hm-hub-card-width);
    width: var(--hm-hub-card-width);
    min-width: var(--hm-hub-card-width);
    max-width: var(--hm-hub-card-width);
  }

  .hm-discovery-label {
    min-width: clamp(200px, 75vw, 320px);
    max-width: 100%;
    transition: opacity 600ms ease;
  }

  .hm-discovery-label .hm-discovery-name {
    min-width: clamp(200px, 75vw, 320px);
    max-width: 100%;
  }

  .hm-discovery-item:hover .hm-discovery-label,
  .hm-discovery-item:focus-within .hm-discovery-label,
  .hm-discovery-item.is-active .hm-discovery-label {
    transform: none;
    opacity: 1;
  }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  .hm-discovery.hm-discovery--hub .hm-discovery__inner {
    padding-block: clamp(90px, 9vw, 140px);
    padding-inline: 40px;
    gap: clamp(40px, 4vw, 70px);
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-section,
  .hm-discovery.hm-discovery--hub .hm-discovery-header,
  .hm-discovery.hm-discovery--hub .hm-discovery__list-wrap {
    padding-inline: 40px;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-list {
    height: 420px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-list::-webkit-scrollbar {
    display: none;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-list.is-dragging {
    cursor: grabbing;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-item {
    flex: 0 0 auto;
    flex-basis: 130px;
    min-width: 130px;
    max-width: 130px;
    width: 130px;
    height: 420px;
    transform: translateY(20px) scale(0.98);
    transition: transform 560ms cubic-bezier(0.24, 0.72, 0.24, 1),
      flex-basis 560ms cubic-bezier(0.24, 0.72, 0.24, 1),
      width 560ms cubic-bezier(0.24, 0.72, 0.24, 1);
    transition-delay: 140ms;
    will-change: transform, flex-basis;
  }

  .hm-discovery.hm-discovery--hub .hm-discovery-item.is-active,
  .hm-discovery.hm-discovery--hub .hm-discovery-item:is(:hover, :focus-within) {
    flex: 0 0 auto;
    flex-basis: 420px;
    min-width: 420px;
    max-width: 420px;
    width: 420px;
    height: 420px;
    transform: translateY(-12px) scale(1.03);
  }
  .hm-discovery-label {
    transform: none;
    transition: transform none, opacity 220ms cubic-bezier(0.3, 0.9, 0.32, 1);
  }
  .hm-discovery.hm-discovery--hub .hm-discovery__feature {
    grid-template-columns: minmax(360px, 0.95fr) minmax(380px, 1.05fr);
  }

  .hm-discovery.hm-discovery--hub .hm-discovery__headline {
    font-size: clamp(28px, 3vw, 34px);
  }

  .hm-discovery.hm-discovery--hub .hm-discovery__button {
    width: clamp(260px, 22vw, 300px);
    padding: clamp(14px, 1.6vw, 18px) clamp(12px, 2vw, 20px);
    font-size: clamp(18px, 1.8vw, 20px);
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__inner {
    padding: clamp(90px, 9vw, 130px) 40px clamp(110px, 9vw, 150px);
  }

  .hm-discovery__feature-item {
    gap: 8px;
  }
  .hm-discovery__feature-item-title {
    font-size: 20px;
  }
  .hm-discovery__feature-item-number {
    font-size: 20px;
    min-width: 36px;
  }
  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__headline {
    font-size: 26px;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__feature-item-text {
    font-size: 18px;
    width: 100%;
    padding-right: 0;
  }

  .hm-discovery:not(.hm-discovery--hub) .hm-discovery__hashtags a {
    font-size: 18px;
  }
  .hm-discovery__list-wrap {
    overflow-y: auto;
  }
  .hm-discovery__list-wrap::-webkit-scrollbar-thumb,
  .hm-discovery__list-wrap::-webkit-scrollbar-track {
    background: none;
  }
  .hm-discovery-list::-webkit-scrollbar-thumb,
  .hm-discovery-list::-webkit-scrollbar-track {
    background: none;
  }
  .hm-discovery-label {
    min-width: 420px;
  }

  .hm-discovery-label .hm-discovery-name {
    min-width: 420px;
  }
}

@media (max-width: 768px) {
  .hm-discovery__section {
    gap: 12px;
  }
  .hm-discovery__inner {
    gap: 10px;
  }
  .hm-discovery__feature {
    grid-template-columns: 1fr;
  }

  .hm-discovery__visual {
    min-height: 360px;
  }
  .hm-discovery-title img {
    width: 170px;
  }

  .hm-discovery-header > img {
    width: 100px;
  }

  .hm-discovery h2 {
    font-size: 24px;
  }
  .hm-discovery__inner .hm-discovery__headline {
    font-size: 20px;
    br {
      display: none;
      word-break: keep-all;
    }
  }
  .hm-discovery__secondary-button {
    padding: 12px 22px;
  }
  .hm-discovery__secondary-list {
    padding: 0;
  }
  .hm-discovery-header,
  .hm-discovery-section {
    padding: 60px 16px 0;
  }
  .hm-discovery__feature-content-food {
    gap: 10px;
  }
  .hm-discovery__feature-item-text {
    width: 100%;
  }
  .hm-discovery-header,
  .hm-discovery-section.hm-discovery-section-place {
    padding: 60px 16px;
  }
  .hm-discovery__primary-link {
    font-size: 20px;
  }
  .hm-discovery__list-wrap::-webkit-scrollbar-thumb,
  .hm-discovery__list-wrap::-webkit-scrollbar-track {
    background: none;
  }
  .hm-discovery-list::-webkit-scrollbar-thumb,
  .hm-discovery-list::-webkit-scrollbar-track {
    background: none;
  }
  .hm-discovery__visual {
    height: 418px;
  }
  .hm-discovery__secondary-button {
    padding: 8px 12px;
    gap: 4px;
  }
  .hm-discovery__secondary-button {
    height: 34px;
    font-size: 14px;
  }
  .hm-discovery__visual-button-indicator {
    height: 29px;
    font-size: 14px;
    width: 63px;
  }
  .hm-discovery__scroll {
    padding-right: 0;
  }
  .hm-discovery__feature-item-number {
    min-width: 28px;
  }
  .hm-discovery__feature-item-title,
  .hm-discovery__feature-item-number {
    font-size: 20px;
  }
  .hm-discovery__feature-item {
    gap: 4px;
  }
  .hm-discovery__visual-button {
    display: none;
  }
  .hm-discovery__secondary-icon {
    width: 20px;
    height: 20px;
  }
  .hm-discovery__inner {
    padding: 40px 20px;
    p {
      font-size: 14px;
      margin-bottom: 20px;
    }
  }
  .hm-discovery__button-icon {
    display: flex;
    align-items: center;
    height: 44px;
  }
  .hm-discovery__button {
    width: 50%;
    height: 46px;
    font-size: 14px;
    gap: 10px;
    padding: 0;
  }
  .hm-discovery__feature-list {
    gap: 8px;
  }
  .hm-discovery__feature {
    padding: 0;
    gap: 36px;
  }

  .hm-discovery-subtitle br {
    display: none;
  }

  .hm-discovery-subtitle br.br-pm {
    display: block;
  }

  .hm-discovery-item.is-active,
  .hm-discovery-item:is(:hover, :focus-within) {
    flex: 0 0 222px;
    border-radius: 24px;
  }
  .hm-discovery__actions {
    gap: 14px;
    padding-top: 0;
    flex-wrap: nowrap;
  }
  .hm-discovery__button-icon img {
    width: 10px;
    height: 10px;
  }
  .hm-discovery__headline {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .hm-discovery-header {
    padding-block: 60px;
  }

  .hm-discovery-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    height: 230px;
    margin: 40px -12px 0;
    padding-inline: 12px;
  }

  .hm-discovery-item {
    flex: 0 0 80px;
    min-width: 0;
    max-width: none;
  }

  .hm-discovery-item:hover,
  .hm-discovery-item:focus-within {
    transform: scale(1.02);
  }

  .hm-discovery-label {
    font-size: 0.8rem;
    min-width: 200px;
    margin: 0 auto;
  }

  .hm-discovery-label .hm-discovery-episode {
    font-size: 16px;
  }

  .hm-discovery-label .hm-discovery-name {
    font-size: 20px;
    min-width: unset;
  }
  .hm-discovery__primary-nav {
    gap: 20px;
  }
  .hm-discovery__scroll {
    max-height: unset;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════════
 * Responsive — tablet.css/mobile.css 에서 이전 (2026-06-09)
 * ══════════════════════════════════════════════════════════════════════ */

@media all and (max-width: 1024px) {
    #smoothDiscoveryList {
        scroll-margin-top: 100px;
    }
}

@media all and (max-width: 512px) {
    #smoothDiscoveryList {
        scroll-margin-top: 90px;
    }
}
