/* REPPTRADE v4.4.24 — approved Modern Cast typography.
   Baseline: v4.4.23. This stylesheet intentionally changes ONLY the
   modern performer/role credit block; Playbill and other UI are untouched.
   Loaded after the existing CSS so no old responsive 12/13px rule wins. */

/* The actor/role group is a single unit centered alongside the portrait.
   Both lines are 15px as approved in the screenshot; weight/ink supply
   hierarchy rather than mismatched sizes or an extra arrow line. */
body[data-ui-theme="modern"] .rc419-cast-section .rc419-modern-grid .rc419-cast-member {
  align-items: center !important;
  min-height: 82px !important;
}
body[data-ui-theme="modern"] .rc419-cast-section .rc419-modern-grid .rc419-cast-credit {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  align-self: center !important;
  gap: 3px !important;
  min-width: 0 !important;
}
/* Modal-qualified selectors outrank previous theme and light-mode rules
   that marked their own color/font size as !important. */
body[data-ui-theme="modern"] .rc419-cast-section .rc419-modern-grid .rc419-cast-credit button.rc446-cast-actor,
body[data-ui-theme="modern"] :is(#rc440Overlay,#catalogueDetailModal) .rc419-cast-section .rc419-modern-grid .rc419-cast-credit button.rc446-cast-actor {
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  margin: 0 !important;
}
body[data-ui-theme="modern"] .rc419-cast-section .rc419-modern-grid .rc419-cast-credit button.rc446-cast-role,
body[data-ui-theme="modern"] :is(#rc440Overlay,#catalogueDetailModal) .rc419-cast-section .rc419-modern-grid .rc419-cast-credit button.rc446-cast-role {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 550 !important;
  color: #c5c5c5 !important;
  -webkit-text-fill-color: #c5c5c5 !important;
  margin: 0 !important;
}
/* Multi-role fragments wrap on words while cover labels remain intact.
   Use an automatic height so large ensembles/role combinations aren't cut. */
body[data-ui-theme="modern"] .rc419-cast-section .rc419-modern-grid .rc419-cast-credit .rc419-role-fragment {
  color: inherit !important;
  line-height: 1.32 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  margin-block: 0 2px !important;
}
body[data-ui-theme="modern"] .rc419-cast-section .rc419-modern-grid .rc419-cast-credit .rc419-role-fragment:last-child {
  margin-bottom: 0 !important;
}
/* Playbill is in .rc419-playbill-list, deliberately excluded. No mobile
   shrink: the responsive cast grid supplies the room for the full 15px. */
/* The Master Catalogue light surface has an unusually specific historical
   light-theme role-ink override. Match that context while preserving the
   requested #c5c5c5 ink (the Modern tiles underneath remain dark). */
body[data-surface="light"][data-ui-theme="modern"] #catalogueDetailModal.rc451-master-themed.rc415-catalogue-parity .rc415-catalogue-detail-surface .rc440-section.rc419-cast-section .rc419-modern-grid .rc419-cast-credit button.rc446-cast-role {
  color: #c5c5c5 !important;
  -webkit-text-fill-color: #c5c5c5 !important;
}
