/* The gift control. Two photographs, one glass panel, two threads. See partials/giver.njk. */
.gv { --gu: 1fr; --gw: 1fr; --glass: rgba(251, 252, 249, .8); position: relative; isolation: isolate; color: #fff; }
.gv[data-gv-split="urban"] { --gu: 1fr; --gw: .24fr; }
.gv[data-gv-split="wild"] { --gu: .24fr; --gw: 1fr; }

/* ---------- the stage: two photographs side by side ---------- */
.gv-stage { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: var(--gu) var(--gw); gap: 3px; background: var(--void); transition: grid-template-columns .9s var(--ease); }
.gv-photo { position: relative; overflow: hidden; }
.gv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 6s var(--ease), filter .8s var(--ease); }
.gv-photo img.is-on { opacity: 1; transform: scale(1); }
.gv-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: background-color .8s var(--ease);
  background: linear-gradient(180deg, rgba(6,18,12,.62) 0%, rgba(6,18,12,.12) 26%, rgba(6,18,12,0) 46%, rgba(6,18,12,.28) 66%, rgba(6,18,12,.86) 100%); }
.gv[data-gv-split="wild"] .gv-photo-urban img,
.gv[data-gv-split="urban"] .gv-photo-wild img { filter: grayscale(1) brightness(.45) contrast(.9); }
.gv-seam { display: none; }

