/* Desktop header follows the approved HTML: brand / search / account, then
 * a separate navigation row. Existing controls and their IDs remain intact. */
.pg-header-search-label{display:none;}
/* The spacer keeps its original height; sliding navigation never moves content. */
html body.wp-theme-psyguild-theme .pg-site-header.pg-header-scroll-ready{
 transform:translateY(0)!important;visibility:visible;
 transition:transform .24s cubic-bezier(.22,1,.36,1),visibility 0s!important;
}
html body.wp-theme-psyguild-theme .pg-site-header.pg-header-scroll-ready.pg-header-is-hidden{
 transform:translateY(-100%)!important;visibility:hidden;pointer-events:none;
 transition:transform .24s cubic-bezier(.22,1,.36,1),visibility 0s .24s!important;
}
@media(prefers-reduced-motion:reduce){
 html body.wp-theme-psyguild-theme .pg-site-header.pg-header-scroll-ready{transition:none!important;}
}
html body.wp-theme-psyguild-theme .pg-logo-title{
 color:var(--pg-interactive-accent)!important;background:none!important;
 -webkit-text-fill-color:currentColor!important;text-shadow:none!important;
}
@supports (background-clip:text){
 html body.wp-theme-psyguild-theme .pg-logo-title{
  background:var(--pg-wordmark-gradient) text!important;
  -webkit-text-fill-color:transparent!important;
 }
}
@media(min-width:768px){
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active){--pg-brand-header-height:134px;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header{
  padding:0!important;border:0!important;border-bottom:1px solid var(--pg-brand-line)!important;
  background-image:none!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header__inner{
  display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:84px 50px;
  gap:0 32px;padding:0!important;min-height:134px!important;
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header-spacer{height:134px!important;margin-bottom:0!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header__left{grid-column:1;grid-row:1;gap:12px;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-link{gap:11px;position:static;transform:none;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-img{width:42px!important;height:42px!important;object-fit:contain;border-radius:0!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-title{
  font:700 27px/1.2 var(--pg-brand-sans)!important;letter-spacing:-.045em;text-transform:none;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-title::after{content:'.';color:inherit;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-desc{display:block!important;font:400 9px/1.5 var(--pg-brand-sans);letter-spacing:.08em;margin-top:4px;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header__right{grid-column:2/4;grid-row:1;gap:14px;min-width:0;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-search-wrapper{flex:1 1 420px;max-width:480px;min-width:180px;margin-inline:auto;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header :is(.pg-btn-icon,.pg-header-account__toggle){
  min-height:44px;height:44px;border:1px solid var(--pg-brand-line)!important;border-radius:8px!important;
  background:var(--pg-header-bg)!important;color:var(--pg-text)!important;
  clip-path:none!important;box-shadow:none!important;transform:none!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header :is(.pg-btn-icon,.pg-header-account__toggle):hover{
  background:var(--pg-bg-soft)!important;color:var(--pg-link)!important;border-color:var(--pg-primary)!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-search-toggle{
  width:100%!important;max-width:none!important;justify-content:flex-start;gap:12px;padding:0 15px!important;
  background:var(--pg-bg-soft)!important;color:var(--pg-muted)!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-header-search-label{display:block;min-width:0;font:400 13px/1.5 var(--pg-brand-sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-search-toggle>svg{flex-shrink:0;}
 /* One real form replaces the former search-shaped disclosure on desktop. */
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-search-toggle,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-search-close{display:none!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-search-dropdown{
  position:static!important;width:100%!important;max-width:none!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  opacity:1!important;visibility:visible!important;transform:none!important;transition:none!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-search-form{
  width:100%;min-height:44px;gap:10px;padding:5px 8px 5px 14px;box-sizing:border-box;
  border:1px solid var(--pg-brand-line)!important;border-radius:8px!important;
  background:var(--pg-bg-soft)!important;color:var(--pg-text)!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-search-form:focus-within{border-color:var(--pg-primary)!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-search-input{
  width:0;min-width:0;min-height:30px;padding:0;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;font:400 13px/1.5 var(--pg-interface-font);
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-search-input:focus-visible{outline:none!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-search-form>.pg-btn{
  flex:0 0 auto;min-height:30px;padding:5px 10px;border-radius:5px;font-size:12px;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-theme-toggle{background:var(--pg-header-bg)!important;color:var(--pg-interactive-accent)!important;box-shadow:none!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-search-dropdown{left:0;right:auto;width:520px;max-width:min(520px,calc(100vw - 48px));border-radius:12px;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-header-action--primary:not(.pg-header-account__toggle):not(.pg-header-action--reader){
  background:var(--pg-highlight-gradient)!important;color:var(--pg-highlight-text)!important;border-color:transparent!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-header-action--primary:not(.pg-header-account__toggle):not(.pg-header-action--reader):hover{
  background:var(--pg-highlight-gradient-hover)!important;color:var(--pg-highlight-text)!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-header-account__label{font:700 12px/1.5 var(--pg-brand-sans);}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header__center{
  display:flex!important;grid-column:1/4;grid-row:2;justify-content:flex-start;align-self:stretch;
  min-width:0;padding:0!important;border-top:1px solid var(--pg-brand-line);
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav{gap:32px!important;height:100%;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav>li:not(:last-child)::after{content:none;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav>li>a{
  min-height:49px;padding:14px 0!important;border:0;border-radius:0!important;clip-path:none;
  font:400 13px/1.6 var(--pg-brand-sans)!important;color:var(--pg-muted)!important;text-shadow:none!important;
  background:none!important;box-shadow:none!important;transform:none!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav>li:is(.current-menu-item,.current-menu-parent)>a,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav>li>a:hover{color:var(--pg-link)!important;box-shadow:inset 0 -2px var(--pg-primary)!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav>li>a::after{background:var(--pg-primary);box-shadow:none;transform:none;left:0;width:100%;height:2px;bottom:0;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav .sub-menu{border-radius:10px;border-color:var(--pg-brand-line);}
}
@media(min-width:901px){
 html body.pg-personal-surface .pg-portal--profile .pg-portal-sidebar{top:calc(var(--pg-admin-bar-offset,0px) + 150px);max-height:calc(100dvh - var(--pg-admin-bar-offset,0px) - 166px);}
}
@media(min-width:768px) and (max-width:1100px){
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header__inner{column-gap:18px;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header__right{gap:8px;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-title{font-size:24px!important;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-logo-desc{font-size:8px;letter-spacing:.04em;max-width:168px;overflow:hidden;text-overflow:ellipsis;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-header-account__label{display:none;}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-main-nav{gap:22px!important;}
}
@layer psyguild-opaque-surfaces{
 @media(min-width:768px){
  html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header{background-color:var(--pg-solid-header)!important;}
  html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) #pg-search-dropdown{background:transparent!important;}
 }
}
