  /* Experiential Learning filter: chip row, results line, and grid adjustments. */

.el-filter[hidden],
.el-chip[hidden],
.el-clear[hidden],
.el-grid > li[hidden] { display: none !important; }

.el-filter {
  margin: 0rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e0db;
}

.el-filter-label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.el-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* Reset Foundation's global button styles for the chips. */
.el-filter .el-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding: 0 1.125rem;
  border: 1.5px solid #c9c6bf;
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.el-filter .el-chip:hover {
  background: #f4f3f0;
  border-color: #141414;
  color: #141414;
}

.el-filter .el-chip[aria-pressed="true"],
.el-filter .el-chip[aria-pressed="true"]:hover {
  background: #141414;
  border-color: #141414;
  color: #ffffff;
}

.el-filter .el-chip:focus-visible,
.el-filter .el-clear:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.el-chip-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5c5c5c;
}

.el-chip[aria-pressed="true"] .el-chip-count { color: #ffffff; }

.el-results {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.el-status {
  margin: 0;
  font-size: 0.9375rem;
  color: #3d3d3d;
}

.el-filter .el-clear {
  margin: 0;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: #141414;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-transform: none;
  cursor: pointer;
}

.el-filter .el-clear:hover { background: none; color: #555555; }

/*
 * Foundation's block grid floats each li and clears every third one with
 * :nth-of-type, which leaves gaps once cards are hidden. When the filter is
 * active, lay the same items out with CSS grid instead. The li padding and
 * ul negative margins from Foundation are kept, so spacing looks the same.
 */
.el-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Foundation's clearfix adds ::before/::after to the ul; in a CSS grid they become empty cells. */
.el-grid::before,
.el-grid::after {
  content: none !important;
  display: none !important;
}

.el-grid > li {
  float: none !important;
  clear: none !important;
  width: auto !important;
}

@media only screen and (min-width: 40.063em) {
  .el-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Type label above each card title (Immersive, Talks, ...). */
.el-card-type {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.el-card-type span + span::before {
  content: "\00B7";
  margin: 0 0.4em;
}

/* Phones: keep the chips on one line that scrolls sideways. */
@media only screen and (max-width: 40em) {
  .el-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -0.9375rem;
    padding: 0 0.9375rem 0.375rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .el-filter .el-chip {
    flex: none;
    white-space: nowrap;
  }
  .el-results { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .el-filter .el-chip { transition: none; }
}
