/* Visibility Center — public pages.
 * Colours come from the active style (panel, forabg, row bg1/bg2, button) so
 * prosilver-based styles keep their palette; only layout and spacing are defined here.
 */

/* ---------- Discovery page ---------- */
.vc-discovery { width: 100%; }

.vc-disc-hero { border-radius: 8px; margin-bottom: 12px; }
.vc-disc-hero .inner { display: flex; align-items: center; gap: 14px; }
.vc-disc-hero-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; font-size: 24px; background: rgba(0, 0, 0, 0.06); }
.vc-disc-hero-icon .icon { font-size: inherit; }
.vc-disc-hero-text { min-width: 0; }
.vc-disc-hero .vc-disc-title { margin: 0 0 2px; padding: 0; border: 0; font-size: 1.6em; }
.vc-disc-hero p { margin: 0; opacity: 0.85; }
.vc-disc-scope { font-weight: normal; opacity: 0.75; }

.vc-disc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.vc-disc-filter-label { font-weight: bold; white-space: nowrap; }
.vc-disc-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.vc-disc-chips li { margin: 0; }
.vc-disc-chips .button { border-radius: 99px; padding: 3px 12px; font-weight: normal; }
.vc-disc-chips .vc-chip-active { font-weight: bold; box-shadow: inset 0 0 0 2px currentColor; }

.vc-disc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.vc-disc-grid .forabg { min-width: 0; margin: 0; border-radius: 8px; }
.vc-disc-card-head { display: flex; align-items: center; gap: 4px; font-weight: bold; }
.vc-disc-card ul.topiclist dt { width: 100%; margin-right: 0; }
.vc-disc-card ul.topiclist li.header dt .list-inner { margin-right: 0; padding-left: 6px; }

ol.vc-disc-list { list-style: none; margin: 0; padding: 0; }
ol.vc-disc-list li.row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; }
.vc-disc-rank { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; font-weight: bold; font-size: 0.95em; background: rgba(0, 0, 0, 0.07); margin-top: 1px; }
ol.vc-disc-list li.row:nth-child(-n+3) .vc-disc-rank { background: rgba(0, 0, 0, 0.14); }
.vc-disc-body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vc-disc-body .topictitle { display: inline-block; line-height: 1.35; }
.vc-disc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 0.95em; opacity: 0.85; }
.vc-disc-meta > span { display: inline-flex; align-items: center; white-space: nowrap; }
.vc-disc-growth { font-weight: bold; }
.vc-disc-empty { justify-content: center; font-style: italic; opacity: 0.8; padding: 14px 10px !important; }
.vc-disc-none { grid-column: 1 / -1; }
.vc-disc-note { margin: 14px 0 4px; font-size: 0.95em; opacity: 0.75; }

/* ---------- Related topics block (viewtopic) ---------- */
.vc-related { border-radius: 8px; margin-top: 10px; }
.vc-related ul.topiclist dt { width: 100%; margin-right: 0; }
.vc-related ul.topiclist li.header dt .list-inner { margin-right: 0; padding-left: 6px; }
ul.vc-related-list li.row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; overflow-wrap: anywhere; }
.vc-related-icon { flex: 0 0 auto; opacity: 0.6; }

@media (max-width: 900px) {
	.vc-disc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.vc-disc-hero .inner { align-items: flex-start; }
	.vc-disc-hero-icon { width: 38px; height: 38px; font-size: 18px; }
	.vc-disc-hero .vc-disc-title { font-size: 1.3em; }
	.vc-disc-filter-label { flex: 1 0 100%; }
}
