/* YANTRA case study: page-only additions. Load after css/case.css.
   Frame colour (.figure__frame--yantra) and all figure rules come from styles.css and css/case.css. */

/* Wireframe | Final pairs (section 08). One figure holds both screens.
   --r is each image's width divided by its height. From 720px up the two sides share the row in
   proportion to --r, so both screens come out the same height. On phones they stack, wireframe first. */
.wf__frame { display: grid; gap: clamp(20px, 5vw, 28px); }
.wf__side { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.wf__label { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-3); }
.wf__label::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--yantra-ink) 16%, transparent); }
.wf__side--final .wf__label { color: var(--yantra-ink); }
.wf__side > a { display: block; border-radius: 3px; }
@media (min-width: 720px) {
  .wf__frame { display: flex; align-items: flex-start; gap: clamp(16px, 2.2vw, 32px); }
  /* v6 review: the wireframe holds no text, so it takes about a third of the row and the final
     screen, which has to be read, takes the rest. Both stay top-aligned. */
  .wf__side { flex: calc(var(--r, 1) * 0.5) 1 0; }
  .wf__side--final { flex-grow: var(--r, 1); }
  .wf__hint.wf__hint--phone { display: none; }
}
/* a quiet line at the end of each caption that says the screens open full size */
.wf__hint { display: block; margin-top: 0.25rem; color: var(--ink-3); }
/* Phones: the final screen keeps a readable size and scrolls sideways in its own box, like the other wide screens */
@media (max-width: 719px) {
  .wf__side--final > a { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .wf__side--final img { width: 760px; max-width: none; }
  .wf__hint.wf__hint--wide { display: none; }
}

/* Evening: the product blue is too dark for a small label on a dark panel (5.9:1 with this one) */
html[data-room="evening"] .wf__side--final .wf__label { color: #8db5f7; }
html[data-room="evening"] .wf__label::after { background: var(--rule); }
