@import url('/simplicio/blog/blog.css');
@import url('/assets/css/lang-picker.css');

/* Documentation layout extensions — 100% harmonious with Simplicio Blog design */
.doc-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 40px;
}
.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid #dfe5ed;
  font-size: 13px;
  font-weight: 600;
  color: #354a5e;
  transition: all 0.15s ease;
}
.doc-pill:hover {
  border-color: #20bb83;
  color: #13765b;
  background: #eff8f4;
  transform: translateY(-1px);
}
.doc-section {
  margin: 50px 0;
  scroll-margin-top: 40px;
}
.doc-card {
  background: white;
  border: 1px solid #dde5ed;
  border-radius: 16px;
  padding: 32px;
  margin-top: 20px;
}
.doc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .doc-grid-2 {
    grid-template-columns: 1fr;
  }
}
.step-card {
  background: white;
  border: 1px solid #dfe5ed;
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.step-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: #172638;
}
.step-card p {
  margin: 0;
  font-size: 14px;
  color: #4c6073;
  line-height: 1.6;
}
pre {
  background: #0f172a;
  color: #f1f5f9;
  padding: 18px 20px;
  border-radius: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  margin: 16px 0;
}
code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: #eef3f8;
  padding: 3px 6px;
  border-radius: 5px;
  color: #0f172a;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.tab-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #dfe5ed;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #536a80;
  transition: all .15s ease;
}
.tab-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.tab-btn.active {
  background: #172638;
  color: #fff;
  border-color: #172638;
}
.doc-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}
.doc-table th, .doc-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #dfe5ed;
}
.doc-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #172638;
}
.doc-table tr:last-child td {
  border-bottom: none;
}
.tag-rust {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff8f4;
  color: #13765b;
  font-weight: 700;
  font-size: 11px;
}
.tag-lane {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef3f8;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 11px;
}
.faq-item {
  border-bottom: 1px solid #dfe5ed;
  padding: 24px 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #172638;
}
.faq-item p {
  margin: 0;
  font-size: 15px;
  color: #4c6073;
  line-height: 1.65;
}

/* ========================================================= */
/* MCP Integration Hub — High-Fidelity Multi-Agent Setup Hub */
/* ========================================================= */
.mcp-hub {
  background: #ffffff;
  border: 1px solid #dfe5ed;
  border-radius: 24px;
  padding: 36px;
  color: #172638;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(23, 38, 56, 0.05);
}
.mcp-hub-header {
  margin-bottom: 28px;
}
.mcp-hub-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #172638;
}
.mcp-hub-header p {
  font-size: 15px;
  color: #536a80;
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

/* Agent Selector Grid */
.mcp-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .mcp-agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .mcp-agent-grid {
    grid-template-columns: 1fr;
  }
}

.mcp-agent-card {
  background: #ffffff;
  border: 1.5px solid #dde5ed;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  user-select: none;
}
.mcp-agent-card:hover {
  background: #eff8f4;
  border-color: #536a80;
  transform: translateY(-2px);
}
.mcp-agent-card.is-active {
  background: #eff8f4;
  border-color: #13765b;
  box-shadow: 0 0 0 2px rgba(19, 118, 91, 0.15);
}

.mcp-agent-card .agent-icon {
  font-size: 24px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
}
.mcp-agent-card strong {
  font-size: 15px;
  font-weight: 700;
  color: #172638;
}
.mcp-agent-card span {
  font-size: 12px;
  color: #536a80;
}

