/* Liquid Glass island header.
 * Floating pill, hugs content, centered, blurred over content underneath.
 * No full-width bar, no bottom hairline. Apple iOS 26 / macOS Tahoe style.
 */

.sg-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 52px;
  padding: 0 22px;
  max-width: calc(100% - 32px);
  border-radius: 9999px;

  background: rgba(22, 22, 22, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.03);

  font-family: var(--sg-font-display);
}

/* Brand: logo + wordmark side by side */
.sg-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--sg-text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 140ms ease;
}
.sg-header__brand:hover { opacity: 0.85; color: var(--sg-text); }

.sg-header__logo {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* Vertical divider between brand and nav */
.sg-header__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}

/* Desktop nav */
.sg-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sg-header__link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: var(--sg-fs-small);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--sg-text-2);
  text-decoration: none;
  border-radius: 9999px;
  transition: color 140ms ease, background 140ms ease;
}
.sg-header__link:hover {
  color: var(--sg-text);
  background: rgba(255, 255, 255, 0.06);
}
.sg-header__link[aria-current="page"] {
  color: var(--sg-text);
  background: rgba(255, 255, 255, 0.08);
}

/* Burger (mobile only) */
.sg-header__burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--sg-text);
  align-items: center;
  justify-content: center;
}
.sg-header__burger:hover { background: rgba(255, 255, 255, 0.06); }
.sg-header__burger svg { width: 18px; height: 18px; }

/* Mobile panel */
.sg-header__panel {
  display: none;
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 99;
  padding: 8px;
  border-radius: 18px;
  background: rgba(22, 22, 22, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 16px 48px rgba(0, 0, 0, 0.5);
}
.sg-header__panel a {
  display: block;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--sg-text);
  text-decoration: none;
  border-radius: 12px;
}
.sg-header__panel a:hover { background: rgba(255, 255, 255, 0.06); color: var(--sg-text); }
.sg-header__panel a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }

.sg-header[data-open="true"] .sg-header__panel { display: block; }

/* Smaller on mobile */
@media (max-width: 720px) {
  .sg-header {
    height: 48px;
    padding: 0 8px 0 18px;
    gap: 0.5rem;
  }
  .sg-header__nav,
  .sg-header__divider { display: none; }
  .sg-header__burger { display: inline-flex; }
}
