/* Shared page system for public content pages (About, FAQ, Recruitment, Donate, Privacy, Terms, Blog).
   Pair with site-chrome.css for the header/footer. Visual language matches the homepage cards. */

:root {
  --sp-ink: #0f172a;
  --sp-body: #475569;
  --sp-muted: #64748b;
  --sp-line: #e2e8f0;
  --sp-teal: #0f766e;
  --sp-teal-dark: #115e59;
  --sp-teal-soft: #ecfdf5;
  --sp-gold: #fde68a;
  --sp-radius: 20px;
  --sp-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --sp-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sp-display: "Fraunces", Georgia, serif;
}

body.sp {
  margin: 0;
  font-family: var(--sp-sans);
  color: var(--sp-ink);
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, #e8f2f5 0, #f1f7f8 600px, #f8fafc 1400px);
  background-color: #f8fafc;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

body.sp *,
body.sp *::before,
body.sp *::after {
  box-sizing: border-box;
}

.sp a { color: var(--sp-teal); }

.sp-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4.5rem;
}

.sp-main.is-wide { max-width: 1080px; }

/* Hero card */
.sp-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  padding: 2.4rem 2.2rem 2.2rem;
  background:
    radial-gradient(320px 220px at 92% 8%, rgba(250, 204, 21, 0.35), transparent 70%),
    linear-gradient(135deg, #1e5b94 0%, #0b6e8a 48%, #0f7a6c 100%);
  box-shadow: 0 24px 50px rgba(7, 19, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sp-hero.is-center { text-align: center; }
.sp-hero.is-center .sp-lede { margin-left: auto; margin-right: auto; }
.sp-hero.is-center .sp-hero-actions { justify-content: center; }

.sp-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.sp-hero h1 {
  font-family: var(--sp-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: #fff;
}

.sp-hero h1 em,
.sp-accent {
  font-style: italic;
  color: var(--sp-gold);
}

.sp-lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.sp-hero-meta {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Buttons */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  background: var(--sp-teal);
  color: #fff !important;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-btn:hover { background: var(--sp-teal-dark); transform: translateY(-1px); }
.sp-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.sp-btn.is-light { background: #fff; color: var(--sp-teal) !important; box-shadow: 0 8px 20px rgba(7, 19, 31, 0.18); }
.sp-btn.is-light:hover { background: #f8fafc; }

.sp-btn.is-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.sp-btn.is-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.sp-btn.is-outline {
  background: #fff;
  color: var(--sp-teal) !important;
  border: 1px solid var(--sp-line);
}

.sp-btn.is-outline:hover { border-color: var(--sp-teal); background: #fff; }
.sp-btn.is-danger { background: #b91c1c; }
.sp-btn.is-danger:hover { background: #991b1b; }
.sp-btn.is-block { width: 100%; }

/* Sections */
.sp-section { margin-top: 2.75rem; }

.sp-section-head { margin: 0 0 1.1rem; }

.sp-section-head h2,
.sp-h2 {
  font-family: var(--sp-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: var(--sp-ink);
}

.sp-section-head p {
  margin: 0;
  color: var(--sp-muted);
  max-width: 40rem;
}

.sp-eyebrow {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-teal);
}

/* Cards */
.sp-card {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--sp-shadow);
}

.sp-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.sp-card p {
  margin: 0 0 0.6rem;
  color: var(--sp-body);
  font-size: 0.95rem;
}

.sp-card p:last-child { margin-bottom: 0; }

.sp-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--sp-body);
  font-size: 0.95rem;
}

.sp-card li { margin: 0 0 0.3rem; }

.sp-card.is-tint {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-color: #ccfbf1;
}

.sp-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.sp-icon svg { width: 1.2rem; height: 1.2rem; }

.sp-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sp-grid.is-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sp-grid.is-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Stats */
.sp-stat {
  text-align: center;
}

.sp-stat strong {
  display: block;
  font-family: var(--sp-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sp-teal);
  margin-bottom: 0.45rem;
}

/* Person cards */
.sp-person h3 { font-family: var(--sp-display); font-size: 1.2rem; }

.sp-role {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem !important;
  font-weight: 700;
  color: var(--sp-teal) !important;
  background: var(--sp-teal-soft);
}

.sp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.sp-links a { text-decoration: none; }
.sp-links a:hover { text-decoration: underline; }

/* Price / tier list */
.sp-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-tiers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--sp-line);
}

.sp-tiers li:first-child { border-top: 0; padding-top: 0.2rem; }
.sp-tiers strong { display: block; font-size: 1rem; }
.sp-tiers span { color: var(--sp-muted); font-size: 0.88rem; }

.sp-tiers b {
  font-family: var(--sp-display);
  font-size: 1.6rem;
  color: var(--sp-teal);
}

/* Check list */
.sp-checks {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}

.sp-checks li {
  position: relative;
  padding-left: 1.7rem;
  margin: 0 0 0.85rem;
}

.sp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--sp-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}

.sp-checks strong { display: block; color: var(--sp-ink); }

/* Forms */
.sp-form { display: grid; gap: 0.9rem; }
.sp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.sp-field { display: grid; gap: 0.35rem; }

.sp-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.sp-field input,
.sp-field select,
.sp-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--sp-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-field textarea { resize: vertical; min-height: 6rem; }

.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
  outline: none;
  border-color: var(--sp-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.sp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sp-status { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
.sp-status.is-ok { color: #047857; }
.sp-status.is-err { color: #b91c1c; }
.sp-note { margin: 0; font-size: 0.8rem; color: var(--sp-muted); }

/* Chips (amount picker) */
.sp-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.sp-chip {
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--sp-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sp-chip:hover { border-color: var(--sp-teal); }
.sp-chip.active { background: var(--sp-teal); border-color: var(--sp-teal); color: #fff; }

/* Accordion */
.sp-qa {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  margin: 0 0 0.6rem;
}

.sp-qa[open] { box-shadow: var(--sp-shadow); }

.sp-qa summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1rem 3rem 1rem 1.15rem;
  font-weight: 700;
}

.sp-qa summary::-webkit-details-marker { display: none; }

.sp-qa summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.sp-qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.sp-qa > div {
  padding: 0 1.15rem 1.1rem;
  color: var(--sp-body);
}

.sp-qa > div p { margin: 0; }

/* Long-form legal / prose */
.sp-doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.75rem;
}

.sp-toc {
  position: sticky;
  top: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  font-size: 0.86rem;
}

.sp-toc strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.sp-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sp-muted);
}

.sp-toc li { margin: 0 0 0.35rem; }
.sp-toc a { color: var(--sp-body); text-decoration: none; }
.sp-toc a:hover { color: var(--sp-teal); }

.sp-prose {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--sp-shadow);
  color: var(--sp-body);
  font-size: 0.98rem;
  line-height: 1.75;
}

.sp-prose h2 {
  scroll-margin-top: 1rem;
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.sp-prose h2:first-child { margin-top: 0; }

.sp-prose h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.sp-prose p { margin: 0 0 0.9rem; }
.sp-prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.sp-prose li { margin: 0 0 0.35rem; }
.sp-prose strong { color: var(--sp-ink); }

.sp-callout {
  margin: 1rem 0 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.sp-callout h3 { margin-top: 0 !important; }

/* Modal */
.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

.sp-modal.is-open { display: flex; }

.sp-modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: var(--sp-radius);
  padding: 1.6rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}

.sp-modal-box h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.sp-modal-box > p { margin: 0 0 1rem; color: var(--sp-body); font-size: 0.95rem; }

.sp-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sp-muted);
  cursor: pointer;
}

.sp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.toast.error { background: #fef2f2; color: #b91c1c; }
.toast.success { background: #ecfdf5; color: #047857; }

/* CTA band */
.sp-cta {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--sp-radius);
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border: 1px solid #ccfbf1;
}

.sp-cta p { margin: 0; color: var(--sp-body); }
.sp-cta strong { display: block; color: var(--sp-ink); font-size: 1.05rem; }

@media (max-width: 760px) {
  .sp-doc { grid-template-columns: 1fr; }
  .sp-toc { position: static; }
}

@media (max-width: 640px) {
  .sp-main { padding-top: 1.25rem; }
  .sp-hero { padding: 1.75rem 1.35rem 1.6rem; border-radius: 20px; }
  .sp-prose { padding: 1.4rem 1.2rem; }
  .sp-form-row { grid-template-columns: 1fr; }
  .sp-grid.is-stats { gap: 0.5rem; }
  .sp-grid.is-stats .sp-card { padding: 1rem 0.6rem; }
  .sp-stat strong { font-size: 1.5rem; }
  .sp-stat p { font-size: 0.78rem; line-height: 1.35; }
}
