/* The Global Fund Data Explorer palette (data.theglobalfund.org): navy, blue and teal, with its greys for text and lines. */
:root {
    --gf-navy: #0a2840;
    --gf-blue: #013e77;
    --gf-teal: #00b5ae;
    --gf-light-blue: #c3edfd;
    --gf-text: #262c34;
    --gf-text-secondary: #495057;
    --gf-line: #dfe3e6;
    --gf-surface-muted: #f5f5f7;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ---- The Global Fund look, ported from theglobalfund.org's app.min.css ---- */

html {
    font-size: clamp(1rem, calc(.98rem + .1vw), 1.1rem);
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: var(--gf-text);
    background: #fff;
}

h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
    color: var(--gf-text);
}

h1 { font-size: clamp(1.5rem, calc(1.2rem + 1.5vw), 3rem); font-weight: 700; line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, calc(1.4rem + .5vw), 2rem); font-weight: 700; line-height: 1.15; margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.3rem, calc(1.28rem + .1vw), 1.4rem); font-weight: 600; margin: 1.5rem 0 .75rem; }

.mud-typography-h1, .mud-typography-h2, .mud-typography-h3, .mud-typography-h4 { font-weight: 700; }
.mud-typography-h5, .mud-typography-h6 { font-weight: 600; }

