/**
 * trust-certified.css — 위홈 소개 상세 (/about_detail)
 * SSOT: docs/design-md/wooseok.md · craft.md · motion.md · kr-premium-visual.md
 * 간명 소개: /about → about-short.css
 * 레퍼런스: point-guide.css
 * 플랫 · Logo Violet CTA 1 · left stripe / glow / pill CTA 금지 · hover 밑줄 금지
 */
@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; }

#content.tc-page {
  /* 잉크 무채화 (2026-08-22) — /rooms·/about과 동일 기준. 파랑 편차 제거,
     대비는 기존 이상 (#1f1f1f 16.48 · #4a4a4a 8.86 · #666666 5.74:1) */
  --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: var(--wh-bg, #F5F5F5) !important;
  padding: 0 !important;
  padding-bottom: calc(var(--bar-h, 66px) + env(safe-area-inset-bottom) + 32px) !important;
  min-height: 100vh;
  color: var(--wh-tx, #1A1A1A);
}

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

/* ── Media hero — 사진만 (2026-08-22) ──────────────────────────────────
   이전에는 사진 위에 흰 글자를 얹고 전면 균일 scrim(0.15→0.72)으로 덮었다.
   실측 결과 텍스트 밴드 대비가 2.59 / 2.75 / 3.61 / 4.10 / 4.33:1 이었고
   사진의 밝은 부분(창문)에서는 1.36~2.01:1로 AA 4건 실패였다.
   §7 가독용 scrim은 「Editorial 풀블리드 한 곳」(= /weekly-stay 표지)만 허용하므로
   이 페이지는 scrim을 쓰지 않고 텍스트를 사진 밖으로 내린다.               */
.tc-media-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  overflow: hidden;
  border-radius: 0 0 var(--wh-radius-lg, 24px) var(--wh-radius-lg, 24px);
  margin: 0;
  background: var(--wh-surface, #f0f0f0);
}

.tc-media-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* 사진 밖 카피 블록 — 잉크 대비 16:1 이상 */
.tc-hero-copy {
  padding: 24px 20px 8px;
}

.tc-media-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: var(--wh-radius-sharp, 10px);
  background: var(--wh-surface, #f0f0f0);
  border: 1px solid var(--wh-bd-hairline, #dfe0e2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wh-tx2, #4a4a4a);
}

.tc-brand-slogan {
  margin: 0 0 6px;
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--wh-tx, #1f1f1f);
  word-break: keep-all;
}

.tc-brand-sub {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wh-tx3, #666666);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.tc-media-title {
  margin: 0 0 10px;
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--wh-tx, #1f1f1f);
  word-break: keep-all;
}

.tc-media-body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--wh-tx2, #4a4a4a);
  word-break: keep-all;
  max-width: 36em;
}

.tc-media-actions .tc-cta-primary {
  width: 100%;
  max-width: 100%;
}

/* ── Sections ── */
.tc-section {
  padding: 40px 20px 8px;
}

.tc-section-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wh-brand, #681DC7);
  letter-spacing: -0.02em;
}

.tc-section-title {
  margin: 0 0 16px;
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--wh-tx, #1A1A1A);
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
}

#content.tc-page .tc-story-card,
#content.tc-page .tc-card,
#content.tc-page .tc-proof,
#content.tc-page .tc-check-list li,
#content.tc-page .tc-cta-inner {
  background: #fff !important;
}

.tc-story-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-story-card {
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-md, 20px);
  padding: 20px 18px;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
  animation: tc-enter 0.4s var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1)) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}

.tc-story-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--wh-radius-xs, 12px);
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tc-story-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--wh-tx, #1A1A1A);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.tc-story-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wh-tx2, #4A4A4A);
  word-break: keep-all;
}

@keyframes tc-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Why cards ── */
.tc-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-card {
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-md, 20px);
  padding: 22px 18px;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
  animation: tc-enter 0.4s var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1)) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}

