/* Aligns the brand microsites with the rest of mpw-lichttechnik.com.
   Loaded AFTER the scoped site.css of each brand.

   1. Width: content edges = header edges. The header container is
      max-width var(--mpw-content-max) with var(--mpw-gutter) inside
      (public/assets/css/layout.css), so every microsite wrapper does the same.
      Full-width bars (NewLux brand bar) inset their content to that line.
   2. Titles: the site's title system (public/assets/css/titles.css) –
      plain part Manrope 600, emphasised part 300 italic in the same colour. */

.bs-root {
  --bs-max: var(--mpw-content-max, 1600px);
  --bs-gutter: var(--mpw-gutter, 1.25rem);
  /* Inset for full-bleed bars so their content lines up with the container. */
  --bs-inset: max(var(--bs-gutter), calc((100% - var(--bs-max)) / 2 + var(--bs-gutter)));
}

/* ---- 1. Width ------------------------------------------------------------ */

.bs-lightlineled .ll-wrap,
.bs-newluxled .wrap {
  width: 100%;
  max-width: var(--bs-max);
  margin-inline: auto;
  padding-inline: var(--bs-gutter);
}
/* Nested wrappers keep no extra inset (draft: technical pages). */
.bs-lightlineled .ll-technical-content > .ll-section > .ll-wrap,
.bs-lightlineled .ll-wrap .ll-wrap,
.bs-newluxled .wrap .wrap {
  padding-inline: 0;
}
.bs-lightlineled .ll-system-hero-copy {
  width: 100%;
  max-width: var(--bs-max);
  margin-inline: auto;
  padding-inline: var(--bs-gutter);
}
.bs-newluxled .brandbar {
  padding-inline: var(--bs-inset);
}

/* ---- 2. Titles ----------------------------------------------------------- */

.bs-root :is(h1, h2) {
  font-weight: var(--mpw-title-weight, 600);
  letter-spacing: var(--mpw-title-tracking, -0.02em);
}
.bs-root :is(h1, h2) :is(em, i, span:not([class])) {
  font-weight: var(--mpw-title-light, 300);
  font-style: italic;
  color: inherit;
  letter-spacing: var(--mpw-title-tracking, -0.02em);
}
.bs-root :is(h1, h2) :is(strong, b) {
  font-weight: var(--mpw-title-weight, 600);
  font-style: normal;
}
