/* =========================================================
   Events list widget — append to AutoCareMain
   Template: Events-list-widget.cshtml.txt (built-in Events widget)
   Rows match the Webina listing rows (.wb-row); header matches
   the GA Latest News header (.ga-news-list__head).
   ========================================================= */

.evl-widget {
  --evl-ink: #1a242c;
  --evl-charcoal: #2B3942;
  --evl-muted: #5b6b75;
  --evl-line: #e5eaee;
  --evl-orange: #e87722;
  --evl-orange-deep: #c45f12;
  --evl-teal: #0e7c6b;
  --evl-surface: #f5f7f8;
  --evl-white: #fff;
  --evl-accent-navy: rgba(232, 119, 34, 0.16);
  --evl-accent-mid: rgba(232, 119, 34, 0.3);
  --evl-accent: rgba(232, 119, 34, 0.46);
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 0 2rem;
  box-sizing: border-box;
  width: 100%;
  color: var(--evl-ink);
}

.content > .evl-widget,
.content .evl-widget {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 960px) {
  .content > .evl-widget,
  .content .evl-widget {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.evl-widget *,
.evl-widget *::before,
.evl-widget *::after {
  box-sizing: border-box;
}

/* Override AutoCareMain global: h1–h6 { text-transform: lowercase; } */
.evl-widget h1,
.evl-widget h2,
.evl-widget h3,
.evl-widget h4,
.evl-widget h5,
.evl-widget h6 {
  text-transform: none !important;
}

.evl-widget .evl-icon {
  margin-right: 0.35rem;
}

/* ----- Header ----- */
.evl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
}

.evl-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--evl-charcoal);
}

.evl-head__title .evl-icon {
  margin-right: 0.4rem;
  color: var(--evl-orange);
}

.evl-widget .evl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.evl-widget [hidden] {
  display: none !important;
}

/* ----- List / Calendar toggle (same as Webina scope tabs) ----- */
.evl-view-toggle {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid var(--evl-line);
  background: var(--evl-white);
}

.evl-view-toggle button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.6rem 1rem;
  border: 0;
  border-right: 1px solid var(--evl-line);
  border-radius: 0;
  background: transparent;
  color: var(--evl-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.evl-view-toggle button:last-child {
  border-right: 0;
}

.evl-view-toggle button:hover {
  color: var(--evl-charcoal);
}

.evl-view-toggle button.is-active {
  background: var(--evl-charcoal);
  color: #fff;
}

.evl-view-toggle button.is-active i {
  color: var(--evl-orange);
}

/* ----- Toolbar: search + category ----- */
.evl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin: 0 0 1rem;
}

.evl-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.evl-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  line-height: 1;
  color: var(--evl-muted);
  pointer-events: none;
}

/* Scoped with .evl-widget + element/type so AutoCareMain's global
   input[type="search"] (content-box) and select (width:100%, grey bg,
   orange bottom border, bg arrow) rules can't win. */
.evl-widget .evl-search input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.85rem 0 2.5rem;
  border: 1px solid var(--evl-line);
  border-radius: 0;
  background: var(--evl-white);
  color: var(--evl-ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: normal;
}

.evl-widget .evl-search input[type="search"]:focus,
.evl-widget .evl-select select:focus {
  outline: 2px solid rgba(232, 119, 34, 0.35);
  outline-offset: 0;
  border-color: var(--evl-orange);
  color: var(--evl-ink);
}

.evl-widget .evl-select {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
}

.evl-widget .evl-select label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  opacity: 1;
  color: var(--evl-charcoal);
}

.evl-widget .evl-select label .evl-icon {
  margin: 0;
}

