/* Public visual layer. All campaign numbers are supplied by app.mjs. */
.accounts{padding-bottom:35px}
.first-call{box-shadow:0 18px 46px #174a3414}
.first-call h1{font-weight:600}
.radio-card{box-shadow:0 18px 42px #174a341a}
.radio-card.is-playing .radio-ring,.radio-card.is-playing .radio-wave i{animation:none}
.radio-card.is-playing .radio-ring{border-color:#d6a755a6}
.radio-wave i{transition:transform .09s linear;will-change:transform}
.radio-controls button:active,.button:active,.account-copy:active{transform:scale(.975)}
.button,.account-copy,.header-share,.quick-copy-actions button{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}
.button:hover,.account-copy:hover,.header-share:hover,.quick-copy-actions button:hover{box-shadow:0 8px 22px #104c331b}
.button:focus-visible,.account-copy:focus-visible,.milestone-button:focus-visible,.header-share:focus-visible,.mobile-donate:focus-visible{outline:3px solid #e4a757;outline-offset:3px}
.account-card,.donation-next,.group-panel{box-shadow:0 11px 30px #174a340c}
.bottom-group{padding-block:20px 56px}
.bottom-group .group-panel{margin:0}
#accountNumbers{scroll-margin-top:28px}

.campaign-progress{position:relative;isolation:isolate;margin:0 0 20px;padding:31px 36px 23px;overflow:hidden;border:1px solid #d8e9da;border-radius:24px;background:#fff;box-shadow:0 23px 65px #10402a15;color:#173b2e}
.campaign-progress:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#a2d7ad,#137f5b);z-index:1}
.progress-top{display:flex;align-items:start;justify-content:space-between;gap:20px}
.progress-top .eyebrow{margin:0 0 5px;color:#47775b;font-size:11px;letter-spacing:0}
.campaign-progress h2{font-size:clamp(25px,2.8vw,38px);font-weight:600;line-height:1.4;margin:0;color:#0d4936}
.progress-top p{margin:5px 0 0;color:#537566;font-size:13px;line-height:1.7}
.progress-percentage{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:142px;padding:11px 16px;border:1px solid #dcebe0;border-radius:16px;background:#f4faf5;text-align:center}
.progress-percentage strong{font-size:clamp(29px,3.2vw,43px);font-weight:600;line-height:1.22;white-space:nowrap;color:#076549;font-variant-numeric:tabular-nums}
.progress-percentage span{font-size:11px;color:#63806d}
.progress-amounts{display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:12px;margin:22px 0 23px}
.progress-amounts>div{min-width:0;padding:15px 17px;border-radius:14px;border:1px solid #e3ebe2;background:#fafcf9;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.progress-amounts .progress-raised{background:#eef7f0;border-color:#d3e8d8}
.progress-amounts span{font-size:11px;color:#5b7667}
.progress-amounts strong{font-size:clamp(19px,2.2vw,28px);font-weight:600;color:#144936;line-height:1.45;white-space:nowrap;font-variant-numeric:tabular-nums;max-width:100%;letter-spacing:-.035em}
.progress-amounts .progress-raised strong{font-size:clamp(24px,2.9vw,38px);color:#075b43}
.progress-amounts small{font-size:10px;color:#7a8e80}
.progress-main{padding:2px 5px 0}
.progress-scale,.stage-range{display:flex;justify-content:space-between;gap:14px;font-size:10px;color:#748b78}
.progress-track-wrap{height:42px;position:relative;margin:8px 0 1px}
.progress-main-meter{position:absolute;inset-inline:0;top:11px;height:20px;border-radius:30px;background:#e6eee6;box-shadow:inset 0 2px 4px #194c3210;overflow:hidden}
#overallFill{display:block;position:relative;width:0;height:100%;border-radius:inherit;background:linear-gradient(270deg,#075b43,#25976c 68%,#56b980);transition:width 1.05s cubic-bezier(.2,.7,.2,1)}
.progress-shine{position:absolute;right:-35%;top:0;width:28%;height:100%;background:linear-gradient(90deg,transparent,#ffffff7a,transparent);transform:skewX(-20deg);pointer-events:none}
.campaign-progress.is-loaded .progress-shine{animation:progress-glint 1s ease-in-out 1.15s 1 both}
@keyframes progress-glint{to{right:115%}}
.progress-marker{position:absolute;inset-inline-start:0;top:5px;width:31px;height:31px;border:6px solid #fff;border-radius:50%;background:#0a7652;box-shadow:0 2px 0 #075b43,0 2px 12px #073f3250;transform:translateX(50%);pointer-events:none;transition:inset-inline-start 1.05s cubic-bezier(.2,.7,.2,1)}
.milestone-track{position:absolute;inset:0;pointer-events:none}
.milestone-button{position:absolute;top:50%;inset-inline-start:var(--at);width:22px;height:22px;padding:0;border:2px solid #fff;border-radius:50%;transform:translateX(50%) translateY(-50%);pointer-events:auto;background:#d4ded4;box-shadow:0 1px 6px #133c2b55;color:#fff;font-family:system-ui,sans-serif;font-size:12px;font-weight:700;line-height:1;cursor:pointer;transition:background .2s ease,box-shadow .2s ease}
.milestone-button.complete{background:#0a7756}
.milestone-button.next{background:#dc7e27;box-shadow:0 0 0 4px #dc7e2738,0 1px 8px #74400b44;font-size:9px}
.milestone-button.future{background:#c3d2c4;color:#476651}
.milestone-button[aria-pressed=true]{outline:2px solid #d48734;outline-offset:3px}
.campaign-progress.is-loaded .milestone-button{animation:milestone-reveal .35s ease both;animation-delay:calc(var(--sequence) * 75ms)}
@keyframes milestone-reveal{from{opacity:0;filter:brightness(1.3)}to{opacity:1;filter:brightness(1)}}
.stage-legend{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;font-size:10px;color:#5c7968;white-space:nowrap;margin:2px -4px 0}
.stage-legend span:last-child{color:#0b6649;font-weight:700}
.stage-detail{min-height:36px;display:flex;align-items:center;margin-top:16px;padding:8px 13px;border:1px solid #e4eae1;border-radius:10px;background:#f9fbf7;color:#37634b;font-size:12px;line-height:1.5}
.stage-panel{display:grid;grid-template-columns:1fr auto;gap:0 20px;margin-top:17px;padding:19px 20px 16px;border:1px solid #e8e3d8;border-radius:15px;background:#fcfaf5}
.stage-panel .eyebrow{margin:0;color:#ad6b21;font-size:11px}
.stage-panel-heading strong{display:block;margin-top:2px;font-size:17px;color:#164c36;font-weight:600}
.stage-panel-heading p{margin:2px 0 0;color:#765a36;font-size:12px;line-height:1.6}
.stage-panel>strong{align-self:start;color:#bd6820;font-size:28px;line-height:1.3;font-variant-numeric:tabular-nums;font-weight:600}
.stage-range,.stage-meter,.stage-remaining{grid-column:1/-1}
.stage-range{margin:15px 0 8px;color:#796e5b}
.stage-meter{height:9px;background:#efe7dc;border-radius:20px;overflow:hidden}
.stage-meter span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(270deg,#c87d29,#e7a354);transition:width 1.05s cubic-bezier(.2,.7,.2,1)}
.stage-remaining{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:13px 0 0;color:#6b705f;font-size:12px}
.stage-remaining strong{color:#a45b1d;font-size:13px;font-weight:600}
.campaign-progress .data-note{margin:12px 2px 0;color:#758c7a;font-size:10px;line-height:1.6}
.campaign-progress.stage-celebrate{animation:stage-glow 1.05s ease-out 1}
@keyframes stage-glow{35%{box-shadow:0 0 0 7px #df9b3630,0 23px 65px #10402a15}100%{box-shadow:0 23px 65px #10402a15}}

.mobile-donate{display:none}
.share-dialog{width:min(420px,calc(100vw - 30px));border:1px solid #d5e6d8;border-radius:18px;padding:24px;background:#fff;color:#173d30;box-shadow:0 25px 70px #092e2260}
.share-dialog::backdrop{background:#0a302792;backdrop-filter:blur(3px)}
.share-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:10px}
.share-dialog h2{font-size:23px;margin:0}
.share-dialog-head button{border:1px solid #d4e3d6;border-radius:50%;background:white;width:34px;height:34px;color:#315d44;font-size:23px;line-height:1}
.share-dialog p{font-size:13px;color:#627a68;line-height:1.8;margin:10px 0 20px}
.share-dialog-actions{display:grid;gap:9px}
.share-dialog-actions a,.share-dialog-actions button{display:block;text-align:center;background:#f0f7f0;border:1px solid #d5e6d8;border-radius:10px;color:#075b43;padding:12px;font-size:13px;font-weight:700;min-height:46px}
.share-dialog-actions a{background:#075b43;color:white;border-color:#075b43}

body.motion-ready [data-reveal]:not(.is-visible){opacity:0;transform:translateY(12px)}
body.motion-ready [data-reveal]{transition:opacity .42s ease,transform .42s ease}

@media(max-width:760px){
  .campaign-progress{padding:23px 20px 19px;margin-bottom:25px;border-radius:19px}
  .progress-amounts{grid-template-columns:1fr 1fr;margin:17px 0 19px;gap:8px}
  .progress-amounts .progress-raised{grid-column:1/-1;padding:13px 15px}
  .progress-amounts>div{padding:11px 13px}
  .progress-amounts strong{font-size:clamp(16px,4.2vw,23px)}
  .progress-amounts .progress-raised strong{font-size:clamp(27px,7.6vw,38px)}
  .progress-percentage{min-width:112px;padding:8px 10px}
  .progress-percentage strong{font-size:30px}
  .stage-legend{font-size:9px}
}
@media(max-width:640px){
  .accounts{padding-top:10px;padding-bottom:27px}
  .campaign-progress{padding:16px 15px 15px;margin-bottom:14px}
  .progress-top{gap:8px}
  .progress-top .eyebrow{font-size:10px}
  .campaign-progress h2{font-size:23px;line-height:1.32}
  .progress-top p{font-size:11px;line-height:1.55}
  .progress-percentage{min-width:94px;padding:7px 5px;border-radius:12px}
  .progress-percentage strong{font-size:25px}.progress-percentage span{font-size:9px}
  .progress-amounts{margin:12px 0 13px}
  .progress-amounts span{font-size:10px}.progress-amounts small{font-size:9px}
  .progress-track-wrap{margin:8px 4px 0}
  .milestone-button{width:18px;height:18px;font-size:10px}
  .progress-marker{width:26px;height:26px;border-width:5px;top:8px}
  .stage-detail{font-size:11px;margin-top:12px}
  .stage-panel{padding:14px 13px;margin-top:13px;gap:0 7px}
  .stage-panel-heading strong{font-size:15px}.stage-panel-heading p{font-size:11px}
  .stage-panel>strong{font-size:22px}
  .stage-remaining{display:block}.stage-remaining strong{display:block;margin-top:3px}
  .mobile-donate{display:flex;align-items:center;justify-content:center;gap:8px;position:fixed;z-index:17;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);padding:10px 17px;border:1px solid #d0a35f;border-radius:30px;background:#075b43;color:#fff;box-shadow:0 8px 26px #073e3280;font-size:12px;font-weight:700;transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
  .mobile-donate span{font-size:16px;line-height:1}
  .mobile-donate.is-hidden{opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-50%) translateY(12px)}
  body:has(dialog[open]) .mobile-donate{opacity:0;visibility:hidden;pointer-events:none}
  .toast{bottom:calc(66px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);text-align:center}
  .site-footer{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
}
@media(max-width:370px){
  .campaign-progress{padding-inline:12px}
  .campaign-progress h2{font-size:21px}
  .progress-percentage{min-width:88px}
  .progress-percentage strong{font-size:23px}
  .progress-amounts>div{padding-inline:9px}
  .stage-legend{font-size:8px;letter-spacing:-.02em}
}
@media(prefers-reduced-motion:reduce){
  .campaign-progress *,body.motion-ready [data-reveal],.mobile-donate,.button,.account-copy,.radio-wave i{animation:none!important;transition:none!important}
}
