/* 산지정보 다드림 v1.1.1 - 모바일 헤더 겹침 수정 */
/* v1.1.0에서 아래쪽에 다시 정의한 display:flex가 모바일 숨김 규칙을 덮는 문제를 해결합니다. */
@media screen and (max-width: 780px) {
  #bf-site.sd-site .bf-header .bf-topnav.sd-primary-nav,
  #bf-site.sd-site .bf-header .sd-primary-nav {
    display: none !important;
  }
  #bf-site.sd-site .bf-header-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    justify-content: space-between;
  }
  #bf-site.sd-site .bf-header .sd-brand {
    display: inline-flex;
    min-width: 0;
    flex: 0 1 auto;
    max-width: calc(100% - 105px);
  }
  #bf-site.sd-site .bf-header .sd-brand-text { min-width: 0; }
  #bf-site.sd-site .bf-header .bf-actions {
    margin-left: auto;
    flex: 0 0 auto;
    gap: 4px;
  }
  #bf-site.sd-site .bf-header .bf-user-trigger {
    max-width: 118px;
    min-height: 42px;
  }
  #bf-site.sd-site .bf-header .bf-admin-link {
    min-width: 39px;
    min-height: 40px;
    padding: 7px 8px !important;
  }
  #bf-site.sd-site .bf-header .bf-admin-link > span { display: none; }
}
@media screen and (max-width: 550px) {
  /* 메뉴는 화면 아래 전체메뉴에서 접근하므로 상단에는 브랜드+회원만 둡니다. */
  #bf-site.sd-site .bf-header .bf-icon-btn { display: none; }
  #bf-site.sd-site .bf-header-inner { padding-left: 14px; padding-right: 14px; }
  #bf-site.sd-site .bf-header .sd-brand-text strong {
    font-size: clamp(17px, 4.8vw, 20px);
    letter-spacing: -0.8px;
  }
  #bf-site.sd-site .bf-header .sd-brand-text small { font-size: 8px; letter-spacing: 1.3px; }
  #bf-site.sd-site .bf-header .bf-kakao-link {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}
@media screen and (max-width: 375px) {
  #bf-site.sd-site .bf-header-inner { padding-left: 10px; padding-right: 10px; gap: 5px; }
  #bf-site.sd-site .bf-header .sd-brand-text strong { font-size: 17px; }
  #bf-site.sd-site .bf-header .bf-kakao-link { padding: 8px 10px; font-size: 12px; }
  #bf-site.sd-site .bf-header .bf-user-trigger { max-width: 96px; }
}
