/* 
 * Color palette based on Grants Office green color (#2E443A)
 * Additional colors are created via shifting the L (Lightness) value in the HSL
 */
:root {
    /* Font family variables */
    --dxp-s-body-font-family: 'Poppins', sans-serif;
    --dxp-g-sna-heading-font-family: 'Poppins', sans-serif;
    --lwc-fontFamily: 'Poppins', sans-serif;
    
    /* #1D211E */
    --color-go-green-text:hsl(135, 6.50%, 12.20%);
    /* #1D2B24 */
    --color-go-green-0:hsl(150, 19.40%, 14.10%);
    /* #2E443A */
    --color-go-green:hsl(153, 19.30%, 22.40%);
    --color-go-green-1: hsl(153, 19.30%, 22.40%);
    /* #527A68 */
    --color-go-green-2:hsl(153, 19.60%, 40.00%);
    /* #A4C1b4 */
    --color-go-green-3:hsl(153, 19.00%, 70.00%);
    /* #E1EAE6 */
    --color-go-green-4:hsl(153, 17.60%, 90.00%);
}

/*
 * Avoid horizontal overflow
 */
body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Add horizontal padding to the page */
.contentRegion {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Update the header to have one row instead of two */
.forceCommunityThemeHeaderStacked .themeHeaderInner {
    display: flex !important;
    justify-content: center !important;
    flex-direction: row !important;
    max-width: 1200px !important;
    margin: auto;
}
.forceCommunityThemeHeaderStacked {
    z-index: 100;
}
.forceCommunityThemeHeaderStacked .themeHeaderInner .themeHeaderTopRow,
.forceCommunityThemeHeaderStacked .themeHeaderInner .themeHeaderTopRowInner,
.forceCommunityThemeHeaderStacked .themeHeaderInner .themeHeaderBottomRow {
    width: min-content !important;
}
.forceCommunityThemeHeaderStacked .themeHeaderInner .themeHeaderTopRow {
    flex: 0;
}
.forceCommunityThemeHeaderStacked .themeHeaderInner .themeHeaderBottomRow {
    flex: 1 !important;
    padding-top: 14px !important;
    padding-bottom: 0 !important;
}
.forceCommunityThemeHeaderStacked .themeHeaderInner .forceCommunityThemeNav {
    display: flex;
    justify-content: flex-end;
    font-size: 18px;
    line-height: 32px;
    font-weight: 400;
}
.siteforceThemeLayoutStarter.isHeaderPinned-true>.a11y-banner {
    height: 98px;
}
.siteforceThemeLayoutStarter.isHeaderPinned-true>.a11y-banner>.header {
    position: relative !important;
}
.siteforceThemeLayoutStarter.isHeaderPinned-true>.a11y-banner>.spacer {
    display: none;
}

/* Fix the nav links styles */
.forceCommunityThemeNav li > a {
    padding: 0 !important;
    border-bottom-width: 3px !important;
}
/* TODO: Why are sign up/log in being collapsed into "More"? */
.forceCommunityThemeNav .comm-hide {
    display: block !important;
}
.forceCommunityThemeNav .themeNavMoreLink {
    display: none !important;
}

/* Style the hero section at the top of the homepage */
.hero {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    padding: 92px 0 64px 0;
}
.hero .background, .content-section .background {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100vw;
    z-index: -1;
}
.hero .background {
    /* Use a sample of the background image while the image loads */
    background-color: #5b6c64;
    background-image: url(hero.png);
    background-size: cover;
    background-position-y: bottom;
    background-repeat: no-repeat;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.29);
}
.hero h1 {
    font-weight: 700;
    font-size: 71.5px;
    line-height: 63px;
    letter-spacing: 2px;
    padding: 18.5px 0px;
    max-width: 50%;
}
.hero h2 {
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 0px;
    margin-bottom: 25px;
}
.hero .slds-button_brand {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    color: #FFFFFF;
    background-color: var(--color-go-green-0);
    padding: 18px 30px;
    border: 0;
    transition: all 0.3s;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.29);
    border-radius: 0;
}
.hero .slds-button_brand:hover {
    background-color: var(--color-go-green-2);
    color: var(--color-go-green-4);
}

