/* Global Header & Profile Dropdown — used on every page. */

.gh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--line, #e6e6e9);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.gh-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--fg, #111);
  text-decoration: none;
  font-size: 15px;
}

.gh-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gh-nav a {
  color: var(--muted, #555);
  text-decoration: none;
  font-size: 13px;
}

.gh-nav a:hover {
  text-decoration: underline;
}

.gh-profile-wrap {
  position: relative;
}

.gh-profile-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.15s ease;
}

.gh-profile-btn:hover {
  opacity: 0.85;
}

.gh-profile-btn img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.gh-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e6e6e9;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  padding: 6px;
  z-index: 1000;
}

.gh-dropdown[hidden] {
  display: none;
}

.gh-dropdown a,
.gh-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.gh-dropdown a:hover,
.gh-dropdown button:hover {
  background: #f7f7f8;
}

.gh-dropdown .gh-email {
  color: #555;
  font-size: 12px;
  cursor: default;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
  font-weight: 500;
  word-break: break-all;
}

.gh-dropdown .gh-email:hover {
  background: none;
}

@media (max-width: 600px) {
  .gh-nav { gap: 10px; }
  .gh-nav a { font-size: 12px; }
  .gh-brand { font-size: 13px; }
}
