@font-face {
  font-family: "Caveat";
  src: url("/fonts/Caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --purple: #6A2C92;
  --purple-dark: #542478;
  --purple-mid: #9060B0;
  --purple-soft: #F7F6FC;
  --purple-soft-2: #F3ECFA;
  --purple-icon-bg: #EFE8F7;
  --text: #1A1225;
  --muted: #6B6280;
  --border: #E8E0F0;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(106, 44, 146, 0.12);
  --shadow-soft: 0 4px 16px rgba(106, 44, 146, 0.08);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}
main { flex: 1; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; overflow: visible; }
.narrow { width: min(720px, 100%); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0; position: relative;
  overflow: visible;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none !important; flex-shrink: 0; }
.brand-logo { height: 58px; width: auto; max-height: 58px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-cheers { font-weight: 800; color: var(--purple); font-size: 1.05rem; letter-spacing: .04em; }
.brand-zh { font-weight: 700; color: var(--purple); font-size: .88rem; }

.site-nav {
  display: flex; flex-wrap: wrap; gap: .1rem 1.35rem; align-items: center;
  margin-left: auto;
}
.nav-link {
  color: #3a3344; font-weight: 600; font-size: .95rem;
  padding: .3rem 0 .25rem; border-bottom: 3px solid transparent;
  text-decoration: none !important;
}
.nav-link:hover { color: var(--purple); }
.nav-link.active { color: var(--purple); border-bottom-color: var(--purple); }

.header-motto {
  display: flex; align-items: center; margin-left: .5rem; flex-shrink: 0;
  overflow: visible; max-width: min(240px, 22vw);
}
.header-motto img {
  height: 44px; width: auto; max-width: 100%;
  object-fit: contain; object-position: left center;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--purple); border-radius: 2px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.45rem; border-radius: 999px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; font-size: .95rem;
  text-decoration: none !important; font-family: inherit;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline { background: transparent; border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple-soft); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-danger { background: #b33; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; }
.btn-cta {
  padding: .9rem 1.75rem; font-size: 1.02rem;
  box-shadow: 0 10px 28px rgba(106, 44, 146, 0.28);
}
.btn-ico { font-size: 1.1em; line-height: 1; }
.btn-arrow { opacity: .9; }

/* ========== Icons ========== */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--purple-icon-bg); color: var(--purple); font-size: 1rem;
  flex-shrink: 0;
}
.icon-circle.solid { background: var(--purple); color: #fff; }
.col-head .icon-circle { width: 34px; height: 34px; font-size: .85rem; background: transparent; color: var(--purple); }
.mission-values .icon-circle { background: var(--purple); color: #fff; width: 40px; height: 40px; }

/* ========== HOME HERO (full-bleed photo + purple scrim) ========== */
.hero-home {
  position: relative;
  min-height: 420px;
  padding: 3.75rem 0 3.25rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--purple-dark);
  background-image: url("/img/hero-home.jpg");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(106, 44, 146, 0.88) 0%,
    rgba(84, 36, 120, 0.74) 42%,
    rgba(26, 18, 37, 0.48) 100%
  );
  z-index: 0;
}
.hero-home-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}
.hero-home .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding-bottom: 0;
}
.hero-home .hero-copy h1 {
  margin: 0 0 .4rem;
  color: #fff;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: .01em;
  font-weight: 800;
  text-shadow: 0 1px 14px rgba(26, 18, 37, 0.35);
}
.hero-home .hero-en {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  margin: 0 0 1.1rem;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(26, 18, 37, 0.28);
}
.hero-home .hero-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 30rem;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(26, 18, 37, 0.25);
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem;
  position: relative; z-index: 2;
}
.btn-hero-cta {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(26, 18, 37, 0.28);
}
.btn-hero-cta:hover {
  background: #f3eaf8;
  color: var(--purple-dark);
  border-color: #f3eaf8;
}
.hero-note-inline {
  width: min(240px, 48vw);
  height: auto;
  max-width: 100%;
  transform: rotate(-3deg);
  margin-top: .35rem;
  flex: 0 1 auto;
  filter: drop-shadow(0 4px 12px rgba(26, 18, 37, 0.25));
}
/* Legacy two-col pieces kept harmless if referenced elsewhere */
.hero-home-grid { display: block; position: relative; }
.hero-copy h1 {
  margin: 0 0 .4rem;
  color: var(--purple);
  font-size: clamp(1.9rem, 3.8vw, 2.65rem);
  line-height: 1.28;
  letter-spacing: .01em;
  font-weight: 800;
}
.hero-en {
  color: var(--purple);
  font-weight: 700;
  margin: 0 0 1.1rem;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  line-height: 1.4;
}
.hero-lead {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 1.5rem;
  font-size: .98rem;
  line-height: 1.75;
}
.hero-copy { position: relative; z-index: 1; }
.hero-visual, .hero-photo, .hero-note-side, .hero-rainbow-corner { display: none; }

