/* Archelaos 2.0 — authoritative wordmark presentation for ALL public headers.
   Keep the page-specific scroll interaction, drawers and action controls unchanged.
   This file must be the last stylesheet in each public document head. */
#siteHeader.site-header:not(.scrolled-brand) .brand-morph{
  position:absolute!important;
  left:clamp(22px,5.3vw,90px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:max-content!important;
  min-width:0!important;
  max-width:calc(100% - 255px)!important;
  z-index:2;
}
#siteHeader.site-header.scrolled-brand .brand-morph{
  left:clamp(22px,5.3vw,90px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}
/* Keep the action buttons anchored to the right when the brand is absolute. */
#siteHeader.site-header>.header-actions{
  margin-left:auto!important;
  position:relative;
  z-index:3;
}
#siteHeader.site-header .brand-words{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  line-height:1.3!important;
  white-space:nowrap;
}
#siteHeader.site-header .brand-words strong{
  color:#176948!important;
  -webkit-text-fill-color:#176948!important;
  font-size:clamp(15px,1.5vw,20px)!important;
  font-weight:750!important;
  letter-spacing:.03em!important;
  white-space:nowrap;
}
#siteHeader.site-header .brand-words small{
  color:#d1a600!important;
  -webkit-text-fill-color:#d1a600!important;
  font-size:clamp(12px,1.15vw,15px)!important;
  font-weight:800!important;
  letter-spacing:.055em!important;
  white-space:nowrap;
}
/* Mobile: identical two-line layout, reserving space for all four action icons. */
@media(max-width:760px){
  #siteHeader.site-header:not(.scrolled-brand) .brand-morph{
    left:15px!important;
    max-width:calc(100vw - 195px)!important;
  }
  #siteHeader.site-header.scrolled-brand .brand-morph{
    left:15px!important;
  }
  #siteHeader.site-header .brand-words{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:1px!important;
    line-height:1.15!important;
  }
  #siteHeader.site-header .brand-words strong{
    font-size:clamp(11px,3.5vw,16px)!important;
    letter-spacing:.032em!important;
  }
  #siteHeader.site-header .brand-words small{
    font-size:10px!important;
    letter-spacing:.07em!important;
  }
}
@media(max-width:410px){
  #siteHeader.site-header .brand-words strong{font-size:12px!important}
}
@media(max-width:370px){
  #siteHeader.site-header .brand-words strong{font-size:11px!important}
  #siteHeader.site-header .brand-words small{font-size:10px!important}
}
@media(max-width:350px){
  #siteHeader.site-header:not(.scrolled-brand) .brand-morph{
    max-width:calc(100vw - 192px)!important;
  }
}

/* Shared mobile accessibility baseline. Several legacy page-local rules shrink
   controls to 36–38px when chat is disabled; restore a consistent 44px target
   in production AND local/staging builds, on all six public pages. */
@media(max-width:760px){
 #siteHeader.site-header .header-actions > .circle-action,
 #siteHeader.site-header .header-actions #arcChatToggle{
   width:44px!important;
   min-width:44px!important;
   height:44px!important;
   min-height:44px!important;
   flex:0 0 44px!important;
 }
 #siteHeader.site-header{height:76px!important;}
}

/* Only on the Photo Archive: centre the scrolled page title in the space
   to the left of the action/menu buttons. Never show the emblem. */
html[data-archelaos-page="photos"] #siteHeader.site-header .brand-icon,
html[data-archelaos-page="photos"] #siteHeader.site-header .brand-morph::before{
  display:none!important;
}
html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
}
html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand .brand-morph{
  position:relative!important;
  left:auto!important;top:auto!important;
  transform:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand .brand-words{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;gap:0!important;
  transform:none!important;opacity:1!important;overflow:hidden!important;
}
html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand .brand-photo-name{
  display:block!important;
  width:auto!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;
  text-align:center!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:clamp(12px,1.45vw,18px)!important;
  letter-spacing:.018em!important;
}
html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand .header-actions{
  grid-column:2!important;justify-self:end!important;
}
@media(max-width:760px){
  html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand .brand-words{
    flex-direction:row!important;align-items:center!important;
  }
  html[data-archelaos-page="photos"] #siteHeader.site-header.scrolled-brand .brand-photo-name{
    font-size:clamp(11px,3.2vw,14px)!important;
  }
}
