/* WARTIP donate — full-bleed footer, all layout changes are isolated to this footer. */
html.wt-donate-night body > .container > footer.wt-public-footer {
  position: relative !important;
  left: 50% !important;
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  min-height: 330px;
  margin: clamp(18px, 2.3vw, 28px) 0 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
  color: #e9e6f7 !important;
  background: linear-gradient(180deg, #0b0914 0%, #100d1b 46%, #141024 100%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  isolation: isolate;
}
html.wt-donate-night body > .container > footer.wt-public-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 120% at -8% -26%, rgba(154,92,255,.18), transparent 72%),
    radial-gradient(ellipse 34% 84% at 100% 110%, rgba(77,103,255,.14), transparent 76%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0));
}
html.wt-donate-night .wt-public-footer *,
html.wt-donate-night .wt-public-footer *::before,
html.wt-donate-night .wt-public-footer *::after { box-sizing: border-box; }
html.wt-donate-night .wt-public-footer-inner {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-inline: auto;
  padding: 42px 0 20px;
}
html.wt-donate-night .wt-public-footer-main {
  display: grid;
  grid-template-columns: minmax(160px,1.05fr) minmax(240px,1.55fr) minmax(138px,.9fr) minmax(160px,1.05fr);
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
  padding: 0 0 37px;
}
html.wt-donate-night .wt-public-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  max-width: none;
  min-width: 0;
}
html.wt-donate-night .wt-public-footer-logo { display: inline-flex; align-items: center; text-decoration: none; }
html.wt-donate-night .wt-public-footer-logo img {
  display: block;
  width: 154px;
  height: 74px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 14px rgba(5,4,14,.20));
}
html.wt-donate-night .wt-public-footer-brand-tag {
  color: rgba(236,231,248,.70);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
html.wt-donate-night .wt-public-footer-intro h2 {
  margin: 0 0 11px !important;
  color: #fff !important;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 750;
  line-height: 1.45;
}
html.wt-donate-night .wt-public-footer-intro p,
html.wt-donate-night .wt-public-footer-extra p {
  color: rgba(232,227,244,.76) !important;
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.85;
}
html.wt-donate-night .wt-public-footer-intro .wt-public-footer-intro-note {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: #fff !important;
  margin-top: 14px !important;
  font-size: 12px;
}
html.wt-donate-night .wt-public-footer-intro-note i { color: #caa8ff; flex: none; }
html.wt-donate-night .wt-public-footer-nav,
html.wt-donate-night .wt-public-footer-extra {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  gap: 7px;
}
html.wt-donate-night .wt-public-footer-nav h3,
html.wt-donate-night .wt-public-footer-extra h3 {
  margin: 1px 0 8px !important;
  font-size: 14px;
  line-height: 1.45;
  color: #fff !important;
  font-weight: 750;
}
html.wt-donate-night .wt-public-footer-nav a,
html.wt-donate-night .wt-public-footer-extra a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 31px;
  max-width: 100%;
  margin: 0;
  padding: 3px 0;
  color: rgba(238,233,248,.82) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  box-shadow: none !important;
  transition: color .18s ease, transform .18s ease;
}
html.wt-donate-night .wt-public-footer-nav a i,
html.wt-donate-night .wt-public-footer-extra a i { color: #c8b0ff; font-size: 13px; flex: none; }
html.wt-donate-night .wt-public-footer-nav a:hover,
html.wt-donate-night .wt-public-footer-nav a:focus-visible,
html.wt-donate-night .wt-public-footer-extra a:hover,
html.wt-donate-night .wt-public-footer-extra a:focus-visible {
  color: #fff !important;
  transform: translateX(2px);
}
html.wt-donate-night .wt-public-footer-extra a { margin-top: 12px; }
html.wt-donate-night .wt-public-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 22px;
  border-top: 1px solid rgba(180,160,255,.18);
  padding-top: 19px;
}
html.wt-donate-night .wt-public-footer-bottom small {
  color: rgba(232,227,244,.70) !important;
  font-size: 11px;
  line-height: 1.6;
}
html.wt-donate-night .wt-public-footer-safety { display: inline-flex; align-items: baseline; gap: 7px; }
html.wt-donate-night .wt-public-footer-safety i { color: #c8b0ff; flex: none; }
@media (max-width: 980px) {
  html.wt-donate-night .wt-public-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }
  html.wt-donate-night .wt-public-footer-inner { padding-top: 34px; }
}
@media (max-width: 600px) {
  html.wt-donate-night .wt-public-footer-inner {
    width: calc(100% - 40px);
    padding-top: 31px;
    padding-bottom: 22px;
  }
  html.wt-donate-night .wt-public-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 27px 15px;
    padding-bottom: 28px;
  }
  html.wt-donate-night .wt-public-footer-brand,
  html.wt-donate-night .wt-public-footer-intro { grid-column: 1 / -1; }
  html.wt-donate-night .wt-public-footer-logo img { width: 139px; height: 64px; }
  html.wt-donate-night .wt-public-footer-extra a { margin-top: 8px; }
  html.wt-donate-night .wt-public-footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html.wt-donate-night .wt-public-footer-nav a,
  html.wt-donate-night .wt-public-footer-extra a { transition: none !important; }
}


/* v3 · dark page-matched footer tone */
html.wt-donate-night body > .container > footer.wt-public-footer::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(186,130,255,.10), rgba(114,87,255,.22), rgba(186,130,255,.10));
  pointer-events: none;
}
html.wt-donate-night .wt-public-footer-nav a:hover,
html.wt-donate-night .wt-public-footer-nav a:focus-visible,
html.wt-donate-night .wt-public-footer-extra a:hover,
html.wt-donate-night .wt-public-footer-extra a:focus-visible {
  color: #ffffff !important;
}


/* v4 · reduce only the empty vertical gap between donation content and footer.
   The support layout already had a 38px bottom margin, in addition to the
   footer's margin-top; prevent the two margins from stacking up. */
html.wt-donate-night #wtPublicView > .layout.wt-clean-layout {
  margin-bottom: 0 !important;
}
@media (max-width: 620px) {
  html.wt-donate-night body > .container > footer.wt-public-footer {
    margin-top: 20px !important;
  }
}

/* v97: keep the footer balanced when only one public service is enabled. */
html.wt-donate-night .wt-public-footer-main.wt-single-service {
  grid-template-columns: minmax(160px,1.05fr) minmax(240px,1.65fr) minmax(160px,1.05fr);
}
@media (max-width:980px) {
  html.wt-donate-night .wt-public-footer-main.wt-single-service {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:600px) {
  html.wt-donate-night .wt-public-footer-main.wt-single-service {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
