.archive-dropdown { position: relative; }
.archive-trigger {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .65rem;
  padding: .4rem .7rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: transparent;
  color: var(--foreground, #f4f8f5);
  font: inherit;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.archive-trigger:hover, .archive-trigger[aria-expanded="true"] {
  border-color: var(--line, rgb(255 255 255 / 14%));
  background: rgb(255 255 255 / 7%);
  color: #86efac;
}
.archive-trigger:focus-visible, .archive-month:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 3px;
}
.archive-trigger svg {
  width: .72em;
  height: .72em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}
.archive-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.archive-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + .65rem);
  right: 0;
  width: min(21rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  padding: .8rem;
  border: 1px solid var(--line, rgb(255 255 255 / 14%));
  border-radius: .75rem;
  background: rgb(5 5 5 / 96%);
  color: var(--foreground, #f4f8f5);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 55%);
  backdrop-filter: blur(16px);
}
.archive-panel[hidden], .archive-posts[hidden] { display: none; }
.archive-heading { margin: .25rem .6rem .5rem; color: var(--soft, #9ca3af); font-size: .65rem; letter-spacing: .14em; }
.archive-month {
  display: flex;
  width: 100%;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: transparent;
  color: var(--foreground, #f4f8f5);
  font: inherit;
  font-size: .85rem;
  text-align: left;
  cursor: pointer;
}
.archive-month:hover, .archive-month[aria-expanded="true"] { border-color: rgb(255 255 255 / 12%); background: rgb(255 255 255 / 6%); }
.archive-count { color: var(--soft, #9ca3af); font-size: .72rem; }
.archive-posts { display: grid; gap: .2rem; margin: .25rem 0 .45rem; padding: 0 0 0 .75rem; list-style: none; }
.archive-posts li { display: flex; align-items: baseline; gap: .65rem; padding: .45rem .6rem; }
.archive-post-date { flex: 0 0 auto; color: var(--soft, #9ca3af); font-size: .7rem; }
.archive-posts a { color: var(--muted, #d1d5db); font-size: .8rem; line-height: 1.5; text-decoration: none; }
.archive-posts a:hover { color: #86efac; }
.archive-empty { margin: .75rem .6rem; color: var(--soft, #9ca3af); font-size: .8rem; }
@media (max-width: 760px) {
  .archive-trigger { font-size: clamp(18px, 5vw, 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .archive-trigger, .archive-trigger svg { transition: none; }
}
