/*
 * Catalog style "demo11" — rating + comments add-on (loaded instead of _rate.css when
 * index.php?style=demo11 is shown). Mirrors /demo11/ like demo11.css.
 */
/* rating + comments: on the dark half — Bodoni numerals in a hairline row, the yellow marks the choice */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: -2px 0 10px; color: var(--mute-d); font-size: 14px; }
.post__rating { color: var(--paper); }
.post__rating-avg { font: 400 22px/1 var(--display); }
.post__rating-max { margin-left: 2px; color: var(--mute-d); font-size: 13px; }
.post__comments { text-decoration: underline; text-decoration-color: var(--k3); text-underline-offset: 4px; }
.post__comments:hover { color: var(--paper); text-decoration-color: var(--y); }

.post__flash { margin: 48px 0 0; }
.notice--ok { border-top-color: var(--y); color: var(--paper); }

.rating, .comments { margin-top: 64px; padding-top: 22px; border-top: 2px solid var(--y); }
.rating__title, .comments__title { margin: 0 0 18px; color: var(--paper); font: 400 clamp(36px, 3.4vw, 52px)/1 var(--display); letter-spacing: -0.015em; }
.rating__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 26px; }
.rating__avg { color: var(--paper); font: 400 clamp(84px, 8vw, 128px)/0.85 var(--display); letter-spacing: -0.03em; }
.rating__max { color: var(--mute-d); font: italic 400 26px/1 var(--display); }
.rating__count { color: var(--mute-d); font-size: 15px; }
.rating__form { display: grid; gap: 18px; justify-items: start; }
.rating__scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1px; width: 100%; min-width: 0; margin: 0; padding: 1px; border: 0; }
.rating__legend { width: 100%; margin-bottom: 12px; padding: 0; color: var(--mute-d); font-size: 15px; }
.rating__opt { position: relative; display: block; min-width: 0; }
.rating__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.rating__num {
    position: relative; display: grid; place-items: center; min-height: 64px; background: var(--k); box-shadow: 0 0 0 1px var(--k3); color: #dedbd7;
    font: 400 clamp(24px, 2vw, 30px)/1 var(--display); cursor: pointer; transition: background 200ms ease, color 200ms ease;
}
.rating__opt:hover .rating__num { background: var(--k2); color: var(--paper); font-style: italic; }
.rating__input:checked + .rating__num { background: var(--y); color: var(--ink); font-style: italic; }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--paper); outline-offset: -6px; }
.rating__opt.is-mine .rating__num::after { content: ""; position: absolute; bottom: 9px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.rating__submit { padding: 0; border: 0; background: none; color: var(--paper); cursor: pointer; }

.comments__count { margin-left: 4px; color: var(--y); font: 700 18px/1 var(--text); vertical-align: super; }
.comments__list { margin: 0 0 32px; padding: 0; list-style: none; }
.comment { padding: 20px 0 22px; border-bottom: 1px solid var(--k3); }
.comment:first-child { padding-top: 6px; }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 8px; color: var(--mute-d); font-size: 14px; }
.comment__author { color: var(--paper); font: italic 400 24px/1.1 var(--display); }
.comment__body { color: #dedbd7; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.comments__empty { margin: 0 0 32px; color: var(--mute-d); font: italic 400 22px/1.3 var(--display); }
.comment-form { display: grid; gap: 20px; }
.comment-form__field { display: grid; gap: 8px; margin: 0; }
.comment-form__label { color: var(--mute-d); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.comment-form__input, .comment-form__text {
    width: 100%; padding: 12px 14px; border: 1px solid var(--k3); border-bottom-color: var(--mute-d); border-radius: 0;
    background: var(--k2); color: var(--paper); font: 400 17px/1.5 var(--text); transition: border-color 200ms ease;
}
.comment-form__input { max-width: 380px; }
.comment-form__text { min-height: 130px; resize: vertical; }
.comment-form__input:hover, .comment-form__text:hover { border-bottom-color: var(--paper); }
.comment-form__input:focus, .comment-form__text:focus { outline: 2px solid var(--y); outline-offset: 0; border-color: var(--y); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.comment-form__submit { border: 0; border-radius: 0; cursor: pointer; }
.comment-form__note { color: var(--mute-d); font-size: 14px; }
@media (max-width: 600px) {
    .rating__scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .rating__num { min-height: 56px; }
}

/* the visitor's own (final) vote, shown instead of the scale */
.rating__mine { margin: 0; line-height: 1.5; }
.rating__mine-score { font-size: 1.6em; font-weight: 700; }
