/* ISM Giving v2.1 — "Riviera daylight" design, loaded after site.css and platform.css.
   Bodoni Moda and Montserrat are bundled under the adjacent OFL licences (OFL.txt, OFL-montserrat.txt). */
/* Montserrat (variable, Latin only): the slides' "7 projects. One ambition." title, and the whole site in the font preview below. */
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/montserrat-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/montserrat-italic-latin.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('assets/fonts/bodoni-moda-roman.woff') format('woff'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('assets/fonts/bodoni-moda-italic.woff') format('woff'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --navy: #272D4C; --gold: #D4A465; --gold-deep: #B98943; --stone: #F3EFE8; --line: #E4DED3; --ink-2: #5A5F78;
  --ism-blue: var(--navy); --ism-dark: var(--navy); --ism-gold: var(--gold);
  --ink: var(--navy); --muted: var(--ink-2); --paper: #fff;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, serif; --sans: var(--serif); --figures: var(--serif);
}
html { background: #fff; scroll-behavior: smooth; scroll-padding-top: 90px; }
/* Bodoni's optical-size axis turns large text into hairlines (4 reads as 1). Pin the sturdy text cut everywhere;
   headings (h1-h3) take a slightly finer cut, still far from the display one. Controls need it too: `font` and <button> reset it. */
body, button, input, select, textarea {
  font-family: var(--serif); font-optical-sizing: none; font-variation-settings: 'opsz' 6; font-variant-numeric: lining-nums;
}
body { background: #fff; color: var(--navy); font-size: 16px; font-weight: 500; line-height: 1.55; }
h1, h2, h3 { font-variation-settings: 'opsz' 10; } /* headings: a little more contrast than text, never the display cut (its hairlines vanish on screen) */
::selection { background: var(--gold); color: var(--navy); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.rv-wrap { width: min(1320px, 100% - 48px); margin-inline: auto; }

/* Buttons: flat gold, navy on hover. Old class names (.donate-btn, .light-btn) share the look. */
.rv-btn, .donate-btn, .light-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 6px;
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold); font-size: 16px; font-weight: 600; line-height: 1;
  letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.rv-btn:hover, .donate-btn:hover, .light-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.rv-btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 80%); }
.rv-btn.ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.amount-btn { font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #CFC8BA; border-radius: 6px; }
.amount-btn:hover { border-color: var(--navy); }
.underlined-btn { color: var(--navy); border-color: var(--gold); font-weight: 600; }

/* Header */
.rv-top { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.rv-top .rv-wrap { width: min(1560px, 100% - 48px); display: flex; align-items: center; height: 76px; position: relative; }
.rv-brand img { height: 44px; width: auto; display: block; }
/* Near-clear glass top bar, not sticky: the home photo runs up under it. Pages without the photo get solid navy so the white logo stays readable. */
.rv-top { background: rgb(39 45 76 / 8%); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); border-bottom-color: rgb(255 255 255 / 18%); }
.rv-hero { margin-top: -77px; padding-top: 77px; }
body:not(:has(.rv-hero)) .rv-top { background: var(--navy); }
@media (max-width: 560px) {
  .rv-brand img { height: 36px; }
}

/* Hero with the house histogram */
.rv-hero { position: relative; background: url('assets/monaco-sea.jpg') center 62% / cover; color: #fff; }
.rv-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(39 45 76 / 84%) 0%, rgb(39 45 76 / 52%) 50%, rgb(39 45 76 / 12%) 100%); }
.rv-hero > .rv-wrap { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 620px); gap: 56px; align-items: center; padding: 56px 0 120px; }
.rv-hero h1 { font-size: clamp(46px, 5.6vw, 88px); line-height: 1.02; letter-spacing: 0; font-weight: 500; margin: 0 0 18px; max-width: 13ch; }
.rv-hero h1 b { font-weight: inherit; }
.rv-hero .rv-kicker { color: var(--gold); margin: -4px 0 16px; font-style: normal; font-weight: 700; }
.rv-hero .rv-kicker span { white-space: nowrap; }
/* the look of selected text (::selection above): gold band, navy type */
.rv-mark { background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 0 / 100% 100%; color: var(--navy); padding: 2px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rv-actions .rv-btn:not(.ghost) { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; padding: 20px 44px; font-size: 19px; border-radius: 8px; box-shadow: 0 0 0 5px rgb(232 201 143 / 30%), 0 14px 32px rgb(20 24 43 / 35%); transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.rv-actions .rv-btn:not(.ghost):hover { transform: translateY(-2px); box-shadow: 0 0 0 7px rgb(232 201 143 / 38%), 0 18px 36px rgb(20 24 43 / 40%); }
.rv-actions .rv-btn:not(.ghost):hover { background: var(--navy); border-color: var(--navy); }
.rv-lede { font-size: 20px; max-width: 34ch; color: rgb(255 255 255 / 88%); }
.rv-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.rv-houses { background: linear-gradient(150deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 4%) 55%, rgb(39 45 76 / 22%)); -webkit-backdrop-filter: blur(2px) saturate(140%); backdrop-filter: blur(2px) saturate(140%); border: 1px solid rgb(255 255 255 / 28%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 20px 50px rgb(20 24 43 / 25%); border-radius: 22px; padding: 26px 28px 22px; }
.rv-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; height: 420px; align-items: end; border-bottom: 1px solid var(--gold); }
.rv-cols .load-message { grid-column: 1 / -1; align-self: center; text-align: center; }
.rv-col { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; color: #fff; clip-path: inset(-120px -120px -4px -120px); } /* hides the bars below the baseline while they rise */
.rv-amt { font-size: 19px; font-weight: 500; margin-bottom: 8px; animation: rv-fade .6s calc(var(--d) + 1.1s) both; }
.rv-crown { width: 30px; height: 20px; margin-bottom: 4px; fill: var(--gold); filter: drop-shadow(0 2px 4px rgb(20 24 43 / 40%)); }
.rv-shaft { position: relative; display: block; width: min(100%, 84px); height: var(--h); border-radius: 60px 60px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 72%, #000)); animation: rv-rise 1.5s calc(var(--d) + .25s) cubic-bezier(.2, .8, .2, 1) both; }
.rv-logo { position: absolute; left: 50%; top: 12px; translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: rgb(255 255 255 / 16%); box-shadow: 0 0 0 3px rgb(255 255 255 / 30%); }
.rv-logo svg { width: 34px; height: 34px; overflow: visible; }
.rv-shaft::after { content: attr(data-n) '\A ' attr(data-unit); position: absolute; left: 50%; top: 68px; translate: -50% 0; white-space: pre; text-align: center; line-height: 1.2; background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 12px; box-shadow: 0 4px 12px rgb(20 24 43 / 25%); opacity: 0; transition: opacity .2s; }
.rv-col:hover { z-index: 1; }
.rv-col:hover .rv-shaft { overflow: visible; }
.rv-col:hover .rv-shaft::after { opacity: 1; }
.rv-lbl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 12px; text-align: center; font-size: 18px; font-weight: 500; }
.rv-lbl > span { justify-self: center; width: max-content; }
.rv-static :not(.rv-roll, .hi-part) { animation: none !important; } /* the House badges keep looping (public.js syncHouseIcons) */
@keyframes rv-rise { from { transform: translateY(100%); } } /* transform, not height: runs on the compositor, so it stays smooth while the page is still loading */
@keyframes rv-fade { from { opacity: 0; transform: translateY(6px); } }

/* Tally: three links with vertical dividers, overlapping the hero */
.rv-tally { position: relative; z-index: 2; margin: -74px auto 0; width: min(1320px, 100% - 48px); display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgb(39 45 76 / 16%); overflow: hidden; }
.rv-tally > * { padding: 26px 30px; border-left: 1px solid var(--line); transition: background .2s; }
.rv-tally > :first-child { border-left: 0; }
.rv-tally > a:hover, .rv-tally > a:focus-visible { background: #FBF8F2; }
.rv-tally b { display: block; font-size: 40px; font-weight: 600; line-height: 1.1; }
.rv-tally > * > span { font-size: 14px; color: var(--ink-2); }
.rv-tally a > span::after { content: ' ›'; color: var(--gold-deep); }
.rv-tally > a:hover > span, .rv-tally > a:focus-visible > span { color: var(--gold-deep); }

/* Sections */
.rv-section { padding: 110px 0; }
#projects.rv-section { padding-top: 90px; }
/* Every section head: kicker, title, one line of text, stacked on the content's left edge. */
.rv-head { display: flex; flex-direction: column; align-items: start; gap: 14px; margin-bottom: 44px; }
.rv-head h2 { font-size: 48px; font-weight: 500; line-height: 1.05; letter-spacing: 0; }
#projects-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 56px; line-height: 1.12; font-variation-settings: normal; }
#projects-title span { display: block; color: var(--gold); }
.rv-head > p { max-width: 1040px; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.rv-kicker { color: var(--gold-deep); font-size: 18px; margin-bottom: 8px; }

/* Project cards (home and house pages) */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rv-card { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: 0 8px 24px rgb(39 45 76 / 6%); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(39 45 76 / 12%); }
.rv-card img { display: block; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.rv-card img.is-plan { object-fit: contain; background: #fff; }
.rv-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.rv-n { color: var(--gold-deep); }
.rv-card h3 { font-size: 23px; font-weight: 500; line-height: 1.2; margin: 4px 0 16px; }
.rv-card p { color: var(--ink-2); margin-bottom: 20px; }
.rv-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.rv-meta b { color: var(--navy); font-size: 17px; font-weight: 600; }
.rv-track { height: 5px; background: var(--stone); border-radius: 9px; margin-top: 10px; overflow: hidden; }
.rv-track i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.rv-card.wide { grid-column: span 2; flex-direction: row; }
.rv-card.wide img { width: 58%; aspect-ratio: auto; }
.rv-card.wide h3 { font-size: 27px; }

/* Community */
.rv-comm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px; } /* minmax(0): one-line gifts must not widen the column */
/* Side by side, both columns end on the same line: the shorter list (or empty note) stretches its rows to the taller one's height. */
.rv-comm > div { display: flex; flex-direction: column; }
.rv-comm .rv-table:has(tr), .rv-feed ul, .rv-feed li, .rv-comm .rv-empty { flex: 1; }
.rv-feed ul { display: flex; flex-direction: column; }
.rv-feed li { align-items: center; }
.rv-sub { font-size: 26px; font-weight: 500; margin-bottom: 12px; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.rv-table td { padding: 15px 0; border-bottom: 1px solid var(--line); }
.rv-table td:first-child { width: 46px; color: var(--gold-deep); }
.rv-table td:last-child { text-align: right; font-weight: 600; }
.rv-table td:nth-child(3) { white-space: nowrap; padding-inline: 10px; }
.rv-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.rv-private { font-style: italic; font-weight: 500; color: var(--ink-2); }
.rv-feed ul { padding: 0; margin: 0; }
.rv-feed li { list-style: none; display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv-feed img { width: 40px; height: 40px; flex: none; }
.rv-feed b { font-weight: 600; }
.rv-feed li span { display: block; font-size: 14px; color: var(--ink-2); }
.rv-comm .rv-empty { color: var(--ink-2); padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.rv-wall { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #fff; border-radius: 22px; overflow: hidden; margin-top: 110px; }
.rv-wall img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-wall > div { padding: 64px; align-self: center; }
.rv-wall .rv-kicker { color: var(--gold); }
.rv-wall h2 { font-size: 42px; font-weight: 500; line-height: 1.1; margin-bottom: 18px; letter-spacing: 0; }
.rv-wall p:not(.rv-kicker) { color: rgb(255 255 255 / 78%); margin-bottom: 28px; }
.rv-wall p:last-child { margin-bottom: 0; }

/* Footer */

/* Donation dock */
body:has(.rv-dock) { padding-bottom: calc(84px + 64px); } /* the dock's height, plus air below the last section now there is no footer */
.rv-dock { position: fixed; inset: auto 0 0; z-index: 20; background: rgb(255 255 255 / 94%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgb(39 45 76 / 8%); }
.rv-dock .rv-wrap { display: flex; align-items: center; gap: 26px; height: 84px; }
.rv-sum { font-size: 15px; color: var(--ink-2); flex: 0 1 600px; line-height: 1.3; }
.rv-sum b { font-size: 24px; color: var(--navy); font-weight: 600; margin-right: 6px; }
.rv-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rv-prog span { font-size: 15px; font-weight: 600; color: var(--gold-deep); }
.rv-bar { flex: 1; height: 6px; background: var(--stone); border-radius: 9px; overflow: hidden; }
.rv-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 9px; transition: width .6s; }
.rv-amts { margin-left: auto; display: flex; gap: 6px; }
.rv-amts button { font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #CFC8BA; border-radius: 6px; padding: 9px 14px; transition: border-color .2s, background .2s; }
.rv-amts button:hover { border-color: var(--navy); }
.rv-amts button[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rv-dock .rv-btn { padding: 11px 22px; font-size: 15px; background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; white-space: nowrap; }
.rv-dock .rv-btn:hover { background: var(--navy); border-color: var(--navy); }
.rv-dock .rv-btn.pulse { animation: rv-pulse 1s 2; }
@keyframes rv-pulse { 50% { box-shadow: 0 0 0 10px rgb(212 164 101 / 35%); transform: scale(1.06); } }

/* Project presentation video: a 16:9 poster (the hero's sea under navy) with a gold play button; home.js swaps in the player on Play. */
.rv-watch.rv-section { padding-bottom: 0; } /* #projects below brings its own top space */
.rv-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: linear-gradient(rgb(39 45 76 / 55%), rgb(39 45 76 / 70%)), url('assets/monaco-sea.jpg') center 62% / cover; box-shadow: 0 24px 60px rgb(39 45 76 / 18%); }
.rv-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 100%; border: 0; background: none; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .03em; cursor: pointer; }
.rv-play-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 10px rgb(212 164 101 / 28%); transition: transform .25s, background .25s; }
.rv-play-icon::after { content: ''; display: block; margin: 31px 0 0 39px; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent #fff; }
.rv-play:hover .rv-play-icon, .rv-play:focus-visible .rv-play-icon { transform: scale(1.06); background: var(--gold); }
.rv-player.has-poster .rv-play { gap: 0; font-size: 0; background: rgb(20 24 43 / 12%); transition: background .25s; } /* the video's own frame: just the gold Play button, label kept for screen readers */
.rv-player.has-poster .rv-play:hover { background: rgb(20 24 43 / 22%); }
.rv-player iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; }
.rv-player iframe.is-loaded { opacity: 1; }
/* While the player loads: a soft grey that pulses (home.js marks the iframe loaded), instead of a flat black box. */
#film-frame:has(iframe:not(.is-loaded)) { background: #4a4f66; }
@media (prefers-reduced-motion: no-preference) {
  #film-frame:has(iframe:not(.is-loaded)) { animation: rv-film-wait 1.1s ease-in-out infinite alternate; }
}
@keyframes rv-film-wait { from { background: #3b4057; } to { background: #6a6f85; } }

/* Detail pages (project, house, recognition, verify): daylight version of the old dark-navy layout */
.detail-main, .verification-main { color: var(--navy); padding-bottom: 80px; }
.breadcrumb, .detail-figure figcaption { color: var(--ink-2); }
.breadcrumb a { color: var(--gold-deep); }
.detail-lead { color: var(--ink-2); }
.detail-title { letter-spacing: 0; font-weight: 500; font-size: clamp(38px, 4vw, 56px); line-height: 1.08; }
.detail-subtitle, .detail-funding > strong, .house-detail-totals strong { color: var(--gold-deep); }
.detail-subtitle { font-style: italic; }
.detail-hero .eyebrow, .recognition-hero .eyebrow, .house-detail-intro .eyebrow, .house-projects > .eyebrow, .detail-callout .eyebrow, .verification-card .eyebrow { color: var(--gold-deep); font-size: 18px; letter-spacing: 0; text-transform: none; }
.detail-copy, .detail-callout { background: var(--stone); }
.detail-bottom { border-top-color: var(--line); }
.detail-bottom .underlined-btn { color: var(--navy); }
.progress-track { background: var(--stone); }
.progress-fill { background: var(--gold); }
.house-projects h2 { color: var(--navy); }
.load-message { color: var(--ink-2); }
.rv-hero .load-message { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv-shaft, .rv-amt, .rv-dock .rv-btn.pulse { animation: none; }
}
@media (max-width: 900px) {
  .rv-hero > .rv-wrap { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 110px; }
  .rv-houses { padding: 20px 16px 16px; }
  .rv-cols { height: 280px; gap: 10px; }
  .rv-lbl { gap: 10px; font-size: 15px; }
  .rv-amt { font-size: 15px; }
  .rv-logo { width: 34px; height: 34px; }
  .rv-logo svg { width: 26px; height: 26px; }
  .rv-shaft::after { top: 54px; }
  .rv-tally > * { padding: 18px 16px; }
  .rv-tally b { font-size: 28px; }
  .rv-section { padding: 80px 0; }
  .rv-head h2, #projects-title { font-size: 40px; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-card.wide { grid-column: auto; flex-direction: column; }
  .rv-card.wide img { width: 100%; aspect-ratio: 4 / 3; }
  .rv-comm, .rv-wall { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .rv-wall > div { padding: 36px 28px; }
  .rv-wall h2 { font-size: 34px; }
  .rv-dock .rv-wrap { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; gap: 10px; }
  .rv-sum { flex-basis: 100%; margin-right: 0; }
  .rv-amts { margin-left: 0; }
  .rv-amts button { padding: 8px 11px; }
  .rv-dock .rv-btn { padding: 10px 14px; }
  body:has(.rv-dock) { padding-bottom: calc(130px + 40px); }
}
@media (max-width: 520px) {
  .rv-tally { grid-template-columns: 1fr; }
  .rv-tally > * { border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
  .rv-tally > :first-child { border-top: 0; }
  .rv-lbl { font-size: 13px; }
  .rv-amt { font-size: 13px; }
  .rv-shaft::after { padding-inline: 6px; }
}
@media (max-width: 360px) {
  .rv-lbl { font-size: 11px; }
}
.rv-player .film-soon { margin: 0; display: grid; place-items: center; height: 100%; padding: 32px; color: #fff; text-align: center; font-size: 18px; }

/* Desktop: the whole public site a touch smaller (6%), like browser zoom at 94%. Phones and tablets keep full size. */
@media (min-width: 1100px) { html { zoom: .94; } }

/* Scroll reveal (home.js showLater): fade up once on first sight, cards staggered by --i. Hover lift keeps its own quick timing. */
@media (prefers-reduced-motion: no-preference) {
  .rv-reveal { opacity: 0; translate: 0 32px; transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .2, 1), transform .25s, box-shadow .25s; transition-delay: calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms), 0s, 0s; }
  .rv-reveal.is-in { opacity: 1; translate: none; }
  .rv-track i { transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
}

/* The thumb sits over the page, so the track shows the content beneath it. */
.rv-page-scrollbar { display: none; }
@media (forced-colors: none) and (pointer: fine) {
  html.rv-overlay-scrollbar { scrollbar-width: none; }
  .rv-page-scrollbar {
    display: block; position: fixed; inset: 6px 0 6px auto; z-index: 35;
    width: 14px; height: calc(100% - 12px); margin: 0; padding: 0; border: 0;
    appearance: none; writing-mode: vertical-lr; direction: ltr;
    background: transparent; cursor: ns-resize;
    --thumb-color: color-mix(in srgb, var(--navy) 70%, white);
  }
  .rv-page-scrollbar:is(:hover, :focus-visible) { --thumb-color: var(--navy); }
  .rv-page-scrollbar:focus-visible { outline: none; }
  .rv-page-scrollbar::-webkit-slider-thumb {
    appearance: none; width: 7px; height: var(--thumb-height, 32px);
    border: 0; border-radius: 8px; background: var(--thumb-color);
  }
  .rv-page-scrollbar::-moz-range-thumb {
    box-sizing: border-box; width: 7px; height: var(--thumb-height, 32px);
    border: 0; border-radius: 8px; background: var(--thumb-color);
  }
  .rv-page-scrollbar::-moz-range-track { background: transparent; }
  .rv-page-scrollbar:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--gold); }
  .rv-page-scrollbar:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--gold); }
}


/* Buttons: the rounding and glass of the house chart card. Amounts: one tray, the chosen one a white tile with a gold edge. */
.rv-btn, .donate-btn, .light-btn { border-radius: 14px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 8px 20px rgb(20 24 43 / 18%); }
.rv-btn.ghost { background: linear-gradient(150deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 4%)); border-color: rgb(255 255 255 / 30%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%); }
.rv-amts { gap: 4px; padding: 4px; background: var(--stone); border-radius: 14px; }
.rv-amts button { border: 0; border-radius: 10px; background: none; }
.rv-amts button:hover { background: #fff; }
.rv-amts button[aria-pressed=true] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgb(39 45 76 / 15%), inset 0 0 0 1px var(--gold); }
/* Donate now matches the amount tray height. */
.rv-amts, .rv-dock .rv-btn { box-sizing: border-box; height: 48px; }
.rv-dock .rv-btn { padding-block: 0; }
@media (max-width: 900px) { .rv-amts, .rv-dock .rv-btn { height: 44px; } }
@media (max-width: 520px) { .rv-amts { flex: 1; padding: 3px; gap: 2px; } .rv-amts button { flex: 1; min-width: 0; padding: 7px 2px; font-size: 13.5px; } .rv-dock .rv-btn { padding: 10px 11px; font-size: 14px; } /* €1,000 and €5,000 fit beside Donate now from 360 to 520 */ }
@media (max-width: 380px) { .rv-amts button { font-size: 12.5px; } .rv-dock .rv-btn { padding: 10px 9px; font-size: 13.5px; } }

/* Headline word rise (home.js headline): words slide up from behind their line; bold "Tomorrow." a beat later, then a gold glimmer passes over it. */
.rv-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.rv-hero h1 .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .rv-hero:not(.rv-phero) h1:not(:has(.w)) { opacity: 0; } /* the template text waits for the animated version */
  .rv-hero h1 .w > span { transform: translateY(115%); animation: rv-word 1s calc(var(--w) * 120ms + .1s) cubic-bezier(.2, .8, .2, 1) forwards; }
  .rv-hero h1 b.w > span { background: linear-gradient(100deg, #fff 32%, #FBEBD0 44%, #EDCF9F 50%, #FBEBD0 56%, #fff 68%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rv-word 1s calc(var(--w) * 120ms + .1s) cubic-bezier(.2, .8, .2, 1) forwards, rv-glimmer 1.9s calc(var(--w) * 120ms + 1s) ease-in-out forwards; }
  /* the campaign line comes once "Tomorrow." has landed: it rises in while its gold band sweeps across, like a highlighter */
  .rv-hero:not(.rv-phero) .rv-intro .rv-kicker { opacity: 0; }
  .rv-hero:not(.rv-phero) .rv-intro:has(h1 .w) .rv-kicker { animation: rv-kicker-in .6s calc(var(--last) * 120ms + .75s) ease-out forwards; }
  .rv-hero:not(.rv-phero) .rv-intro:has(h1 .w) .rv-mark { animation: rv-sweep .7s calc(var(--last) * 120ms + .75s) cubic-bezier(.6, 0, .2, 1) backwards; }
}
@keyframes rv-kicker-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-sweep { from { background-size: 0 100%; } }
@keyframes rv-word { to { transform: none; } }
@keyframes rv-glimmer { to { background-position: 0 0; } }

/* Community lists: one-line gifts. A new row eases in and its name glows gold, then settles back to navy. */
.rv-section + .rv-section { padding-top: 0; }
/* Section divider (home.html): gold hairline fading at both ends, a small gold diamond in the middle; the divider sets the gap on both sides. */
.rv-divider { position: relative; width: min(260px, 60%); height: 9px; margin: 72px auto; border: 0; background: linear-gradient(90deg, transparent, var(--gold) 35%, var(--gold) calc(50% - 13px), transparent 0 calc(50% + 13px), var(--gold) 0 65%, transparent) center / 100% 1px no-repeat; overflow: visible; }
.rv-divider::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.rv-divider + .rv-section, #projects.rv-section:is(.rv-divider + *) { padding-top: 0; }
.rv-section:has(+ .rv-divider) { padding-bottom: 0; }
.rv-divider + .rv-wall { margin-top: 0; }
@media (max-width: 760px) { .rv-divider { margin: 52px auto; } }
.rv-feed li > div { min-width: 0; }
.rv-feed li p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) {
  .rv-feed li.rv-new, .rv-table tr.rv-new td { animation: rv-arrive .9s cubic-bezier(.22, 1, .36, 1) var(--t, 0s) both; }
  .rv-feed li.rv-new b { animation: rv-glow 3s ease-in-out calc(var(--t, 0s) + .5s) both; }
  .rv-table tr.rv-new td:nth-child(2) { animation: rv-arrive .9s cubic-bezier(.22, 1, .36, 1) var(--t, 0s) both, rv-glow 3s ease-in-out calc(var(--t, 0s) + .5s) both; }
}
@keyframes rv-arrive { from { opacity: 0; translate: 0 -12px; } }
@keyframes rv-glow { from { color: var(--gold-deep); } }

/* Gift pop-up: a glass tab centred on the donation bar's top edge, rising out from behind it (public.js moves it into the bar).
   Pages without the bar: the same tab rises from the bottom of the screen. */
.gift-toast { position: fixed; z-index: 30; left: 50%; bottom: 0; translate: -50% 0; box-sizing: border-box; width: min(680px, calc(100vw - 32px)); max-width: none;
  display: flex; align-items: center; gap: 16px; padding: 14px 26px 14px 16px; background: rgb(255 255 255 / 92%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--navy); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgb(39 45 76 / 12%); font-size: 16px; line-height: 1.35; }
.rv-dock .gift-toast { position: absolute; bottom: 100%; }
.gift-toast img { width: 44px; height: 44px; flex: none; }
.gift-toast > div { flex: 1; min-width: 0; }
.gift-toast p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-toast span { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) {
  .gift-toast:not([hidden]) { clip-path: inset(-40px -40px 0 -40px); animation: rv-toast-in .8s cubic-bezier(.22, 1, .36, 1) both; }
  .gift-toast.out { animation: rv-toast-out .7s cubic-bezier(.55, 0, .45, 1) both; } /* public.js waits .7s before the next one */
  .rv-roll { display: inline-block; animation: rv-roll .6s cubic-bezier(.2, .8, .2, 1) both; }
}
/* Rises out of the bar's top edge and sinks back into it: the clip moves with the slide (both 100%), so only the part above the edge ever shows. */
@keyframes rv-toast-in { from { opacity: 0; transform: translateY(100%); clip-path: inset(-40px -40px 100% -40px); } }
@keyframes rv-toast-out { to { opacity: 0; transform: translateY(100%); clip-path: inset(-40px -40px 100% -40px); } }
/* A changed digit rises into place (odometer). <i> so no span rule restyles it. */
.rv-roll { font: inherit; }
@keyframes rv-roll { from { transform: translateY(.55em); opacity: 0; } }

/* Donation dialog in the v2.1 look: white card, Bodoni kicker and title, stone amount picker like the dock,
   soft 10px fields, gold ring on focus and on the chosen method. #donate-dialog outranks the old site.css/platform.css rules. */
#donate-dialog { width: min(640px, 100% - 32px); max-height: calc(100dvh - 48px); border-radius: 18px; background: #fff; color: var(--navy);
  box-shadow: 0 40px 100px rgb(39 45 76 / 30%); overscroll-behavior: contain; }
#donate-dialog::backdrop { background: rgb(39 45 76 / 55%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  #donate-dialog[open] { animation: rv-dialog-in .45s cubic-bezier(.22, 1, .36, 1) both; }
  #donate-dialog[open]::backdrop { animation: rv-fade .45s ease-out both; }
}
@keyframes rv-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes rv-fade { from { opacity: 0; } }
#donate-dialog .modal-top { padding: 40px 44px 28px; border-bottom: 1px solid var(--line); }
#donate-dialog .modal-top .eyebrow { font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gold-deep); margin-bottom: 10px; }
#donate-dialog .modal-top h2 { font-size: 36px; font-weight: 500; line-height: 1.08; letter-spacing: 0; padding-right: 40px; }
#donate-dialog .modal-top p { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; }
#donate-dialog .modal-close { top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--navy); background: transparent; transition: background .2s; }
#donate-dialog .modal-close:hover { background: var(--stone); }
#donate-dialog .modal-body { padding: 30px 44px 40px; }
#donate-dialog .form-field { margin-bottom: 20px; }
#donate-dialog .form-row { gap: 16px; }
#donate-dialog .form-field > label { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
#donate-dialog .required-note { font-size: 16px; font-weight: 700; color: var(--gold-deep); margin-left: 2px; }
#donate-dialog .form-field :is(input:not([type=checkbox], [type=radio]), select, textarea) { box-sizing: border-box; min-height: 52px; padding: 12px 16px; border: 1px solid #D6CFC2; border-radius: 10px;
  background-color: #fff; color: var(--navy); font-size: 17px; transition: border-color .2s, box-shadow .2s; }
#donate-dialog .form-field select:not([multiple]) { appearance: none; padding-right: 48px; text-overflow: ellipsis; /* ties the shared field rule above (1,2,1) and wins by coming after it; keep this order or long names run under the arrow */ cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B98943' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center; }
#donate-dialog .form-field :is(input, select, textarea):hover { border-color: #B8AE9C; }
#donate-dialog :is(input, select, textarea):focus-visible { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgb(212 164 101 / 28%); }
/* Amounts: the dock's stone picker, then the exact amount underneath. */
/* The € after the typed amount (public.js recommendation): same font and padding as the field, the copied value invisible. */
.amount-input { position: relative; display: block; }
.amount-echo { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; padding-left: 17px; font-size: 17px; color: var(--navy); /* = the field's 16px padding + 1px border, 17px text */ white-space: pre; pointer-events: none; }
.amount-echo[hidden] { display: none; }
#amount-echo { visibility: hidden; }
#donate-dialog .modal-amounts { gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--stone); border-radius: 14px; }
#donate-dialog .modal-amounts .amount-btn { height: 46px; border: 0; border-radius: 10px; background: none; font-size: 16px; font-weight: 600; color: var(--navy); box-shadow: none; transition: background .2s, box-shadow .2s; }
#donate-dialog .modal-amounts .amount-btn:hover { background: #fff; }
#donate-dialog .modal-amounts .amount-btn[aria-pressed=true] { background: #fff; box-shadow: 0 2px 8px rgb(39 45 76 / 15%), inset 0 0 0 1px var(--gold); }
/* Optional extras: a gold + that turns into × when open. */
#donate-dialog details { margin: 4px 0 24px; font-size: 15px; }
#donate-dialog summary { list-style: none; position: relative; padding: 6px 0 6px 36px; font-weight: 600; cursor: pointer; }
#donate-dialog summary::-webkit-details-marker { display: none; }
#donate-dialog summary::before { content: '+'; position: absolute; left: 0; top: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--stone); color: var(--gold-deep); font-size: 20px; line-height: 1; transition: rotate .25s; }
#donate-dialog details[open] summary::before { rotate: 45deg; }
#donate-dialog summary span { font-weight: 500; color: var(--ink-2); }
#donate-dialog details > :not(summary) { margin-top: 14px; }
#donate-dialog .due-diligence p { color: var(--ink-2); line-height: 1.6; }
/* Method and recognition: each a titled group above a hairline. */
#donate-dialog fieldset { margin: 0 0 26px; padding: 26px 0 0; border: 0; border-top: 1px solid var(--line); }
#donate-dialog legend { float: left; width: 100%; padding: 0; font-size: 22px; font-weight: 500; margin-bottom: 14px; }
#donate-dialog legend + * { clear: both; }
#donate-dialog .method-option { gap: 14px; padding: 18px 20px; margin-bottom: 10px; border: 1px solid #D6CFC2; border-radius: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
#donate-dialog .method-option:hover { border-color: #B8AE9C; }
#donate-dialog .method-option:has(input:checked) { border-color: var(--gold); background: #FDFAF5; box-shadow: inset 0 0 0 1px var(--gold); }
#donate-dialog .method-option:has(input:disabled) { cursor: default; color: var(--ink-2); background: var(--stone); border-color: transparent; box-shadow: none; }
#donate-dialog .method-option strong { font-size: 17px; font-weight: 600; }
#donate-dialog .method-option small { font-size: 15px; color: var(--ink-2); }
#donate-dialog :is(input[type=radio], input[type=checkbox]) { width: 18px; height: 18px; accent-color: var(--navy); }
#donate-dialog .check-line { gap: 12px; font-size: 16px; line-height: 1.5; margin: 14px 0; }
#donate-dialog .check-line input { margin-top: 3px; }
#donate-dialog .form-note { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
#donate-dialog :is(.bank-recommendation, .preview-notice) { background: var(--stone); border-radius: 12px; padding: 14px 18px; font-size: 15px; color: var(--navy); }
#donate-dialog .privacy-copy { margin: 0 0 6px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
#donate-dialog .inline-error { border-radius: 12px; padding: 14px 18px; font-size: 15px; }
#donate-dialog .full-btn { height: 56px; margin-top: 10px; border-radius: 8px; font-size: 17px; background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
#donate-dialog .full-btn:hover { background: var(--navy); border-color: var(--navy); }
#donate-dialog .confirmation { text-align: left; padding: 6px 0 0; }
#donate-dialog .confirmation h3 { font-size: 30px; font-weight: 500; margin-bottom: 14px; }
#donate-dialog .confirmation p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; }
#donate-dialog .confirmation strong { color: var(--navy); }
@media (max-width: 600px) {
  #donate-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  #donate-dialog .modal-top { padding: 30px 22px 22px; }
  #donate-dialog .modal-top h2 { font-size: 30px; }
  #donate-dialog .modal-close { top: 12px; right: 12px; }
  #donate-dialog .modal-body { padding: 24px 22px 30px; }
  #donate-dialog .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #donate-dialog .modal-amounts .amount-btn { min-width: 0; padding: 0 4px; }
}

/* Donation steps: "Step n of 3" above the step's name, a three-part gold bar under the intro (its labels are for screen readers),
   one step of the form at a time, Back + Continue underneath. */
#donate-dialog .gift-steps { display: flex; gap: 4px; margin: 22px 0 0; padding: 0; list-style: none; }
#donate-dialog .gift-steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--line); font-size: 0; transition: background .4s; }
#donate-dialog .gift-steps :is(li.done, li[aria-current]) { background: var(--gold-deep); }
#donate-dialog .gift-step:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { #donate-dialog .gift-step:not([hidden]) { animation: rv-step-in .45s cubic-bezier(.22, 1, .36, 1) both; } }
@keyframes rv-step-in { from { opacity: 0; translate: 16px 0; } }
#donate-dialog .gift-summary { position: relative; margin-bottom: 26px; padding: 18px 22px; background: var(--stone); border-radius: 12px; }
#donate-dialog .gift-summary dl { margin: 0; display: grid; gap: 6px; }
#donate-dialog .gift-summary dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
#donate-dialog .gift-summary dt { font-size: 15px; color: var(--ink-2); }
#donate-dialog .gift-summary dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
#donate-dialog .gift-edit { position: absolute; top: 16px; right: 20px; padding: 2px 0; background: none; font-size: 15px; font-weight: 600; color: var(--gold-deep); transition: color .2s; }
#donate-dialog .gift-edit:hover { color: var(--navy); }
#donate-dialog .gift-nav { display: flex; gap: 12px; margin-top: 8px; }
#donate-dialog .gift-nav .full-btn { flex: 1; width: auto; margin: 0; }
#donate-dialog .gift-back { height: 56px; padding: 0 26px; border: 1px solid #D6CFC2; border-radius: 8px; background: #fff; color: var(--navy); font-size: 16px; font-weight: 600; transition: border-color .2s; }
#donate-dialog .gift-back:hover { border-color: var(--navy); }
@media (max-width: 600px) { #donate-dialog .gift-back { padding: 0 18px; } }
#donate-dialog .gift-summary + fieldset { border-top: 0; padding-top: 0; }

/* Payment result (back from the payment provider), the donation dialog's card: a big mark, then the message.
   Checking: a gold arc turns. Paid: a green tick draws itself, then a green arc runs once round it and the dialog closes (public.js PAID_HOLD). Anything else: a soft grey cross (never red: nothing alarming for a donor). */
#result-dialog { width: min(520px, 100% - 32px); max-height: calc(100dvh - 48px); padding: 56px 44px 40px; border-radius: 18px; background: #fff; color: var(--navy); text-align: center; box-shadow: 0 40px 100px rgb(39 45 76 / 30%); }
#result-dialog::backdrop { background: rgb(39 45 76 / 55%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#result-dialog .modal-close { top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--navy); transition: background .2s; }
#result-dialog .modal-close:hover { background: var(--stone); }
#result-dialog h2 { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.12; margin: 26px 0 14px; text-wrap: balance; }
#result-dialog p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }
#result-dialog strong { color: var(--navy); }
#result-dialog .number-text { white-space: nowrap; } /* the reference never breaks at its hyphens */
.result-actions { display: grid; gap: 10px; margin-top: 26px; }
.result-actions:empty { display: none; }
.result-actions .full-btn { height: 56px; border-radius: 8px; font-size: 17px; background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.result-actions .full-btn:hover { background: var(--navy); border-color: var(--navy); }
.result-secondary { height: 52px; border: 1px solid #D6CFC2; border-radius: 8px; background: #fff; color: var(--navy); font-size: 16px; font-weight: 600; transition: border-color .2s; }
.result-secondary:hover { border-color: var(--navy); }
.result-mark { width: 104px; height: 104px; margin: 0 auto; }
.result-mark svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.result-mark .ring { stroke: var(--line); transition: fill .4s, stroke .4s; }
.result-mark .timer { stroke: none; }
.result-mark path { stroke-dasharray: 32; stroke-dashoffset: 32; }
.result-mark.is-checking .ring { stroke: var(--gold); stroke-dasharray: 38 113; transform-box: fill-box; transform-origin: center; animation: rv-spin 1s linear infinite; }
.result-mark.is-paid .ring { stroke: #CFE6D8; fill: #EAF5EE; }
.result-mark.is-paid .timer { stroke: #2F8F5B; stroke-dasharray: 151; stroke-dashoffset: 151; transform-box: fill-box; transform-origin: center; rotate: -90deg; animation: rv-hold var(--hold) linear forwards; }
.result-mark.is-paid .tick { stroke: #2F8F5B; stroke-width: 3.4; stroke-dashoffset: 0; transition: stroke-dashoffset .5s .2s cubic-bezier(.65, 0, .35, 1); }
.result-mark.is-failed .ring { stroke: #C9CBD4; fill: #F4F4F6; }
.result-mark.is-failed .cross { stroke: #8D91A3; stroke-width: 3; stroke-dashoffset: 0; transition: stroke-dashoffset .5s .2s; }
@media (prefers-reduced-motion: no-preference) {
  #result-dialog[open] { animation: rv-dialog-in .45s cubic-bezier(.22, 1, .36, 1) both; }
  #result-dialog[open]::backdrop { animation: rv-fade .45s ease-out both; }
  .result-mark.is-paid svg { animation: rv-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
}
@media (prefers-reduced-motion: reduce) { .result-mark.is-checking .ring { animation: none; } .result-mark.is-paid .timer { animation: none; stroke-dashoffset: 0; } .result-mark path { transition: none !important; } }
@media (max-width: 600px) { #result-dialog { width: calc(100% - 16px); padding: 48px 22px 30px; } #result-dialog h2 { font-size: 28px; } }
@keyframes rv-spin { to { rotate: 360deg; } }
@keyframes rv-pop { from { scale: .8; } }
@keyframes rv-hold { to { stroke-dashoffset: 0; } }
/* ponytail: local/staging only (public.js simulate), delete before launch with the demo */
.rv-simulate { position: fixed; z-index: 25; top: 84px; right: 16px; padding: 8px 14px; border: 1px dashed var(--gold-deep); border-radius: 999px; background: rgb(255 255 255 / 92%); color: var(--navy); font-size: 14px; font-weight: 600; }
.rv-simulate.is-font { top: 128px; }
/* ponytail: font preview (public.js, the button above), local/staging only. If Montserrat is chosen, move these rules into the main styles and drop the toggle.
   Text regular, headings and figures bold, labels and buttons semibold; display sizes a step smaller (Montserrat runs wider than Bodoni). */
html.font-sans { --serif: 'Montserrat', 'Segoe UI', sans-serif; }
html.font-sans body { font-weight: 400; }
html.font-sans :is(h1, h2) { font-weight: 700; letter-spacing: -.01em; }
html.font-sans h3 { font-weight: 600; }
html.font-sans .rv-hero h1 { font-size: clamp(42px, 5vw, 78px); line-height: 1.2; margin-bottom: 28px; max-width: 15ch; }
html.font-sans .rv-head h2 { font-size: 42px; }
html.font-sans .rv-tally b, html.font-sans span.is-amount { font-weight: 700; }
html.font-sans .rv-kicker { font-weight: 600; }
/* Hero: "Give today, / Shape / tomorrow." on three lines; the campaign line on one line where there is room (desktop). */
.rv-br-last { display: none; }
html.font-sans .rv-br-last { display: revert; }
@media (min-width: 901px) { html.font-sans .rv-hero .rv-kicker { white-space: nowrap; font-size: clamp(13px, 1.15vw, 17px); } }
@media (max-width: 900px) { html.font-sans .rv-head h2 { font-size: 34px; } }

/* The donor's own gift in the pop-up: gold frame and glow; confetti bursts from its top edge (public.js confetti).
   Under the bar (z-index 20): the pieces come out from behind the pop-up and fall back behind it, never over its text. */
.gift-toast.is-mine { border: 2px solid var(--gold); border-bottom: 0; box-shadow: 0 0 0 4px rgb(212 164 101 / 22%), 0 -10px 34px rgb(212 164 101 / 45%); }
.gift-toast.is-mine span { color: var(--gold-deep); font-weight: 600; }
.rv-confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; /* %, not vw/vh: those shrink under the desktop zoom (.94), which put the burst too high */ z-index: 19; pointer-events: none; }

/* Project page: home's hero, tally and section heads around the project's own photo and copy. */
.rv-phero { background-position: center; }
.rv-phero::before { background: linear-gradient(100deg, rgb(39 45 76 / 92%) 0%, rgb(39 45 76 / 78%) 42%, rgb(39 45 76 / 22%) 100%); } /* project photos are busier than the sea */
.rv-phero > .rv-wrap { grid-template-columns: minmax(0, 780px); min-height: 640px; padding: 40px 0 140px; }
.rv-phero h1 { font-size: clamp(42px, 4.8vw, 74px); max-width: 16ch; }
.rv-phero .rv-lede { max-width: 40ch; }
.rv-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px; padding: 8px 16px 8px 12px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px; font-size: 15px; color: #fff; transition: border-color .2s, background-color .2s; }
.rv-back:hover { border-color: var(--gold); background: rgb(255 255 255 / 8%); }
.rv-back span { transition: transform .2s; }
.rv-back:hover span { transform: translateX(-3px); }
.rv-tally .rv-track { margin-top: 12px; }
.rv-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
.rv-prose p { font-size: 20px; line-height: 1.65; margin-bottom: 22px; text-wrap: pretty; }
.rv-about .rv-sub:not(:first-child) { margin-top: 44px; }
.rv-note { color: var(--ink-2); font-size: 17px; }
.rv-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rv-list li { padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 17px; position: relative; }
.rv-list li::before { content: ''; position: absolute; left: 2px; top: 29px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.rv-list b { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.rv-about.is-single { grid-template-columns: minmax(0, 1fr); }
.rv-about.is-single .rv-prose p { max-width: 860px; }
.rv-about.is-single .rv-prose figure { max-width: 860px; margin-inline: auto; }
.rv-block { margin-top: 40px; }
.rv-tiles { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.rv-tiles li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 24px 32px; text-align: center; background: var(--stone); border-top: 3px solid var(--gold); border-radius: 16px; }
.rv-tile-icon { flex: none; width: 40px; height: 40px; margin-bottom: 12px; color: var(--gold-deep); }
.rv-tiles b, .rv-offer b { font-size: 21px; font-weight: 600; }
.rv-tiles span { color: var(--ink-2); font-size: 17px; text-wrap: balance; max-width: 46ch; }
.rv-tiles span.is-amount { font-size: 30px; color: var(--gold-deep); }
.rv-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 32px; padding: 40px 44px; background: var(--navy); color: #fff; border-radius: 16px; }
.rv-offer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rv-badge { margin: 0 0 10px; padding: 5px 12px; background: var(--gold); color: var(--navy); border-radius: 6px; font-size: 14px; font-weight: 700; }
.rv-offer .is-amount { color: var(--gold); font-size: 40px; line-height: 1.1; }
.rv-offer > p { margin: 0; color: rgb(255 255 255 / 78%); font-size: 18px; }
.rv-divider + .rv-section.rv-more { padding-top: 100px; }
@media (max-width: 760px) {
  .rv-block { margin-top: 48px; }
  .rv-tiles { grid-template-columns: minmax(0, 1fr); }
  .rv-tiles li { padding: 26px 20px 24px; }
  .rv-offer { padding: 30px 26px; }
}
.rv-prose figure { margin: 40px 0 0; }
.rv-prose img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.rv-prose img.is-plan { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.rv-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 64px; }
.rv-gallery figure { margin: 0; }
.rv-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.rv-section.rv-more { background: var(--stone); padding-top: 100px; }
@media (max-width: 900px) {
  .rv-phero > .rv-wrap { min-height: 520px; padding: 32px 0 120px; }
  .rv-about { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .rv-prose p { font-size: 18px; }
}
@media (max-width: 520px) {
  .rv-tally > div:has(.rv-track) { flex-wrap: wrap; }
  .rv-tally .rv-track { flex-basis: 100%; margin-top: 4px; }
}
html:has(.rv-dock) { scroll-padding-bottom: 140px; } /* keyboard focus never lands under the fixed dock */
.load-error { color: var(--navy); padding: 60px 0; width: min(1320px, 100% - 48px); margin-inline: auto; } /* old rule was near-white text for the dark site */

/* Staff sign-in dialog: the donation dialog's look (shared rules above), plus its two small extras. */

/* Page loads: the project placeholder is a plain navy hero (header stays see-through), "Loading…" only shows if the wait is long,
   the content fades in once, the dock figures wait for real numbers, and page-to-page navigation crossfades with header and dock held still. */
.rv-phero.is-loading { background: var(--navy); }
/* Recognition page (templates/recognition.html): the two circles as gold and silver cards, then the plaque beside the further recognition list. */
.rv-wall .rv-btn { margin-top: 32px; }
.rv-circles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.rv-circle { display: flex; flex-direction: column; padding: 44px; border-radius: 18px; background: var(--stone); border-top: 4px solid var(--gold); }
.rv-circle.is-silver { background: #F1F2F5; border-top-color: #A9AEBB; }
.rv-plate { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--gold-deep); }
.is-silver .rv-plate { color: #7D8291; }
.rv-circle h3 { font-size: 32px; font-weight: 500; line-height: 1.15; margin: 0 0 20px; }
.rv-circle p:not(.rv-plate, .rv-min) { color: var(--ink-2); font-size: 17px; line-height: 1.65; margin: 0 0 16px; text-wrap: pretty; }
.rv-circle-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; } /* plaque colour left, minimum donation top right */
.rv-circle .rv-min { margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.rv-min span { color: var(--ink-2); font-size: 13px; }
.rv-min b { font-size: 21px; font-weight: 600; }
/* The site's button (shape, shadow, navy hover); filled gold or silver with white text, like the bar's "Donate now". margin-top auto: both sit at the card foot. */
.rv-circle .rv-btn { align-self: flex-end; margin-top: auto; background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.rv-circle.is-silver .rv-btn { background: #737886; border-color: #737886; }
.rv-circle .rv-btn:hover { background: var(--navy); border-color: var(--navy); }
.rv-circle > p:last-of-type { margin-bottom: 28px; }
.rv-plaque { margin: 0; align-self: center; }
.rv-plaque img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgb(39 45 76 / 22%)); }
.rv-sub-h { font-size: 30px; font-weight: 500; line-height: 1.2; margin: 0 0 26px; text-wrap: balance; }
@media (max-width: 760px) {
  .rv-circles { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rv-circle { padding: 30px 24px; }
  .rv-circle h3 { font-size: 27px; }
  .rv-sub-h { font-size: 25px; }
}
.load-message { animation: rv-fade .3s 1s both; }
.rv-sum { transition: opacity .3s; }
.rv-dock:not(.is-ready) .rv-sum { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rv-enter > :not(.rv-hero), .rv-enter > .rv-hero > .rv-wrap { animation: rv-fade .45s both; }
  @view-transition { navigation: auto; }
  .rv-top { view-transition-name: rv-top; }
  .rv-dock { view-transition-name: rv-dock; }
}
/* House badges in motion (mockups/house-icon-preview.html; parts from houseIcon() in public.js): Shackleton's needle swings,
   Grimaldi's boat rocks on the waves, Earhart's plane flies through wind, Baret's globe turns (public.js). Still under reduced motion. */
.house-detail-intro .badge { overflow: hidden; }
.gift-toast .toast-badge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--house); }
.gift-toast .toast-badge svg { width: 31px; height: 31px; overflow: visible; }
.house-detail-intro .badge svg { overflow: visible; }
.hi-part { transform-box: view-box; transform-origin: 65px 65px; }
.hi-plane { transform-origin: 65px 51px; }
.hi-wind { display: none; }
.hi-wave-far { translate: 0 1.5px; }
.hi-wave-near { translate: 0 7.5px; }
@media (prefers-reduced-motion: no-preference) {
  .hi-needle { animation: hi-needle 20s -1.8s infinite; }
  .hi-boat { animation: hi-boat 4.4s -4.1s ease-in-out infinite; }
  .hi-wave { animation: hi-wave 4.4s ease-in-out infinite; }
  .hi-wave-near { animation-delay: -1.9s; }
  .hi-wave-far { animation-delay: -4.1s; }
  .hi-plane { animation: hi-plane-sweep 4.8s -1.25s ease-in-out infinite, hi-plane-lift 4.8s -2.45s ease-in-out infinite, hi-plane-pitch 4.8s -1.25s ease-in-out infinite; }
  .hi-wind { display: inline; animation: hi-wind 2.5s linear infinite; }
  .hi-wind-upper { animation-delay: -1.6s; }
  .hi-wind-lower { animation-duration: 3.2s; animation-delay: -.65s; }
}
@keyframes hi-needle {
  0%, 14%, 97%, 100% { transform: rotate(0deg); } 18% { transform: rotate(78deg); } 20% { transform: rotate(65deg); } 22%, 40% { transform: rotate(69deg); }
  44% { transform: rotate(-63deg); } 46% { transform: rotate(-50deg); } 48%, 64% { transform: rotate(-54deg); }
  68% { transform: rotate(106deg); } 70% { transform: rotate(93deg); } 72%, 89% { transform: rotate(97deg); } 93% { transform: rotate(-10deg); } 95% { transform: rotate(4deg); }
}
@keyframes hi-wave { 0%, 100% { transform: translate(-3.5px, -2.25px); } 50% { transform: translate(3.5px, 2.25px); } }
@keyframes hi-boat { 0%, 100% { transform: translate(-1.5px, -4px) rotate(-6deg); } 50% { transform: translate(1.5px, .5px) rotate(6deg); } }
@keyframes hi-plane-sweep { 0%, 100% { translate: -6px 0; } 50% { translate: 6px 0; } }
@keyframes hi-plane-lift { 0%, 100% { transform: translateY(9px); } 50% { transform: translateY(-9px); } }
@keyframes hi-plane-pitch { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
@keyframes hi-wind { from { transform: translateX(90px); } to { transform: translateX(-90px); } }

/* Back-office QR code editor (qr-editor.html, framed by /admin/ over its own dimmed page): the donation form, step labels shown and
   clickable, the code's name on top, and a split button under Continue (save, or choose the step the donor lands on). */
html:has(body.qr-editor), body.qr-editor { background: transparent; }
.qr-editor #donate-dialog::backdrop { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.qr-editor #donate-dialog .gift-steps li, .qr-editor #donate-dialog .gift-steps :is(li.done, li[aria-current]) { height: auto; font-size: 13px; background: none; }
.qr-editor #donate-dialog .step-jump { width: 100%; padding: 8px 0 0; border: 0; border-top: 4px solid var(--line); background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .2s, color .2s; }
.qr-editor #donate-dialog :is(li.done, li[aria-current]) .step-jump, .qr-editor #donate-dialog .step-jump:hover { border-top-color: var(--gold-deep); color: var(--navy); }
.qr-editor #donate-dialog .qr-name { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.qr-editor #donate-dialog .qr-name .form-note { margin-top: 8px; }
#donate-dialog .qr-footer { position: sticky; bottom: 0; z-index: 2; padding: 16px 44px 20px; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 600px) { #donate-dialog .qr-footer { padding: 12px 22px 16px; } }
#donate-dialog .qr-generate { display: flex; }
#donate-dialog .qr-generate > button { height: 56px; border: 0; background: var(--navy); color: #fff; font-size: 17px; font-weight: 600; transition: background .2s; }
#donate-dialog .qr-generate > button:hover:not(:disabled) { background: #1B2038; }
#donate-dialog .qr-save { flex: 1; border-radius: 8px 0 0 8px; }
#donate-dialog .qr-more { width: 56px; border-left: 1px solid rgb(255 255 255 / 25%) !important; border-radius: 0 8px 8px 0; anchor-name: --qr-more; }
#donate-dialog .qr-steps { position-anchor: --qr-more; position-area: top span-left; position-try-fallbacks: flip-block; inset: auto; min-width: 290px; margin: 0 0 8px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); box-shadow: 0 18px 44px rgb(20 24 43 / 25%); }
#donate-dialog .qr-steps p { margin: 6px 10px; font-size: 13px; color: var(--ink-2); }
#donate-dialog .qr-steps button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--navy); font-size: 15px; font-weight: 500; text-align: left; }
#donate-dialog .qr-steps button:hover { background: var(--stone); }
#donate-dialog .qr-steps .is-current::after { content: '  ✓'; color: var(--gold-deep); font-weight: 700; }
#donate-dialog .qr-warning { margin: 0 0 12px; padding: 12px 16px; border-radius: 10px; background: var(--stone); font-size: 14px; line-height: 1.5; }
.qr-editor-error { max-width: 480px; margin: 48px auto; padding: 20px 24px; border-radius: 12px; background: #fff; color: var(--navy); }

/* Dialog scrollbars: the track stops short of the rounded corners so the bar never pokes past them. Chrome/Edge/Safari use the
   ::-webkit-scrollbar rules (they are ignored once scrollbar-width/-color is set, so those stay Firefox-only). */
dialog::-webkit-scrollbar { width: 10px; }
dialog::-webkit-scrollbar-track { background: transparent; margin-block: 18px; }
dialog::-webkit-scrollbar-thumb { background: #CFC8BA padding-box; border: 3px solid transparent; border-radius: 10px; }
@supports not selector(::-webkit-scrollbar) { dialog { scrollbar-width: thin; scrollbar-color: #CFC8BA transparent; } }

/* Page documents (sections.js) */
.rv-section:has(+ .rv-cont), .rv-section:has(+ .rv-recog) { padding-bottom: 0; } /* a section without a divider continues the one above (tiles under "About the project"); the recognition wall brings its own divider */
.rv-section:not(.rv-cont) > .rv-wrap > :is(.rv-offer, .rv-gallery):first-child { margin-top: 0; }
.rv-about .rv-lgroup + .rv-lgroup { margin-top: 44px; }
.rv-text p { max-width: 860px; }
.rv-hero.is-solo > .rv-wrap { grid-template-columns: minmax(0, 780px); } /* no house bars */
.rv-tally.is-two { grid-template-columns: repeat(2, 1fr); } /* no end date: no days tile */
@media (max-width: 520px) { .rv-tally.is-two { grid-template-columns: 1fr; } }
.rv-nohouse .rv-table td:nth-child(3), .rv-nohouse .rv-feed img { display: none; } /* houses turned off for the campaign */
.rv-player video { display: block; width: 100%; height: 100%; background: #000; }
body.is-closed :is([data-open-donate], [data-give-project], [data-give-house]), body.is-closed .rv-dock { display: none !important; } /* campaign not live */
/* Editor markup (renderDoc with editable): placeholders and hidden sections */
.is-hidden-section { opacity: .4; }
[data-section] [data-placeholder]:empty::before { content: attr(data-placeholder); opacity: .55; font-style: italic; }
[data-section] .rv-img-empty { display: grid; place-items: center; aspect-ratio: 3 / 2; border: 2px dashed var(--line); border-radius: 16px; color: var(--ink-2); }
[data-section] .rv-tile-icon.is-empty { border: 2px dashed currentColor; border-radius: 10px; opacity: .5; }
.rv-hero.is-edit h1, .rv-hero.is-edit .rv-kicker { opacity: 1 !important; animation: none !important; }
