/* HowVPS — repository directory (Repo Trends plugin): /repos, /repo/<slug>
   and the [repos] lists embedded in articles. Builds on the board / rows
   components in styles.css. */

.repo__owner { font-weight: 500; color: var(--ink-2); }
.repo__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h, 215) 70% 50%); margin-right: 6px; vertical-align: baseline; }
.repo__up { color: var(--up, #12805c); }
.repo__up .icon { color: inherit; }

.repo .item__title { overflow-wrap: anywhere; }
.repo .avatar--logo { border-radius: 10px; object-fit: cover; background: var(--surface-2, #f2f4f7); }
.repo .item__labels a.label:hover { color: var(--primary); }

.repo-rows--plain { margin: 0; padding: 0; list-style: none; }
.repo-rows--plain > li + li { border-top: 1px solid var(--line); }
.repo-rows--plain .row { border: 0; border-radius: 0; box-shadow: none; background: transparent; }

.segmented--sm .segmented__btn { padding-inline: 12px; font-size: 13px; }

.repo-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, #f7f8fa); font-size: 14px; color: var(--ink-2); }
.repo-note .icon { flex: none; margin-top: 2px; }
.repo-source { margin-top: 16px; font-size: 13px; color: var(--ink-3, var(--ink-2)); }

.repo-title { align-items: center; gap: 14px; overflow-wrap: anywhere; }
.repo-title .avatar { flex: none; border-radius: 12px; }

.repo-chart { margin: 12px 0 0; }
.repo-chart svg { display: block; width: 100%; height: 160px; }
.repo-chart__line { fill: none; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.repo-chart__area { fill: var(--primary); opacity: .1; }
.repo-chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }

.repo-growth { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 16px 0 0; }
.repo-growth dt { font-size: 13px; color: var(--ink-2); }
.repo-growth dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }

.repo-topics { margin-top: 16px; }

/* Inside article typography (.prose) the list must not inherit list bullets,
   link underlines or paragraph spacing. */
.repo-embed { margin: 28px 0; border: 1px solid var(--line, #e3e6eb); border-radius: 16px; background: var(--surface, #fff); overflow: hidden; }
.prose .repo-embed ol { margin: 0; padding: 0; list-style: none; }
.prose .repo-embed ol > li { margin: 0; padding: 0; }
.prose .repo-embed .item__labels li { margin: 0; }
.prose .repo-embed .item__title a { color: var(--ink); }
.prose .repo-embed li::marker { content: none; }
.prose .repo-embed h3 { margin: 0; padding: 0; border: 0; font-size: 16px; }
.prose .repo-embed p { margin: 0; }
.prose .repo-embed .item__desc { margin-top: 4px; }
.prose .repo-embed ul.item__labels { margin: 8px 0 0; padding: 0; list-style: none; }
.prose .repo-embed a { text-decoration: none; }
.prose .repo-embed .repo-source { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
    .repo .avatar { display: none; }
    .repo-growth { gap: 12px 20px; }
}

/* Long category names wrap instead of being cut; the date under the stars stays on one line. */
.widget--wrap .widget__name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.repo .row__side { flex: none; }
.repo .updated { white-space: nowrap; }
