/* Agent MCP Setup Page */
.sp { background: #fff; padding: 40px 0 60px; margin-top: 8rem; }
.sp-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.sp-hero { background: linear-gradient(120deg, #f3efff 0%, #fff 100%); border: 1px solid #e7ddff; border-radius: 16px; padding: 36px 32px; margin-bottom: 20px; }
.sp-hero h1 { font-size: 32px; font-weight: 800; color: #1e1b4b; margin: 0 0 10px; }
.sp-hero p { margin: 0; color: #4b5563; font-size: 15px; line-height: 1.7; }

/* Alert banners */
.sp-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.sp-alert.green { background: #ecfdf3; border: 1px solid #b7efce; }
.sp-alert.purple { background: #f5f3ff; border: 1px solid #ddd6fe; }
.sp-alert code { background: #fff; border: 1px solid #dbeafe; color: #4c1d95; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-family: "Roboto Mono", monospace; }
.sp-alert .sp-abtn { border: 0; border-radius: 8px; background: #6d4df5; color: #fff; padding: 8px 16px; font-weight: 600; font-size: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: background 0.15s, transform 0.1s; }
.sp-alert .sp-abtn:hover { background: #5738dd; text-decoration: none; color: #fff; transform: translateY(-1px); }
.sp-alert .sp-abtn:active { transform: translateY(0); }
.sp-alert .sp-abtn.copied { background: #16a34a; }

/* Cards */
.sp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px; margin-bottom: 16px; }
.sp-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: #111827; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-card p { margin: 0 0 14px; color: #4b5563; font-size: 14px; line-height: 1.7; }

/* Step badges */
.sp-step-badge { background: #6d4df5; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; white-space: nowrap; }

/* One-liner copy box (primary CTA) */
.sp-oneliner { background: #f9fafb; border-radius: 12px; padding: 18px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #e5e7eb; }
.sp-oneliner code { color: #374151; font-size: 13px; white-space: normal; word-break: break-all; flex: 1; font-family: "Roboto Mono", monospace; background: transparent; border: 0; padding: 0; line-height: 1.5; }

/* MCP URL box */
.sp-url { background: #f9fafb; border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid #e5e7eb; }
.sp-url code { color: #374151; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; font-family: "Roboto Mono", monospace; background: transparent; border: 0; padding: 0; }
.sp-cpbtn { background: #6d4df5; border: 0; color: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 600; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; transition: background 0.15s, transform 0.1s; }
.sp-cpbtn:hover { background: #5738dd; transform: translateY(-1px); }
.sp-cpbtn:active { transform: translateY(0); }
.sp-cpbtn.copied { background: #16a34a; }

/* Collapsible chevron */
.sp-chevron { transition: transform 0.2s; }
.sp-chevron-open { transform: rotate(180deg); }

/* Code blocks */
.sp-code { position: relative; background: #f9fafb; border-radius: 10px; padding: 16px 18px; border: 1px solid #e5e7eb; overflow-x: auto; margin-top: 14px; }
.sp-code pre { margin: 0; color: #374151; font-size: 13px; line-height: 1.6; font-family: "Roboto Mono", monospace !important; background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.sp-code .sp-cc { position: absolute; top: 10px; right: 10px; background: #6d4df5; border: 0; color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: background 0.15s, transform 0.1s; }
.sp-code .sp-cc:hover { background: #5738dd; transform: translateY(-1px); }
.sp-code .sp-cc:active { transform: translateY(0); }
.sp-code .sp-cc.copied { background: #16a34a; }

/* Hints */
.sp-hint { margin-top: 10px; font-size: 12px; color: #6b7280; line-height: 1.7; }
.sp-hint code { background: #f3f4f6; border-radius: 4px; padding: 2px 6px; color: #475569; font-family: "Roboto Mono", monospace; font-size: 11px; }

/* Advantages */
.sp-advantage { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.sp-adv-item { display: flex; gap: 14px; align-items: flex-start; }
.sp-adv-item > i { color: #6d4df5; font-size: 18px; margin-top: 2px; width: 24px; text-align: center; flex-shrink: 0; }
.sp-adv-item strong { display: block; font-size: 14px; color: #111827; margin-bottom: 2px; }
.sp-adv-item span { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* How it works flow */
.sp-flow { margin-top: 16px; }
.sp-flow-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px; }
.sp-flow-num { background: #6d4df5; color: #fff; font-size: 13px; font-weight: 700; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.sp-flow-step strong { display: block; font-size: 14px; color: #111827; margin-bottom: 3px; }
.sp-flow-step span { font-size: 13px; color: #6b7280; line-height: 1.5; }
.sp-flow-step code { background: #ede9fe; color: #4c1d95; border-radius: 4px; padding: 1px 5px; font-size: 12px; font-family: "Roboto Mono", monospace; }
.sp-flow-step em { color: #6d4df5; font-style: normal; }
.sp-flow-arrow { text-align: center; color: #d1d5db; font-size: 14px; padding: 4px 0; }

/* Examples */
.sp-examples { list-style: none; padding: 0; margin: 0; }
.sp-examples li { padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; color: #374151; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-examples li:last-child { border-bottom: 0; }
.sp-examples li em { color: #6d4df5; font-style: normal; font-weight: 500; }
.sp-ex-cat { background: #f3f0ff; color: #6d4df5; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }

/* Tools grid */
.sp-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-tool { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; }
.sp-tool strong { font-size: 14px; color: #111827; display: block; margin-bottom: 6px; }
.sp-tool > span { font-size: 13px; color: #6b7280; line-height: 1.55; flex: 1; }
.sp-tool-example { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.sp-tool-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; margin-bottom: 4px; }
.sp-tool-example code { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 6px; padding: 6px 10px; font-size: 11px; color: #4b5563; font-family: "Roboto Mono", monospace; display: block; word-break: break-all; line-height: 1.5; }

/* Use cases */
.sp-usecases { display: flex; flex-direction: column; gap: 14px; }
.sp-usecase { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px; }
.sp-usecase > i { color: #6d4df5; font-size: 20px; margin-top: 2px; width: 28px; text-align: center; flex-shrink: 0; }
.sp-usecase strong { display: block; font-size: 14px; color: #111827; margin-bottom: 3px; }
.sp-usecase span { font-size: 13px; color: #6b7280; line-height: 1.55; }

/* Compatibility table (detailed) */
.sp-compat-table { margin-top: 14px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.sp-compat-header { display: grid; grid-template-columns: 140px 1fr 100px 100px; gap: 8px; padding: 10px 16px; background: #f3f0ff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #6d4df5; }
.sp-compat-row2 { display: grid; grid-template-columns: 140px 1fr 100px 100px; gap: 8px; padding: 11px 16px; border-top: 1px solid #f3f4f6; align-items: center; }
.sp-compat-row2:hover { background: #fafafa; }
.sp-compat-name { font-size: 13px; color: #111827; font-weight: 600; }
.sp-compat-how { font-size: 12px; color: #6b7280; line-height: 1.5; }
.sp-compat-how code { background: #f3f4f6; border-radius: 4px; padding: 1px 5px; color: #475569; font-family: "Roboto Mono", monospace; font-size: 11px; }
.sp-compat-transport { font-size: 12px; color: #6b7280; }
.sp-compat-diff { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; text-align: center; white-space: nowrap; }
.sp-compat-diff.easy { background: #ecfdf3; color: #16a34a; }
.sp-compat-diff.medium { background: #fef9c3; color: #a16207; }

/* Important notes */
.sp-notes { margin-top: 20px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 20px; }
.sp-notes h3 { font-size: 15px; font-weight: 700; color: #92400e; margin: 0 0 14px; }
.sp-note-item { padding: 10px 0; border-bottom: 1px solid #fde68a40; }
.sp-note-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sp-note-item strong { display: block; font-size: 13px; color: #111827; margin-bottom: 4px; }
.sp-note-item span { font-size: 12.5px; color: #6b7280; line-height: 1.65; }
.sp-note-item code { background: #f3f4f6; border-radius: 4px; padding: 1px 5px; color: #475569; font-family: "Roboto Mono", monospace; font-size: 11px; }

/* FAQ */
.sp-faq { display: flex; flex-direction: column; gap: 0; }
.sp-faq-item { padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.sp-faq-item:last-child { border-bottom: 0; }
.sp-faq-item strong { display: block; font-size: 14px; color: #111827; margin-bottom: 4px; }
.sp-faq-item span { font-size: 13px; color: #6b7280; line-height: 1.6; }
.sp-faq-item code { background: #f3f4f6; border-radius: 4px; padding: 1px 5px; color: #475569; font-family: "Roboto Mono", monospace; font-size: 12px; }

/* Resources */
.sp-links { font-size: 14px; line-height: 2.2; }
.sp-links a { color: #6d4df5; text-decoration: none; font-weight: 500; }
.sp-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .sp-hero h1 { font-size: 26px; }
    .sp-hero { padding: 24px 20px; }
    .sp-card { padding: 20px; }
    .sp-tools { grid-template-columns: 1fr; }
    .sp-examples li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sp-compat-header { display: none; }
    .sp-compat-row2 { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
    .sp-compat-diff { display: inline-block; width: fit-content; }
}

@media(max-width: 1650px){
    #new_header .container {
        max-width: 98% !important;
    }
}