/* Mapsmcp Showcase — minimal, dense, readable */
* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", system-ui, sans-serif;
  color: #1a1f2c; background: #fafbfc;
  -webkit-font-smoothing: antialiased;
}
a { color: #1d4ed8; text-decoration: none }
a:hover { text-decoration: underline }
code, pre {
  font-family: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;
  font-size: 13px;
}
pre {
  background: #0f172a; color: #e2e8f0;
  padding: 14px 16px; border-radius: 6px; overflow-x: auto; line-height: 1.5;
}
code { background: #eef2f7; padding: 1px 5px; border-radius: 3px; color: #334155 }
pre code { background: transparent; padding: 0; color: inherit }

/* layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px }
.topbar {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  padding: 12px 0; position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.topbar a.brand { font-weight: 700; color: #0f172a; font-size: 16px }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #475569 }
.topbar nav a { color: #475569 }

/* hero / sections */
.hero { padding: 48px 0 36px }
.hero h1 { font-size: 36px; font-weight: 700; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em }
.hero p.lede { font-size: 17px; color: #475569; max-width: 720px; margin: 0 0 24px }
section { padding: 36px 0; border-top: 1px solid #e2e8f0 }
h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em }
h2 .badge { font-size: 12px; font-weight: 500; color: #475569; background: #eef2f7; padding: 3px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle }
h3 { font-size: 17px; font-weight: 600; margin: 16px 0 6px }
.muted { color: #64748b }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; color: #475569 }
.kv b { color: #0f172a; font-weight: 600 }

/* demo grid on homepage */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin: 24px 0 }
.demo-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 18px 18px 14px; display: flex; flex-direction: column;
  transition: border-color .12s, transform .12s;
}
.demo-card:hover { border-color: #1d4ed8; transform: translateY(-1px); text-decoration: none }
.demo-card .num { font-size: 11px; font-weight: 600; color: #64748b; letter-spacing: 0.04em }
.demo-card h3 { font-size: 17px; margin: 4px 0 8px; color: #0f172a }
.demo-card p { font-size: 14px; color: #475569; margin: 0 0 12px; line-height: 1.45 }
.demo-card .tools { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #64748b; margin-top: auto }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 12px 0 }
th, td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top }
th { background: #f1f5f9; font-weight: 600; color: #334155; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em }
tr:hover td { background: #f8fafc }

/* forms */
input[type="text"], input[type="number"], select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb }
.btn {
  display: inline-block; background: #1d4ed8; color: #fff; padding: 9px 16px;
  border-radius: 6px; border: 0; font: inherit; cursor: pointer;
}
.btn:hover { background: #1e3a8a; text-decoration: none }
.btn-sm { padding: 5px 10px; font-size: 13px }
.btn-ghost { background: transparent; color: #1d4ed8; border: 1px solid #1d4ed8 }
.btn-ghost:hover { background: #eff6ff }

/* maps */
.map-frame {
  border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #f1f5f9;
}
.map-frame iframe { width: 100%; height: 520px; border: 0; display: block }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px }
.map-grid figure { margin: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden }
.map-grid figcaption { padding: 10px 12px; font-size: 13px; color: #475569 }
.map-grid img { width: 100%; height: auto; display: block }

/* result blocks */
.result { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; margin-top: 10px }
.result h4 { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: #0f172a }
.tag { display: inline-block; background: #e0e7ff; color: #1e3a8a; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-family: "JetBrains Mono", monospace }
.tag-ok { background: #d1fae5; color: #065f46 }
.tag-warn { background: #fef3c7; color: #92400e }
.tag-err { background: #fee2e2; color: #991b1b }

.footer { padding: 32px 0; color: #94a3b8; font-size: 13px; text-align: center }
.footer a { color: #94a3b8 }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px }
@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr } }
