/* Ekklesias 1.10 — scoped adaptation of DESIGN.md and the OpenDesign prototype. */
.ekk-workspace,.ekk-admin,.ekk-member-shell,.ekk-portal{
 --ekk-ink:#171717;--ekk-muted:#525252;--ekk-line:#f0f0f0;--ekk-purple:var(--ekk-accent-color,#171717);--ekk-soft:#f5f5f5;
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-feature-settings:"ss01" on,"cv11" on;color:var(--ekk-ink);font-weight:400;
}
.ekk-brand{display:inline-flex;align-items:center;gap:12px;color:#171717;min-width:0;text-align:left}
.ekk-brand img{width:40px;height:40px;object-fit:contain;border-radius:10px;flex-shrink:0}
.ekk-brand>span{display:grid;gap:2px}.ekk-brand strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}.ekk-brand small{font-size:11px;color:#525252;letter-spacing:.04em}
.ekk-admin>.ekk-brand{margin:20px 0 0}.ekk-front-admin-module .ekk-admin>.ekk-brand{display:none}
.ekk-workspace.ekk-workspace--app{background:var(--ekk-page-color,#fffdf9);border:0;border-radius:12px;box-shadow:0 3px 12px rgb(0 0 0 / .04);overflow:clip}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__header{background:var(--ekk-module-color,#fff);padding:22px 28px;border-bottom:1px solid #f0f0f0;gap:16px}
.ekk-workspace__header-actions a{font-size:13px!important;color:#525252!important;border-radius:9999px;padding:8px 12px}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav{background:var(--ekk-page-color,#fffdf9);padding:24px 14px;border-color:#f0f0f0}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a{color:#525252;background:transparent;border-radius:9999px;min-height:44px;font-size:14px;font-weight:400;padding:10px 14px;gap:10px}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a:hover,.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a.is-active{background:#f0f0f0;color:#171717;box-shadow:none}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a.is-active{font-weight:600}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a>.dashicons{color:var(--ekk-icon-color,#525252)!important;background:none;width:20px;height:20px;font-size:19px}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__content{padding:32px;min-width:0}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__subnav{background:transparent;border-color:#f0f0f0;padding:14px 32px}
.ekk-workspace__subnav a{border-radius:9999px!important;font-size:13px;color:#525252!important}.ekk-workspace__subnav a.is-active{color:#171717!important;background:#fff;box-shadow:0 1px 3px rgb(0 0 0 / .05)}
.ekk-workspace h1,.ekk-admin .ekk-admin__heading h1,.ekk-overview h1{font-size:29px;line-height:1.2;letter-spacing:-.52px;font-weight:600;color:#171717;margin:8px 0 12px}
.ekk-workspace h2,.ekk-admin h2{font-weight:600;letter-spacing:-.25px;color:#171717}.ekk-kicker{color:#525252;font-weight:500;font-size:10px;letter-spacing:.12em}
.ekk-admin .ekk-card,.ekk-admin .ekk-table-wrap,.ekk-workspace .ekk-card,.ekk-workspace .ekk-front-module-grid>a{border:0;border-radius:12px;background:var(--ekk-module-color,#fff);box-shadow:0 3px 6px -3px rgb(0 0 0 / .05),0 2px 4px -2px rgb(0 0 0 / .05);color:#171717}
.ekk-admin .ekk-card,.ekk-workspace .ekk-card{padding:24px}
.ekk-workspace .button,.ekk-admin .button,.ekk-member-shell button,.ekk-portal button,.ekk-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 17px;border:1px solid #f0f0f0;border-radius:9999px;background:#fff;color:#171717;font:500 14px/1.4 Inter,system-ui,sans-serif;text-decoration:none;box-shadow:none;cursor:pointer;box-sizing:border-box}
.ekk-workspace .button.button-primary,.ekk-admin .button.button-primary,.ekk-member-shell button[type=submit],.ekk-portal button[type=submit]{background:var(--ekk-accent-color,#171717);border-color:var(--ekk-accent-color,#171717);color:#fff}
.ekk-workspace .button:hover,.ekk-admin .button:hover{filter:brightness(.94);box-shadow:none}
:is(.ekk-workspace,.ekk-admin,.ekk-member-shell,.ekk-portal) :is(a,button,input,select,textarea):focus-visible{outline:2px solid #171717;outline-offset:3px}
:is(.ekk-workspace,.ekk-admin,.ekk-member-shell,.ekk-portal) :is(input,select,textarea){font-family:inherit;box-sizing:border-box;max-width:100%}
:is(.ekk-workspace,.ekk-admin) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){border:1px solid #e8e8e8;border-radius:8px;background:#f5f5f5;color:#171717;min-height:44px;padding:10px 12px}
.ekk-admin .ekk-table th{background:#f5f5f5;text-transform:none;letter-spacing:0;font-size:12px;font-weight:500;color:#525252}
.ekk-admin .ekk-table td{border-bottom:1px solid #f0f0f0;font-size:14px}.ekk-admin .ekk-table tbody tr:hover{background:#fffdf9}
.ekk-admin .ekk-person img,.ekk-member-profile-summary img{border-radius:50%}.ekk-status{font-weight:500!important;font-size:12px!important}.ekk-status--active{background:#f0f0f0!important;color:#171717!important}.ekk-status--pending{background:#fef3c7!important;color:#451a03!important}
.ekk-admin .ekk-stat{border:0;border-radius:12px;box-shadow:0 2px 4px rgb(0 0 0 / .04);color:#171717}.ekk-admin .ekk-stat strong{font-weight:500}
.ekk-admin .ekk-section-guide,.ekk-admin .ekk-account-tools{border:0;background:#f5f5f5;color:#525252;border-radius:12px}.ekk-admin .ekk-section-guide>span{background:#fff;color:#525252}
.ekk-workspace .ekk-front-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ekk-workspace .ekk-front-module-grid>a{padding:18px;min-width:0;grid-template-columns:32px minmax(0,1fr) 18px;transform:none}
.ekk-workspace .ekk-front-module-grid>a:hover{background:#f5f5f5;box-shadow:none}.ekk-workspace .ekk-front-module-grid>a>span:first-child{width:32px;height:32px;background:#f5f5f5;color:var(--ekk-icon-color,#525252);border-radius:8px;font-size:20px}
.ekk-front-function-group h2{font-size:18px;margin:24px 0 14px}.ekk-front-welcome h1{font-size:22px}.ekk-front-welcome{margin:24px 0}.ekk-front-welcome>p{display:none}
.ekk-overview-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.ekk-overview-heading p,.ekk-overview-heading>span{color:#525252;font-size:13px}
.ekk-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.ekk-overview-stats>a{display:grid;gap:12px;background:var(--ekk-module-color,#fff);padding:24px;border-radius:12px;color:#171717;text-decoration:none;box-shadow:0 2px 4px rgb(0 0 0 / .04)}
.ekk-overview-stats strong{font-size:32px;font-weight:500}.ekk-overview-stats span,.ekk-overview-stats small{color:#525252;font-size:12px}
.ekk-overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px}.ekk-overview-grid .ekk-card{margin:0}.ekk-overview-grid h2{font-size:18px}.ekk-overview-grid .ekk-birthday-card{background:#f5f5f5}
.ekk-dashboard-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #f0f0f0}.ekk-dashboard-row>div,.ekk-dashboard-row>strong{flex:1;min-width:0;overflow-wrap:anywhere}.ekk-dashboard-row strong{font-size:13px;font-weight:500}.ekk-dashboard-row small{display:block;font-size:12px;color:#525252;overflow-wrap:anywhere}.ekk-initial{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fef3c7;color:#451a03;flex-shrink:0}.ekk-dashboard-empty{color:#525252;padding:20px 0}
.ekk-profile-tabs{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap}.ekk-profile-tabs button{border:0;padding:12px 18px;border-radius:9999px;background:#f5f5f5;color:#525252;cursor:pointer;min-height:44px;font:inherit}.ekk-profile-tabs [aria-selected=true]{background:#171717;color:#fff}
[data-ekk-member-editor]>.ekk-card[hidden]{display:none!important}
.ekk-menu-toggle{display:none}.ekk-member-shell>.ekk-brand{margin-bottom:24px}
@media(min-width:1051px){.ekk-workspace.ekk-workspace--app{grid-template-columns:224px minmax(0,1fr);width:min(calc(100vw - 48px),1480px)} }
@media(max-width:1050px){.ekk-workspace.ekk-workspace--app{width:100%;max-width:100%;margin:20px auto;left:auto;transform:none}.ekk-menu-toggle{display:inline-flex}.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav{display:none;flex-direction:column}.ekk-workspace.ekk-menu-open>.ekk-workspace__nav{display:flex}.ekk-workspace__header{flex-wrap:wrap}.ekk-overview-grid{grid-template-columns:1fr}}
@media(max-width:650px){.ekk-workspace.ekk-workspace--app>.ekk-workspace__content{padding:20px 14px}.ekk-workspace.ekk-workspace--app>.ekk-workspace__header{padding:18px 14px}.ekk-overview-heading{display:block}.ekk-overview-stats{gap:8px}.ekk-overview-stats>a{padding:14px 10px}.ekk-overview-stats strong{font-size:26px}.ekk-workspace .ekk-front-module-grid{grid-template-columns:1fr}.ekk-admin .ekk-card,.ekk-workspace .ekk-card{padding:18px}.ekk-dashboard-row{flex-wrap:wrap}.ekk-brand strong{font-size:14px}.ekk-admin .ekk-toolbar{flex-direction:column;align-items:stretch}.ekk-admin .ekk-table-wrap{overflow-x:auto}.ekk-admin .ekk-grid{grid-template-columns:1fr}.ekk-admin .ekk-field--wide{grid-column:auto}}

/* Give the communications screen room within narrow theme content containers. */
body:has(.ekk-comm-tabs) main.wp-block-group:has(.ekk-comm-tabs){padding-top:0!important}
body:has(.ekk-comm-tabs) main.wp-block-group:has(.ekk-comm-tabs)>.wp-block-post-title{display:none}
@media(min-width:1051px){.ekk-workspace.ekk-workspace--app:has(.ekk-comm-tabs){width:calc(100vw - 24px);max-width:1900px;margin-top:0;grid-template-columns:210px minmax(0,1fr)}.ekk-workspace.ekk-workspace--app:has(.ekk-comm-tabs)>.ekk-workspace__content{padding:20px 22px 28px}}
.ekk-workspace.ekk-workspace--app:has(.ekk-comm-tabs){margin-top:0}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-admin__heading{margin-bottom:14px}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-admin__heading h1{font-size:24px;margin:0 0 5px}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-admin__heading p{font-size:12px;margin:0}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-comm-tabs{margin:14px 0}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-comm-tabs .button,.ekk-workspace:has(.ekk-comm-tabs) .ekk-message-composer .button{min-height:34px;padding:6px 13px;font-size:12px}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-card{padding:18px}
.ekk-workspace:has(.ekk-comm-tabs) .ekk-side-preview,.ekk-workspace:has(.ekk-comm-tabs) .ekk-activity-card{padding:15px}

/* Members 1.11: consistent navigation and clear task destinations. */
.ekk-workspace.ekk-workspace--app{border:1px solid #ece9e2;box-shadow:0 8px 32px rgb(23 23 23 / .04)}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__header{padding:16px 24px}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav{padding:18px 12px;gap:4px}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a{border-radius:10px;min-height:44px;font-size:13px;padding:10px 12px;line-height:1.4;white-space:normal}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__nav a.is-active{background:var(--ekk-module-color,#fff);box-shadow:inset 3px 0 var(--ekk-accent-color,#171717),0 1px 4px rgb(0 0 0 / .04)}
.ekk-workspace.ekk-workspace--app>.ekk-workspace__content{padding:24px;min-height:560px}
.ekk-home-tools{margin-top:28px}.ekk-home-tools h2{font-size:18px;margin:0 0 14px}
.ekk-workspace .ekk-front-module-grid>a{border:1px solid #ece9e2;box-shadow:none;gap:12px;align-items:center}
.ekk-workspace .ekk-front-module-grid>a strong{font-size:14px;line-height:1.5}
.ekk-workspace .ekk-front-module-grid>a small{display:block;color:#64615b;font-size:12px;line-height:1.6;margin-top:3px}
.ekk-workspace .ekk-front-module-grid>a:hover{border-color:#c8c4bc;background:var(--ekk-module-color,#fff)}
.ekk-overview-stats>a{border:1px solid #ece9e2;box-shadow:none;gap:8px}
.ekk-overview-grid .ekk-card{border:1px solid #ece9e2;box-shadow:none}
.ekk-overview-grid .ekk-birthday-card{background:var(--ekk-module-color,#fff)}
:is(.ekk-admin,.ekk-workspace) .ekk-status--active{background:#e8f5ee!important;color:#18603c!important}
:is(.ekk-admin,.ekk-workspace) .ekk-status--inactive{background:#f2f2f2!important;color:#525252!important}
:is(.ekk-admin,.ekk-workspace) .ekk-status--visitor{background:#eaf0ff!important;color:#244f96!important}
:is(.ekk-admin,.ekk-workspace) .button{transition:background .15s,border-color .15s;white-space:normal;line-height:1.4}
:is(.ekk-admin,.ekk-workspace) .ekk-button-danger{color:#a32727;border-color:#e9caca;background:#fff}
:is(.ekk-admin,.ekk-workspace) :is(input[type=checkbox],input[type=radio]){accent-color:var(--ekk-accent-color,#171717);flex-shrink:0}
.ekk-workspace__subnav{display:flex;gap:8px;flex-wrap:wrap}
@media(min-width:1051px){.ekk-workspace.ekk-workspace--app{width:calc(100vw - 32px);max-width:1720px;grid-template-columns:210px minmax(0,1fr);margin-top:0}}
@media(max-width:1050px){
 .ekk-workspace.ekk-workspace--app>.ekk-workspace__nav{display:flex}
 .ekk-workspace.ekk-workspace--app.ekk-navigation-ready>.ekk-workspace__nav{display:none}
 .ekk-workspace.ekk-workspace--app.ekk-navigation-ready.ekk-menu-open>.ekk-workspace__nav{display:flex;border-bottom:1px solid #ece9e2}
 .ekk-workspace.ekk-workspace--app{margin:0 auto;border-radius:12px}
 .ekk-workspace.ekk-workspace--app>.ekk-workspace__subnav{padding:12px 16px}
}
@media(max-width:650px){
 .ekk-workspace.ekk-workspace--app>.ekk-workspace__header{padding:14px;gap:10px}
 .ekk-workspace.ekk-workspace--app>.ekk-workspace__content{padding:20px 14px;min-height:0}
 .ekk-workspace__header-actions{width:100%;justify-content:flex-end;flex-direction:row;gap:4px}
 .ekk-workspace h1,.ekk-overview h1{font-size:24px}
 .ekk-overview-stats>a{padding:14px 10px}
 .ekk-overview-stats span{font-size:11px}
 .ekk-overview-stats small{display:none}
 .ekk-overview-heading>span{display:block;margin-top:8px}
}
.ekk-admin .ekk-module-card{border:1px solid #ece9e2;border-radius:12px;background:#fff;box-shadow:none;color:#171717;transform:none}
.ekk-admin .ekk-module-card:hover{border-color:#c8c4bc;background:#fffdf9;box-shadow:none;transform:none}
.ekk-admin .ekk-module-card>.dashicons:first-child{background:#f5f5f5;color:var(--ekk-icon-color,#525252);border-radius:8px}
.ekk-admin .ekk-module-card small{color:#64615b;font-size:12px;line-height:1.6}
.ekk-workspace .ekk-services{--ekk-canvas:var(--ekk-page-color,#fffdf9);--ekk-paper:var(--ekk-module-color,#fff);padding:0}
@media(max-width:1050px){.ekk-workspace.ekk-workspace--app.ekk-menu-open>.ekk-workspace__nav{max-height:60vh;overflow-y:auto}}
@media(max-width:650px){.ekk-workspace.ekk-workspace--app .ekk-workspace__header-actions{display:flex;flex-direction:row;gap:4px}}

/* Portal chrome belongs to Members; public site navigation stays on public pages. */
body:has(.ekk-workspace--app) .ekk-site-header,
body:has(.ekk-workspace--app) .wp-site-blocks>header.wp-block-template-part,
body:has(.ekk-workspace--app) .wp-site-blocks>footer.wp-block-template-part{display:none!important}
body:has(.ekk-workspace--app) main.wp-block-group:has(.ekk-workspace--app){padding-top:0!important;padding-bottom:0!important;margin-top:0!important}
body:has(.ekk-workspace--app) main.wp-block-group>.wp-block-post-title{display:none}
.ekk-overlay-root.ekk-admin{display:contents;margin:0;padding:0;max-width:none}
.ekk-overlay-root .ekk-modal,.ekk-overlay-root .ekk-help-modal{z-index:100100}
.ekk-overlay-root .ekk-modal__dialog{max-height:calc(100dvh - 48px);overscroll-behavior:contain}
.admin-bar .ekk-overlay-root .ekk-modal__dialog{margin-top:48px;max-height:calc(100dvh - 72px)}
.ekk-overlay-root .ekk-template-library__list{max-height:none;overflow:visible}
.ekk-overlay-root .ekk-template-management{overflow:visible}
.ekk-overlay-root .ekk-template-management .ekk-table-wrap{overflow-x:auto}
.ekk-workspace .ekk-recipient-picker__menu{max-height:none;overflow:visible}
.ekk-workspace .ekk-recipient-picker__options{overscroll-behavior:contain}
.ekk-workspace .ekk-activity-log{max-height:none;overflow:visible}
@media(max-width:782px){.admin-bar .ekk-overlay-root .ekk-modal__dialog{margin-top:58px;max-height:calc(100dvh - 82px)}}

/* A full-height template preview, with actions outside the scrolling content. */
.ekk-overlay-root .ekk-template-library-dialog{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;height:min(820px,calc(100dvh - 48px));overflow:hidden;padding:24px}
.admin-bar .ekk-overlay-root .ekk-template-library-dialog{height:min(820px,calc(100dvh - 72px))}
.ekk-overlay-root .ekk-template-library-dialog>h2{margin:0 40px 0 0;font-size:20px}
.ekk-overlay-root .ekk-template-library__layout{min-height:0;grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);align-items:stretch}
.ekk-overlay-root .ekk-template-library__list{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.ekk-overlay-root .ekk-template-library__preview{min-height:0;grid-template-rows:auto auto minmax(0,1fr);align-content:stretch}
.ekk-overlay-root .ekk-template-library__preview iframe{height:100%;min-height:0;box-sizing:border-box}
.ekk-overlay-root #ekk-library-preview-sms{overflow-y:auto;white-space:pre-wrap;padding:16px;background:#f5f5f5;border-radius:9px}
.ekk-overlay-root .ekk-template-library__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid #ece9e2}
.ekk-overlay-root .ekk-template-library__footer #ekk-apply-template{margin-left:auto}
.ekk-overlay-root .ekk-template-library-dialog>.ekk-template-management{grid-row:2;min-height:0;margin:0;overflow:auto;overscroll-behavior:contain}
.ekk-overlay-root .is-managing .ekk-template-library__layout,.ekk-overlay-root .is-managing #ekk-apply-template{display:none}
@media(max-width:700px){
 .ekk-overlay-root .ekk-template-library-dialog{padding:18px;gap:12px}
 .admin-bar .ekk-overlay-root .ekk-template-library-dialog{height:calc(100dvh - 82px)}
 .ekk-overlay-root .ekk-template-library__layout{grid-template-columns:1fr;grid-template-rows:minmax(90px,.4fr) minmax(0,.6fr);gap:12px}
 .ekk-overlay-root .ekk-template-library__footer .button{font-size:12px;min-height:40px;padding:8px 12px}
}
.ekk-overlay-root [hidden]{display:none!important}
