/* Quicksand (SIL Open Font License, see /fonts/OFL.txt), self-hosted */
@font-face { font-family: 'Quicksand'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/quicksand-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/quicksand-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Shared additions on top of each page's design styles. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid #D4A017; outline-offset: 3px; border-radius: 6px; }
section[id], footer[id] { scroll-margin-top: 24px; }

.form-status { margin: 10px 0 0; font-size: 14px; font-weight: 600; min-height: 1em; }
.form-status:empty { display: none; }
footer .form-status { color: #F2D27A; }
[data-donate-status] { color: #0F5A2A; text-align: center; background: #EAF2EA; border-radius: 12px; padding: 12px 16px; }
[data-donate-status].is-error { color: #8A1F11; background: #FBEAE7; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #0F5A2A; color: #FFFFFF !important; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }

footer textarea { width: 100%; min-height: 96px; box-sizing: border-box; border: 0; border-radius: 22px; padding: 14px 20px; font: inherit; color: #14202E; background: #FFFFFF; resize: vertical; }

/* ---------- Responsive refinements ---------- */
body { overflow-wrap: break-word; }
img { max-width: 100%; }
li.lift > span:last-child, .fund-row > span { min-width: 0; }
.break-anywhere { overflow-wrap: anywhere; }

/* Tablets */
@media (max-width: 1024px) {
  .hdr-row { gap: 12px !important; }
}

/* Phones */
@media (max-width: 560px) {
  .donate-card { padding: 22px 18px !important; border-radius: 20px !important; }
  .method-row { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
  .method-row > button { min-width: 0; }
  .news-row { flex-direction: column; }
  .news-row-img { width: 100% !important; min-height: 180px !important; }
  .fund-row { position: relative; padding-right: 14px !important; }
  .fund-row > svg { display: none; }
  .fund-thumb { width: 64px !important; height: 60px !important; }
  .fund-badge { position: absolute; top: -10px; right: 12px; }
}

/* Small phones */
@media (max-width: 420px) {
  .hdr-row { flex-wrap: nowrap !important; padding-left: 16px !important; padding-right: 16px !important; gap: 8px !important; }
  .hdr-logo { height: 46px !important; }
  .hdr-actions { flex-wrap: nowrap !important; gap: 8px !important; }
  .hdr-donate { min-height: 44px !important; padding: 0 16px !important; font-size: 13px !important; }
  .hdr-actions .nav-toggle { width: 44px !important; height: 44px !important; }
  li.lift > span:last-child > span:first-child { font-size: 40px !important; }
}

/* ---------- Breakpoints ----------
   xs  < 480px    phones
   sm  480–767px  large phones
   md  768–1023px tablets
   lg  1024–1279px small laptops
   xl  >= 1280px  desktops
   Card grids (.rgrid) get a column count per breakpoint (set on each grid as
   --c-xs … --c-xl) so rows fill evenly; a short last row is centred. */
.rgrid { display: flex !important; flex-wrap: wrap; justify-content: center; column-gap: var(--g) !important; --c: var(--c-xs); }
.rgrid > * { flex: 0 0 calc((100% - (var(--c) - 1) * var(--g)) / var(--c)); max-width: calc((100% - (var(--c) - 1) * var(--g)) / var(--c)); min-width: 0; box-sizing: border-box; }
@media (min-width: 480px)  { .rgrid { --c: var(--c-sm); } }
@media (min-width: 768px)  { .rgrid { --c: var(--c-md); } }
@media (min-width: 1024px) { .rgrid { --c: var(--c-lg); } }
@media (min-width: 1280px) { .rgrid { --c: var(--c-xl); } }
footer .rgrid { justify-content: flex-start; }

/* Team sign-in: a round icon beside Donate, and a full-width link in the phone menu */
.hdr-login { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; box-sizing: border-box; border-radius: 50%; border: 2px solid #0F5A2A; background: #FFFFFF; color: #0F5A2A; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.hdr-login:hover { background: #0F5A2A; color: #FFFFFF; transform: translateY(-1px); }
.hdr-login:focus-visible { border-radius: 50%; }
.menu-login { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; min-height: 52px; border: 2px solid #0F5A2A; border-radius: 999px; color: #0F5A2A; font-weight: 700; transition: background-color .18s ease, color .18s ease; }
.menu-login:hover { background: #0F5A2A; color: #FFFFFF; }
@media (max-width: 420px) { .hdr-login { width: 44px; height: 44px; } }
@media (max-width: 359px) { .hdr-login { display: none; } }
@media (prefers-reduced-motion: reduce) { .hdr-login, .menu-login { transition: none; } .hdr-login:hover { transform: none; } }

/* Header: switch to the menu button before the nav runs out of room */
@media (max-width: 1180px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
}
@media (min-width: 1181px) { #mobile-menu { display: none !important; } }

/* Tablets: tighter section spacing */
@media (max-width: 1023px) {
  section > div[style*="padding: 76px 24px"], section > div[style*="padding: 84px 24px"], section > div[style*="padding: 96px 24px"], section > div[style*="padding: 104px 24px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
}
/* Phones: tighter still */
@media (max-width: 767px) {
  section > div[style*="padding: 76px 24px"], section > div[style*="padding: 84px 24px"], section > div[style*="padding: 96px 24px"], section > div[style*="padding: 104px 24px"] { padding-top: 52px !important; padding-bottom: 52px !important; }
}
.rgrid[hidden] { display: none !important; }

/* ---------- Card sliders ----------
   Sections marked data-slider show one row of cards that scrolls sideways
   (swipe on phones; arrow buttons from site.js). Cards visible at once:
   ~1 on phones (with the next one peeking), ~2 on tablets, and the grid's
   own --c-lg / --c-xl on laptops and desktops. */
.rgrid[data-slider] { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 14px 20px 48px; margin: -14px -20px -30px; scrollbar-width: none; --v: 1.15; }
.rgrid[data-slider]::-webkit-scrollbar { display: none; }
.rgrid[data-slider] > * { flex: 0 0 calc((100% - (var(--v) - 1) * var(--g)) / var(--v)); max-width: none; scroll-snap-align: start; }
.rgrid[data-slider] > .reveal { animation: none; }
@media (min-width: 480px)  { .rgrid[data-slider] { --v: 1.6; } }
@media (min-width: 768px)  { .rgrid[data-slider] { --v: 2.3; } }
@media (min-width: 1024px) { .rgrid[data-slider] { --v: var(--c-lg); } }
@media (min-width: 1280px) { .rgrid[data-slider] { --v: var(--c-xl); } }
.slider-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.slider-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #0F5A2A; background: #FFFFFF; color: #0F5A2A; cursor: pointer; transition: background-color .18s ease, color .18s ease, opacity .18s ease; }
.slider-btn:hover:not(:disabled) { background: #0F5A2A; color: #FFFFFF; }
.slider-btn:disabled { opacity: .3; cursor: default; }
@media (prefers-reduced-motion: reduce) { .slider-btn { transition: none; } }