/* ========== Mission bar ========== */
.mission-bar {
  background: #fff;
  border-block: 1px solid var(--border);
  padding: 1.4rem 0;
}
.mission-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  align-items: center; justify-content: space-between;
}
.mission-left {
  display: flex; gap: 1rem; align-items: center; flex: 1 1 320px;
  min-width: min(100%, 280px);
  padding-right: 1.5rem;
  border-right: 1px solid var(--border);
}
.mission-left > img { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.mission-text h2 {
  margin: 0 0 .3rem; color: var(--purple); font-size: 1.12rem; font-weight: 800;
}
.mission-text p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 30rem; line-height: 1.55; }
.mission-values {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
}
.mission-values li {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--purple); font-size: .88rem; line-height: 1.25;
}
.mission-values small {
  display: block; font-weight: 500; color: var(--muted); font-size: .72rem;
}

/* ========== Home 3-col mid ========== */
.home-grid-section {
  padding: 2.75rem 0 3.25rem;
  background: #F4F2F8;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .95fr;
  gap: 1.35rem;
  align-items: start;
}
.home-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  min-height: 100%;
}
.col-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: 1rem;
}
.col-head h2 {
  margin: 0; color: var(--purple); font-size: 1.08rem; font-weight: 800;
  display: flex; align-items: center; gap: .4rem;
}
.link-more {
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  text-decoration: none !important; color: var(--purple);
}
.link-more:hover { text-decoration: underline !important; }

.featured-stack { display: flex; flex-direction: column; gap: 1rem; }
.event-card-featured {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 .85rem;
  box-shadow: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff; align-items: center;
}
.event-card-featured .card-media {
  width: 112px; height: 112px; min-width: 112px; max-width: 112px;
  min-height: 112px; max-height: 112px; aspect-ratio: 1; border-radius: 0;
  position: relative; overflow: hidden; background: var(--purple-soft-2);
  flex-shrink: 0; align-self: center;
}
.event-card-featured .card-media img {
  width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block;
}
.event-card-featured .card-body {
  padding: .7rem .85rem .75rem 0;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  overflow-wrap: anywhere;
}
.event-card-featured h3 { font-size: .95rem; margin: 0 0 .25rem; line-height: 1.35; }
.event-card-featured h3 a { color: var(--text); text-decoration: none !important; }
.event-card-featured h3 a:hover { color: var(--purple); }
.card-excerpt { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.card-loc { margin: .35rem 0 0; font-size: .78rem; color: var(--muted); }
.card-loc .pin { margin-right: .2rem; }

.gal-preview {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
}
.gal-thumb {
  display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--purple-soft-2); border: 1px solid var(--border);
}
.gal-thumb img, .gal-thumb video { width: 100%; height: 100%; object-fit: cover; }

