/* ======================================================================
   Tema estilo GoFundMe — header, hero com curvatura, slider e progresso
   em círculo. Carregado por último para prevalecer sobre o layout antigo.
   ====================================================================== */
:root {
  --gfm-green: #16a34a;
  --gfm-green-dark: #14543a;
  --gfm-lime: #cdf564;
  --gfm-ink: #1f2328;
}

body { background: #fff; }

/* a página da campanha fica sem o container antigo, de ponta a ponta */
main.layout.container {
  max-width: 640px;
  padding: 0;
}

/* ---------- Header ---------- */
.gfm-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.gfm-header__right { display: flex; align-items: center; gap: 2px; }
.gfm-header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: var(--gfm-ink);
  border-radius: 50%;
}
.gfm-header__icon:hover { background: #f3f4f6; }
.gfm-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  color: #fff;
  text-align: center;
  background: #e23744;
  border-radius: 999px;
}
.gfm-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gfm-green);
}
.gfm-logo span { color: var(--gfm-ink); }

/* ---------- Hero: foto, slider e curvatura ---------- */
.hero { position: relative; }
.hero__slider {
  position: relative;
  overflow: hidden;
  /* a curvatura côncava na base */
  border-bottom-left-radius: 42% 56px;
  border-bottom-right-radius: 42% 56px;
}
.hero__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.hero__slide {
  flex: 0 0 100%;
  height: 460px;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #d4d4d4;
}
.hero__slide--color { width: 100%; height: 100%; }

/* setas de navegação (aparecem no desktop) */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 18px;
  color: var(--gfm-ink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.hero__arrow:hover { background: #fff; }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }

/* escurecimento no topo e na base para o texto ficar legível */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 42%);
  border-bottom-left-radius: 42% 56px;
  border-bottom-right-radius: 42% 56px;
}

.hero__owner {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gfm-green-dark);
  background: var(--gfm-lime);
  border-radius: 50%;
}

