/* ==========================================================
   Experts Drawer — reusable side panel showing the seven
   forensic experts from the Joint Forensic Report (Doc. 1273-7).
   Triggered on any element with [data-experts-open].
   Dismissed via [data-experts-close], backdrop, or Esc key.
   Designed to match the truthjustice/ design tokens.
   ========================================================== */

/* Trigger button — sits inline in body copy or attribution lines */
.experts-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border-strong, #D6CBB2);
  border-radius: 2px;
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #0B1A2E);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  vertical-align: 2px;
}
.experts-trigger:hover {
  background: var(--gold, #C4A24C);
  border-color: var(--gold, #C4A24C);
  color: #fff;
}
.experts-trigger .arrow { color: inherit; font-size: 13px; }

/* Inline-link variant — for in-prose triggers like "Seven experts" */
.experts-link {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  border-bottom: 1px solid var(--gold, #C4A24C);
  transition: color .15s, border-color .15s;
}
.experts-link:hover { color: var(--gold, #C4A24C); }

/* Drawer container */
.proof-drawer[hidden] { display: none; }
.proof-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.proof-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 46, 0.42);
  animation: proofFade .2s ease-out;
  cursor: pointer;
}
.proof-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 100vw);
  background: var(--bg, #F8F3EA);
  box-shadow: -8px 0 32px rgba(11, 26, 46, 0.18);
  overflow-y: auto;
  animation: proofSlide .26s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
}
@keyframes proofFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes proofSlide {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.proof-drawer-header {
  position: sticky;
  top: 0;
  background: var(--bg, #F8F3EA);
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--border-warm, #E6DCC6);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  z-index: 1;
}
.proof-drawer-headings { flex: 1; min-width: 0; }
.proof-drawer-eyebrow {
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute, #6B7280);
  margin-bottom: 6px;
}
.proof-drawer-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy, #0B1A2E);
  letter-spacing: -0.005em;
  margin: 0;
}
.proof-drawer-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-strong, #D6CBB2);
  border-radius: 50%;
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 20px;
  line-height: 1;
  color: var(--text-soft, #4A5568);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.proof-drawer-close:hover {
  background: var(--navy, #0B1A2E);
  border-color: var(--navy, #0B1A2E);
  color: #fff;
}

.proof-drawer-body { padding: 18px 28px 32px; }
.proof-drawer-intro {
  font-family: var(--serif, Georgia, serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text, #2A3344);
  margin: 0 0 22px;
}
.proof-drawer-intro strong { font-weight: 600; color: var(--navy, #0B1A2E); }
.proof-drawer-intro em { font-style: italic; }

.proof-drawer-footer {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-warm, #E6DCC6);
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.proof-drawer-footer a {
  color: var(--navy, #0B1A2E);
  border-bottom: 1px solid var(--gold, #C4A24C);
  transition: color .15s;
  text-decoration: none;
}
.proof-drawer-footer a:hover { color: var(--gold, #C4A24C); }

/* Expert cards */
.expert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.expert-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-warm, #E6DCC6);
}
.expert-card:last-child { border-bottom: 0; }
.expert-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--beige-bg, #F4EDDD);
  border: 1px solid var(--border-strong, #D6CBB2);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
}
.expert-initials {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy, #0B1A2E);
  letter-spacing: 0.02em;
}
.expert-body { flex: 1; min-width: 0; }
.expert-name {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy, #0B1A2E);
  line-height: 1.3;
  margin: 0 0 4px;
}
.expert-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--beige-bg, #F4EDDD);
  border: 1px solid var(--border-strong, #D6CBB2);
  border-radius: 2px;
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft, #4A5568);
  vertical-align: 1px;
}
.expert-creds {
  font-family: var(--serif, Georgia, serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text, #2A3344);
  margin: 0;
}
.expert-creds strong { font-weight: 600; color: var(--navy, #0B1A2E); }
.expert-creds em { font-style: italic; }

@media (max-width: 720px) {
  .proof-drawer-panel { width: 100vw; }
  .proof-drawer-header { padding: 18px 20px 14px; }
  .proof-drawer-body { padding: 14px 20px 28px; }
  .proof-drawer-title { font-size: 19px; }
  .expert-avatar { width: 48px; height: 48px; }
  .expert-name { font-size: 15px; }
  .expert-creds { font-size: 13.5px; }
}
