:root {
  /* 조계종 삼보련 공식 색상 */
  --yh-jogye-kasaya: #231916;
  --yh-jogye-gold-kasaya: #b6500e;
  --yh-jogye-gold: #b9a26a;
  --yh-kasaya-50: #eae4db;
  --yh-kasaya-70: #e5cbb5;
  --yh-kasaya-400: #b05845;
  --yh-kasaya-700: #6b3a2e;
  --yh-gold-50: #f9f6f0;
  --yh-gold-300: #b8a168;
  --yh-gold-700: #8d7643;
  --yh-gold-900: #392c17;

  --yh-green: var(--yh-gold-300);
  --yh-green-dark: var(--yh-kasaya-700);
  --yh-green-banner: var(--yh-kasaya-70);
  --yh-green-light: var(--yh-gold-50);
  --yh-bg: #ffffff;
  --yh-surface: #ffffff;
  --yh-ink: var(--yh-jogye-kasaya);
  --yh-muted: var(--yh-gold-700);
  --yh-border: var(--yh-kasaya-50);
  --yh-card-muted: var(--yh-gold-50);
  --yh-cta-soft: #fdf6ef;
  --yh-cta-soft-border: rgba(182, 80, 14, 0.2);
  --yh-point: var(--yh-jogye-gold-kasaya);
  --yh-point-hover: #9a4509;
  --yh-point-soft: #fdf6ef;
  --yh-point-muted: rgba(182, 80, 14, 0.1);
  --yh-accent-sage: var(--yh-kasaya-700);
  --yh-accent-sage-soft: var(--yh-kasaya-50);
  --yh-accent-gold: var(--yh-jogye-gold);
  --yh-accent-primary: var(--yh-point);
  --yh-accent-primary-hover: var(--yh-point-hover);
  --yh-shadow-cta: 0 2px 10px rgba(182, 80, 14, 0.2);
  --yh-radius: 12px;
  --yh-radius-sm: 6px;
  --yh-shadow: none;
  --yh-max: 1520px;
  --yh-side: clamp(4px, calc((100vw - var(--yh-max)) / 2), 6px);
  --yh-gutter: clamp(16px, 2.4vw, 32px);
  --yh-hero-text-inset: clamp(56px, 5.5vw, 96px);
  --yh-gap: 10px;
  --yh-font-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --yh-font-sans: var(--yh-font-ui);
  --yh-font-gothic: var(--yh-font-ui);
  --yh-font-brand: "Seokbo", "Batang", serif;
  --yh-font-hero: var(--yh-font-brand);
}

@font-face {
  font-family: "Seokbo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Seokbo.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--yh-font-ui);
  color: var(--yh-ink);
  background: var(--yh-bg);
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.yh-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;
}

.yh-wrap {
  width: min(var(--yh-max), calc(100% - var(--yh-side) * 2));
  max-width: var(--yh-max);
  margin: 0 auto;
}

.yh-wrap--wide {
  width: 100%;
  max-width: none;
  padding-left: var(--yh-gutter);
  padding-right: var(--yh-gutter);
}

/* ── Header ── */
.yh-header {
  background: var(--yh-surface);
  border-bottom: 1px solid var(--yh-border);
}

.yh-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  height: 82px;
  padding-top: 0;
  padding-bottom: 0;
  container-type: inline-size;
  container-name: yh-header;
}

.yh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.yh-logo__img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}

.yh-logo__img--footer {
  height: 48px;
  max-width: 200px;
}

.yh-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(32px, 3.2vw, 56px);
  min-width: 0;
  padding: 0 8px 0 0;
}

