/* axiomtrade.exchange — light editorial theme, system fonts, no webfont requests */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e7ef;
  --line-2: #cbd3e1;
  --accent: #0e7c6b;
  --accent-ink: #0a5f52;
  --accent-soft: #e4f4f0;
  --warn-soft: #fff4e5;
  --warn-ink: #8a4b00;
  --danger-soft: #fdecec;
  --danger-ink: #9f1d1d;
  --info-soft: #e8f0fe;
  --info-ink: #1e3a8a;
  --radius: 12px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
h4 { font-size: 1rem; margin-top: 1.4em; }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: .3em; }
small, .fine { font-size: .85rem; color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; background: #eef1f6; padding: .1em .35em; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em 1em; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.kicker { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .5em; }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: .5em .75em; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.nav-links .btn { margin-left: 8px; color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 42px; height: 42px; position: relative; cursor: pointer; }
.bars, .bars::before, .bars::after { content: ""; position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.bars { top: 19px; }
.bars::before { top: -6px; left: 0; }
.bars::after { top: 6px; left: 0; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .6em 1.1em; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: .95rem; line-height: 1.2; }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink) !important; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .4em .8em; font-size: .85rem; }
.btn-block { width: 100%; }

/* Home */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.facts { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.facts table { margin: 0; }
.facts td { padding: .45em 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.facts tr:last-child td { border-bottom: 0; }
.facts td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { white-space: nowrap; }
.prose-wide { max-width: 760px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 36px 0 32px; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 1.2em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 1.2em; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.card p { margin: 0 0 .6em; color: var(--ink-2); font-size: .93rem; }
.card .more { color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 1em; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps h3 { margin-top: 0; font-size: 1.05rem; }
.steps p:last-child { margin-bottom: 0; }

/* Article layout */
.crumbs { margin: 18px 0 6px; font-size: .85rem; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.crumbs li + li::before { content: "/"; margin-right: .4em; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-bottom: 24px; }
.layout.single { grid-template-columns: minmax(0, 820px); }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 24px; } }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); min-width: 0; }
.article > h1 { margin-top: 0; }
.article .lead { font-size: 1.12rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-size: .82rem; color: var(--muted); padding-bottom: 1em; border-bottom: 1px solid var(--line); margin-bottom: 1.4em; }
.article table { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--bg); font-weight: 600; white-space: nowrap; }
.article tbody tr:hover { background: #fafbfd; }
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1.2em 0; }
.note.warn { border-color: #e08a00; background: var(--warn-soft); color: var(--warn-ink); }
.note.danger { border-color: #d33; background: var(--danger-soft); color: var(--danger-ink); }
.note.info { border-color: #2f5fd1; background: var(--info-soft); color: var(--info-ink); }
.note p:last-child { margin-bottom: 0; }
.note a { color: inherit; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; background: var(--surface); }
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 10px; color: var(--muted); font-weight: 400; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 12px; }
dl.glossary dt { font-weight: 700; margin-top: 1.2em; }
dl.glossary dd { margin: .25em 0 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pros-cons h3 { margin-top: 0; font-size: 1rem; }
.pros-cons ul { margin-bottom: 0; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.verdict { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 1.2em 0; }
.verdict p:last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.5em; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hub h1 { margin-bottom: .3em; }
.hub h2 { margin-top: 1.6em; }
.article .article-sources { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; margin-top: 2em; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-title { font-weight: 600; margin-bottom: .8em; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); }
.code-box strong { font-family: var(--mono); font-size: 1.25rem; letter-spacing: .08em; }
.side-card .fine { margin: .8em 0 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.toc li { margin: .3em 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (max-width: 960px) { .sidebar { position: static; } .toc { display: none; } }

/* Related + CTA */
.related { padding: 24px 0 8px; }
.related h2 { margin-top: 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 32px; margin: 24px 0 40px; }
.cta-band .kicker { color: #9fb3c8; }
.cta-band h2 { margin: 0 0 .4em; color: #fff; }
.cta-band p { margin: 0; color: #c8d3e0; max-width: 60ch; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: stretch; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 96px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); margin-top: 12px; }
.foot-h { font-weight: 700; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35em 0; }
.site-footer li a { color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent-ink); text-decoration: underline; }
.risk { margin-top: 28px; padding: 14px 16px; background: var(--warn-soft); color: var(--warn-ink); border-radius: 10px; }
.risk a { color: inherit; }
.legal { color: var(--muted); font-size: .85rem; margin: 16px 0 0; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; box-shadow: 0 8px 30px rgba(11,18,32,.14); z-index: 40; }
.sticky-code { flex: 1; display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; color: var(--ink); }
.sticky-code b { font-family: var(--mono); letter-spacing: .06em; }
.sticky-cta.hidden { display: none; }
@media (min-width: 961px) { .sticky-cta { display: none; } }

/* Error page */
.error-page { padding: 64px 0; text-align: center; }
.error-page h1 { margin-bottom: .3em; }
.error-page .hero-actions { justify-content: center; }
