/* The Widget SDK guide (/widgets/, scripts/site/build-widget-docs.mjs): sections, tables and code. */
.dx-hero { padding-bottom: 34px; }
.dx-hero .eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--accent-soft); color: #ffb26a; font-weight: 700; font-size: 13.5px; border: 1px solid rgba(255, 138, 31, 0.35); }
.dx-hero h1 { background: linear-gradient(90deg, #7cc4ff, #2ea8ff 40%, #ff9a22 60%, #ffb048); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 6px 0; }
.dx-toc b { margin-inline-end: 6px; color: var(--text-2); font-size: 14px; }
.dx-toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); text-decoration: none; font-size: 13.5px; }
.dx-toc a:hover, .dx-toc a:focus-visible { border-color: var(--accent); color: #fff; }
.dx-section { padding: 56px 0; scroll-margin-top: 80px; }
.dx-wrap { max-width: 980px; }
.dx-section .sub { max-width: none; margin-bottom: 22px; }
.dx-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); margin: 0 0 18px; }
.dx-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dx-table th, .dx-table td { padding: 11px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.55; }
.dx-table tr:last-child th, .dx-table tr:last-child td { border-bottom: 0; }
.dx-table th { width: 34%; font-weight: 600; color: var(--text); }
.dx-table td { color: var(--text-2); }
.dx code, .dx-table code { font-family: "Cascadia Code", Consolas, "Courier New", monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(46, 168, 255, 0.1); color: #a9d8ff; unicode-bidi: isolate; }
.dx-table th code { background: rgba(255, 138, 31, 0.12); color: #ffc48f; white-space: nowrap; }
.dx-code { margin: 0 0 18px; border-radius: 16px; overflow: hidden; border: 1px solid #1d2747; background: #0a0f1f; text-align: left; }
.dx-code figcaption { padding: 8px 16px; border-bottom: 1px solid #1d2747; color: var(--muted); font: 600 12.5px var(--font); }
.dx-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.dx-code pre code { padding: 0; background: none; color: #d6def4; font-size: 13.5px; line-height: 1.6; white-space: pre; }
.dx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dx-list { margin: 0 0 18px; padding-inline-start: 22px; color: var(--text-2); line-height: 1.7; font-size: 16px; }
.dx-list li { margin-bottom: 6px; }
@media (max-width: 760px) {
  .dx-grid { grid-template-columns: 1fr; }
  .dx-table th { width: 42%; }
  .dx-table th code { white-space: normal; }
}
