/* ==========================================================================
   Oxfam homepage components — flat replacements for the Vev embeds
   All selectors are prefixed with .oxv- so they won't collide with site CSS.
   Fonts: uses the Oxfam T-Star Pro families already loaded on oxfamamerica.org,
   with Roboto Condensed / Arial as fallbacks.
   ========================================================================== */

.oxv {
  --oxv-grey: #545454;
  --oxv-green: #44841a;
  --oxv-blue: #0b9cda;
  --oxv-pink: #e70052;
  --oxv-orange: #f16e22;
  --oxv-purple: #5b3d9c;
  --oxv-teal: #16a39a;
  --oxv-white: #fdfafa;
  --oxv-font-headline: oxfam_tstar_proheadline, "RobotoCondensed-Bold-webfont", "Roboto Condensed", Arial, sans-serif;
  --oxv-font-bold: oxfam_tstar_probold, "RobotoCondensed-Bold-webfont", "Roboto Condensed", Arial, sans-serif;
  --oxv-font-medium: oxfam_tstar_promedium, oxfam_tstar_proregular, "Roboto Condensed", Arial, sans-serif;
  --oxv-font-body: oxfam_tstar_proregular, "RobotoCondensed-Regular-webfont", "Roboto Condensed", Arial, sans-serif;
  box-sizing: border-box;
  width: 100%;
}
.oxv *, .oxv *::before, .oxv *::after { box-sizing: inherit; }
/* :where() keeps this reset at class-level specificity so component classes below can override it */
.oxv :where(h1, h2, h3, p, blockquote, figure, ul, dl, dd) { margin: 0; padding: 0; }
/* Neutralise global site styles for quotes/citations (border, grey text, "— " prefix) */
.oxv blockquote, .oxv blockquote p, .oxv cite, .oxv figcaption {
  border: 0; background: none; color: inherit; quotes: none; font-style: normal;
}
.oxv blockquote::before, .oxv blockquote::after,
.oxv blockquote p::before, .oxv blockquote p::after,
.oxv cite::before, .oxv cite::after { content: none; }
.oxv-inner { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

/* --------------------------------------------------------------------------
   Scroll-reveal (matches Vev: fade + rise 30%, 1s, cubic-bezier(.85,0,.15,1)).
   Content is only hidden once JS has added .oxv-anim, so crawlers, no-JS
   visitors and reduced-motion users always see everything.
   -------------------------------------------------------------------------- */
.oxv-anim [data-oxv-reveal] { opacity: 0; }
.oxv-anim [data-oxv-reveal].is-revealed {
  animation: oxv-fade-up 1s cubic-bezier(0.85, 0, 0.15, 1) var(--oxv-delay, 0ms) both;
}
@keyframes oxv-fade-up {
  from { opacity: 0; transform: translateY(30%); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   1. Hero + three pillars
   -------------------------------------------------------------------------- */
.oxv-hero { padding: 24px 0 72px; background: #fff; }
.oxv-hero__title {
  font-family: var(--oxv-font-medium);
  font-weight: 700;
  font-size: clamp(32px, 4.1vw, 60px);
  line-height: 1.25;
  color: var(--oxv-grey);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.oxv-hero__tagline {
  display: block;
  margin-top: 0.55em;
  color: var(--oxv-green);
}
.oxv-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1220px;
  margin: 64px auto 0;
}
.oxv-pillar { text-align: center; }
.oxv-pillar__img {
  display: block;
  width: 100%;
  aspect-ratio: 393 / 221;
  object-fit: cover;
  object-position: center;
  margin-bottom: 24px;
}
.oxv-pillar__title {
  font-family: var(--oxv-font-headline);
  font-weight: 900;
  font-size: clamp(26px, 2.45vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--oxv-grey);
  margin-bottom: 14px;
}
.oxv-pillar__text {
  font-family: var(--oxv-font-body);
  font-size: 20px;
  line-height: 30px;
  color: #000;
}
.oxv-pillar__text a { color: var(--oxv-green); text-decoration: underline; transition: all 0.2s ease-out; }
.oxv-pillar__text a:hover, .oxv-pillar__text a:focus { text-decoration: none; }

/* --------------------------------------------------------------------------
   2. Voices from our supporters (testimonial carousel)
   -------------------------------------------------------------------------- */
.oxv-voices {
  position: relative;
  overflow: hidden;
  color: var(--oxv-white);
  text-align: center;
  padding: 72px 0 64px;
  min-height: 573px;
  background-color: var(--oxv-purple);
  background-image: url("https://cdn.vev.design/private/kf5btAI0lledKcFe79nfXejwkCr1/image/fYDBPh0fTF_2k0tqc.svg");
  background-size: cover;
  background-position: center;
}
.oxv-voices__title {
  font-family: var(--oxv-font-headline);
  font-weight: 900;
  font-size: clamp(36px, 4.3vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 40px;
}
.oxv-voices__viewport { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 90px; }
.oxv-voices__window { overflow: hidden; }
.oxv-voices__track {
  list-style: none;
  display: flex;
  transition: transform 0.2s ease;
}
.oxv-voice { flex: 0 0 100%; padding: 0 20px; }
.oxv-voice__icon { display: block; width: 50px; height: 40px; margin: 0 auto 16px; }
.oxv-voice blockquote p {
  color: #fff;
  font-family: var(--oxv-font-bold);
  font-weight: 700;
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
}
.oxv-voice figcaption { margin-top: 22px; }
.oxv-voice__name {
  display: block;
  font-family: var(--oxv-font-headline);
  font-weight: 900;
  font-size: 20px;
  line-height: 22px;
  text-transform: uppercase;
  font-style: normal;
}
.oxv-voice__role {
  display: block;
  font-family: var(--oxv-font-bold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 4px;
}
.oxv-voices__count {
  font-family: var(--oxv-font-bold);
  font-weight: 700;
  font-size: 16px;
  margin-top: 36px;
}
.oxv-voices__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.oxv-voices__btn:hover, .oxv-voices__btn:focus-visible { background: rgba(0, 0, 0, 0.65); }
.oxv-voices__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.oxv-voices__btn--prev { left: 20px; }
.oxv-voices__btn--next { right: 20px; }
.oxv-voices__btn svg { width: 22px; height: 22px; }
/* Without JS: show every quote stacked (still fully readable). */
.oxv-voices:not(.is-enhanced) .oxv-voices__track { flex-direction: column; gap: 48px; }
.oxv-voices:not(.is-enhanced) .oxv-voices__btn,
.oxv-voices:not(.is-enhanced) .oxv-voices__count { display: none; }

/* --------------------------------------------------------------------------
   3. The impact of your support (stats)
   -------------------------------------------------------------------------- */
.oxv-impact { padding: 56px 0 64px; background: transparent; text-align: center; }
.oxv-impact__title {
  font-family: var(--oxv-font-headline);
  font-weight: 900;
  font-size: clamp(40px, 4.9vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--oxv-grey);
  margin-bottom: 36px;
}
.oxv-impact__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}
.oxv-stat { display: flex; flex-direction: column; }
.oxv-stat__value {
  order: -1;
  font-family: var(--oxv-font-headline);
  font-weight: 900;
  font-size: clamp(48px, 4.9vw, 72px);
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.oxv-stat--blue .oxv-stat__value { color: var(--oxv-blue); }
.oxv-stat--pink .oxv-stat__value { color: var(--oxv-pink); }
.oxv-stat--orange .oxv-stat__value { color: var(--oxv-orange); }
.oxv-stat__label {
  font-family: var(--oxv-font-bold);
  font-weight: 700;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.25;
  color: #000;
  max-width: 400px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Donation form (.oxfam-support) — formerly inline <style> in the CMS.
   Uses the site's own Oxfam T-Star / Roboto fonts instead of Vev-hosted copies.
   -------------------------------------------------------------------------- */
.oxfam-support {
  --sup-green: #44841a;
  --sup-grey: #545454;
  --sup-red: #e70052;
  --sup-headline: oxfam_tstar_proheadline, "Oxfam Headline", "RobotoCondensed-Bold-webfont", Arial, sans-serif;
  --sup-body: "Roboto-Regular-webfont", Roboto, Arial, sans-serif;
  --sup-field-h: 49px;
  background: #f5f5f5;
  padding: 60px 20px;
  color: #000;
}
.oxfam-support, .oxfam-support * { box-sizing: border-box; }
.oxfam-support__inner {
  max-width: 1218px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.oxfam-support__image {
  display: block;
  width: 100%;
  height: 397px;
  object-fit: cover;
  object-position: center;
}
.oxfam-support h3 {
  margin: 0 0 10px;
  color: var(--sup-grey);
  font: 900 36px/1 var(--sup-headline);
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.oxfam-support p { margin: 0; font: 400 18px/1.5 var(--sup-body); color: var(--sup-grey);}
/* Tax-deductibility note under the form */
.oxfam-support p.disclaimer {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sup-grey);
}

.oxfam-support__amounts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}
/* Every control in the form shares one fixed height so they always line up. */
.oxfam-support__amounts button,
.oxfam-support__amounts .oxfam-support__other,
.oxfam-support__frequency span {
  height: var(--sup-field-h);
  min-height: var(--sup-field-h);
  margin: 0; /* site CSS adds margin-bottom:5px to <label>, which made Donate Now taller */
}
.oxfam-support__amounts button {
  appearance: none;
  min-width: 0;
  border: 2px solid #cacaca;/*var(--sup-green);*/
  border-radius: 4px;
  padding: 9px 20px 6px;
  background: #fff; /*transparent;*/
  color: var(--sup-green);
  text-align: center;
  font: 400 20px/28px var(--sup-headline);
  text-transform: uppercase;
  cursor: pointer;
}
.oxfam-support__amounts button[aria-pressed="true"] { color: #fff; background: var(--sup-green);
border: 2px solid var(--sup-green); }

/* Donate Now: arrow/tag shape matching the site's .button__arrow (hero promo).
   The shape is drawn on ::before so the button itself isn't clipped and its
   keyboard focus ring stays fully visible. Point depth is fixed in px so the
   arrow keeps the same proportions at any button width. */
.oxfam-support .oxfam-support__amounts .oxfam-support__donate {
  --sup-arrow: 27px;
  position: relative;
  z-index: 0;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 9px calc(var(--sup-arrow) + 10px) 6px 10px; /* centre text in the body, not the point */
}
.oxfam-support .oxfam-support__amounts .oxfam-support__donate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--sup-red);
  clip-path: polygon(
    0 0,
    calc(100% - var(--sup-arrow)) 0,
    calc(100% - var(--sup-arrow) + 2px) 1%,
    calc(100% - 0.5px) 46%,
    100% 50%,
    calc(100% - 0.5px) 54%,
    calc(100% - var(--sup-arrow) + 2px) 99%,
    calc(100% - var(--sup-arrow)) 100%,
    0 100%
  );
  transition: background-color 0.2s ease-out;
}
.oxfam-support .oxfam-support__amounts .oxfam-support__donate:hover::before,
.oxfam-support .oxfam-support__amounts .oxfam-support__donate:focus-visible::before,
.oxfam-support .oxfam-support__amounts .oxfam-support__donate:active::before { background: #9B0037; }
.oxfam-support__amounts button:focus-visible { outline: 3px solid var(--sup-grey); outline-offset: 3px; }

/* Three suggested amounts, then Other and Donate Now. */
.oxfam-support__amounts > [data-amount] { grid-column: span 2; }
.oxfam-support__amounts .oxfam-support__other,
.oxfam-support__amounts .oxfam-support__donate { grid-column: span 3; }

.oxfam-support__amounts .oxfam-support__other {
  position: relative;
  display: block;
  min-width: 0;
  color: var(--sup-green);
  font: 400 20px/28px var(--sup-headline);
}
.oxfam-support__other > span { position: absolute; left: 12px; top: 13px; pointer-events: none; z-index: 1; }

/* "Other" amount field. Selectors are deliberately more specific than the
   site's input[type="number"]:hover/:focus rules (which use !important and a
   3px border), so the field keeps the same 2px border and never looks like it
   resizes on hover or focus. */
.oxfam-support .oxfam-support__other input[type="number"],
.oxfam-support .oxfam-support__other input[type="number"]:hover,
.oxfam-support .oxfam-support__other input[type="number"]:focus {
  appearance: textfield;
  -moz-appearance: textfield;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 9px 10px 6px 28px;
  border: 2px solid #cacaca !important;/*var(--sup-green) !important;*/
  border-radius: 4px;
  background: #fff;/*transparent;*/
  box-shadow: none;
  color: inherit;
  font: inherit;
  transition: none;
}
.oxfam-support .oxfam-support__other input[type="number"]:hover,
.oxfam-support .oxfam-support__other input[type="number"]:focus{
  border: 2px solid var(--sup-green) !important;
}
.oxfam-support__other input::-webkit-inner-spin-button,
.oxfam-support__other input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.oxfam-support__other input::placeholder { color: var(--sup-green); opacity: 1; }
.oxfam-support .oxfam-support__other input[type="number"]:focus-visible { outline: 3px solid var(--sup-grey); outline-offset: 3px; }

.oxfam-support__frequency {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0 0 16px;
}
.oxfam-support__frequency label { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.oxfam-support__frequency input,
.oxfam-support__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.oxfam-support__frequency span {
  position: relative;
  display: block;
  padding: 9px 10px 6px;
  border: 2px solid var(--sup-green);
  color: var(--sup-green);
  text-align: center;
  font: 400 20px/28px var(--sup-headline);
  text-transform: uppercase;
}
.oxfam-support__frequency label:first-of-type span { border-radius: 4px 0 0 4px; border-right-width: 1px; }
.oxfam-support__frequency label:last-of-type span { border-radius: 0 4px 4px 0; border-left-width: 1px; }
.oxfam-support__frequency input:checked + span { color: #fff; background: var(--sup-green); }
.oxfam-support__frequency input:checked + span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-inline: 16px solid transparent;
  border-top: 16px solid var(--sup-green);
}
.oxfam-support__frequency input:focus-visible + span { outline: 3px solid var(--sup-grey); outline-offset: 3px; z-index: 1; }

@media (max-width: 1259px) {
  .oxfam-support__inner { max-width: 984px; }
  .oxfam-support__image { height: 466px; }
  /*.oxfam-support__amounts .oxfam-support__other,
  .oxfam-support__amounts .oxfam-support__donate { grid-column: 1 / -1; }*/
}
@media (max-width: 1023px) {
  .oxfam-support__inner { max-width: 560px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .oxfam-support__image { height: 294px; }
  .oxfam-support p { font-size: 16px; }
}
@media (max-width: 599px) {
  .oxfam-support__inner { max-width: 281px; }
  .oxfam-support__image { height: auto; aspect-ratio: 280.5 / 157.5; }
  .oxfam-support h3 { font-size: 24px; }
  .oxfam-support__amounts > [data-amount] { grid-column: 1 / -1; }
  .oxfam-support__amounts .oxfam-support__other,
  .oxfam-support__amounts .oxfam-support__donate { grid-column: 1 / -1; }
  .oxfam-support__amounts .oxfam-support__other input{max-width:100%;}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .oxv-pillars, .oxv-impact__list { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
  .oxv-voices { min-height: 0; padding: 56px 0; }
  .oxv-voices__viewport { padding: 0 16px 72px; }
  .oxv-voices__btn { top: auto; bottom: 0; transform: none; }
  .oxv-voices__btn--prev { left: calc(50% - 64px); }
  .oxv-voices__btn--next { right: calc(50% - 64px); }
  .oxv-voices__count { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .oxv-voices__track { transition: none; }
  .oxv-anim [data-oxv-reveal], .oxv-anim [data-oxv-reveal].is-revealed { opacity: 1; animation: none; }
}
