/* 0.5.3 - Boutique navigation and accessible account popover */
.tz-header-actions{overflow:visible}
.tz-account-menu{position:relative;display:flex;align-items:center;z-index:210}
.tz-account-toggle{position:relative;border-radius:14px;transition:background .2s,color .2s,transform .2s}
.tz-account-toggle:hover,.tz-account-toggle[aria-expanded="true"]{background:var(--color-bg,#f8f1f3);color:var(--color-secondary,#6b214f);transform:translateY(-1px)}
.tz-account-status-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--color-gold,#d4af37);right:3px;bottom:3px;border:1px solid #fff}
.tz-account-popover[hidden]{display:none!important}
.tz-account-popover{position:absolute;top:calc(100% + 13px);left:0;width:min(305px,calc(100vw - 28px));padding:12px;background:#fff;border:1px solid #eedee6;border-radius:18px;box-shadow:0 22px 65px rgba(59,24,56,.17);z-index:350;direction:rtl;animation:tz-pop .18s ease both}
.tz-account-popover:before{content:"";position:absolute;top:-7px;left:22px;width:12px;height:12px;transform:rotate(45deg);background:#fff;border-top:1px solid #eedee6;border-left:1px solid #eedee6}
.tz-account-popover-head{display:flex;align-items:center;gap:11px;background:linear-gradient(120deg,#f8f1f3,#fff5f9);border-radius:12px;padding:14px 12px;margin-bottom:8px}
.tz-account-avatar{width:42px;height:42px;display:grid;place-items:center;flex:none;background:#3b1838;color:#d4af37;border-radius:14px;font-size:20px;font-weight:800}
.tz-account-popover-head strong{display:block;color:#3b1838;font-size:13px;line-height:1.8}.tz-account-popover-head small{display:block;color:#886b7c;font-size:11px}
.tz-account-popover nav{display:grid;gap:2px}.tz-account-popover nav a{display:flex;align-items:center;gap:10px;border-radius:10px;padding:10px;color:#493043;text-decoration:none;font-size:12px;font-weight:600;transition:background .18s,color .18s}
.tz-account-popover nav a:hover,.tz-account-popover nav a:focus-visible{background:#f8edf2;color:#6b214f}.tz-account-link-icon{width:28px;height:28px;border-radius:9px;background:#f8f1f3;color:#9b3f6e;display:grid;place-items:center;font-size:16px}.tz-account-link-arrow{margin-inline-start:auto;color:#b18a9d}.tz-account-popover-note{padding:9px 10px 2px;color:#806b77;font-size:11px;line-height:1.8}
@keyframes tz-pop{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
/* 0.5.4: editorial top-level navigation only. Nested menus and mega panels untouched. */
.tz-primary-nav{background:#fff;border-bottom:1px solid #f0e6eb}
.tz-primary-nav:after{display:none}
@media(min-width:768px){
 .tz-primary-nav .tz-menu{gap:clamp(12px,2.25vw,35px);min-height:62px}
 .tz-primary-nav .tz-menu>li>a{position:relative;display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px clamp(9px,1.15vw,17px) 14px;border-radius:0;background:transparent!important;color:#493047;font-size:13px;font-weight:700;letter-spacing:0;transition:color .2s ease}
 .tz-primary-nav .tz-menu>li>a:before{content:"";position:absolute;inset:auto auto 7px 50%;width:5px;height:5px;background:#d4af37;border-radius:1px;opacity:0;transform:translateX(-50%) rotate(45deg) scale(.5);transition:opacity .2s ease,transform .2s ease;z-index:1}
 .tz-primary-nav .tz-menu>li>a:after{content:"";position:absolute;inset:auto 24% 4px;height:2px;width:auto;border-radius:10px;background:linear-gradient(90deg,#d4af37,#9b3f6e,#d4af37);opacity:0;transform:scaleX(.35);transition:opacity .22s ease,transform .22s ease;pointer-events:none}
 .tz-primary-nav .tz-menu>li:hover>a,.tz-primary-nav .tz-menu>li:focus-within>a,.tz-primary-nav .tz-menu>li.current-menu-item>a,.tz-primary-nav .tz-menu>li.current-menu-ancestor>a,.tz-primary-nav .tz-menu>li.current_page_item>a{color:#6b214f}
 .tz-primary-nav .tz-menu>li:hover>a:after,.tz-primary-nav .tz-menu>li:focus-within>a:after,.tz-primary-nav .tz-menu>li.current-menu-item>a:after,.tz-primary-nav .tz-menu>li.current-menu-ancestor>a:after,.tz-primary-nav .tz-menu>li.current_page_item>a:after{opacity:1;transform:scaleX(1)}
 .tz-primary-nav .tz-menu>li:hover>a:before,.tz-primary-nav .tz-menu>li:focus-within>a:before,.tz-primary-nav .tz-menu>li.current-menu-item>a:before,.tz-primary-nav .tz-menu>li.current-menu-ancestor>a:before,.tz-primary-nav .tz-menu>li.current_page_item>a:before{opacity:1;transform:translateX(-50%) rotate(45deg) scale(1)}
 .tz-primary-nav .tz-menu>li>a:focus-visible{outline:2px solid #d4af37;outline-offset:-3px}
}
@media(max-width:767px){.tz-account-popover{left:auto;right:-20px}.tz-account-popover:before{left:auto;right:30px}.tz-primary-nav:after{display:none}}
@media(prefers-reduced-motion:reduce){.tz-account-popover{animation:none}.tz-primary-nav .tz-menu>li>a:before,.tz-primary-nav .tz-menu>li>a:after{transition:none}}
/* 0.5.5: Keep the account entry visible and usable in mobile header. */
@media (max-width:767px){
 .tz-header-actions .tz-account-menu{display:flex!important;position:static;z-index:210}
 .tz-header-actions .tz-account-toggle{display:grid!important;place-items:center;min-width:38px;min-height:40px;padding:7px;color:var(--color-secondary,#6b214f)}
 .tz-header-actions .tz-account-toggle svg{width:22px;height:22px}
 .tz-header-actions .tz-account-popover{position:fixed;top:calc(78px + env(safe-area-inset-top,0px));left:14px;right:14px;width:auto;max-width:390px;margin-inline:auto;z-index:350;max-height:calc(100dvh - 100px);overflow-y:auto}
 .tz-header-actions .tz-account-popover:before{display:none}
}
@media (max-width:600px){.admin-bar .tz-header-actions .tz-account-popover{top:calc(78px + env(safe-area-inset-top,0px))}}

/* Ensure account navigation links receive taps in mobile browsers. */
.tz-account-popover nav a{position:relative;z-index:2;pointer-events:auto;touch-action:manipulation}
