/* Extracted for CSP: no inline style elements */
/* Hero stat strip */
    .api-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
    @media (max-width: 720px) { .api-stats { grid-template-columns: repeat(2, 1fr); } }
    .api-stat { text-align: center; padding: var(--s-5); border: 1px solid var(--ink-200); border-radius: 14px; background: var(--paper); }
    .api-stat__num { font-family: var(--font-display); font-size: var(--fs-display-sm); font-weight: 800; color: var(--brand-700); line-height: 1; }
    .api-stat__label { display: block; margin-top: 8px; font-size: var(--fs-small); color: var(--ink-500); }

    /* Connection rails */
    .rails { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
    @media (max-width: 720px) { .rails { grid-template-columns: 1fr; } }
    .rail {
      background: var(--paper); border: 1px solid var(--ink-200); border-radius: 14px;
      padding: var(--s-5); box-shadow: var(--shadow-1);
      transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
    }
    .rail:hover { box-shadow: var(--shadow-2); border-color: var(--brand-300); transform: translateY(-2px); }
    .rail__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--brand-100); color: var(--brand-700); margin-bottom: var(--s-4); }
    .rail__icon svg { width: 22px; height: 22px; }
    .rail h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
    .rail p { font-size: var(--fs-small); color: var(--ink-500); margin: 0 0 12px; }
    .rail code { font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--brand-700); background: var(--paper-2); border: 1px solid var(--ink-200); padding: 2px 7px; border-radius: 6px; }
    .rail__tag { display: inline-block; margin-top: 6px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-100); padding: 3px 10px; border-radius: 999px; }

    /* Compatibility wall */
    .wall { margin-top: var(--s-6); }
    .wall__group { margin-top: var(--s-6); }
    .wall__label { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
    .chips { display: flex; flex-wrap: wrap; gap: 10px; }
    .chip {
      display: inline-flex; align-items: center; gap: 9px;
      padding: 11px 18px; border: 1px solid var(--ink-200); border-radius: 12px;
      background: var(--paper); font-size: var(--fs-small); font-weight: 600; color: var(--ink-700);
      box-shadow: var(--shadow-1);
    }
    .chip img { height: 20px; width: auto; display: block; }
    .chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); flex: none; }
    .chip--own { border-color: var(--brand-300); background: var(--brand-100); color: var(--brand-700); }
    .chip--own .chip__dot { background: var(--brand-700); }
    .chip__badge { font-size: var(--fs-micro); font-weight: 700; color: var(--brand-700); background: var(--paper); border: 1px solid var(--brand-300); padding: 1px 7px; border-radius: 999px; margin-left: 2px; }

    /* Flow visual for patterns */
    .flow { background: var(--paper); border: 1px solid var(--ink-200); border-radius: 16px; padding: var(--s-5); box-shadow: var(--shadow-2); }
    .flow__step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--ink-200); }
    .flow__step:last-child { border-bottom: 0; }
    .flow__num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ink-900); color: var(--paper); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .flow__t { display: block; font-weight: 700; color: var(--ink-900); font-size: var(--fs-small); }
    .flow__d { display: block; font-size: var(--fs-small); color: var(--ink-500); margin-top: 2px; }
    .flow__d code { font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--paper-2); border: 1px solid var(--ink-200); padding: 1px 6px; border-radius: 5px; color: var(--brand-700); }

    /* Marketplace / distribution cards */
    .dist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
    @media (max-width: 880px) { .dist-grid { grid-template-columns: 1fr; } }
    .dist { display: flex; gap: 14px; padding: var(--s-5); border: 1px solid var(--ink-200); border-radius: 14px; background: var(--paper); }
    .dist__check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-weight: 800; }
    .dist__logo { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--paper-2); border: 1px solid var(--ink-200); display: flex; align-items: center; justify-content: center; }
    .dist__logo img { height: 24px; width: auto; display: block; }
    .dist h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
    .dist p { font-size: var(--fs-small); color: var(--ink-500); margin: 0 0 10px; }
    .dist a { font-size: var(--fs-small); font-weight: 700; color: var(--brand-700); text-decoration: none; }
    .dist a:hover { text-decoration: underline; }

    /* Code block */
    .code { background: var(--ink-900); border: 1px solid #16314a; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); margin-top: var(--s-6); }
    .code__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #16314a; background: #0d2236; }
    .code__title { font-size: var(--fs-micro); color: #9fc3e0; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
    .code__dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
    .code__dots { display: flex; gap: 7px; }
    .code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7; color: #e7eef6; }
    .code .tok-mute { color: #7fa6c4; }
    .code .tok-key  { color: #ffd479; }
    .code .tok-str  { color: #9be59b; }
    .code .tok-cmt  { color: #5f7d96; font-style: italic; }

    .thesis-body p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-700); margin: 0 0 24px; }
    .thesis-body p:last-child { margin-bottom: 0; }
    .thesis-body p strong { color: var(--ink-900); font-weight: 600; }