.home-contact .intro {
  margin: 0 0 .85rem; color: var(--muted); font-size: .88rem; line-height: 1.55;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.cl-label { display: block; font-size: .75rem; color: var(--purple); font-weight: 700; }
.contact-list a { font-weight: 600; color: var(--text); text-decoration: none !important; }
.contact-list a:hover { color: var(--purple); }
.home-contact { overflow: visible; }
.note-contact-img {
  display: block; width: min(240px, 100%); margin: 1.25rem 0 0 auto; height: auto;
  max-width: 100%;
}

/* ========== Donate hero (legacy two-col kept; photo hero uses .page-hero--donate) ========== */
.hero-donate {
  background: #fff;
  padding: 2.5rem 0 1.75rem;
}
.hero-donate-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-donate .hero-copy h1 {
  margin: 0 0 .65rem;
  color: var(--purple);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
}
.hero-sub {
  color: var(--purple);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.page-hero--donate .hero-sub,
.page-hero .hero-sub {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 1.08rem;
  margin: .55rem 0 0;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(26, 18, 37, 0.2);
}
.donate-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow: visible;
}
.donate-hero-icon {
  width: min(220px, 55%);
  height: auto;
}
.donate-note-img {
  width: min(220px, 42%);
  height: auto;
  transform: rotate(2deg);
  max-width: 100%;
}

/* ========== Donate cards ========== */
.donate-cards-section {
  padding: 0.5rem 0 2.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--purple-soft) 40%, var(--purple-soft) 100%);
}
.donate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.donate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: var(--shadow-soft);
}
.donate-card-head {
  display: flex; gap: .7rem; align-items: center; margin-bottom: .55rem;
}
.donate-card-head .icon-circle { background: var(--purple); color: #fff; }
.donate-card h2 { margin: 0; color: var(--purple); font-size: 1.02rem; font-weight: 800; }
.donate-card .en { margin: 0; color: var(--muted); font-size: .78rem; }
.donate-card hr {
  border: 0; border-top: 1px solid var(--border);
  margin: .6rem 0 .8rem;
}
.bank-name { margin: 0 0 .55rem; font-weight: 600; font-size: .9rem; line-height: 1.45; }
.field-label { margin: 0; font-size: .78rem; color: var(--muted); font-weight: 600; }
.big-num {
  margin: .3rem 0 .55rem;
  color: var(--purple);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: .02em;
  word-break: break-all;
  line-height: 1.3;
}
.contact-name { font-size: 1.3rem !important; }
.contact-line { margin: .35rem 0; font-weight: 600; font-size: .92rem; }
.contact-line a { color: var(--text); }
.donate-card-qr { text-align: center; }
.donate-card-qr h2 { margin-bottom: .1rem; }
.qr-frame {
  margin: .85rem auto;
  width: fit-content;
  padding: .7rem;
  border: 2px solid var(--purple);
  border-radius: 14px;
  background: #fff;
}
.pill-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--purple); color: #fff;
  border-radius: 999px; padding: .45rem .95rem;
  font-size: .78rem; font-weight: 700; margin: .55rem 0 0;
}
.pill-tag .icon-circle {
  width: 22px; height: 22px; font-size: .65rem; background: rgba(255,255,255,.22); color: #fff;
}

