/* CSS only applies once the fallback has been created (cm7-mhr-on). */
.cm7-mhr-bar,
.cm7-mhr-backdrop,
.cm7-mhr-panel { display: none; }

body.cm7-mhr-on .masthead:not(#phantom) {
    position: relative;
    z-index: 9990;
}
body.cm7-mhr-on .masthead .cm7-mhr-bar {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    padding: 6px 15px;
    align-items: center;
    gap: 12px;
    background: #75aa32;
    color: #fff;
    isolation: isolate;
    font-family: THBaijam, Arial, sans-serif;
}
body.cm7-mhr-on .cm7-mhr-toggle {
    width: 46px;
    height: 44px;
    flex: 0 0 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(0,0,0,.12);
    color: #fff;
    cursor: pointer;
}
body.cm7-mhr-on .cm7-mhr-hamburger,
body.cm7-mhr-on .cm7-mhr-hamburger i {
    display: block;
    width: 21px;
}
body.cm7-mhr-on .cm7-mhr-hamburger i {
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    border-radius: 2px;
}
body.cm7-mhr-on .cm7-mhr-logo {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}
body.cm7-mhr-on .cm7-mhr-logo img {
    display: block !important;
    width: auto !important;
    max-width: min(210px, 60vw) !important;
    max-height: 47px !important;
    height: auto !important;
    object-fit: contain;
}
body.cm7-mhr-on .cm7-mhr-spacer { flex: 1 1 auto; }
body.cm7-mhr-open { overflow: hidden; }
body.cm7-mhr-on .cm7-mhr-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0,0,0,.48);
}
body.cm7-mhr-on .cm7-mhr-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100002;
    width: min(330px, 88vw);
    max-width: 100vw;
    height: 100dvh;
    overflow-y: auto;
    background: #fff;
    color: #273329;
    font-family: THBaijam, Arial, sans-serif;
    box-sizing: border-box;
    box-shadow: 2px 0 20px rgba(0,0,0,.2);
}
body.cm7-mhr-on .cm7-mhr-panel-head {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 18px;
    min-height: 65px;
    background: #75aa32;
    color: #fff;
    font-size: 20px;
}
body.cm7-mhr-on .cm7-mhr-close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 33px;
    font-weight: 400;
    line-height: 1;
    min-width: 42px;
    min-height: 40px;
    cursor: pointer;
}
body.cm7-mhr-on .cm7-mhr-list {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: transparent;
}
body.cm7-mhr-on .cm7-mhr-item {
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8efe2;
    list-style: none;
}
body.cm7-mhr-on .cm7-mhr-link {
    display: block;
    padding: 13px 48px 13px 20px;
    color: #253524;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
body.cm7-mhr-on .cm7-mhr-link:hover,
body.cm7-mhr-on .cm7-mhr-link:focus { background: #edf5e9; color: #417324; }
body.cm7-mhr-on .cm7-mhr-expand {
    position: absolute;
    top: 0;
    right: 3px;
    width: 45px;
    height: 47px;
    color: #376d20;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 24px;
}
body.cm7-mhr-on .cm7-mhr-sublist { padding: 0 0 7px 13px; }
body.cm7-mhr-on .cm7-mhr-sublist[hidden] { display: none !important; }
body.cm7-mhr-on .cm7-mhr-sublist .cm7-mhr-link { font-weight: 400; font-size: 17px; }
@media screen and (min-width: 1041px) {
    body.cm7-mhr-on .masthead .cm7-mhr-bar,
    body.cm7-mhr-on .cm7-mhr-backdrop,
    body.cm7-mhr-on .cm7-mhr-panel { display: none !important; }
}
