/* ============================================================
   VerityLoft — LAYER 6: Evidence  (vl-evidence.css)

   Loaded on single posts after vl-post.css. The components that
   make the testing visible: side-by-side screenshots, numbered
   callouts on a screenshot, a tap-to-enlarge view for every
   figure, the award seal, and the lab record. Every one of them
   is something an AI-written competitor cannot produce, which is
   the point of giving them a place in the design.

   Markup contract is in VL-DESIGN.md, section 9. Class names are
   vl-*, not vlr-*, so vl-post.js leaves their inline custom
   properties (the callout positions) alone.

   Section map
     1. Compare  (::compare)   two screenshots, one caption
     2. Callouts (::callout)   numbered pins and a legend
     3. Lightbox               built by vl-evidence.js
     4. Award    (::award)     the seal
     5. Lab record (::lab)     what was tested, when, on what
     6. Responsive
   ============================================================ */


/* ============================================================
   1. COMPARE
   ============================================================ */
.single-post .entry-content > figure.vl-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
  width: 100%;
  max-width: 100%;
  margin: 1.75rem 0 0 !important;
  counter-increment: vlfig;
}
.single-post .vl-compare__item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}
.single-post .vl-compare__item img {
  display: block;
  width: 100%;
  height: auto;
  padding: 5px;
  border: 1px solid var(--vlp-gold-line);
  background: var(--vlp-ground);
}
.single-post .vl-compare__label {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--vlp-caps);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vlp-navy);
}
.single-post .vl-compare__label::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--vlp-gold);
  align-self: center;
}
.single-post .vl-compare__label small {
  font-family: var(--vlp-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vlp-muted);
}
.single-post .entry-content > figure.vl-compare > figcaption {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--vlp-muted);
  text-align: left;
}
.single-post .entry-content > figure.vl-compare > figcaption::before {
  content: "Fig. " counter(vlfig) "\2002";
  font-family: var(--vlp-caps);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vlp-gold-ink);
}
/* a verdict strip under the pair: "Dext read it. Hubdoc did not." */
.single-post .vl-compare__verdict {
  grid-column: 1 / -1;
  margin: 0;
  padding: .7rem 1rem;
  background: var(--vlp-panel);
  border: 1px solid var(--vlp-rule);
  border-left: 3px solid var(--vlp-gold);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--vlp-navy);
}
.single-post .vl-compare__verdict strong {
  color: var(--vlp-navy);
}


/* ============================================================
   2. CALLOUTS
   The stage holds the screenshot; each pin is positioned by two
   custom properties (--x, --y, percentages of the image), which
   the pipeline writes as an inline style on the pin. The legend
   below repeats the numbers.
   ============================================================ */
.single-post .entry-content > figure.vl-callouts {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.75rem 0 0 !important;
  counter-increment: vlfig;
}
.single-post .vl-callouts__stage {
  position: relative;
  display: block;
  padding: 5px;
  border: 1px solid var(--vlp-gold-line);
  background: var(--vlp-ground);
}
.single-post .vl-callouts__stage img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
}
.single-post .vl-callouts__pin {
  position: absolute;
  left: calc(5px + (100% - 10px) * var(--x, .5));
  top: calc(5px + (100% - 10px) * var(--y, .5));
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--vlp-gold);
  color: var(--vlp-navy);
  border: 2px solid var(--vlp-ground);
  box-shadow: 0 0 0 1px var(--vlp-gold-ink), 0 2px 6px rgba(30, 41, 59, .35);
  font-family: var(--vlp-sans);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.single-post .vl-callouts__pin::after {
  /* the halo, so a pin over a busy screenshot still reads */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(221, 184, 73, .55);
}
.single-post .entry-content > figure.vl-callouts > figcaption {
  margin: .6rem 0 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--vlp-muted);
  text-align: left;
}
.single-post .entry-content > figure.vl-callouts > figcaption::before {
  content: "Fig. " counter(vlfig) "\2002";
  font-family: var(--vlp-caps);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vlp-gold-ink);
}
.single-post .vl-callouts__legend {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .35rem 1.5rem;
  counter-reset: vlpin;
}
.single-post .vl-callouts__legend li {
  counter-increment: vlpin;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--vlp-ink);
}
.single-post .vl-callouts__legend li::before {
  content: counter(vlpin);
  flex: 0 0 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--vlp-gold);
  color: var(--vlp-navy);
  font-family: var(--vlp-sans);
  font-size: .6875rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}


/* ============================================================
   3. LIGHTBOX
   A native dialog, built once by vl-evidence.js. Any figure image
   opens it; the caption travels with the picture.
   ============================================================ */
.single-post .entry-content figure img[data-vl-zoom] {
  cursor: zoom-in;
}
.vl-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 26, 38, .94);
  color: #F3EFE6;
  z-index: 9999;
}
.vl-lightbox::backdrop {
  background: transparent;
}
.vl-lightbox__inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem 2rem;
  cursor: zoom-out;
}
.vl-lightbox__img {
  display: block;
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  padding: 6px;
  border: 1px solid rgba(221, 184, 73, .6);
  background: #FAF8F4;
  cursor: default;
}
.vl-lightbox__cap {
  max-width: 60rem;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(243, 239, 230, .85);
  text-align: center;
}
.vl-lightbox__cap b {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #DDB849;
  margin-right: .5rem;
}
.vl-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(221, 184, 73, .6);
  border-radius: 50%;
  background: transparent;
  color: #DDB849;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.vl-lightbox__close:hover,