.evl-widget .evl-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: auto;
  min-width: 12rem;
  max-width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0 2.25rem 0 0.75rem;
  border: 1px solid var(--evl-line);
  border-radius: 0;
  background-color: var(--evl-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%232B3942' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px 8px;
  color: var(--evl-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: normal;
}

.evl-clear {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border: 0;
  background: none;
  color: var(--evl-orange-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.evl-clear:hover {
  text-decoration: underline;
}

.evl-count {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--evl-muted);
}

/* ----- List + rows ----- */
.evl-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.evl-row {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--evl-white);
  border: 1px solid var(--evl-line);
  border-left: 3px solid var(--evl-orange);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.evl-row:hover,
.evl-row:focus-within {
  border-color: #c5ced3;
  border-left-color: var(--evl-orange);
  box-shadow: 0 2px 8px rgba(26, 36, 44, 0.06);
}

.evl-row.is-past {
  border-left-color: #8b959c;
}

/* Slash accents behind the date tile (same shapes as themed webinar rows) */
/* Keeps the slash accents behind the date tile only, not the sessions block */
.evl-row__main {
  position: relative;
}

.evl-theme-bg {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: calc(1rem + 112px - 0.5rem);
  max-width: 42%;
  overflow: hidden;
  pointer-events: none;
}

.evl-theme-bg__shape {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.evl-theme-bg__shape--navy {
  width: 100%;
  background: var(--evl-accent-navy);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.evl-theme-bg__shape--mid {
  left: -6%;
  width: 92%;
  background: var(--evl-accent-mid);
  clip-path: polygon(0 0, 88% 0, 68% 100%, 0 100%);
}

.evl-theme-bg__shape--accent {
  width: 96%;
  background: var(--evl-accent);
  clip-path: polygon(0 0, 78% 0, 58% 100%, 0 100%);
  transform: skewX(-18deg);
  transform-origin: left center;
}

.evl-row.is-past .evl-theme-bg {
  filter: grayscale(1);
  opacity: 0.6;
}

.evl-row__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  align-items: center;
}

@media (min-width: 700px) {
  .evl-row__inner {
    grid-template-columns: 112px minmax(0, 1fr) auto;
  }
}

/* ----- Date tile (sits where the webinar thumbnail goes) ----- */
.evl-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  background: var(--evl-charcoal);
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.evl-date:hover {
  text-decoration: none;
  color: #fff;
}

.evl-date__mon {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--evl-orange);
}

.evl-date__day {
  margin: 0.3rem 0 0.35rem;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.evl-date--range .evl-date__day {
  font-size: 1.65rem;
  margin: 0.45rem 0 0.5rem;
}

.evl-date__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.evl-date__tba {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--evl-orange);
}

.evl-row.is-past .evl-date__mon,
.evl-row.is-past .evl-date__tba {
  color: #c5ced3;
}

@media (max-width: 699px) {
  .evl-theme-bg {
    display: none;
  }

  .evl-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    aspect-ratio: auto;
    padding: 0.55rem 0.8rem;
  }

  .evl-date__day,
  .evl-date--range .evl-date__day {
    margin: 0;
    font-size: 1.2rem;
  }
}

/* ----- Content ----- */
.evl-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
}

.evl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.evl-badge .evl-icon {
  margin-right: 0;
}

.evl-badge--tag,
.evl-badge--type {
  background: #fff4eb;
  border: 1px solid #f6c9a6;
  color: var(--evl-orange-deep);
}

.evl-badge--more {
  background: #fff;
  border: 1px solid #f6c9a6;
  color: var(--evl-orange-deep);
  cursor: help;
}

.evl-badge--status {
  background: #eef2f4;
  color: var(--evl-charcoal);
}

.evl-badge--status.is-open {
  background: #eef8f4;
  color: var(--evl-teal);
}

.evl-badge--status.is-live {
  background: var(--evl-teal);
  color: #fff;
}

.evl-badge--status.is-soon {
  background: #eef5fb;
  color: #1e5f8a;
}

.evl-badge--status.is-past {
  background: #eef2f4;
  color: var(--evl-muted);
}

.evl-badge--recurring {
  background: #eef2f4;
  color: var(--evl-charcoal);
}

.evl-badge--featured {
  background: var(--evl-charcoal);
  color: #fff;
}

.evl-badge--featured .evl-icon {
  color: var(--evl-orange);
}

.evl-row__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--evl-ink);
}

.evl-row__title a {
  color: inherit;
  text-decoration: none;
}

.evl-row__title a:hover {
  color: var(--evl-orange-deep);
}

.evl-row__blurb {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #000;
}

.evl-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
}

.evl-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.evl-row__meta .evl-icon {
  margin-right: 0;
  color: var(--evl-orange);
}

