/* Extracted for CSP: no inline style elements */
.cap-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--s-4);
      margin-top: var(--s-7);
    }
    @media (max-width: 880px) { .cap-grid { grid-template-columns: 1fr; } }
    .cap {
      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;
    }
    .cap:hover { box-shadow: var(--shadow-2); border-color: var(--brand-300); transform: translateY(-2px); }
    .cap__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);
    }
    .cap__icon svg { width: 22px; height: 22px; }
    .cap h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
    .cap p { font-size: var(--fs-small); color: var(--ink-500); margin: 0; }
    .cap__tag { display: block; margin-top: 12px; font-size: var(--fs-micro); color: var(--ink-400); letter-spacing: .02em; }

    /* Code blocks */
    .code {
      background: var(--ink-900);
      border: 1px solid #16314a;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--shadow-2);
    }
    .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.65; 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; }
    .code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-6); }
    @media (max-width: 880px) { .code-grid { grid-template-columns: 1fr; } }

    /* Connect / MCP clients */
    .clients { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }
    .client {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 9px 16px; border: 1px solid var(--ink-200); border-radius: 999px;
      background: var(--paper); font-size: var(--fs-small); font-weight: 600; color: var(--ink-700);
    }
    .client__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }

    /* Endpoint reference */
    .ref { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-200); border: 1px solid var(--ink-200); border-radius: 14px; overflow: hidden; margin-top: var(--s-7); }
    @media (max-width: 880px) { .ref { grid-template-columns: 1fr; } }
    .ref__cell { background: var(--paper); padding: var(--s-5); }
    .ref__cell h3 { font-size: var(--fs-h4); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
    .ref__count { font-size: var(--fs-micro); font-weight: 700; color: var(--brand-700); background: var(--brand-100); padding: 2px 9px; border-radius: 999px; }
    .ref__cell p { font-size: var(--fs-small); color: var(--ink-500); margin: 8px 0 12px; }
    .ref__path { font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-700); display: block; }
    .ref__path .m { color: var(--brand-700); font-weight: 700; }

    /* Flow visual for use cases */
    .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); }

    /* Agent-friendly feature list */
    .aeo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
    @media (max-width: 880px) { .aeo-grid { grid-template-columns: 1fr; } }
    .aeo { display: flex; gap: 14px; padding: var(--s-5); border: 1px solid var(--ink-200); border-radius: 14px; background: var(--paper); }
    .aeo__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; }
    .aeo h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
    .aeo p { font-size: var(--fs-small); color: var(--ink-500); margin: 0; }

    /* Thesis body (light section - readable ink, not the dark-section science styles) */
    .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; }

    /* 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); }

    /* Sticky in-page anchor nav (sits just under the fixed site header) */
    .subnav {
      position: sticky; top: 56px; z-index: 90;
      background: rgba(250, 251, 252, 0.9);
      -webkit-backdrop-filter: saturate(180%) blur(12px);
      backdrop-filter: saturate(180%) blur(12px);
      border-top: 1px solid var(--ink-200);
      border-bottom: 1px solid var(--ink-200);
    }
    .subnav__inner {
      display: flex; align-items: center; gap: 4px;
      padding-top: 10px; padding-bottom: 10px;
      overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .subnav__inner::-webkit-scrollbar { display: none; }
    .subnav a {
      flex: none; white-space: nowrap; text-decoration: none;
      font-size: var(--fs-small); font-weight: 600; color: var(--ink-700);
      padding: 7px 14px; border-radius: 999px;
      transition: background .15s ease, color .15s ease;
    }
    .subnav a:hover { background: var(--brand-100); color: var(--brand-700); }
    .subnav__cta { margin-left: auto; color: var(--brand-700); }
    @media (max-width: 880px) { .subnav__cta { margin-left: 4px; } }
    /* Keep anchored headings clear of the fixed header + sticky sub-nav */
    main section[id] { scroll-margin-top: 118px; }
