/* Presentation only. Original strings, links and article bodies are retained. */
.text-flow-fragment {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--text-flow-lines, 3);
  line-clamp: var(--text-flow-lines, 3);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
}
.text-flow-fragment > a { display: inline; }
[data-text-flow-fit] {
  font-size: var(--text-flow-size) !important;
  line-height: 1.18 !important;
}
[data-text-flow-role="feature"][data-text-flow-fit] { line-height: 1.12 !important; }
:is(.site, .mobile-site) :is(.entry-copy, .story-copy, .reading-copy, .recommended-copy) { min-width: 0; }
:is(.site, .mobile-site) :is(.section-heading h2, .index-heading h2, .collection-heading h1, .category-page-top h1, .category-menu a, .category-navigation a) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

/* Reading fields have no clamp, fixed height or hidden overflow. */
[data-text-flow-reading] {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  height: auto;
  max-height: none;
}
[data-text-flow-reading][data-text-flow-long] {
  font-size: var(--text-flow-reading-size) !important;
  line-height: 1.28 !important;
}
[data-text-flow-reading="deck"][data-text-flow-long] {
  line-height: 1.65 !important;
  text-align: start;
  letter-spacing: normal;
}

/* 05: long spread copy gets the full measure below the complete image. */
body[data-template="05"] .style-1 .index-entry[data-text-flow-reflow] .index-link {
  display: block;
}
body[data-template="05"] .style-1 .index-entry[data-text-flow-reflow] .entry-copy {
  grid-column: auto;
  grid-row: auto;
  border: 0;
  padding: 16px 0 0;
}
body[data-template="05"] .style-1 .index-entry[data-text-flow-reflow] .entry-image {
  grid-column: auto;
  grid-row: auto;
}
body[data-template="05"] .style-1 .index-entry[data-text-flow-reflow] .entry-deck { display: block; }

/* Long detail introductions use reading space rather than decorative insets. */
body[data-template="05"] .detail-summary:has([data-text-flow-long]) { padding-inline: 20px; }
body[data-template="10"] .detail-summary:has([data-text-flow-long]) { grid-template-columns: minmax(0, 1fr); }
body[data-template="10"] .detail-summary:has([data-text-flow-long]) .detail-date { grid-column: 1; }
