/**
 * Geo Mobile-First Compatibility Layer
 *
 * Responsive corrections only. Brand colors, backgrounds, font families,
 * content, and the original Divi design are intentionally preserved.
 */

/* --------------------------------------------------------------------------
   Safe foundations
   -------------------------------------------------------------------------- */

html:has(body.gmf-mobile-first-enabled) {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.gmf-mobile-first-enabled {
    min-width: 320px;
    overflow-x: hidden;
}

body.gmf-mobile-first-enabled #page-container,
body.gmf-mobile-first-enabled #et-boc,
body.gmf-mobile-first-enabled #et-main-area,
body.gmf-mobile-first-enabled #main-content,
body.gmf-mobile-first-enabled .entry-content,
body.gmf-mobile-first-enabled .et_builder_inner_content,
body.gmf-mobile-first-enabled .et_pb_section,
body.gmf-mobile-first-enabled .et_pb_row,
body.gmf-mobile-first-enabled .et_pb_column,
body.gmf-mobile-first-enabled .et_pb_module {
    min-width: 0;
    max-width: 100%;
}

body.gmf-mobile-first-enabled img,
body.gmf-mobile-first-enabled picture,
body.gmf-mobile-first-enabled svg,
body.gmf-mobile-first-enabled canvas,
body.gmf-mobile-first-enabled video {
    max-width: 100%;
    height: auto;
}

body.gmf-mobile-first-enabled iframe,
body.gmf-mobile-first-enabled embed,
body.gmf-mobile-first-enabled object {
    max-width: 100%;
}

body.gmf-mobile-first-enabled .et_pb_image,
body.gmf-mobile-first-enabled .et_pb_image_wrap,
body.gmf-mobile-first-enabled .et_pb_image_wrap img {
    max-width: 100%;
}

body.gmf-mobile-first-enabled .et_pb_image_wrap {
    display: inline-block;
}

body.gmf-mobile-first-enabled .et_pb_text_inner,
body.gmf-mobile-first-enabled .et_pb_blurb_description,
body.gmf-mobile-first-enabled .et_pb_promo_description,
body.gmf-mobile-first-enabled .et_pb_toggle_content,
body.gmf-mobile-first-enabled .et_pb_module_header,
body.gmf-mobile-first-enabled .et_pb_button {
    overflow-wrap: anywhere;
    word-break: normal;
}

body.gmf-mobile-first-enabled :where(input, select, textarea, button) {
    max-width: 100%;
}

body.gmf-mobile-first-enabled :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
}

body.gmf-mobile-first-enabled textarea {
    min-height: 120px;
    resize: vertical;
}

body.gmf-mobile-first-enabled :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

body.gmf-mobile-first-enabled [id] {
    scroll-margin-top: 110px;
}

/* Embedded forms and media retain their design but cannot escape the viewport. */
body.gmf-mobile-first-enabled .ep-iFrameContainer,
body.gmf-mobile-first-enabled .ep-wrapper,
body.gmf-mobile-first-enabled .et_pb_code_inner,
body.gmf-mobile-first-enabled .fluid-width-video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

body.gmf-mobile-first-enabled .ep-iFrameContainer iframe,
body.gmf-mobile-first-enabled iframe[id^="inline-"] {
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
}

/* Tables are wrapped by JS so the layout does not become wider than the phone. */
body.gmf-mobile-first-enabled .gmf-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

