/* Khu /for-creators/addons/ — khoi ma + bang.
   ⛔ Chi dung BIEN cua `wiki-g.css` (--surface2 --line --mono --muted --radius-sm…), khong
      dat ma mau cung: site co che do toi va doi bien o `:root`, dat cung thi che do toi
      ra chu den tren nen den. */
.w-code {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--surface2);
}
.w-code__t {
  font: 600 12px/1.6 var(--mono, ui-monospace, monospace);
  color: var(--muted);
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.w-code pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.w-code pre code {
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  font: 400 12.5px/1.65 var(--mono, ui-monospace, monospace);
  color: var(--text);
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}
/* `w-tw` = o cuon ngang cho bang, de bang rong khong lam vo bo cuc tren dien thoai */
.w-tw { margin: 14px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.w-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.w-table th,
.w-table td {
  border: 1px solid var(--line);
  padding: 8px 11px;
  text-align: left;
  vertical-align: top;
}
.w-table th {
  background: var(--surface2);
  font-weight: 600;
  white-space: nowrap;
}
.w-table td code { font-size: 12px; }
.w-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface2) 45%, transparent); }
@media (max-width: 560px) {
  .w-table { font-size: 13px; min-width: 360px; }
  .w-code pre code { font-size: 12px; }
}