/* Plain links in the page: blue with a thick underline. */
main a:not([class]) {
    font-weight: 500;
    color: var(--gf-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

    main a:not([class]):hover {
        color: var(--gf-navy);
    }

/* Buttons: rounded corners, in the theme's colours. */
.mud-button-root {
    text-transform: none;
    font-weight: 600;
    border-radius: 10px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: .5rem 1rem;
    background: var(--gf-navy);
    color: #fff;
    font-weight: 700;
    z-index: 9999;
    text-decoration: none;
}

    .skip-link:focus {
        top: 0;
    }

.page {
    width: 100%;
}

.content {
    margin-top: 120px;
    padding: 1.5rem 1rem;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    min-height: 50vh;
}

.dim {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none;
}

    .dim.active {
        display: block;
    }

/* Header */
header {
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    background-color: rgba(255, 255, 255, .7);
    z-index: 1000;
    transition: box-shadow .3s cubic-bezier(.4, 0, .2, 1);
}

    header.scrolled {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    }

        header.scrolled .nav-container {
            padding: .8rem 1rem;
        }

            header.scrolled .nav-container .logo img {
                height: 40px;
            }

        header.scrolled .hamburger-menu-icon-line {
            width: 25px;
            height: 2.5px;
            margin: 2.5px 0;
        }

    header .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        max-width: 1440px;
        margin: 0 auto;
        transition: padding .3s cubic-bezier(.4, 0, .2, 1);
    }

        header .nav-container .logo {
            display: flex;
        }

            header .nav-container .logo img {
                display: block;
                width: auto;
                height: 45px;
                transition: all .3s cubic-bezier(.4, 0, .2, 1);
            }

        header .nav-container .actions {
            display: inline-flex;
            align-items: center;
        }

            header .nav-container .actions .notices {
                padding-right: 3rem;
            }

                header .nav-container .actions .notices a {
                    margin-right: 1rem;
                    color: var(--gf-text-secondary);
                    text-decoration: none;
                }

                    header .nav-container .actions .notices a:hover,
                    header .nav-container .actions .notices a.active {
                        color: var(--gf-blue);
                    }

                    header .nav-container .actions .notices a:last-child {
                        margin-right: 0;
                    }

            header .nav-container .actions .hamburger-menu-icon {
                background: 0 0;
                border: none;
                padding: 0;
                appearance: none;
                display: flex;
                flex-direction: column;
                cursor: pointer;
                transition: transform .3s cubic-bezier(.4, 0, .2, 1);
                font-size: 0;
                position: relative;
                z-index: 1001;
            }

                header .nav-container .actions .hamburger-menu-icon:focus-visible {
                    outline: 2px solid var(--gf-teal);
                    outline-offset: 4px;
                    border-radius: 2px;
                }

                header .nav-container .actions .hamburger-menu-icon:hover {
                    transform: scale(1.2);
                }

                header .nav-container .actions .hamburger-menu-icon .hamburger-menu-icon-line {
                    width: 35px;
                    height: 3px;
                    background-color: var(--gf-text);
                    margin: 3px 0;
                    transition: all .3s cubic-bezier(.3, 0, .2, 1);
                }

                header .nav-container .actions .hamburger-menu-icon.active .hamburger-menu-icon-line:first-child {
                    transform: rotate(45deg) translate(6px, 7px);
                }

                header .nav-container .actions .hamburger-menu-icon.active .hamburger-menu-icon-line:nth-child(2) {
                    opacity: 0;
                }

                header .nav-container .actions .hamburger-menu-icon.active .hamburger-menu-icon-line:nth-child(3) {
                    transform: rotate(-45deg) translate(6px, -6px);
                }

@media screen and (max-width: 639.98px) {
    header .nav-container .actions .notices {
        display: none;
    }
}

/* Slide-in menu */
.hamburger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 100px 0 40px;
    transition: right .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
    overflow-y: auto;
    border-left: 1px solid var(--gf-navy);
}

    .hamburger-menu.active {
        right: 0;
    }

    .hamburger-menu .menu-container {
        padding: 1.5rem;
        padding-top: 0;
    }

        .hamburger-menu .menu-container ul.main-menu {
            list-style: none;
            margin: 0;
            padding: 0;
        }

            .hamburger-menu .menu-container ul.main-menu .menu-item {
                position: relative;
                list-style: none;
            }

                .hamburger-menu .menu-container ul.main-menu .menu-item a {
                    display: block;
                    text-decoration: none;
                    width: 100%;
                    height: 100%;
                }

                .hamburger-menu .menu-container ul.main-menu .menu-item .active-link {
                    position: relative;
                    text-decoration: none;
                    color: var(--gf-text);
                    font-size: clamp(1.3rem, calc(1.28rem + .1vw), 1.4rem);
                    font-weight: 400;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: .5rem 0;
                    border-bottom: 1px solid transparent;
                    transition: color .3s ease, border-color .3s ease, transform .3s ease;
                    cursor: pointer;
                }

                    .hamburger-menu .menu-container ul.main-menu .menu-item .active-link:hover,
                    .hamburger-menu .menu-container ul.main-menu .menu-item a.active .active-link {
                        color: var(--gf-blue);
                        border-bottom: 1px solid var(--gf-teal);
                    }

                    .hamburger-menu .menu-container ul.main-menu .menu-item .active-link:hover {
                        transform: scaleX(1.03);
                    }

                .hamburger-menu .menu-container ul.main-menu .menu-item .sub-menu {
                    margin: 0;
                    padding: 0;
                }

                    .hamburger-menu .menu-container ul.main-menu .menu-item .sub-menu li {
                        margin: 0;
                        list-style: none;
                    }

                        .hamburger-menu .menu-container ul.main-menu .menu-item .sub-menu li .active-link {
                            font-size: clamp(1rem, calc(.98rem + .1vw), 1.1rem);
                            padding: 12px 20px;
                            border-bottom: 1px solid var(--gf-line);
                        }

                            .hamburger-menu .menu-container ul.main-menu .menu-item .sub-menu li .active-link:hover {
                                background: var(--gf-surface-muted);
                                border-bottom-color: var(--gf-line);
                            }

                    .hamburger-menu .menu-container ul.main-menu .menu-item .sub-menu .menu-group-label {
                        display: block;
                        margin-top: 1.5rem;
                        padding: .5rem 20px 4px;
                        font-size: clamp(.8rem, calc(.78rem + .1vw), .9rem);
                        font-weight: 700;
                        letter-spacing: .2em;
                        text-transform: uppercase;
                        color: var(--gf-text);
                        cursor: default;
                    }

