/* Approved LEGALMORE artwork, fitted to the shell without changing its pixels. */
html .legalmore-wordmark {
  position: relative;
  display: inline-block;
  width: 196px;
  max-width: 100%;
  aspect-ratio: 2010 / 255;
  overflow: hidden;
  vertical-align: middle;
  flex: 0 0 auto;
}
html .legalmore-wordmark img {
  position: absolute;
  display: block;
  width: 107.91045%;
  max-width: none;
  height: auto;
  aspect-ratio: 2169 / 725;
  left: -4.57711%;
  top: -94.90196%;
  margin: 0;
}
/* The second layer preserves the gold infinity when the letters turn ivory. */
html .legalmore-wordmark-ink { filter: brightness(0) invert(.95); }
html .legalmore-wordmark-gold { clip-path: inset(0 0 0 91%); filter: none; }
html[data-theme="light"] .legalmore-wordmark-ink { filter: none; }
/* These desktop rails remain dark in light mode. Mobile uses the page surface. */
@media (min-width: 851px) {
  html[data-theme="light"]:is([data-palette="cobalto"], [data-palette="bordeaux"], [data-palette="laguna"], [data-palette="carbonio"], [data-palette="rame"], [data-palette="iris"], [data-palette="notturno"]) #work-navigation .legalmore-wordmark-ink { filter: brightness(0) invert(.95); }
}
html .entry-masthead .legalmore-wordmark { width: 238px; }
html[data-design="segnale"] body[data-app-shell="unified"] .work-navigation-heading { min-height: 68px; padding: 12px 13px; align-items: center; gap: 8px; }
html[data-design="segnale"] body[data-app-shell="unified"] .work-navigation-heading .brand { min-width: 0; min-height: 44px; padding-block: 10px; flex: 1 1 auto; }
html[data-design="segnale"] body[data-app-shell="unified"] .work-navigation-heading .legalmore-wordmark { width: 146px; }
html .assistant .message-label::before,
html[data-design="segnale"] .assistant .message-label::before,
html[data-theme="light"] .assistant .message-label::before {
  content: none;
  display: none;
}
html .brand .brand-mark {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 27px;
  height: 18px;
  border-radius: 0;
  background: url("legalmore-infinity.svg?v=20261018-project-logo1") center / contain no-repeat;
}
@media (max-width: 850px) {
  html .legalmore-wordmark { width: 172px; }
  html .entry-masthead .legalmore-wordmark { width: 204px; }
  html[data-design="segnale"] body[data-app-shell="unified"] .work-navigation-heading { min-height: 64px; padding: 0 0 0 16px; }
  html[data-design="segnale"] body[data-app-shell="unified"] .work-navigation-heading .brand { flex: 0 1 auto; }
  html[data-design="segnale"] body[data-app-shell="unified"] .work-navigation-heading .legalmore-wordmark { width: 122px; }
}

/* Latest approved sidebar artwork: crop its canvas inside the existing logo box. */
html #studio-brand .legalmore-sidebar-wordmark {
  isolation: isolate;
  background: var(--bg);
}
html #studio-brand,
html #studio-brand * {
  user-select: none;
  -webkit-user-select: none;
}
html #studio-brand img { -webkit-user-drag: none; }
html #studio-brand .legalmore-sidebar-wordmark img {
  width: 167.41379%;
  aspect-ratio: 1942 / 809;
  left: -33.70690%;
  top: -217.44422%;
  filter: brightness(1.05) invert(1);
  mix-blend-mode: screen;
}
html[data-theme="light"] #studio-brand .legalmore-sidebar-wordmark img {
  filter: brightness(1.05);
  mix-blend-mode: multiply;
}
@media (min-width: 851px) {
  html[data-theme="light"]:is([data-palette="cobalto"], [data-palette="bordeaux"], [data-palette="laguna"], [data-palette="carbonio"], [data-palette="rame"], [data-palette="iris"], [data-palette="notturno"]) #studio-brand .legalmore-sidebar-wordmark img {
    filter: brightness(1.05) invert(1);
    mix-blend-mode: screen;
  }
}