/* Style the various sections on the homepage */
.content-section {
    padding: 72px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content-section.left > .slds-grid {
    flex-direction: row-reverse;
}
.content-section.light {
    color: var(--color-go-green-text);
}
.content-section.dark {
    color: #FFFFFF;
}
.content-section.dark .background {
    box-shadow: 0px 2px 8px rgba(0,0,0,0.29);
}
.content-section h2 {
    font-weight: 700;
    font-size: 46px;
    line-height: 62px;
    letter-spacing: 0px;
}
.content-section .content {
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: 0px;
}
.content-section .image {
    -webkit-filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.29));
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.29));
    max-width: 565px;
}
.content-section > .slds-grid {
    gap: 48px;
}
.content-section > .slds-grid > .slds-col {
    gap: 18px;
    display: flex;
    flex-direction: column;
}
.content-section .content p+p {
    margin-top: 18px;
}
.content-section.light .background {
    display: none;
}
.content-section.dark .background.overlay {
    background: linear-gradient(318deg, rgba(46, 68, 58, 0.7531) 0.78%, rgba(46, 68, 58, 1) 77.66%);
}
.content-section.dark .background {
    background-color: rgba(109, 124, 117, .5);
}

/* Record pages */
:root, body {
    --lwc-colorBorder: rgb(204,204,204);
    --lwc-cardColorBorder: rgb(204,204,204);
    --lwc-buttonColorBorderPrimary: var(--color-go-green-3);
    --lwc-colorBorderButtonDefault: var(--lwc-colorBorder);
    --lwc-colorBorderInput: var(--lwc-colorBorder);
    --lwc-pageHeaderColorBackground: rgba(0, 0, 0, 0.03);
    --lwc-colorBackgroundAltInverse: var(--color-go-green-2);
    --lwc-colorForegroundPrimary: rgb(251,251,251);
    --lwc-colorContentAreaBackground: rgb(251,251,251);
    font-size: 18px;
}

/* Fix the record header's highlights overflowing ontop of the path component */
.highlights {
    height: 155px !important;
}

/* Make the record header sticky */
.siteforceThemeLayoutStarter.isHeaderPinned-true>.a11y-banner>.header {
    z-index: 200;
}
.body, .contentRegion > div:first-child {
    position: relative;
}
.body > div:first-child > div:first-child > .ui-widget:first-child, .ui-widget:has(> .forceCommunityRecordHeadline) {
    position: sticky;
    z-index: 100;
    top: 0;
}

.ui-widget:has(> .forceCommunityRecordHeadline) {
    padding-top: 12px;
    background-color: rgb(251,251,251);
}

.body > div:first-child > div:first-child > .ui-widget:first-child .cb-section_column > div:first-child {
    background-color: rgb(251,251,251);
    margin-top: -43px;
    padding-top: 12px;
}

.slds-col--padded.contentRegion {
    padding: 0 !important;
}

.forceCommunityRecordHeadline {
    background-color: rgb(251,251,251);
}

.slds-page-header__detail-row {
    background-color: transparent !important;
}

.forceCommunityTabLayout .slds-tabs_default__nav .slds-tabs_default__item {
    letter-spacing: initial;
}

.forceCommunityTabLayout .slds-tabs_default__nav .slds-is-active .slds-tabs_default__link {
    font-weight: 600;
}

.slds-tabs_default__item.slds-active:after, .slds-tabs_default__item.slds-is-active:after, .slds-tabs--default__item.slds-active:after, .slds-tabs--default__item.slds-is-active:after {
    height: 2px;
}

.forceCommunityRecordDetail .slds-form__row {
    margin-bottom: 6px;
}

.slds-tabs_default {
    --lwc-cardColorBackground: var(--lwc-colorForegroundPrimary);
}

.ui-widget:has(> c-community-styles) {
    display: none;
}

.footer {
    color: #ffffff;
    display: flex;
    justify-content: center;
    position: relative;
}

.footer .background {
    background-color: var(--color-go-green-1);
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
}

.footer > .content {
    max-width: 1200px;
    padding: 32px 32px 20px;
    display: flex;
    flex-direction: column;
}

.footer > .content > .slds-grid:first-child {
    border-bottom: 1px solid var(--color-go-green-3);
    padding-bottom: 22px;
    margin-bottom: 22px;
}

.footer .logo {
    max-width: 240px;
}

.footer .slds-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer h3 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 22px;
    line-height: 28px;
    border-bottom: 1px solid var(--color-go-green-3);
    margin-bottom: 15px;
    width: fit-content;
    padding-bottom: 4px;
}

.footer a {
    color: #ffffff !important;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
}

.footer .slds-gutters {
    margin: 0;
}

.footer .slds-col:first-child {
    padding-left: 0;
}

.footer .slds-col:last-child {
    padding-right: 0;
}

.footer .socials {
    display: flex;
    gap: 24px;
}

.comm-content-footer {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}