/* Standing search, controls, display, footer. */
:root{--ehopto-header-h:88px;--ehopto-controls-w:256px;--ehopto-shell-gap:24px}
body:has(.ehopto-search-header):not([data-no-rail]){box-sizing:border-box;min-height:100dvh;padding:112px 24px 24px 304px!important;background:var(--e-bg);color:var(--e-ink)}
body .ehopto-search-header{position:fixed;inset:0 0 auto;z-index:300;display:grid;grid-template-columns:var(--ehopto-controls-w) minmax(0,1fr);align-items:center;gap:var(--ehopto-shell-gap);box-sizing:border-box;height:var(--ehopto-header-h);padding:16px 24px;border-bottom:1px solid var(--e-line);background:var(--e-card);font-family:var(--e-font,ui-sans-serif,system-ui,sans-serif)}
.ehopto-search-header .ehopto-search-brand{display:flex;align-items:center;width:max-content}
.ehopto-search-header .ehopto-search-brand img{width:124px;height:auto;display:block}
.ehopto-search-header .ehopto-search-brand-dark{display:none!important}
html.ehopto-theme-dark .ehopto-search-header .ehopto-search-brand-dark{display:block!important;filter:brightness(0) invert(1)}
html.ehopto-theme-dark .ehopto-search-header .ehopto-search-brand-light{display:none!important}
body .ehopto-search-header .eseek{margin:0!important;max-width:1480px;min-width:0;width:100%}
body .ehopto-search-header .eseek-box{width:100%;box-sizing:border-box}
body .ehopto-search-header input#q{min-width:0;width:100%}
body .ehopto-search-header .eseek-scan-panel{max-height:calc(100dvh - 160px);overflow-y:auto}
body .ehopto-search-header .eseek-suggestions{max-height:calc(100dvh - var(--ehopto-header-h) - 100px);overflow-y:auto;overscroll-behavior:contain}
body:has(.ehopto-search-header) .ehopto-notification-return{top:calc(var(--ehopto-header-h) + 8px);left:auto;right:24px;max-width:calc(100vw - 48px)}
body[data-no-rail] .ehopto-search-header,body[data-no-rail] .ehopto-guest-controls{display:none!important}
body:has(.ehopto-search-header):not([data-no-rail]) > .wrap,body:has(.ehopto-search-header):not([data-no-rail]) > main{box-sizing:border-box;width:100%!important;max-width:1480px!important;min-width:0;margin:0 auto!important;min-height:calc(100dvh - 290px)}
body:has(.ehopto-search-header):not([data-no-rail]) > main{padding:0!important}
body:has(.ehopto-search-header) :is(.wrap,main) [id]{scroll-margin-top:calc(var(--ehopto-header-h) + 20px)}
body:has(.ehopto-search-header):not([data-no-rail]) > .esitefoot{box-sizing:border-box;max-width:1480px;margin:36px auto 0;padding:20px 0}
.ehopto-guest-controls{font:600 14px var(--e-font,ui-sans-serif,system-ui,sans-serif)}
.ehopto-guest-controls a{display:flex;align-items:center;gap:12px;min-height:48px;padding:11px 13px;border-radius:12px;text-decoration:none;color:var(--e-ink-muted)}
.ehopto-guest-controls a:hover,.ehopto-guest-controls a[aria-current]{background:var(--e-sunk);color:var(--e-ink)}
.ehopto-guest-controls svg{flex:none}
.ehopto-search-header a:focus-visible,.ehopto-guest-controls a:focus-visible{outline:3px solid var(--e-accent);outline-offset:3px}
@media(min-width:1100px){
 body:has(.ehopto-search-header):not([data-no-rail]) #ehopto-drawer,body:has(.ehopto-search-header):not([data-no-rail]) #ehopto-drawer[hidden]{top:112px!important;bottom:24px!important;left:24px!important;width:var(--ehopto-controls-w)!important;height:auto!important;padding:12px!important;border:1px solid var(--e-line)!important;border-radius:18px!important;background:var(--e-card)!important;box-sizing:border-box;overflow-y:auto!important}
 body:has(.ehopto-search-header) #ehopto-drawer .dr-head{display:none!important}
 .ehopto-guest-controls{position:fixed;top:112px;bottom:24px;left:24px;width:256px;padding:12px;box-sizing:border-box;border:1px solid var(--e-line);border-radius:18px;background:var(--e-card)}
 body:has(.ehopto-search-header):not([data-no-rail]) .esitefoot{margin-bottom:0}
}
@media(max-width:1099px){
 :root{--ehopto-header-h:80px}
 body:has(.ehopto-search-header):not([data-no-rail]){padding:100px 16px calc(88px + env(safe-area-inset-bottom))!important}
 body .ehopto-search-header{grid-template-columns:90px minmax(0,1fr);gap:12px;padding:12px 16px}
 .ehopto-search-header .ehopto-search-brand img{width:90px}
 body:has(.ehopto-search-header) #ehopto-appnav{z-index:280!important}
 body:has(.ehopto-search-header) #ehopto-appnav button[aria-expanded=true]{background:var(--e-sunk)!important;color:var(--e-ink)!important;box-shadow:inset 0 0 0 1px var(--e-accent)}
 body:has(.ehopto-search-header) #ehopto-drawer:not([hidden]),body:has(.ehopto-search-header) #ehopto-drawer:target{top:var(--ehopto-header-h)!important;bottom:calc(72px + env(safe-area-inset-bottom))!important;height:calc(100dvh - var(--ehopto-header-h) - 72px - env(safe-area-inset-bottom))!important;padding-bottom:20px!important}
 body:has(.ehopto-search-header) #ehopto-scrim{top:var(--ehopto-header-h)!important}
 body:has(.ehopto-search-header) #ehopto-drawer .dr-logo{display:none!important}
 .ehopto-guest-controls{position:fixed;inset:auto 0 0;z-index:280;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 8px calc(5px + env(safe-area-inset-bottom));background:var(--e-card);border-top:1px solid var(--e-line)}
 .ehopto-guest-controls a{min-width:0;min-height:54px;flex-direction:column;gap:5px;padding:7px 2px;font-size:11px}
 body:has(.ehopto-search-header):not([data-no-rail]) .esitefoot{margin-bottom:0}
}
@media(max-width:560px){
 body .ehopto-search-header{grid-template-columns:70px minmax(0,1fr);gap:10px;padding:12px}
 .ehopto-search-header .ehopto-search-brand img{width:70px}
 body:has(.ehopto-search-header):not([data-no-rail]){padding-left:12px!important;padding-right:12px!important}
 body .ehopto-search-header .eseek[data-eseek-root] .eseek-shell form.eseek-box .eseek-scan-trigger{min-width:40px!important;width:40px!important;padding:0!important;margin-right:3px!important}
 body .ehopto-search-header .eseek-scan-trigger span{display:none!important}
 body .ehopto-search-header .eseek[data-eseek-root] .eseek-shell form.eseek-box .eseek-search-button{flex-basis:34px!important;width:34px!important}
}
@media print{.ehopto-search-header,.ehopto-guest-controls{display:none!important}body:has(.ehopto-search-header):not([data-no-rail]){padding:0!important}}
