/* The First 39: Contribute (/contribute). Six ways to help, what we hold to (VALUES.md),
   how it works, and the offer form, which posts to /api/contribute (server/forms.py) and arrives
   with the team like a contact message (topic "Contributor offer"; ./deploy/forms.sh contributors). */

.ct-hero-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.ct-roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.ct-role { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--c, var(--gold)); border-radius: var(--radius); padding: var(--s-5) var(--s-5) var(--s-4); }
.ct-role h3 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin: 0 0 var(--s-2); }
.ct-who { margin: 0 0 var(--s-3); font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.ct-role > p:not(.ct-who, .ct-links) { margin: 0 0 var(--s-3); font-size: .97rem; flex: 1; }
.ct-links { margin: 0; padding-top: var(--s-3); border-top: 1px dashed var(--line); font-size: var(--fs-small); }
.ct-links a { display: inline-block; padding-block: .35rem; text-underline-offset: 3px; }
.ct-links a:hover { color: var(--accent); }

.ct-values { margin: 0 0 var(--s-6); padding: 0; list-style: none; counter-reset: v; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-7); max-width: 72rem; }
.ct-values li { counter-increment: v; position: relative; padding-left: 3rem; color: var(--muted-on-dark); }
.ct-values li::before { content: counter(v); position: absolute; left: 0; top: -.1rem; font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.ct-values b { display: block; color: var(--scroll); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: var(--s-1); }
.ct-more { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: 0; }
.ct-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--scroll); font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; text-underline-offset: 4px; }
.ct-more a::after { content: " ▸"; white-space: pre; color: var(--gold); }
.ct-more a:hover { color: var(--gold); }

.ct-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.ct-steps li { counter-increment: step; display: grid; gap: var(--s-2); align-content: start; border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.ct-steps li::before { content: "0" counter(step); font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--accent); }
.ct-steps b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.ct-steps span { color: var(--stone); }

/* The form */
.ct-faq-h { font-size: var(--fs-h4); margin: var(--s-6) 0 var(--s-2); }
.ct-faq { border-top: 1px solid var(--line); }
.ct-faq:last-of-type { border-bottom: 1px solid var(--line); }
.ct-faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-2); font-family: var(--font-display); font-weight: 700; list-style: none; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::before { content: "+"; flex: none; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: .95rem; line-height: 1; }
.ct-faq[open] summary::before { content: "–"; }
.ct-faq summary:hover { color: var(--accent); }
.ct-faq p { margin: 0 0 var(--s-4) 2.15rem; color: var(--stone); }

.ct-ways { border: 0; margin: 0 0 var(--s-5); padding: 0; min-width: 0; }
.ct-ways legend { padding: 0; margin-bottom: var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.ct-ways legend span, .ct-opt { margin-left: .35rem; font-family: var(--font-body); font-weight: 400; font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--stone); }
.ct-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
.ct-check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: .95rem; line-height: 1.3; }
.ct-check input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.ct-adult { margin: calc(-1 * var(--s-2)) 0 var(--s-4); font-weight: 600; }
.ct-hint { margin: 0; font-size: var(--fs-small); color: var(--stone); }

@media (max-width: 1023px) {
  .ct-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
}
@media (max-width: 767px) {
  .ct-roles, .ct-values { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .ct-steps, .ct-checks { grid-template-columns: 1fr; }
  .ct-values li { padding-left: 2.4rem; }
}
