/* ==========================================================
   Trump-Overlap Drawer — second instance of the reusable proof-drawer
   pattern. Each card carries two prose beats per person: their role
   in U.S. v. Raniere, and their later action against President Trump
   or his administration.
   Triggers: [data-overlap-open]   Dismiss: [data-overlap-close], backdrop, Esc
   ========================================================== */

/* Trigger chip — inline in body prose */
.overlap-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;
}
.overlap-trigger:hover {
  background: var(--gold, #C4A24C);
  border-color: var(--gold, #C4A24C);
  color: #fff;
}
.overlap-trigger .arrow { color: inherit; font-size: 13px; }

/* Drawer container — reuses the same chrome pattern as experts-drawer
   but with its own id so the two drawers can coexist on one page. */
.overlap-drawer[hidden] { display: none; }
.overlap-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.overlap-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 46, 0.42);
  animation: overlapFade .2s ease-out;
  cursor: pointer;
}
.overlap-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(620px, 100vw);
  background: var(--bg, #F8F3EA);
  box-shadow: -8px 0 32px rgba(11, 26, 46, 0.18);
  overflow-y: auto;
  animation: overlapSlide .26s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
}
@keyframes overlapFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlapSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }

.overlap-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;
}
.overlap-drawer-headings { flex: 1; min-width: 0; }
.overlap-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;
}
.overlap-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;
}
.overlap-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;
}
.overlap-drawer-close:hover {
  background: var(--navy, #0B1A2E);
  border-color: var(--navy, #0B1A2E);
  color: #fff;
}

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

/* Overlap card — name + headshot + two prose beats */
.overlap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.overlap-card {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-warm, #E6DCC6);
}
.overlap-card:last-child { border-bottom: 0; }
.overlap-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  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;
}
.overlap-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
}
.overlap-initials {
  font-family: var(--serif, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy, #0B1A2E);
  letter-spacing: 0.02em;
}
.overlap-body { flex: 1; min-width: 0; }
.overlap-name {
  font-family: var(--serif, Georgia, serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy, #0B1A2E);
  line-height: 1.3;
  margin: 0 0 2px;
}
.overlap-role {
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute, #6B7280);
  margin: 0 0 10px;
}
.overlap-beat {
  font-family: var(--serif, Georgia, serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text, #2A3344);
  margin: 0 0 6px;
}
.overlap-beat:last-child { margin-bottom: 0; }
.overlap-beat .label {
  display: inline;
  font-family: var(--sans, -apple-system, sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft, #4A5568);
  margin-right: 6px;
}
.overlap-beat strong { font-weight: 600; color: var(--navy, #0B1A2E); }
.overlap-beat em { font-style: italic; }
.overlap-beat a {
  color: var(--navy, #0B1A2E);
  border-bottom: 1px solid var(--gold, #C4A24C);
}
.overlap-beat a:hover { color: var(--gold, #C4A24C); }

@media (max-width: 720px) {
  .overlap-drawer-panel { width: 100vw; }
  .overlap-drawer-header { padding: 18px 20px 14px; }
  .overlap-drawer-body { padding: 14px 20px 28px; }
  .overlap-drawer-title { font-size: 19px; }
  .overlap-avatar { width: 54px; height: 54px; }
  .overlap-name { font-size: 15.5px; }
  .overlap-beat { font-size: 14px; }
}
