/* Donate and campaign pages: the gift form, campaign lists and one campaign. Builds on styles.css. */
.gv-section { padding-top: clamp(40px, 6vw, 80px); }
.gv-wrap { max-width: 720px; margin-inline: auto; }
.gv-fail { color: var(--muted); }

/* ---------- Form ---------- */
.gv-group { border: 0; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; min-width: 0; }
.gv-group legend { padding: 0; margin-bottom: .7rem; font: 400 clamp(1.45rem, 2vw, 1.8rem)/1.1 var(--serif); color: var(--ink); }
.gv-opt { font: 400 .9rem var(--sans); color: var(--muted); }
.gv-field { margin-top: 1rem; }
.gv-field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; color: var(--ink); }
.gv-field input, .gv-field select, .gv-field textarea { width: 100%; padding: 0 .8rem; height: 48px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 1rem var(--sans); appearance: none; -webkit-appearance: none; }
.gv-field textarea { height: auto; padding-block: .7rem; }
.gv-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.gv-field input:focus, .gv-field select:focus, .gv-field textarea:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.gv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.gv-money { position: relative; }
.gv-money::before { content: "$"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gv-money input { padding-left: 1.6rem; }
.gv-hint { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.gv-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 1rem; font-size: .95rem; cursor: pointer; }
.gv-check input { margin-top: .32em; width: 16px; height: 16px; flex-shrink: 0; }
.gv-hp { position: absolute; left: -9999px; }
.gv-error { margin: 0 0 1rem; color: #9a3324; font-weight: 500; outline: none; }
.gv-fine { margin: .8rem 0 0; font-size: .88rem; color: var(--muted); }

.gv-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.gv-amounts label { position: relative; cursor: pointer; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.gv-amounts input, .gv-options input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gv-amounts span { display: block; padding: 1rem .2rem; text-align: center; font: 400 clamp(1.2rem, 2vw, 1.4rem)/1.1 var(--serif); color: var(--ink); transition: background .15s, color .15s; }
.gv-amounts label:hover span { background: var(--stone); }
.gv-amounts input:checked + span { background: var(--ink); color: #fff; }
.gv-amounts input:focus-visible + span, .gv-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.gv-options { display: grid; border-top: 1px solid var(--ink); }
.gv-options label { position: relative; cursor: pointer; border-bottom: 1px solid var(--line); }
.gv-options span { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .8rem .9rem; transition: background .15s, color .15s; }
.gv-options strong { font: 400 1.5rem/1.1 var(--serif); color: inherit; }
.gv-options em { font: 400 1.5rem/1.1 var(--serif); font-style: normal; }
.gv-options label:hover span { background: var(--stone); }
.gv-options input:checked + span { background: var(--ink); color: #fff; }
.gv-qty input { max-width: 7em; }

/* ---------- After submitting ---------- */
.gv-done { outline: none; }
.gv-done h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .6em; }
.gv-done h3 { margin: 1.6rem 0 .3rem; }
.gv-facts { margin: 0; border-top: 1px solid var(--ink); }
.gv-facts > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 2px 16px; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.gv-facts dt { color: var(--muted); font-size: .95rem; }
.gv-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.gv-pay { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.gv-pay li { border-bottom: 1px solid var(--line); }
.gv-pay a, .gv-pay div { display: block; padding: .8rem 0; text-decoration: none; color: inherit; }
.gv-pay strong { display: block; font: 400 1.6rem/1.15 var(--serif); color: var(--ink); }
.gv-pay a strong::after { content: " →"; font-family: var(--sans); font-size: .7em; }
.gv-pay a:hover strong { color: var(--accent); }

/* ---------- Running now, on the donate page ---------- */
.gv-campaigns { padding: clamp(32px, 4vw, 56px) 0 0; }
.gv-campaigns h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: .5em; }
.gv-camp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.gv-camp-list li { border-bottom: 1px solid var(--line); }
.gv-camp-list a { display: block; padding: .9rem 0; text-decoration: none; color: inherit; }
.gv-camp-list strong { display: block; font: 400 clamp(1.3rem, 1.8vw, 1.65rem)/1.15 var(--serif); color: var(--ink); }
.gv-camp-list strong::after { content: " →"; font-family: var(--sans); font-size: .65em; }
.gv-camp-list a:hover strong { color: var(--accent); }

/* ---------- Campaign list ---------- */
.cp-list { list-style: none; margin: 0 0 clamp(40px, 5vw, 72px); padding: 0; border-top: 1px solid var(--ink); }
.cp-list li { border-bottom: 1px solid var(--line); }
.cp-past { margin-top: clamp(32px, 4vw, 56px); }
.cp-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(14px, 1.6vw, 22px) 0; text-decoration: none; color: inherit; }
.cp-row-img { display: block; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.cp-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cp-row:hover img { transform: scale(1.03); }
.cp-row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-row-text strong { font: 400 clamp(1.45rem, 2.2vw, 2rem)/1.08 var(--serif); color: var(--ink); transition: color .2s; }
.cp-row:hover strong { color: var(--accent); }
.cp-row-go { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.cp-bar { display: block; height: 3px; background: var(--stone-2); margin-top: 8px; max-width: 420px; }
.cp-bar i { display: block; height: 100%; background: var(--accent); }
.cp-raised { font-size: .92rem; color: var(--muted); }

/* ---------- One campaign ---------- */
.cp-draft { margin: 0; padding: 10px var(--gutter); background: var(--stone); color: var(--ink); font-weight: 500; }
.page-hero.is-draft { margin-top: 0; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.cp-side { position: sticky; top: calc(var(--header-h) + 20px); min-width: 0; }
.cp-progress { margin-bottom: clamp(24px, 3vw, 40px); }
.cp-raised-big { margin: 0; color: var(--ink-2); }
.cp-raised-big strong { font: 400 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--serif); color: var(--ink); letter-spacing: -.015em; margin-right: 6px; }
.cp-progress .cp-bar { max-width: none; height: 4px; margin-top: 12px; }
.cp-when { color: var(--muted); }
.cp-body { font-size: 1.08rem; max-width: 36em; }
.cp-prizes { margin-top: clamp(28px, 4vw, 48px); }
.cp-prizes h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: .4em; }
.cp-prizes ol, .cp-prizes ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cp-prizes li { display: flex; flex-direction: column; gap: 2px; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.cp-prizes strong { font: 400 clamp(1.25rem, 1.6vw, 1.5rem)/1.15 var(--serif); color: var(--ink); }
/* A prize's detail and the drawing date: quieter and tighter than body text, so a two-line detail reads as one note. */
.cp-prizes li span { font-size: .95rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.cp-prizes li { gap: 4px; padding: .9rem 0; }
.cp-story .cp-when { margin: 1rem 0 0; font-size: .95rem; line-height: 1.45; }
.cp-rules { margin-top: clamp(24px, 3vw, 40px); padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.cp-closed h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.cp-missing { padding-block: 96px; }

@media (max-width: 960px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-side { position: static; }
}
@media (max-width: 640px) {
  .gv-two { grid-template-columns: minmax(0, 1fr); }
  .gv-facts > div { grid-template-columns: minmax(0, 1fr); }
  .cp-row { grid-template-columns: minmax(0, 1fr); }
  .cp-row-go { justify-self: start; }
}

/* ---------- Safra: the form beside other ways to give ---------- */
.gv-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.gv-layout .gv-wrap { max-width: 680px; margin: 0; width: 100%; }
.gv-aside { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 6px; }
.gv-aside h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: .6em; }
.gv-other { list-style: none; margin: 0 0 1.4rem; padding: 0; border-top: 1px solid var(--ink); }
.gv-other li { border-bottom: 1px solid var(--line); }
.gv-other a, .gv-other div { display: block; padding: 1rem 0; text-decoration: none; color: inherit; }
.gv-other strong { display: block; font: 400 1.35rem/1.2 var(--serif); color: var(--ink); margin-bottom: 2px; }
.gv-other span { color: var(--ink-2); font-size: .95rem; }
.gv-other a strong::after { content: " →"; font-family: var(--sans); font-size: .7em; color: var(--bronze); }
.gv-other a:hover strong { color: var(--bronze-dk); }
.gv-campaigns { padding-top: clamp(48px, 6vw, 80px); }
.gv-campaigns .gv-wrap { max-width: none; }
.page-hero.is-draft { padding-top: 24px; }
@media (max-width: 960px) {
  .gv-layout { grid-template-columns: minmax(0, 1fr); }
  .gv-aside { position: static; }
}
/* Marcellus's zero is a perfect ring; a lone "$0" reads better in Figtree. */
.cp-raised-big strong { font-family: var(--sans); font-weight: 300; }


.cp-row-img, .page-hero-photo { position: relative; }
/* A campaign without its own photo: a designed cover. Ark green, deep green or plaster; their emblem above
   the campaign name, inside a fine champagne frame. */
.cp-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqw; padding: 10% 12%; overflow: hidden; container-type: inline-size; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #2a4a41, var(--navy) 55%, var(--navy-dk)); border-radius: inherit; }
.cp-tone-1 { background: radial-gradient(120% 90% at 50% 0%, #2f3a7a, #232c5e 60%, #1a2147); }
.cp-tone-2 { background: radial-gradient(120% 90% at 50% 0%, #ffffff, #f6f4ef 60%, #e9e6dd); color: var(--ink); }
.cp-cover-fold { position: absolute; inset: 4.5%; border: 1px solid rgba(221, 208, 174, .7); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(221, 208, 174, .35); pointer-events: none; }
.cp-tone-2 .cp-cover-fold { border-color: rgba(185, 167, 126, .8); box-shadow: inset 0 0 0 5px rgba(185, 167, 126, .3); }
.cp-cover-book { position: relative; width: 16cqw; height: auto; opacity: 1; }
.cp-tone-2 .cp-cover-book { content: url(/images/logo-mark.svg); opacity: 1; }
.cp-cover-title { position: relative; max-width: 15ch; font: 300 clamp(1rem, 8cqw, 3.4rem)/1.06 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.page-hero-photo .cp-cover-book, .cp-row-img .cp-cover-book { width: 16cqw; height: auto; object-fit: contain; position: relative; inset: auto; }
.cp-row-img, .page-hero-photo { border-radius: var(--radius); overflow: hidden; }
/* A campaign's page: the title at the top beside the photo, the short description under it. */
.page-hero-grid.cp-hero-grid { align-items: start; }
.cp-progress .cp-when { margin: 12px 0 0; font-size: .95rem; }
/* Supporters (back office: recent gifts or top donors), under the long description */
.cp-supporters { margin-top: clamp(32px, 4vw, 52px); }
.cp-supporters h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: .45em; }
.cp-supporters ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bronze); }
.cp-supporters li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cp-sup-name { display: flex; flex-direction: column; gap: 2px; font: 400 clamp(1.15rem, 1.5vw, 1.3rem)/1.25 var(--serif); color: var(--ink); }
.cp-sup-ded { font: 400 .9rem/1.4 var(--sans); color: var(--muted); }
.cp-sup-amt { font: 500 1rem var(--sans); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); white-space: nowrap; }
.cp-sup-sample { margin: .8em 0 0; font-size: .85rem; color: var(--muted); }
/* A campaign's header, compact (owner, 2026-11-24: "make this header smaller"): a smaller title and photo, less
   padding, so the form and the story start on the first screen. */
.page-hero:has(.cp-hero-grid) { padding-top: clamp(20px, 2.4vw, 36px); }
.page-hero .page-hero-grid.cp-hero-grid { align-items: center; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(20px, 2.4vw, 36px); }
.page-hero .cp-hero-grid h1 { font-size: clamp(2rem, 3.1vw, 2.8rem); line-height: 1.08; margin-bottom: .35em; }
.page-hero .cp-hero-grid .page-hero-lede { font-size: clamp(1rem, 1.1vw, 1.08rem); }
@media (min-width: 761px) { .page-hero .page-hero-grid.cp-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
/* The description's first paragraph, then the rest (campaign.js heroBody): one text beside the photo; on a phone the
   photo sits between them (the text column's parts become the grid's own rows, the photo ordered after the first). */
.page-hero .cp-hero-rest { margin-top: .7em; }
@media (max-width: 760px) {
  .page-hero .page-hero-grid.cp-hero-grid:has(.cp-hero-rest) { row-gap: 0; }
  .cp-hero-grid:has(.cp-hero-rest) .page-hero-text { display: contents; }
  .cp-hero-grid:has(.cp-hero-rest) .page-hero-photo { order: 1; margin: 28px 0; }
  .page-hero .cp-hero-grid .cp-hero-rest { order: 2; margin-top: 0; }
}
/* The campaign's own words in the header (white on green), then the form in two columns: the tickets (or the gift)
   with the prizes under them on the left, the details and paying on the right. */
.page-hero .cp-hero-when { margin: 0 0 .9em; font-size: .95rem; color: rgba(255, 255, 255, .72); }
.page-hero .cp-hero-body { max-width: 38em; font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.page-hero .cp-hero-body p { margin: 0 0 .7em; }
.page-hero .cp-hero-body p:last-child { margin-bottom: 0; }
.cp-form { min-width: 0; }
.cp-form > :not(.gv-form):not(.cp-story) { max-width: 640px; }
.gv-form.cp-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(36px, 6vw, 96px); align-items: start; }
.gv-form.cp-split .cp-col-a { grid-column: 1; grid-row: 1; min-width: 0; }
.gv-form.cp-split .cp-col-b { grid-column: 2; grid-row: 1 / span 2; min-width: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.gv-form.cp-split .cp-col-c { grid-column: 1; grid-row: 2; min-width: 0; }
.gv-form.cp-split .cp-col-b > .gv-group:first-child { margin-top: 0; }
.cp-story-after { margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 960px) {
  .gv-form.cp-split { grid-template-columns: minmax(0, 1fr); }
  .gv-form.cp-split .cp-col-a, .gv-form.cp-split .cp-col-b, .gv-form.cp-split .cp-col-c { grid-column: 1; grid-row: auto; position: static; }
  /* One column: the prizes come after the pay buttons and their notice, so they need room of their own (owner,
     2026-11-25: "The prizes" sat right on the notice's last line). */
  .gv-form.cp-split .cp-col-c { margin-top: clamp(56px, 12vw, 72px); }
}
.gv-form.cp-split .cp-col-c > :first-child { margin-top: 0; }
/* The card button and Apple Pay side by side (owner, 2026-11-24); the card button alone where there's no wallet, and
   one under the other on a narrow phone. */
.gv-pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.gv-pay-row:has(> #gv-express[hidden]), .gv-pay-row:not(:has(> #gv-express)) { grid-template-columns: 1fr; }
.gv-pay-row #gv-submit { min-height: 52px; margin: 0; }
.gv-pay-row .shulpay-express { margin: 0; min-width: 0; }
@media (max-width: 520px) { .gv-pay-row { grid-template-columns: 1fr; } }
/* A sweepstakes: the official rules folded under their name, the no-purchase notice first inside them. */
.cp-official summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.cp-official[open] summary { margin-bottom: .8rem; }
.cp-official p { margin: 0 0 .7em; }
.cp-official .cp-sweep-notice { color: var(--ink-2); text-wrap: pretty; }
