/* ---------- Appeal / product card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card-grid--fit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.appeal-card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.appeal-card:hover { box-shadow: var(--sh-float); }
.appeal-card__media { position: relative; height: 200px; display: block; }
.appeal-card--lg .appeal-card__media { height: 220px; }
.appeal-card__media .pill { position: absolute; top: 14px; left: 14px; z-index: 1; }
.appeal-card__media .pill--gold { left: auto; right: 14px; }
.appeal-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.appeal-card--lg .appeal-card__body { padding: 20px 20px 24px; gap: 10px; }
.appeal-card__title { font-size: 20px; font-weight: 700; }
.appeal-card--lg .appeal-card__title { font-size: 22px; }
.appeal-card__title a { text-decoration: none; }
.appeal-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.appeal-card { position: relative; }
.appeal-card__desc { font-size: 14px; line-height: 1.55; color: var(--c-muted); flex: 1; }
.appeal-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.appeal-card__price { font-size: 19px; font-weight: 700; }
.appeal-card__price .from { font-size: 14px; color: var(--c-muted); font-weight: 400; }
.appeal-card__foot .btn { position: relative; z-index: 2; padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.appeal-card__foot .added_to_cart { display: none; }
.appeal-card__foot .btn.loading { opacity: .6; pointer-events: none; }
.appeal-card__foot .btn.added::after { content: "✓"; margin-left: 2px; }

/* Price HTML from WooCommerce */
.price del { color: var(--c-muted); font-weight: 400; font-size: .85em; margin-right: 4px; }
.price ins { text-decoration: none; }

/* ---------- Segmented control ---------- */
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-track); border-radius: var(--r-pill); padding: 4px; }
.segmented__btn {
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); border: 0; background: transparent;
  color: var(--c-muted); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.segmented__btn[aria-selected="true"], .segmented__btn[aria-pressed="true"], .segmented__btn.is-active { background: var(--c-green); color: #fff; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--c-line-input);
  background: var(--c-surface); color: var(--c-text); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.chip:hover { border-color: var(--c-green); color: var(--c-green); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-active { border: 2px solid var(--c-green); background: var(--c-mint); color: var(--c-green); font-weight: 700; }
.chip--on-dark { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.chip--on-dark:hover { border-color: #fff; color: #fff; }
.chip--on-dark[aria-current="true"], .chip--on-dark.is-active { border: 0; background: var(--c-gold); color: var(--c-green); }

/* ---------- Panels ---------- */
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel--lg { padding: 28px; gap: 18px; }
.panel__title { font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--c-green); }
.panel--cream { background: var(--c-cream); border: 0; }
.panel--cream p, .panel--cream span { color: var(--c-cream-ink); }
.panel h2 { font-size: 22px; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 28px; }

.callout { background: var(--c-cream); border-radius: var(--r-md); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.callout span { font-size: 14px; line-height: 1.55; color: var(--c-cream-ink); }
.callout strong { color: var(--c-green); }

.cta-band {
  background: var(--c-cream); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 48px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.cta-band h2 { font-size: clamp(28px, 3.5vw, 36px); }
.cta-band p { font-size: 16px; line-height: 1.6; color: var(--c-cream-ink); }

/* ---------- Ticks ---------- */
.ticks { display: flex; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--c-muted); }
.ticks li { display: flex; gap: 8px; align-items: center; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: var(--r-input); border: 1px solid var(--c-line-input);
  background: var(--c-surface); display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }
.pagination ul.page-numbers { display: contents; }

/* ---------- Notices (WooCommerce + theme) ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .cope-notice {
  list-style: none; margin: 0 0 20px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--c-mint); color: var(--c-green); font-size: 15px; font-weight: 600;
  display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.woocommerce-error { background: #FBEAE7; color: var(--c-error); flex-direction: column; align-items: flex-start; }
.woocommerce-error li { list-style: none; }
.woocommerce-info { background: var(--c-cream-2); color: var(--c-cream-ink); }
.woocommerce-message .button, .woocommerce-info .button {
  order: 2; background: var(--c-green); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px;
}
.woocommerce-NoticeGroup { width: 100%; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; align-content: start; }
.stat { background: var(--c-mint); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-family: var(--f-display); font-size: 36px; line-height: 1.1; color: var(--c-green); }
.stat span { font-size: 14px; color: var(--c-muted); }
.stat--dark { background: var(--c-green); }
.stat--dark strong { color: var(--c-gold); }
.stat--dark span { color: var(--c-on-green); }

/* ---------- Video play button ---------- */
.play-btn {
  width: 68px; height: 68px; border-radius: var(--r-pill); background: var(--c-gold); color: var(--c-green);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(212, 175, 98, .25); flex: none;
}
.play-btn--lg { width: 92px; height: 92px; box-shadow: 0 0 0 12px rgba(212, 175, 98, .25); }
.play-btn--xl { width: 104px; height: 104px; box-shadow: 0 0 0 14px rgba(212, 175, 98, .25); }
.play-btn--sm { width: 36px; height: 36px; box-shadow: none; background: var(--c-green); color: var(--c-gold); }
.badge-dark { position: absolute; background: rgba(0, 0, 0, .4); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); }

/* ---------- Round icon button ---------- */
.icon-btn {
  width: 52px; height: 52px; border-radius: var(--r-pill); border: 0; background: var(--c-surface); color: var(--c-green);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-btn); flex: none;
}
.icon-btn--sm { width: 44px; height: 44px; border: 1px solid var(--c-line-input); box-shadow: none; text-decoration: none; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state h2 { font-size: 32px; }

/* ---------- Amount chips (quick donate + general donation) ---------- */
.amount-chip { position: relative; }
.amount-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.amount-chip span {
  height: 52px; border-radius: var(--r-input); border: 1px solid var(--c-line-input); background: var(--c-surface);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--c-text);
  transition: border-color .15s ease, background-color .15s ease;
}
.amount-chip:hover span { border-color: var(--c-green); }
.amount-chip input:checked + span { border: 2px solid var(--c-green); background: var(--c-mint); color: var(--c-green); font-weight: 800; }
.amount-chip input:focus-visible + span { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* ---------- Hub pages (Our projects / Get involved) ---------- */
.programmes__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.programme {
  height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 20px;
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--c-text); transition: border-color .15s ease, box-shadow .15s ease;
}
.programme:hover { border-color: var(--c-green); color: var(--c-text); box-shadow: var(--sh-float); }
.programme strong { font-size: 16px; color: var(--c-green); }
.programme span:last-child { font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.programme__icon { width: 44px; height: 44px; border-radius: var(--r-input); background: var(--c-green); display: flex; align-items: center; justify-content: center; }
.hub-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hub-content { margin-top: 56px; }
.events__grid { list-style: none; margin: 0; padding: 0; }
.event-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--c-text); }
.event-card__media { height: 200px; border-radius: var(--r-card); }
.event-card strong { font-family: var(--f-display); font-size: 22px; color: var(--c-green); }
.event-card > span:last-child { font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.event-card:hover strong { text-decoration: underline; }
.gallery-cta { padding-bottom: var(--section-y); }

/* Appeals listed under a matching content page */
.page-appeals { padding-bottom: var(--section-y); }
