/* Humanity Foundation — Our Causes refresh
   Page-only styles. Shared css/style.css and css/footer.css are intentionally untouched. */
.causes-page-refresh {
  --cause-yellow: #fff200;
  --cause-red: #e52435;
  --cause-navy: #14213f;
  --cause-ink: #1d2430;
  --cause-muted: #687286;
  --cause-cream: #fffdf5;
  background: var(--cause-cream);
  color: var(--cause-ink);
  font-family: 'DM Sans', Arial, sans-serif;
}

.causes-page-refresh #main {
  overflow: clip;
  background: var(--cause-cream);
}

.causes-page-refresh a {
  text-underline-offset: 3px;
}

.causes-page-refresh .cause-intro-hero,
.causes-page-refresh .cause-shortcuts,
.causes-page-refresh .cause-list-section,
.causes-page-refresh .cause-help-cta {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

/* Intro: compact text-led opening with a supporting photo collage. */
.cause-intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 6vw, 78px) 0 clamp(38px, 5vw, 62px);
}

.cause-intro-copy {
  max-width: 610px;
}

.cause-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--cause-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cause-eyebrow>span {
  width: 24px;
  height: 2px;
  flex: 0 0 24px;
  border-radius: 4px;
  background: var(--cause-yellow);
}

.cause-intro-copy h1 {
  max-width: 590px;
  margin: 0;
  color: var(--cause-navy);
  font: 700 clamp(40px, 5.2vw, 66px)/1.04 'Playfair Display', Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.cause-intro-copy h1 em {
  color: var(--cause-red);
  font-style: normal;
}

.cause-intro-text {
  max-width: 510px;
  margin: 20px 0 24px;
  color: #657086;
  font-size: 15px;
  line-height: 1.8;
}

.cause-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.cause-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.cause-btn-yellow {
  background: var(--cause-yellow);
  color: #171717;
  box-shadow: 0 7px 18px rgba(190, 170, 0, .16);
}

.cause-btn-yellow:hover {
  color: #171717;
  transform: translateY(-2px);
  box-shadow: 0 11px 23px rgba(190, 170, 0, .23);
}

.cause-btn-outline {
  border-color: rgba(20, 33, 63, .2);
  background: #fff;
  color: var(--cause-navy);
}

.cause-btn-outline:hover {
  border-color: var(--cause-red);
  color: var(--cause-red);
  transform: translateY(-2px);
}

.cause-intro-promise {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 485px;
  margin-top: 23px;
  color: #788092;
  font-size: 11px;
  line-height: 1.6;
}

.cause-intro-promise i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--cause-red);
}

.cause-intro-visual {
  position: relative;
  min-width: 0;
  min-height: 390px;
  padding: 0 42px 38px 0;
}

.cause-photo-main {
  position: absolute;
  inset: 0 42px 38px 0;
  overflow: hidden;
  border-radius: 26px 26px 76px 26px;
  background: #ebe7df;
  box-shadow: 0 18px 40px rgba(20, 33, 63, .14);
}

.cause-photo-main::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 20, 35, .44));
  pointer-events: none;
}

.cause-photo-main>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cause-photo-caption {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(20, 33, 63, .76);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.cause-photo-caption i {
  color: var(--cause-yellow);
  font-size: 14px;
}

.cause-photo-small {
  position: absolute;
  z-index: 2;
  width: 138px;
  height: 112px;
  overflow: hidden;
  border: 5px solid var(--cause-cream);
  border-radius: 16px;
  background: #e9e5dc;
  box-shadow: 0 10px 25px rgba(20, 33, 63, .15);
}

.cause-photo-small img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cause-photo-small-one {
  right: 0;
  top: 18px;
  transform: rotate(4deg);
}

.cause-photo-small-two {
  right: 6px;
  bottom: 0;
  transform: rotate(-4deg);
}

.cause-visual-dot {
  position: absolute;
  left: -13px;
  top: 55px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cause-yellow);
  box-shadow: 0 0 0 7px rgba(255, 242, 0, .2);
}

