/**
 * trust-value.css — 위홈의 가치 (에디토리얼 지면)
 * URL: /value · 뷰: mobile/trust_value.php · 클래스 prefix: wv-
 * SSOT: docs/design-md/wooseok.md · personality.md · a11y.md · motion.md · pc-mobile-ui.md §0
 * 금지: 보라 그라데이션 · 카드 섀도 · 사진 scrim · left/top 색 띠 · 링크 hover 밑줄 · 광범위 transition
 * PC 블록은 이 파일이 소유한다 (static-pages-desktop-upgrade.css의 .tv-* 규칙 제거됨)
 */
@import url('../wh-tokens.css');

#wehome-no-history-logo { display: none !important; }
#body footer:not(.sp-dt-footer) { display: none !important; }
.nav.clean { display: none !important; }

/* layout.css .wh-page-nav-wrap{margin-bottom:-76px} 상쇄 — 앱 상단바가 제목을 가리지 않게 */
html:not(.sp-force-desktop-ui) body:has(#content.wv-page) .wh-page-nav-wrap,
html.wh-wehome-app body:has(#content.wv-page) .wh-page-nav-wrap {
  margin-bottom: 0 !important;
  max-width: none;
  width: 100%;
  background: #fff;
}

html:not(.sp-force-desktop-ui) body:has(#content.wv-page) .wh-page-nav,
html.wh-wehome-app body:has(#content.wv-page) .wh-page-nav {
  border-radius: 0;
  max-width: none;
  box-shadow: none;
}

html:has(#content.wv-page),
html:has(#content.wv-page) body,
html:has(#content.wv-page) body#body {
  background: #fff !important;
}

#content.wv-page {
  /* 잉크 무채화 — /about(about-folio)와 같은 에디토리얼 지면.
     대비: #1f1f1f 16.48:1 · #4a4a4a 8.86:1 · #666666 5.74:1 (흰 지면 기준,
     각각 기존 --wh-tx / --wh-tx2 / --wh-tx3 이상) */
  --wh-tx: #1f1f1f;
  --wh-tx2: #4a4a4a;
  --wh-tx3: #666666;
  font-family: var(--wh-ff, 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  background: #fff !important;
  padding: 24px 24px calc(var(--bar-h, 66px) + env(safe-area-inset-bottom) + 48px) !important;
  min-height: 100vh;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--wh-tx, #1f1f1f);
}

.wv-shell {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#content.wv-page a,
#content.wv-page a:hover,
#content.wv-page a:focus,
#content.wv-page a:active {
  text-decoration: none !important;
}

#content.wv-page a:focus-visible {
  outline: 2px solid var(--wh-focus-ring, #681DC7);
  outline-offset: 2px;
}

/* ── Head ── */
/* 모바일은 wh-page-nav에 제목이 이미 있어 라벨 중복을 피한다 */
html:not(.sp-force-desktop-ui) #content.wv-page .wv-label {
  display: none;
}

.wv-head {
  width: 100%;
  margin: 0 0 36px;
}

.wv-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wh-tx, #1f1f1f);
}

/* 브랜드락 1단 (감성) — digest brand_lock.matrix hero_message */
.wv-slogan {
  margin: 0 0 6px;
  font-family: var(--wh-ff-display, 'SUIT Variable', SUIT, sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--wh-tx, #1f1f1f);
}

/* 브랜드락 2단 (신뢰) — digest brand_lock.matrix proof */
.wv-proof {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--wh-tx3, #666666);
}

/* 문장형 헤드라인 — 크기가 아니라 무게로 위계 (Stayfolio h1 24/600 · Airbnb 26/500–700).
   `--wh-text-hero-stay`(32/52)는 이 길이에서 3줄이 되어 쓰지 않는다 */
.wv-headline {
  margin: 0;
  font-family: var(--wh-ff-display, 'SUIT Variable', SUIT, sans-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--wh-tx, #1f1f1f);
  overflow-wrap: break-word;
}

/* ── Film (히어로 사진) ── */
.wv-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 48px;
  overflow: hidden;
  background: var(--wh-surface, #f4f5f7);
}

.wv-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  display: block;
}

/* ── Body (dek + 장문) ── */
.wv-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 0 56px;
}

.wv-dek {
  width: 100%;
  margin: 0 0 28px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--wh-tx, #1f1f1f);
  overflow-wrap: break-word;
}

.wv-essay {
  width: 100%;
  margin: 0 0 40px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wv-essay p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--wh-tx, #1f1f1f);
  overflow-wrap: break-word;
}

.wv-essay p + p {
  margin-top: 28px;
}

.wv-wordmark {
  width: 100%;
  margin: 0;
  text-align: left;
  font-family: var(--wh-ff, 'Pretendard', sans-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--wh-tx, #1f1f1f);
}

/* ── Pillars (digest brand_pillars 4축) ── */
.wv-pillars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 0 0 56px;
}

.wv-pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* 모바일은 사진 → 카피 순서 통일. DOM 순서와 시각 순서를 어긋나게 하면
   스크린리더·키보드 순서가 화면과 달라진다. 지그재그는 PC 2열에서만 (아래 PC 블록) */
.wv-pillar-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wh-surface, #f4f5f7);
}

.wv-pillar-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.wv-pillar-copy {
  min-width: 0;
}

.wv-pillar-num {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--wh-tx3, #666666);
}

.wv-pillar-title {
  margin: 0 0 10px;
  font-family: var(--wh-ff-display, 'SUIT Variable', SUIT, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--wh-tx, #1f1f1f);
  overflow-wrap: break-word;
}

.wv-pillar-lede {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--wh-tx2, #4a4a4a);
  overflow-wrap: break-word;
}

/* ── 인라인 링크 affordance ──
   밑줄 금지(`ui-no-link-hover-underline`)이므로 무게 500 + 화살표로 표시 */
.wv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--wh-touch-min, 44px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--wh-tx, #1f1f1f) !important;
}

.wv-link::after {
  content: "→";
  font-weight: 400;
  transition: transform var(--wh-motion-instant, 120ms) var(--wh-ease-out-smooth, ease);
}

.wv-link:hover,
.wv-link:focus {
  color: var(--wh-tx2, #4a4a4a) !important;
}

@media (hover: hover) and (pointer: fine) {
  .wv-link:hover::after {
    transform: translateX(3px);
  }

  .wv-pillar-film img,
  .wv-aud-film img {
    transition: opacity 180ms var(--wh-ease-out-smooth, ease);
  }

  .wv-pillar:hover .wv-pillar-film img,
  .wv-aud:hover .wv-aud-film img {
    opacity: 0.92;
  }
}

/* ── Audience (게스트 / 호스트) ── */
.wv-audience {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 0 0 56px;
}

.wv-aud {
  min-width: 0;
}

.wv-aud-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  overflow: hidden;
  background: var(--wh-surface, #f4f5f7);
}

.wv-aud-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.wv-aud-title {
  margin: 0 0 14px;
  font-family: var(--wh-ff-display, 'SUIT Variable', SUIT, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--wh-tx, #1f1f1f);
}

.wv-aud-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wv-aud-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--wh-tx2, #4a4a4a);
  overflow-wrap: break-word;
}

/* 무채 4px 원형 불릿 — 색 띠·보라 장식이 아닌 중립 마커 */
.wv-aud-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wh-tx3, #666666);
}

/* ── CTA band — 페이지의 유일한 solid brand CTA (travel.md §1b) ── */
.wv-cta {
  width: 100%;
  margin: 0 0 40px;
  padding: 48px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.wv-cta-title {
  margin: 0;
  font-family: var(--wh-ff-display, 'SUIT Variable', SUIT, sans-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--wh-tx, #1f1f1f);
  overflow-wrap: break-word;
}

.wv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 32px;
  border-radius: var(--wh-radius-sharp, 10px);
  background: var(--wh-brand, #681DC7);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wv-cta-btn:hover,
.wv-cta-btn:focus {
  background: var(--wh-brand-hover, #5416A3);
  color: #fff !important;
}

/* ── Foot ── */
.wv-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 0;
  width: 100%;
  margin: 0;
  padding: 0 0 8px;
}

.wv-foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--wh-touch-min, 44px);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--wh-tx, #1f1f1f) !important;
}

.wv-foot a + a::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--wh-tx, #1f1f1f);
  opacity: 0.45;
  vertical-align: middle;
}

.wv-foot a:hover,
.wv-foot a:focus {
  color: var(--wh-tx2, #4a4a4a) !important;
}

/* ── 다국어 줄바꿈 (wooseok.md §3) ──
   keep-all은 한국어 스코프에만. CJK(ja/zh)에서 keep-all은 min-content를
   문장 전체 폭으로 만들어 PC 그리드를 밀어낸다 */
html:lang(ko) .wv-headline,
html:lang(ko) .wv-dek,
html:lang(ko) .wv-essay p,
html:lang(ko) .wv-pillar-title,
html:lang(ko) .wv-pillar-lede,
html:lang(ko) .wv-aud-title,
html:lang(ko) .wv-aud-list li,
html:lang(ko) .wv-cta-title {
  word-break: keep-all;
}

/* ── 모션 감소 ── */
@media (prefers-reduced-motion: reduce) {
  .wv-link::after,
  .wv-link:hover::after {
    transition: none;
    transform: none;
  }

  .wv-pillar-film img,
  .wv-aud-film img {
    transition: none;
  }

  .wv-pillar:hover .wv-pillar-film img,
  .wv-aud:hover .wv-aud-film img {
    opacity: 1;
  }
}

html.wh-reduce-motion .wv-link::after,
html.wh-reduce-motion .wv-link:hover::after {
  transition: none;
  transform: none;
}

html.wh-reduce-motion .wv-pillar-film img,
html.wh-reduce-motion .wv-aud-film img {
  transition: none;
}

html.wh-reduce-motion .wv-pillar:hover .wv-pillar-film img,
html.wh-reduce-motion .wv-aud:hover .wv-aud-film img {
  opacity: 1;
}

/* ══ PC (1024+ · html.sp-force-desktop-ui) — pc-mobile-ui.md §0 ══ */
@media (min-width: 1024px) {
  html.sp-force-desktop-ui:has(#content.wv-page),
  html.sp-force-desktop-ui:has(#content.wv-page) body,
  html.sp-force-desktop-ui:has(#content.wv-page) body#body {
    background: #fff !important;
  }

  html.sp-force-desktop-ui div#content.wv-page,
  html.sp-force-desktop-ui #content.wv-page {
    max-width: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: calc(var(--sp-dt-header-h, 108px) + 48px) 40px 96px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
    background: #fff !important;
  }

  html.sp-force-desktop-ui .wv-shell {
    max-width: 960px;
  }

  html.sp-force-desktop-ui .wv-head {
    margin-bottom: 48px;
  }

  html.sp-force-desktop-ui .wv-label {
    margin-bottom: 18px;
    font-size: 14px;
  }

  html.sp-force-desktop-ui .wv-slogan {
    margin-bottom: 8px;
    font-size: 16px;
  }

  html.sp-force-desktop-ui .wv-proof {
    margin-bottom: 18px;
    font-size: 14px;
  }

  html.sp-force-desktop-ui .wv-headline {
    font-size: 32px;
    line-height: 1.42;
  }

  html.sp-force-desktop-ui .wv-film {
    width: 100%;
    margin: 0 0 64px;
  }

  /* dek | essay 2열 — 세로 복붙이 아닌 진짜 2열 컴포지션 */
  html.sp-force-desktop-ui .wv-body {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "dek essay"
      "mark essay";
    column-gap: 64px;
    row-gap: 0;
    margin: 0 0 80px;
    align-items: stretch;
  }

  html.sp-force-desktop-ui .wv-dek {
    grid-area: dek;
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
  }

  html.sp-force-desktop-ui .wv-essay {
    grid-area: essay;
    margin: 0;
  }

  html.sp-force-desktop-ui .wv-wordmark {
    grid-area: mark;
    align-self: end;
    margin: 0;
    padding-top: 40px;
    font-size: 22px;
    letter-spacing: 0.2em;
    text-align: left;
  }

  /* 필러 지그재그 2열 */
  html.sp-force-desktop-ui .wv-pillars {
    gap: 64px;
    margin: 0 0 80px;
  }

  html.sp-force-desktop-ui .wv-pillar {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
  }

  html.sp-force-desktop-ui .wv-pillar:nth-child(even) {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  html.sp-force-desktop-ui .wv-pillar:nth-child(even) .wv-pillar-film {
    grid-column: 2;
    grid-row: 1;
  }

  html.sp-force-desktop-ui .wv-pillar:nth-child(even) .wv-pillar-copy {
    grid-column: 1;
    grid-row: 1;
  }

  html.sp-force-desktop-ui .wv-pillar-film {
    aspect-ratio: 3 / 2;
  }

  html.sp-force-desktop-ui .wv-pillar-title {
    font-size: 20px;
    line-height: 1.45;
  }

  html.sp-force-desktop-ui .wv-pillar-lede {
    margin-bottom: 8px;
  }

  /* 게스트·호스트 나란히 */
  html.sp-force-desktop-ui .wv-audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
    margin: 0 0 80px;
  }

  html.sp-force-desktop-ui .wv-aud-film {
    aspect-ratio: 3 / 2;
    margin-bottom: 24px;
  }

  html.sp-force-desktop-ui .wv-aud-title {
    font-size: 20px;
    line-height: 1.45;
  }

  html.sp-force-desktop-ui .wv-cta {
    margin-bottom: 56px;
    padding-top: 64px;
    gap: 24px;
  }

  html.sp-force-desktop-ui .wv-cta-title {
    font-size: 24px;
  }

  html.sp-force-desktop-ui .wv-foot a {
    padding: 0 14px;
  }
}
