/* The numbered comics provide their own triangle instead of the legacy diamond tail. */
.paper-article .ts-comic-tail[style*="clip-path"] {
  transform: none;
  border: 0;
}

.paper-article .ts-chapter-comic.ts-comic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: start;
  gap: clamp(0.45rem, 2vw, 0.85rem);
  width: min(100%, 680px) !important;
  max-width: 680px !important;
}

.ts-comic-grid > figcaption {
  grid-column: 1 / -1;
}

.ts-comic-grid > .ts-chapter-panel {
  min-width: 0;
  margin: 0 !important;
}

.ts-comic-grid > .ts-chapter-panel:nth-of-type(even) {
  margin-block-start: clamp(0.375rem, 1.6vw, 0.625rem) !important;
}

.ts-comic-grid .ts-comic-cast {
  padding: 0.25rem clamp(0.3rem, 1.4vw, 0.65rem) !important;
  font-size: clamp(0.875rem, 2.6vw, 1rem) !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ts-comic-grid .ts-comic-dialogue {
  padding: 17px clamp(0.25rem, 1.4vw, 0.65rem) 0.5rem !important;
}

.ts-comic-grid .ts-chapter-balloon {
  padding: 0.35rem clamp(0.4rem, 1.45vw, 0.75rem) !important;
  font-size: clamp(1rem, 2.6vw, 1.0625rem) !important;
  border-radius: clamp(0.65rem, 3vw, 1.5rem) !important;
}
