.course-metrics {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: center;
}
.course-metrics li {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #473d36;
    border-radius: 8px;
    background: #0e141b85;
    color: #c7d0d9;
    font-size: .82rem;
    line-height: 1.4;
}
.course-metrics li span { color: #ffcc95; }
.course-metrics li strong { color: #f6eee2; }
.lesson-content { min-width: 0; display: grid; gap: 14px; }
.lesson-notes h2, .lesson-rating h2, .course-support h2, .lesson-comments h2 { font-size: clamp(1.18rem, 2.2vw, 1.48rem); }
.user-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson-rating, .course-support {
    display: flex;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.lesson-rating p, .course-support p { margin-top: 4px; color: #b9c4cf; font-size: .88rem; }
.rating-form { display: grid; justify-items: start; }
.rating-form small { color: #ffcc95; }
.stars { display: flex; gap: 1px; }
.stars button {
    appearance: none;
    padding: 4px;
    width: clamp(37px, 6vw, 42px);
    min-height: 42px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: #8b99a5;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    transition: color .15s, transform .15s;
}
.stars button.lit { color: #ffd07f; }
.stars:hover button { color: #8b99a5; }
.stars button:hover, .stars button:focus-visible, .stars button:has(~button:hover) { color: #ffe2a8; }
.stars button:hover { transform: translateY(-2px); }
.course-support {
    border-color: #624d3c;
    background: radial-gradient(ellipse at 0 0, #34251f, #171e26 70%);
}
.lesson-grid ~ .course-support { margin-top: 15px; }
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-actions .btn { min-height: 38px; padding: 8px 13px; font-size: .86rem; }
.like-course span, .feedback-jump span { color: #ffa583; font-size: 1.22rem; line-height: 1; }
.like-course[aria-pressed="true"] { border-color: #ddb18b; background: #4b3026; }
.like-course[aria-pressed="true"] span { color: #ff9d84; }
.comment-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.comment-list li { padding-top: 14px; border-top: 1px solid #32404d; }
.comment-list p { margin: 5px 0 0; }
.comment-header {
    display: flex;
    gap: 7px 14px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}
.comment-header span { color: #aebbc7; font-size: .78rem; margin-left: 7px; }
.comment-header button {
    background: transparent;
    color: #ffd09f;
    border: 0;
    padding: 3px;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
}
.community-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.community-back {
    width: fit-content;
    color: #f9c997;
    font-size: .88rem;
    font-weight: 660;
}
.community-back:hover { text-decoration: underline; text-underline-offset: 2px; }

.testimonials {
    border-top: 1px solid #354354;
    background: radial-gradient(ellipse at 4% 0, #292320, transparent 58%), #141c24;
}
.testimonial-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 21px;
}
.testimonial-heading .section-head { margin: 0; }
.testimonial-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(7px, 1.5vw, 15px);
    margin: 0 0 22px;
}
.testimonial-metrics > div {
    display: grid;
    align-content: space-between;
    gap: 4px;
    min-width: 0;
    padding: clamp(10px, 2vw, 21px);
    border: 1px solid #51463c;
    border-radius: 12px;
    background: linear-gradient(150deg,#302720,#1a222b 76%);
}
.testimonial-metrics dt { color: #e1d8cc; font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 650; }
.testimonial-metrics dd {
    margin: 0;
    color: #ffca8e;
    font: 800 clamp(1.3rem, 4vw, 2.45rem)/1.15 Archivo, sans-serif;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.testimonial-empty { color: #d4dbe1; margin: 0; }
.testimonial-grid, .admin-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%, 275px), 1fr));
    align-items: start;
    gap: 14px;
}
.testimonial-card { margin: 0; border-color: #494239; background: linear-gradient(150deg,#262321,#18212b 68%); }
.testimonial-card blockquote { margin: 0; color: #e9e5df; }
.testimonial-card blockquote::before { content: '“'; display: block; font: 800 2.85rem/.72 Georgia, serif; color: #f5bd85; margin-bottom: 8px; }
.testimonial-card figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid #48423b; }
.testimonial-name { display: block; color: #ffc993; overflow-wrap: anywhere; }
.testimonial-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 8px;
    color: #fff1de;
    font-size: .9rem;
    font-weight: 680;
}
.testimonial-stars { display: inline-flex; gap: 2px; color: #8492a1; font: 1.25rem/1 system-ui, sans-serif; }
.testimonial-stars .full { color: #ffd28a; }
.testimonial-stars .half {
    color: #ffd28a;
    background: linear-gradient(90deg, #ffd28a 50%, #8492a1 50%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.testimonial-rating-caption { margin: 4px 0 0; color: #c3cdd6; font-size: .82rem; }
.testimonials .community-pages { margin-top: 16px; }
.testimonial-form, .feedback-page > .notice { max-width: 700px; }
.consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .9rem;
}
.consent input { margin-top: 3px; flex: 0 0 17px; width: 17px; height: 17px; min-height: 17px; accent-color: #ffc27c; }
@media (max-width: 1000px) {
    .site-nav .testimonial-jump { display: none; }
}
@media (max-width: 580px) {
    .lesson-rating, .course-support { padding: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { .stars button { transition: none; } }
