/* Art handoff v2. Scope requires body.donate-page. No payment behavior. */
.donate-page{--paper:#f7f3e8;--ink:#233d32;--muted:#66665a;--gold:#ad8b44;--line:#cfc1a3;--green:#254b3b;--selected-text:#fff8e5;--tile:#fffdf6;--hover:#efe7d2;--focus:#816018;--disabled-bg:#deded3;--disabled-text:#5e6357;margin:0;color:var(--ink);font:16px/1.7 "Microsoft JhengHei","PingFang TC",sans-serif;background:#314936 url('assets/background/forest-town-day-1536.webp') center top/cover fixed no-repeat}
.donate-page[data-theme="night"]{--paper:#eae3d2;--ink:#253d33;--muted:#5e6054;--gold:#a48343;--line:#c1af8c;--green:#244637;--tile:#f3eddc;--hover:#dfd5bd;--focus:#785914;--disabled-bg:#d3d0c2;--disabled-text:#555b50;background-color:#192f2c;background-image:url('assets/background/forest-town-night-1536.webp')}
.donate-page *{box-sizing:border-box}.donate-page [hidden]{display:none!important}.donate-page button,.donate-page input,.donate-page textarea{font:inherit}.donate-page button{cursor:pointer}.donate-page a{color:inherit;text-underline-offset:4px}
.donate-page :is(button,a,input,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.donate-header{max-width:1200px;margin:auto;padding:18px 28px;display:flex;align-items:center;gap:20px;background:#19382deF;color:#f5e4b7;border-radius:0 0 18px 18px}
.donate-header .brand{display:flex;gap:10px;align-items:center;font-size:23px;font-weight:700;text-decoration:none}.donate-header .brand img{width:32px;height:32px}.donate-header .return-link{margin-left:auto;font-size:14px}.theme-switch{min-height:40px;padding:6px 16px;border-radius:22px;border:1px solid #dfc783;background:#e2c886;color:#233d32;font-size:14px!important}
.donate-layout{position:relative;display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);grid-template-areas:"intro payment" "art payment";grid-template-rows:auto 1fr;column-gap:40px;max-width:1200px;margin:48px auto 22px;padding:40px;border:1px solid var(--gold);border-radius:14px;background:var(--paper);box-shadow:0 20px 50px #0004;isolation:isolate}
.donate-layout::before{content:"";position:absolute;inset:7px;border:1px solid var(--line);border-radius:8px;pointer-events:none;z-index:-1}
.donate-layout::after{content:"";position:absolute;inset:9px;border-radius:7px;background:url('assets/ornaments/paper-grain.svg');opacity:.16;pointer-events:none;z-index:-1}
.paper-corner{position:absolute;width:32px;height:32px;pointer-events:none}.tl{top:0;left:0}.tr{top:0;right:0;transform:rotate(90deg)}.br{bottom:0;right:0;transform:rotate(180deg)}.bl{bottom:0;left:0;transform:rotate(270deg)}
.donate-intro{grid-area:intro;text-align:center;padding:12px 0 0}.eyebrow{font-size:12px;letter-spacing:1.6px;color:#80613b;margin:0 0 18px}.donate-intro h1{font:700 clamp(34px,3.4vw,48px)/1.28 "Microsoft JhengHei",sans-serif;letter-spacing:1px;margin:0 0 14px;text-wrap:balance}.donate-intro h2{font:700 26px/1.45 "Microsoft JhengHei",sans-serif;color:#7a5a32;margin:0 0 18px}.lead{font-size:16px;color:var(--muted);line-height:1.9;margin:0 auto;max-width:28em}.art-divider{display:block;width:78%;height:24px;margin:18px auto 0}
.donate-art{grid-area:art;margin:0;align-self:center;text-align:center}.donate-art .forest{display:block;width:calc(100% + 24px);max-width:none;margin:8px -12px 0;height:auto;aspect-ratio:3/2;object-fit:contain}.donate-art figcaption{font-size:14px;line-height:1.75;color:var(--muted);margin:12px 0 4px}
.donate-payment{grid-area:payment;min-width:0;padding:8px 0 0 32px;border-left:1px solid var(--line)}.donate-payment h2{font-size:28px;line-height:1.4;margin:0 0 12px;font-weight:700}.payment-intro{font-size:14px;color:var(--muted);margin:0 0 22px}
.methods,.coins{display:flex;gap:6px;background:#dfdfd14d;border-radius:12px;padding:5px}.methods button,.coins button{flex:1;min-height:44px;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font-weight:700}.methods button:hover,.coins button:hover{background:var(--hover)}.methods button[aria-pressed="true"],.coins button[aria-pressed="true"]{background:var(--green);color:var(--selected-text)}
.hint{font-size:14px;color:var(--muted);margin:20px 0 12px}.amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.amounts button{position:relative;min-width:0;min-height:126px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--tile);color:var(--ink);text-align:left;transition:background .12s,border-color .12s}.amounts button:hover{background:var(--hover);border-color:var(--gold)}.amounts button:active{box-shadow:inset 0 2px 5px #0002}.amounts strong{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:22px;line-height:1.3;margin-bottom:10px}.amount-icon{width:40px;height:40px;object-fit:contain;flex:none}.amounts button>span{display:block;font-size:14px;line-height:1.65;color:var(--muted)}.amounts button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:var(--selected-text);box-shadow:inset 0 0 0 1px #e4ce9033}.amounts button[aria-pressed="true"]>span{color:#f0eedb}.amounts button[aria-pressed="true"]::after{content:"";position:absolute;top:-9px;right:12px;width:20px;height:20px;border-radius:50%;background:var(--green) url('assets/ornaments/check.svg') center/14px no-repeat;border:2px solid var(--paper)}.amounts .wide{grid-column:1/-1;min-height:100px}.wide strong{font-size:20px}
.selection{margin:20px 0 12px;font-size:16px;font-weight:700}.primary{width:100%;min-height:52px;padding:12px 18px;border:1px solid transparent;border-radius:10px;background:#243f58;color:#fff;font-size:18px!important;font-weight:700;line-height:1.45}.primary:hover:not(:disabled){background:#304e69}.primary:active:not(:disabled){background:#1a3045}.primary:disabled{background:var(--disabled-bg);color:var(--disabled-text);border-color:#b6b8ac;cursor:not-allowed}.fine{font-size:13px;line-height:1.8;color:var(--muted);margin:10px 0}.thanks{font-size:14px;text-align:center;border-top:1px solid var(--line);padding-top:16px;margin:20px 0 0;color:var(--muted)}
.donate-page label{display:block;margin:14px 0 6px;font-size:14px}.donate-page input,.donate-page textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--tile);color:var(--ink);padding:10px 12px}.network{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;margin:16px 0 8px}.network strong{font-size:20px}.qr{display:block;width:210px;height:auto;max-width:100%;margin:18px auto 0;background:white;image-rendering:pixelated;border:0;border-radius:0;padding:0;box-shadow:none}.qr-note{text-align:center;font-size:13px;color:var(--muted);margin:8px 0 16px}.address-row{display:flex;align-items:stretch;gap:8px}.address-row textarea{font:14px/1.65 Consolas,monospace;overflow-wrap:anywhere;word-break:break-all;resize:none;min-height:76px;overflow:auto}.address-row button{min-width:60px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--tile);color:var(--ink)}.address-row button:hover{background:var(--hover)}#copy-status,#amount-error{font-size:13px;min-height:22px;margin:6px 0;color:var(--muted)}.transfer-note{padding:16px;border:1px solid var(--line);background:#b99c5420;border-radius:10px;font-size:14px;line-height:1.8}.transfer-note p{margin:8px 0 0;color:var(--muted)}
.donate-footer{text-align:center;color:#fff0c4;font-size:13px;background:#17352bdd;border-radius:12px;width:fit-content;max-width:90%;margin:0 auto 24px;padding:10px 20px}.preview-note{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0}
@media(max-width:1240px){.donate-layout{margin:32px 24px 20px;padding:32px;column-gap:28px}.donate-payment{padding-left:24px}.donate-intro h1{font-size:38px}.donate-intro h2{font-size:24px}}
@media(max-width:960px){.donate-layout{grid-template-columns:1fr;grid-template-areas:"intro" "payment" "art";gap:20px;max-width:650px;margin:24px auto;padding:28px}.donate-intro{padding:0}.donate-intro .eyebrow{margin-bottom:10px}.donate-intro h1{font-size:34px;margin-bottom:8px}.donate-intro h2{font-size:22px;margin-bottom:10px}.lead{font-size:15px}.art-divider{display:none}.donate-payment{padding:22px 0 0;border-left:0;border-top:1px solid var(--line)}.donate-payment h2{font-size:25px}.payment-intro{margin-bottom:16px}.donate-art .forest{width:100%;max-width:440px;margin:0 auto}.donate-art figcaption{margin-top:6px}.donate-art{padding-top:10px}.donate-header{padding:16px 20px;flex-wrap:wrap;gap:12px}.donate-header .brand{font-size:20px}.donate-page{background-attachment:scroll}}
@media(max-width:700px){.donate-layout{margin:16px 12px;padding:24px 18px}.donate-header .return-link{font-size:13px}.theme-switch{min-height:40px}.donate-header{padding:12px 16px}.donate-intro h1{font-size:30px}.donate-intro h2{font-size:20px}.lead{font-size:14px;line-height:1.75}.donate-payment h2{font-size:24px}.amounts{gap:10px}.amounts button{padding:12px;min-height:148px}.amounts strong{font-size:20px;gap:4px}.amount-icon{width:36px;height:36px}.amounts button>span{font-size:13px}.amounts .wide{min-height:100px}.fine{font-size:13px}.donate-art .forest{max-width:340px}}
@media(max-width:350px){.amounts{grid-template-columns:1fr}.amounts button{min-height:106px}.donate-intro h1{font-size:27px}.donate-header .brand{font-size:18px}.address-row{flex-direction:column}.address-row button{align-self:flex-end;min-height:40px}.donate-layout{padding:22px 16px}.donate-payment h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.amounts button{transition:none}}

.donate-header :is(button,a):focus-visible{outline-color:#fff0bf}
/* Integration fix: production checkout is an <a>, not a <button>.
   Override .donate-page a{color:inherit}; aria-disabled is independent of :disabled. */
.donate-page .primary{display:block;text-align:center;text-decoration:none;color:#fff}
.donate-page .primary:visited{color:#fff}
.donate-page .primary:hover:not(:disabled):not([aria-disabled="true"]){background:#304e69;color:#fff}
.donate-page .primary:active:not(:disabled):not([aria-disabled="true"]){background:#1a3045;color:#fff}
.donate-page .primary:is(:disabled,[aria-disabled="true"]){background:var(--disabled-bg);color:var(--disabled-text);border-color:#b6b8ac;cursor:not-allowed;box-shadow:none}


#paypal-checkout{margin-top:20px}

.donate-page{background-size:auto 900px;background-repeat:repeat-x;background-color:#eae8dc}.donate-layout::after{opacity:.035}.donate-intro h1,.donate-intro h2{font-family:"Noto Serif TC","PMingLiU",serif}.donate-intro h1{font-size:40px}.donate-page[data-theme="night"]{background-color:#10261d}.donate-page .site-footer{color:#f3eedb}.donate-page .site-header a{color:inherit}.donate-page .site-header .site-download{color:#233d32}
@media(max-width:650px){.donate-intro h1{font-size:30px}.donate-page{background-size:auto 720px}}

.donate-page{background-attachment:scroll;background-repeat:no-repeat}@media(max-width:650px){.donate-layout{width:calc(100% - 32px);margin-inline:auto;min-width:0}}
