/* WBT / City of Hope Christmas Campaign section.
   Every class starts with cohc- so it cannot collide with site styles. */

.cohc {
  --cohc-coral: #f26b5b;
  --cohc-coral-text: #dd4f3f;
  --cohc-navy: #1a3049;
  --cohc-muted: #4d6074;
  --cohc-track: #e8e3da;
  --cohc-rule: #e0dbd2;

  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 48px 36px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(10, 25, 41, .18);
  color: var(--cohc-navy);
  font-family: 'Source Sans 3', 'Lato', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.55;
  text-align: center;
}
.cohc *, .cohc *::before, .cohc *::after { box-sizing: border-box; }

/* ---- Logos ---- */
.cohc-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 26px;
}
.cohc-logos img { display: block; width: auto; max-width: 100%; }
.cohc-logo-coh { height: 52px; }
.cohc-logo-wbt { height: 66px; }
.cohc-logos-rule { width: 1px; height: 48px; background: var(--cohc-rule); }

/* ---- Words ---- */
.cohc-title {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.18;
  color: var(--cohc-navy);
}
.cohc-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--cohc-muted);
}
.cohc-desc strong { color: var(--cohc-navy); font-weight: 700; }

/* ---- Community giving + match = total ---- */
.cohc-eq {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.1fr;
  align-items: end;
  gap: 8px 14px;
  margin: 34px 0 22px;
}
.cohc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cohc-navy);
}
.cohc-swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.cohc-term--community .cohc-swatch { background: var(--cohc-coral); }
.cohc-term--match .cohc-swatch { background: var(--cohc-navy); }

.cohc-num {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.01em;
}
.cohc-term--community .cohc-num { color: var(--cohc-coral-text); }
.cohc-term--match .cohc-num { color: var(--cohc-navy); }
.cohc-term--total .cohc-num {
  font-size: clamp(2.2rem, 5.2vw, 3.2rem);
  color: var(--cohc-navy);
}
.cohc-op {
  padding-bottom: .35em;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
  color: #6f8194;
}
.cohc-plus-inline { display: none; }

/* ---- Bar ---- */
.cohc-bar {
  display: flex;
  gap: 3px;
  height: 26px;
  padding: 0;
  border-radius: 13px;
  background: var(--cohc-track);
  overflow: hidden;
}
.cohc-fill {
  flex: none;
  width: 0;
  height: 100%;
  transition: width .9s cubic-bezier(.2, .7, .2, 1);
}
.cohc-fill--community { background: var(--cohc-coral); }
.cohc-fill--match { background: var(--cohc-navy); }
.cohc-fill[data-empty="true"] { margin-right: -3px; }

.cohc-scale {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--cohc-navy);
}
.cohc-matchline {
  margin: 14px 0 0;
  font-size: 1.05rem;
  color: var(--cohc-muted);
}
.cohc-matchline strong { color: var(--cohc-navy); }

/* ---- Give ---- */
.cohc-cta { margin-top: 26px; }
.cohc-btn {
  display: inline-block;
  padding: 15px 44px;
  border-radius: 100px;
  background: var(--cohc-coral);
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.cohc-btn:hover { background: #e05a4a; transform: translateY(-2px); }
.cohc-btn:focus-visible { outline: 3px solid var(--cohc-navy); outline-offset: 3px; }

.cohc-status {
  margin: 18px 0 0;
  font-size: .9rem;
  color: var(--cohc-muted);
}
.cohc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2e9e6b;
  vertical-align: 1px;
  animation: cohc-pulse 2.4s ease-in-out infinite;
}
@keyframes cohc-pulse { 50% { opacity: .35; } }

.cohc-note {
  margin: 30px 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--cohc-navy);
}

.cohc [hidden] { display: none !important; }

/* a number that just changed */
.cohc-num.cohc-bump { animation: cohc-bump .9s ease; }
@keyframes cohc-bump { 30% { transform: scale(1.06); } }

/* ---- Narrow: the equation becomes an addition sum ---- */
@media (max-width: 800px) {
  .cohc-eq { display: block; max-width: 460px; margin: 26px auto 20px; }
  .cohc-op { display: none; }
  .cohc-term {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
  }
  .cohc-label { justify-content: flex-start; text-align: left; }
  .cohc-plus-inline { display: inline; margin-right: 1px; font-weight: 700; }
  .cohc-num { font-size: 1.7rem; }
  .cohc-term--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid var(--cohc-navy);
  }
  .cohc-term--total .cohc-label { font-size: 1.1rem; font-weight: 700; }
  .cohc-term--total .cohc-num { font-size: 2.1rem; }
}

/* ---- Phone ---- */
@media (max-width: 640px) {
  .cohc { padding: 28px 20px 24px; border-radius: 14px; }
  .cohc-logos { gap: 16px; margin-bottom: 20px; }
  .cohc-logo-coh { height: 34px; }
  .cohc-logo-wbt { height: 46px; }
  .cohc-logos-rule { height: 34px; }

  .cohc-bar { height: 22px; border-radius: 11px; }
  .cohc-btn { display: block; width: 100%; }
}

/* ---- Small phones, and the church site's 320px phone layout ---- */
@media (max-width: 430px) {
  .cohc { padding: 22px 16px 20px; }
  .cohc-logos { gap: 10px; margin-bottom: 16px; }
  .cohc-logo-coh, .cohc-logo-wbt { height: auto; min-width: 0; }
  .cohc-logo-coh { width: 46%; }
  .cohc-logo-wbt { width: 43%; }
  .cohc-logos-rule { flex: none; height: 30px; }
  .cohc-title { font-size: 1.45rem; }
  .cohc-label { font-size: .95rem; }
  .cohc-num { font-size: 1.5rem; }
  .cohc-term--total .cohc-num { font-size: 1.9rem; }
  .cohc-note { font-size: 1.2rem; }
  .cohc-scale { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cohc-fill { transition: none; }
  .cohc-dot, .cohc-num.cohc-bump { animation: none; }
  .cohc-btn:hover { transform: none; }
}
