/* The refined Festival keeps the validated button contrast under Divi. */
#main-content.festival-refined a { color: inherit !important; }
#main-content.festival-refined .button,
#main-content.festival-refined .access-heading .youtube-button,
#main-content.festival-refined .organiser-card,
#main-content.festival-refined .partner-card { color: var(--deep-blue) !important; }
#main-content.festival-refined .hero .button-outline,
#main-content.festival-refined .timeline-links a { color: var(--cream) !important; }
#main-content.festival-refined .timeline-links a:hover { color: var(--ochre) !important; }
#main-content.festival-refined .access-heading .youtube-button:hover,
#main-content.festival-refined .slot-resources a,
#main-content.festival-refined .slot-description a { color: white !important; }

#main-content.festival-refined .slot-speaker {
  white-space: nowrap;
}

#main-content.festival-refined .slot-speaker::before {
  content: "";
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-inline-end: .32em;
  vertical-align: -.09em;
  background: #943a33;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

#main-content.festival-refined .slot-partner {
  margin: .4rem 0 0;
  padding: 0;
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 690;
}

#main-content.festival-refined .slot-resources .slot-easter-egg {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 36px;
  background: #f4dfad;
  color: var(--deep-blue) !important;
  box-shadow: inset 0 0 0 1px #a46b3c77;
  border-radius: 999px;
}

#main-content.festival-refined .slot-resources .slot-easter-egg::before {
  content: "";
  width: .95em;
  height: .95em;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 62%, 50% 100%, 37% 62%, 0 50%, 37% 37%);
}

#main-content.festival-refined .slot-resources .slot-easter-egg:hover {
  background: var(--deep-blue);
  color: var(--cream) !important;
}

#main-content.festival-refined .history-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .85rem;
}

#main-content.festival-refined .history-media .history-motion-poster {
  display: block;
}

#main-content.festival-refined .history-media .history-motion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

#main-content.festival-refined .history-media.is-playing .history-motion-video {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #main-content.festival-refined .history-media .history-motion-video {
  display: none;
}


}

#main-content.festival-refined .programme-info-trigger {
  display: inline;
  max-inline-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

#main-content.festival-refined .programme-info-trigger:hover, #main-content.festival-refined .programme-info-trigger[aria-expanded="true"] {
  color: inherit;
}

#main-content.festival-refined .programme-info-trigger::after {
  content: "";
  display: inline-block;
  width: .73em;
  height: .73em;
  margin-inline-start: .23em;
  vertical-align: -.03em;
  background: currentColor;
  opacity: .65;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.4'/%3E%3Cpath d='M8 7.5v3.4M8 5.1h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

#main-content.festival-refined .programme-info-trigger:focus-visible {
  outline: 2px solid #943a33;
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content.festival-refined .programme-info-card[hidden] {
  display: none;
}

#main-content.festival-refined .programme-info-card {
  position: fixed;
  z-index: 100000;
  display: grid;
  gap: .22rem;
  box-sizing: border-box;
  width: max-content;
  max-width: min(21rem, calc(100vw - 24px));
  padding: .68rem .85rem;
  border: 1px solid #385678;
  border-radius: .5rem;
  background: #163a63;
  color: #fff8e9;
  box-shadow: 0 7px 20px #182b4a38;
  font: .875rem/1.35 Figtree, system-ui, sans-serif;
}

#main-content.festival-refined .programme-info-card strong {
  font-weight: 790;
}

#main-content.festival-refined .programme-info-card span {
  color: #f4e6ca;
}

#main-content.festival-refined .hero-organiser-strip {
  position: relative;
  z-index: 1;
  height: 0;
}

#main-content.festival-refined .hero-organiser-strip > .organiser-band {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translate(-50%, -50%);
}

#main-content.festival-refined .hero-organiser-strip + .hero-timeline .festival-timeline {
  padding-block-start: calc(clamp(1.25rem, 2.5vw, 2rem) + 1rem);
}

#main-content.festival-refined .hero-organiser-strip .hero-organisers {
  display: flex;
  justify-content: center;
  padding: .16rem .95rem;
  border: 1px solid #e9dec9;
  box-shadow: 0 4px 10px #142d4c30;
  border-radius: 999px;
  background: var(--cream);
  color: var(--deep-blue);
}

#main-content.festival-refined .hero-organiser-strip .organiser-card {
  padding-inline: .12rem;
}

#main-content.festival-refined .hero-organiser-strip .organiser-logos {
  flex-wrap: nowrap;
  gap: 0 .95rem;
}

#main-content.festival-refined .hero-organiser-strip .organiser-card img {
  height: 30px;
}

#main-content.festival-refined .hero-organiser-strip .organiser-card .organiser-mark {
  height: 27px;
}

#main-content.festival-refined .slot-profile-pair {
  position: relative;
  padding-inline-start: 1.38em;
}

#main-content.festival-refined .slot-profile-pair::before {
  content: "";
  position: absolute;
  inset: .25em auto auto 0;
  width: 1.12em;
  height: 1em;
  background: #943a33;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='7' r='3.2'/%3E%3Cpath d='M2 20v-2a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v2M16 4a3.3 3.3 0 0 1 0 6.5M17 13a5 5 0 0 1 5 5v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

#main-content.festival-refined .slot-profile-pair .slot-speaker::before {
  content: none;
}

#main-content.festival-refined .hero-feature img.art {
  box-shadow: none;
  border-radius: 0 !important;
}
