/*
Theme Name: Evergreen Theme
Author: Pannos Marketing
Description: A Wordpress conversion of Evergreen's existing site theme.
Version: 0.1.1
Text Domain: bank-theme
Template: pm-port-base-theme

/* Alerts */

.alert {
    zoom: 1;
    font-size: 18px;
    text-align: center;
    padding: .75em 1em;
}

.alert .alert-content .content {
    padding: .5em 2rem;
    text-align: left;
    max-width: 70rem;
    margin: 0 auto;
}

.alert .f-alert-header {
    margin: 0 0 .25em;
    font-size: 24px;
    line-height: 1.5;
    color: inherit;
}

.alert .alert-content p {
    margin-top: 0;
    line-height: 1.5;
}

.alert .alert-content p:last-of-type {
    margin-bottom: .5rem;
}

.alert.ab-alert {
    background: #d61b24;
    color: #fff;
    border-top: 2px solid rgba(0, 0, 0, .1);
    border-bottom: 2px solid rgba(0, 0, 0, .1);
}

.alert.ab-info {
    background: linear-gradient(135deg,rgba(233,233,234,1) 0%,rgba(236,237,238,1) 100%);
    color: #000;
    border-top: 2px solid rgba(0, 0, 0, .1);
    border-bottom: 2px solid rgba(0, 0, 0, .1);
}

.alert .alert-content .content a {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
}

@media screen and (max-width: 950px) {
    .alert .alert-content .content {
        text-align: center;       
    }
    .alert .f-alert-header {
        font-size: 22px;
    }

}

/* Initial State of Mobile Login */

@media only screen and (max-width: 1279px) {

    #home #login {
        transition: margin 0.5s ease, opacity .5s;
    }

    body:not(.openob) #login {
        opacity: 0;
        pointer-events: none;
    }

}

/* Header and Nav */

nav#primary .custom-logo-link svg, nav#primary .custom-logo-link img {
    display: block;
    height: auto;
    margin: 0;
    max-height: 2rem;
    width: 10rem
}


body#home a.custom-logo-link { /* hide logo on homepage (since it is in feature) but restore it when nav is sticky, fancy-pants style */
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

body#home:has(#gototop.gototopactive) a.custom-logo-link {
    opacity: 1;
    pointer-events: initial;
}

/* Optional Rate Table Tweaks. Update or remove these as desired. */

table td p:last-child, table th p:last-child {
    margin-bottom: 0;
}

.mobile-ditto {
    display: none;
}

@media screen and (max-width: 900px) {

    .mobile-ditto {
        display: inline !important;
    }

    .editableTable td[data-title]:before {
        width: auto;
        padding: 1em;
        margin-right: 1em;
        height: calc(100% - 2em);
    }

    .editableTable td[data-title] {
        padding-right: 1em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .editableTable td[data-title] > p {padding: 1em 0;}

    .editableTable td[data-title] > a { margin-top: .5em; }

    .editableTable td.cell_0 {
        font-weight: bold;
    }

}

/* Homepage Header moved to top */

@media screen and (min-width: 1280px) {
    
    .admin-bar header {
        top: 32px;
    }

    body#home {
        padding-top: clamp(65px,5.1vw,85px);
        background: #eeeeee;
    }

    body#home header {
        z-index: 101;
    }

}

@media screen and (min-width: 1600px) {

    body#home {
        padding-top: clamp(65px,4.1vw,105px);
    }
}

body#home main {
    flex-direction: column;
}

body#home main section#hero, body#home main div#home-logo {
    order: 0;
}

body#home main .slideshow { /* Extra border to replace moved nav */
    border-bottom: solid .5rem rgb(26,61,44);
}

/* Navigation Menu Cursor Tweak */

nav#primary > ul > li > h2 {
    cursor: default;
}

/* Generic Table Tweak */

table.aligncenter {
    text-align: center;
}

/* Locations */


.branch_hours_set dl {
    margin: 1rem 0;
}

.branch_hours_set dl {
    margin: 0;
}

.branch_hours_set dl dt, .branch_hours_set dl dd {
    display: inline;
}

/* Privacy Policy Tables */

.wp-block-table.privacy-left table tr td:first-child, .wp-block-table.privacy-top table tr:first-child td {
    background: #666666;
    color: white;
    border-color: black;
}

.wp-block-table.privacy-left table tr td:first-child {
    font-size: clamp(1.8rem,3vw,2.8rem);
    line-height: 3rem;
    font-weight: 700;
}

.wp-block-table.privacy-left table tr:first-child:not(:last-child) td:not(:first-child) {
    font-size: clamp(1.41rem,3vw,1.777rem);
    line-height: 1.5;
    font-weight: 700;
    color: #58595b;
}

.wp-block-table.privacy-top table tr td, .wp-block-table.privacy-left table tr td {
    padding: 1em 10px;
    min-width: 11rem;
    border-width: 2px;
}

.wp-block-table.privacy-top table tr:first-child td {
    font-size: clamp(1.18rem,3vw,1.777rem);
    line-height: 2rem;
    font-weight: 700;
    vertical-align: top;
}

.wp-block-table.privacy-left table tr:first-child:not(:last-child) td:first-child {
    background: black;
    font-size: clamp(2rem,4vw,3.15rem);
    line-height: 3.5rem;
}

/* Search */

form.searchform {
    display: grid;
    grid-template-columns: 6fr 1fr;
}

.visuallyhidden {
    overflow: hidden;
    clip: rect(0 0 0 0);
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

ul#search_results > li {
    background-color: #fff;
    padding: 1rem;
    list-style: none;
}

ul#search_results > li::before {
    content: '';
    display: none;
}

ul#search_results {
    padding: 0;
}

ul#search_results > li > h4 {
    margin-top: 0;
}

ul#search_results > li p.search_page_path {
    font-style: italic;
    color: #757575;
}