.funding-router .funding-controls {
    display: block;
    border: 1px solid var(--sw-line);
    border-top-color: var(--sw-line-bright);
}

.funding-router .funding-controls__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funding-router .funding-control {
    min-height: 72px;
    border-right: 1px solid var(--sw-line);
    border-bottom: 1px solid var(--sw-line);
}

.funding-router .funding-control:nth-child(4n) {
    border-right: 0;
}

.funding-router .funding-control :is(select, input) {
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    padding: 0 28px 0 0;
    color: var(--sw-ink);
    border: 0;
    border-radius: 0;
    outline-offset: 4px;
    background: transparent;
    font: 700 11px/1.2 var(--sw-mono);
    letter-spacing: 0.045em;
}

.funding-router .funding-control select {
    text-transform: uppercase;
}

.funding-router .funding-control input {
    padding-right: 0;
}

.funding-router .funding-control input::placeholder {
    color: var(--sw-faint);
    opacity: 0.82;
}

.funding-router .funding-controls__actions {
    display: flex;
    min-height: 54px;
    align-items: stretch;
    margin-top: -1px;
    border-top: 1px solid var(--sw-line);
}

.funding-router .funding-shortlist-toggle,
.funding-router .funding-controls__saved {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 16px;
    color: var(--sw-muted);
    border-right: 1px solid var(--sw-line);
    font: 700 9px/1.25 var(--sw-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.funding-router .funding-shortlist-toggle {
    gap: 9px;
    cursor: pointer;
}

.funding-router .funding-shortlist-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--sw-warm);
}

.funding-router .funding-controls__saved {
    margin-right: auto;
    color: var(--sw-faint);
}

