/* ==========================================================================
   reviews.css — reviews.html: scoreboard, filterable review wall,
   "write a review" band, reviews by city.
   ========================================================================== */
.rp-hero { position: relative; overflow: clip; padding-top: calc(var(--hdr) + clamp(28px, 6vh, 72px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(48px, 7vw, 100px); background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 80%); }
.rp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rp-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.rp-title { font-family: var(--f-display); font-weight: 800; font-stretch: 114%; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .92; letter-spacing: -.04em; text-wrap: balance; margin: 0; }
.rp-title em { font-style: normal; color: var(--accent); }
.rp-hero .lede { max-width: 48ch; }
.lc-ctas .btn--line:hover > *, .rp-hero .btn--line:hover > * { color: var(--paper); }
.lc-ctas .btn .ic--soc { width: 18px; height: 18px; }

/* scoreboard */
.rp-score { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(26px, 4vw, 44px); border-radius: 6px; background: var(--ink); color: var(--paper); box-shadow: 0 50px 80px -50px rgba(21, 25, 27, .8); overflow: hidden; }
.rp-score::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 132, 78, .35), transparent 70%); pointer-events: none; }
.rp-score__n { font: 800 clamp(6rem, 13vw, 11.5rem)/.8 var(--f-display); font-stretch: 120%; letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--white); }
.rp-score__k { color: var(--fog); margin: 0; }
.rp-stars { position: relative; display: inline-block; line-height: 0; }
.rp-stars span { display: inline-flex; gap: 6px; }
.rp-stars svg { width: clamp(28px, 3.4vw, 40px); height: clamp(28px, 3.4vw, 40px); }
.rp-stars__bg svg { fill: none; stroke: var(--line-ink); stroke-width: 1.4; }
.rp-stars__fg { position: absolute; inset: 0; width: var(--pct); overflow: hidden; white-space: nowrap; }
.rp-stars__fg svg { flex: none; fill: var(--accent-bright); }
.rp-bars { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-ink); width: 100%; display: flex; flex-direction: column; gap: 9px; }
.rp-bars li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 42px; align-items: center; gap: 12px; color: var(--fog); }
.rp-bars li .mono:last-child { text-align: right; }
.rp-bar { height: 8px; border-radius: 99px; background: rgba(231, 234, 231, .1); overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent-bright); transform-origin: left; }

/* wall */
.rp-wall { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 110px); }
.rp-tools { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line-strong); }
.rp-tools__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 .9rem var(--f-body); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.rp-chip span { font-family: var(--f-mono); font-size: .7rem; color: var(--slate); transition: color .25s; }
.rp-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.rp-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rp-chip.is-on span { color: var(--accent-bright); }
.rp-city { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); }
.rp-city .ic { width: 17px; height: 17px; color: var(--accent); }
.rp-city select { border: 0; background: transparent; font: 600 .92rem var(--f-body); color: var(--ink); padding: 11px 4px; outline: none; cursor: pointer; max-width: 60vw; }
.rp-city:focus-within { border-color: var(--accent); }
.rp-count { margin: 0; color: var(--slate); }
.rp-wall .demo-note { margin: 0 0 18px; color: var(--slate); border-color: var(--line-strong); }
.rp-grid { columns: 3 300px; column-gap: 16px; }
.rp-card { break-inside: avoid; display: flex; flex-direction: column; gap: 16px; margin: 0 0 16px; padding: 24px 24px 22px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.rp-card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -36px rgba(21, 25, 27, .5); }
.rp-card[hidden] { display: none; }
.rp-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rp-src { font-size: .62rem; color: var(--slate); }
.rp-card blockquote { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.rp-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.rp-card figcaption > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-card figcaption strong { font-weight: 700; }
.rp-card figcaption span span { font-size: .86rem; color: var(--slate); }
.rp-card figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.rp-card figcaption a:hover { color: var(--accent); text-decoration-color: currentColor; }
.rp-av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: hsl(var(--h) 28% 38%); color: var(--white); font: 700 .86rem var(--f-display); font-stretch: 110%; letter-spacing: .02em; }
.rp-card--big { background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 30px 28px 26px; }
.rp-card--big blockquote { font: 700 clamp(1.3rem, 1.9vw, 1.6rem)/1.3 var(--f-display); font-stretch: 104%; letter-spacing: -.01em; }
.rp-card--big blockquote::before { content: "\201C"; display: block; height: .5em; font-size: 3.4em; line-height: 1; color: var(--accent-bright); }
.rp-card--big .stars { color: var(--accent-bright); }
.rp-card--big .rp-src, .rp-card--big figcaption span span { color: var(--fog); }
.rp-card--big figcaption { border-color: var(--line-ink); }
.rp-empty { padding: 40px 0; color: var(--slate); }
.rp-empty .link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 650; cursor: pointer; text-decoration: underline; }

