:root {
  color-scheme: light dark;
  --canvas: #edf2f3;
  --paper: #fff;
  --ink: #23363e;
  --secondary: #52666d;
  --wash: #eff5f5;
  --rule: #cedbdd;
  --field-edge: #84979c;
  --accent: #345d64;
  --link: #066481;
  --button: #145665;
  --button-text: #fff;
  --error: #903b33;
  --error-wash: #fff4ef;
  --inset: 32px;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --canvas: #121d21;
    --paper: #1d2b30;
    --ink: #f1f5f5;
    --secondary: #c0d1d5;
    --wash: #23383e;
    --rule: #496067;
    --field-edge: #849ba2;
    --accent: #aed8dc;
    --link: #94d8ed;
    --button: #a4d9dc;
    --button-text: #142f35;
    --error: #ffd4cc;
    --error-wash: #402d2e;
  }
}

* { box-sizing: border-box; }
[hidden], .hide, .stripe-card-error:empty { display: none !important; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.45 "Helvetica Neue", Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.giving-sheet {
  max-width: 600px;
  margin: 28px auto 40px;
  background: var(--paper);
  overflow-wrap: anywhere;
}

h1, h2, p, dl, dd, fieldset, form { margin: 0; }
h1 { font-size: 26px; line-height: 1.18; }
h2 { font-size: 18px; line-height: 1.3; }
h2 + p, p + p { margin-top: 5px; }

.letterhead { border-bottom: 2px solid #688b90; }
.letterhead-band {
  width: 100%;
  height: auto;
  aspect-ratio: 4.4;
  object-fit: cover;
  display: block;
}

.stored-logo {
  display: block;
  width: 100%;
  height: 88px;
  padding: 8px var(--inset);
  object-fit: scale-down;
  background: #888;
}

.wordmark {
  text-align: center;
  padding: 22px var(--inset);
  font: bold 25px/1.18 Georgia, serif;
}

.giving-heading {
  padding: 16px var(--inset) 0;
  background: var(--wash);
}

.letterhead:has(.giving-heading) { border: none; }
.letterhead img + .giving-heading { border-top: 2px solid #688b90; }
.gift-summary-panel, .giving-section { padding: 20px var(--inset); }
.gift-summary-panel { background: var(--wash); }
.giving-section + .giving-section { border-top: 1px solid var(--rule); }

.summary-heading, .giving-contact-links, .action-list {
  display: flex;
  gap: 0 16px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-heading { justify-content: space-between; }
.summary-heading time, .gift-details dt { color: var(--secondary); font-size: 14px; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.gift-amount {
  margin: 10px 0 4px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: bold;
}

.thank-you { font-size: 23px; font-weight: 600; }
.gift-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
  padding: 16px var(--inset);
  border-bottom: 1px solid var(--rule);
}

.giving-footer {
  border-top: 1px solid var(--rule);
  padding: 10px var(--inset) 18px;
  color: var(--secondary);
  font-size: 15px;
}

.giving-footer address { font-style: normal; }
.giving-footer p { font-size: 13px; margin-top: 6px; }
a, .text-action, .use-link, summary { color: var(--link); text-underline-offset: 3px; }
.giving-footer a, .action-list a, .text-action, .use-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}

button, input, select { color: inherit; font: inherit; }
button, input[type=submit], select, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.text-action, .use-link {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: underline;
}

.gift-frequency input:focus + span {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.form_field { margin-bottom: 15px; min-width: 0; }
.form_field:last-child { margin-bottom: 0; }
label, legend { display: block; font-size: 15px; font-weight: bold; margin-bottom: 5px; }
fieldset, legend { border: none; padding: 0; }
input:not([type=radio], [type=submit], [type=hidden]), select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--field-edge);
  border-radius: 5px;
}

input::placeholder { color: var(--secondary); opacity: 1; }
.public-giving-form__amount { position: relative; }
.public-giving-form__amount::before {
  content: "$";
  position: absolute;
  inset: 50% auto auto 13px;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 24px;
  pointer-events: none;
}

.public-giving-form__amount input[type=text] {
  padding: 4px 12px 4px 33px;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.18;
  letter-spacing: -1px;
}

.gift-frequency > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--field-edge);
  border-radius: 5px;
}

.gift-frequency label { margin: 0; position: relative; cursor: pointer; }
.gift-frequency input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gift-frequency span {
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  min-height: 44px;
  border-radius: 3px;
}

.gift-frequency input:checked + span { background: var(--button); color: var(--button-text); }
.gift-frequency input:checked + span::before { content: "✓" / ""; margin-right: 6px; }
.fund-description, .fund-description-mobile, .public-giving-form__single-fund-description {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 15px;
}

.fund-description-mobile { display: none; }
.primary-action, .give-another-way, .cancel-gift {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: var(--button);
  color: var(--button-text);
  font-weight: bold;
}

.give-another-way, .cancel-gift { background: var(--paper); color: var(--link); border-color: var(--field-edge); }
.cancel-gift { width: auto; color: var(--error); border-color: currentColor; margin-top: 18px; }
.gift-summary { margin: 10px 0; font-size: 15px; color: var(--secondary); }
.wallet-slot { display: flow-root; }
.wallet-slot--visible { margin-bottom: 14px; }
.giving-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--error);
  background: var(--error-wash);
  color: var(--error);
}

.giving-alert ul { margin: 5px 0 0; padding-inline-start: 20px; }
#amount_hint, .field_with_errors label { color: var(--error); }
.field_with_errors input { border-color: var(--error); }
input:user-invalid { border-color: var(--error); }
.receipt-actions { font-size: 15px; }

@media (max-width: 620px) {
  :root { --inset: 22px; }
  .giving-sheet { margin: 0 auto; }
  .giving-heading { font-size: 23px; }
  .gift-summary-panel, .giving-section { padding-block: 16px; }
}

@media (max-width: 768px) {
  .fund-description { display: none; }
  .fund-description-mobile { display: block; }
}

@media print {
  body, .giving-sheet, .gift-summary-panel { background: white; color: black; }
  .giving-sheet { margin: 0 auto; }
  .receipt-actions { display: none; }
  .letterhead img { max-width: 320px; margin-inline: auto; }
}