.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  padding: 0 20px 10px;
  text-align: center;
}
.hero__title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  margin-bottom: 18px;
}
.hero__dots { display: flex; gap: 7px; justify-content: center; }
.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, width 0.2s;
}
.hero__dot.is-active { background: #fff; width: 18px; border-radius: 999px; }

/* ---------- Bloco de doação ---------- */
.give {
  padding: 8px 20px 20px;
}
.give__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ring {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: #e5e7eb; stroke-width: 4; }
.ring__fg {
  fill: none;
  stroke: var(--gfm-green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 125.6;      /* 2·π·20 */
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.6s ease;
}
.ring__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gfm-ink);
}
.ring__pct small { font-size: 9px; font-weight: 600; }

.give__raised { font-size: 20px; color: var(--gfm-ink); }
.give__raised strong { font-weight: 800; }
.give__goal { font-size: 14px; color: #6b7280; margin-top: 1px; }
.give__people {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  font-size: 14px;
  color: #374151;
}
.give__people i { font-size: 12px; }

.give__buttons { display: flex; gap: 12px; }
.give__btn {
  flex: 1;
  padding: 15px 10px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
}
.give .btn--primary {
  background: var(--gfm-lime);
  color: var(--gfm-green-dark);
}
.give .btn--primary:hover { background: #c2ef4e; }
.give__btn--dark {
  background: var(--gfm-green-dark);
  color: #fff;
}
.give__btn--dark:hover { background: #0f3f2c; }

@media (max-width: 400px) {
  .hero__slide { height: 380px; }
  .hero__title { font-size: 21px; }
}

/* ============================ DESKTOP ============================ */
@media (min-width: 768px) {
  main.layout.container {
    max-width: 1080px;
    padding: 0 24px 48px;
  }

  /* Header completo */
  .gfm-header {
    height: 72px;
    padding: 0 24px;
    gap: 24px;
    justify-content: flex-start;
  }
  .gfm-header .gfm-header__icon:first-child { order: 0; }
  .gfm-logo { order: 1; font-size: 24px; margin: 0 auto; }
  .gfm-header__right { order: 2; }
  .gfm-nav {
    order: 1;
    display: flex;
    gap: 22px;
    font-size: 15px;
    font-weight: 600;
  }
  .gfm-nav a { display: inline-flex; align-items: center; gap: 4px; }
  .gfm-nav i { font-size: 11px; }
  .gfm-header__right { display: flex; align-items: center; gap: 10px; }
  .gfm-header__cta {
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gfm-ink);
    border: 1.5px solid var(--gfm-ink);
    border-radius: 999px;
  }
  .gfm-header__cta:hover { background: #f3f4f6; }
  .gfm-header__link { font-size: 14px; font-weight: 600; }

  /* Título acima de tudo */
  .page-title {
    display: block;
    max-width: 1080px;
    margin: 28px auto 20px;
    padding: 0 24px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gfm-ink);
  }

  /* Duas colunas: foto à esquerda, painel à direita */
  .layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* coluna única centralizada: hero largo, demais seções alinhadas */
  .hero { grid-column: 1 / -1; }
  .hero__slider, .hero__scrim { border-radius: 16px; }

  .story,
  .donations,
  .organizer-sec,
  .sharehelp,
  .trust,
  .give,
  .donate {
    grid-column: 1 / -1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* painel de progresso + valores viram um cartão só */
  .give {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  }
  .give__buttons { flex-direction: row; }
  .donate {
    padding: 20px;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  }

  /* a foto vira um card retangular, sem curvatura */
  .hero__slider,
  .hero__scrim { border-radius: 16px; }
  .hero__slide { height: 420px; }
  .hero__arrow { display: inline-flex; }

  /* no desktop o título e o organizador saem de cima da foto */
  .hero__title { display: none; }
  .hero__owner {
    top: auto;
    bottom: 14px;
    left: 16px;
    text-shadow: none;
  }
  .hero__scrim { background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%); }
  .hero__dots { bottom: 14px; }
  .hero__bottom { bottom: 14px; }
  .hero__bottom .hero__title { display: none; }

  /* Painel de doação no estilo do print */
  .give__buttons { flex-direction: column; }
  .give__btn { width: 100%; }
  .give__people { color: #4b5563; }
}

/* itens que só existem no header desktop ficam ocultos no mobile */
.gfm-nav,
.gfm-header__cta,
.gfm-header__link { display: none; }
.page-title { display: none; }

/* ============================ Seção de doação ============================ */
.donate {
  max-width: 460px;
  margin: 8px auto 0;
  padding: 20px;
  text-align: center;
}
.donate__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gfm-ink);
}
.donate__sub {
  margin: 8px 0 24px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}
.donate__label {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--gfm-ink);
  margin-bottom: 10px;
}

.donate__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.chip {
  position: relative;
  padding: 16px 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gfm-ink);
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.chip:hover { border-color: #c7ccd1; }
.chip[aria-checked="true"] {
  border-color: var(--gfm-green);
  box-shadow: 0 0 0 1.5px var(--gfm-green);
  background: #f0fdf4;
}
.chip:focus-visible { outline: 2px solid var(--gfm-ink); outline-offset: 2px; }
.chip__tag {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--gfm-green-dark);
  background: var(--gfm-lime);
  border-radius: 999px;
  white-space: nowrap;
}
.chip__tag i { font-size: 8px; }

/* Campo grande de valor */
.donate__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
}
.donate__field:focus-within { border-color: var(--gfm-green); box-shadow: 0 0 0 1.5px var(--gfm-green); }
.donate__symbol { font-size: 26px; font-weight: 700; color: var(--gfm-ink); }
.donate__input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 32px;
  font-weight: 800;
  text-align: right;
  color: var(--gfm-ink);
  border: 0;
  background: transparent;
}
.donate__input:focus { outline: none; }
.donate__cents { font-size: 32px; font-weight: 800; color: var(--gfm-ink); }
.donate__currency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
  margin-left: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  border-left: 1px solid #e5e7eb;
}

