/* evidence-viewer.css — matches the dark Longo Archive palette
   vars come from the page's :root when available; fallbacks below */

ev.ev-trigger {
  display: inline;
  cursor: pointer;
  color: #ffcc33;
  border-bottom: 1px dashed rgba(255, 204, 51, 0.55);
  padding: 0 2px;
  transition: background 0.15s, color 0.15s;
}
ev.ev-trigger:hover,
ev.ev-trigger:focus {
  background: rgba(255, 204, 51, 0.12);
  color: #ffe27a;
  outline: none;
}
ev.ev-trigger::before {
  content: "\1F50D\00a0"; /* 🔍 */
  opacity: 0.8;
  font-size: 0.9em;
}

/* modal root */
.ev-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ev-modal.open {
  display: flex;
}
.ev-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.ev-card {
  position: relative;
  background: #161a22;
  color: #e8ecf3;
  border: 1px solid #2a313f;
  border-radius: 14px;
  max-width: 960px;
  width: min(960px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  padding: 28px 32px 22px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}
.ev-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  color: #9aa3b2;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.ev-close:hover {
  color: #ffcc33;
}

/* body elements */
.ev-title {
  margin: 0 0 14px;
  color: #ffcc33;
  font-size: 1.25rem;
  font-weight: 700;
}
.ev-imgwrap {
  background: #0e1116;
  border: 1px solid #2a313f;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 14px;
}
.ev-img {
  max-width: 100%;
  max-height: 62vh;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.ev-img:hover {
  transform: scale(1.02);
}
.ev-caption {
  font-size: 0.98rem;
  color: #e8ecf3;
  margin: 6px 0;
}
.ev-meta {
  font-size: 0.9rem;
  color: #9aa3b2;
  margin: 4px 0;
}
.ev-missing {
  padding: 30px 20px;
  text-align: center;
  color: #9aa3b2;
  border: 1px dashed #2a313f;
  border-radius: 8px;
}
.ev-missing h3 {
  margin: 0 0 8px;
  color: #ff6b6b;
}

/* portrait */
.ev-portrait {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ev-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2a313f;
  background: #0e1116;
  flex: 0 0 180px;
}
.ev-p-body {
  flex: 1 1 300px;
  min-width: 240px;
}
.ev-p-body h3 {
  margin: 0 0 6px;
  color: #ffcc33;
  font-size: 1.3rem;
}
.ev-role {
  color: #8fb8ff;
  font-weight: 500;
  margin: 2px 0 10px;
}
.ev-conduct {
  color: #e8ecf3;
  margin: 0;
}

/* audio */
.ev-audio {
  width: 100%;
  margin: 10px 0;
}
.ev-transcript {
  border-left: 3px solid #ffcc33;
  padding: 8px 14px;
  margin: 10px 0;
  color: #e8ecf3;
  font-style: italic;
  background: rgba(255, 204, 51, 0.06);
  border-radius: 0 6px 6px 0;
}

/* footer row */
.ev-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #2a313f;
  flex-wrap: wrap;
}
.ev-btn {
  background: #ffcc33;
  color: #0e1116;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.ev-btn:hover {
  background: #ffe27a;
  text-decoration: none;
}
.ev-hint {
  color: #9aa3b2;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .ev-card {
    padding: 20px 16px;
  }
  .ev-photo {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }
}
