@charset "UTF-8";
/* ============================================================
   공통 헤더
   - 모든 신규 페이지의 헤더 (type1 / type2)
   - 기존 common.css 의 header / header h1 / header #backBtn 규칙은
     home.php·sub.php 가 정리되는 단계 9 에서 함께 제거 예정.
     본 파일이 common.css 보다 뒤에 로드되어 안전하게 오버라이드한다.
   ============================================================ */

body {
  padding-top: 0 !important;
}

.app-header {
  /* safe area : 노치/Dynamic Island 회피용 상단 inset */
  /* height: calc(6rem + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); */
  height: 60px;
  padding-right: 1.2rem;
  padding-bottom: 0;
  padding-left: 1.2rem;
  display: flex;
  align-items: center;
  background: #0600a6;
  position: sticky;
  top: 0;
  z-index: 7777;
  /* 기존 common.css header 규칙 무력화 */
  justify-content: flex-start;
  box-shadow: 0 0 5px #00000033;
  /*  */
  /* padding-top: 60px; */
  /* height: 120px; */
}
/* .app-header::after {
  position: absolute;
  content: "광고";
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background-color: #fff;
} */
.app-header.has-anchor-ad {
  height: 70px;
}
.app-header.has-anchor-ad > a {
  padding-top: 15px;
}
.app-header__title {
  margin: 0;
  font-family: Pretendard, "NanumSquareNeo", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ----- type1 : 좌측 타이틀 + 우측 액션 ----- */
.app-header--type1 {
  justify-content: space-between;
}
.app-header--type1 .app-header__title {
  font-family: var(--font-family-base);
  font-weight: var(--font-title-2-weight);
  font-size: var(--font-title-2-size);
  line-height: var(--font-title-2-line);
  letter-spacing: var(--font-title-2-spacing);
  /* color: #00aeff; */
  color: #fff;
}
.app-header__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.app-header__action {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
}
.app-header__action img {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(1);
}

/* ----- type2 : 좌측 back + 가운데 타이틀 ----- */
.app-header--type2 {
  position: sticky;
  justify-content: center;
  border-bottom: 1px solid var(--line2);
}
.app-header--type2 .app-header__title {
  /* color: #060b11; */
  color: #fff;
  text-align: center;
  font-family: var(--font-family-base);
  font-weight: var(--font-title-2-weight);
  font-size: var(--font-title-2-size);
  line-height: var(--font-title-2-line);
  letter-spacing: var(--font-title-2-spacing);
}
.app-header__back {
  position: absolute;
  left: 1.2rem;
  /* safe-area-inset-top 만큼 내린 뒤 content 영역(5.6rem) 중앙 */
  /* top: calc(env(safe-area-inset-top) + 3.4rem); */
  /* transform: translateY(-50%); */
  bottom: 18px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  background: none;
  border: 0;
}
.app-header__back img {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(1);
}
