/*
 * Theme-authored (not from live): the header's mobile menu button and panel (header.php, js/site-chrome.js).
 * Live used the Responsive Menu plugin 3.x for this; the theme draws its own, styled after it: a panel that slides in
 * from the left (75% wide, full height) over the page, collapsed submenus with a ▼ toggle, a plain search box under the
 * list, and the ☰ button turning into a blue ✕. The footer and "go to top" styles are live's own, in style.css.
 * Shown up to 1024px: style.css hides #site-navigation there (its ul below 600px, the whole nav from 479px to
 * 1024px). The panel and overlay sit inside .site-header, whose stacking context (z-index 999) is raised while the
 * menu is open, so nothing on the page (the footer icons are z-index 1000, go-top 9999) paints over them.
 * The button, panel and overlay are printed hidden: js/site-chrome.js unhides them (nothing without JS).
 * Sizes and colours are live's Responsive Menu settings (export DB wp_responsive_menu): a 55px white button with three
 * 25x3px #0093d8 lines 5px apart, position absolute 20px from the top and 5% from the right (live's style.css: 15px
 * from the top below 479px; so, as on live, it scrolls away with the page); a 75% panel sliding in from the left over
 * 0.5s; 40px rows, 13px #444 links on white with #f7f7f7 borders, the current item #0093d8 on #f8f8f8, submenus
 * indented 10% (top level 5%), a 40px ▼/▲ cell (#999, #0093d8 when open), and a #dadada-bordered "Search" box.
 */
.jtg-menu-toggle,
.jtg-mobile-menu,
.jtg-menu-overlay{display:none;}
@media screen and (max-width:1024px){
.jtg-menu-toggle:not([hidden]){display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:20px;right:5%;z-index:1002;width:55px;height:55px;padding:0;background:#fff;border:1px solid #eaeaea;border-radius:4px;cursor:pointer;}
.jtg-menu-toggle:focus{outline:2px solid #0093d8;outline-offset:2px;}
.jtg-menu-toggle-bar{display:block;width:25px;height:3px;margin:2.5px 0;background:#0093d8;transition:transform .25s ease,opacity .25s ease;}
.jtg-menu-toggle[aria-expanded="true"] .jtg-menu-toggle-bar:nth-of-type(2){transform:translateY(8px) rotate(45deg);}
.jtg-menu-toggle[aria-expanded="true"] .jtg-menu-toggle-bar:nth-of-type(3){opacity:0;}
.jtg-menu-toggle[aria-expanded="true"] .jtg-menu-toggle-bar:nth-of-type(4){transform:translateY(-8px) rotate(-45deg);}
.jtg-mobile-menu:not([hidden]){display:block;position:fixed;top:0;bottom:0;left:0;z-index:1001;width:75%;max-width:400px;overflow-y:auto;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.15);transform:translateX(-100%);visibility:hidden;transition:transform .5s ease,visibility 0s linear .5s;}
.jtg-mobile-menu.is-open{transform:translateX(0);visibility:visible;transition:transform .5s ease,visibility 0s linear 0s;}
.jtg-menu-overlay:not([hidden]){display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:transparent;}
html.jtg-menu-open,
html.jtg-menu-open body{overflow:hidden;}
html.jtg-menu-open .site-header{z-index:10000;}
.jtg-mobile-navigation ul{list-style:none;margin:0;padding:0;}
.jtg-mobile-navigation li{position:relative;border-bottom:1px solid #f7f7f7;}
.jtg-mobile-navigation ul ul{border-top:1px solid #f8f8f8;}
.jtg-mobile-navigation ul ul li:last-child{border-bottom:0;}
.jtg-mobile-navigation a{display:block;height:40px;padding:0 5%;overflow:hidden;color:#444444;font-size:13px;line-height:40px;text-decoration:none;white-space:nowrap;text-overflow:ellipsis;}
.jtg-mobile-navigation a:hover,
.jtg-mobile-navigation a:focus{color:#666666;background:#f8f8f8;text-decoration:none;}
.jtg-mobile-navigation ul ul a{padding-left:10%;}
.jtg-mobile-navigation ul ul a:hover,
.jtg-mobile-navigation ul ul a:focus{color:#0093d8;}
.jtg-mobile-navigation li.menu-item-has-children > a{margin-right:40px;}
.jtg-mobile-navigation li.current-menu-item > a,
.jtg-mobile-navigation li.current_page_item > a{color:#0093d8;background:#f8f8f8;}
.jtg-submenu-toggle{position:absolute;top:0;right:0;width:40px;height:40px;padding:0;background:#fff;border:0;border-left:1px solid #f8f8f8;color:#999999;font-size:14px;cursor:pointer;}
.jtg-submenu-toggle:hover{background:#e0e0e0;color:#0093d8;}
.jtg-submenu-toggle[aria-expanded="true"]{color:#0093d8;}
.jtg-submenu-toggle:focus{outline:2px solid #0093d8;outline-offset:-2px;}
.jtg-submenu-toggle-icon::before{content:"\25BC";}
.jtg-submenu-toggle[aria-expanded="true"] .jtg-submenu-toggle-icon::before{content:"\25B2";}
.jtg-mobile-search{margin:25px 15px;}
.jtg-mobile-search input{width:100%;height:45px;padding:0 8px;border:2px solid #dadada;border-radius:0;font-size:16px;color:#444444;background:#fff;}
.jtg-mobile-search input::placeholder{color:#c7c7cd;opacity:1;}
}
/* live's style.css moves its button to 15px from the top below 479px */
@media screen and (max-width:478px){
.jtg-menu-toggle:not([hidden]){top:15px;}
}
@media screen and (max-width:1024px) and (prefers-reduced-motion:reduce){
.jtg-menu-toggle-bar,
.jtg-mobile-menu:not([hidden]),
.jtg-mobile-menu.is-open{transition:none;}
}
/* 992px-1024px: bootstrap shows the desktop search box at the right of the header; keep it clear of the button.
 * Worst case 992px with a 15px scrollbar (977px layout, 970px container): the button starts at 977-5%-55 = 873px,
 * so the box needs >= 100.4px of right padding; 110px leaves a 10px gap. */
@media screen and (min-width:992px) and (max-width:1024px){
.site-header .search-wrapper{padding-right:110px;}
.site-header .search-wrapper button#search_button{right:110px;}
}
