/* Paine Giving Platform */

:root {
  --pgp-purple: #4E008E;
  --pgp-gold: #CDA177;
  --pgp-dark: #20182d;
  --pgp-muted: #6b6475;
  --pgp-line: #e7e1ee;
  --pgp-success: #0f7b4f;
  --pgp-danger: #df1b41;
}

/* Base */

.pgp-demo-shell,
.pgp-demo-shell * {
  box-sizing: border-box;
}

.pgp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  color: var(--pgp-dark);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pgp-demo-shell button,
.pgp-demo-shell input,
.pgp-demo-shell select,
.pgp-demo-shell textarea {
  font: inherit;
}

.pgp-demo-shell button {
  cursor: pointer;
}

.pgp-demo-shell h1,
.pgp-demo-shell h2,
.pgp-demo-shell h3 {
  margin: 0;
}

.pgp-demo-shell h1 {
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.pgp-demo-shell h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.pgp-muted,
.pgp-hero p {
  color: var(--pgp-muted);
  line-height: 1.55;
}

.pgp-hero p {
  margin: 12px 0 0;
}

.pgp-eyebrow {
  margin-bottom: 8px;
  color: var(--pgp-purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Top navigation */

.pgp-top-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  /* margin-top: -12rem; */
}

.pgp-top-nav a {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pgp-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--pgp-dark);
  box-shadow: 0 8px 20px rgba(36, 18, 64, 0.05);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.pgp-top-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(36, 18, 64, 0.09);
  text-decoration: none;
}

.pgp-top-nav a.active {
  border-color: var(--pgp-purple);
  background: var(--pgp-purple);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(78, 0, 142, 0.18);
}

/* Hero */

.pgp-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--pgp-line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(36, 18, 64, 0.06);
  
}

.pgp-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(205, 161, 119, 0.18);
}

.pgp-hero > * {
  position: relative;
  z-index: 1;
}

.pgp-summary-card {
  padding: 18px;
  border: 1px solid var(--pgp-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #faf6ff, #ffffff);
}

.pgp-label {
  color: var(--pgp-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pgp-big {
  margin-top: 4px;
  color: var(--pgp-purple);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
}

.pgp-summary-card p {
  margin: 8px 0 0;
}

/* Buttons */

.pgp-btn-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pgp-btn {
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pgp-btn:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.pgp-primary {
  background: var(--pgp-purple);
  color: #ffffff !important;
}

.pgp-gold {
  background: var(--pgp-gold);
  color: #2a1b00 !important;
}

.pgp-secondary {
  background: #efe7f7;
  color: var(--pgp-purple) !important;
}

.pgp-outline {
  border: 1px solid var(--pgp-line);
  background: #ffffff;
  color: var(--pgp-dark) !important;
}

.pgp-btn:disabled,
.pgp-btn[disabled],
.pgp-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.pgp-submit-btn:disabled {
  background: #b8adc6;
}

/* Sections and cards */

.pgp-section-title {
  margin: 28px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.pgp-section-title p {
  margin: 6px 0 0;
  color: var(--pgp-muted);
  line-height: 1.45;
}

.pgp-section-title-tight {
  margin-top: 0;
}

.pgp-card {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--pgp-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(36, 18, 64, 0.06);
}

.pgp-card h1 {
  margin-bottom: 8px;
}

.pgp-card h2 {
  margin-bottom: 6px;
}

.pgp-notice {
  padding: 12px 14px;
  border: 1px solid #d8ccf0;
  border-radius: 14px;
  background: #fbf8ff;
  color: #39294d;
  line-height: 1.45;
}

.pgp-direct-card .pgp-notice {
  margin-top: 16px;
}

/* Filters */

.pgp-filters {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pgp-filters input,
.pgp-filters select {
  min-width: 200px;
  padding: 11px 13px;
  border: 1px solid var(--pgp-line);
  border-radius: 12px;
  background: #ffffff;
}

/* Project cards */

.pgp-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pgp-empty-card {
  grid-column: 1 / -1;
}

.pgp-project-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pgp-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(36, 18, 64, 0.06);
}

.pgp-project-card[hidden] {
  display: none !important;
}

.pgp-project-img {
  position: relative;
  height: 185px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(78, 0, 142, 0.88), rgba(205, 161, 119, 0.82));
  background-position: center;
  background-size: cover;
}

.pgp-project-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.60));
}

.pgp-project-img h3 {
  padding-right: 65px;
  font-size: 24px;
  line-height: 1.06;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.pgp-project-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  font-size: 26px;
}

.pgp-featured-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pgp-gold);
  color: #2a1b00;
  font-size: 12px;
  font-weight: 900;
}

.pgp-project-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
}

.pgp-project-body p {
  margin: 0;
}

.pgp-project-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--pgp-purple);
}

.pgp-project-line strong {
  font-size: 14px;
  font-weight: 900;
}

.pgp-progress-wrap {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8f5;
}

.pgp-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pgp-purple), var(--pgp-gold));
  transition: width 0.35s ease;
}

.pgp-project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pgp-mini-stat {
  padding: 10px;
  border: 1px solid #f0e9f7;
  border-radius: 12px;
  background: #fbf8fe;
}

.pgp-mini-stat strong {
  display: block;
  color: var(--pgp-dark);
  font-size: 15px;
}

.pgp-mini-stat span {
  color: var(--pgp-muted);
  font-size: 12px;
}

.pgp-card-actions {
  margin-top: auto;
}

.pgp-card-actions .pgp-primary {
  flex: 1;
}

/* Checkout */

.pgp-gift-form-wrap {
  max-width: 1180px;
}

.pgp-checkout-card {
  padding: 24px;
}

.pgp-checkout-card > .pgp-muted {
  margin: 8px 0 0;
}

.pgp-checkout-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.pgp-choice-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pgp-choice-card {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--pgp-line);
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.pgp-choice-card.selected {
  border-color: var(--pgp-purple);
  background: #fbf8fe;
  box-shadow: 0 0 0 3px rgba(78, 0, 142, 0.10);
}

.pgp-choice-card input {
  width: auto !important;
  margin-top: 4px;
  accent-color: var(--pgp-purple);
}

.pgp-choice-card strong,
.pgp-choice-card span {
  display: block;
}

.pgp-choice-card strong {
  font-weight: 900;
}

.pgp-choice-card span {
  margin-top: 5px;
  font-size: 13px;
}

.pgp-login-message {
  display: none;
  margin-bottom: 16px;
}

.pgp-login-message.show {
  display: block;
}

.pgp-login-message p {
  margin: 6px 0 10px;
}

.pgp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pgp-form-grid p {
  margin: 0;
}

.pgp-form-grid label {
  margin-bottom: 6px;
  display: block;
  color: var(--pgp-muted);
  font-size: 13px;
  font-weight: 800;
}

