/**
 * South End — universal text wrapping
 * Reduces awkward single-word line endings; keeps long tokens from overflowing.
 * Load after fonts; before heavy page inline overrides when possible.
 */

body {
  overflow-wrap: break-word;
}

@supports (text-wrap: pretty) {
  p,
  li,
  dd,
  td,
  th,
  summary,
  figcaption,
  .hint,
  .msg,
  .board-text,
  .profile-modal-val {
    text-wrap: pretty;
  }
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: balance;
  }
}

/* Long tokens (emails, URLs, IDs): prefer break-word over break-all */
.se-token-wrap,
.person-email,
.person-detail-meta,
.invite-player span {
  overflow-wrap: break-word;
  word-break: normal;
}

pre,
code,
kbd,
samp {
  overflow-wrap: normal;
  max-width: 100%;
}

/* Opt-in: intentional single-line UI */
.se-nowrap {
  white-space: nowrap;
}
