
.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding: 28px 0 80px; }
.side { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 15px; padding-right: 8px; }
.side h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin: 20px 0 6px; }
.side a { display: block; padding: 4px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.side a:hover, .side a.on { background: var(--world-soft); color: var(--ink); }
.side details summary { cursor: pointer; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin: 18px 0 6px; list-style: none; }
.art { max-width: 760px; min-width: 0; }
.art h1 { font-size: clamp(32px, 4.4vw, 48px); }
.art h2 { font-size: 24px; margin-top: 36px; }
.art h3 { font-size: 19px; margin-top: 26px; }
.art table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.art th, .art td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: left; }
.art th { background: var(--bg-2); }
.art code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.art pre { background: var(--bg-2); padding: 14px; border-radius: 12px; overflow-x: auto; }
.art pre code { background: none; padding: 0; }
.art a { color: var(--orange-ink); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.search { position: relative; margin: 4px 0 8px; }
.search input { width: 100%; font: 400 15px var(--font); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.results { position: absolute; z-index: 20; left: 0; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; }
.results a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.results small { display: block; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.cards a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--ink); }
.cards a:hover { box-shadow: var(--shadow); }
.cards b { display: block; font-size: 18px; margin-bottom: 4px; }
.cards span { color: var(--muted); font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager a { color: var(--orange-ink); text-decoration: none; font-weight: 700; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; display: none; }
  .side.open { display: block; }
  .menu-btn { display: inline-flex; }
}
