/* Shared look for the /guides pages — compact, matches the docs feel. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f8fafc; --card: #ffffff; --border: #e2e8f0;
  --text: #0f172a; --muted: #64748b; --accent: #2962ff;
  --code-bg: #0f172a; --code-text: #e2e8f0;
}
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
.topbar { background: var(--card); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#2962ff,#00b4d8); color:#fff; font: 700 13px/30px Consolas,monospace; text-align:center; }
.topbar a { color: var(--text); text-decoration: none; font-weight: 700; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a { font-weight: 500; font-size: 14px; color: var(--muted); }
.topbar nav a:hover { color: var(--accent); }
main { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumb a { color: var(--muted); }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--muted); margin-bottom: 34px; }
h2 { font-size: 22px; margin: 40px 0 12px; }
h3 { font-size: 17px; margin: 26px 0 8px; }
p, ul, ol { margin-bottom: 14px; }
ul, ol { padding-left: 22px; }
a { color: var(--accent); }
code { background: #eef2ff; color: #1e40af; padding: 1px 6px; border-radius: 4px; font-family: Consolas, monospace; font-size: 0.92em; }
pre { background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 18px 20px; overflow-x: auto; margin: 16px 0 22px; font-size: 13.5px; line-height: 1.6; }
pre code { background: none; color: inherit; padding: 0; }
.callout { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: 14.5px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.cta { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 11px 22px; border-radius: 8px; text-decoration: none; margin-top: 8px; }
footer { border-top: 1px solid var(--border); margin-top: 60px; padding-top: 20px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
/* Second footer row: links into the per-instrument market pages. Its own line,
   so it reads as a different kind of link than the sibling-guide list above. */
.live-row { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--border); }

/* Brand mark is now the favicon artwork itself (an <img>), not a hand-drawn
   tile — the header matches the browser tab on every page. */
.topbar img.mark { display: block; object-fit: cover; }

/* Uniform brand/copyright line closing every guide footer. flex-basis 100%
   puts it on its own row below the related-guide links. */
.foot-brand { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.foot-brand img { width: 20px; height: 20px; border-radius: 6px; }
.foot-brand strong { color: var(--text); }
