/* Ohoney release notes — one entry per day, in-app aesthetic.
   Uses styles.css tokens (--bg, --text, --border, etc.). */

.cl-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 28px 96px;
}

/* ── Page head ───────────────────────────────────────────────────────── */
.cl-page-head { margin: 0 0 28px; }
.cl-page-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cl-page-sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Day list ────────────────────────────────────────────────────────── */
.cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-day {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.cl-day:first-child { border-top: 0; padding-top: 0; }

.cl-day-date {
  padding-top: 14px;
  color: var(--text-soft);
}
.cl-day-date strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cl-day-date small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-faint, var(--text-soft));
  font-weight: 400;
}

/* ── Day card ────────────────────────────────────────────────────────── */
.cl-day-card {
  background: var(--bg-soft, rgba(0, 0, 0, 0.025));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.12s ease;
}
.cl-day-card:hover { border-color: var(--border-strong, rgba(0, 0, 0, 0.15)); }

.cl-day-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.cl-day-summary::-webkit-details-marker { display: none; }
.cl-day-summary::marker { content: ""; }

.cl-day-subject {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.cl-day-count {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.cl-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: transform 0.18s ease, color 0.12s ease;
}
.cl-day-card[open] .cl-day-summary .cl-caret {
  transform: rotate(180deg);
  color: var(--text);
}
.cl-day-card:hover .cl-caret { color: var(--text); }

/* ── Expanded body ──────────────────────────────────────────────────── */
.cl-day-body {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg, #fff);
  animation: cl-expand 0.18s ease-out;
}
@keyframes cl-expand {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cl-day-why {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  font-style: italic;
}

.cl-day-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-day-details li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.cl-day-details li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-soft);
}

/* ── Empty / error / skeleton ─────────────────────────────────────────── */
.cl-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  border-top: 1px solid var(--border);
}
.cl-empty strong { color: var(--text); display: block; margin-bottom: 4px; }

.cl-skel { pointer-events: none; padding: 14px 16px; }
.cl-skel-line {
  display: block;
  height: 12px;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  background: linear-gradient(
    90deg,
    var(--bg-soft, rgba(0, 0, 0, 0.04)) 0%,
    var(--border, rgba(0, 0, 0, 0.08)) 50%,
    var(--bg-soft, rgba(0, 0, 0, 0.04)) 100%
  );
  background-size: 200% 100%;
  animation: cl-shimmer 1.6s ease-in-out infinite;
}
.cl-skel-line:last-child { margin-bottom: 0; }
.cl-skel-line-short { width: 60%; }
.cl-skel-line-date  { width: 80%; height: 11px; }
@keyframes cl-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .cl-page { padding: 24px 16px 64px; }
  .cl-day {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
  .cl-day-date { padding-top: 0; }
  .cl-day-date strong { display: inline; font-size: 14px; }
  .cl-day-date small  { display: inline; margin-left: 8px; }
  .cl-day-summary {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .cl-day-count { display: none; }
}
