/* PsyGuild art / technology presentation. All colours originate in Customizer tokens.
 * Existing routes, forms, hidden states, reader controls and mobile navigation stay owned
 * by their original modules. This layer changes presentation, never application data. */
body{
 --pg-brand-ink:color-mix(in srgb,var(--pg-primary) 8%,#09152b);
 --pg-brand-stage:color-mix(in srgb,var(--pg-primary) 16%,#0a1931);
 --pg-brand-paper:color-mix(in srgb,var(--pg-secondary) 8%,white);
 --pg-brand-serif:var(--pg-interface-font);
 --pg-brand-sans:var(--pg-interface-font);
 --pg-brand-gradient:var(--pg-action-gradient);
 --pg-gradient:var(--pg-action-gradient);
 --pg-brand-shadow:0 8px 26px color-mix(in srgb,var(--pg-primary-deep) 7%,transparent);
 font-family:var(--pg-brand-sans);
}
html body.wp-theme-psyguild-theme:is(.pg-theme-light,.pg-theme-dark):not(.pg-book-reader-active):not(.pg-portal-page){
 background-image:var(--pg-body-bg-image),radial-gradient(circle at 65% 0%,color-mix(in srgb,var(--pg-primary) 6%,transparent),transparent 50%),linear-gradient(color-mix(in srgb,var(--pg-text) 2%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--pg-text) 2%,transparent) 1px,transparent 1px)!important;
 background-size:cover,100% 900px,36px 36px,36px 36px!important;
}
body :is(.pg-card,.pg-card-strong,.pg-hub-card,.pg-app-card,.pg-event-card,.pg-service-card,.pg-search-card,.pg-card-author,.pg-featured-event,.pg-authors-shell,.pg-authors-toolbar,.pg-blog-index-header,.pg-home-media,.pg-services-section){
 border-radius:12px!important;border-color:var(--pg-border);box-shadow:var(--pg-brand-shadow)!important;
}
body :is(.pg-btn,.pg-hub-tab-btn,.pg-filter-btn,.pg-event-tab-btn){border-radius:7px;letter-spacing:0;}
body :is(.pg-hub-title,.pg-blog-index-title,.pg-search-title,.pg-newsroom__title,.pg-services__title,.pg-side-header__title,.pg-home-media__title,.pg-authors-heading h1){
 font-family:var(--pg-brand-serif)!important;font-weight:400!important;letter-spacing:-.025em;color:var(--pg-text);
}
body :is(.pg-hub-title,.pg-blog-index-title,.pg-authors-heading h1){font-size:clamp(2rem,3.2vw,3rem)!important;line-height:1.14!important;}
body :is(.pg-overview-heading,.pg-brand-kicker){font:700 10px/1.6 var(--pg-brand-sans);letter-spacing:.11em;text-transform:uppercase;color:var(--pg-link);}
body :is(.pg-hub-tabs,.pg-author-tabs,.pg-newsroom__tabs){scrollbar-width:thin;scrollbar-color:var(--pg-border) transparent;}
body :is(.pg-hub-tab-btn,.pg-author-tab,.pg-event-tab-btn){font-family:var(--pg-brand-sans);}
body :is(.pg-hub-tab-btn.is-active,.pg-author-tab.is-active){box-shadow:inset 0 -2px 0 var(--pg-primary);}
body :is(.pg-hub-card-title,.pg-event-card-title,.pg-service-card__title,.pg-card-author__name,.pg-news-card__title,.pg-card-post__title){font-family:var(--pg-brand-serif);letter-spacing:-.015em;line-height:1.28;}
body .pg-site-footer{border-top:1px solid var(--pg-border);box-shadow:none;}
body .pg-footer-heading{font:700 11px/1.5 var(--pg-brand-sans);letter-spacing:.09em;}
body.wp-theme-psyguild-theme .pg-logo-watermark-bg{opacity:.08!important;}
body :is(.pg-header-account__menu,.pg-search-dropdown,.pg-sidebar-drawer,.pg-popup-content,.pg-modal-card){border-radius:12px;box-shadow:0 16px 48px color-mix(in srgb,var(--pg-text) 15%,transparent);}
body :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--pg-primary-deep);outline-offset:3px;}
.pg-brand-hero [hidden]{display:none!important}
html body.wp-theme-psyguild-theme :is(.pg-hub-title,.pg-blog-index-title,.pg-search-title,.pg-newsroom__title,.pg-services__title,.pg-side-header__title,.pg-home-media__title,.pg-authors-heading h1),
html body.wp-theme-psyguild-theme .pg-author-page h1.pg-author-name{
 color:var(--pg-text)!important;background:none!important;-webkit-text-fill-color:currentColor!important;
}