/* Easy one-tap navigation to each focus area. */
.cause-shortcuts {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 66px;
  padding: 15px 18px;
  border: 1px solid #eee9de;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(20, 33, 63, .045);
}

.cause-shortcuts-label {
  flex: 0 0 auto;
  color: var(--cause-navy);
  font-size: 15px;
  font-weight: 800;
}

.cause-shortcut-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cause-shortcut-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: #596477;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cause-shortcut-list a i {
  color: var(--cause-red);
  font-size: 14px;
}

.cause-shortcut-list a:hover,
.cause-shortcut-list a:focus-visible {
  background: #fff8b5;
  color: var(--cause-navy);
  transform: translateY(-1px);
}

/* Main cause list: clear, wide horizontal cards for easy reading. */
.cause-list-section {
  padding-bottom: 76px;
  scroll-margin-top: 115px;
}

.cause-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.cause-section-heading h2 {
  margin: 0;
  color: var(--cause-navy);
  font: 700 clamp(30px, 3.6vw, 44px)/1.12 'Playfair Display', Georgia, serif;
  letter-spacing: -.035em;
}

.cause-section-heading h2 em {
  color: var(--cause-red);
  font-style: normal;
}

.cause-section-description {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--cause-muted);
  font-size: 13px;
  line-height: 1.8;
}

.cause-list {
  display: grid;
  gap: 20px;
}

.cause-row {
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 63, .075);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(20, 33, 63, .055);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  scroll-margin-top: 118px;
}

.cause-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 242, 0, .85);
  box-shadow: 0 13px 30px rgba(20, 33, 63, .09);
}

.cause-row-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
}

.cause-row-reverse .cause-row-media {
  order: 2;
}

.cause-row-reverse .cause-row-content {
  order: 1;
}

.cause-row-media {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: #ece8df;
}

.cause-row-media>img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
  transition: transform .5s cubic-bezier(.2, .7, .25, 1);
}

.cause-row:hover .cause-row-media>img {
  transform: scale(1.035);
}

.cause-row-index {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(20, 33, 63, .74);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.cause-row-type {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--cause-navy);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.cause-row-type i {
  color: var(--cause-red);
  font-size: 13px;
}

.cause-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, #f9e9e7, #fff8ce);
  color: var(--cause-red);
  font-size: 52px;
}

.cause-row-media.image-fallback .cause-image-fallback {
  display: grid;
}

.cause-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
}

.cause-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.cause-row-kicker {
  color: var(--cause-red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
}

.cause-row-step {
  flex: 0 0 auto;
  color: #a3a7b0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cause-row-content h3 {
  margin: 0 0 10px;
  color: var(--cause-navy);
  font: 700 clamp(21px, 2.1vw, 27px)/1.2 'Playfair Display', Georgia, serif;
}

.cause-row-content>p {
  max-width: 660px;
  margin: 0 0 15px;
  color: #687286;
  font-size: 16px;
  line-height: 1.75;
}

.cause-support-info {
  margin-bottom: 17px;
  padding: 12px 15px;
  border-left: 3px solid var(--cause-yellow);
  border-radius: 0 10px 10px 0;
  background: #fffdf3;
}

.cause-support-info strong {
  display: block;
  margin-bottom: 7px;
  color: var(--cause-navy);
  font-size: 15px;
  font-weight: 800;
}

.cause-support-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 19px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cause-support-info li {
  position: relative;
  padding-left: 13px;
  color: #727a88;
  font-size: 12px;
  line-height: 1.55;
}

.cause-support-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cause-red);
}

.cause-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.cause-action-primary,
.cause-action-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.cause-action-primary {
  background: var(--cause-yellow);
  color: #171717;
  box-shadow: 0 5px 12px rgba(190, 170, 0, .12);
}