/* ========== FAQ ========== */
.faq-section { background: var(--purple-soft); padding: 2.75rem 0 3.25rem; }
.faq-grid {
  display: grid;
  grid-template-columns: .75fr 1.35fr .8fr;
  gap: 1.5rem;
  align-items: start;
}
.faq-en { color: var(--purple); font-weight: 800; margin: .1rem 0 .75rem; font-size: 1.05rem; }
.faq-list { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.faq-item {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
  border-radius: 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--purple); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.faq-item[open] .faq-plus { transform: rotate(45deg); display: inline-block; }
.faq-body { padding: 0 1.15rem 1.05rem; color: var(--muted); font-size: .9rem; }
.thanks-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.thanks-card img { margin: 0 auto .85rem; width: 88px; height: auto; }
.thanks-card p { margin: 0 0 .85rem; color: var(--text); font-size: .92rem; line-height: 1.55; }
.thanks-brand {
  font-family: var(--hand);
  font-size: 1.45rem !important;
  margin: 0 !important;
  color: var(--purple) !important;
  font-weight: 700;
}
.thanks-rainbow {
  width: 120px; height: auto; margin: .35rem auto 0;
}

/* ========== Shared sections ========== */
.section { padding: 2.5rem 0; }
.section-tint { background: var(--purple-soft); }
.section-title {
  color: var(--purple); font-size: 1.45rem; margin: 0 0 1.25rem;
  text-align: center;
}
.section-title.left, .page-title.left { text-align: left; }
/* ========== Page heroes (photo + purple scrim) ========== */
.page-hero {
  position: relative;
  min-height: 200px;
  padding: 3rem 0 2.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  background-color: var(--purple-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(106, 44, 146, 0.82) 0%,
    rgba(84, 36, 120, 0.72) 45%,
    rgba(26, 18, 37, 0.55) 100%
  );
  z-index: 0;
}
.page-hero .wrap,
.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}
.page-hero .page-title { color: #fff; text-shadow: 0 1px 12px rgba(26, 18, 37, 0.25); }
.page-hero .page-lead {
  color: rgba(255, 255, 255, 0.92);
  margin: .55rem 0 0;
  text-shadow: 0 1px 8px rgba(26, 18, 37, 0.2);
}
.page-hero .page-hero-desc {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: .85rem auto 0;
  font-size: .98rem;
  line-height: 1.7;
}
.page-hero--about {
  background-image: url("/img/hero-about.jpg");
  background-position: center 40%;
  min-height: 240px;
  padding: 3.25rem 0 2.75rem;
}
.page-hero--events { background-image: url("/img/hero-events.jpg"); }
.page-hero--gallery { background-image: url("/img/hero-gallery.jpg"); background-position: center 35%; }
.page-hero--contact { background-image: url("/img/hero-contact.jpg"); }
.page-hero--donate {
  background-image: url("/img/hero-donate.jpg");
  background-position: center 40%;
  min-height: 240px;
  padding: 3.25rem 0 2.75rem;
}
.page-hero--donate::before {
  background: linear-gradient(
    120deg,
    rgba(106, 44, 146, 0.78) 0%,
    rgba(84, 36, 120, 0.68) 50%,
    rgba(42, 24, 58, 0.58) 100%
  );
}
/* legacy alias */
.page-hero-sm { /* kept for safety; prefer .page-hero */
  background: linear-gradient(180deg, var(--purple-soft), #fff);
  padding: 2.25rem 0 1rem; text-align: center;
}
.page-title {
  margin: 0; color: var(--purple);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center; font-weight: 800;
}
.page-lead { color: var(--muted); margin: .5rem 0 0; text-align: center; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-2px); }
.card-media {
  display: block; aspect-ratio: 16/10; background: var(--purple-soft); overflow: hidden;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.25rem; }
.card-body time { color: var(--purple-mid); font-size: .85rem; font-weight: 600; }
.card-body h3 { margin: .35rem 0 0; font-size: 1.05rem; }
.card-body h3 a { color: var(--text); }

.date-badge {
  position: absolute; top: .55rem; left: .55rem; z-index: 2;
  background: var(--purple); color: #fff;
  border-radius: 10px; padding: .32rem .5rem;
  font-size: .72rem; font-weight: 700; line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; min-width: 2.65rem;
  box-shadow: 0 4px 12px rgba(106,44,146,.28);
}
.date-m { font-size: .65rem; opacity: .95; letter-spacing: .02em; }
.date-d { font-size: 1.05rem; font-weight: 800; }

.ph-cover {
  width: 100%; height: 100%; min-height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; background: linear-gradient(145deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: #fff; text-align: center; padding: 1rem;
}
.ph-cover .ph-logo { width: 64px; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.ph-cover span { font-weight: 700; font-size: .9rem; line-height: 1.3; }

.detail-cover {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem;
  background: var(--purple-soft); aspect-ratio: 16/9;
}
.detail-cover img, .detail-cover .ph-cover { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.event-date { color: var(--purple); font-weight: 700; }

.prose h2 { color: var(--purple); }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.gal-item {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--purple-soft);
  border: 1px solid var(--border);
}
.gal-item img, .gal-item video { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gal-item figcaption { padding: .4rem .6rem; font-size: .8rem; color: var(--muted); }
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-state .ph-cover { max-width: 320px; margin: 0 auto 1rem; border-radius: var(--radius); min-height: 180px; }

.donate-box, .contact-card {
  background: var(--purple-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  border: 1px solid var(--border); margin-top: 1.5rem;
}
.contact-card-lg { margin-top: 0; background: #fff; box-shadow: var(--shadow-soft); }
.dl { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.dl code, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; padding: .15rem .4rem; border-radius: 6px; font-size: .92em;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--purple); color: #fff; margin-top: auto;
  padding: 1.65rem 0;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  justify-content: space-between; align-items: center;
}
.footer-brand { display: flex; gap: .75rem; align-items: center; }
.footer-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  /* Purple mark → white on purple footer; keep rainbow subtly muted */
  filter: brightness(0) invert(1);
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.footer-sep { opacity: .5; margin: 0 .4rem; }
.footer-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .65rem;
  row-gap: .35rem;
  font-size: .85rem;
  opacity: .95;
}
/* Copyright + | + slogan stay one row; nowrap on slogan avoids orphan 始 */
.footer-copy-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}
.footer-love {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}
.footer-slogan, .footer-en { font-size: .85rem; opacity: .95; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; font-size: .85rem; }
.footer-nav a { text-decoration: none; opacity: .95; }
.footer-nav a:hover { text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.footer-copy { margin: 0; font-size: .78rem; opacity: .85; width: 100%; text-align: right; }
.footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: .85rem; }
.social-btn, .social-outline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  font-size: .7rem; font-weight: 700; text-decoration: none !important;
}
.social-btn-mute { opacity: .55; }
/* ========== Responsive ========== */
@media (max-width: 1020px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-contact { grid-column: 1 / -1; }
  .donate-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .faq-intro { grid-column: 1 / -1; }
  .hero-home { min-height: 360px; padding: 3.1rem 0 2.75rem; }
}
@media (max-width: 860px) {
  .page-hero {
    min-height: 180px;
    padding: 2.35rem 0 2rem;
  }
  .page-hero--donate, .page-hero--about { min-height: 220px; padding: 2.6rem 0 2.25rem; }
  .hero-home { min-height: 320px; padding: 2.75rem 0 2.5rem; }
  .hero-donate-inner { grid-template-columns: 1fr; }
  .hero-note-inline { width: min(200px, 55vw); }
  .home-grid { grid-template-columns: 1fr; }
  .mission-left { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 1rem; width: 100%; }
  .header-motto { display: none; }
  .donate-visual { flex-direction: column; }
  .donate-note-img { width: min(220px, 70%); }
}
@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: .75rem 1rem 1rem; align-items: stretch;
    gap: 0; margin-left: 0;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: .7rem .75rem; border-bottom: 0; }
  .nav-link.active { background: var(--purple-soft); border-radius: 8px; }
  .donate-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .event-card-featured { grid-template-columns: 96px minmax(0, 1fr); }
  .event-card-featured .card-media {
    width: 96px; height: 96px; min-width: 96px; max-width: 96px;
    min-height: 96px; max-height: 96px;
  }
  .dl { grid-template-columns: 1fr; gap: .15rem; }
  .dl dt { margin-top: .5rem; }
  .footer-copy { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  /* Keep copyright | slogan on one row; shrink type on narrow phones instead of stacking */
  .footer-center {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    font-size: .78rem;
  }
  .footer-copy-line {
    font-size: inherit;
  }
  .footer-sep-center { display: inline; }
  /* Lone "|" beside circular IG/FB looks like a broken social chip on mobile */
  .footer-right > .footer-sep { display: none; }
  .footer-love {
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
  }
  .footer-right {
    width: 100%;
  }
  .footer-en {
    flex: 1 1 auto;
    min-width: 0;
  }
}
@media (max-width: 400px) {
  .footer-center {
    font-size: .7rem;
  }
}

/* Mission values: icon above label, 4-across on mobile only */
@media (max-width: 768px) {
  .mission-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem .3rem;
    width: 100%;
    justify-items: center;
  }
  .mission-values li {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: .35rem;
    font-size: .72rem;
    width: 100%;
  }
  .mission-values .icon-circle {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }
  .mission-values small {
    font-size: .6rem;
  }
}


