/* NOL 스타일 2단 헤더 (BootstrapStyles.ts 기반) */
.nol-insight-header {
  background: var(--skinfit-surface);
  box-shadow: var(--skinfit-shadow1);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.nol-header-top {
  /* 검색창과 하단 메뉴 사이 구분선 제거 */
}
.nol-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--skinfit-space-3);
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--skinfit-space-2) var(--skinfit-space-4);
}
/* 모바일: 로고 + 카피 한 줄 래퍼 */
.nol-header-top-row-mobile {
  display: flex;
  align-items: center;
  gap: var(--skinfit-space-2);
  flex: 0 1 auto;
}
.nol-header-copy-mobile {
  display: none;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--skinfit-text-primary);
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
}
.nol-header-copy-mobile .nol-header-copy-accent {
  color: var(--skinfit-primary);
  font-weight: 700;
}
.nol-header-logo {
  flex-shrink: 0;
}
.nol-header-logo a {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.nol-logo-accent { color: var(--skinfit-primary); }
.nol-logo-base { color: var(--skinfit-text-primary); }

/* 검색창: 왼쪽 정렬, 흰 배경·얇은 회색 테두리·둥근 모서리, 돋보기 우측 */
.nol-header-search-wrap {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  max-width: 420px;
  min-width: 280px;
  margin-right: auto;
  margin-left: var(--skinfit-space-3);
  overflow: visible;
}
/* 비로그인 시 검색 유도 툴팁 (검색 버튼 우측, 가로 배치·바운스) */
.nol-header-search-tooltip {
  position: absolute;
  left: 100%;
  margin-left: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  width: max-content;
  min-width: 260px;
  max-width: 320px;
  padding: 10px 14px;
  background: var(--skinfit-primary, #C97D7E);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  text-align: left;
  writing-mode: horizontal-tb;
  white-space: normal;
  word-break: keep-all;
  border-radius: var(--skinfit-radius-md, 8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  pointer-events: none;
  animation: nol-tooltip-bounce 2s ease-in-out infinite;
}
.nol-header-search-tooltip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-right-color: var(--skinfit-primary, #C97D7E);
}
@keyframes nol-tooltip-bounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(4px); }
}
.nol-header-search-form {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: var(--skinfit-surface);
  border-radius: var(--skinfit-radius-full);
  padding: 0 var(--skinfit-space-2) 0 var(--skinfit-space-4);
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.nol-header-search-form:focus-within {
  border-color: var(--skinfit-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nol-header-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: var(--skinfit-space-2) var(--skinfit-space-2) var(--skinfit-space-2) 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--skinfit-text-primary);
  font-family: var(--skinfit-font-family);
  outline: none;
}
.nol-header-search-input::placeholder {
  color: #9e9e9e;
}
.nol-header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #9e9e9e;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}
.nol-header-search-btn:hover {
  color: var(--skinfit-text-secondary);
}

.nol-header-vip {
  display: flex;
  align-items: center;
}
.nol-header-vip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--skinfit-space-1) var(--skinfit-space-2);
}
.nol-vip-badge {
  font-size: var(--skinfit-font-t3);
  line-height: var(--skinfit-line-t3);
  color: var(--skinfit-text-tertiary);
  font-weight: 600;
}
.nol-vip-text {
  font-size: var(--skinfit-font-t2);
  line-height: var(--skinfit-line-t2);
  color: var(--skinfit-text-primary);
  font-weight: 500;
}
.nol-header-vip .nol-target-dropdown { margin: 0; }

.nol-header-sub-nav {
  display: flex;
  align-items: center;
  gap: var(--skinfit-space-2);
  font-size: var(--skinfit-font-t1);
}
.nol-header-sub-nav a {
  color: var(--skinfit-text-secondary);
  text-decoration: none;
}
.nol-header-sub-nav a:hover { color: var(--skinfit-primary); }
.nol-header-divider {
  width: 1px;
  height: 12px;
  background: var(--skinfit-border);
}

/* 네비 아래 구분선 1개만: 헤더 하단 border만 사용, .rui-page-title 구분선은 custom.css에서 제거 */
.nol-header-bottom {
  background: var(--skinfit-surface);
  border-bottom: 1px solid var(--skinfit-border);
}
.nol-header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--skinfit-space-1) var(--skinfit-space-4);
}
/* 카피 문구: 크기·강조 스타일 */
.nol-header-copy {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--skinfit-text-primary);
  letter-spacing: -0.02em;
}
.nol-header-copy-accent {
  color: var(--skinfit-primary);
  font-weight: 700;
}
@media (min-width: 768px) {
  .nol-header-copy {
    font-size: 1.25rem;
    line-height: 1.55;
    font-weight: 700;
  }
  .nol-header-copy-accent {
    font-weight: 800;
  }
}

