/* Shared header styling — self-contained (no Tailwind) so both the React site
   and the Product tool render an identical bar. Editorial / architectural look. */

cityslicer-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cs-hd {
  background: rgba(247, 246, 242, 0.85);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #e7e4dd;
}

.cs-hd__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}

.cs-hd__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #141414;
  margin-right: auto;
}

.cs-hd__mark {
  width: 20px;
  height: 20px;
  border: 1.5px solid #141414;
  position: relative;
  transform: rotate(45deg);
  border-radius: 3px;
}
.cs-hd__mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px solid #2b3a55;
  border-radius: 1px;
}

.cs-hd__wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.cs-hd__nav {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 800px) {
  .cs-hd__nav { display: flex; }
}

.cs-hd__link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #5b5852;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cs-hd__link:hover { color: #141414; }
.cs-hd__link.is-active {
  color: #141414;
  border-bottom-color: #141414;
}

.cs-hd__account {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 96px;
  justify-content: flex-end;
}

.cs-hd__skeleton {
  width: 84px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #efece5, #f6f4ef, #efece5);
  background-size: 200% 100%;
  animation: cs-hd-shimmer 1.2s ease-in-out infinite;
}
@keyframes cs-hd-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Sign in (Google) */
.cs-hd__signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #141414;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cs-hd__signin:hover {
  border-color: rgba(20, 20, 20, 0.4);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06);
}
.cs-hd__g { display: block; }

/* Signed-in account */
.cs-hd__account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
}
.cs-hd__account-btn:hover { background: rgba(20, 20, 20, 0.05); }

.cs-hd__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cs-hd__avatar--fallback {
  background: #2b3a55;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.cs-hd__account-name {
  font-size: 0.88rem;
  color: #141414;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 560px) {
  .cs-hd__account-name { display: inline; }
}

.cs-hd__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e7e4dd;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.12);
  padding: 8px;
  z-index: 1001;
}
.cs-hd__menu-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #8a867d;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #e7e4dd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-hd__menu-item {
  display: block;
  padding: 9px 10px;
  margin-top: 4px;
  font-size: 0.88rem;
  color: #141414;
  text-decoration: none;
  border-radius: 8px;
}
.cs-hd__menu-item:hover { background: rgba(20, 20, 20, 0.05); }
