/* Heading fit rules for Ying Group 2026. */
h1,
h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Desktop headings prefer one line; navigation.js adds .yg-heading-wrap only
 * when the measured heading cannot fit its actual container. */
@media (min-width: 901px) {
  h1,
  h2 {
    white-space: nowrap;
    text-wrap: nowrap;
  }

  h1.yg-heading-wrap,
  h2.yg-heading-wrap {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Smaller screens should use the available width and wrap only at word
 * boundaries; no browser word-breaking or automatic hyphenation. */
@media (max-width: 900px) {
  h1,
  h2 {
    white-space: normal;
    text-wrap: pretty;
  }
}

/* Rich content inserted by the admin editor needs the same rhythm as the
 * surrounding theme paragraphs. */
.elementor-widget-text-editor strong,
.elementor-widget-text-editor em,
.entry-content strong,
.entry-content em {
  color: inherit;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
}
