/* ──────────────────────────────────────────────────────────────
   archive-list.css — construal shared reading-card styles
   Used by: front.html, readings/index.html
   ────────────────────────────────────────────────────────────── */

/* list container */
.archive {
  list-style: none;
  padding: 0; margin: 0;
  width: 100%; max-width: 100%;
  counter-reset: a-counter;
}

/* card: stacked (image top, content below) */
.archive li {
  display: block;
  position: relative;
  padding: 2rem 0 2.4rem;
  border-bottom: 1px solid var(--rule-soft);
  counter-increment: a-counter;
  cursor: pointer;
}
.archive li:first-child { border-top: 1px solid var(--rule); }
.archive li:hover .item-title { color: var(--link); }
.archive li:hover .thumb img  { opacity: 1; }

/* thumbnail: full width */
.archive .thumb { width: 100%; }
.archive .thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--rule);
  opacity: 0.82;
  transition: opacity 0.15s;
}
.archive .thumb-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-tint);
  border: 1px dashed var(--rule-soft);
}

/* content below image */
.archive .item-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 1rem;
}

/* title */
.archive .item-title {
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.22;
  color: var(--text);
  transition: color 0.12s;
}
.archive .item-title .a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
  font-style: italic;
}

/* meta row */
.archive .item-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-style: italic;
  color: var(--muted);
  font-size: 0.88rem;
}
.archive .item-meta .d {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.archive .item-meta .r { margin-left: auto; color: var(--accent, var(--link)); }
.archive .item-meta .r:after { content: "  →"; color: var(--muted); }

/* synthesis snippet */
.archive .synthesis-row {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* delete button (shown only for admins via isAdmin option) */
.archive .del-btn {
  position: absolute;
  top: 0.75rem; right: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  padding: 0.2em 0.4em;
  line-height: 1;
}
.archive li:hover .del-btn { opacity: 1; }
.archive .del-btn:hover { color: var(--err, #e88080); opacity: 1; }

@media (max-width: 580px) {
  .archive li { padding: 1.4rem 0 1.8rem; }
}
