/* /assets/css/public-profile.css
   Styles for the public profile page (/pages/public/profile.php).
   Matches Figma nodes 103:10665 (mobile) and 103:10375 (desktop). */

* { box-sizing: border-box; }

:root {
  --font-ui: "PT Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-reading: "PT Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-case-title: "PT Serif", Georgia, Cambria, "Times New Roman", serif;
}

.pp-body {
  margin: 0;
  background: #fafafa;
  color: #1c1c1e;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ Topbar ============ */
.pp-topbar {
  background: #fff;
  border-bottom: 1px solid #f1f2f4;
}

.pp-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.pp-brand img { display: block; height: 24px; width: auto; }

.pp-brand-fallback {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #242424;
}

.pp-topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

.pp-topnav a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}

.pp-topnav a:hover { color: #242424; }

.pp-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: #f7f8fa;
  border-radius: 999px;
  color: #1c1c1e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease;
}
.pp-user-chip:hover { background: #eef1f5; }
.pp-user-chip svg { width: 14px; height: 14px; color: #64748b; }

.pp-user-chip-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 12px; font-weight: 600; color: #475569;
}
.pp-user-chip-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pp-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pp-login-link svg { color: #242424; width: 11px; height: 11px; }

/* Public-style header actions (Figma 103:10375 / 103:10665) — pairs the
   neutral "Create Account" link with the AIxC-neutral "Login ↗" affordance. */
.pp-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.pp-create-account {
  color: #1c1c1e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color .15s ease;
}
.pp-create-account:hover { color: #242424; }

.pp-member-destination {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  background: var(--pp-text, #242424);
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.pp-member-destination:hover {
  background: #000;
  color: #fff;
}

.pp-login-link--public {
  /* Drop the gradient text treatment so the link reads as a clear neutral link. */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #242424;
  font-size: 15px;
}

/* ============ Page shell ============ */
.pp-page {
  min-height: calc(100vh - 144px);
  padding: 30px 24px 48px;
}

.pp-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

/* ============ Cases column (left on desktop) ============ */
.pp-cases-col { min-width: 0; }

.pp-cases-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pp-cases-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #141522;
  letter-spacing: -0.01em;
}

.pp-sort-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.pp-sort-btn:hover { background: #f1f3f6; color: #1c1c1e; }
.pp-sort-btn svg { width: 14px; height: 14px; }

.pp-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pp-case-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #f1f2f4;
}

.pp-case-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #696969;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.pp-meta-dot {
  width: 5px; height: 5px;
  background: #d9d9d9;
  border-radius: 1px;
  display: inline-block;
}

.pp-case-title {
  margin: 0;
  font-family: var(--font-case-title);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.36;
  color: #1c1c1e;
  letter-spacing: -0.005em;
}
.pp-case-title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.pp-case-title a:hover { color: #242424; }

.pp-case-industry {
  margin: 0;
  font-size: 14px;
  color: #696969;
  letter-spacing: -0.01em;
}

.pp-case-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ebedf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pp-case-stats {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #1c1c1e;
}
.pp-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #1c1c1e;
}
.pp-stat svg { width: 14px; height: 14px; color: #1c1c1e; }

.pp-view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #242424;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: opacity .15s ease;
}
.pp-view-link:hover { opacity: .8; }
.pp-view-link svg { width: 14px; height: 14px; }

.pp-load-more {
  margin-top: 24px;
  text-align: center;
}
.pp-load-more a {
  color: #242424;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
}

.pp-empty {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  border: 1px solid #f1f2f4;
}

.pp-notice {
  max-width: 480px;
  margin: 96px auto;
  padding: 40px 32px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f1f2f4;
}

.pp-notice h1 {
  font-size: 22px;
  font-weight: 700;
  color: #242424;
  margin: 0 0 10px;
}

.pp-notice p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.pp-notice .pp-view-link {
  justify-content: center;
}

/* ============ Side column (profile + awards) ============ */
.pp-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 24px;
}

/* Profile card */
.pp-profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #f1f2f4;
}

.pp-avatar-wrap { display: block; }
.pp-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: #e2e8f0;
}
.pp-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: #475569;
}

