/* V1.12.1: explicit Bootstrap navigation spacing and tablet breakpoint. */
.ay-header>.container{width:96%;max-width:1480px;padding-left:12px;padding-right:12px}
.ay-header .ay-nav{--bs-navbar-nav-link-padding-x:16px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:86px;position:relative;height:auto}
.ay-header .ay-nav .navbar-nav{display:flex;list-style:none;padding:0;margin:0;gap:10px;min-width:0}
.ay-header .ay-nav .navbar-nav .nav-link{display:block;padding:16px!important;font-size:14px;line-height:1.5;min-height:48px;white-space:nowrap;border-radius:5px;text-decoration:none}
.ay-header .ay-nav .navbar-nav .dropdown-toggle{width:100%;text-align:left;border:0}
.ay-header .ay-nav .navbar-nav .ay-quote{display:flex;align-items:center;justify-content:center;min-height:48px;padding:14px 20px;margin-left:8px!important;white-space:nowrap}
.ay-header .ay-nav .dropdown-menu{min-width:250px;max-width:min(360px,calc(100vw - 48px));padding:10px;box-shadow:0 14px 35px #14382025}
.ay-header .ay-nav .dropdown-item{min-height:44px;padding:12px 14px;white-space:normal;overflow-wrap:anywhere}
.ay-header .ay-brand{flex:0 0 auto;max-width:210px}
.ay-header .ay-brand img{max-width:200px;max-height:56px}
.ay-header .ay-toggle{width:48px;min-height:48px;padding:6px;font-size:25px;display:flex;align-items:center;justify-content:center}
.ay-header .ay-nav .nav-link:focus-visible,.ay-header .ay-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(min-width:1400px){
 .ay-header .ay-nav .navbar-collapse.collapse{display:flex!important;flex:1 1 auto;justify-content:flex-end;min-width:0}
 .ay-header .ay-nav .navbar-nav{flex-direction:row;align-items:center}
 .ay-header .ay-toggle{display:none!important}
}
@media(max-width:1399.98px){
 .ay-header .ay-nav{gap:12px;padding:12px 0;min-height:78px}
 .ay-header .ay-nav .navbar-collapse{flex:0 0 100%;width:100%;padding:10px 0 4px;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
 .ay-header .ay-nav .navbar-collapse.collapse:not(.show){display:none!important}
 .ay-header .ay-nav .navbar-collapse.collapse.show{display:block!important}
 .ay-header .ay-toggle{display:flex!important}
 .ay-header .ay-nav .navbar-nav{flex-direction:column!important;align-items:stretch!important;gap:8px;margin:0!important;width:100%}
 .ay-header .ay-nav .navbar-nav .nav-item{width:100%}
 .ay-header .ay-nav .navbar-nav .nav-link{padding:14px 18px!important;font-size:16px;min-height:50px;border-bottom:1px solid #ffffff1a}
 .ay-header .ay-nav .navbar-nav .ay-quote{margin:10px 0 0!important;width:100%}
 .ay-header .ay-nav .dropdown-menu{position:static!important;float:none;width:100%;max-width:100%;min-width:0;margin:6px 0 12px;background:#fff}
}
@media(max-width:575.98px){
 .ay-header>.container{width:100%;padding:0 16px}
 .ay-header .ay-brand img{max-width:155px;max-height:48px}
 .ay-header .ay-brand strong{font-size:21px}
 .ay-header .ay-brand small{font-size:9px}
 .ay-topstrip .container{flex-direction:column;align-items:flex-start;gap:5px!important}
}
/* Desktop logo aligns with the bottom of the existing menu row. */
.ay-header .ay-brand img{height:84px;max-height:84px;width:auto;max-width:220px;object-fit:contain;padding:5px 8px}
.ay-header .ay-brand{display:flex;align-items:center;max-width:230px}
@media(min-width:1400px){
 .ay-header .ay-nav{flex-wrap:nowrap!important;align-items:flex-end!important;min-height:174px;padding:12px 0;gap:20px}
 .ay-header .ay-brand{align-self:flex-end!important;margin-bottom:0}
 .ay-header .ay-nav .navbar-collapse.collapse{flex:1 1 auto!important;flex-basis:auto!important;width:auto!important;max-width:none;padding-top:0!important;align-items:center!important;align-self:flex-end!important;justify-content:flex-end}
 .ay-header .ay-nav .navbar-nav{flex-wrap:nowrap!important;align-items:center!important;width:auto!important;margin-left:auto!important}
}
@media(max-width:1399.98px){.ay-header .ay-nav{flex-wrap:wrap!important}.ay-header .ay-brand img{height:72px;max-height:72px;max-width:200px}}
@media(max-width:575.98px){.ay-header .ay-brand img{height:64px;max-height:64px;max-width:175px}}

@media(max-width:1399.98px){.ay-header .ay-nav{align-items:center!important;min-height:96px}.ay-header .ay-brand,.ay-header .ay-toggle{align-self:center!important}.ay-header .ay-nav .navbar-collapse{align-self:auto!important}}

/* V1.13: centre the desktop logo above the navigation. */
@media(min-width:1400px){
 .ay-header .ay-nav{flex-direction:column;align-items:center!important;justify-content:center;gap:12px;min-height:0;padding:20px 0 16px}
 .ay-header .ay-brand{align-self:center!important;margin:0 auto;justify-content:center;max-width:280px}
 .ay-header .ay-brand img{height:100px;max-height:100px;max-width:260px;padding:0;object-fit:contain}
 .ay-header .ay-nav .navbar-collapse.collapse{align-self:center!important;width:100%!important;justify-content:center;flex:0 1 auto!important}
 .ay-header .ay-nav .navbar-nav{justify-content:center;flex-wrap:wrap!important;margin:0!important;gap:10px 14px}
}
@media(max-width:1399.98px){
 .ay-header .ay-nav{position:relative;justify-content:center;padding:14px 60px;min-height:102px}
 .ay-header .ay-brand{margin:0 auto;justify-content:center}
 .ay-header .ay-toggle{position:absolute;right:0;top:26px}
 .ay-header .ay-nav .navbar-collapse{flex-basis:100%;min-width:0;padding-top:14px;max-height:calc(100dvh - 150px)}
}
@media(max-width:575.98px){
 .ay-header .ay-nav{padding-left:48px;padding-right:48px}
 .ay-header .ay-brand img{max-width:min(175px,calc(100vw - 144px));height:64px}
 .ay-header .ay-nav .navbar-collapse{margin-left:-48px;margin-right:-48px;flex-basis:calc(100% + 96px);width:calc(100% + 96px)}
}