/* ---------- threads from the panel to each place ---------- */
.gv-threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.gv-thread { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.5 7.5; animation: gv-flow 1.1s linear infinite; transition: opacity .6s var(--ease); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.gv-thread-wild { animation-direction: normal; }
@keyframes gv-flow { to { stroke-dashoffset: -18; } }
.gv-knot { transition: opacity .6s var(--ease); }
.gv-knot { r: 4.5px; }
.gv-knot-urban { fill: #fff; }
.gv-knot-wild { fill: none; stroke: #fff; stroke-width: 2.4; }
.gv[data-gv-split="wild"] [data-gv-thread="urban"], .gv[data-gv-split="wild"] [data-gv-knot="urban"],
.gv[data-gv-split="urban"] [data-gv-thread="wild"], .gv[data-gv-split="urban"] [data-gv-knot="wild"] { opacity: 0; }
/* A match still being agreed: no share, no check, no link, just what is happening */
.gv .gv-place-col.is-forming .gv-place { cursor: default; }
.gv .gv-place-col.is-forming .gv-check, .gv .gv-place-col.is-forming .gv-place-amt, .gv .gv-place-col.is-forming .gv-place-off, .gv .gv-place-col.is-forming .gv-place-where { display: none; }
.gv .gv-place-col.is-forming .gv-place-gives { display: block; }
/* the forming side keeps its colour, only quieter: it is not excluded, it is on its way */
.gv[data-gv-lock="urban"] .gv-photo-wild img, .gv[data-gv-lock="wild"] .gv-photo-urban img { filter: brightness(.62) saturate(.85); }
.gv-place-link[hidden], .gv-switch[hidden], .gv-lock-note[hidden] { display: none; }
.gv-lock-note { margin: 0; padding: 12px 0 2px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--stone); text-wrap: pretty; }

/* ---------- the layer on top ---------- */
.gv-ui { position: relative; z-index: 2; display: flex; flex-direction: column; width: min(1480px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.gv-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px) minmax(0, 1fr); align-items: end; gap: clamp(24px, 3.4vw, 60px); }

/* The page heading and the row of places */
.gv-rail-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.gv-h { font-size: clamp(30px, 3vw, 46px); color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.gv-rail { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gv-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; text-align: left; color: #fff; background: rgba(6,18,12,.34); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease); }
.gv-chip:hover { background: rgba(6,18,12,.5); border-color: rgba(255,255,255,.45); }
.gv-chip[aria-checked="true"] { background: #fff; color: var(--forest); border-color: #fff; }
.gv-chip-pics { display: flex; flex: none; }
.gv-chip-pics img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.9); }
.gv-chip-pics img + img { margin-left: -11px; }
.gv-chip-text { display: grid; gap: 3px; }
.gv-chip-text b { font-weight: 500; font-size: 14px; line-height: 1.1; white-space: nowrap; }
.gv-chip-text b i { font-style: normal; opacity: .55; }
.gv-chip-text small { font-size: 12px; line-height: 1; opacity: .75; white-space: nowrap; }
.gv-chip.is-urgent small { opacity: 1; color: var(--sprout); font-weight: 600; letter-spacing: .02em; }
.gv-chip.is-urgent[aria-checked="true"] small { color: var(--leaf); }
.gv-chip-all { padding: 6px 14px; }
.gv-chip-all svg { width: 22px; height: 22px; margin: 0 2px 0 4px; }

/* ---------- a place: the share it gets and what that share does ---------- */
.gv-place-col { display: grid; gap: 12px; align-self: end; justify-items: start; min-width: 0; }
.gv-place-col-wild { justify-self: end; justify-items: end; }
.gv-place-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font: 500 13px/1 var(--sans); color: #fff; background: rgba(6,18,12,.3); border: 1px solid rgba(255,255,255,.34); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); text-shadow: none; transition: background-color .3s, border-color .3s; }
.gv-place-link:hover { background: #fff; color: var(--forest); border-color: #fff; }
.gv-place-link svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.gv-place-link:hover svg { transform: translateX(3px); }
.gv-place { display: grid; justify-items: start; gap: 8px; max-width: 24em; padding: 0; color: #fff; text-align: left; cursor: pointer; text-shadow: 0 1px 18px rgba(0,0,0,.4); }
.gv-place-wild { justify-items: end; text-align: right; }
.gv-place-tag { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 10px; font: 500 13px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; text-shadow: none; background: rgba(6,18,12,.3); border: 1px solid rgba(255,255,255,.34); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); transition: background-color .35s, border-color .35s; }
.gv-place:hover .gv-place-tag { background: rgba(6,18,12,.5); border-color: rgba(255,255,255,.6); }
.gv-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; color: var(--forest); transition: background-color .35s, box-shadow .35s; }
.gv-check svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease); }
.gv-place-col.is-off .gv-check { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.gv-place-col.is-off .gv-check svg { stroke-dashoffset: 16; }
.gv-place-amt { font-size: clamp(52px, 5.4vw, 92px); letter-spacing: -.035em; line-height: .9; margin-top: 6px; transition: opacity .5s; }
.gv-place-amt .cur { font-size: .5em; vertical-align: .62em; margin-right: .08em; opacity: .7; }
.gv-place-name { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
.gv-place-gives { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.9); max-width: 19em; text-wrap: balance; }
.gv-place-off { display: none; font-size: 15px; color: rgba(255,255,255,.8); }
.gv-place-where { font-size: 12px; color: rgba(255,255,255,.66); letter-spacing: .01em; }
.gv-place-credit::before { content: "· "; }
.gv-place-col.is-off .gv-place-amt { opacity: .35; }
.gv-place-col.is-off .gv-place-gives { display: none; }
.gv-place-col.is-off .gv-place-off { display: block; }
.gv-place:focus-visible { outline: 2px solid #fff; outline-offset: 8px; border-radius: 8px; }

/* ---------- the glass panel ---------- */
.gv-panel { position: relative; align-self: center; display: grid; gap: 16px; padding: 22px; color: var(--ink); border-radius: 24px; text-shadow: none;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(6,18,12,.06), inset 0 1px 0 rgba(255,255,255,.95); }
.gv-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.7), transparent 60%); }
.gv-panel > * { position: relative; }