/* ----- Actions ----- */
.evl-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

@media (min-width: 700px) {
  .evl-row__actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 8.5rem;
  }
}

.evl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.evl-btn--primary {
  background: var(--evl-orange);
  border-color: var(--evl-orange);
  color: #fff;
}

.evl-btn--primary:hover,
.evl-btn--primary:focus {
  background: var(--evl-orange-deep);
  border-color: var(--evl-orange-deep);
  color: #fff;
  text-decoration: none;
}

.evl-btn[aria-disabled="true"] {
  background: #8b959c;
  border-color: #8b959c;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.9;
}

.evl-btn--ghost {
  background: #fff;
  border-color: var(--evl-orange);
  color: var(--evl-orange-deep);
}

.evl-btn--ghost:hover,
.evl-btn--ghost:focus {
  background: var(--evl-orange);
  border-color: var(--evl-orange);
  color: #fff;
  text-decoration: none;
}

/* ----- Linked sessions (sub-events) under a primary event ----- */
.evl-sessions {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--evl-line);
  background: var(--evl-surface);
}

@media (min-width: 700px) {
  .evl-sessions {
    padding-left: calc(1rem + 112px + 0.85rem);
    padding-right: 1rem;
  }
}

/* Session that isn't matched to a primary: slim row, indented, no card */
.evl-row.evl-row--session,
.evl-row.evl-row--session:hover,
.evl-row.evl-row--session:focus-within {
  margin-left: 1rem;
  margin-right: calc(1px + 1rem);
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.evl-row--session .evl-sessions {
  padding: 0;
  border-top: 0;
  background: transparent;
}

@media (min-width: 700px) {
  .evl-row.evl-row--session,
  .evl-row.evl-row--session:hover,
  .evl-row.evl-row--session:focus-within {
    margin-left: calc(3px + 1rem + 112px + 0.85rem);
  }

  .evl-row--session .evl-sessions {
    padding: 0;
  }
}

.evl-widget .evl-sessions__head {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--evl-charcoal);
}

.evl-sessions__head .evl-icon {
  color: var(--evl-orange);
}

.evl-sessions__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  background: var(--evl-charcoal);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.evl-widget .evl-sessions__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evl-widget .evl-session {
  margin: 0;
  padding: 0;
  background: var(--evl-white);
  border: 1px solid var(--evl-line);
  border-left: 3px solid var(--evl-orange);
}

.evl-session.is-past {
  border-left-color: #8b959c;
}

.evl-widget .evl-session__bar {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 2rem;
  align-items: center;
  gap: 0.35rem 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--evl-ink);
  font: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.evl-widget .evl-session__bar:hover {
  background: #fbfcfc;
}

.evl-widget .evl-session__bar:focus-visible {
  outline: 2px solid rgba(232, 119, 34, 0.45);
  outline-offset: -2px;
}

