/*
 * Public founder profiles (/<username>). On top of site.css and blog.css: the shared
 * tokens and the console's surfaces (stat tiles, cards, chips, segmented tabs), so a
 * profile reads like the console it was set up in. Monochrome numbers and charts; light
 * and dark from the same tokens. Mobile first.
 */
.pf {
  padding: clamp(32px, 6vw, 72px) 0 96px;
}
.pf-wrap {
  max-width: 1080px;
}
.pf-muted {
  color: var(--muted);
}

/* ── the person ── */
.pf-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.pf-avatar,
.pf-logo-lg {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  object-fit: cover;
  background: var(--card);
}
.pf-logo-lg {
  border-radius: 22px;
}
.pf-avatar-xs {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--hair);
}
.pf-letter {
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--fg-2);
  background: var(--wash-2);
}
.pf-avatar.pf-letter,
.pf-logo-lg.pf-letter {
  font-size: 38px;
}
.pf-avatar-xs.pf-letter {
  font-size: 12px;
}
.pf-name {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.02;
  margin: 4px 0 6px;
}
.pf-handle {
  color: var(--muted);
  font-size: 15px;
}
.pf-bio {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
  margin: 14px 0 0;
}
.pf-lead {
  margin-top: 8px;
}
.pf-desc {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 70ch;
  margin: 28px 0 0;
  white-space: pre-line;
}
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: var(--wash);
  color: var(--fg-2);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s;
}
a.pf-chip:hover {
  background: var(--wash-2);
  color: var(--fg);
}
.pf-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pf-actions .btn {
  gap: 6px;
}
.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 28px;
}
.pf-back:hover {
  color: var(--fg);
}

/* ── the numbers ── */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 40px 0 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}
.pf-stats-1 {
  grid-template-columns: minmax(0, 1fr);
}
.pf-stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pf-stats-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pf-stat {
  padding: 20px;
  border-left: 1px solid var(--hair);
  min-width: 0;
}
.pf-stat:first-child {
  border-left: 0;
}
.pf-stat-label {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
}
.pf-stat-value {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.pf-stat-note {
  margin-top: 6px;
}
.pf-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* ── the chart ── */
.pf-panel {
  margin-top: 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card);
  padding: 20px 22px 16px;
}
.pf-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pf-chart-title {
  font-weight: 600;
  font-size: var(--fs-body);
}
.pf-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-seg a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: var(--wash);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}
.pf-seg a:hover {
  color: var(--fg);
}
.pf-seg a.is-on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.pf-chart {
  position: relative;
  margin: 0;
}
.pf-chart svg {
  display: block;
  width: 100%;
  height: clamp(160px, 26vw, 260px);
  overflow: visible;
}
.pf-chart-y {
  position: absolute;
  top: -2px;
  left: 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.pf-chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pf-gridline {
  stroke: var(--hair);
  stroke-dasharray: 2 4;
}
.pf-axis {
  stroke: var(--hair-2);
}
.pf-bar {
  fill: var(--fg);
  opacity: 0.86;
}
.pf-line {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.75;
  stroke-linejoin: round;
}
.pf-area {
  fill: var(--fg);
  opacity: 0.07;
}
.pf-hit {
  fill: transparent;
}
.pf-hit:hover {
  fill: var(--wash-2);
}

/* ── activity ── */
.pf-legend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}
.pf-legend span {
  margin: 0 4px;
}
.pf-legend svg {
  display: block;
}
.pf-act-scroll {
  overflow-x: auto;
  direction: rtl;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.pf-act-grid {
  direction: ltr;
  display: block;
  margin-left: auto;
}
/* Room to spare: the grid fills its card. */
@media (min-width: 900px) {
  .pf-act-grid {
    width: 100%;
    height: auto;
  }
}
.pf-act-label {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--sans);
}
.pf-act {
  fill: var(--fg);
}
.pf-act-0 {
  fill: var(--wash-2);
  stroke: var(--hair);
  stroke-width: 0.5;
}
.pf-act-1 {
  opacity: 0.22;
}
.pf-act-2 {
  opacity: 0.42;
}
.pf-act-3 {
  opacity: 0.66;
}
.pf-act-4 {
  opacity: 0.92;
}
.pf-act-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.pf-act-stat {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

/* ── businesses ── */
.pf-h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 56px 0 16px;
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.pf-card:hover {
  border-color: var(--hair-2);
  background: var(--card-hover);
}
.pf-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.pf-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--hair);
  object-fit: cover;
  flex: none;
  background: var(--card);
}
.pf-logo.pf-letter {
  font-size: 18px;
}
.pf-card-title {
  min-width: 0;
}
.pf-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.028em;
}
.pf-card-link {
  color: var(--fg);
  text-decoration: none;
}
/* The whole card opens the business; Visit sits above this. */
.pf-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.pf-card-host {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-card-tag {
  margin: 0;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.pf-ms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.pf-m {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 8px;
  border: 1px solid var(--hair);
  border-radius: var(--r-ctl);
  background: var(--wash);
  min-width: 0;
}
.pf-m-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-m-value {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.pf-spark {
  display: block;
  width: 100%;
  height: 26px;
}
.pf-spark-line {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  opacity: 0.8;
}
.pf-spark-fill {
  fill: var(--fg);
  opacity: 0.06;
}
.pf-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.pf-visit {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
  text-decoration: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-mark);
  background: var(--wash-2);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background-color 0.15s;
}
.pf-visit:hover {
  background: var(--hair);
}
.pf-empty,
.pf-note {
  color: var(--muted);
  font-size: 13.5px;
}
.pf-note {
  margin-top: 28px;
}
.pf-404 {
  padding: 48px var(--gutter);
  text-align: left;
}
.pf-404-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .pf-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
  }
  .pf-actions {
    grid-column: 1 / -1;
  }
  .pf-avatar,
  .pf-logo-lg {
    width: 64px;
    height: 64px;
  }
  .pf-avatar.pf-letter,
  .pf-logo-lg.pf-letter {
    font-size: 26px;
  }
  .pf-stats,
  .pf-stats-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-stat:nth-child(odd) {
    border-left: 0;
  }
  .pf-stat:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
  .pf-stats-1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-stats-3 .pf-stat:last-child {
    grid-column: 1 / -1;
  }
  .pf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-panel {
    padding: 14px 14px 12px;
  }
  .pf-act-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
