/* Trending AI Repos — tool-specific styles only.
   Shared chrome: ../assets/css/tool-chrome.css */

.post-select {
  font: inherit;
  font-size: 0.82rem;
  min-height: 2.1rem;
  max-width: min(32rem, 100%);
  min-width: 0;
  padding: 0.3rem 0.5rem;
  background: var(--paper-raised, var(--paper));
  color: var(--ink);
  border: 1px solid var(--rule-strong, var(--rule));
  border-radius: var(--radius-sm, 8px);
}
.post-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.toolbar-btn:disabled:hover { border-color: inherit; color: inherit; }
.app-toolbar__menus { align-items: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.post { max-width: 46rem; }
.post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0 0 0.35rem;
}
.post-title { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.workspace .post-lead { font-size: 1.05rem; font-family: inherit; color: var(--ink); margin: 0 0 1rem; }
.workspace .post-body p { font-family: inherit; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 0.8rem; overflow-wrap: anywhere; }

.post-stats { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.post-stats h3 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.5rem; }
.stat-block + .stat-block { margin-top: 1.1rem; }
.topic-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.topic-chip {
  font-family: var(--font-mono); font-size: 0.78rem; padding: 0.2rem 0.55rem;
  border: 1px solid var(--rule-strong, var(--rule)); border-radius: var(--radius-sm, 8px); color: var(--ink);
}
.topic-chip b { color: var(--accent, var(--ink)); margin-left: 0.3rem; }
.repo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.repo-item { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; align-items: baseline; font-size: 0.9rem; }
.repo-item a { color: var(--ink); font-weight: 600; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.repo-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }

.empty-note { color: var(--ink-soft); padding: 1.5rem 0; }

.source-note { max-width: 46rem; margin: 0 auto 0.5rem; line-height: 1.5; text-align: left; }
.source-stand { margin-top: 0.5rem; }
@media (max-width: 480px) {
  .post-title { font-size: 1.25rem; }
  .app-toolbar__menus { width: 100%; }
  .post-select { flex: 1 1 100%; max-width: 100%; }
}
