/* ─── Auth ─── */
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#auth-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

/* Legal line under sign-in button */
#auth-legal {
  font-size: .62rem;
  color: var(--text-dim);
  white-space: nowrap;
  line-height: 1.2;
}

#auth-legal a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: rgba(160, 160, 160, 0.4);
  transition: color .15s;
}

#auth-legal a:hover {
  color: var(--text);
}

/* Hide legal line when user is signed in */
#user-chip ~ #auth-legal,
body.signed-in #auth-legal {
  display: none;
}

body.signed-in #google-btn-container {
  display: none;
}

/* ─── Meetup expertise input: search-box style ─── */
#meetup-expertise-input {
  padding: 6px 2px 8px;
  border: none;
  border-bottom: 2px solid rgba(159, 179, 206, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: .8rem;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

#meetup-expertise-input::placeholder {
  color: var(--text-dim);
}

#meetup-expertise-input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 -1px 0 rgba(255, 95, 5, .18);
}

#google-btn-container {
  --google-btn-width: 92px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  width: var(--google-btn-width);
  flex: 0 0 auto;
}

.google-signin-shell {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 95, 5, .34);
  background: #13294B;
  transition: all .2s;
}

#google-btn-container:hover .google-signin-shell {
  background: #0f2140;
  border-color: rgba(255, 95, 5, .5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(19, 41, 75, .34);
}

.google-signin-title {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  color: #FF5F05;
  white-space: nowrap;
}

.google-signin-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  overflow: hidden;
}

.google-signin-overlay iframe,
.google-signin-overlay > div {
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
}

#google-btn-container:focus-within .google-signin-shell {
  border-color: rgba(255, 95, 5, .58);
  box-shadow: 0 0 0 2px rgba(255, 95, 5, .18);
}

#user-chip {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 10px;
  cursor: pointer;
}

body.signed-in #user-chip {
  display: flex;
}

#user-chip span {
  font-size: .8rem;
  color: var(--accent);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#logout-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .75rem;
  padding: 0;
  line-height: 1;
  margin-left: 2px;
}

#logout-btn:hover {
  color: var(--text);
}

#user-chip:hover {
  border-color: var(--accent);
}

@media (max-width: 768px) {
  #google-btn-container {
    min-height: 32px;
  }

  .google-signin-shell {
    min-height: 32px;
    padding: 5px 9px;
  }

  .google-signin-title {
    font-size: .74rem;
  }
}
