/* Catalog style "demo40" — rating + comments add-on: the score as brass-rimmed price tokens on a walnut ledge, comments as paper contact cards. Mirrors /demo40/. */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 14px 4px -10px; color: var(--muted); font: 500 12px/1.3 var(--label); letter-spacing: 0.06em; }
.post__rating { color: var(--lamp); }
.post__rating-avg { font: 500 22px/1 var(--serif); }
.post__rating-max { margin-left: 2px; color: var(--muted); }
.post__comments { text-decoration: none; }
.post__comments:hover { color: var(--lamp); text-decoration: underline; }

.post__flash { margin: 40px 0 0; }
.notice--ok { border-color: var(--lamp); color: var(--lamp); }

.rating { margin-top: 64px; padding: 28px clamp(20px, 4vw, 36px) 26px; border-radius: 4px; background: var(--ledge), var(--walnut); box-shadow: 0 30px 50px -24px rgb(0 0 0 / 0.95); }
.rating__title, .comments__title { margin: 0 0 14px; font: 500 40px/1 var(--serif); color: var(--warm); }
.rating__score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; }
.rating__avg { font: 500 72px/0.9 var(--serif); color: var(--lamp); text-shadow: 0 0 30px rgb(242 180 90 / 0.35); }
.rating__max { font: 500 22px/1 var(--serif); color: var(--muted); }
.rating__count { margin-left: 8px; color: var(--muted); font: 500 12px/1.3 var(--label); letter-spacing: 0.12em; 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: rgb(246 239 228 / 0.7); font: 500 12px/1.4 var(--label); letter-spacing: 0.1em; 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: 46px; height: 46px; border: 1px solid rgb(242 180 90 / 0.45); border-radius: 50%; background: rgb(0 0 0 / 0.25); font: 600 21px/1 var(--serif); color: var(--warm); cursor: pointer; transition: background-color 0.15s, color 0.15s, transform 0.15s; }
.rating__opt:hover .rating__num { border-color: var(--lamp); transform: translateY(-2px); }
.rating__input:checked + .rating__num { background: var(--lamp); border-color: var(--lamp); color: var(--ink); box-shadow: 0 0 22px rgb(242 180 90 / 0.5); }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--paper); outline-offset: 3px; }
.rating__submit { cursor: pointer; font-family: var(--label); }
.rating__mine { margin: 0; line-height: 1.5; color: var(--warm); }
.rating__mine-score { font: 500 1.8em/1 var(--serif); color: var(--lamp); }

.comments { margin-top: 64px; }
.comments__count { color: var(--brass); font-size: 0.6em; vertical-align: super; }
.comments__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 0 0 30px; padding: 0; list-style: none; }
.comment { padding: 18px 20px; border-radius: 6px; background: linear-gradient(170deg, var(--paper), #e6d8bf); color: var(--ink); box-shadow: 0 20px 34px -22px rgb(0 0 0 / 0.95); }
.comment__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px dashed rgb(36 27 20 / 0.25); font: 600 10.5px/1.3 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: #5d4c3c; }
.comment__author { color: var(--ink); font: 600 20px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
.comment__body { overflow-wrap: anywhere; }
.comments__empty { color: var(--muted); font: 500 italic 20px/1.4 var(--serif); }
.comment-form { display: grid; gap: 16px; padding: 24px clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 4px; background: rgb(31 25 19 / 0.7); }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { font: 600 11px/1.3 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lamp); }
.comment-form__input, .comment-form__text { width: 100%; padding: 11px 14px; border: 1px solid rgb(201 154 91 / 0.4); border-radius: 3px; background: var(--paper); 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 { border-color: var(--lamp); outline: none; box-shadow: 0 0 0 3px rgb(242 180 90 / 0.45); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__submit { cursor: pointer; font-family: var(--label); }
.comment-form__note { color: var(--muted); font-size: 13px; }
