
:root{ --qdb-orange:#f59e0b; --qdb-orange-dark:#d97706; --qdb-orange-light:#fff7ed; }
.qdb-wall .qdb-main-title { margin: 0 0 .25rem; padding-bottom:.25rem; border-bottom:3px solid var(--qdb-orange); font-weight:800; }
.qdb-source-line { margin-bottom: .5rem; color:#374151; font-size:.95rem; }
.qdb-topvoted-title{ margin: .25rem 0 .25rem; font-size:1.05rem; }

/* masonry */
.qdb-wall .qdb-grid { display:block; }
.qdb-masonry .qdb-grid { column-count: 4; column-gap: 10px; }
.qdb-cols-2.qdb-masonry .qdb-grid { column-count: 2; }
.qdb-cols-3.qdb-masonry .qdb-grid { column-count: 3; }
.qdb-cols-4.qdb-masonry .qdb-grid { column-count: 4; }
.qdb-cols-5.qdb-masonry .qdb-grid { column-count: 5; }
.qdb-cols-6.qdb-masonry .qdb-grid { column-count: 6; }

.qdb-card { display:inline-block; width:100%; margin:0 0 10px; background:#fff; border-radius:14px; padding:6px; border:1px solid #f59e0b; box-shadow:0 1px 1px rgba(0,0,0,.03); }
.qdb-card:hover { background: var(--qdb-orange-light); }
.qdb-card img.qdb-img { width:100%; height:auto; display:block; border-radius:10px; }
.qdb-cap { font-size:.9rem; margin-top:.35rem; color:#111827; }

/* voto sotto */
.qdb-vote-bottom { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:6px; }
.qdb-vote-btn { background:#fff; border:1px solid #f59e0b; border-radius:999px; padding:4px 8px; cursor:pointer; line-height:1; font-size:16px; }
.qdb-vote-btn.is-active { background: var(--qdb-orange); border-color: var(--qdb-orange-dark); }
.qdb-vote-count { font-weight:600; }

/* mini-griglia riassunto voti (solo >=minvotes) */
.qdb-summary { display:grid; grid-template-columns:repeat(8,1fr); gap:6px; margin:4px 0 12px; }
.qdb-summary .qdb-mini { width:100%; height:auto; border-radius:8px; border:1px solid #f59e0b; }
.qdb-summary-cell { text-align:center; font-size:.85rem; }
.qdb-mini-votes { margin-top:2px; }

.qdb-wall-empty { padding:10px; background:#fff3e8; border:1px dashed var(--qdb-orange-dark); border-radius:8px; }
.qdb-collage { width:100%; height:auto; border-radius:12px; border:1px solid #f59e0b; box-shadow:0 1px 2px rgba(0,0,0,.04); }
