/* dev/dev.css: the developer tools page (dev/index.html) and the Link SDK page (sdk/index.html), both English
   only (2026-12-01), loaded after ../assets/styles.css, whose tokens it uses. dev/dev.js serves both too.
   A long technical page: one narrow column, code blocks that scroll inside themselves (never the page),
   tables in a scrolling wrapper. Everything is scoped under .dev-page. */
.dev-page .hero {
  padding: 64px 0 40px;
}
.dev-page .hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}
.dev-page .hero p.lead {
  max-width: 760px;
}
.dev-col {
  max-width: 860px;
  margin: 0 auto;
}
.dev-toc {
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  max-width: 760px;
}
.dev-toc b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
.dev-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 260px;
  column-gap: 32px;
}
.dev-toc li {
  color: var(--text-soft);
  font-size: 15px;
  margin: 2px 0;
  break-inside: avoid;
}
.dev-toc a {
  color: var(--text);
  text-decoration: none;
}
.dev-toc a:hover {
  color: var(--violet);
}
.dev-sec {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.dev-sec h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 10px 0 18px;
}
.dev-sec h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 36px 0 10px;
}
.dev-sec p,
.dev-sec li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
}
.dev-sec li + li {
  margin-top: 4px;
}
.dev-sec strong {
  color: var(--text);
}
.dev-sec a {
  color: var(--pink);
  text-decoration: none;
}
.dev-sec a:hover {
  text-decoration: underline;
}
.dev-sec code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.dev-sec pre {
  margin: 14px 0 20px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  tab-size: 8;
}
.dev-sec pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}
.dev-label {
  display: block;
  margin: 18px 0 -8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dev-tablewrap {
  overflow-x: auto;
  margin: 14px 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.dev-table th,
.dev-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.dev-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--panel);
  white-space: nowrap;
}
.dev-table tr:last-child td {
  border-bottom: 0;
}
.dev-table td:first-child {
  white-space: nowrap;
  color: var(--text);
}
.dev-note {
  margin: 18px 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(56, 212, 245, 0.4);
  background: rgba(56, 212, 245, 0.06);
}
.dev-note p {
  margin: 0;
}
.dev-note p + p {
  margin-top: 8px;
}
.dev-note--warn {
  border-color: rgba(245, 177, 58, 0.55);
  background: rgba(245, 177, 58, 0.07);
}
.dev-note--warn strong {
  color: var(--amber);
}
.dev-note--sec {
  border-color: rgba(255, 84, 112, 0.5);
  background: rgba(255, 84, 112, 0.07);
}
.dev-note--sec strong {
  color: var(--red);
}
@media (max-width: 640px) {
  .dev-page .hero {
    padding: 40px 0 28px;
  }
  .dev-sec {
    padding: 40px 0;
  }
  .dev-sec pre {
    font-size: 12px;
    padding: 12px;
  }
  .dev-table td:first-child {
    white-space: normal;
  }
  .dev-table td:first-child code {
    white-space: nowrap;
  }
  .dev-table th {
    white-space: normal;
  }
}
