/*
 * Portal 0 site overrides.
 * Survives EasyDNNnews / EasyDNNnewsCalendar module updates.
 * Do NOT put these rules in Celeste.css — that file is overwritten on upgrade.
 *
 * Sunday is hidden via JS (hiddenDays) — see /Portals/0/js/edn-calendar-overrides.js
 * Do NOT use display:none on .fc-sun; that breaks event column alignment.
 *
 * See also:
 *   DesktopModules/EasyDNNnews/Templates/0/Celeste/README-CALENDAR-CUSTOMIZATIONS.md
 */

/* ==========================================================================
   Calendar module visibility
   Module 1098 = month grid (desktop/tablet)
   Module 1157 = listMonth (phone only)
   Modules 1097, 1150 = hidden on phone
   ========================================================================== */

@media (max-width: 767.98px) {
  .DnnModule-1098,
  .DnnModule-1097,
  .DnnModule-1150 {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .DnnModule-1157 {
    display: none !important;
  }
}

/* ==========================================================================
   EasyDNNnews Calendar (Celeste) — event chips
   ========================================================================== */

.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .callendar_table_container.advanced .calendar_table .day > ul > li > a,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event {
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  padding-inline-start: 0.35rem !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event .fc-content,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event .fc-content {
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event .fc-time,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event .fc-time {
  display: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event .fc-title,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event .fc-title {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Event / post marker dots (::before = posts, ::after = events/green) */
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a::before,
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a::after,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event::after,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

/* ==========================================================================
   Remove "today" cell outline / tint (keep day-number style subtle or plain)
   ========================================================================== */

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-today,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-today,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .callendar_table_container.advanced .calendar_table .day.today {
  background: var(--celeste-news-white, #fff) !important;
  box-shadow: none !important;
  outline: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-top.fc-today .fc-day-number,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-today .fc-day-number {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Stockyard Events — black chip, white text, logo above title (fixed size)
   Live class on calendar events: .Stockyard_Events
   Logo: Templates/0/Celeste/News/stockyard-logo.png
   Logo stays a fixed size so multi-day bars do not enlarge it.
   ========================================================================== */

.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li.Stockyard_Events > a,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-event.Stockyard_Events {
  background: #0a0a0a !important;
  border-color: #0a0a0a !important;
  color: #fff !important;
  padding: 0.35rem 0.4rem 0.4rem !important;
  padding-inline-start: 0.4rem !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events .fc-content,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events .fc-title,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events .fc-title,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events .fc-content,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events .fc-title {
  color: #fff !important;
}

.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a.Stockyard_Events::before,
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li.Stockyard_Events > a::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events::before,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events::before,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-event.Stockyard_Events::before {
  display: block !important;
  content: "" !important;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 4.5rem !important;
  max-width: 4.5rem !important;
  aspect-ratio: 420 / 180 !important;
  height: auto !important;
  margin: 0 0 0.28rem !important;
  border-radius: 0 !important;
  transform: none !important;
  background-color: transparent !important;
  background-image: url("/DesktopModules/EasyDNNnews/Templates/0/Celeste/News/stockyard-logo.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  pointer-events: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events:hover,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events:focus-visible,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events:hover,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events:focus-visible {
  background: #1a1a1a !important;
  color: #fff !important;
}

/* ==========================================================================
   Online Auction (MartEye) — green chip, white text, MartEye logo above title
   Class .OnlineAuction is added by edn-calendar-overrides.js from tooltip HTML.
   ========================================================================== */

.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a.OnlineAuction,
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li.OnlineAuction > a,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.OnlineAuction,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.OnlineAuction,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.OnlineAuction,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-event.OnlineAuction {
  background: #3c8f63 !important;
  border-color: #3c8f63 !important;
  color: #fff !important;
  padding: 0.35rem 0.4rem 0.4rem !important;
  padding-inline-start: 0.4rem !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.OnlineAuction .fc-content,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.OnlineAuction .fc-title,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.OnlineAuction .fc-title,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.OnlineAuction .fc-content,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.OnlineAuction .fc-title {
  color: #fff !important;
}

.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a.OnlineAuction::before,
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li.OnlineAuction > a::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.OnlineAuction::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.OnlineAuction::before,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-day-grid-event.OnlineAuction::before,
.eds_news_Celeste.eds_subCollection_calendar.eds_template_Archive_Default .fc.fc-unthemed .fc-event.OnlineAuction::before {
  display: block !important;
  content: "" !important;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 4.5rem !important;
  max-width: 4.5rem !important;
  aspect-ratio: 220 / 60 !important;
  height: auto !important;
  margin: 0 0 0.28rem !important;
  border-radius: 0 !important;
  transform: none !important;
  background-color: transparent !important;
  background-image: url("/DesktopModules/EasyDNNnews/Templates/0/Celeste/News/marteye-logo-horizontal.svg") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  pointer-events: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.OnlineAuction:hover,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.OnlineAuction:focus-visible,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.OnlineAuction:hover,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.OnlineAuction:focus-visible {
  background: #347a55 !important;
  color: #fff !important;
}

/* Online Auction wins over Stockyard chip styling when both apply */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events.OnlineAuction,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events.OnlineAuction {
  background: #3c8f63 !important;
  border-color: #3c8f63 !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events.OnlineAuction::before,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-event.Stockyard_Events.OnlineAuction::before {
  background-image: url("/DesktopModules/EasyDNNnews/Templates/0/Celeste/News/marteye-logo-horizontal.svg") !important;
  aspect-ratio: 220 / 60 !important;
}

/* ==========================================================================
   Disable navigation to article details from calendar event chips.
   Tooltips / popups can still open; href navigation is blocked via JS too.
   ========================================================================== */

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed a.fc-day-grid-event,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed a.fc-event,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item-title a,
.eds_news_Celeste.eds_subCollection_calendar .callendar_table_container.advanced .calendar_table td.day > ul > li > a {
  cursor: default;
}

/* Hide Stockyard events when toolbar toggle is active */
.eds_news_Celeste.eds_subCollection_calendar.edn-hide-stockyard-events .fc.fc-unthemed .fc-day-grid-event.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar.edn-hide-stockyard-events .fc.fc-unthemed .fc-event.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar.edn-hide-stockyard-events .callendar_table_container.advanced .calendar_table td.day > ul > li.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar.edn-hide-stockyard-events .callendar_table_container.advanced .calendar_table td.day > ul > li > a.Stockyard_Events,
.eds_news_Celeste.eds_subCollection_calendar.edn-hide-stockyard-events .fc.fc-unthemed .fc-list-item.Stockyard_Events {
  display: none !important;
}

/* Stockyard toggle button (injected next to Today) */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-toolbar .edn-stockyard-toggle {
  margin-left: 0.45rem;
  text-transform: none;
  white-space: nowrap;
}

/* ==========================================================================
   listMonth view (mobile) — match month-grid behaviour
   No start time, no green/event dots, Stockyard / Online Auction colours
   Date sits on the same line as the event title (not a heading above)
   ========================================================================== */

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-heading {
  display: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item-time,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item-marker {
  display: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item .fc-event-dot {
  display: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item td {
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  vertical-align: middle !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item-title,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item-title a {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  cursor: default;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item-title a .edn-list-date {
  display: inline;
  margin-right: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--celeste-news-primary, #9b0048);
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events .fc-list-item-title a .edn-list-date {
  color: #fff;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.OnlineAuction .fc-list-item-title a .edn-list-date {
  color: #ede329;
}

/* Stockyard rows in listMonth */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events td {
  background: #0a0a0a !important;
  border-color: #1a1a1a !important;
  color: #fff !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events .fc-list-item-title a,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events .fc-list-item-title a:hover,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events .fc-list-item-title a:focus-visible {
  color: #fff !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events .fc-list-item-title a::before {
  display: block !important;
  content: "" !important;
  width: 4.5rem;
  max-width: 4.5rem;
  aspect-ratio: 420 / 180;
  margin: 0 0 0.28rem;
  background: transparent url("/DesktopModules/EasyDNNnews/Templates/0/Celeste/News/stockyard-logo.png") no-repeat left center / contain;
}

/* Online Auction (MartEye) rows in listMonth */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.OnlineAuction td {
  background: #3c8f63 !important;
  border-color: #347a55 !important;
  color: #fff !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.OnlineAuction .fc-list-item-title a,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.OnlineAuction .fc-list-item-title a:hover,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.OnlineAuction .fc-list-item-title a:focus-visible {
  color: #fff !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.OnlineAuction .fc-list-item-title a::before {
  display: block !important;
  content: "" !important;
  width: 4.5rem;
  max-width: 4.5rem;
  aspect-ratio: 220 / 60;
  margin: 0 0 0.28rem;
  background: transparent url("/DesktopModules/EasyDNNnews/Templates/0/Celeste/News/marteye-logo-horizontal.svg") no-repeat left center / contain;
}

/* Online Auction wins when both Stockyard + Online Auction apply */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events.OnlineAuction td {
  background: #3c8f63 !important;
  border-color: #347a55 !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed .fc-list-item.Stockyard_Events.OnlineAuction .fc-list-item-title a::before {
  aspect-ratio: 220 / 60;
  background-image: url("/DesktopModules/EasyDNNnews/Templates/0/Celeste/News/marteye-logo-horizontal.svg");
}

/* listMonth toolbar: <> Today Hide Stockyard on one line, month title underneath */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar.fc-header-toolbar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.55rem !important;
  grid-template-columns: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .fc-left {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  width: 100% !important;
  order: 1 !important;
  float: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .fc-center {
  display: block !important;
  width: 100% !important;
  order: 2 !important;
  float: none !important;
  text-align: left !important;
  margin: 0 !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .fc-center h2 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .fc-right,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .fc-clear {
  display: none !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .fc-button,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .edn-stockyard-toggle {
  font-size: 0.72rem !important;
  padding: 0.35rem 0.5rem !important;
  white-space: nowrap !important;
}

.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-toolbar .edn-stockyard-toggle {
  margin-left: 0 !important;
}

/* Grow listMonth to fit all events — no inner scrollbar */
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view),
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-view-container,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-listMonth-view,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-list-view,
.eds_news_Celeste.eds_subCollection_calendar .fc.fc-unthemed:has(.fc-listMonth-view) .fc-scroller {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* ==========================================================================
   Calendar popup (WLS tooltip) — Melton / Stockyard branding
   ========================================================================== */

.qtip.edn_calendarbox_Celeste {
  width: min(420px, 94vw) !important;
  border: 0 !important;
  border-radius: 0.85rem !important;
  overflow: hidden !important;
  box-shadow: 0 1rem 2.4rem rgba(17, 24, 39, 0.18) !important;
}

.qtip.edn_calendarbox_Celeste .qtip-content {
  padding: 0 !important;
  background: #fff !important;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup {
  text-align: left;
  color: #1f2430;
  font-family: var(--celeste-news-font-body, "Manrope", sans-serif);
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand img {
  display: block;
  width: auto;
  max-width: 11rem;
  max-height: 3.25rem;
  height: auto;
  object-fit: contain;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand--melton {
  display: flex;
  background: var(--celeste-news-primary, #9b0048);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand--stockyard {
  display: none;
  background: #0a0a0a;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand--stockyard img {
  max-width: 12.5rem;
  max-height: 2.75rem;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand--marteye {
  display: flex;
  background: #3c8f63;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__brand--marteye img {
  max-width: 6.4rem;
  max-height: 1.4rem;
}

/* Switch logo when event is in Stockyard Events category.
   Tooltip outputs edn_category_Stockyard_Events_{id}; calendar chips use Stockyard_Events. */
.qtip.edn_calendarbox_Celeste .edn-cal-popup[class*="Stockyard_Events"] .edn-cal-popup__brand--melton {
  display: none;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup[class*="Stockyard_Events"] .edn-cal-popup__brand--stockyard {
  display: flex;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__body {
  padding: 1rem 1.15rem 1.15rem;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__date {
  margin: 0 0 0.55rem;
  color: var(--celeste-news-primary, #9b0048);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup[class*="Stockyard_Events"] .edn-cal-popup__date {
  color: #ff1717;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup:has(.edn-cal-popup__brand--marteye) .edn-cal-popup__date {
  color: #3c8f63;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__media {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.85rem;
  width: 75%;
  overflow: visible;
  border-radius: 0.55rem;
  background: transparent;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0.45rem;
}

@media (max-width: 767.98px) {
  .qtip.edn_calendarbox_Celeste .edn-cal-popup__media img {
    width: 75%;
    max-width: 75%;
    height: auto;
  }
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__title {
  margin: 0 0 0.55rem;
  color: #141427;
  font-family: var(--celeste-news-font-heading, "Space Grotesk", sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__summary {
  margin: 0 0 0.95rem;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__actions {
  display: grid;
  gap: 0.45rem;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  color: #fff !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn:hover,
.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none !important;
  outline: none;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn--primary {
  background: var(--celeste-news-primary, #9b0048);
  border-color: var(--celeste-news-primary, #9b0048);
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn--secondary {
  background: #586d70;
  border-color: #586d70;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn--tertiary {
  background: #b2684b;
  border-color: #b2684b;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__btn--quaternary {
  background: #374151;
  border-color: #374151;
}

.qtip.edn_calendarbox_Celeste .edn-cal-popup__admin {
  padding: 0.45rem 0.75rem 0;
}

/* ==========================================================================
   listMonth event modal (mobile)
   Note: dialog reuses .qtip.edn_calendarbox_Celeste for popup styles, so we
   must override Celeste's off-screen/display:none qtip defaults.
   ========================================================================== */

body.edn-cal-modal-open {
  overflow: hidden !important;
}

.edn-cal-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20000 !important;
  display: none;
  box-sizing: border-box;
  padding: 0;
}

.edn-cal-modal.is-open {
  display: block !important;
}

.edn-cal-modal[hidden] {
  display: none !important;
}

.edn-cal-modal__backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20001 !important;
  background: rgba(17, 24, 39, 0.55);
}

.edn-cal-modal.is-open .edn-cal-modal__dialog.qtip.edn_calendarbox_Celeste,
.edn-cal-modal .edn-cal-modal__dialog.qtip.edn_calendarbox_Celeste {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20002 !important;
  width: min(420px, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
  max-height: calc(100vh - 2rem) !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-shadow: 0 1.25rem 2.8rem rgba(17, 24, 39, 0.28) !important;
}

.edn-cal-modal__close {
  position: absolute !important;
  top: 0.55rem !important;
  right: 0.55rem !important;
  z-index: 20003 !important;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0.2rem 0.6rem rgba(17, 24, 39, 0.35);
}

.edn-cal-modal__close:hover,
.edn-cal-modal__close:focus-visible {
  background: #000;
  outline: none;
}

.edn-cal-modal__footer {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.edn-cal-modal__footer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--celeste-news-primary, #9b0048);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.edn-cal-modal__body.qtip-content {
  display: block !important;
  padding: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* On phones, never show the floating qtip — listMonth uses the modal instead */
@media (max-width: 767.98px) {
  body .qtip.edn_calendarbox_Celeste:not(.edn-cal-modal__dialog) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -99999px !important;
    top: -99999px !important;
  }
}


