/* 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');
}

/* 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(2, minmax(0, 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. */
.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 .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;
}