.yh-nav a {
  font-size: 17px;
  font-weight: 600;
  color: #504C47;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.yh-nav a:hover { color: var(--yh-point); }

.yh-nav a.is-active {
  color: var(--yh-point);
  font-weight: 700;
}

.yh-header__utils {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.yh-header__search {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #3d3429;
  cursor: pointer;
  text-decoration: none;
}

.yh-header__search svg { width: 20px; height: 20px; }

.yh-header__search:hover { color: #1a1f1c; }

.yh-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
  background: #fff;
  color: #3d3429;
  padding: 0;
  cursor: pointer;
}

.yh-menu-toggle svg { width: 20px; height: 20px; }

.yh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.yh-btn--donate {
  padding: 7px 16px;
  background: var(--yh-accent-primary);
  color: #fff;
  font-family: var(--yh-font-ui);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--yh-shadow-cta);
}

.yh-btn--donate svg { width: 14px; height: 14px; }

.yh-btn--donate:hover {
  background: var(--yh-accent-primary-hover);
  box-shadow: 0 3px 12px rgba(182, 80, 14, 0.28);
}

.yh-btn--hero {
  align-self: flex-start;
  padding: 11px 24px;
  background: var(--yh-green-dark);
  color: #fff;
  border: none;
  font-family: var(--yh-font-sans);
  font-size: 15px;
  font-weight: 600;
}

.yh-btn--hero:hover { background: #6e6358; }

.yh-btn--search {
  padding: 0 16px;
  height: 38px;
  background: var(--yh-green);
  color: #fff;
  border-radius: var(--yh-radius-sm);
  flex-shrink: 0;
}

.yh-btn--outline {
  padding: 6px 12px;
  background: #fff;
  color: var(--yh-ink);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
  font-size: 13px;
}

.yh-btn--schedule {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 10px 14px;
  background: #fff;
  color: var(--yh-point);
  border: 1.5px solid var(--yh-point);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.yh-btn--schedule:hover {
  background: var(--yh-point);
  color: #fff;
  box-shadow: var(--yh-shadow-cta);
}

.yh-btn--donate-sm {
  padding: 8px 16px;
  background: var(--yh-accent-primary);
  color: #fff;
  font-family: var(--yh-font-ui);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--yh-shadow-cta);
}

.yh-btn--donate-sm:hover {
  background: var(--yh-accent-primary-hover);
  color: #fff;
  box-shadow: 0 3px 12px rgba(182, 80, 14, 0.28);
}

/* ── Hero (와이드 배너 3:1 — 좌우 크롭 최소화) ── */
.yh-hero {
  position: relative;
  width: 100%;
  height: clamp(160px, 33.33vw, 438px);
  background: #454038;
  overflow: hidden;
}

.yh-hero__viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

.yh-hero__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.yh-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.yh-hero__slide img,
.yh-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.yh-hero--promo .yh-hero__slide--promo {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

/* PC: 풍경 배너 / 모바일: 홍보 슬라이드 */
.yh-hero--promo {
  display: none;
  height: auto;
  flex-direction: column;
  gap: 0;
  background: #fff;
}

.yh-hero--promo .yh-hero__viewport {
  position: relative;
  inset: auto;
  display: block;
  line-height: 0;
  height: clamp(180px, 48vw, 260px);
  overflow: hidden;
}

.yh-hero--promo .yh-hero__track,
.yh-hero--promo .yh-hero__slide {
  height: 100%;
}

.yh-hero--promo .yh-hero__slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.yh-hero--promo .yh-hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px 4px;
  background: #fff;
  border-top: none;
}

.yh-hero--promo .yh-hero__dots {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
}

.yh-hero--promo .yh-hero__dot {
  background: rgba(61, 52, 41, 0.22);
}

.yh-hero--promo .yh-hero__dot.is-active {
  background: #5c4a38;
}

.yh-hero--promo .yh-hero__dot:focus-visible {
  outline-color: #5c4a38;
}

.yh-hero--promo .yh-hero__pause {
  background: rgba(61, 52, 41, 0.08);
  color: #5c4a38;
}

@media (max-width: 640px) {
  .yh-hero--landscape {
    display: none;
  }

  .yh-hero--promo {
    display: flex;
  }

  .yh-hero--promo .yh-hero__viewport {
    height: clamp(168px, 42vw, 212px);
  }

  .yh-hero--promo .yh-hero__promo {
    gap: 2px;
    padding: 10px 14px 12px;
    background: linear-gradient(
      180deg,
      rgba(26, 22, 18, 0) 0%,
      rgba(26, 22, 18, 0.38) 52%,
      rgba(26, 22, 18, 0.8) 100%
    );
  }

  .yh-hero--promo .yh-hero__slide--baekjung .yh-hero__promo {
    background: linear-gradient(
      180deg,
      rgba(35, 74, 114, 0) 0%,
      rgba(35, 74, 114, 0.45) 52%,
      rgba(26, 42, 62, 0.86) 100%
    );
  }

  .yh-hero--promo .yh-hero__promo-tag {
    margin-bottom: 1px;
    padding: 2px 8px;
    font-size: 10px;
  }

  .yh-hero--promo .yh-hero__promo-title {
    font-size: 17px;
    line-height: 1.28;
  }

  .yh-hero--promo .yh-hero__promo-desc {
    font-size: 11.5px;
    line-height: 1.35;
    opacity: 0.92;
  }

  .yh-hero--promo .yh-hero__controls {
    padding: 4px 14px 2px;
  }
}

.yh-hero__promo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: clamp(18px, 4vw, 28px) clamp(16px, 4vw, 32px);
  background: linear-gradient(
    180deg,
    rgba(26, 22, 18, 0.04) 0%,
    rgba(26, 22, 18, 0.42) 48%,
    rgba(26, 22, 18, 0.78) 100%
  );
  color: #fff;
  pointer-events: none;
}

.yh-hero__slide--baekjung .yh-hero__promo {
  background: linear-gradient(
    180deg,
    rgba(35, 74, 114, 0.08) 0%,
    rgba(35, 74, 114, 0.52) 50%,
    rgba(26, 42, 62, 0.88) 100%
  );
}

.yh-hero__promo-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.yh-hero__slide--baekjung .yh-hero__promo-tag {
  background: rgba(90, 142, 184, 0.55);
}

.yh-hero__promo-title {
  font-family: var(--yh-font-hero);
  font-size: clamp(20px, 4.8vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.yh-hero__promo-desc {
  margin: 0;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.45;
  opacity: 0.92;
}

.yh-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 4;
}

.yh-hero__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.yh-hero__dot.is-active {
  background: #fff;
  width: 20px;
  border-radius: 999px;
}

.yh-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.yh-hero__pause {
  margin-left: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.yh-hero__pause.is-paused .yh-hero__pause-icon { display: none; }

.yh-hero__play-icon { display: none; }

.yh-hero__pause.is-paused .yh-hero__play-icon { display: block; }

@media (prefers-reduced-motion: reduce) {
  .yh-hero__track {
    transition: none;
  }
}

/* ── AI bar ── */
.yh-ai {
  position: relative;
  z-index: 6;
  margin-top: -56px;
  margin-bottom: 10px;
}

.yh-ai__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(118deg, #fdfcfb 0%, #f3efea 100%);
  border: 1px solid rgba(164, 147, 130, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(35, 25, 22, 0.1);
  overflow: hidden;
  container-type: inline-size;
  container-name: yh-ai;
}

.yh-ai__top {
  display: grid;
  grid-template-columns: 272px minmax(200px, 33%) minmax(520px, 1fr);
  align-items: center;
  gap: 20px 24px;
  padding: 16px 14px;
}

.yh-ai__inner.is-chat-open .yh-ai__top {
  border-bottom: 1px solid rgba(164, 147, 130, 0.16);
}

.yh-ai__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s cubic-bezier(0.33, 1, 0.68, 1);
}

.yh-ai__inner.is-chat-open .yh-ai__panel {
  grid-template-rows: 1fr;
}

.yh-ai__close {
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--yh-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.yh-ai__close[hidden] {
  display: none !important;
}

.yh-ai__close svg {
  width: 18px;
  height: 18px;
}

.yh-ai__close:hover {
  background: #fff;
  color: var(--yh-ink);
}

.yh-ai__close:focus-visible {
  outline: 2px solid var(--yh-point);
  outline-offset: 2px;
}

.yh-ai__panel-inner {
  overflow: hidden;
  min-height: 0;
  background: #ffffff;
}

.yh-ai__thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(280px, 40vh);
  overflow-y: auto;
  padding: 10px 18px 14px;
  scroll-behavior: smooth;
  background: #ffffff;
}

.yh-ai__turn {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yh-ai__row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
}

.yh-ai__row--user {
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 0 6px;
  background: linear-gradient(180deg, #fff 78%, rgba(255, 255, 255, 0));
}

.yh-ai__row--bot {
  justify-content: flex-start;
  align-items: flex-start;
}

.yh-ai__avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(164, 147, 130, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.yh-ai__avatar img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.yh-ai__msg {
  max-width: min(520px, 82%);
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  animation: yh-ai-msg-in 0.3s ease;
}

.yh-ai__row--user .yh-ai__msg {
  max-width: min(320px, 75%);
  width: fit-content;
}

.yh-ai__msg p {
  margin: 0;
}

.yh-ai__msg p + p {
  margin-top: 6px;
}

.yh-ai__msg--user {
  background: var(--yh-green-dark);
  color: #fff;
  border: none;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.yh-ai__msg--bot {
  background: #fff;
  color: #484440;
  border: 1px solid var(--yh-border);
  border-bottom-left-radius: 4px;
}

.yh-ai__msg-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--yh-point);
  border: none;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(182, 80, 14, 0.22);
}

.yh-ai__msg-link:hover {
  background: var(--yh-point-hover);
  text-decoration: none;
}

.yh-ai__msg--typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 9px 12px;
  max-width: none;
}

.yh-ai__msg--typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b0a498;
  animation: yh-ai-dot 1s ease-in-out infinite;
}

.yh-ai__msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.yh-ai__msg--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes yh-ai-msg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yh-ai-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .yh-ai__panel {
    transition: none;
  }

  .yh-ai__msg {
    animation: none;
  }

  .yh-ai__msg--typing span {
    animation: none;
    opacity: 0.6;
  }
}

.yh-ai__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.yh-ai__plant {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.yh-ai__mascot {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

@media (min-width: 1101px) {
  .yh-ai__brand {
    padding-right: 20px;
    margin-right: 4px;
    border-right: 1px solid rgba(164, 147, 130, 0.16);
  }
}

.yh-ai__brand-text {
  min-width: 0;
}

.yh-ai__brand-title {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 3px;
}

.yh-ai__brand-title strong {
  font-family: var(--yh-font-hero);
  font-size: 20px;
  font-weight: 700;
  color: var(--yh-ink);
  letter-spacing: -0.03em;
  line-height: 1.25;
  white-space: nowrap;
}

.yh-brand-name {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--yh-point);
}

.yh-ai__brand-title em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--yh-point);
  background: var(--yh-point-muted);
  padding: 2px 7px;
  border-radius: 999px;
}

