/* Fast tooltips — used on coverage compare matrix (replaces slow native title) */
.has-fast-tip { cursor: help; }
.cov-fast-tip {
  position: fixed;
  z-index: 9999;
  max-width: min(22rem, 92vw);
  padding: 0.45rem 0.65rem;
  background: #1e293b;
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.45;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
}
.cov-fast-tip[hidden] { display: none !important; }

.md-content { font-size: 0.9rem; line-height: 1.7; color: #374151; }
.md-content h1 { font-size: 1.4rem; font-weight: 700; margin: 1.2rem 0 0.6rem; color: #1e293b; }
.md-content h2 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 0.5rem; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.25rem; }
.md-content h3 { font-size: 1rem; font-weight: 600; margin: 0.8rem 0 0.4rem; color: #334155; }
.md-content p  { margin: 0 0 0.75rem; }
.md-content ul, .md-content ol { padding-left: 1.5rem; margin: 0 0 0.75rem; }
.md-content li { margin-bottom: 0.25rem; }
.md-content strong { font-weight: 600; color: #1e293b; }
.md-content code { background: #f1f5f9; border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.82rem; font-family: monospace; }
.md-content pre  { background: #f1f5f9; border-radius: 8px; padding: 1rem; overflow-x: auto; margin: 0 0 0.75rem; }
.md-content pre code { background: none; padding: 0; }
.md-content blockquote { border-left: 3px solid #94a3b8; padding-left: 1rem; color: #475569; margin: 0 0 0.75rem; }
.md-content table  { width: 100%; border-collapse: collapse; margin: 0 0 0.75rem; font-size: 0.85rem; }
.md-content th { background: #f8fafc; border: 1px solid #e2e8f0; padding: 0.45rem 0.75rem; font-weight: 600; text-align: left; }
.md-content td { border: 1px solid #e2e8f0; padding: 0.4rem 0.75rem; vertical-align: top; }
.md-content tr:nth-child(even) td { background: #f8fafc; }
.md-content hr { border: none; border-top: 1px solid #e2e8f0; margin: 1rem 0; }
.md-content img { max-width: 100%; border-radius: 6px; }
.md-content a { color: #2563eb; text-decoration: underline; }

/* Prose styles for rendered markdown in upload_detail */
.prose h1 { font-size: 1.3rem; font-weight: 700; margin: 1rem 0 0.5rem; color: #1e293b; }
.prose h2 { font-size: 1.1rem; font-weight: 700; margin: 0.9rem 0 0.4rem; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.2rem; }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 0.7rem 0 0.35rem; color: #334155; }
.prose p  { margin: 0 0 0.65rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 0.65rem; }
.prose li { margin-bottom: 0.2rem; }
.prose strong { font-weight: 600; color: #1e293b; }
.prose code { background: #f1f5f9; border-radius: 4px; padding: 0.1rem 0.3rem; font-size: 0.82rem; font-family: monospace; }
.prose blockquote { border-left: 3px solid #94a3b8; padding-left: 1rem; color: #475569; margin: 0 0 0.65rem; }
.prose table  { width: 100%; border-collapse: collapse; margin: 0 0 0.65rem; font-size: 0.85rem; }
.prose th { background: #f8fafc; border: 1px solid #e2e8f0; padding: 0.4rem 0.7rem; font-weight: 600; text-align: left; }
.prose td { border: 1px solid #e2e8f0; padding: 0.35rem 0.7rem; vertical-align: top; }
.prose tr:nth-child(even) td { background: #f8fafc; }
.prose hr { border: none; border-top: 1px solid #e2e8f0; margin: 0.8rem 0; }
.prose a  { color: #2563eb; text-decoration: underline; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Details/summary arrow reset */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .ml-auto { transform: rotate(180deg); }

/* Colored panel for extracted images and their descriptions */
.img-panel { background: #f0f9ff; border: 1px solid #bae6fd; padding: 10px 12px; border-radius: 10px; margin: 10px 0; overflow-x: auto; }
.img-panel img { max-width: none; border-radius: 6px; display: block; margin-bottom: 8px; }
.img-panel .img-desc { color: #0369a1; font-size: 0.92rem; line-height: 1.5; }