.pgp-form-grid input,
.pgp-form-grid select {
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  border: 1px solid var(--pgp-line);
  border-radius: 12px;
  background: #ffffff;
}

#pgp-guest-fields {
  margin-top: 14px;
}

.pgp-field-help {
  margin-top: 6px;
  display: block;
  color: var(--pgp-muted);
  font-size: 12px;
  line-height: 1.4;
}

input[readonly] {
  background: #f7f4fa;
  cursor: not-allowed;
}

.pgp-submit-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
}

.pgp-form-message {
  margin-top: 12px;
  color: var(--pgp-muted);
  line-height: 1.45;
}

/* Checkout summary */

.pgp-checkout-summary {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--pgp-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(205, 161, 119, 0.18), transparent 36%),
    linear-gradient(180deg, #ffffff, #fbf8ff);
  box-shadow: 0 12px 30px rgba(36, 18, 64, 0.06);
}

.pgp-summary-top {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pgp-summary-top h2 {
  margin: 0;
  color: var(--pgp-dark);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.pgp-summary-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--pgp-purple);
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(78, 0, 142, 0.22);
}

.pgp-summary-amount {
  color: var(--pgp-purple);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.pgp-summary-frequency {
  margin-top: 6px;
  color: var(--pgp-muted);
  font-weight: 800;
}

.pgp-summary-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.pgp-summary-list div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--pgp-line);
}

.pgp-summary-list div:last-child {
  border-bottom: 0;
}