.evl-session__name {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.evl-session__bar:hover .evl-session__name {
  color: var(--evl-orange-deep);
}

.evl-session__when {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.evl-session__when .evl-icon {
  margin: 0;
  color: var(--evl-orange);
}

.evl-session__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--evl-orange);
  background: #fff;
  color: var(--evl-orange-deep);
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.evl-session__toggle i {
  transition: transform 0.2s ease;
}

.evl-session__bar:hover .evl-session__toggle,
.evl-session.is-open .evl-session__toggle {
  background: var(--evl-orange);
  color: #fff;
}

.evl-session.is-open .evl-session__toggle i {
  transform: rotate(45deg);
}

.evl-session.is-past .evl-session__toggle {
  border-color: #8b959c;
  color: var(--evl-muted);
}

.evl-session.is-past .evl-session__bar:hover .evl-session__toggle,
.evl-session.is-past.is-open .evl-session__toggle {
  background: #8b959c;
  color: #fff;
}

.evl-session__panel {
  padding: 0.7rem 0.75rem 0.85rem;
  border-top: 1px dashed var(--evl-line);
}

.evl-widget .evl-session__blurb {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #000;
}

.evl-session__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (max-width: 699px) {
  .evl-widget .evl-session__bar {
    grid-template-columns: minmax(0, 1fr) 2rem;
  }

  .evl-session__name {
    grid-column: 1;
    grid-row: 1;
  }

  .evl-session__when {
    grid-column: 1;
    grid-row: 2;
    white-space: normal;
  }

  .evl-session__toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* ----- Empty state ----- */
.evl-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--evl-line);
  background: var(--evl-surface);
  color: var(--evl-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ----- Pager (Sitefinity ContentPager) ----- */
.evl-widget .pagination {
  margin-top: 1.25rem;
}

@media (max-width: 599px) {
  .evl-widget .evl-search {
    flex: 1 1 100%;
  }

  .evl-widget .evl-select {
    flex: 1 1 auto;
  }

  .evl-widget .evl-select select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .evl-count {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* =========================================================
   Calendar view
   ========================================================= */
.evl-cal {
  background: var(--evl-white);
  border: 1px solid var(--evl-line);
  border-top: 3px solid var(--evl-orange);
}

.evl-cal__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--evl-line);
}

.evl-cal__label {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--evl-charcoal);
}

.evl-cal__arrow,
.evl-cal__today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  margin: 0;
  border: 1px solid var(--evl-line);
  border-radius: 0;
  background: #fff;
  color: var(--evl-charcoal);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.evl-cal__arrow {
  width: 2.35rem;
  padding: 0;
}

.evl-cal__today {
  order: -1;
  padding: 0 0.85rem;
}

.evl-cal__arrow:hover,
.evl-cal__today:hover {
  border-color: var(--evl-orange);
  color: var(--evl-orange-deep);
}

.evl-cal__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.evl-cal__wd {
  padding: 0.5rem 0.4rem;
  background: var(--evl-charcoal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.evl-cal__wd-short {
  display: none;
}

.evl-cal__day {
  position: relative;
  min-height: 7.25rem;
  min-width: 0;
  padding: 0.3rem 0.3rem 0.4rem;
  border-right: 1px solid var(--evl-line);
  border-bottom: 1px solid var(--evl-line);
  cursor: pointer;
}

.evl-cal__day:nth-child(7n) {
  border-right: 0;
}

.evl-cal__row:last-child .evl-cal__day {
  border-bottom: 0;
}

.evl-cal__day:hover {
  background: #fbfcfc;
}

.evl-cal__day.is-out {
  background: var(--evl-surface);
}

.evl-cal__day.is-selected {
  box-shadow: inset 0 0 0 2px var(--evl-orange);
}

.evl-cal__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  margin: 0 0 0.2rem;
  padding: 0 0.3rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--evl-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.evl-cal__day.is-out .evl-cal__num {
  color: #9aa6ad;
}

.evl-cal__day.is-today .evl-cal__num {
  background: var(--evl-orange);
  color: #fff;
}

.evl-cal__events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.evl-cal__events li {
  margin: 0;
  padding: 0;
}

.evl-cal__chip {
  overflow: hidden;
  padding: 0.2rem 0.35rem;
  border-left: 3px solid var(--evl-orange);
  background: #fff4eb;
  color: var(--evl-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
}

.evl-cal__chip:hover,
.evl-cal__chip:focus {
  background: var(--evl-orange);
  color: #fff;
  text-decoration: none;
}

.evl-cal__chip-time {
  font-weight: 600;
  color: var(--evl-orange-deep);
}

.evl-cal__chip:hover .evl-cal__chip-time,
.evl-cal__chip:focus .evl-cal__chip-time {
  color: #fff;
}

/* Multi-day: continuation days drop the left accent */
.evl-cal__chip.is-cont {
  border-left-color: transparent;
  background: #fde3cf;
}

.evl-cal__chip.is-past {
  border-left-color: #8b959c;
  background: #eef2f4;
  color: var(--evl-muted);
}

.evl-cal__chip.is-past .evl-cal__chip-time {
  color: var(--evl-muted);
}

.evl-cal__more {
  margin: 0;
  padding: 0.1rem 0.35rem;
  border: 0;
  background: none;
  color: var(--evl-orange-deep);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.evl-cal__more:hover {
  text-decoration: underline;
}

.evl-cal__dots {
  display: none;
}

/* Empty month note */
.evl-cal__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--evl-line);
  background: var(--evl-surface);
  color: var(--evl-muted);
  font-size: 0.92rem;
  text-align: center;
}

.evl-cal__note p {
  margin: 0;
}

/* Selected-day panel */
.evl-cal__panel {
  border-top: 1px solid var(--evl-line);
  padding: 0.9rem 1rem 1rem;
}

.evl-cal__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}

.evl-cal__panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--evl-charcoal);
}