.tc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--wh-radius-xs, 12px);
  background: var(--wh-surface, #f4f5f7);
  color: var(--wh-brand, #681DC7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tc-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--wh-tx, #1A1A1A);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.tc-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wh-tx2, #4A4A4A);
  word-break: keep-all;
}

/* ── Guest checklist ── */
.tc-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-check-list li {
  position: relative;
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-md, 20px);
  padding: 16px 16px 16px 44px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wh-tx2, #4A4A4A);
  word-break: keep-all;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.tc-check-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wh-brand-tint, #F3EEFA);
  box-shadow: inset 0 0 0 2px var(--wh-brand, #681DC7);
}

.tc-check-list li::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 23px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--wh-brand, #681DC7);
  border-bottom: 2px solid var(--wh-brand, #681DC7);
  transform: rotate(-45deg);
}

/* ── Proof ── */
.tc-proof {
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-md, 20px);
  overflow: hidden;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.tc-proof-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.tc-proof-row:first-child {
  border-top: none;
}

.tc-proof-k {
  font-size: 13px;
  font-weight: 600;
  color: var(--wh-tx3, #6B6B6B);
  flex-shrink: 0;
}

.tc-proof-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-tx, #1A1A1A);
  text-align: right;
  word-break: keep-all;
}

.tc-proof-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-link, #0071e3);
  background: var(--wh-surface, #f4f5f7);
}

.tc-proof-link:hover,
.tc-proof-link:focus {
  color: var(--wh-brand, #681DC7);
}

/* ── FAQ (전역 button/#content 스타일 방어) ── */
#content.tc-page .tc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#content.tc-page .tc-faq-item {
  background: #fff !important;
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06)) !important;
  border-radius: var(--wh-radius-md, 20px) !important;
  overflow: hidden;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

#content.tc-page .tc-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 18px !important;
  text-align: left;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: var(--wh-tx, #1A1A1A) !important;
  letter-spacing: -0.02em;
  word-break: keep-all;
  min-height: var(--wh-touch-min, 44px);
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  touch-action: manipulation;
}

#content.tc-page .tc-faq-q:hover,
#content.tc-page .tc-faq-q:focus {
  background: var(--wh-surface, #f4f5f7) !important;
  color: var(--wh-tx, #1A1A1A) !important;
}

#content.tc-page .tc-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--wh-tx3, #6B6B6B);
  transition: transform 180ms var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1));
}

#content.tc-page .tc-faq-item.is-open .tc-faq-q {
  background: #fff !important;
}

#content.tc-page .tc-faq-item.is-open .tc-faq-chevron {
  transform: rotate(180deg);
  color: var(--wh-brand, #681DC7);
}

#content.tc-page .tc-faq-a {
  display: none;
  padding: 0 18px 16px;
  background: #fff !important;
}

#content.tc-page .tc-faq-item.is-open .tc-faq-a {
  display: block;
}

#content.tc-page .tc-faq-a p {
  margin: 0;
  padding: 14px 14px;
  border-radius: var(--wh-radius-xs, 12px);
  background: var(--wh-bg, #F5F5F5);
  font-size: 14px;
  line-height: 1.6;
  color: var(--wh-tx2, #4A4A4A);
  word-break: keep-all;
}

#content.tc-page .tc-faq-a a {
  color: var(--wh-link, #0071e3);
  font-weight: 700;
}

#content.tc-page .tc-faq-a a:hover,
#content.tc-page .tc-faq-a a:focus {
  color: var(--wh-brand, #681DC7);
}

/* ── CTA band ── */
.tc-cta-band {
  padding: 32px 20px 8px;
}

.tc-cta-inner {
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-lg, 24px);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.tc-cta-title {
  margin: 0 0 8px;
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wh-tx, #1A1A1A);
  word-break: keep-all;
}

.tc-cta-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wh-tx2, #4A4A4A);
  word-break: keep-all;
}

.tc-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bottom band: accent (ghost) — page solid primary stays in hero only */
.tc-cta-band .tc-cta-primary {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7) !important;
}
.tc-cta-band .tc-cta-primary:hover,
.tc-cta-band .tc-cta-primary:focus {
  background: #e8dff5;
}

.tc-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 22px;
  border-radius: var(--wh-radius-btn, 18px);
  background: var(--wh-brand, #681DC7);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  touch-action: manipulation;
  transition: background 150ms ease, transform 150ms var(--wh-ease-spring-soft, cubic-bezier(0.22, 1.08, 0.36, 1));
}

.tc-cta-primary:hover,
.tc-cta-primary:focus {
  background: var(--wh-brand-hover, #5416A3);
}

.tc-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-min, 44px);
  padding: 0 20px;
  border-radius: var(--wh-radius-btn, 18px);
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  touch-action: manipulation;
  transition: background 150ms ease;
}

.tc-cta-secondary:hover,
.tc-cta-secondary:focus {
  background: #e8dff5;
}