/* Home page */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

    .cards-grid li {
        margin: 0;
    }

    .cards-grid a {
        display: block;
        height: 100%;
        text-decoration: none;
    }

        .cards-grid a:focus-visible {
            outline: 2px solid #fff;
            outline-offset: -4px;
            box-shadow: inset 0 0 0 6px var(--gf-navy);
        }

    .cards-grid .card {
        position: relative;
        height: 100%;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition: transform .3s cubic-bezier(.25, .46, .45, .94), border-color .3s ease;
        border: 1px solid var(--gf-line);
        background-color: #fff;
    }

        .cards-grid .card::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 2;
            background: linear-gradient(180deg, transparent 50%, rgba(0, 181, 174, .25) 100%);
            opacity: 0;
            transition: opacity .3s ease;
        }

        .cards-grid .card:hover {
            transform: scale(1.02);
            border-color: var(--gf-teal);
        }

            .cards-grid .card:hover::after {
                opacity: 1;
            }

        .cards-grid .card .card-content {
            position: relative;
            padding: 1.5rem;
            color: var(--gf-text);
            z-index: 3;
        }

            .cards-grid .card .card-content .card-title {
                font-size: clamp(1.3rem, calc(1.28rem + .1vw), 1.4rem);
                font-weight: 600;
                padding: 0;
                margin: 0;
                color: var(--gf-navy);
            }

            .cards-grid .card .card-content .card-text {
                margin: .25rem 0 0;
                color: var(--gf-text-secondary);
                font-weight: 600;
            }

.learn-more-section {
    margin-bottom: 1.5rem;
}

    .learn-more-section .topic-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .learn-more-section .topic-pill {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .5rem 1rem .5rem .5rem;
        border: 1px solid var(--gf-line);
        border-radius: 2rem;
        background-color: var(--gf-surface-muted);
        text-decoration: none;
        transition: border-color .3s ease, background-color .3s ease;
    }

        .learn-more-section .topic-pill:hover {
            border-color: var(--gf-teal);
            background-color: #fff;
        }

        .learn-more-section .topic-pill .topic-thumb {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--gf-line);
            object-fit: cover;
        }

        .learn-more-section .topic-pill .topic-label {
            font-weight: 700;
            line-height: 1.2;
            color: var(--gf-text);
            transition: color .3s ease;
            font-size: clamp(.8rem, calc(.78rem + .1vw), .9rem);
        }

        .learn-more-section .topic-pill:hover .topic-label {
            color: var(--gf-blue);
        }

/* Home page: title, sub-title and description */
.page-intro {
    max-width: 960px;
    margin-bottom: 3rem;
}

    .page-intro h1 {
        font-weight: 800;
        margin-bottom: .5rem;
    }

    .page-intro .subtitle {
        font-size: clamp(1.3rem, calc(1.28rem + .1vw), 1.4rem);
        font-weight: 600;
        line-height: 1.3;
        margin: 0 0 1rem;
    }

    .page-intro .description {
        color: var(--gf-text-secondary);
        font-size: clamp(1rem, calc(.98rem + .1vw), 1.1rem);
        line-height: 1.6;
        margin: 0;
    }

/* Home page hero: the title, sub-title and description over the map, which fills the section. */
.page-intro.hero {
    position: relative;
    isolation: isolate;
    max-width: none;
    min-height: clamp(440px, 40vw, 600px);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    /* The donor and implementer map, on a layer of its own behind the text, faded throughout by a white gradient
       that is strongest under the text. */
    .page-intro.hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, .75) 40%, rgba(255, 255, 255, .5) 75%),
            url('images/site/hero.svg') center / cover no-repeat;
    }

    .page-intro.hero > * {
        max-width: 50%;
    }

    .page-intro.hero .description {
        font-weight: 700;
    }

/* Downloads and API Reference: the page title and description over the banner image, faded as on the home page,
   and more, as these images are busier than the home page map. */
.page-intro.banner {
    position: relative;
    isolation: isolate;
    max-width: none;
    min-height: clamp(220px, 22vw, 340px);
    margin-bottom: 1.5rem;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .page-intro.banner::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, .88) 45%, rgba(255, 255, 255, .7) 75%),
            var(--banner-image) center / cover no-repeat;
    }

    .page-intro.banner > * {
        max-width: 50%;
    }

    .page-intro.banner .description {
        font-weight: 700;
    }

/* Each page's banner image. */
.downloads-banner {
    --banner-image: url('images/site/downloads-header.svg');
}

.api-banner {
    --banner-image: url('images/site/api-header.svg');
}

.issues-banner {
    --banner-image: url('images/site/issues-header.svg');
}

/* Home page: the opening section of theglobalfund.org (impact figures on the left, when there are any, and sections) */
.show-for-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.section-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

    /* Without impact figures the sections take the full width. */
    .section-group > :only-child {
        grid-column: 1 / -1;
    }

