/* songco.de/mcp/: songcode in an AI assistant. Built on public/blog/blog.css
   (tokens, header, footer, buttons, hero); the player card is
   public/embed/player.css. Page markup: mcpPage() in scripts/build-blog.mjs. */

.mcp-hero { padding-bottom: 40px; }

.mcp-address {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-top: 32px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.mcp-address-label { color: var(--text-3); font: 500 12px var(--font-mono); text-transform: lowercase; }
.mcp-address code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font: 500 15px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}
.mcp-copy { flex: none; min-width: 76px; height: 36px; padding: 0 14px; font-size: 14px; }

.mcp-h {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.mcp-lede, .mcp-copytext p {
  max-width: 40em;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
}
.mcp-lede strong, .mcp-card strong, .mcp-steps strong { color: var(--text); font-weight: 600; }
.mcp-section code, .mcp-copytext code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font: 0.86em var(--font-mono);
  overflow-wrap: anywhere;
}

/* ———— the conversation ———— */

.mcp-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  padding-block: 48px;
}
.mcp-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface-0);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mcp-msg { font-size: 15px; line-height: 1.55; }
.mcp-you {
  align-self: flex-end;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--surface-3);
  color: var(--text);
}
.mcp-them { display: flex; flex-direction: column; gap: 14px; color: var(--prose); }
.mcp-them strong { color: var(--text); font-weight: 600; }
.mcp-them .scp { max-width: 440px; }

/* ———— steps and cards ———— */

.mcp-section { padding-block: 56px; border-top: 1px solid var(--line); }
.mcp-section:last-of-type { padding-bottom: 96px; }

.mcp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.mcp-steps li, .mcp-card {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mcp-steps h3, .mcp-card h3 { color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mcp-steps p, .mcp-card p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

.mcp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.mcp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcp-note { max-width: 44em; margin-top: 20px; color: var(--text-3); font-size: 14px; line-height: 1.55; }

.mcp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 960px) {
  .mcp-demo { grid-template-columns: 1fr; gap: 28px; }
  .mcp-steps, .mcp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mcp-steps, .mcp-grid, .mcp-grid-2 { grid-template-columns: 1fr; }
  .mcp-chat { padding: 18px; }
  .mcp-you { max-width: 92%; }
  .mcp-address { padding-left: 12px; }
  .mcp-address code { font-size: 13px; }
  .mcp-address-label { display: none; }
}

/* ———— assistants' marks ———— */

.mcp-logo { flex: none; width: 18px; height: 18px; fill: currentColor; }
.mcp-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 14px;
}
.mcp-hosts li { display: inline-flex; align-items: center; gap: 8px; }
/* Each card is three rows of one shared grid (marks, name, steps), so the
   names and the steps start at the same height in every card of a row,
   however a name wraps. */
.mcp-steps { grid-template-rows: auto; row-gap: 16px; }
.mcp-steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.mcp-steps li > .mcp-logos { display: flex; gap: 8px; height: 22px; margin-bottom: 14px; color: var(--text); }
.mcp-steps .mcp-logo { width: 22px; height: 22px; }
.mcp-steps li > p { margin-top: 8px; }