.nol-header-main-nav {
  display: flex;
  align-items: center;
  gap: var(--skinfit-space-1);
}
.nol-nav-link {
  padding: var(--skinfit-space-1) var(--skinfit-space-3);
  font-size: var(--skinfit-font-t1);
  line-height: var(--skinfit-line-t1);
  color: var(--skinfit-text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nol-nav-link:hover { color: var(--skinfit-text-primary); }
.nol-nav-link.active {
  color: var(--skinfit-text-primary);
  font-weight: 600;
}
.nol-nav-link.active::after {
  content: '';
  position: absolute;
  left: var(--skinfit-space-3);
  right: var(--skinfit-space-3);
  bottom: 0;
  height: 2px;
  background: var(--skinfit-primary);
  border-radius: 1px;
}

.nol-header-actions {
  display: flex;
  align-items: center;
  gap: var(--skinfit-space-4);
}
.nol-action-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: var(--skinfit-text-secondary);
  font-size: var(--skinfit-font-t2);
  line-height: var(--skinfit-line-t2);
  gap: var(--skinfit-space-1);
}
.nol-action-item:hover { color: var(--skinfit-primary); }
.nol-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.nol-action-icon svg { width: 20px; height: 20px; }
.nol-action-label { font-weight: 500; }

/* 하단 액션 영역 내 대상 드롭다운 래퍼: 다른 액션과 한 줄 정렬 */
.nol-action-target-wrap {
  display: flex;
  align-items: center;
}
.nol-action-target-wrap .nol-target-dropdown {
  margin: 0;
}
.nol-action-target-wrap .nol-target-button,
.nol-action-target-wrap .nol-target-button-link {
  display: flex;
  align-items: center;
  gap: var(--skinfit-space-1, 6px);
  font-size: var(--skinfit-font-t2, 14px);
  font-weight: 500;
  padding: 0;
  min-height: 24px;
}
.nol-action-target-wrap .nol-target-text {
  color: var(--skinfit-primary, #C97D7E);
}

@media (max-width: 768px) {
  /* 모바일: 로고 위쪽 여백 확보 */
  .nol-header-top-inner {
    flex-wrap: wrap;
    padding-top: var(--skinfit-space-4);
    padding-bottom: var(--skinfit-space-3);
  }
  .nol-header-top-row-mobile {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nol-header-copy-mobile {
    display: block;
  }
  .nol-header-copy-desktop {
    display: none !important;
  }
  .nol-header-bottom-inner {
    justify-content: flex-end;
  }
  .nol-header-search-wrap {
    order: 3;
    width: 100%;
    max-width: none;
    margin: var(--skinfit-space-2) 0 0;
    margin-left: 0;
  }
  /* 모바일: 툴팁을 검색창 아래로 배치, 가로 정렬 유지 */
  .nol-header-search-tooltip {
    left: 50%;
    top: 100%;
    right: auto;
    margin-left: 0;
    margin-top: 8px;
    transform: translateX(-50%) translateY(0);
    text-align: center;
    width: max-content;
    min-width: 260px;
    max-width: min(320px, calc(100vw - 32px));
    animation: nol-tooltip-bounce-mobile 2s ease-in-out infinite;
  }
  .nol-header-search-tooltip::after {
    right: auto;
    left: 50%;
    margin-left: -6px;
    top: auto;
    bottom: 100%;
    margin-top: 0;
    border-right-color: transparent;
    border-bottom-color: var(--skinfit-primary, #C97D7E);
  }
  @keyframes nol-tooltip-bounce-mobile {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(4px); }
  }
  .nol-header-sub-nav { display: none; }
  .nol-header-bottom-inner { padding: var(--skinfit-space-1) var(--skinfit-space-3); }
  .nol-header-main-nav { gap: 0; }
  .nol-nav-link { padding: var(--skinfit-space-1) var(--skinfit-space-2); font-size: var(--skinfit-font-t1); }
}

@media (min-width: 769px) {
  .nol-header-copy-mobile {
    display: none !important;
  }
  .nol-header-copy-desktop {
    display: block;
  }
}
