/* MFCP editorial R3: clone-only enhancement. Load after editorial-r2.css. */
body.sls-editorial-ui :where(audio,video,canvas,img,iframe) { max-width:100%; }
body.sls-editorial-ui audio { display:block; width:min(100%,460px); }
body.sls-editorial-ui :where(.card,.page-head,.section-head,.table-wrap,.form-grid,.grid) { min-width:0; }
body.sls-editorial-ui :where(.card,.song-card,.form-grid) { overflow-wrap:break-word; }
@media(max-width:480px){
  body.sls-editorial-ui .actions {align-items:stretch}
  body.sls-editorial-ui .actions > :where(.btn,button) {max-width:100%}
}
/* Real R2 CSS still contains forced-dark upload panels. Fix the customer scope only. */
body.sls-editorial-ui .upload,
body.sls-editorial-ui .material-upload,
body.sls-editorial-ui .file-upload {
  background:#f7f7f5;color:#181818;border-color:#868680;
}
body.sls-editorial-ui .upload :where(label,.hint,p,small,strong) {color:#333}
body.sls-editorial-ui input[type=file] {
  max-width:100%;width:100%;background:#fff;color:#181818;border-color:#777;
}
body.sls-editorial-ui input[type=file]::file-selector-button {
  background:#181818;color:#fff;border:0;padding:.55em .75em;margin-right:.8em;font:inherit;
}
body.sls-editorial-ui footer {color:#4c4c4c}
body.sls-editorial-ui .table-wrap {overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:640px){
 body.sls-editorial-ui .table-wrap > table {min-width:580px}
}

/* R61B -- official site header parity; MFCP links only.
   WP header reference: .sync-site-header, .sync-header-inner, .sync-brand-name,
   .sync-primary-nav from current editorial-r7 theme.css.
   These selectors are scoped to customer/public only, preserving admin. */
body.sls-editorial-ui .topbar.sls-mfcp-site-header {
  display:block;
  width:100%;min-height:0;height:auto;padding:0;
  background:rgba(253,253,252,.98);color:#161616;
  border:0;border-bottom:1px solid #d3d3d0;
  box-shadow:none;backdrop-filter:none;
  position:sticky;top:0;z-index:100;
}
body.sls-editorial-ui .sls-mfcp-header-inner {
  width:min(calc(100% - 80px),1192px);
  margin-inline:auto;min-height:82px;
  display:flex;align-items:center;justify-content:space-between;
  gap:28px;padding:0;
}
body.sls-editorial-ui .sls-mfcp-site-header .sync-brand {
  display:inline-flex;flex:none;align-items:center;
  text-decoration:none;color:#161616;
  font-weight:700;letter-spacing:-.015em;line-height:1.1;
}
body.sls-editorial-ui .sls-mfcp-site-header .sync-brand-name {
  font-size:16px;font-weight:700;line-height:1.1;letter-spacing:-.015em;
}
body.sls-editorial-ui .sls-mfcp-primary-nav {
  display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;column-gap:clamp(13px,2vw,29px);row-gap:8px;
  width:auto;overflow:visible;white-space:normal;margin:0;padding:8px 0;
  background:transparent;min-width:0;
}
body.sls-editorial-ui .sls-mfcp-primary-nav > a,
body.sls-editorial-ui .sls-mfcp-primary-nav .nav-form > button {
  font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;
  color:#272727;text-decoration:none;letter-spacing:0;
  white-space:nowrap;min-height:38px;padding:8px 1px;
  border:0;background:transparent;border-radius:0;box-shadow:none;
}
body.sls-editorial-ui .sls-mfcp-primary-nav > a:hover,
body.sls-editorial-ui .sls-mfcp-primary-nav > a:focus-visible,
body.sls-editorial-ui .sls-mfcp-primary-nav .nav-form > button:hover,
body.sls-editorial-ui .sls-mfcp-primary-nav .nav-form > button:focus-visible {
  text-decoration:underline;text-underline-offset:5px;
  background:transparent;color:#111;
}
/* Same dark rectangular CTA treatment as the official site's Mix link. */
body.sls-editorial-ui .sls-mfcp-primary-nav > a[href="?r=order/new"] {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:10px 17px;
  background:#191919;color:#fff;border:1px solid #222;
  font-weight:600;text-decoration:none;
}
body.sls-editorial-ui .sls-mfcp-primary-nav > a[href="?r=order/new"]:hover,
body.sls-editorial-ui .sls-mfcp-primary-nav > a[href="?r=order/new"]:focus-visible {
  background:#353535;color:#fff;text-decoration:none;
}
body.sls-editorial-ui .sls-mfcp-primary-nav .nav-form {margin:0;display:inline-flex;align-items:center;flex:none;}
body.sls-editorial-ui .sls-mfcp-skip-link:not(:focus) {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
body.sls-editorial-ui .sls-mfcp-skip-link:focus {
  position:fixed;top:4px;left:4px;z-index:999;background:#fff;
  color:#181818;padding:10px 14px;outline:2px solid #181818;
}
/* Keep all navigation reachable on touch devices without injecting JS. */
@media(max-width:800px) {
  body.sls-editorial-ui .topbar.sls-mfcp-site-header{position:relative;}
  body.sls-editorial-ui .sls-mfcp-header-inner {
    width:min(calc(100% - 32px),1192px);
    min-height:70px;align-items:flex-start;flex-direction:column;
    justify-content:center;gap:8px;padding:13px 0;
  }
  body.sls-editorial-ui .sls-mfcp-primary-nav {
    width:100%;justify-content:flex-start;
    flex-wrap:wrap;gap:6px 14px;overflow:visible;padding:0;
  }
  body.sls-editorial-ui .sls-mfcp-primary-nav > a,
  body.sls-editorial-ui .sls-mfcp-primary-nav .nav-form > button {
    min-height:40px;font-size:14px;padding:10px 1px;
  }
}
@media(max-width:420px) {
  body.sls-editorial-ui .sls-mfcp-primary-nav {column-gap:12px;row-gap:0;}
  body.sls-editorial-ui .sls-mfcp-primary-nav > a[href="?r=order/new"] {padding:9px 12px;}
}

/* R63: the legacy app.css mobile rule `.brand span{display:none}` must not
   hide the official SYNC-LiNK-STUDIO identity in the customer header. */
@media (max-width: 800px) {
  body.sls-editorial-ui .sls-mfcp-site-header .sync-brand-name {
    display: inline;
  }
}
