/* Exhibition Calls Manager v1.0.5 — safe Ultimate Member integration */
:root{
  --ecm-profile-width:1240px;
  --ecm-ux-bg:#000000;
  --ecm-ux-card:#101010;
  --ecm-ux-surface:#171717;
  --ecm-ux-accent:#1E7B8D;
  --ecm-ux-text:#ECECEC;
  --ecm-ux-muted:#9A9A9A;
  --ecm-ux-border:#34383B;
  --ecm-ux-radius:16px;
}

/* Keep UM's own structure and navigation. Only constrain and polish the profile shell. */
body.ecm-um-profile-page .um-profile.um,
body.ecm-um-profile-page .um-profile{
  width:min(var(--ecm-profile-width),calc(100% - 36px))!important;
  max-width:var(--ecm-profile-width)!important;
  margin-inline:auto!important;
  color:var(--ecm-ux-text)!important;
}

body.ecm-um-profile-page .um-profile .um-cover,
body.ecm-um-profile-page .um-profile .um-cover-e{
  overflow:hidden!important;
}

/* Profile identity is intentionally left entirely to Ultimate Member in v1.0.7.
   ECM does not alter cover, avatar, name, edit control, or profile-header metadata. */

/* Native UM navigation remains fully controlled by Ultimate Member. */
body.ecm-um-profile-page .um-profile .um-profile-nav{
  margin-top:16px!important;
}

/* Profile content readability */
body.ecm-um-profile-page .um-profile .um-profile-body{
  max-width:none!important;
  width:100%!important;
  margin-top:8px!important;
  padding:28px!important;
  color:var(--ecm-ux-text)!important;
  background:#0B0B0B!important;
  border:1px solid var(--ecm-ux-border)!important;
  border-radius:16px!important;
  box-sizing:border-box!important;
}

body.ecm-um-profile-page .um-profile .um-field{
  margin-bottom:18px!important;
}

body.ecm-um-profile-page .um-profile .um-field-label{
  border-bottom:1px solid var(--ecm-ux-border)!important;
  color:var(--ecm-ux-text)!important;
  padding-bottom:9px!important;
}

body.ecm-um-profile-page .um-profile .um-field-label label{
  color:var(--ecm-ux-text)!important;
}

body.ecm-um-profile-page .um-profile .um-field-value{
  color:var(--ecm-ux-muted)!important;
  line-height:1.85!important;
}

body.ecm-um-profile-page .um-profile .um-field-value a{
  color:#39A0B5!important;
}

/* ECM call cards: spacing only, without changing UM structure. */
body.ecm-um-profile-page .ecm-my-calls{
  display:grid!important;
  gap:30px!important;
  width:100%!important;
}

body.ecm-um-profile-page .ecm-my-card{
  margin:0!important;
  padding:26px!important;
  border:1px solid var(--ecm-ux-border)!important;
  border-radius:var(--ecm-ux-radius)!important;
  background:var(--ecm-ux-card)!important;
}

body.ecm-um-profile-page .ecm-artwork-list{
  margin-top:22px!important;
  padding-top:18px!important;
  border-top:1px solid var(--ecm-ux-border)!important;
}

body.ecm-um-profile-page .ecm-artwork-row{
  padding:18px!important;
  margin-top:12px!important;
  border:1px solid var(--ecm-ux-border)!important;
  border-radius:13px!important;
  background:var(--ecm-ux-surface)!important;
}