body.gmf-mobile-first-enabled .gmf-table-scroll > table {
    min-width: 600px;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Tablet corrections: 768px–980px
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 980px) {
    body.gmf-mobile-first-enabled .entry-content > .et-l--post .et_pb_row,
    body.gmf-mobile-first-enabled .entry-content .et_builder_inner_content > .et_pb_section > .et_pb_row {
        width: min(92%, 1080px) !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_section_0.et_pb_section {
        margin-top: 0 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_section_8 {
        min-height: 0 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_section_9.et_pb_section {
        margin-top: 0 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_row_inner_0,
    body.gmf-mobile-first-enabled .entry-content .et_pb_column .et_pb_row_inner_0 {
        padding-bottom: 48px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text h1 {
        font-size: clamp(2.4rem, 6vw, 3.8rem) !important;
        line-height: 1.1 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text h2,
    body.gmf-mobile-first-enabled .entry-content .et_pb_promo_description h2 {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
        line-height: 1.15 !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_section_0_tb_header,
    body.gmf-responsive-header-enabled .et-l--header .et_pb_row_0_tb_header {
        display: block !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_row_0_tb_header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 24px !important;
        display: grid !important;
        grid-template-columns: minmax(180px, 1.35fr) minmax(180px, 1fr) minmax(180px, 1fr);
        gap: 14px;
        align-items: center;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_column {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_column_1_tb_header {
        display: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_image_0_tb_header {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        transform: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_image_0_tb_header img {
        width: auto !important;
        max-height: 80px;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_button_0_tb_header_wrapper,
    body.gmf-responsive-header-enabled .et-l--header .et_pb_button_1_tb_header_wrapper {
        position: static !important;
        inset: auto !important;
        width: 100%;
        margin: 0 !important;
        transform: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_button {
        display: flex !important;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 9px 14px !important;
        font-size: 14px !important;
        white-space: normal;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Phone-first corrections: up to 767px
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    body.gmf-mobile-first-enabled [id] {
        scroll-margin-top: 150px;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_section {
        min-width: 0;
        padding-top: clamp(32px, 9vw, 48px);
        padding-bottom: clamp(32px, 9vw, 48px);
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_row,
    body.gmf-mobile-first-enabled #main-content > .container,
    body.gmf-mobile-first-enabled #main-content .container {
        width: calc(100% - 32px) !important;
        max-width: 1080px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_row.et_pb_row_fullwidth,
    body.gmf-mobile-first-enabled .entry-content .et_pb_section > .et_pb_row[style*="width: 100%"] {
        width: calc(100% - 32px) !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_column,
    body.gmf-mobile-first-enabled .entry-content .et_pb_column_inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        float: none !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_column:not(:last-child),
    body.gmf-mobile-first-enabled .entry-content .et_pb_column_inner:not(:last-child) {
        margin-bottom: 28px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_column_empty {
        display: none !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text h1,
    body.gmf-mobile-first-enabled .entry-content .et_pb_fullwidth_header h1 {
        font-size: clamp(2rem, 10vw, 2.75rem) !important;
        line-height: 1.08 !important;
        letter-spacing: normal !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text h2,
    body.gmf-mobile-first-enabled .entry-content .et_pb_promo_description h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
        line-height: 1.15 !important;
        letter-spacing: normal !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text h3 {
        font-size: clamp(1.45rem, 6.5vw, 1.9rem) !important;
        line-height: 1.2 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text h4,
    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb h4,
    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
        line-height: 1.25 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text,
    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb_description,
    body.gmf-mobile-first-enabled .entry-content .et_pb_promo_description,
    body.gmf-mobile-first-enabled .entry-content .et_pb_toggle_content {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text_align_justified,
    body.gmf-mobile-first-enabled .entry-content [style*="text-align: justify"] {
        text-align: left !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_button_wrapper,
    body.gmf-mobile-first-enabled .entry-content .et_pb_button_module_wrapper {
        width: 100%;
        max-width: 100%;
        text-align: center !important;
    }

    body.gmf-mobile-first-enabled .entry-content a.et_pb_button,
    body.gmf-mobile-first-enabled .entry-content button.et_pb_button,
    body.gmf-mobile-first-enabled .entry-content .et_pb_button {
        display: flex !important;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 11px 18px !important;
        white-space: normal;
        text-align: center;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_button:hover,
    body.gmf-mobile-first-enabled .entry-content .et_pb_module .et_pb_button:hover {
        padding: 11px 18px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_button::after {
        position: static;
        flex: 0 0 auto;
        margin-left: 0.35em !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb_position_left .et_pb_blurb_content {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb_position_left .et_pb_main_blurb_image,
    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb_position_left .et_pb_blurb_container {
        display: block;
        width: auto;
        padding: 0;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_blurb_position_top .et_pb_main_blurb_image {
        margin-bottom: 18px;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_accordion .et_pb_toggle {
        padding: 18px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_toggle_title {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding-right: 34px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_social_media_follow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_social_media_follow li {
        margin: 0 !important;
    }

    /* Correct the source page's known mobile overlaps without changing design. */
    body.gmf-mobile-first-enabled .entry-content .et_pb_section_0.et_pb_section {
        margin-top: 0 !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
        background-position: center center !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text_0 {
        margin: 0 0 24px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text_3 {
        margin-top: 16px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_section_8 {
        min-height: 0 !important;
        padding-bottom: 32px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_section_9.et_pb_section {
        margin-top: 0 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_row_inner_0,
    body.gmf-mobile-first-enabled .entry-content .et_pb_column .et_pb_row_inner_0 {
        padding-bottom: 32px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_row_14.et_pb_row {
        margin-bottom: 0 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_image_6 {
        margin-top: 0 !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_column_28 {
        padding: 28px 20px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_text_22 {
        min-height: 0 !important;
        margin-bottom: 16px !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_divider {
        max-width: 96px;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_countdown_timer_container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_countdown_timer .section {
        width: auto !important;
        min-width: 0;
    }

    body.gmf-mobile-first-enabled .ep-iFrameContainer iframe,
    body.gmf-mobile-first-enabled iframe[id^="inline-"] {
        min-height: 720px;
    }

    /* The original Divi CSS hides the entire header below 768px. Re-enable it. */
    body.gmf-responsive-header-enabled .et-l--header .et_pb_section_0_tb_header,
    body.gmf-responsive-header-enabled .et-l--header .et_pb_row_0_tb_header {
        display: block !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_section_0_tb_header {
        min-height: 0 !important;
        padding: 0 !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_row_0_tb_header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 16px !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: center;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_column {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_column_0_tb_header {
        grid-column: 1 / -1;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_column_1_tb_header {
        display: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_image_0_tb_header {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        transform: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_image_0_tb_header:hover {
        filter: none !important;
        transform: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_image_0_tb_header img {
        width: auto !important;
        max-width: min(100%, 260px) !important;
        max-height: 72px;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_button_0_tb_header_wrapper,
    body.gmf-responsive-header-enabled .et-l--header .et_pb_button_1_tb_header_wrapper {
        position: static !important;
        inset: auto !important;
        width: 100%;
        margin: 0 !important;
        transform: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_button_0_tb_header_wrapper a:hover,
    body.gmf-responsive-header-enabled .et-l--header .et_pb_button_1_tb_header_wrapper a:hover {
        transform: none !important;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_button {
        display: flex !important;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        padding: 9px 10px !important;
        font-size: clamp(11px, 3.4vw, 14px) !important;
        line-height: 1.25 !important;
        white-space: normal;
        text-align: center;
    }
}

/* Very narrow phones. */
@media (max-width: 380px) {
    body.gmf-responsive-header-enabled .et-l--header .et_pb_row_0_tb_header {
        grid-template-columns: 1fr;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_column_0_tb_header {
        grid-column: 1;
    }

    body.gmf-mobile-first-enabled .entry-content .et_pb_row,
    body.gmf-mobile-first-enabled #main-content > .container,
    body.gmf-mobile-first-enabled #main-content .container {
        width: calc(100% - 24px) !important;
    }
}

/* Landscape phones need compact vertical spacing. */
@media (max-width: 900px) and (orientation: landscape) {
    body.gmf-mobile-first-enabled .entry-content .et_pb_section {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    body.gmf-responsive-header-enabled .et-l--header .et_pb_image_0_tb_header img {
        max-height: 58px;
    }
}

/* Respect visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
    html:has(body.gmf-mobile-first-enabled) {
        scroll-behavior: auto;
    }

    body.gmf-mobile-first-enabled *,
    body.gmf-mobile-first-enabled *::before,
    body.gmf-mobile-first-enabled *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
