/* Shared list styles */
.ecl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecl-list ul {
  list-style: none;
  margin-left: 1rem;
  padding-left: 0;
}
.ecl-list li {
  margin: 0.15rem 0;
}
.ecl-list a {
  text-decoration: none;
}
.ecl-list a:hover {
  text-decoration: underline;
}
.ecl-list .children {
  margin-top: 0.15rem;
}

/* Accordion */
.ecl-accordion .ecl-acc__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.ecl-acc__header {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ecl-acc__header[aria-expanded="true"] {
  background: #eef1f4;
}
.ecl-acc__count {
  opacity: 0.8;
  font-weight: 600;
  margin-left: 0.5rem;
}
.ecl-acc__panel {
  padding: 0.75rem 1rem;
}

/* Posts */
.ecl-year__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecl-year__item {
  margin: 0.25rem 0;
}
.ecl-year__link {
  text-decoration: none;
}
.ecl-year__link:hover {
  text-decoration: underline;
}
.ecl-year__date {
  opacity: 0.7;
  margin-left: 0.35rem;
  font-size: 0.9em;
}

/* Dividers (scoped to wrapper w/ class) */
.ecl-accordion.has-dividers .ecl-year__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.35rem;
}
.ecl-accordion.has-dividers .ecl-year__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Range UI */
.ecl-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.ecl-range__label {
  font-weight: 600;
}
.ecl-range__select {
  min-width: 120px;
}

/* Pagination */
.ecl-years__pagination {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.ecl-years__pagination .ecl-page {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  text-decoration: none;
}
.ecl-years__pagination .ecl-page.is-active {
  font-weight: 700;
}

/* Hidden helper */
.ecl-acc__panel[hidden] {
  display: none;
}
