/* ── Profile header ────────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-name {
  font-family: 'Funnel Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dl-ink);
}

.profile-email {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: var(--dl-font-size);
  color: #6b7280;
}

.profile-page .page-heading-sub-title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: var(--dl-font-size);
  color: #9ca3af;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-edit-btn {
  height: 2rem;
  padding: 0 1rem;
  border-radius: var(--dl-radius-sm);
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: var(--dl-ink);
  font-size: var(--dl-font-size);
  cursor: pointer;
  transition: background 0.15s;
}

.profile-edit-btn:hover {
  background: #e5e7eb;
}

/* ── CTA buttons (top-right) ───────────────────────────────── */
.profile-page .cta-buttons {
  flex-shrink: 0;
  min-width: 0;
  width: 180px;
}

.profile-page .tab,
.profile-page .tab2 {
  padding: 0.25rem 0.875rem;
  gap: 0.625rem;
  justify-content: flex-start;
  width: 100%;
}

/* ── Followers + Teams (inside profile-meta) ──────────────── */
.profile-social {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-social .follow-stats {
  height: auto;
  padding: 0;
  font-size: var(--dl-font-size);
  color: var(--dl-ink);
}

.profile-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-badge {
  background: #b5c0f7;
  color: #030d37;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  min-width: 3rem;
  text-align: center;
  display: inline-block;
}

.team-badge:hover {
  background: #c8d0fa;
}

/* ── Content cards (stacked below header) ──────────────────── */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Notification card grid ────────────────────────────────── */
.notif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.875rem;
}

.notif-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  min-height: 105px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notif-card:hover {
  border-color: #b5c0f7;
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.08);
}

.notif-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #deebff;
  color: #0c66e4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.notif-card__title {
  font-family: inherit;
  font-size: var(--dl-font-size);
  font-weight: 500;
  color: var(--dl-ink);
  text-decoration: none;
  line-height: 1.35;
}

a.notif-card__title:hover {
  color: #4f5fd4;
  text-decoration: underline;
}

.notif-card__text {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: var(--dl-font-size);
  color: #44546f;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-card__meta {
  font-size: var(--dl-font-size);
  color: #6b778c;
}

/* ── Name-edit inputs ──────────────────────────────────────── */
.profile-name-inputs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-name-inputs .form-control {
  width: auto;
  min-width: 80px;
  flex: 1 1 80px;
}

.follow-stats {
  height: 3.75rem;
  padding: 0.5rem 0.75rem;

  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dl-ink);
  text-decoration: none;
}

.team-popover {
  max-width: 360px;
}

.team-popover-body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--dl-font-size);
}

.team-popover-card ul {
  margin-bottom: 0;
}

.team-popover-card li + li {
  margin-top: 0.35rem;
}

.dl-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dl-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.25rem 0;
}

.dl-feed-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #deebff;
  color: #0c66e4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-feed-icon .dl-icon {
  font-size: 1rem;
  line-height: 1;
}

.dl-feed-content {
  min-width: 0;
  flex: 1 1 auto;
}

.dl-feed-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.dl-feed-title {
  font-family: 'Funnel Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--dl-font-size);
  font-weight: 600;
  color: #172b4d;
  text-decoration: none;
  line-height: 1.35;
}

.dl-feed-title:hover {
  color: #4f5fd4;
  text-decoration: underline;
}

/* Profile page table links — matches site-wide link style */
.profile-content table td a {
  color: var(--dl-ink);
  text-decoration: underline;
  text-decoration-color: rgba(3, 13, 55, 0.25);
  text-underline-offset: 2px;
  transition: color 0.1s, text-decoration-color 0.1s;
}
.profile-content table td a:hover {
  color: #4f5fd4;
  text-decoration-color: #4f5fd4;
}

.dl-feed-body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--dl-font-size);
  color: #44546f;
  line-height: 1.5;
  margin-bottom: 0.2rem;
  white-space: normal;
}

.dl-feed-meta {
  font-size: var(--dl-font-size);
  color: #6b778c;
}
