/* Community Partners — ESA / Love INC */
:root {
  --cp-navy: #122559;
  --cp-gold: #edae26;
  --cp-gold-bright: #f5c040;
  --cp-white: #ffffff;
  --cp-paper: #f7f6f2;
  --cp-ink: #1a1f36;
  --cp-muted: #5c6578;
  --cp-line: rgba(18, 37, 89, 0.12);
  --cp-on: #122559;
  --cp-radius: 18px;
  --cp-font: "Inter", "Open Sans", system-ui, sans-serif;
}

body.cp-active #content-wrap.container,
body.cp-active #content-wrap {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.cp-active #primary,
body.cp-active #content,
body.cp-active .single-page-article,
body.cp-active .entry,
body.cp-active .content-area {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.cp {
  font-family: var(--cp-font);
  color: var(--cp-ink);
  font-size: 1.125rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 70% 45% at 100% -8%, rgba(237, 174, 38, 0.26), transparent 52%),
    radial-gradient(ellipse 45% 35% at 0% 8%, rgba(18, 37, 89, 0.07), transparent 48%),
    var(--cp-white);
  padding-bottom: 3.25rem;
  overflow-x: hidden;
}

.cp *,
.cp *::before,
.cp *::after {
  box-sizing: border-box;
}

.cp a {
  color: var(--cp-navy);
}

.cp-wrap {
  width: min(100% - 1.5rem, 1120px);
  margin-inline: auto;
}

.cp-hero {
  padding: 2.5rem 0 1.5rem;
}

.cp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8860b;
}

.cp-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.35rem, 7.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--cp-navy);
  max-width: 14ch;
}

.cp-hero h1 span {
  color: #c49212;
  background: linear-gradient(transparent 62%, rgba(237, 174, 38, 0.45) 62%);
}

.cp-hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--cp-muted);
  max-width: 48ch;
}

.cp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  min-height: 50px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cp-btn:hover {
  transform: translateY(-2px);
}

.cp-btn-gold {
  background: var(--cp-gold);
  color: var(--cp-on) !important;
  box-shadow: 0 8px 0 #c49212, 0 14px 28px rgba(196, 146, 18, 0.28);
}

.cp-btn-gold:hover {
  background: var(--cp-gold-bright);
  color: var(--cp-on) !important;
}

.cp-btn-ghost {
  background: var(--cp-white);
  color: var(--cp-navy) !important;
  border-color: var(--cp-line);
}

.cp-path {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.6rem;
}

@media (min-width: 800px) {
  .cp-path {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

.cp-step {
  background: var(--cp-white);
  border: 1px solid var(--cp-line);
  border-top: 6px solid var(--cp-gold);
  border-radius: var(--cp-radius);
  padding: 1.2rem 1.15rem 1.2rem;
  box-shadow: 0 10px 28px rgba(18, 37, 89, 0.07);
}

.cp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--cp-gold);
  color: var(--cp-on);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.cp-step h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--cp-navy);
}

.cp-step p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 1.28rem;
  line-height: 1.5;
}

.cp-invite {
  display: grid;
  gap: 1rem;
  background: var(--cp-navy);
  color: var(--cp-white);
  border-radius: 24px;
  padding: 1.5rem 1.3rem;
  margin: 0 0 2.4rem;
  box-shadow: 0 18px 40px rgba(18, 37, 89, 0.2);
}

.cp-invite .cp-kicker {
  color: var(--cp-gold);
  margin-bottom: 0.4rem;
}

.cp-invite h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cp-white);
}

.cp-invite p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  max-width: 48ch;
}

@media (min-width: 760px) {
  .cp-invite {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.7rem 1.8rem;
    gap: 1.5rem;
  }
}

.cp-section {
  padding: 0.2rem 0 0.5rem;
}

.cp-section h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 4.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cp-navy);
}

.cp-section-lead {
  margin: 0 0 1.25rem;
  color: var(--cp-muted);
  max-width: 54ch;
  font-size: 1.08rem;
}

.cp-count {
  color: #b8860b;
  font-weight: 800;
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.75rem;
}

.cp-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--cp-white);
  border: 1px solid var(--cp-line);
  border-radius: 14px;
  padding: 0.95rem 0.7rem 0.8rem;
  min-height: 138px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 6px 18px rgba(18, 37, 89, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.cp-logo:hover {
  color: inherit;
  border-color: var(--cp-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(18, 37, 89, 0.1);
}

.cp-logo img {
  display: block;
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cp-logo span {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--cp-navy);
  line-height: 1.25;
}

.cp-bottom {
  margin-top: 2.25rem;
}

@media (max-width: 767px) {
  .cp {
    padding-bottom: 1.6rem;
  }

  .cp-hero {
    padding: 1.15rem 0 0.85rem;
  }

  .cp-hero h1 {
    font-size: 2rem;
    max-width: none;
    margin-bottom: 0.55rem;
  }

  .cp-hero-lead {
    font-size: 1.02rem;
    margin-bottom: 1rem;
  }

  .cp-btn {
    width: 100%;
  }

  .cp-path {
    margin-bottom: 1.1rem;
  }

  .cp-step {
    padding: 0.95rem 1rem;
  }

  .cp-invite {
    margin-bottom: 1.6rem;
    padding: 1.15rem 1.05rem;
    border-radius: 18px;
  }

  .cp-invite h2 {
    font-size: 1.28rem;
  }

  .cp-invite p {
    font-size: 0.98rem;
  }

  .cp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .cp-logo {
    min-height: 118px;
    padding: 0.75rem 0.5rem 0.65rem;
  }

  .cp-logo img {
    max-height: 44px;
  }

  .cp-logo span {
    font-size: 0.7rem;
  }

  .cp-bottom {
    margin-top: 1.4rem;
  }
}