.funding-router .funding-controls__reset,
.funding-router .funding-controls__export {
    min-width: 142px;
    min-height: 44px;
    padding: 0 18px;
    color: var(--sw-muted);
    border: 0;
    border-left: 1px solid var(--sw-line);
    background: transparent;
    font: 700 9px/1.2 var(--sw-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.funding-router .funding-controls__export {
    color: var(--sw-ink);
    background: var(--sw-panel-soft);
}

.funding-router :is(.funding-controls__reset, .funding-controls__export):hover {
    color: var(--sw-ink);
    background: var(--sw-panel);
}

.funding-router .funding-controls__export:disabled {
    color: var(--sw-faint);
    background: transparent;
    cursor: not-allowed;
    opacity: 0.55;
}

.funding-router :is(button, select, input):focus-visible {
    outline: 2px solid var(--sw-warm);
    outline-offset: -3px;
}

.funding-router .funding-empty {
    margin: 24px 0 0;
    padding: 24px;
    color: var(--sw-muted);
    border: 1px solid var(--sw-line);
    background: rgb(14 16 19 / 62%);
    font: 700 10px/1.5 var(--sw-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.funding-router .funding-program > header {
    align-items: flex-start;
}

.funding-router .funding-program__header-actions {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}

.funding-router .funding-program__header-actions > b {
    color: var(--sw-faint);
    font: 700 9px/1.2 var(--sw-mono);
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.funding-router .funding-program__shortlist {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    color: var(--sw-faint);
    border: 1px solid var(--sw-line);
    background: transparent;
    font: 700 8px/1 var(--sw-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.funding-router .funding-program__shortlist:hover,
.funding-router .funding-program__shortlist[aria-pressed="true"] {
    color: var(--sw-ink);
    border-color: var(--sw-warm);
    background: rgb(197 191 180 / 8%);
}

.funding-router .funding-program__shortlist[aria-pressed="true"] > span[aria-hidden="true"] {
    transform: rotate(45deg);
}

.funding-router .funding-program__deadline-state {
    display: grid;
    gap: 5px;
    margin: 0 0 20px;
    padding: 11px 13px;
    color: var(--sw-muted);
    border: 1px solid var(--sw-line);
    border-left: 3px solid var(--sw-line-bright);
    background: rgb(8 10 12 / 52%);
    font: 700 9px/1.45 var(--sw-mono);
    letter-spacing: 0.045em;
}

.funding-router .funding-program__deadline-state[hidden] {
    display: none;
}

.funding-router .funding-program__deadline-state strong {
    color: var(--sw-ink);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.funding-router .funding-program__deadline-state time {
    color: var(--sw-ink-soft);
}

.funding-router .funding-program__deadline-state[data-state="today"] {
    border-left-color: var(--sw-warm);
    background: rgb(197 191 180 / 8%);
}

.funding-router .funding-program__deadline-state[data-state="historic"] {
    border-color: rgb(201 120 114 / 45%);
    border-left-color: #c97872;
    background: rgb(88 29 26 / 18%);
}

.funding-router .funding-program__deadline-state[data-state="historic"] strong,
.funding-router .funding-status--historic {
    color: #d88a83;
}

.funding-router .funding-program--historic {
    background: rgb(17 13 14 / 72%);
}

.funding-router .funding-program__record {
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--sw-line);
}

.funding-router .funding-program__record > span {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    color: var(--sw-muted);
    font: 700 8px/1.4 var(--sw-mono);
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.funding-router .funding-program__record b {
    color: var(--sw-faint);
}

.funding-router .funding-program__record time {
    color: var(--sw-ink-soft);
}

.funding-router .funding-program > a {
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .funding-router .funding-controls__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .funding-router .funding-control:nth-child(4n) {
        border-right: 1px solid var(--sw-line);
    }

    .funding-router .funding-control:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    .funding-router .funding-controls__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .funding-router .funding-control:nth-child(3n) {
        border-right: 1px solid var(--sw-line);
    }

    .funding-router .funding-control:nth-child(2n) {
        border-right: 0;
    }

    .funding-router .funding-controls__actions {
        flex-wrap: wrap;
    }

    .funding-router .funding-controls__saved {
        flex: 1;
    }
}

@media (max-width: 700px) {
    .funding-router .funding-controls__grid {
        grid-template-columns: 1fr;
    }

    .funding-router .funding-control,
    .funding-router .funding-control:nth-child(n) {
        min-height: 78px;
        border-right: 0;
    }

    .funding-router .funding-control :is(select, input) {
        min-height: 44px;
        font-size: 16px;
    }

    .funding-router .funding-controls__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .funding-router .funding-shortlist-toggle,
    .funding-router .funding-controls__saved,
    .funding-router .funding-controls__reset,
    .funding-router .funding-controls__export {
        min-width: 0;
        min-height: 48px;
        margin: 0;
        border-right: 1px solid var(--sw-line);
        border-bottom: 1px solid var(--sw-line);
        border-left: 0;
    }

    .funding-router .funding-program__shortlist {
        min-height: 44px;
        padding-inline: 12px;
    }

    .funding-router .funding-program__record > span {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Progressive disclosure keeps the global directory compact until explored. */
.funding-desk summary { cursor: pointer; }
.funding-desk summary:focus-visible { outline: 2px solid var(--sw-warm); outline-offset: -3px; }
.funding-guide { margin-bottom: 16px; }
.funding-guide > summary,
.funding-filter-panel > summary,
.funding-program__details > summary {
    padding: 14px 16px;
    color: var(--sw-muted);
    font: 700 10px/1.5 var(--sw-mono);
    letter-spacing: .04em;
}
.funding-router .funding-control--search { display: flex; border-right: 0; min-height: 68px; }
.funding-router .funding-jurisdiction { margin-top: 8px; border: 1px solid var(--sw-line); }
.funding-router .funding-jurisdiction__header {
    grid-template-columns: 48px minmax(140px, 1fr) minmax(0, 2fr) auto 20px;
    align-items: center;
    padding: 18px;
    border: 0;
    list-style: none;
    background: var(--sw-panel-soft);
}
.funding-jurisdiction__header::-webkit-details-marker { display: none; }
.funding-router .funding-jurisdiction__header h3 { font-size: 25px; }
.funding-router .funding-jurisdiction__header p { text-align: left; }
.funding-jurisdiction__count { color: var(--sw-warm); font: 700 10px/1.4 var(--sw-mono); white-space: nowrap; }
.funding-disclosure-icon { font: 400 22px/1 var(--sw-mono); text-align: center; }
.funding-jurisdiction[open] > summary .funding-disclosure-icon { transform: rotate(45deg); }
.funding-router .funding-jurisdiction[open] > summary { border-bottom: 1px solid var(--sw-line-bright); }
.funding-router .funding-programs { align-items: start; }
.funding-router .funding-program { min-height: 0; padding: 20px; }
.funding-router .funding-program__instrument { margin-bottom: 14px; }
.funding-program__details { border-top: 1px solid var(--sw-line); }
.funding-program__details > summary { padding-inline: 0; }
.funding-program__details > a { display: flex; justify-content: space-between; margin-top: 16px; color: var(--sw-ink); font: 700 10px/1.5 var(--sw-mono); }
@media (max-width: 700px) {
    .funding-router .funding-jurisdiction__header { grid-template-columns: 32px minmax(0, 1fr) auto 18px; gap: 10px; padding: 16px 12px; }
    .funding-router .funding-jurisdiction__header h3 { font-size: 22px; }
    .funding-router .funding-jurisdiction__header p { display: none; }
    .funding-router .funding-programs { grid-template-columns: 1fr; }
}
.funding-router .funding-programs > .funding-program:not([hidden]):nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden])) { grid-column: 1 / -1; }
.funding-router .funding-jurisdiction__header:hover { background: var(--sw-panel); }
.funding-router .funding-program > .funding-program__record {
    margin-top: 0;
    padding-block: 12px;
}

.funding-perspective {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--sw-line);
    background: rgb(14 16 19 / 62%);
}

.funding-perspective__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.funding-perspective__heading .eyebrow {
    margin: 0;
}

.funding-perspective__toggle {
    display: inline-flex;
    border: 1px solid var(--sw-line-bright);
}

.funding-perspective__toggle button {
    min-width: 86px;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--sw-muted);
    border: 0;
    background: transparent;
    font: 700 11px/1.2 var(--sw-mono);
    letter-spacing: 0.08em;
    cursor: pointer;
}

.funding-perspective__toggle button + button {
    border-left: 1px solid var(--sw-line-bright);
}

.funding-perspective__toggle button[aria-pressed="true"] {
    color: #111519;
    background: #c5cdd5;
    box-shadow: inset 0 -3px #7d8b99;
}

.funding-perspective__toggle button[aria-pressed="false"]:hover {
    color: var(--sw-ink);
    background: var(--sw-panel);
}

.funding-perspective__toggle button:disabled {
    cursor: default;
}

.funding-perspective__direction {
    margin-left: auto;
    color: var(--sw-ink-soft);
    font: 700 10px/1.5 var(--sw-mono);
}

.funding-perspective > p {
    margin: 12px 0 0;
    color: var(--sw-muted);
    font: 400 12px/1.5 var(--sw-mono);
}

.funding-jurisdiction[data-funding-risk-level="lower"] { --funding-risk-color: #b9cbd9; }
.funding-jurisdiction[data-funding-risk-level="moderate"] { --funding-risk-color: #aeb7c1; }
.funding-jurisdiction[data-funding-risk-level="elevated"] { --funding-risk-color: #c5a5a1; }
.funding-jurisdiction[data-funding-risk-level="higher"] { --funding-risk-color: #d88a83; }
.funding-jurisdiction[data-funding-risk-level="unranked"] { --funding-risk-color: #929ca6; }

.funding-jurisdiction[data-funding-risk-level] > summary {
    box-shadow: inset 2px 0 var(--funding-risk-color);
}

.funding-jurisdiction__meta {
    display: grid;
    gap: 5px;
    text-align: right;
}

.funding-jurisdiction__risk {
    color: var(--funding-risk-color);
    font: 700 9px/1.4 var(--sw-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .funding-perspective { padding: 14px 12px; }
    .funding-perspective__heading { gap: 10px 12px; }
    .funding-perspective__direction { width: 100%; margin-left: 0; }
    .funding-perspective > p { font-size: 11px; }
    .funding-router .funding-jurisdiction__header {
        grid-template-columns: 32px minmax(0, 1fr) 18px;
    }
    .funding-jurisdiction__meta {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 12px;
        text-align: left;
    }
    .funding-jurisdiction__header > .funding-disclosure-icon {
        grid-column: 3;
        grid-row: 1;
    }
}

#home-mission-funds-panel .funding-desk {
    width: 100%;
    padding: 0 0 24px;
}

#home-mission-funds-panel .funding-router {
    margin-block-start: 0;
}

#home-mission-funds-panel .funding-controls {
    margin: 0;
}

#home-mission-funds-panel .funding-control--search {
    min-height: 48px;
    align-items: center;
    padding-block: 5px;
}

#home-mission-funds-panel .funding-control--search > input {
    min-width: 0;
}

#home-mission-funds-panel .funding-filter-panel > summary {
    padding-block: 15px;
}

#home-mission-funds-panel .funding-controls__actions {
    min-height: 44px;
}

#home-mission-funds-panel .funding-controls__saved {
    display: grid;
    align-content: center;
    gap: 3px;
    padding-block: 6px;
}

#home-mission-funds-panel .funding-controls__saved > [data-funding-results] {
    max-inline-size: 22ch;
    margin: 0;
    color: var(--sw-ink-soft);
}

#home-mission-funds-panel .funding-perspective {
    margin: 0;
    padding: 10px 14px;
    border-top: 0;
}

#home-mission-funds-panel .funding-perspective__heading {
    gap: 8px 14px;
}