/* Bandeira do Brasil em CSS */
.flag-br {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
  background: #009b3a;      /* verde */
  border-radius: 2px;
  overflow: hidden;
}
.flag-br::before {           /* losango amarelo */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  background: #ffdf00;
  transform: translate(-50%, -50%) rotate(45deg);
}
.flag-br__d {                /* círculo azul */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #002776;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.donate__cta {
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gfm-lime);
  color: var(--gfm-green-dark);
}
.donate__cta:hover { background: #c2ef4e; }

@media (max-width: 767px) {
  .donate { max-width: 100%; }
}

/* ============================ Doações ============================ */
.donations {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px;
}
.donations__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.donations__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--gfm-ink);
}
.donations__count {
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 999px;
}
.donations__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gfm-ink);
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
}
.donations__toggle:hover { background: #f3f4f6; }

.donations__list { display: grid; gap: 20px; }
.donation {
  display: flex;
  align-items: center;
  gap: 12px;
}
.donation__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  background: #e5e7eb;
  border-radius: 50%;
}
.donation__avatar i { font-size: 18px; }
.donation__name { font-size: 15px; font-weight: 600; color: var(--gfm-ink); }
.donation__meta { font-size: 14px; color: #6b7280; margin-top: 2px; }
.donation__meta strong { color: var(--gfm-ink); font-weight: 700; }

.donations__empty { padding: 12px 0; color: #6b7280; font-size: 14px; }
.donations__all {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gfm-ink);
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
}
.donations__all:hover { background: #f3f4f6; }

@media (max-width: 767px) {
  .donations { max-width: 100%; }
}
@media (min-width: 768px) {
  .donations { grid-column: 1; }
}


/* ============================ Popup de doação ============================ */
/* Fixa o popup no topo, em vez de centralizado */
#give-modal {
  align-items: flex-start;
  padding-top: 16px;
}
#give-modal .pixmodal__box { margin-top: 0; }

/* Título centralizado; campos com rótulo à esquerda */
#give-modal h2 { text-align: center; }
#give-modal .pixmodal__amount { text-align: center; }

#give-form .field { text-align: left; margin-bottom: 14px; }
#give-form .field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gfm-ink);
  margin-bottom: 6px;
}
#give-form .field label i { font-size: 15px; color: var(--gfm-green); }