/* Brand stage: the whole navy block is the movement space. */
.pg-brand-hero{display:none}
.pg-brand-hero .home-welcome-copy{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;text-align:center;}
.pg-brand-hero .pg-hero-title{position:relative;z-index:3;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:10px;margin:0 0 14px;}
.pg-brand-hero .pg-title-brand{display:inline-block;font:700 76px/1 var(--pg-brand-sans);letter-spacing:-.055em;color:var(--pg-brand-paper);background:linear-gradient(110deg,var(--pg-brand-paper),var(--pg-primary));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.pg-brand-hero .pg-title-brand-dot{-webkit-text-fill-color:var(--pg-primary);}
.pg-brand-hero .pg-title-tagline{display:block;font:400 29px/1.2 var(--pg-brand-serif);color:var(--pg-brand-paper);}
.pg-brand-hero .pg-title-word{position:relative;z-index:1;display:inline-block;}
.pg-brand-hero em .pg-title-word{color:var(--pg-secondary);}
@media (min-width:768px) and (prefers-reduced-motion:no-preference){
 .pg-brand-hero .pg-title-brand{animation:pg-title-reveal 1.2s ease-out both;}
 .pg-brand-hero .pg-title-word{animation:pg-title-reveal .7s ease-out both;}
 .pg-brand-hero .pg-title-word:nth-child(1){animation-delay:.8s;}
 .pg-brand-hero .pg-title-word:nth-child(2){animation-delay:1s;}
 .pg-brand-hero .pg-title-word:nth-child(3){animation-delay:1.2s;}
 .pg-brand-hero em .pg-title-word:nth-child(1){animation-delay:1.4s;}
 .pg-brand-hero em .pg-title-word:nth-child(2){animation-delay:1.6s;}
}
@keyframes pg-title-reveal{
 from{opacity:0;clip-path:inset(-30% 100% -30% 0);}
 to{opacity:1;clip-path:inset(-30% 0 -30% 0);}
}
.pg-brand-hero .home-welcome-copy>p{position:relative;z-index:3;order:1;margin:0;font:400 14px/1.85 var(--pg-brand-sans);color:color-mix(in srgb,var(--pg-brand-paper) 76%,transparent);}
.pg-brand-hero .eyebrow{position:relative;z-index:3;order:2;margin-top:16px;font:400 9px/1.5 var(--pg-brand-sans);letter-spacing:.12em;color:color-mix(in srgb,var(--pg-brand-paper) 56%,transparent);}
.pg-brand-entrypoints{position:relative;z-index:3;display:flex;justify-content:center;gap:12px;}
.pg-brand-entrypoints>a{display:grid;grid-template-columns:25px auto;grid-template-rows:auto auto;gap:1px 12px;align-items:center;min-width:178px;padding:11px 18px;border:1px solid color-mix(in srgb,var(--pg-primary) 24%,transparent);border-radius:7px;color:var(--pg-brand-paper);background:color-mix(in srgb,var(--pg-primary) 4%,transparent);text-decoration:none;transition:background .18s,border-color .18s;}
.pg-brand-entrypoints>a>span{grid-column:1;grid-row:1/3;color:var(--pg-stage-primary);font-size:20px;}
.pg-brand-entrypoints strong{grid-column:2;font:700 12px/1.5 var(--pg-brand-sans);}
.pg-brand-entrypoints small{grid-column:2;font:400 10px/1.5 var(--pg-brand-sans);color:color-mix(in srgb,var(--pg-brand-paper) 70%,transparent);}
.pg-brand-entrypoints>a:hover{background:color-mix(in srgb,var(--pg-primary) 12%,transparent);border-color:var(--pg-primary);}
/* Public catalogs retain their original data, filters and pagination. */
.pg-brand-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:24px;}
.pg-brand-section-head h2{font:400 32px/1.2 var(--pg-brand-serif);letter-spacing:-.025em;margin:6px 0 0;color:var(--pg-text);}
.pg-brand-tools{margin-block:48px;scroll-margin-top:120px;}
.pg-brand-tools__layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;align-items:start;}
.pg-brand-tools__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.pg-brand-tool{display:flex;flex-direction:column;min-width:0;padding:16px;border:1px solid var(--pg-border);border-radius:10px;background:var(--pg-block-bg);text-decoration:none;color:var(--pg-text);box-shadow:var(--pg-brand-shadow);}
.pg-brand-tool__art{display:block;height:88px;margin:-16px -16px 14px;overflow:hidden;border-radius:9px 9px 0 0;color:var(--pg-stage-primary);background:linear-gradient(140deg,var(--pg-brand-stage),var(--pg-brand-ink));}
.pg-brand-tool__art svg{display:block;width:100%;height:100%;stroke:currentColor;stroke-width:.7;}
.pg-brand-tool strong{font:700 14px/1.45 var(--pg-brand-sans);overflow-wrap:anywhere;}
.pg-brand-tool__open{display:flex;justify-content:space-between;margin-top:auto;padding-top:14px;font-size:11px;color:var(--pg-link);}
.pg-brand-tool:hover{border-color:var(--pg-primary);}
.pg-brand-home :is(.pg-newsroom,.pgServices,#pgBrandTools){scroll-margin-top:120px;}
.pg-brand-home .pg-newsroom__title{font-size:30px;}
.pg-brand-home .pg-newsroom-tab{border-radius:5px!important;font-size:12px!important;padding:7px 11px!important;}
.pg-brand-home .pg-newsroom-tab.is-active{background:color-mix(in srgb,var(--pg-primary) 12%,var(--pg-block-bg))!important;color:var(--pg-link)!important;border-color:var(--pg-border)!important;}
.pg-brand-home .pg-tab-progress{background:var(--pg-primary)!important;}
.pg-brand-home .pg-news-card{border-radius:9px;box-shadow:none;border-color:var(--pg-border);}
.pg-brand-home .pg-news-card__title{font-size:20px;font-weight:400;line-height:1.3;}
.pg-brand-home .pg-hero-wrap{min-width:0;}
.pg-brand-home .pg-hero-main{border-radius:10px;}
.pg-brand-home .pg-home-side-card{min-height:0;height:auto;padding:20px;}
.pg-brand-home .pg-side-header{align-items:start;flex-direction:column;gap:10px;}
.pg-brand-home .pg-side-header__title{font-size:26px;}
.pg-brand-home .pg-side-header__subtitle{font-size:9px;letter-spacing:.1em;}
.pg-brand-home .pg-event-item{padding:15px 0;border:0;border-radius:0;border-bottom:1px solid var(--pg-border);box-shadow:none;background:transparent;}
.pg-brand-home .pg-event-item__title{font:700 13px/1.6 var(--pg-brand-sans);}
.pg-brand-home .pg-event-item__meta{font-size:10px;line-height:1.65;}
.pg-brand-home .pg-author-item{padding:16px 0;gap:11px;border:0;border-radius:0;border-bottom:1px solid var(--pg-border);box-shadow:none;}
.pg-brand-home .pg-author-name{font:700 13px/1.45 var(--pg-brand-sans);}
.pg-brand-home .pg-author-avatar{width:43px;height:43px;border-radius:50%;}
.pg-brand-home .pg-author-online-dot{display:none;}
.pg-brand-home .pg-author-role,.pg-brand-home .pg-author-stat{font-size:10px;line-height:1.6;}
.pg-brand-home .pg-author-ranks{gap:3px;}
.pg-brand-home .pg-author-rank{font-size:8px;}

/* A profile overview draws from its existing public tabs. */
.pg-profile-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px;}
.pg-profile-summary__card{padding:24px;border:1px solid var(--pg-border);border-radius:12px;background:var(--pg-block-bg);box-shadow:var(--pg-brand-shadow);min-width:0;}
.pg-profile-summary__head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;}
.pg-profile-summary__head h3{font:400 24px/1.25 var(--pg-brand-serif);margin:0;color:var(--pg-text);}
.pg-profile-summary__head button{padding:7px 0;border:0;background:none;font:700 11px/1.5 var(--pg-brand-sans);color:var(--pg-link);cursor:pointer;}
.pg-profile-summary ul{list-style:none;margin:0;padding:0;}
.pg-profile-summary li+li{border-top:1px solid var(--pg-border);}
.pg-profile-summary li{padding-block:10px;font:400 13px/1.65 var(--pg-brand-sans);overflow-wrap:anywhere;}
.pg-profile-summary li a{color:var(--pg-text);text-decoration:none;}
.pg-profile-summary li a:hover{color:var(--pg-link);}
.pg-profile-summary p{font-size:13px;line-height:1.8;color:var(--pg-muted);margin:0;}
.pg-profile-summary__caption{display:block;margin:5px 0 0;font-size:11px;color:var(--pg-muted);}
body .pg-author-page .pg-author-tabs-wrap{border-radius:9px!important;box-shadow:none;}
#pgAuthorTabs{scroll-margin-top:110px;}
body .pg-author-page .pg-author-tab{border-radius:0;padding:15px 22px;font-size:12px;}
body .pg-author-page .pg-overview-title{font:400 27px/1.25 var(--pg-brand-serif);}
body .pg-author-page .pg-overview-text{font-size:14px;line-height:1.95;}
body .pg-author-page :is(.pg-overview-col,.pg-author-credentials-card,.pg-author-landing-card,.pg-contact-panel){border-radius:12px!important;}

