/* Post-delivery type and content alignment. Customer content is unchanged. */
body.nl-design-active {
  --yc-detail-title: 24px;
  --yc-detail-copy: var(--reading-card, 19px);
  --yc-detail-action: var(--reading-label, 17px);
  --yc-detail-font: "Segoe UI", Arial, sans-serif;
  --yc-home-content-max: var(--max);
}

/* One content alignment; the section background continues to the page edges. */
body.home.nl-design-active .home-content > .wp-block-group[data-home-section] {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(48px, calc((100% - var(--yc-home-content-max)) / 2));
}
body.home.nl-design-active .home-content > [data-home-section] > .wp-block-group__inner-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Match the existing machining-list hierarchy rather than the condensed face. */
body.nl-design-active :is(.story-card, .yc-swiss-case-card) h3,
body.nl-design-active .yc-swiss-section__body :is(.yc-material, .yc-evidence-card, .team-card, .advantage-card, .strength-card) h3,
body.nl-design-active .yc-swiss-section__head h2 {
  font-family: var(--yc-detail-font) !important;
  font-size: var(--yc-detail-title) !important;
  font-weight: 700;
  line-height: 1.35 !important;
  letter-spacing: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body.nl-design-active :is(.story-card, .yc-swiss-case-card) h3 {
  margin-block: 0 14px !important;
}
body.home.nl-design-active .home-content > [data-home-section="cases"] .story-card:not(:has(> .story-image)) > div > p:not(.category),
body.nl-design-active .story-card p:not(.category):not(.card-meta),
body.nl-design-active .yc-swiss-case-card > p:not(.category),
body.nl-design-active .yc-swiss-section__body .yc-material p,
body.nl-design-active .yc-swiss-section__body :is(.yc-evidence-card, .team-card, .advantage-card, .strength-card) p,
body.nl-design-active .yc-swiss-section__body > p,
body.nl-design-active .yc-swiss-lead-bar > p:not(.capability-jumps) {
  font-family: var(--yc-detail-font);
  font-size: var(--yc-detail-copy) !important;
  line-height: 1.65 !important;
  font-weight: 600;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
body.nl-design-active .yc-ent-hero__lead {
  font-size: var(--yc-detail-copy) !important;
  line-height: 1.65 !important;
}
body.nl-design-active :is(.story-card, .yc-swiss-case-card) p:not(.category):not(.card-meta) {
  max-width: none !important;
  margin-block: 0 18px !important;
}
body.nl-design-active :is(.story-card, .yc-swiss-case-card, .yc-swiss-section__body) .text-link,
body.home.nl-design-active [data-home-section] > .section-more .text-link {
  font-family: var(--yc-detail-font);
  font-size: var(--yc-detail-action) !important;
  line-height: 1.6;
  min-height: 44px;
  align-items: center;
}

/* Case grids need the full content width, without an empty editorial column. */
body.nl-design-active .yc-swiss-section:has(.yc-swiss-case-grid, .yc-materials-grid) {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
body.nl-design-active .yc-swiss-section:has(.yc-swiss-case-grid, .yc-materials-grid) > .yc-swiss-section__head {
  position: static;
  top: auto;
  width: auto;
  max-width: none;
}
body.nl-design-active .yc-swiss-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
body.nl-design-active :is(.story-card, .yc-swiss-case-card) {
  min-width: 0;
}

@media (min-width: 1200px) {
  body.home.nl-design-active { --yc-home-content-max: calc(var(--max) + 640px); }
}
@media (max-width: 1150px) {
  body.home.nl-design-active .home-content > .wp-block-group[data-home-section] {
    padding-inline: 28px;
  }
}
@media (max-width: 840px) {
  body.nl-design-active .yc-swiss-case-grid,
  body.home.nl-design-active [data-home-section="cases"] .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  body.nl-design-active { --yc-detail-title: 22px; }
  body.home.nl-design-active .home-content > [data-home-section="cases"] .story-card:not(:has(> .story-image)) > div > p:not(.category),
  body.nl-design-active .story-card p:not(.category):not(.card-meta),
  body.nl-design-active .yc-swiss-case-card > p:not(.category),
  body.nl-design-active .yc-swiss-section__body .yc-material p,
  body.nl-design-active .yc-swiss-section__body :is(.yc-evidence-card, .team-card, .advantage-card, .strength-card) p,
  body.nl-design-active .yc-swiss-section__body > p,
  body.nl-design-active .yc-swiss-lead-bar > p:not(.capability-jumps) { font-weight: 450; }
}
@media (max-width: 650px) {
  body.home.nl-design-active .home-content > .wp-block-group[data-home-section] {
    padding-inline: 18px;
  }
}
