.fastag-page {
    --fastag-dark: #171717;
    --fastag-text: #111827;
    --fastag-muted: #667085;
    --fastag-link: #5f83ec;
    --fastag-accent: #596ff1;
    --fastag-wide: 1840px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    color: var(--fastag-text);
}

.fastag-page *,
.fastag-page *::before,
.fastag-page *::after {
    box-sizing: border-box;
}

/*
 * The hero uses the same wide content width as the FAST reference page.
 * Sections below the hero span edge-to-edge; their content stays aligned
 * inside this same wide container.
 */
.fastag-container {
    width: min(calc(100% - 96px), var(--fastag-wide));
    max-width: var(--fastag-wide);
    margin-right: auto;
    margin-left: auto;
}

.fastag-hero {
    position: relative;
    width: 100%;
    padding: 72px 0 112px;
    padding-top: 190px !important;
    background: radial-gradient(90.43% 87.19% at 50% 110%, #06B0EF 0%, #043F6D 64.62%, #031B45 100%) !important;
    color: #fff;
    overflow: hidden;
}


.fastag-hero .fastag-container {
    position: relative;
    z-index: 1;
}

.fastag-breadcrumb-wrap {
    margin: 0 0 50px;
}

.fastag-title,
.fastag-page h2 {
    font-family: "canada-type-gibson", Gibson, Arial, sans-serif;
}

.fastag-title {
    max-width: 1500px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(54px, 4.95vw, 86px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.fastag-subtitle {
    max-width: 1080px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(24px, 1.9vw, 31px);
    line-height: 1.35;
    font-weight: 400;
}

.fastag-section {
    width: 100%;
    margin: 0;
}

/* Full-width dark grant section. */
.fastag-section--about {
    padding: 0;
    background: var(--fastag-dark);
    color: #fff;
}

.fastag-about-card {
    width: 100%;
    padding: 84px 76px 82px;
    background: transparent;
    color: #fff;
}

.fastag-about-card h2,
.fastag-investigator-content h2 {
    margin: 0;
    font-size: clamp(38px, 3.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.fastag-about-card h2 {
    color: #fff;
}

.fastag-richtext {
    font-size: 20px;
    line-height: 1.72;
}

.fastag-richtext p:first-child {
    margin-top: 0;
}

.fastag-richtext p:last-child {
    margin-bottom: 0;
}

.fastag-richtext a {
    text-decoration: underline;
}

.fastag-about-copy {
    max-width: 1250px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .88);
}

.fastag-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 54px;
}

.fastag-fact {
    min-height: 88px;
    padding: 3px 22px 3px 24px;
    border-left: 4px solid var(--fastag-accent);
}

.fastag-fact-label {
    margin-bottom: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.4;
}

.fastag-fact-value {
    color: #fff;
    font-size: clamp(20px, 1.7vw, 27px);
    line-height: 1.18;
    font-weight: 700;
}

/* Full-width white investigator section below the dark grant section. */
.fastag-section--investigator {
    padding: 96px 0 124px;
    background: #fff;
}

.fastag-investigator-grid {
    display: grid;
    grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
    gap: clamp(52px, 7vw, 104px);
    align-items: center;
    padding-right: 76px;
    padding-left: 76px;
}

.fastag-investigator-grid--no-image {
    grid-template-columns: minmax(0, 920px);
}

.fastag-investigator-media {
    width: 100%;
}

.fastag-investigator-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
}

.fastag-investigator-content h2 {
    color: #111827;
}

.fastag-investigator-bio {
    max-width: 760px;
    margin-top: 28px;
    color: #344054;
}

@media (max-width: 1100px) {
    .fastag-container {
        width: min(calc(100% - 64px), var(--fastag-wide));
    }

    .fastag-hero {
        padding: 60px 0 96px;
    }

    .fastag-breadcrumb-wrap {
        margin-bottom: 36px;
    }

    .fastag-about-card,
    .fastag-investigator-grid {
        padding-right: 44px;
        padding-left: 44px;
    }

    .fastag-title {
        max-width: 1050px;
    }
}

@media (max-width: 900px) {
    .fastag-hero {
        padding: 50px 0 76px;
    }

    .fastag-breadcrumb-wrap {
        margin-bottom: 28px;
    }

    .fastag-facts {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fastag-investigator-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .fastag-investigator-media {
        max-width: 680px;
    }
}

@media (max-width: 640px) {
    .fastag-container {
        width: min(calc(100% - 32px), var(--fastag-wide));
    }

    .fastag-hero {
        padding: 36px 0 52px;
    }

    .fastag-breadcrumb-wrap {
        margin-bottom: 22px;
    }

    .fastag-title {
        font-size: clamp(40px, 11vw, 56px);
        line-height: 1.06;
    }

    .fastag-subtitle {
        margin-top: 16px;
        font-size: 20px;
        line-height: 1.45;
    }

    .fastag-about-card {
        padding: 52px 18px 56px;
    }

    .fastag-richtext {
        font-size: 17px;
        line-height: 1.65;
    }

    .fastag-facts {
        margin-top: 40px;
    }

    .fastag-section--investigator {
        padding: 60px 0 76px;
    }

    .fastag-investigator-grid {
        gap: 34px;
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* =====================================================================
   Active Grants Grid Shortcode
   [fast_active_grants]
===================================================================== */
.fastag-grants-shortcode {
    --fastag-card-text: #111111;
    --fastag-card-link: #26335f;
    width: 100%;
}

.fastag-grants-shortcode *,
.fastag-grants-shortcode *::before,
.fastag-grants-shortcode *::after {
    box-sizing: border-box;
}

.fastag-grants-grid {
    display: grid;
    grid-template-columns: repeat(var(--fastag-grid-columns, 2), minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}

.fastag-grant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 290px;
    padding: 46px 48px 42px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.04);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(18, 24, 40, 0.13);
    text-align: center;
}

.fastag-grant-card__title {
    margin: 0 0 22px !important;
    color: var(--fastag-card-text) !important;
    font-family: "canada-type-gibson", Gibson, Arial, sans-serif;
    font-size: clamp(24px, 1.65vw, 31px) !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
    letter-spacing: -0.015em;
}

.fastag-grant-card__meta {
    max-width: 560px;
    margin: 0 auto 30px !important;
    color: #2f3136 !important;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.55 !important;
}

.fastag-grant-card__button,
.fastag-grant-card__button:visited {
    display: inline-block;
    margin-top: auto;
    padding: 0 0 4px;
    color: var(--fastag-card-link) !important;
    border-bottom: 2px solid rgba(38, 51, 95, 0.5);
    box-shadow: none !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.fastag-grant-card__button:hover,
.fastag-grant-card__button:focus {
    color: #111a3e !important;
    border-bottom-color: #111a3e;
    text-decoration: none !important;
}

.fastag-grants-empty {
    margin: 0;
}

@media (max-width: 900px) {
    .fastag-grants-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fastag-grant-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .fastag-grant-card {
        padding: 34px 24px 32px;
    }

    .fastag-grant-card__title {
        font-size: 24px !important;
    }

    .fastag-grant-card__meta {
        margin-bottom: 24px !important;
        font-size: 17px !important;
    }

    .fastag-grant-card__button {
        font-size: 18px;
    }
}