.pgp-summary-list span {
  color: var(--pgp-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pgp-summary-list strong {
  max-width: 58%;
  color: var(--pgp-dark);
  font-size: 14px;
  text-align: right;
  overflow-wrap: anywhere;
}

.pgp-summary-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(78, 0, 142, 0.10);
  border-radius: 16px;
  background: #f5effb;
}

.pgp-summary-note strong {
  margin-bottom: 4px;
  display: block;
  color: var(--pgp-purple);
}

.pgp-summary-note p {
  margin: 0;
  color: var(--pgp-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Tables */

.pgp-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.pgp-table th,
.pgp-table td {
  padding: 12px;
  border-bottom: 1px solid var(--pgp-line);
  text-align: left;
}

.pgp-table th {
  color: var(--pgp-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pgp-table td[colspan] {
  padding: 28px;
  color: var(--pgp-muted);
  text-align: center;
}

/* Guest gift linker */

.pgp-guest-linker {
  margin-bottom: 22px;
}

.pgp-guest-linker[hidden] {
  display: none !important;
}

.pgp-guest-linker-status {
  margin: 14px 0 0;
}

.pgp-empty-message,
.pgp-found-message,
.pgp-success-message,
.pgp-error-message {
  padding: 15px 16px;
  border-radius: 16px;
  line-height: 1.45;
}

.pgp-empty-message,
.pgp-found-message {
  border: 1px solid rgba(78, 0, 142, 0.18);
  background: #fbf8ff;
}

.pgp-success-message {
  border: 1px solid rgba(15, 123, 79, 0.22);
  background: #f0fbf6;
  color: #0d5c3c;
}

.pgp-error-message {
  border: 1px solid rgba(223, 27, 65, 0.22);
  background: #fff4f6;
  color: #96152e;
}

.pgp-empty-message strong,
.pgp-found-message strong,
.pgp-success-message strong,
.pgp-error-message strong {
  margin-bottom: 4px;
  display: block;
}

.pgp-guest-gift-list {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.pgp-guest-gift-list li {
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--pgp-line);
  border-radius: 12px;
  background: #ffffff;
}

.pgp-guest-gift-list li strong,
.pgp-guest-gift-list li span {
  display: block;
}

.pgp-guest-gift-list li span {
  color: var(--pgp-muted);
  font-size: 13px;
}

/* Receipt / thank-you page */

.pgp-receipt-page {
  max-width: 880px;
}

.pgp-receipt-card {
  padding: clamp(22px, 4vw, 38px);
}

.pgp-receipt-header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.pgp-receipt-header h1 {
  margin: 0 0 8px;
}

.pgp-receipt-status {
  margin-bottom: 8px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--pgp-line);
  border-bottom: 1px solid var(--pgp-line);
}

.pgp-receipt-status span,
.pgp-thank-you-list span {
  color: var(--pgp-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pgp-receipt-status strong {
  color: var(--pgp-purple);
  font-size: 24px;
  font-weight: 950;
}

.pgp-thank-you-list {
  margin-top: 0;
}

.pgp-thank-you-list div {
  padding: 15px 0;
}

.pgp-thank-you-list strong {
  max-width: 65%;
}

.pgp-confirmation-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pgp-receipt-note {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(78, 0, 142, 0.12);
  border-radius: 16px;
  background: #fbf8ff;
}

.pgp-receipt-note strong {
  margin-bottom: 4px;
  display: block;
  color: var(--pgp-purple);
}

.pgp-receipt-note p {
  margin: 0;
  color: var(--pgp-muted);
  line-height: 1.5;
}

.pgp-receipt-actions {
  margin-top: 22px;
}

.pgp-print-logo {
  display: none;
}

/* Responsive */

@media (max-width: 900px) {
  .pgp-project-grid,
  .pgp-checkout-panel,
  .pgp-choice-grid,
  .pgp-form-grid {
    grid-template-columns: 1fr;
  }

  .pgp-hero {
    grid-template-columns: 1fr;
  }

  .pgp-checkout-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .pgp-top-nav {
  width: calc(100% - 28px);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  /* margin-top: -1rem;
  margin-bottom: -2rem; */
}

.pgp-top-nav a {
  flex: 1 1 135px;
  max-width: 180px;
  min-width: 120px;
  text-align: center;
}
  .pgp-wrap {
    padding: 18px 14px;
  }

  .pgp-hero,
  .pgp-card,
  .pgp-project-card {
    border-radius: 18px;
  }

  .pgp-hero {
    padding: 24px;
    /* margin-top: 3rem; */
  }

  .pgp-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .pgp-filters input,
  .pgp-filters select {
    min-width: 100%;
  }

  .pgp-btn {
    width: 100%;
  }

  .pgp-project-stats {
    grid-template-columns: 1fr;
  }

  .pgp-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .pgp-guest-gift-list li {
    display: block;
  }

  .pgp-guest-gift-list li span {
    margin-top: 4px;
  }

  .pgp-receipt-header {
    display: block;
  }

  .pgp-print-receipt {
    margin-top: 16px;
  }

  .pgp-thank-you-list strong {
    max-width: 100%;
  }
}

/* Print fallback only.
   Main receipt printing is handled by pgpPrintReceipt() in assets/giving.js. */

@media print {
  .pgp-top-nav,
  .pgp-print-receipt,
  .pgp-receipt-actions {
    display: none !important;
  }

  .pgp-print-logo {
    display: flex !important;
    visibility: visible !important;
  }
}

.pgp-single-project {
  padding: 16px 16px 76px;
  background: #f8f5fb;
}

.pgp-single-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 34px;
  background: var(--pgp-purple, #4E008E);
  box-shadow: 0 22px 50px rgba(36, 18, 64, 0.16);
  isolation: isolate;
}

.pgp-single-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(248, 245, 251, 0) 0%,
    rgba(248, 245, 251, 0.18) 45%,
    rgba(248, 245, 251, 0.58) 100%
  );
  pointer-events: none;
}

.pgp-single-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.pgp-single-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 80% 24%, rgba(205, 161, 119, 0.22), transparent 34%),
    linear-gradient(
      90deg,
      rgba(32, 24, 45, 1),
      rgba(78, 0, 142, 0.58),
      rgba(32, 24, 45, 0.08)
    );
}

.pgp-single-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 105px;
}

.pgp-back-link {
  margin-bottom: 18px;
  display: inline-flex;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.pgp-back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.pgp-single-hero-content {
  max-width: 840px;
  color: #fff;
}

.pgp-single-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  /* letter-spacing: -0.065em; */
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.pgp-single-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.pgp-eyebrow {
  margin-bottom: 8px;
  color: var(--pgp-gold, #CDA177);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pgp-btn-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pgp-btn {
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.pgp-hero-give {
  background: #fff;
  color: var(--pgp-purple, #4E008E);
}

.pgp-hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pgp-primary {
  background: var(--pgp-purple, #4E008E);
  color: #fff;
}

.pgp-single-below {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 36px));
  margin: -62px auto 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.pgp-single-below.pgp-no-impact {
  grid-template-columns: 310px minmax(0, 1fr);
}

.pgp-card {
  padding: 24px;
  border: 1px solid rgba(231, 225, 238, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 44px rgba(36, 18, 64, 0.16);
  backdrop-filter: blur(10px);
}

.pgp-summary-card {
  grid-column: 1;
  background:
    radial-gradient(circle at top right, rgba(205, 161, 119, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 255, 0.94));
}

.pgp-content {
  grid-column: 2;
  color: var(--pgp-dark, #20182d);
  font-size: 17px;
  line-height: 1.7;
}

.pgp-impact {
  grid-column: 3;
}

.pgp-summary-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--pgp-purple, #4E008E);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 24px rgba(78, 0, 142, 0.22);
}

.pgp-label {
  color: var(--pgp-muted, #6b6475);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pgp-big {
  margin-top: 4px;
  color: var(--pgp-purple, #4E008E);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pgp-muted {
  color: var(--pgp-muted, #6b6475);
  line-height: 1.55;
}

.pgp-progress-wrap {
  height: 13px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8f5;
}

.pgp-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pgp-purple, #4E008E), var(--pgp-gold, #CDA177));
}

.pgp-summary-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pgp-mini-stat {
  padding: 12px;
  border: 1px solid #f0e9f7;
  border-radius: 14px;
  background: #fff;
}

.pgp-mini-stat strong {
  display: block;
  color: var(--pgp-dark, #20182d);
  font-size: 18px;
}

.pgp-mini-stat span {
  color: var(--pgp-muted, #6b6475);
  font-size: 12px;
  font-weight: 750;
}

.pgp-summary-btn {
  width: 100%;
  margin-top: 18px;
}

.pgp-content > *:first-child {
  margin-top: 0;
}

.pgp-content h2,
.pgp-content h3,
.pgp-impact h2 {
  margin: 0 0 10px;
  color: var(--pgp-dark, #20182d);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.pgp-content h2:not(:first-child),
.pgp-content h3:not(:first-child) {
  margin-top: 28px;
}

.pgp-content p,
.pgp-impact p {
  color: var(--pgp-muted, #6b6475);
}

.pgp-impact-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.pgp-impact-list li {
  padding: 13px 14px;
  border: 1px solid var(--pgp-line, #e7e1ee);
  border-radius: 14px;
  background: #fbf8ff;
  color: var(--pgp-dark, #20182d);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.42;
}

/* Single Giving Project: share box */

.pgp-share-box {
  margin-top: 32px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(78, 0, 142, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(205, 161, 119, 0.20), transparent 38%),
    linear-gradient(135deg, #fbf8ff, #ffffff);
  box-shadow: 0 14px 30px rgba(36, 18, 64, 0.08);
}

.pgp-share-copy {
  min-width: 0;
}

.pgp-share-copy strong,
.pgp-share-copy span {
  display: block;
}

.pgp-share-copy strong {
  margin: 0;
  color: var(--pgp-dark, #20182d);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.pgp-share-copy span {
  margin-top: 6px;
  color: var(--pgp-muted, #6b6475);
  font-size: 14px;
  line-height: 1.45;
}

.pgp-share-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pgp-share-box .pgp-native-share {
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--pgp-purple, #4E008E);
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(78, 0, 142, 0.22);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.pgp-share-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.pgp-share-box .pgp-native-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(78, 0, 142, 0.28);
}

/* Responsive */

@media (max-width: 1050px) {
  .pgp-single-below,
  .pgp-single-below.pgp-has-impact,
  .pgp-single-below.pgp-no-impact {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .pgp-summary-card {
    grid-column: 1;
  }

  .pgp-content {
    grid-column: 2;
  }

  .pgp-impact {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .pgp-single-project {
    padding: 12px 12px 52px;
  }

  .pgp-single-hero {
    min-height: 500px;
    border-radius: 24px;
  }

  .pgp-single-hero::after {
    height: 210px;
  }

  .pgp-single-hero-inner {
    width: calc(100% - 40px);
    padding: 38px 0 110px;
  }

  .pgp-single-below,
  .pgp-single-below.pgp-has-impact,
  .pgp-single-below.pgp-no-impact {
    width: calc(100% - 48px);
    margin-top: -82px;
    grid-template-columns: 1fr;
  }

  .pgp-summary-card {
    grid-column: 1;
    order: 1;
  }

  .pgp-content {
    grid-column: 1;
    order: 2;
  }

  .pgp-impact {
    grid-column: 1;
    order: 3;
  }

  .pgp-card {
    padding: 20px;
    border-radius: 20px;
  }

  .pgp-summary-stats {
    grid-template-columns: 1fr;
  }

  .pgp-single-hero .pgp-btn {
    width: 100%;
  }

  .pgp-share-box {
    grid-template-columns: 1fr;
  }

  .pgp-share-actions {
    justify-content: stretch;
  }

  .pgp-share-box .pgp-native-share {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .pgp-single-below,
  .pgp-single-below.pgp-has-impact,
  .pgp-single-below.pgp-no-impact {
    width: calc(100% - 20px);
  }
}
/* Recurring commitments are separate from completed gift history. */
.pgp-recurring { margin-bottom: 28px; }
.pgp-recurring-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 18px; }
.pgp-recurring-item { border: 1px solid var(--pgp-line); border-radius: 16px; padding: 22px; }
.pgp-recurring-item h3 { margin-top: 16px; font-size: 21px; }
.pgp-subscription-status { display: inline-block; border-radius: 20px; padding: 5px 11px; background: #f1e8f9; color: var(--pgp-purple); font-size: 13px; font-weight: 700; }
.pgp-subscription-ended { background: #f0eef2; color: var(--pgp-muted); }
.pgp-recurring-amount { font-size: 26px; font-weight: 750; }
.pgp-recurring-amount span:not([data-pgp-current-amount]) { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--pgp-muted); }
.pgp-sync-time { font-size: 12px; margin-bottom: 0; }
.pgp-recurring .pgp-btn-row { flex-wrap: wrap; }
[data-pgp-subscription-message]:empty { display: none; }

/* Keep payment selection, its explanation, and its action together. */
.pgp-payment-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}
.pgp-payment-profile-field {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}
.pgp-payment-profile-field label { font-weight: 600; }
.pgp-payment-profile-field select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #ded5e8;
  border-radius: 12px;
  background: #fff;
  color: #251d32;
  font: inherit;
}
.pgp-payment-profile-field small { line-height: 1.5; color: #746b80; }
.pgp-payment-profile-field select:focus-visible { outline: 2px solid #510099; outline-offset: 2px; }
@media (max-width: 600px) {
  .pgp-payment-controls { width: 100%; }
  .pgp-payment-controls .pgp-btn { width: 100%; white-space: normal; }
}

.pgp-history-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 20px 0; }
.pgp-history-filters label { display: grid; gap: 8px; font-weight: 600; flex: 1 1 160px; }
.pgp-history-filters select { width: 100%; padding: 12px; border: 1px solid #ded5e8; border-radius: 10px; background: #fff; color: #251d32; }
.pgp-history-table-scroll { overflow-x: auto; }
.pgp-history-pagination ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.pgp-history-pagination .page-numbers:not(ul) { display: inline-block; padding: 8px 12px; border-radius: 8px; }
.pgp-history-pagination .current { background: #510099; color: #fff; }
#pgp-giving-history { scroll-margin-top: 100px; }

.pgp-history-table-scroll .pgp-table td { vertical-align: top; }
.pgp-history-table-scroll .pgp-donor-dispute { margin-top: 8px; }
.pgp-history-table-scroll .pgp-donor-dispute p { font-size: 14px; line-height: 1.5; margin: 10px 0; }

.pgp-history-table-scroll .pgp-receipt-link { margin-top: 10px; }
.pgp-history-table-scroll .pgp-receipt-link .pgp-btn { font-size: 14px; padding: 8px 12px; }
.pgp-history-table-scroll .pgp-receipt-link p { font-size: 14px; line-height: 1.5; margin: 8px 0; }

.pgp-account-profile summary { font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.pgp-profile-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.pgp-profile-fields label { display: grid; gap: 8px; }
.pgp-profile-fields input { width: 100%; box-sizing: border-box; padding: 10px 12px; }

.pgp-annual-summary summary { cursor: pointer; font-size: 1.25rem; font-weight: 700; }
.pgp-annual-summary form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pgp-annual-summary select { padding: 10px 12px; }

.pgp-change-amount { margin-top: 16px; }
.pgp-change-amount summary { cursor: pointer; font-weight: 700; }
.pgp-change-amount form { display: grid; gap: 12px; margin-top: 12px; }
.pgp-change-amount input { width: 100%; box-sizing: border-box; padding: 10px; }

.pgp-change-amount [data-pgp-amount-message],
.pgp-change-amount .pgp-muted { font-size: 14px; line-height: 1.5; }

.pgp-amount-history { margin-top: 16px; }
.pgp-amount-history summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.pgp-amount-history .pgp-muted, .pgp-amount-history li { font-size: 14px; line-height: 1.5; }
.pgp-amount-history ul { padding-left: 20px; }
.pgp-amount-history li + li { margin-top: 8px; }

.pgp-payment-guidance { font-size: 14px; line-height: 1.5; margin: 8px 0; }

.pgp-fee-choice { margin: 0 0 24px; padding: 18px; border: 1px solid #e7e1ee; border-radius: 12px; }
.pgp-fee-choice label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; }
.pgp-fee-choice input[type="checkbox"] { width: auto; min-width: 18px; accent-color: #4e008e; }

/* Donor account and payment confirmation: compact, readable personal records. */
.pgp-donor-page, .pgp-receipt-page { font-size: 16px; line-height: 1.55; }
:is(.pgp-donor-page,.pgp-receipt-page) p { font-size: 15px; line-height: 1.6; margin: 12px 0; }
:is(.pgp-donor-page,.pgp-receipt-page) h1 { font-size: clamp(28px,3vw,40px); line-height: 1.15; letter-spacing: -.035em; }
:is(.pgp-donor-page,.pgp-receipt-page) h2 { font-size: 24px; line-height: 1.25; }
:is(.pgp-donor-page,.pgp-receipt-page) h3 { font-size: 19px; line-height: 1.35; }
:is(.pgp-donor-page,.pgp-receipt-page) .pgp-card { padding: 28px; border: 1px solid #e7e1ee; border-radius: 18px; box-shadow: 0 6px 24px #20182d05; margin-bottom: 22px; }
:is(.pgp-donor-page,.pgp-receipt-page) .pgp-btn { min-height: 42px; padding: 10px 16px; font-size: 14px; line-height: 1.4; border-radius: 9px; white-space: normal; text-align: center; }
:is(.pgp-donor-page,.pgp-receipt-page) .pgp-outline { border: 1px solid #dcd2e5; background: #fff; }
:is(.pgp-donor-page,.pgp-receipt-page) :is(a,button,input,select,summary):focus-visible { outline: 3px solid #8958b2; outline-offset: 3px; }
:is(.pgp-donor-page,.pgp-receipt-page) .pgp-btn-row { gap: 10px; flex-wrap: wrap; }
.pgp-donor-page .pgp-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 30px; padding: 32px; margin-bottom: 22px; border-radius: 20px; background: #faf8fc; }
.pgp-donor-page .pgp-hero::after { display: none; }
.pgp-donor-page .pgp-hero > div { min-width: 0; }
.pgp-donor-page .pgp-hero .pgp-btn-row { margin-top: 22px; align-items: flex-start; }
.pgp-donor-page .pgp-summary-card { padding: 24px; background: #fff; border: 1px solid #e7e1ee; border-top: 3px solid #cda177; border-radius: 14px; align-self: start; }
.pgp-donor-page .pgp-big { font-size: clamp(32px,4vw,46px); line-height: 1.2; margin: 10px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pgp-donor-page .pgp-summary-card p { font-size: 13px; }
.pgp-donor-page .pgp-label { font-size: 12px; letter-spacing: .08em; }
.pgp-donor-page .pgp-account-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pgp-donor-page .pgp-account-tools .pgp-card { padding: 20px 24px; }
.pgp-donor-page :is(.pgp-account-profile,.pgp-annual-summary) summary { font-size: 17px; }
.pgp-donor-page .pgp-recurring-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); align-items: start; gap: 16px; }
.pgp-donor-page .pgp-recurring-item { padding: 22px; background: #fcfbfd; border-radius: 12px; }
.pgp-donor-page p.pgp-recurring-amount { font-size: 28px; line-height: 1.25; margin: 16px 0; }
.pgp-donor-page .pgp-sync-time { font-size: 12px; border-top: 1px solid #e7e1ee; padding-top: 14px; }
.pgp-donor-page .pgp-history-filters { padding: 18px; border-radius: 12px; background: #f7f5f9; gap: 12px; }
.pgp-donor-page .pgp-history-filters label { font-size: 13px; }
.pgp-donor-page :is(input,select) { font-size: 15px; border: 1px solid #dcd2e5; border-radius: 8px; background: #fff; padding: 10px 12px; max-width: 100%; }
.pgp-donor-page .pgp-history-download { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pgp-donor-page .pgp-history-download p { flex-basis: 100%; margin: 0; font-size: 13px; }
.pgp-donor-page .pgp-table { table-layout: auto; width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.pgp-donor-page .pgp-table :is(th,td) { padding: 18px 14px; vertical-align: top; border: 0; border-bottom: 1px solid #e7e1ee; line-height: 1.55; }
.pgp-donor-page .pgp-table th { background: #f4eff8; font-size: 11px; letter-spacing: .08em; color: #63576e; }
.pgp-donor-page .pgp-table td { font-size: 14px; background: #fff; }
.pgp-donor-page .pgp-table tbody tr:nth-child(even) td { background: #fcfbfd; }
.pgp-donor-page .pgp-table td:first-child { white-space: nowrap; }
.pgp-donor-page .pgp-table td:last-child { width: 24%; font-variant-numeric: tabular-nums; }
.pgp-donor-page .pgp-table td:nth-child(4) { width: 26%; }
.pgp-donor-page .pgp-table :is(p,small,summary) { font-size: 13px; }
.pgp-donor-page .pgp-table details { margin-top: 10px; }
.pgp-donor-page summary { cursor: pointer; }
.pgp-donor-page .pgp-gift-status { display: inline-block; padding: 4px 9px; border-radius: 6px; background: #f0e9f6; color: #4e008e; font-size: 12px; font-weight: 650; }
.pgp-receipt-page { max-width: 880px; }
.pgp-receipt-page .pgp-receipt-card { padding: 40px; border-top: 4px solid #4e008e; }
.pgp-receipt-page .pgp-receipt-header { gap: 24px; align-items: start; }
.pgp-receipt-page .pgp-receipt-header p { max-width: 58ch; }
.pgp-receipt-page .pgp-receipt-status { padding: 14px 18px; margin: 24px 0; border-radius: 10px; background: #f4eff8; }
.pgp-receipt-page .pgp-receipt-status.pgp-confirmed { background: #edf7f1; color: #185b3b; }
.pgp-receipt-page .pgp-receipt-status.pgp-unconfirmed { background: #fff6e7; color: #744914; }
.pgp-receipt-page .pgp-thank-you-list > div { padding: 16px 0; display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; border-bottom: 1px solid #e7e1ee; }
.pgp-receipt-page .pgp-thank-you-list span { font-size: 14px; color: #6b6475; }
.pgp-receipt-page .pgp-thank-you-list strong { font-size: 16px; text-align: right; overflow-wrap: anywhere; }
.pgp-receipt-page .pgp-thank-you-list > div:first-child strong { font-size: 30px; color: #4e008e; font-variant-numeric: tabular-nums; }
.pgp-receipt-page .pgp-receipt-actions { margin-top: 28px; padding-top: 8px; }
@media(max-width:760px) {
 .pgp-donor-page .pgp-hero, .pgp-donor-page .pgp-account-tools { grid-template-columns: 1fr; gap: 16px; }
 :is(.pgp-donor-page,.pgp-receipt-page) .pgp-card, .pgp-donor-page .pgp-hero { padding: 22px 18px; }
 .pgp-donor-page .pgp-section-title, .pgp-receipt-page .pgp-receipt-header { flex-direction: column; align-items: stretch; gap: 16px; }
 .pgp-receipt-page .pgp-thank-you-list > div { grid-template-columns: 1fr; gap: 4px; }
 .pgp-receipt-page .pgp-thank-you-list strong { text-align: left; }
}
@media print {
 .pgp-receipt-page { max-width: none; padding: 0; }
 .pgp-receipt-page .pgp-receipt-card { border: 0; box-shadow: none; padding: 0; }
 .pgp-receipt-page .pgp-receipt-actions, .pgp-receipt-page .pgp-print-receipt { display: none; }
}
.pgp-donor-page .pgp-summary-card { grid-column: auto; }
.pgp-receipt-page .pgp-thank-you-list strong { max-width: none; }
.pgp-receipt-page .pgp-receipt-status strong { color: inherit; font-size: 18px; }

/* Keep the site's global table hover colors out of personal giving history. */
.pgp-donor-page .pgp-history-table-scroll .pgp-table tbody tr,
.pgp-donor-page .pgp-history-table-scroll .pgp-table tbody tr:hover {
  color: var(--pgp-dark);
  background: transparent;
}
.pgp-donor-page .pgp-history-table-scroll .pgp-table tbody tr:hover > td {
  background: #f7f7f7;
  color: var(--pgp-dark);
}

/* Project directory: focused introduction, labeled filters, balanced cards. */
.pgp-projects-page { font-size: 16px; line-height: 1.55; }
.pgp-projects-page p { font-size: 15px; line-height: 1.65; }
.pgp-projects-page .pgp-hero { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(250px,1fr); align-items: center; gap: 36px; padding: 36px; margin-bottom: 38px; border: 1px solid #e7e1ee; border-radius: 20px; background: #faf8fc; box-shadow: none; }
.pgp-projects-page .pgp-hero::after { display: none; }
.pgp-projects-page .pgp-hero > div { min-width: 0; }
.pgp-projects-page h1 { max-width: 20ch; font-size: clamp(30px,3.4vw,44px); line-height: 1.12; letter-spacing: -.035em; }
.pgp-projects-page .pgp-hero p { max-width: 54ch; }
.pgp-projects-page .pgp-hero .pgp-btn-row { margin-top: 24px; }
.pgp-projects-page .pgp-summary-card { grid-column: auto; padding: 24px; border: 1px solid #e7e1ee; border-top: 3px solid #cda177; border-radius: 14px; background: #fff; }
.pgp-projects-page .pgp-summary-card .pgp-big { margin: 12px 0; font-size: clamp(30px,3.5vw,42px); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pgp-projects-page .pgp-summary-card p { font-size: 13px; }
.pgp-projects-page .pgp-section-title { margin-bottom: 20px; }
.pgp-projects-page h2 { font-size: 28px; line-height: 1.25; }
.pgp-projects-page .pgp-section-title p { color: #6b6475; margin: 10px 0 0; }
.pgp-projects-page .pgp-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,250px); gap: 18px; padding: 18px; margin-bottom: 24px; border: 1px solid #e7e1ee; border-radius: 12px; background: #f8f7f9; }
.pgp-projects-page .pgp-filters label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #51475b; }
.pgp-projects-page .pgp-filters :is(input,select) { width: 100%; min-width: 0; min-height: 44px; font-size: 15px; color: #20182d; border-radius: 8px; }
.pgp-projects-page .pgp-project-grid { gap: 24px; scroll-margin-top: 100px; }
.pgp-projects-page .pgp-project-card { border-radius: 16px; box-shadow: 0 4px 18px #20182d08; min-width: 0; }
.pgp-projects-page .pgp-project-img { height: 210px; padding: 22px; }
.pgp-projects-page .pgp-project-img h3 { font-size: 24px; line-height: 1.2; color: #fff; padding-right: 0; overflow-wrap: anywhere; }
.pgp-projects-page .pgp-project-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 21px; }
.pgp-projects-page .pgp-project-body { padding: 22px; gap: 18px; }
.pgp-projects-page .pgp-project-body > p { margin: 0; font-size: 14px; }
.pgp-projects-page .pgp-progress-wrap { height: 7px; }
.pgp-projects-page .pgp-project-stats { grid-template-columns: repeat(auto-fit,minmax(75px,1fr)); gap: 8px; }
.pgp-projects-page .pgp-mini-stat { padding: 10px 8px; border: 0; border-radius: 8px; background: #f7f5f9; }
.pgp-projects-page .pgp-mini-stat strong { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pgp-projects-page .pgp-btn-row { gap: 10px; flex-wrap: wrap; }
.pgp-projects-page .pgp-btn { min-height: 44px; padding: 11px 17px; border-radius: 9px; font-size: 14px; line-height: 1.4; text-align: center; }
.pgp-projects-page .pgp-outline { background: #fff; border: 1px solid #dcd2e5; }
.pgp-projects-page .pgp-card-actions { padding-top: 8px; }
.pgp-projects-page :is(a,input,select):focus-visible { outline: 3px solid #8958b2; outline-offset: 3px; }
@media(max-width:1000px) { .pgp-projects-page .pgp-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:680px) {
 .pgp-projects-page .pgp-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; }
 .pgp-projects-page .pgp-filters, .pgp-projects-page .pgp-project-grid { grid-template-columns: 1fr; }
 .pgp-projects-page .pgp-project-img { height: 220px; }
}

/* Share section heights across every project card in the same visual row. */
@supports (grid-template-rows: subgrid) {
  .pgp-projects-page .pgp-project-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .pgp-projects-page .pgp-project-img { grid-row: 1; }
  .pgp-projects-page .pgp-project-body {
    display: grid;
    grid-row: 2 / span 5;
    grid-template-rows: subgrid;
    row-gap: 18px;
    min-width: 0;
  }
  .pgp-projects-page .pgp-project-body > p { grid-row: 1; }
  .pgp-projects-page .pgp-project-line { grid-row: 2; align-self: start; }
  .pgp-projects-page .pgp-progress-wrap { grid-row: 3; align-self: center; }
  .pgp-projects-page .pgp-project-stats { grid-row: 4; }
  .pgp-projects-page .pgp-card-actions { grid-row: 5; margin-top: 0; align-self: end; }
}
.pgp-projects-page .pgp-project-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pgp-projects-page .pgp-mini-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.pgp-projects-page .pgp-stat-donors { grid-column: 1; }
.pgp-projects-page .pgp-stat-goal { grid-column: 2; }
.pgp-projects-page .pgp-stat-funded { grid-column: 3; }
.pgp-projects-page .pgp-card-actions { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.pgp-projects-page .pgp-card-actions .pgp-btn { display: flex; align-items: center; justify-content: center; }

/* Lift the directory hero above the bottom edge of the Giving header. */
.jobs-archive-content.pgp-projects-content {
  position: relative;
  z-index: 2;
  margin: -72px auto 0 !important;
}
.pgp-projects-content .pgp-projects-page { padding-top: 0; }
.pgp-projects-content .pgp-projects-page .pgp-hero {
  position: relative;
  background: #faf8fc;
  box-shadow: 0 12px 32px #20182d12;
}
.pgp-projects-page .pgp-project-test-notice {
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff3df;
  color: #714915;
  font-size: 12px;
}
@media(max-width:680px) {
  .jobs-archive-content.pgp-projects-content { margin-top: -36px !important; }
}

/* Match the project directory overlap on account and receipt templates. */
@media screen {
  .pgp-account-overlap { position: relative; z-index: 2; margin-top: -72px; }
  .pgp-account-overlap > .event-container { padding-top: 0 !important; background-color: transparent !important; }
  .pgp-account-overlap :is(.pgp-donor-page,.pgp-receipt-page) { padding-top: 0; }
}
:is(.pgp-donor-page,.pgp-receipt-page) .pgp-top-nav { width: 100%; margin: 0 0 20px; justify-content: flex-start; flex-wrap: wrap; }
:is(.pgp-donor-page,.pgp-receipt-page) .pgp-top-nav a { min-height: 40px; padding: 8px 14px; font-size: 13px; box-shadow: none; }
@media screen and (max-width:680px) {
  .pgp-account-overlap { margin-top: -36px; }
}
@media print { .pgp-receipt-page .pgp-top-nav { display: none; } }

/* Shared donor-facing typography and simplified headings. */
.pgp-eyebrow { display: none !important; }
.pgp-demo-shell [hidden] { display: none !important; }
.pgp-demo-shell p,
.pgp-projects-page .pgp-project-body > p,
.pgp-projects-page .pgp-section-title p { font-size: 17px; line-height: 1.65; }
.pgp-projects-page .pgp-project-img { text-decoration: none; color: #fff; }
.pgp-projects-page .pgp-project-img:hover { color: #fff; text-decoration: none; }
.pgp-projects-page .pgp-project-img:focus-visible { outline-offset: -4px; }
body.single-giving_project, body:has(.pgp-projects-page) { background-color: #f1f1f1; }
.pgp-single-page, .pgp-projects-content { background-color: #f1f1f1; }
.pgp-single-project { background-color: #f1f1f1; }
.pgp-single-project p { font-size: 17px; line-height: 1.65; }

/* Giving directory hero with a quick start form. */
.givecontainer.pgp-quick-hero { height: auto; }
.pgp-quick-hero .giveimg { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px, .8fr); align-items: center; gap: clamp(24px,4vw,64px); padding: 56px clamp(24px,4vw,64px) 120px; min-height: 640px; box-sizing: border-box; background-position: center; }
.pgp-quick-hero .givecontent { width: 100%; min-height: 0; height: auto; padding: 0; }
.pgp-quick-hero .givecontent h1 { max-width: 16ch; font-size: clamp(34px,4vw,56px); line-height: 1.08; }
.pgp-quick-hero .givecontent p { margin: 24px 0 0; max-width: 52ch; font-size: 18px; line-height: 1.65; }
.pgp-quick-gift { box-sizing: border-box; width: 100%; max-width: 460px; justify-self: end; padding: 30px; border-radius: 18px; background: #fff; color: #20182d; box-shadow: 0 16px 45px #0003; font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.pgp-quick-gift h2 { margin: 0; color: #4e008e; font-size: 27px; line-height: 1.2; }
.pgp-quick-gift p { margin: 12px 0 22px; font-size: 17px; line-height: 1.5; color: #6b6475; }
.pgp-quick-gift label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 650; }
.pgp-quick-gift :is(input,select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #dcd2e5; border-radius: 8px; background: #fff; color: #20182d; font: inherit; }
.pgp-quick-gift button { width: 100%; margin-top: 22px; min-height: 52px; padding: 12px; border: 0; border-radius: 9px; background: #4e008e; color: #fff; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.pgp-quick-gift button:hover { background: #380065; }
.pgp-quick-gift p.pgp-quick-help { margin: 14px 0; font-size: 14px; }
.pgp-quick-gift a { color: #4e008e; font-size: 15px; text-decoration: underline; }
.pgp-quick-gift :is(a,button,input,select):focus-visible { outline: 3px solid #cda177; outline-offset: 3px; }
@media(max-width:760px) {
 .pgp-quick-hero .giveimg { grid-template-columns: 1fr; padding: 32px 20px 76px; min-height: 0; gap: 28px; }
 .pgp-quick-hero .givecontent h1 { max-width: 20ch; }
 .pgp-quick-hero .givecontent p { font-size: 17px; }
 .pgp-quick-gift { max-width: none; padding: 24px; }
}

/* Native, keyboard-accessible selector styled as a centered project heading. */
.pgp-quick-gift .pgp-quick-project-picker { display: flex; justify-content: center; margin: -6px 0 26px; }
.pgp-quick-gift .pgp-quick-project-select { position: relative; min-width: 0; max-width: 100%; }
.pgp-quick-gift .pgp-quick-project-select::after { content: ''; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); color: #4e008e; pointer-events: none; }
.pgp-quick-gift #pgp-quick-project { appearance: none; -webkit-appearance: none; field-sizing: content; width: auto; max-width: 100%; min-height: 44px; padding: 8px 30px 8px 8px; border: 0; border-radius: 0; background: transparent; background-image: none; box-shadow: none; color: #4e008e; font-size: 18px; font-weight: 700; text-align: center; text-overflow: ellipsis; cursor: pointer; }
.pgp-quick-gift #pgp-quick-project option { color: #20182d; background: #fff; }
.pgp-quick-gift #pgp-quick-project:focus-visible { outline: 3px solid #cda177; outline-offset: 3px; border-radius: 4px; }
/* Align the expanded native menu independently of its centered selected value. */
.pgp-quick-gift #pgp-quick-project { text-align-last: center; }
.pgp-quick-gift #pgp-quick-project option { text-align: left; text-align-last: left; }
.pgp-quick-gift .pgp-picker-enhanced::after { display: none; }
.pgp-quick-gift .pgp-picker-enhanced [hidden] { display: none !important; }
.pgp-quick-gift button.pgp-project-trigger { display: inline-grid; grid-template-columns: 28px minmax(0,1fr) 12px; gap: 10px; align-items: center; width: auto; max-width: 100%; margin: 0; padding: 8px; min-height: 44px; background: transparent; color: #4e008e; font-size: 18px; text-align: left; }
.pgp-quick-gift .pgp-project-trigger::after { content: ''; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.pgp-quick-gift .pgp-project-choices { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20; width: max-content; min-width: 100%; max-width: min(360px,75vw); max-height: 280px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid #e7e1ee; border-radius: 12px; box-shadow: 0 12px 30px #20182d26; }
.pgp-quick-gift .pgp-project-choices button { display: grid; grid-template-columns: 28px minmax(0,1fr) 18px; gap: 10px; align-items: center; margin: 0; padding: 12px; min-height: 46px; background: transparent; color: #20182d; font-size: 16px; text-align: left; font-weight: 500; }
.pgp-quick-gift .pgp-choice-icon { width: 28px; text-align: center; }
.pgp-quick-gift .pgp-project-choices button::after { content: ''; }
.pgp-quick-gift .pgp-project-choices button[aria-pressed="true"]::after { content: '✓'; color: #4e008e; }
.pgp-quick-gift .pgp-project-choices button:hover,
.pgp-quick-gift .pgp-project-choices button:focus-visible { background: #f5f3f7; }

/* Keep project artwork contained, including the compact project picker. */
.pgp-icon-image { display:block; width:100%; height:100%; object-fit:contain; }
.pgp-summary-icon > .pgp-icon-image { max-width:48px; max-height:48px; }
.pgp-choice-icon > .pgp-icon-image { width:24px; height:24px; }
/* Hidden eyebrows must not leave the overview heading lower than the impact heading. */
.pgp-single-below > .pgp-content > .pgp-eyebrow + *,
.pgp-single-below > .pgp-impact > h2 { margin-top:0 !important; }

/* Compact full-width project header, matching the detail goal icon tile. */
.pgp-quick-gift { --pgp-quick-padding:30px; padding:var(--pgp-quick-padding); }
.pgp-quick-gift .pgp-quick-project-picker {
  position:relative;
  box-sizing:border-box;
  width:calc(100% + var(--pgp-quick-padding) * 2);
  margin:calc(-1 * var(--pgp-quick-padding)) calc(-1 * var(--pgp-quick-padding)) 22px;
  padding:8px 16px;
  border-radius:18px 18px 0 0;
  background:var(--pgp-purple, #4E008E);
  color:#fff;
}
.pgp-quick-gift .pgp-picker-enhanced { position:static; }
.pgp-quick-gift button.pgp-project-trigger,
.pgp-quick-gift #pgp-quick-project { color:#fff; min-height:40px; padding-top:6px; padding-bottom:6px; line-height:1.35; }
.pgp-quick-gift button.pgp-project-trigger:hover { background:rgba(255,255,255,.1); }
.pgp-quick-gift .pgp-quick-project-select::after { color:#fff; }
.pgp-quick-gift .pgp-project-trigger::after { color:#fff; }
.pgp-quick-gift .pgp-project-choices {
  box-sizing:border-box;
  top:100%; left:0; transform:none;
  width:100%; min-width:0; max-width:100%;
  padding:6px 10px 10px;
  background:var(--pgp-purple, #4E008E);
  color:#fff;
  border:0; border-top:1px solid rgba(255,255,255,.18);
  border-radius:0 0 12px 12px;
}
.pgp-quick-gift .pgp-project-choices button { color:#fff; min-height:42px; padding:9px 12px; line-height:1.35; }
.pgp-quick-gift .pgp-project-choices button[aria-pressed="true"]::after { color:#fff; }
.pgp-quick-gift .pgp-project-choices button:hover,
.pgp-quick-gift .pgp-project-choices button:focus-visible,
.pgp-quick-gift .pgp-project-choices button[aria-pressed="true"] { background:rgba(255,255,255,.14); }
.pgp-quick-gift .pgp-project-choices button:focus-visible { outline-offset:-3px; }
.pgp-quick-gift #pgp-quick-project option { background:#4e008e; color:#fff; }
@media(max-width:760px) { .pgp-quick-gift { --pgp-quick-padding:24px; } }

/* A slimmer hero form with a Paine gold boundary below its header. */
.pgp-quick-gift { max-width:390px; }
.pgp-quick-gift .pgp-quick-project-picker {
  border-bottom:3px solid #cda177;
}
@media(max-width:760px) {
  .pgp-quick-gift { max-width:390px; justify-self:center; }
}

/* Keep the upper portion of the quick giving form compact. */
.pgp-quick-gift .pgp-quick-project-picker { margin-bottom:14px; }
.pgp-quick-gift > h2 { margin:0; }
.pgp-quick-gift > h2 + p { margin:8px 0 12px; line-height:1.4; }
.pgp-quick-gift > label { margin:12px 0 6px; }

/* Bring the hero copy and giving form into a tighter centered composition. */
.pgp-quick-hero .giveimg {
  grid-template-columns:minmax(0,560px) minmax(0,370px);
  justify-content:center;
  gap:28px;
}
.pgp-quick-hero .givecontent { max-width:560px; }
.pgp-quick-gift { max-width:370px; }
.pgp-quick-gift .pgp-quick-project-picker { margin-bottom:20px; }
.pgp-quick-gift > h2 + p { margin-top:2px; margin-bottom:10px; }
@media(max-width:760px) {
  .pgp-quick-hero .giveimg { grid-template-columns:minmax(0,560px); gap:24px; }
  .pgp-quick-gift { max-width:370px; justify-self:center; }
}

/* Spread the hero columns across a centered 1,200px content area. */
.pgp-quick-hero .giveimg {
  grid-template-columns:minmax(0,650px) minmax(0,370px);
  column-gap:clamp(40px,12vw,180px);
  justify-content:center;
}
@media(max-width:760px) {
  .pgp-quick-hero .giveimg { grid-template-columns:minmax(0,560px); gap:24px; }
}

/* Keep the checkout heading clear of sticky navigation on anchored arrival. */
#complete-your-gift { scroll-margin-top:120px; }

/* Per-project image sets: independent dissolve tiles, stacked on phones. */
.pgp-project-gallery { max-width:1200px; margin:40px auto; padding:0 24px; }
.pgp-project-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.pgp-photo-tile { position:relative; aspect-ratio: 1.12; overflow:hidden; background:#e7e1ee; }
.pgp-photo-tile img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; margin:0; }
.pgp-photo-tile .pgp-photo-incoming { opacity:0; transition:opacity 1s ease-in-out; }
.pgp-photo-tile .pgp-photo-visible { opacity:1; }
.pgp-gallery-pause { margin-top:12px; padding:8px 14px; border:1px solid #dcd2e5; border-radius:6px; background:#fff; color:#4e008e; cursor:pointer; }
.pgp-gallery-pause[hidden] { display:none; }
@media(max-width:680px) { .pgp-project-gallery-grid { grid-template-columns:1fr; gap:18px; } }
@media(prefers-reduced-motion:reduce) { .pgp-photo-tile .pgp-photo-incoming { transition:none; } }

.pgp-photo-tile { border-radius:16px; }
.pgp-gallery-intro { max-width:800px; margin:0 0 24px; }
.pgp-gallery-intro h2 { margin:0 0 12px; color:#20182d; }
.pgp-gallery-intro p { margin:0 0 12px; }

/* End individual project content flush with the footer. */
body.single-giving_project .pgp-single-project { padding-bottom:0; }
body.single-giving_project .pgp-single-project > :last-child { margin-bottom:0; }

/* Bring the image section introduction closer to the project content. */
.pgp-single-project .pgp-project-gallery { margin-top:20px; }
.pgp-single-project .pgp-gallery-intro > :first-child { margin-top:0; }

/* Override theme heading padding so gallery text sits directly below its title. */
.pgp-single-project .pgp-gallery-intro > h2 { padding-bottom:0; margin-bottom:8px; }
.pgp-single-project .pgp-gallery-intro > h2 + p { margin-top:0; padding-top:0; }

/* Project side cards scroll normally instead of inheriting the theme's sticky aside rule. */
body.single-giving_project .pgp-single-below > aside.pgp-card {
  position:static;
  top:auto;
}

.pgp-secure-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}
.pgp-summary-note .pgp-secure-heading strong{margin:0}
.pgp-summary-note .pgp-stripe-logo{display:block;flex:0 0 48px;width:48px;height:20px;background-color:var(--pgp-muted);opacity:.65;-webkit-mask:url("stripe-logo.svg") center/contain no-repeat;mask:url("stripe-logo.svg") center/contain no-repeat}

.pgp-summary-note > p:last-child{margin-bottom:0;padding-bottom:0}

@media (max-width:760px) {
  .pgp-summary-note .pgp-secure-heading{flex-direction:column;align-items:flex-start;gap:8px}
  .pgp-summary-note .pgp-stripe-logo{order:-1;flex:0 0 20px}
}

/* User-entered project content must not widen a grid column. */
.pgp-single-below > * { min-width:0; overflow-wrap:anywhere; }

/* Keep the theme's stacked mobile history within the donor card. */
@media screen and (max-width:768px) {
  .pgp-donor-page .pgp-history-table-scroll .pgp-table { min-width:0; width:100%; }
  .pgp-donor-page .pgp-history-table-scroll .pgp-table :is(tbody,tr,td) { box-sizing:border-box; width:100%; }
  .pgp-donor-page .pgp-history-table-scroll .pgp-table td { white-space:normal; overflow-wrap:anywhere; }
}

/* Align the visible wordmark, compensating for whitespace in its SVG. */
@media (min-width:761px) {
  .pgp-summary-note .pgp-stripe-logo{transform:translateY(5.5px)}
}
