/* Homepage fundraiser band (2026-10-09). Everything for the campaign lives
   here and in index.html's `fundraiser` data — delete both when it ends.
   Desktop: pitch beside a vertical thermometer. Phones (<=760px): the
   thermometer turns horizontal and sits under the pitch. */
.mam-fund { max-width: 1280px; margin: 0 auto; padding: 28px 48px; } /* top of the page, right under the menu */
.mam-fund__card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; background: #fff; border: 1px solid #dde6ea; border-top: 4px solid oklch(0.78 0.13 75); border-radius: 10px; padding: 40px 44px; box-shadow: 0 10px 30px rgba(15, 39, 51, .08); }
.mam-fund__copy { display: flex; flex-direction: column; gap: 14px; }
.mam-fund__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: oklch(0.48 0.12 75); }
.mam-fund__live { width: 8px; height: 8px; border-radius: 50%; background: #d1462f; box-shadow: 0 0 0 0 rgba(209, 70, 47, .5); animation: mam-pulse 2s infinite; }
@keyframes mam-pulse { 70% { box-shadow: 0 0 0 8px rgba(209, 70, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(209, 70, 47, 0); } }
.mam-fund__title { font-family: 'Lora', serif; font-size: 34px; line-height: 1.18; margin: 0; color: #0f2733; font-weight: 600; text-wrap: pretty; }
.mam-fund__body { margin: 0; font-size: 16px; line-height: 1.65; color: #4a616d; max-width: 56ch; }
.mam-fund__nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.mam-fund__raised { font-family: 'Lora', serif; font-size: 40px; font-weight: 700; color: #10719a; line-height: 1; }
.mam-fund__of { font-size: 16px; color: #4a616d; }
.mam-fund__of strong { color: #0f2733; }
.mam-fund__cta { align-self: flex-start; margin-top: 8px; background: oklch(0.78 0.13 75); color: #0f2733 !important; text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 6px; }
.mam-fund__cta:hover { background: oklch(0.73 0.13 75); }

/* Thermometer: tube + bulb, filled from the bottom. */
.mam-thermo { order: -1; padding-right: 8px; display: grid; grid-template-columns: auto auto; gap: 14px; align-items: stretch; }
.mam-thermo__glass { position: relative; display: flex; flex-direction: column; align-items: center; }
.mam-thermo__tube { position: relative; width: 34px; height: 240px; background: #eef3f5; border: 3px solid #cfdde3; border-bottom: 0; border-radius: 17px 17px 0 0; overflow: hidden; }
.mam-thermo__fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#e2574a, #c8382a); animation: mam-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mam-rise { from { height: 0; } }
@keyframes mam-rise-x { from { width: 0; } }
.mam-thermo__bulb { width: 64px; height: 64px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #ec6a5c, #c8382a 70%); border: 3px solid #cfdde3; box-sizing: border-box; }
.mam-thermo__scale { position: relative; width: 112px; height: 240px; font-size: 12.5px; color: #5a7280; font-variant-numeric: tabular-nums; }
.mam-thermo__tick { position: absolute; left: 0; transform: translateY(50%); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mam-thermo__tick::before { content: ''; width: 10px; height: 2px; background: #cfdde3; }
.mam-thermo__tick--goal { font-weight: 700; color: #0f2733; }
.mam-thermo__tick--goal::before { background: #0f2733; }
.mam-thermo__tick--0 { display: none; }
/* "You are here": the current total at the fill line. */
.mam-thermo__now { position: absolute; left: 0; transform: translateY(50%); white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #c8382a; }
.mam-thermo__now::before { content: ''; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 8px solid #c8382a; }

@media (max-width: 760px) {
  .mam-fund { padding: 16px 16px; }
  /* One column; the thermometer comes right after the description. */
  .mam-fund__card { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 26px 22px; }
  .mam-fund__eyebrow { align-self: flex-start; }
  .mam-fund__copy { display: contents; }
  .mam-fund__eyebrow { order: 1; } .mam-fund__title { order: 2; } .mam-fund__body { order: 3; }
  .mam-thermo { order: 4; padding: 6px 0 4px; }
  .mam-fund__nums { order: 5; margin-top: 0; } .mam-fund__cta { order: 6; margin-top: 0; }
  .mam-fund__title { font-size: 25px; }
  .mam-fund__raised { font-size: 32px; }
  .mam-fund__cta { align-self: stretch; text-align: center; padding: 16px 20px; }
  /* Horizontal thermometer: bulb on the left, tube to the right. */
  .mam-thermo { grid-template-columns: 1fr; gap: 8px; }
  .mam-thermo__glass { flex-direction: row-reverse; justify-content: flex-end; }
  .mam-thermo__tube { width: auto; flex: 1; height: 28px; border: 3px solid #cfdde3; border-left: 0; border-radius: 0 14px 14px 0; }
  .mam-thermo__fill { top: 0; bottom: 0; right: auto; height: auto !important; width: var(--pct); background: linear-gradient(90deg, #c8382a, #e2574a); animation-name: mam-rise-x; }
  .mam-thermo__bulb { width: 50px; height: 50px; margin: 0 -6px 0 0; flex: none; position: relative; z-index: 1; }
  .mam-thermo__scale { width: auto; height: 30px; margin-left: 44px; margin-right: 3px; }
  .mam-thermo__tick { top: 0; bottom: auto !important; left: var(--at); transform: translateX(-50%); flex-direction: column; gap: 2px; font-size: 11.5px; }
  .mam-thermo__tick::before { width: 2px; height: 8px; }
  .mam-thermo__tick--25, .mam-thermo__tick--75, .mam-thermo__now { display: none; }
  .mam-thermo__tick--goal { transform: translateX(-100%); align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .mam-fund__live { animation: none; }
  .mam-thermo__fill { animation: none; }
}
