/* Public layout and navigation. The menu order always comes from the CMS. */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}
.ems-primary-nav { position: relative; font-size: 14px; }
.ems-primary-nav [hidden], [data-ems-nav-panel] [hidden] { display: none !important; }
.ems-nav-list, .ems-nav-children { list-style: none; margin: 0; padding: 0; }
.ems-nav-list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 3px; padding: 6px; border: 1px solid #087c08; border-radius: 12px; background: #087f08; box-shadow: 0 5px 16px #05730414; }
.ems-nav-item { display: flex; align-items: stretch; flex: 1 0 auto; border-radius: 7px; transition: background-color .15s ease; }
.ems-nav-link, .ems-nav-toggle { display: flex; align-items: center; justify-content: center; min-height: 46px; color: #fff; border-radius: 7px; }
.ems-nav-link { flex: 1; padding: 0 12px; white-space: nowrap; text-decoration: none; font-weight: 600; }
.ems-nav-compact .ems-nav-link { font-size: 13px; padding-left: 8px; padding-right: 8px; }
.ems-nav-compact .ems-nav-toggle { width: 30px; }
.ems-nav-item:has(> .ems-nav-disclosure) > .ems-nav-link { padding-right: 3px; }
.ems-nav-disclosure { flex: 0 0 auto; }
.ems-nav-toggle { width: 36px; cursor: pointer; list-style: none; }
.ems-nav-toggle::-webkit-details-marker { display: none; }
.ems-nav-chevron { display: block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.ems-nav-disclosure[open] > summary .ems-nav-chevron { transform: translateY(2px) rotate(225deg); }
.ems-nav-item:hover, .ems-nav-item:has(> details[open]) { background: #056b05; }
.ems-nav-item.is-current, .ems-nav-item.is-current:hover, .ems-nav-item.is-current:has(> details[open]) { background: #fff; box-shadow: 0 2px 6px #064b0821; }
.ems-nav-item.is-current > .ems-nav-link, .ems-nav-item.is-current > details > summary { color: #057304; }
.ems-nav-link:hover { color: #fff; text-decoration: none; }
.ems-nav-item.is-current > .ems-nav-link:hover { color: #045a03; }
.ems-primary-nav a:focus-visible, .ems-primary-nav summary:focus-visible, .ems-nav-clear:focus-visible { outline: 2px solid #a9e49b; outline-offset: -3px; }
.ems-nav-item.is-current > a:focus-visible, .ems-nav-item.is-current > details > summary:focus-visible { outline-color: #057304; }
.ems-nav-panel { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; border: 1px solid #dfeadd; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px #1c334326; color: #333f48; font-weight: 400; }
.ems-nav-intro { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 24px; background: #f0f7ed; border-right: 1px solid #e1eddd; }
.ems-nav-eyebrow { color: #5e795a; font-size: 11px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.ems-nav-panel-title { margin-top: 12px; font-family: 'SBSansDisplay', Arial, sans-serif; font-size: 25px; line-height: 1.2; font-weight: 600; color: #1d4820; overflow-wrap: anywhere; }
.ems-nav-city { display: block; margin: 16px 0 24px; padding: 5px 10px; border: 1px solid #d7e7d2; border-radius: 20px; font-size: 12px; background: #fff; color: #53744f; }
.ems-nav-section-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding: 11px 12px; border: 1px solid #97c58c; border-radius: 8px; background: #fff; color: #057304; font-size: 13px; font-weight: 600; }
.ems-nav-section-link:hover { border-color: #058b04; background: #e6f3df; color: #045a03; text-decoration: none; }
.ems-nav-panel-main { min-width: 0; padding: 22px 24px; }
.ems-nav-search { position: relative; }
.ems-nav-search::before { content: ''; position: absolute; pointer-events: none; left: 15px; top: 14px; width: 20px; height: 20px; background: #058b04; mask: url('../img/search.svg') center/contain no-repeat; -webkit-mask: url('../img/search.svg') center/contain no-repeat; }
.ems-nav-search input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 48px 0 45px; border: 1px solid #d8e3d5; border-radius: 9px; background: #f8faf7; box-shadow: none; color: #333f48; font: inherit; outline: none; }
.ems-nav-search input::placeholder { color: #687664; opacity: 1; }
.ems-nav-search input:focus { border-color: #058b04; background: #fff; box-shadow: 0 0 0 3px #058b0412; }
.ems-nav-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ems-nav-clear { position: absolute; top: 2px; right: 3px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #637260; cursor: pointer; }
.ems-nav-clear:hover { color: #057304; background: #eaf3e6; }
.ems-nav-status { margin: 14px 0 12px; color: #65725f; font-size: 12px; line-height: 1.5; }
.ems-nav-results { max-height: max(96px, min(45vh, 360px, calc(100vh - 370px))); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #c9dbc3 transparent; padding: 2px 5px 3px 2px; }
.ems-nav-children { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ems-nav-children > li { display: flex; min-width: 0; }
.ems-nav-children a { position: relative; display: flex; align-items: center; flex: 1; min-height: 56px; padding: 11px 30px 11px 13px; border: 1px solid #e8eee5; border-radius: 8px; background: #fafcf9; color: #333f48; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; transition: border-color .15s ease, background-color .15s ease; }
.ems-nav-children a:hover, .ems-nav-children a:focus-visible { border-color: #9dc993; background: #f0f8ed; color: #057304; text-decoration: none; outline-color: #057304; outline-offset: 0; }
.ems-nav-link-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #799873; font-size: 16px; line-height: 1; }
.ems-nav-empty { padding: 34px 20px; border: 1px dashed #dbe5d6; border-radius: 9px; background: #fafcf9; text-align: center; }
.ems-nav-empty strong { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.ems-nav-empty span { color: #73816e; font-size: 13px; }
.ems-nav-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-menu { visibility: hidden; transition: left .2s ease-in, visibility 0s linear .2s; }
.mobile-menu.active { visibility: visible; transition-delay: 0s; }
.mobile-menu .ems-nav-search { margin-top: 8px; }
.mobile-menu .ems-nav-search input { font-size: 14px; padding-left: 38px; }
.mobile-menu .ems-nav-search::before { left: 12px; width: 18px; }
.mobile-menu .ems-nav-status { color: #b6c8b3; }
.mobile-menu .ems-nav-results { max-height: 36vh; padding: 2px 6px 3px 2px; }
.mobile-menu .mobile-content .main-menu .menu-item .menu-item-content .sub-menu li { margin-bottom: 10px; }
.mobile-menu .mobile-content .main-menu .menu-item .menu-item-content .sub-menu a { color: #dae5e9; }
.mobile-menu .ems-nav-empty { padding: 20px 12px; color: #333f48; }
@media (min-width: 992px) {
    .mobile-menu { visibility: hidden !important; }
    header .header-bottom { padding-bottom: 14px; border-top: 0; }
    header { box-shadow: 0 5px 16px #1c33430a; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .ems-nav-list { display: grid; grid-template-columns: repeat(var(--ems-nav-columns), minmax(0, 1fr)); }
    .ems-nav-item { min-width: 0; }
    .ems-nav-link { min-width: 0; padding: 8px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
    .ems-nav-results { max-height: max(96px, min(45vh, 360px, calc(100vh - 420px))); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ems-nav-link { font-size: 13px; }
    .ems-nav-toggle { width: 30px; }
    .ems-nav-panel { grid-template-columns: 190px minmax(0, 1fr); }
    .ems-nav-intro { padding: 24px 20px; }
    .ems-nav-panel-title { font-size: 22px; }
    .ems-nav-panel-main { padding: 20px; }
    .ems-nav-children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .ems-nav-item, .ems-nav-children a { transition: none; }
}
