/* ============================================================
   PAGE HEADER — 타이포그래피 변형
   웨이브 구조 기반 + 대형 영문 타이포그래피 배경.
   .sub-hero-wrap--typography 스코프로 기본 히어로와 충돌 방지.
   page-header.css 기본 스타일을 확실히 오버라이드합니다.
   ============================================================ */

/* ── 히어로 래퍼 리셋 (기본 .sub-hero-wrap 오버라이드) ── */
.sub-hero-wrap.sub-hero-wrap--typography {
  padding: 0;
  margin: 0;
  margin-bottom: 0;
  overflow: hidden;
}
.sub-hero-wrap--typography .ds-sub-hero__bg {
  display: none;
}
.sub-hero-wrap.sub-hero-wrap--typography .ds-sub-hero {
  background: #fff;
  background-color: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  height: auto;
  min-height: 200px;
  padding: 50px 60px 50px;
  margin: 20px auto 0;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── 콘텐츠 영역 ── */
.sub-hero-wrap--typography .ds-sub-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 40px;
  margin: 0;
  transform: translateY(-20px);
}
.sub-hero-wrap--typography .ds-sub-hero__title {
  color: #1A1A1A;
  font-size: 52px;
  font-weight: 700;
}
.sub-hero-wrap--typography .ds-sub-hero__label {
  display: block;
  color: var(--ds-color-gray-50);
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.12px;
}

/* ── 히어로 내부 브레드크럼 ── */
.sub-hero-wrap--typography .ds-breadcrumb {
  display: flex;
  margin-top: 0;
  margin-bottom: 12px;
}
.sub-hero-wrap--typography .ds-breadcrumb ol {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}
.sub-hero-wrap--typography .ds-breadcrumb__link {
  color: var(--ds-color-gray-50);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}
.sub-hero-wrap--typography .ds-breadcrumb__link svg {
  display: block;
  color: var(--ds-color-gray-50);
}
.sub-hero-wrap--typography .ds-breadcrumb__item:last-child .ds-breadcrumb__link {
  color: var(--ds-color-gray-80);
  font-weight: 500;
}
.sub-hero-wrap--typography .ds-breadcrumb__item + .ds-breadcrumb__item::before {
  content: '\00B7';
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-color-gray-30);
  margin: 0 4px;
}

/* ── 대형 타이포그래피 배경 (마퀴) ── */
.sub-hero-wrap--typography .hero-bg-marquee {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.sub-hero-wrap--typography .hero-bg-marquee__track {
  display: flex;
  width: 100%;
  animation: none;
  transform: translateY(-20px);
}
.sub-hero-wrap--typography .hero-bg-marquee__text {
  display: inline-block;
  white-space: nowrap;
  font-weight: 900;
  font-size: clamp(140px, 14vw, 260px);
  letter-spacing: clamp(-8px, -0.6vw, -12px);
  line-height: 1;
  color: rgba(2, 123, 193, 0.12);
  text-transform: uppercase;
  user-select: none;
}

/* ── 짧은 라벨(≤8자) 변형 — 가운데 정렬 + 양쪽 페이드 + 자간 확장.
   include.js 의 인라인 스타일 분기와 동등 동작을 CSS 모디파이어로 정적 제공.
   운영(JSP) 측에서 인라인 JS 없이도 동일 결과가 나오도록 보장. (Refs #249) */
.sub-hero-wrap--typography .hero-bg-marquee--centered {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}
.sub-hero-wrap--typography .hero-bg-marquee--centered .hero-bg-marquee__track {
  justify-content: center;
}
/* [삭제 요청] 8자 이하 라벨 자간 확장(letter-spacing: 0.06em) 제거 — 짧은 라벨도 기본 자간 사용.
   (가운데 정렬·양쪽 페이드는 유지) */


/* ============================================================
   반응형
   ============================================================ */

/* ── 태블릿 (1199px 이하) ── */
@media (max-width: 1199px) {
  .sub-hero-wrap.sub-hero-wrap--typography {
    padding: 0;
    margin-bottom: 0;
  }
  .sub-hero-wrap.sub-hero-wrap--typography .ds-sub-hero {
    min-height: 160px;
    height: auto;
    padding: 30px 20px 30px;
    border-radius: 0;
  }
  .sub-hero-wrap--typography .ds-sub-hero__content {
    transform: translateY(-10px);
  }
  .sub-hero-wrap--typography .ds-sub-hero__title {
    font-size: 40px;
  }
  .sub-hero-wrap--typography .ds-sub-hero__label {
    font-size: 13px;
  }
  /* 기본 page-header.css가 .sub-hero-wrap .ds-breadcrumb를 display:none 하므로 복원 */
  .sub-hero-wrap--typography .ds-breadcrumb {
    display: flex;
  }
  .sub-hero-wrap--typography .ds-breadcrumb__link {
    font-size: 13px;
  }
  .sub-hero-wrap--typography .ds-breadcrumb__item + .ds-breadcrumb__item::before {
    font-size: 13px;
  }
  .sub-hero-wrap--typography .hero-bg-marquee {
    padding-left: var(--ds-pc-padding-layout-side);       /* 30px — 본문 패딩과 정렬 */
  }
  .sub-hero-wrap--typography .hero-bg-marquee--centered {
    padding-left: 0;                                      /* 가운데 정렬 시 본문 패딩 보정 불필요 */
  }
  .sub-hero-wrap--typography .hero-bg-marquee__track {
    transform: translateY(-10px);
  }
  .sub-hero-wrap--typography .hero-bg-marquee__text {
    font-size: clamp(100px, 12vw, 180px);
    letter-spacing: -2px;                                 /* 기본보다 여유있게 */
  }
}

/* ── 모바일 (767px 이하) ── */
@media (max-width: 767px) {
  .sub-hero-wrap.sub-hero-wrap--typography {
    padding: 0;
    margin-bottom: 0;
  }
  .sub-hero-wrap.sub-hero-wrap--typography .ds-sub-hero {
    min-height: 120px;
    height: auto;
    padding: 20px 16px 20px;
    margin-top: 10px;
    border-radius: 0;
  }
  .sub-hero-wrap--typography .ds-sub-hero__content {
    padding: 0 16px;
    transform: translateY(-8px);
  }
  .sub-hero-wrap--typography .ds-sub-hero__title {
    font-size: 28px;
  }
  .sub-hero-wrap--typography .ds-sub-hero__label {
    font-size: 12px;
    letter-spacing: 0.8px;
  }
  /* 기본 page-header.css가 .sub-hero-wrap .ds-breadcrumb를 display:none 하므로 복원 */
  .sub-hero-wrap--typography .ds-breadcrumb {
    display: flex;
    margin-bottom: 8px;
  }
  .sub-hero-wrap--typography .ds-breadcrumb__link {
    font-size: 12px;
  }
  .sub-hero-wrap--typography .ds-breadcrumb__item + .ds-breadcrumb__item::before {
    font-size: 12px;
  }
  .sub-hero-wrap--typography .hero-bg-marquee {
    padding-left: var(--ds-mobile-padding-layout-side);   /* 16px — 본문 패딩과 정렬 */
  }
  .sub-hero-wrap--typography .hero-bg-marquee--centered {
    padding-left: 0;                                      /* 가운데 정렬 시 본문 패딩 보정 불필요 */
  }
  .sub-hero-wrap--typography .hero-bg-marquee__track {
    transform: translateY(-8px);
  }
  .sub-hero-wrap--typography .hero-bg-marquee__text {
    font-size: clamp(80px, 18vw, 140px);
    letter-spacing: 0px;                                  /* 모바일: 여백 충분히 */
  }
}
