/*
    GarageDetailView - only what Bootstrap and site.css ("Car Stories pages") do not cover.
*/

/* In-page navigation stays below the fixed app header */
.cs-pagenav { position: sticky; top: var(--app-header-height, 50px); z-index: 5; background: var(--bs-body-bg); border-bottom: 1px solid var(--cs-line); }
.cs-page section[id] { scroll-margin-top: calc(var(--app-header-height, 50px) + 4rem); }

/* Rating: big average + distribution bars */
.cs-rating-score { font: 700 3.5rem/1 var(--cs-font-display); font-variant-numeric: tabular-nums; }
.cs-rating-bar { --bs-progress-height: .5rem; --bs-progress-bg: var(--cs-canvas); --bs-progress-bar-bg: var(--cs-signal); }

/* Star input: radios in DOM order 5..1, shown 1..5 (row-reverse), siblings light up */
.cs-rating-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.cs-rating-input label { font-size: 1.75rem; line-height: 1; color: var(--cs-line); cursor: pointer; }
.cs-rating-input input:checked ~ label,
.cs-rating-input label:hover,
.cs-rating-input label:hover ~ label { color: var(--cs-signal); }
.cs-rating-input input:focus-visible + label { outline: 3px solid var(--cs-petrol); outline-offset: 2px; border-radius: 4px; }

/* Review text keeps the line breaks of the author */
.cs-review-text { white-space: pre-line; overflow-wrap: anywhere; }
