/* The page for scholarship providers (templates/for_funds.html). Tokens from app.css :root;
   the cards are the homepage's .feature-card. */
.funds-head .cta { margin-top: 22px; }
.funds-q { display: block; }   /* the question on its own line, then the answer */

/* The offer for a fund with no website, right under the hero. */
.funds-home {
  display: flex; align-items: flex-start; gap: 16px; max-width: 760px;
  margin-top: clamp(28px, 5vw, 40px); padding: clamp(18px, 3.5vw, 26px);
  background: var(--lilac-2); border: 1px solid rgba(139, 111, 214, 0.28);
  border-radius: var(--radius-lg);
}
.funds-home .feature-ico { flex: none; background: #fff; }
.funds-home h2 { margin: 2px 0 6px; font-size: var(--step-1); }
.funds-home p { margin: 0; color: var(--muted); line-height: 1.7; }
.funds-section { margin-top: clamp(40px, 7vw, 64px); }
.funds-section > h2 { margin: 0 0 18px; font-size: var(--step-2); }

.funds-cards .feature-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.funds-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--lilac); color: var(--violet-ink);
  font-family: var(--font-body); font-size: var(--step--2); font-weight: 600; line-height: 1.6;
}
@media (min-width: 561px) and (max-width: 860px) {
  .funds-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.funds-faq { display: grid; gap: 10px; max-width: 760px; }
.funds-faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.funds-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600;
}
.funds-faq summary::-webkit-details-marker { display: none; }
.funds-faq summary::after {
  content: "+"; flex: none; color: var(--violet-ink); font: 700 1.3rem/1 var(--font-display);
  transition: transform .2s var(--ease);
}
.funds-faq details[open] summary::after { transform: rotate(45deg); }
.funds-faq summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }
.funds-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.75; }

.funds-form {
  max-width: 760px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.funds-form > h2 { margin-bottom: 6px; }
.funds-lede { color: var(--muted); margin: 0 0 18px; line-height: 1.65; }
.funds-about { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--violet-ink); }
.funds-sent { display: grid; gap: 4px; margin: 12px 0 0; }

.funds-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.funds-choice {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 500;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.funds-choice:hover { border-color: rgba(139, 111, 214, 0.45); }
.funds-choice:has(input:checked) { border-color: var(--violet); background: var(--lilac-2); box-shadow: var(--ring); }
.funds-choice input { flex: none; width: auto; min-height: 0; margin: 0; accent-color: var(--violet-ink); }
.funds-send .cta { min-height: 48px; padding-inline: 36px; }
.funds-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .funds-home { flex-direction: column; gap: 10px; }
  .funds-choices { grid-template-columns: 1fr; }
  .funds-send .cta { width: 100%; }
}
