/* ---- people rows ---- */
.person-rows {
  list-style: none;
}
.person-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
  animation: rise-in 0.4s var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 30ms);
}
.person-rows li:last-child {
  border-bottom: none;
}
.person-rows li:hover {
  background: var(--sunken);
}
.person-rows li:active {
  background: var(--accent-dim);
}
.person-rows .who {
  flex: 1;
  min-width: 0;
}
.person-rows .name {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.person-rows .label {
  color: var(--muted);
  font-size: 0.8rem;
}
.person-rows .where {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1px;
}
.person-rows .met {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 1px;
}
.person-rows .km {
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.person-rows .km b {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
}
.person-rows .km span {
  font-size: 0.72rem;
  color: var(--muted);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--sunken);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.avatar.linked {
  box-shadow:
    0 0 0 2px var(--panel),
    0 0 0 4px var(--accent);
}
.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}
.avatar-xl {
  width: 84px;
  height: 84px;
  font-size: 2rem;
}
.avatar {
  position: relative;
  overflow: hidden;
}
.avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}
.avatar > img.loaded {
  opacity: 1;
}
.avatar > img.at-once {
  transition: none;
}

/* ---- person detail ---- */
.person-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.screen.active .person-hero {
  animation: rise-in 0.45s var(--ease);
}
.person-hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips:empty {
  display: none;
}
.chips a {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s var(--ease);
}
.chips a .handle {
  font-weight: 400;
  opacity: 0.8;
}
.chips a:active {
  transform: scale(0.95);
}
.facts {
  display: flex;
  flex-direction: column;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  text-align: right;
  overflow-wrap: anywhere;
}
/* The note: in your own words, so set like a quote rather than a fact. */
.person-shared {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.person-note {
  margin: 16px 0 4px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--accent);
}
.person-note p {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.edit-title {
  font-size: 1.9rem;
  overflow-wrap: anywhere;
}

.beer-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.45;
}
.beer-card p {
  flex: 1;
  margin: 0;
}
.beer-card a {
  font-weight: 600;
  white-space: nowrap;
}
.beer-card .icon-btn {
  flex: none;
  margin: -4px -6px 0 0;
}
.beer-card.hidden {
  display: none;
}
.link-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.link-box:empty {
  display: none;
}
.link-box > .btn {
  width: 100%;
}
.link-box .link-btn {
  align-self: flex-start;
}
.link-actions {
  display: flex;
  justify-content: space-between;
}
