/* German copy needs a little more room: allow grid/flex content to shrink, wrap, and grow naturally. */
body[data-language="de"] :where(.home-redesign,.work-redesign,.about-redesign,.resume-redesign,.contact-redesign,.dream-case,.uxdr-page) * {
  min-width: 0;
}

body[data-language="de"] :where(h1,h2,h3,h4,p,li,dt,dd,blockquote,figcaption,small,b,strong,th,td,a,button) {
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

body[data-language="de"] :where(.hr-project,.wk-project,.rs-project,.ct-open,.ct-work-cta,.dm-question,.uxdr-summary-grid article,.uxdr-selection-drawer-table,.uxdr-decision-table) {
  height: auto;
  min-height: 0;
}

body[data-language="de"] :where(.uxdr-selection-drawer-table,.uxdr-decision-table) > div > *,
body[data-language="de"] :where(.uxdr-table) > div > * {
  min-width: 0;
  hyphens: auto;
  overflow-wrap: break-word;
  white-space: normal;
}

body[data-language="de"] :where(.hr-projects,.wk-facts,.ab-path,.rs-glance,.rs-recognition,.ct-open,.ct-context-list,.dream-three,.dream-two,.question-grid,.journey-track,.synthesis-grid,.principle-grid,.flow-grid,.decision-grid,.uxdr-summary-grid,.uxdr-pattern-grid,.uxdr-validation-grid,.uxdr-test-layout) > * {
  min-width: 0;
}

body[data-language="de"] img,
body[data-language="de"] video,
body[data-language="de"] canvas {
  max-width: 100%;
}

/* Let translated contact links wrap instead of colliding with the card edge. */
body[data-language="de"] .contact-redesign .ct-social strong {
  max-width: 10rem;
  white-space: normal;
  text-align: right;
}
