/**
 * about-folio.css — Stayfolio ABOUT 구조 (/about-folio)
 * 흰 지면 · 문장형 헤드 · 16:9 필름 · 장문. 운영 소개는 /about.
 * SSOT: docs/design-md/wooseok.md · personality.md · a11y.md · motion.md · pc-mobile-ui.md §0
 * 금지: 실험 배너 · 카드/섀도 · 보라 CTA · 사진 scrim · 링크 hover 밑줄 · left stripe · transition:all
 */
@import url('../wh-tokens.css');

#wehome-no-history-logo { display: none !important; }
#body 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.af-page) .wh-page-nav-wrap,
html.wh-wehome-app body:has(#content.af-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.af-page) .wh-page-nav,
html.wh-wehome-app body:has(#content.af-page) .wh-page-nav {
  border-radius: 0;
  max-width: none;
  box-shadow: none;
}

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

#content.af-page {
  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, #191f28);
}

html:not(.sp-force-desktop-ui) #content.af-page .af-label {
  display: none;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.af-slogan {
  margin: 0 0 10px;
  font-family: var(--wh-ff, 'Pretendard', sans-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--wh-tx, #191f28);
}

.af-headline {
  margin: 0;
  font-family: var(--wh-ff, 'Pretendard', sans-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--wh-tx, #191f28);
  overflow-wrap: break-word;
}

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

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

.af-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 0 56px;
}

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

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

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

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

.af-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, #191f28);
}

.af-values {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 0 0 56px;
}

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

.af-value:nth-child(even) {
  flex-direction: column-reverse;
}

.af-value-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wh-surface, #f4f5f7);
}

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

.af-value-copy {
  min-width: 0;
}

.af-value-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wh-tx, #191f28);
}

.af-value-num {
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.af-value-title {
  margin: 0 0 10px;
  font-family: var(--wh-ff, 'Pretendard', sans-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--wh-tx, #191f28);
  overflow-wrap: break-word;
}

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

.af-value-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--wh-touch-min, 44px);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--wh-tx, #191f28) !important;
}

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

@media (hover: hover) and (pointer: fine) {
  .af-value-film img {
    transition: opacity 180ms ease;
  }
  .af-value:hover .af-value-film img {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-value-film img {
    transition: none;
  }
  .af-value:hover .af-value-film img {
    opacity: 1;
  }
}

html.wh-reduce-motion .af-value-film img {
  transition: none;
}

html.wh-reduce-motion .af-value:hover .af-value-film img {
  opacity: 1;
}

html:lang(ko) .af-headline,
html:lang(ko) .af-dek,
html:lang(ko) .af-essay p,
html:lang(ko) .af-value-title,
html:lang(ko) .af-value-lede {
  word-break: keep-all;
}

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

.af-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, #191f28) !important;
}

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

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

@media (min-width: 1024px) {
  html.sp-force-desktop-ui:has(#content.af-page),
  html.sp-force-desktop-ui:has(#content.af-page) body,
  html.sp-force-desktop-ui:has(#content.af-page) body#body {
    background: #fff !important;
  }

  html.sp-force-desktop-ui div#content.af-page,
  html.sp-force-desktop-ui #content.af-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 .af-shell {
    max-width: 960px;
  }

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

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

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

  html.sp-force-desktop-ui .af-headline {
    font-size: 28px;
    line-height: 1.5;
  }

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

  html.sp-force-desktop-ui .af-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 .af-dek {
    grid-area: dek;
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
  }

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

  html.sp-force-desktop-ui .af-essay p {
    font-size: 15px;
  }

  html.sp-force-desktop-ui .af-essay p + p {
    margin-top: 28px;
  }

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

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

  html.sp-force-desktop-ui .af-values {
    gap: 64px;
    margin: 0 0 80px;
  }

  html.sp-force-desktop-ui .af-value {
    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 .af-value:nth-child(even) {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

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

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

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

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

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