.yh-ai__brand-text p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--yh-muted);
  line-height: 1.4;
  white-space: normal;
  max-width: 12em;
}

.yh-ai__search {
  position: relative;
  width: 100%;
  min-width: 0;
}

.yh-ai__search input {
  width: 100%;
  max-width: 100%;
  height: 44px;
  border: 1.5px solid rgba(164, 147, 130, 0.32);
  border-radius: 999px;
  padding: 0 88px 0 18px;
  font: inherit;
  font-size: 13px;
  color: var(--yh-ink);
  background: #fff;
}

.yh-ai__search input:focus {
  outline: none;
  border-color: rgba(182, 80, 14, 0.45);
  box-shadow: 0 0 0 3px var(--yh-point-muted);
}

.yh-ai__search input::placeholder { color: #b8b0a6; }

.yh-ai__search button {
  position: absolute;
  top: 4px;
  right: 4px;
  height: calc(100% - 8px);
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--yh-accent-primary);
  color: #fff;
  font-family: var(--yh-font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--yh-shadow-cta);
}

.yh-ai__search button:hover {
  background: var(--yh-accent-primary-hover);
  box-shadow: 0 3px 12px rgba(182, 80, 14, 0.28);
}

.yh-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  min-width: 0;
  column-gap: 0;
}

.yh-quick--bar {
  align-self: center;
  max-width: 100%;
}

.yh-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  min-height: 58px;
  padding: 6px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #504C47;
  text-align: center;
  text-decoration: none;
  border-left: 1px solid rgba(164, 147, 130, 0.18);
  transition: color 0.2s ease;
}

.yh-quick--bar .yh-quick__item {
  justify-content: center;
  min-height: 64px;
  padding: 8px 6px;
}

.yh-quick__item:hover {
  color: var(--yh-point);
}

.yh-quick__item:hover .yh-quick__icon {
  color: var(--yh-point-hover);
  transform: translateY(-1px);
}

.yh-quick__item:first-child {
  border-left: none;
}

.yh-quick__label {
  display: block;
  width: 100%;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: keep-all;
}

.yh-quick--bar .yh-quick__label {
  font-size: 13.5px;
}

.yh-quick__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--yh-point);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.yh-quick__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* 패널 안 퀵메뉴 (모바일 채팅 영역) */
.yh-quick--in-panel {
  display: none;
}

.yh-ai__mobile-chips {
  display: none;
}

.yh-ai__welcome {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yh-ai__welcome--static {
  display: none;
}

.yh-ai__welcome .yh-ai__msg p {
  color: var(--yh-text-secondary, #5c5348);
}

/* ── 추천 배너 (시각 앵커) ── */
.yh-featured {
  position: relative;
  z-index: 5;
  margin: -8px 0 16px;
}

.yh-featured__card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 148px;
  border-radius: 14px;
  border: 1px solid rgba(164, 147, 130, 0.22);
  box-shadow: 0 10px 28px rgba(58, 52, 46, 0.1);
  text-decoration: none;
  color: inherit;
}

.yh-featured__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  object-position: center 35%;
}

.yh-featured__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px 20px;
  background: linear-gradient(
    180deg,
    rgba(26, 22, 18, 0.04) 0%,
    rgba(26, 22, 18, 0.42) 48%,
    rgba(26, 22, 18, 0.78) 100%
  );
  color: #fff;
}

.yh-featured__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.yh-featured__title {
  font-family: var(--yh-font-hero);
  font-size: clamp(20px, 4.8vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.yh-featured__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.92;
}

.yh-featured__cta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yh-featured__card--campaign .yh-featured__copy {
  background: linear-gradient(
    180deg,
    rgba(35, 74, 114, 0.08) 0%,
    rgba(35, 74, 114, 0.52) 50%,
    rgba(26, 42, 62, 0.88) 100%
  );
}

.yh-featured__card--campaign .yh-featured__tag {
  background: rgba(90, 142, 184, 0.55);
}

.yh-featured__card:hover .yh-featured__cta {
  opacity: 0.9;
}

/* ── Main ── */
.yh-main {
  padding-top: 4px;
  padding-bottom: 20px;
}

.yh-main .yh-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yh-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  box-shadow: none;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yh-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.yh-card__head h2 {
  margin: 0;
  font-family: var(--yh-font-hero);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--yh-ink);
}

.yh-card__more {
  font-size: 11px;
  color: var(--yh-point);
  font-weight: 600;
  transition: color 0.15s ease;
}

.yh-card__more:hover {
  color: var(--yh-point-hover);
}

.yh-notice__list li:last-child,
.yh-schedule__list li:last-child,
.yh-program__list li:last-child { border-bottom: none; }

.yh-link {
  font-size: 12px;
  color: var(--yh-point);
  font-weight: 600;
}

.yh-link--outline {
  display: block;
  margin-top: auto;
  padding: 9px 12px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--yh-point);
  background: #fff;
  border: 1.5px solid var(--yh-point);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.yh-link--outline:hover {
  background: var(--yh-point);
  color: #fff;
  box-shadow: var(--yh-shadow-cta);
}

.yh-link--block { margin-top: auto; }

/* ── Layout placeholders ── */
.yh-slot {
  display: block;
  border-radius: 4px;
  background: #f0ece7;
}

.yh-slot--line { height: 10px; width: 100%; }

.yh-slot--sm { width: 78%; }

.yh-slot--xs { height: 8px; width: 52%; }

.yh-slot--title { height: 12px; width: 88%; margin-bottom: 8px; }

.yh-slot--desc { height: 9px; width: 100%; margin-bottom: 10px; }

.yh-slot--date {
  width: 32px;
  height: 9px;
  flex-shrink: 0;
  background: #e8e2db;
}

.yh-slot--media {
  background: linear-gradient(145deg, #f3efea 0%, #e8e2db 100%);
  border-radius: var(--yh-radius-sm);
}

.yh-slot--video {
  position: relative;
  height: 132px;
}

.yh-slot--video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.yh-slot--banner {
  min-height: 56px;
  margin-top: auto;
  background: var(--yh-green);
  border-radius: var(--yh-radius-sm);
}

.yh-slot--btn {
  height: 38px;
  margin-top: auto;
  background: var(--yh-green);
  border-radius: var(--yh-radius-sm);
}

.yh-slot--btn-outline {
  height: 36px;
  margin-top: auto;
  background: #fff;
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
}

.yh-slot--tag {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #f7f4f0;
}

.yh-slot--thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
  background: #e6e0d8;
}

