/* Public, shareable portfolio page (/username) - print-quality CV layout. */
body {
  background: #f4f6f9;
}

.pp-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.pp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pp-brand {
  font-weight: 700;
  color: #1a3a6b;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.pp-share {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pp-share-label {
  font-size: 12px;
  color: #6b7280;
  margin-right: 2px;
}

.pp-share-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #1a3a6b;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.pp-share-btn:hover {
  border-color: #c9a84c;
  background: #fffdf6;
}

.pp-share-toast {
  font-size: 12px;
  color: #2f9e6e;
  font-weight: 600;
}

/* CV card */
.pp-cv {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(20, 35, 65, 0.08);
  padding: 36px 40px 30px;
}

.pp-cv-head {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #eef0f4;
  padding-bottom: 22px;
}

.pp-cv-avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.pp-cv-avatar img,
.pp-cv-avatar .user-avatar,
.pp-cv-avatar .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.pp-cv-identity {
  min-width: 0;
}

.pp-cv-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: #14233f;
}

.pp-cv-kicker {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a94a6;
}

.pp-cv-meta {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.pp-cv-headline {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a3a6b;
  line-height: 1.45;
}

.pp-cv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 4px;
}

.pp-stat {
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 8px;
}

.pp-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1a3a6b;
}

.pp-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6b7280;
  margin-top: 2px;
}

.pp-section {
  margin-top: 26px;
}

.pp-section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c9a84c;
  margin: 0 0 10px;
}

.pp-section p {
  margin: 0;
  line-height: 1.7;
  color: #2c3a52;
}

.pp-muted {
  color: #8a94a6;
}

.pp-strengths {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: #2c3a52;
}

.pp-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pp-project-title {
  font-size: 15px;
  color: #14233f;
}

.pp-project-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6b7280;
  background: #f1f4f9;
  border-radius: 999px;
  padding: 2px 10px;
}

.pp-progress {
  height: 7px;
  background: #eef1f6;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 5px;
}

.pp-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a3a6b, #c9a84c);
}

.pp-project-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.pp-project-summary {
  margin: 8px 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #2c3a52;
}

.pp-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pp-prizes {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-prize {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 35, 63, 0.12);
  border-radius: 10px;
  background: #fff;
}

.pp-prize-icon,
.pp-prize-icon--img,
img.pp-prize-icon {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.pp-prize strong {
  display: block;
  font-size: 15px;
  color: #14233f;
}

.pp-prize-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}

.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #14233f;
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
}

.pp-badge .badge-medal {
  width: 28px;
  height: 28px;
  margin: 0;
  flex-shrink: 0;
}

.pp-badge-name {
  line-height: 1.2;
}

.pp-cv-foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f6;
  font-size: 12px;
  color: #8a94a6;
}

.pp-cv-foot p {
  margin: 0;
  line-height: 1.6;
}

/* Sign-up CTA */
.pp-cta {
  margin-top: 22px;
  background: linear-gradient(135deg, #14233f, #1a3a6b);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
}

.pp-cta-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.pp-cta-text {
  margin: 0 auto 18px;
  max-width: 560px;
  line-height: 1.65;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.pp-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pp-cta-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.pp-cta-btn:hover {
  border-color: #fff;
}

.pp-cta-btn--primary {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #14233f;
}

.pp-cta-btn--primary:hover {
  background: #d9b95c;
}

@media (max-width: 700px) {
  .pp-cv {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .pp-cv-head {
    gap: 14px;
  }

  .pp-cv-name {
    font-size: 22px;
  }

  .pp-cv-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pp-cta {
    padding: 22px 18px;
  }
}

@media (max-width: 400px) {
  .pp-share-label {
    display: none;
  }

  .pp-share-btn {
    padding: 6px 10px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .no-print {
    display: none !important;
  }

  .pp-wrap {
    max-width: none;
    padding: 0;
  }

  .pp-cv {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
}
