/* THE DIARY COUNTS WHAT HE HAS NOT READ — js/diary-reading.js
   (the author, 2026-10-15). */

/* a tab's number = what is unread there; nothing unread, no number.
   Ink, not red: red is for the stamps. */
#diaryPanel .diary-tab .n {
  background: var(--ink-faded);
  color: var(--paper);
  border-radius: 7px;
  padding: 1px 6px;
}
#diaryPanel .diary-tab.on .n { background: var(--ink); }
#diaryPanel .diary-tab .n.dr-zero { display: none; }

/* an unread case / report: a highlighter stroke across the card and a
   blue-pen bar in the margin; read, it is plain paper again */
#diaryPanel .diary-qr.sq-unread {
  background: linear-gradient(100deg, rgba(240, 214, 110, 0.30), rgba(240, 214, 110, 0.12) 70%, transparent);
  box-shadow: inset 3px 0 0 var(--blue-pen);
}
#diaryPanel .diary-qr.sq-unread:hover {
  background: linear-gradient(100deg, rgba(240, 214, 110, 0.38), rgba(240, 214, 110, 0.16) 70%, transparent);
}
#diaryPanel .diary-qr.sq-unread .diary-qc { border-color: var(--blue-pen); }

/* "new" / "updated" / "closed" — a note in his hand, not a stamp */
#diaryPanel .diary-tg.st-new {
  font-family: 'Caveat', cursive;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  text-transform: none;
  color: var(--blue-pen);
  background: none; border: none;
  padding: 0 4px 0 0;
  transform: rotate(-3deg);
  display: inline-block;
}
#diaryPanel .sq-done li.sq-is-new .sq-lt { color: var(--ink); }
