/* PassportPhotos engine.
   The client renders real results directly into the theme's own .preparing-copy
   markup (preparing-list, preparing-marker, preparing-status, preparing-summary,
   etc.), reusing the theme's own classes and icons so the verifier is visually
   identical to its original design.

   The ONE thing the theme has no markup for is the finished photo shown under a
   passing result, with its measured diagram - so that is all this file styles.
   The numbers come from the engine and are drawn in HTML around the photo, not
   burned into the JPEG, so they stay crisp at any size and the delivered file is
   never marked up. */

.pp-engine-result-photo {
  margin: 1.25rem 0 0;
  padding: 0;
  text-align: center;
}

.pp-engine-result-photo figcaption {
  margin: 0.75rem auto 0;
  max-width: 34ch;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

/* Wrapper: padding leaves room for the dimension badges around the photo. */
.pp-engine-result-photo .pp-guides {
  position: relative;
  display: inline-block;
  padding: 26px 58px 6px 52px;
}

.pp-engine-result-photo .pp-guide-frame {
  position: relative;
  display: block;
  width: 200px;
  max-width: 100%;
  /* The photo's own bounds, drawn just outside it, so the printed width and
     height badges clearly refer to the photo rather than to the page. */
  outline: 1px dashed #cbd5e1;
  outline-offset: 7px;
}

.pp-engine-result-photo .pp-guide-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

/* Printed dimensions: dark badges, like a measured drawing. */
.pp-engine-result-photo .pp-guide-dim,
.pp-engine-result-photo .pp-guide-head {
  position: absolute;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  color: #f8fafc;
  background: #1e293b;
}

.pp-engine-result-photo .pp-guide-w {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.pp-engine-result-photo .pp-guide-h {
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
}

/* Head height: green, to read as the measurement being checked. */
.pp-engine-result-photo .pp-guide-head {
  right: -54px;
  transform: translateY(-50%);
  background: #0d9488;
}

/* The head band itself, dashed across the photo. */
.pp-engine-result-photo .pp-guide-band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  border-top: 1px dashed rgba(13, 148, 136, 0.95);
  border-bottom: 1px dashed rgba(13, 148, 136, 0.95);
  pointer-events: none;
}

@media (max-width: 420px) {
  .pp-engine-result-photo .pp-guides {
    padding: 24px 50px 6px 44px;
  }

  .pp-engine-result-photo .pp-guide-frame {
    width: 160px;
  }

  .pp-engine-result-photo .pp-guide-head {
    right: -48px;
  }
}
