.les-archive {
  --lesa-ink: #12213a;
  --lesa-muted: #64748b;
  --lesa-line: #dce7f5;
  --lesa-blue: #2563eb;
  color: var(--lesa-ink);
  margin: 26px 0 38px;
}

.les-archive * {
  box-sizing: border-box;
}

.les-archive__hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(34, 211, 238, .3), transparent 28%),
    linear-gradient(135deg, #0d1b35 0%, #17356f 56%, #2563eb 100%);
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(30, 64, 175, .22);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  position: relative;
}

.les-archive__hero-orb {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
}

.les-archive__hero-orb--one {
  height: 190px;
  right: -55px;
  top: -80px;
  width: 190px;
}

.les-archive__hero-orb--two {
  bottom: -110px;
  height: 230px;
  right: 23%;
  width: 230px;
}

.les-archive__hero-copy,
.les-archive__stats {
  position: relative;
  z-index: 1;
}

.les-archive__eyebrow {
  color: #8be9ff;
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.entry-content .les-archive__hero h2,
.les-archive__hero h2 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  letter-spacing: -.045em !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.les-archive__hero p {
  color: rgba(235, 244, 255, .82) !important;
  font-size: 15px;
  line-height: 1.6;
  margin: 14px 0 0 !important;
  max-width: 650px;
}

.les-archive__stats {
  align-self: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.les-archive__stats div {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  min-width: 135px;
  padding: 16px;
}

.les-archive__stats strong {
  color: #fff;
  display: block;
  font-size: 27px;
  line-height: 1;
}

.les-archive__stats span {
  color: rgba(255, 255, 255, .72);
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  margin-top: 7px;
  text-transform: uppercase;
}

.les-archive__controls {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--lesa-line);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 36, 68, .08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 18px 0 24px;
  padding: 10px;
}

.les-archive__search {
  align-items: center;
  display: flex;
  flex: 1 1 280px;
  min-width: 0;
  position: relative;
}

.les-archive__search span {
  border: 2px solid #72839d;
  border-radius: 50%;
  height: 15px;
  left: 14px;
  position: absolute;
  width: 15px;
}

.les-archive__search span::after {
  background: #72839d;
  content: "";
  height: 2px;
  position: absolute;
  right: -6px;
  top: 11px;
  transform: rotate(45deg);
  width: 7px;
}

.les-archive__search input {
  background: #f5f8fc;
  border: 1px solid #dbe5f2;
  border-radius: 13px;
  color: var(--lesa-ink);
  font-size: 14px;
  height: 46px;
  outline: 0;
  padding: 0 14px 0 42px;
  width: 100%;
}

.les-archive__search input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.les-archive__filters {
  display: flex;
  gap: 5px;
}

.les-archive__filters button {
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: #53647d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  padding: 0 15px;
}

.les-archive__filters button.is-active {
  background: #172d56;
  color: #fff;
  box-shadow: 0 7px 16px rgba(23, 45, 86, .18);
}

.les-archive__timeline {
  display: grid;
  gap: 18px;
}

.les-archive__day {
  background: linear-gradient(145deg, #f8fbff, #fff);
  border: 1px solid var(--lesa-line);
  border-radius: 24px;
  box-shadow: 0 15px 34px rgba(31, 55, 91, .06);
  overflow: hidden;
}

.les-archive__day[hidden],
.les-archive__event[hidden] {
  display: none !important;
}

.les-archive__day-head {
  align-items: center;
  background: linear-gradient(90deg, #edf5ff, #f8fbff);
  border-bottom: 1px solid var(--lesa-line);
  display: flex;
  gap: 14px;
  padding: 15px 18px;
}

.les-archive__date-tile {
  align-items: center;
  background: linear-gradient(145deg, #1e3a70, #2563eb);
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex: 0 0 54px;
  flex-direction: column;
  height: 54px;
  justify-content: center;
}

.les-archive__date-tile strong {
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.les-archive__date-tile span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  margin-top: 4px;
  text-transform: uppercase;
}

.entry-content .les-archive__day h3,
.les-archive__day h3 {
  color: var(--lesa-ink) !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.les-archive__day-head p {
  color: var(--lesa-muted) !important;
  font-size: 11px;
  margin: 5px 0 0 !important;
  text-transform: capitalize;
}

.les-archive__events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.les-archive__event {
  align-items: center;
  border-bottom: 1px solid #e8eef7;
  display: grid;
  gap: 13px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 16px 18px;
}

.les-archive__event:nth-child(odd) {
  border-right: 1px solid #e8eef7;
}

.les-archive__poster {
  align-items: center;
  background: linear-gradient(145deg, #1e3a70, #06b6d4);
  border-radius: 12px;
  display: flex;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none !important;
  width: 54px;
}

.les-archive__poster img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.les-archive__poster span {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.les-archive__event-copy {
  min-width: 0;
}

.les-archive__event-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}

.les-archive__event-meta time {
  color: var(--lesa-blue);
  font-size: 11px;
  font-weight: 850;
}

.les-archive__age-badge {
  align-items: center;
  background: linear-gradient(135deg, #ff5266, #d91f3d);
  border: 1px solid rgba(185, 17, 51, .18);
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(217, 31, 61, .18);
  color: #fff;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .02em;
  line-height: 1;
  min-height: 19px;
  padding: 4px 6px;
}

.les-archive__status {
  background: #e5edfa;
  border-radius: 999px;
  color: #52637d;
  font-size: 9px;
  font-weight: 850;
  padding: 4px 7px;
  text-transform: uppercase;
}

.les-archive__event.is-past .les-archive__status {
  background: #dcfce7;
  color: #15803d;
}

.entry-content .les-archive__event h4,
.les-archive__event h4 {
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.les-archive__event h4 a {
  color: var(--lesa-ink) !important;
  text-decoration: none !important;
}

.les-archive__event h4 a:hover {
  color: var(--lesa-blue) !important;
}

.les-archive__event-copy > p {
  color: var(--lesa-muted) !important;
  font-size: 10px;
  line-height: 1.35;
  margin: 5px 0 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.les-archive__event-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.les-archive__remaining {
  color: #f97316;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.les-archive__event.is-past .les-archive__remaining {
  display: none;
}

.les-archive__event-actions > a {
  align-items: center;
  background: #edf4ff;
  border: 1px solid #d5e4fb;
  border-radius: 10px;
  color: var(--lesa-blue) !important;
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  text-decoration: none !important;
  width: 34px;
}

.les-archive__empty,
.les-archive__nothing {
  background: #f8fbff;
  border: 1px dashed #b8c9e3;
  border-radius: 20px;
  color: var(--lesa-muted);
  padding: 34px;
  text-align: center;
}

.les-archive__empty strong,
.les-archive__nothing strong {
  color: var(--lesa-ink);
  display: block;
  font-size: 18px;
}

.les-archive__nothing span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

html[data-lacorn-theme="dark"] .les-archive,
body.lacorn-dark-theme .les-archive {
  --lesa-ink: #f2f6fc;
  --lesa-muted: #9cafc7;
  --lesa-line: #263b58;
}

html[data-lacorn-theme="dark"] .les-archive__controls,
html[data-lacorn-theme="dark"] .les-archive__day,
body.lacorn-dark-theme .les-archive__controls,
body.lacorn-dark-theme .les-archive__day {
  background: #0e1b2d;
  border-color: var(--lesa-line);
}

html[data-lacorn-theme="dark"] .les-archive__day-head,
body.lacorn-dark-theme .les-archive__day-head {
  background: linear-gradient(90deg, #14253d, #102036);
}

html[data-lacorn-theme="dark"] .les-archive__search input,
body.lacorn-dark-theme .les-archive__search input {
  background: #13243b;
  border-color: #2a405f;
  color: #f2f6fc;
}

html[data-lacorn-theme="dark"] .les-archive__event,
body.lacorn-dark-theme .les-archive__event {
  border-color: #223752;
}

html[data-lacorn-theme="dark"] .les-archive__event-actions > a,
body.lacorn-dark-theme .les-archive__event-actions > a {
  background: #142a49;
  border-color: #29496f;
}

@media (max-width: 820px) {
  .les-archive__hero {
    grid-template-columns: 1fr;
  }

  .les-archive__stats {
    width: 100%;
  }

  .les-archive__controls {
    align-items: stretch;
    flex-direction: column;
  }

  .les-archive__search {
    flex-basis: auto;
  }

  .les-archive__filters button {
    flex: 1 1 0;
  }

  .les-archive__events {
    grid-template-columns: 1fr;
  }

  .les-archive__event:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .les-archive {
    margin: 20px -4px 32px;
  }

  .les-archive__hero {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .entry-content .les-archive__hero h2,
  .les-archive__hero h2 {
    font-size: 32px !important;
  }

  .les-archive__hero p {
    font-size: 13px;
  }

  .les-archive__stats div {
    min-width: 0;
    padding: 13px;
  }

  .les-archive__stats strong {
    font-size: 23px;
  }

  .les-archive__controls {
    border-radius: 17px;
    padding: 8px;
  }

  .les-archive__filters {
    overflow-x: auto;
  }

  .les-archive__filters button {
    min-width: max-content;
    padding: 0 12px;
  }

  .les-archive__day {
    border-radius: 19px;
  }

  .les-archive__day-head {
    padding: 13px;
  }

  .les-archive__event {
    gap: 10px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 13px;
  }

  .les-archive__poster {
    border-radius: 10px;
    height: 62px;
    width: 46px;
  }

  .les-archive__event-actions {
    gap: 5px;
  }

  .les-archive__remaining {
    font-size: 9px;
    max-width: 76px;
    text-align: right;
    white-space: normal;
  }

  .les-archive__event-actions > a {
    height: 31px;
    width: 31px;
  }
}
