/* Compatibility with the site's existing Spectra blocks and saved Astra tokens. */
#akshalok-site {
    --ast-global-color-0: #8b162b;
    --ast-global-color-1: #671022;
    --ast-global-color-2: #222222;
    --ast-global-color-3: #24282d;
    --ast-global-color-4: #f5f5f3;
    --ast-global-color-5: #ffffff;
    --ast-global-color-6: #d9d9d5;
    --ast-global-color-7: #222222;
    --ast-global-color-8: #f5f5f3;
    color: #222222;
    background-color: #ffffff;
}

/* Spectra's saved descendant colours must agree with the new light surfaces. */
#akshalok-site .entry-content .uagb-ifb-desc,
#akshalok-site .entry-content .uagb-ifb-title,
#akshalok-site .entry-content .uagb-heading-text,
#akshalok-site .entry-content .uagb-counter-block-number,
#akshalok-site .entry-content .uagb-counter-block-suffix,
#akshalok-site .entry-content .wp-block-uagb-counter__title {
    color: #222222 !important;
}

#akshalok-site .entry-content .wp-block-button__link,
#akshalok-site .entry-content .wp-block-button__link span,
#akshalok-site .entry-content .wp-block-button__link .uagb-button__link {
    color: #ffffff !important;
}

#akshalok-site .entry-content .wp-block-button__link:hover,
#akshalok-site .entry-content .wp-block-button__link:focus-visible {
    background-color: #671022 !important;
}

/* Remove the original hero's half-width spacer inside the new grid column. */
#akshalok-site .uagb-block-78054147.uagb-infobox__content-wrap,
#akshalok-site .uagb-block-78054147 .uagb-infobox-margin-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

#akshalok-site .uagb-block-78054147 .uagb-ifb-desc {
    margin: 0 0 24px !important;
}

#akshalok-site .uagb-block-3a07fb41 > .uagb-container-inner-blocks-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
    gap: 40px !important;
    align-items: center !important;
    justify-content: stretch !important;
}

/* The live pages contain both direct grids and grids with an inner wrapper. */
#akshalok-site .entry-content .uagb-layout-grid,
#akshalok-site .entry-content .uagb-layout-grid > .uagb-container-inner-blocks-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: start !important;
    justify-items: stretch !important;
}

#akshalok-site .entry-content .uagb-layout-grid:has(> .uagb-container-inner-blocks-wrap) {
    display: block !important;
}

#akshalok-site .entry-content .uagb-layout-grid > *,
#akshalok-site .entry-content .uagb-container-inner-blocks-wrap > * {
    min-width: 0;
}

#akshalok-site .entry-content .uagb-block-ec9fa64b {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px !important;
}

#akshalok-site .uagb-block-876cfa84,
#akshalok-site .uagb-block-6f458ff4 {
    padding: 0 !important;
    width: 100% !important;
}

#akshalok-site .entry-content .uagb-block-9c5c0bf0,
#akshalok-site .entry-content .uagb-block-58e97ee6 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

#akshalok-site .entry-content .uagb-block-9c5c0bf0 > * {
    width: auto !important;
    min-width: 0 !important;
}

#akshalok-site .entry-content .uagb-block-fe6825b8 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
}

#akshalok-site .entry-content .award-year {
    color: #8b162b !important;
}

/* Saved inline image widths should not constrain publication covers on mobile. */
#akshalok-site .publication-feature img {
    width: 100% !important;
    height: auto !important;
    max-width: 290px !important;
}

#akshalok-site .publication-gallery img {
    width: 100% !important;
    height: auto !important;
}

#akshalok-site .publication-feature {
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
}

#akshalok-site .publication-feature.wp-block-group {
    display: block;
}

@media (max-width: 1000px) {
    #akshalok-site .entry-content .uagb-block-58e97ee6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    #akshalok-site .entry-content .uagb-layout-grid,
    #akshalok-site .entry-content .uagb-layout-grid > .uagb-container-inner-blocks-wrap,
    #akshalok-site .entry-content .uagb-block-ec9fa64b,
    #akshalok-site .entry-content .uagb-block-fe6825b8,
    #akshalok-site .entry-content .uagb-block-58e97ee6,
    #akshalok-site .uagb-block-3a07fb41 > .uagb-container-inner-blocks-wrap {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    #akshalok-site .entry-content .uagb-block-9c5c0bf0 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    #akshalok-site .publication-feature {
        grid-template-columns: minmax(0, 1fr);
    }
}
