/* ================================================== */
/* 언어 토글 공통: ko 또는 en만 표시 */
/* ================================================== */
body[data-lang="ko"] .lang-en { display: none !important; }
body[data-lang="en"] .lang-ko { display: none !important; }

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-title {
  font-weight: 700;
}
/* ================================================== */
/* 히어로 영역(검정 배경)에서 제목 우측에 토글 배치 */
/* ================================================== */
/* ================================================== */
/* 히어로 배경에서 버튼 글자 가독성 확보 */
/* ================================================== */
.lang {
  display: flex;
  gap: 8px;
}

.lang-btn {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.lang-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
/* ================================================== */
/* 검정색 히어로(브랜드) 영역을 헤더처럼 상단 고정 */
/* ================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 2000;
}

/* ================================================== */
/* 제목 오른쪽에 언어 토글을 항상 배치 */
/* 제목은 줄바꿈 가능, 버튼은 우측 고정 */
/* ================================================== */
/* ================================================== */
/* 작은 화면에서 버튼이 너무 아래로 밀리지 않도록 여백 최소화 */
/* ================================================== */
@media (max-width: 480px) {
  .lang-btn {
    padding: 7px 9px;
    font-size: 13px;
  }
}
/* ================================================== */
/* 헤더(검정 영역) 레이아웃: 로고 | 제목/설명 | 언어 토글 */
/* ================================================== */
.brand-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 14px;
  row-gap: 10px;
}

.brand-main h1 {
  margin: 0;
  line-height: 1.1;
  word-break: keep-all;
  white-space: nowrap;
}

/* 설명은 제목 아래에 자연스럽게 배치 */
.brand-main .tagline {
  margin-top: 8px;
}

/* 토글은 제목 오른쪽 상단 정렬 */
.brand-grid .lang {
  align-self: start;
  justify-self: end;
  margin-top: 2px;
}

/* 작은 화면에서는 제목 줄바꿈 허용 및 토글이 아래로 자연스럽게 이동 */
@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: auto 1fr;
  }

  .brand-main h1 {
    white-space: normal;
  }

  .brand-grid .lang {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}
