/* components.css: reusable building blocks (boxes, posts, forms, gallery, comments). */

/* Box = border + title strip + body */
.box { border: 1px solid var(--ink); margin-bottom: 8px; background: #fff; }
.box h2 { margin: 0; padding: 4px; font-size: 11px; border-bottom: 1px solid var(--ink); }
.box .body { background: var(--panel); padding: 4px; }
.box ul { list-style: none; margin: 0; padding: 0; }

/* Post = a box with a grey title bar and roomy content */
.post h2 { background: var(--panel); }
.post .content { padding: 18px 16px; }
.post .content p { margin: 0 0 12px; }
.post.old h2 { border-bottom: 0; padding: 6px 4px; }

.placeholder { background: #bbb; display: grid; place-items: center; color: #555; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery .placeholder { height: 110px; }
.tracklist { padding-left: 22px; }

/* Forms */
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-weight: bold; margin-bottom: 3px; }
input, textarea { font: inherit; padding: 4px; border: 1px solid var(--ink); width: 100%; max-width: 360px; }
button { font: inherit; padding: 4px 12px; border: 1px solid var(--ink); background: var(--panel); cursor: pointer; }

/* Comments (used by <comment-section>) */
.comments { margin-top: 18px; border-top: 1px solid var(--ink); padding-top: 10px; }
.comments h3 { margin: 0 0 8px; font-size: 11px; }
.comment { border-bottom: 1px solid var(--panel); padding: 6px 0; }
.comment .meta { color: var(--muted); }
.comment .meta strong { color: var(--ink); }
.comment .text { white-space: pre-wrap; }
.comments .empty { color: #888; }
