/* Shared JE Horizon navigation and opt-in legacy surface styling. */
:root{--jeh-paper:#f7f5ef;--jeh-ink:#172b34;--jeh-blue:#155eef;--jeh-rule:#d7dfdd;--jeh-orange:#e66a24;--jeh-navy:#102a36}
.jeh-cohesion-shell,.jeh-cohesion-shell *{box-sizing:border-box}
.jeh-cohesion-shell{position:relative;z-index:1000;color:var(--jeh-ink);font:15px/1.45 "Segoe UI",Arial,sans-serif;background:var(--jeh-paper);border-bottom:1px solid var(--jeh-rule)}
#jeh-cohesion-shell .jeh-shell-header{position:static;display:block;margin:0;padding:0;width:auto;max-width:none;background:transparent;border:0;box-shadow:none}
/* Keep legacy account nodes available to existing auth scripts, with one visible navigation. */
body .jh-brand-bar[data-jeh-account-bar="preserved"]{display:none!important}
.jeh-cohesion-shell:is([data-jeh-context="line"],[data-jeh-context="cmd"]){--jeh-paper:#f7f3ec;--jeh-ink:#102a36;--jeh-blue:#b94912;--jeh-rule:#d7d1c6;--jeh-orange:#b94912}
.jeh-cohesion-shell a{color:inherit;text-decoration:none}
.jeh-cohesion-shell a:hover{text-decoration:underline;text-underline-offset:4px}
.jeh-cohesion-shell a:focus-visible,.jeh-cohesion-shell button:focus-visible,.jeh-cohesion-shell summary:focus-visible{outline:3px solid var(--jeh-orange);outline-offset:3px}
.jeh-shell-skip{position:absolute;top:-100px;left:10px;background:var(--jeh-navy);color:#fff!important;padding:9px 13px;z-index:5}
.jeh-shell-skip:focus{top:9px}
.jeh-shell-inner{width:min(100% - 40px,1260px);min-height:72px;margin:auto;display:flex;align-items:center;gap:30px}
.jeh-shell-brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;font-size:17px;font-weight:800;letter-spacing:-.035em}
.jeh-shell-brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:5px;background:var(--jeh-blue);color:#fff;font-size:12px;letter-spacing:-.06em}
.jeh-shell-links{display:flex;align-items:center;justify-content:space-between;flex:1;gap:20px;min-width:0}
.jeh-shell-links[hidden]{display:none!important}
.jeh-shell-primary,.jeh-shell-account,.jeh-shell-legal{display:flex;align-items:center;gap:20px;white-space:nowrap}
.jeh-shell-primary{font-weight:700}
.jeh-shell-account{gap:16px;font-size:13px;font-weight:700}
.jeh-shell-legal{gap:11px;font-size:12px;color:#52646e}
.jeh-shell-sign-up{background:var(--jeh-blue);color:#fff!important;border-radius:4px;padding:9px 13px}
.jeh-shell-sign-up:hover{background:#0b48bd;text-decoration:none!important}
.jeh-shell-signout{background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;font-weight:700}
.jeh-shell-signout:hover{text-decoration:underline}
.jeh-cohesion-shell:is([data-jeh-context="line"],[data-jeh-context="cmd"]) .jeh-shell-sign-up:hover{background:#b94912}
.jeh-shell-products{position:relative}
.jeh-shell-products summary{cursor:pointer;list-style:none}
.jeh-shell-products summary::-webkit-details-marker{display:none}
.jeh-shell-products summary::after{content:"⌄";display:inline-block;margin-left:6px;font-size:15px;line-height:1}
.jeh-shell-products[open] summary::after{transform:rotate(180deg)}
.jeh-shell-products-panel{position:absolute;left:-15px;top:calc(100% + 20px);min-width:230px;display:grid;gap:2px;background:#fff;border:1px solid var(--jeh-rule);border-radius:7px;box-shadow:0 18px 40px rgba(23,43,52,.14);padding:9px;white-space:nowrap}
.jeh-shell-products-panel a{padding:9px 10px;border-radius:4px}
.jeh-shell-products-panel a:hover{background:#eef2ff;text-decoration:none}
#jeh-cohesion-shell .jeh-shell-menu-button{display:none;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:84px;appearance:none;border:1px solid var(--jeh-ink);border-radius:6px;padding:8px 11px;background:transparent;color:var(--jeh-ink);-webkit-text-fill-color:currentColor;font:700 15px/1.4 "Segoe UI",Arial,sans-serif;box-shadow:none;cursor:pointer}
#jeh-cohesion-shell .jeh-shell-menu-button:hover,#jeh-cohesion-shell .jeh-shell-menu-button[aria-expanded="true"]{background:#e9eeeb;color:var(--jeh-ink)}
body.jeh-cohesion-legacy{--jh-background:#f7f5ef;--jh-surface:#fff;--jh-text:#172b34;--jh-muted:#4c606a;--jh-accent:#155eef;--jh-focus:#b94912;--jh-line:#d7dfdd;--jh-type:"Segoe UI",Arial,sans-serif;--bg:#f7f5ef;--bg-alt:#eef3f4;--card:#fff;--ink:#172b34;--ink-mute:#4c606a;--muted:#4c606a;--accent:#155eef;--border:#d7dfdd;--line:#d7dfdd;background:#f7f5ef;color:#172b34;font-family:"Segoe UI",Arial,sans-serif}
body.jeh-cohesion-legacy :is(.account-summary,.account-empty-state,.customer-products li){background:#fff;color:#172b34;border-color:#d7dfdd}
body.jeh-cohesion-legacy.jh-account-page .account-button-secondary{background:#fff;color:#172b34;border-color:#aebfbe}
body.jeh-cohesion-legacy.jh-account-page .account-button-secondary:hover{background:#eef3f4;color:#172b34}
body.jeh-cohesion-legacy.jh-account-page .account-2fa-row input{background:#fff;color:#172b34;border-color:#aebfbe}
body.jeh-cohesion-legacy.jh-account-page :is(#signin-email-input,#signup-email-input){background:#fff!important;color:#172b34!important;border-color:#aebfbe!important}
body.jeh-cohesion-legacy.jh-account-page :is(#signin-email-input,#signup-email-input)::placeholder{color:#61737d}
body.jeh-cohesion-legacy.jh-account-page main :is(.account-button,button):not(.account-button-secondary){color:#fff}
body.jeh-cohesion-legacy .jh-brand-bar .jh-signup{color:#fff}
body.jeh-cohesion-legacy .jh-brand-bar .jh-user-pill{background:#edf0ff;color:#172b34;border-color:#bbc9e8}
body.jeh-cohesion-legacy .account-dev-badge .badge-tag{color:#fff}
body.jeh-cohesion-legacy .account-dev-badge{background:#eef2ff;color:#172b34;border-color:#bbc9e8}
body.jeh-cohesion-legacy :is(.tag-price,.tag-active,.tag-free,.tag-dev,.tag-preview,.tag-pro,.tag-b2b,.tag-soon){color:#254451}
body.jeh-cohesion-legacy .account-footer,body.jeh-cohesion-legacy footer{border-color:var(--jeh-rule)}
body.jeh-cohesion-legacy :is(input,select,textarea):focus-visible{outline:3px solid var(--jeh-blue);outline-offset:2px}
body.jeh-cohesion-legacy :is(button,a):focus-visible{outline:3px solid var(--jeh-blue);outline-offset:3px}
body.jeh-cohesion-legacy .account-button{background:var(--jeh-blue);color:#fff}
@media(max-width:1120px){.jeh-shell-inner{gap:20px}.jeh-shell-primary,.jeh-shell-account{gap:12px}.jeh-shell-legal{display:none}}
@media(max-width:800px){.jeh-shell-inner{min-height:62px;justify-content:space-between;position:relative}#jeh-cohesion-shell .jeh-shell-menu-button{display:inline-flex}.jeh-shell-links{position:absolute;left:0;right:0;top:100%;display:block;background:var(--jeh-paper);border:1px solid var(--jeh-rule);border-top:0;box-shadow:0 20px 30px rgba(23,43,52,.1);padding:12px 18px 19px;max-height:calc(100dvh - 65px);overflow-y:auto}.jeh-shell-primary,.jeh-shell-account,.jeh-shell-legal{display:grid;gap:0;white-space:normal}.jeh-shell-primary>a,.jeh-shell-account>a,.jeh-shell-legal>a,.jeh-shell-products>summary{display:block;padding:10px 2px}.jeh-shell-account,.jeh-shell-legal{border-top:1px solid var(--jeh-rule);margin-top:7px;padding-top:7px}.jeh-shell-products-panel{position:static;min-width:0;box-shadow:none;border:0;background:#edeef0;margin:5px 0;padding:5px 10px}.jeh-shell-sign-up{width:max-content;padding:10px 12px!important;margin:4px 0}.jeh-shell-legal{grid-template-columns:repeat(2,max-content);gap:14px}}
@media(prefers-reduced-motion:reduce){.jeh-cohesion-shell *,body.jeh-cohesion-legacy *{scroll-behavior:auto!important;transition-duration:0.01ms!important;animation-duration:0.01ms!important}}
@media (max-width: 768px) {
  body:has(.mobile-store-bar) #jhConcierge,
  body:has(.mobile-cta) #jhConcierge,
  body:has([class*="mobile-store"]) #jhConcierge,
  body:has([class*="mobile-cta"]) #jhConcierge,
  body.has-mobile-store-bar #jhConcierge,
  #jhConcierge.has-mobile-store-bar {
    bottom: var(--jhc-store-bar-height, max(88px, calc(env(safe-area-inset-bottom, 0px) + 84px))) !important;
  }
}
