/* One JEWAN hero, with an optional campaign card kept inside its right side. */
.jw-campaign-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f4f6ef;
  padding: 0;
}
.jw-campaign-hero .jw-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 540px;
  padding-block: 28px;
}
.jw-campaign-hero.jw-height-compact .jw-hero-grid {
  min-height: 500px;
  padding-block: 24px;
}
.jw-campaign-hero.jw-height-tall .jw-hero-grid {
  min-height: 640px;
}
.jw-campaign-hero .jw-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  border-radius: 0;
  pointer-events: none;
}
.jw-campaign-hero .jw-hero-backdrop picture img,
.jw-campaign-hero .jw-hero-backdrop video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jw-campaign-hero[data-overlay]:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #fafbf6 0%,
    #fafbf6f5 38%,
    #fafbf6b8 70%,
    #fafbf66b 100%
  );
  opacity: 1;
}
.jw-campaign-hero.jw-hero-plain .jw-hero-backdrop {
  display: none;
}
.jw-campaign-hero.jw-hero-plain:after {
  background:
    radial-gradient(ellipse at 90% 10%, #dce9db80, transparent 65%),
    linear-gradient(120deg, #fafbf6, #edf3e9);
}
.jw-campaign-hero .jw-hero-copy {
  grid-column: auto;
  max-width: 650px;
  color: #073a39;
  padding: 0;
}
.jw-campaign-hero .jw-hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 4.1rem);
  max-width: 16ch;
  line-height: 1.08;
  margin: 18px 0;
}
.jw-campaign-hero .jw-hero-copy .ui-hero-lead {
  font-size: clamp(0.94rem, 1.4vw, 1.08rem);
  line-height: 1.8;
  margin-bottom: 26px;
  max-width: 46ch;
  color: #385b53;
}
.jw-campaign-hero .jw-video-control {
  position: relative;
  inset: auto;
  margin: 0 0 16px;
}
.jw-hero-campaign-card {
  width: 100%;
  min-width: 0;
  align-self: center;
  background: #fff;
  border: 1px solid #d9e3d6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px #073a3912;
  color: #073a39;
  font-size: 13px;
  line-height: 1.45;
}
.jw-hero-card-media {
  height: 64px;
  position: relative;
  display: grid;
  place-items: center;
  background: #eaf1e7;
}
.jw-hero-card-media .jw-card-placeholder {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.jw-hero-card-media .jw-hero-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jw-hero-card-body {
  display: grid;
  gap: 7px;
  padding: 16px 20px;
}
.jw-hero-campaign-card .jw-card-eyebrow {
  font-size: 9px;
  letter-spacing: 0.15em;
  margin: 0;
  color: #48685c;
}
.jw-hero-campaign-card h2 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0;
  color: #073a39;
  overflow-wrap: anywhere;
}
.jw-hero-card-summary {
  font-size: 12px;
  line-height: 1.5;
  color: #48645d;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.jw-hero-card-total {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.jw-hero-campaign-card progress {
  display: block;
  width: 100%;
  height: 7px;
  accent-color: #cba800;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eee6;
}
.jw-hero-campaign-card progress::-webkit-progress-bar {
  background: #e8eee6;
}
.jw-hero-campaign-card progress::-webkit-progress-value {
  background: #cba800;
  border-radius: 10px;
}
.jw-hero-campaign-card .jw-giving-compact {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 2px 0 0;
  max-width: none;
  gap: 8px;
  box-shadow: none;
}
.jw-giving-frequency {
  display: flex;
  gap: 4px;
  background: #f0f4ed;
  border-radius: 8px;
  padding: 3px;
}
.jw-giving-frequency button {
  flex: 1;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #385b53;
  font: inherit;
  font-weight: 600;
  padding: 6px 8px;
}
.jw-giving-frequency button[hidden] {
  display: none;
}
.jw-giving-frequency button[aria-pressed="true"] {
  background: white;
  color: #073a39;
  box-shadow: 0 1px 4px #073a3912;
}
.jw-inline-giving .jw-quick-amounts button[aria-pressed="true"] {
  border-color: #cba800;
  background: #f3d54c;
  color: #073a39;
  font-weight: 700;
}
.jw-giving-compact .jw-quick-amounts {
  gap: 6px;
}
.jw-giving-compact .jw-quick-amounts button {
  font-size: 13px;
  padding: 6px 3px;
}
.jw-giving-compact label {
  font-size: 11px;
  font-weight: 600;
  margin: 0;
}
.jw-giving-compact input {
  box-sizing: border-box;
  border: 1px solid #bdcfc4;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  color: #073a39;
  background: #fff;
}
.jw-giving-compact p[role="status"] {
  margin: 0;
  color: #48645d;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.jw-giving-compact button[type="submit"] {
  width: 100%;
  font-size: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.jw-giving-compact button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.jw-hero-card-link {
  justify-self: center;
  color: #073a39;
  text-underline-offset: 3px;
  font-weight: 600;
  padding: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.jw-hero-campaign-card :focus-visible {
  outline: 3px solid #926e16;
  outline-offset: 2px;
}
@media (min-width: 801px) {
  .jw-hero-campaign-card h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}
@media (max-width: 800px) {
  .jw-campaign-hero .jw-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 32px;
    min-height: 0 !important;
  }
  .jw-campaign-hero .jw-hero-copy h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    max-width: 18ch;
  }
  .jw-campaign-hero .jw-hero-copy {
    max-width: 100%;
  }
  .jw-hero-campaign-card {
    max-width: 460px;
    justify-self: center;
  }
  .jw-campaign-hero[data-overlay]:after {
    background: #fafbf6eb;
  }
  .jw-campaign-hero .pub-actions {
    flex-wrap: wrap;
  }
  .jw-hero-card-body {
    padding: 16px;
  }
  .jw-hero-card-media {
    height: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jw-hero-campaign-card * {
    transition: none !important;
  }
}

.jw-giving-amount {
  display: grid;
  gap: 6px;
}
.jw-giving-compact .jw-giving-amount {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
}
@media (min-width: 801px) {
  .jw-giving-compact .jw-giving-frequency button {
    min-height: 32px;
  }
  .jw-giving-compact .jw-quick-amounts button {
    min-height: 36px;
  }
  .jw-hero-campaign-card .jw-giving-compact {
    gap: 7px;
  }
}