/* 2-Column Main Interaction Box */
.mcp-workbench {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
@media (max-width: 960px) {
  .mcp-workbench {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Step by step box */
.mcp-step-box {
  background: #fbfcfe;
  border: 1px solid #dfe5ed;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mcp-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe5ed;
  flex-wrap: wrap;
  gap: 12px;
}
.mcp-step-title {
  font-size: 18px;
  font-weight: 800;
  color: #172638;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mcp-action-btn {
  background: #eff8f4;
  color: #172638;
  border: 1px solid #13765b;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.mcp-action-btn:hover {
  background: #13765b;
  color: #172638;
  border-color: #13765b;
}

/* Step Items */
.mcp-step-item {
  display: flex;
  gap: 16px;
}
.mcp-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dde5ed;
  color: #172638;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.mcp-step-content {
  flex: 1;
  min-width: 0;
}
.mcp-step-content p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4c6073;
  line-height: 1.5;
}

.mcp-code-block {
  background: #0f172a;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #f1f5f9;
  overflow-x: auto;
  line-height: 1.6;
}

/* Single-line input-style code bar */
.mcp-single-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.mcp-single-code code {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #172638;
  overflow-x: auto;
  white-space: nowrap;
}
.mcp-icon-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #536a80;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.mcp-icon-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #172638;
  border-color: #536a80;
}

/* Multi-line code block */
.mcp-multi-code {
  position: relative;
  background: #0f172a;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.mcp-multi-code pre {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #172638;
  line-height: 1.55;
}
.mcp-multi-code .mcp-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #dde5ed;
  border-radius: 6px;
  color: #536a80;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.mcp-multi-code .mcp-copy-btn:hover {
  background: #dde5ed;
  color: #172638;
  border-color: #536a80;
}

.mcp-footnote {
  font-size: 12px;
  color: #536a80;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #dfe5ed;
}

/* Right Column: Cards */
.mcp-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mcp-side-card {
  background: #fbfcfe;
  border: 1px solid #dfe5ed;
  border-radius: 18px;
  padding: 22px;
}
.mcp-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mcp-status-dot-neutral {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #536a80;
}
.mcp-status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20bb83;
  box-shadow: 0 0 8px #20bb83;
}
.mcp-status-heading {
  font-size: 14px;
  font-weight: 700;
  color: #172638;
}
.mcp-status-desc {
  font-size: 13px;
  color: #536a80;
  margin: 0 0 16px;
  line-height: 1.45;
}
.mcp-btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.mcp-btn-action.btn-verify {
  background: #eff8f4;
  border: 1px solid #13765b;
  color: #172638;
  margin-bottom: 8px;
}
.mcp-btn-action.btn-verify:hover {
  background: #dff3e9;
  border-color: #13765b;
  color: #172638;
}
.mcp-btn-action.btn-settings {
  background: transparent;
  border: 1px solid transparent;
  color: #536a80;
}
.mcp-btn-action.btn-settings:hover {
  background: #eff8f4;
  color: #172638;
}

.mcp-prompts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #536a80;
  margin: 0 0 14px;
}
.mcp-prompt-bubble {
  background: #eff8f4;
  border-left: 3px solid #13765b;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #4c6073;
  font-style: italic;
  line-height: 1.45;
}
.mcp-prompt-bubble:last-child {
  margin-bottom: 0;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Keep terminal contrast and contain long configuration snippets. */
.mcp-agent-card { color: #13765b; font: inherit; }
.mcp-agent-card:focus-visible { outline: 2px solid #13765b; outline-offset: 3px; }
.mcp-workbench { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.mcp-step-box, .mcp-side-column { min-width: 0; }
.mcp-step-num { background: #eff8f4; color: #13765b; }
.mcp-single-code code, .mcp-multi-code pre, .mcp-code-block { color: #f1f5f9; background: #0f172a; direction: ltr; text-align: left; }
.mcp-single-code code { min-width: 0; }
.mcp-multi-code pre { padding-right: 36px; }
.mcp-icon-copy, .mcp-multi-code .mcp-copy-btn { color: #f1f5f9; background: #1e293b; }
.mcp-icon-copy:hover, .mcp-multi-code .mcp-copy-btn:hover { color: #fff; background: #334155; }
.mcp-step-content code { overflow-wrap: anywhere; }
.mcp-hub .eyebrow { color: #13765b; }
@media (max-width: 960px) { .mcp-workbench { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .mcp-hub { padding: 18px; } .mcp-step-box { padding: 16px; } }
