/* ============================================================
   PALPER — accountability.css
   Page-specific styles for accountability.html only.
   Shared components (.palper-deeper, .palper-evidence) live in main.css.
   ============================================================ */

/* The four-step chain: donation to household. */
.acc-chain {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}
.acc-chain__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--palper-blue);
  border-radius: var(--r-lg);
  padding: 20px 18px 18px;
}
.acc-chain__n {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--palper-blue);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.acc-chain__step h3 {
  margin: 0 0 8px;
  font-size: var(--fs-18);
  line-height: var(--lh-snug);
}
.acc-chain__step p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: var(--lh-relaxed);
  color: var(--fg2);
}

/* United States partner block. */
.acc-partner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0 8px;
}
.acc-partner__logo {
  width: 120px;
  height: auto;
  border-radius: var(--r-md);
}
.acc-partner p:first-child { margin-top: 0; }

/* Three credential facts. */
.acc-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.acc-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
}
.acc-fact__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-30);
  line-height: 1.15;
  color: var(--palper-blue);
}
.acc-fact__l {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--fg2);
}

/* Honest limits. */
.acc-limits {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.acc-limits li {
  position: relative;
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-16);
  line-height: var(--lh-relaxed);
  color: var(--fg2);
}
.acc-limits li:last-child { border-bottom: 0; }
.acc-limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--palper-terra);
}
.acc-limits strong { color: var(--ink); }

/* Document library headings. */
.acc-docs-h {
  margin: 28px 0 12px;
  font-size: var(--fs-18);
  color: var(--ink);
}
.acc-docs-h:first-of-type { margin-top: 20px; }
.acc-docs-note {
  margin-top: 24px;
  font-size: var(--fs-14);
  color: var(--fg3);
}

@media (max-width: 899px) {
  .acc-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-facts { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .acc-chain { grid-template-columns: 1fr; gap: 14px; }
  .acc-partner { grid-template-columns: 1fr; gap: 16px; }
  .acc-partner__logo { width: 84px; }
}


/* ---- Aesthetic refinement (27 Sep) ------------------------------------ */
/* Connect the four steps so they read as one sequence. */
.acc-chain { counter-reset: accstep; position: relative; }
.acc-chain__step { transition: box-shadow var(--t-base) var(--ease-out); }
.acc-chain__step:hover { box-shadow: var(--shadow-2); }
.acc-chain__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 50%;
  background: var(--palper-blue-soft);
  color: var(--palper-blue-deep);
  font-size: var(--fs-12);
  letter-spacing: 0;
}

/* Credential figures: quieter frame, stronger numerals. */
.acc-fact { border-top: 3px solid var(--palper-blue); text-align: left; padding: 20px 18px; }
.acc-fact__n { font-size: var(--fs-30); letter-spacing: -0.015em; }

/* Source table inside the disclosure: no chrome, just two columns. */
.palper-deeper-body .palper-evidence { min-width: 480px; font-size: var(--fs-14); }
.palper-deeper-body .palper-evidence thead th { border-bottom-width: 1px; }
.palper-deeper-body .palper-evidence td:first-child { font-weight: 600; color: var(--ink); width: 42%; }
.palper-deeper-body .palper-evidence-wrap { margin: 4px 0 0; }

/* Limits: keep the marker, soften the rhythm. */
.acc-limits li { padding-left: 26px; }
.acc-limits li::before { top: 26px; width: 10px; height: 2px; border-radius: 0; }

/* Photograph band and single figure on the accountability page. */
.acc-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: var(--sp-6) 0 0; }
.acc-band figure { position: relative; margin: 0; overflow: hidden; background: var(--paper-deep); }
.acc-band img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.acc-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; font-size: 12px; line-height: 1.45; color: #fff; background: linear-gradient(180deg, rgba(27,26,23,0) 0%, rgba(27,26,23,.84) 100%); }
.acc-figure { margin: 0 0 var(--sp-4); }
.acc-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; border-radius: var(--r-lg); }
.acc-figure figcaption { margin-top: 10px; font-size: var(--fs-14); color: var(--fg3); }
@media (max-width: 899px) { .acc-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acc-band figure:last-child { grid-column: 1 / -1; } .acc-band figure:last-child img { aspect-ratio: 2 / 1; } }
@media (max-width: 599px) { .acc-band { grid-template-columns: 1fr; } .acc-band figure:last-child img { aspect-ratio: 3 / 2; } }

/* ---- The joint team ------------------------------------------------------ */
.acc-team-inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-4); }
.acc-lockup { display: flex; align-items: center; gap: 18px; margin: 0 0 var(--sp-4); }
.acc-lockup img:first-child { width: 72px; height: auto; }
.acc-lockup img:last-child { width: 170px; height: auto; }
.acc-lockup__plus { font-family: var(--font-display); font-size: var(--fs-30); color: var(--ink-faint); line-height: 1; }
.acc-team-lede { max-width: 70ch; font-size: var(--fs-18); line-height: var(--lh-relaxed); color: var(--fg2); }
.acc-team-h { margin: var(--sp-6) 0 2px; font-size: var(--fs-20); }
.acc-team-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-14); color: var(--fg3); }
.acc-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.acc-person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.acc-person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid var(--surface); box-shadow: var(--shadow-1); }
.acc-person__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-16); line-height: 1.3; color: var(--ink); }
.acc-person__role { margin-top: 3px; font-size: var(--fs-13, 13px); line-height: 1.4; color: var(--fg3); }
.acc-team-more { margin-top: var(--sp-5); font-size: var(--fs-14); }
@media (max-width: 599px) {
  .acc-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .acc-person img { width: 92px; height: 92px; }
  .acc-lockup img:last-child { width: 140px; }
}
/* Even rows on desktop: PALPER's eight in one row, Clean Water Help's fourteen in two of seven. */
@media (min-width: 1000px) {
  .acc-people--palper { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px 14px; }
  .acc-people--cwh { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px 16px; }
  .acc-people--palper .acc-person img { width: 100px; height: 100px; }
}
