/* ===== Market Games — Insights section (articles + listing) ===== */
/* Article scope: long-form reading treatment. Tokens extend mg.css. */
.article, .sheet {
  /* Light reading sheet: overrides the dark mg.css tokens inside the sheet only */
  --bg: #f7f5fc;
  --bg2: #efebf8;
  --surface: #ffffff;
  --panel: rgba(109, 40, 217, .04);
  --line: rgba(22, 18, 43, .13);
  --line-strong: rgba(22, 18, 43, .28);
  --ink: #16122b;
  --mut: rgba(22, 18, 43, .72);
  --mut2: rgba(22, 18, 43, .52);
  --em: #6d28d9;
  --em2: #5b21b6;
  --em-soft: rgba(109, 40, 217, .10);
  --gold: #a8730a;
  --gold-soft: rgba(168, 115, 10, .12);
  --ok: #15803d;
  --shadow: 0 24px 60px rgba(22, 18, 43, .08);
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 0%, var(--em-soft), transparent 38%),
    linear-gradient(180deg, var(--bg), var(--bg2) 50%, var(--bg));
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 18px;
}
.article {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 19px; line-height: 1.6;
  padding: 8px 0 56px;
}
.sheet { padding: 0 0 24px; }
.article a:hover, .sheet a:hover { color: var(--em); }
.article .eyebrow, .sheet .eyebrow { color: var(--em2); border-color: rgba(109, 40, 217, .35); background: rgba(109, 40, 217, .07); }
.article .fstep.onchain .idx { color: #fff; }
.sheet h1, .sheet h2, .sheet h3 { color: var(--ink); }
.sheet a.post { background: var(--surface); box-shadow: var(--shadow); }
.sheet a.post:hover { border-color: rgba(109, 40, 217, .45); }
.sheet .post-meta .ptag { color: var(--gold); background: var(--gold-soft); border-color: rgba(168, 115, 10, .3); }
.sheet a.post .go { color: var(--em2); }
.article .ar-hero { padding: 40px 0 28px; }
.article a { color: var(--em2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
  .article a:hover { border-bottom-color: var(--em2); }
  .article a:focus-visible, .article button:focus-visible { outline: 2px solid var(--em2); outline-offset: 3px; }

  .article .ui, .article h1, .article h2, .article h3, .article .eyebrow, .article .label, .article .kicker, .article .pcard h4, .article .col-head, .article .fstep b, .article .foot, .article .masthead, .article .byline {
    font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  }
  .article .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

  .article .wrap { width: min(680px, calc(100% - 40px)); margin: 0 auto; }
  .article .wide { width: min(900px, calc(100% - 40px)); margin: 0 auto; }

  /* Hero */
  .article .ar-hero { padding: 72px 0 40px; }
  .article h1 {
    font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -1.6px; font-weight: 900;
    margin: 0 0 22px; text-wrap: balance;
  }
  .article h1 em { font-style: normal; color: var(--mut2); }
  .article .standfirst { font-size: 22px; line-height: 1.45; color: var(--mut); margin: 0 0 30px; text-wrap: pretty; }
  .article .byline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--mut2); font-weight: 600; padding-top: 22px; border-top: 1px solid var(--line); }
  .article .byline b { color: var(--ink); }

  /* Thesis */
  .article .thesis {
    margin: 48px 0 0;
    padding: 30px 34px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    background: var(--panel);
    border-radius: 6px;
  }
  .article .thesis .label { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
  .article .thesis p { font-size: 24px; line-height: 1.38; font-weight: 600; margin: 0; letter-spacing: -.2px; text-wrap: pretty; }
  .article .thesis small { display: block; margin-top: 14px; font-size: 16px; color: var(--mut); font-weight: 400; }

  /* Article */
  .article article { padding: 40px 0 60px; }
  .article .kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--em2); margin: 64px 0 10px; }
  .article h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -1px; font-weight: 800; margin: 0 0 22px; text-wrap: balance; }
  .article h3 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin: 38px 0 12px; text-wrap: balance; }
  .article h4.sub-h { font-family: Inter, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); margin: 34px 0 10px; }
  .article .ledger table.threat td { font-family: "Source Serif 4", Georgia, serif; font-size: 15px; font-weight: 400; color: var(--mut); width: auto; }
  .article .ledger table.threat td:first-child { font-family: Inter, sans-serif; font-weight: 700; color: var(--ink); width: 24%; font-size: 14px; }
  .article .ledger table.threat tr.th td { font-family: Inter, sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); background: var(--panel); }
  .article .ledger table.threat td:last-child { color: var(--ink); }
  .article .ledger table.threat strong { color: var(--gold); font-weight: 700; }
  .article .ledger table.threat .mono { font-size: 13.5px; }
  .article h3 .n { color: var(--em2); font-weight: 900; margin-right: 10px; font-variant-numeric: tabular-nums; }
  .article p { margin: 0 0 20px; text-wrap: pretty; }
  .article p.lead { font-size: 21px; color: var(--mut); }
  .article ul { margin: 0 0 22px; padding-left: 22px; }
  .article li { margin-bottom: 6px; }
  .article strong { font-weight: 600; }
  .article sup a { border: 0; font-family: Inter, sans-serif; font-size: 11px; font-weight: 700; color: var(--em2); padding-left: 2px; }

  .article .pull {
    margin: 34px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--em2);
    font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: -.3px; text-wrap: balance;
  }
  .article .pull.gold { border-left-color: var(--gold); }

  .article hr.rule { border: 0; height: 1px; background: var(--line); margin: 56px 0; }

  /* Two regulators columns */
  .article .two-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 34px; }
  .article .world { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 24px 24px 18px; }
  .article .col-head { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
  .article .col-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--em2); }
  .article .world.gaming .col-head .dot { background: var(--gold); }
  .article .world p.q { font-size: 16.5px; line-height: 1.45; margin: 0 0 10px; color: var(--ink); font-weight: 600; }
  .article .world ul { font-size: 16px; color: var(--mut); padding-left: 18px; margin: 0; }
  .article .world li { margin-bottom: 4px; }

  /* Ledger record */
  .article .ledger {
    margin: 30px 0 34px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
    background: var(--surface); box-shadow: var(--shadow);
  }
  .article .ledger-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel);
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut2);
  }
  .article .ledger-head .status { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
  .article .ledger-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
  .article .ledger table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .article .ledger td { padding: 10px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
  .article .ledger tr:last-child td { border-bottom: 0; }
  .article .ledger td:first-child { color: var(--mut2); width: 38%; }
  .article .ledger td:last-child { color: var(--ink); font-weight: 600; }
  .article .ledger .hl td:last-child { color: var(--em2); }
  .article .ledger-scroll { overflow-x: auto; }

  /* Formula rows */
  .article .formulas { display: grid; gap: 14px; margin: 26px 0 34px; }
  .article .formula { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px 20px; }
  .article .formula .label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); margin-bottom: 10px; }
  .article .formula .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; }
  .article .formula .t { padding: 6px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-weight: 600; }
  .article .formula .op { color: var(--mut2); font-weight: 700; }
  .article .formula .t.res { background: var(--em-soft); border-color: transparent; color: var(--em2); }
  .article .formula .t.rng { background: var(--gold-soft); border-color: transparent; color: var(--gold); }

  /* Products */
  .article .products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 34px; }
  .article .pcard { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 26px; }
  .article .pcard h4 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
  .article .pcard .sub { font-size: 14px; color: var(--em2); font-weight: 700; margin-bottom: 16px; }
  .article .pcard.gold .sub { color: var(--gold); }
  .article .pcard p { font-size: 16.5px; color: var(--mut); margin-bottom: 14px; }
  .article .pcard ul { font-size: 15.5px; padding-left: 18px; margin: 0; color: var(--ink); }
  .article .pcard .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; background: var(--em-soft); color: var(--em2); margin-bottom: 14px; }
  .article .pcard.gold .tag { background: var(--gold-soft); color: var(--gold); }

  /* Engines */
  .article .engines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 34px; }
  .article .engine { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel); }
  .article .engine .label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
  .article .engine p { font-size: 15px; color: var(--mut); margin: 0; line-height: 1.45; }

  /* Proof layer diagram */
  .article .proof { margin: 30px 0 34px; }
  .article .proof .layer { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); padding: 22px 24px; box-shadow: var(--shadow); }
  .article .proof .layer .label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--em2); margin-bottom: 14px; }
  .article .proof .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .article .proof .chip { font-size: 13px; padding: 7px 12px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
  .article .proof .fork { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; position: relative; padding-top: 34px; }
  .article .proof .fork::before {
    content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 18px;
    border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 8px 8px 0 0;
  }
  .article .proof .fork::after { content: ""; position: absolute; top: -1px; left: 50%; width: 1px; height: 0; }
  .article .proof .leg { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: var(--panel); }
  .article .proof .leg::before { content: ""; position: absolute; top: -17px; left: 50%; width: 1px; height: 16px; background: var(--line-strong); }
  .article .proof .leg .label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
  .article .proof .leg.a .label { color: var(--em2); } .article .proof .leg.b .label { color: var(--gold); }
  .article .proof .leg p { font-size: 15px; color: var(--mut); margin: 0; }
  .article .proof .stem { width: 1px; height: 18px; background: var(--line-strong); margin: 0 auto; }

  /* Batching flow */
  .article .flow { margin: 26px 0 34px; display: grid; gap: 0; }
  .article .fstep { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
  .article .fstep .idx { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: Inter, sans-serif; font-size: 12.5px; font-weight: 800; color: var(--em2); background: var(--surface); font-variant-numeric: tabular-nums; }
  .article .fstep ..fstep:not(:last-child) ..fstep:not(:last-child)::after { content: none; }
  .article .fstep b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 3px; }
  .article .fstep span { font-size: 16px; color: var(--mut); }
  .article .fstep.onchain .idx { background: var(--em); color: #fff; border-color: transparent; }
  .article .flow .stem-line { width: 1px; height: 22px; background: var(--line-strong); margin-left: 17px; }

  .article .speed { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 10px 0 30px; text-align: center; }
  .article .speed div { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel); font-family: Inter, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
  .article .speed div small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); font-weight: 700; margin-bottom: 4px; }
  .article .speed .plus { color: var(--mut2); font-family: Inter, sans-serif; font-weight: 800; }

  /* Jurisdiction matrix */
  .article .matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 34px; }
  .article .j { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 20px 22px; }
  .article .j .where { font-family: Inter, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); margin-bottom: 8px; }
  .article .j .eng { font-family: Inter, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; }
  .article .j .eng i { font-style: normal; color: var(--em2); }
  .article .j ul { font-size: 15.5px; color: var(--mut); padding-left: 18px; margin: 0; }
  .article .j li { margin-bottom: 3px; }

  /* Questions list */
  .article .qs { margin: 24px 0 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
  .article .qs div { padding: 13px 0; border-bottom: 1px solid var(--line); font-family: Inter, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.2px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
  .article .qs div::before { content: "?"; color: var(--em2); font-weight: 900; }

  .article .not { margin: 24px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
  .article .not span { font-family: Inter, sans-serif; font-size: 14px; font-weight: 700; padding: 8px 13px; border: 1px dashed var(--line-strong); border-radius: 5px; color: var(--mut); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

  /* Closing */
  .article .closing { margin: 60px 0 0; border-top: 1px solid var(--line-strong); padding-top: 40px; }
  .article .closing .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 34px; }
  .article .closing .two div { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--panel); }
  .article .closing .two b { display: block; font-family: Inter, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; }
  .article .closing .two p { font-size: 15.5px; color: var(--mut); margin: 0 0 4px; }
  .article .tagline { text-align: center; font-family: Inter, sans-serif; font-weight: 900; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -1.4px; margin: 34px 0 10px; }
  .article .tagline span { background: linear-gradient(90deg, var(--em2) 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .article .tagline-sub { text-align: center; color: var(--mut2); font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 40px; }

  /* Sources */
  .article .sources { border-top: 1px solid var(--line); padding: 30px 0 60px; }
  .article .sources h5 { font-family: Inter, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mut2); margin: 0 0 16px; }
  .article .sources ol { margin: 0; padding-left: 22px; font-size: 14.5px; color: var(--mut); line-height: 1.5; }
  .article .sources li { margin-bottom: 8px; }
  .article .sources li a { word-break: break-word; }
  .article .foot { font-size: 13px; color: var(--mut2); margin-top: 30px; font-weight: 600; }

  @media (max-width: 720px) {
    .article .two-worlds, .article .products, .article .matrix, .article .proof .fork, .article .closing .two { grid-template-columns: 1fr; }
    .article .engines { grid-template-columns: 1fr; }
    .article .speed { grid-template-columns: 1fr; }
    .article .speed .plus { display: none; }
    .article .proof .fork::before { display: none; }
    .article .proof .leg { margin-top: 10px; }
    .article .proof .leg::before { display: none; }
    .article .thesis { padding: 22px 22px; }
    .article .thesis p { font-size: 21px; }
    .article .pull { font-size: 22px; }
  
}
  @media (prefers-reduced-motion: no-preference) {
    .article .ar-hero > .ar-hero > *:nth-child(2) { animation-delay: .08s; }
    .article .ar-hero > *:nth-child(3) { animation-delay: .16s; }
    .article .ar-hero > *:nth-child(4) { animation-delay: .24s; }
    .article .ar-hero > *:nth-child(5) { animation-delay: .32s; }
    @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  
}

/* ===== Listing page ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
a.post { display: flex; flex-direction: column; gap: 14px; color: inherit; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; transition: .28s; }
a.post:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--em) 45%, transparent); }
a.post .post-cover { aspect-ratio: 1200 / 630; background: #0b0818; border-bottom: 1px solid var(--line); }
a.post .post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.post .post-body { padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--mut2); font-weight: 700; }
.post-meta .ptag { color: var(--gold); background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.25); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
a.post h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0; line-height: 1.25; text-wrap: balance; }
a.post p { font-size: 14.5px; color: var(--mut); margin: 0; line-height: 1.55; }
a.post .go { font-size: 13.5px; font-weight: 800; color: var(--em2); margin-top: 4px; }
.post-list-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.post-list-head h2 { margin: 0; }
.post-list-head p { color: var(--mut2); font-size: 14px; margin: 0; }
/* Related products row under an article */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ===== Figures and comparison tables (article v2) ===== */
.article .fig { margin: 30px 0 34px; }
.article .fig img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.article .fig figcaption { font-size: 14.5px; color: var(--mut2); margin-top: 12px; line-height: 1.5; font-family: Inter, sans-serif; }
.article .cmp { margin: 26px 0 30px; overflow-x: auto; width: min(900px, calc(100vw - 40px)); position: relative; left: 50%; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.article .cmp table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; font-family: Inter, sans-serif; }
.article .cmp th { text-align: left; padding: 11px 14px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); background: var(--panel); border-bottom: 1px solid var(--line); }
.article .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--mut); vertical-align: top; }
.article .cmp td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.article .cmp td:last-child { color: var(--ink); }
.article .cmp tr:last-child td { border-bottom: 0; }