.evl-cal__panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--evl-line);
  border-radius: 0;
  background: #fff;
  color: var(--evl-charcoal);
  cursor: pointer;
}

.evl-cal__panel-close:hover {
  border-color: var(--evl-orange);
  color: var(--evl-orange-deep);
}

.evl-cal__panel-empty {
  margin: 0;
  color: var(--evl-muted);
  font-size: 0.9rem;
}

.evl-cal__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.evl-cal__panel-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--evl-line);
  border-left: 3px solid var(--evl-orange);
}

.evl-cal__panel-item.is-past {
  border-left-color: #8b959c;
}

.evl-cal__panel-body {
  flex: 1 1 auto;
  min-width: 0;
}

.evl-cal__panel-body .evl-row__badges {
  margin-bottom: 0.3rem;
}

.evl-cal__panel-name {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.evl-cal__panel-name a {
  color: var(--evl-ink);
  text-decoration: none;
}

.evl-cal__panel-name a:hover {
  color: var(--evl-orange-deep);
}

/* Phones: compact grid with dots; tap a day to see its events below */
@media (max-width: 699px) {
  .evl-cal__nav {
    padding: 0.6rem 0.65rem;
  }

  .evl-cal__label {
    font-size: 1rem;
  }

  .evl-cal__wd-long {
    display: none;
  }

  .evl-cal__wd-short {
    display: inline;
  }

  .evl-cal__day {
    min-height: 3.1rem;
    padding: 0.2rem;
    text-align: center;
  }

  .evl-cal__num {
    margin: 0;
  }

  .evl-cal__events {
    display: none;
  }

  .evl-cal__dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 0.15rem;
  }

  .evl-cal__dots span {
    width: 6px;
    height: 6px;
    background: var(--evl-orange);
  }

  .evl-cal__panel-item {
    flex-wrap: wrap;
  }
}

/* =========================================================
   Featured events carousel
   Template: Events-featured-widget.cshtml.txt (built-in Events widget)
   Root has both .evl-widget (shared variables, badges, buttons, date
   tile) and .evf-widget. Cards across: 1 (+ peek) on phones, 2 on
   tablets, 3 from 960px, 4 from 1100px when the template uses columns = 4.
   ========================================================= */

.evl-widget.evf-widget {
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.evf-widget .evf-head {
  margin-bottom: 1rem;
}

.evf-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.evf-widget .evf-nav__btn,
.evh-widget .evh-nav__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--evl-line);
  border-radius: 0;
  background: var(--evl-white);
  color: var(--evl-charcoal);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.evf-widget .evf-nav__btn:hover:not(:disabled),
.evh-widget .evh-nav__btn:hover:not(:disabled) {
  background: var(--evl-charcoal);
  border-color: var(--evl-charcoal);
  color: #fff;
}

.evf-widget .evf-nav__btn:focus-visible,
.evf-widget .evf-dot:focus-visible,
.evh-widget .evh-nav__btn:focus-visible,
.evh-widget .evf-dot:focus-visible {
  outline: 2px solid rgba(232, 119, 34, 0.55);
  outline-offset: 2px;
}

.evf-widget .evf-nav__btn:disabled,
.evh-widget .evh-nav__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ----- Track: native horizontal scroll with snap points ----- */
.evf-widget .evf-track {
  --evf-cols: 1.15;
  --evf-gap: 1rem;
  display: flex;
  gap: var(--evf-gap);
  margin: 0;
  padding: 0 0 0.35rem;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.evf-widget .evf-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 600px) {
  .evf-widget .evf-track {
    --evf-cols: 2;
  }
}

