/* v0.9.65 — stable weekly timeline, card rhythm and internal scrolling. */
#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-scroll,
#main [data-te-classic] .te-upcoming-scroll,
[data-te-classic] .te-upcoming-scroll {
  overflow-y:auto !important;
  overscroll-behavior-y:contain !important;
  scroll-behavior:auto !important;
}

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-date,
#main [data-te-classic] .te-upcoming-date,
[data-te-classic] .te-upcoming-date {
  overflow:visible !important;
  align-items:flex-start !important;
}

[data-te-classic] .te-upcoming-date-current,
[data-te-classic] .te-upcoming-next {
  display:flex;
  width:100%;
  max-width:78px;
  flex-direction:column;
  align-items:flex-start;
}

[data-te-classic] .te-upcoming-date-current > span,
[data-te-classic] .te-upcoming-next > span {
  display:block;
  width:100%;
  margin:0 !important;
}

[data-te-classic] .te-upcoming-week-range {
  display:flex !important;
  width:auto !important;
  margin:8px 0 !important;
  flex-direction:column;
  align-items:flex-start;
  color:#1f5e6f !important;
  font-size:clamp(33px,3.1vw,45px) !important;
  font-weight:800 !important;
  letter-spacing:-.04em;
  line-height:.78 !important;
  white-space:nowrap;
}

[data-te-classic] .te-upcoming-week-range > span {
  display:block;
  width:auto !important;
  max-width:none !important;
  color:inherit !important;
  font:inherit !important;
  letter-spacing:inherit !important;
  line-height:inherit !important;
}

[data-te-classic] .te-upcoming-week-range > i {
  display:block;
  margin:3px 0 5px;
  color:#1f5e6f;
  font-size:.58em;
  font-style:normal;
  font-weight:700;
  letter-spacing:0;
  line-height:.55;
}

[data-te-classic] .te-upcoming-next {
  margin-top:27px;
  padding-top:24px;
}

[data-te-classic] .te-upcoming-next .te-upcoming-week-range {
  margin:6px 0 !important;
  color:inherit !important;
  font-size:clamp(20px,1.9vw,27px) !important;
}

[data-te-classic] .te-upcoming-next .te-upcoming-week-range > i { color:inherit; }

[data-te-classic] .te-upcoming-date-current.is-changing {
  animation:te-upcoming-current-in .4s cubic-bezier(.2,.72,.25,1) both;
}

[data-te-classic] .te-upcoming-next.is-changing {
  animation:te-upcoming-next-in .4s cubic-bezier(.2,.72,.25,1) both;
}

@keyframes te-upcoming-current-in {
  from { opacity:.16; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes te-upcoming-next-in {
  from { opacity:.12; transform:translateY(9px); }
  to { opacity:.64; transform:translateY(0); }
}

/* Restore the original content order and keep the footer on the card baseline. */
#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-classic-card,
#main [data-te-classic] .te-upcoming-day-cards .te-classic-card,
[data-te-classic] .te-upcoming-day-cards .te-classic-card {
  height:510px !important;
}

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-poster,
#main [data-te-classic] .te-upcoming-day-cards .te-poster,
[data-te-classic] .te-upcoming-day-cards .te-poster {
  flex-basis:190px !important;
  min-height:190px !important;
}

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-card-body,
#main [data-te-classic] .te-upcoming-day-cards .te-card-body,
[data-te-classic] .te-upcoming-day-cards .te-card-body {
  grid-template-rows:23px 56px minmax(48px,1fr) 34px 34px 42px !important;
  row-gap:5px !important;
  padding:15px 18px 13px !important;
}

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-event-meta,
#main [data-te-classic] .te-upcoming-day-cards .te-event-meta,
[data-te-classic] .te-upcoming-day-cards .te-event-meta { grid-row:1 !important; }

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-card-body h3,
#main [data-te-classic] .te-upcoming-day-cards .te-card-body h3,
[data-te-classic] .te-upcoming-day-cards .te-card-body h3 {
  grid-row:2 !important;
  font-size:clamp(19px,1.2vw,23px) !important;
  line-height:1.08 !important;
}

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-description,
#main [data-te-classic] .te-upcoming-day-cards .te-description,
[data-te-classic] .te-upcoming-day-cards .te-description {
  grid-row:3 !important;
  min-height:0 !important;
  max-height:2.4em !important;
  align-self:start !important;
  line-height:1.2 !important;
  -webkit-line-clamp:2 !important;
}

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-when-place,
#main [data-te-classic] .te-upcoming-day-cards .te-when-place,
[data-te-classic] .te-upcoming-day-cards .te-when-place { grid-row:4 !important; }

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-card-filter-tags,
#main [data-te-classic] .te-upcoming-day-cards .te-card-filter-tags,
[data-te-classic] .te-upcoming-day-cards .te-card-filter-tags { grid-row:5 !important; }

#ajax-content-wrap .container.main-content [data-te-classic] .te-upcoming-day-cards .te-card-bottom,
#main [data-te-classic] .te-upcoming-day-cards .te-card-bottom,
[data-te-classic] .te-upcoming-day-cards .te-card-bottom {
  grid-row:6 !important;
  min-height:42px !important;
  align-self:stretch !important;
  padding-top:8px !important;
  overflow:visible !important;
}

[data-te-classic] .te-upcoming-day-cards .te-card-bottom strong,
[data-te-classic] .te-upcoming-day-cards .te-card-bottom .te-event-link {
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

@media (max-width:620px) {
  [data-te-classic] .te-upcoming-date-current,
  [data-te-classic] .te-upcoming-next { max-width:54px; }
  [data-te-classic] .te-upcoming-week-range { font-size:30px !important; }
  [data-te-classic] .te-upcoming-next .te-upcoming-week-range { font-size:18px !important; }
}

@media (prefers-reduced-motion:reduce) {
  [data-te-classic] .te-upcoming-date-current.is-changing,
  [data-te-classic] .te-upcoming-next.is-changing { animation:none; }
}
