/* SunWu.Si — docs (page-specific; shared styles live in site.css) */
/* ---------- layout ---------- */
    .docs-layout {
      max-width: 1280px; margin: 0 auto;
      padding: calc(var(--nav-h) + 44px) 24px 120px;
      display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px;
    }
    .docs-sidebar { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
    .side-group { margin-bottom: 26px; }
    .side-title {
      font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
      text-transform: uppercase; color: #6d7684; margin-bottom: 10px;
    }
    .docs-sidebar a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.15s; }
    .docs-sidebar a:hover { color: #fff; }
    .docs-sidebar a.active { color: #fff; }

    .docs-content { min-width: 0; }
    .docs-content h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
    .lede { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

    /* ---------- landing cards ---------- */
    .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 32px; }
    .card {
      display: block; border: 1px solid var(--line); border-radius: 14px;
      padding: 18px 20px; background: var(--panel);
      transition: border-color 0.2s, transform 0.2s, background 0.2s;
    }
    .card:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }
    .card h3 { font-size: 0.98rem; margin-bottom: 6px; }
    .card p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

    /* ---------- content ---------- */
    .docs-content section { margin-top: 64px; scroll-margin-top: calc(var(--nav-h) + 24px); }
    .docs-content h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .docs-content h3 { font-size: 1.05rem; font-weight: 600; margin-top: 30px; margin-bottom: 10px; }
    .docs-content p { color: var(--body); margin-top: 12px; }
    .docs-content ul { color: var(--body); margin: 12px 0 0 20px; }
    .docs-content li { margin: 6px 0; }
    .docs-content a.inline { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

    code { font-family: var(--mono); font-size: 0.86em; }
    p code, li code, td code { background: rgba(255, 255, 255, 0.09); border-radius: 6px; padding: 2px 6px; color: #e6ebf2; }

    pre {
      position: relative; background: #0B0E13; border: 1px solid var(--line);
      border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin-top: 16px;
    }
    pre code { color: #d7dde6; font-size: 0.84rem; line-height: 1.7; display: block; white-space: pre; }
    .copy {
      position: absolute; top: 10px; right: 10px;
      background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
      color: #cfd6e0; font-size: 0.72rem; font-family: inherit;
      padding: 4px 10px; border-radius: 8px; cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .copy:hover { background: #fff; color: #000; border-color: #fff; }

    table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.9rem; }
    th {
      text-align: left; color: #8f97a3; font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 10px 14px; border-bottom: 1px solid var(--line);
    }
    td { color: var(--body); padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
    td code { white-space: nowrap; }

    .note {
      margin-top: 16px; border-left: 2px solid rgba(255, 255, 255, 0.35);
      padding: 10px 16px; background: rgba(255, 255, 255, 0.03);
      border-radius: 0 10px 10px 0; color: var(--muted); font-size: 0.9rem;
    }

    /* ---------- responsive ---------- */
    @media (max-width: 920px) {
      .docs-layout { grid-template-columns: 1fr; gap: 32px; padding-top: calc(var(--nav-h) + 28px); }
      .docs-sidebar { position: static; }
      .docs-sidebar nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
      .side-group { margin-bottom: 14px; }
    }
    @media (max-width: 600px) {
      .docs-layout { padding-left: 18px; padding-right: 18px; }
    }
