:root {
    --sahale-navy: #172c4f;
    --sahale-forest: #315844;
    --sahale-sage: #f2f5ef;
    --sahale-white: #fff;
    --sahale-text: #26364b;
    --sahale-muted: #414b46;
    --sahale-line: #dce4da;
    --sahale-accent: #a56e38;
    --sahale-body-font: Ubuntu, Arial, sans-serif;
    --sahale-heading-font: Merriweather, Georgia, serif;
    --sahale-title-size: clamp(2.125rem, 4vw, 2.75rem);
    --sahale-section-title-size: clamp(1.75rem, 3vw, 2.25rem);
    --sahale-subtitle-size: 1.25rem;
    --sahale-band-space: clamp(2rem, 4.5vw, 3.75rem);
    --sahale-radius: 0.5rem;
}

/* Keep registration and donation destinations clear of the sticky header. */
:is(.sahale-registration, #monthly-donations, #one-time-donations, #in-kind-donations) {
    scroll-margin-top: 7.5rem;
}

body[data-static-preview] .edgtf-content,
body[data-static-preview] .edgtf-content-inner > :is(.edgtf-container, .edgtf-full-width) {
    background-color: var(--sahale-white);
}

body[data-static-preview] .edgtf-content-inner {
    color: var(--sahale-text);
    font: 1rem/1.65 var(--sahale-body-font);
}

body[data-static-preview] .edgtf-title.edgtf-title-image-responsive:has(> .edgtf-title-image > img) {
    height: auto !important;
    overflow: hidden;
}

body[data-static-preview] .edgtf-title.edgtf-title-image-responsive > .edgtf-title-image > img {
    height: auto;
    max-height: min(46vh, 26rem);
    object-fit: cover;
}

body[data-static-preview] .edgtf-title.edgtf-title-image-responsive > .edgtf-title-holder {
    height: 100% !important;
}

body[data-static-preview] .edgtf-content-inner :is(.wp-block-paragraph, .wp-block-list, .wp-block-list li) {
    color: var(--sahale-text);
    font-family: var(--sahale-body-font);
}

body[data-static-preview]:not(.home) .edgtf-content-inner :is(.wp-block-paragraph, .wp-block-list):where(:not(.wp-block-column *)) {
    max-inline-size: 72ch;
}

body[data-static-preview] .edgtf-content-inner :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--sahale-heading-font);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-transform: none;
}

body[data-static-preview] .edgtf-content-inner :is(h1, h2, h3, h4, h5, h6):where(:not(.edgtf-title *)) {
    color: var(--sahale-navy);
}

body[data-static-preview] .edgtf-content-inner h1,
body[data-static-preview].single-post .edgtf-content-inner .edgtf-blog-single .edgtf-post-title {
    font-size: var(--sahale-title-size);
}

body[data-static-preview] .edgtf-content-inner h2 { font-size: var(--sahale-section-title-size); }
body[data-static-preview] .edgtf-content-inner h3 { font-size: var(--sahale-subtitle-size); }

body[data-static-preview] .edgtf-content-inner h2.has-text-align-center {
    text-align: start;
}

body[data-static-preview] .edgtf-content-inner :is(h4, h5, h6) {
    font: 700 1rem/1.4 var(--sahale-body-font);
}

body[data-static-preview] .edgtf-content-inner :is(h1, h2, h3, h4, h5, h6) a {
    color: inherit;
}

