/* ============================================================
   Decode — digest styling (on top of the Quarto "sketchy" theme)
   ============================================================ */

/* --- Digest item card ------------------------------------- */
.digest-item {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.digest-item:hover {
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.digest-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.digest-item-title {
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.digest-item-title:hover {
  text-decoration: underline;
}

.digest-item-source {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  white-space: nowrap;
}

/* --- TLDR / Why labels ------------------------------------ */
.digest-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.55rem;
  vertical-align: middle;
}
.digest-label.tldr {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.digest-label.why {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

/* --- Tags --------------------------------------------------- */
.digest-tags {
  margin-top: 0.65rem;
}
.digest-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  margin: 0.1rem 0.3rem 0.1rem 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  opacity: 0.75;
}

/* --- Sample-edition note ------------------------------------ */
.edition-note {
  font-style: italic;
  opacity: 0.7;
  margin: 0.25rem 0 1rem;
}
