/* Glass caption (per-letter glass, no box) - from Ryan's "Glass Caption skill" doc.
   Replaces the old glass strip (.rv-hero__glass / .rv-hero__strap, still in page-home.css, now unused)
   on the home hero paragraphs. To revert: remove the enqueue in functions.php and restore the
   old markup in front-page.php (git revert the "GB glass caption" commit). */
.glass-caption {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  box-sizing: border-box; width: max-content; max-width: min(420px, calc(100vw - 32px));
  margin-bottom: 8px; padding: 3px 6px; background: none; border: 0; box-shadow: none;
  color: rgba(255, 255, 255, .96);
  font: 500 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .015em; text-align: center; text-wrap: balance;
  -webkit-text-stroke: 3.8px rgba(10, 14, 28, .58); paint-order: stroke fill;
  text-shadow: 0 0 2px rgba(8, 12, 24, .72), 0 0 6px rgba(8, 12, 24, .62), 0 0 14px rgba(8, 12, 24, .48), 0 1px 18px rgba(8, 12, 24, .38), 0 -.4px 0 rgba(255, 255, 255, .4);
  pointer-events: none; transition: opacity .25s ease, visibility 0s linear 0s;
}
.glass-caption.off { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
@media (max-width: 767px) {
  .glass-caption { font-size: 14px; padding: 3px 5px; -webkit-text-stroke-width: 3px; }
}

/* --inline: same glass treatment on paragraph text that stays in the page flow.
   Keeps the paragraph's own font, size, alignment and wrapping (the words/layout do not move);
   drops only the absolute tooltip positioning, width cap and centering from the reference block. */
.glass-caption.glass-caption--inline {
  position: static; left: auto; bottom: auto; transform: none;
  display: inline; width: auto; max-width: none; margin: 0; padding: 0;
  font: inherit; text-align: inherit; text-wrap: wrap;
  pointer-events: auto;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (max-width: 767px) {
  .glass-caption.glass-caption--inline { font-size: inherit; padding: 0; }
}
