/* ============================================================
   CLASS LIST REDESIGN v2
   Spec: docs/superpowers/specs/2026-04-05-class-list-redesign-v2-design.md
   ============================================================ */

/* Source dataset is never shown to the user — class-list-redesign.js
   reads the cards out of it and moves them into .clr-container.
   Hiding from the start avoids a flash of un-scoped, full-natural-size
   images during the window between page paint and JS init. */
.event_list--clr {
  display: none;
}

/* Fade in the actual view container once JS finishes building it.
   class-list-redesign.js adds .clr-ready in init() via requestAnimationFrame. */
.clr-container {
  transition: opacity 0.15s ease-in;
}
.clr-container:not(.clr-ready) > :not(.clr-init-skeleton) {
  opacity: 0;
}

/* Server-rendered skeleton: visible until JS finishes building the real view,
   so layout space is reserved at first paint and the user sees shimmer cards
   instead of blank space. Hidden once .clr-ready flips. */
.clr-init-skeleton {
  display: block;
}
.clr-container.clr-ready .clr-init-skeleton {
  display: none;
}
.clr-init-skeleton__card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}
.clr-init-skeleton__img {
  width: 120px;
  min-height: 100px;
  flex-shrink: 0;
  border-radius: 0;
}
.clr-init-skeleton__body {
  padding: 14px 16px;
  flex: 1;
}
.clr-init-skeleton__line {
  margin-bottom: 8px;
}
.clr-init-skeleton__line--xs {
  height: 12px;
  width: 80px;
}
.clr-init-skeleton__line--md {
  height: 12px;
  width: 160px;
  margin-bottom: 0;
}
.clr-init-skeleton__line--lg {
  height: 18px;
  width: 240px;
  margin-bottom: 10px;
}

/* --- Design Tokens --- */
.clr-container {
  --clr-primary: #f56822;
  --clr-navy: #294567;
  --clr-text: #09090b;
  --clr-muted: #71717a;
  --clr-border: #e2e4e8;
  --clr-bg-subtle: #f4f4f5;
  --clr-bg-page: #fafafa;
  --clr-danger: #dc2626;
  --clr-sold-out-bg: #fde8e8;
  --clr-highlight: #000000;
  --clr-white: #fff;
  --clr-radius: 8px;
  --clr-radius-lg: 15px;
  font-family:
    "Jost",
    Arial,
    -apple-system,
    "Segoe UI",
    "Roboto",
    sans-serif;
  color: var(--clr-text);
}

/* --- Hide existing page_content date headers and pagination --- */
.clr-container .dh {
  display: none;
}
.clr-container ~ .nav_div,
.nav_div:has(~ .clr-container),
.clr-container ~ .pagenav {
  display: none;
}

/* --- Control Bar --- */
.clr-controls {
  display: flex;
  gap: 4px;
  padding: 10px 8px;
  background: var(--clr-primary);
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  /* margin-bottom: 20px; */
  border-bottom: 1px solid var(--clr-highlight) !important;
  flex-direction: row;
}

.view-list .clr-controls {
  flex-direction: row;
}

@media (max-width: 990px) {
  .clr-controls {
    flex-direction: column;
  }
}
/* Search input */
.main_color .clr-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  border-radius: var(--clr-radius);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  width: 100%;
}
.main_color .clr-search-wrap:focus-within {
  background: var(--clr-white);
  border-color: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.main_color .clr-search-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.main_color .clr-search-wrap:focus-within .clr-search-icon {
  color: var(--clr-primary);
}
/* Override #top .main_color input[type='text'] globals */
#top .main_color input[type="text"].clr-search {
  border: none;
  border-color: transparent;
  outline: none;
  font-size: 14px;
  color: var(--clr-white);
  background: transparent;
  background-color: transparent !important;
  width: 100%;
  font-family: inherit;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
#top .main_color input[type="text"].clr-search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.clr-search-cancel {
  display: none;
  background: none;
  border: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  padding: 0;
}
.clr-search-cancel:hover {
  color: var(--clr-highlight);
}
/* Controls group (toggle + nav) */
.clr-controls-right {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-direction: row;
  justify-content: space-between;
}

