/* A small editorial search; ordinary WordPress GET results stay shareable. */
.mtf-article-search{box-sizing:border-box;width:100%;margin:24px 0 30px;text-align:left}
.mtf-article-search label{display:block;margin:0 0 9px;color:#171717;font-size:16px;font-weight:700;line-height:1.4}
.mtf-article-search__field{display:flex;align-items:stretch;min-width:0;border:1px solid #d9dedb;border-radius:7px;background:#fff;overflow:hidden}
.mtf-article-search__field:focus-within{outline:2px solid #b85300;outline-offset:3px}
.mtf-article-search .mtf-article-search__field input{box-sizing:border-box;flex:1 1 0;width:0;min-width:0;min-height:48px;margin:0;padding:12px 14px;border:0;border-radius:0;box-shadow:none;outline:0;background:#fff;color:#171717;font:400 16px/1.4 Tahoma,sans-serif}
.mtf-article-search input::placeholder{color:#666;opacity:1}
.mtf-article-search .mtf-article-search__field button{box-sizing:border-box;flex:0 0 50px;display:flex;align-items:center;justify-content:center;min-width:50px;min-height:48px;margin:0;padding:10px;border:0;border-radius:0;background:#ff8000;color:#fff!important;cursor:pointer}
.mtf-article-search .mtf-article-search__field button:hover{background:#b85300}
.mtf-article-search button:focus-visible{outline:2px solid #111;outline-offset:-4px}
.mtf-article-search svg,.mtf-header-search svg{display:block;pointer-events:none}
.mtf-has-article-search .mtf-header__inner{position:relative;gap:16px}
.mtf-has-article-search .mtf-header__nav{margin-left:auto;order:2}
.mtf-header-search{flex:0 0 44px;order:3;margin:0!important}
.mtf-header-search summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;list-style:none;width:44px;height:44px;border:1px solid #e5e5e5;border-radius:6px;color:#b85300;background:white;cursor:pointer}
.mtf-header-search summary::-webkit-details-marker{display:none}
.mtf-header-search summary:hover,.mtf-header-search[open] summary{background:#fff4e8}
.mtf-header-search summary:focus-visible{outline:2px solid #b85300;outline-offset:3px}
.mtf-header-search__panel{position:absolute;right:15px;top:calc(100% + 5px);z-index:2;box-sizing:border-box;width:min(440px,calc(100vw - 30px));padding:18px;background:#fff;border:1px solid #e4e4e4;border-radius:8px;box-shadow:0 8px 24px #00000012}
.mtf-header-search__panel .mtf-article-search{margin:0}
@media(max-width:1280px){
 .mtf-has-article-search .mtf-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
 .mtf-has-article-search .mtf-header__nav .wp-block-navigation__responsive-container-open{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px}
 .mtf-has-article-search .mtf-header__nav{order:3;margin-left:0}
 .mtf-header-search{order:2;margin-left:auto!important}
}
/* Only the 44px search control floats once the normal header has scrolled away. */
.mtf-header-search.mtf-search-floating{position:fixed;top:max(12px,env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px));z-index:100;margin:0!important}
.mtf-search-floating summary{box-shadow:0 2px 12px #00000018}
.mtf-header-search.mtf-search-floating .mtf-header-search__panel{right:0;top:calc(100% + 10px);width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 120px);overflow:auto}
@media(min-width:601px){.admin-bar .mtf-header-search.mtf-search-floating{top:58px}}
@media(min-width:783px){.admin-bar .mtf-header-search.mtf-search-floating{top:44px}}
@media(max-width:767px){
 body.single-post .mtf-single-shell{box-sizing:border-box;width:calc(100% - max(10px,env(safe-area-inset-left,0px)) - max(10px,env(safe-area-inset-right,0px)))!important;margin-left:max(10px,env(safe-area-inset-left,0px));margin-right:max(10px,env(safe-area-inset-right,0px))}
 body.single-post .mtf-single-reading :is(.mtf-article-offer,.mtf-subscribe-offer){box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;margin-left:0!important;margin-right:0!important}
 .mtf-article-search{margin:20px 0 26px}
 .mtf-article-search .mtf-article-search__field input{padding-left:12px}
 .mtf-has-article-search .mtf-header__inner{gap:10px}
 .mtf-header-search__panel{right:10px;width:calc(100% - 20px);padding:16px}
}
@media(max-width:480px){
 .mtf-has-article-search .mtf-header .wp-block-site-logo img{max-width:180px;height:auto}
}
