/* BooksFirst x Unity Homes — calm editorial navigation v2.
   Scoped to the public Unity Homes storefront only. Does not affect HQ or partner admin. */
.ed-unity-nav-v2 .ed-community-strip{display:none}
.ed-unity-nav-v2 .ed-header{background:#fff;border-bottom:1px solid #e9e8e4;box-shadow:0 2px 12px rgba(23,24,63,.035)}
.ed-unity-nav-v2 .ed-header-inner{min-height:78px;gap:clamp(12px,1.2vw,22px)}
.ed-unity-nav-v2 .ed-brand{min-width:198px;max-width:255px;flex:0 1 238px;gap:12px}
.ed-unity-nav-v2 .ed-brand-mark{width:48px;height:48px;border:1px solid #ecece9;border-radius:10px;padding:5px}
.ed-unity-nav-v2 .ed-brand strong{font-size:14px;line-height:1.25;font-weight:740;letter-spacing:-.02em;color:#17183f}
.ed-unity-nav-v2 .ed-brand small{font-size:10px;letter-spacing:.025em;color:#70787b}
.ed-unity-nav-v2 .ed-primary-nav{gap:clamp(11px,1.2vw,20px);margin-left:auto;flex:0 0 auto}
.ed-unity-nav-v2 .ed-primary-nav>.ed-nav-item,.ed-unity-nav-v2 .ed-primary-nav>.ed-more>summary{font-size:12px;color:#303a39;line-height:1.2;min-height:76px;font-weight:630;border-bottom-width:2px;letter-spacing:0}
.ed-unity-nav-v2 .ed-primary-nav>.ed-nav-item:hover,.ed-unity-nav-v2 .ed-primary-nav>.ed-nav-item.is-current,.ed-unity-nav-v2 .ed-primary-nav>.ed-more[open]>summary{color:#c71e2a;border-bottom-color:#d71920}
.ed-unity-nav-v2 .ed-more>summary:after{content:'⌄';font-size:15px;font-weight:400;line-height:1}
.ed-unity-nav-v2 .ed-primary-nav .ed-more{position:relative}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu{min-width:238px;left:0;right:auto;top:calc(100% - 1px);border-radius:0 0 10px 10px;border:1px solid #e7e7e5;padding:11px;background:#fff;box-shadow:0 18px 35px rgba(14,29,31,.10);z-index:55}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-menu-caption{font-size:10px!important;letter-spacing:.12em;color:#7f8584;padding:12px 11px 7px!important}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-nav-item{width:100%;display:flex;min-height:42px;padding:0 12px;border:0;border-radius:5px;font-size:12px;color:#303a39;white-space:normal;font-weight:570}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-nav-item:hover,.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-nav-item.is-current{background:#f9f6f4;color:#b91e29;border:0}
.ed-unity-nav-v2 .ed-header-actions{gap:clamp(9px,.85vw,15px);margin-left:8px}
.ed-unity-nav-v2 .ed-search{width:194px;max-width:194px;min-width:140px;height:41px;display:flex;align-items:center;gap:3px;padding:0 5px 0 12px;border:1px solid #e5e6e4;border-radius:7px;background:#fafaf8}
.ed-unity-nav-v2 .ed-search:focus-within{border-color:#666d88;outline:2px solid #17183f22}
.ed-unity-nav-v2 .ed-search input{width:100%;min-width:0;padding:8px 0;font-size:11px;color:#17183f;background:transparent}
.ed-unity-nav-v2 .ed-search button{font-size:11px;font-weight:750;border:0;color:#17183f;background:transparent;cursor:pointer;padding:8px 7px}
.ed-unity-nav-v2 .ed-icon-link{font-size:25px;color:#17183f;line-height:1;padding:5px}
.ed-unity-nav-v2 .ed-cart-link{border:1px solid #eee7e6;background:#fff6f5;border-radius:6px;padding:9px 10px;color:#17183f;font-size:12px;gap:8px}
.ed-unity-nav-v2 .ed-cart-link span{background:#d71920;color:#fff;min-width:20px;padding:2px 5px}
.ed-unity-nav-v2 .ed-account-link{font-size:12px;font-weight:710;white-space:nowrap}
.ed-unity-nav-v2 .ed-mobile-menu-inner{width:min(385px,91vw);padding:25px 24px}
.ed-unity-nav-v2 .ed-mobile-section-title{padding:24px 7px 7px;color:#79807c;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.ed-unity-nav-v2 .ed-mobile-menu-inner>.ed-nav-item{padding:12px 7px;min-height:45px}
.ed-unity-nav-v2 .ed-mobile-search{display:flex;border:1px solid #e3e5e2;border-radius:7px;margin:5px 0 10px;padding:6px 9px;gap:8px}
.ed-unity-nav-v2 .ed-mobile-search input{flex:1;min-width:0;border:0;background:transparent;padding:8px 4px;font-size:14px}
.ed-unity-nav-v2 .ed-mobile-search button{border:0;background:#17183f;color:#fff;padding:0 14px;border-radius:5px;font-weight:700;font-size:12px}
@media(max-width:1370px){
 .ed-unity-nav-v2 .ed-primary-nav{gap:12px}
 .ed-unity-nav-v2 .ed-header-inner{gap:12px}
 .ed-unity-nav-v2 .ed-brand{flex-basis:194px;min-width:180px}
 .ed-unity-nav-v2 .ed-search{width:154px;min-width:130px;max-width:154px}
}
@media(max-width:1190px){
 .ed-unity-nav-v2 .ed-primary-nav{display:none}
 .ed-unity-nav-v2 .ed-menu-button{display:inline-flex}
 .ed-unity-nav-v2 .ed-brand{min-width:0;flex:1;max-width:none}
 .ed-unity-nav-v2 .ed-header-actions{margin-left:auto}
 .ed-unity-nav-v2 .ed-search{width:220px;max-width:220px}
}
@media(max-width:680px){
 .ed-unity-nav-v2 .ed-header-inner{min-height:68px}
 .ed-unity-nav-v2 .ed-brand-mark{height:42px;width:42px}
 .ed-unity-nav-v2 .ed-brand strong{font-size:12px}
 .ed-unity-nav-v2 .ed-brand small{font-size:9px}
 .ed-unity-nav-v2 .ed-header-actions{gap:9px}
 .ed-unity-nav-v2 .ed-search{display:none}
 .ed-unity-nav-v2 .ed-icon-link{display:none}
 .ed-unity-nav-v2 .ed-cart-link{font-size:11px;padding:7px 8px}
 .ed-unity-nav-v2 .ed-account-link{display:none}
}
@media(prefers-reduced-motion:reduce){.ed-unity-nav-v2 *{scroll-behavior:auto}}

/* BooksFirst x Unity Homes · approved editorial navbar v3 (scoped to public tenant). */
.ed-unity-nav-v2 .ed-header{z-index:90}
.ed-unity-nav-v2 .ed-header-inner{gap:clamp(10px,1.3vw,22px);min-height:76px}
.ed-unity-nav-v2 .ed-brand{flex:0 1 230px;min-width:180px;max-width:250px}
.ed-unity-nav-v2 .ed-brand strong{font-size:13px;line-height:1.24}
.ed-unity-nav-v2 .ed-brand small{font-size:10px;color:#6a6e70;letter-spacing:0}
.ed-unity-nav-v2 .ed-primary-nav{gap:clamp(8px,.96vw,17px);margin-left:auto;flex:0 1 auto}
.ed-unity-nav-v2 .ed-primary-nav>.ed-nav-item,
.ed-unity-nav-v2 .ed-primary-nav>.ed-more>summary{min-height:75px;font-weight:630;font-size:12px;letter-spacing:-.014em;color:#1b2333;border-bottom:2px solid transparent;padding:0 2px;}
.ed-unity-nav-v2 .ed-primary-nav>.ed-more>summary{gap:5px}
.ed-unity-nav-v2 .ed-primary-nav>.ed-more>summary:after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px);margin:0 3px 0 4px;transition:transform .15s ease}
.ed-unity-nav-v2 .ed-primary-nav>.ed-more[open]>summary:after{transform:rotate(225deg) translate(-2px,0)}
.ed-unity-nav-v2 .ed-primary-nav>.ed-nav-item.is-current,
.ed-unity-nav-v2 .ed-primary-nav>.ed-more[open]>summary{color:#b81727;border-color:#d71920}
.ed-unity-nav-v2 .ed-primary-nav>.ed-more[open]>summary{background:#fcf7f6;border-radius:11px 11px 0 0;padding-inline:9px}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu{left:0;right:auto;top:calc(100% - 1px);width:232px;min-width:232px;padding:13px;border-radius:0 0 14px 14px;background:#fffdfb;border:1px solid #e7e3e0;box-shadow:0 15px 38px rgba(15,23,32,.11)}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-menu-caption{display:block;margin:0 3px 6px;padding:4px 7px 8px!important;color:#7a7780;font-weight:760;font-size:10px!important}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-nav-item{font-size:12px;font-weight:570;padding:10px 12px;border-radius:8px;min-height:42px;color:#26313f}
.ed-unity-nav-v2 .ed-primary-nav .ed-menu .ed-nav-item:focus-visible{outline:2px solid #c22b36;outline-offset:0}
.ed-unity-nav-v2 .ed-primary-nav .ed-nav-discover>.ed-mega-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;left:auto;right:-130px;min-width:0;width:min(770px,calc(100vw - 48px));padding:23px 19px 24px;border-radius:20px;background:#fffdfb;box-shadow:0 22px 50px rgba(17,19,37,.16)}
.ed-unity-nav-v2 .ed-primary-nav .ed-mega-menu .ed-mega-column{min-width:0;padding:0 17px;display:flex;flex-direction:column;align-items:stretch}
.ed-unity-nav-v2 .ed-primary-nav .ed-mega-menu .ed-mega-column+.ed-mega-column{border-left:1px solid #ebe7e3}
.ed-unity-nav-v2 .ed-primary-nav .ed-mega-menu h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px;font-weight:760;letter-spacing:-.015em;margin:0 0 11px;color:#17183f;display:flex;align-items:center;gap:9px}
.ed-unity-nav-v2 .ed-primary-nav .ed-mega-menu h2 svg{width:21px;height:21px;color:#b71929;flex:none}
.ed-unity-nav-v2 .ed-primary-nav .ed-mega-menu .ed-nav-item{font-size:12.5px;font-weight:520;min-height:42px;padding:9px 6px}
.ed-unity-nav-v2 .ed-header-actions{gap:9px;margin-left:8px}
.ed-unity-nav-v2 .ed-search{width:179px;min-width:120px;max-width:190px;height:40px;border-radius:24px;background:#f7f6f4;padding:0 7px 0 13px}
.ed-unity-nav-v2 .ed-search input{font-size:11px;min-width:0}
.ed-unity-nav-v2 .ed-search button{width:34px;height:34px;min-width:34px;display:grid;place-items:center;padding:6px;border-radius:50%;color:#17183f}
.ed-unity-nav-v2 .ed-search button svg{width:18px;height:18px}
.ed-unity-nav-v2 .ed-icon-link{width:36px;height:40px;display:grid;place-items:center;padding:0}
.ed-unity-nav-v2 .ed-icon-link svg{width:21px;height:21px}
.ed-unity-nav-v2 .ed-cart-link.ed-bag-icon{width:42px;height:42px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#17183f;border-radius:11px;position:relative;flex:none}
.ed-unity-nav-v2 .ed-cart-link.ed-bag-icon svg{width:25px;height:25px}
.ed-unity-nav-v2 .ed-cart-link.ed-bag-icon .ed-bag-count{position:absolute;top:-2px;right:-2px;min-width:19px;height:19px;padding:0 4px;border-radius:50%;font-size:10px;line-height:19px;text-align:center;font-weight:750;background:#d71920;color:#fff;box-shadow:0 0 0 2px #fff}
.ed-unity-nav-v2 .ed-account-link{font-size:12px;font-weight:650;color:#17183f;white-space:nowrap}
@media (hover:hover) and (pointer:fine){
 .ed-unity-nav-v2 .ed-primary-nav>.ed-more>summary:hover,.ed-unity-nav-v2 .ed-primary-nav>.ed-nav-item:hover{color:#b71e2b}
 .ed-unity-nav-v2 .ed-cart-link.ed-bag-icon:hover,.ed-unity-nav-v2 .ed-icon-link:hover{background:#fcf0f1}
}
@media (max-width:1420px){
 .ed-unity-nav-v2 .ed-primary-nav{gap:9px}
 .ed-unity-nav-v2 .ed-brand{flex-basis:195px;min-width:168px}
 .ed-unity-nav-v2 .ed-search{width:148px;min-width:115px}
}
@media (max-width:1280px){
 .ed-unity-nav-v2 .ed-primary-nav{display:none}
 .ed-unity-nav-v2 .ed-menu-button{display:inline-flex}
 .ed-unity-nav-v2 .ed-brand{flex:1;max-width:none}
 .ed-unity-nav-v2 .ed-search{width:215px;max-width:215px}
}
@media(max-width:680px){
 .ed-unity-nav-v2 .ed-header-inner{min-height:67px}
 .ed-unity-nav-v2 .ed-header-actions{gap:5px}
 .ed-unity-nav-v2 .ed-search,.ed-unity-nav-v2 .ed-icon-link,.ed-unity-nav-v2 .ed-account-link{display:none}
 .ed-unity-nav-v2 .ed-cart-link.ed-bag-icon{width:38px;height:38px;display:grid;padding:0}
 .ed-unity-nav-v2 .ed-cart-link.ed-bag-icon svg{width:23px;height:23px}
 .ed-unity-nav-v2 .ed-brand{min-width:0}
 .ed-unity-nav-v2 .ed-mobile-menu-inner{overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){.ed-unity-nav-v2 .ed-primary-nav>.ed-more>summary:after{transition:none}}