/* Segmented toggle on orange bar */
.clr-toggle {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--clr-radius);
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.clr-toggle-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.clr-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--clr-white);
}

.clr-toggle-btn.active {
  background: var(--clr-white);
  color: var(--clr-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Divider between toggle and nav */
.clr-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
}

/* Date navigation */
.clr-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.clr-nav-btn {
  padding: 4px 8px;
  border: none;
  border-radius: var(--clr-radius-lg);
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-family: inherit;
  color: var(--clr-white);
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.clr-nav-btn:hover {
  background: rgba(255, 255, 255, 0.75) !important;
  color: var(--clr-primary);
}
.clr-nav-today {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
}
.clr-nav-label {
  font-size: 13px;
  font-weight: 500;
  min-width: 155px;
  text-align: center;
  color: var(--clr-white);
  text-transform: uppercase;
}
.clr-nav-label-short {
  display: none;
}

/* Hide nav when list view active */
.clr-container.view-list .clr-divider,
.clr-container.view-list .clr-nav {
  display: none;
}

/* --- Search Mode --- */

/* When search is active: fade toggle+nav */
.clr-container.search-active .clr-controls-right {
  opacity: 0.35;
  pointer-events: none;
}

/* Show cancel button during search */
.clr-container.search-active .clr-search-cancel {
  display: block;
}

/* Search focus: deepen bar shadow, search input goes white */
.clr-container.search-active .clr-controls {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.clr-container.search-active .clr-search-wrap {
  background: var(--clr-white);
  border-color: var(--clr-white);
}
.clr-container.search-active .clr-search-icon {
  color: var(--clr-primary);
}
#top .main_color .clr-container.search-active input[type="text"].clr-search {
  color: var(--clr-text);
}
#top
  .main_color
  .clr-container.search-active
  input[type="text"].clr-search::placeholder {
  color: var(--clr-muted);
}
.clr-container.search-active .clr-search-cancel {
  color: var(--clr-muted);
}
.clr-container.search-active .clr-search-cancel:hover {
  color: var(--clr-text);
}

/* Results count */
.clr-search-count {
  display: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  font-family: inherit;
}
.clr-container.search-active .clr-search-count {
  display: block;
}

/* Search results container */
.clr-search-results {
  display: none;
}
.clr-container.search-active .clr-search-results {
  display: block;
}

/* Search results share list-view card layout,  see .clr-list rules below.
   Only the fade-in animation is unique to search. */
@keyframes clr-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.clr-search-results .ev-card {
  animation: clr-fade-in-up 0.25s ease-out both;
}

/* Hide view containers during search */
.clr-container.search-active .clr-list,
.clr-container.search-active .clr-week,
.clr-container.search-active .clr-month {
  display: none;
}

/* Skeleton shimmer */
@keyframes clr-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.clr-skeleton {
  display: none;
}
.clr-container.search-active.search-empty .clr-skeleton {
  display: block;
}
.clr-container.search-active.search-empty .clr-search-results {
  display: none;
}
.clr-skel-bar {
  background: linear-gradient(
    90deg,
    var(--clr-bg-subtle) 25%,
    var(--clr-border) 50%,
    var(--clr-bg-subtle) 75%
  );
  background-size: 400px 100%;
  animation: clr-shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* No results - rendered on orange (.clr-primary) background in all contexts,
   so styled as dark-mode (light text on orange). */
.clr-no-results {
  text-align: center;
  padding: 60px 20px;
}
.clr-no-results-icon {
  color: #fff;
  opacity: 0.7;
  margin-bottom: 12px;
  line-height: 0;
}
.clr-no-results-icon svg {
  width: 40px;
  height: 40px;
}
.clr-no-results-heading {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.clr-no-results-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.clr-no-results-link {
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}
.clr-no-results-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* --- Card Base --- */
.ev-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--clr-white);
  transition: all 0.15s ease;
  position: relative;
  border: 1px solid var(--clr-primary) !important;
}
.ev-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--clr-highlight) !important;
}
.ev-card a {
  text-decoration: none;
  color: var(--clr-highlight);
  transition: opacity 0.15s ease;
}
.ev-card__image {
  overflow: hidden;
}
.ev-card__image .photo {
  width: 100%;
  height: auto;
}
.ev-card__image .photo img {
  width: 100%;
  height: auto;
  display: block;
}
.ev-card__dek {
  font-size: 11px;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ev-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-text);
}
.ev-card__title a {
  color: var(--clr-text) !important;
}
.ev-card__title a:hover {
  opacity: 0.7;
}
.ev-card__brief {
  font-size: 13px;
  color: var(--clr-muted);
  line-height: 1.45;
}
.ev-card__datetime .ev-card__date__short {
  display: none;
}
.ev-card__dates {
  font-size: 13px;
  color: var(--clr-text);
}
.ev-card__dates .meets-count {
  margin-bottom: 4px;
}
.ev-card__dates .meets-dates {
  margin-top: 4px;
}
.ev-card__dates .meets-dates .date {
  display: inline-block;
  background: var(--clr-bg-subtle);
  padding: 2px 8px;
  margin: 2px 2px;
  font-size: 11px;
  border-radius: 4px;
  color: var(--clr-text);
}
.ev-card__spots {
  font-size: 12px;
  font-weight: 600;
  opacity: 1 !important;
}
.ev-card.so .ev-card__spots:not(:hover) * {
  opacity: 1;
}
.ev-card__spots .sold_out {
  color: var(--clr-danger);
}
.ev-card__spots .warning {
  color: var(--clr-danger);
}
.ev-card__meets {
  font-size: 12px;
  color: var(--clr-muted);
}
.ev-card__meets > p {
  margin: 0 0 4px 0;
}
.ev-card__meets .il_div {
  display: none;
}
/* Sold out treatment all views */
.ev-card.so:not(:hover) * {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

/* Filtered out by search */
.ev-card.clr-hidden {
  display: none;
}

/* ============================================================
   LIST VIEW
   Layout: image | body | rail
   Body = identity/copy (dek, title, instructor, brief)
   Rail = when/status (datetime, date pills, spots, meets)
   ============================================================ */
.clr-list,
.clr-search-results {
  display: none;
  padding: 12px 8px;
  background: var(--clr-primary);
}
.clr-container.view-list:not(.search-active) .clr-list {
  display: block;
}
.clr-container.view-list .clr-week,
.clr-container.view-list .clr-month {
  display: none;
}

/* Card = 3-col grid. Children placed explicitly, no body wrapper in outline. */
.clr-list .ev-card,
.clr-search-results .ev-card,
.clr-week__days-mobile .ev-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 20px;
  row-gap: 2px;
  padding: 0;
  margin-bottom: 10px;
  align-items: start;
  overflow: hidden;
}

