/* Donate page amount box ([plumbline_donate]). Red only on the Give button. */
.pl-give { max-width: 460px; margin: 22px 0 30px; display: grid; gap: 12px; font-family: var(--pl-ui); }
.pl-give fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-give legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-give input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-give .pl-give-freq { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--pl-ink); border-radius: 3px; overflow: hidden; }
.pl-give-freq span { display: block; text-align: center; padding: 12px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--pl-ink); background: #fff; }
.pl-give-freq input:checked + span { background: var(--pl-ink); color: #fff; }
.pl-give-amts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.pl-give-amts span { position: relative; display: block; text-align: center; padding: 14px 4px; font-weight: 700; font-size: 18px; border: 1px solid var(--pl-line); border-radius: 3px; cursor: pointer; color: var(--pl-ink); background: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pl-give-amts span b { font-weight: 800; }
.pl-give-amts span small { display: block; margin-top: 3px; font: 500 11.5px/1.2 var(--pl-ui); color: var(--pl-muted); }
.pl-give-flag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--pl-ink); color: #fff; font: 800 9.5px/1 var(--pl-ui); font-style: normal; letter-spacing: .07em; text-transform: uppercase; padding: 3px 6px; border-radius: 2px; white-space: nowrap; }
.pl-give-amts input:checked + span { border: 2px solid var(--pl-ink); padding: 13px 3px; }
.pl-give.pl-give-typed .pl-give-amts input:checked + span { border: 1px solid var(--pl-line); padding: 14px 4px; }
.pl-give input:focus-visible + span, .pl-give-other:focus-within { outline: 2px solid var(--pl-act); outline-offset: 2px; }
.pl-give:has(.pl-give-freq input[value="once"]:checked) .pl-give-amts[data-freq="monthly"],
.pl-give:has(.pl-give-freq input[value="monthly"]:checked) .pl-give-amts[data-freq="once"] { display: none; }
.pl-give-other { display: flex; align-items: center; gap: 6px; border: 1px solid var(--pl-line); border-radius: 3px; padding: 0 12px; background: #fff; }
.pl-give-other span { font-weight: 700; }
.pl-give-other input { border: 0 !important; box-shadow: none !important; outline: 0; font: 16px var(--pl-ui); padding: 13px 0; width: 100%; background: transparent; color: var(--pl-ink); }
.pl-give-go { width: 100%; padding: 15px; font-size: 16px; font-weight: 800; border: 0; cursor: pointer; }
.pl-give-ways { display: flex; flex-direction: column; gap: 7px; align-items: center; margin: 2px 0 0; font-size: 12.5px; color: var(--pl-muted); }
.pl-give-paywith { font-family: var(--pl-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-ink); }
.pl-give-fine { margin: 4px 0 0; font-family: var(--pl-body); font-size: 14px; line-height: 1.45; color: var(--pl-muted); }
.pl-give-fine a { color: var(--pl-ink); }
.pl-give-test { margin: 0; padding: 10px 12px; background: #fff7d6; border-left: 3px solid #b58a00; font-size: 13.5px; color: #4a3b00; }
.pl-give-err { margin: 0; padding: 10px 12px; background: var(--pl-act-soft, #fbe8eb); border-left: 3px solid var(--pl-act); font-size: 14px; color: var(--pl-ink); }
.pl-give-thanks { max-width: 560px; margin: 18px 0; padding: 18px 20px; border-top: 3px solid var(--pl-ink); background: var(--pl-soft, #f5f4f6); }
.pl-give-thanks h2 { margin: 0 0 6px !important; font-size: 26px; }
.pl-give-thanks p { margin: 0; }
.pl-give-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pl-give-badge svg { display: block; width: 56px; height: 24px; }
.pl-give-wallets .pl-give-badge svg { width: 92px; height: 40px; }
.pl-give-h { margin: 0 !important; font-size: 22px !important; }
/* Donate page, letter layout (0.10.1) */
.pl-dp { max-width: 1120px; margin: 0 auto; padding: 36px 0 20px; }
.pl-dp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; align-items: start; }
.pl-dp-pic { display: none; } /* P3 (0.10.5): no picture on the Donate page */
.pl-dp-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pl-dp-pic figcaption { font-family: var(--pl-ui); font-size: 11.5px; color: var(--pl-muted); margin-top: 6px; line-height: 1.35; }
.pl-dp-h { font-size: clamp(32px, 4vw, 48px); line-height: 1.04; margin: 0 0 18px; }
.pl-dp-letter p { font-size: 18px; line-height: 1.6; margin: 0 0 14px; max-width: 62ch; }
.pl-dp-letter .pl-eyebrow { font-size: 12px; margin-bottom: 10px; }
.pl-dp-sig { font-family: var(--pl-head) !important; font-style: italic; font-weight: 700; font-size: 22px !important; margin-top: 18px !important; }
.pl-dp-sig small { display: block; font-family: var(--pl-ui); font-style: normal; font-weight: 500; font-size: 13px; color: var(--pl-muted); margin-top: 3px; }
.pl-dp-give .pl-give { margin: 0; position: sticky; top: 64px; border: 1px solid var(--pl-line); border-top: 3px solid var(--pl-ink); padding: 20px; background: #fff; }
.pl-dp-sec { border-top: 2px solid var(--pl-ink); padding-top: 14px; margin-top: 48px; }
.pl-dp-sec h2 { font-size: 28px; margin: 0 0 16px; }
.pl-dp-pays, .pl-dp-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pl-dp-pays div { border-top: 1px solid var(--pl-line); padding-top: 12px; }
.pl-dp-pays i { display: block; width: 28px; height: 4px; margin-bottom: 10px; background: var(--pl-ink); }
.pl-dp-pays .pl-dp-k1 { background: #1f4e8c; } .pl-dp-pays .pl-dp-k2 { background: #2f6b4f; } .pl-dp-pays .pl-dp-k3 { background: var(--pl-plum); }
.pl-dp-pays b, .pl-dp-ways b { display: block; font-family: var(--pl-head); font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.pl-dp-pays span { font-size: 16px; line-height: 1.5; color: #3d3842; }
.pl-dp-ways div { background: var(--pl-soft); padding: 18px; }
.pl-dp-ways p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.pl-dp-ways a { font-family: var(--pl-ui); font-weight: 700; font-size: 14px; color: var(--pl-ink); }
.pl-dp-faq details { border-top: 1px solid var(--pl-line); padding: 14px 0; }
.pl-dp-faq details:last-child { border-bottom: 1px solid var(--pl-line); }
.pl-dp-faq summary { font-family: var(--pl-ui); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pl-dp-faq summary::-webkit-details-marker { display: none; }
.pl-dp-faq summary::after { content: "+"; font-size: 20px; line-height: 1; }
.pl-dp-faq details[open] summary::after { content: "\2212"; }
.pl-dp-faq p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.55; max-width: 64ch; color: #3d3842; }
@media (max-width: 900px) { .pl-dp-top { grid-template-columns: 1fr; gap: 28px; } .pl-dp-give .pl-give { position: static; max-width: 520px; } }
@media (max-width: 640px) { .pl-dp { padding-top: 22px; } .pl-dp-pic { margin-bottom: 18px; } .pl-dp-pays, .pl-dp-ways { grid-template-columns: 1fr; gap: 16px; } }
/* Your giving panel in reader accounts */
.pl-give-sum { font-size: 17px; }
.pl-give-sub { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; border: 1px solid var(--pl-line); padding: 12px 14px; margin: 10px 0; font-family: var(--pl-ui); font-size: 14.5px; }
.pl-give-sub form { margin: 0; }
.pl-give-list summary { font-family: var(--pl-ui); font-weight: 700; font-size: 14px; cursor: pointer; margin: 8px 0; }
.pl-give-list ul { list-style: none; margin: 0; padding: 0; font-family: var(--pl-ui); font-size: 14px; font-variant-numeric: tabular-nums; }
.pl-give-list li { display: flex; justify-content: space-between; border-top: 1px solid var(--pl-line); padding: 7px 0; }

/* Thank-you next steps (0.10.6) */
.pl-give-thanks h2 { font-size: 30px; }
.pl-give-thanks { max-width: none; margin: 0 0 14px; }
.pl-ty-steps { display: grid; gap: 12px; }
.pl-ty-step { border: 1px solid var(--pl-line); padding: 16px; display: grid; gap: 9px; align-content: start; margin: 0; }
.pl-ty-step h3 { font-family: var(--pl-head); font-size: 19px; margin: 0 !important; }
.pl-ty-step p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--pl-muted); }
.pl-ty-step p a { color: var(--pl-ink); }
.pl-ty-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-ty-btn { font: 600 13px var(--pl-ui); border: 1px solid var(--pl-ink); background: #fff; color: var(--pl-ink) !important; padding: 8px 12px; text-decoration: none !important; cursor: pointer; border-radius: 0; justify-self: start; }
.pl-ty-btn.is-dark { background: var(--pl-ink); color: #fff !important; }
.pl-ty-btn:focus-visible { outline: 3px solid var(--pl-act); outline-offset: 2px; }
.pl-ty-step input[type="email"] { font: 15px var(--pl-ui); padding: 10px; border: 1px solid var(--pl-line); width: 100%; box-sizing: border-box; }
.pl-ty-consent { display: flex; gap: 8px; align-items: flex-start; font: 13px/1.4 var(--pl-ui); color: var(--pl-muted); }
.pl-ty-consent input { margin-top: 2px; }

/* Cover the fee + Direct Debit line (0.10.7) */
.pl-give-cover { display: flex; gap: 9px; align-items: flex-start; font: 14px/1.4 var(--pl-ui); color: var(--pl-ink); background: var(--pl-soft, #f5f4f6); padding: 10px 12px; cursor: pointer; }
.pl-give-cover input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--pl-ink); flex: none; }
.pl-give-bacs { margin: -2px 0 0; text-align: center; font: 13px var(--pl-ui); color: var(--pl-muted); }
.pl-give-cover[hidden] { display: none; }

/* 0.11.0: new box (A1, A4, A5, B6, D2) */
.pl-give { gap: 12px; }
.pl-give-step1 { display: grid; gap: 12px; }
.pl-give-step1[hidden], .pl-give-pay[hidden], .pl-give-nudge[hidden], .pl-give-amts[hidden] { display: none; }
.pl-give-amts { padding-top: 6px; }
.pl-give-came { margin: 0; font: 13.5px/1.45 var(--pl-ui); color: var(--pl-ink); background: var(--pl-soft, #f5f4f6); padding: 10px 12px; }
.pl-give-came a { color: var(--pl-ink); font-weight: 700; }
.pl-give-nudge { margin: 0; display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--pl-ink); border-radius: 3px; padding: 10px 12px; font: 13.5px/1.4 var(--pl-ui); color: var(--pl-ink); }
.pl-give-nudge button { flex: none; font: 800 12.5px var(--pl-ui); color: var(--pl-ink); background: #fff; border: 1.5px solid var(--pl-ink); border-radius: 3px; padding: 7px 9px; cursor: pointer; max-width: 9.5em; line-height: 1.2; }
.pl-give-nudge button:hover { background: var(--pl-ink); color: #fff; }
.pl-give-trust { list-style: none; margin: 2px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; font: 600 12.5px var(--pl-ui); color: var(--pl-ink); }
.pl-give-trust li::before { content: "\2713"; margin-right: 5px; font-weight: 800; }
.pl-give-secure { margin: 0; text-align: center; font: 12.5px/1.4 var(--pl-ui); color: var(--pl-muted); }
.pl-give-secure .pl-give-lock { vertical-align: -2px; margin-right: 2px; }
.pl-give-lock { flex: none; color: var(--pl-ink); }
.pl-give-ways .pl-give-secure { display: none; }
.pl-give-fine { text-align: center; font-size: 13px; }
.pl-give-sumline { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 700 20px var(--pl-head); border-bottom: 1px solid var(--pl-line); padding-bottom: 10px; }
.pl-give-back, .pl-give-alt button { font: 700 13px var(--pl-ui); color: var(--pl-ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.pl-give-securehead { margin: 0; display: flex; align-items: center; gap: 6px; font: 800 11.5px var(--pl-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--pl-ink); }
.pl-give-pay { display: grid; gap: 12px; }
.pl-give-field { display: grid; gap: 5px; font: 600 13px var(--pl-ui); color: var(--pl-ink); }
.pl-give-field input { font: 16px var(--pl-ui); padding: 11px 12px; border: 1px solid #e6e6e6; border-radius: 3px; box-shadow: 0 1px 1px rgba(0,0,0,.03), 0 3px 6px rgba(0,0,0,.02); width: 100%; box-sizing: border-box; color: var(--pl-ink); }
.pl-give-field input:focus { outline: 2px solid var(--pl-ink); outline-offset: 0; }
.pl-give-paybtn[disabled] { opacity: .7; cursor: wait; }
.pl-give-alt { margin: 0; text-align: center; }
.pl-give-alt[hidden] { display: none; }

/* B2: "I'll give" bar on phones */
.pl-give-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px; background: #fff; border-top: 1px solid var(--pl-line); box-shadow: 0 -6px 18px rgba(0,0,0,.08); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-family: var(--pl-ui); }
.pl-give-bar[hidden] { display: none; }
.pl-give-bar-t { flex: 1; min-width: 0; line-height: 1.25; }
.pl-give-bar-t b { display: block; font-size: 14px; }
.pl-give-bar-t small { display: block; font-size: 12px; color: var(--pl-muted); }
.pl-give-bar .pl-btn { flex: none; padding: 12px 20px; font-size: 15px; font-weight: 800; border: 0; cursor: pointer; }
@media (min-width: 900px) { .pl-give-bar { display: none; } }

/* B1: headline, box, letter. Desktop: headline and letter left, box right. Phones: headline, box, letter. */
.pl-dp-top { grid-template-areas: "head give" "letter give"; grid-template-rows: auto 1fr; row-gap: 0; }
.pl-dp-head { grid-area: head; }
.pl-dp-give { grid-area: give; }
.pl-dp-letter { grid-area: letter; }
@media (max-width: 900px) { .pl-dp-top { grid-template-areas: "head" "give" "letter"; grid-template-rows: auto; row-gap: 22px; } .pl-dp-head .pl-dp-h { margin-bottom: 0; } }
@media (max-width: 640px) { .pl-dp-h { font-size: 30px; } .pl-dp-give .pl-give { padding: 16px; } }
.pl-dp-sigrow { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pl-dp-sigrow .pl-dp-sig { margin: 0 !important; }
.pl-dp-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--pl-line); }

/* Your giving (F1, F2, F4) */
.pl-give-top { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin: 6px 0 14px; }
.pl-give-top .pl-give-sum { flex: 1; min-width: 200px; margin: 34px 0 0; font-size: 17px; line-height: 1.5; }
.pl-gpass { width: 176px; flex: none; }
.pl-gpass-strap { display: block; width: 14px; height: 30px; margin: 0 auto -5px; background: linear-gradient(90deg, var(--pl-act) 0 40%, var(--pl-ink) 40% 60%, var(--pl-act) 60%); }
.pl-gpass-card { display: block; position: relative; background: #fff; border: 1px solid var(--pl-line); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.12); font-family: var(--pl-ui); }
.pl-gpass-hole { display: block; width: 34px; height: 7px; border-radius: 4px; background: var(--pl-line); margin: 8px auto 0; }
.pl-gpass-band { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; background: var(--pl-ink); color: #fff; padding: 7px 10px; font: 800 9.5px/1 var(--pl-ui); letter-spacing: .1em; text-transform: uppercase; }
.pl-gpass-body { display: block; padding: 10px; }
.pl-gpass-name { display: block; font: 700 17px/1.15 var(--pl-head); color: var(--pl-ink); }
.pl-gpass-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; font-size: 10.5px; color: var(--pl-muted); }
.pl-gpass-rows b { display: block; color: var(--pl-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-gpass-red { display: block; height: 6px; background: var(--pl-act); }
.pl-give-alert { background: var(--pl-act-soft, #fbe8eb); border-left: 3px solid var(--pl-act); padding: 12px 14px; margin: 8px 0 14px; font-family: var(--pl-ui); }
.pl-give-alert p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.pl-give-alert form { margin: 0; }
.pl-give-invite { border: 1.5px dashed var(--pl-ink); padding: 12px 14px; margin: 12px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-family: var(--pl-ui); }
.pl-give-invite p { margin: 0; flex: 1; min-width: 220px; font-size: 14.5px; line-height: 1.45; }
.pl-give-paying .pl-give-bacs, .pl-give-paying .pl-give-ways { display: none; }
.pl-give-nudge button { white-space: normal !important; text-transform: none; letter-spacing: 0; }

/* D1a/D1d (0.11.2): wallet button in the box */
.pl-give-express { display: grid; gap: 10px; }
.pl-give-express[hidden] { display: none; }
.pl-give-ece { min-height: 48px; }
.pl-give-or { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 12px var(--pl-ui); color: var(--pl-muted); }
.pl-give-or::before, .pl-give-or::after { content: ""; flex: 1; height: 1px; background: var(--pl-line); }

/* K1b (0.11.2): a calmer box. */
.pl-give-other[hidden], .pl-give-link[hidden], .pl-give-nudge [hidden] { display: none; }
.pl-give-links { margin: -2px 0 0; text-align: center; font: 600 14px/1.4 var(--pl-ui); color: var(--pl-muted); }
.pl-give-links .pl-give-nudge { display: inline; border: 0; padding: 0; margin: 0; font: inherit; }
.pl-give-links .pl-give-nudge[hidden] { display: none; }
.pl-give .pl-give-link, .pl-give-links .pl-give-nudge button { font: 600 14px/1.4 var(--pl-ui) !important; color: var(--pl-ink) !important; background: none !important; border: 0 !important; padding: 0 !important; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; max-width: none; white-space: normal; text-transform: none; letter-spacing: 0; }
.pl-give-links .pl-give-nudge button:hover { background: none; color: var(--pl-act) !important; }
.pl-give-after { max-width: 460px; margin: 10px 0 0; text-align: center; font: 12.5px/1.45 var(--pl-ui); }
.pl-dp-give .pl-give-after { max-width: 520px; }
.pl-give-pay .pl-give-cover { font-size: 13.5px; }

/* 0.11.4: D1a look with heading, strap, Other field and a logo row. */
.pl-give-strap { margin: -8px 0 0; font: 15px/1.4 var(--pl-body); color: var(--pl-muted); }
.pl-give-links { margin: -4px 0 0; }
.pl-give-logos { margin: -2px 0 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pl-give-logos .pl-give-badge { display: inline-flex; }
.pl-give-logos svg { width: 42px; height: 18px; }
.pl-give-paying .pl-give-logos { display: none; }
.pl-give-express.pl-give-wait { visibility: hidden; min-height: 48px; } /* 0.11.7: Stripe needs a real-sized box to load the button */
/* 0.11.6: the big wallet logos step aside when the real Apple Pay / Google Pay button is showing. */
.pl-give-haswallet .pl-give-wallets, .pl-give-haswallet .pl-give-paywith { display: none; }
/* 0.11.8: official payment marks as images. */
.pl-give-badge img { display: block; height: 26px; width: auto; }
.pl-give-wallets .pl-give-badge img { height: 40px; }
.pl-give-logos .pl-give-badge img { height: 20px; }