/* News / other artists added by ECM */
.ecm-profile-extras{
  width:min(var(--ecm-profile-width),calc(100% - 36px));
  margin:34px auto 72px;
  color:var(--ecm-ux-text);
  box-sizing:border-box;
}
.ecm-profile-section{
  margin:0 0 42px;
  padding:28px;
  background:var(--ecm-ux-card);
  border:1px solid var(--ecm-ux-border);
  border-radius:var(--ecm-ux-radius);
}
.ecm-section-heading{margin-bottom:22px}
.ecm-section-heading h2{margin:3px 0 0!important;color:var(--ecm-ux-text)!important}
.ecm-section-kicker{color:#54AFC1;font-size:.82rem;font-weight:700}

.ecm-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ecm-news-card,.ecm-artist-card{
  overflow:hidden;background:var(--ecm-ux-surface);border:1px solid var(--ecm-ux-border);border-radius:14px
}
.ecm-news-image{display:block;aspect-ratio:16/10;background:#0B0B0B;overflow:hidden}
.ecm-news-image img,.ecm-artist-avatar img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important}
.ecm-news-body,.ecm-artist-card-body{padding:18px}
.ecm-news-body h3,.ecm-artist-card-body h3{margin:7px 0 10px!important}
.ecm-news-body h3 a,.ecm-artist-card-body h3 a{color:var(--ecm-ux-text)!important;text-decoration:none!important}
.ecm-news-body p,.ecm-artist-card-body p{color:#A9AFB1!important;line-height:1.75!important}
.ecm-text-link{color:#54AFC1!important;text-decoration:none!important;font-weight:600}
.ecm-artists-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ecm-artist-avatar{display:block;aspect-ratio:1/1;overflow:hidden;background:#0B0B0B}

/* Optional legacy UM directory hiding retained from the site setting. */
body.ecm-um-profile-page.ecm-hide-legacy-um-directory .um-directory{display:none!important}

/* Header account button */
.ecm-account-button,
a.ecm-account-profile-link{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 15px;border:1px solid #fff;border-radius:5px;background:#fff;
  color:#1E7B8D!important;text-decoration:none!important;font-weight:600
}

@media(max-width:1024px){
  .ecm-news-grid,.ecm-artists-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767px){
  body.ecm-um-profile-page .um-profile.um,
  body.ecm-um-profile-page .um-profile,
  .ecm-profile-extras{
    width:min(100% - 22px,var(--ecm-profile-width))!important;
  }

  body.ecm-um-profile-page .um-profile .um-profile-body{
    padding:18px!important;
  }

  .ecm-profile-section{padding:20px}
  .ecm-news-grid,.ecm-artists-grid{grid-template-columns:1fr}
}


/* v1.0.8 — color only: keep Ultimate Member's native identity layout untouched. */
body.ecm-um-profile-page .um-profile .um-name,
body.ecm-um-profile-page .um-profile .um-name a{
  color:#ECECEC!important;
}

/* ECM v1.31.5 — native Ultimate Member navigation in Forma identity.
   No cloned/DOM-injected tabs: UM owns the navigation structure. */
body.ecm-um-profile-page .um-profile .um-profile-nav{
  background:#111111!important;
  border:1px solid var(--ecm-ux-border)!important;
  border-radius:0!important;
}
body.ecm-um-profile-page .um-profile .um-profile-nav .um-profile-nav-item a{
  color:#B7B7B7!important;
  background:transparent!important;
  transition:color .18s ease,background .18s ease!important;
}
body.ecm-um-profile-page .um-profile .um-profile-nav .um-profile-nav-item a:hover{
  color:#FFFFFF!important;
  background:#171717!important;
}
body.ecm-um-profile-page .um-profile .um-profile-nav .um-profile-nav-item.active a,
body.ecm-um-profile-page .um-profile .um-profile-nav .um-profile-nav-item a.active{
  color:#FFFFFF!important;
  background:#1E7B8D!important;
}
body.ecm-um-profile-page .um-profile .um-profile-nav .um-profile-nav-item i{color:inherit!important}

/* The private project workspace can now live inside the UM profile tab. */
body.ecm-um-profile-page .ecm-um-projects-tab{
  --ecm-forma-bg:#0A0A0A;
  --ecm-forma-panel:#111111;
  --ecm-forma-panel-2:#3F3F3F;
  --ecm-forma-accent:#1E7B8D;
  --ecm-forma-text:#FFFFFF;
  --ecm-forma-muted:#B7B7B7;
  --ecm-forma-border:#4A4A4A;
  color:var(--ecm-forma-text);
}
body.ecm-um-profile-page .ecm-um-projects-tab .ecm-archive-shell{max-width:none;padding:10px 0 34px}
body.ecm-um-profile-page .ecm-um-projects-tab .ecm-archive-title{font-size:30px}
body.ecm-um-profile-page .ecm-um-projects-tab .ecm-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
body.ecm-um-profile-page .ecm-um-projects-tab .ecm-create-panel{max-width:none}
@media(max-width:700px){
  body.ecm-um-profile-page .ecm-um-projects-tab .ecm-project-grid{grid-template-columns:1fr}
  body.ecm-um-profile-page .ecm-um-projects-tab .ecm-archive-shell{padding:6px 0 24px}
}


/* ECM v1.31.6 — compact owner project manager inside Ultimate Member. */
body.ecm-um-profile-page .ecm-profile-project-manager{color:#ECECEC;padding:8px 0 28px}
body.ecm-um-profile-page .ecm-profile-project-manager-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:18px 0 20px;border-bottom:1px solid #303030;margin-bottom:10px}
body.ecm-um-profile-page .ecm-profile-project-manager-kicker{color:#8FC8D3;font-size:10px;letter-spacing:.14em;margin-bottom:5px}
body.ecm-um-profile-page .ecm-profile-project-manager-head h2{margin:0 0 4px;color:#fff;font-size:25px;line-height:1.35;font-weight:700}
body.ecm-um-profile-page .ecm-profile-project-manager-head p{margin:0;color:#8f8f8f;font-size:12px}
body.ecm-um-profile-page .ecm-profile-add-project{white-space:nowrap;background:#1E7B8D!important;border-color:#1E7B8D!important;color:#fff!important;border-radius:4px!important;padding:9px 13px!important;font-size:12px!important}
body.ecm-um-profile-page .ecm-profile-project-manager-list{display:flex;flex-direction:column}
body.ecm-um-profile-page .ecm-profile-project-manager-row{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid #292929}
body.ecm-um-profile-page .ecm-profile-project-manager-thumb{width:86px;height:68px;background:#151515;border:1px solid #2b2b2b;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#777;font-size:11px}
body.ecm-um-profile-page .ecm-profile-project-manager-thumb img{display:block;width:100%;height:100%;object-fit:cover}
body.ecm-um-profile-page .ecm-profile-project-manager-info h3{margin:0 0 7px;color:#fff;font-size:15px;line-height:1.5;font-weight:700}
body.ecm-um-profile-page .ecm-profile-project-manager-meta{display:flex;gap:8px 14px;flex-wrap:wrap;color:#8f8f8f;font-size:11px}
body.ecm-um-profile-page .ecm-profile-project-manager-meta .ecm-manager-state{color:#bdbdbd}
body.ecm-um-profile-page .ecm-profile-project-manager-actions{display:flex;align-items:center;gap:11px;white-space:nowrap}
body.ecm-um-profile-page .ecm-profile-project-manager-actions a,body.ecm-um-profile-page .ecm-profile-project-manager-actions button{font:inherit;font-size:11px!important;color:#8FC8D3!important;background:transparent!important;border:0!important;padding:3px 0!important;margin:0!important;text-decoration:none!important;cursor:pointer}
body.ecm-um-profile-page .ecm-profile-project-manager-actions a:hover,body.ecm-um-profile-page .ecm-profile-project-manager-actions button:hover{color:#fff!important}
body.ecm-um-profile-page .ecm-profile-project-manager-actions form{display:inline;margin:0}
body.ecm-um-profile-page .ecm-profile-project-empty{padding:18px;border:1px solid #303030;background:#111;color:#aaa;font-size:12px}
@media(max-width:640px){
 body.ecm-um-profile-page .ecm-profile-project-manager-head{align-items:flex-start;flex-direction:column}
 body.ecm-um-profile-page .ecm-profile-project-manager-row{grid-template-columns:72px minmax(0,1fr);gap:12px}
 body.ecm-um-profile-page .ecm-profile-project-manager-thumb{width:72px;height:58px}
 body.ecm-um-profile-page .ecm-profile-project-manager-actions{grid-column:1/-1;padding-top:2px}
}

/* ECM v1.31.7 — match the approved Forma profile mockup. */
body.ecm-um-profile-page .ecm-profile-project-manager-head{
  align-items:center;
  padding:17px 18px;
  margin-bottom:12px;
  background:#1E7B8D;
  border:1px solid #2A8FA1;
  border-radius:7px;
}
body.ecm-um-profile-page .ecm-profile-project-manager-kicker{color:#D7E9EC}
body.ecm-um-profile-page .ecm-profile-project-manager-head h2{color:#FFFFFF!important}
body.ecm-um-profile-page .ecm-profile-project-manager-head p{color:#D7E9EC!important}
body.ecm-um-profile-page .ecm-profile-add-project{
  background:#FFFFFF!important;
  border:1px solid #FFFFFF!important;
  color:#1E7B8D!important;
}
body.ecm-um-profile-page .ecm-profile-add-project:hover{
  background:#E7F1F3!important;
  border-color:#E7F1F3!important;
  color:#155E6C!important;
}

/* v1.33.3 — contextual Forma Manager entry inside the owner's UM profile/account. */
.ecm-um-manager-entry{
  max-width:760px;margin:18px auto;padding:28px;border:1px solid var(--forma-border,#2f2f2f);
  border-radius:16px;background:var(--forma-panel,#141414);color:var(--forma-text,#fff);text-align:right
}
.ecm-um-manager-entry .ecm-um-manager-kicker{display:block;margin-bottom:7px;color:#1E7B8D;font-size:11px;font-weight:700;letter-spacing:.16em}
.ecm-um-manager-entry h3{margin:0 0 9px;color:var(--forma-text,#fff);font-size:22px;line-height:1.4}
.ecm-um-manager-entry p{margin:0 0 20px;color:var(--forma-text-secondary,#b3b3b3);font-size:14px;line-height:1.9}
.ecm-um-manager-entry .ecm-um-manager-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border-radius:8px;background:#1E7B8D;color:#fff!important;text-decoration:none!important;font-weight:700}
.ecm-um-manager-entry .ecm-um-manager-button:hover{background:#155E6C;color:#fff!important}
html[data-forma-theme="light"] .ecm-um-manager-entry{background:#fff;border-color:#D8D8D2;color:#151515}
html[data-forma-theme="light"] .ecm-um-manager-entry h3{color:#151515}
html[data-forma-theme="light"] .ecm-um-manager-entry p{color:#555}
