/* Comments on a page: an event's, a town's or a venue's (services/eventPages.js commentsSection, public/event-page.js),
   in design tokens v2 with the shared buttons (/site-v2.css). Also the Report form and the date-of-birth step, which
   photos use too. */
.comments { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.comments h2 { display: flex; align-items: center; gap: 10px; }
.comment-total { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 13px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment-list:empty { display: none; }
.comment { padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-edge); }
.comment.own { border-color: var(--ink-3); }
.comment-meta { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 15px; }
.comment-meta time, .comment-edited { color: var(--ink-3); font-size: 14px; }
.comment-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); }
/* A venue writing as itself (plan P14, venue track V5): its logo and Verified venue mark; its replies indented under the
   comment they answer, joined to it by a line. */
.comment.is-reply { margin-left: 28px; position: relative; }
.comment.is-reply::before { content: ""; position: absolute; left: -16px; top: -10px; bottom: 50%; width: 12px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 10px; }
.comment.from-venue { border-color: var(--ink-3); }
.comment-venue { display: inline-flex; align-items: center; gap: 8px; }
.comment-venue a { color: var(--ink); text-decoration: none; }
.comment-venue a:hover { text-decoration: underline; }
.comment-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: #ffffff; }
.venue-mark { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 650; line-height: 1.6; white-space: nowrap; }
.comment-replied { color: var(--ink-3); font-size: 14px; }
@media (max-width: 520px) { .comment.is-reply { margin-left: 18px; } .comment.is-reply::before { left: -12px; width: 8px; } }
.comment-tools { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--ink-3); font-size: 14px; }
.comments-empty { margin: 0; color: var(--ink-3); }
.comment-join { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--ink-3); font-size: 15px; }
.comment-form, .comment-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.comment-form label { font-weight: 600; }
.comment-form textarea, .comment-edit textarea, .report-form select { width: 100%; border: 1px solid transparent; border-radius: 14px; background: var(--fill); color: var(--ink); font: inherit; }
.comment-form textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.comment-edit textarea { min-height: 72px; padding: 10px 12px; resize: vertical; }
.comment-form-foot, .comment-edit-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.comment-edit-foot { justify-content: flex-start; }
.comment-hint, .comment-status { color: var(--ink-3); font-size: 14px; }
.comment-status:empty { display: none; }
.link-button { min-height: 32px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.report-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.report-form label { width: 100%; }
.report-form select { width: auto; max-width: 100%; min-height: 40px; padding: 0 10px; }
/* An older account gives its date of birth once, right where it comments or shares a photo. */
.age-step { display: grid; gap: 8px; width: 100%; }
.age-label { display: grid; gap: 8px; font-weight: 600; }
.age-input { max-width: 220px; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 14px; background: var(--fill); color: var(--ink); font: inherit; }
.age-step .button { justify-self: start; }
.age-status { color: var(--ink-3); font-size: 14px; }
.age-status:empty { display: none; }
