/* Catalog style "demo43" — rating + comments add-on: dark cards, Cormorant Garamond numbers, the scale as round chips that turn champagne when chosen. Mirrors /demo43/. */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: -4px 0 12px; color: var(--faint); font-size: 13px; }
.post__rating { color: var(--ink); }
.post__rating-avg { font: 500 20px/1 var(--serif); }
.post__rating-max { margin-left: 2px; color: var(--faint); font-size: 12px; }
.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 { box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }

.rating { margin-top: 56px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.rating__title, .comments__title { margin: 0 0 14px; color: var(--ink); font: 500 clamp(30px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -0.015em; }
.rating__score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; }
.rating__avg { font: 400 clamp(64px, 7vw, 104px)/0.9 var(--serif); color: var(--ink); }
.rating__max { color: var(--faint); font: italic 400 22px/1 var(--serif); }
.rating__count { margin-left: 10px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.rating__scale { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.rating__legend { width: 100%; margin-bottom: 10px; padding: 0; color: var(--soft); font-size: 14px; }
.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-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule); font: 500 20px/1 var(--serif); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.rating__opt:hover .rating__num { box-shadow: inset 0 0 0 1px var(--soft); }
.rating__input:checked + .rating__num { background: var(--gold); color: var(--bg); box-shadow: none; }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--green); outline-offset: 3px; }
.rating__submit { cursor: pointer; background: none; color: var(--ink); font-family: var(--sans); }
.rating__mine { margin: 0; color: var(--soft); line-height: 1.5; }
.rating__mine-score { color: var(--ink); font: 500 1.8em/1 var(--serif); }

.comments { margin-top: 56px; }
.comments__count { color: var(--faint); font-style: italic; }
.comments__list { display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.comment { padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; color: var(--faint); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.comment__author { color: var(--ink); font: 500 20px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
.comment__body { color: var(--soft); overflow-wrap: anywhere; }
.comments__empty { color: var(--faint); font-style: italic; }
.comment-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); }
.comment-form__field { display: grid; gap: 8px; margin: 0; }
.comment-form__label { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.comment-form__input, .comment-form__text { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: inherit; }
.comment-form__input { max-width: 380px; }
.comment-form__text { resize: vertical; min-height: 120px; }
.comment-form__input:focus, .comment-form__text:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px rgb(217 196 156 / 0.35); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__submit { cursor: pointer; font-family: var(--sans); }
.comment-form__note { color: var(--faint); font-size: 13px; }