/* Image spans all rows, fills full card height */
.clr-list .ev-card__image,
.clr-search-results .ev-card__image {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: stretch;
  min-height: 160px;
}
.clr-list .ev-card__image .photo,
.clr-list .ev-card__image .photo a,
.clr-search-results .ev-card__image .photo,
.clr-search-results .ev-card__image .photo a {
  display: block;
  width: 100%;
  height: 100%;
}
.clr-list .ev-card__image .photo img,
.clr-search-results .ev-card__image .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Body column (col 2) */
.clr-list .ev-card__dek,
.clr-search-results .ev-card__dek {
  grid-column: 2;
  grid-row: 1;
  padding: 14px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.clr-list .ev-card__dek:empty,
.clr-search-results .ev-card__dek:empty {
  display: none;
}
.clr-list .ev-card__title,
.clr-search-results .ev-card__title {
  grid-column: 2;
  grid-row: 1;
  font-family: Futura, Jost, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.3px;
  margin: 0px 0 4px;
  padding-top: 14px;
}
.clr-list .ev-card__title a,
.clr-search-results .ev-card__title a {
  color: #00a8df !important;
}
.clr-list .ev-card__title a:hover,
.clr-search-results .ev-card__title a:hover {
  color: var(--clr-primary) !important;
  opacity: 1;
}
.clr-list .ev-card__instructor,
.clr-search-results .ev-card__instructor {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  line-height: 1.3;
  margin-bottom: 6px;
}
.clr-list .ev-card__instructor:empty,
.clr-list .ev-card__instructor:-moz-only-whitespace,
.clr-search-results .ev-card__instructor:empty,
.clr-search-results .ev-card__instructor:-moz-only-whitespace {
  display: none;
}
.clr-list .ev-card__brief,
.clr-search-results .ev-card__brief {
  grid-column: 2;
  grid-row: 4;
  padding-bottom: 14px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clr-list .ev-card__brief:empty,
.clr-search-results .ev-card__brief:empty {
  display: none;
}

/* Rail column (col 3) when + status, right-aligned feel */
.clr-list .ev-card__datetime,
.clr-search-results .ev-card__datetime {
  grid-column: 3;
  grid-row: 1;
  padding: 14px 4px 4px 0;
  font-family: Futura, Jost, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}
.clr-list .ev-card__datetime .ev-card__time,
.clr-search-results .ev-card__datetime .ev-card__time {
  color: #666;
  margin-left: 4px;
  font-size: 12px;
}
.clr-list .ev-card__dates,
.clr-search-results .ev-card__dates {
  grid-column: 3;
  grid-row: 1;
  padding: 45px 16px 6px 0;
  font-size: 12px;
  color: #555;
}
.so .clr-list .ev-card__dates,
.so .clr-search-results .ev-card__dates {
  padding: 100px;
}
.clr-list .ev-card__dates > p,
.clr-search-results .ev-card__dates > p {
  display: none;
}
.clr-list .ev-card__dates .meets-count,
.clr-search-results .ev-card__dates .meets-count {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}
.clr-list .ev-card__dates .meets-dates,
.clr-search-results .ev-card__dates .meets-dates {
  display: none !important;
}
.clr-list .ev-card__dates .meets-dates,
.clr-list .ev-card__meets .meets-dates,
.clr-search-results .ev-card__dates .meets-dates,
.clr-search-results .ev-card__meets .meets-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.clr-list .ev-card__dates .meets-dates .date,
.clr-list .ev-card__meets .meets-dates .date,
.clr-search-results .ev-card__dates .meets-dates .date,
.clr-search-results .ev-card__meets .meets-dates .date {
  display: inline-block;
  background: #00a8df;
  color: #fff;
  font-weight: 700;
  padding: 3px 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.3px;
  border-radius: 4px;
  white-space: nowrap;
}
.clr-list .ev-card__spots,
.clr-search-results .ev-card__spots {
  grid-column: 3;
  grid-row: 1;
  padding: 45px 16px 0px 0px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.clr-list .ev-card__spots .warning,
.clr-search-results .ev-card__spots .warning {
  color: var(--clr-primary);
  padding-top: 7px;
  display: inline-block;
}
.clr-list .ev-card__spots .sold_out,
.clr-search-results .ev-card__spots .sold_out {
  color: var(--clr-danger);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.clr-list .ev-card__spots a.join_waitlist,
.clr-list .ev-card__spots a.remove_waitlist,
.clr-search-results .ev-card__spots a.join_waitlist,
.clr-search-results .ev-card__spots a.remove_waitlist {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  background: var(--clr-primary);
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
  text-decoration: none;
}
.clr-list .ev-card__spots a.join_waitlist:hover,
.clr-list .ev-card__spots a.remove_waitlist:hover,
.clr-search-results .ev-card__spots a.join_waitlist:hover,
.clr-search-results .ev-card__spots a.remove_waitlist:hover {
  background: #333;
  color: #fff !important;
}
.clr-list .ev-card__meets,
.clr-search-results .ev-card__meets {
  grid-column: 3;
  grid-row: 4;
  align-self: end;
  padding: 0 16px 14px 0;
  font-size: 11px;
  color: #888;
  font-style: italic;
}

/* Sold-out swap the orange accent border for a muted rail feel */
.clr-list .ev-card.so,
.clr-month .ev-card.so,
.clr-search-results .ev-card.so {
  background: var(--clr-sold-out-bg);
  border-color: var(--clr-border) !important;
  box-shadow: none;
}

/* ============================================================
   WEEK VIEW
   ============================================================ */
.clr-week {
  display: none;
  background-color: var(--clr-primary);
  padding: 6px 8px;
}
.clr-week .ev-card.so:not(:hover) {
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.15s ease;
}
.clr-week .ev-card.so a {
  color: var(--clr-sold-out-bg);
}

.clr-week .ev-card.so a:hover {
  text-decoration: underline !important;
}
.clr-container.view-week:not(.search-active) .clr-week {
  display: block;
}
.clr-container.view-week .clr-list,
.clr-container.view-week .clr-month {
  display: none;
}

.clr-week__grid {
  display: flex;
  gap: 6px;
}
.clr-week__day {
  flex: 1;
  min-width: 0;
}
.clr-week__day-header,
.clr-week-header {
  background: var(--clr-navy) !important;
  color: var(--clr-white);
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  text-transform: uppercase;
}
.clr-week-header {
  margin: 4px 0;
  font-size: 12px;
}
.clr-week__day-header.today {
  background: #0f1a2b !important;
}
.clr-week__day-body {
  background: var(--clr-primary);
  border: 1px solid var(--clr-primary) !important;
  border-top: none;
  border-radius: 0 !important;
  padding: 5px;
  min-height: 200px;
}

/* Week view card image, title, spots only */
.ev-card {
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-radius: var(--clr-radius);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}
.clr-week .ev-card__image .photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top left;
}
.clr-week .ev-card__body {
  padding: 8px;
}
.clr-week .ev-card__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 4px;
}
.clr-week .ev-card__spots {
  font-size: 10px;
  padding: 0 4px;
  position: absolute;
  top: 126px;
  background: var(--clr-navy);
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  opacity: 1;
}
.clr-week .ev-card__spots .sold_out,
.clr-week .ev-card__spots .warning {
  color: #ff8a8a;
  padding: 0 4px;
}
.clr-week .ev-card__instructor {
  color: #333;
  padding: 0 4px;
}
.clr-week .ev-card__datetime {
  padding: 0 4px;
  font-size: 10px;
  color: #757575;
  gap: 4px;
  display: flex;
}
.clr-week .ev-card__datetime .ev-card__date {
  display: none;
}
.clr-week .ev-card__datetime .ev-card__date__short {
  display: inline;
}
.clr-week .ev-card__meets {
  padding: 0 4px;
  color: #666666;
  background: transparent;
  font-size: 10px;
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  gap: 4px;
}

.clr-week .ev-card__meets .meets-count {
  margin: 0;
}
.clr-week .ev-card__meets .meets-count strong {
  /* overflow: hidden; */
  /* max-width: 42px; */
  /* max-height: 1em; */
  /* display: inline-block; */
  /* position: relative; */
}
.clr-week .ev-card__meets .meets-count strong::after {
  content: ":";
  top: 0;
  right: 0;
  position: absolute;
}
/* Week view: hide dek, brief, dates, meets */
.clr-week .ev-card__dek,
.clr-week .ev-card__brief,
.clr-week .ev-card__dates,
.clr-week .ev-card__meetsOFF {
  display: none;
}

/* ============================================================
   MONTH VIEW
   ============================================================ */
.clr-month {
  display: none;
}
.clr-container.view-month:not(.search-active) .clr-month {
  display: block;
}
.clr-container.view-month .clr-list,
.clr-container.view-month .clr-week {
  display: none;
}

.clr-month__dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1px;
}
.clr-month__dow-cell {
  background: var(--clr-navy);
  color: var(--clr-white);
  padding: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.clr-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--clr-border);
}
.clr-month__cell {
  background: var(--clr-white);
  min-height: 100px;
  min-width: 0;
  overflow: hidden;
  padding: 4px;
}
.clr-month__cell.empty {
  background: var(--clr-bg-subtle);
}
.clr-month__cell-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-muted);
  padding: 2px 4px;
  margin-bottom: 4px;
}
.clr-month__cell.today .clr-month__cell-date {
  color: var(--clr-white);
  background: var(--clr-primary);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Month view card title + spots only, chip style.
   Open-spot cards: brand-orange fill with white text.
   Sold-out cards (.so): pink bg via .clr-month .ev-card.so (line ~733),
   text colors restored to original muted darks below. */
.clr-month .ev-card {
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  margin-bottom: 2px;
  background: var(--clr-primary);
  overflow: hidden;
}
.clr-month .ev-card:hover {
  background: var(--clr-navy);
}
.clr-month .ev-card__title {
  font-size: 10px;
  font-weight: 400;
  padding: 0;
  color: var(--clr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clr-month .ev-card__title a {
  color: var(--clr-navy) !important;
}
.clr-month .ev-card:hover a {
  color: var(--clr-primary) !important;
}
.clr-month .ev-card:hover a:hover {
  text-decoration: underline !important;
}
.clr-month .ev-card__instructor {
  font-size: 10px;
  color: #fff;
}
.clr-month .ev-card__datetime {
  font-size: 10px;
  color: #ffffffb5;
  display: block;
}
.clr-month .ev-card__datetime .ev-card__date {
  display: inline;
  padding-right: 4px;
}
.clr-month .ev-card__spots {
  font-size: 9px;
  color: #fff;
  margin-top: 1px;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.clr-month .ev-card__spots .warning {
  color: #000;
  font-weight: 700;
}

/* Sold-out (.so) text overrides — restore original colors over the pink bg
   set by .clr-month .ev-card.so. Background, opacity-fade, .sold_out red,
   and waitlist link are all defined elsewhere and unchanged. */
.clr-month .ev-card.so:hover {
  background-color: #29456770;
}
.clr-month .ev-card.so .ev-card__title {
  color: var(--clr-text);
}
.clr-month .ev-card.so .ev-card__title a {
  color: var(--clr-text) !important;
}
.clr-month .ev-card.so .ev-card__instructor {
  color: #333;
}
.clr-month .ev-card.so .ev-card__datetime {
  color: #757575;
}
.clr-month .ev-card.so:hover .ev-card__instructor,
.clr-month .ev-card.so:hover .ev-card__datetime {
  color: #333;
}

.clr-month .ev-card.so .ev-card__spots {
  color: #333;
}
.clr-month .ev-card:hover .ev-card__spots .warning {
  color: var(--clr-danger);
}
/* Month view: hide image, dek, brief, dates, meets */
.clr-month .ev-card__image,
.clr-month .ev-card__dek,
.clr-month .ev-card__brief,
.clr-month .ev-card__dates,
.clr-month .ev-card__meets {
  display: none;
}
/* ============================================================
   RESPONSIVE Mobile (<990px)
   ============================================================ */
@media (max-width: 990px) {
  .clr-list .ev-card__title,
  .clr-search-results .ev-card__title {
    font-size: 16px;
    /*max-height:74px;
   overflow:hidden;*/
  }
  .clr-list .ev-card__datetime,
  .clr-search-results .ev-card__datetime {
    padding-top: 15px;
  }
  .clr-list .ev-card__dates,
  .clr-search-results .ev-card__dates {
    padding-top: 37px;
  }
}
/* ============================================================
   RESPONSIVE Mobile (<768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Control bar: search on top, toggle+nav wrap on a second row, all inline */
  .clr-controls {
    /* flex-wrap: wrap; */
    gap: 10px;
    /* padding: 10px; */
  }
  .clr-search-wrap {
    /* max-width: none; */
    /* flex: 1 1 100%; */
  }
  .clr-controls-right {
    /* flex: 1 1 100%; */
    /* justify-content: space-between; */
  }
  .clr-toggle-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  .clr-divider {
    display: none;
  }
  .clr-nav {
    gap: 4px;
  }
  .clr-nav-label {
    min-width: 0;
    font-size: 12px;
  }
  .clr-nav-label-long {
    display: none;
  }
  .clr-nav-label-short {
    display: inline;
  }
  .clr-nav-label-mobile {
    display: none;
  }

  /* List view: collapse rail into body, two-column grid.
     Row 7 holds .ev-card__meets stacked under the rest of column 2. */
  .clr-list .ev-card,
  .clr-search-results .ev-card,
  .clr-week__days-mobile .ev-card {
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto auto auto;
    column-gap: 12px;
    row-gap: 2px;
  }
  .clr-list .ev-card__image,
  .clr-search-results .ev-card__image,
  .clr-week__days-mobile .ev-card__image {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 100px;
  }
  .clr-list .ev-card__image .photo img,
  .clr-search-results .ev-card__image .photo img,
  .clr-week__days-mobile .ev-card__image .photo img {
    object-fit: contain;
    object-position: center;
  }
  .clr-list .ev-card__dek,
  .clr-search-results .ev-card__dek,
  .clr-week__days-mobile .ev-card__dek {
    grid-column: 2;
    grid-row: 1;
    padding: 10px 12px 0 0;
    font-size: 10px;
  }
  .clr-list .ev-card__title,
  .clr-search-results .ev-card__title,
  .clr-week__days-mobile .ev-card__title {
    grid-column: 2;
    grid-row: 2;
    padding-right: 12px;
    font-size: 16px;
    padding: 4px 4px 4px 0;
    max-height: unset;
    overflow: unset;
    margin-bottom: 0;
  }
  .clr-list .ev-card__instructor,
  .clr-search-results .ev-card__instructor,
  .clr-week__days-mobile .ev-card__instructor {
    grid-column: 2;
    grid-row: 3;
    padding-right: 12px;
    margin: 0;
    color: #333;
  }
  .clr-week .ev-card__instructor {
    padding-left: 0;
  }
  .clr-week .ev-card__spots .sold_out,
  .clr-week .ev-card__spots .warning {
    padding-left: 0;
  }
  .clr-list .ev-card__datetime,
  .clr-search-results .ev-card__datetime,
  .clr-week__days-mobile .ev-card__datetime {
    grid-column: 2;
    grid-row: 4;
    padding: 0px 12px 0 0px;
    font-size: 12px;
    color: #757575;
  }
  .clr-list .ev-card__brief,
  .clr-search-results .ev-card__brief,
  .clr-week__days-mobile .ev-card__brief {
    display: none;
  }
  .clr-list .ev-card__dates,
  .clr-search-results .ev-card__dates,
  .clr-week__days-mobile .ev-card__dates {
    grid-column: 2;
    grid-row: 5;
    padding: 4px 12px 0 0;
  }
  .clr-list .ev-card__spots,
  .clr-search-results .ev-card__spots,
  .clr-week__days-mobile .ev-card__spots {
    grid-column: 2;
    grid-row: 6;
    padding: 4px 12px 10px 0;
    font-size: 12px;
  }
  .clr-list .ev-card__spots .warning,
  .clr-search-results .ev-card__spots .warning {
    padding-top: 0;
  }

  .clr-list .ev-card__meets,
  .clr-search-results .ev-card__meets,
  .clr-week__days-mobile .ev-card__meets {
    grid-column: 2;
    grid-row: 7;
    padding: 4px 12px 10px 0;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  /* Hide on mobile because it doesn't align well with the long ass titles. */
  .clr-list .ev-card__meets {
    display: none;
  }
  .clr-list .ev-card__meets .meets-dates,
  .clr-search-results .ev-card__meets .meets-dates,
  .clr-week__days-mobile .ev-card__meets .meets-dates {
    margin-left: auto;
  }
  .clr-list .ev-card__meets .meets-count,
  .clr-search-results .ev-card__meets .meets-count,
  .clr-week__days-mobile .ev-card__meets .meets-count {
    margin: 0;
  }

  /* Week view: hide desktop grid, show day groups */
  .clr-week__grid {
    display: none;
  }
  /* Hide on mobile because it doesn't align well with the long ass titles. */
  .clr-week .ev-card__meets {
    display: none;
  }
  .clr-week__days-mobile {
    display: block;
  }
  .clr-week .ev-card__spots a.join_waitlist,
  .clr-week .ev-card__spots a.remove_waitlist {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: var(--clr-primary);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 3px;
    text-decoration: none;
  }
  .clr-week .ev-card__spots a.join_waitlist:hover,
  .clr-week .ev-card__spots a.remove_waitlist:hover {
    background: #333;
    color: #fff !important;
  }
  /* Month view: hide desktop grid, show week groups */
  .clr-month__dow-row,
  .clr-month__grid {
    display: none;
  }
  .clr-month__weeks-mobile {
    display: block;
  }

  /* Mobile day/week group headers */
  .clr-day-header,
  .clr-week-header {
    background: var(--clr-navy) !important;
    color: var(--clr-white);
    padding: 6px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  /* Mobile: hide brief in week/month, hide dek/brief/dates/meets in month
     (week mobile shares the list grid layout, including the meets row). */
  .clr-week__days-mobile .ev-card__brief,
  .clr-month__weeks-mobile .ev-card__dek,
  .clr-month__weeks-mobile .ev-card__brief,
  .clr-month__weeks-mobile .ev-card__dates,
  .clr-month__weeks-mobile .ev-card__meets {
    display: none;
  }

  /* Month titles: more breathing room on mobile — bigger text, allow wrap. */
  .clr-month .ev-card__title {
    font-size: 13px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .clr-week__days-mobile .ev-card__spots {
    position: static;
    background: transparent;
    top: auto;
    width: auto;
  }
  .clr-week__days-mobile .ev-card__spots .sold_out,
  .clr-week__days-mobile .ev-card__spots .warning {
    color: var(--clr-danger);
  }
  .clr-week__days-mobile .ev-card__image .photo img {
    height: auto;
  }
  .clr-week__days-mobile .ev-card__datetime .ev-card__date {
    display: inline;
  }
  .clr-week__days-mobile .ev-card__datetime .ev-card__date__short {
    display: none;
  }
  .clr-week__days-mobile .ev-card__title {
    font-size: 16px;
  }

  /* Mobile: hide month image */
  .clr-month__weeks-mobile .ev-card__image {
    display: none;
  }

  /* Mobile search: show X instead of Cancel */
  .clr-search-cancel-text {
    display: none;
  }
  .clr-search-cancel-x {
    display: inline;
  }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
  .clr-week__days-mobile {
    display: none;
  }
  .clr-month__weeks-mobile {
    display: none;
  }
  .clr-nav-label-mobile {
    display: none;
  }
  .clr-search-cancel-x {
    display: none;
  }
}
