/* Public profile page (/u/<badge-id>), rendered by functions/u/[slug].js.
   Loaded after style.css and theme-neu.css; uses their colour tokens, so light and dark both follow them. */
.profile-section { padding: clamp(28px, 6vw, 64px) 16px; }
.profile-container { max-width: 960px; display: grid; gap: clamp(20px, 3vw, 28px); }

.profile-card {
  padding: clamp(24px, 5vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.profile-card-solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .profile-card { grid-template-columns: minmax(0, 1fr); } }
.profile-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.profile-headline { font-size: clamp(22px, 5.5vw, 28px); font-weight: 700; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty; }
.profile-who { display: block; }
.profile-big {
  font-size: clamp(60px, 17vw, 104px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.profile-unit { white-space: nowrap; }
.profile-headline-start .profile-who { font-size: clamp(34px, 9vw, 52px); font-weight: 800; line-height: 1.1; color: var(--teal); }
.profile-start-note { font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

.profile-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.profile-stat {
  padding: 12px 18px; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--neu-raised-sm, var(--shadow));
}
.profile-stat-big { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.profile-stat-label { font-size: 14px; color: var(--ink-muted); }

.profile-honest { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-muted); max-width: 46ch; }
.profile-honest svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.profile-badge { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.profile-badge img { display: block; width: 100%; max-width: 400px; height: auto; }

.profile-cta { padding: clamp(24px, 5vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.profile-cta-title { font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.25; color: var(--ink); }
.profile-cta-text { font-size: 16px; line-height: 1.55; color: var(--ink-muted); max-width: 46ch; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin-top: 8px; width: 100%; }
.profile-start {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 0 32px; font-size: 17px; font-weight: 700; text-decoration: none;
}
.profile-start:hover { filter: brightness(1.08); }
.profile-how {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px;
}
.profile-missing { padding-block: clamp(32px, 6vw, 56px); }

@media (max-width: 480px) {
  .profile-start { width: 100%; }
  .profile-badge { align-items: stretch; }
  .profile-badge .about-count-label { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 4px 18px; }
}

/* Public deed list (opt-in) */
.profile-deeds { margin-top: 24px; padding: clamp(20px, 4vw, 32px); }
.profile-deeds-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.profile-deed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.profile-deed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.profile-deed:last-child { border-bottom: 0; }
.profile-deed-type { font-weight: 600; color: var(--ink); }
.profile-deed-did { grid-column: 1; font-size: 14px; color: var(--ink-muted); }
.profile-deed-month { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
