/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */
/* Let the home-page banner continue behind the navigation bar. */
body.home-page #header,
body.home-page.scrolled #header,
body.donate-page #header,
body.donate-page.scrolled #header {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
border-bottom-color: transparent;
}

/* Keep the appearance toggle visible over the dark home-page hero. */
body.home-page #header .theme-toggle,
body.donate-page #header .theme-toggle {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.24);
}

body.home-page #header .theme-toggle:hover,
body.donate-page #header .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Vertically center the page title within the home and donation heroes. */
#home-hero,
#donate-hero {
  display: flex;
  align-items: center;
}

#home-hero h1,
#donate-hero h1 {
  margin-block: 0;
}

/* Compact page-aware language switcher beside the appearance control. */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.2rem;
  border-radius: var(--q2-radius-pill);
  background: var(--q2-bg-muted);
  vertical-align: middle;
}

.language-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.8rem;
  padding: 0 0.45rem;
  border-radius: var(--q2-radius-pill);
  color: var(--q2-text-strong);
  font-family: var(--pico-font-family-sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}

a.language-switcher__item:hover {
  color: var(--q2-text-strong);
  background: var(--q2-bg-elev);
  text-decoration: none;
}

.language-switcher__item.is-active {
  color: var(--q2-text-strong);
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-card);
}

body.home-page #header .language-switcher,
body.donate-page #header .language-switcher {
  background: rgba(0, 0, 0, 0.24);
}

body.home-page #header a.language-switcher__item,
body.donate-page #header a.language-switcher__item {
  color: #ffffff;
}

body.home-page #header a.language-switcher__item:hover,
body.donate-page #header a.language-switcher__item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

body.home-page #header .language-switcher__item.is-active,
body.donate-page #header .language-switcher__item.is-active {
  color: #111111;
  background: #ffffff;
}

.overlay .language-switcher {
  margin-right: 0.75rem;
}/* Give display headings a little more air and avoid synthetic bolding. */
h1 {
  letter-spacing: 0.01em;
}

h2,
h3 {
  font-weight: 400;
  letter-spacing: 0.015em;
}
/* Sien portrait alongside the opening story. */
.home-page .content-item {
  display: flow-root;
}

.home-page .content-item p:not(.donation-cta),
.update-card__body p {
  margin-bottom: 0.5rem;
}

.home-page .story-image {
  float: left;
  width: min(40%, 20rem);
  margin: 0.35rem 2rem 1rem 0;
}

.home-page .story-image__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--q2-radius);
  box-shadow: var(--q2-shadow-card);
}

@media (max-width: 700px) {
  .home-page .story-image {
    float: none;
    width: 100%;
    max-width: 28rem;
    margin: 1.25rem auto 1.5rem;
  }
}
/* Primary donation actions in the navigation and below the campaign story. */
:root {
  --fundraiser-donation: #18794e;
  --fundraiser-donation-hover: #12633f;
  --fundraiser-donation-text: #ffffff;
  --fundraiser-donation-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(18, 99, 63, 0.28);
}

.dropmenu a.donation-nav-button {
  color: var(--fundraiser-donation-text);
  background: var(--fundraiser-donation);
  font-weight: 700;
  box-shadow: var(--fundraiser-donation-shadow);
}

.dropmenu a.donation-nav-button:hover {
  color: var(--fundraiser-donation-text);
  background: var(--fundraiser-donation-hover);
  opacity: 1;
}

.donation-cta {
  margin-top: 2rem;
  margin-bottom: 0;
}

.donation-cta .donation-button,
.update-card__donation .donation-button {
  color: var(--fundraiser-donation-text);
  background: var(--fundraiser-donation);
  font-weight: 700;
  box-shadow: var(--fundraiser-donation-shadow);
}

.donation-cta .donation-button:hover,
.update-card__donation .donation-button:hover {
  color: var(--fundraiser-donation-text);
  background: var(--fundraiser-donation-hover);
  opacity: 1;
}

.overlay .overlay-menu a.donation-nav-button {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  color: var(--fundraiser-donation-text);
  background: var(--fundraiser-donation);
  border-radius: var(--q2-radius);
  box-shadow: var(--fundraiser-donation-shadow);
  text-align: center;
  font-family: var(--pico-font-family-sans-serif);
  font-size: 1rem;
  font-weight: 700;
}

.overlay .overlay-menu a.donation-nav-button:hover {
  color: var(--fundraiser-donation-text);
  background: var(--fundraiser-donation-hover);
  opacity: 1;
}

.donation-nav-button:focus-visible,
.donation-button:focus-visible {
  outline: 3px solid rgba(24, 121, 78, 0.4);
  outline-offset: 3px;
}

