/* Shared styling for MiRA static content pages (compare, tutorials, data-format).
   Matches the palette used in docs/manual.html. No build step; plain CSS. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #6d28d9;
  --accent-soft: #ede9fe;
  --ok: #166534;
  --ok-bg: rgba(34, 197, 94, 0.15);
  --warn: #b45309;
  --warn-bg: rgba(245, 158, 11, 0.15);
  --no: #9ca3af;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }

/* ── Top bar ─────────────────────────────────────────────── */
header.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky; top: 0; z-index: 10;
}
header.topbar .inner {
  max-width: 860px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
header.topbar img { height: 30px; width: auto; }
header.topbar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.topbar nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
header.topbar nav a:hover { color: var(--accent); }

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: 30px; line-height: 1.25; margin: 34px 0 10px; color: #111827; }
h2 { font-size: 21px; margin: 34px 0 10px; color: #111827; }
h3 { font-size: 17px; margin: 24px 0 8px; color: #111827; }
p { margin: 12px 0; }
.lead { font-size: 17px; color: #374151; margin: 14px 0 24px; }
a { color: var(--accent); }
ul, ol { margin: 12px 0 12px 22px; }
li { margin: 5px 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }

.crumbs { font-size: 13px; color: var(--muted); margin-top: 22px; }
.crumbs a { color: var(--muted); }

.callout {
  background: var(--accent-soft); border: 1px solid #ddd6fe;
  border-radius: 8px; padding: 12px 16px; margin: 20px 0; font-size: 14px;
}
.note { color: var(--muted); font-size: 13px; }

/* ── Tables ──────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #f3f4f6; font-weight: 600; }
td.tool { white-space: normal; }
.yes { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }
.no { color: var(--no); font-weight: 600; }

/* ── Code ────────────────────────────────────────────────── */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f3f4f6; padding: 1.5px 5px; border-radius: 4px; font-size: 0.9em; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; margin: 16px 0; font-size: 13px; line-height: 1.55; }
pre code { background: none; color: inherit; padding: 0; }

/* ── Steps ───────────────────────────────────────────────── */
ol.steps { counter-reset: step; list-style: none; margin-left: 0; }
ol.steps > li { position: relative; padding-left: 40px; margin: 16px 0; }
ol.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

footer.site { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 18px;
  font-size: 13px; color: var(--muted); }
footer.site a { color: var(--muted); }
