*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #24292f;
    background: #f6f8fa;
  }

  header {
    background: #0d1117;
    color: #e6edf3;
    padding: 1.25rem 2rem;
  }
  header h1  { font-size: 1.2rem; font-weight: 600; }
  header p   { font-size: 0.85rem; color: #8b949e; margin-top: 0.2rem; }
  header a   { color: #58a6ff; text-decoration: none; }
  header a:hover { text-decoration: underline; }

  nav {
    background: #fff;
    border-bottom: 1px solid #d0d7de;
    padding: 0 2rem;
    display: flex;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  nav button {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #57606a;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
  }
  nav button:hover  { color: #0969da; }
  nav button.active { color: #0969da; border-bottom-color: #fd8c73; }

  main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
  }

  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ── PAPER ────────────────────────────────────────────────── */
  .paper {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 2.5rem 3rem;
  }
  .paper h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
  .paper h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    border-bottom: 1px solid #d0d7de;
    padding-bottom: 0.4rem;
  }
  .paper h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
  .paper p  { margin: 0.75rem 0; color: #24292f; }
  .paper hr { border: none; border-top: 1px solid #d0d7de; margin: 1.75rem 0; }
  .paper strong { font-weight: 600; }
  .paper .meta { color: #57606a; font-size: 0.88rem; margin-bottom: 0.2rem; }
  .paper a { color: #0969da; text-decoration: none; }
  .paper a:hover { text-decoration: underline; }
  .paper ul, .paper ol { padding-left: 1.5rem; margin: 0.75rem 0; }
  .paper li { margin: 0.3rem 0; }

  /* ── FILE CARDS ───────────────────────────────────────────── */
  .file-card {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
  }
  .file-card-header {
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .file-card-header span {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: #24292f;
  }
  .file-card-header .badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15em 0.6em;
    border-radius: 2em;
    background: #dafbe1;
    color: #1a7f37;
    font-family: sans-serif;
  }
  .file-card pre {
    margin: 0;
    border-radius: 0;
    max-height: 500px;
    overflow-y: auto;
  }
  .file-card pre code {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  /* ── COMPARISON TABLE ─────────────────────────────────────── */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
  }
  .compare-table th {
    background: #f6f8fa;
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #d0d7de;
    font-size: 0.82rem;
    color: #57606a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .compare-table td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #eaeef2;
    vertical-align: top;
  }
  .compare-table tr:last-child td { border-bottom: none; }
  .compare-table tr:hover td { background: #f6f8fa; }
  .compare-table code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.82rem;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 3px;
    padding: 0.1em 0.4em;
  }

  /* ── FILE LIST ─────────────────────────────────────────────── */
  .file-list {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
  }
  .file-list-header {
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #24292f;
  }
  .file-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #eaeef2;
    font-size: 0.88rem;
  }
  .file-list-item:last-child { border-bottom: none; }
  .file-list-item:hover { background: #f6f8fa; }
  .file-list-item .icon { color: #57606a; font-size: 0.9rem; }
  .file-list-item .filename {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #0969da;
    font-size: 0.85rem;
  }
  .file-list-item .desc { color: #57606a; font-size: 0.82rem; margin-left: auto; }

  /* ── CALLOUT ──────────────────────────────────────────────── */
  .callout {
    background: #ddf4ff;
    border: 1px solid #54aeff;
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    color: #0550ae;
    margin: 1rem 0;
  }
  .callout strong { font-weight: 600; }

  /* ── INSTALL BOX ──────────────────────────────────────────── */
  .install-box {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.88rem;
    color: #24292f;
    margin: 1rem 0;
  }
  .install-box .comment { color: #57606a; }

  footer {
    border-top: 1px solid #d0d7de;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #8c959f;
    background: #fff;
  }
  footer a { color: #0969da; text-decoration: none; }
  footer a:hover { text-decoration: underline; }

  @media (max-width: 600px) {
    .paper { padding: 1.25rem 1rem; }
    .compare-table { font-size: 0.78rem; }
  }
