/* Fluid space between sections; existing grids, media, tables and editor
 * geometry remain owned by their modules. */
/* One visible header edge for document-level sticky regions. Local table and
 * dialog headers retain top:0 inside their own scroll containers. */
:root{
 --pg-header-layout-height:134px;
 --pg-header-visible-bottom:134px;
 --pg-sticky-gap:24px;
 --pg-sticky-top:calc(var(--pg-header-visible-bottom) + var(--pg-sticky-gap));
 --pg-sticky-height:max(0px,calc(100dvh - var(--pg-sticky-top) - 16px));
}
@media(max-width:767.98px){:root{--pg-header-layout-height:56px;--pg-header-visible-bottom:56px;--pg-sticky-gap:16px}}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header-spacer{height:var(--pg-header-layout-height)!important}
html body.wp-theme-psyguild-theme.pg-has-explore-shell{--pg-explore-header-offset:var(--pg-header-visible-bottom)}
html body.wp-theme-psyguild-theme :is(.pg-explore-rail,.pg-social-rail){top:var(--pg-sticky-top);max-height:var(--pg-sticky-height)}
html body.wp-theme-psyguild-theme .pg-sub-header-wrapper{top:var(--pg-header-visible-bottom)!important}
html body.wp-theme-psyguild-theme .pg-author-page.pg-demo-profile .pg-author-tabs-wrap{top:var(--pg-header-visible-bottom)}
@media(min-width:1024px){
 html body.wp-theme-psyguild-theme .pg-single-sidebar{top:var(--pg-sticky-top)!important;max-height:var(--pg-sticky-height)!important}
}
@media(min-width:701px){
 html body.wp-theme-psyguild-theme .pg-academic-rail{top:var(--pg-sticky-top);max-height:var(--pg-sticky-height)}
}
@container pg-explore-content (max-width:600px){
 html body.wp-theme-psyguild-theme .pg-academic-rail{position:static;max-height:none;overflow:visible}
}
@media(min-width:901px){
 html body.pg-personal-surface :is(.pg-portal--profile .pg-portal-sidebar,.pg-editor-layout-column--sidebar,.pg-review-sidebar){top:var(--pg-sticky-top);max-height:var(--pg-sticky-height)}
 html body.pg-personal-surface .pg-review-workspace{overflow:clip}
 html body.pg-personal-surface .pg-review-select-hint{top:var(--pg-sticky-top)}
}
body.wp-theme-psyguild-theme{
 --pg-space-section:clamp(36px,4.5vw,64px);
 --pg-space-block:clamp(24px,2.5vw,36px);
 --pg-space-panel:clamp(20px,2.2vw,32px);
 --pg-space-grid:clamp(24px,2.2vw,32px);
}
html body.wp-theme-psyguild-theme .pg-brand-home .pg-brand-hero{
 margin-top:clamp(20px,2vw,32px);margin-bottom:var(--pg-space-section);
 padding-block:clamp(52px,5vw,80px) clamp(40px,4vw,64px);
}
html body.wp-theme-psyguild-theme .pg-brand-home .pg-home-grid{gap:var(--pg-space-grid);}
html body.wp-theme-psyguild-theme .pg-brand-home :is(.pg-brand-tools,.pg-community-entry){margin-block:var(--pg-space-section);}
html body.wp-theme-psyguild-theme .pg-brand-home .pg-home-media{margin-top:var(--pg-space-section);padding:var(--pg-space-panel);}
html body.wp-theme-psyguild-theme .pg-brand-home .pg-home-side-card{padding:var(--pg-space-panel);}
html body.wp-theme-psyguild-theme .pg-brand-home .pg-brand-section-head{margin-bottom:var(--pg-space-block);}
html body.wp-theme-psyguild-theme .pg-brand-tools__list{gap:clamp(16px,1.8vw,24px);}
html body.wp-theme-psyguild-theme :is(.pg-knowledge-surface,.pg-app-page,.pg-event-page,.pg-service-page,.pg-policy-page,.pg-author-directory-page) :is(.pg-knowledge-intro,.pg-app-intro,.pg-event-intro,.pg-service-intro,.pg-policy-intro,.pg-directory-intro){
 padding-top:clamp(16px,2vw,28px);padding-bottom:var(--pg-space-block);margin-bottom:var(--pg-space-block);
}
html body.wp-theme-psyguild-theme .pg-knowledge-surface .pg-knowledge-topics{margin-bottom:var(--pg-space-block);}
html body.wp-theme-psyguild-theme .pg-knowledge-surface .pg-article-grid{gap:clamp(16px,2vw,28px);}
html body.wp-theme-psyguild-theme .pg-author-page.pg-demo-profile .pg-personal-layout{gap:var(--pg-space-grid);}
html body.wp-theme-psyguild-theme .pg-profile-summary{gap:var(--pg-space-grid);margin-top:var(--pg-space-block);}
html body.wp-theme-psyguild-theme .pg-profile-summary__card{padding:var(--pg-space-panel);}
/* Give workspace headings/panels space, preserving bounded dashboard scrolling,
 * form fields, table cells, sticky offsets and the mobile action bar. */
html body.pg-personal-surface .pg-portal-main .pg-portal-page-header{margin-bottom:24px!important;gap:16px!important;}
html body.pg-personal-surface .pg-admin-dashboard{gap:24px;}
html body.pg-personal-surface .pg-admin-panel__header{padding:var(--pg-space-panel);}
@media(min-width:768px){
 html body.wp-theme-psyguild-theme :is(.pg-knowledge-surface,.pg-app-page,.pg-event-page,.pg-service-page,.pg-policy-page,.pg-author-directory-page){margin-top:clamp(44px,4vw,60px);}
 html body.wp-theme-psyguild-theme .pg-author-page.pg-demo-profile{margin-top:36px;}
 html body.wp-theme-psyguild-theme .pg-knowledge-surface .pg-knowledge-topics{padding:24px;gap:12px 20px;}
 html body.wp-theme-psyguild-theme .pg-knowledge-surface .pg-featured-content{padding:32px!important;}
}
@media(max-width:767.98px){
 body.wp-theme-psyguild-theme{--pg-space-section:32px;--pg-space-block:28px;--pg-space-panel:20px;--pg-space-grid:24px;}
 html body.wp-theme-psyguild-theme :is(.pg-knowledge-surface,.pg-app-page,.pg-event-page,.pg-service-page,.pg-policy-page,.pg-author-directory-page){margin-top:0;padding-top:32px;}
 html body.wp-theme-psyguild-theme :is(.pg-knowledge-surface,.pg-app-page,.pg-event-page,.pg-service-page,.pg-policy-page,.pg-author-directory-page) :is(.pg-knowledge-intro,.pg-app-intro,.pg-event-intro,.pg-service-intro,.pg-policy-intro,.pg-directory-intro){padding-top:0;padding-bottom:24px;margin-bottom:28px;}
 html body.wp-theme-psyguild-theme .pg-knowledge-surface .pg-knowledge-topics{padding-bottom:16px;}
}