body[data-static-preview] .edgtf-content-inner :is(.wp-block-paragraph, .wp-block-list) a {
    color: var(--sahale-forest);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

body[data-static-preview] .edgtf-content-inner .wp-block-quote {
    border-color: var(--sahale-forest);
}

body[data-static-preview] .edgtf-content-inner .wp-block-separator {
    border-color: var(--sahale-line);
    opacity: 1;
}

body[data-static-preview] .edgtf-content-inner .wp-block-button__link:not(.has-background) {
    background: var(--sahale-navy);
    border-radius: 0.375rem;
    color: var(--sahale-white);
    font-family: var(--sahale-body-font);
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

body[data-static-preview] .edgtf-content-inner .wp-block-button__link:not(.has-background):hover {
    background: var(--sahale-forest);
}

.sahale-donate-options {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-block: var(--sahale-band-space);
}

.sahale-donate-option {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
}

.sahale-donate-option h2,
.sahale-donate-option h4 {
    margin: 0;
}

.sahale-donate-option h4 {
    margin-top: 0.625rem;
}

@media (min-width: 62rem) {
    .sahale-donate-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .sahale-donate-option {
        grid-template-rows: subgrid;
        grid-row: span 2;
    }
}

.sahale-contact-details a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 781px) {
    .sahale-contact-layout > .sahale-contact-details {
        order: -1;
    }
}

.sahale-events-gala {
    max-inline-size: 24rem;
    margin-bottom: clamp(1rem, 3vw, 2.5rem);
}

.sahale-events-gala h3 {
    margin-bottom: 0.375rem;
}

.sahale-events-gala-date {
    margin: 0 0 0.75rem;
    color: var(--sahale-muted);
    font: 700 0.9375rem/1.5 var(--sahale-body-font);
}

.sahale-events-gala .wp-block-image {
    margin: 0;
}

.sahale-events-gala img {
    display: block;
}

.sahale-staff-summary h2 {
    margin: 0;
}

.sahale-staff-summary .wp-block-paragraph {
    margin: 0.25rem 0 0;
}

.sahale-trips-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.sahale-trips-category {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    color: var(--sahale-navy);
    font-weight: 700;
}

.sahale-trips-category img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--sahale-radius);
    object-fit: cover;
}

.sahale-trips-category span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.375rem;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.sahale-trips-category:hover {
    color: var(--sahale-forest);
}

.sahale-trips-upcoming,
.sahale-trips-scholarship {
    display: grid;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--sahale-radius);
    background: var(--sahale-sage);
}

.sahale-trips-upcoming {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    margin-block: clamp(1.25rem, 3vw, 2rem);
}

.sahale-trips-scholarship {
    grid-template-columns: minmax(0, 1fr) auto;
    border-inline-start: 3px solid var(--sahale-forest);
}

.sahale-trips-upcoming .wp-block-image,
.sahale-trips-upcoming h2,
.sahale-trips-scholarship h2 {
    margin: 0;
}

.sahale-trips-upcoming img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--sahale-radius);
}

.sahale-trips-upcoming .wp-block-paragraph,
.sahale-trips-scholarship .wp-block-paragraph {
    margin: 0.75rem 0 0;
}

.sahale-trips-upcoming-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: 1rem;
}

.sahale-trips-upcoming-actions a,
.sahale-trips-scholarship .wp-block-button__link {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    min-height: 44px;
}

.sahale-trips-secondary-action {
    color: var(--sahale-forest);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body[data-static-preview] .edgtf-content-inner .sahale-trips-spotlight-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--sahale-forest);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 48rem) {
    .sahale-trips-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sahale-trips-upcoming,
    .sahale-trips-scholarship {
        grid-template-columns: minmax(0, 1fr);
    }
}

body[data-static-preview] .edgtf-page-header .edgtf-sticky-header .edgtf-sticky-holder {
    background: var(--sahale-white);
    border-bottom: 1px solid var(--sahale-line);
}

body[data-static-preview] .edgtf-page-header .edgtf-sticky-header:not(.header-appear) {
    visibility: hidden;
}

body[data-static-preview] .edgtf-sticky-header .edgtf-main-menu > ul > li > a {
    color: var(--sahale-navy);
}

body[data-static-preview] .edgtf-sticky-header .edgtf-main-menu > ul > li:is(:hover, .edgtf-active-item) > a,
body[data-static-preview] .edgtf-sticky-header .edgtf-main-menu > ul > li > a:not(.edgtf-menu-hover-effect):hover {
    color: var(--sahale-navy) !important;
}

body[data-static-preview] .edgtf-sticky-header .edgtf-logo-wrapper a img.edgtf-normal-logo {
    opacity: 0;
}

