@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Thin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

/* WordPress mono token and the mono UI / card roles that otherwise request
   unavailable Silka Mono weights. Silka sans roles remain untouched. */
:root {
  --fm: "JetBrains Mono", "Courier New", monospace !important;
  --fw-u: 100 !important;
  --mono: "JetBrains Mono", "Courier New", monospace !important;
  --garden-link-font: "JetBrains Mono", "Courier New", monospace !important;
  --garden-link-weight: 100 !important;
}
body.garden-public,
body:has(.garden-blog-main) {
  --mono: "JetBrains Mono", "Courier New", monospace !important;
  --garden-link-font: "JetBrains Mono", "Courier New", monospace !important;
  --garden-link-weight: 100 !important;
}
:where(
  .tl, .prj-card-cat, .ftr2-nl-sub, .ftr2-nl-btn,
  .dm-customers-credit, .dm-case-count, .flow-service-item,
  .n-termin-label, .dm-wordmark-source, .question-offer-facts,
  .dm-fields-grid-overlay.inner.grid > span,
  .garden-link-label, .workshop-agenda-time,
  .garden-blog-row-arrow, .garden-blog-preview-caption,
  .lnk, .lnk-back, .dm-project-meta-links .lnk,
  .dm-project-nav__label, .dm-project-nav__key,
  .dm-detail-preview__facts dt, .dm-detail-preview__facts dd,
  #grid-hint, .n-logo, .n-item, .n-cta, .n-termin, .n-hamburger,
  .h-label, .h-cta, .blog-teaser, .lei-num, .lei-tags li,
  .prj-card-excerpt, .dm-project-meta p, .ftr2-nav-link, .ftr2-bottom a,
  .entry-content .wp-block-quote p, .dm-post-zitat blockquote,
  .top-nav a, .formatwahl-wordmark, .formatwahl-footer nav a,
  .formatwahl-filter button, .format-group h3, .format-type,
  .garden-hero-brand
) {
  font-weight: 100 !important;
}
.workflow-steps li::before { font-weight: 100 !important; }

/* These two home-page elements use Walsheim in their active rules. */
#dm-home-project-grid .prj-card-excerpt,
#kunden .dm-customers-heading p.tl {
  font-weight: 400 !important;
}

/* The statistics consent panel explicitly requests Silka Mono. */
#dm-statistics-panel {
  font-family: "JetBrains Mono", "Courier New", monospace !important;
  font-weight: 100 !important;
}


/* Match the two homepage hero arrows to the adjacent UI text. */
#hero .h-cta .dm-link-ink--arrow,
#hero .h-secondary .dm-link-ink--arrow {
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Current section of the Stage WordPress navigation, desktop and mobile. */
body:is(.page-arbeitsfelder, .dm-stage-service-review, .page-template-page-service-frankfurt) :is(#hd, #n-mobile-nav) .n-item[href$="/arbeitsfelder/"] .dm-text-link-label,
body:is(.post-type-archive-dm_projekt, .single-dm_projekt) :is(#hd, #n-mobile-nav) .n-item[href$="/projekte/"] .dm-text-link-label,
body:is(.blog, .category, .single-post) :is(#hd, #n-mobile-nav) .n-item[href$="/journal/"] .dm-text-link-label {
  text-decoration-line: none !important;
}

/* Use the existing JetBrains Mono Thin face for typographic arrows. */
body :is(.dm-link-ink--arrow, .n-sub-arrow, .dm-home-fields__arrow,
  .dm-fields-link-arrow, .dm-project-result__arrow, .dm-postnav-cine__arrow),
body :is(.h-cta, .btn-p, .ftr2-nav-link, .ftr2-bottom a, #ftr2 .ftr2-bottom-legal a)::after,
body .dm-post-takeaways li::before {
  font-family: var(--fm) !important;
  font-weight: 100 !important;
}
