/* Ekklevia unified presentation. Applies only inside the application, not the host CMS. */
.fcp-portal {
  --ekk-radius: 16px;
  --ekk-control-height: 44px;
  --ekk-type-body: 16px;
  --ekk-type-helper: 14px;
  --ekk-radius-sm: 11px;
  --ekk-ring: #23a8c1;
  --ekk-elev: 0 12px 34px rgba(4,19,30,.09);
  font-size: var(--ekk-type-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
html[data-fcp-theme="light"] .fcp-portal {
  --ekk-page: #f4f7fb;
  --ekk-surface: #fff;
  --ekk-surface-2: #eef4fa;
  --ekk-border: #d7e5ee;
  --ekk-text: #193448;
  --ekk-text-muted: #526a7d;
  --ekk-ring: #087c9e;
  --ekk-elev: 0 11px 28px rgba(28,65,91,.07);
  color-scheme: light;
}
html[data-fcp-theme="dark"] .fcp-portal,
html:not([data-fcp-theme="light"]) .fcp-portal {
  --ekk-page: #071725;
  --ekk-surface: #11283b;
  --ekk-surface-2: #172f43;
  --ekk-border: #2e5068;
  --ekk-text: #eff7fe;
  --ekk-text-muted: #b8ccdc;
  --ekk-elev: 0 14px 35px rgba(0,6,16,.24);
  color-scheme: dark;
}
.fcp-portal .fcp-shell {max-width:100%; min-width:0}
.fcp-portal .fcp-shell > * {min-width:0}
.fcp-portal :is(h1,h2,h3,h4){text-wrap:balance;overflow-wrap:anywhere;letter-spacing:-.018em}
.fcp-portal :is(p,li,dd){line-height:1.65}
.fcp-portal :is(.fcp-page-head,.fcp-panel-head-front){min-width:0;flex-wrap:wrap;row-gap:12px}
.fcp-portal .fcp-page-head h1 {font-size:clamp(1.7rem,3.6vw,2.5rem);line-height:1.2}
.fcp-portal :is(.fcp-panel-front,.fcp-service-card,.fcp-stat-grid article,.fcp-mdj-archive-card){
  border-radius:var(--ekk-radius);
  box-shadow:var(--ekk-elev);
}
.fcp-portal :is(.fcp-button,button.fcp-button,.fcp-mdj-share-actions a){
  border-radius:var(--ekk-radius-sm);
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.fcp-portal :is(button,a,summary,input,select,textarea):focus-visible {
  outline:2px solid var(--ekk-ring);
  outline-offset:3px;
}
.fcp-portal :is(input,select,textarea) {
  min-width:0;
  max-width:100%;
  font-family:inherit;
}
.fcp-portal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea):not([type="range"]) {
  border-radius:var(--ekk-radius-sm);
}
.fcp-portal :is(.fcp-button,button):disabled {cursor:not-allowed;opacity:.58;transform:none}
/* Fields share readable sizing and native interaction across the portal. */
.fcp-portal :where(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],select,textarea){
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--ekk-border,var(--fcp-line,#cbd8e3));
  background:var(--ekk-surface,var(--fcp-card,#fff));
  color:var(--ekk-text,var(--fcp-ink,#183448));
  box-shadow:none;
  line-height:1.45;
}
.fcp-portal :where(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],select,textarea):disabled{opacity:.66;cursor:not-allowed}
.fcp-portal input[type="checkbox"], .fcp-portal input[type="radio"] {accent-color:var(--ekk-ring)}
.fcp-portal input::placeholder, .fcp-portal textarea::placeholder {opacity:.76}

.fcp-portal :is(.fcp-helper,.fcp-page-head p,.fcp-panel-head-front p){max-width:75ch}
.fcp-portal :is(.fcp-mdj-layout,.fcp-bible-layout,.fcp-help-layout) {min-width:0;max-width:100%;box-sizing:border-box}
.fcp-portal :is(.fcp-mdj-prose,.fcp-bible-chapter,.fcp-help-guide-content){overflow-wrap:break-word}
.fcp-portal :is(.fcp-bible-tabs,.fcp-mdj-tabs,.fcp-help-filters){scrollbar-width:thin}
.fcp-portal :is(.fcp-bible-tabs a,.fcp-help-filters button){border-radius:var(--ekk-radius-sm)}
.fcp-portal .fcp-help-guide,
.fcp-portal .fcp-help-question{border-radius:var(--ekk-radius)}
.fcp-portal .fcp-help-current-features{border-radius:var(--ekk-radius)}
.fcp-portal :is(.fcp-mdj-editor,.fcp-mdj-draft-manager,.fcp-mdj-article,.fcp-mdj-saved-results li){max-width:100%;min-width:0}
.fcp-portal .fcp-mdj-article{box-shadow:var(--ekk-elev)}
.fcp-portal .fcp-topbar-inner{max-width:100%}
.fcp-portal .fcp-nav a{white-space:nowrap}
.fcp-portal .fcp-nav .is-active{font-weight:750}
.fcp-portal .fcp-topbar .fcp-user-menu{gap:10px}
.fcp-portal .fcp-button:active{transform:translateY(0)}
/* Clear surfaces remain light in every view; respect purposefully dark concert stages. */
html[data-fcp-theme="light"] .fcp-portal :is(.fcp-panel-front,.fcp-service-card,.fcp-stat-grid article){
  background:var(--ekk-surface);
  border-color:var(--ekk-border);
  color:var(--ekk-text);
}
html[data-fcp-theme="light"] .fcp-portal :is(.fcp-panel-head-front h2,.fcp-page-head h1){color:var(--ekk-text)}
html[data-fcp-theme="light"] .fcp-portal :is(.fcp-panel-head-front p,.fcp-page-head p){color:var(--ekk-text-muted)}
html[data-fcp-theme="light"] .fcp-portal .fcp-count-pill{background:#e6f5f8;color:#176780}
html[data-fcp-theme="dark"] .fcp-portal :is(.fcp-panel-front,.fcp-service-card,.fcp-stat-grid article){border-color:var(--ekk-border)}
@media(max-width:760px){
  .fcp-portal .fcp-shell{width:min(100% - 24px,1180px);padding-top:18px;padding-bottom:46px}
  .fcp-portal :is(.fcp-actions-row,.fcp-service-actions){gap:9px}
  .fcp-portal :is(.fcp-panel-front,.fcp-stat-grid article){padding:clamp(15px,3.6vw,22px)}
  .fcp-portal :is(input,select,textarea){font-size:16px}
  .fcp-portal :is(.fcp-page-head,.fcp-panel-head-front){align-items:flex-start}
}
@media(max-width:430px){
  .fcp-portal .fcp-shell{width:min(100% - 20px,1180px)}
  .fcp-portal .fcp-page-head h1{font-size:1.65rem}
  .fcp-portal :is(.fcp-button,.fcp-bible-tabs a,.fcp-help-filters button){min-height:42px}
}
@media(prefers-reduced-motion:reduce){
  .fcp-portal :is(.fcp-button,button,summary,a){transition:none!important;scroll-behavior:auto}
}

/* Lot A / 0.19.37 — coherent portal surfaces, typography and focus styles.
 * Intentional exclusions: concert stage, PDF renderers and editable music grids. */
html[data-fcp-theme="light"] .fcp-portal {
  background: var(--ekk-page);
  color: var(--ekk-text);
}
.fcp-portal :is(.fcp-panel-front,.fcp-service-card) {
  border-radius:var(--ekk-radius);
  border:1px solid var(--ekk-border);
  box-shadow:var(--ekk-elev);
}
.fcp-portal .fcp-page-head h1 {
  font-size:clamp(28px,3.1vw,40px);
  line-height:1.18;
}
.fcp-portal :is(.fcp-page-head p,.fcp-panel-head-front p) {
  font-size:16px;
  line-height:1.6;
}
.fcp-portal .fcp-panel-head-front h2 {line-height:1.3}
.fcp-portal :is(.fcp-helper,.fcp-panel-front .fcp-helper) {
  font-size:var(--ekk-type-helper);
  line-height:1.6;
  color:var(--ekk-text-muted);
}
.fcp-portal :is(.fcp-form-grid label > span,.fcp-admin-tile > label) {
  font-size:15px;
  line-height:1.45;
}
.fcp-portal :is(.fcp-actions-row > .fcp-button,.fcp-panel-head-front > .fcp-button) {
  min-height:var(--ekk-control-height);
  font-size:15px;
}
.fcp-portal :is(.fcp-search-field input,.fcp-form-grid input,.fcp-form-grid textarea) {
  font-size:16px;
}
.fcp-portal :is(.fcp-form-grid label,.fcp-search-field,.fcp-panel-front,.fcp-service-card) {
  min-width:0;
}
.fcp-portal :is(button,a,summary,input,select,textarea):focus-visible {
  outline:2px solid var(--ekk-ring);
  outline-offset:3px;
}
/* The portal statistics are intentionally readable in both themes. */
html[data-fcp-theme="light"] .fcp-portal .fcp-admin-stats > div {
  background:var(--ekk-surface-2);
  border-color:var(--ekk-border);
}
html[data-fcp-theme="light"] .fcp-portal .fcp-admin-stats > div :is(span,strong) {
  color:var(--ekk-text);
}
html[data-fcp-theme="light"] .fcp-portal .fcp-admin-stats > div span {
  color:var(--ekk-text-muted);
}
@media(max-width:760px){
  .fcp-portal .fcp-page-head h1{font-size:clamp(26px,5.5vw,31px)}
  .fcp-portal .fcp-panel-head-front h2{font-size:clamp(21px,5vw,24px)}
  .fcp-portal .fcp-admin-tabs a{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
  .fcp-portal :is(.fcp-button,button,summary,a){transition:none}
}
