/* ===========================================================
   Grand Jury — Public page overrides
   WCAG 2.1 AA compliant

   Contrast ratios:
     Icon #005ea2 vs #ffffff = 6.72:1  ✅ WCAG 1.4.11 non-text
     Icon #005ea2 vs #f0f4f8 = 6.08:1  ✅ WCAG 1.4.11 non-text
     Icon #1b2b85 vs #ffffff = 11.16:1 ✅ hover/visited
   =========================================================== */

/* ── PDF document icon ──────────────────────────────────────
 * Rendered via CSS ::before — not exposed to the accessibility
 * tree, so no aria-hidden needed on the element itself.
 * (CSS generated content is decorative per WCAG 1.1.1.)
 *
 * Icon: Font Awesome "file" (regular), viewBox 0 0 384 512.
 * Color set via background-color: currentColor — inherits the
 * link color automatically on hover/focus/visited states.
 * ─────────────────────────────────────────────────────────── */
.gj-pdf-link::before {
  content: '';
  display: inline-block;
  width: 0.75em;
  height: 0.875em;
  margin-right: 0.35em;
  vertical-align: middle;
  position: relative;
  top: -0.1em; /* optical alignment to cap-height */
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
}

/* ── Accordion inside a report list item ────────────────────── */
.grand-jury-document-item details {
  margin-top: 0.5rem;
}

/* ── Agency Responses heading spacing ───────────────────────── */
.grand-jury-subsection {
  margin-top: 3rem;
}

/* ── High-contrast mode ─────────────────────────────────────── */
@media (prefers-contrast: high) {
  .gj-pdf-link::before {
    background-color: LinkText;
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gj-pdf-link::before {
    transition: none;
  }
}