/* ── 다국어 가로 넘침 방지 (2026-08-22) ────────────────────────────────
   증상: /ja/about_detail PC 1024px에서 문서가 1,247px로 **223px 넘침**.
         카드 그리드 트랙이 `324 / 365 / 462px`로 불균등해지고 잘렸다.
   원인: `word-break: keep-all`이 언어 구분 없이 걸려 있었다. CJK에서 keep-all은
         문자 사이 줄바꿈을 **금지**하므로 min-content가 문장 전체 폭이 되고,
         `repeat(N, 1fr)`(= `minmax(auto, 1fr)`) 트랙이 그 min-content에 밀린다.
   조치: 그리드는 위에서 `minmax(0, 1fr)`로 바꿨고, keep-all은 **한국어에만** 둔다.
         한국어 어절 보존은 유지하면서 일본어·중국어는 정상 줄바꿈을 쓴다.
   선례: `about-folio.css`는 처음부터 `html:lang(ko)`로 스코프해 이 문제가 없었다. */
html:not(:lang(ko)) #content.tc-page * {
  word-break: normal;
}

html:not(:lang(ko)) #content.tc-page :is(h1, h2, h3, p, li, span, a, div) {
  overflow-wrap: break-word;
}

html:not(:lang(ko)) #content.tc-page :is(.tc-story-card, .tc-card, .tc-check-list li, .tc-proof, .tc-faq-item, .tc-cta-inner) {
  min-width: 0;
}

html.wh-reduce-motion .tc-story-card,
html.wh-reduce-motion .tc-card,
html.wh-reduce-motion .tc-faq-chevron,
html.wh-reduce-motion .tc-cta-primary {
  animation: none !important;
  transition: none !important;
}

/* OS 설정 가드 (2026-08-22) — 기존에는 html.wh-reduce-motion 하나뿐이라
   시스템에서 모션 감소를 켠 사용자에게 진입 애니메이션이 그대로 재생됐다 */
@media (prefers-reduced-motion: reduce) {
  .tc-story-card,
  .tc-card,
  .tc-faq-chevron,
  .tc-cta-primary,
  .tc-cta-secondary,
  .wh-lift {
    animation: none !important;
    transition: none !important;
  }

  .wh-lift:hover {
    transform: none !important;
  }
}

/* ── PC ── */
@media (min-width: 1024px) {
  html.sp-force-desktop-ui #content.tc-page {
    max-width: min(1120px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-bottom: 64px !important;
  }

  html.sp-force-desktop-ui .tc-media-hero {
    aspect-ratio: 21 / 9;
    min-height: 320px;
    border-radius: var(--wh-radius-xl, 28px);
    margin: 8px 0 0;
  }

  html.sp-force-desktop-ui .tc-hero-copy {
    padding: 32px 0 8px;
    max-width: 720px;
  }

  html.sp-force-desktop-ui .tc-brand-slogan {
    font-size: 44px;
  }

  html.sp-force-desktop-ui .tc-brand-sub {
    font-size: 16px;
  }

  html.sp-force-desktop-ui .tc-media-title {
    font-size: 28px;
  }

  html.sp-force-desktop-ui .tc-media-body {
    font-size: 16px;
    max-width: 480px;
  }

  html.sp-force-desktop-ui .tc-media-actions .tc-cta-primary {
    width: auto;
    min-width: 200px;
    display: inline-flex;
  }

  html.sp-force-desktop-ui .tc-section {
    padding: 56px 0 8px;
  }

  html.sp-force-desktop-ui .tc-section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  /* minmax(0, 1fr) — `1fr`은 `minmax(auto, 1fr)`이라 min-content가 트랙을 밀어낸다.
     CJK + keep-all 조합에서 트랙이 불균등해지고 컨테이너를 넘쳤다 (아래 §다국어 참고) */
  html.sp-force-desktop-ui .tc-story-grid,
  html.sp-force-desktop-ui .tc-card-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  html.sp-force-desktop-ui .tc-story-card,
  html.sp-force-desktop-ui .tc-card {
    height: 100%;
    padding: 28px 24px;
  }

  html.sp-force-desktop-ui .tc-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  html.sp-force-desktop-ui .tc-cta-band {
    padding: 56px 0 8px;
  }

  html.sp-force-desktop-ui .tc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
    padding: 40px 48px;
  }

  html.sp-force-desktop-ui .tc-cta-copy {
    flex: 1;
    min-width: 0;
  }

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

  html.sp-force-desktop-ui .tc-cta-desc {
    margin-bottom: 0;
    font-size: 15px;
  }

  html.sp-force-desktop-ui .tc-cta-actions {
    flex-direction: row;
    flex-shrink: 0;
    gap: 12px;
  }

  html.sp-force-desktop-ui .tc-cta-actions .tc-cta-primary,
  html.sp-force-desktop-ui .tc-cta-actions .tc-cta-secondary {
    width: auto;
    min-width: 160px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .wh-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--wh-shadow-hover, 0 8px 24px rgba(0, 0, 0, 0.08));
  }
}