body[data-static-preview] .edgtf-sticky-header .edgtf-logo-wrapper a img.edgtf-dark-logo {
    opacity: 1;
}

body[data-static-preview] .edgtf-page-header .edgtf-drop-down .edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner li {
    background-color: transparent;
    transition: none;
}

/* Override the theme's important hover text color without animating the text. */
body[data-static-preview] .edgtf-page-header .edgtf-drop-down .edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner li > a {
    color: var(--sahale-navy) !important;
    transition: background-color 120ms ease-out;
}

body[data-static-preview] .edgtf-page-header .edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner li:is(:hover, :has(a:focus-visible)) > a {
    background-color: var(--sahale-line);
}

body[data-static-preview] .edgtf-page-header .edgtf-drop-down li:focus-within > .edgtf-menu-second {
    height: auto !important;
    opacity: 1;
    overflow: visible;
    visibility: visible;
}

body[data-static-preview] .edgtf-page-header .edgtf-drop-down .edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner li > ul {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease-out;
}

body[data-static-preview] .edgtf-page-header .edgtf-drop-down .edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner li:is(:hover, :focus-within) > ul {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    overflow: visible;
}

body[data-static-preview] :is(.edgtf-page-header, .edgtf-mobile-header, .edgtf-content-inner) a:focus-visible {
    outline: 2px solid var(--sahale-navy);
    outline-offset: 3px;
}

body[data-static-preview] .edgtf-content-inner .sahale-home-contact-band a:focus-visible {
    outline-color: var(--sahale-white);
}

body[data-static-preview] .edgtf-drop-down .edgtf-menu-second a:focus-visible {
    outline-offset: -3px;
}

.edgtf-mobile-header :is(.sahale-mobile-menu-toggle, button.mobile_arrow) {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: var(--sahale-navy);
    font: inherit;
    cursor: pointer;
}

.edgtf-mobile-header .sahale-mobile-menu-toggle {
    height: 100%;
    padding: 0 10px 0 0;
}

.edgtf-mobile-header :is(.sahale-mobile-menu-toggle, button.mobile_arrow):focus-visible {
    outline: 2px solid var(--sahale-navy);
    outline-offset: -3px;
}

.edgtf-mobile-header .edgtf-mobile-nav {
    max-block-size: calc(100vh - 100px);
    max-block-size: calc(100dvh - 100px);
    overflow: auto;
}

.edgtf-mobile-header.edgtf-animate-mobile-header:has(.sahale-mobile-menu-toggle[aria-expanded="true"]) .edgtf-mobile-header-inner {
    transform: translateY(0);
}

.edgtf-mobile-header .edgtf-mobile-nav:not([hidden]),
.edgtf-mobile-header .edgtf-mobile-nav .sub_menu:not([hidden]) {
    display: block;
    animation: sahale-mobile-menu-in 150ms ease-out;
}

.edgtf-mobile-header .edgtf-mobile-nav[hidden],
.edgtf-mobile-header .edgtf-mobile-nav .sub_menu[hidden] {
    display: none !important;
}

@keyframes sahale-mobile-menu-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.edgtf-mobile-header .edgtf-mobile-nav a {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.edgtf-mobile-header .edgtf-mobile-nav li.edgtf-has-sub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
}

.edgtf-mobile-header .edgtf-mobile-nav li.edgtf-has-sub > .sub_menu {
    grid-column: 1 / -1;
}

.edgtf-mobile-header .edgtf-mobile-nav button.mobile_arrow {
    position: static;
    justify-content: flex-end;
    height: auto;
    padding: 0 10px 0 0;
    border-bottom: 1px solid #eaeaea;
    line-height: normal;
}

