.site-design-credit {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  opacity: .62;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.site-design-credit::before {
  content: " · ";
}

.site-footer-signature {
  direction: ltr;
  unicode-bidi: isolate;
}

.site-footer-signature--standalone {
  grid-column: 1 / -1;
  flex: 0 0 100%;
  width: 100%;
  margin: clamp(1.25rem, 2.5vw, 2.25rem) 0 0;
  color: inherit;
  opacity: .68;
  font: 400 .62rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .14em;
  text-align: right;
}

@media (max-width: 700px) {
  .site-footer-signature--standalone { text-align: center; }
}

/* Public DIAR identity: the homepage wordmark is the authority. These named
   selectors intentionally exclude experimental film / frame-kit pages. Keep
   the original PNG alpha and proportions; never retype or recolour per page.
   !important is required because brand/editorial pages inject older rules
   after linked stylesheets, and several headers change state on scroll. */
html body :is(.site-header, .about-header, .bp-header, .ct-header,
  .dp-header, .ep-header, .hn-header, .diar-fallback-header) {
  position: fixed !important;
  z-index: 100;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem) !important;
  direction: ltr !important;
  /* Placement is shared; the original page theme owns the surface. Never
     add an opaque strip just to accommodate the LN utility. */
  color: var(--diar-header-ink, #fff) !important;
}

html body :is(.site-header, .about-header, .bp-header, .ct-header,
  .dp-header, .ep-header, .hn-header, .diar-fallback-header) :is(a, button) {
  color: inherit;
}

/* These original layouts have light surfaces. Keep the same wordmark,
   using a neutral ink treatment so transparent/light headers stay legible. */
html body :is(.bp-header, .dp-header, .ep-header,
  .site-header.is-scrolled, .about-header.is-scrolled,
  .about-header.menu-visible, .hn-header.is-scrolled) {
  --diar-header-ink: #171715;
  --diar-header-logo-filter: brightness(0);
}

html body .diar-lang-menu a {
  color: inherit !important;
}

html body .hn-header.is-scrolled {
  background: rgba(242, 239, 232, .94);
  border-color: var(--hn-line);
  backdrop-filter: blur(18px);
}

/* Keep the original menu type size. Switch to the existing compact menu
   before navigation can collide with the slightly wider identity lockup. */
@media (max-width: 1279px) {
  html body :is(.desktop-nav, .about-nav, .bp-nav, .dp-nav, .ep-nav, .hn-nav),
  html body :is(.ct-header > nav, .hn-consult, .dp-consultation, .ep-header__action) {
    display: none !important;
  }

  html body :is(.menu-button, .about-menu-button, .hn-menu-button, .dp-menu-button),
  html body :is(.bp-header, .ep-header, .ct-header) .site-menu-button {
    display: inline-flex !important;
    align-items: center;
  }

  html body :is(.bp-header, .dp-header, .ct-header, .hn-header, .ep-header__inner) {
    grid-template-columns: minmax(0, 1fr) max-content !important;
  }
}

/* Editorial headers have an extra shell. Let the shared physical header
   padding position the identity once, rather than adding a second gutter. */
html body .ep-header__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-inline: 0;
  direction: ltr;
}

/* The full identity must have its own intrinsic-width column. Symmetric
   fractional columns squeezed it under long German navigation labels. */
html body :is(.bp-header, .ct-header, .dp-header, .hn-header, .ep-header__inner) {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

html body :is(.bp-nav, .dp-nav, .hn-nav, .ep-nav) {
  min-width: 0;
  justify-content: center;
}

html body .ct-header > nav {
  min-width: 0;
  padding-inline: 1rem;
  justify-content: center;
}

@media (min-width: 1280px) and (max-width: 1399px) {
  html[lang="de"] .desktop-nav { gap: 1.2rem; }
}

/* These page families previously had in-flow sticky headers. Preserve
   their original content clearance after making the shared header fixed. */
html body:is(.bp-page, .ep-body, .dp-page) {
  padding-top: 72px;
  --site-mobile-menu-top: 72px;
}

html body.dp-page { --dp-header: 72px; }
html body.ct-body { --site-mobile-menu-top: 72px; }

@media (max-width: 1160px) {
  html body .hn-header { grid-template-columns: minmax(0, 1fr) max-content; }
}

@media (max-width: 980px) {
  html body .dp-header { grid-template-columns: minmax(0, 1fr) max-content; }
}

@media (max-width: 1040px) {
  html body .ep-header__inner { grid-template-columns: minmax(0, 1fr) max-content; }
}

@media (max-width: 960px) {
  html body .bp-header { grid-template-columns: minmax(0, 1fr) max-content; }
}

@media (max-width: 920px) {
  html body .ct-header { grid-template-columns: minmax(0, 1fr) max-content; }
}

html body .diar-fallback-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

html body :is(.brand-mark, .about-brand, .bp-logo, .ct-brand,
  .dp-identity, .ep-brand, .hn-logo, .mark) {
  color: inherit !important;
  direction: ltr;
  unicode-bidi: isolate;
  text-decoration: none;
}

html body :is(.brand-mark, .about-brand, .bp-logo, .ct-brand,
  .dp-identity, .ep-brand, .hn-logo, .mark) > img {
  display: block !important;
  flex: 0 0 auto;
  width: 5.35rem !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center;
  filter: var(--diar-header-logo-filter, brightness(0) invert(1)) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Before the shared LN script splits the identity into sibling links, retain
   the homepage's horizontal fallback. The shared identity wrapper owns all
   final placement, spacing and the legal-line typography after installation. */
html body :is(.brand-mark, .about-brand, .bp-logo, .ct-brand,
  .dp-identity, .ep-brand, .hn-logo, .mark):not(.diar-header-identity *) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: .8rem;
}

/* Original full lockups stay full lockups in the footer; their shape and
   aspect ratio are not substituted with a typed imitation. Dark surfaces
   retain the same white brand colour rather than inverting the artwork. */
html body :is(.site-footer, .about-footer, .bp-footer, .dp-footer, .hn-footer) {
  --ink-soft: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .16);
  --bp-muted: rgba(255, 255, 255, .68);
  --bp-line: rgba(255, 255, 255, .16);
  --hn-muted: rgba(255, 255, 255, .68);
  --hn-line: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .75) !important;
  background: #11110f !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

html body :is(.footer-identity, .about-footer__identity,
  .bp-footer__identity, .dp-footer-identity, .hn-footer__identity,
  .ct-footer-brand) > img {
  height: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  transform: none !important;
}

/* The brand-directory's original-art motif formerly used multiply + .14
   opacity. Keep it legible in the identical white instead of a third logo
   colour, without altering its image asset or the surrounding grid. */
html body .bp-index-hero__mark {
  padding: 1rem;
  color: #fff !important;
  background: #11110f;
  opacity: 1 !important;
  direction: ltr;
}

html body .bp-index-hero__mark > img {
  height: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}