/* The appeal card: the forest from above, as in the footer, with the money and the days in display type */
.gv-appeal { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; color: #fff; box-shadow: 0 18px 34px -22px rgba(6,18,12,.9), inset 0 0 0 1px rgba(255,255,255,.14); background: var(--void); }
.gv-appeal-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: gv-bg 32s ease-in-out infinite alternate; }
@keyframes gv-bg { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.gv-appeal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(6,18,12,.7) 0%, rgba(10,34,24,.42) 55%, rgba(10,34,24,.22) 100%); }
.gv-appeal-in { display: grid; gap: 14px; padding: 14px 16px 13px; }
.gv-appeal-tag { justify-self: start; padding: 6px 11px; font-size: 12px; }
.gv-appeal-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.gv-appeal-fig, .gv-appeal-days { display: grid; gap: 4px; margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.gv-appeal-fig b, .gv-appeal-days b { font: 500 40px/.95 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums lining-nums; }
.gv-appeal-fig span, .gv-appeal-days span { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.88); max-width: 16em; text-wrap: balance; }
.gv-appeal-days { text-align: right; justify-items: end; flex: none; }
.gv-appeal-days span { max-width: none; }
.gv-appeal-days b { color: var(--sprout); }
.gv-appeal.is-quiet .gv-appeal-fig span { max-width: 22em; }
.gv-ticks { display: grid; grid-template-columns: repeat(var(--n, 30), 1fr); gap: 3px; height: 14px; align-items: end; margin-top: 2px; }
.gv-ticks[hidden], .gv-ticks-legend[hidden], .gv-appeal-days[hidden] { display: none; }
.gv-ticks i { display: block; height: 7px; border-radius: 2px; background: rgba(255,255,255,.28); }
.gv-ticks i.is-past { background: rgba(169,213,160,.7); height: 5px; }
.gv-ticks i.is-today { background: #fff; height: 14px; animation: gv-today 1.6s var(--ease) infinite alternate; }
.gv-ticks i.is-end { background: var(--sprout); height: 14px; }
@keyframes gv-today { from { opacity: 1; } to { opacity: .45; } }
.gv-ticks-legend { display: flex; justify-content: space-between; margin: -6px 0 0; font-size: 11px; color: rgba(255,255,255,.78); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* The split switch, drawn with the logo's own disc and ring */
.gv-switch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: rgba(18,56,42,.07); box-shadow: inset 0 0 0 1px var(--line); }
.gv-switch button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 9px 6px 8px; min-width: 0; border-radius: 10px; color: var(--stone); font: 500 13px/1.15 var(--sans); transition: color .35s; }
.gv-switch button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-switch button[aria-checked="true"] { color: var(--forest); }
.gv-switch svg { width: 34px; height: 17px; overflow: visible; }
.gv-switch .f { fill: currentColor; }
.gv-switch .r { fill: none; stroke: currentColor; stroke-width: 2.2; }
.gv-switch .l { stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 1.4 3; stroke-linecap: round; }
.gv-switch-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -8px rgba(18,56,42,.45), 0 0 0 1px rgba(18,56,42,.06); transform: translateX(calc(var(--si, 0) * 100%)); transition: transform .5s var(--ease); }
.gv-switch button:focus-visible { outline: 2px solid var(--leaf); outline-offset: -2px; }