@media (prefers-reduced-motion: reduce) {
    body[data-static-preview] .edgtf-page-header .edgtf-main-menu :is(a, .edgtf-item-inner, .edgtf-item-outer, .edgtf-menu-second, .edgtf-menu-second ul),
    body[data-static-preview] .edgtf-mobile-header :is(.edgtf-mobile-header-inner, .mobile_arrow .edgtf-sub-arrow) {
        transition: none !important;
    }

    .edgtf-mobile-header .edgtf-mobile-nav:not([hidden]),
    .edgtf-mobile-header .edgtf-mobile-nav .sub_menu:not([hidden]) {
        animation: none;
    }
}

body[data-static-preview] footer.edgtf-footer-uncover {
    position: relative;
    inset: auto;
    z-index: auto;
}

/* The theme sets an inline offset for its fixed footer. Normal flow needs no offset. */
body[data-static-preview] .edgtf-wrapper-inner:has(> footer.edgtf-footer-uncover) > .edgtf-content {
    margin-bottom: 0 !important;
}

body[data-static-preview] footer .edgtf-footer-bottom-holder {
    padding-block: clamp(1.25rem, 3vw, 2rem);
    border-top: 1px solid rgb(255 255 255 / 0.16);
    background: var(--sahale-navy);
    color: var(--sahale-white);
    font-family: var(--sahale-body-font);
}

.edgtf-footer-bottom-holder .edgtf-container-inner {
    width: min(74rem, calc(100% - clamp(2rem, 7vw, 5rem)));
}

.edgtf-footer-bottom-holder .edgtf-three-columns > .edgtf-three-columns-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.edgtf-footer-bottom-holder .edgtf-three-columns-inner > .edgtf-column {
    width: auto;
    min-width: 0;
    float: none;
}

.edgtf-footer-bottom-holder .edgtf-three-columns-inner > .edgtf-column:nth-child(2),
.edgtf-footer-bottom-holder .widget:has(> .wp-block-spacer) {
    display: none;
}

.edgtf-footer-bottom-holder .edgtf-three-columns-inner > .edgtf-column > .edgtf-column-inner {
    padding: 0;
}

.edgtf-footer-bottom-holder .edgtf-three-columns-inner > .edgtf-column:first-child > .edgtf-column-inner {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.edgtf-footer-bottom-holder .widget_block,
.edgtf-footer-bottom-holder .wp-block-image,
.edgtf-footer-bottom-holder p.wp-block-paragraph {
    margin: 0;
}

.edgtf-footer-bottom-holder .widget_media_image,
.edgtf-footer-bottom-holder .widget_media_image .wp-block-image {
    width: 100%;
    min-width: 0;
}

.edgtf-footer-bottom-holder .widget_media_image .wp-block-image {
    display: block;
}

.edgtf-footer-bottom-holder .wp-image-193 {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.edgtf-footer-bottom-holder p.wp-block-paragraph {
    color: var(--sahale-white);
    font: 0.875rem/1.55 var(--sahale-body-font);
    opacity: 0.85;
}

.edgtf-footer-bottom-holder .wp-block-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    padding-inline-end: 5rem;
    list-style: none;
}

.edgtf-footer-bottom-holder .wp-block-list li {
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

.edgtf-footer-bottom-holder .wp-block-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--sahale-white);
    font-family: var(--sahale-body-font);
    text-underline-offset: 0.2em;
}

.edgtf-footer-bottom-holder .wp-block-list a:hover {
    color: var(--sahale-white);
    text-decoration: underline;
}

.edgtf-footer-bottom-holder .wp-block-list a:focus-visible {
    outline: 2px solid var(--sahale-white);
    outline-offset: 2px;
}

@media (max-width: 48rem) {
    .edgtf-footer-bottom-holder .edgtf-three-columns > .edgtf-three-columns-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .edgtf-footer-bottom-holder .edgtf-three-columns-inner > .edgtf-column:first-child > .edgtf-column-inner {
        grid-template-columns: 4.75rem minmax(0, 1fr);
    }

    .edgtf-footer-bottom-holder .wp-block-list {
        justify-content: flex-start;
        column-gap: 1rem;
        padding-inline-end: 0;
    }
}

@media (max-width: 46rem) {
    body[data-static-preview] #edgtf-back-to-top {
        display: none;
    }
}
