/* Archive and day-navigation styles. Written only into the output tree. */

.header-archive {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.header-archive:hover { color: var(--text); }
.header-archive[aria-current="page"] { color: var(--text); }

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); }

.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
}
.day-nav a {
  color: var(--muted);
  text-decoration: none;
}
.day-nav a:hover { color: var(--text); }
.day-nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.day-nav .is-disabled {
  color: var(--muted);
  opacity: 0.4;
  pointer-events: none;
}

.day.day--solo { margin-bottom: 16px; }

.archive-month { margin: 0 0 32px; }

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-cards);
}

.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  padding: 14px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.archive-row:hover { border-color: var(--card-hover); }

.archive-row-body { min-width: 0; flex: 1 1 auto; }

.archive-date {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-count {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .archive-row { transition: none; }
}

@media (max-width: 640px) {
  .archive-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 6px;
  }
  .archive-summary {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
