@font-face {
  font-family: "Shantell Sans";
  src: url("/vendor/shantell-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.agent-example { display: grid; gap: 34px; }
.example-intro { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 28px 64px; align-items: end; }
.example-intro h2 { margin-bottom: 18px; }
.example-intro p { max-width: 52ch; margin-bottom: 8px; font-size: 18px; }
.response-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.agent-response { display: grid; grid-template-rows: auto minmax(210px, auto) 1fr; margin: 0; padding: 0; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--panel-shadow); }
.agent-response:last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); grid-template-rows: auto 1fr; }
.agent-response:last-child figcaption { grid-column: 1 / -1; }
.agent-response figcaption { padding: 9px 38px 9px 12px; border-bottom: 2px solid currentColor; font: 700 11px/1.4 var(--utility-font); letter-spacing: .05em; text-transform: uppercase; }
.agent-response figcaption > span:first-child { font-weight: bold; margin-right: 8px; }
.excerpt-label { opacity: .75; }
.agent-response blockquote { min-width: 0; margin: 30px 218px 24px 22px; padding-left: 16px; border-left: 2px solid currentColor; }
.agent-response:last-child blockquote { margin-bottom: 30px; }
.agent-response .agent-passage {
  --ann-color: currentColor;
  --ann-mark: transparent;
  --ann-label-max-width: 164px;
  --ann-target-gap: 10px;
  --ann-label-gap: 10px;
  display: block;
  margin: 0;
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.agent-passage code { font: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.agent-response .agent-passage::after { font-size: 15px; line-height: 1.35; opacity: 1; }
.agent-response .agent-passage::before { opacity: 1; }
.agent-reading { align-self: stretch; padding: 20px 22px 22px; border-top: 2px solid var(--line); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--ink); font-size: 15px; }
.agent-response:last-child .agent-reading { border-top: 0; border-left: 2px solid var(--line); }
.agent-reading h3 { margin-bottom: 10px; font-size: 20px; }
.agent-reading p { margin-bottom: 10px; }
.agent-reading .example-next { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--soft-line); }

@media (max-width: 900px) {
  .example-intro, .response-grid { grid-template-columns: 1fr; }
  .example-intro { gap: 4px; }
  .agent-response, .agent-response:last-child { grid-column: 1; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .agent-response:last-child figcaption { grid-column: 1; }
  .agent-response blockquote { margin: 22px 18px; padding-left: 12px; }
  .agent-response .agent-passage { --ann-label-max-width: 100%; margin-bottom: 0; font-size: 13px; }
  .agent-response .agent-passage::before { display: none; }
  .agent-response .agent-passage::after { position: static; display: block; width: auto; margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--accent); transform: none; font-size: 15px; }
  .agent-response:last-child .agent-reading { border-top: 2px solid var(--line); border-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .agent-passage::after { animation: note-appear .55s ease-out both; }
  .agent-response:nth-child(2) .agent-passage::after { animation-delay: .08s; }
  .agent-response:nth-child(3) .agent-passage::after { animation-delay: .16s; }
  .agent-response:nth-child(4) .agent-passage::after { animation-delay: .24s; }
  .agent-response:nth-child(5) .agent-passage::after { animation-delay: .32s; }
  @keyframes note-appear { from { opacity: 0; } to { opacity: 1; } }
}
