/* The article "Why customers pick the business with more reviews" (src\pages\blog-reviews.mjs): the articles' layout
   (article.css), its hero's list of two roofers, and review-ask over the painter's wall. */
@import url("article.css");

/* hero: the couple on their sofa at night (faces at x 50-71%, y 34-57%) under the stain; the list of roofers on the
   ceiling at the right, the title over the sofa's left end; under 1000 px the list hangs on the coffee table */
.art-hero--reviews { --hero-pos: 50% 30%; }
.art-rank { position: relative; display: grid; gap: 4px; min-width: 330px; padding: 14px 14px 12px; border-radius: 20px; color: var(--c-on-ink);
  background: color-mix(in srgb, var(--c-ink) 62%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--c-glass-edge), var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.art-rank__head { margin: 0 4px 4px; font: 700 .8125rem/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--c-on-ink) 76%, transparent); }
.art-rank__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 12px; }
.art-rank__name { font: 700 1.0625rem/1.2 var(--font-display); }
.art-rank__score { display: inline-flex; align-items: center; gap: 5px; font: 700 .9375rem/1 var(--font-ui); white-space: nowrap; color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.art-rank__score svg { width: 15px; height: 15px; fill: var(--c-arrow-2); }
.art-rank__row--win { background: color-mix(in srgb, var(--c-on-ink) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-arrow-2) 75%, transparent); }
.art-rank__chip { position: absolute; right: -14px; bottom: -18px; padding: 7px 12px; border-radius: 999px; font: 800 .9375rem/1 var(--font-ui); color: var(--c-ink); background: var(--c-paper); box-shadow: var(--shadow-m);
  opacity: var(--kit-in, 1); transform: scale(calc(.6 + var(--kit-in, 1) * .4)) rotate(-5deg); }
@media (min-width: 1000px) {
  .art-hero--reviews .art-hero__seq { right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); top: clamp(24px, 4%, 40px); }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .art-hero--reviews .art-hero__panel { width: min(440px, 42%); }
}
@media (max-width: 999px) {
  .art-hero--reviews { --hero-pos: 58% 30%; --hero-gap: 104px; }
  .art-hero--reviews .art-hero__seq { top: calc(var(--ph) - 76px); }
  .art-rank { min-width: 0; width: min(340px, calc(100vw - 2 * var(--gutter))); }
}

/* point: the review asked for, in the phone, in glass on the blue wall left of the painter (no face: his back is turned,
   at x 40-78%, y 43-100%); under 761 px the frame runs edge to edge and the phone stands on the wall */
.art-reviews__frame { height: 700px; }
.art-reviews__frame img { object-position: 0% 60%; }
.art-reviews__box { position: absolute; z-index: 1; left: 4%; top: 50%; translate: 0 -50%; width: 380px; height: 640px; }
.art-reviews__scene { width: 100%; height: 100%; }
@media (max-width: 1199px) {
  .art-reviews__frame { height: 720px; }
  .art-reviews__box { left: 2%; }
}
@media (max-width: 760px) {
  .art-reviews__stage { margin-inline: calc(-1 * var(--gutter)); }
  .art-reviews__frame { height: 680px; border-radius: 0; }
  .art-reviews__frame img { object-position: 8% 60%; }
  .art-reviews__box { left: 0; right: 0; width: auto; }
}
@media (max-width: 380px) {
  .art-reviews__frame { height: 640px; }
  .art-reviews__box { height: 600px; }
}
