.funding-heading {
  position: relative;
  isolation: isolate;
  padding: 128px 0 40px;
  overflow: hidden;
  background: #10171a;
  border-bottom: 1px solid var(--line);
}

.funding-heading__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
}

.funding-heading h1 { font-size: 2.75rem; max-width: 900px; }
.funding-heading .page-lead { max-width: 760px; margin-top: 16px; }
.funding-status { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-size: 0.9rem; color: #c7e5d6; }
.funding-status span + span { color: #edc2af; }
.funding-status span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: currentColor; }
.funding-summary { padding: 28px 0; border-bottom: 1px solid var(--line); background: #0a1114; }
.funding-summary__inner { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 48px; align-items: center; }
.funding-summary__inner > div { min-width: 0; }
.funding-summary__inner > div > strong { display: block; font-size: 2rem; line-height: 1.3; margin-top: 8px; overflow-wrap: anywhere; }
.funding-summary small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.funding-label { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 650; margin-bottom: 10px; }
.funding-summary__progress > div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; margin-bottom: 12px; }
.funding-summary__progress strong { white-space: nowrap; }
.funding-sections { display: flex; gap: 28px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 0.9rem; font-weight: 650; }
.funding-section { padding-block: 56px; scroll-margin-top: 90px; }
.funding-section--muted { background: #0a1114; border-block: 1px solid var(--line); }
.funding-section__head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: end; margin-bottom: 28px; }
.funding-section__head h2 { font-size: 1.8rem; }
.funding-section__head p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 0.95rem; }
.funding-section .eyebrow { margin-bottom: 12px; }
.funding-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.funding-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.funding-project { display: flex; flex-direction: column; padding: 24px; min-width: 0; border: 1px solid #3b4c50; border-top: 3px solid #86cdb7; border-radius: 6px; background: #101a1d; }
.funding-project--2 { border-top-color: #d5a6b3; }
.funding-project--3 { border-top-color: #dec18f; }
.funding-project:has(input:checked) { border-color: #87d5c0; background: #132624; }
.funding-project__number { font-size: 0.78rem; color: var(--muted); margin-bottom: 18px; }
.funding-project__choice { display: flex; align-items: start; gap: 12px; cursor: pointer; font-size: 1.25rem; font-weight: 750; line-height: 1.35; }
.funding-project__choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: #85d5bd; }
.funding-project__description { margin-top: 18px; flex: 1; color: #d0dcdd; font-size: 0.91rem; line-height: 1.65; }
.funding-project__budget { margin-top: 24px; color: #f3d8ca; font-size: 0.83rem; }
.funding-project__result { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; margin-bottom: 8px; font-size: 0.8rem; color: var(--muted); }
.funding-section progress, .funding-summary progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 3px; overflow: hidden; background: #28383b; appearance: none; }
.funding-section progress::-webkit-progress-bar, .funding-summary progress::-webkit-progress-bar { background: #28383b; }
.funding-section progress::-webkit-progress-value, .funding-summary progress::-webkit-progress-value { background: #7ad8bd; }
.funding-section progress::-moz-progress-bar, .funding-summary progress::-moz-progress-bar { background: #7ad8bd; }
.funding-idea { margin-top: 24px; max-width: 800px; }
.funding-idea[hidden] { display: none; }
.funding-idea label, .funding-admin-form label { display: grid; gap: 8px; font-weight: 650; font-size: 0.9rem; }
.funding-idea textarea, .funding-admin-form input, .funding-admin-form textarea { width: 100%; min-width: 0; padding: 12px; color: var(--text); border: 1px solid #48595e; border-radius: 4px; background: #0a1114; font: inherit; }
.funding-idea textarea, .funding-admin-form textarea { resize: vertical; }
.funding-idea p { color: var(--muted); font-size: 0.8rem; margin-top: 8px; }
.funding-vote-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.funding-note { font-size: 0.82rem; color: var(--muted); margin-top: 20px; max-width: 900px; }
.funding-note a { text-decoration: underline; text-underline-offset: 3px; }
.funding-support-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; align-items: start; }
.funding-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.funding-amount { position: relative; display: grid; min-width: 0; cursor: pointer; }
.funding-amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.funding-amount span { display: grid; place-items: center; min-height: 55px; padding: 10px 5px; border: 1px solid #48595e; border-radius: 4px; background: #121c20; font-size: 0.95rem; font-weight: 700; }
.funding-amount input:checked + span { border-color: #8ed7be; color: #b8efd9; background: #19332e; }
.funding-amount input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.funding-support-selection { padding-left: 32px; border-left: 1px solid var(--line); min-width: 0; }
.funding-support-selection > strong { display: block; font-size: 2rem; margin-bottom: 20px; overflow-wrap: anywhere; }
.funding-support-selection > p { color: #f0c4ae; margin-bottom: 24px; min-height: 26px; white-space: pre-wrap; overflow-wrap: anywhere; }
.funding-support-selection .btn { width: 100%; white-space: normal; }
.funding-support-selection .btn:disabled { opacity: 0.65; cursor: not-allowed; }
.funding-custom-amount { display: grid; gap: 10px; margin-top: 24px; font-size: 0.9rem; color: var(--muted); }
.funding-custom-amount input, .funding-contact-grid input { width: 100%; min-width: 0; padding: 12px; color: var(--text); border: 1px solid #48595e; border-radius: 4px; background: #0a1114; font: inherit; }
.funding-custom-amount input { max-width: 300px; }
.funding-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; max-width: 800px; }
.funding-contact-grid label { display: grid; gap: 8px; font-size: 0.9rem; }
.funding-contact-grid input[readonly] { color: var(--muted); }
.funding-acknowledge { display: flex; align-items: start; gap: 12px; max-width: 900px; font-size: 0.85rem; color: var(--muted); margin-block: 24px; }
.funding-acknowledge input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; accent-color: #85d5bd; }
.funding-acknowledge a { text-decoration: underline; }
[data-donation-form] > .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.funding-donation-history summary { cursor: pointer; font-weight: 650; }
.funding-donation-history ul { padding-left: 20px; font-size: 0.9rem; line-height: 2; }
.funding-table-scroll { overflow-x: auto; margin-block: 24px; }
.funding-table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.funding-table-scroll th, .funding-table-scroll td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.funding-table-scroll th { color: var(--muted); font-weight: 650; }
.funding-table-scroll td { overflow-wrap: anywhere; min-width: 130px; }
.funding-notice { margin-block: 28px; padding: 16px 0 16px 18px; border-left: 3px solid #d4ad82; color: #dfcbbc; font-size: 0.9rem; }
.funding-milestones { list-style: none; padding: 0; margin: 0; }
.funding-milestones li { display: grid; grid-template-columns: 36px 160px minmax(0, 1fr) 95px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.funding-milestones li:first-child { border-top: 1px solid var(--line); }
.funding-milestone__number { font-size: 0.8rem; color: var(--muted); }
.funding-milestones strong { font-size: 1.05rem; }
.funding-milestones p { color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.funding-milestone__status { font-size: 0.8rem; color: #e2bcb6; text-align: right; }
.is-reached .funding-milestone__status { color: #9be1c8; }
.funding-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.funding-admin-form { display: grid; gap: 28px; }
.funding-admin-form > h2, .funding-tier-editor h2 { font-size: 1.65rem; margin-bottom: 12px; }
.funding-admin-project { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin: 0; min-width: 0; }
.funding-admin-project legend { color: var(--muted); font-size: 0.85rem; padding-right: 16px; }
.funding-admin-project__description { grid-column: 1 / -1; }
.funding-tier-editor { padding-top: 24px; border-top: 1px solid var(--line); }
.funding-tier-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 44px; gap: 16px; align-items: end; margin-bottom: 16px; }
.funding-remove { display: grid; place-items: center; width: 44px; height: 48px; border: 1px solid #64504f; border-radius: 4px; background: #241819; color: #f0bcba; font-size: 1.6rem; cursor: pointer; }
.funding-admin-idea { padding: 28px 0; border-top: 1px solid var(--line); }
.funding-admin-idea time { color: var(--muted); font-size: 0.85rem; }
.funding-admin-idea p { margin-block: 14px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .funding-section__head { grid-template-columns: 1fr; gap: 16px; }
  .funding-projects { grid-template-columns: 1fr; }
  .funding-project__description { max-width: 680px; }
  .funding-support-layout { grid-template-columns: 1fr; gap: 28px; }
  .funding-support-selection { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .funding-support-selection .btn { width: auto; }
}

@media (max-width: 620px) {
  .funding-heading { padding-top: 100px; }
  .funding-heading h1 { font-size: 2rem; }
  .funding-summary__inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .funding-summary__progress { grid-column: 1 / -1; grid-row: 2; }
  .funding-summary__inner > div > strong { font-size: 1.7rem; }
  .funding-sections { gap: 12px 20px; flex-wrap: wrap; font-size: 0.83rem; }
  .funding-section { padding-block: 40px; }
  .funding-section__head h2 { font-size: 1.55rem; }
  .funding-project { padding: 20px; }
  .funding-project__choice { font-size: 1.2rem; }
  .funding-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .funding-amount span { font-size: 0.85rem; }
  .funding-support-selection .btn { width: 100%; }
  .funding-vote-actions .btn { white-space: normal; }
  .funding-milestones li { grid-template-columns: 26px minmax(0, 1fr) 85px; gap: 8px 12px; padding-block: 18px; }
  .funding-milestones p { grid-row: 2; grid-column: 2 / -1; }
  .funding-milestone__status { grid-column: 3; grid-row: 1; }
  .funding-milestones strong { font-size: 0.94rem; }
  .funding-admin-project { grid-template-columns: 1fr; }
  .funding-contact-grid { grid-template-columns: 1fr; }
  .funding-admin-project__description { grid-column: auto; }
  .funding-tier-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .funding-tier-row label:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .funding-remove { grid-column: 2; grid-row: 1; }
}