#home-mission-funds-panel .funding-perspective > p {
    margin-block-start: 6px;
    font-size: 11px;
}

@media screen and (forced-colors: none) {
    #home-mission-funds-panel .funding-router__toolbar {
        border: 1px solid var(--sw-line);
        border-block-start-color: var(--sw-warm);
        background: var(--sw-bg-raised);
        color: var(--sw-ink);
    }

    #home-mission-funds-panel .funding-router__toolbar > :is(.funding-controls, .funding-perspective) {
        border: 0;
        background: var(--sw-bg-raised);
    }

    #home-mission-funds-panel .funding-router__toolbar > .funding-controls {
        border-block-end: 1px solid var(--sw-line);
        background: var(--sw-panel);
    }

    #home-mission-funds-panel .funding-router__toolbar :is(
        .funding-filter-panel > summary, .funding-perspective__toggle button[aria-pressed="false"]
    ):is(:hover, :focus-visible) { background: var(--sw-panel-soft); }

    #home-mission-funds-panel .funding-router__toolbar .funding-perspective__toggle button[aria-pressed="true"] {
        color: var(--sw-bg);
        background: var(--sw-warm);
        box-shadow: inset 0 -3px var(--sw-line-bright);
    }

    #home-mission-funds-panel .funding-router__toolbar .funding-control select option {
        background: var(--sw-bg-raised);
        color: var(--sw-ink);
    }

    #home-mission-funds-panel .funding-router__toolbar .funding-control select option:checked {
        background: var(--sw-panel-soft);
        color: var(--sw-warm);
    }
}

