/* ==========================================================================
   § 035 · How Ezina compares
   Figma gjYZkxeha34OwmNUr91aQn · claude scratch › 1766:23302 (v5, phone).
   Markup: index.html @@SECTION compare, written by scripts/compare/build.py.
   Uses the .hp kit from sec-identify.css (column, H2 head, .hp-link).

   One row per app: icon + name, a five-star rating with its number, and the
   price on its own line. Stars rate the five feature areas only; price is
   never inside them. Each row is a <details>, so it opens to the five area
   ratings without any script. Ezina's row starts open and is tinted.
   ========================================================================== */

.hpc .hpc-list {
  max-width: 880px;
  border-top: 1px solid var(--hairline);
}

.hpc-row { border-bottom: 1px solid var(--hairline); }
.hpc-row--ezina { background: var(--card-light); }

.hpc-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  grid-template-areas: "app rating chev" "price price price";
  align-items: center;
  column-gap: var(--s3);
  row-gap: 6px;
  padding: 14px 12px;
  list-style: none;
  cursor: pointer;
}
.hpc-row > summary::-webkit-details-marker { display: none; }
.hpc-row > summary::after {
  grid-area: chev;
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  justify-self: center;
}
.hpc-row[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.hpc-row > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.hpc-app { grid-area: app; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.hpc-app img { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 28px; }
.hpc-name { font-family: var(--f-sans); font-weight: 800; font-size: 18px; color: var(--ink); }

.hpc-rating { grid-area: rating; display: inline-flex; align-items: center; gap: 10px; }
.hpc-num { font-family: var(--f-sans); font-weight: 700; font-size: 20px; color: var(--ink); min-width: 2.2ch; text-align: right; }
.hpc-num--sm { font-size: 15px; font-weight: 600; color: var(--hp-muted); }

.hpc-price { grid-area: price; font-family: var(--f-sans); font-weight: 500; font-size: 15px; color: var(--hp-muted); }

/* Five stars drawn as text: the empty row underneath, the filled row on top,
   clipped to the rating (4.8 fills 96%). */
.hpc-stars {
  position: relative; display: inline-block;
  font-size: 17px; line-height: 1; letter-spacing: 2px;
  color: var(--hairline);
}
.hpc-stars::before { content: "★★★★★"; }
.hpc-stars::after {
  content: "★★★★★";
  position: absolute; left: 0; top: 0;
  width: calc(var(--r) / 5 * 100%);
  overflow: hidden; white-space: nowrap;
  color: var(--mustard);
}
.hpc-stars--sm { font-size: 13px; letter-spacing: 1px; }

.hpc-body { padding: 0 12px 16px; }
.hpc-areas { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.hpc-areas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.hpc-area { font-family: var(--f-sans); font-weight: 500; font-size: 15px; color: var(--ink); }
.hpc-note { font-family: var(--f-sans); font-size: 15px; color: var(--hp-muted); margin: 0 0 12px; max-width: 520px; }
.hpc-body .hp-link { font-family: var(--f-sans); font-weight: 700; font-size: 15px; }

.hpc-legend {
  max-width: 720px; margin: var(--s5) 0 var(--s4);
  font-family: var(--f-serif); font-size: 15px; line-height: 1.5; color: var(--hp-muted);
}

/* Wide screens: price moves onto the same line, between name and rating. */
@media (min-width: 760px) {
  .hpc-row > summary {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto 20px;
    grid-template-areas: "app price rating chev";
    padding: 16px 20px;
  }
  .hpc-body { padding: 0 20px 20px calc(20px + 38px); }
}