/* ========== Language switcher ========== */
.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-left: .75rem; flex-shrink: 0;
  font-size: .88rem; font-weight: 600;
}
.lang-link {
  color: var(--muted); text-decoration: none !important;
  padding: .15rem .25rem; border-bottom: 2px solid transparent;
  font-weight: 600;
}
.lang-link:hover { color: var(--purple); }
.lang-link.is-active {
  color: var(--purple);
  font-weight: 800;
  border-bottom-color: var(--purple);
  text-decoration: none !important;
}
.lang-sep { color: var(--border); font-weight: 400; user-select: none; }

/* Always-visible header picker (outside hamburger nav) */
.lang-switch--header {
  margin-left: .5rem;
}
.header-inner .lang-switch--header .lang-link { color: #3a3344; }
.header-inner .lang-switch--header .lang-link:hover,
.header-inner .lang-switch--header .lang-link.is-active {
  color: var(--purple);
}
.header-inner .lang-switch--header .lang-sep { color: var(--border); }

/* Footer: purple bg — keep BOTH options visible (active was invisible when purple-on-purple) */
.site-footer .lang-switch { margin-left: .5rem; margin-right: .25rem; }
.footer-center .lang-switch { display: inline-flex; vertical-align: middle; }
.footer-social .lang-switch { display: flex; width: 100%; margin: .5rem 0 0; }
.site-footer .lang-link {
  color: rgba(255, 255, 255, 0.72);
  border-bottom-color: transparent;
}
.site-footer .lang-link:hover {
  color: #fff;
}
.site-footer .lang-link.is-active {
  color: #fff;
  font-weight: 800;
  border-bottom-color: #fff;
}
.site-footer .lang-sep { color: rgba(255, 255, 255, 0.45); }

@media (max-width: 760px) {
  .lang-switch--header {
    margin-left: auto;
    margin-right: .35rem;
  }
  .nav-toggle { margin-left: 0; }
}

/* Album sections on /gallery */
.album-section { margin-bottom: 2.5rem; }
.album-head { margin-bottom: 1rem; align-items: baseline; }
.album-section .section-title { margin: 0; font-size: 1.35rem; color: #6A2C92; }
.album-section .gallery-grid { margin-top: .75rem; }


/* ========== Upgrade: dual CTA, next event, volunteer, donate polish ========== */
.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 8px 22px rgba(26, 18, 37, 0.2);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}
.btn-sm { padding: .45rem .9rem; font-size: .88rem; border-radius: 999px; }

.next-event-section {
  background: var(--purple-soft);
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.next-event-card {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.next-event-media {
  position: relative;
  flex: 0 0 min(220px, 100%);
  max-width: 260px;
  display: block;
  text-decoration: none !important;
}
.next-event-media img {
  width: 100%; height: 100%; min-height: 140px;
  object-fit: cover;
}
.next-event-media .date-badge {
  position: absolute; top: .65rem; left: .65rem;
}
.next-event-body {
  flex: 1 1 220px;
  padding: 1.1rem 1.25rem 1.2rem 0;
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
}
.next-event-card--tba .next-event-body { padding: 1.25rem 1.35rem; }
.next-event-kicker {
  margin: 0;
  color: var(--purple);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.next-event-body h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 800;
}
.next-event-body h3 a { color: inherit; text-decoration: none !important; }
.next-event-body h3 a:hover { color: var(--purple); }

.impact-strip { padding: 1.25rem 0; background: #fff; }
.impact-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .85rem 1rem;
  justify-content: center;
}
.impact-chip {
  background: var(--purple-soft-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .65rem 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  min-width: 7.5rem;
}
.impact-value { font-weight: 800; color: var(--purple); font-size: 1.35rem; line-height: 1.2; }
.impact-label { font-size: .78rem; color: var(--muted); font-weight: 600; }

.page-hero--volunteer {
  background-image: url("/img/hero-about.jpg");
  background-position: center 40%;
  min-height: 240px;
}
.why-list, .req-list, .funds-list {
  margin: .75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}
.why-list li, .req-list li, .funds-list li { margin: .4rem 0; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.role-card h3 { margin: 0 0 .45rem; color: var(--purple); font-size: 1.05rem; }
.role-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.volunteer-roles-section { background: var(--purple-soft); }
.volunteer-contact { margin-top: 1rem; }

.transparency-section { background: var(--purple-soft); }
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.transparency-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.transparency-card h3 {
  margin: 0 0 .55rem;
  color: var(--purple);
  font-size: 1.02rem;
}
.pdf-slot {
  margin: .5rem 0 0;
  padding: .85rem 1rem;
  border: 1.5px dashed var(--purple-mid);
  border-radius: var(--radius-sm);
  background: var(--purple-soft-2);
  color: var(--muted);
  font-size: .9rem;
}

.donate-funds-section { padding-bottom: 0; }
.funds-list--donate { font-size: 1.02rem; }
.copy-hint { margin: 0 0 1rem; font-size: .9rem; }
.copy-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem;
}
.btn-copy {
  background: var(--purple-soft-2);
  color: var(--purple);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
}
.btn-copy:hover { background: var(--purple); color: #fff; text-decoration: none; }
.btn-copy.is-copied { background: var(--purple); color: #fff; }
.donate-trust-section { padding-top: 0; }
.donate-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.donate-trust-card {
  background: var(--purple-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}
.donate-trust-card h2 {
  margin: 0 0 .45rem;
  color: var(--purple);
  font-size: 1.05rem;
}
.donate-trust-card p { margin: 0; color: var(--muted); font-size: .95rem; }

@media (max-width: 640px) {
  .next-event-media { max-width: 100%; flex-basis: 100%; }
  .next-event-media img { min-height: 160px; max-height: 200px; }
  .next-event-body { padding: 0 1.1rem 1.15rem; }
  .hero-cta-row .btn-cta { width: 100%; justify-content: center; }
}
