/*
 * Catalog style "demo30" — rating + comments add-on (loaded instead of _rate.css). The DEPO UI kit:
 * the 1–10 scale is pagination #001 (square boxes, the chosen one filled green), the score a big
 * glowing number, comments are kit cells with a yellow mono byline, the form reads like the editor panel.
 */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -2px 0 10px; color: var(--mute); font: 11.5px var(--mono); }
.post__rating { color: var(--yellow); }
.post__rating-avg { font-weight: 600; font-size: 13px; }
.post__rating-max { margin-left: 1px; opacity: .6; }
.post__comments { text-decoration: none; }
.post__comments:hover { color: var(--green); }

.post__flash { margin: 40px 0 0; }
.notice--ok { border-color: rgb(83 245 126 / 0.5); color: var(--green); }

.rating { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--cell); }
.rating__title, .comments__title { margin: 0 0 14px; font: 600 26px/1.15 var(--head); letter-spacing: -0.01em; }
.rating__score { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; }
.rating__avg { font: 600 64px/1 var(--head); letter-spacing: -0.04em; color: var(--green); text-shadow: 0 0 30px rgb(83 245 126 / 0.35); }
.rating__max { color: var(--mute); font: 16px var(--mono); }
.rating__count { margin-left: 10px; color: var(--mute); font: 12px var(--mono); }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.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(--green); font: 11px var(--mono); letter-spacing: 0.12em; 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: 44px; height: 44px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 15px var(--head); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.rating__opt:hover .rating__num { box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.rating__input:checked + .rating__num { background: var(--green); color: var(--bg); box-shadow: 0 6px 20px -8px var(--green); }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--yellow); outline-offset: 2px; }
.rating__submit { cursor: pointer; font-family: var(--head); }
.rating__mine { margin: 0; color: var(--mute); }
.rating__mine-score { color: var(--green); font: 600 1.6em var(--head); }

.comments { margin-top: 48px; }
.comments__count { color: var(--yellow); font: 14px var(--mono); }
.comments__list { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.comment { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cell); }
.comment__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; color: var(--mute); font: 11.5px var(--mono); }
.comment__author { color: var(--yellow); font-weight: 600; }
.comment__body { overflow-wrap: anywhere; }
.comments__empty { color: var(--mute); }
.comment-form { display: grid; gap: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgb(20 19 22 / 0.7); }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { color: var(--green); font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.comment-form__input, .comment-form__text { width: 100%; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 8px; background: #26252a; color: #fff; font: inherit; }
.comment-form__input { max-width: 360px; }
.comment-form__text { resize: vertical; min-height: 110px; }
.comment-form__input:focus, .comment-form__text:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgb(83 245 126 / 0.25); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__submit { cursor: pointer; font-family: var(--head); }
.comment-form__note { color: var(--mute); font-size: 13px; }
