/* Puttcroft docs — tabletop toy. Content of /docs is written by SERVER; this file only styles it.
   Selectors are prefixed with "html body" so they win over the page's inline fallback <style>. */
html body.docs { margin: 0; background: var(--table) var(--plank); padding: 20px var(--gutter) 56px; }
html body .docs-wrap {
  max-width: 860px; margin: 0 auto; padding: 26px 20px 30px;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--card-shadow-lg);
}
html body .docs-top { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding-bottom: 4px; }
html body .docs-top a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--cream); font: 600 14px/1 var(--font-display); text-decoration: none; color: var(--ink); }
html body .docs-top a:hover { background: #F1E4CC; }
html body .docs-wrap h1 { margin: 0; font: 600 clamp(30px, 6vw, 42px)/1.08 var(--font-display); }
html body .lead { margin: 8px 0 0; font: 600 18px/1.35 var(--font-display); color: var(--felt-ink); }
html body .docs-nav {
  position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin: 18px -8px 6px; padding: 8px;
  background: rgba(255,253,248,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px;
}
html body .docs-nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--cream); font: 600 14px/1 var(--font-display); text-decoration: none; color: var(--ink); }
html body .docs-nav a:hover { background: var(--felt-wash); color: var(--felt-ink); }
html body .docs-wrap section { scroll-margin-top: 64px; }
html body .docs-wrap h2 { margin: 40px 0 10px; padding-top: 18px; border-top: 2px dashed var(--line); font: 600 25px/1.2 var(--font-display); }
html body .docs-wrap h3 { margin: 22px 0 6px; font: 600 18px/1.3 var(--font-display); color: var(--ink); }
html body .docs-wrap p, html body .docs-wrap li { max-width: 68ch; font-size: 16.5px; line-height: 1.62; }
html body .docs-wrap ul, html body .docs-wrap ol { padding-left: 1.3em; }
html body .docs-wrap li { margin: 4px 0; }
html body .docs-wrap li::marker { color: var(--felt-3); }
html body .docs-wrap strong { font-weight: 700; }
html body .docs-wrap code, html body .docs-wrap pre { font-family: var(--font-mono); font-size: 14px; }
html body .docs-wrap code { background: var(--cream); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
html body .docs-wrap pre { background: #3B3128; color: #F8EEDC; border-radius: 12px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
html body .docs-wrap pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
html body .docs-wrap table { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: 15.5px; display: block; overflow-x: auto; }
html body .docs-wrap th, html body .docs-wrap td { border-bottom: 1px dashed var(--line); padding: 8px 14px 8px 0; text-align: left; vertical-align: top; }
html body .docs-wrap th { font: 600 12px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--line); }
html body .note { margin: 14px 0; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--felt-wash); color: var(--ink); font-size: 15.5px; }
html body footer.disclaimer { margin-top: 44px; padding-top: 16px; border-top: 2px dashed rgba(176,122,60,.28); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
html body footer.disclaimer a { font: 600 14px/1.4 var(--font-display); }
@media (min-width: 720px) { html body .docs-wrap { padding: 40px 52px 40px; } html body.docs { padding-top: 32px; } }
@media (max-width: 480px) { html body .docs-wrap p, html body .docs-wrap li { font-size: 16px; } }
