/* Sha Diary — tree view (aligned with investment daily-gemini tree-daily) */
.tree-diary.tree-daily {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0.5rem;
}

.tree-diary.tree-daily details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.tree-diary.tree-daily details > summary::-webkit-details-marker { display: none; }

/* Day = top-level folder (match former .diary-content h2 bar) */
.tree-diary-day-sum {
  font-size: 1.05em;
  font-weight: 700;
  color: #24292e;
  margin: 12px 0 8px;
  padding: 8px 14px;
  background: #f6f8fa;
  border-left: 5px solid #0366d6;
  border-radius: 0 6px 6px 0;
}
.tree-diary-day-sum:hover { filter: brightness(0.97); }

.tree-diary-day-body {
  padding-left: 1.4rem;
  border-left: 2px solid #e0e0e0;
  margin: 2px 0 4px 0.6rem;
}

/* Section under a day (match former .diary-content h3) */
.tree-diary-section-sum {
  font-size: 0.88em;
  font-weight: 700;
  color: #24292e;
  margin: 10px 0 4px;
  padding: 0 0 0 10px;
  border-left: 3px solid #d1d5da;
  border-radius: 0;
}
.tree-diary-section-sum:hover { background: rgba(0, 0, 0, 0.03); }

.tree-diary-section-body {
  padding-left: 1rem;
  border-left: 2px dashed #d1d5da;
  margin: 2px 0 8px 0.45rem;
}

.tree-diary-section-body > *:first-child { margin-top: 6px; }

/* ── Inline tags (parsed from heading text) ────── */
.diary-inline-tags {
  margin-left: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}
.diary-inline-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ddf4ff;
  color: #0969da;
  border: 1px solid #b6e3ff;
  line-height: 1.5;
  white-space: nowrap;
}