/* ============================ Barra fixa (mobile) ============================ */
.fixbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 16px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  /* degradê para o conteúdo sumir atrás da barra sem "fantasma" ao rolar */
  background: linear-gradient(to top, #fff 55%, rgba(255, 255, 255, 0.85) 80%, rgba(255, 255, 255, 0) 100%);
}
.fixbar__card {
  pointer-events: auto;
  max-width: 460px;
  margin: 0 auto;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.fixbar__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ring--sm { width: 44px; height: 44px; }
.ring--sm .ring__pct { font-size: 11px; }
.fixbar__raised { font-size: 16px; color: var(--gfm-ink); }
.fixbar__raised strong { font-weight: 800; }
.fixbar__goal { font-size: 13px; color: #9aa0a6; margin-top: 1px; }
.fixbar__people {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  font-size: 13px;
  color: #4b5563;
}
.fixbar__people i { font-size: 11px; }

.fixbar__buttons { display: flex; gap: 10px; }
.fixbar__btn {
  flex: 1;
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
}
.fixbar__btn--lime { background: var(--gfm-lime); color: var(--gfm-green-dark); }
.fixbar__btn--lime:hover { background: #c2ef4e; }
.fixbar__btn--dark { background: var(--gfm-green-dark); color: #fff; }
.fixbar__btn--dark:hover { background: #0f3f2c; }

/* a barra só existe no mobile; o conteúdo não fica escondido atrás dela.
   O cartão tem ~200px, então reservamos esse espaço no fim da página. */
body { padding-bottom: 220px; }
@media (min-width: 768px) {
  .fixbar { display: none; }
  body { padding-bottom: 0; }
}

/* ============================ História (clean) ============================ */
.story {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px;
  border: 0;
  background: none;
}
.story__title { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--gfm-ink); }

/* texto cortado quando "Ler mais" está ativo */
.story__clamp {
  position: relative;
  overflow: hidden;
}
.story__clamp.is-clamped { max-height: 320px; }
.story__clamp.is-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
#story-body p { font-size: 15px; line-height: 1.6; color: #374151; }
#story-body p + p { margin-top: 14px; }
#story-body strong { color: var(--gfm-ink); font-weight: 700; }

.story__more {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gfm-ink);
  text-decoration: underline;
}
.story__more[hidden] { display: none; }

.story__cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.story__btn {
  flex: 1;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: var(--gfm-ink);
  transition: border-color 0.15s, background 0.15s;
}
.story__btn:hover { border-color: var(--gfm-ink); background: #f3f4f6; }

@media (max-width: 767px) { .story { max-width: 100%; } }
@media (min-width: 768px) { .story { grid-column: 1; max-width: none; padding: 24px 0; } }

/* ============================ Painel "Ver todos" ============================ */
.dsheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}
.dsheet[hidden] { display: none; }
.dsheet__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  background: #fff;
}
@media (min-width: 500px) {
  .dsheet { align-items: center; padding: 20px; }
  .dsheet__panel { max-height: 92vh; border-radius: 18px; overflow: hidden; }
}

.dsheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}
.dsheet__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--gfm-ink);
}
.dsheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 50%;
  color: var(--gfm-ink);
}
.dsheet__close:hover { background: #f3f4f6; }

.dsheet__tabs { display: flex; gap: 8px; padding: 0 18px 12px; }
.dsheet__tab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gfm-ink);
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
}
.dsheet__tab.is-active { background: var(--gfm-ink); color: #fff; border-color: var(--gfm-ink); }

.dsheet__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
}
.dsheet__scroll .donations__list { gap: 18px; }

/* banner verde que aparece no meio da lista */
.dsheet__banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px -18px;
  padding: 18px;
  background: var(--gfm-lime);
}
.dsheet__banner p { font-size: 14px; font-weight: 800; color: var(--gfm-green-dark); line-height: 1.3; }
.dsheet__banner .btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gfm-green-dark);
  color: #fff;
}

