/* Complete original word ring moves outside the fixed tree and roots. */
header .nav{height:auto;min-height:252px;gap:16px;padding-block:6px}header .brand{gap:12px;flex-shrink:1;min-width:0}header .brand>div{max-width:245px;min-width:0}header .brand strong{line-height:1.4}header .brand small{display:block;line-height:1.65;margin-top:8px}header .brand-logo{width:240px;height:240px;overflow:visible;flex-shrink:0}footer .brand-logo{width:240px;height:240px;overflow:visible;flex-shrink:0}.yb-logo-words{transform-origin:204px 255px;animation:yb-words-turn 36s linear infinite}.brand:hover .yb-logo-words,.brand:focus-visible .yb-logo-words{animation-play-state:paused}@keyframes yb-words-turn{to{transform:rotate(360deg)}}
@media(min-width:901px) and (max-width:1190px){header .nav{gap:12px}header .brand-logo{width:200px;height:200px}header .brand>div{max-width:190px}header .menu{gap:12px}header .nav>.cta{display:none}}
@media(max-width:900px){header .nav{min-height:190px;gap:8px}header .brand{flex:1;gap:8px}header .brand-logo{width:170px;height:170px}header .brand strong{font-size:18px}header .brand small{font-size:12px!important}header .brand>div{max-width:245px}header .burger{flex:0 0 32px;padding:0}header .mobile-menu{top:100%}}
@media(max-width:360px){header .brand-logo{width:136px;height:136px}header .nav{min-height:158px}header .brand strong{font-size:16px}header .brand small{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.yb-logo-words{animation:none}}

/* Keep the Hebrew brand title and subtitle on exactly two lines. */
html[lang="he"] header .brand>div{max-width:none;flex-shrink:0}
html[lang="he"] header .brand strong,html[lang="he"] header .brand small{white-space:nowrap}
html[lang="he"] header .menu{gap:16px}
@media(min-width:901px) and (max-width:1190px){html[lang="he"] header .nav{flex-wrap:wrap;justify-content:center}html[lang="he"] header .brand>div{max-width:none}html[lang="he"] header .menu{justify-content:center}}
@media(max-width:900px){html[lang="he"] header .brand{flex-direction:column;gap:4px;text-align:center;padding-block:8px}html[lang="he"] header .brand>div{max-width:100%}html[lang="he"] header .brand strong{font-size:20px}html[lang="he"] header .brand small{font-size:clamp(11px,3.3vw,15px)!important;margin-top:4px}html[lang="he"] header .nav{padding-bottom:8px}html[lang="he"] header .brand-logo{width:170px;height:170px}}

/* Preserve the original frames around the new portrait. */
.portrait{height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center top;border-radius:200px 200px 26px 26px;border:0}
.mini-photo{height:auto;aspect-ratio:4/5;object-fit:contain;border-radius:34px}
header .brand{cursor:default}

/* Independent logo; the navigation bar no longer inherits its height. */
.yb-logo-home{position:relative;height:0;z-index:21;pointer-events:none}
.yb-logo-home .brand-logo{position:absolute;inset-inline-start:0;top:6px;width:240px;height:240px;overflow:visible;pointer-events:auto}
header .nav,html[lang="he"] header .nav{height:96px;min-height:96px;flex-wrap:nowrap;padding-block:8px}
header .brand,html[lang="he"] header .brand{padding-inline-start:252px;flex-direction:row;padding-block:0}
html[dir="ltr"] header .mobile-menu{top:100%}
@media(min-width:901px) and (max-width:1190px){
.yb-logo-home .brand-logo{width:200px;height:200px}
header .nav,html[lang="he"] header .nav{height:88px;min-height:88px;justify-content:space-between}
header .brand,html[lang="he"] header .brand{padding-inline-start:212px}
header .menu,header .nav>.cta{display:none}
header .burger{display:block}
header .mobile-menu{position:absolute;top:100%;inset-inline:0;background:#fff;padding:18px 4vw;box-shadow:0 18px 40px rgba(0,0,0,.08)}
header .mobile-menu.show{display:block}
header .mobile-menu a{display:block;padding:12px 0;border-bottom:1px solid var(--line)}
}
@media(max-width:900px){
.yb-logo-home{height:178px;display:flex;justify-content:center;align-items:center}
.yb-logo-home .brand-logo{position:static;width:170px;height:170px}
header .nav,html[lang="he"] header .nav{height:84px;min-height:84px;padding-block:8px}
header .brand,html[lang="he"] header .brand{padding-inline-start:0;justify-content:center;margin:0;flex:1}
header .brand>div{max-width:100%}
}

/* Translated names may wrap; keep them inside the compact navigation. */
html[dir="ltr"] header .nav{height:auto;min-height:96px;padding-block:12px}
html[dir="ltr"] header .brand strong{font-size:18px;line-height:1.3}
html[dir="ltr"] header .brand small{font-size:12px!important;line-height:1.4;margin-top:4px}
@media(max-width:900px){html[dir="ltr"] header .nav{min-height:84px}html[dir="ltr"] header .brand small{font-size:11px!important}}
