/* Funding application — shared by every funding call to action. */
html.funding-open { overflow: hidden; scrollbar-gutter: stable; }
.funding-dialog {
  width: min(860px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgba(178, 194, 228, .22);
  border-radius: 24px;
  color: var(--ink);
  background: #0b1124;
  box-shadow: 0 32px 120px rgba(0, 0, 0, .65);
  overflow: hidden;
  color-scheme: dark;
}
.funding-dialog::backdrop { background: rgba(2, 5, 15, .8); backdrop-filter: blur(8px); }
.funding-dialog[open] { animation: funding-enter .2s ease-out; }
.funding-shell { display: flex; flex-direction: column; max-height: calc(100vh - 50px); max-height: calc(100dvh - 50px); }
.funding-header { position: relative; flex: none; padding: 34px 44px 26px; border-bottom: 1px solid var(--line); }
.funding-overline { margin: 0 50px 10px 0; color: var(--blue-2); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.funding-header h2 { margin: 0 32px 10px 0; font-family: Manrope, sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.045em; }
.funding-header h2:focus { outline: none; }
.funding-intro { margin: 0; max-width: 570px; color: #aab7cf; font-size: .92rem; line-height: 1.6; }
.funding-close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 255, 255, .03); color: #d7e2f5; cursor: pointer;
}
.funding-close:hover { background: rgba(22, 140, 255, .15); color: #fff; }
.funding-close svg { width: 18px; height: 18px; }
.funding-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 44px 36px; scrollbar-width: thin; scrollbar-color: #3c5078 transparent; }
.funding-required { margin: 0 0 22px; color: #aab7cf; font-size: .78rem; }
.funding-required span, .funding-field label > span { color: #70caff; }
.funding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.funding-field { min-width: 0; }
.funding-field-wide { grid-column: 1 / -1; }
.funding-field label { display: block; margin-bottom: 8px; color: #e6edfc; font-size: .82rem; font-weight: 500; line-height: 1.5; }
.funding-field input, .funding-field select, .funding-field textarea {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  border: 1px solid #35415e; border-radius: 9px; background: #080e1e;
  color: #f5f7ff; font: inherit; font-size: 1rem; line-height: 1.5;
}
.funding-field input::placeholder, .funding-field textarea::placeholder { color: #8391ad; opacity: 1; }
.funding-field textarea { min-height: 100px; resize: vertical; }
.funding-field select { cursor: pointer; padding-right: 28px; }
.funding-field select:has(option[value=""]:checked) { color: #aab7cf; }
.funding-field select option { color: #f5f7ff; background: #0b1124; }
.funding-field input:hover, .funding-field select:hover, .funding-field textarea:hover { border-color: #52658c; }
.funding-field input:focus, .funding-field select:focus, .funding-field textarea:focus { border-color: var(--blue-2); outline: 2px solid rgba(71, 189, 255, .22); outline-offset: 2px; }
.funding-close:focus-visible, .funding-submit:focus-visible, .funding-email:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; }
.funding-hint { margin: 7px 0 0; color: #aab7cf; font-size: .76rem; line-height: 1.5; }
.funding-honey, .funding-dialog [hidden] { display: none !important; }
.funding-actions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.funding-submit {
  display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 52px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 999px;
  background: #168cff; color: #fff; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.funding-submit:hover { background: #36a0ff; }
.funding-submit:disabled { cursor: progress; opacity: .7; }
.funding-submit svg { width: 18px; height: 18px; flex: none; }
.funding-submit-note { margin: 12px 0 0; color: #aab7cf; font-size: .75rem; line-height: 1.6; text-align: center; }
.funding-status { margin: 12px 0 0; color: #b9dbff; font-size: .85rem; }
.funding-email { color: #b8ddff; text-underline-offset: 3px; }
@keyframes funding-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) {
  .funding-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .funding-shell { max-height: calc(100vh - 22px); max-height: calc(100dvh - 22px); }
  .funding-header { padding: 28px 22px 22px; }
  .funding-header h2 { margin-right: 40px; font-size: 1.9rem; }
  .funding-close { top: 12px; right: 12px; }
  .funding-intro { font-size: .85rem; }
  .funding-body { padding: 22px 22px 28px; }
  .funding-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .funding-field-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .funding-dialog[open] { animation: none; } }
