/* Version V0.0.10 */
:root {
  --brand-header-height: 72px;
}

.has-brand-header {
  scroll-padding-top: calc(var(--brand-header-height) + 16px);
  padding-top: var(--brand-header-height);
}

.brand-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 15, 30, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .brand-header {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.brand-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-header__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.brand-header__logo {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: block;
  background: transparent;
}

.brand-header__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.2px;
}

.brand-header__title {
  font-size: 14px;
  font-weight: 600;
}

.brand-header__subtitle {
  font-size: 11px;
  opacity: 0.75;
}

.brand-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  font-size: 18px;
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

[data-theme="light"] .brand-header__toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
}

.brand-header__toggle:hover {
  border-color: rgba(148, 163, 184, 0.75);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  :root {
    --brand-header-height: 64px;
  }
  .brand-header {
    padding: 8px 12px;
  }
  .brand-header__link {
    font-size: 12px;
    gap: 8px;
  }
  .brand-header__logo {
    max-height: 40px;
    width: auto;
    height: auto;
  }
  .brand-header__toggle {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}