/* The amount: you can type straight into the big number */
.gv-amount { display: grid; gap: 10px; }
.gv-big { display: flex; align-items: baseline; gap: 2px; font-size: clamp(56px, 4.8vw, 72px); color: var(--forest); cursor: text; line-height: 1; padding-bottom: 6px; border-bottom: 1.5px dashed var(--line-strong); transition: border-color .3s; }
.gv-big:focus-within { border-bottom-color: var(--leaf); border-bottom-style: solid; }
.gv-big .cur { font-size: .5em; align-self: flex-start; margin-top: .22em; }
.gv-big input { width: 3ch; min-width: 1ch; max-width: 7ch; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; outline: none; }
.gv-big-edit { margin-left: auto; align-self: center; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--stone); background: rgba(18,56,42,.06); }
.gv-big-edit svg { width: 15px; height: 15px; }
.gv-what { min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--stone); text-wrap: pretty; }
.gv-what b { color: var(--forest); font-weight: 500; }
.gv-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gv-presets button { display: grid; gap: 4px; justify-items: center; align-content: center; padding: 10px 4px 9px; border-radius: 12px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); color: var(--forest); transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.gv-presets button:hover { box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-1px); }
.gv-presets b { font-size: 18px; }
.gv-presets small { font-size: 10.5px; line-height: 1.15; letter-spacing: .02em; color: var(--stone); text-align: center; transition: color .3s; }
.gv-presets button[aria-pressed="true"] { background: var(--forest); color: #fff; box-shadow: none; }
.gv-presets button[aria-pressed="true"] small { color: var(--sprout); }
.gv-err { font-size: 13px; color: #9b2c1f; }

/* The button: forest with a thin sprout edge, the amount in the label and where it lands under it.
   A slow shine, no glow, and it stays where it is on hover. */
.gv-give { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; padding: 0 10px 0 22px; border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, #19463a 0%, #12382A 100%); background: linear-gradient(180deg, #184530 0%, var(--forest) 100%);
  box-shadow: 0 14px 28px -14px rgba(18,56,42,.8), inset 0 0 0 1px rgba(169,213,160,.24), inset 0 1px 0 rgba(255,255,255,.12); transition: background-color .35s; }
.gv-give::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 28%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent); transform: skewX(-18deg); animation: gv-shine 5s var(--ease) infinite 1.5s; }
@keyframes gv-shine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.gv-give:hover { background: linear-gradient(180deg, #2a6544 0%, var(--moss) 100%); }
.gv-give svg { flex: none; width: 46px; height: 46px; padding: 13px; border-radius: 13px; background: var(--sprout); color: var(--forest); transition: transform .45s var(--ease); }
.gv-give:hover svg { transform: translateX(3px); }
.gv-give[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.gv-give-label { display: grid; gap: 4px; min-width: 0; text-align: left; }
.gv-give-label b { font: 600 20px/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
.gv-give-label small { font: 400 13px/1.2 var(--sans); color: rgba(255,255,255,.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-give-sm { height: 52px; padding: 0 8px 0 18px; font-size: 16px; border-radius: 14px; }
.gv-give-sm svg { width: 36px; height: 36px; padding: 9px; border-radius: 10px; }
.gv-trust { display: flex; gap: 8px; align-items: center; font-size: 12px; line-height: 1.4; color: var(--stone); }
.gv-trust svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--moss); }
.gv-elsewhere { justify-self: center; font-size: 14px; color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- the whole page version ---------- */
.gv-page { --ext: clamp(90px, 15vh, 170px); min-height: calc(max(600px, 100svh) + var(--ext)); padding-bottom: var(--ext); display: flex; }
.gv-page .gv-stage { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent); }
/* the page's own shade is not wanted here: the header's soft fade meets the photographs directly */
main .gv-page[data-hero]::after { content: none; }
.gv-page .gv-ui { padding: calc(var(--header-h) + clamp(22px, 3.6vh, 40px)) 0 clamp(16px, 2.6vh, 32px); gap: clamp(12px, 2vh, 24px); }

/* ---------- the contained version on a patch page ---------- */
.gv-inline { display: flex; min-height: 700px; border-radius: 26px; overflow: hidden; }
.gv-inline .gv-stage { border-radius: inherit; }
.gv-inline .gv-ui { width: calc(100% - 2 * clamp(24px, 3vw, 48px)); padding: clamp(28px, 4vw, 48px) 0; }

/* ---------- every place, searchable ---------- */
.gv-all { width: min(640px, 100% - 32px); max-height: min(720px, 86vh); padding: 0; border: 0; border-radius: 22px; background: var(--canvas); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.gv-all[open] { display: flex; flex-direction: column; animation: gv-pop .45s var(--ease); }
.gv-all::backdrop { background: rgba(6,18,12,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes gv-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.gv-all-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 22px 0; }
.gv-all-head h2 { font-size: 28px; color: var(--forest); }
.gv-all-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--forest); background: var(--mist); }
.gv-all-x svg { width: 20px; height: 20px; }
.gv-all-search { display: flex; align-items: center; gap: 10px; margin: 16px 22px 10px; padding: 0 14px; height: 50px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.gv-all-search:focus-within { box-shadow: inset 0 0 0 2px var(--leaf); }
.gv-all-search svg { width: 20px; height: 20px; color: var(--stone); }
.gv-all-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.gv-all-list { list-style: none; overflow: auto; padding: 4px 12px 16px; }
.gv-all-list li[hidden] { display: none; }
.gv-all-list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; text-align: left; transition: background-color .25s; }
.gv-all-list button:hover { background: var(--mist); }
.gv-all-pics { display: flex; align-items: center; }
.gv-all-pics img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.gv-all-pics svg { width: 22px; height: 10px; stroke: var(--leaf); stroke-width: 1.6; stroke-dasharray: 1.4 3.2; stroke-linecap: round; }
.gv-all-text { display: grid; gap: 4px; }
.gv-all-text b { font-weight: 500; color: var(--forest); }
.gv-all-text b i { font-style: normal; color: var(--leaf); }
.gv-all-text small { font-size: 13px; color: var(--stone); line-height: 1.35; }

.gv-all-none { padding: 4px 22px 22px; color: var(--stone); }
.gv-all-none a { color: var(--moss); text-decoration: underline; }

.gv-dock { display: none; }

/* ---------- tablets and phones: photographs on top, the panel under them ---------- */
@media (max-width: 1080px) {
  .gv-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px) minmax(0, 1fr); gap: 20px; }
  .gv-place-gives { font-size: 14px; }
}
@media (max-width: 900px) {
  .gv { color: var(--ink); display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(var(--gv-photo-h, 54svh), auto) auto; min-height: 0; }
  .gv-ui, .gv-grid { display: contents; }
  .gv-threads { display: none; }
  .gv-stage { position: relative; inset: auto; grid-row: 2; grid-column: 1 / -1; z-index: 0; gap: 2px; }
  .gv-photo::after { background: linear-gradient(180deg, rgba(6,18,12,.12) 0%, rgba(6,18,12,0) 30%, rgba(6,18,12,.3) 58%, rgba(6,18,12,.88) 100%); }
  .gv-rail-row { grid-row: 1; grid-column: 1 / -1; display: grid; gap: 14px; padding: 20px 0 16px; }
  .gv-h { padding: 0 var(--gutter); font-size: clamp(30px, 8.4vw, 38px); color: var(--forest); text-shadow: none; }
  .gv-rail { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--gutter) 4px; scroll-padding: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
  .gv-rail::-webkit-scrollbar { display: none; }
  .gv-chip { flex: none; scroll-snap-align: start; color: var(--forest); background: #fff; border-color: var(--line-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gv-chip:hover { background: #fff; }
  .gv-chip[aria-checked="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
  .gv-chip.is-urgent small { color: var(--moss); }
  .gv-chip.is-urgent[aria-checked="true"] small { color: var(--sprout); }
  .gv-place-col { grid-row: 2; z-index: 1; align-self: end; gap: 10px; padding: 0 12px 48px 16px; }
  .gv-place { max-width: none; gap: 5px; }
  .gv-place-col-urban { grid-column: 1; }
  .gv-place-col-wild { grid-column: 2; padding: 0 16px 48px 12px; }
  .gv[data-gv-split="urban"] .gv-place-col-urban, .gv[data-gv-split="wild"] .gv-place-col-wild { grid-column: 1 / -1; }
  .gv[data-gv-split="urban"] .gv-place-col-wild, .gv[data-gv-split="wild"] .gv-place-col-urban { display: none; }
  .gv-place-link { padding: 7px 10px; font-size: 12px; }
  .gv-place-tag { font-size: 12px; padding: 5px 10px 5px 5px; }
  .gv-check { width: 18px; height: 18px; }
  .gv-place-amt { font-size: clamp(34px, 10vw, 46px); margin-top: 4px; }
  .gv-place-name { font-size: 20px; }
  .gv-place-gives { font-size: 13px; line-height: 1.35; }
  .gv-place-off { font-size: 13px; }
  .gv-place-where { display: none; }
  .gv-panel { grid-row: 3; grid-column: 1 / -1; z-index: 2; margin: -34px 12px 0; padding: 18px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 30px 60px -36px rgba(6,18,12,.6), 0 0 0 1px var(--line); }
  .gv-page { padding: var(--header-h) 0 28px; min-height: 0; background: var(--canvas); --ext: 0px; }
  .gv-page .gv-stage { -webkit-mask-image: none; mask-image: none; }
  .gv-inline { border-radius: 22px; overflow: hidden; background: var(--mist); padding-bottom: 12px; --gv-photo-h: 46svh; }
  .gv-dock { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px; color: var(--ink);
    background: rgba(251,252,249,.86); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 20px 40px -18px rgba(6,18,12,.55), 0 0 0 1px var(--line);
    transform: translateY(140%); transition: transform .5s var(--ease); }
  .gv-dock.is-on { transform: none; }
  .gv-dock-text { display: grid; gap: 2px; min-width: 0; }
  .gv-dock-text b { font-size: 22px; color: var(--forest); }
  .gv-dock-text small { font-size: 12px; color: var(--stone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gv-give-sm { height: 50px; padding: 0 8px 0 18px; font-size: 16px; }
  .gv-give-sm svg { width: 36px; height: 36px; padding: 9px; }
}
@media (max-width: 400px) {
  .gv-presets { grid-template-columns: repeat(2, 1fr); }
  .gv-presets button { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 8px; padding: 11px 12px; }
  .gv-presets small { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .gv-thread, .gv-give::before, .gv-ticks i.is-today, .gv-appeal-bg { animation: none; }
  .gv-stage, .gv-photo img { transition: none; }
}

/* Laptops with short screens: the whole control still fits above the fold */
@media (min-width: 901px) and (max-height: 960px) {
  .gv-page .gv-ui { padding: calc(var(--header-h) + 30px) 0 16px; gap: 12px; }
  .gv-h { font-size: clamp(28px, 2.4vw, 36px); }
  .gv-chip { padding: 5px 12px 5px 5px; }
  .gv-chip-pics img { width: 30px; height: 30px; }
  .gv-panel { gap: 12px; padding: 18px; }
  .gv-appeal-in { padding: 11px 14px 10px; gap: 10px; }
  .gv-appeal-fig b, .gv-appeal-days b { font-size: 33px; }
  .gv-appeal-fig span, .gv-appeal-days span { font-size: 12px; }
  .gv-switch button { padding: 7px 6px 6px; }
  .gv-big { font-size: 50px; padding-bottom: 4px; }
  .gv-what { min-height: 0; font-size: 13px; }
  .gv-presets button { padding: 8px 4px 7px; }
  .gv-give { height: 58px; }
  .gv-give svg { width: 40px; height: 40px; padding: 11px; }
  .gv-give-label b { font-size: 18px; }
  .gv-place-amt { font-size: clamp(44px, 4.4vw, 64px); }
  .gv-place-name { font-size: clamp(22px, 1.9vw, 28px); }
  .gv-place-gives { font-size: 14px; }
}
@media (max-width: 900px) {
  .gv-switch button span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; font-size: 12.5px; }
}

/* Laptops with a short window: everything has to sit inside one screen. Each step takes out what
   is least needed to decide, in this order: the tier sentence, the strip legend, then size. */
@media (min-width: 901px) and (max-height: 830px) {
  .gv-what { display: none; }
  .gv-panel { gap: 10px; padding: 16px; }
  .gv-appeal-in { padding: 10px 14px 9px; gap: 8px; }
  .gv-appeal-fig b, .gv-appeal-days b { font-size: 30px; }
  .gv-appeal-tag { padding: 5px 10px; font-size: 11.5px; }
  .gv-ticks-legend { display: none; }
  .gv-big { font-size: 46px; }
  .gv-presets button { padding: 7px 4px 6px; }
  .gv-presets small { font-size: 10px; }
  .gv-give { height: 54px; }
  .gv-give-label b { font-size: 17px; }
  .gv-give-label small { font-size: 12px; }
  .gv-place-col { gap: 9px; }
  .gv-place-link { padding: 7px 12px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .gv-h { font-size: 26px; }
  .gv-chip { padding: 4px 11px 4px 4px; }
  .gv-chip-pics img { width: 26px; height: 26px; }
  .gv-switch button { padding: 5px 6px 4px; }
  .gv-switch svg { height: 14px; }
  .gv-big { font-size: 40px; }
  .gv-appeal-fig span, .gv-appeal-days span { font-size: 12px; }
  .gv-place-amt { font-size: clamp(38px, 4vw, 54px); }
  .gv-place-gives { display: none; }
}
.page-donate { --header-fade-depth: 34px; }

/* Phone only: the give line may wrap instead of cutting the place names short */
@media (max-width: 640px) {
  .gv-give { height: auto; min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
  .gv-give-label small { white-space: normal; overflow: visible; }
}

.gv-step { display: none; }
/* ---------- The gift control on a phone (donate, patch pages, home): one clear path, top to bottom ----------
   1 pick a pair  2 see the two places  3 how much  4 where it goes  5 give.
   The urgency sits in a slim strip; the photographs are shorter so the amount is on the first screen. */
@media (max-width: 640px) {
  .gv { --gv-photo-h: 190px; }
  .gv-page { padding-bottom: 24px; }
  .gv-inline { padding-bottom: 16px; }
  .gv .gv-rail-row { padding: 14px 0 12px; gap: 12px; }
  .gv .gv-h { font-size: 30px; }
  .gv .gv-place-col { padding: 0 10px 12px 24px; gap: 8px; }
  .gv .gv-place-col-wild { padding: 0 24px 12px 10px; }
  .gv .gv-place-gives, .gv .gv-place-off { display: none; }
  .gv .gv-place-amt { font-size: 26px; margin-top: 2px; }
  .gv .gv-place-name { font-size: 18px; }
  .gv .gv-place-tag { font-size: 11.5px; }
  /* the amount comes first; the two places it will reach sit underneath */
  .gv { grid-template-rows: auto auto minmax(var(--gv-photo-h), auto); }
  .gv .gv-panel { grid-row: 2; margin: 0 10px 12px; padding: 16px; gap: 12px; }
  .gv .gv-stage { grid-row: 3; margin: -28px 10px 0; border-radius: 18px; overflow: hidden; }
  .two .gv-inline { background: transparent; }
  .gv .gv-place-col { grid-row: 3; }
  .gv .gv-panel > * { order: 5; }
  .gv .gv-appeal { order: 0; }
  .gv .gv-step-amt { order: 1; }
  .gv .gv-amount { order: 2; }
  .gv .gv-step-split { order: 3; }
  .gv .gv-switch { order: 4; }
  .gv .gv-give { order: 6; }
  .gv .gv-trust { order: 7; }
  .gv .gv-elsewhere { order: 8; }
  .gv .gv-step { display: block; margin: 2px 0 -4px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
  .gv .gv-ticks, .gv .gv-ticks-legend { display: none; }
  .gv .gv-appeal-in { padding: 12px 14px; gap: 6px; }
  .gv .gv-appeal-fig b, .gv .gv-appeal-days b { font-size: 26px; }
  .gv .gv-appeal-fig span, .gv .gv-appeal-days span { font-size: 12px; }
  .gv .gv-what { display: none; }
}

/* Opening Stripe Checkout, and when it cannot open */
.gv-give.is-busy { pointer-events: none; opacity: .8; }
.gv-give.is-busy svg { animation: gv-wait 1s linear infinite; }
@keyframes gv-wait { 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .gv-give.is-busy svg { animation: none; } }
.gv-trust.is-bad { color: #a3341a; font-weight: 500; }
