/* Catalog style "demo50" — rating + comments add-on: ruled strips, big tabular numbers, lime for the chosen score. Mirrors /demo50/. */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 10px; color: var(--muted); }
.post__rating { color: var(--ink); }
.post__rating-max { color: var(--muted); }
.post__comments { text-decoration: none; }
.post__comments:hover { text-decoration: underline; }

.post__flash { max-width: 720px; margin: 40px auto 0; }
.notice--ok { background: var(--lime); border-color: var(--ink); }

.rating, .comments { max-width: 720px; margin: 64px auto 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.rating__title, .comments__title { margin: 0 0 18px; font: 600 13px/1.2 var(--sans); }
.rating__score { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; }
.rating__avg { font: 600 clamp(64px, 9vw, 120px)/0.8 var(--sans); letter-spacing: -0.06em; }
.rating__max { color: var(--muted); }
.rating__count { margin-left: auto; color: var(--muted); }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.rating__scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); width: 100%; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.rating__legend { width: 100%; margin-bottom: 10px; padding: 0; color: var(--muted); }
.rating__opt { position: relative; }
.rating__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__num { display: grid; place-items: center; min-height: 52px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 600 20px/1 var(--sans); letter-spacing: -0.04em; cursor: pointer; transition: background .2s, color .2s; }
.rating__opt:hover .rating__num { background: var(--tint); }
.rating__input:checked + .rating__num { background: var(--lime); color: var(--ink); }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--ink); outline-offset: -4px; }
.rating__submit { cursor: pointer; background: none; font: inherit; text-transform: uppercase; }
.rating__mine { margin: 0; font: 400 18px/1.5 var(--serif); text-transform: none; letter-spacing: 0; }
.rating__mine-score { font: 600 1.6em/1 var(--sans); }

.comments__count { color: var(--muted); }
.comments__list { display: grid; margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.comment { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.comment__meta { display: flex; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; }
.comment__date { color: var(--muted); }
.comment__body { font: 400 18px/1.5 var(--serif); text-transform: none; letter-spacing: 0; }
.comments__empty { font: italic 400 18px/1.5 var(--serif); text-transform: none; letter-spacing: 0; color: var(--muted); }
.comment-form { display: grid; gap: 16px; }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { color: var(--muted); }
.comment-form__input, .comment-form__text { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: 400 18px/1.4 var(--serif); }
.comment-form__input { max-width: 380px; }
.comment-form__text { resize: vertical; min-height: 110px; border: 1px solid var(--ink); padding: 10px 12px; }
.comment-form__input:focus, .comment-form__text:focus { outline: none; background: #f6f2e2; box-shadow: inset 0 -2px 0 var(--ink); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__submit { cursor: pointer; font: inherit; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 10px 16px; border: 0; }
.comment-form__submit:hover { background: var(--lime); color: var(--ink); }
.comment-form__note { color: var(--muted); }

@media (max-width: 520px) {
    .rating__scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
