/* ==========================================================================
   Site header, modelled on the EJIL:Talk! header layout.
   Desktop: white bar (illustration left, centred title, search + Advanced Search right)
   over a full-width coloured navigation strip with full-width dropdown strips.
   Mobile: compact bar, tagline strip, slide-down menu panel.
   Plain theme CSS: no plugin dependency.
   ========================================================================== */
.ejh{--ejh-bar:120px;--ejh-bar-sm:80px;--ejh-nav:44px;--ejh-line:#d0d0d0;--ejh-accent:var(--c-primary);--ejh-accent-deep:var(--c-primary-deep);--ejh-strip:var(--c-mint);
	position:fixed;top:0;left:0;right:0;z-index:60;background:#fff;border:0;box-shadow:0 3px 4px -2px rgba(0,0,0,.26);font-family:var(--f-body)}
.ejh::before{display:none}
body.admin-bar .ejh{top:32px}
@media (max-width:782px){body.admin-bar .ejh{top:46px}}
@media (max-width:600px){body.admin-bar .ejh{top:0}}
.ejh-spacer{height:calc(var(--ejh-bar,120px) + 44px)}
html{scroll-padding-top:180px}

/* ---- Top bar ---- */
.ejh-bar{position:relative;height:var(--ejh-bar);display:flex;align-items:center;justify-content:center;background:#fff;transition:height .25s ease-out}
.ejh.is-small .ejh-bar{height:var(--ejh-bar-sm)}
.ejh-art{position:absolute;left:0;top:0;bottom:0;width:30%;background-repeat:no-repeat;background-position:left center;background-size:cover;transition:width .3s ease-out}
.ejh-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,0) 70%,#fff 100%)}
.ejh.is-small .ejh-art{width:20%}

.ejh-logo{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:#000;max-width:40vw;transition:color .1s ease-out}
.ejh-logo:hover,.ejh-logo:focus-visible{color:var(--ejh-accent)}
.ejh-title{font-family:var(--f-head);font-weight:400;font-size:clamp(1.35rem,1.85vw,2.1rem);line-height:1.15;transition:font-size .3s ease-out}
.ejh-sub{margin:.5rem 0 0;font-size:1rem;font-weight:400;line-height:1.3;transition:font-size .3s ease-out,margin .3s}
.ejh.is-small .ejh-title{font-size:clamp(1.15rem,1.45vw,1.6rem)}
.ejh.is-small .ejh-sub{font-size:.8rem;margin-top:.3rem}

/* ---- Search (expands leftwards like EJIL) ---- */
.ejh-search{position:absolute;top:0;right:160px;height:100%;width:60px;display:flex;align-items:center;justify-content:flex-end;background:#fff;z-index:3;transition:width .3s ease-out}
.ejh-search-form{display:none;flex:1;align-items:center;height:100%;padding-left:16px;gap:10px;min-width:0}
.ejh-search-form input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:18px;padding:0 16px;height:100%;color:var(--c-ink)}
.ejh-search-form input::-webkit-search-cancel-button{display:none}
.ejh-go{border:0;background:var(--ejh-accent);color:#fff;font:inherit;font-weight:700;font-size:14px;padding:9px 18px;border-radius:3px;cursor:pointer}
.ejh-go:hover{background:var(--ejh-accent-deep)}
.ejh-adv-m{display:none}
.ejh-search-btn{flex:0 0 60px;width:60px;height:100%;display:flex;align-items:center;justify-content:center;border:0;border-left:1px solid var(--ejh-line);background:#fff;color:#000;cursor:pointer;transition:background .1s ease-in,color .1s ease-in;font:inherit}
.ejh-search-btn:hover{background:var(--ejh-accent);color:#fff}
.ejh-cancel{display:none;font-size:13px;font-weight:700}
.ejh.is-search .ejh-search{width:55vw;border-left:1px solid var(--ejh-line)}
.ejh.is-search .ejh-search-form{display:flex}
.ejh.is-search .ejh-search-btn{flex-basis:80px;width:80px}
.ejh.is-search .ejh-ic-search{display:none}
.ejh.is-search .ejh-cancel{display:inline}

.ejh-adv{position:absolute;top:0;right:0;height:100%;width:160px;display:flex;align-items:center;justify-content:center;text-align:center;border-left:1px solid var(--ejh-line);border-right:1px solid var(--ejh-line);font-weight:700;font-size:15px;color:#000;text-decoration:none;z-index:2;transition:background .1s ease-out,color .1s ease-out}
.ejh-adv:hover{background:var(--ejh-accent);border-color:var(--ejh-accent);color:#fff}
.ejh-burger,.ejh-msub{display:none}

/* ---- Navigation strip ---- */
.ejh-nav{position:relative;background:var(--ejh-accent);box-shadow:0 3px 4px -2px rgba(0,0,0,.26)}
.ejh-menu{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;justify-content:center;flex-wrap:nowrap}
.ejh-menu>li{display:flex;align-items:center;height:var(--ejh-nav);padding:0 1.15vw;list-style:none}
.ejh-menu a{position:relative;display:inline-block;overflow:hidden;padding:.4rem 0;color:#fff;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:.05rem;line-height:1.2;white-space:nowrap}
.ejh-menu>li>a::before{content:"";position:absolute;left:0;right:100%;bottom:0;height:4px;background:#fff;transition:right .3s ease-out}
.ejh-menu>li>a:hover::before,.ejh-menu>li>a:focus-visible::before,.ejh-menu>li:hover>a::before,
.ejh-menu>.current-menu-item>a::before,.ejh-menu>.current-menu-ancestor>a::before,.ejh-menu>.current_page_parent>a::before{right:0}
.ejh-menu a:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Dropdowns: full-width light strip under the nav, like EJIL */
.ejh-menu .sub-menu{display:none;position:absolute;left:0;right:0;top:100%;margin:0;padding:0 16px;list-style:none;background:var(--ejh-strip);justify-content:center;flex-wrap:wrap;box-shadow:0 3px 4px -2px rgba(0,0,0,.2)}
.ejh-menu>li:hover>.sub-menu,.ejh-menu>li:focus-within>.sub-menu{display:flex}
.ejh-menu .sub-menu li{padding:0 1vw;list-style:none}
.ejh-menu .sub-menu a{color:var(--ejh-accent-deep);font-weight:700;font-size:.78rem;padding:.85rem 0}
.ejh-menu .sub-menu a:hover,.ejh-menu .sub-menu .current-menu-item>a{color:var(--ejh-accent);text-decoration:underline;text-underline-offset:4px}

@media (max-width:1280px) and (min-width:1101px){.ejh-menu>li{padding:0 .9vw}.ejh-menu a{font-size:.76rem;letter-spacing:.03rem}}

/* ==========================================================================
   Mobile and tablet
   ========================================================================== */
@media (max-width:1100px){
	.ejh{--ejh-bar:64px;--ejh-bar-sm:64px}
	.ejh-spacer{height:94px}
	html{scroll-padding-top:110px}
	.ejh-bar{justify-content:flex-start;padding:0 112px 0 18px}
	.ejh-art{width:100%;background-size:auto 100%}
	.ejh-art::after{background:linear-gradient(90deg,rgba(255,255,255,.62),rgba(255,255,255,.62) 55%,#fff 85%)}
	.ejh.is-small .ejh-art{width:100%}
	.ejh-logo{align-items:flex-start;text-align:left;max-width:none}
	.ejh-title,.ejh.is-small .ejh-title{font-size:clamp(1rem,3.6vw,1.35rem);font-weight:700;color:var(--c-primary-deep)}
	.ejh-sub,.ejh-adv{display:none}
	.ejh-msub{display:block;height:30px;line-height:30px;padding:0 18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;background:var(--ejh-strip);color:var(--ejh-accent-deep);font-family:var(--f-head);font-style:italic;font-size:13.5px;border-top:1px solid rgba(0,0,0,.06)}

	.ejh-search{right:56px;width:auto;background:transparent}
	.ejh-search-btn{flex:0 0 52px;width:52px;border-left:0;background:transparent}
	.ejh.is-search .ejh-search{width:auto;border-left:0}
	.ejh.is-search .ejh-search-btn{flex-basis:64px;width:64px}
	.ejh-search-form{position:fixed;left:0;right:0;top:var(--ejh-bottom,94px);height:auto;padding:14px 18px;background:#fff;flex-wrap:wrap;box-shadow:0 10px 18px -12px rgba(0,0,0,.35);border-top:1px solid var(--c-line)}
	.ejh-search-form input{height:44px;border:1px solid var(--c-line);border-radius:4px;font-size:16px;padding:0 12px}
	.ejh-adv-m{display:block;flex-basis:100%;font-size:14px;font-weight:600;color:var(--ejh-accent)}

	.ejh-burger{display:flex;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:48px;height:48px;align-items:center;justify-content:center;border:0;background:transparent;cursor:pointer;z-index:4;color:var(--c-primary-deep)}
	.ejh-burger-box{position:relative;width:24px;height:18px;display:block}
	.ejh-burger-box span,.ejh-burger-box::before,.ejh-burger-box::after{content:"";position:absolute;left:0;width:24px;height:2.5px;border-radius:2px;background:currentColor;transition:transform .25s ease,opacity .2s ease,top .25s ease}
	.ejh-burger-box::before{top:0}
	.ejh-burger-box span{top:7.75px}
	.ejh-burger-box::after{top:15.5px}
	.ejh-open .ejh-burger-box::before{top:7.75px;transform:rotate(45deg)}
	.ejh-open .ejh-burger-box span{opacity:0}
	.ejh-open .ejh-burger-box::after{top:7.75px;transform:rotate(-45deg)}

	.ejh-nav{position:fixed;left:0;right:0;bottom:0;top:var(--ejh-bottom,94px);display:none;overflow-y:auto;overscroll-behavior:contain;box-shadow:none;padding:8px 0 40px}
	body.ejh-open .ejh-nav{display:block}
	body.ejh-open{overflow:hidden}
	.ejh-menu{flex-direction:column;align-items:stretch}
	.ejh-menu>li{display:block;height:auto;padding:0 22px;border-bottom:1px solid rgba(255,255,255,.14)}
	.ejh-menu a{display:block;padding:15px 0;font-size:.95rem;white-space:normal}
	.ejh-menu>li>a::before{display:none}
	.ejh-menu>.current-menu-item>a,.ejh-menu>.current-menu-ancestor>a{color:var(--c-gold-soft)}
	.ejh-menu .sub-menu{position:static;display:none;padding:0 0 10px 14px;background:transparent;box-shadow:none}
	.ejh-menu>li:hover>.sub-menu{display:none}
	.ejh-menu>li.open>.sub-menu,.ejh-menu>li:focus-within>.sub-menu{display:block}
	.ejh-menu .sub-menu li{padding:0}
	.ejh-menu .sub-menu a{color:#fff;opacity:.88;padding:10px 0;font-weight:600}
	.ejh-menu .menu-item-has-children>a::after{content:"";display:inline-block;width:7px;height:7px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg)}
}
@media (max-width:380px){.ejh-msub{font-size:12.5px;padding:0 10px}.ejh-bar{padding-left:14px}}
@media (prefers-reduced-motion:reduce){.ejh *,.ejh{transition:none!important}}
@media print{.ejh,.ejh-spacer{display:none}}
