/* One logo box and one alignment grid on every page. Theme colors stay local. */
:root{--site-header-height:96px;--site-header-logo-width:162px;--site-header-logo-height:54px;--site-header-gutters:100px;--site-header-max:1240px}
html{scroll-padding-top:calc(var(--site-header-height) + 14px)}
body[class] .site-header{height:var(--site-header-height)}
body[class] .site-header .header-row{width:min(var(--site-header-max),calc(100% - var(--site-header-gutters)));height:var(--site-header-height);margin-inline:auto;align-items:center;padding:0}
body[class] .site-header .brand{display:flex;align-items:center;justify-content:flex-start;flex:0 0 var(--site-header-logo-width);width:var(--site-header-logo-width);height:var(--site-header-logo-height);margin:0;padding:0;line-height:0}
body[class] .site-header .brand :is(img,svg){display:block;width:var(--site-header-logo-width);height:var(--site-header-logo-height);max-width:none;max-height:none;margin:0;padding:0;object-fit:contain;object-position:left center;flex-shrink:0}
body[class] .site-header .mobile-nav{top:var(--site-header-height)}
body.home-page .opening-content,
body.optician-page .ai-opening-content{width:min(var(--site-header-max),calc(100% - var(--site-header-gutters)));margin-inline:auto}
body.optician-page .ai-opening{height:calc(100vh - var(--site-header-height));height:calc(100svh - var(--site-header-height))}
html:has(> body.optician-page){scroll-padding-top:var(--site-header-height)}
@media(max-width:1100px){:root{--site-header-gutters:64px}}
@media(max-width:850px){:root{--site-header-height:84px;--site-header-logo-width:142px;--site-header-logo-height:48px;--site-header-gutters:44px}}
@media(max-width:600px){:root{--site-header-gutters:40px}}

/* Native document navigation: painting the incoming page once avoids a
   crossfade between unrelated photographs and independently themed headers. */
@view-transition{navigation:none}

/* Six navigation entries retain the common logo size and alignment. */
body[class] .site-header .desktop-nav{gap:clamp(18px,2vw,30px)}
@media(max-width:1000px){
 .site-header .desktop-nav{display:none}
 .site-header .header-row{justify-content:space-between}
 .site-header .menu-toggle{display:flex;align-items:center;gap:12px;font-size:14px}
 .site-header .menu-lines{font-size:23px;line-height:1}
 .mobile-nav{position:absolute;top:var(--site-header-height);left:0;right:0;max-height:calc(100vh - var(--site-header-height));max-height:calc(100dvh - var(--site-header-height));overflow-y:auto;overscroll-behavior-y:contain;background:#fff;border-bottom:1px solid var(--line);padding:15px 22px 28px;box-shadow:0 20px 28px #173c2a0e}
 .mobile-nav:not([hidden]){display:block}
 .mobile-nav>a{display:block;padding:16px 0;border:0;font-size:16px}
}