/* write a review */
.rp-write { padding-block: clamp(72px, 9vw, 140px); }
.rp-write__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.rp-write__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.rp-write .sec-title { font-size: clamp(2.4rem, 5.6vw, 5rem); margin: 0; }
.rp-write__lede { color: var(--fog); font-size: 1.12rem; line-height: 1.6; max-width: 44ch; margin: 0; }
.rp-write__also { color: var(--fog); margin: 8px 0 0; }
.rp-sites { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-sites a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .25s, background .25s; }
.rp-sites a:hover { border-color: var(--accent-bright); background: rgba(217, 132, 78, .12); }
.rp-sites .ic { width: 18px; height: 18px; color: var(--accent-bright); }
.rp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.rp-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--line-ink); }
.rp-steps li:last-child { border-bottom: 1px solid var(--line-ink); }
.rp-steps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--accent-bright); color: var(--accent-bright); font: 800 1.4rem var(--f-display); font-stretch: 112%; }
.rp-steps b { font: 750 1.3rem/1.2 var(--f-display); font-stretch: 108%; }
.rp-steps p { margin: 6px 0 0; color: var(--fog); line-height: 1.55; }
.rp-cities { padding-block: clamp(56px, 7vw, 110px) clamp(40px, 5vw, 72px); }

/* per-review details: rating, full text, photos, owner reply, source link */
.rp-rate { display: inline-flex; gap: 2px; line-height: 0; }
.rp-rate svg { width: 17px; height: 17px; fill: var(--accent); }
.rp-rate svg.is-off { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.rp-card--big .rp-rate svg { fill: var(--accent-bright); }
.rp-text { white-space: pre-line; overflow-wrap: anywhere; }
.rp-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden; }
.rp-more { align-self: flex-start; margin-top: -8px; padding: 0; border: 0; background: none; font: 650 .9rem var(--f-body); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rp-card--big .rp-more { color: var(--accent-bright); }
.rp-ronly { margin: 0; color: var(--slate); font-style: italic; }
.rp-card figcaption small { font-size: .78rem; color: var(--slate); }
.rp-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rp-photos--one { grid-template-columns: minmax(0, 1fr); }
.rp-photos a { display: block; border-radius: 3px; overflow: hidden; background: var(--line); }
.rp-photos img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .5s var(--ease); }
.rp-photos a:hover img { transform: scale(1.04); }
.rp-reply { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 3px 3px 0; }
.rp-reply__h { margin: 0 0 6px; font-size: .62rem; color: var(--slate); }
.rp-reply p:last-child { margin: 0; font-size: .92rem; line-height: 1.55; white-space: pre-line; }
.rp-card--big .rp-reply { background: rgba(255, 255, 255, .06); }
.rp-card--big .rp-reply__h { color: var(--fog); }
.rp-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 600 .86rem var(--f-body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.rp-link .ic { width: 14px; height: 14px; }
.rp-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.rp-card--big .rp-link { color: var(--paper); }
.rp-note { margin: 0; font-size: .84rem; color: var(--slate); max-width: 60ch; }
/* scoreboard: platform rows */
.rp-score__p { margin: 0; color: var(--fog); }
.rp-plats { width: 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-ink); }
.rp-plat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--paper); text-decoration: none; }
.rp-plat .ic { width: 18px; height: 18px; color: var(--accent-bright); }
.rp-plat b { font-weight: 700; }
.rp-plat__n { font: 800 1.3rem var(--f-display); font-stretch: 112%; }
.rp-plat .rp-rate svg { fill: var(--accent-bright); }
.rp-plat .mono { color: var(--fog); }
.rp-plat:hover b { color: var(--accent-bright); }
.rp-score__asof { margin: 0; color: var(--fog); font-size: .6rem; }
/* Yelp not-recommended group */
.rp-nr { padding-block: clamp(48px, 6vw, 88px); background: var(--white); border-top: 1px solid var(--line); }
.rp-nr__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; max-width: 68ch; }
.rp-nr__head .sec-title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3rem); }
.rp-nr__lede { margin: 0; color: var(--slate); line-height: 1.6; }
.rp-grid--nr .rp-card { background: var(--paper); }

@media (max-width: 1000px) {
  .rp-hero__grid, .rp-write__grid { grid-template-columns: minmax(0, 1fr); }
  .rp-score { max-width: 560px; }
}
@media (max-width: 640px) {
  .rp-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .rp-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scrollbar-width: none; width: calc(100% + var(--gut) * 2); }
  .rp-chips::-webkit-scrollbar { display: none; }
  .rp-chip { flex: none; }
  .rp-city { width: 100%; }
  .rp-tools__row { flex-direction: column; align-items: flex-start; }
  .rp-city select { flex: 1; max-width: none; }
  .rp-steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .rp-steps__n { width: 42px; height: 42px; font-size: 1.15rem; }
}
