/* =========================================================
   REAL PROPORTIONS (ICAO TD3): each page 88 × 125 mm,
   open spread 176 × 125 mm  →  aspect-ratio 176 / 125.
   Active only when the passport has class "passport--real".
   To revert to the wide version: remove that class in index.html
   (or remove this stylesheet's <link>). Nothing else changes.
   ========================================================= */
@media (min-width: 761px) {
  .passport--real {
    --pp-h: min(76svh, 660px);                       /* height the spread aims for */
    width: min(100%, calc(var(--pp-h) * 176 / 125));
    max-width: none;
    aspect-ratio: 176 / 125;
    grid-template-rows: minmax(0, 1fr);
  }

  /* left page: details at the top, tools + note anchored to the bottom (like the MRZ zone) */
  .passport--real .pp-left { display: flex; flex-direction: column; }
  .passport--real .pp-left > .pp-block:last-child { margin-top: auto; }
  .passport--real .pp-name { font-size: clamp(26px, 2.6vw, 36px); }

  /* right page: code strip on top, photo centred in the space below and a little larger */
  .passport--real .pp-right { justify-content: flex-start; }
  .passport--real .pp-photo { max-width: 270px; margin-block: auto; }
}
