/* Developer docs (zettace.com/docs): the site's look, in three columns. */
.docs-body { background: #fff; }
.docs-top { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; }
.docs-top .nav-links { margin: 0 auto; }
.docs-top .nav-links a[aria-current] { color: var(--ink); background: var(--bg-soft); }
.docs-tag { font: 600 12px var(--body); color: var(--blue); background: #eef3fd; padding: 3px 9px; border-radius: 999px; }
.side-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 17px; cursor: pointer; }

.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; }
.side, .toc { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 24px 16px 40px; scrollbar-width: thin; }
.side { border-right: 1px solid var(--line-2); }
.side-search { width: 100%; height: 38px; padding: 0 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; font: 14px var(--body); background: var(--bg-soft); color: var(--ink); outline: none; transition: border-color .2s, background .2s; }
.side-search:focus { border-color: var(--blue); background: #fff; }
.side-h { margin: 20px 8px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side nav a, .toc a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.side nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side nav a.on { background: #eef3fd; color: var(--blue-d); font-weight: 600; }
.side-empty { padding: 12px 10px; color: var(--muted); font-size: 14px; }
.m { font: 600 10px/1 var(--mono); padding: 3px 5px; border-radius: 4px; letter-spacing: .02em; }
.m.post { background: #e7f6ec; color: #05603a; }
.m.get { background: #eff8ff; color: #175cd3; }
.toc { border-left: 1px solid var(--line-2); }
.toc a { font-size: 13px; padding: 4px 10px; border-left: 2px solid transparent; border-radius: 0; }
.toc a.on { border-left-color: var(--blue); color: var(--ink); }

.content { padding: 48px 56px 120px; max-width: 860px; min-width: 0; }
.content section { padding-top: 24px; margin-bottom: 56px; scroll-margin-top: 72px; }
.content h1 { margin-top: 12px; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.content h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: none; }
.content h2 .m { font-size: 12px; padding: 5px 8px; }
.content h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; }
.content p { margin: 12px 0; color: var(--ink-2); }
.content p.intro { font-size: 17.5px; }
.content a:not(.btn):not(.ways a) { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(63, 111, 209, .3); text-underline-offset: 3px; }
.content a:not(.btn):hover { text-decoration-color: var(--blue); }
.content code { font: 500 .86em var(--mono); background: #f2f4f8; border: 1px solid #e8ebf2; padding: 1px 6px; border-radius: 6px; color: #23304d; overflow-wrap: anywhere; }
.list, .howto { padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.howto li::marker { font-weight: 600; color: var(--blue); }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.ways a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.ways a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dde1ea; }
.ways b { font: 600 16px var(--head); }
.ways span { font-size: 14px; color: var(--muted); }
.note { margin: 20px 0; padding: 14px 16px; border-radius: 12px; background: #f5f8fe; border: 1px solid #dfe8fa; color: var(--ink-2); font-size: 14.5px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); font-weight: 600; color: var(--ink); font-size: 13px; }
.params td:first-child { width: 180px; white-space: nowrap; }
.params td:first-child em { display: block; font-style: normal; font-size: 11.5px; color: var(--coral); margin-top: 2px; }
.params td:nth-child(2) { width: 120px; color: var(--muted); font-size: 13px; }

/* Code */
pre { position: relative; margin: 0; padding: 18px 20px; background: #0e1220; color: #d7dcea; border-radius: 0 0 14px 14px; overflow-x: auto; font: 13px/1.65 var(--mono); }
pre.solo { border-radius: 14px; margin: 14px 0; }
.content pre code, pre code { font: inherit; background: none; border: 0; padding: 0; color: inherit; overflow-wrap: normal; }
.code-tabs { margin: 16px 0; border-radius: 14px; box-shadow: var(--shadow); }
.code-tabs pre[hidden] { display: none; }
.tab-row { display: flex; gap: 2px; padding: 8px 8px 0; background: #161b2c; border-radius: 14px 14px 0 0; overflow-x: auto; }
.tab-row button { border: 0; background: none; color: #8a93ad; padding: 8px 12px; font: 500 12.5px var(--body); border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.tab-row button:hover { color: #d7dcea; }
.tab-row button.on { background: #0e1220; color: #fff; }
.copy { position: absolute; top: 10px; right: 10px; border: 1px solid #2a3148; background: #161b2c; color: #b8c0d8; font: 500 12px var(--body); padding: 5px 10px; border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
pre:hover .copy, .copy:focus { opacity: 1; }
.copy.done { color: #a5e3b6; border-color: #2f5a3c; }
.tk-c { color: #69728c; font-style: italic; } .tk-s { color: #a5e3b6; } .tk-k { color: #8ab4ff; } .tk-n { color: #f2c27b; } .tk-p { color: #f0a6ca; }

.tip { margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.tip summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
.tip[open] { padding-bottom: 12px; }
.doc-end { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: radial-gradient(400px 160px at 0% 0%, rgba(63, 111, 209, .08), transparent 70%), #fff; }
.doc-end p { margin: 0; font: 600 18px var(--head); color: var(--ink); }

@media (max-width: 1200px) {
  .docs { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .side-btn { display: block; }
  .docs-top { padding: 0 16px; gap: 10px; }
  .docs-top .nav-links, .docs-top .nav-cta { display: none; }
  .side { position: fixed; z-index: 60; top: 64px; left: 0; bottom: 0; width: min(300px, 85vw); height: auto; background: #fff; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .side-shade { position: fixed; inset: 64px 0 0; z-index: 55; background: rgba(14, 18, 32, .3); }
  .content { padding: 28px 16px 80px; }
  .ways { grid-template-columns: 1fr; }
  .params td:first-child { width: auto; white-space: normal; }
  .params tr { display: grid; grid-template-columns: 1fr auto; }
  .params td:nth-child(3) { grid-column: 1 / -1; padding-top: 0; }
  .params td:first-child, .params td:nth-child(2) { border-bottom: 0; }
  .copy { opacity: 1; }
}
