/* THE GLOBAL PDF ICON — transcribed from PVT2, index.txt:1976-1980.
   Every value below is PVT2's. The only addition is --pdf-scale, which
   shrinks the whole mark for a narrow surface; it is never above 1, so
   PVT2's Daily Records Review size (52 x 68) is a hard ceiling. */

.pvt3-pdf {
  display: inline-block; text-decoration: none; line-height: 0;
  /* The footprint shrinks with the mark, so a scaled icon does not leave a
     52px hole in a 25px column. */
  width: calc(52px * var(--pdf-scale, 1));
  height: calc(68px * var(--pdf-scale, 1));
}

.pvt3-pdf-thumb {
  /* PVT2 .drr-pdf-thumb, verbatim */
  width: 52px; height: 68px;
  border: 1px solid #cbd5e1; border-radius: 7px;
  background: linear-gradient(145deg, #fff 0 84%, #eef2f7 84%);
  box-shadow: 0 2px 7px rgba(15, 23, 42, .12);
  padding: 7px 6px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  transition: transform .12s, box-shadow .12s;
  /* the scaling, and only the scaling, is ours */
  transform: scale(var(--pdf-scale, 1)); transform-origin: top left;
}
.pvt3-pdf:hover .pvt3-pdf-thumb,
.pvt3-pdf:focus .pvt3-pdf-thumb {
  /* PVT2 .drr-pdf-thumb:hover — its translate is folded into our scale */
  transform: scale(var(--pdf-scale, 1)) translateY(-1px);
  box-shadow: 0 4px 11px rgba(15, 23, 42, .2);
  outline: 2px solid rgba(59, 130, 246, .35); outline-offset: 2px;
}
.pvt3-pdf-badge {
  /* PVT2 .drr-pdf-badge, verbatim */
  background: #c9362b; color: #fff; border-radius: 4px; padding: 3px 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px; line-height: 1.1;
}
.pvt3-pdf-lines {
  /* #293 correction (David, 2026-08-28): 27px was PVT2's own number, but at the 52x68 ceiling
     badge(~17px) + lines(27px) + padding(14px) already total 58px, leaving only 10px for
     "OPEN RECORD" to wrap into — measured live (getBoundingClientRect): the label needed 19px
     to show both lines and flexbox's default shrink was only giving it 14px, clipping the second
     line ("RECORD") on every surface using this icon, envelope modal and the new #286 payment-doc
     cards both confirmed. 17px keeps a real ruled-lines strip (still reads as "lined page") while
     giving the label the room it structurally needs — this is one shared component, so the fix
     reaches every surface that renders a PDF icon, not just the two David happened to see it on. */
  display: block; width: 100%; height: 17px;
  background: repeating-linear-gradient(to bottom, #cbd5e1 0 2px, transparent 2px 7px);
}
.pvt3-pdf-open {
  /* PVT2 .drr-pdf-open, verbatim */
  font-size: 9px; font-weight: 750; color: #334155; line-height: 1.05;
  /* PVT2 lets this wrap inside the 52px page — "OPEN RECORD" is wider than the
     card at 9px, so nowrap (mine, not PVT2's) pushed it past the edge. */
  white-space: normal; width: 100%; overflow: hidden;
  /* #293 correction — never let flexbox's default shrink clip this again even if a future
     change squeezes the thumb further; the ruled-lines strip above absorbs any remaining squeeze
     instead (decorative, unlike this label which is the only way to know what "PDF" opens). */
  flex-shrink: 0;
}

/* Rows of them sit tidily side by side. */
.pvt3-pdf-row { display: flex; align-items: flex-start; gap: 5px; flex-wrap: nowrap; min-width: 0; }
