/* Version 1.39: resilient homepage polish for slow or partially hydrated mobile loads. */
.fc-v139-restored-brand {
  display: inline-flex;
  width: clamp(154px, 20vw, 232px);
  height: 74px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.fc-v139-restored-brand img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:root:not([data-theme="light"]) .fc-v139-restored-brand .fc-v139-brand-dark,
:root[data-theme="light"] .fc-v139-restored-brand .fc-v139-brand-light {
  display: block;
}

.fc-v139-brand-restored .fc-v139-original-brand {
  display: none !important;
}

@media (max-width: 780px) {
  .fc-v139-restored-brand {
    width: 168px;
    height: 72px;
  }
}

/* Version 1.39.4: final surface-based contrast contract.
   Flex Live remains a light editorial panel in both theme modes. Its text must
   therefore use local ink colours instead of the global theme foreground. */
#flex-design-root #live,
#flex-design-root .live-section {
  color: #211d21 !important;
}

#flex-design-root #live .flex-live-title,
#flex-design-root #live .flex-live-title em,
#flex-design-root #live .flex-live-frequency,
#flex-design-root #live .section-heading .heading-aside,
#flex-design-root #live .section-heading .heading-aside strong {
  color: #211d21 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#flex-design-root #live .section-heading .eyebrow {
  color: #554d52 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#flex-design-root #live .live-membership-label {
  color: #a32152 !important;
  border-color: rgba(163, 33, 82, 0.34) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  opacity: 1 !important;
}

/* Prevent visited action links from inheriting an unreadable browser colour. */
:root:not([data-theme="light"]) #flex-design-root #in-person .lesson-actions .text-link,
:root:not([data-theme="light"]) #flex-design-root #in-person .lesson-actions .text-link:visited {
  color: #ffffff !important;
  opacity: 1 !important;
}

:root[data-theme="light"] #flex-design-root #in-person .lesson-actions .text-link,
:root[data-theme="light"] #flex-design-root #in-person .lesson-actions .text-link:visited {
  color: #332b30 !important;
  opacity: 1 !important;
}