#home-mission-funds-panel .funding-jurisdictions {
    display: grid;
    gap: 6px 10px;
    align-items: start;
    margin-block-start: 10px;
}

#home-mission-funds-panel :is(.funding-jurisdictions, .funding-deadline-results)[hidden] {
    display: none;
}

#home-mission-funds-panel .funding-deadline-results {
    padding: 0;
    margin-block-start: 10px;
}

#home-mission-funds-panel .funding-jurisdiction {
    margin: 0;
    min-width: 0;
}

#home-mission-funds-panel .funding-jurisdiction[hidden] {
    display: none;
}

#home-mission-funds-panel .funding-jurisdiction__header {
    min-height: 54px;
    gap: 3px 12px;
    padding: 9px 12px;
}

#home-mission-funds-panel .funding-jurisdiction__header h3 {
    font-size: 20px;
    line-height: 1.1;
}

@media screen and (forced-colors: none) {
    #home-mission-funds-panel :is(.funding-jurisdictions, .funding-deadline-results) {
        --sw-bg-raised: #191919;
        --sw-panel: #202020;
        --sw-panel-soft: #262626;
        --sw-line: #414141;
        --sw-line-bright: #646464;
        --sw-ink: #f0f0f0;
        --sw-ink-soft: #ccc;
        --sw-muted: #a6a6a6;
        --sw-faint: #9a9a9a;
        --sw-warm: #d1d1d1;
        --sw-site-accent: var(--sw-warm);
        color: var(--sw-ink);
    }

    #home-mission-funds-panel .funding-jurisdiction { border-color: var(--sw-line); }

    #home-mission-funds-panel .funding-jurisdiction__header {
        position: relative;
        isolation: isolate;
        background: var(--sw-panel-soft);
    }

    #home-mission-funds-panel .funding-jurisdiction__header:is(:hover, :focus-visible) { background: var(--sw-panel); }

    #home-mission-funds-panel .funding-router :is(
        .funding-programs, .funding-jurisdiction__alert,
        .funding-program__deadline-state:not([data-state="historic"], [data-state="today"])
    ) { background: var(--sw-bg-raised); }

    #home-mission-funds-panel .funding-router .funding-program:not(.funding-program--historic) {
        background: var(--sw-panel);
        border-color: var(--sw-line);
    }

    #home-mission-funds-panel .funding-router :is(
        .funding-program__shortlist:is(:hover, [aria-pressed="true"]),
        .funding-program__deadline-state[data-state="today"]
    ) { background: var(--sw-panel-soft); }

    #home-mission-funds-panel .funding-router .funding-jurisdiction__alert--critical {
        background: linear-gradient(90deg, rgb(78 22 22 / 36%), transparent 65%), var(--sw-bg-raised);
    }

    #home-mission-funds-panel [data-funding-risk-level="lower"] { --funding-risk-color: #c8c8c8; }
    #home-mission-funds-panel [data-funding-risk-level="moderate"] { --funding-risk-color: #b4b4b4; }
    #home-mission-funds-panel [data-funding-risk-level="unranked"] { --funding-risk-color: #9d9d9d; }

    /* Flag accents share the card with the risk indicator. */
    #home-mission-funds-panel [data-funding-country-section]:not([data-funding-country-section="international"]) > .funding-jurisdiction__header::before {
        position: absolute;
        z-index: -1;
        inset: 0 0 0 2px;
        background:
            linear-gradient(90deg, var(--funding-flag-colors, transparent, transparent)) top left / min(25%, 6rem) 3px no-repeat,
            linear-gradient(100deg, color-mix(in srgb, var(--funding-flag-tint, transparent) 23%, transparent), transparent 68%);
        pointer-events: none;
        content: "";
    }

    #home-mission-funds-panel [data-funding-country-section="us"] {
        --funding-flag-colors: #3c4f93 0 35%, #bf2b40 35% 67%, #fff 67%;
        --funding-flag-tint: #394f9c;
    }

    #home-mission-funds-panel [data-funding-country-section="ca"] {
        --funding-flag-colors: #e52431 0 25%, #fff 25% 75%, #e52431 75%;
        --funding-flag-tint: #d52336;
    }

    #home-mission-funds-panel [data-funding-country-section="uk"] {
        --funding-flag-colors: #25397c 0 44%, #fff 44% 62%, #c8102e 62%;
        --funding-flag-tint: #294486;
    }

    #home-mission-funds-panel [data-funding-country-section="eu"] {
        --funding-flag-colors: #003399 0 72%, #ffcc00 72%;
        --funding-flag-tint: #224fb9;
    }

    #home-mission-funds-panel [data-funding-country-section="de"] {
        --funding-flag-colors: #151515 0 33%, #d00 33% 67%, #fc0 67%;
        --funding-flag-tint: #d99d16;
    }

    #home-mission-funds-panel [data-funding-country-section="fr"] {
        --funding-flag-colors: #164194 0 33%, #fff 33% 67%, #e4323d 67%;
        --funding-flag-tint: #2453a7;
    }

    #home-mission-funds-panel [data-funding-country-section="se"] {
        --funding-flag-colors: #006aa7 0 40%, #fecc00 40% 60%, #006aa7 60%;
        --funding-flag-tint: #0078ba;
    }

    #home-mission-funds-panel [data-funding-country-section="no"] {
        --funding-flag-colors: #ba0c2f 0 38%, #fff 38% 50%, #213c80 50% 68%, #fff 68% 79%, #ba0c2f 79%;
        --funding-flag-tint: #a42439;
    }

    #home-mission-funds-panel [data-funding-country-section="fi"] {
        --funding-flag-colors: #fff 0 35%, #174785 35% 65%, #fff 65%;
        --funding-flag-tint: #3f79b0;
    }

    #home-mission-funds-panel [data-funding-country-section="au"] {
        --funding-flag-colors: #233a7c 0 60%, #fff 60% 80%, #d42739 80%;
        --funding-flag-tint: #354c91;
    }

    #home-mission-funds-panel [data-funding-country-section="jp"] {
        --funding-flag-colors: #fff 0 39%, #bc002d 39% 61%, #fff 61%;
        --funding-flag-tint: #a83451;
    }

    #home-mission-funds-panel [data-funding-country-section="kr"] {
        --funding-flag-colors: #fff 0 36%, #cd2e3a 36% 57%, #0047a0 57% 79%, #151515 79%;
        --funding-flag-tint: #4459a6;
    }

    #home-mission-funds-panel [data-funding-country-section="ar"] {
        --funding-flag-colors: #74acdf 0 27%, #fff 27% 44%, #f6b40e 44% 56%, #fff 56% 73%, #74acdf 73%;
        --funding-flag-tint: #74acdf;
    }

    #home-mission-funds-panel [data-funding-country-section="cl"] {
        --funding-flag-colors: #2458a0 0 25%, #fff 25% 53%, #d52b1e 53%;
        --funding-flag-tint: #ae372b;
    }

    #home-mission-funds-panel [data-funding-country-section="in"] {
        --funding-flag-colors: #ff9933 0 31%, #fff 31% 45%, #21377b 45% 55%, #fff 55% 69%, #138808 69%;
        --funding-flag-tint: #d67e2c;
    }

    #home-mission-funds-panel [data-funding-country-section="sa"] {
        --funding-flag-colors: #006c35 0 72%, #fff 72%;
        --funding-flag-tint: #248c50;
    }

    #home-mission-funds-panel [data-funding-country-section="br"] {
        --funding-flag-colors: #009c3b 0 43%, #ffdf00 43% 68%, #253781 68% 91%, #fff 91%;
        --funding-flag-tint: #108e44;
    }

    #home-mission-funds-panel [data-funding-country-section="za"] {
        --funding-flag-colors: #141414 0 13%, #ffb612 13% 25%, #007749 25% 48%, #fff 48% 61%, #de3831 61% 81%, #25459a 81%;
        --funding-flag-tint: #12805a;
    }

    #home-mission-funds-panel [data-funding-country-section="cn"] {
        --funding-flag-colors: #de2910 0 72%, #ffde00 72%;
        --funding-flag-tint: #d63820;
    }

    #home-mission-funds-panel [data-funding-country-section="ru"] {
        --funding-flag-colors: #fff 0 33%, #2451aa 33% 67%, #ce2435 67%;
        --funding-flag-tint: #3057a1;
    }
}