@media screen and (max-width: 1023.98px) {
    .section-group {
        grid-template-columns: 1fr;
    }

    /* The text takes the full width, so the whole map is faded under it. */
    .page-intro.hero::before {
        background:
            linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)),
            url('images/site/hero.svg') center / cover no-repeat;
    }

    .page-intro.hero > *,
    .page-intro.banner > * {
        max-width: none;
    }

    .page-intro.banner::before {
        background:
            linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
            var(--banner-image) center / cover no-repeat;
    }
}

.introduction {
    margin-bottom: 1.5rem;
}

    .introduction .impact {
        padding-top: 1.5rem;
    }

        .introduction .impact .impact-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

            .introduction .impact .impact-card .impact-icon {
                flex-shrink: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 50px;
                height: 50px;
                border-radius: 50%;
                color: #fff;
                background: var(--gf-navy);
            }

                .introduction .impact .impact-card .impact-icon.hiv { background: var(--gf-blue); }
                .introduction .impact .impact-card .impact-icon.tb { background: var(--gf-teal); }
                .introduction .impact .impact-card .impact-icon.malaria { background: var(--gf-light-blue); color: var(--gf-navy); }

            .introduction .impact .impact-card .impact-description .impact-figure {
                font-size: clamp(1.3rem, calc(1.28rem + .1vw), 1.4rem);
                font-weight: 600;
            }

            .introduction .impact .impact-card .impact-description .impact-subfigure {
                font-size: clamp(1.1rem, calc(1.08rem + .1vw), 1.2rem);
            }

/* The two main sections, side by side on the right of the mission. */
.cards-grid.side-by-side {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 639.98px) {
    .cards-grid.side-by-side {
        grid-template-columns: 1fr;
    }
}

/* A solid palette colour for each: Downloads navy, API Reference teal, Questions & issues light blue. The Questions &
   issues page uses the same cards for its two ways in. */
.cards-grid.side-by-side li:nth-child(1) .card {
    background-color: var(--gf-navy);
    border-color: var(--gf-navy);
}

    .cards-grid.side-by-side li:nth-child(1) .card .card-title,
    .cards-grid.side-by-side li:nth-child(1) .card .card-text {
        color: #fff;
    }

.cards-grid.side-by-side li:nth-child(2) .card {
    background-color: var(--gf-teal);
    border-color: var(--gf-teal);
}

    .cards-grid.side-by-side li:nth-child(2) .card .card-text {
        color: var(--gf-navy);
    }

.cards-grid.side-by-side li:nth-child(3) .card {
    background-color: var(--gf-light-blue);
    border-color: var(--gf-light-blue);
}

    .cards-grid.side-by-side li:nth-child(3) .card .card-title,
    .cards-grid.side-by-side li:nth-child(3) .card .card-text {
        color: var(--gf-navy);
    }

    .cards-grid.side-by-side .card:hover {
        border-color: var(--gf-light-blue);
    }

    .cards-grid.side-by-side .card::after {
        background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, .15) 100%);
    }