/* WhyDonate's hosted form, loaded only on the local donation page. */
.donation-page {
  max-width: 52rem;
  margin-inline: auto;
}

.donation-notice {
  margin: 1.25rem 0 0;
  padding: 1rem 1.125rem;
  border: 1px solid var(--q2-divider);
  border-left-width: 0.3rem;
  border-radius: var(--q2-radius-md);
  background: var(--q2-bg-elev);
}

.donation-notice p {
  margin: 0;
}

.donation-notice--tip {
  color: #991b1b;
  border-left-color: #b42318;
  background: color-mix(in oklab, #dc2626 9%, var(--q2-bg-elev));
}

:root[data-theme='dark'] .donation-notice--tip {
  color: #fde047;
  border-left-color: #facc15;
  background: color-mix(in oklab, #facc15 10%, var(--q2-bg-elev));
}

.donation-notice--confirmation {
  border-left-color: var(--fundraiser-donation);
}

.whydonate-widget-shell {
  min-height: 26rem;
  margin-top: 2rem;
}

.whydonate-widget-fallback {
  margin-top: 1.5rem;
  color: var(--q2-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.whydonate-widget-fallback a {
  font-weight: 700;
}

/* Live fundraiser totals supplied by the local WhyDonate plugin. */
.fundraiser-progress {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--q2-text);
  background: var(--q2-bg-elev);
  border: 1px solid var(--q2-divider);
  border-radius: var(--q2-radius-lg);
  box-shadow: var(--q2-shadow-card);
}

.fundraiser-progress__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.fundraiser-progress__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--fundraiser-donation);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fundraiser-progress h2 {
  margin: 0;
}

.fundraiser-progress__percentage {
  color: var(--fundraiser-donation);
  font-family: var(--pico-font-family-sans-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
}

.fundraiser-progress__bar {
  display: block;
  width: 100%;
  height: 0.9rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--q2-radius-pill);
  background: var(--q2-bg-muted);
  color: var(--fundraiser-donation);
  accent-color: var(--fundraiser-donation);
}

.fundraiser-progress__bar::-webkit-progress-bar {
  background: var(--q2-bg-muted);
  border-radius: var(--q2-radius-pill);
}

.fundraiser-progress__bar[value]::-webkit-progress-value {
  background-color: var(--fundraiser-donation);
  border-radius: var(--q2-radius-pill);
}

.fundraiser-progress__bar::-moz-progress-bar {
  background: var(--fundraiser-donation);
  border-radius: var(--q2-radius-pill);
}

.fundraiser-progress__amounts {
  margin: 0.75rem 0 0;
  font-family: var(--pico-font-family-sans-serif);
}

.fundraiser-progress__amounts strong {
  color: var(--q2-text-strong);
}

.fundraiser-progress__status {
  margin: 0.5rem 0 0;
  color: var(--q2-text-muted);
  font-size: 0.875rem;
}

/* Campaign updates, sourced from the hidden /updates page collection. */
.updates-section {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--q2-divider);
}

.updates-section > h2 {
  margin-bottom: 1.5rem;
}

.updates-list {
  display: grid;
  gap: 2rem;
}

.update-card {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--q2-bg-elev);
  border-radius: var(--q2-radius-lg);
  box-shadow: var(--q2-shadow-raised);
}

.update-card__media {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.update-card__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--q2-radius-md);
  transition: transform 0.2s ease;
}

.update-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: var(--q2-radius-md);
  cursor: zoom-in;
}

.update-card__image-link:hover .update-card__image {
  transform: scale(1.015);
}

.update-card__image-link:focus-visible {
  outline: 3px solid rgba(24, 121, 78, 0.4);
  outline-offset: 3px;
}

.update-card__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.update-card__donation {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 0;
}

.update-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.3rem;
  color: var(--fundraiser-donation);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.update-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.update-card__body > :last-child {
  margin-bottom: 0;
}

.update-lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  max-height: 96vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.update-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
}

.update-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92vh;
  margin: auto;
  border-radius: var(--q2-radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.update-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--q2-radius-pill);
  color: #111111;
  background: #ffffff;
  box-shadow: var(--q2-shadow-raised);
  cursor: pointer;
}

.update-lightbox__close:hover {
  background: #f2f2f4;
}

.update-lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 760px) {
  .update-card {
    grid-template-columns: 1fr;
  }

  .update-card__media {
    grid-column: 1;
    grid-row: auto;
    max-width: 28rem;
  }

  .update-card__content,
  .update-card__donation {
    grid-column: 1;
    grid-row: auto;
  }
}
