/*
 * The Causes and Reports pages (components/site/ListingViews.tsx), below the blue banner of public/zz/donate.css.
 * Cause cards three to a row 30px apart (sizes as the page had them); reports as cards three to a row, grouped by
 * section, each with its year and a Download button lined up at the bottom.
 */

/* ------------------------------------------------------------------ causes */
.zzcl { padding: 50px 10px; }
.zzcl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 1024px) { .zzcl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .zzcl__grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ reports */
.zzr { padding: 0 20px 90px; background: radial-gradient(1100px 480px at 50% 0%, #eef5fc 0%, rgb(238 245 252 / 0) 70%), #fff; }
.zzr__intro { max-width: 760px; margin: 0 auto; padding: 64px 0 18px; text-align: center; }
.zzr__eyebrow { margin: 0 0 10px; font: 600 13px/1.3 "Poppins", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #006db8; }
.zzr__lead { margin: 0; font: 400 18px/1.6 "Roboto", system-ui, sans-serif; color: #475467; text-wrap: pretty; }
.zzr__jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.zzr__jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px 9px 16px; border-radius: 999px; background: #fff; color: #0b1b36;
  font: 500 14.5px/1 "Poppins", sans-serif; text-decoration: none; box-shadow: 0 0 0 1px #e4e7ec, 0 1px 2px rgb(16 24 40 / 0.05);
  transition: box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.zzr__jump a span { min-width: 24px; padding: 4px 7px; border-radius: 999px; background: #eef5fc; color: #006db8; font-size: 12px; text-align: center; }
.zzr__jump a:hover, .zzr__jump a:focus-visible { color: #006db8; box-shadow: 0 0 0 1px #b9d6ef, 0 8px 18px -10px rgb(0 85 146 / 0.45); transform: translateY(-1px); outline: none; }
.zzr__group { max-width: 1200px; margin: 0 auto; padding-top: 56px; scroll-margin-top: 110px; }
.zzr__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #e4e7ec; }
.zzr__head { margin: 0; font: 700 34px/1.15 "Source Serif 4", Georgia, serif; color: #0b1b36; scroll-margin-top: 110px; }
.zzr__count { flex: none; font: 500 14px/1 "Poppins", sans-serif; color: #667085; }
.zzr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.zzr__card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px 26px 24px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px rgb(0 85 146 / 0.07), 0 1px 2px rgb(16 24 40 / 0.04), 0 18px 36px -18px rgb(0 85 146 / 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.zzr__card:hover, .zzr__card:focus-within { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(0 109 184 / 0.18), 0 2px 4px rgb(16 24 40 / 0.04), 0 28px 50px -20px rgb(0 85 146 / 0.38); }
.zzr__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.zzr__doc {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(140deg, #eef5fc, #dcebf8); color: #006db8;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.zzr__doc svg { width: 26px; height: 26px; }
.zzr__card:hover .zzr__doc, .zzr__card:focus-within .zzr__doc { background: linear-gradient(140deg, #0b7ac4, #005592); color: #fff; transform: rotate(-4deg) scale(1.04); }
.zzr__year { font: 700 30px/1 "Source Serif 4", Georgia, serif; color: #cfe1f1; letter-spacing: -0.01em; transition: color 0.35s ease; }
.zzr__card:hover .zzr__year, .zzr__card:focus-within .zzr__year { color: #8bc53f; }
.zzr__title { margin: 0 0 24px; font: 600 19px/1.35 "Poppins", system-ui, sans-serif; color: #101828; text-wrap: balance; }
.zzr__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding: 13px 20px; border-radius: 999px;
  background: #fff; color: #006db8; font: 600 15px/1 "Poppins", sans-serif; text-decoration: none; box-shadow: inset 0 0 0 1.5px #b9d6ef;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.zzr__btn::after { content: ""; position: absolute; inset: 0; border-radius: 24px; } /* the whole card opens the report */
.zzr__btn svg { width: 18px; height: 18px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.zzr__card:hover .zzr__btn, .zzr__btn:focus-visible { background: linear-gradient(135deg, #0b7ac4 0%, #006db8 50%, #005592 100%); color: #fff; box-shadow: 0 10px 20px -10px rgb(0 85 146 / 0.7); }
.zzr__card:hover .zzr__btn svg, .zzr__btn:focus-visible svg { transform: translateY(2px); }
.zzr__btn:focus-visible { outline: 3px solid rgb(0 109 184 / 0.35); outline-offset: 3px; }
.zzr__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1024px) { .zzr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .zzr { padding: 0 16px 64px; }
  .zzr__intro { padding-top: 44px; }
  .zzr__lead { font-size: 16.5px; }
  .zzr__group { padding-top: 40px; }
  .zzr__head { font-size: 27px; }
  .zzr__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .zzr__card { padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .zzr__card, .zzr__doc, .zzr__btn svg, .zzr__jump a { transition: none; } .zzr__card:hover { transform: none; } }
