@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Noto+Sans+SC:wght@500;700&display=swap");

:root {
  --faf-red: #E11D2A;
  --faf-red-dark: #B8141F;
  --faf-red-tint: #FDE8E9;
  --faf-mascot-red: #EE1C25;
  --faf-green: #4D7A12;
  --faf-green-tint: #EEF5E1;
  --faf-blue: #1A63A8;
  --faf-ink: #1C1B1F;
  --faf-body: #3E3A36;
  --faf-muted: #5E5A55;
  --faf-line: #E3DED6;
  --faf-paper: #FBFAF7;
  --faf-sand: #F3F0EB;
  --faf-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --faf-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Page shell (replaces red/black gradient) ---------- */
html, body {
  background: var(--faf-paper) !important;
  background-image: none !important;
}
body {
  font-family: var(--faf-text);
  color: var(--faf-ink);
  font-size: 16px;
  line-height: 1.55;
  max-width: 880px;
  padding: 0 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--faf-blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0F4677; }

/* ---------- Header (see header.html) ---------- */
.faf-top {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #ECE8E1;
}
.faf-logo { height: 52px; width: auto; display: block; }

.faf-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.faf-steps li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--faf-muted);
}
.faf-steps li span {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #B9B3AA;
  display: inline-grid; place-items: center; font-size: 12px; line-height: 1;
}
.faf-steps li.is-active { background: var(--faf-ink); color: #fff !important; font-weight: 700; }
.faf-steps li.is-active span { background: var(--faf-red); border-color: var(--faf-red); color: #fff; }

.faf-hero {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
  padding: 48px 0 32px;
}
.faf-hero-copy { flex: 999 1 420px; min-width: 0; }
.faf-hero-art  { flex: 1 1 240px; min-width: 0; }

.faf-eyebrow {
  display: inline-block;
  font-size: 13px !important; font-weight: 700; letter-spacing: .12em;
  color: var(--faf-red) !important; background: var(--faf-red-tint);
  padding: 8px 14px; border-radius: 999px; margin: 0 0 20px;
}
.faf-title {
  font-family: var(--faf-display) !important;
  font-weight: 800; font-size: clamp(40px, 7vw, 64px);
  line-height: .98; letter-spacing: -.035em;
  color: var(--faf-ink); margin: 0 0 16px;
}
.faf-title em { font-style: normal; color: var(--faf-red); }
.faf-zh {
  font-family: "Noto Sans SC", sans-serif !important;
  font-weight: 500; font-size: 20px; letter-spacing: .04em;
  color: var(--faf-green) !important; margin: 0 0 18px;
}
.faf-zh small { font-family: var(--faf-text) !important; font-size: 18px; letter-spacing: 0; color: var(--faf-muted); }
.faf-lead { font-size: 18px; line-height: 1.6; color: var(--faf-body) !important; margin: 0 0 24px; max-width: 600px; }

.faf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.faf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 17px; text-decoration: none !important;
}
.faf-btn-primary { background: var(--faf-red); color: #fff !important; }
.faf-btn-primary:hover { background: var(--faf-red-dark); }
.faf-btn-ghost { background: #fff; color: var(--faf-ink) !important; border: 1.5px solid #D8D2C8; }
.faf-btn-ghost:hover { border-color: var(--faf-ink); }

.faf-mascot {
  background: var(--faf-mascot-red);
  border-radius: 32px; padding: 28px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; box-sizing: border-box;
}
.faf-mascot img { width: 210px; max-width: 100%; height: auto; display: block; }

.faf-callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid #ECE8E1; border-radius: 20px;
  padding: 18px 20px; margin-top: 14px;
}
.faf-callout strong { display: block; font-size: 16px; color: var(--faf-ink); }
.faf-callout p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--faf-muted) !important; }

