/* Only the community page: its custom footer sits outside Astra's #page. */
body.pepswerk-community-page #page {
    min-height: 0 !important;
    min-block-size: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.pepswerk-community-page #page #content {
    flex-grow: 0 !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.pepswerk-community-page #content > .ast-container,
body.pepswerk-community-page #primary,
body.pepswerk-community-page #primary .site-main,
body.pepswerk-community-page #primary .ast-article-single,
body.pepswerk-community-page #primary .entry-content {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.pepswerk-community-page .entry-content > .pw-community:last-child {
    margin-bottom: 0 !important;
}
body.pepswerk-community-page #pepswerk-plugin-footer {
    margin-top: 0 !important;
}

/* Open, decorative community network in place of the Discord card. */
.pw-community .pwc-motion{width:100%;max-width:480px;margin:auto;background:radial-gradient(ellipse at center,#8016ff10,transparent 67%);pointer-events:none}
.pw-community .pwc-motion svg{display:block;width:100%;height:auto;overflow:visible}
.pwc-motion .pwc-orbit{fill:none;stroke:#a376db;stroke-width:1;opacity:.22;transform-origin:220px 170px;animation:pwc-turn 32s linear infinite}
.pwc-motion .pwc-network{fill:#8016ff;stroke:#9762d4;stroke-width:1.3;animation:pwc-float 6s ease-in-out infinite}
.pwc-motion .pwc-network path{fill:none;opacity:.4}
.pwc-motion .pwc-halo{fill:#8016ff0b;stroke:#8016ff35;stroke-width:1;transform-origin:220px 170px;animation:pwc-pulse 4s ease-in-out infinite}
.pwc-motion .pwc-core{fill:#741fe7;stroke:#5f18bc;stroke-width:1}
.pwc-motion .pwc-light{fill:#ffffff80}
@keyframes pwc-turn{to{transform:rotate(360deg)}}
@keyframes pwc-float{50%{transform:translateY(-5px)}}
@keyframes pwc-pulse{50%{transform:scale(1.16);opacity:.5}}
@media(max-width:650px){.pw-community .pwc-motion{max-width:290px}}
@media(prefers-reduced-motion:reduce){.pwc-motion *{animation:none!important}}

.pw-community .pwcm-map{width:100%;max-width:450px;margin:auto;pointer-events:none}
.pwcm-map svg{display:block;width:100%;height:auto;overflow:visible}
.pwcm-msg{offset-rotate:0deg}
.pwcm-a{offset-path:path('M91 100Q172 15 251 106T332 238');animation:pwcm-send 7s ease-in-out infinite alternate}
.pwcm-b{offset-path:path('M251 106Q178 145 134 211');animation:pwcm-send 5s ease-in-out infinite alternate-reverse}
.pwcm-c{offset-path:path('M134 211Q223 288 332 238');animation:pwcm-send 6s ease-in-out infinite alternate}
@keyframes pwcm-send{0%,10%{offset-distance:0%}90%,100%{offset-distance:100%}}
.pw-community .pwcm-write{display:inline-block;animation:pwcm-write 1.25s steps(18,end) both}
@keyframes pwcm-write{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.pw-community .pwm-topics{margin-top:24px;padding-top:22px}
@media(max-width:650px){
.pw-community .pwm-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px 8px;align-items:center}
.pw-community .pwcm-copy{display:contents}
.pw-community .pwm-grid .pwm-kicker{grid-column:1/-1;grid-row:1;margin:0}
.pw-community .pwm-grid .pwcm-title{grid-column:1;grid-row:2;margin:0;overflow-wrap:normal;font-size:clamp(28px,7vw,40px)}
.pw-community .pwcm-map{grid-column:2;grid-row:2;width:100%;margin:0}
.pw-community .pwm-grid .pwm-lead,.pw-community .pwm-grid .pwm-note,.pw-community .pwm-grid .pwm-button{grid-column:1/-1;margin-bottom:0}
.pw-community .pwm-topics{margin-top:22px;padding-top:20px}
}
@media(prefers-reduced-motion:reduce){.pw-community .pwcm-write,.pwcm-msg{animation:none!important;clip-path:none!important}.pwcm-a{offset-distance:30%}.pwcm-b{offset-distance:50%}.pwcm-c{offset-distance:70%}}

/* 1.3: stylized Germany and larger title/map. */
.pw-community .pwcm-map{max-width:470px}
.pw-community .pwcm-title{font-size:clamp(42px,4.6vw,64px)}
.pwcm-a{offset-path:path('M141 78Q224 61 209 139Q231 246 173 294Q60 321 82 199Q80 92 141 78');animation:pwcm-send 12s linear infinite}
.pwcm-b{offset-path:path('M82 199Q155 137 209 139');animation:pwcm-send 5s ease-in-out infinite alternate}
.pwcm-c{offset-path:path('M141 78Q98 215 173 294');animation:pwcm-send 7s ease-in-out infinite alternate-reverse}
@media(max-width:650px){
.pw-community .pwm-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:8px}
.pw-community .pwm-grid .pwcm-title{font-size:clamp(31px,7.8vw,44px);overflow-wrap:normal}
.pw-community .pwcm-map{width:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){.pwcm-msg{animation:none!important}}

/* Remove the eyebrow and its decorative line without leaving a mobile grid row. */
body.pepswerk-community-page .pw-community .pwm-grid .pwm-kicker{display:none!important}
@media(max-width:650px){
 body.pepswerk-community-page .pw-community .pwm-grid .pwcm-title,
 body.pepswerk-community-page .pw-community .pwm-grid .pwcm-map{grid-row:1}
}
