/* Catalog style "demo42" — rating + comments add-on: Bodoni numerals in pill shelves, comments on glass plates with a gold edge. Mirrors /demo42/. */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -2px 0 10px; color: var(--soft); font-size: 12px; letter-spacing: 0.1em; }
.post__rating { color: var(--ink); }
.post__rating-avg { font: 600 20px/1 var(--serif); color: var(--gold); }
.post__rating-max { margin-left: 1px; color: var(--soft); }
.post__comments { text-decoration: none; }
.post__comments:hover { color: var(--gold); }

.post__flash { margin: 40px 0 0; }
.notice--ok { border-color: var(--green); color: #8ee09f; }

.rating { margin-top: 56px; padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.rating__title, .comments__title { margin: 0 0 14px; font: 500 38px/1 var(--serif); }
.rating__score { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; }
.rating__avg { font: 500 80px/0.9 var(--serif); color: var(--gold); }
.rating__max { font: 500 26px/1 var(--serif); color: var(--soft); }
.rating__count { margin-left: 10px; color: var(--soft); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.rating__scale { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.rating__legend { width: 100%; margin-bottom: 10px; padding: 0; color: var(--soft); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.rating__opt { position: relative; }
.rating__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__num { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px; font: 500 20px/1 var(--serif); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.rating__opt:hover .rating__num { border-color: var(--gold); color: var(--gold); }
.rating__input:checked + .rating__num { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--gold); outline-offset: 3px; }
.rating__submit { cursor: pointer; background: none; border: 0; color: var(--gold); font-family: inherit; }
.rating__mine { margin: 0; line-height: 1.5; color: var(--soft); }
.rating__mine-score { font: 500 2.2em/1 var(--serif); color: var(--gold); }

.comments { margin-top: 64px; }
.comments__count { color: var(--soft); font-weight: 500; }
.comments__list { display: grid; gap: 0; margin: 0 0 32px; padding: 0; list-style: none; }
.comment { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 4px; background: var(--panel); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.comment__author { font: 500 20px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.comment__body { overflow-wrap: anywhere; }
.comments__empty { color: var(--soft); }
.comment-form { display: grid; gap: 16px; }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.comment-form__input, .comment-form__text { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: rgb(0 0 0 / 0.35); color: var(--ink); font: inherit; }
.comment-form__input { max-width: 360px; }
.comment-form__text { resize: vertical; min-height: 120px; }
.comment-form__input:focus, .comment-form__text:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgb(255 181 0 / 0.25); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.comment-form__submit { cursor: pointer; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--gold); color: var(--bg); font-family: inherit; }
.comment-form__submit::after { display: none; }
.comment-form__note { color: var(--soft); font-size: 13px; }