.vl-lightbox__close:focus-visible {
  background: #DDB849;
  color: #1E293B;
  outline: none;
}
body.vl-lightbox-open {
  overflow: hidden;
}


/* ============================================================
   4. AWARD SEAL
   Text plus a seal. With an image (data from the award suite)
   the picture is the seal; without one, a drawn medallion in
   the same language stands in: gold ring, navy centre, Cinzel.
   ============================================================ */
.single-post .entry-content > .vlr:has(> .vl-award),
.single-post .entry-content > .vl-award {
  margin-block-start: 1.75rem;
}
.single-post .vl-award {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.1rem 1.4rem;
  background: var(--vlp-plate);
  color: var(--vlp-plate-ink);
  border-radius: 4px;
  outline: 1px solid var(--vlp-gold-line);
  outline-offset: -7px;
}
.single-post .vl-award__seal {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  position: relative;
}
.single-post .vl-award__seal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}
/* the drawn medallion */
.single-post .vl-award__seal--drawn {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #2A3650 0%, #1E293B 70%);
  box-shadow:
    0 0 0 3px #1E293B,
    0 0 0 5px var(--vlp-gold),
    0 0 0 6px #B08415,
    0 4px 12px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  text-align: center;
}
.single-post .vl-award__seal--drawn::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(221, 184, 73, .55);
}
.single-post .vl-award__seal--drawn .vl-award__mark {
  font-family: var(--vlp-caps);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--vlp-gold);
  letter-spacing: .04em;
}
.single-post .vl-award__seal--drawn .vl-award__year {
  font-family: var(--vlp-caps);
  font-size: .4375rem;
  letter-spacing: .1em;
  white-space: nowrap;
  color: rgba(243, 239, 230, .8);
}
.single-post .vl-award__text {
  flex: 1;
  min-width: 0;
}
.single-post .vl-award__label {
  display: block;
  font-family: var(--vlp-caps);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vlp-gold);
  margin-bottom: .35rem;
}
.single-post .entry-content .vl-award__name,
.single-post .entry-content strong.vl-award__name {
  display: block;
  font-family: var(--vlp-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--vlp-plate-ink);
  text-wrap: balance;
}
.single-post .vl-award__crit {
  display: block;
  margin-top: .4rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--vlp-plate-dim);
}
.single-post .entry-content a.vl-award__verify {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .7rem;
  font-family: var(--vlp-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--vlp-gold);
  text-decoration: none;
  background-image: none;
  border-bottom: 1px solid rgba(221, 184, 73, .5);
  padding-bottom: 2px;
}
.single-post .entry-content a.vl-award__verify:hover,
.single-post .entry-content a.vl-award__verify:focus-visible {
  color: #F3EFE6;
  border-bottom-color: #F3EFE6;
  background: transparent;
}


/* ============================================================
   5. LAB RECORD
   ============================================================ */
.single-post .entry-content > .vlr:has(> .vl-lab),
.single-post .entry-content > .vl-lab {
  margin-block-start: 1.75rem;
}
.single-post .vl-lab {
  padding: 1rem 1.3rem 1.1rem;
  background: var(--vlp-panel);
  border: 1px solid var(--vlp-rule);
  border-top: 2px solid var(--vlp-gold);
  border-radius: var(--vlp-radius);
}
.single-post .vl-lab__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.single-post .vl-lab__label {
  font-family: var(--vlp-caps);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vlp-gold-ink);
}
.single-post .entry-content a.vl-lab__link {
  font-family: var(--vlp-sans);
  font-size: .75rem;
  font-weight: 700;
  color: var(--vlp-gold-ink);
  text-decoration: none;
  background-image: none;
  border-bottom: 1px solid var(--vlp-gold-line);
  padding-bottom: 1px;
}
.single-post .entry-content a.vl-lab__link:hover,
.single-post .entry-content a.vl-lab__link:focus-visible {
  color: var(--vlp-navy);
  background: transparent;
}
.single-post .vl-lab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem 1.25rem;
  margin: 0;
}
.single-post .vl-lab__grid > div {
  min-width: 0;
  padding-left: .75rem;
  border-left: 1px solid var(--vlp-rule);
}
.single-post .vl-lab__grid dt {
  font-family: var(--vlp-sans);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vlp-muted);
  margin-bottom: .2rem;
}
.single-post .vl-lab__grid dd {
  margin: 0;
  font-family: var(--vlp-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vlp-navy);
}
.single-post .vl-lab__grid dd small {
  display: block;
  font-family: var(--vlp-sans);
  font-size: .75rem;
  font-weight: 400;
  color: var(--vlp-muted);
  margin-top: .15rem;
}


/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .single-post .entry-content > figure.vl-compare {
    grid-template-columns: 1fr;
  }
  .single-post .vl-award {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .single-post .vl-award__name {
    font-size: 1.25rem;
  }
  .single-post .vl-lab__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .single-post .vl-callouts__pin {
    width: 1.25rem;
    height: 1.25rem;
    font-size: .625rem;
  }
  .vl-lightbox__inner {
    padding: 3.5rem .75rem 1.5rem;
  }
}

@media print {
  .vl-lightbox {
    display: none !important;
  }
  .single-post .vl-award,
  .single-post .vl-award__seal--drawn {
    background: #fff;
    color: #000;
    box-shadow: none;
    outline-color: #999;
  }
}