@media(min-width:768px){
 body .pg-site-header__inner{border-radius:10px!important;border:1px solid var(--pg-border);box-shadow:var(--pg-brand-shadow)!important;}
 body .pg-main-nav{gap:22px;}
 body .pg-main-nav a{font:700 12px/1.5 var(--pg-brand-sans);letter-spacing:0;}
 body .pg-logo-title{font:700 23px/1.2 var(--pg-brand-sans);letter-spacing:-.035em;}
 body .pg-logo-desc{font-size:8px;letter-spacing:.07em;}
 body .pg-btn{border-radius:7px!important;}
 .pg-brand-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:20px;margin:12px 0 34px;padding:56px 32px 26px;border:1px solid color-mix(in srgb,var(--pg-primary) 25%,transparent);border-radius:12px;background:radial-gradient(ellipse at 60% 30%,color-mix(in srgb,var(--pg-primary) 9%,transparent),transparent 60%),linear-gradient(color-mix(in srgb,var(--pg-primary) 5%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--pg-primary) 5%,transparent) 1px,transparent 1px),linear-gradient(130deg,var(--pg-brand-stage),var(--pg-brand-ink));background-size:auto,32px 32px,32px 32px,auto;box-shadow:0 16px 40px color-mix(in srgb,var(--pg-primary-deep) 11%,transparent);}
 .pg-brand-home .pg-home-grid{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,2.8fr) minmax(185px,.85fr);gap:24px;align-items:start;}
 .pg-brand-home .pg-home-col{min-width:0;align-self:start;}
 .pg-brand-home .pg-newsroom{min-width:0;margin:0;padding:24px;background:var(--pg-block-bg);border:1px solid var(--pg-border);border-radius:12px;box-shadow:var(--pg-brand-shadow);}
 .pg-brand-home .pg-newsroom__grid{gap:18px;}
 .pg-brand-home .pg-news-card__body{padding:14px 0;}
 .pg-brand-home .pg-news-card__img{border-radius:7px;}
 .pg-brand-home .pg-news-card__footer{gap:7px;flex-wrap:wrap;}
 .pg-brand-home .pg-news-card__author-name{font-size:10px;}
 .pg-brand-home .pg-news-card__meta{font-size:9px;}
 body .pg-author-page .pg-author-header{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;padding:28px!important;}
 html body.wp-theme-psyguild-theme .pg-author-page .pg-author-header::before{content:none!important;display:none!important;}
 html body.wp-theme-psyguild-theme .pg-author-page .pg-author-header__left{width:auto!important;min-width:0;position:relative;z-index:1;padding:18px;border-radius:10px;background:linear-gradient(color-mix(in srgb,var(--pg-primary) 8%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--pg-primary) 8%,transparent) 1px,transparent 1px),linear-gradient(140deg,var(--pg-brand-stage),var(--pg-brand-ink))!important;background-size:24px 24px,24px 24px,auto!important;}
 body .pg-author-page .pg-author-header__left .pg-author-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;}
 body .pg-author-page .pg-author-header__left .pg-author-stat-box{min-width:0;padding:12px 6px;}
 html body.wp-theme-psyguild-theme .pg-author-page .pg-author-header__left .pg-author-stat-num{color:var(--pg-brand-paper)!important;-webkit-text-fill-color:var(--pg-brand-paper)!important;background:none!important;font-size:23px;}
 html body.wp-theme-psyguild-theme .pg-author-page .pg-author-stat-label{color:color-mix(in srgb,var(--pg-brand-paper) 80%,transparent)!important;font-size:8px;}
 html body.wp-theme-psyguild-theme .pg-author-page .pg-author-stat-box{border:1px solid color-mix(in srgb,var(--pg-primary) 23%,transparent)!important;border-radius:8px!important;background:transparent!important;box-shadow:none;}
 body .pg-author-page .pg-author-avatar-wrap{width:146px;height:146px;margin-inline:auto;border:4px solid var(--pg-brand-paper);border-radius:50%;overflow:hidden;}
 body .pg-author-page .pg-author-header__right{position:relative;z-index:1;padding-left:18px;min-width:0;}
 body .pg-author-page .pg-author-header__right{display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
 body .pg-author-page .pg-author-header__right> :is(h1,h2,p,.pg-author-bio,.pg-author-actions,.pg-author-tags){margin:0;}
 body .pg-author-page h1.pg-author-name{font:400 clamp(34px,4vw,48px)/1.1 var(--pg-brand-serif);font-weight:400!important;letter-spacing:-.035em;}
 body .pg-author-page .pg-author-title{font:700 15px/1.6 var(--pg-brand-sans);}
 body .pg-author-page .pg-author-bio{font-size:14px;line-height:1.8;max-width:760px;max-height:100px;overflow:auto;}
 body .pg-author-page .pg-author-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;padding-top:5px;}
 body .pg-author-page .pg-author-actions>.pg-btn{flex:0 1 auto;width:auto!important;min-height:40px;padding:9px 16px;font-size:12px;}
}
@media(min-width:768px) and (max-width:1100px){
 body .pg-main-nav{gap:13px;}
 .pg-brand-home .pg-home-grid{grid-template-columns:160px minmax(0,1fr);gap:22px;}
 .pg-brand-home .pg-home-col--right{grid-column:1/-1;}
 .pg-brand-home #pg-authors-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
 .pg-brand-home .pg-home-col--right .pg-side-header{flex-direction:row;justify-content:space-between;}
 .pg-brand-hero .pg-title-brand{font-size:70px;}
 .pg-brand-tools__layout{grid-template-columns:1fr;}
 .pg-brand-tools__list{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:767.98px){
 /* App shell, menus, sheets, carousel and six-card mobile paging stay intact. */
 body .pg-brand-home .pg-home-grid{display:flex;flex-direction:column;gap:20px;}
 .pg-brand-home .pg-home-col{width:100%;}
 .pg-brand-home .pg-home-col--center{order:0;}
 .pg-brand-home .pg-home-col--left{order:1;}
 .pg-brand-home .pg-home-col--right{order:2;}
 .pg-brand-home .pg-newsroom{margin:0;padding:18px 14px;border-radius:12px;}
 .pg-brand-home .pg-newsroom__title{font-size:28px;}
 .pg-brand-tools{margin-block:28px;}
 .pg-brand-section-head{align-items:center;gap:10px;margin-bottom:18px;}
 .pg-brand-section-head h2{font-size:26px;}
 .pg-brand-section-head .pg-btn{font-size:10px;white-space:nowrap;}
 .pg-brand-tools__layout{grid-template-columns:1fr;gap:18px;}
 .pg-brand-tools__list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .pg-brand-tool{padding:13px;}
 .pg-brand-tool__art{height:70px;margin:-13px -13px 12px;}
 .pg-brand-tool strong{font-size:12px;}
 .pg-profile-summary{grid-template-columns:1fr;gap:14px;}
 .pg-profile-summary__card{padding:19px;}
 .pg-profile-summary__head h3{font-size:23px;}
 .pg-profile-summary__head button{min-height:44px;min-width:44px;}
 body .pg-author-page .pg-author-tab{padding:13px 16px;white-space:nowrap;}
 body .pg-author-page .pg-overview-text{font-size:13px;}
}
@media(prefers-reduced-motion:reduce){
 .pg-brand-hero *, .pg-brand-tool{animation:none!important;transition:none!important;}
}
