
/* =========================================================
   V11.9 GLOBAL LOGO UNIFICATION
   Applies the post-page logo style to homepage, categories and archive pages.
   Logo asset: assets/stargazing-atlas-logo.svg
   ========================================================= */

/* Kill old homepage logo image behavior */
body:not(.single-post) .custom-logo-link img,
body:not(.single-post) .site-branding img,
body:not(.single-post) .sa-site-logo img,
body:not(.single-post) .sa-logo img,
body:not(.single-post) .sa-brand img,
body:not(.single-post) .sa-header-logo img{
  display:none !important;
}

/* Rebuild homepage/category logo as exact post-style: icon + STARGAZING / ATLAS + underline */
body:not(.single-post) .custom-logo-link,
body:not(.single-post) .site-title a,
body:not(.single-post) .site-branding a,
body:not(.single-post) .sa-logo,
body:not(.single-post) .sa-site-logo,
body:not(.single-post) .sa-brand,
body:not(.single-post) .sa-header-logo{
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:14px !important;
  background:none !important;
  background-image:none !important;
  text-decoration:none !important;
  color:#fff !important;
  font-size:0 !important;
  line-height:1 !important;
  overflow:visible !important;
}

/* Logo icon */
body:not(.single-post) .custom-logo-link::before,
body:not(.single-post) .site-title a::before,
body:not(.single-post) .site-branding a::before,
body:not(.single-post) .sa-logo::before,
body:not(.single-post) .sa-site-logo::before,
body:not(.single-post) .sa-brand::before,
body:not(.single-post) .sa-header-logo::before{
  content:"" !important;
  flex:0 0 58px !important;
  width:58px !important;
  height:58px !important;
  display:block !important;
  border-radius:50% !important;
  background-image:url("assets/stargazing-atlas-logo.svg") !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  box-shadow:0 0 0 4px rgba(217,164,65,.10) !important;
}

/* Text block */
body:not(.single-post) .custom-logo-link::after,
body:not(.single-post) .site-title a::after,
body:not(.single-post) .site-branding a::after,
body:not(.single-post) .sa-logo::after,
body:not(.single-post) .sa-site-logo::after,
body:not(.single-post) .sa-brand::after,
body:not(.single-post) .sa-header-logo::after{
  content:"STARGAZING\A    ATLAS" !important;
  white-space:pre !important;
  display:block !important;
  color:#fff !important;
  font-size:26px !important;
  line-height:1.02 !important;
  font-weight:950 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  text-align:center !important;
  padding-bottom:10px !important;
  border-bottom:2px solid transparent !important;
  background:
    linear-gradient(90deg,transparent,#f3c55b,transparent) left bottom/100% 2px no-repeat !important;
}

/* Hide duplicate old title text that may remain inside branding */
body:not(.single-post) .site-title,
body:not(.single-post) .site-description{
  font-size:0 !important;
}

/* Make header branding area match post header scale */
body:not(.single-post) .site-branding,
body:not(.single-post) .sa-header-brand,
body:not(.single-post) .sa-brand-wrap{
  display:flex !important;
  align-items:center !important;
}

/* Main menu stays aligned beside bigger logo */
body:not(.single-post) .main-navigation,
body:not(.single-post) .sa-nav,
body:not(.single-post) .sa-header-nav{
  display:flex !important;
  align-items:center !important;
}

body:not(.single-post) .main-navigation a:hover,
body:not(.single-post) .site-header a:hover,
body:not(.single-post) .sa-nav a:hover,
body:not(.single-post) .sa-header-nav a:hover{
  color:#f3c55b !important;
}

/* Keep post logo exactly as fixed in V11.7 */
.sa113-logo{
  width:auto !important;
  height:auto !important;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  background:none !important;
  background-image:none !important;
  text-decoration:none !important;
  color:#fff !important;
  flex:0 0 auto !important;
}

.sa113-logo > *{ display:flex !important; }

.sa113-logo-mark{
  flex:0 0 58px !important;
  width:58px !important;
  height:58px !important;
  border-radius:50% !important;
  display:block !important;
  background-image:url("assets/stargazing-atlas-logo.svg") !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  border:0 !important;
  box-shadow:0 0 0 4px rgba(217,164,65,.10) !important;
  color:transparent !important;
  overflow:hidden !important;
}

.sa113-logo-mark::before,
.sa113-logo-mark::after{
  display:none !important;
  content:none !important;
}

.sa113-logo-text{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  line-height:1 !important;
  min-width:230px !important;
}

.sa113-logo-text strong{
  display:block !important;
  color:#fff !important;
  font-size:26px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
}

.sa113-logo-text em{
  display:block !important;
  margin-top:8px !important;
  color:#f3c55b !important;
  font-size:13px !important;
  line-height:1 !important;
  font-style:normal !important;
  font-weight:950 !important;
  letter-spacing:.34em !important;
  text-align:center !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
}

.sa113-logo-text::after{
  content:"" !important;
  display:block !important;
  width:100% !important;
  height:2px !important;
  margin-top:8px !important;
  background:linear-gradient(90deg,transparent,#f3c55b,transparent) !important;
  opacity:.9 !important;
}

/* Mobile */
@media(max-width:720px){
  body:not(.single-post) .custom-logo-link::before,
  body:not(.single-post) .site-title a::before,
  body:not(.single-post) .site-branding a::before,
  body:not(.single-post) .sa-logo::before,
  body:not(.single-post) .sa-site-logo::before,
  body:not(.single-post) .sa-brand::before,
  body:not(.single-post) .sa-header-logo::before{
    flex-basis:52px !important;
    width:52px !important;
    height:52px !important;
  }

  body:not(.single-post) .custom-logo-link::after,
  body:not(.single-post) .site-title a::after,
  body:not(.single-post) .site-branding a::after,
  body:not(.single-post) .sa-logo::after,
  body:not(.single-post) .sa-site-logo::after,
  body:not(.single-post) .sa-brand::after,
  body:not(.single-post) .sa-header-logo::after{
    font-size:21px !important;
  }
}
