/*
 * Profile — page file. Header card with relationship action, then posts and
 * friends columns.
 */

.profile {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.profile__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.profile__identity {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1;
}

.profile__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* The relationship actions live in shared/relationship_actions.css (also the drawer
   and the friends rail). */

.profile__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.profile__posts,
.profile__friends {
  min-width: 0;
}

.profile__friends .rail-list {
  padding: var(--space-2);
  background-color: var(--color-card);
  border-radius: var(--radius-comfortable);
}

@media (min-width: 640px) {
  .profile__header {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .profile__columns {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    align-items: start;
  }
}
