/* Catalog style "depo0" — rating + comments add-on (loaded instead of _rate.css): a hairline ruler of ten big numbers, the score in yellow display type, comments as numbered FAQ rows. Mirrors /depo0/. */

/* card counters: one quiet line under the meta */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.post__rating { color: var(--ink); font-weight: 700; }
.post__rating-avg { color: var(--yellow); font: 900 17px/1 var(--display); letter-spacing: -0.02em; }
.post__rating-max { margin-left: 2px; color: var(--mute); font-weight: 400; }
.post__comments { color: var(--soft); text-decoration: none; }
.post__comments:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.post__flash { margin: 40px 0 0; }
.notice--ok { border-left-color: var(--green-hi); color: var(--ink); }

/* section heads: kicker number + display title, like the FAQ */
.rating, .comments { max-width: 1120px; margin-top: clamp(56px, 6vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.rating__title, .comments__title { margin: 0 0 22px; font: 900 clamp(34px, 4.4vw, 68px)/0.92 var(--display); letter-spacing: -0.035em; text-transform: uppercase; }
.rating__title::before, .comments__title::before { display: block; margin-bottom: 14px; color: var(--yellow); font: 700 12px/1 var(--text); letter-spacing: 0.24em; }
.rating__title::before { content: "Your verdict"; }
.comments__title::before { content: "Talk"; }

.rating__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 28px; }
.rating__avg { color: var(--yellow); font: 900 clamp(64px, 8vw, 128px)/0.85 var(--display); letter-spacing: -0.05em; }
.rating__max { color: var(--soft); font: 700 22px/1 var(--display); }
.rating__count { margin-left: 8px; color: var(--mute); font: 700 12px/1.4 var(--text); letter-spacing: 0.2em; text-transform: uppercase; }

.rating__form { display: grid; gap: 18px; }
.rating__scale { display: flex; flex-wrap: wrap; min-width: 0; margin: 0; padding: 0; border: 0; }
.rating__legend { width: 100%; margin-bottom: 14px; padding: 0; color: var(--soft); font-size: 14px; }
.rating__opt { position: relative; display: block; flex: 1 1 10%; min-width: 0; border-block: 1px solid var(--line); }
.rating__opt + .rating__opt { border-left: 1px solid var(--line); }
.rating__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__num {
    display: grid; place-items: center; min-height: clamp(56px, 6vw, 88px);
    color: var(--soft); font: 900 clamp(22px, 2.6vw, 40px)/1 var(--display); letter-spacing: -0.03em;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.rating__opt:hover .rating__num { background: rgb(255 255 255 / 0.06); color: var(--ink); }
.rating__input:checked + .rating__num { background: var(--yellow); color: var(--bg); }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--yellow); outline-offset: -4px; border-radius: 2px; }
.rating__input:checked:focus-visible + .rating__num { outline-color: var(--bg); }
.rating__submit { justify-self: start; border-color: var(--yellow); background: var(--yellow); color: var(--bg); font-family: var(--text); }
.rating__submit:hover { border-color: var(--ink); background: var(--ink); }
.rating__mine { margin: 0; color: var(--soft); line-height: 1.5; }
.rating__mine-score { color: var(--yellow); font: 900 1.8em/1 var(--display); }

/* comments: numbered rows between hairlines */
.comments__count { color: var(--yellow); font: 500 0.5em/1 var(--text); letter-spacing: 0.06em; vertical-align: super; }
.comments__list { counter-reset: c; margin: 0 0 40px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.comment { counter-increment: c; display: grid; grid-template-columns: var(--num) minmax(0, 1fr); padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment::before { content: counter(c, decimal-leading-zero); grid-row: 1 / span 2; padding-top: 3px; color: var(--mute); font: 500 14px/1 var(--text); letter-spacing: 0.08em; }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; color: var(--mute); font-size: 13px; }
.comment__author { color: var(--ink); font: 700 18px/1.2 var(--display); }
.comment__body { max-width: 62ch; color: var(--soft); overflow-wrap: anywhere; }
.comment__body p { margin: 0 0 10px; }
.comments__empty { margin: 0 0 32px; color: var(--soft); }

.comment-form { display: grid; gap: 20px; max-width: 760px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.comment-form__field { display: grid; gap: 8px; margin: 0; }
.comment-form__label { color: var(--yellow); font: 700 12px/1 var(--text); letter-spacing: 0.22em; text-transform: uppercase; }
.comment-form__input, .comment-form__text { width: 100%; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--field); color: var(--ink); font: 400 16px/1.5 var(--text); }
.comment-form__input { max-width: 380px; }
.comment-form__text { min-height: 130px; resize: vertical; }
.comment-form__input:hover, .comment-form__text:hover { border-color: rgb(255 255 255 / 0.5); }
.comment-form__input:focus, .comment-form__text:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgb(255 181 0 / 0.3); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.comment-form__submit { font-family: var(--text); }
.comment-form__note { color: var(--mute); font-size: 13px; }

@media (max-width: 560px) {
    .rating__opt { flex-basis: 20%; }
    .rating__opt:nth-child(n+7) { border-top: 0; }
    .rating__opt:nth-child(7) { border-left: 0; }
}
