/* Let the homepage grid share the header's container edges. */
@media (min-width: 1025px) {
    .home #primary { padding-right: 15px; }
    .home #primary .entry-content { margin-right: 0; }
}
.home #et-boc .et-l .et_pb_row:has(.ohfc-page-grid-block) {
    width: 100%;
    max-width: none;
    padding: 0;
}
.home #et-boc .et-l .et_pb_section:has(.ohfc-page-grid-block) {
    display: block !important;
    padding: 40px 0 10px;
}
.site-header .text-logo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.ohfc-menu-open { display: none; }
.ohfc-menu-is-open { overflow: hidden; }
#ohfc-mobile-menu:not([open]) { display: none; }
#ohfc-mobile-menu {
    box-sizing: border-box;
    width: min(420px, 100%);
    height: 100%;
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
    margin: 0 0 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
    border: 0;
    background: #fff;
    color: #173e32;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -12px 0 45px #002e2430;
}
#ohfc-mobile-menu::backdrop { background: #002e2473; }
#ohfc-mobile-menu .ohfc-mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 3px solid #777414;
}
#ohfc-mobile-menu .ohfc-menu-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: #777414; }
#ohfc-mobile-menu h2 { margin: 6px 0 0; font: 26px/1.2 Georgia, serif; color: #004730; }
#ohfc-mobile-menu .ohfc-menu-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dce5df;
    border-radius: 50%;
    color: #004730;
    background: #f4f7f5;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
}
#ohfc-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
#ohfc-mobile-menu li { position: relative; float: none; display: grid; grid-template-columns: 1fr 44px; margin: 0; border-bottom: 1px solid #e4ebe6; }
#ohfc-mobile-menu li > a {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 16px 8px 16px 0;
    color: #004730;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}
#ohfc-mobile-menu li:not(.menu-item-has-children) > a { grid-column: 1 / -1; }
#ohfc-mobile-menu .ohfc-submenu-toggle {
    align-self: start;
    margin-top: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #f0f4f1;
    color: #004730;
    font: 24px/1 Arial, sans-serif;
    cursor: pointer;
}
#ohfc-mobile-menu .sub-menu { grid-column: 1 / -1; padding: 0 14px; margin-bottom: 14px; background: #f6f8f5; border-radius: 4px; }
#ohfc-mobile-menu .sub-menu li:last-child { border: 0; }
#ohfc-mobile-menu .sub-menu a { min-height: 48px; padding: 12px 0; font-size: 14px; font-weight: 400; }
#ohfc-mobile-menu [hidden] { display: none !important; }
#ohfc-mobile-menu a:hover, #ohfc-mobile-menu .current-menu-item > a { color: #777414; }
#ohfc-mobile-menu :focus-visible { outline: 2px solid #777414; outline-offset: 3px; }
#ohfc-mobile-menu .ohfc-mobile-menu-footer { margin-top: 28px; }
#ohfc-mobile-menu .search-form { display: flex; width: 100%; margin: 0 0 20px; float: none; }
#ohfc-mobile-menu .search-form label { flex: 1; width: auto; min-width: 0; }
#ohfc-mobile-menu .search-field { width: 100%; min-height: 44px; border: 1px solid #dce5df; }
#ohfc-mobile-menu .search-submit { flex-shrink: 0; min-width: 44px; min-height: 44px; background-color: #004730; }
#ohfc-mobile-menu .ohfc-menu-call { display: block; padding: 14px; border-radius: 4px; background: #004730; color: #fff; text-align: center; font-weight: 700; text-decoration: none; }
@media (max-width: 1024px) {
    .container { max-width: 100%; }
    #masthead #site-navigation, #masthead .header-b > .search-form { display: none; }
    #masthead .ohfc-menu-open:not([hidden]) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 46px;
        padding: 10px 18px;
        border: 0;
        border-radius: 4px;
        color: #fff;
        background: #004730;
        font: 700 15px/1.5 Arial, sans-serif;
        cursor: pointer;
    }
    #masthead .header-b { padding: 12px 0; background: transparent; }
    #masthead .ohfc-menu-open:focus-visible { outline: 3px solid #777414; outline-offset: 3px; }
}
@media (max-width: 767px) {
    #masthead { padding: 0 0 16px; }
    #masthead .header-t { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0 12px; }
    #masthead .site-branding { float: none; width: auto; max-width: 100%; margin: 0; }
    #masthead .custom-logo { width: 280px; max-width: 100%; height: auto; }
    #masthead .tools { float: none; width: auto; margin: 0; display: flex; align-items: center; gap: 14px; }
    #masthead .tools .tel-link { margin: 0; font-size: 17px; }
    #masthead .tools .social-networks { margin: 0; }
    .home #et-boc .et-l .et_pb_section:has(.ohfc-page-grid-block) { padding-top: 12px; }
}
