/* The creator guide (docs/creators.html): long reading in the Sweet design. Layers on site.css (tokens, the nav, the
   footer, .btn) and hub.css (the nav's account pill); site.css resets margins and links, so this file puts reading
   spacing back. The contents column sticks beside the article on wide screens and wraps above it on narrow ones. */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding-block: 36px 96px; }
.docs nav.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  padding-right: 6px; font-size: 15px; scrollbar-width: thin; }
.docs nav.toc a { padding: 5px 10px; border-radius: 8px; color: var(--muted); }
.docs nav.toc a:hover, .docs nav.toc a:focus-visible { color: var(--cream); background: var(--panel); }

.docs article { min-width: 0; max-width: 860px; font-size: 17px; line-height: 1.65; }
.docs article h1 { font-size: clamp(44px, 6vw, 68px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.docs article .lede { margin: 14px 0 22px; color: var(--muted); font-size: 19px; }
.docs article h2 { margin: 60px 0 16px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 36px; font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.01em; scroll-margin-top: 88px; }
.docs article h3 { margin: 32px 0 10px; font-size: 23px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; scroll-margin-top: 88px; }
.docs article p, .docs article ul, .docs article ol, .docs article table, .docs article pre, .docs article .callout, .docs article figure { margin: 0 0 16px; }
.docs article ul, .docs article ol { padding-left: 22px; }
.docs article li { margin: 6px 0; }
.docs article li::marker { color: var(--pink); }
.docs article strong { color: var(--cream); font-weight: 700; }
.docs article a { color: var(--pink); text-decoration: underline; text-decoration-color: rgba(255, 45, 158, 0.45); text-underline-offset: 3px; }
.docs article a:hover, .docs article a:focus-visible { text-decoration-color: currentColor; }

/* code: JetBrains Mono, inline on a panel chip, blocks scroll sideways inside their own box */
.docs code, .docs pre { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 0.85em; }
.docs :not(pre) > code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--cream); overflow-wrap: anywhere; }
.docs pre { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); color: #ddd6ea; line-height: 1.55; overflow-x: auto; }
.docs pre code { font-size: 1em; }

.docs article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.docs article th, .docs article td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs article th { background: var(--panel); color: var(--cream); font-weight: 700; }

.docs .callout { padding: 14px 18px; border-left: 4px solid var(--pink); border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel); }
.docs .callout.warn { border-left-color: var(--orange); }

/* Sweet's menu over a game (#menu) */
.docs .menu-figure { max-width: 560px; }
.docs .menu-figure svg { display: block; width: 100%; height: auto; }
.docs .menu-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 24px 72px; }
  /* the contents: one row of chips to swipe through, so the guide starts on the first screen */
  .docs nav.toc { position: static; max-height: none; flex-direction: row; flex-wrap: nowrap; gap: 6px; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding: 0 var(--gutter-r) 14px var(--gutter-l); overflow-x: auto; border-bottom: 1px solid var(--line); font-size: 14px; scrollbar-width: none; }
  .docs nav.toc::-webkit-scrollbar { display: none; }
  .docs nav.toc a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .docs article { font-size: 16px; }
  .docs article .lede { font-size: 17px; }
  .docs article h2 { margin-top: 44px; font-size: 30px; }
  .docs article h3 { font-size: 20px; }
}