.dsheet__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.dsheet__progress { display: flex; align-items: center; gap: 10px; }
.dsheet__raised { font-size: 15px; color: #6b7280; }
.dsheet__raised strong { color: var(--gfm-ink); font-weight: 800; font-size: 16px; }
.dsheet__raised span { display: block; }
.dsheet__cta {
  margin-left: auto;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gfm-lime);
  color: var(--gfm-green-dark);
  white-space: nowrap;
}
.dsheet__cta:hover { background: #c2ef4e; }

/* no celular o rodapé empilha para caber */
@media (max-width: 420px) {
  .dsheet__foot { flex-direction: column; align-items: stretch; }
  .dsheet__cta { margin-left: 0; text-align: center; }
}

/* indicador de carregamento (três pontinhos) */
.dsheet__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 0;
}
.dsheet__loader[hidden] { display: none; }
.dsheet__loader .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gfm-green);
  animation: dsheet-bounce 1.2s ease-in-out infinite;
}
.dsheet__loader .dot:nth-child(2) { animation-delay: 0.2s; }
.dsheet__loader .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dsheet-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ============================ Organizador ============================ */
.organizer-sec {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px;
  border-top: 8px solid #f3f4f6;
}
.organizer-sec__title { font-size: 22px; font-weight: 800; color: var(--gfm-ink); margin-bottom: 18px; }
.organizer-card { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.organizer-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: #ea6a1e;
  border-radius: 50%;
}
.organizer-card__name { font-size: 16px; font-weight: 700; color: var(--gfm-ink); }
.organizer-card__role,
.organizer-card__city { font-size: 14px; color: #6b7280; }
.organizer-card__msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gfm-ink);
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
}
.organizer-card__msg:hover { border-color: var(--gfm-ink); background: #f3f4f6; }

/* ============================ Compartilhar ajuda ============================ */
.sharehelp {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px;
  border-top: 8px solid #f3f4f6;
}
.sharehelp__title { font-size: 22px; font-weight: 800; color: var(--gfm-ink); line-height: 1.2; margin-bottom: 12px; }
.sharehelp__text { font-size: 15px; line-height: 1.5; color: var(--gfm-green-dark); margin-bottom: 20px; }
.sharehelp__text strong { font-weight: 800; }
.sharehelp__card { padding: 20px 16px; background: #f3f4f6; border-radius: 16px; }
.sharehelp__preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sharecard {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.sharecard__body { flex: 1; padding: 12px; position: relative; }
.sharecard__badge {
  position: absolute;
  top: 10px;
  left: 50%;
  color: #f5b301;
  font-size: 18px;
}
.sharecard__title { font-size: 14px; font-weight: 800; color: var(--gfm-ink); line-height: 1.25; margin-bottom: 18px; }
.sharecard__org { font-size: 11px; color: #6b7280; margin-bottom: 10px; }
.sharecard__progress { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sharecard__progress .ring--sm { width: 40px; height: 40px; }
.sharecard__progress .ring__pct { font-size: 10px; }
.sharecard__raised {
  font-size: 11px;
  font-weight: 700;
  color: var(--gfm-green-dark);
  background: var(--gfm-lime);
  padding: 3px 8px;
  border-radius: 999px;
}
.sharecard__donate {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gfm-green-dark);
  background: #ffe08a;
  padding: 3px 10px;
  border-radius: 999px;
}
.sharecard__img { width: 44%; flex-shrink: 0; }
.sharecard__img img { width: 100%; height: 100%; object-fit: cover; }

.sharehelp__icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.shareicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: #fff;
  border-radius: 50%;
}
.shareicon--link { color: var(--gfm-ink); background: #e5e7eb; }
.shareicon--fb { background: #1877f2; }
.shareicon--wa { background: #25d366; }
.shareicon--tg { background: #29a9eb; }
.shareicon--in { background: #0a66c2; }
.shareicon:hover { opacity: 0.9; }

/* ============================ Confiança ============================ */
.trust {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 20px;
  border-top: 8px solid #f3f4f6;
}
.trust__title { font-size: 18px; font-weight: 800; color: var(--gfm-ink); margin-bottom: 20px; }
.trust__list { display: grid; gap: 22px; }
.trust__list li { display: flex; gap: 14px; }
.trust__ico { font-size: 26px; color: var(--gfm-ink); flex-shrink: 0; line-height: 1; }
.trust__list strong { display: block; font-size: 16px; color: var(--gfm-ink); margin-bottom: 2px; }
.trust__list p { font-size: 14px; line-height: 1.45; color: #4b5563; }

@media (max-width: 767px) {
  .organizer-sec, .sharehelp, .trust { max-width: 100%; }
}
@media (min-width: 768px) {
  .organizer-sec, .sharehelp, .trust { grid-column: 1; max-width: none; }
}

/* ============================ Outras causas ============================ */
.causes {
  margin-top: 24px;
  padding: 36px 20px 44px;
  background: var(--gfm-green-dark);
  color: #fff;
}
.causes__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}
.causes__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
.causes__filter:hover { border-color: #fff; }

.causes__list { display: grid; gap: 32px; }
.cause { display: block; color: #fff; }
.cause__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.cause__media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #0f3f2c;
  display: block;
}
.cause__place {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}
.cause__title { font-size: 16px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.cause__by { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d7e3dc; margin-bottom: 12px; }
.cause__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ea6a1e;
  border-radius: 50%;
}
.cause__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  margin-bottom: 10px;
}
.cause__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #8fe36b;
}
.cause__raised { font-size: 15px; font-weight: 800; }

@media (min-width: 768px) {
  .causes { grid-column: 1 / -1; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 48px 0; }
  .causes__title, .causes__filter { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
  .causes__filter { display: inline-flex; }
  .causes__list {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* ============================ Logo em imagem ============================ */
.gfm-logo img { height: 30px; width: auto; display: block; }
.drawer__top .logo img { height: 30px; width: auto; display: block; }
.footer .logo--light img { height: 30px; width: auto; display: block; }
/* a logo do rodapé fica em fundo escuro; se a sua logo for escura, deixa clara */
.logo__img--light { filter: brightness(0) invert(1); }
@media (min-width: 768px) {
  .gfm-logo img { height: 34px; }
}

/* ============================ Footer branco ============================ */
.footer {
  background: #fff;
  color: var(--gfm-ink);
  border-top: 1px solid #e5e7eb;
}
.footer__links,
.footer__strong { color: var(--gfm-ink); }
.footer__links a:hover { color: var(--gfm-green); }
.footer__title { color: var(--gfm-green); }
.footer__small { color: #6b7280; }
.footer__small--dim { color: #9aa0a6; }
.social li + li { border-left-color: #e5e7eb; }
.social a { color: var(--gfm-ink); }
.logo--light,
.logo--light span { color: var(--gfm-ink); }
.logo__img--light { filter: none; }     /* logo volta à cor normal no footer branco */
.store {
  color: var(--gfm-ink);
  border-color: #d1d5db;
  background: #fff;
}
.store--light { background: var(--gfm-ink); color: #fff; border-color: var(--gfm-ink); }
.footer__copy {
  background: #f3f4f6;
  color: #6b7280;
}

/* ======================================================================
   LAYOUT DA PÁGINA v2
   Mobile: coluna única, na ordem certa (via `order`).
   Desktop: conteúdo à esquerda + cartão fixo (.side) à direita.
   ====================================================================== */

/* ---------- Mobile ---------- */
.layout { display: flex; flex-direction: column; }
.side { display: contents; }               /* give e donate viram itens do .layout */
.hero          { order: 1; }
.give          { order: 2; }
.story         { order: 3; }
.donate        { order: 4; }
.donations     { order: 5; }
.organizer-sec { order: 6; }
.sharehelp     { order: 7; }
.trust         { order: 8; }
.give, .donate, .story, .donations, .organizer-sec, .sharehelp, .trust { width: 100%; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    column-gap: 36px;
    row-gap: 0;
    align-items: start;
  }

  /* coluna da esquerda */
  .hero,
  .story,
  .donations,
  .organizer-sec,
  .sharehelp,
  .trust {
    grid-column: 1;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .hero { margin-bottom: 8px; }
  .story { padding: 24px 0; }
  .donations,
  .organizer-sec,
  .sharehelp,
  .trust { padding: 28px 0; }

  /* cartão da direita: acompanha a rolagem */
  .side {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 12;
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  }
  .give,
  .donate {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .donate {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  .give__buttons { flex-direction: row; }

  /* a faixa verde de "outras causas" ocupa a largura toda, fora do grid */
  .causes {
    margin: 48px 0 0;
    padding: 48px 0;
  }
}

/* Espaço entre o header e o conteúdo no desktop */
@media (min-width: 768px) {
  main.layout.container { padding-top: 32px; }
  .side { top: 104px; }
}

/* card de causa com cor sólida no lugar da foto */
.cause__color { width: 100%; height: 190px; }
.cause { transition: transform 0.15s; }
.cause:hover { transform: translateY(-2px); }
