/* SCCoC Gala Progress: fundraising bar ([sccoc_gala_progress]). */
.sgp {
  --sgp-green: #588557;
  --sgp-green-dark: #4A7249;
  --sgp-olive: #B7B43C;
  --sgp-track: #E7EDE7;
  --sgp-text: #333333;
  --sgp-muted: #5B665B;
  background: #FFFFFF;
  border: 1px solid #E1E8E1;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(51, 51, 51, 0.1);
  box-sizing: border-box;
  color: var(--sgp-text);
  font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.25rem, 3.5vw, 2.75rem) clamp(1rem, 2vw, 1.4rem);
  text-align: left;
}
.sgp *, .sgp *::before, .sgp *::after { box-sizing: border-box; }
.sgp p { margin: 0; padding: 0; }

.sgp__top {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.sgp .sgp__eyebrow {
  color: var(--sgp-green-dark);
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.sgp .sgp__updated { color: var(--sgp-muted); font-size: 0.85rem; }

.sgp .sgp__status {
  align-items: center;
  background: #F1F4E2;
  border-radius: 999px;
  color: #4F5A1E;
  display: inline-flex;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.45rem;
  margin: 0.2rem 0 0.9rem;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
}
.sgp .sgp__status::before {
  background: var(--sgp-olive);
  border-radius: 50%;
  color: #FFFFFF;
  content: "\2713";
  display: inline-grid;
  flex: none;
  font-size: 0.75rem;
  height: 1.3rem;
  place-items: center;
  width: 1.3rem;
}

.sgp__head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.sgp .sgp__raised { line-height: 1; }
.sgp__amount {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sgp__raised-label {
  color: var(--sgp-green-dark);
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  margin-left: 0.35rem;
}
.sgp .sgp__goal { line-height: 1.15; text-align: right; }
.sgp__goal-label {
  color: var(--sgp-muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sgp__goal-amount {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.sgp__track {
  background: var(--sgp-track);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(51, 51, 51, 0.12);
  height: 30px;
  position: relative;
}
.sgp__fill {
  background: linear-gradient(90deg, var(--sgp-olive) 0%, var(--sgp-green) 60%, var(--sgp-green-dark) 100%);
  border-radius: 999px;
  height: 100%;
  min-width: 14px;
  position: relative;
}
.sgp__fill.is-empty { min-width: 0; }
.sgp__pct {
  color: #FFFFFF;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 30px;
  position: absolute;
  right: 0.85rem;
  top: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
/* Too little fill to hold the label: show it just past the end of the fill. */
.sgp__fill.is-low .sgp__pct,
.sgp__fill.is-empty .sgp__pct {
  color: var(--sgp-green-dark);
  left: calc(100% + 0.6rem);
  right: auto;
}
.sgp__fill.is-empty .sgp__pct { left: 0.85rem; }
.sgp__marker {
  background: rgba(255, 255, 255, 0.9);
  bottom: 0;
  position: absolute;
  top: 0;
  width: 2px;
}

.sgp__scale {
  color: var(--sgp-muted);
  font-size: 0.85rem;
  height: 2.6rem;
  margin-top: 0.55rem;
  position: relative;
}
.sgp__tick {
  line-height: 1.25;
  position: absolute;
  text-align: center;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.sgp__tick--start { left: 0; text-align: left; transform: none; }
.sgp__tick--end { left: auto; right: 0; text-align: right; transform: none; }
.sgp__tick strong { color: var(--sgp-text); display: block; font-weight: 700; }
.sgp__tick--done strong { color: var(--sgp-green-dark); }

/* Fill animation, set up by gala-progress.js only when motion is allowed. */
.sgp--anim .sgp__fill { transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.sgp__fill.is-animating .sgp__pct { opacity: 0; }

/* Homepage gala section (page 107): the Divi code module that holds the shortcode. */
.et_pb_module.sccoc-gala-progress-module { margin-bottom: 0 !important; }
.sccoc-gala-progress-module .sgp { margin-top: 1.75rem; }

@media (max-width: 600px) {
  .sgp__head { align-items: flex-start; flex-direction: column; }
  .sgp .sgp__goal { text-align: left; }
  .sgp__goal-label, .sgp__goal-amount { display: inline; }
  .sgp__goal-amount { font-size: 1.25rem; margin-left: 0.3rem; }
  .sgp__tick--mid { display: none; }
  .sccoc-gala-progress-module .sgp { margin-top: 1.25rem; }
}
