/* 完整數據表's post rows: a title that opens the detail, one quiet line of facts, and views as a bar that compares at a
   glance. The bar is a <progress>, so the strict CSP needs no inline width. The table's frame and its phone cards are
   in app.css. */
.insights-post-toggle {
  display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; font-weight: 700; line-height: 1.45; text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
.insights-post-toggle:hover { color: var(--blue); }
.insights-post-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.insights-post-toggle.is-textless { color: var(--muted); font-weight: 400; }
.insights-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.insights-post-meta .hint { margin: 0; }
.insights-post-meta .tag { padding: 0 8px; font-size: 12px; line-height: 1.6; }

.insights-table th[aria-sort="descending"] { color: inherit; }
.insights-table th[aria-sort="descending"]::after { content: " ↓"; }

.insights-table > tbody > tr > .insights-views { width: 190px; }
.insights-bar {
  display: block; width: 100%; height: 4px; margin-top: 6px; border: 0; border-radius: 3px; overflow: hidden;
  appearance: none; background: var(--line); color: var(--blue);
}
.insights-bar::-webkit-progress-bar { background: var(--line); }
.insights-bar::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
.insights-bar::-moz-progress-bar { background: var(--blue); border-radius: 3px; }

/* The title opens the detail, so a closed post takes no second line. */
.insights-detail > summary { display: none; }
.insights-table > tbody > tr > .insights-detail-cell { padding-top: 0; padding-bottom: 0; }
.insights-detail[open] { padding-bottom: 10px; }

.insights-rate-note { margin: 10px 0 0; }

/* Room between the numbers, and the short ones level with the post, where the table has the width for it. */
@media (min-width: 701px) {
  .insights-table > thead > tr > .num, .insights-table > tbody > tr > .num { padding-left: 20px; }
  .insights-table > tbody > .insights-row > td { vertical-align: middle; }
}
@media (max-width: 700px) {
  .insights-table > tbody > tr > .insights-views { width: auto; }
}