@media (min-width: 960px) {
  .evf-widget .evf-track {
    --evf-cols: 3;
    --evf-gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .evf-widget.evf--cols-4 .evf-track {
    --evf-cols: 4;
  }
}

.evf-widget .evf-slide {
  display: flex;
  flex: 0 0 calc((100% - (var(--evf-cols) - 1) * var(--evf-gap)) / var(--evf-cols));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-snap-align: start;
}

.evf-widget .evf-slide::before,
.evf-widget .evf-slide::marker {
  content: none;
}

/* ----- Card ----- */
.evf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--evl-white);
  border: 1px solid var(--evl-line);
  border-top: 3px solid var(--evl-orange);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.evf-card:hover,
.evf-card:focus-within {
  border-color: #c5ced3;
  border-top-color: var(--evl-orange);
  box-shadow: 0 4px 14px rgba(26, 36, 44, 0.08);
}

.evf-card.is-past {
  border-top-color: #8b959c;
}

.evf-widget .evf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--evl-charcoal);
  text-decoration: none;
}

.evf-widget .evf-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.evf-card:hover .evf-card__media img {
  transform: scale(1.03);
}

.evf-card.is-past .evf-card__media img {
  filter: grayscale(1);
}

/* No image: navy panel with the same orange slash accents as the list rows */
.evf-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(115deg,
      transparent 0 52%,
      var(--evl-accent-navy) 52% 64%,
      var(--evl-accent-mid) 64% 76%,
      var(--evl-accent) 76% 100%),
    var(--evl-charcoal);
  color: rgba(255, 255, 255, 0.35);
  font-size: 2.25rem;
}

.evf-widget .evf-card__type {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--evl-white);
}

.evf-card__body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 0.95rem 1rem;
}

/* Date tile overlaps the bottom edge of the image; stays square at every width
   (overrides the list's phone layout for .evl-date) */
.evf-widget .evf-card__date {
  position: relative;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 4.5rem;
  aspect-ratio: 1 / 1;
  margin: -2.25rem 0 0.75rem;
  padding: 0.4rem;
  box-shadow: 0 2px 6px rgba(26, 36, 44, 0.18);
}

.evf-card__date .evl-date__mon {
  font-size: 0.7rem;
}

.evf-widget .evf-card__date .evl-date__day {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.6rem;
}

.evf-widget .evf-card__date.evl-date--range .evl-date__day {
  margin: 0.3rem 0 0.35rem;
  font-size: 1.05rem;
}

.evf-card__date .evl-date__sub {
  font-size: 0.6rem;
}

.evf-card.is-past .evl-date__mon {
  color: #c5ced3;
}

.evf-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.55rem;
}

.evf-widget .evf-card__title {
  display: -webkit-box;
  margin: 0 0 0.45rem;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--evl-ink);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.evf-widget .evf-card__title a {
  color: inherit;
  text-decoration: none;
}

.evf-widget .evf-card__title a:hover,
.evf-widget .evf-card__title a:focus {
  color: var(--evl-orange-deep);
}

.evf-widget .evf-card__blurb {
  display: -webkit-box;
  margin: 0 0 0.65rem;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #000;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.evf-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
}

.evf-card__meta span {
  display: flex;
  align-items: baseline;
}

.evf-card__meta .evl-icon {
  flex: 0 0 auto;
  color: var(--evl-orange);
}

.evf-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.evf-card__actions .evl-btn {
  flex: 1 1 auto;
}

/* ----- Page indicators ----- */
.evf-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.evf-widget .evf-dot,
.evh-widget .evf-dot {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 1.75rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

.evf-widget .evf-dot::before,
.evh-widget .evf-dot::before {
  content: "";
  display: block;
  height: 4px;
  background: #c5ced3;
  transition: background 0.15s ease;
}

.evf-widget .evf-dot:hover::before,
.evh-widget .evf-dot:hover::before {
  background: var(--evl-muted);
}

.evf-widget .evf-dot[aria-current="true"]::before,
.evh-widget .evf-dot[aria-current="true"]::before {
  background: var(--evl-orange);
}

.evf-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--evl-line);
  background: var(--evl-surface);
  color: var(--evl-muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .evf-widget .evf-card__media img {
    transition: none;
  }

  .evf-card:hover .evf-card__media img {
    transform: none;
  }
}

