/* Inline micro-demos (assets/js/microdemos.js). Nothing shows without JS. */
.microdemo { display: none; }
.microdemo.md-on {
  display: block;
  border: 1px dashed #000;
  padding: 8px 10px 6px;
  margin: 1.5em 0;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #222 !important;
}
.microdemo .md-row { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 4px; }
.microdemo .md-label,
.microdemo label {
  display: inline-block;
  min-width: 4.5em;
  margin: 0 8px 6px 0;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #000 !important;
}
.microdemo button {
  font-family: monospace !important;
  font-size: 12px !important;
  line-height: 1.4;
  padding: 3px 8px;
  margin: 0 6px 6px 0;
  border: 1px solid #000;
  border-radius: 0;
  color: #111 !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.microdemo button[aria-pressed="true"] { background-color: #000 !important; color: #fff !important; }
.microdemo button:disabled { color: #999 !important; border-color: #999; cursor: default; }
.microdemo button:focus-visible,
.microdemo input:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.microdemo input[type="range"] {
  flex: 1 1 140px;
  width: auto;
  max-width: 260px;
  height: auto;
  margin: 0 10px 6px 0;
  padding: 0;
  border: none;
  box-shadow: none;
  accent-color: #000;
}
.microdemo .md-big { font-size: 20px; font-weight: bold; line-height: 1.2; color: #000 !important; margin: 0 0 2px; }
.microdemo .md-status { font-size: 12px; color: #222 !important; margin: 4px 0 0; }
.microdemo svg { display: block; margin: 4px 0; overflow: visible; }
.microdemo svg.md-grid { width: 100%; height: auto; max-width: 400px; }
.microdemo svg.md-bar { width: 100%; max-width: 400px; }
table tr.md-in td { background-color: #e6e6e6 !important; }
table tr.md-hit td { background-color: #000 !important; color: #fff !important; }

@media print {
  .microdemo, .microdemo.md-on { display: none !important; }
  table tr.md-in td, table tr.md-hit td { background-color: transparent !important; color: #222 !important; }
}