#home-mission-funds-panel .funding-support {
    display: grid;
    margin-block-start: 16px;
    gap: 6px 10px;
}

#home-mission-funds-panel .funding-support > details {
    margin: 0;
    min-width: 0;
    border: 1px solid var(--sw-line);
    background: var(--sw-bg-raised);
}

#home-mission-funds-panel .funding-support summary {
    padding: 12px 14px;
    color: var(--sw-ink-soft);
    font: 700 11px/1.45 var(--sw-mono);
}

#home-mission-funds-panel .funding-support > details > :not(summary) {
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid var(--sw-line);
}

#home-mission-funds-panel .funding-guide p {
    color: var(--sw-muted);
    font-size: 13px;
    line-height: 1.55;
}

#home-mission-funds-panel .funding-readiness__grid article {
    min-height: 0;
    padding: 12px;
}

#home-mission-funds-panel .funding-readiness__grid h3 {
    margin-top: 8px;
}

#home-mission-funds-panel .funding-action {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

#home-mission-funds-panel .funding-action h2 {
    font-size: clamp(20px, 2.6vw, 30px);
}

@media screen and (forced-colors: none) {
    #home-mission-funds-panel .funding-support > details { border-color: var(--sw-line-bright); }

    #home-mission-funds-panel .funding-support > details > summary {
        background: var(--sw-panel);
        color: var(--sw-ink);
    }

    #home-mission-funds-panel .funding-support > details > summary::marker { color: var(--sw-warm); }

    #home-mission-funds-panel .funding-support > details > summary:is(:hover, :focus-visible),
    #home-mission-funds-panel .funding-support > details[open] > summary {
        background: var(--sw-panel-soft);
        color: var(--sw-warm);
    }

    #home-mission-funds-panel .funding-support > details[open] { border-color: var(--sw-warm); }

    #home-mission-funds-panel .funding-support .funding-readiness__grid article {
        border-color: var(--sw-line);
        background: var(--sw-panel);
    }

    #home-mission-funds-panel .funding-support .funding-action { background: var(--sw-bg-raised); }
}

