.pr {
  --pr-text: #1a1a1a;
  --pr-muted: #8a8f98;
  --pr-line: #e5e7eb;
  --pr-track: #dfe1e6;
  --pr-fill: #111111;
  --pr-star: #e7c24b;
  --pr-border: #111111;

  max-width: 1120px;
  margin: 0 auto;
  color: var(--pr-text);
  box-sizing: border-box;
}
.pr *,
.pr *::before,
.pr *::after {
  box-sizing: border-box;
}

.pr__title {
  margin: 0 0 36px;
  text-align: center;
}

.pr__loading,
.pr__empty {
  padding: 24px 0;
  color: var(--pr-muted);
  text-align: center;
}

/* ---- summary header ---- */
.pr__summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 40px;
  row-gap: 24px;
}

.pr__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-self: start;
}
.pr__score-num {
  font-family: var(--sort-title3-font);
  font-size: var(--sort-title3-size, 48px);
  font-weight: var(--sort-title3-font-weight, 500);
  line-height: var(--sort-title3-line-height, 1.2);
  letter-spacing: var(--sort-title3-letter-spacing, normal);
}
.pr__count {
  color: var(--pr-muted);
  font-size: 15px;
}

/* ---- stars ---- */
.pr__stars {
  display: inline-flex;
  gap: 4px;
  line-height: 0;
}
.pr__star-svg {
  display: block;
  width: 20px;
  height: 20px;
}
.pr__stars--sm .pr__star-svg {
  width: 16px;
  height: 16px;
}

/* ---- breakdown bars ---- */
.pr__breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 294px;
  max-width: 100%;
  margin-inline: auto;
  justify-self: center;
}
.pr__bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pr__bar-score {
  width: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.pr__bar-track {
  position: relative;
  flex: 1 1 auto;
  height: 14px;
  background: var(--pr-track);
  border-radius: 0;
  overflow: hidden;
}
.pr__bar-fill {
  display: block;
  height: 100%;
  background: var(--pr-fill);
  border-radius: 0;
}
.pr__bar-pct {
  min-width: 44px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.pr__bar-cnt {
  min-width: 30px;
  color: var(--pr-muted);
  font-size: 14px;
}

/* ---- write button ---- */
.pr__cta {
  justify-self: end;
}
.pr__write {
  padding: 15px 30px;
  color: var(--pr-text);
  background: transparent;
  border: 1px solid var(--pr-border);
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.pr__write:hover {
  color: #fff;
  background: var(--pr-text);
}

/* ---- rules / toolbar ---- */
.pr__rule {
  height: 1px;
  margin: 28px 0;
  background: var(--pr-line);
}
.pr__toolbar {
  display: flex;
}
.pr__sort {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 24px 0 0;
  color: var(--pr-text);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1a1a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 10px 6px no-repeat;
  border: 0;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.pr__sort:focus {
  outline: none;
}

/* ---- review list ---- */
.pr__list {
  display: flex;
  flex-direction: column;
}
.pr__item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding: 30px 0;
}
.pr__item + .pr__item {
  border-top: 1px solid var(--pr-line);
}

.pr__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pr__by {
  color: var(--pr-muted);
  font-size: 14px;
}
.pr__verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pr-muted);
  font-size: 14px;
}
.pr__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pr-text);
  white-space: pre-line;
}

/* ---- responsive ---- */
@media (max-width: 959px) {
  .pr__summary {
    grid-template-columns: 1fr;
    justify-items: start;
    column-gap: 0;
  }
  .pr__score {
    align-items: flex-start;
  }
  .pr__breakdown {
    max-width: 100%;
  }
  .pr__cta {
    justify-self: stretch;
  }
  .pr__write {
    width: 100%;
  }
  .pr__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
