/* One masthead for both sites, including the gallery, profile and venue pages. */
:root{--dapple-desktop-scene-width:min(100vw,calc((100svh - 159px) * 2.299879),2200px)}
body.dapple-page header.site-masthead,body.dapple-page .site-masthead *{box-sizing:border-box}
body.dapple-page header.site-masthead{position:relative;top:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;gap:0;width:100%;max-width:none;margin:0;padding:4px 24px 6px;border:0;border-bottom:1px solid #e5dccb;background:#faf7ef;backdrop-filter:none}
body.dapple-page .site-masthead .site-masthead-brand{display:block;flex:none;width:104px;max-width:none;height:104px;margin:0 auto;padding:0;border:0;line-height:1;text-decoration:none}
body.dapple-page .site-masthead-brand img{display:block;width:100%;height:100%;object-fit:contain}
body.standard-site .site-masthead-brand img{mix-blend-mode:multiply}
/* Equal columns align the middle link to the logo, independent of label widths. */
body.dapple-page header.site-masthead nav.site-primary-nav{display:grid;flex:0 1 auto;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;justify-items:center;gap:0;width:min(100%,760px);min-width:0;margin:0 auto;padding:0}
body.standard-site header.site-masthead nav.site-primary-nav{grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,600px)}
body.dapple-page .site-masthead .site-primary-nav a{position:relative;display:inline-flex;grid-column:auto;grid-row:auto;order:0;align-items:center;justify-content:center;justify-self:center;flex:none;min-width:44px;max-width:100%;min-height:44px;margin:0;padding:8px 15px;border:0;border-radius:999px;background:transparent;color:#44271f;font:400 12px/1.25 Arial,Helvetica,sans-serif;letter-spacing:.8px;text-transform:uppercase;white-space:nowrap;text-align:center;text-decoration:none}
body.standard-site .site-masthead .site-primary-nav a{padding-inline:18px}
/* Match the gaps at each side of Adventure map, while keeping it under the logo.
   Each side fills the same space; its two links sit towards the middle. */
body.twins-site header.site-masthead nav.site-primary-nav{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:24px}
body.twins-site .site-masthead .site-nav-side{display:flex;align-items:center;gap:24px;width:100%;min-width:0}
body.twins-site .site-masthead .site-nav-before{justify-content:flex-end}
body.twins-site .site-masthead .site-nav-after{justify-content:flex-start}
body.twins-site .site-masthead .site-nav-side a{flex:0 1 auto}
body.dapple-page .site-masthead .site-primary-nav a[aria-current="page"]{background:#bc9034}
body.dapple-page .site-masthead .site-primary-nav a[aria-current="page"]::after{content:"";position:absolute;bottom:-5px;left:22%;right:22%;height:2px;background:#44271f}
body.dapple-page .site-masthead .site-primary-nav a:hover{color:#91691f}
body.dapple-page .site-masthead .site-primary-nav a[aria-current="page"]:hover{color:#44271f}
body.dapple-page .site-masthead a:focus-visible{outline:3px solid #a87924;outline-offset:4px}
@media(max-width:900px){
 /* Scroll the logo away and keep the compact menu visible. */
 body.dapple-page header.site-masthead{position:sticky;top:-84px;z-index:50;padding:4px 12px 8px}
 body.dapple-page .site-masthead .site-masthead-brand{width:80px;height:80px}
 body.dapple-page .site-masthead .site-primary-nav a{font-size:11px;letter-spacing:.4px;padding:8px 12px}
 body.standard-site .site-masthead .site-primary-nav a{font-size:10px;padding-inline:8px}
 body.twins-site :is(#home,#moments,#adventure-map,#contact){scroll-margin-top:76px}
 body.standard-site #our-standards{scroll-margin-top:64px}
}
@media(max-width:600px){
 body.dapple-page .site-masthead .site-primary-nav a{white-space:normal}
 body.twins-site header.site-masthead nav.site-primary-nav{column-gap:clamp(2px,1vw,6px)}
 body.twins-site .site-masthead .site-nav-side{gap:clamp(2px,1vw,6px)}
 body.twins-site .site-masthead .site-primary-nav a{padding:8px 5px;font-size:clamp(8px,2.3vw,10px);letter-spacing:.25px}
 body.twins-site .site-masthead nav.site-primary-nav>a,body.twins-site .site-masthead .site-nav-before a:last-child{width:min-content}
}
@media(max-width:360px){
 body.twins-site .site-masthead .site-primary-nav a{font-size:8px;letter-spacing:.15px}
}
@media(max-width:350px){
 body.standard-site .site-masthead .site-primary-nav a{padding-inline:4px}
}

/* Center all three button positions, regardless of the different label widths.
   Our standards sits under the logo; Home and Twins are equally far from it. */
body.standard-site header.site-masthead nav.site-primary-nav{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:0}
body.standard-site header.site-masthead nav.site-primary-nav a{justify-self:center}