#home-mission-funds-panel .funding-disclaimer {
    margin: 10px 0 0;
    color: var(--sw-muted);
    font: 400 11px/1.55 var(--sw-mono);
}

@media (min-width: 701px) {
    #home-mission-funds-panel .funding-jurisdiction__header {
        grid-template-columns: 48px minmax(0, 1fr) auto 18px;
    }

    #home-mission-funds-panel .funding-jurisdiction__header p {
        grid-column: 2;
        grid-row: 2;
    }

    #home-mission-funds-panel .funding-jurisdiction__code,
    #home-mission-funds-panel .funding-jurisdiction__meta,
    #home-mission-funds-panel .funding-disclosure-icon {
        grid-row: 1 / span 2;
    }

    #home-mission-funds-panel .funding-jurisdiction__meta { grid-column: 3; }
    #home-mission-funds-panel .funding-disclosure-icon { grid-column: 4; }

    #home-mission-funds-panel .funding-support {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #home-mission-funds-panel .funding-support > details[open] {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1080px) {
    #home-mission-funds-panel .funding-controls:not(:has(.funding-filter-panel[open])) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: stretch;
    }

    #home-mission-funds-panel .funding-controls:not(:has(.funding-filter-panel[open])) .funding-control--search {
        border-bottom: 0;
    }

    #home-mission-funds-panel .funding-controls:not(:has(.funding-filter-panel[open])) .funding-controls__actions {
        margin: 0;
        border-top: 0;
        border-left: 1px solid var(--sw-line);
    }

    #home-mission-funds-panel .funding-jurisdictions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #home-mission-funds-panel .funding-jurisdiction[open] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    #home-mission-funds-panel .funding-controls__actions label:has([data-funding-new-only]) {
        grid-column: 1 / -1;
    }
}