.pp-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pp-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.01em;
  color: #2c2d30;
}

.pp-scholar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pp-scholar-badge svg { width: 20px; height: 20px; }

.pp-headline {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: #1c1c1e;
  letter-spacing: -0.01em;
}

.pp-divider {
  height: 1px;
  background: #ebedf0;
  margin: 4px 0;
}

.pp-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
}
.pp-location svg { width: 14px; height: 14px; flex-shrink: 0; }

.pp-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #313131;
  font-size: 14px;
  line-height: 1.45;
}
.pp-bio p { margin: 0; }

.pp-contact-label,
.pp-follow-label {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  color: #344054;
  line-height: 24px;
}

.pp-website-link {
  display: grid;
  gap: 2px;
  color: #1c1c1e;
  text-decoration: none;
}

.pp-website-link span {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.pp-website-link strong {
  color: #242424;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.pp-website-link:hover strong {
  text-decoration: underline;
}

.pp-contact-list {
  display: grid;
  gap: 10px;
}

.pp-contact-item {
  display: grid;
  gap: 2px;
  color: #1c1c1e;
  text-decoration: none;
}

.pp-contact-item--meeting,
.pp-contact-item--location {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  column-gap: 8px;
  row-gap: 2px;
}

.pp-contact-icon {
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #667085;
}

.pp-follow-btn {
  align-self: flex-start;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid #242424;
  background: #242424;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}

.pp-follow-btn:hover {
  opacity: .85;
}

.pp-follow-btn.is-following {
  background: transparent;
  color: #242424;
  border-color: #d7dbe0;
}

/* pp-member-shell/-feed/-author-rail now reuse the exact same three-column
   grid (left nav / feed / rail) as explore/index.php and explore/story.php —
   the base .hc-medium-shell / .hc-medium-leftnav / .hc-medium-feed /
   .hc-medium-rail rules in healthcare-app.css (plus their responsive
   breakpoints) already handle sizing, borders, and mobile collapse, so no
   page-specific overrides are needed here anymore. */

.pp-contact-item span {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.pp-contact-item strong {
  color: #242424;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.pp-contact-item:hover strong {
  text-decoration: underline;
}

.pp-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pp-social {
  width: 36px;
  height: 36px;
  background: #fafafa;
  border: 1px solid #f4f6f9;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1e;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pp-social:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08);
}
.pp-social svg { width: 20px; height: 20px; }
.pp-social--linkedin svg { color: #242424; }
.pp-social--x        svg { color: #000000; }
.pp-social--instagram svg { color: #242424; }
.pp-social--facebook svg { color: #242424; }
.pp-social--whatsapp svg { color: #242424; }

/* Awards promo card (gradient) */
.pp-awards-card {
  background: #f2f2f2;
  color: #ffffff;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pp-awards-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.pp-awards-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.005em;
}

.pp-awards-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.pp-awards-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  transition: background .15s ease;
}
.pp-awards-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.pp-awards-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.pp-awards-link svg { width: 11px; height: 11px; }

/* ============ Footer ============ */
.pp-footer {
  background: #fff;
  border-top: 1px solid #f1f2f4;
  padding: 24px;
}

.pp-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  /* Copy on the left, links on the right — mirrors the in-app footer.
     Markup order is links-then-copy, hence row-reverse. */
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 14px;
  color: #8e8e93;
}

.pp-footer-copy { letter-spacing: -0.01em; }

.pp-footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.pp-footer-links a {
  color: inherit;
  text-decoration: none;
}
.pp-footer-links a:hover { color: #1c1c1e; }

/* ============ Responsive — Tablet (single column at 900px and below) ============ */
@media (max-width: 1024px) {
  .pp-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .pp-side-col {
    position: static;
    order: -1;
  }
  .pp-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pp-topbar-inner {
    padding: 18px 24px;
  }
  .pp-topnav { display: none; }
  .pp-user-chip-name { display: none; }
  .pp-create-account { display: none; }

  .pp-page { padding: 16px 16px 32px; }

  .pp-shell {
    gap: 18px;
  }

  /* Profile card stays on top, cases below */
  .pp-cases-head { display: none; }

  .pp-cases-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pp-case-card {
    padding: 20px;
    border-radius: 18px;
  }
  .pp-case-title { font-size: 16px; }

  .pp-profile-card {
    padding: 24px;
    border-radius: 20px;
  }
  .pp-name { font-size: 22px; line-height: 30px; }

  .pp-awards-card {
    padding: 28px 24px;
    border-radius: 10px;
  }
  .pp-awards-card h3 { font-size: 18px; }
  .pp-awards-card p { font-size: 14px; }

  .pp-footer { padding: 20px 16px; }
  .pp-footer-inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
  }
  .pp-footer-links { gap: 12px; }
}

/* ===== Medium-style public layout refresh ===== */
:root {
  --pp-text: #242424;
  --pp-muted: #6b6b6b;
  --pp-subtle: #8a8a8a;
  --pp-bg: #f7f7f7;
  --pp-border: #e6e6e6;
  --pp-hover: #f2f2f2;
}

.pp-body {
  background: var(--pp-bg);
  color: var(--pp-text);
}

.pp-topbar,
.pp-footer {
  background: #fff;
  border-color: var(--pp-border);
}

.pp-topbar-inner,
.pp-footer-inner {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}

.pp-brand-fallback,
.pp-topnav a:hover,
.pp-create-account:hover,
.pp-login-link,
.pp-login-link svg,
.pp-login-link--public,
.pp-case-title a:hover,
.pp-view-link,
.pp-load-more a {
  color: var(--pp-text);
}

.pp-login-link {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.pp-page {
  padding: 48px 0 80px;
}

.pp-shell {
  max-width: 1200px;
  padding: 0 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
}

.pp-cases-head {
  margin-bottom: 26px;
}

.pp-cases-head h1 {
  color: var(--pp-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.pp-member-cta {
  border-top: 1px solid var(--pp-border);
  border-bottom: 1px solid var(--pp-border);
  padding: 24px 0 26px;
  margin: 0 0 26px;
}

.pp-member-cta--inline {
  margin: 6px 0 0;
}

.pp-member-kicker {
  margin: 0 0 8px;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-member-cta h2 {
  margin: 0;
  color: var(--pp-text);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.pp-member-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.pp-member-primary,
.pp-member-secondary {
  color: var(--pp-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.pp-member-primary {
  border: 1px solid var(--pp-text);
  border-radius: 999px;
  padding: 10px 18px;
}

.pp-member-primary:hover {
  background: var(--pp-hover);
}

.pp-member-secondary {
  border-bottom: 1px solid var(--pp-text);
  padding-bottom: 2px;
}

.pp-sort-btn {
  color: var(--pp-muted);
  border-radius: 999px;
}

.pp-sort-btn:hover {
  background: var(--pp-hover);
  color: var(--pp-text);
}

.pp-cases-grid {
  display: block;
}

.pp-case-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pp-border);
  border-radius: 0;
  padding: 0 0 26px;
  margin: 0 0 26px;
  gap: 10px;
  box-shadow: none;
}

.pp-case-card:last-child {
  margin-bottom: 0;
}

.pp-case-meta,
.pp-case-industry,
.pp-case-objective,
.pp-stat,
.pp-empty {
  color: var(--pp-muted);
}

.pp-case-title {
  color: var(--pp-text);
  font-size: 22px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.pp-case-industry,
.pp-case-objective {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pp-muted);
}

.pp-case-meta {
  font-size: 13.5px;
  letter-spacing: 0;
}

.pp-case-footer {
  border-top: 0;
  padding-top: 8px;
}

.pp-stat svg,
.pp-view-link svg {
  color: var(--pp-text);
}

.pp-view-link {
  border-bottom: 1px solid var(--pp-text);
  padding-bottom: 2px;
}

.pp-empty,
.pp-profile-card,
.pp-awards-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.pp-side-col {
  gap: 34px;
}

.pp-profile-card {
  gap: 13px;
}

.pp-avatar {
  background: var(--pp-hover);
}

.pp-avatar--fallback {
  color: var(--pp-muted);
}

.pp-name {
  color: var(--pp-text);
  font-size: 24px;
  line-height: 1.25;
}

.pp-headline,
.pp-website-link span,
.pp-contact-label,
.pp-follow-label,
.pp-bio {
  color: var(--pp-muted);
}

.pp-divider {
  background: var(--pp-border);
  margin: 8px 0;
}

.pp-social {
  background: transparent;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  box-shadow: none;
  color: var(--pp-text);
}

.pp-social:hover {
  background: var(--pp-hover);
  box-shadow: none;
  transform: none;
}

.pp-social--linkedin svg,
.pp-social--x svg,
.pp-social--instagram svg,
.pp-social--facebook svg,
.pp-social--whatsapp svg {
  color: var(--pp-text);
}

.pp-awards-card {
  border-top: 1px solid var(--pp-border);
  color: var(--pp-text);
  padding-top: 28px;
}

.pp-awards-card h3 {
  color: var(--pp-text);
}

.pp-awards-card p {
  color: var(--pp-muted);
}

.pp-awards-ghost {
  border-color: var(--pp-text);
  color: var(--pp-text);
}

.pp-awards-ghost:hover {
  background: var(--pp-hover);
}

.pp-awards-link {
  color: var(--pp-text);
}

.pp-footer-inner {
  color: var(--pp-muted);
}

/* ===== Shared paywall / locked-preview block (used by both profile + case-study) ===== */
.cs-locked-content,
.pp-locked-content {
  position: relative;
  margin-top: 4px;
  padding-top: 22px;
}

.cs-locked-teaser,
.pp-locked-teaser {
  position: relative;
  max-height: 140px;
  overflow: hidden;
  color: var(--pp-text);
  font-family: var(--font-reading);
  font-size: 18px;
  line-height: 1.7;
}

.pp-locked-teaser .pp-case-title {
  font-family: var(--font-case-title);
  margin: 8px 0 0;
}

.pp-locked-teaser .pp-case-meta {
  font-family: var(--font-ui);
}

.cs-locked-teaser-heading {
  margin: 0 0 10px;
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pp-text);
}

.cs-locked-fade {
  position: absolute;
  left: 0;
  right: 0;
  /* Sits on top of the teaser so the bottom 70% softly fades into the bg */
  top: 22px;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(247, 247, 247, 0) 0%,
    rgba(247, 247, 247, 0.55) 35%,
    var(--pp-bg) 78%
  );
  pointer-events: none;
}

/* Medium-style centered membership block */
.cs-paywall {
  position: relative;
  margin: 0 auto;
  max-width: 640px;
  padding: 8px 0 12px;
  text-align: center;
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--pp-text);
}

.cs-paywall-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--pp-text);
}

.cs-paywall-sub {
  margin: 0 auto 18px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pp-muted);
}

.cs-paywall-benefits {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 460px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-paywall-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--pp-text);
}

.cs-paywall-benefits svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  color: #1a8917; /* Medium-green check */
}

.cs-paywall-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cs-paywall-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: #1a8917;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease;
}

.cs-paywall-primary:hover {
  background: #156b12;
}

.cs-paywall-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--pp-muted);
  text-decoration: none;
  letter-spacing: -0.005em;
}

