@layer page {
.pg-donate {
--give-d: 12px;
--give-gap: 20px;
--give-h: 156px;
--give-size: 4rem;
}
.pg-donate .give-head { padding-bottom: clamp(40px, 6vw, 72px); }
.pg-donate .give-head h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; }
.pg-donate .give-main { padding-block: clamp(40px, 6vw, 72px); }
@media screen {
.pg-donate #main { display: flex; flex-direction: column; }
.pg-donate .give-main { flex: 1; }
}
.pg-donate .give-wrap { max-width: calc(800px + 2 * var(--gutter)); }
.pg-donate .give-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 40px); text-align: center; }
.pg-donate .give-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--give-gap); }
.pg-donate .give-presets li { min-width: 0; max-width: none; }
.pg-donate .give-preset { --give-t: 0; --give-dur: 340ms; --give-ease: cubic-bezier(.3, 1.7, .5, 1); display: block; height: var(--give-h); text-decoration: none; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pg-donate .give-key { display: block; position: relative; height: 100%; }
.pg-donate .give-key::before { content: ""; position: absolute; inset: var(--give-d) 0 0; border-radius: var(--r-md); background: var(--give-base, var(--orange)); transition: background-color var(--d-hover) var(--ease-out); }
.pg-donate .give-face { display: flex; position: relative; align-items: center; justify-content: center; height: calc(100% - var(--give-d)); border-radius: var(--r-md); background: var(--give-face, var(--yellow)); color: var(--give-figure, var(--teal)); transition: background-color var(--d-hover) var(--ease-out), color var(--d-hover) var(--ease-out); }
.pg-donate .give-preset-amount { font-family: var(--font-display); font-size: var(--give-size); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
@media (hover: hover) { .pg-donate .give-preset:hover { --give-t: .3; --give-face: var(--btn-over-bg); --give-figure: var(--btn-over-fg); --give-base: var(--sky); } }
.pg-donate .give-preset:focus-visible { --give-t: .3; --give-face: var(--btn-over-bg); --give-figure: var(--btn-over-fg); --give-base: var(--sky); }
.pg-donate .give-preset:active { --give-t: -.75; --give-dur: 70ms; --give-ease: var(--ease-out); }
.pg-donate .give-other { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 24px; min-width: 0; padding: 24px 28px; text-align: start; }
.pg-donate .give-other-label { display: block; color: var(--teal); font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.pg-donate .give-other-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; min-width: 0; }
.pg-donate .give-amount { display: flex; align-items: center; min-width: 0; min-height: 64px; background: var(--surface); border: 2px solid var(--teal); border-radius: var(--r-sm); }
.pg-donate .give-amount:has(input[aria-invalid="true"]) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pg-donate .give-amount-sign { padding-inline-start: 16px; color: var(--teal); font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; }
.pg-donate .give-amount input { flex: 1; width: 100%; min-width: 0; min-height: 60px; padding-block: 8px; padding-inline: 4px 16px; background: transparent; border: 0; color: var(--teal); font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-donate .give-submit { width: 100%; min-height: 64px; padding-inline: 28px; font-size: 1.375rem; white-space: nowrap; }
.pg-donate .give-error { grid-column: 1 / -1; max-width: none; font-weight: 700; line-height: 1.5; }
.pg-donate .give-error:empty { display: none; }
@media (max-width: 767px) {
.pg-donate { --give-d: 8px; --give-gap: 12px; --give-h: clamp(88px, 25vw, 132px); --give-size: clamp(2.25rem, 10.5vw, 4rem); }
.pg-donate .give-head { padding-block: 32px; }
.pg-donate .give-head h1 { font-size: 2.75rem; }
.pg-donate .give-main { padding-block: 32px 40px; }
.pg-donate .give-other { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; text-align: center; }
.pg-donate .give-other-label { font-size: 1.5rem; }
.pg-donate .give-other-row { grid-template-columns: minmax(0, 1fr); }
.pg-donate .give-amount { min-height: 60px; }
.pg-donate .give-amount input { min-height: 56px; }
.pg-donate .give-submit { min-height: 60px; }
}
@media (prefers-reduced-motion: no-preference) {
.pg-donate .give-presets li:nth-child(2) { --give-delay: 55ms; }
.pg-donate .give-presets li:nth-child(3) { --give-delay: 110ms; }
.pg-donate .give-presets li:nth-child(4) { --give-delay: 165ms; }
.pg-donate .give-presets li:nth-child(5) { --give-delay: 220ms; }
.pg-donate .give-presets li:nth-child(6) { --give-delay: 275ms; }
.pg-donate .give-key { animation: give-drop 480ms var(--ease-out) var(--give-delay, 0ms) backwards; }
.pg-donate .give-face { transform: translateY(calc(var(--give-t) * var(--give-d) * -1)); transition: transform var(--give-dur) var(--give-ease), background-color var(--d-hover) var(--ease-out), color var(--d-hover) var(--ease-out); animation: give-sink 480ms var(--ease-out) var(--give-delay, 0ms) backwards; }
@media (hover: none) {
.pg-donate .give-preset:active .give-face { animation: give-sink 480ms var(--ease-out) var(--give-delay, 0ms) backwards, give-letgo 200ms var(--ease-out) 540ms forwards; }
}
@keyframes give-drop {
0% { transform: translateY(-40px); animation-timing-function: cubic-bezier(.55, 0, .85, .35); }
56%, 100% { transform: translateY(0); }
}
@keyframes give-sink {
0%, 56% { transform: translateY(0); }
74% { transform: translateY(calc(var(--give-d) * .6)); }
100% { transform: translateY(0); }
}
@keyframes give-letgo { to { transform: translateY(0); } }
}
@media (forced-colors: active) {
.pg-donate .give-key::before { display: none; }
.pg-donate .give-face, .pg-donate .give-other, .pg-donate .give-amount { border: 2px solid CanvasText; }
}
@media print {
.pg-donate .give-key::before { display: none; }
.pg-donate .give-face, .pg-donate .give-other { border: 1px solid var(--ink); }
}
}