.yh-slot--thumb-wide {
  width: 68px;
  height: 40px;
  border-radius: 5px;
}

.yh-slot--square {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 6px;
  background: #e6e0d8;
}

.yh-slot--chip {
  width: 58px;
  height: 28px;
  border-radius: var(--yh-radius-sm);
  background: #fff;
  border: 1px solid var(--yh-border);
}

.yh-slot--chip-green {
  width: 72px;
  background: var(--yh-green);
  border: none;
}

.yh-slot--map {
  min-height: 108px;
  background: linear-gradient(160deg, #f3efea 0%, #e8e0d6 50%, #ddd4c9 100%);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
}

.yh-slot--icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--yh-border);
}

.yh-slot--select {
  width: 88px;
  height: 28px;
  border-radius: var(--yh-radius-sm);
  background: #fff;
  border: 1px solid var(--yh-border);
}

.yh-slot--addr { width: 92%; margin-bottom: 12px; }

.yh-slot--footer-brand { width: 140px; margin-bottom: 6px; }

.yh-slot--footer-info { width: 100%; max-width: 360px; margin-bottom: 5px; }

/* ── 5-card row ── */
.yh-cards5 {
  display: grid;
  grid-template-columns: 1.06fr 1.04fr 1.1fr 0.98fr 1.02fr;
  gap: 20px;
  align-items: stretch;
  container-type: inline-size;
  container-name: yh-cards5;
  --yh-cards5-foot-gap: 18px;
}

.yh-cards5 > .yh-card {
  padding: 14px 16px 12px;
}

/* 5열: 본문 ↔ 하단 CTA 간격 통일 */
.yh-cards5 .yh-schedule__list,
.yh-cards5 .yh-program__list {
  margin-bottom: var(--yh-cards5-foot-gap);
}

.yh-cards5 .yh-tags {
  margin-bottom: var(--yh-cards5-foot-gap);
}

.yh-cards5 .yh-youtube__list {
  margin-top: auto;
  padding-top: var(--yh-cards5-foot-gap);
}

.yh-notice,
.yh-schedule {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  container-type: inline-size;
  container-name: yh-notice-card;
}

.yh-notice {
  overflow: hidden;
}

.yh-schedule {
  gap: 0;
}

.yh-notice__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.yh-notice__title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.yh-notice__title-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.yh-notice__title-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.yh-notice__title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: keep-all;
}

.yh-notice__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  color: #9a9a9a;
}

.yh-notice__breadcrumb a {
  color: #9a9a9a;
}

.yh-notice__breadcrumb a:hover {
  color: #666;
  text-decoration: underline;
}

.yh-notice__breadcrumb [aria-current="page"] {
  color: #888;
}

.yh-notice__bc-sep {
  color: #c4c4c4;
  font-size: 9px;
  user-select: none;
}

.yh-schedule .yh-card__head {
  flex-shrink: 0;
}

.yh-notice__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.yh-notice__list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  flex: 1 1 0;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--yh-border);
}

.yh-notice__datebox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 40px;
  padding: 4px 8px;
  background: var(--yh-card-muted);
  border-radius: var(--yh-radius-sm);
  white-space: nowrap;
}

.yh-notice__datebox em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--yh-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.yh-notice__list li:first-child .yh-notice__datebox {
  background: rgba(164, 147, 130, 0.14);
}

.yh-notice__detail {
  min-width: 0;
  overflow: hidden;
}

.yh-notice__list a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  color: var(--yh-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.yh-notice__text {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.yh-notice__list a:hover {
  color: var(--yh-point);
}

.yh-notice__new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--yh-point);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.yh-notice__list li:first-child a {
  font-weight: 600;
}

.yh-notice__note {
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 10.5px;
  color: var(--yh-muted);
  line-height: 1.35;
  flex-shrink: 0;
}

.yh-schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.yh-schedule__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  flex: 1 1 0;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--yh-border);
}

.yh-schedule__datebox {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  min-height: 40px;
  padding: 4px 8px;
  background: var(--yh-card-muted);
  border-radius: var(--yh-radius-sm);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.yh-schedule__datebox em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--yh-ink);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.yh-schedule__datebox em::after {
  content: "|";
  margin-left: 4px;
  font-weight: 400;
  color: #d4ccc0;
}

.yh-schedule__datebox b {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--yh-muted);
  line-height: 1.1;
}

.yh-schedule__datebox--sat {
  background: #eef3f8;
}

.yh-schedule__datebox--sat em,
.yh-schedule__datebox--sat b { color: #3b6ea8; }

.yh-schedule__datebox--sat em::after { color: rgba(59, 110, 168, 0.35); }

.yh-schedule__datebox--sun {
  background: #faf0f0;
}

.yh-schedule__datebox--sun em,
.yh-schedule__datebox--sun b { color: #c04a4a; }

.yh-schedule__datebox--sun em::after { color: rgba(192, 74, 74, 0.35); }

.yh-schedule__detail {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.yh-schedule__name {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--yh-ink);
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
}

.yh-schedule__meta {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--yh-muted);
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.yh-tstay {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

.yh-program {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
  min-width: 0;
}

/* 5열 카드: 헤더 제목·더보기 통일 — 같은 수평선 */
.yh-cards5 .yh-card__head {
  margin-bottom: 12px;
  align-items: center;
  min-height: 24px;
}

.yh-cards5 .yh-card__head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--yh-font-hero);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--yh-ink);
}

.yh-cards5 .yh-card__head h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yh-point) 0%, var(--yh-accent-gold) 100%);
  flex-shrink: 0;
}

.yh-cards5 .yh-card__more {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--yh-point);
}

.yh-tstay__img {
  width: 100%;
  min-height: 140px;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #efebe5;
}

.yh-tstay__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.yh-tstay__body {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  margin-top: auto;
}

.yh-tstay__title {
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.yh-tstay__desc {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--yh-muted);
  line-height: 1.4;
}

.yh-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.yh-tags span {
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--yh-accent-sage-soft);
  color: var(--yh-accent-sage);
  font-weight: 600;
}

.yh-program__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yh-program__list li {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--yh-border);
}

.yh-program__list li:last-child {
  border-bottom: none;
}

.yh-program__thumb {
  width: 64px;
  height: 48px;
  aspect-ratio: auto;
  align-self: center;
  border-radius: var(--yh-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f0ec;
}

.yh-program__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.yh-program__thumb--seon img {
  object-position: 78% 42%;
}

.yh-program__thumb--walk img {
  object-position: 96% 38%;
}

.yh-program__list strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yh-ink);
  letter-spacing: -0.02em;
}

.yh-program__list span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--yh-muted);
  line-height: 1.35;
}

.yh-program__list li > div {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.yh-program .yh-link--outline {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: 9px 10px;
  font-size: 11.5px;
  box-sizing: border-box;
}

.yh-youtube {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.yh-youtube__feat {
  flex-shrink: 0;
}

.yh-youtube__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--yh-radius-sm);
  overflow: hidden;
  background: #1a1f1c;
}

