/* One bottom surface grows into a screen; only its inner content scrolls. */
:root{--support-panel-height:0px;--support-ease:cubic-bezier(.22,.61,.36,1)}
.support-surface{position:fixed;z-index:50;inset:auto 0 0;width:100%;height:var(--support-panel-height);max-height:100vh;max-height:100dvh;overflow:hidden;background:#0b1110;color:#f0ecdf;border-top:1px solid #87927545;opacity:0;transform:translateY(16px);pointer-events:none;transition:height 460ms var(--support-ease),opacity 280ms ease,transform 460ms var(--support-ease);isolation:isolate}
.support-surface.is-visible{opacity:1;transform:none;pointer-events:auto}
.support-surface[hidden],.support-surface [hidden]{display:none!important}
.support-surface :is(button,a,input,textarea,summary):focus-visible{outline:2px solid #e4c995;outline-offset:4px}
.support-surface :is(button,a){touch-action:manipulation}
.support-surface a{color:#dcc69f;text-decoration-thickness:1px;text-underline-offset:4px}
.support-surface a:hover{color:#fff0d4}
.support-surface button:disabled{cursor:default;opacity:.45}
.support-invite{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px 48px;max-width:1600px;min-height:clamp(124px,20dvh,192px);margin:auto;padding:22px 48px calc(22px + env(safe-area-inset-bottom))}
.support-invite-copy{max-width:760px;min-width:0}
.support-invite h2{font:400 25px/1.2 'Cormorant Garamond',Georgia,serif;letter-spacing:.01em;margin:0 0 7px}
.support-invite p{font-size:12px;line-height:1.75;color:#bec7b7;margin:0;max-width:680px}
.support-invite-actions{display:flex;align-items:center;gap:12px}
.support-invite-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:126px;padding:11px 18px;border:1px solid #859078;color:#e6ddc5;font-size:12px;line-height:1.5;text-align:center;transition:color .18s,border-color .18s,background .18s}
.support-invite-actions button:hover{background:#c7aa780c;border-color:#ceb386;color:#fff0ce}
.support-panel{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:radial-gradient(ellipse at 70% 0,#19231c50,transparent 55%),#0b1110}
.support-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:20px;padding:24px 48px 18px;border-bottom:1px solid #e9e7d614}
.support-brand{display:inline-flex;align-items:center;gap:20px;min-height:44px;flex-shrink:0;white-space:nowrap;font:400 27px/1 'Cormorant Garamond',Georgia,serif;letter-spacing:.12em;text-decoration:none!important;color:#f0ecdf!important}
.support-brand svg{width:22px;height:34px;stroke-width:1.3}
.support-close{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:12px;min-width:44px;min-height:44px;color:#c5ccbf;font-size:12px;line-height:1.5}
.support-close svg{width:20px;height:20px}
.support-close:hover{color:#fff0ce}
.support-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#63705e transparent;padding:clamp(24px,4.5vh,54px) 48px calc(30px + env(safe-area-inset-bottom));scroll-padding-block:24px;-webkit-overflow-scrolling:touch}
.support-view,.support-legal{width:100%;max-width:1060px;margin-inline:auto;min-width:0}
.support-heading,.support-title{font:400 clamp(38px,4.5vw,54px)/1.08 'Cormorant Garamond',Georgia,serif;letter-spacing:-.02em;color:#f0ecdf;margin:0 0 22px;text-wrap:balance}
.support-heading{max-width:850px}
.support-title{font-size:clamp(34px,3.5vw,44px)}
.support-lead{max-width:690px;font-size:14px;line-height:1.85;color:#bdc6b5;margin:0 0 34px}
.support-back{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin:-8px 0 16px;color:#bdc5b4;font-size:12px;text-decoration:none}
.support-back svg{width:17px;height:17px}
.support-back:hover{color:#f0dfbc}
.support-legal{margin-top:36px;padding-top:20px;border-top:1px solid #e9e7d622;color:#9fab99;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.support-legal p{margin:0 0 9px}
.support-legal nav,.support-legal-links{display:flex;flex-wrap:wrap;gap:2px 20px;margin:2px 0 8px}
.support-legal a{display:inline-flex;align-items:center;min-height:36px;color:#bec5b3}
.support-share-card{display:block;width:100%;height:auto;object-fit:contain;border:1px solid #a5b1982e;background:#080d0b}
.share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.share-actions :is(button,a),.support-action-row :is(button,a),.support-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;min-width:0;padding:11px 14px;border:1px solid #84927470;color:#e0d7c3;font-size:12px;line-height:1.5;text-decoration:none;text-align:center;transition:background .18s,border-color .18s,color .18s}
.share-actions :is(button,a):hover,.support-action-row :is(button,a):hover,.support-secondary:hover{border-color:#d3b57f;background:#c7aa7809;color:#fff0d4}
.share-actions svg{width:18px;height:18px}
.support-view[data-view=bank],.support-view[data-view=result],.support-view[data-view=manage]{max-width:720px}
#donation-form{margin-top:26px;min-width:0}
.amount-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}
.amount-option{min-height:56px;padding:12px 8px;border:1px solid #a7b2974d;color:#d3d8c7;font-size:17px;line-height:1.4;transition:color .18s,border-color .18s,background .18s;font-variant-numeric:tabular-nums}
.amount-option:hover{border-color:#c7aa78}
.amount-option[aria-pressed=true]{border-color:#c7aa78;background:#c7aa7816;color:#f8e6bf}
.donation-custom{display:flex;align-items:center;gap:14px;margin:14px 0 22px;color:#bec8b4;font-size:13px;line-height:1.6}
.donation-custom label{flex:1}
.support-input,#donation-amount{display:block;width:100%;min-width:0;min-height:48px;padding:10px 2px;border:0;border-bottom:1px solid #a4b08d73;border-radius:0;background:transparent;color:#f0ecdf;font:400 16px/1.5 'Open Sans',Arial,sans-serif;box-shadow:none}
#donation-amount{max-width:210px;text-align:right;font-variant-numeric:tabular-nums}
.support-input::placeholder,#donation-amount::placeholder{color:#8c9784;opacity:1}
.support-field{display:block;margin:22px 0;color:#d9dece;font-size:12px;line-height:1.8}
.support-field label{display:block;margin-bottom:5px}
.support-field small{display:block;color:#aeb9a4;font-size:11px;line-height:1.7;margin-top:8px}
.donation-frequency,.support-consent{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0;color:#d3d9c9;font-size:13px;line-height:1.65;cursor:pointer}
.support-consent{font-size:12px;color:#b9c4ae}
.donation-frequency input,.support-consent input{appearance:auto;flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#c7aa78;cursor:pointer}
.donation-schedule{margin:4px 0 20px;padding:0 0 0 32px;color:#b9c4ad;font-size:12px;line-height:1.85}
.support-availability{margin:18px 0;padding:17px 0;border-block:1px solid #a8b79730;font-size:12px;line-height:1.85;color:#c1cbb7}
.support-availability p{margin:0 0 9px}
.support-availability p:last-child{margin-bottom:0}
.support-pay{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:22px 0 12px;padding:13px 22px;background:#e7dac0;color:#142017;border:1px solid #e7dac0;font-size:14px;line-height:1.6;text-align:center;transition:background .18s,color .18s}
.support-pay:hover:not(:disabled){background:#f3e8d0;color:#0b1110}
.support-pay:disabled{background:#e7dac0;color:#142017}
.support-payment-status{font-size:12px;line-height:1.8;color:#c7d0bc;overflow-wrap:anywhere}
.support-payment-status:empty{display:none}
.support-error{color:#ecc2b6;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.support-requisites{margin:24px 0}
.support-requisites dl{display:grid;grid-template-columns:minmax(125px,.7fr) minmax(0,1.4fr);gap:0;margin:0;border-top:1px solid #9aab813b}
.support-requisites dt,.support-requisites dd{padding:15px 0;border-bottom:1px solid #9aab813b;font-size:13px;line-height:1.8}
.support-requisites dt{color:#aebba3;padding-right:22px}
.support-requisites dd{min-width:0;margin:0;color:#e1e3d5;overflow-wrap:anywhere;user-select:text}
.support-requisites button{min-height:44px;padding:10px 0;color:#d9bd8c;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.support-state{padding:24px 0;text-align:center}
.support-state>svg{width:42px;height:42px;margin:0 auto 25px;color:#d3bd92}
.support-state h2{font:400 48px/1.08 'Cormorant Garamond',Georgia,serif;margin:0 0 20px}
.support-state p{font-size:14px;line-height:1.85;color:#bdc7b3}
.support-state-amount{font:400 46px/1.2 'Cormorant Garamond',Georgia,serif;color:#ead9b3;margin:20px 0}
.support-action-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:25px}
.support-action-row>*{flex:1 1 180px}
#support-button{display:grid;place-items:center;min-width:28px;min-height:44px;color:#c8cebf}
#support-button svg{width:19px;height:19px;stroke-width:1.2}
#project-documents-button{min-height:36px;color:#bac5ad;font-size:11px;line-height:1.7}

/* One clear sharing action, then the donation form on the same page. */
.support-home-heading{margin-bottom:28px}
.support-home-heading .support-heading{margin-bottom:10px}
.support-home-heading .support-lead{margin:0;font-size:13px}
.support-sharing{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,52px)}
.support-sharing-message{min-width:0}
.support-message-label{display:block;margin:0 0 13px;color:#aebb9f;font-size:10px;line-height:1.6;letter-spacing:.06em}
.support-message{display:block;width:100%;min-height:132px;max-height:260px;margin:0 0 23px;padding:0 0 14px;border:0;border-bottom:1px solid #9ba88d38;border-radius:0;background:transparent;color:#e0e2d5;resize:none;font:400 16px/1.85 'Open Sans',Arial,sans-serif;scrollbar-width:thin;scrollbar-color:#63705e transparent}
.support-message:focus{border-bottom-color:#c7aa78}
.support-share-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;width:100%;max-width:320px;padding:13px 22px;border:1px solid #e7dac0;background:#e7dac0;color:#142017;font-size:14px;line-height:1.6;transition:background .18s,color .18s}
.support-share-primary svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5}
.support-share-primary:hover{background:#f3e8d0;color:#0b1110}
.support-donation-section{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:start;gap:clamp(28px,5vw,64px);margin-top:48px;padding-top:38px;border-top:1px solid #e9e7d622;scroll-margin-top:24px}
.support-donation-intro .support-title{max-width:360px;margin-bottom:15px}
.support-donation-intro .support-lead{max-width:340px;font-size:13px;margin-bottom:0}
.support-donation-section #donation-form{margin-top:0}

/* Sharing options stay out of the reading and support flow until requested. */
.support-share-sheet{position:absolute;inset:0;z-index:8;display:grid;align-items:end;justify-items:center;padding:28px;opacity:0;pointer-events:none;transition:opacity 220ms ease}
.support-share-sheet.is-open{opacity:1;pointer-events:auto}
.support-share-backdrop{position:absolute;inset:0;background:#030806b8;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.support-share-dialog{position:relative;z-index:1;width:100%;max-width:520px;max-height:calc(100dvh - 56px);min-height:0;padding:0 26px calc(22px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#63705e transparent;background:#111914;border:1px solid #b9c4a938;border-radius:22px;box-shadow:0 20px 80px #0008;transform:translateY(24px);transition:transform 260ms var(--support-ease);outline:none}
.support-share-sheet.is-open .support-share-dialog{transform:none}
.support-share-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:78px;padding:15px 0 13px;background:#111914}
.support-share-heading h2{margin:0;color:#f0ecdf;font:400 36px/1.1 'Cormorant Garamond',Georgia,serif}
.support-share-close{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;margin-right:-10px;color:#b9c4ae;border-radius:50%;transition:color .18s,background .18s}
.support-share-close:hover{background:#c7aa780d;color:#fff0d4}
.support-share-close svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.3}
.support-share-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;margin:8px 0 16px}
.support-share-options .support-share-option{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-height:96px;min-width:0;padding:8px 3px;color:#d8ddcf;font:400 12px/1.5 'Open Sans',Arial,sans-serif;text-decoration:none;text-align:center;border-radius:12px;transition:color .18s,background .18s}
.support-share-options .support-share-option:hover{color:#fff0d4;background:#c7aa7808}
.support-share-option-icon{display:grid;place-items:center;flex:none;width:50px;height:50px;border:1px solid #a7b29755;border-radius:50%;color:#d9c49a;background:#c7aa7804;transition:border-color .18s,background .18s,transform .18s}
.support-share-option:hover .support-share-option-icon{border-color:#d3b57f;background:#c7aa780b;transform:translateY(-2px)}
.support-share-option-icon svg{display:block;width:27px;height:27px;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.support-share-status{margin:8px 0 16px;color:#d8dfca;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.support-share-status.support-error{color:#ecc2b6}
.support-share-status:empty{display:none}
.support-share-extra{border-top:1px solid #a7b2972e}
.support-share-extra summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:12px 0;color:#b7c2ab;font-size:12px;line-height:1.6;cursor:pointer;list-style:none}
.support-share-extra summary::-webkit-details-marker{display:none}
.support-share-extra summary svg{flex:none;width:18px;height:18px;stroke:currentColor;stroke-width:1.2;transition:transform .18s}
.support-share-extra[open] summary svg{transform:rotate(180deg)}
.support-share-extra-content{padding-top:4px}
.support-share-extra .share-actions{margin:0 0 18px}
.support-share-extra .share-actions :is(button,a){font-size:11px;padding-inline:10px;min-height:44px}
.support-share-qr{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:20px;margin:7px 0 12px}
.support-qr{display:block;width:100%;padding:8px;background:#fff;color:#0b1110}
.support-qr img{display:block;width:100%;height:auto}
.support-share-qr-copy{min-width:0}
.support-share-qr-copy .support-payment-status{margin:0 0 12px;font-size:11px}
.support-share-qr-copy .share-actions{grid-template-columns:1fr;gap:7px;margin:0}
.support-share-copy-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;color:#cdb98f;font-size:12px;text-decoration:underline;text-underline-offset:4px}

.support-test-mode{flex:none;margin:0;padding:9px 22px;text-align:center;border-bottom:1px solid #c7aa7838;background:#c7aa7810;color:#e2cca6;font-size:11px;line-height:1.6}
#reading-surface{opacity:1;transition:height var(--privacy-motion) var(--privacy-ease),opacity 200ms ease 160ms}
body.support-open #reading-surface{opacity:0;transition:height var(--privacy-motion) var(--privacy-ease),opacity 160ms ease}

@media(min-width:1800px){.support-invite,.support-header{padding-inline:66px}}
@media(max-width:1200px){.support-invite,.support-header{padding-inline:30px}.support-invite{gap:24px}.support-scroll{padding-inline:30px}}
@media(max-width:800px){
  .support-invite{padding-inline:24px;gap:20px}.support-invite-actions{gap:9px}.support-invite-actions button{min-width:110px;padding-inline:12px}
  .support-header{padding:15px 24px}.support-scroll{padding:27px 24px calc(28px + env(safe-area-inset-bottom))}.support-brand{font-size:24px;gap:14px}
  .support-sharing{grid-template-columns:1fr;gap:24px}.support-sharing-message{max-width:620px}.support-share-card{max-width:620px}
  .support-donation-section{grid-template-columns:1fr;gap:23px}.support-donation-intro .support-lead{max-width:600px}.support-donation-intro .support-title{max-width:none}
  #support-button{display:none}
}
@media(max-width:600px){
  .support-invite{grid-template-columns:minmax(0,1fr);gap:14px;min-height:20dvh;padding:15px 22px calc(16px + env(safe-area-inset-bottom))}.support-invite h2{font-size:22px;margin-bottom:5px}.support-invite p{font-size:11.5px;line-height:1.65}
  .support-invite-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.support-invite-actions button{min-width:0;width:100%;padding:10px 9px;font-size:11.5px}
  .support-header{padding:calc(8px + env(safe-area-inset-top)) 22px 9px;gap:12px}.support-brand{font-size:21px;gap:10px;letter-spacing:.08em}.support-brand svg{width:17px;height:28px}.support-close{font-size:11px;gap:8px}
  .support-scroll{padding:24px 22px calc(25px + env(safe-area-inset-bottom))}.support-heading{font-size:36px;line-height:1.08;margin-bottom:13px}.support-title{font-size:34px;margin-bottom:16px}.support-lead{font-size:13px;line-height:1.8;margin-bottom:24px}
  .support-home-heading{margin-bottom:22px}.support-home-heading .support-lead{font-size:12px}.support-sharing{gap:21px}.support-message-label{margin-bottom:10px}.support-message{min-height:140px;font-size:16px;line-height:1.8;margin-bottom:19px}.support-share-primary{max-width:none}
  .support-donation-section{margin-top:32px;padding-top:28px;gap:20px}.support-donation-intro .support-title{font-size:32px;margin-bottom:12px}
  .support-back{margin-top:-10px;margin-bottom:12px}.support-legal{margin-top:28px;padding-top:16px;font-size:10px}.support-legal nav,.support-legal-links{gap:0 16px}.support-legal a{min-height:36px}
  .amount-options{gap:8px}.amount-option{min-height:50px;font-size:16px}.donation-custom{gap:10px}.donation-custom label{font-size:12px}#donation-amount{max-width:155px}.support-consent{font-size:11.5px;line-height:1.8}
  .support-state{padding-top:14px}.support-state h2{font-size:39px}.support-requisites dl{grid-template-columns:1fr}.support-requisites dt{padding:14px 0 0;border-bottom:0;font-size:11px}.support-requisites dd{padding:5px 0 14px}
  .share-actions{gap:8px}.share-actions :is(button,a){font-size:11.5px;padding-inline:10px}
  .support-share-sheet{padding:16px 0 0}.support-share-dialog{max-width:none;max-height:calc(100dvh - 16px);padding-inline:22px;border-radius:22px 22px 0 0;border-bottom:0}.support-share-heading{min-height:73px}.support-share-heading h2{font-size:33px}.support-share-options{gap:10px 5px}.support-share-options .support-share-option{font-size:11.5px;min-height:94px}
}
@media(max-width:360px){
  .support-invite,.support-header,.support-scroll{padding-left:18px;padding-right:18px}.support-heading{font-size:32px}.support-title{font-size:32px}.support-brand{font-size:19px;gap:8px;letter-spacing:.07em}.support-close span{font-size:10px}.support-invite-actions{gap:8px}.support-invite-actions button{font-size:11px}
  .support-share-dialog{padding-inline:18px}.support-share-option-icon{width:46px;height:46px}.support-share-options .support-share-option{font-size:11px}.support-share-qr{grid-template-columns:112px minmax(0,1fr);gap:15px}
}
@media(max-height:480px) and (orientation:landscape){
  .support-invite{min-height:110px;padding-top:13px;padding-bottom:13px}.support-invite h2{font-size:22px}.support-header{padding-block:4px}.support-brand{font-size:22px;min-height:40px}.support-brand svg{height:28px}.support-close{min-height:40px}.support-scroll{padding-top:20px}.support-heading{font-size:36px}.support-title{font-size:33px}.support-state{padding-top:8px}
  .support-share-sheet{padding:12px}.support-share-dialog{max-height:calc(100dvh - 24px);padding-bottom:14px}.support-share-heading{min-height:60px;padding-block:8px}.support-share-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 7px;margin-top:0}.support-share-options .support-share-option{min-height:82px;padding-top:3px;gap:7px}.support-share-option-icon{width:42px;height:42px}
}
.reduced-motion .support-surface,.reduced-motion .support-surface *{transition:none!important;animation:none!important}
.reduced-motion #reading-surface{transition:none}
@media(prefers-reduced-motion:reduce){.support-surface,.support-surface *{transition:none!important;animation:none!important}#reading-surface{transition:none}}
