/* suggest_chips.css — tap-to-fill suggestion chips, the gothram /
   family-surname lookup box and the phone field (js/profile_suggest.js),
   shared by join.php, join_profile.php and updateprofile.php. Uses the
   --eg-* tokens from editorial_shell.css, so load it after that file. */

.sg-intro { grid-column: 1 / -1; margin: 0; color: var(--eg-muted); font-size: 12.5px; line-height: 1.55; }
.sg-intro strong { color: var(--eg-ink); font-weight: 600; }
.sg-intro a { color: var(--eg-wine); font-weight: 700; text-decoration: none; }
.sg-intro a:hover { text-decoration: underline; }

.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--eg-line);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--eg-wine);
  font: 600 12px/1.3 var(--eg-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sg-chip:hover { border-color: var(--eg-gold); background: #fff; }
.sg-chip:focus-visible { outline: none; border-color: var(--eg-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .3); }
.sg-chip.is-active { background: var(--eg-wine); border-color: var(--eg-wine); color: #fff; }
.sg-chip small { color: var(--eg-muted); font-size: 11px; font-weight: 500; }

/* Phone: country-code select + number side by side (profile_phone_field()). */
.sg-phone { display: grid; grid-template-columns: minmax(8.5rem, 36%) minmax(0, 1fr); gap: 8px; }
.sg-phone select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 420px) { .sg-phone { grid-template-columns: 1fr; } }

/* A field carrying a lookup box: keep its rows at the top so a taller
   neighbour in the same form-grid row doesn't stretch the input. */
.sg-field { align-content: start; }

.sg-help { display: grid; gap: 6px; color: var(--eg-muted); font-size: 12px; line-height: 1.5; }
.sg-help:empty { display: none; }
.sg-help p { margin: 0; }
.sg-help .sg-help__ok { color: #38622a; font-weight: 600; }
