/* A quiet handoff shared by editorial guides, evidence, and policy pages. */
.agent-handoff {
  margin: 28px 0 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border, #dfe2e7);
  color: var(--fg, var(--text, #18181b));
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.agent-handoff .agent-handoff-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.agent-handoff .agent-handoff-intro { min-width: 0; }
.agent-handoff .agent-handoff-title { margin: 0 0 3px; color: inherit; font-size: 14px; font-weight: 600; }
.agent-handoff .agent-handoff-description { margin: 0; color: var(--muted, var(--text-2, #52525b)); font-size: 13px; }
.agent-handoff .agent-handoff-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border, #dfe2e7);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.agent-handoff .agent-handoff-copy[hidden] { display: none; }
.agent-handoff .agent-handoff-copy:hover { background: var(--code-bg, var(--surface-2, #f1f2f4)); border-color: var(--muted, var(--text-2, #52525b)); }
.agent-handoff .agent-handoff-copy:disabled { cursor: progress; }
.agent-handoff .agent-handoff-details { margin: 8px 0 0; border: 0; padding: 0; }
.agent-handoff .agent-handoff-details > summary { width: fit-content; min-height: 44px; padding: 12px 0; color: var(--muted, var(--text-2, #52525b)); font-size: 12px; cursor: pointer; }
.agent-handoff .agent-handoff-details > summary:hover { color: var(--fg, var(--text, #18181b)); }
.agent-handoff .agent-handoff-prompt {
  max-width: none;
  margin: 4px 0 0;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--code-bg, var(--surface-2, #f1f2f4));
  color: var(--fg, var(--text, #18181b));
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.agent-handoff .agent-handoff-status { margin: 0; color: var(--muted, var(--text-2, #52525b)); font-size: 12px; }
.agent-handoff .agent-handoff-status:not(:empty) { margin-top: 8px; }
.agent-handoff :is(button, summary, [data-agent-prompt]):focus-visible { outline: 3px solid var(--accent, var(--link, #2563eb)); outline-offset: 3px; }
@media (max-width: 600px) {
  .agent-handoff .agent-handoff-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .agent-handoff .agent-handoff-prompt { padding: 14px; }
}
@media print {
  .agent-handoff { display: none; }
}