/* Footer */
footer {
    background-color: var(--gf-surface-muted);
    border-top: var(--gf-line) solid 1px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

    footer .content-area {
        max-width: 1440px;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0 auto;
    }

    footer .footer-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    footer .footer-columns {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        flex: 1 1 600px;
        max-width: 75%;
    }

    footer .content-area h3.footer-subtitle {
        font-size: clamp(1.1rem, calc(1.08rem + .1vw), 1.2rem);
        font-weight: 700;
        margin-top: 0;
        margin-bottom: .5rem;
    }

    footer .content-area ul.footer-links {
        list-style: none;
        margin: 0 0 1.5rem;
        padding: 0;
        font-size: clamp(.8rem, calc(.78rem + .1vw), .9rem);
    }

        footer .content-area ul.footer-links li {
            margin-bottom: .5rem;
        }

            footer .content-area ul.footer-links li a {
                color: var(--gf-text-secondary);
                font-weight: 400;
                text-decoration: none;
            }

                footer .content-area ul.footer-links li a:focus-visible,
                footer .content-area ul.footer-links li a:hover {
                    color: var(--gf-blue);
                    text-decoration: underline;
                }

    footer .content-area .footer-social-links {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: right;
    }

        footer .content-area .footer-social-links li {
            display: inline-block;
        }

            footer .content-area .footer-social-links li a:focus-visible {
                outline: 2px solid var(--gf-teal);
                outline-offset: 2px;
                border-radius: 2px;
            }

    footer .content-area .footer-copyright {
        text-align: center;
        font-size: clamp(.7rem, calc(.68rem + .1vw), .8rem);
    }

.action-icon {
    display: block;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    color: var(--gf-text-secondary);
    transition: color .2s ease;
}

.footer-social-links .action-icon {
    margin-left: 2rem;
}

.footer-social-links a:focus-visible .action-icon,
.footer-social-links a:hover .action-icon {
    color: var(--gf-blue);
}

@media screen and (max-width: 639.98px) {
    footer .footer-columns {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    footer .content-area .footer-social-links {
        text-align: left;
    }

    .footer-social-links li:first-child .action-icon {
        margin-left: 0;
    }
}

/* Downloads: a card a shared link points at. The margin keeps it clear of the fixed header when scrolled to. */
.download-anchor {
    scroll-margin-top: 110px;
}

.download-highlighted {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

/* Downloads: the facts about a file under its description (when it was updated, its size, its rows), and the list
   of its columns. */
.download-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}

.download-facts li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-contents {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    padding: 0 8px 8px;
}

.download-columns .download-column-name {
    word-break: break-word;
}

/* API Reference: the link to report a problem with the version shown. */
.api-report {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: .75rem 0;
    color: var(--gf-text-secondary);
    font-size: .95rem;
}

/* Downloads: the link to report a problem with a file, beside its Download button. */
.download-report {
    color: var(--gf-text-secondary);
    font-weight: 500;
    margin-right: .5rem;
}

/* Questions & issues: the forms, as pills like the home page's Learn More topics. */
.issues-help {
    margin-bottom: 3rem;
}

    .issues-help h2 {
        margin-top: 0;
    }

.issue-forms-intro {
    margin: 1.5rem 0 .75rem;
    font-weight: 600;
}

.issue-forms {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.issue-form-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: 0 1.1rem 0 .9rem;
    border: 1px solid var(--gf-line);
    border-radius: 2rem;
    background-color: var(--gf-surface-muted);
    color: var(--gf-text);
    font-weight: 700;
    font-size: clamp(.85rem, calc(.83rem + .1vw), .95rem);
    text-decoration: none;
    transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

    .issue-form-pill .mud-icon-root {
        color: var(--gf-blue);
    }

    .issue-form-pill:hover,
    .issue-form-pill:focus-visible {
        border-color: var(--gf-teal);
        background-color: #fff;
        color: var(--gf-blue);
    }

.issue-forms-note {
    margin: 1rem 0 0;
    color: var(--gf-text-secondary);
    font-size: .95rem;
}

/* Questions & issues: the recent issues beside the guidance, which moves below them on narrow screens. */
.issues-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.issues-recent {
    flex: 999 1 560px;
    min-width: 0;
    overflow: hidden;
}

.issues-aside {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issues-panel {
    border: 1px solid var(--gf-line);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

    .issues-panel h2 {
        font-size: clamp(1.1rem, calc(1.08rem + .1vw), 1.25rem);
        margin: 0 0 .75rem;
    }

    .issues-panel.issues-recent {
        padding: 0;
    }

    .issues-panel ol {
        margin: 0;
        padding-left: 1.25rem;
    }

        .issues-panel ol li + li {
            margin-top: .6rem;
        }

.issues-recent-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem .5rem;
}

    .issues-recent-header h2 {
        font-size: clamp(1.3rem, calc(1.28rem + .1vw), 1.5rem);
        margin: 0;
    }

.issues-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--gf-line);
}

    .issues-toolbar .mud-tab {
        text-transform: none;
        font-weight: 600;
    }

.issue-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.issue-row {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gf-line);
}

    .issue-row:hover {
        background-color: var(--gf-surface-muted);
    }

    .issue-row:last-child {
        border-bottom: none;
    }

.issue-state {
    flex-shrink: 0;
    margin-top: 2px;
}

    .issue-state.issue-open {
        color: #00857f;
    }

    .issue-state.issue-closed {
        color: var(--gf-blue);
    }

.issue-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.issue-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

main a.issue-title {
    color: var(--gf-text);
    font-weight: 600;
    text-decoration: none;
}

    main a.issue-title:hover,
    main a.issue-title:focus-visible {
        color: var(--gf-blue);
        text-decoration: underline;
    }

.issue-meta,
.issue-comments {
    font-size: .82rem;
    color: var(--gf-text-secondary);
}

.issue-comments {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    flex-shrink: 0;
}

.issues-empty {
    margin: 0;
    padding: 2rem 1.5rem;
    color: var(--gf-text-secondary);
    text-align: center;
}

/* The repository's labels: its area (api, website, data) outlined, its status filled. */
.issue-label {
    display: inline-block;
    padding: 1px .5rem;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.issue-label-area {
    border: 1px solid var(--gf-line);
    color: var(--gf-text-secondary);
}

.issue-label-triage {
    background: #f0f1f3;
    color: #3d434a;
}

.issue-label-confirmed {
    background: #e3ecf5;
    color: var(--gf-blue);
}

.issue-label-needs-info {
    background: #fbf1cc;
    color: #5c4600;
}

.issue-label-planned {
    background: #d6f3f1;
    color: #005450;
}

.issue-label-wontfix {
    background: #f0f1f3;
    color: #495057;
}

.issue-statuses {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .6rem .75rem;
    align-items: baseline;
    margin: 0;
}

    .issue-statuses dd {
        margin: 0;
    }

.issues-security {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background-color: var(--gf-surface-muted);
    border-color: var(--gf-surface-muted);
}

    .issues-security > .mud-icon-root {
        flex-shrink: 0;
        color: var(--gf-navy);
        margin-top: 2px;
    }

    .issues-security h2 {
        margin-bottom: .25rem;
    }

    .issues-security p {
        margin: 0;
    }

/* IATI: the banner image, the description beside the publication details, the organisation file, then the activity
   files as a table with a pager and the bar of the files picked. */
.iati-banner {
    --banner-image: url('images/site/iati-header.svg');
}

.iati-paper {
    border: 1px solid var(--gf-line);
    border-radius: 10px;
    background: #fff;
}

.iati-muted {
    color: var(--gf-text-secondary);
}

.iati-about {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

    .iati-about h2 {
        margin-top: 0;
    }

    .iati-about p {
        line-height: 1.65;
        margin: 0 0 1rem;
    }

.iati-whats-in {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

    .iati-whats-in .iati-paper {
        padding: 1rem 1.25rem;
    }

    .iati-whats-in h3 {
        margin: 0 0 .4rem;
        font-size: 1.05rem;
    }

    .iati-whats-in ul {
        margin: 0;
        padding-left: 1.1rem;
        color: var(--gf-text-secondary);
        font-size: .9rem;
        line-height: 1.6;
    }

.iati-facts {
    padding: 1rem 1.25rem;
    display: grid;
    gap: .9rem;
    align-content: start;
}

.iati-overline {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gf-text-secondary);
}

.iati-fact {
    display: flex;
    gap: .85rem;
    align-items: center;
}

.iati-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: var(--gf-navy);
}

.iati-fact:nth-of-type(3) .iati-badge {
    background: var(--gf-blue);
}

.iati-fact:nth-of-type(4) .iati-badge {
    background: var(--gf-teal);
    color: var(--gf-navy);
}

.iati-fact:nth-of-type(5) .iati-badge {
    background: var(--gf-light-blue);
    color: var(--gf-navy);
}

.iati-label {
    font-size: .8rem;
    color: var(--gf-text-secondary);
}

.iati-value {
    font-weight: 600;
}

.iati-outlinks {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding-top: .5rem;
    border-top: 1px solid var(--gf-line);
}

.iati-section-title {
    margin: 0 0 .25rem;
}

.iati-section-lead {
    margin: 0 0 1.25rem;
    color: var(--gf-text-secondary);
}

.iati-subtitle {
    margin: 0 0 .75rem;
}

.iati-org {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}

    .iati-org h3 {
        margin: 0;
        font-size: 1.05rem;
    }

.iati-org-avatar {
    background-color: var(--gf-teal) !important;
    color: var(--gf-navy) !important;
}

.iati-org-text {
    flex: 1;
    min-width: 0;
}

.iati-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-bottom: .75rem;
}

    .iati-toolbar .iati-search {
        flex: 1 1 320px;
        margin: 0;
    }

    .iati-toolbar .iati-select {
        flex: 0 1 220px;
        margin: 0;
    }

.iati-chips {
    margin-bottom: 1rem;
}

.iati-table-wrap {
    overflow-x: auto;
}

.iati-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

    .iati-table th {
        text-align: left;
        font-weight: 600;
        font-size: .8rem;
        color: var(--gf-text-secondary);
        padding: .35rem .75rem;
        border-bottom: 1px solid var(--gf-line);
        background: var(--gf-surface-muted);
        white-space: nowrap;
    }

    .iati-table td {
        padding: .2rem .75rem;
        border-bottom: 1px solid var(--gf-line);
        vertical-align: middle;
    }

    .iati-table tbody tr:hover {
        background: #f9fafb;
    }

    .iati-table tbody tr.iati-selected {
        background: rgba(195, 237, 253, .35);
    }

    .iati-table .iati-check {
        width: 44px;
        padding-left: .25rem;
        padding-right: 0;
    }

    .iati-table .iati-check .mud-input-control {
        margin: 0;
    }

    .iati-table .iati-code {
        font-family: ui-monospace, Consolas, monospace;
        font-weight: 600;
        white-space: nowrap;
    }

    .iati-table .iati-num {
        text-align: right;
        white-space: nowrap;
    }

    .iati-table .iati-empty {
        text-align: center;
        padding: 2rem;
        color: var(--gf-text-secondary);
    }

.iati-pill {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .1rem .5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.iati-component-hiv {
    background: var(--gf-blue);
    color: #fff;
}

.iati-component-tb {
    background: var(--gf-teal);
    color: var(--gf-navy);
}

.iati-component-malaria {
    background: var(--gf-light-blue);
    color: var(--gf-navy);
}

.iati-component-rssh {
    background: var(--gf-navy);
    color: #fff;
}

.iati-component-multi {
    background: var(--gf-surface-muted);
    color: var(--gf-text);
    border: 1px solid var(--gf-line);
}

.iati-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

    .iati-status::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #b0b6bb;
    }

    .iati-status.iati-status-active::before {
        background: #5ba053;
    }

    .iati-status.iati-status-pipeline::before {
        background: var(--gf-teal);
    }

    .iati-status.iati-status-suspended::before {
        background: #ecc854;
    }

.iati-row-link {
    color: var(--gf-text-secondary);
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
}

    .iati-row-link:hover {
        color: var(--gf-blue);
        background: rgba(1, 62, 119, .06);
    }

.iati-select-hint {
    padding: .55rem .75rem;
    background: rgba(195, 237, 253, .45);
    border-bottom: 1px solid var(--gf-line);
    font-size: .875rem;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

    .iati-select-hint button {
        background: none;
        border: 0;
        font: inherit;
        font-weight: 600;
        color: var(--gf-blue);
        cursor: pointer;
        text-decoration: underline;
        padding: 0 .25rem;
    }

.iati-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    padding: .4rem .75rem;
    font-size: .85rem;
    color: var(--gf-text-secondary);
}

.iati-per-page {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

    .iati-per-page .iati-per-page-select {
        width: 72px;
        margin: 0;
    }

.iati-range {
    flex: 1;
}

/* The files picked: stays at the bottom of the window while there are any. */
.iati-selection-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    padding: .85rem 1.25rem;
    background: var(--gf-navy);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
}

    .iati-selection-bar .iati-spacer {
        flex: 1;
    }

    .iati-selection-bar .iati-bar-text {
        color: #fff;
    }

    .iati-selection-bar .iati-bar-download {
        background-color: var(--gf-teal);
        color: var(--gf-navy);
    }

        .iati-selection-bar .iati-bar-download:hover {
            background-color: #33c4be;
        }

@media (max-width: 1023.98px) {
    .iati-about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639.98px) {
    .iati-whats-in {
        grid-template-columns: 1fr;
    }

    .iati-org {
        flex-wrap: wrap;
    }

    .iati-table .iati-hide-sm {
        display: none;
    }

    .iati-selection-bar {
        gap: .25rem .5rem;
        padding: .6rem .85rem;
    }

        .iati-selection-bar > .mud-icon-root,
        .iati-selection-bar .iati-spacer {
            display: none;
        }

        .iati-selection-bar .iati-bar-download {
            flex: 1;
        }
}