.faf-points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 8px 0 48px;
}
.faf-point { background: #fff; border: 1px solid #ECE8E1; border-radius: 20px; padding: 22px; }
.faf-point h2 {
  font-family: var(--faf-display) !important; font-size: 21px; font-weight: 700;
  letter-spacing: -.01em; margin: 0 0 6px; color: var(--faf-ink);
}
.faf-point p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--faf-muted) !important; }
.faf-point-bar { display: block; width: 32px; height: 4px; border-radius: 4px; margin-bottom: 14px; }

.faf-give-intro { margin: 0 0 20px; }
.faf-give-intro .faf-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--faf-red); margin: 0 0 6px; }
.faf-give-intro h2 {
  font-family: var(--faf-display) !important; font-weight: 800;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0 0 8px; color: var(--faf-ink);
}
.faf-give-intro p { margin: 0; font-size: 17px; color: var(--faf-body) !important; max-width: 640px; }


/* DreamHost standalone page enhancements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0 auto; max-width: none; padding: 0 20px; }
.site-shell { max-width: 1080px; margin: 0 auto; }
.faf-hero-copy { flex: 999 1 450px; }
.faf-top { min-height: 100px; }
.faf-brand-image { display: flex; align-items: center; gap: 12px; }
.faf-brand-fallback { font-family: var(--faf-display); font-size: 20px; font-weight: 800; color: var(--faf-ink); }
.faf-brand-image:has(img:not([src=""])) .faf-brand-fallback { display: none; }
.faf-brand-image:has(img.is-missing) .faf-brand-fallback { display: block; }
.faf-brand-image img.is-missing { display: none; }
.faf-donate { background: white; border: 1px solid #ECE8E1; border-radius: 24px; padding: 34px 36px; margin: 10px 0 50px; box-shadow: 0 1px 2px rgba(28,27,31,.04),0 8px 24px rgba(28,27,31,.05); scroll-margin-top: 24px; }
.faf-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--faf-red); margin: 0 0 6px; }
.faf-donate h2 { font: 800 clamp(32px, 5vw, 46px)/1.05 var(--faf-display); letter-spacing: -.03em; margin: 0 0 12px; }
.faf-donate p { max-width: 660px; color: var(--faf-body); font-size: 17px; }
.faf-donate-detail { font-size: 15px !important; color: var(--faf-muted) !important; margin: 16px 0 20px; }
.faf-donate-note { font-size: 13px !important; color: var(--faf-muted) !important; margin: 14px 0 0; }
.donate-link[aria-disabled="true"] { cursor: not-allowed; background: #6f6b68 !important; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #ECE8E1; padding: 24px 0 42px; font-size: 14px; color: var(--faf-muted); }
@media(max-width:600px) { .faf-hero { padding-top: 28px; gap: 24px; } .faf-mascot { min-height: 220px; } .faf-mascot img { width: 170px; } .faf-donate { padding: 24px 20px; } .faf-btn { width: 100%; } }

/* Employer matching section */
.faf-matching { background: var(--faf-green-tint); border: 1px solid #D6E6BF; border-radius: 24px; padding: 34px 36px; margin: 0 0 24px; scroll-margin-top: 24px; }
.faf-matching h2 { font: 800 clamp(30px, 5vw, 42px)/1.1 var(--faf-display); letter-spacing: -.03em; margin: 0 0 12px; }
.faf-matching-copy > p { max-width: 780px; }
.faf-matching-tool { background: white; border: 1px solid #D7E5C7; border-radius: 18px; padding: 24px; margin: 22px 0 18px; }
.faf-matching-tool > p:first-child { margin-top: 0; font-size: 18px; }
.faf-matching-tool .faf-btn { text-align: center; }
.faf-small-print { color: var(--faf-muted); font-size: 13px; line-height: 1.55; }
.faf-match-note { color: var(--faf-body); font-size: 15px; }
@media(max-width:600px) { .faf-matching { padding: 24px 20px; } .faf-matching-tool { padding: 20px; } }


/* Annual Fund FAQ page — uses homepage design tokens */
.faq-back-link { font-weight:700; text-decoration:none; }
.faq-back-link:hover { text-decoration:underline; }
.faq-main { padding-bottom:38px; }
.faq-hero { padding:52px 0 34px; }
.faq-hero .faf-title { font-size:clamp(38px,6vw,60px);line-height:1.07;max-width:850px; }
.faq-subtitle { font:700 20px/1.4 var(--faf-text); color:var(--faf-green); margin:0 0 10px; }
.faq-intro { color:var(--faf-body);font-size:18px;max-width:700px;margin:0 0 24px; }
.faq-jump { padding:22px 24px; background:var(--faf-green-tint);border:1px solid #D6E6BF; border-radius:20px;margin:0 0 24px; }
.faq-jump strong { display:block;margin-bottom:12px; }
.faq-jump-links { display:flex;flex-wrap:wrap;gap:8px; }
.faq-jump-links a { border-radius:999px;background:#fff;border:1px solid #D6E6BF;padding:6px 12px;text-decoration:none;font-size:14px;font-weight:700; }
.faq-jump-links a:hover { border-color:var(--faf-green); }
.faq-card { background:#fff;border:1px solid #ECE8E1;border-radius:22px;padding:28px 32px;margin-bottom:16px;scroll-margin-top:20px;box-shadow:0 1px 2px rgba(28,27,31,.04); }
.faq-card h2 { font:800 clamp(21px,3vw,26px)/1.2 var(--faf-display); letter-spacing:-.015em; margin:0 0 17px;color:var(--faf-ink);display:flex;align-items:flex-start;gap:10px; }
.faq-icon { flex:none; }
.faq-card p { margin:0 0 14px;color:var(--faf-body);line-height:1.7; }
.faq-card > :last-child { margin-bottom:0; }
.faq-card .faq-note { border-left:4px solid var(--faf-green);background:var(--faf-green-tint);padding:14px 16px;border-radius:0 12px 12px 0; }
.faq-list { padding-left:24px;margin:0 0 16px;color:var(--faf-body); }
.faq-list li { padding-left:4px;margin:0 0 8px;line-height:1.6; }
.faq-table-scroll { overflow-x:auto;max-width:100%;margin:18px 0 4px;border:1px solid var(--faf-line);border-radius:14px; }
.faq-table { width:100%;border-collapse:collapse;font-size:14px;line-height:1.5; }
.faq-table th,.faq-table td { padding:13px 15px;border-bottom:1px solid var(--faf-line);text-align:left;vertical-align:top; }
.faq-table thead th { background:var(--faf-sand);font-weight:700;color:var(--faf-ink); }
.faq-table tbody th { font-weight:700;min-width:125px; }
.faq-table tbody tr:last-child > * { border-bottom:0; }
.faq-table tbody tr:nth-child(even) { background:#FBFAF7; }
.faq-table-scroll:focus-visible { outline:3px solid var(--faf-blue);outline-offset:3px; }
.faq-thanks { border-color:#D6E6BF;background:var(--faf-green-tint); }
.faq-bottom-cta { display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;background:var(--faf-ink);color:#fff;border-radius:24px;padding:30px 34px;margin:30px 0 0; }
.faq-bottom-cta h2 { font:800 clamp(24px,4vw,34px)/1.15 var(--faf-display);margin:0 0 8px; }
.faq-bottom-cta p { margin:0;color:#EAE6E0; }
.faq-bottom-cta .faf-kicker { color:#FF98A0;margin-bottom:8px; }
.faq-bottom-cta .faf-btn { flex-shrink:0; }
@media(max-width:600px) { .faq-hero { padding:32px 0 26px; } .faq-card { padding:22px 19px; } .faq-jump { padding:20px 18px; } .faq-bottom-cta { padding:26px 22px; } .faq-back-link { font-size:13px; } .faq-table { font-size:13px; } .faq-table th,.faq-table td { padding:11px 10px; } }

/* Campaign progress: compact, aligned with the mascot, no decorative flourishes */
.faf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr) minmax(0, .98fr);
  gap: 22px;
  align-items: start;
}
.faf-hero-copy, .faf-hero-art { min-width: 0; }
.faf-hero .faf-title { font-size: clamp(38px, 4.3vw, 58px); }
.faf-hero .faf-lead { font-size: 16px; }
/* Existing mascot starts below the eyebrow; match its top rather than hero text top. */
.faf-hero-art { margin-top: 70px; }
.faf-hero-art .faf-mascot { padding: 22px; min-height: 260px; }
.faf-hero-art .faf-mascot img { width: 100%; max-width: 210px; }
.faf-hero-art .faf-callout { padding: 16px; }
.faf-progress {
  background: #fff;
  border: 1px solid #ECE8E1;
  border-radius: 20px;
  padding: 22px 18px 20px;
  min-width: 0;
  align-self: start;
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faf-progress h2 {
  font: 800 23px/1.2 var(--faf-display);
  margin: 0;
  color: var(--faf-ink);
}
.faf-progress-body {
  display: flex;
  gap: 17px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.faf-thermometer { position: relative; width: 48px; height: 245px; flex: none; margin: 0; }
.faf-thermometer-tube {
  position: absolute;
  top: 0;
  bottom: 24px;
  left: 9px;
  right: 9px;
  border: 3px solid #D8D2C8;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: #F8F6F2;
}
.faf-thermometer-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 21.56%;
  background: var(--faf-red);
  border-radius: 5px 5px 0 0;
  transition: height .5s ease;
}
/* Ten evenly spaced marks, with longer quarter-scale markers. */
.faf-thermometer-ticks {
  position: absolute;
  z-index: 1;
  inset: 12px 0 0;
  background: repeating-linear-gradient(to bottom, #B5ADA4 0 2px, transparent 2px 10%);
  width: 9px;
  opacity: .8;
  pointer-events: none;
}
.faf-thermometer-ticks::after {
  content: "";
  position: absolute;
  left: 0;
  right: -7px;
  top: 0;
  bottom: 0;
  height: auto;
  background: linear-gradient(to bottom,
    transparent calc(25% - 1px), #AAA198 calc(25% - 1px) calc(25% + 1px),
    transparent calc(25% + 1px) calc(50% - 1px), #AAA198 calc(50% - 1px) calc(50% + 1px),
    transparent calc(50% + 1px) calc(75% - 1px), #AAA198 calc(75% - 1px) calc(75% + 1px),
    transparent calc(75% + 1px));
}
.faf-thermometer-bulb {
  position: absolute;
  width: 48px;
  height: 48px;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  background: var(--faf-red);
  border: 4px solid #D8D2C8;
  box-shadow: inset 0 0 0 3px #fff;
}
.faf-progress-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.faf-amount-raised {
  font: 800 clamp(27px, 2.9vw, 36px)/1.05 var(--faf-display);
  color: var(--faf-red);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.faf-progress-caption { color: var(--faf-muted); font-size: 16px; }
.faf-progress-divider { width: 100%; height: 1px; background: var(--faf-line); margin: 8px 0; }
.faf-progress-goal, .faf-participation { font-size: 16px; line-height: 1.4; color: var(--faf-body); }
.faf-progress-percent {
  font-weight: 700;
  color: var(--faf-red);
  background: var(--faf-red-tint);
  border-radius: 999px;
  padding: 8px 15px;
  margin: 6px 0 2px;
  font-size: 18px;
  white-space: nowrap;
}
.faf-progress-message {
  border-top: 1px solid var(--faf-line);
  padding-top: 14px;
  margin: 0;
  color: var(--faf-green);
  text-align: center;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}
@media (max-width: 1000px) {
  .faf-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faf-hero-copy { grid-column: 1 / -1; }
  .faf-hero-art, .faf-progress { margin-top: 0; }
  .faf-hero .faf-title { font-size: clamp(40px, 6vw, 60px); }
}
@media (max-width: 600px) {
  .faf-hero { display: flex; flex-direction: column; align-items: stretch; }
  .faf-progress { padding: 22px; }
  .faf-progress-body { justify-content: flex-start; }
  .faf-thermometer { height: 205px; }
  .faf-amount-raised { font-size: 34px; }
}

/* Responsive hero cards: make the campaign thermometer full width on phones.
   Keep the two-card tablet layout above this breakpoint. */
@media (max-width: 767px) {
  .faf-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .faf-hero-copy,
  .faf-hero-art,
  .faf-progress {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
  }

  .faf-progress {
    align-self: stretch;
    margin-top: 0;
  }

  .faf-progress-body {
    width: 100%;
    min-width: 0;
  }

  .faf-progress-info {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .faf-amount-raised { font-size: clamp(26px, 8vw, 34px); }
  .faf-progress-body { gap: 12px; }
}

/* Fundraising panel toggle: remove the third hero column when disabled. */
.faf-progress[hidden] { display: none !important; }
@media (min-width: 1001px) {
  .faf-hero.faf-hero--no-progress {
    grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  }
}


/* Hero buttons: a single row at desktop widths, no overlap or truncated labels */
.faf-hero-copy .faf-actions { display:flex; flex-wrap:nowrap; gap:10px; align-items:stretch; }
.faf-hero-copy .faf-actions .faf-btn { padding-inline:16px; font-size:15px; white-space:nowrap; }
@media (max-width:767px) {
  .faf-hero-copy .faf-actions { flex-wrap:wrap; }
  .faf-hero-copy .faf-actions .faf-btn { flex:1 1 200px; width:auto; }
}
@media (max-width:420px) {
  .faf-hero-copy .faf-actions { flex-direction:column; }
  .faf-hero-copy .faf-actions .faf-btn { width:100%; flex:auto; }
}

/* Five matching cards: one row, no horizontal scrolling. */
.faf-daily-matching { margin: 0 0 32px; }
.faf-daily-matching[hidden] { display: none !important; }
.faf-daily-matching-heading { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.faf-daily-matching-heading h2 { font: 800 clamp(26px,3.8vw,36px)/1.12 var(--faf-display); letter-spacing: -.025em; margin: 0; }
.faf-daily-matching-heading > p { color: var(--faf-muted); margin: 0; font-size: 15px; }
/* Four 1fr cards and one 2fr active card fill six equal tracks. */
.faf-match-days {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.faf-match-day {
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #ECE8E1;
  border-radius: 14px;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}
.faf-match-day.is-active {
  grid-column: span 2;
  aspect-ratio: auto;
  min-height: 136px;
  align-items: stretch;
  text-align: left;
  padding: 15px 16px;
  border: 2px solid var(--faf-red);
  gap: 7px;
}
.faf-match-day-label { font: 800 clamp(10px,1.3vw,16px)/1.2 var(--faf-display); overflow-wrap: anywhere; }
.faf-match-day.is-active .faf-match-day-label { font-size: clamp(14px,1.9vw,19px); }
.faf-match-day-status { font-size: clamp(10px,1.1vw,13px); line-height: 1.2; color: var(--faf-muted); overflow-wrap: anywhere; }
/* Completed-day status looks like a small sticker. */
.faf-match-day.is-complete .faf-match-day-status {
  display: inline-block;
  align-self: center;
  color: #2F4A0E;
  background: #E8F4D9;
  border: 1px solid #A7CA85;
  border-radius: 5px;
  padding: 4px 6px;
  font-weight: 800;
  line-height: 1.1;
  transform: rotate(-5deg);
  box-shadow: 1px 2px 0 rgba(47,74,14,.15);
}
.faf-match-day.is-active.is-complete .faf-match-day-status { align-self: flex-start; font-size: 14px; }
.faf-match-day-amount { font: 800 clamp(19px,2.5vw,30px)/1.08 var(--faf-display); color: var(--faf-red); letter-spacing: -.02em; }
.faf-match-day-goal { color: var(--faf-body); font-size: clamp(11px,1.25vw,14px); line-height: 1.3; }
.faf-match-progress { width: 100%; height: 9px; border-radius: 999px; overflow: hidden; background: var(--faf-sand); }
.faf-match-progress-fill { height: 100%; background: var(--faf-red); border-radius: inherit; transition: width .25s ease; }
.faf-match-day.is-complete .faf-match-progress-fill { background: var(--faf-green); }
.faf-match-progress-text { font-size: 12px; color: var(--faf-muted); }
@media (max-width: 600px) {
  .faf-daily-matching-heading { flex-direction: column; align-items: start; gap: 5px; }
  .faf-match-days { gap: 4px; }
  .faf-match-day { border-radius: 9px; padding: 5px 2px; gap: 3px; }
  .faf-match-day.is-active { min-height: 112px; padding: 9px 8px; gap: 5px; border-radius: 11px; }
  .faf-match-day-label { font-size: clamp(9px,2.5vw,12px); }
  .faf-match-day.is-active .faf-match-day-label { font-size: clamp(13px,3.3vw,17px); }
  .faf-match-day-status { font-size: clamp(8px,2.1vw,11px); }
  .faf-match-day.is-complete .faf-match-day-status { padding: 3px 2px; font-size: clamp(8px,1.9vw,10px); }
  .faf-match-day.is-active.is-complete .faf-match-day-status { font-size: 11px; }
  .faf-match-day-amount { font-size: clamp(17px,4.2vw,24px); }
  .faf-match-day-goal { font-size: clamp(10px,2.5vw,12px); }
  .faf-match-progress { height: 7px; }
  .faf-match-progress-text { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .faf-match-progress-fill { transition: none; } }

/* Impact section eyebrow */
.faf-impact-heading { margin: 18px 0 12px; }
.faf-impact-heading .faf-kicker { margin: 0; }

/* Larger Goal Met sticker in the active day's upper-right quadrant. */
.faf-match-day.is-active { position: relative; }
.faf-match-day.is-active.is-complete .faf-match-day-label {
  padding-right: 43%;
}
.faf-match-day.is-active.is-complete .faf-match-day-status {
  position: absolute;
  top: 12px;
  right: 9px;
  max-width: 51%;
  align-self: auto;
  margin: 0;
  padding: 7px 9px;
  font-size: clamp(12px, 1.65vw, 18px);
  line-height: 1.08;
  text-align: center;
  border: 2px solid #86B464;
  border-radius: 8px;
  transform: rotate(5deg);
  box-shadow: 2px 3px 0 rgba(47,74,14,.18);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 600px) {
  .faf-match-day.is-active.is-complete .faf-match-day-status {
    top: 7px;
    right: 5px;
    padding: 5px 4px;
    font-size: clamp(10px, 2.6vw, 14px);
    border-width: 1.5px;
  }
}

/* Matching challenge: all five cards share the height of their grid row.
   The expanded card determines the row height; collapsed cards stretch to match. */
.faf-match-days {
  align-items: stretch;
}
.faf-match-day {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  padding: 6px 4px;
  gap: 4px;
}
.faf-match-day.is-active {
  height: 100%;
  min-height: 0;
  padding: 10px 12px;
  gap: 5px;
}
@media (max-width: 600px) {
  .faf-match-day { padding: 4px 2px; gap: 2px; }
  .faf-match-day.is-active { min-height: 0; padding: 7px 6px; gap: 4px; }
}

/* Daily match day states: past completed days and upcoming days. */
.faf-match-day.is-past.is-complete {
  background: #EEF5E1;
  border: 2px solid #81AD53;
}
.faf-match-day.is-upcoming {
  background: #F6F5F2;
  border-color: #E6E2DA;
  opacity: .66;
}
/* Only finished days receive the green card treatment; the active card
   retains its prominent red outline and larger Goal Met sticker. */

/* Past completed matching days: display the goal just above the sticker. */
.faf-match-day.is-past.is-complete .faf-match-past-goal {
  color: #2F4A0E;
  font-size: clamp(10px, 1.15vw, 13px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .faf-match-day.is-past.is-complete .faf-match-past-goal {
    font-size: clamp(8px, 2vw, 11px);
  }
}


/* Raised / goal for past days, including goals not yet met. */
.faf-match-past-amounts {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  color: var(--faf-body);
  font-size: clamp(9px, 1.05vw, 13px);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.faf-match-past-raised { font-weight: 800; color: var(--faf-ink); }
.faf-match-day.is-past.is-complete .faf-match-past-raised { color: #2F4A0E; }
.faf-match-past-target { color: var(--faf-muted); font-size: .88em; }
.faf-match-day.is-past.is-complete .faf-match-past-target { color: #567445; }

/* Keep five cards in a single six-track row without a horizontal scrollbar. */
@media (max-width: 767px) {
  .faf-match-days { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .faf-match-day { min-width: 0; padding: 5px 2px; }
  .faf-match-day.is-active { grid-column: span 2; padding: 8px 6px; }
  .faf-match-past-amounts { flex-direction: column; align-items: center; gap: 0; font-size: clamp(9px, 2.25vw, 12px); line-height: 1.18; }
  .faf-match-past-target { font-size: .9em; }
  .faf-match-day.is-past .faf-match-day-status { max-width: 100%; }
}
@media (max-width: 420px) {
  .faf-match-days { gap: 3px; }
  .faf-match-day { padding: 5px 1px; }
  .faf-match-day.is-active { padding: 7px 4px; }
  .faf-match-day.is-active .faf-match-day-amount { font-size: clamp(15px, 4.4vw, 19px); }
  .faf-match-day.is-active .faf-match-day-goal { font-size: 10px; }
  .faf-match-day.is-complete .faf-match-day-status { font-size: clamp(8px, 2vw, 10px); padding: 3px 2px; }
  .faf-match-day.is-active.is-complete .faf-match-day-status { font-size: 10px; }
}


/* Daily matching update: clickable active panel, completion override, start sticker. */
.faf-match-day.is-clickable {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faf-match-day.is-clickable:hover {
  color: inherit;
  box-shadow: 0 3px 14px rgba(28,27,31,.12);
}
.faf-match-day.is-clickable:focus-visible {
  outline: 3px solid var(--faf-blue);
  outline-offset: 3px;
}
.faf-match-active-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 5px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.faf-match-active-amounts .faf-match-day-amount {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.faf-match-active-amounts .faf-match-day-goal {
  white-space: nowrap;
  overflow-wrap: normal;
}
.faf-match-day.is-starting { position: relative; }
.faf-match-day.is-active.is-starting .faf-match-day-label { padding-right: 49%; }
.faf-match-day.is-active.is-starting .faf-match-day-status {
  position: absolute;
  top: 9px;
  right: 6px;
  z-index: 1;
  max-width: 52%;
  padding: 6px 7px;
  border: 2px solid #86B464;
  border-radius: 7px;
  background: #E8F4D9;
  color: #2F4A0E;
  font-size: clamp(11px, 1.5vw, 16px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transform: rotate(5deg);
  box-shadow: 2px 3px 0 rgba(47,74,14,.18);
  pointer-events: none;
}
.faf-match-action {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--faf-red-dark);
}
@media (max-width: 767px) {
  .faf-match-active-amounts { flex-direction: column; gap: 0; align-items: flex-start; }
  .faf-match-active-amounts .faf-match-day-amount { font-size: clamp(14px, 3.9vw, 22px); }
  .faf-match-active-amounts .faf-match-day-goal { font-size: clamp(9px, 2.3vw, 12px); }
  .faf-match-day.is-active.is-starting .faf-match-day-status {
    top: 6px; right: 4px; padding: 3px 4px;
    font-size: clamp(9px, 2.3vw, 12px); border-width: 1px;
  }
  .faf-match-action { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .faf-match-day.is-clickable { transition: none; }
}


/* Active matching day: consistent three-state top-right stickers. */
.faf-match-day.is-active {
  position: relative;
}
.faf-match-day.is-active .faf-match-day-label {
  padding-right: 49%;
}
.faf-match-day.is-active .faf-match-sticker {
  position: absolute;
  top: 9px;
  right: 7px;
  z-index: 1;
  display: inline-block;
  align-self: auto;
  max-width: 52%;
  margin: 0;
  padding: 6px 7px;
  border: 2px solid;
  border-radius: 8px;
  font-weight: 800;
  font-size: clamp(11px, 1.45vw, 16px);
  line-height: 1.1;
  text-align: center;
  transform: rotate(5deg);
  pointer-events: none;
  box-shadow: 2px 3px 0 rgba(0,0,0,.12);
}
/* Success green / starting gold / fundraising blue. */
.faf-match-day.is-active .faf-match-sticker.is-success {
  color: #2F4A0E;
  background: #DFF2CE;
  border-color: #4D7A12;
  box-shadow: 2px 3px 0 rgba(47,74,14,.18);
}
.faf-match-day.is-active .faf-match-sticker.is-kickoff {
  color: #795000;
  background: #FFE39A;
  border-color: #DA9E25;
  box-shadow: 2px 3px 0 rgba(121,80,0,.16);
}
.faf-match-day.is-active .faf-match-sticker.is-funding {
  color: #164F86;
  background: #E6F1FC;
  border-color: #1A63A8;
  box-shadow: 2px 3px 0 rgba(26,99,168,.16);
}
.faf-sticker-short { display: none; }
/* Zero starts at zero. The short red starter dot is decorative, not a false fill. */
.faf-match-progress.is-empty {
  position: relative;
  background: #FFF5F3;
  outline: 1px solid #E9A19C;
  outline-offset: -1px;
}
.faf-match-progress.is-empty::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faf-red);
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  .faf-match-day.is-active .faf-match-sticker {
    top: 6px;
    right: 4px;
    max-width: 54%;
    padding: 4px 5px;
    font-size: clamp(9px, 2.25vw, 12px);
    border-width: 1.5px;
  }
  .faf-sticker-full { display: none; }
  .faf-sticker-short { display: inline; }
}
@media (max-width: 420px) {
  .faf-match-day.is-active .faf-match-sticker {
    padding: 3px 4px;
    font-size: clamp(9px, 2.4vw, 11px);
  }
}

/* Message directly beneath the active day's progress bar. */
.faf-match-day.is-active .faf-match-progress-message {
  color: var(--faf-muted);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.faf-match-day.is-active.is-starting .faf-match-progress-message { color: var(--faf-ink); }
.faf-match-day.is-active.is-complete .faf-match-progress-message { color: var(--faf-ink); }
@media (max-width: 767px) {
  .faf-match-day.is-active .faf-match-progress-message {
    font-size: clamp(9px, 2.2vw, 11px);
    line-height: 1.2;
  }
}

/* Compact encouragement text on phones; preserve full desktop messages. */
.faf-match-message-mobile { display: none; }
@media (max-width: 767px) {
  .faf-match-message-desktop { display: none; }
  .faf-match-message-mobile { display: inline; }
}

/* Uniform neutral encouragement copy for all progress states. */
.faf-match-day.is-active .faf-match-progress-message { color: var(--faf-ink); }