.yh-youtube__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yh-youtube__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-bottom: 0;
  border-bottom: none;
}

.yh-youtube__caption strong {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yh-ink);
  letter-spacing: -0.02em;
}

.yh-youtube__caption span {
  font-size: 10px;
  color: var(--yh-muted);
  line-height: 1.35;
}

.yh-youtube__views {
  color: var(--yh-muted) !important;
  font-size: 10px !important;
}

.yh-youtube__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yh-youtube__list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border-bottom: none;
}

.yh-youtube__list li a {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.yh-youtube__list li a:hover strong {
  color: var(--yh-green-dark);
}

.yh-youtube__list img {
  width: 72px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.yh-youtube__list strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.yh-youtube__list span {
  font-size: 10px;
  color: var(--yh-muted);
  line-height: 1.3;
}

.yh-youtube__list li a > div {
  flex: 1;
  min-width: 0;
}

/* 5열: 수행·명상 열 높이에 맞춰 유튜브 하단 썸네일 확장 */
@media (min-width: 1101px) {
  .yh-cards5 > .yh-card {
    height: 100%;
    min-height: 0;
  }

  /* 템플스테이: 카드 높이에 맞춰 대표 이미지 확장 */
  .yh-tstay__img {
    flex: 1 1 0;
    min-height: 128px;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
  }

  .yh-tstay__body {
    flex: 0 0 auto;
    margin-top: 0;
  }

  /* 수행·명상: 항목은 고정, 버튼은 하단 + 목록과 간격 유지 */
  .yh-program {
    min-height: 0;
  }

  /* 법회 일정: 목록 세로 확장 + 행 균등 분배 */
  .yh-schedule__list li {
    min-height: 48px;
  }

  .yh-program__list {
    flex: 1 1 auto;
    min-height: 0;
  }

  .yh-program__list li {
    flex: 1 1 0;
    min-height: 52px;
    padding: 0;
  }

  .yh-program__thumb {
    width: 64px;
    height: 48px;
  }

  .yh-youtube {
    height: 100%;
    padding: 14px 14px 12px;
  }

  .yh-youtube__list {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: auto;
    gap: 10px;
  }

  .yh-youtube__list li {
    flex: 1 1 0;
    min-height: 52px;
    align-items: stretch;
  }

  .yh-youtube__list li a > div {
    align-self: center;
  }

  .yh-youtube__list img {
    width: auto;
    height: 100%;
    min-height: 52px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* ── 3-card row ── */
.yh-cards3 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.12fr) minmax(0, 0.9fr);
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.yh-cards3 > .yh-card {
  min-height: 188px;
  min-width: 0;
  background: var(--yh-card-muted);
  padding: 14px 16px 12px;
}

.yh-gallery {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  gap: 10px;
}

.yh-map {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.yh-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.yh-gallery__item {
  display: block;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: none;
  background: #f3f0ec;
}

.yh-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  vertical-align: top;
}

.yh-map__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 8px 12px;
  align-items: stretch;
  flex: 1;
  min-height: 136px;
}

.yh-map__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  min-width: 0;
}

.yh-cards3 .yh-card__head h2,
.yh-map__title,
.yh-donate__head h2 {
  font-family: var(--yh-font-hero);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--yh-ink);
}

.yh-cards3 .yh-card__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yh-cards3 .yh-card__head h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yh-point) 0%, var(--yh-accent-gold) 100%);
  flex-shrink: 0;
}

.yh-map__title,
.yh-donate__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yh-map__title::before,
.yh-donate__head h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--yh-point) 0%, var(--yh-accent-gold) 100%);
  flex-shrink: 0;
}

.yh-cards3 .yh-card__head {
  margin-bottom: 10px;
}

.yh-cards3 .yh-card__more {
  font-family: var(--yh-font-ui);
  font-size: 12px;
}

.yh-map__title {
  margin: 0 0 10px;
}

.yh-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.yh-map__addr {
  margin: 0;
  flex: 1;
  font-family: var(--yh-font-ui);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--yh-muted);
}

.yh-map__addr span {
  display: block;
}

.yh-map__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-family: var(--yh-font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--yh-point);
  background: #fff;
  border: 1.5px solid rgba(182, 80, 14, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.yh-map__actions .yh-map__btn:first-child {
  background: var(--yh-point);
  border-color: var(--yh-point);
  color: #fff;
  box-shadow: var(--yh-shadow-cta);
}

.yh-map__btn:hover {
  background: var(--yh-point-soft);
  color: var(--yh-point-hover);
  border-color: var(--yh-point);
}

.yh-map__actions .yh-map__btn:first-child:hover {
  background: var(--yh-point-hover);
  color: #fff;
}

.yh-map__visual {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background: #f7f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yh-map__art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 148px;
  object-fit: cover;
  object-position: center;
}

.yh-donate {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--yh-card-muted);
}

.yh-donate__head h2 {
  margin: 0;
  font-family: var(--yh-font-hero);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--yh-ink);
}

.yh-donate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.yh-donate__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 8px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.yh-donate__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 108px;
  background: transparent;
}

.yh-donate__desc {
  margin: 0;
  font-family: var(--yh-font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--yh-muted);
  letter-spacing: -0.01em;
}

.yh-donate__text .yh-btn--donate-sm {
  align-self: flex-start;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.yh-donate__img {
  min-height: 108px;
  background: var(--yh-card-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yh-donate__img img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: contain;
  object-position: center right;
  display: block;
  mix-blend-mode: multiply;
}

/* ── Footer ── */
.yh-footer {
  background: #f7f5f2;
  border-top: 1px solid var(--yh-border);
  padding: 0;
  margin-top: 0;
}

.yh-footer__wrap {
  padding: 20px 0 22px;
}

.yh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(164, 147, 130, 0.18);
}

.yh-footer__legal a {
  position: relative;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4a433c;
  text-decoration: none;
  line-height: 1.4;
}

.yh-footer__legal a:first-child {
  padding-left: 0;
}

.yh-footer__legal a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  background: #d4ccc0;
  transform: translateY(-50%);
}

.yh-footer__legal a:hover {
  color: var(--yh-green-dark);
  text-decoration: underline;
}

.yh-footer__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 28px;
}

.yh-footer__main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 520px;
  min-width: 0;
}

.yh-footer__brand {
  flex-shrink: 0;
  line-height: 0;
}

.yh-footer__info {
  flex: 1 1 auto;
  min-width: 0;
}

.yh-footer__org {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3d3429;
  letter-spacing: -0.01em;
}

.yh-footer__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.yh-footer__lines li {
  font-size: 11.5px;
  line-height: 1.55;
  color: #6a635c;
  word-break: keep-all;
}

.yh-footer__key {
  font-weight: 600;
  color: #5c5854;
  margin-right: 4px;
}

.yh-footer__lines a {
  color: inherit;
  text-decoration: none;
}

.yh-footer__lines a:hover {
  color: var(--yh-green-dark);
  text-decoration: underline;
}

.yh-footer__sep {
  color: #d4ccc0;
  font-size: 10px;
  margin: 0 8px;
  user-select: none;
}