.cs-paywall-secondary:hover {
  color: var(--pp-text);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .cs-paywall-title { font-size: 20px; }
  .cs-paywall-sub { font-size: 14px; }
  .cs-paywall-benefits li { font-size: 13.5px; }
  .cs-locked-teaser,
  .pp-locked-teaser { font-size: 16.5px; }
  .cs-locked-teaser-heading { font-size: 18px; }
}

@media (max-width: 1199px) {
  .pp-topbar-inner,
  .pp-footer-inner,
  .pp-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ===== Same-page public authentication ===== */
.pa-modal[hidden],
.pa-auth-step[hidden],
.pa-auth-message[hidden] {
  display: none !important;
}

.pa-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.54);
}

.pa-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.pa-modal-open {
  overflow: hidden;
}

.pa-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pp-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pa-modal-close:hover {
  background: var(--pp-hover);
  color: var(--pp-text);
}

.pa-modal-close svg {
  width: 18px;
  height: 18px;
}

.pa-modal-brand {
  margin-bottom: 34px;
  color: var(--pp-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pa-auth-step h2 {
  margin: 0;
  color: var(--pp-text);
  font-family: var(--font-ui);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.pa-step-kicker {
  margin: 0 0 8px;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pa-modal-intro {
  margin: 12px 0 24px;
  color: var(--pp-muted);
  font-size: 15px;
  line-height: 1.55;
}

.pa-auth-form {
  display: grid;
  gap: 12px;
}

.pa-auth-form label {
  color: var(--pp-text);
  font-size: 13px;
  font-weight: 500;
}

.pa-auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
  color: var(--pp-text);
  padding: 11px 13px;
  font: inherit;
  outline: none;
}

.pa-auth-form input:focus {
  border-color: var(--pp-text);
  box-shadow: 0 0 0 1px var(--pp-text);
}

.pa-auth-form input[readonly] {
  background: var(--pp-bg);
  color: var(--pp-muted);
}

.pa-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pa-field-row > div {
  display: grid;
  gap: 12px;
}

.pa-primary-btn,
.pa-social-btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.pa-primary-btn {
  border: 1px solid var(--pp-text);
  background: var(--pp-text);
  color: #fff;
  cursor: pointer;
}

.pa-primary-btn:hover {
  background: #000;
}

.pa-primary-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pa-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--pp-subtle);
  font-size: 12px;
}

.pa-divider::before,
.pa-divider::after {
  content: "";
  height: 1px;
  background: var(--pp-border);
  flex: 1;
}

.pa-social-actions {
  display: grid;
  gap: 10px;
}

.pa-social-btn {
  border: 1px solid #d7d7d7;
  background: #fff;
  color: var(--pp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pa-social-btn:hover {
  background: var(--pp-hover);
}

.pa-legal {
  margin: 22px 0 0;
  color: var(--pp-subtle);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.pa-legal a,
.pa-check a {
  color: inherit;
  text-decoration: underline;
}

.pa-check {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 3px 0;
  color: var(--pp-muted) !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.pa-check input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  padding: 0;
}

.pa-text-btn {
  display: block;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: var(--pp-muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.pa-auth-message {
  margin: 18px 0 0;
  border-radius: 10px;
  background: #f2f7f1;
  color: #246b22;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.pa-auth-message.is-error {
  background: #fff2f2;
  color: #9f2828;
}

@media (max-width: 600px) {
  .pa-modal {
    align-items: end;
    padding: 0;
  }

  .pa-modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    padding: 28px 20px 30px;
  }

  .pa-modal-brand {
    margin-bottom: 26px;
  }

  .pa-auth-step h2 {
    font-size: 30px;
  }

  .pa-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .pp-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .pp-topbar-inner,
  .pp-footer-inner,
  .pp-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pp-page {
    padding: 32px 0 64px;
  }

  .pp-member-cta {
    padding-top: 18px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .pp-member-cta h2 {
    font-size: 22px;
    line-height: 1.33;
  }

  .pp-member-actions {
    margin-top: 14px;
    gap: 12px;
  }

  .pp-member-primary,
  .pp-member-secondary {
    font-size: 13px;
  }

  .pp-case-title {
    font-size: 18px;
  }

  .pp-case-card,
  .pp-profile-card,
  .pp-awards-card {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }
}