.cause-action-primary:hover {
  transform: translateY(-2px);
  background: #ffe400;
  color: #171717;
  box-shadow: 0 8px 17px rgba(190, 170, 0, .2);
}

.cause-action-secondary {
  border-color: #dfe3e9;
  background: #fff;
  color: var(--cause-navy);
}

.cause-action-secondary i {
  color: #169b5b;
  font-size: 14px;
}

.cause-action-secondary:hover {
  transform: translateY(-2px);
  border-color: #a8dbc1;
  background: #effbf4;
  color: #117344;
}

/* Friendly support/contact prompt at the end of the list. */
.cause-help-cta {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 82px;
  padding: 24px 28px;
  border: 1px solid rgba(20, 33, 63, .07);
  border-radius: 20px;
  background: linear-gradient(105deg, #fbe9e7 0%, #fff8d8 100%);
}

.cause-help-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--cause-red);
  font-size: 22px;
  box-shadow: 0 5px 15px rgba(20, 33, 63, .07);
}

.cause-help-copy .cause-eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.cause-help-copy h2 {
  margin: 0 0 5px;
  color: var(--cause-navy);
  font: 700 21px/1.25 'Playfair Display', Georgia, serif;
}

.cause-help-copy>p:last-child {
  margin: 0;
  color: #687286;
  font-size: 11px;
  line-height: 1.6;
}

.cause-help-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cause-help-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(20, 33, 63, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--cause-navy);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.cause-help-actions a:hover {
  transform: translateY(-2px);
  border-color: var(--cause-red);
  background: var(--cause-red);
  color: #fff;
}

/* Keyboard focus and motion preferences. */
.causes-page-refresh a:focus-visible,
.causes-page-refresh button:focus-visible {
  outline: 3px solid rgba(229, 36, 53, .55);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .cause-intro-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    gap: 28px;
    padding-top: 44px;
  }

  .cause-intro-visual {
    min-height: 320px;
  }

  .cause-photo-main {
    inset: 0 35px 30px 0;
  }

  .cause-photo-small {
    width: 116px;
    height: 94px;
  }

  .cause-shortcuts {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 52px;
  }

  .cause-shortcut-list {
    width: 100%;
    justify-content: flex-start;
  }

  .cause-row,
  .cause-row-reverse {
    grid-template-columns: minmax(220px, 33%) minmax(0, 1fr);
  }

  .cause-row-reverse .cause-row-media {
    order: 2;
  }

  .cause-row-reverse .cause-row-content {
    order: 1;
  }

  .cause-row-content {
    padding: 22px;
  }

  .cause-support-info ul {
    display: grid;
    gap: 5px;
  }

  .cause-help-cta {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .cause-help-icon {
    width: 46px;
    height: 46px;
  }

  .cause-help-actions {
    grid-column: 2;
  }
}