/* =========================================================
   Featured event carousel — one event at a time
   Template: Events-featured-hero-widget.cshtml.txt (built-in Events widget)
   Root has .evl-widget + .evh-widget. Arrow buttons and page bars share
   the .evf- rules above. Image left / details right from 800px; stacked below.
   ========================================================= */

.evl-widget.evh-widget {
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.evh-widget .evh-head {
  margin-bottom: 1rem;
}

.evh--no-title .evh-head {
  justify-content: flex-end;
}

.evh-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  margin-left: auto;
}

/* ----- Track: one slide per view, native swipe with snap points ----- */
.evh-widget .evh-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.evh-widget .evh-track::-webkit-scrollbar {
  display: none;
}

.evh-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  background: var(--evl-white);
  border: 1px solid var(--evl-line);
  border-left: 3px solid var(--evl-orange);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.evh-slide.is-past {
  border-left-color: #8b959c;
}

@media (min-width: 800px) {
  .evh-slide {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    min-height: 22rem;
  }
}

/* ----- Image ----- */
.evh-widget .evh-slide__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--evl-charcoal);
  text-decoration: none;
}

@media (min-width: 800px) {
  .evh-widget .evh-slide__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.evh-widget .evh-slide__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.evh-slide:hover .evh-slide__media img {
  transform: scale(1.02);
}

.evh-slide.is-past .evh-slide__media img {
  filter: grayscale(1);
}

.evh-slide .evf-card__placeholder {
  font-size: 3rem;
}

/* ----- Details ----- */
.evh-slide__body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  overflow: hidden;
}

@media (min-width: 800px) {
  .evh-slide__body {
    padding: 1.75rem 2rem;
  }
}

/* Orange slash accents in the top-right corner (same palette as the list rows) */
.evh-slide__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 6.5rem;
  height: 3.25rem;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 0 34%,
    var(--evl-accent-navy) 34% 54%,
    var(--evl-accent-mid) 54% 74%,
    var(--evl-accent) 74% 100%);
}

.evh-slide.is-past .evh-slide__accent {
  filter: grayscale(1);
  opacity: 0.6;
}

.evh-slide__kicker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding-right: 5.5rem;
}

.evh-slide__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--evl-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.evh-slide.is-past .evh-slide__flag {
  background: #8b959c;
}

.evh-widget .evh-slide__title {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--evl-ink);
}

.evh-widget .evh-slide__title a {
  color: inherit;
  text-decoration: none;
}

.evh-widget .evh-slide__title a:hover,
.evh-widget .evh-slide__title a:focus {
  color: var(--evl-orange-deep);
}

.evh-slide__when {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
}

/* Square date tile at every width (overrides the list's phone layout for .evl-date) */
.evh-widget .evh-slide__date {
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 4.75rem;
  aspect-ratio: 1 / 1;
  padding: 0.4rem;
}

.evh-slide__date .evl-date__mon {
  font-size: 0.72rem;
}

.evh-widget .evh-slide__date .evl-date__day {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.7rem;
}

.evh-widget .evh-slide__date.evl-date--range .evl-date__day {
  margin: 0.3rem 0 0.35rem;
  font-size: 1.1rem;
}

.evh-slide__date .evl-date__sub {
  font-size: 0.62rem;
}

.evh-slide.is-past .evl-date__mon {
  color: #c5ced3;
}

.evh-slide__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
}

.evh-slide__meta > span {
  display: flex;
  align-items: baseline;
}

.evh-slide__meta .evl-icon {
  flex: 0 0 auto;
  color: var(--evl-orange);
}

.evh-widget .evh-slide__blurb {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #000;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.evh-slide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.evh-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.evh-slide__actions .evl-btn {
  min-height: 2.6rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
}

/* ----- Page bars + counter ----- */
.evh-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
}

.evh-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.evh-widget .evh-count {
  position: absolute;
  top: 50%;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--evl-muted);
}

@media (max-width: 599px) {
  .evh-widget .evh-count {
    display: none;
  }

  .evh-slide__actions .evl-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evh-widget .evh-slide__media img {
    transition: none;
  }

  .evh-slide:hover .evh-slide__media img {
    transform: none;
  }
}