.yh-footer__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  flex: 0 0 auto;
}

.yh-footer__sns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yh-footer__sns-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--yh-muted);
  white-space: nowrap;
}

.yh-footer__social {
  display: flex;
  align-items: center;
  gap: 5px;
}

.yh-footer__social-link {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.yh-footer__social-link svg {
  width: 13px;
  height: 13px;
  display: block;
}

.yh-footer__social-link--yt { background: #ff0000; }
.yh-footer__social-link--ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}
.yh-footer__social-link--ig svg { stroke: #fff; }
.yh-footer__social-link--fb { background: #1877f2; }
.yh-footer__social-link--kk { background: #fee500; color: #3b1e1e; }

.yh-footer__sites select {
  height: 30px;
  min-width: 108px;
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 11.5px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a39688' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: #5c5854;
  cursor: pointer;
}

.yh-footer__bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(164, 147, 130, 0.14);
}

.yh-footer__copy {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--yh-muted);
  line-height: 1.45;
}

.yh-footer__notice {
  margin: 0;
  font-size: 10.5px;
  color: #a39688;
  line-height: 1.45;
}

/* ── Mobile ── */
@media (max-width: 1100px) {
  .yh-nav,
  .yh-header__utils { display: none; }

  .yh-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 58px;
    min-height: 58px;
    padding: 0;
  }

  .yh-logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .yh-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--yh-border);
    padding: 8px var(--yh-side) 12px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(61, 52, 41, 0.1);
  }

  .yh-nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(164, 147, 130, 0.15);
    font-size: 16px;
  }

  .yh-nav.is-open a:last-child {
    border-bottom: none;
  }

  .yh-menu-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-left: 0;
  }

  .yh-cards5 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 수행·명상: 2열 레이아웃에서도 썸네일이 잘리지 않도록 전체 너비 */
  .yh-cards5 > .yh-card.yh-program {
    grid-column: 1 / -1;
  }

  .yh-cards5 > .yh-card {
    min-height: 0;
  }

  .yh-cards3 {
    grid-template-columns: 1fr;
  }

  .yh-cards3 > .yh-card {
    min-height: 0;
  }

  .yh-ai__top {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 14px;
  }

  .yh-ai__brand-text p {
    max-width: none;
  }

  .yh-ai__search { max-width: none; }

  .yh-quick {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .yh-quick__item {
    min-width: 0;
    padding: 8px 4px;
  }

  .yh-map__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .yh-footer__body {
    flex-direction: column;
    gap: 16px;
  }

  .yh-footer__main {
    flex-direction: column;
    gap: 12px;
  }

  .yh-footer__aside {
    width: 100%;
    justify-content: space-between;
  }

  .yh-footer__legal a {
    font-size: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 1280px) {
  .yh-nav {
    gap: clamp(20px, 2.2vw, 36px);
  }

  .yh-nav a {
    font-size: 16px;
  }

  .yh-ai__top {
    grid-template-columns: 260px minmax(180px, 32%) minmax(420px, 1fr);
    gap: 18px 22px;
    padding: 16px 22px;
  }

  .yh-ai__thread {
    padding: 14px 22px 18px;
  }

  .yh-ai__brand-text p {
    max-width: 11em;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  :root {
    --yh-side: 16px;
  }

  .yh-header__inner {
    height: 52px;
    min-height: 52px;
    padding: 0;
  }

  .yh-logo__img {
    height: 40px;
    max-width: min(160px, 48vw);
  }

  .yh-hero {
    height: clamp(180px, 48vw, 260px);
  }

  .yh-hero--promo {
    height: auto;
  }

  .yh-ai {
    margin-top: -28px;
    margin-bottom: 8px;
  }

  .yh-ai__inner {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(118deg, #fdfcfb 0%, #f3efea 100%);
    box-shadow: 0 8px 28px rgba(35, 25, 22, 0.1);
  }

  .yh-ai__brand {
    order: 1;
    flex-shrink: 0;
    gap: 10px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(164, 147, 130, 0.12);
  }

  .yh-ai__brand-text p {
    display: none;
  }

  .yh-ai__plant {
    width: 40px;
    height: 40px;
  }

  .yh-ai__mascot {
    width: 36px;
    height: 36px;
  }

  /* 모바일: 컴팩트 채팅형 — 헤더 → 대화(웰컴+버튼) → 입력 */
  .yh-ai__top {
    display: contents;
  }

  .yh-ai__top > .yh-quick--bar {
    display: none;
  }

  .yh-ai__panel {
    order: 2;
    flex: 0 0 auto;
    grid-template-rows: 1fr !important;
    transition: none;
  }

  .yh-ai__panel-inner {
    height: auto;
    background: #ffffff;
  }

  .yh-ai__thread {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    padding: 10px 14px 8px;
    background: #ffffff;
  }

  .yh-ai__welcome--static {
    display: flex;
  }

  .yh-ai__inner.has-conversation .yh-ai__welcome--static {
    display: none;
  }

  .yh-ai__inner.has-conversation .yh-ai__thread {
    max-height: min(300px, 48dvh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .yh-ai__row--user {
    position: static;
    padding: 0;
    background: none;
  }

  .yh-quick--in-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 4px -4px 0;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(164, 147, 130, 0.1);
  }

  .yh-quick--in-panel .yh-quick__item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 8px 4px 4px;
    border-left: 1px solid rgba(164, 147, 130, 0.12);
    font-size: 11px;
  }

  .yh-quick--in-panel .yh-quick__item:first-child {
    border-left: none;
    padding-left: 2px;
  }

  .yh-quick--in-panel .yh-quick__icon {
    width: 22px;
    height: 22px;
  }

  .yh-quick--in-panel .yh-quick__icon svg {
    width: 18px;
    height: 18px;
  }

  .yh-quick--in-panel .yh-quick__label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
  }

  .yh-ai__inner.has-conversation .yh-quick--in-panel {
    display: none;
  }

  .yh-ai__search {
    order: 3;
    flex-shrink: 0;
    max-width: none;
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(164, 147, 130, 0.16);
    background: linear-gradient(180deg, #faf9f7 0%, #f3efea 100%);
  }

  .yh-ai__search input {
    flex: 1;
    border-radius: 22px;
    font-size: 16px;
  }

  .yh-ai__search button {
    flex-shrink: 0;
    min-width: 56px;
    border-radius: 22px;
  }

  .yh-ai__row--user .yh-ai__msg {
    max-width: min(240px, 84%);
  }

  .yh-cards5 {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* 모바일: 공지 → 볼거리(유튜브·갤러리) → 참여 카드 순 */
  .yh-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .yh-cards5,
  .yh-cards3 {
    display: contents;
  }

  .yh-cards3 {
    margin-top: 0;
  }

  .yh-cards5 > .yh-notice,
  .yh-notice {
    order: 1;
  }

  .yh-cards5 > .yh-youtube,
  .yh-youtube {
    order: 2;
  }

  .yh-cards3 > .yh-gallery,
  .yh-gallery {
    order: 3;
  }

  .yh-cards5 > .yh-tstay,
  .yh-tstay {
    order: 4;
  }

  .yh-cards5 > .yh-program,
  .yh-program {
    order: 5;
  }

  .yh-cards5 > .yh-schedule,
  .yh-schedule {
    order: 6;
  }

  .yh-cards3 > .yh-map,
  .yh-map {
    order: 7;
  }

  .yh-cards3 > .yh-donate,
  .yh-donate {
    order: 8;
  }

  .yh-main {
    padding-top: 0;
    padding-bottom: 28px;
  }

  .yh-tstay__img {
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .yh-tstay__title {
    font-size: 16px;
  }

  .yh-tstay__desc {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .yh-program__list li:first-child {
    padding-top: 0;
  }

  .yh-program__list li:first-child .yh-program__thumb {
    width: 76px;
    height: 57px;
  }

  .yh-card {
    padding: 16px;
  }

  .yh-program__list li {
    flex: 0 0 auto;
    align-items: center;
    padding: 10px 0;
    gap: 14px;
  }

  .yh-program__thumb {
    width: 68px;
    height: 51px;
    flex-shrink: 0;
  }

  .yh-program__thumb img {
    object-position: left center;
  }

  .yh-program__thumb--seon img,
  .yh-program__thumb--walk img {
    object-position: left center;
  }

  .yh-map__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 108px);
    gap: 10px;
    align-items: center;
    min-height: 0;
  }

  .yh-map {
    padding: 0;
  }

  .yh-map__title {
    margin-bottom: 6px;
  }

  .yh-map__actions {
    margin-top: 8px;
    gap: 4px;
  }

  .yh-map__addr {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .yh-map__visual,
  .yh-slot--map {
    min-height: 0;
    height: auto;
    align-self: stretch;
  }

  .yh-map__art {
    min-height: 84px;
    max-height: 96px;
  }

  .yh-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yh-cards3 {
    gap: 14px;
  }

  .yh-cards3 > .yh-card {
    min-height: 0;
  }

  .yh-donate {
    padding: 0;
    gap: 8px;
  }

  .yh-donate__body {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 92px);
    gap: 10px;
    align-items: end;
  }

  .yh-donate__text {
    min-height: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .yh-donate__desc {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .yh-donate__text .yh-btn--donate-sm {
    margin-top: 0;
    padding: 7px 13px;
    font-size: 13px;
  }

  .yh-donate__img {
    min-height: 0;
    height: 84px;
    align-self: end;
  }

  .yh-donate__img img {
    min-height: 0;
    height: 84px;
    width: auto;
    max-width: 100%;
    object-position: center bottom;
  }

  .yh-map__btn {
    flex: 1 1 calc(50% - 3px);
    text-align: center;
    justify-content: center;
  }

  /* ── Mobile typography: 가독성 우선 (2단계 확대) ── */
  body {
    font-size: 16px;
  }

  .yh-btn {
    font-size: 15px;
  }

  .yh-btn--donate {
    font-size: 15px;
  }

  .yh-btn--schedule,
  .yh-link--outline,
  .yh-link--block {
    font-size: 14px;
  }

  .yh-card__head h2,
  .yh-cards3 .yh-card__head h2,
  .yh-map__title,
  .yh-donate__head h2,
  .yh-notice__title h2 {
    font-size: 18px;
  }

  .yh-cards5 .yh-card__head h2 {
    font-size: 19px;
  }

  .yh-cards3 .yh-card__more {
    font-size: 14px;
  }

  .yh-card__more,
  .yh-cards5 .yh-card__more {
    font-size: 13px;
  }

  .yh-ai__brand-title strong {
    font-size: 18px;
  }

  .yh-ai__brand-title em {
    font-size: 12px;
  }

  .yh-ai__brand-text p {
    font-size: 13px;
  }

  .yh-ai__search input {
    font-size: 16px;
  }

  .yh-ai__search button {
    font-size: 15px;
  }

  .yh-ai__msg {
    font-size: 15px;
  }

  .yh-ai__msg-link {
    font-size: 13px;
  }

  .yh-notice__list li {
    min-height: 46px;
  }

  .yh-notice__list a {
    font-size: 14px;
  }

  .yh-notice__datebox em {
    font-size: 12px;
  }

  .yh-notice__note {
    font-size: 13px;
  }

  .yh-schedule__datebox em {
    font-size: 12px;
  }

  .yh-schedule__datebox b {
    font-size: 11px;
  }

  .yh-schedule__name {
    font-size: 15px;
  }

  .yh-schedule__meta {
    font-size: 13px;
  }

  .yh-tstay__title {
    font-size: 15px;
  }

  .yh-tstay__desc {
    font-size: 14px;
  }

  .yh-tags span {
    font-size: 13px;
  }

  .yh-program__list strong {
    font-size: 15px;
  }

  .yh-program__list span {
    font-size: 14px;
  }

  .yh-youtube__caption strong {
    font-size: 14px;
  }

  .yh-youtube__caption span,
  .yh-youtube__list strong {
    font-size: 13.5px;
  }

  .yh-youtube__list span {
    font-size: 13px;
  }

  .yh-map__addr {
    font-size: 15.5px;
  }

  .yh-map__btn {
    font-size: 14.5px;
    padding: 8px 13px;
  }

  .yh-donate__desc {
    font-size: 15.5px;
  }

  .yh-donate__text .yh-btn--donate-sm {
    font-size: 14.5px;
    padding: 9px 16px;
  }

  .yh-footer__org,
  .yh-footer__lines li {
    font-size: 12.5px;
  }

  .yh-footer__copy {
    font-size: 12px;
  }

  .yh-footer__notice {
    font-size: 11.5px;
  }

  .yh-footer__sns-label {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .yh-ai__search input {
    padding-right: 88px;
    font-size: 16px;
  }

  .yh-ai__search button {
    padding: 0 16px;
    font-size: 15px;
  }
}

/* ── 줌·협소 영역: 글자 크기 유지, 넘침만 줄바꿈으로 처리 ── */
@container yh-notice-card (max-width: 220px) {
  .yh-notice__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .yh-notice__breadcrumb {
    justify-content: flex-start;
    font-size: 9px;
  }

  .yh-notice__title h2 {
    font-size: 14px;
  }

  .yh-notice__title-icon,
  .yh-notice__title-icon svg {
    width: 18px;
    height: 18px;
  }
}

@container yh-ai (max-width: 1220px) {
  .yh-ai__brand-title {
    flex-wrap: wrap;
  }

  .yh-ai__brand-title strong {
    white-space: normal;
    word-break: keep-all;
  }

  .yh-quick--in-panel .yh-quick__label {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .yh-quick--in-panel .yh-quick__item {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@container yh-header (max-width: 1220px) {
  .yh-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 4px;
  }

  .yh-nav a {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

@container yh-cards5 (max-width: 1340px) {
  .yh-notice__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .yh-notice__list li {
    align-items: center;
  }

  .yh-program__list li {
    align-items: center;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 8px 0;
  }

  .yh-program__thumb {
    margin-top: 0;
  }

  .yh-program__list strong,
  .yh-program__list span,
  .yh-youtube__caption strong,
  .yh-youtube__list strong,
  .yh-youtube__list span,
  .yh-youtube__list li a > div,
  .yh-tstay__title,
  .yh-tstay__desc,
  .yh-card__head h2 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .yh-schedule__name,
  .yh-schedule__meta {
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .yh-link--outline,
  .yh-btn--schedule {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.35;
  }

  .yh-youtube__list li {
    flex: 0 0 auto;
    min-height: 52px;
    height: auto;
    align-items: flex-start;
  }

  .yh-youtube__list li a > div {
    align-self: center;
  }

  .yh-youtube__list img {
    width: 72px;
    height: auto;
    min-height: 48px;
    aspect-ratio: 16 / 9;
  }
}

/* ── 공지 팝업 (사찰형 대형) ── */
.yh-popup-layer {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
}

.yh-popup-layer__stage {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--yh-max), calc(100% - var(--yh-side) * 2));
  max-width: var(--yh-max);
  height: calc(100vh - 86px);
  pointer-events: none;
}

.yh-popup {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 20px;
  pointer-events: auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 20px 48px rgba(26, 22, 18, 0.22),
    0 6px 18px rgba(26, 22, 18, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.yh-popup.is-mounted {
  opacity: 1;
  transform: translateY(0);
}

.yh-popup.is-closing {
  opacity: 0;
  transform: translateY(8px);
}

/* 메인 — 백중 천도재 (좌측 대형) */
.yh-popup--feature {
  left: 0;
  width: min(480px, 44vw);
  max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #dce8f6 0%, #ebe4f4 38%, #f7f3ee 100%);
}

.yh-popup__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.yh-popup__hero {
  padding: 26px 26px 16px;
  text-align: center;
}

.yh-popup__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4a6788;
}

.yh-popup__title {
  margin: 0;
  font-family: var(--yh-font-hero);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #234a72;
}

.yh-popup__lead {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4a5560;
}

.yh-popup__content {
  padding: 0 24px 20px;
}

.yh-popup__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(58, 96, 138, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

.yh-popup__table thead th {
  padding: 10px 8px;
  background: linear-gradient(180deg, #4a7399 0%, #3a6288 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.yh-popup__table thead th:last-child {
  border-right: none;
}

.yh-popup__table tbody th,
.yh-popup__table tbody td {
  padding: 9px 8px;
  text-align: center;
  border-top: 1px solid rgba(58, 96, 138, 0.12);
  border-right: 1px solid rgba(58, 96, 138, 0.08);
  color: #3a3632;
}

.yh-popup__table tbody th {
  background: rgba(220, 232, 246, 0.55);
  font-weight: 600;
  color: #2f5578;
}

.yh-popup__table tbody td:last-child,
.yh-popup__table tbody th:last-child {
  border-right: none;
}

.yh-popup__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.yh-popup__fact {
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(58, 96, 138, 0.14);
  border-radius: 6px;
  text-align: center;
}

.yh-popup__fact-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #3a6288;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.yh-popup__fact p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4a4540;
}

.yh-popup__fact strong {
  font-size: 15px;
  font-weight: 700;
  color: #234a72;
  letter-spacing: 0.02em;
}

.yh-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a8eb8 0%, #3f719c 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(58, 96, 138, 0.28);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.yh-popup__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.yh-popup__mountain {
  flex-shrink: 0;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(247, 243, 238, 0) 0%, rgba(247, 243, 238, 0.92) 100%),
    url("images/notice-banner-bg.png") center bottom / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

/* 보조 — 연등 접수 (우측) */
.yh-popup--compact {
  right: 0;
  width: min(360px, 32vw);
  background: #fff;
}

.yh-popup__band {
  height: 56px;
  background:
    linear-gradient(135deg, rgba(90, 142, 184, 0.18) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(225deg, rgba(90, 142, 184, 0.14) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(180deg, #dce8f6 0%, #eef3f8 100%);
  border-bottom: 1px solid rgba(58, 96, 138, 0.12);
}

.yh-popup__compact-body {
  padding: 22px 24px 26px;
  text-align: center;
}

.yh-popup__compact-title {
  margin: 0;
  font-family: var(--yh-font-hero);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #2f6b78;
}

.yh-popup__compact-text {
  margin: 12px 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #5c5650;
}

.yh-popup__compact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 200px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #3a3632;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.yh-popup__compact-cta:hover {
  background: #2a2724;
}

/* 하단 컨트롤 바 (석종사·사찰 공통 패턴) */
.yh-popup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 46px;
  padding: 8px 14px;
  background: #1a1816;
  color: #f2efea;
  font-size: 13px;
}

.yh-popup__dismiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  color: #e8e4de;
}

.yh-popup__dismiss input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #5a8eb8;
  cursor: pointer;
}

.yh-popup__close {
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
}

.yh-popup__close:hover {
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .yh-popup--feature {
    width: min(440px, 48vw);
  }

  .yh-popup--compact {
    width: min(320px, 38vw);
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .yh-popup-layer__stage {
    top: 80px;
  }

  .yh-popup--feature {
    width: min(420px, 44vw);
  }

  .yh-popup--compact {
    width: min(320px, 34vw);
  }

  .yh-popup__facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .yh-popup__hero {
    padding: 22px 18px 14px;
  }

  .yh-popup__content {
    padding: 0 18px 18px;
  }

  .yh-popup__title {
    font-size: 24px;
  }

  .yh-popup__compact-body {
    padding: 18px 18px 22px;
  }
}

/* 모바일: 팝업 1개씩, 하단 시트 형태 */
@media (max-width: 640px) {
  .yh-popup-layer__stage > .yh-popup[hidden],
  .yh-popup--compact:not(.is-mounted) {
    display: none !important;
  }

  .yh-popup-layer__stage {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    overflow: visible;
    pointer-events: none;
  }

  .yh-popup {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-height: min(72vh, 620px);
    margin: 0;
    border-radius: 14px 14px 4px 4px;
    box-shadow: 0 16px 40px rgba(26, 22, 18, 0.22);
    pointer-events: auto;
  }

  .yh-popup--compact.is-mounted {
    display: flex !important;
  }

  .yh-popup--feature {
    max-height: min(74vh, 640px);
  }

  .yh-popup__scroll {
    max-height: calc(74vh - 90px);
  }

  .yh-popup__title {
    font-size: 22px;
  }

  .yh-popup__lead {
    font-size: 13px;
  }

  .yh-popup__table {
    font-size: 12px;
  }

  .yh-popup__facts {
    gap: 8px;
    margin-bottom: 14px;
  }

  .yh-popup__fact {
    padding: 10px 8px;
  }

  .yh-popup__fact p {
    font-size: 11.5px;
  }

  .yh-popup__cta {
    min-height: 44px;
    font-size: 14px;
  }

  .yh-popup__mountain {
    height: 40px;
  }

  .yh-popup__compact-title {
    font-size: 20px;
  }

  .yh-popup__compact-text {
    font-size: 13px;
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yh-popup {
    transition: none;
  }
}
