/* PillPal case study: page-only additions. Linked after styles.css.
   The frame colour (--pillpal-bg), the hero phone row (.phones) and the bezel
   frames (.figure__frame--device) come from styles.css. */


/* One phone screen per frame (Fig. 04 to 06) */
.pp-single img { width: auto; max-width: min(100%, 360px); margin-inline: auto; }
@media (max-width: 719px) { .pp-single img { max-width: min(100%, 280px); } }

/* Personas: portrait, name, then a metadata table */
.pp-persona { display: grid; gap: 1rem; align-content: start; }
.pp-persona__head { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: end; }
.pp-persona__portrait { background: #382935; border-radius: var(--radius); padding: 0.4rem; } /* her persona board colour */
.pp-persona__name { font-family: var(--font-sans); font-weight: var(--w-bold); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); line-height: 0.85; letter-spacing: var(--track-display); }
.pp-persona__head .label { margin-top: 0.5rem; }
@media (min-width: 900px) { .pp-persona__head { grid-template-columns: 9.5rem minmax(0, 1fr); } }

/* Low-fidelity wireframes: small greys shown at their board size, with labels */
.pp-wires { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1.5rem clamp(12px, 2.4vw, 32px); }
.pp-wire { display: grid; gap: 0.6rem; justify-items: center; margin: 0; }
.pp-wire img { width: auto; max-width: 100%; }
.pp-wire .label { text-align: center; }
@media (max-width: 719px) {
  .pp-wires { justify-content: space-around; }
  /* one scale for all five (0.6 of board size), so the pop-ups stay smaller than the screens */
  .pp-wire--tall img { width: 132px; }
  .pp-wire--med img { width: 100px; }
  .pp-wire--confirm img { width: 181px; }
}

/* Text beside one phone screen (section 05) */
.pp-split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) {
  .pp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); column-gap: var(--space-4); }
  .pp-split .pp-single img { max-width: 100%; }
}

/* Desktop: the three tall wireframes sit side by side in half the width */
@media (min-width: 720px) {
  /* one scale for all five (0.69 of board size) */
  .pp-wire--tall img { width: 150px; }
  .pp-wire--med img { width: 113px; }
  .pp-wire--confirm img { width: 206px; }
  .pp-wires { align-content: center; height: 100%; }
}

/* Evening: the portraits and their board colour are dimmed together; a faint edge keeps the tile off the page */
html[data-room="evening"] .pp-persona__portrait { background: color-mix(in srgb, #382935 calc(var(--glare) * 100%), #000); box-shadow: 0 0 0 1px rgb(255 236 210 / 0.08); }
html[data-room="evening"] .pp-persona__portrait img { filter: brightness(var(--glare)); }
