/* Names section. Builds on style.css: only what it does not already cover. */

/* ---------- Search ---------- */

.name-search { margin-bottom: 16px; }
.name-search input,
.zk-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}
.name-search input:focus,
.zk-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.name-empty {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--muted);
  text-align: center;
}
[hidden] { display: none !important; }

/* ---------- Lists ---------- */

.name-hint {
  color: var(--muted);
  font-size: 15px;
  text-align: end;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rows li > a .row-title { white-space: nowrap; }

.name-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.name-chips a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.name-chips a:hover { text-decoration: none; outline: 2px solid var(--accent); }

/* ---------- Name page ---------- */

.eyebrow a { color: var(--muted); }
.name-hero { text-align: center; padding-block: 28px; }
.name-display { font-size: 44px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.name-meaning { font-size: 20px; margin: 0; }

.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; font-weight: 600; text-align: end; }

/* ---------- Decoration ---------- */

.zk-form textarea { resize: vertical; font-size: 20px; line-height: 1.5; }
.zk-form .field { margin-top: 0; }
.zk-list li > div { min-width: 0; }
.zk-text {
  font-size: 22px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.zk-label { color: var(--muted); font-size: 13px; }
.zk-list button.copy { flex-shrink: 0; }
#zk-list li { padding-inline-end: 16px; }
.zk-more { margin: 12px 0 0; }

@media (max-width: 480px) {
  .name-display { font-size: 36px; }
  .name-hint { font-size: 14px; }
}
