/* A single interaction row, shared across author, article and community cards. */
html body .pg-card-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-width:0;grid-column:1/-1;flex:0 0 auto;border-top:1px solid var(--pg-border);padding:9px 0 0;margin-top:10px;color:var(--pg-text);font:500 11px/1.4 var(--pg-interface-font,inherit)}
html body .pg-card-actions>:is(a,button,span){display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:32px;min-width:30px;padding:3px 0;margin:0;background:none;border:0;border-radius:5px;color:inherit;box-shadow:none;text-decoration:none;font:inherit;white-space:nowrap}
html body .pg-card-actions>:is(a,button){cursor:pointer}
html body .pg-card-actions svg{display:block;flex:none;width:19px;height:19px}
html body .pg-card-actions button[aria-pressed=true]{color:var(--pg-link)}
.pg-card-actions button[aria-pressed=true] svg{fill:color-mix(in srgb,var(--pg-link) 12%,transparent)}
.pg-card-actions button:disabled{opacity:.45;cursor:wait}
.pg-card-actions :is(a,button):hover{color:var(--pg-link)}
.pg-card-actions :is(a,button):focus-visible{outline:2px solid var(--pg-link);outline-offset:3px}
.pg-card-actions [data-pg-card-action=share]{margin-left:auto}
.pg-card-actions [data-pg-card-count]{font-variant-numeric:tabular-nums;font-size:10px}
/* Social feed cards retain the shared engagement API and a lighter action row. */
html body .pg-card-actions--social{display:block;border:0;padding:0;margin-top:12px;color:var(--pg-muted)}
.pg-card-social-stats{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;font-size:11px}
.pg-card-social-stats>span,.pg-card-social-stats>a{display:inline-flex;align-items:center;gap:5px;color:var(--pg-muted);text-decoration:none}
html body .pg-card-social-stats svg{width:14px;height:14px;color:var(--pg-link)}
.pg-card-social-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 40px;align-items:center;gap:4px;padding-top:6px;border-top:1px solid var(--pg-border)}
.pg-card-social-buttons>:is(a,button),.pg-card-social-more>summary{display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-height:42px;padding:7px 6px;border:0;border-radius:8px;background:transparent;color:var(--pg-muted);font:500 12px/1.4 var(--pg-interface-font);text-decoration:none;cursor:pointer}
.pg-card-social-buttons>:is(a,button):hover,.pg-card-social-more>summary:hover{background:var(--pg-bg-soft);color:var(--pg-link)}
.pg-card-social-buttons [aria-pressed=true]{background:color-mix(in srgb,var(--pg-primary) 8%,var(--pg-block-bg))}
.pg-card-social-more{position:relative;min-width:0}
.pg-card-social-more>summary{list-style:none}
.pg-card-social-more>summary::-webkit-details-marker{display:none}
.pg-card-social-more>summary:focus-visible{outline:2px solid var(--pg-link);outline-offset:3px}
.pg-card-social-menu{position:absolute;bottom:calc(100% + 7px);right:0;z-index:8;display:grid;box-sizing:border-box;width:208px;padding:7px;border:1px solid var(--pg-border);border-radius:12px;background:var(--pg-block-bg);box-shadow:var(--pg-shadow-soft)}
html body .pg-card-social-menu>:is(button,a,span){display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:40px;margin:0;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:var(--pg-text);font:500 12px/1.5 var(--pg-interface-font);text-decoration:none}
html body .pg-card-social-menu>span{min-height:30px;color:var(--pg-muted);font-size:11px}
.pg-card-social-menu>:is(button,a):hover{background:var(--pg-bg-soft)}
@media(max-width:767px){
 .pg-card-social-buttons{grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:2px}
 .pg-card-social-buttons>:is(a,button),.pg-card-social-more>summary{min-height:44px;padding-inline:3px;gap:5px;font-size:11px}
 html body .pg-card-actions--social svg{width:18px;height:18px}
 html body .pg-card-social-stats svg{width:14px;height:14px}
}
.pg-news-card>.pg-card-actions{padding:8px 14px 2px;margin:4px 0 0;align-self:end}
.pg-card-post>.pg-card-actions{margin-top:10px}
.pg-community-card>.pg-card-actions{margin-top:12px}
html body .pg-card-dialog{max-width:460px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--pg-border);border-radius:18px;padding:24px;background:var(--pg-block-bg,var(--pg-bg));color:var(--pg-text);box-shadow:var(--pg-shadow-soft);font-family:var(--pg-interface-font,inherit)}
.pg-card-dialog::backdrop{background:color-mix(in srgb,var(--pg-dark,#082b38) 42%,transparent);backdrop-filter:blur(4px)}
.pg-card-dialog h2{font:600 22px/1.45 var(--pg-interface-font,inherit);letter-spacing:-.5px;margin:6px 0 12px}
.pg-card-dialog>p,.pg-card-dialog form>p{font-size:12px;line-height:1.85;color:var(--pg-muted)}
.pg-card-dialog label{display:block;font-size:12px;margin:14px 0 6px}
html body .pg-card-dialog input{box-sizing:border-box;width:100%;min-height:48px;border:1px solid var(--pg-border);border-radius:9px;background:var(--pg-bg-soft);color:var(--pg-text);padding:10px 12px;font:400 14px var(--pg-interface-font,inherit)}
.pg-card-dialog input[inputmode=numeric]{font-variant-numeric:tabular-nums;letter-spacing:.3em}
html body .pg-card-dialog button:not(.pg-card-dialog-close){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid var(--pg-border);border-radius:9px;background:var(--pg-bg-soft);color:var(--pg-text);font:500 12px var(--pg-interface-font,inherit);cursor:pointer}
html body .pg-card-dialog button[type=submit]{background:var(--pg-primary);color:var(--pg-color-white,#fff);border-color:transparent;min-width:130px;margin-top:14px}
.pg-card-dialog button:disabled{opacity:.5;cursor:wait}
.pg-card-dialog-close{float:right;display:block;width:36px;height:36px;background:none;border:1px solid var(--pg-border);border-radius:9px;color:var(--pg-text);cursor:pointer;font-size:24px;line-height:1}
.pg-card-dialog .pg-card-dialog-brand{font-size:9px;letter-spacing:1.5px;color:var(--pg-link);margin:8px 0}
.pg-card-dialog [role=status]{font-size:12px;line-height:1.8;min-height:22px;margin:12px 0 0}
.pg-card-dialog [data-error=true]{color:var(--pg-danger,#b44444)}
.pg-card-dialog [hidden]{display:none!important}
.pg-card-honeypot{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.pg-card-saved-list{padding:0;list-style:none;margin:12px 0}
.pg-card-saved-list li{padding:12px 0;border-bottom:1px solid var(--pg-border)}
.pg-card-saved-list a{display:block;color:var(--pg-link);text-decoration:none;font-size:13px;line-height:1.8}
.pg-card-saved-list small{font-size:10px;color:var(--pg-muted)}
.pg-card-dialog-tools{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.pg-card-notice{position:fixed;z-index:9999;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);padding:12px 16px;border:1px solid var(--pg-border);border-radius:12px;background:var(--pg-block-bg);color:var(--pg-text);box-shadow:var(--pg-shadow-soft);font:400 12px/1.7 var(--pg-interface-font,inherit)}
.pg-card-notice button{background:none;border:0;color:var(--pg-link);font:inherit;cursor:pointer;margin-left:9px;padding:3px}
html body .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions){flex-wrap:wrap!important;gap:10px!important;height:auto!important;min-height:0}
.pg-card-author:not(.pg-directory-card)>.pg-card-actions{align-self:end}
.pg-card-author:not(.pg-directory-card)>.pg-author-follow-btn{width:auto;min-height:36px;padding:6px 12px;font-size:11px}
.pg-card-author:not(.pg-directory-card)>.pg-author-follow-btn small{display:none}
.pg-studio-rank-card:has(>.pg-card-actions){flex-wrap:wrap;row-gap:8px}
html body .pg-studio-rank-card>.pg-card-actions{margin-top:4px;padding-top:6px;gap:8px}
.pg-studio-rank-card:not(:first-child) .pg-card-share-label{display:none}
html body .pg-studio-rank-card:first-child>.pg-card-actions{color:var(--pg-color-white);border-color:color-mix(in srgb,var(--pg-color-white) 20%,transparent);margin-top:18px}
html body.wp-theme-psyguild-theme .pg-brand-home .pg-newsroom__grid>.pg-news-card:has(>.pg-card-actions){flex-wrap:wrap!important}
.pg-social-ranking{container-type:inline-size}
html body.wp-theme-psyguild-theme .pg-explore-rail .pg-author-item:has(>.pg-card-actions):not([hidden]){display:flex!important;flex-direction:column!important;align-items:stretch!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;gap:6px!important}
html body.wp-theme-psyguild-theme .pg-explore-rail .pg-author-item[hidden]{display:none!important}
.pg-author-item__profile{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;min-width:0;width:100%}
.pg-author-item__profile .pg-author-info{min-width:0;flex:1}
html body .pg-author-item>.pg-author-follow-btn{align-self:flex-start;width:auto;min-height:30px;padding:5px 9px;font-size:10px}
.pg-author-item>.pg-author-follow-btn small{display:none}
html body .pg-author-item>.pg-card-actions{margin-top:0;padding-top:3px;gap:4px;justify-content:space-between}
.pg-author-item .pg-card-share-label{display:none}
@container(max-width:260px){
 html body .pg-card-actions{gap:2px;font-size:10px}
 html body .pg-card-actions>:is(a,button,span){min-width:24px;gap:3px}
 html body .pg-card-actions svg{width:16px;height:16px}
 .pg-card-actions .pg-card-share-label{display:none}
}
@media(max-width:767px){
 /* Keep the text column when an article gains a third, full-width child. */
 html body .pg-card-post:has(>.pg-card-actions):not([hidden]){display:grid;grid-template-columns:var(--pg-mobile-card-image-width,clamp(88px,27vw,116px)) minmax(0,1fr);align-items:start}
 .pg-card-post:has(>.pg-card-actions)>.pg-card-post__media{grid-column:1;grid-row:1}
 .pg-card-post:has(>.pg-card-actions)>.pg-card-post__body{grid-column:2;grid-row:1;min-width:0}
 .pg-card-post>.pg-card-actions{grid-column:1/-1;grid-row:2}
 html body .pg-card-actions{gap:2px;justify-content:space-between;padding-top:5px;margin-top:8px}
 html body .pg-card-actions>:is(a,button,span){min-height:44px;min-width:40px;gap:4px}
 html body .pg-card-actions>:is(a,button){min-width:44px}
 html body .pg-card-actions>.pg-card-return-count{min-width:32px}
 html body .pg-studio-rank-card>.pg-card-actions{gap:0}
 .pg-card-actions [data-pg-card-action=share]{margin-left:0}
 .pg-card-actions .pg-card-share-label{font-size:10px}
 .pg-card-dialog{padding:20px}
 html body .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions){display:grid!important;grid-template-columns:56px minmax(0,1fr);padding:14px!important;gap:7px 12px!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) :is(.pg-card-author__identity,.pg-card-author__content){display:contents!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__avatar{grid-column:1;grid-row:1/4;width:56px!important;height:56px!important;border-radius:15px!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__details{display:flex;flex-direction:column;grid-column:2;grid-row:1;min-width:0}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__name{order:-1;font-size:16px!important;line-height:1.5!important;white-space:normal!important;overflow:visible!important;margin:0 0 3px!important}
 .pg-card-author:not(.pg-directory-card) .pg-card-author__name a{color:inherit;text-decoration:none}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__field-badge{font-size:8px!important;padding:2px 5px!important;align-self:flex-start;max-width:100%}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__bio{display:none!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__stats{grid-column:2;grid-row:2;margin:0!important;gap:8px!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__stat{padding:0!important;background:none!important;text-align:left!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__stat>div{font-size:10px!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions) .pg-card-author__link{display:none!important}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions)>.pg-author-follow-btn{grid-column:2;grid-row:3;justify-self:start;min-height:40px;width:auto!important;margin:0}
 .pg-card-author:not(.pg-directory-card):has(>.pg-card-actions)>.pg-card-actions{grid-row:4;grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){.pg-card-dialog::backdrop{backdrop-filter:none}}
@media(max-width:360px){.pg-card-actions .pg-card-share-label{display:none}}
/* Give the three public counters equal space, including on narrow catalog cards. */
html body .pg-card-actions.pg-card-metrics {
    box-sizing:border-box; gap:5px; padding:9px 0 0; margin-top:10px;
    align-items:stretch; justify-content:space-between;
}
html body .pg-card-metrics > :is(button,a) {
    flex:1 1 0; display:grid; grid-template-columns:auto auto;
    align-content:center; justify-content:center; column-gap:5px; row-gap:2px;
    min-width:0; min-height:44px; padding:4px 2px; margin:0;
    border-radius:9px; color:var(--pg-text); background:var(--pg-bg-soft);
}
html body .pg-card-metrics > :is(button,a):hover { color:var(--pg-link); }
html body .pg-card-metrics > button[aria-pressed=true] {
    color:var(--pg-danger,#ae3752);
    background:color-mix(in srgb,var(--pg-danger,#ae3752) 10%,var(--pg-block-bg));
}
.pg-card-metrics > button[aria-pressed=true] svg { fill:currentColor; }
html body .pg-card-metrics > :is(button,a) svg { width:15px; height:15px; }
.pg-card-metrics > :is(button,a) [data-pg-card-count] { font-size:13px; font-weight:700; }
.pg-card-metric-label {
    grid-column:1/-1; text-align:center; font-size:10px;
    color:var(--pg-muted); white-space:normal;
}
.pg-card-metrics > .pg-card-social-more { flex:0 0 36px; }
.pg-card-metrics .pg-card-social-menu { z-index:15; }
.pg-card-metrics .pg-card-social-more > summary { height:100%; }
