/* Control panel only (not shared with the site types' admin pages, unlike brand/brand.css). */

/* "V2" badge, tilted, on the Masher Sites logo (sidebar and login pages). */
.ms-logo-v2 { position: relative; display: inline-block; max-width: 100%; }
.ms-logo-v2 > img { display: block; }
.ms-v2-badge {
  position: absolute; top: -.55rem; right: -.6rem; transform: rotate(12deg);
  background: var(--ms-gold, #f7c948); color: var(--ms-ink, #24202b);
  border: 2px solid var(--ms-ink, #24202b); border-radius: .35rem; box-shadow: 2px 2px 0 var(--ms-ink, #24202b);
  font-family: var(--ms-display, Impact, sans-serif); font-size: .8rem; line-height: 1; letter-spacing: .04em;
  padding: .2rem .4rem; pointer-events: none; white-space: nowrap;
}
/* The login panel and the sidebar stretch their children: keep the wrapper as wide as the logo. */
.ms-login .ms-login-side .ms-logo-v2 { align-self: flex-start; width: 100%; max-width: 300px; margin-bottom: 2rem; }
.ms-login .ms-login-side .ms-logo-v2 > img { margin-bottom: 0; }
.sidebar .sidebar-brand .ms-logo-v2 { width: 100%; max-width: 190px; padding-top: 13px; }
/* The logo sits lower than the badge in the sidebar, so the badge only touches its corner. */
.sidebar .sidebar-brand .ms-v2-badge { top: -.2rem; right: -.5rem; }
.ms-login .ms-login-side .ms-v2-badge { font-size: 1.05rem; top: -.7rem; right: -.9rem; }
/* The collapsed sidebar shows only the icon: no badge there. */
.sidebar.toggled .sidebar-brand .ms-logo-v2 { display: none; }
@media (max-width: 767.98px) { .sidebar .sidebar-brand .ms-logo-v2 { display: none; } }