@media (max-width: 767.98px) {

  .causes-page-refresh .cause-intro-hero,
  .causes-page-refresh .cause-shortcuts,
  .causes-page-refresh .cause-list-section,
  .causes-page-refresh .cause-help-cta {
    width: calc(100% - 32px);
  }

  .cause-intro-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 34px 0 29px;
  }

  .cause-intro-copy h1 {
    max-width: 560px;
    font-size: clamp(38px, 9vw, 54px);
  }

  .cause-intro-text {
    margin: 15px 0 19px;
    font-size: 13px;
    line-height: 1.7;
  }

  .cause-intro-promise {
    margin-top: 16px;
    font-size: 10px;
  }

  .cause-intro-visual {
    min-height: clamp(245px, 65vw, 340px);
    margin: 0 3px;
  }

  .cause-photo-main {
    inset: 0 36px 30px 0;
    border-radius: 19px 19px 56px 19px;
  }

  .cause-photo-small {
    width: clamp(95px, 27vw, 125px);
    height: clamp(78px, 22vw, 100px);
    border-width: 4px;
    border-radius: 12px;
  }

  .cause-photo-small-one {
    top: 10px;
  }

  .cause-photo-small-two {
    right: 0;
    bottom: 0;
  }

  .cause-photo-caption {
    left: 12px;
    bottom: 11px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .cause-shortcuts {
    gap: 10px;
    margin-bottom: 42px;
    padding: 14px;
  }

  .cause-shortcut-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .cause-shortcut-list a {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #f0ede6;
    border-radius: 10px;
    background: #fff;
    font-size: 10px;
  }

  .cause-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .cause-section-heading h2 {
    font-size: clamp(29px, 7.5vw, 38px);
  }

  .cause-section-description {
    max-width: 600px;
    font-size: 12px;
    line-height: 1.7;
  }

  .cause-list {
    gap: 15px;
  }

  .cause-row,
  .cause-row-reverse {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .cause-row-reverse .cause-row-media,
  .cause-row-reverse .cause-row-content {
    order: initial;
  }

  .cause-row-media {
    min-height: 0;
    height: clamp(180px, 52vw, 250px);
  }

  .cause-row-media>img {
    min-height: 0;
  }

  .cause-row-content {
    padding: 19px 18px 20px;
  }

  .cause-row-content h3 {
    font-size: 22px;
  }

  .cause-row-content>p {
    font-size: 12px;
  }

  .cause-support-info {
    padding: 11px 13px;
  }

  .cause-support-info ul {
    display: grid;
    gap: 5px;
  }

  .cause-action-primary {
    flex: 1 1 190px;
  }

  .cause-action-secondary {
    flex: 0 0 auto;
  }

  .cause-help-cta {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 55px;
    padding: 18px;
    border-radius: 17px;
  }

  .cause-help-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .cause-help-copy h2 {
    font-size: 19px;
  }

  .cause-help-copy>p:last-child {
    font-size: 10px;
  }

  .cause-help-actions {
    grid-column: 1 / -1;
  }

  .cause-help-actions a {
    flex: 1;
  }

  .cause-list-section {
    padding-bottom: 42px;
  }
}

@media (max-width: 380px) {

  .causes-page-refresh .cause-intro-hero,
  .causes-page-refresh .cause-shortcuts,
  .causes-page-refresh .cause-list-section,
  .causes-page-refresh .cause-help-cta {
    width: calc(100% - 24px);
  }

  .cause-intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cause-btn {
    width: 100%;
  }

  .cause-row-content {
    padding: 16px 14px 17px;
  }

  .cause-row-content h3 {
    font-size: 20px;
  }

  .cause-row-actions {
    align-items: stretch;
  }

  .cause-action-primary {
    flex-basis: 100%;
  }

  .cause-action-secondary {
    flex: 1;
  }

  .cause-row-step {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cause-btn,
  .cause-shortcut-list a,
  .cause-row,
  .cause-row-media>img,
  .cause-action-primary,
  .cause-action-secondary,
  .cause-help-actions a {
    transition: none !important;
  }

  html:focus-within {
    scroll-behavior: auto;
  }
}

/* Progressive enhancement only: no-JS content remains fully visible. */
@media (prefers-reduced-motion: no-preference) {

  .cause-row,
  .cause-help-cta {
    transition: opacity .4s ease, transform .4s ease, box-shadow .25s ease, border-color .25s ease;
  }

  .cause-row.is-in-view,
  .cause-help-cta.is-in-view {
    opacity: 1;
    transform: none;
  }
}

.cause-photo-main.image-fallback,
.cause-photo-small.image-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fbe9e7 0%, #fff8ce 100%);
  color: #e52435;
}

.cause-photo-main.image-fallback::before,
.cause-photo-small.image-fallback::before {
  content: "\\f4da";
  font-family: "bootstrap-icons";
  font-size: 42px;
  line-height: 1;
}