/* Video-reference presentation, isolated from the checkout and other pages. */
.reference-layout {
  --white: #ffffff;
  --red-primary: #123b23;
  --red-dark: #205633;
  --red-bright: #79d654;
  --lime-action: #d0ff88;
  --line: #ededed;
  --border: #e5e5e5;
  --border-light: #efefef;
  --gray-light: #f3f4f3;
  --soft: #f2f6f0;
  --tint: #f1f1f1;
  --muted: #707470;
  --hero-ink: #ffffff;
  --hero-shade: linear-gradient(transparent 40%, rgb(0 0 0 / 65%));
  --float-shadow: 0 0 24px rgb(0 0 0 / 12%);
  --r-card: 8px;
  --header-h: 56px;
  --font: "Figtree", Arial, sans-serif;
}
.reference-layout h1, .reference-layout h2, .reference-layout h3 { letter-spacing: 0; }
.reference-layout .site-header { position: relative; border: 0; }
.reference-layout .header-inner { height: 56px; }
.reference-layout .logo img { height: 42px; }
.reference-layout .campaign { max-width: 760px; display: flex; flex-direction: column; padding: 0 20px 40px; }
.reference-layout .campaign-photo { position: relative; width: calc(100% + 40px); margin: 0 -20px; max-width: none; }
.reference-layout .carousel { border-radius: 0 0 50% 6% / 0 0 4% 4%; background: var(--gray-light); }
.reference-layout .carousel-track { aspect-ratio: 1 / 1; }
.reference-layout .hero-photo { object-fit: cover; object-position: center; }
.reference-layout .carousel::after { height: 100%; background: var(--hero-shade); }
.reference-layout .campaign-head { position: absolute; bottom: 40px; left: 24px; right: 24px; z-index: 2; pointer-events: none; }
.reference-layout .campaign-head h1 { color: var(--hero-ink); text-align: center; font-size: 25px; line-height: 1.18; margin: 0 auto; max-width: 540px; text-wrap: balance; }
.reference-layout .carousel-dots { bottom: 9px; z-index: 3; }
.reference-layout .carousel-dot[aria-selected="true"]::before { width: 18px; border-radius: 8px; margin-left: -9px; transform: none; }
.reference-layout .carousel-arrow { width: 32px; height: 32px; }
.reference-layout .funding-card { position: static; width: 100%; border: 0; border-radius: 0; padding: 20px 0 0; box-shadow: none; }
.reference-layout .fc-main { gap: 14px; }
.reference-layout .ring { width: 52px; height: 52px; flex-basis: 52px; }
.reference-layout .ring-pct { font-size: 11px; }
.reference-layout .ring-track { stroke: var(--soft); }
.reference-layout .fc-raised { font-size: 24px; line-height: 30px; }
.reference-layout .fc-raised .raised-word { font-size: 13px; font-weight: 500; }
.reference-layout .fc-goal { font-size: 13px; line-height: 19px; }
.reference-layout .fc-meta { font-size: 12px; }
.reference-layout .fc-actions { gap: 8px; margin-top: 15px; }
.reference-layout .fc-donate, .reference-layout .fc-share { height: 44px; font-size: 14px; animation: none; }
.reference-layout .fc-donate, .reference-layout .sticky-bar-donate { background: var(--lime-action); color: var(--red-primary); }
.reference-layout .fc-donate:hover, .reference-layout .sticky-bar-donate:hover { background: var(--red-bright); }
.reference-layout .fc-share { background: var(--red-primary); color: var(--lime-action); }
.reference-layout .fc-trust { font-size: 11px; margin-top: 10px; }
.reference-layout .campaign-main { display: flex; flex-direction: column; width: 100%; }
.reference-layout .section { padding: 24px 0; margin: 0; border-top: 6px solid var(--gray-light); }
.reference-layout .section h2 { font-size: 21px; line-height: 26px; }
.reference-layout .section-first { border: 0; padding: 18px 0 24px; }
.reference-layout #story h2, .reference-layout .story-lead { display: none; }
.reference-layout .story-clamp { margin-top: 0; max-height: 22rem; }
.reference-layout .story-html { font-size: 15px; line-height: 1.6; }
.reference-layout .story-section h3 { font-size: 17px; }
.reference-layout .story-html img { border-radius: 8px; }
.reference-layout .read-more { min-height: 32px; margin-top: 4px; color: var(--charcoal); font-weight: 500; }
.outline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.reference-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 5px 16px; background: var(--white); border: 1px solid var(--muted); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--charcoal); text-decoration: none; }
.reference-outline:hover { background: var(--soft); }
.reference-layout #contributions { order: 1; }
.reference-layout #sharing { order: 2; }
.reference-layout #organizer { order: 3; }
.reference-layout #support { order: 4; }
.reference-layout #faq { order: 5; }
.feed-heading { color: var(--red-primary); font-size: 13px; font-weight: 700; margin-top: 16px; }
.reference-layout .feed-item { padding: 12px 0; border: 0; }
.reference-layout .feed-name { font-size: 14px; line-height: 19px; }
.reference-layout .feed-line { font-size: 12px; line-height: 18px; }
.reference-layout .avatar { width: 34px; height: 34px; flex-basis: 34px; }
.reference-layout .feed-message { font-size: 14px; line-height: 22px; }
.reference-layout #contributions:not(.show-all) .feed-item:nth-child(n+6), .reference-layout #support:not(.show-all) .feed-item:nth-child(n+3) { display: none; }
.feed-more { width: 100%; margin-top: 16px; }
.support-more { width: auto; display: flex; margin: 18px auto 0; }
.top-gifts { min-height: 30px; font-size: 11px; padding: 2px 10px; }
.share-intro { font-size: 14px; line-height: 22px; margin-top: 12px; }
.share-preview { margin: 18px 0 14px; position: relative; padding: 8px 12% 20px; border: 0; border-radius: 8px; background: var(--gray-light); }
.share-preview > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px 8px 0 0; }
.share-preview figcaption { padding: 0 12px 12px; background: var(--white); }
.share-preview-stats { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 4px; min-height: 32px; margin-top: -12px; padding-right: 54px; }
.share-preview-stats .share-preview-logo { width: 27px; height: 27px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.share-raised { padding: 4px 7px; border-radius: var(--r-pill); background: var(--lime-action); color: var(--red-primary); font-size: 10px; font-weight: 800; white-space: nowrap; border: 2px solid var(--white); }
.share-progress { position: absolute; right: -8px; bottom: -9px; width: 64px; height: 64px; background: var(--white); border: 5px solid var(--white); border-radius: 50%; }
.share-progress [data-share-ring], .share-progress svg { display: block; width: 100%; height: 100%; }
.share-progress > strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--charcoal); }
.reference-layout .share-preview-title { display: block; margin-top: 8px; font-size: 17px; line-height: 21px; font-weight: 800; }
.share-preview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.share-preview-bottom > span { font-size: 10px; color: var(--muted); }
.share-preview-donate { flex-shrink: 0; border: 0; border-radius: var(--r-pill); background: var(--lime-action); color: var(--red-primary); font: inherit; font-size: 11px; font-weight: 800; padding: 5px 9px; cursor: pointer; }
.share-preview-donate:hover { background: var(--red-bright); }
.share-preview-donate:focus-visible { outline: 2px solid var(--red-primary); outline-offset: 3px; }
.social-links { display: flex; justify-content: center; gap: 12px; }
.social-links button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--soft); color: var(--red-primary); cursor: pointer; }
.social-links svg { width: 18px; height: 18px; }
.reference-layout .org { margin-top: 14px; }
.reference-layout .section-note { font-size: 13px; line-height: 20px; }
.reference-layout .sticky-bar { top: auto; bottom: 12px; left: 12px; right: 12px; max-width: 720px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; border: 0; border-radius: 8px; padding: 14px; box-shadow: var(--float-shadow); transform: translateY(calc(100% + 30px)); }
.reference-layout .sticky-bar.is-visible { transform: translateY(0); }
.reference-layout .sticky-bar-text { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.sticky-summary { min-width: 0; }
.reference-layout .sticky-summary p { display: block; white-space: normal; }
.reference-layout .sticky-summary strong { font-size: 19px; }
.reference-layout .sticky-summary > span { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.mini-progress { flex: 0 0 44px; width: 44px; height: 44px; }
.mini-progress svg { display: block; width: 100%; height: 100%; }
.reference-layout .sticky-bar-donate, .reference-layout .sticky-share { width: 100%; height: 40px; padding: 0 10px; animation: none; font-size: 13px; border-radius: var(--r-pill); }
.sticky-share { background: var(--red-primary); color: var(--lime-action); border: 0; cursor: pointer; font-weight: 700; }
.reference-layout.has-sticky-bar { padding-bottom: 160px; }
.reference-layout .sticky-bar-track { display: none; }
.reference-layout .site-footer { padding-bottom: 32px; }
@media (min-width: 769px) {
  .reference-layout .campaign { padding-top: 16px; }
  .reference-layout .carousel { border-radius: 8px 8px 50% 6% / 8px 8px 4% 4%; }
  .reference-layout .carousel-track { aspect-ratio: 4 / 3; }
  .reference-layout .campaign-head h1 { font-size: 32px; line-height: 1.2; }
  .reference-layout .funding-card { padding-top: 24px; }
  .reference-layout .fc-actions { max-width: none; }
}
@media (max-width: 360px) {
  .reference-layout .campaign-head h1 { font-size: 22px; }
  .reference-layout .fc-raised { font-size: 21px; }
  .reference-layout .section h2 { font-size: 19px; }
}