.storefront-head {
  display: grid;
  gap: 16px;
}

.storefront-pledge {
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--teal-dark);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  text-decoration: none;
}

.storefront-pledge:hover,
.storefront-pledge:focus-visible {
  border-color: var(--teal);
}

@media (min-width: 1181px) {
  .storefront-head {
    min-height: 252px;
    grid-template-rows: 1fr auto;
  }

  .storefront-head .ph-text { max-width: min(640px, calc(100% - 400px)); }
  .storefront-pledge { margin-right: 20px; }
}

.pledge-tally {
  display: inline-block;
  width: fit-content;
  border-radius: var(--r-sm);
  padding: 4px 8px;
  color: var(--teal-dark);
  background: var(--teal-tint);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pledge-challenge { max-width: 760px; }

.pledge-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: clamp(18px, 4vw, 32px);
  background: linear-gradient(120deg, #063f40, #0a5a5c);
  border-radius: var(--r-lg);
  color: var(--white);
}

.pledge-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.pledge-header p {
  margin-top: 8px;
  font-size: 1rem;
}

.pledge-panel h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.pledge-panel form { max-width: 460px; }
.pledge-panel .rl-field > span { font-size: 0.875rem; }
.pledge-panel .rl-input { font-size: 1rem; }
.pledge-panel .rl-btn { margin-top: 4px; }
#pledge-signin p { margin-bottom: 12px; }
#pledge-parts { padding-left: 24px; overflow-wrap: anywhere; }
.pledge-error { margin-bottom: 12px; color: #a22d25; }
