/* ── The MCP band ─────────────────────────────────────────────
   One whole dark field: the copy on the left in the page's own type, the live
   transcript on the right as a piece of real interface (data-ui), so it keeps its
   own window edge. The band carries the page gap inside it, like the wall and the
   closing do, and the section after it starts its own again. */

.mcpband {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: var(--gap);
  margin-bottom: var(--gap);
}
.mcpband__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.mcpband .h2 { color: #fff; }
.mcpband .lede { color: var(--on-ink); margin-top: 20px; max-width: 42ch; }

.mcpband__ways {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.5;
}
.mcpband__ways strong { color: #fff; font-weight: 700; }

/* The server address: the one thing a reader copies. A filled well, not a box. */
.mcpband__url {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 8px 8px 18px;
  max-width: 46ch;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.mcpband__url code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: #fff;
}
.mcpband__copyBtn {
  flex-shrink: 0;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease-out, background-color .15s;
}
.mcpband__copyBtn:hover { background: #E9E8E5; }
.mcpband__copyBtn:active { transform: scale(.96); }

.mcpband__more { margin: 22px 0 0; font-size: 16px; }
.mcpband__more a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.mcpband__more a:hover { text-decoration-color: var(--blue-deep); }
.mcpband__more span { margin-left: 10px; color: var(--on-ink-mid); }

/* ── The transcript (a real interface fragment) ─────────────── */
.mcpchat {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #1F2125;
  overflow: hidden;
}
.mcpchat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #26292E;
  font-size: 14px;
}
.mcpchat__who { color: #fff; font-weight: 800; font-family: var(--display); font-size: 15px; }
.mcpchat__conn { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink-mid); }
.mcpchat__conn::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43C46E;
}

.mcpchat__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.mcpchat__msg {
  margin: 0;
  max-width: 88%;
  font-size: 15.5px;
  line-height: 1.5;
  color: #EDEDEC;
}
.mcpchat__msg--me {
  align-self: flex-end;
  padding: 11px 16px;
  border-radius: 18px 18px 6px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
/* A tool call: the name in the accent, what it did after it, quiet. */
.mcpchat__tool {
  margin: 0;
  align-self: flex-start;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: 13.5px;
  color: var(--on-ink-mid);
}
.mcpchat__tool span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #8FB8FF;
}
.mcpchat__log > .is-new { animation: mcpchat-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mcpchat-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.mcpchat__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 18px;
  background: #26292E;
}
.mcpchat__prompt {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: transparent;
  color: #EDEDEC;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s ease-out;
}
.mcpchat__prompt:hover { border-color: rgba(255, 255, 255, .5); }
.mcpchat__prompt:active { transform: scale(.97); }
.mcpchat__prompt.is-on { background: #fff; border-color: #fff; color: var(--ink); }
.mcpchat__prompt:focus-visible,
.mcpband__copyBtn:focus-visible { outline: 2px solid #8FB8FF; outline-offset: 2px; }
.mcpchat__note {
  padding: 0 20px 16px;
  background: #26292E;
  font-size: 13px;
  color: var(--on-ink-dim);
}

@media (max-width: 900px) {
  .mcpband__grid { grid-template-columns: 1fr; }
  .mcpchat__log { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .mcpchat__log > .is-new { animation: none; }
}
